{ "version": 3, "sources": ["../../phaser/dist/phaser.js"], "sourcesContent": ["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"Phaser\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"Phaser\"] = factory();\n\telse\n\t\troot[\"Phaser\"] = factory();\n})(this, () => {\nreturn /******/ (() => { // webpackBootstrap\n/******/ \tvar __webpack_modules__ = ({\n\n/***/ 50792:\n/***/ ((module) => {\n\n\"use strict\";\n\n\nvar has = Object.prototype.hasOwnProperty\n , prefix = '~';\n\n/**\n * Constructor to create a storage for our `EE` objects.\n * An `Events` instance is a plain object whose properties are event names.\n *\n * @constructor\n * @private\n */\nfunction Events() {}\n\n//\n// We try to not inherit from `Object.prototype`. In some engines creating an\n// instance in this way is faster than calling `Object.create(null)` directly.\n// If `Object.create(null)` is not supported we prefix the event names with a\n// character to make sure that the built-in object properties are not\n// overridden or used as an attack vector.\n//\nif (Object.create) {\n Events.prototype = Object.create(null);\n\n //\n // This hack is needed because the `__proto__` property is still inherited in\n // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5.\n //\n if (!new Events().__proto__) prefix = false;\n}\n\n/**\n * Representation of a single event listener.\n *\n * @param {Function} fn The listener function.\n * @param {*} context The context to invoke the listener with.\n * @param {Boolean} [once=false] Specify if the listener is a one-time listener.\n * @constructor\n * @private\n */\nfunction EE(fn, context, once) {\n this.fn = fn;\n this.context = context;\n this.once = once || false;\n}\n\n/**\n * Add a listener for a given event.\n *\n * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} context The context to invoke the listener with.\n * @param {Boolean} once Specify if the listener is a one-time listener.\n * @returns {EventEmitter}\n * @private\n */\nfunction addListener(emitter, event, fn, context, once) {\n if (typeof fn !== 'function') {\n throw new TypeError('The listener must be a function');\n }\n\n var listener = new EE(fn, context || emitter, once)\n , evt = prefix ? prefix + event : event;\n\n if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;\n else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);\n else emitter._events[evt] = [emitter._events[evt], listener];\n\n return emitter;\n}\n\n/**\n * Clear event by name.\n *\n * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.\n * @param {(String|Symbol)} evt The Event name.\n * @private\n */\nfunction clearEvent(emitter, evt) {\n if (--emitter._eventsCount === 0) emitter._events = new Events();\n else delete emitter._events[evt];\n}\n\n/**\n * Minimal `EventEmitter` interface that is molded against the Node.js\n * `EventEmitter` interface.\n *\n * @constructor\n * @public\n */\nfunction EventEmitter() {\n this._events = new Events();\n this._eventsCount = 0;\n}\n\n/**\n * Return an array listing the events for which the emitter has registered\n * listeners.\n *\n * @returns {Array}\n * @public\n */\nEventEmitter.prototype.eventNames = function eventNames() {\n var names = []\n , events\n , name;\n\n if (this._eventsCount === 0) return names;\n\n for (name in (events = this._events)) {\n if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);\n }\n\n if (Object.getOwnPropertySymbols) {\n return names.concat(Object.getOwnPropertySymbols(events));\n }\n\n return names;\n};\n\n/**\n * Return the listeners registered for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Array} The registered listeners.\n * @public\n */\nEventEmitter.prototype.listeners = function listeners(event) {\n var evt = prefix ? prefix + event : event\n , handlers = this._events[evt];\n\n if (!handlers) return [];\n if (handlers.fn) return [handlers.fn];\n\n for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) {\n ee[i] = handlers[i].fn;\n }\n\n return ee;\n};\n\n/**\n * Return the number of listeners listening to a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Number} The number of listeners.\n * @public\n */\nEventEmitter.prototype.listenerCount = function listenerCount(event) {\n var evt = prefix ? prefix + event : event\n , listeners = this._events[evt];\n\n if (!listeners) return 0;\n if (listeners.fn) return 1;\n return listeners.length;\n};\n\n/**\n * Calls each of the listeners registered for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Boolean} `true` if the event had listeners, else `false`.\n * @public\n */\nEventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {\n var evt = prefix ? prefix + event : event;\n\n if (!this._events[evt]) return false;\n\n var listeners = this._events[evt]\n , len = arguments.length\n , args\n , i;\n\n if (listeners.fn) {\n if (listeners.once) this.removeListener(event, listeners.fn, undefined, true);\n\n switch (len) {\n case 1: return listeners.fn.call(listeners.context), true;\n case 2: return listeners.fn.call(listeners.context, a1), true;\n case 3: return listeners.fn.call(listeners.context, a1, a2), true;\n case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;\n case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;\n case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;\n }\n\n for (i = 1, args = new Array(len -1); i < len; i++) {\n args[i - 1] = arguments[i];\n }\n\n listeners.fn.apply(listeners.context, args);\n } else {\n var length = listeners.length\n , j;\n\n for (i = 0; i < length; i++) {\n if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true);\n\n switch (len) {\n case 1: listeners[i].fn.call(listeners[i].context); break;\n case 2: listeners[i].fn.call(listeners[i].context, a1); break;\n case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break;\n case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break;\n default:\n if (!args) for (j = 1, args = new Array(len -1); j < len; j++) {\n args[j - 1] = arguments[j];\n }\n\n listeners[i].fn.apply(listeners[i].context, args);\n }\n }\n }\n\n return true;\n};\n\n/**\n * Add a listener for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.on = function on(event, fn, context) {\n return addListener(this, event, fn, context, false);\n};\n\n/**\n * Add a one-time listener for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.once = function once(event, fn, context) {\n return addListener(this, event, fn, context, true);\n};\n\n/**\n * Remove the listeners of a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn Only remove the listeners that match this function.\n * @param {*} context Only remove the listeners that have this context.\n * @param {Boolean} once Only remove one-time listeners.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {\n var evt = prefix ? prefix + event : event;\n\n if (!this._events[evt]) return this;\n if (!fn) {\n clearEvent(this, evt);\n return this;\n }\n\n var listeners = this._events[evt];\n\n if (listeners.fn) {\n if (\n listeners.fn === fn &&\n (!once || listeners.once) &&\n (!context || listeners.context === context)\n ) {\n clearEvent(this, evt);\n }\n } else {\n for (var i = 0, events = [], length = listeners.length; i < length; i++) {\n if (\n listeners[i].fn !== fn ||\n (once && !listeners[i].once) ||\n (context && listeners[i].context !== context)\n ) {\n events.push(listeners[i]);\n }\n }\n\n //\n // Reset the array, or remove it completely if we have no more listeners.\n //\n if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;\n else clearEvent(this, evt);\n }\n\n return this;\n};\n\n/**\n * Remove all listeners, or those of the specified event.\n *\n * @param {(String|Symbol)} [event] The event name.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {\n var evt;\n\n if (event) {\n evt = prefix ? prefix + event : event;\n if (this._events[evt]) clearEvent(this, evt);\n } else {\n this._events = new Events();\n this._eventsCount = 0;\n }\n\n return this;\n};\n\n//\n// Alias methods names because people roll like that.\n//\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\nEventEmitter.prototype.addListener = EventEmitter.prototype.on;\n\n//\n// Expose the prefix.\n//\nEventEmitter.prefixed = prefix;\n\n//\n// Allow `EventEmitter` to be imported as module namespace.\n//\nEventEmitter.EventEmitter = EventEmitter;\n\n//\n// Expose the module.\n//\nif (true) {\n module.exports = EventEmitter;\n}\n\n\n/***/ }),\n\n/***/ 11517:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author samme\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar QuickSet = __webpack_require__(38829);\r\n\r\n/**\r\n * Takes an array of Game Objects and aligns them next to each other.\r\n *\r\n * The alignment position is controlled by the `position` parameter, which should be one\r\n * of the Phaser.Display.Align constants, such as `Phaser.Display.Align.TOP_LEFT`,\r\n * `Phaser.Display.Align.TOP_CENTER`, etc.\r\n *\r\n * The first item isn't moved. The second item is aligned next to the first,\r\n * then the third next to the second, and so on.\r\n *\r\n * @function Phaser.Actions.AlignTo\r\n * @since 3.22.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} position - The position to align the items with. This is an align constant, such as `Phaser.Display.Align.LEFT_CENTER`.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar AlignTo = function (items, position, offsetX, offsetY)\r\n{\r\n var target = items[0];\r\n\r\n for (var i = 1; i < items.length; i++)\r\n {\r\n var item = items[i];\r\n\r\n QuickSet(item, target, position, offsetX, offsetY);\r\n\r\n target = item;\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = AlignTo;\r\n\n\n/***/ }),\n\n/***/ 80318:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueInc = __webpack_require__(66979);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have a public `angle` property,\r\n * and then adds the given value to each of their `angle` properties.\r\n *\r\n * The optional `step` property is applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `Angle(group.getChildren(), value, step)`\r\n *\r\n * @function Phaser.Actions.Angle\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} value - The amount to be added to the `angle` property.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar Angle = function (items, value, step, index, direction)\r\n{\r\n return PropertyValueInc(items, 'angle', value, step, index, direction);\r\n};\r\n\r\nmodule.exports = Angle;\r\n\n\n/***/ }),\n\n/***/ 60757:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Takes an array of objects and passes each of them to the given callback.\r\n *\r\n * @function Phaser.Actions.Call\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {Phaser.Types.Actions.CallCallback} callback - The callback to be invoked. It will be passed just one argument: the item from the array.\r\n * @param {*} context - The scope in which the callback will be invoked.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that was passed to this Action.\r\n */\r\nvar Call = function (items, callback, context)\r\n{\r\n for (var i = 0; i < items.length; i++)\r\n {\r\n var item = items[i];\r\n\r\n callback.call(context, item);\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = Call;\r\n\n\n/***/ }),\n\n/***/ 69927:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Takes an array of objects and returns the first element in the array that has properties which match\r\n * all of those specified in the `compare` object. For example, if the compare object was: `{ scaleX: 0.5, alpha: 1 }`\r\n * then it would return the first item which had the property `scaleX` set to 0.5 and `alpha` set to 1.\r\n *\r\n * To use this with a Group: `GetFirst(group.getChildren(), compare, index)`\r\n *\r\n * @function Phaser.Actions.GetFirst\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be searched by this action.\r\n * @param {object} compare - The comparison object. Each property in this object will be checked against the items of the array.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n *\r\n * @return {?(object|Phaser.GameObjects.GameObject)} The first object in the array that matches the comparison object, or `null` if no match was found.\r\n */\r\nvar GetFirst = function (items, compare, index)\r\n{\r\n if (index === undefined) { index = 0; }\r\n\r\n for (var i = index; i < items.length; i++)\r\n {\r\n var item = items[i];\r\n\r\n var match = true;\r\n\r\n for (var property in compare)\r\n {\r\n if (item[property] !== compare[property])\r\n {\r\n match = false;\r\n }\r\n }\r\n\r\n if (match)\r\n {\r\n return item;\r\n }\r\n }\r\n\r\n return null;\r\n};\r\n\r\nmodule.exports = GetFirst;\r\n\n\n/***/ }),\n\n/***/ 32265:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Takes an array of objects and returns the last element in the array that has properties which match\r\n * all of those specified in the `compare` object. For example, if the compare object was: `{ scaleX: 0.5, alpha: 1 }`\r\n * then it would return the last item which had the property `scaleX` set to 0.5 and `alpha` set to 1.\r\n *\r\n * To use this with a Group: `GetLast(group.getChildren(), compare, index)`\r\n *\r\n * @function Phaser.Actions.GetLast\r\n * @since 3.3.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be searched by this action.\r\n * @param {object} compare - The comparison object. Each property in this object will be checked against the items of the array.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n *\r\n * @return {?(object|Phaser.GameObjects.GameObject)} The last object in the array that matches the comparison object, or `null` if no match was found.\r\n */\r\nvar GetLast = function (items, compare, index)\r\n{\r\n if (index === undefined) { index = 0; }\r\n\r\n for (var i = items.length - 1; i >= index; i--)\r\n {\r\n var item = items[i];\r\n\r\n var match = true;\r\n\r\n for (var property in compare)\r\n {\r\n if (item[property] !== compare[property])\r\n {\r\n match = false;\r\n }\r\n }\r\n\r\n if (match)\r\n {\r\n return item;\r\n }\r\n }\r\n\r\n return null;\r\n};\r\n\r\nmodule.exports = GetLast;\r\n\n\n/***/ }),\n\n/***/ 94420:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar AlignIn = __webpack_require__(11879);\r\nvar CONST = __webpack_require__(60461);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar NOOP = __webpack_require__(29747);\r\nvar Zone = __webpack_require__(41481);\r\n\r\nvar tempZone = new Zone({ sys: { queueDepthSort: NOOP, events: { once: NOOP } } }, 0, 0, 1, 1).setOrigin(0, 0);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have public `x` and `y` properties,\r\n * and then aligns them based on the grid configuration given to this action.\r\n *\r\n * @function Phaser.Actions.GridAlign\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {Phaser.Types.Actions.GridAlignConfig} options - The GridAlign Configuration object.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar GridAlign = function (items, options)\r\n{\r\n if (options === undefined) { options = {}; }\r\n\r\n var widthSet = options.hasOwnProperty('width');\r\n var heightSet = options.hasOwnProperty('height');\r\n\r\n var width = GetFastValue(options, 'width', -1);\r\n var height = GetFastValue(options, 'height', -1);\r\n\r\n var cellWidth = GetFastValue(options, 'cellWidth', 1);\r\n var cellHeight = GetFastValue(options, 'cellHeight', cellWidth);\r\n\r\n var position = GetFastValue(options, 'position', CONST.TOP_LEFT);\r\n var x = GetFastValue(options, 'x', 0);\r\n var y = GetFastValue(options, 'y', 0);\r\n\r\n var cx = 0;\r\n var cy = 0;\r\n var w = (width * cellWidth);\r\n var h = (height * cellHeight);\r\n\r\n tempZone.setPosition(x, y);\r\n tempZone.setSize(cellWidth, cellHeight);\r\n\r\n for (var i = 0; i < items.length; i++)\r\n {\r\n AlignIn(items[i], tempZone, position);\r\n\r\n if (widthSet && width === -1)\r\n {\r\n // We keep laying them out horizontally until we've done them all\r\n tempZone.x += cellWidth;\r\n }\r\n else if (heightSet && height === -1)\r\n {\r\n // We keep laying them out vertically until we've done them all\r\n tempZone.y += cellHeight;\r\n }\r\n else if (heightSet && !widthSet)\r\n {\r\n // We keep laying them out until we hit the column limit\r\n cy += cellHeight;\r\n tempZone.y += cellHeight;\r\n\r\n if (cy === h)\r\n {\r\n cy = 0;\r\n cx += cellWidth;\r\n tempZone.y = y;\r\n tempZone.x += cellWidth;\r\n\r\n if (cx === w)\r\n {\r\n // We've hit the column limit, so return, even if there are items left\r\n break;\r\n }\r\n }\r\n }\r\n else\r\n {\r\n // We keep laying them out until we hit the column limit\r\n cx += cellWidth;\r\n tempZone.x += cellWidth;\r\n\r\n if (cx === w)\r\n {\r\n cx = 0;\r\n cy += cellHeight;\r\n tempZone.x = x;\r\n tempZone.y += cellHeight;\r\n\r\n if (cy === h)\r\n {\r\n // We've hit the column limit, so return, even if there are items left\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = GridAlign;\r\n\n\n/***/ }),\n\n/***/ 41721:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueInc = __webpack_require__(66979);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have a public `alpha` property,\r\n * and then adds the given value to each of their `alpha` properties.\r\n *\r\n * The optional `step` property is applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `IncAlpha(group.getChildren(), value, step)`\r\n *\r\n * @function Phaser.Actions.IncAlpha\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} value - The amount to be added to the `alpha` property.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar IncAlpha = function (items, value, step, index, direction)\r\n{\r\n return PropertyValueInc(items, 'alpha', value, step, index, direction);\r\n};\r\n\r\nmodule.exports = IncAlpha;\r\n\n\n/***/ }),\n\n/***/ 67285:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueInc = __webpack_require__(66979);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have a public `x` property,\r\n * and then adds the given value to each of their `x` properties.\r\n *\r\n * The optional `step` property is applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `IncX(group.getChildren(), value, step)`\r\n *\r\n * @function Phaser.Actions.IncX\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} value - The amount to be added to the `x` property.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar IncX = function (items, value, step, index, direction)\r\n{\r\n return PropertyValueInc(items, 'x', value, step, index, direction);\r\n};\r\n\r\nmodule.exports = IncX;\r\n\n\n/***/ }),\n\n/***/ 9074:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueInc = __webpack_require__(66979);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have public `x` and `y` properties,\r\n * and then adds the given value to each of them.\r\n *\r\n * The optional `stepX` and `stepY` properties are applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `IncXY(group.getChildren(), x, y, stepX, stepY)`\r\n *\r\n * @function Phaser.Actions.IncXY\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} x - The amount to be added to the `x` property.\r\n * @param {number} [y=x] - The amount to be added to the `y` property. If `undefined` or `null` it uses the `x` value.\r\n * @param {number} [stepX=0] - This is added to the `x` amount, multiplied by the iteration counter.\r\n * @param {number} [stepY=0] - This is added to the `y` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar IncXY = function (items, x, y, stepX, stepY, index, direction)\r\n{\r\n if (y === undefined || y === null) { y = x; }\r\n\r\n PropertyValueInc(items, 'x', x, stepX, index, direction);\r\n\r\n return PropertyValueInc(items, 'y', y, stepY, index, direction);\r\n};\r\n\r\nmodule.exports = IncXY;\r\n\n\n/***/ }),\n\n/***/ 75222:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueInc = __webpack_require__(66979);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have a public `y` property,\r\n * and then adds the given value to each of their `y` properties.\r\n *\r\n * The optional `step` property is applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `IncY(group.getChildren(), value, step)`\r\n *\r\n * @function Phaser.Actions.IncY\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} value - The amount to be added to the `y` property.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar IncY = function (items, value, step, index, direction)\r\n{\r\n return PropertyValueInc(items, 'y', value, step, index, direction);\r\n};\r\n\r\nmodule.exports = IncY;\r\n\n\n/***/ }),\n\n/***/ 22983:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Takes an array of Game Objects and positions them on evenly spaced points around the perimeter of a Circle.\r\n *\r\n * If you wish to pass a `Phaser.GameObjects.Circle` Shape to this function, you should pass its `geom` property.\r\n *\r\n * @function Phaser.Actions.PlaceOnCircle\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - An array of Game Objects. The contents of this array are updated by this Action.\r\n * @param {Phaser.Geom.Circle} circle - The Circle to position the Game Objects on.\r\n * @param {number} [startAngle=0] - Optional angle to start position from, in radians.\r\n * @param {number} [endAngle=6.28] - Optional angle to stop position at, in radians.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of Game Objects that was passed to this Action.\r\n */\r\nvar PlaceOnCircle = function (items, circle, startAngle, endAngle)\r\n{\r\n if (startAngle === undefined) { startAngle = 0; }\r\n if (endAngle === undefined) { endAngle = 6.28; }\r\n\r\n var angle = startAngle;\r\n var angleStep = (endAngle - startAngle) / items.length;\r\n\r\n var cx = circle.x;\r\n var cy = circle.y;\r\n var radius = circle.radius;\r\n\r\n for (var i = 0; i < items.length; i++)\r\n {\r\n items[i].x = cx + (radius * Math.cos(angle));\r\n items[i].y = cy + (radius * Math.sin(angle));\r\n\r\n angle += angleStep;\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = PlaceOnCircle;\r\n\n\n/***/ }),\n\n/***/ 95253:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Takes an array of Game Objects and positions them on evenly spaced points around the perimeter of an Ellipse.\r\n * \r\n * If you wish to pass a `Phaser.GameObjects.Ellipse` Shape to this function, you should pass its `geom` property.\r\n *\r\n * @function Phaser.Actions.PlaceOnEllipse\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - An array of Game Objects. The contents of this array are updated by this Action.\r\n * @param {Phaser.Geom.Ellipse} ellipse - The Ellipse to position the Game Objects on.\r\n * @param {number} [startAngle=0] - Optional angle to start position from, in radians.\r\n * @param {number} [endAngle=6.28] - Optional angle to stop position at, in radians.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of Game Objects that was passed to this Action.\r\n */\r\nvar PlaceOnEllipse = function (items, ellipse, startAngle, endAngle)\r\n{\r\n if (startAngle === undefined) { startAngle = 0; }\r\n if (endAngle === undefined) { endAngle = 6.28; }\r\n\r\n var angle = startAngle;\r\n var angleStep = (endAngle - startAngle) / items.length;\r\n\r\n var a = ellipse.width / 2;\r\n var b = ellipse.height / 2;\r\n\r\n for (var i = 0; i < items.length; i++)\r\n {\r\n items[i].x = ellipse.x + a * Math.cos(angle);\r\n items[i].y = ellipse.y + b * Math.sin(angle);\r\n\r\n angle += angleStep;\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = PlaceOnEllipse;\r\n\n\n/***/ }),\n\n/***/ 88505:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetPoints = __webpack_require__(15258);\r\nvar GetEasedPoints = __webpack_require__(26708);\r\n\r\n/**\r\n * Positions an array of Game Objects on evenly spaced points of a Line.\r\n * If the ease parameter is supplied, it will space the points based on that easing function along the line.\r\n *\r\n * @function Phaser.Actions.PlaceOnLine\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - An array of Game Objects. The contents of this array are updated by this Action.\r\n * @param {Phaser.Geom.Line} line - The Line to position the Game Objects on.\r\n * @param {(string|function)} [ease] - An optional ease to use. This can be either a string from the EaseMap, or a custom function.\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of Game Objects that was passed to this Action.\r\n */\r\nvar PlaceOnLine = function (items, line, ease)\r\n{\r\n var points;\r\n\r\n if (ease)\r\n {\r\n points = GetEasedPoints(line, ease, items.length);\r\n }\r\n else\r\n {\r\n points = GetPoints(line, items.length);\r\n }\r\n\r\n for (var i = 0; i < items.length; i++)\r\n {\r\n var item = items[i];\r\n var point = points[i];\r\n\r\n item.x = point.x;\r\n item.y = point.y;\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = PlaceOnLine;\r\n\n\n/***/ }),\n\n/***/ 41346:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar MarchingAnts = __webpack_require__(14649);\r\nvar RotateLeft = __webpack_require__(86003);\r\nvar RotateRight = __webpack_require__(49498);\r\n\r\n/**\r\n * Takes an array of Game Objects and positions them on evenly spaced points around the perimeter of a Rectangle.\r\n * \r\n * Placement starts from the top-left of the rectangle, and proceeds in a clockwise direction.\r\n * If the `shift` parameter is given you can offset where placement begins.\r\n *\r\n * @function Phaser.Actions.PlaceOnRectangle\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - An array of Game Objects. The contents of this array are updated by this Action.\r\n * @param {Phaser.Geom.Rectangle} rect - The Rectangle to position the Game Objects on.\r\n * @param {number} [shift=0] - An optional positional offset.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of Game Objects that was passed to this Action.\r\n */\r\nvar PlaceOnRectangle = function (items, rect, shift)\r\n{\r\n if (shift === undefined) { shift = 0; }\r\n\r\n var points = MarchingAnts(rect, false, items.length);\r\n\r\n if (shift > 0)\r\n {\r\n RotateLeft(points, shift);\r\n }\r\n else if (shift < 0)\r\n {\r\n RotateRight(points, Math.abs(shift));\r\n }\r\n\r\n for (var i = 0; i < items.length; i++)\r\n {\r\n items[i].x = points[i].x;\r\n items[i].y = points[i].y;\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = PlaceOnRectangle;\r\n\n\n/***/ }),\n\n/***/ 11575:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BresenhamPoints = __webpack_require__(84993);\r\n\r\n/**\r\n * Takes an array of Game Objects and positions them on evenly spaced points around the edges of a Triangle.\r\n * \r\n * If you wish to pass a `Phaser.GameObjects.Triangle` Shape to this function, you should pass its `geom` property.\r\n *\r\n * @function Phaser.Actions.PlaceOnTriangle\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - An array of Game Objects. The contents of this array are updated by this Action.\r\n * @param {Phaser.Geom.Triangle} triangle - The Triangle to position the Game Objects on.\r\n * @param {number} [stepRate=1] - An optional step rate, to increase or decrease the packing of the Game Objects on the lines.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of Game Objects that was passed to this Action.\r\n */\r\nvar PlaceOnTriangle = function (items, triangle, stepRate)\r\n{\r\n var p1 = BresenhamPoints({ x1: triangle.x1, y1: triangle.y1, x2: triangle.x2, y2: triangle.y2 }, stepRate);\r\n var p2 = BresenhamPoints({ x1: triangle.x2, y1: triangle.y2, x2: triangle.x3, y2: triangle.y3 }, stepRate);\r\n var p3 = BresenhamPoints({ x1: triangle.x3, y1: triangle.y3, x2: triangle.x1, y2: triangle.y1 }, stepRate);\r\n\r\n // Remove overlaps\r\n p1.pop();\r\n p2.pop();\r\n p3.pop();\r\n\r\n p1 = p1.concat(p2, p3);\r\n\r\n var step = p1.length / items.length;\r\n var p = 0;\r\n\r\n for (var i = 0; i < items.length; i++)\r\n {\r\n var item = items[i];\r\n var point = p1[Math.floor(p)];\r\n\r\n item.x = point.x;\r\n item.y = point.y;\r\n\r\n p += step;\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = PlaceOnTriangle;\r\n\n\n/***/ }),\n\n/***/ 29953:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Play an animation on all Game Objects in the array that have an Animation component.\r\n *\r\n * You can pass either an animation key, or an animation configuration object for more control over the playback.\r\n *\r\n * @function Phaser.Actions.PlayAnimation\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - An array of Game Objects. The contents of this array are updated by this Action.\r\n * @param {(string|Phaser.Animations.Animation|Phaser.Types.Animations.PlayAnimationConfig)} key - The string-based key of the animation to play, or an Animation instance, or a `PlayAnimationConfig` object.\r\n * @param {boolean} [ignoreIfPlaying=false] - If this animation is already playing then ignore this call.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of Game Objects that was passed to this Action.\r\n */\r\nvar PlayAnimation = function (items, key, ignoreIfPlaying)\r\n{\r\n for (var i = 0; i < items.length; i++)\r\n {\r\n var gameObject = items[i];\r\n\r\n if (gameObject.anims)\r\n {\r\n gameObject.anims.play(key, ignoreIfPlaying);\r\n }\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = PlayAnimation;\r\n\n\n/***/ }),\n\n/***/ 66979:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have a public property as defined in `key`,\r\n * and then adds the given value to it.\r\n *\r\n * The optional `step` property is applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `PropertyValueInc(group.getChildren(), key, value, step)`\r\n *\r\n * @function Phaser.Actions.PropertyValueInc\r\n * @since 3.3.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {string} key - The property to be updated.\r\n * @param {number} value - The amount to be added to the property.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar PropertyValueInc = function (items, key, value, step, index, direction)\r\n{\r\n if (step === undefined) { step = 0; }\r\n if (index === undefined) { index = 0; }\r\n if (direction === undefined) { direction = 1; }\r\n\r\n var i;\r\n var t = 0;\r\n var end = items.length;\r\n\r\n if (direction === 1)\r\n {\r\n // Start to End\r\n for (i = index; i < end; i++)\r\n {\r\n items[i][key] += value + (t * step);\r\n t++;\r\n }\r\n }\r\n else\r\n {\r\n // End to Start\r\n for (i = index; i >= 0; i--)\r\n {\r\n items[i][key] += value + (t * step);\r\n t++;\r\n }\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = PropertyValueInc;\r\n\n\n/***/ }),\n\n/***/ 43967:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have a public property as defined in `key`,\r\n * and then sets it to the given value.\r\n *\r\n * The optional `step` property is applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `PropertyValueSet(group.getChildren(), key, value, step)`\r\n *\r\n * @function Phaser.Actions.PropertyValueSet\r\n * @since 3.3.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {string} key - The property to be updated.\r\n * @param {number} value - The amount to set the property to.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar PropertyValueSet = function (items, key, value, step, index, direction)\r\n{\r\n if (step === undefined) { step = 0; }\r\n if (index === undefined) { index = 0; }\r\n if (direction === undefined) { direction = 1; }\r\n\r\n var i;\r\n var t = 0;\r\n var end = items.length;\r\n\r\n if (direction === 1)\r\n {\r\n // Start to End\r\n for (i = index; i < end; i++)\r\n {\r\n items[i][key] = value + (t * step);\r\n t++;\r\n }\r\n }\r\n else\r\n {\r\n // End to Start\r\n for (i = index; i >= 0; i--)\r\n {\r\n items[i][key] = value + (t * step);\r\n t++;\r\n }\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = PropertyValueSet;\r\n\n\n/***/ }),\n\n/***/ 88926:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Random = __webpack_require__(28176);\r\n\r\n/**\r\n * Takes an array of Game Objects and positions them at random locations within the Circle.\r\n * \r\n * If you wish to pass a `Phaser.GameObjects.Circle` Shape to this function, you should pass its `geom` property.\r\n *\r\n * @function Phaser.Actions.RandomCircle\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - An array of Game Objects. The contents of this array are updated by this Action.\r\n * @param {Phaser.Geom.Circle} circle - The Circle to position the Game Objects within.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of Game Objects that was passed to this Action.\r\n */\r\nvar RandomCircle = function (items, circle)\r\n{\r\n for (var i = 0; i < items.length; i++)\r\n {\r\n Random(circle, items[i]);\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = RandomCircle;\r\n\n\n/***/ }),\n\n/***/ 33286:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Random = __webpack_require__(24820);\r\n\r\n/**\r\n * Takes an array of Game Objects and positions them at random locations within the Ellipse.\r\n * \r\n * If you wish to pass a `Phaser.GameObjects.Ellipse` Shape to this function, you should pass its `geom` property.\r\n *\r\n * @function Phaser.Actions.RandomEllipse\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - An array of Game Objects. The contents of this array are updated by this Action.\r\n * @param {Phaser.Geom.Ellipse} ellipse - The Ellipse to position the Game Objects within.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of Game Objects that was passed to this Action.\r\n */\r\nvar RandomEllipse = function (items, ellipse)\r\n{\r\n for (var i = 0; i < items.length; i++)\r\n {\r\n Random(ellipse, items[i]);\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = RandomEllipse;\r\n\n\n/***/ }),\n\n/***/ 96000:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Random = __webpack_require__(65822);\r\n\r\n/**\r\n * Takes an array of Game Objects and positions them at random locations on the Line.\r\n * \r\n * If you wish to pass a `Phaser.GameObjects.Line` Shape to this function, you should pass its `geom` property.\r\n *\r\n * @function Phaser.Actions.RandomLine\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - An array of Game Objects. The contents of this array are updated by this Action.\r\n * @param {Phaser.Geom.Line} line - The Line to position the Game Objects randomly on.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of Game Objects that was passed to this Action.\r\n */\r\nvar RandomLine = function (items, line)\r\n{\r\n for (var i = 0; i < items.length; i++)\r\n {\r\n Random(line, items[i]);\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = RandomLine;\r\n\n\n/***/ }),\n\n/***/ 28789:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Random = __webpack_require__(26597);\r\n\r\n/**\r\n * Takes an array of Game Objects and positions them at random locations within the Rectangle.\r\n *\r\n * @function Phaser.Actions.RandomRectangle\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - An array of Game Objects. The contents of this array are updated by this Action.\r\n * @param {Phaser.Geom.Rectangle} rect - The Rectangle to position the Game Objects within.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of Game Objects that was passed to this Action.\r\n */\r\nvar RandomRectangle = function (items, rect)\r\n{\r\n for (var i = 0; i < items.length; i++)\r\n {\r\n Random(rect, items[i]);\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = RandomRectangle;\r\n\n\n/***/ }),\n\n/***/ 97154:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Random = __webpack_require__(90260);\r\n\r\n/**\r\n * Takes an array of Game Objects and positions them at random locations within the Triangle.\r\n * \r\n * If you wish to pass a `Phaser.GameObjects.Triangle` Shape to this function, you should pass its `geom` property.\r\n *\r\n * @function Phaser.Actions.RandomTriangle\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - An array of Game Objects. The contents of this array are updated by this Action.\r\n * @param {Phaser.Geom.Triangle} triangle - The Triangle to position the Game Objects within.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of Game Objects that was passed to this Action.\r\n */\r\nvar RandomTriangle = function (items, triangle)\r\n{\r\n for (var i = 0; i < items.length; i++)\r\n {\r\n Random(triangle, items[i]);\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = RandomTriangle;\r\n\n\n/***/ }),\n\n/***/ 20510:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueInc = __webpack_require__(66979);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have a public `rotation` property,\r\n * and then adds the given value to each of their `rotation` properties.\r\n *\r\n * The optional `step` property is applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `Rotate(group.getChildren(), value, step)`\r\n *\r\n * @function Phaser.Actions.Rotate\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} value - The amount to be added to the `rotation` property (in radians).\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar Rotate = function (items, value, step, index, direction)\r\n{\r\n return PropertyValueInc(items, 'rotation', value, step, index, direction);\r\n};\r\n\r\nmodule.exports = Rotate;\r\n\n\n/***/ }),\n\n/***/ 91051:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar RotateAroundDistance = __webpack_require__(1163);\r\nvar DistanceBetween = __webpack_require__(20339);\r\n\r\n/**\r\n * Rotates each item around the given point by the given angle.\r\n *\r\n * @function Phaser.Actions.RotateAround\r\n * @since 3.0.0\r\n * @see Phaser.Math.RotateAroundDistance\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - An array of Game Objects. The contents of this array are updated by this Action.\r\n * @param {object} point - Any object with public `x` and `y` properties.\r\n * @param {number} angle - The angle to rotate by, in radians.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of Game Objects that was passed to this Action.\r\n */\r\nvar RotateAround = function (items, point, angle)\r\n{\r\n var x = point.x;\r\n var y = point.y;\r\n\r\n for (var i = 0; i < items.length; i++)\r\n {\r\n var item = items[i];\r\n\r\n RotateAroundDistance(item, x, y, angle, Math.max(1, DistanceBetween(item.x, item.y, x, y)));\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = RotateAround;\r\n\n\n/***/ }),\n\n/***/ 76332:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar MathRotateAroundDistance = __webpack_require__(1163);\r\n\r\n/**\r\n * Rotates an array of Game Objects around a point by the given angle and distance.\r\n *\r\n * @function Phaser.Actions.RotateAroundDistance\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - An array of Game Objects. The contents of this array are updated by this Action.\r\n * @param {object} point - Any object with public `x` and `y` properties.\r\n * @param {number} angle - The angle to rotate by, in radians.\r\n * @param {number} distance - The distance from the point of rotation in pixels.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of Game Objects that was passed to this Action.\r\n */\r\nvar RotateAroundDistance = function (items, point, angle, distance)\r\n{\r\n var x = point.x;\r\n var y = point.y;\r\n\r\n // There's nothing to do\r\n if (distance === 0)\r\n {\r\n return items;\r\n }\r\n\r\n for (var i = 0; i < items.length; i++)\r\n {\r\n MathRotateAroundDistance(items[i], x, y, angle, distance);\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = RotateAroundDistance;\r\n\n\n/***/ }),\n\n/***/ 61619:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueInc = __webpack_require__(66979);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have a public `scaleX` property,\r\n * and then adds the given value to each of their `scaleX` properties.\r\n *\r\n * The optional `step` property is applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `ScaleX(group.getChildren(), value, step)`\r\n *\r\n * @function Phaser.Actions.ScaleX\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} value - The amount to be added to the `scaleX` property.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar ScaleX = function (items, value, step, index, direction)\r\n{\r\n return PropertyValueInc(items, 'scaleX', value, step, index, direction);\r\n};\r\n\r\nmodule.exports = ScaleX;\r\n\n\n/***/ }),\n\n/***/ 94868:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueInc = __webpack_require__(66979);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have public `scaleX` and `scaleY` properties,\r\n * and then adds the given value to each of them.\r\n *\r\n * The optional `stepX` and `stepY` properties are applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `ScaleXY(group.getChildren(), scaleX, scaleY, stepX, stepY)`\r\n *\r\n * @function Phaser.Actions.ScaleXY\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} scaleX - The amount to be added to the `scaleX` property.\r\n * @param {number} [scaleY] - The amount to be added to the `scaleY` property. If `undefined` or `null` it uses the `scaleX` value.\r\n * @param {number} [stepX=0] - This is added to the `scaleX` amount, multiplied by the iteration counter.\r\n * @param {number} [stepY=0] - This is added to the `scaleY` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar ScaleXY = function (items, scaleX, scaleY, stepX, stepY, index, direction)\r\n{\r\n if (scaleY === undefined || scaleY === null) { scaleY = scaleX; }\r\n\r\n PropertyValueInc(items, 'scaleX', scaleX, stepX, index, direction);\r\n\r\n return PropertyValueInc(items, 'scaleY', scaleY, stepY, index, direction);\r\n};\r\n\r\nmodule.exports = ScaleXY;\r\n\n\n/***/ }),\n\n/***/ 95532:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueInc = __webpack_require__(66979);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have a public `scaleY` property,\r\n * and then adds the given value to each of their `scaleY` properties.\r\n *\r\n * The optional `step` property is applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `ScaleY(group.getChildren(), value, step)`\r\n *\r\n * @function Phaser.Actions.ScaleY\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} value - The amount to be added to the `scaleY` property.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar ScaleY = function (items, value, step, index, direction)\r\n{\r\n return PropertyValueInc(items, 'scaleY', value, step, index, direction);\r\n};\r\n\r\nmodule.exports = ScaleY;\r\n\n\n/***/ }),\n\n/***/ 8689:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueSet = __webpack_require__(43967);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have the public property `alpha`\r\n * and then sets it to the given value.\r\n *\r\n * The optional `step` property is applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `SetAlpha(group.getChildren(), value, step)`\r\n *\r\n * @function Phaser.Actions.SetAlpha\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} value - The amount to set the property to.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar SetAlpha = function (items, value, step, index, direction)\r\n{\r\n return PropertyValueSet(items, 'alpha', value, step, index, direction);\r\n};\r\n\r\nmodule.exports = SetAlpha;\r\n\n\n/***/ }),\n\n/***/ 2645:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueSet = __webpack_require__(43967);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have the public property `blendMode`\r\n * and then sets it to the given value.\r\n *\r\n * To use this with a Group: `SetBlendMode(group.getChildren(), value)`\r\n *\r\n * @function Phaser.Actions.SetBlendMode\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {(Phaser.BlendModes|string|number)} value - The Blend Mode to be set.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar SetBlendMode = function (items, value, index, direction)\r\n{\r\n return PropertyValueSet(items, 'blendMode', value, 0, index, direction);\r\n};\r\n\r\nmodule.exports = SetBlendMode;\r\n\n\n/***/ }),\n\n/***/ 32372:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueSet = __webpack_require__(43967);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have the public property `depth`\r\n * and then sets it to the given value.\r\n *\r\n * The optional `step` property is applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `SetDepth(group.getChildren(), value, step)`\r\n *\r\n * @function Phaser.Actions.SetDepth\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} value - The amount to set the property to.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar SetDepth = function (items, value, step, index, direction)\r\n{\r\n return PropertyValueSet(items, 'depth', value, step, index, direction);\r\n};\r\n\r\nmodule.exports = SetDepth;\r\n\n\n/***/ }),\n\n/***/ 85373:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Passes all provided Game Objects to the Input Manager to enable them for input with identical areas and callbacks.\r\n *\r\n * @see {@link Phaser.GameObjects.GameObject#setInteractive}\r\n *\r\n * @function Phaser.Actions.SetHitArea\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - An array of Game Objects. The contents of this array are updated by this Action.\r\n * @param {(Phaser.Types.Input.InputConfiguration|any)} [hitArea] - Either an input configuration object, or a geometric shape that defines the hit area for the Game Object. If not given it will try to create a Rectangle based on the texture frame.\r\n * @param {Phaser.Types.Input.HitAreaCallback} [callback] - The callback that determines if the pointer is within the Hit Area shape or not. If you provide a shape you must also provide a callback.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of Game Objects that was passed to this Action.\r\n */\r\nvar SetHitArea = function (items, hitArea, hitAreaCallback)\r\n{\r\n for (var i = 0; i < items.length; i++)\r\n {\r\n items[i].setInteractive(hitArea, hitAreaCallback);\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = SetHitArea;\r\n\n\n/***/ }),\n\n/***/ 81583:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueSet = __webpack_require__(43967);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have the public properties `originX` and `originY`\r\n * and then sets them to the given values.\r\n *\r\n * The optional `stepX` and `stepY` properties are applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `SetOrigin(group.getChildren(), originX, originY, stepX, stepY)`\r\n *\r\n * @function Phaser.Actions.SetOrigin\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} originX - The amount to set the `originX` property to.\r\n * @param {number} [originY] - The amount to set the `originY` property to. If `undefined` or `null` it uses the `originX` value.\r\n * @param {number} [stepX=0] - This is added to the `originX` amount, multiplied by the iteration counter.\r\n * @param {number} [stepY=0] - This is added to the `originY` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar SetOrigin = function (items, originX, originY, stepX, stepY, index, direction)\r\n{\r\n if (originY === undefined || originY === null) { originY = originX; }\r\n\r\n PropertyValueSet(items, 'originX', originX, stepX, index, direction);\r\n PropertyValueSet(items, 'originY', originY, stepY, index, direction);\r\n\r\n items.forEach(function (item)\r\n {\r\n item.updateDisplayOrigin();\r\n });\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = SetOrigin;\r\n\n\n/***/ }),\n\n/***/ 79939:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueSet = __webpack_require__(43967);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have the public property `rotation`\r\n * and then sets it to the given value.\r\n *\r\n * The optional `step` property is applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `SetRotation(group.getChildren(), value, step)`\r\n *\r\n * @function Phaser.Actions.SetRotation\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} value - The amount to set the property to.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar SetRotation = function (items, value, step, index, direction)\r\n{\r\n return PropertyValueSet(items, 'rotation', value, step, index, direction);\r\n};\r\n\r\nmodule.exports = SetRotation;\r\n\n\n/***/ }),\n\n/***/ 2699:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueSet = __webpack_require__(43967);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have the public properties `scaleX` and `scaleY`\r\n * and then sets them to the given values.\r\n *\r\n * The optional `stepX` and `stepY` properties are applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `SetScale(group.getChildren(), scaleX, scaleY, stepX, stepY)`\r\n *\r\n * @function Phaser.Actions.SetScale\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} scaleX - The amount to set the `scaleX` property to.\r\n * @param {number} [scaleY] - The amount to set the `scaleY` property to. If `undefined` or `null` it uses the `scaleX` value.\r\n * @param {number} [stepX=0] - This is added to the `scaleX` amount, multiplied by the iteration counter.\r\n * @param {number} [stepY=0] - This is added to the `scaleY` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar SetScale = function (items, scaleX, scaleY, stepX, stepY, index, direction)\r\n{\r\n if (scaleY === undefined || scaleY === null) { scaleY = scaleX; }\r\n\r\n PropertyValueSet(items, 'scaleX', scaleX, stepX, index, direction);\r\n\r\n return PropertyValueSet(items, 'scaleY', scaleY, stepY, index, direction);\r\n};\r\n\r\nmodule.exports = SetScale;\r\n\n\n/***/ }),\n\n/***/ 98739:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueSet = __webpack_require__(43967);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have the public property `scaleX`\r\n * and then sets it to the given value.\r\n *\r\n * The optional `step` property is applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `SetScaleX(group.getChildren(), value, step)`\r\n *\r\n * @function Phaser.Actions.SetScaleX\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} value - The amount to set the property to.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar SetScaleX = function (items, value, step, index, direction)\r\n{\r\n return PropertyValueSet(items, 'scaleX', value, step, index, direction);\r\n};\r\n\r\nmodule.exports = SetScaleX;\r\n\n\n/***/ }),\n\n/***/ 98476:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueSet = __webpack_require__(43967);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have the public property `scaleY`\r\n * and then sets it to the given value.\r\n *\r\n * The optional `step` property is applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `SetScaleY(group.getChildren(), value, step)`\r\n *\r\n * @function Phaser.Actions.SetScaleY\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} value - The amount to set the property to.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar SetScaleY = function (items, value, step, index, direction)\r\n{\r\n return PropertyValueSet(items, 'scaleY', value, step, index, direction);\r\n};\r\n\r\nmodule.exports = SetScaleY;\r\n\n\n/***/ }),\n\n/***/ 6207:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueSet = __webpack_require__(43967);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have the public properties `scrollFactorX` and `scrollFactorY`\r\n * and then sets them to the given values.\r\n *\r\n * The optional `stepX` and `stepY` properties are applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `SetScrollFactor(group.getChildren(), scrollFactorX, scrollFactorY, stepX, stepY)`\r\n *\r\n * @function Phaser.Actions.SetScrollFactor\r\n * @since 3.21.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} scrollFactorX - The amount to set the `scrollFactorX` property to.\r\n * @param {number} [scrollFactorY] - The amount to set the `scrollFactorY` property to. If `undefined` or `null` it uses the `scrollFactorX` value.\r\n * @param {number} [stepX=0] - This is added to the `scrollFactorX` amount, multiplied by the iteration counter.\r\n * @param {number} [stepY=0] - This is added to the `scrollFactorY` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar SetScrollFactor = function (items, scrollFactorX, scrollFactorY, stepX, stepY, index, direction)\r\n{\r\n if (scrollFactorY === undefined || scrollFactorY === null) { scrollFactorY = scrollFactorX; }\r\n\r\n PropertyValueSet(items, 'scrollFactorX', scrollFactorX, stepX, index, direction);\r\n\r\n return PropertyValueSet(items, 'scrollFactorY', scrollFactorY, stepY, index, direction);\r\n};\r\n\r\nmodule.exports = SetScrollFactor;\r\n\n\n/***/ }),\n\n/***/ 6607:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueSet = __webpack_require__(43967);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have the public property `scrollFactorX`\r\n * and then sets it to the given value.\r\n *\r\n * The optional `step` property is applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `SetScrollFactorX(group.getChildren(), value, step)`\r\n *\r\n * @function Phaser.Actions.SetScrollFactorX\r\n * @since 3.21.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} value - The amount to set the property to.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar SetScrollFactorX = function (items, value, step, index, direction)\r\n{\r\n return PropertyValueSet(items, 'scrollFactorX', value, step, index, direction);\r\n};\r\n\r\nmodule.exports = SetScrollFactorX;\r\n\n\n/***/ }),\n\n/***/ 72248:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueSet = __webpack_require__(43967);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have the public property `scrollFactorY`\r\n * and then sets it to the given value.\r\n *\r\n * The optional `step` property is applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `SetScrollFactorY(group.getChildren(), value, step)`\r\n *\r\n * @function Phaser.Actions.SetScrollFactorY\r\n * @since 3.21.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} value - The amount to set the property to.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar SetScrollFactorY = function (items, value, step, index, direction)\r\n{\r\n return PropertyValueSet(items, 'scrollFactorY', value, step, index, direction);\r\n};\r\n\r\nmodule.exports = SetScrollFactorY;\r\n\n\n/***/ }),\n\n/***/ 14036:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have the public method setTint() and then updates it to the given value(s). You can specify tint color per corner or provide only one color value for `topLeft` parameter, in which case whole item will be tinted with that color.\r\n *\r\n * @function Phaser.Actions.SetTint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - An array of Game Objects. The contents of this array are updated by this Action.\r\n * @param {number} topLeft - The tint being applied to top-left corner of item. If other parameters are given no value, this tint will be applied to whole item.\r\n * @param {number} [topRight] - The tint to be applied to top-right corner of item.\r\n * @param {number} [bottomLeft] - The tint to be applied to the bottom-left corner of item.\r\n * @param {number} [bottomRight] - The tint to be applied to the bottom-right corner of item.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of Game Objects that was passed to this Action.\r\n */\r\nvar SetTint = function (items, topLeft, topRight, bottomLeft, bottomRight)\r\n{\r\n for (var i = 0; i < items.length; i++)\r\n {\r\n items[i].setTint(topLeft, topRight, bottomLeft, bottomRight);\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = SetTint;\r\n\n\n/***/ }),\n\n/***/ 50159:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueSet = __webpack_require__(43967);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have the public property `visible`\r\n * and then sets it to the given value.\r\n *\r\n * To use this with a Group: `SetVisible(group.getChildren(), value)`\r\n *\r\n * @function Phaser.Actions.SetVisible\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {boolean} value - The value to set the property to.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar SetVisible = function (items, value, index, direction)\r\n{\r\n return PropertyValueSet(items, 'visible', value, 0, index, direction);\r\n};\r\n\r\nmodule.exports = SetVisible;\r\n\n\n/***/ }),\n\n/***/ 77597:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueSet = __webpack_require__(43967);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have the public property `x`\r\n * and then sets it to the given value.\r\n *\r\n * The optional `step` property is applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `SetX(group.getChildren(), value, step)`\r\n *\r\n * @function Phaser.Actions.SetX\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} value - The amount to set the property to.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar SetX = function (items, value, step, index, direction)\r\n{\r\n return PropertyValueSet(items, 'x', value, step, index, direction);\r\n};\r\n\r\nmodule.exports = SetX;\r\n\n\n/***/ }),\n\n/***/ 83194:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueSet = __webpack_require__(43967);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have the public properties `x` and `y`\r\n * and then sets them to the given values.\r\n *\r\n * The optional `stepX` and `stepY` properties are applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `SetXY(group.getChildren(), x, y, stepX, stepY)`\r\n *\r\n * @function Phaser.Actions.SetXY\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} x - The amount to set the `x` property to.\r\n * @param {number} [y=x] - The amount to set the `y` property to. If `undefined` or `null` it uses the `x` value.\r\n * @param {number} [stepX=0] - This is added to the `x` amount, multiplied by the iteration counter.\r\n * @param {number} [stepY=0] - This is added to the `y` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar SetXY = function (items, x, y, stepX, stepY, index, direction)\r\n{\r\n if (y === undefined || y === null) { y = x; }\r\n\r\n PropertyValueSet(items, 'x', x, stepX, index, direction);\r\n\r\n return PropertyValueSet(items, 'y', y, stepY, index, direction);\r\n};\r\n\r\nmodule.exports = SetXY;\r\n\n\n/***/ }),\n\n/***/ 67678:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PropertyValueSet = __webpack_require__(43967);\r\n\r\n/**\r\n * Takes an array of Game Objects, or any objects that have the public property `y`\r\n * and then sets it to the given value.\r\n *\r\n * The optional `step` property is applied incrementally, multiplied by each item in the array.\r\n *\r\n * To use this with a Group: `SetY(group.getChildren(), value, step)`\r\n *\r\n * @function Phaser.Actions.SetY\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - The array of items to be updated by this action.\r\n * @param {number} value - The amount to set the property to.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of objects that were passed to this Action.\r\n */\r\nvar SetY = function (items, value, step, index, direction)\r\n{\r\n return PropertyValueSet(items, 'y', value, step, index, direction);\r\n};\r\n\r\nmodule.exports = SetY;\r\n\n\n/***/ }),\n\n/***/ 35850:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * Takes an array of items, such as Game Objects, or any objects with public `x` and\r\n * `y` properties and then iterates through them. As this function iterates, it moves\r\n * the position of the current element to be that of the previous entry in the array.\r\n * This repeats until all items have been moved.\r\n *\r\n * The direction controls the order of iteration. A value of 0 (the default) assumes\r\n * that the final item in the array is the 'head' item.\r\n *\r\n * A direction value of 1 assumes that the first item in the array is the 'head' item.\r\n *\r\n * The position of the 'head' item is set to the x/y values given to this function.\r\n * Every other item in the array is then updated, in sequence, to be that of the\r\n * previous (or next) entry in the array.\r\n *\r\n * The final x/y coords are returned, or set in the 'output' Vector2.\r\n *\r\n * Think of it as being like the game Snake, where the 'head' is moved and then\r\n * each body piece is moved into the space of the previous piece.\r\n *\r\n * @function Phaser.Actions.ShiftPosition\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items]\r\n * @generic {Phaser.Math.Vector2} O - [output,$return]\r\n *\r\n * @param {(Phaser.Types.Math.Vector2Like[]|Phaser.GameObjects.GameObject[])} items - An array of Game Objects, or objects with public x and y positions. The contents of this array are updated by this Action.\r\n * @param {number} x - The x coordinate to place the head item at.\r\n * @param {number} y - The y coordinate to place the head item at.\r\n * @param {number} [direction=0] - The iteration direction. 0 = first to last and 1 = last to first.\r\n * @param {Phaser.Types.Math.Vector2Like} [output] - An optional Vec2Like object to store the final position in.\r\n *\r\n * @return {Phaser.Types.Math.Vector2Like} The output vector.\r\n */\r\nvar ShiftPosition = function (items, x, y, direction, output)\r\n{\r\n if (direction === undefined) { direction = 0; }\r\n if (output === undefined) { output = new Vector2(); }\r\n\r\n var px;\r\n var py;\r\n var len = items.length;\r\n\r\n if (len === 1)\r\n {\r\n px = items[0].x;\r\n py = items[0].y;\r\n\r\n items[0].x = x;\r\n items[0].y = y;\r\n }\r\n else\r\n {\r\n var i = 1;\r\n var pos = 0;\r\n\r\n if (direction === 0)\r\n {\r\n pos = len - 1;\r\n i = len - 2;\r\n }\r\n\r\n px = items[pos].x;\r\n py = items[pos].y;\r\n\r\n // Update the head item to the new x/y coordinates\r\n items[pos].x = x;\r\n items[pos].y = y;\r\n\r\n for (var c = 0; c < len; c++)\r\n {\r\n if (i >= len || i === -1)\r\n {\r\n continue;\r\n }\r\n\r\n // Current item\r\n var cur = items[i];\r\n\r\n // Get current item x/y, to be passed to the next item in the list\r\n var cx = cur.x;\r\n var cy = cur.y;\r\n\r\n // Set current item to the previous items x/y\r\n cur.x = px;\r\n cur.y = py;\r\n\r\n // Set current as previous\r\n px = cx;\r\n py = cy;\r\n\r\n if (direction === 0)\r\n {\r\n i--;\r\n }\r\n else\r\n {\r\n i++;\r\n }\r\n }\r\n }\r\n\r\n // Return the final set of coordinates as they're effectively lost from the shift and may be needed\r\n\r\n output.x = px;\r\n output.y = py;\r\n\r\n return output;\r\n};\r\n\r\nmodule.exports = ShiftPosition;\r\n\n\n/***/ }),\n\n/***/ 8628:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar ArrayShuffle = __webpack_require__(33680);\r\n\r\n/**\r\n * Shuffles the array in place. The shuffled array is both modified and returned.\r\n *\r\n * @function Phaser.Actions.Shuffle\r\n * @since 3.0.0\r\n * @see Phaser.Utils.Array.Shuffle\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - An array of Game Objects. The contents of this array are updated by this Action.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of Game Objects that was passed to this Action.\r\n */\r\nvar Shuffle = function (items)\r\n{\r\n return ArrayShuffle(items);\r\n};\r\n\r\nmodule.exports = Shuffle;\r\n\n\n/***/ }),\n\n/***/ 21837:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar MathSmoothStep = __webpack_require__(7602);\r\n\r\n/**\r\n * Smoothstep is a sigmoid-like interpolation and clamping function.\r\n *\r\n * The function depends on three parameters, the input x, the \"left edge\"\r\n * and the \"right edge\", with the left edge being assumed smaller than the right edge.\r\n *\r\n * The function receives a real number x as an argument and returns 0 if x is less than\r\n * or equal to the left edge, 1 if x is greater than or equal to the right edge, and smoothly\r\n * interpolates, using a Hermite polynomial, between 0 and 1 otherwise. The slope of the\r\n * smoothstep function is zero at both edges.\r\n *\r\n * This is convenient for creating a sequence of transitions using smoothstep to interpolate\r\n * each segment as an alternative to using more sophisticated or expensive interpolation techniques.\r\n *\r\n * @function Phaser.Actions.SmoothStep\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - An array of Game Objects. The contents of this array are updated by this Action.\r\n * @param {string} property - The property of the Game Object to interpolate.\r\n * @param {number} min - The minimum interpolation value.\r\n * @param {number} max - The maximum interpolation value.\r\n * @param {boolean} [inc=false] - Should the property value be incremented (`true`) or set (`false`)?\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of Game Objects that was passed to this Action.\r\n */\r\nvar SmoothStep = function (items, property, min, max, inc)\r\n{\r\n if (inc === undefined) { inc = false; }\r\n\r\n var step = Math.abs(max - min) / items.length;\r\n var i;\r\n\r\n if (inc)\r\n {\r\n for (i = 0; i < items.length; i++)\r\n {\r\n items[i][property] += MathSmoothStep(i * step, min, max);\r\n }\r\n }\r\n else\r\n {\r\n for (i = 0; i < items.length; i++)\r\n {\r\n items[i][property] = MathSmoothStep(i * step, min, max);\r\n }\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = SmoothStep;\r\n\n\n/***/ }),\n\n/***/ 21910:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar MathSmootherStep = __webpack_require__(54261);\r\n\r\n/**\r\n * Smootherstep is a sigmoid-like interpolation and clamping function.\r\n * \r\n * The function depends on three parameters, the input x, the \"left edge\" and the \"right edge\", with the left edge being assumed smaller than the right edge. The function receives a real number x as an argument and returns 0 if x is less than or equal to the left edge, 1 if x is greater than or equal to the right edge, and smoothly interpolates, using a Hermite polynomial, between 0 and 1 otherwise. The slope of the smoothstep function is zero at both edges. This is convenient for creating a sequence of transitions using smoothstep to interpolate each segment as an alternative to using more sophisticated or expensive interpolation techniques.\r\n *\r\n * @function Phaser.Actions.SmootherStep\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - An array of Game Objects. The contents of this array are updated by this Action.\r\n * @param {string} property - The property of the Game Object to interpolate.\r\n * @param {number} min - The minimum interpolation value.\r\n * @param {number} max - The maximum interpolation value.\r\n * @param {boolean} [inc=false] - Should the values be incremented? `true` or set (`false`)\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of Game Objects that was passed to this Action.\r\n */\r\nvar SmootherStep = function (items, property, min, max, inc)\r\n{\r\n if (inc === undefined) { inc = false; }\r\n\r\n var step = Math.abs(max - min) / items.length;\r\n var i;\r\n\r\n if (inc)\r\n {\r\n for (i = 0; i < items.length; i++)\r\n {\r\n items[i][property] += MathSmootherStep(i * step, min, max);\r\n }\r\n }\r\n else\r\n {\r\n for (i = 0; i < items.length; i++)\r\n {\r\n items[i][property] = MathSmootherStep(i * step, min, max);\r\n }\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = SmootherStep;\r\n\n\n/***/ }),\n\n/***/ 62054:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Takes an array of Game Objects and then modifies their `property` so the value equals, or is incremented, by the\r\n * calculated spread value.\r\n * \r\n * The spread value is derived from the given `min` and `max` values and the total number of items in the array.\r\n * \r\n * For example, to cause an array of Sprites to change in alpha from 0 to 1 you could call:\r\n * \r\n * ```javascript\r\n * Phaser.Actions.Spread(itemsArray, 'alpha', 0, 1);\r\n * ```\r\n *\r\n * @function Phaser.Actions.Spread\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - An array of Game Objects. The contents of this array are updated by this Action.\r\n * @param {string} property - The property of the Game Object to spread.\r\n * @param {number} min - The minimum value.\r\n * @param {number} max - The maximum value.\r\n * @param {boolean} [inc=false] - Should the values be incremented? `true` or set (`false`)\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of Game Objects that were passed to this Action.\r\n */\r\nvar Spread = function (items, property, min, max, inc)\r\n{\r\n if (inc === undefined) { inc = false; }\r\n if (items.length === 0) { return items; }\r\n if (items.length === 1) // if only one item put it at the center\r\n {\r\n if (inc)\r\n {\r\n items[0][property] += (max + min) / 2;\r\n }\r\n else\r\n {\r\n items[0][property] = (max + min) / 2;\r\n }\r\n\r\n return items;\r\n }\r\n\r\n var step = Math.abs(max - min) / (items.length - 1);\r\n var i;\r\n\r\n if (inc)\r\n {\r\n for (i = 0; i < items.length; i++)\r\n {\r\n items[i][property] += i * step + min;\r\n }\r\n }\r\n else\r\n {\r\n for (i = 0; i < items.length; i++)\r\n {\r\n items[i][property] = i * step + min;\r\n }\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = Spread;\r\n\n\n/***/ }),\n\n/***/ 79815:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Takes an array of Game Objects and toggles the visibility of each one.\r\n * Those previously `visible = false` will become `visible = true`, and vice versa.\r\n *\r\n * @function Phaser.Actions.ToggleVisible\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - An array of Game Objects. The contents of this array are updated by this Action.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of Game Objects that was passed to this Action.\r\n */\r\nvar ToggleVisible = function (items)\r\n{\r\n for (var i = 0; i < items.length; i++)\r\n {\r\n items[i].visible = !items[i].visible;\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = ToggleVisible;\r\n\n\n/***/ }),\n\n/***/ 39665:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author samme \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Wrap = __webpack_require__(15994);\r\n\r\n/**\r\n * Iterates through the given array and makes sure that each objects x and y\r\n * properties are wrapped to keep them contained within the given Rectangles\r\n * area.\r\n *\r\n * @function Phaser.Actions.WrapInRectangle\r\n * @since 3.0.0\r\n * @see Phaser.Math.Wrap\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(array|Phaser.GameObjects.GameObject[])} items - An array of Game Objects. The contents of this array are updated by this Action.\r\n * @param {Phaser.Geom.Rectangle} rect - The rectangle which the objects will be wrapped to remain within.\r\n * @param {number} [padding=0] - An amount added to each side of the rectangle during the operation.\r\n *\r\n * @return {(array|Phaser.GameObjects.GameObject[])} The array of Game Objects that was passed to this Action.\r\n */\r\nvar WrapInRectangle = function (items, rect, padding)\r\n{\r\n if (padding === undefined)\r\n {\r\n padding = 0;\r\n }\r\n\r\n for (var i = 0; i < items.length; i++)\r\n {\r\n var item = items[i];\r\n\r\n item.x = Wrap(item.x, rect.left - padding, rect.right + padding);\r\n item.y = Wrap(item.y, rect.top - padding, rect.bottom + padding);\r\n }\r\n\r\n return items;\r\n};\r\n\r\nmodule.exports = WrapInRectangle;\r\n\n\n/***/ }),\n\n/***/ 61061:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Actions\r\n */\r\n\r\nmodule.exports = {\r\n\r\n AlignTo: __webpack_require__(11517),\r\n Angle: __webpack_require__(80318),\r\n Call: __webpack_require__(60757),\r\n GetFirst: __webpack_require__(69927),\r\n GetLast: __webpack_require__(32265),\r\n GridAlign: __webpack_require__(94420),\r\n IncAlpha: __webpack_require__(41721),\r\n IncX: __webpack_require__(67285),\r\n IncXY: __webpack_require__(9074),\r\n IncY: __webpack_require__(75222),\r\n PlaceOnCircle: __webpack_require__(22983),\r\n PlaceOnEllipse: __webpack_require__(95253),\r\n PlaceOnLine: __webpack_require__(88505),\r\n PlaceOnRectangle: __webpack_require__(41346),\r\n PlaceOnTriangle: __webpack_require__(11575),\r\n PlayAnimation: __webpack_require__(29953),\r\n PropertyValueInc: __webpack_require__(66979),\r\n PropertyValueSet: __webpack_require__(43967),\r\n RandomCircle: __webpack_require__(88926),\r\n RandomEllipse: __webpack_require__(33286),\r\n RandomLine: __webpack_require__(96000),\r\n RandomRectangle: __webpack_require__(28789),\r\n RandomTriangle: __webpack_require__(97154),\r\n Rotate: __webpack_require__(20510),\r\n RotateAround: __webpack_require__(91051),\r\n RotateAroundDistance: __webpack_require__(76332),\r\n ScaleX: __webpack_require__(61619),\r\n ScaleXY: __webpack_require__(94868),\r\n ScaleY: __webpack_require__(95532),\r\n SetAlpha: __webpack_require__(8689),\r\n SetBlendMode: __webpack_require__(2645),\r\n SetDepth: __webpack_require__(32372),\r\n SetHitArea: __webpack_require__(85373),\r\n SetOrigin: __webpack_require__(81583),\r\n SetRotation: __webpack_require__(79939),\r\n SetScale: __webpack_require__(2699),\r\n SetScaleX: __webpack_require__(98739),\r\n SetScaleY: __webpack_require__(98476),\r\n SetScrollFactor: __webpack_require__(6207),\r\n SetScrollFactorX: __webpack_require__(6607),\r\n SetScrollFactorY: __webpack_require__(72248),\r\n SetTint: __webpack_require__(14036),\r\n SetVisible: __webpack_require__(50159),\r\n SetX: __webpack_require__(77597),\r\n SetXY: __webpack_require__(83194),\r\n SetY: __webpack_require__(67678),\r\n ShiftPosition: __webpack_require__(35850),\r\n Shuffle: __webpack_require__(8628),\r\n SmootherStep: __webpack_require__(21910),\r\n SmoothStep: __webpack_require__(21837),\r\n Spread: __webpack_require__(62054),\r\n ToggleVisible: __webpack_require__(79815),\r\n WrapInRectangle: __webpack_require__(39665)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 42099:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Clamp = __webpack_require__(45319);\r\nvar Class = __webpack_require__(83419);\r\nvar Events = __webpack_require__(74943);\r\nvar FindClosestInSorted = __webpack_require__(81957);\r\nvar Frame = __webpack_require__(41138);\r\nvar GetValue = __webpack_require__(35154);\r\nvar SortByDigits = __webpack_require__(90126);\r\n\r\n/**\r\n * @classdesc\r\n * A Frame based Animation.\r\n *\r\n * Animations in Phaser consist of a sequence of `AnimationFrame` objects, which are managed by\r\n * this class, along with properties that impact playback, such as the animations frame rate\r\n * or delay.\r\n *\r\n * This class contains all of the properties and methods needed to handle playback of the animation\r\n * directly to an `AnimationState` instance, which is owned by a Sprite, or similar Game Object.\r\n *\r\n * You don't typically create an instance of this class directly, but instead go via\r\n * either the `AnimationManager` or the `AnimationState` and use their `create` methods,\r\n * depending on if you need a global animation, or local to a specific Sprite.\r\n *\r\n * @class Animation\r\n * @memberof Phaser.Animations\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Animations.AnimationManager} manager - A reference to the global Animation Manager\r\n * @param {string} key - The unique identifying string for this animation.\r\n * @param {Phaser.Types.Animations.Animation} config - The Animation configuration.\r\n */\r\nvar Animation = new Class({\r\n\r\n initialize:\r\n\r\n function Animation (manager, key, config)\r\n {\r\n /**\r\n * A reference to the global Animation Manager.\r\n *\r\n * @name Phaser.Animations.Animation#manager\r\n * @type {Phaser.Animations.AnimationManager}\r\n * @since 3.0.0\r\n */\r\n this.manager = manager;\r\n\r\n /**\r\n * The unique identifying string for this animation.\r\n *\r\n * @name Phaser.Animations.Animation#key\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.key = key;\r\n\r\n /**\r\n * A frame based animation (as opposed to a bone based animation)\r\n *\r\n * @name Phaser.Animations.Animation#type\r\n * @type {string}\r\n * @default frame\r\n * @since 3.0.0\r\n */\r\n this.type = 'frame';\r\n\r\n /**\r\n * Extract all the frame data into the frames array.\r\n *\r\n * @name Phaser.Animations.Animation#frames\r\n * @type {Phaser.Animations.AnimationFrame[]}\r\n * @since 3.0.0\r\n */\r\n this.frames = this.getFrames(\r\n manager.textureManager,\r\n GetValue(config, 'frames', []),\r\n GetValue(config, 'defaultTextureKey', null),\r\n GetValue(config, 'sortFrames', true)\r\n );\r\n\r\n /**\r\n * The frame rate of playback in frames per second (default 24 if duration is null)\r\n *\r\n * @name Phaser.Animations.Animation#frameRate\r\n * @type {number}\r\n * @default 24\r\n * @since 3.0.0\r\n */\r\n this.frameRate = GetValue(config, 'frameRate', null);\r\n\r\n /**\r\n * How long the animation should play for, in milliseconds.\r\n * If the `frameRate` property has been set then it overrides this value,\r\n * otherwise the `frameRate` is derived from `duration`.\r\n *\r\n * @name Phaser.Animations.Animation#duration\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.duration = GetValue(config, 'duration', null);\r\n\r\n /**\r\n * How many ms per frame, not including frame specific modifiers.\r\n *\r\n * @name Phaser.Animations.Animation#msPerFrame\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.msPerFrame;\r\n\r\n /**\r\n * Skip frames if the time lags, or always advanced anyway?\r\n *\r\n * @name Phaser.Animations.Animation#skipMissedFrames\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.skipMissedFrames = GetValue(config, 'skipMissedFrames', true);\r\n\r\n /**\r\n * The delay in ms before the playback will begin.\r\n *\r\n * @name Phaser.Animations.Animation#delay\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.delay = GetValue(config, 'delay', 0);\r\n\r\n /**\r\n * Number of times to repeat the animation. Set to -1 to repeat forever.\r\n *\r\n * @name Phaser.Animations.Animation#repeat\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.repeat = GetValue(config, 'repeat', 0);\r\n\r\n /**\r\n * The delay in ms before the a repeat play starts.\r\n *\r\n * @name Phaser.Animations.Animation#repeatDelay\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.repeatDelay = GetValue(config, 'repeatDelay', 0);\r\n\r\n /**\r\n * Should the animation yoyo (reverse back down to the start) before repeating?\r\n *\r\n * @name Phaser.Animations.Animation#yoyo\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.yoyo = GetValue(config, 'yoyo', false);\r\n\r\n /**\r\n * If the animation has a delay set, before playback will begin, this\r\n * controls when the first frame is set on the Sprite. If this property\r\n * is 'false' then the frame is set only after the delay has expired.\r\n * This is the default behavior.\r\n *\r\n * @name Phaser.Animations.Animation#showBeforeDelay\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.60.0\r\n */\r\n this.showBeforeDelay = GetValue(config, 'showBeforeDelay', false);\r\n\r\n /**\r\n * Should the GameObject's `visible` property be set to `true` when the animation starts to play?\r\n *\r\n * @name Phaser.Animations.Animation#showOnStart\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.showOnStart = GetValue(config, 'showOnStart', false);\r\n\r\n /**\r\n * Should the GameObject's `visible` property be set to `false` when the animation finishes?\r\n *\r\n * @name Phaser.Animations.Animation#hideOnComplete\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.hideOnComplete = GetValue(config, 'hideOnComplete', false);\r\n\r\n /**\r\n * Start playback of this animation from a random frame?\r\n *\r\n * @name Phaser.Animations.Animation#randomFrame\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.60.0\r\n */\r\n this.randomFrame = GetValue(config, 'randomFrame', false);\r\n\r\n /**\r\n * Global pause. All Game Objects using this Animation instance are impacted by this property.\r\n *\r\n * @name Phaser.Animations.Animation#paused\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.paused = false;\r\n\r\n this.calculateDuration(this, this.getTotalFrames(), this.duration, this.frameRate);\r\n\r\n if (this.manager.on)\r\n {\r\n this.manager.on(Events.PAUSE_ALL, this.pause, this);\r\n this.manager.on(Events.RESUME_ALL, this.resume, this);\r\n }\r\n },\r\n\r\n /**\r\n * Gets the total number of frames in this animation.\r\n *\r\n * @method Phaser.Animations.Animation#getTotalFrames\r\n * @since 3.50.0\r\n *\r\n * @return {number} The total number of frames in this animation.\r\n */\r\n getTotalFrames: function ()\r\n {\r\n return this.frames.length;\r\n },\r\n\r\n /**\r\n * Calculates the duration, frame rate and msPerFrame values.\r\n *\r\n * @method Phaser.Animations.Animation#calculateDuration\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Animations.Animation} target - The target to set the values on.\r\n * @param {number} totalFrames - The total number of frames in the animation.\r\n * @param {?number} [duration] - The duration to calculate the frame rate from. Pass `null` if you wish to set the `frameRate` instead.\r\n * @param {?number} [frameRate] - The frame rate to calculate the duration from.\r\n */\r\n calculateDuration: function (target, totalFrames, duration, frameRate)\r\n {\r\n if (duration === null && frameRate === null)\r\n {\r\n // No duration or frameRate given, use default frameRate of 24fps\r\n target.frameRate = 24;\r\n target.duration = (24 / totalFrames) * 1000;\r\n }\r\n else if (duration && frameRate === null)\r\n {\r\n // Duration given but no frameRate, so set the frameRate based on duration\r\n // I.e. 12 frames in the animation, duration = 4000 ms\r\n // So frameRate is 12 / (4000 / 1000) = 3 fps\r\n target.duration = duration;\r\n target.frameRate = totalFrames / (duration / 1000);\r\n }\r\n else\r\n {\r\n // frameRate given, derive duration from it (even if duration also specified)\r\n // I.e. 15 frames in the animation, frameRate = 30 fps\r\n // So duration is 15 / 30 = 0.5 * 1000 (half a second, or 500ms)\r\n target.frameRate = frameRate;\r\n target.duration = (totalFrames / frameRate) * 1000;\r\n }\r\n\r\n target.msPerFrame = 1000 / target.frameRate;\r\n },\r\n\r\n /**\r\n * Add frames to the end of the animation.\r\n *\r\n * @method Phaser.Animations.Animation#addFrame\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Animations.AnimationFrame[])} config - Either a string, in which case it will use all frames from a texture with the matching key, or an array of Animation Frame configuration objects.\r\n *\r\n * @return {this} This Animation object.\r\n */\r\n addFrame: function (config)\r\n {\r\n return this.addFrameAt(this.frames.length, config);\r\n },\r\n\r\n /**\r\n * Add frame/s into the animation.\r\n *\r\n * @method Phaser.Animations.Animation#addFrameAt\r\n * @since 3.0.0\r\n *\r\n * @param {number} index - The index to insert the frame at within the animation.\r\n * @param {(string|Phaser.Types.Animations.AnimationFrame[])} config - Either a string, in which case it will use all frames from a texture with the matching key, or an array of Animation Frame configuration objects.\r\n *\r\n * @return {this} This Animation object.\r\n */\r\n addFrameAt: function (index, config)\r\n {\r\n var newFrames = this.getFrames(this.manager.textureManager, config);\r\n\r\n if (newFrames.length > 0)\r\n {\r\n if (index === 0)\r\n {\r\n this.frames = newFrames.concat(this.frames);\r\n }\r\n else if (index === this.frames.length)\r\n {\r\n this.frames = this.frames.concat(newFrames);\r\n }\r\n else\r\n {\r\n var pre = this.frames.slice(0, index);\r\n var post = this.frames.slice(index);\r\n\r\n this.frames = pre.concat(newFrames, post);\r\n }\r\n\r\n this.updateFrameSequence();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Check if the given frame index is valid.\r\n *\r\n * @method Phaser.Animations.Animation#checkFrame\r\n * @since 3.0.0\r\n *\r\n * @param {number} index - The index to be checked.\r\n *\r\n * @return {boolean} `true` if the index is valid, otherwise `false`.\r\n */\r\n checkFrame: function (index)\r\n {\r\n return (index >= 0 && index < this.frames.length);\r\n },\r\n\r\n /**\r\n * Called internally when this Animation first starts to play.\r\n * Sets the accumulator and nextTick properties.\r\n *\r\n * @method Phaser.Animations.Animation#getFirstTick\r\n * @protected\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Animations.AnimationState} state - The Animation State belonging to the Game Object invoking this call.\r\n */\r\n getFirstTick: function (state)\r\n {\r\n // When is the first update due?\r\n state.accumulator = 0;\r\n\r\n state.nextTick = (state.currentFrame.duration) ? state.currentFrame.duration : state.msPerFrame;\r\n },\r\n\r\n /**\r\n * Returns the AnimationFrame at the provided index\r\n *\r\n * @method Phaser.Animations.Animation#getFrameAt\r\n * @since 3.0.0\r\n *\r\n * @param {number} index - The index in the AnimationFrame array\r\n *\r\n * @return {Phaser.Animations.AnimationFrame} The frame at the index provided from the animation sequence\r\n */\r\n getFrameAt: function (index)\r\n {\r\n return this.frames[index];\r\n },\r\n\r\n /**\r\n * Creates AnimationFrame instances based on the given frame data.\r\n *\r\n * @method Phaser.Animations.Animation#getFrames\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Textures.TextureManager} textureManager - A reference to the global Texture Manager.\r\n * @param {(string|Phaser.Types.Animations.AnimationFrame[])} frames - Either a string, in which case it will use all frames from a texture with the matching key, or an array of Animation Frame configuration objects.\r\n * @param {string} [defaultTextureKey] - The key to use if no key is set in the frame configuration object.\r\n *\r\n * @return {Phaser.Animations.AnimationFrame[]} An array of newly created AnimationFrame instances.\r\n */\r\n getFrames: function (textureManager, frames, defaultTextureKey, sortFrames)\r\n {\r\n if (sortFrames === undefined) { sortFrames = true; }\r\n\r\n var out = [];\r\n var prev;\r\n var animationFrame;\r\n var index = 1;\r\n var i;\r\n var textureKey;\r\n\r\n // if frames is a string, we'll get all the frames from the texture manager as if it's a sprite sheet\r\n if (typeof frames === 'string')\r\n {\r\n textureKey = frames;\r\n\r\n if (!textureManager.exists(textureKey))\r\n {\r\n console.warn('Texture \"%s\" not found', textureKey);\r\n\r\n return out;\r\n }\r\n\r\n var texture = textureManager.get(textureKey);\r\n var frameKeys = texture.getFrameNames();\r\n\r\n if (sortFrames)\r\n {\r\n SortByDigits(frameKeys);\r\n }\r\n\r\n frames = [];\r\n\r\n frameKeys.forEach(function (value)\r\n {\r\n frames.push({ key: textureKey, frame: value });\r\n });\r\n }\r\n\r\n if (!Array.isArray(frames) || frames.length === 0)\r\n {\r\n return out;\r\n }\r\n\r\n for (i = 0; i < frames.length; i++)\r\n {\r\n var item = frames[i];\r\n\r\n var key = GetValue(item, 'key', defaultTextureKey);\r\n\r\n if (!key)\r\n {\r\n continue;\r\n }\r\n\r\n // Could be an integer or a string\r\n var frame = GetValue(item, 'frame', 0);\r\n\r\n // The actual texture frame\r\n var textureFrame = textureManager.getFrame(key, frame);\r\n\r\n if (!textureFrame)\r\n {\r\n console.warn('Texture \"%s\" not found', key);\r\n\r\n continue;\r\n }\r\n\r\n animationFrame = new Frame(key, frame, index, textureFrame);\r\n\r\n animationFrame.duration = GetValue(item, 'duration', 0);\r\n\r\n animationFrame.isFirst = (!prev);\r\n\r\n // The previously created animationFrame\r\n if (prev)\r\n {\r\n prev.nextFrame = animationFrame;\r\n\r\n animationFrame.prevFrame = prev;\r\n }\r\n\r\n out.push(animationFrame);\r\n\r\n prev = animationFrame;\r\n\r\n index++;\r\n }\r\n\r\n if (out.length > 0)\r\n {\r\n animationFrame.isLast = true;\r\n\r\n // Link them end-to-end, so they loop\r\n animationFrame.nextFrame = out[0];\r\n\r\n out[0].prevFrame = animationFrame;\r\n\r\n // Generate the progress data\r\n\r\n var slice = 1 / (out.length - 1);\r\n\r\n for (i = 0; i < out.length; i++)\r\n {\r\n out[i].progress = i * slice;\r\n }\r\n }\r\n\r\n return out;\r\n },\r\n\r\n /**\r\n * Called internally. Sets the accumulator and nextTick values of the current Animation.\r\n *\r\n * @method Phaser.Animations.Animation#getNextTick\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Animations.AnimationState} state - The Animation State belonging to the Game Object invoking this call.\r\n */\r\n getNextTick: function (state)\r\n {\r\n state.accumulator -= state.nextTick;\r\n\r\n state.nextTick = (state.currentFrame.duration) ? state.currentFrame.duration : state.msPerFrame;\r\n },\r\n\r\n /**\r\n * Returns the frame closest to the given progress value between 0 and 1.\r\n *\r\n * @method Phaser.Animations.Animation#getFrameByProgress\r\n * @since 3.4.0\r\n *\r\n * @param {number} value - A value between 0 and 1.\r\n *\r\n * @return {Phaser.Animations.AnimationFrame} The frame closest to the given progress value.\r\n */\r\n getFrameByProgress: function (value)\r\n {\r\n value = Clamp(value, 0, 1);\r\n\r\n return FindClosestInSorted(value, this.frames, 'progress');\r\n },\r\n\r\n /**\r\n * Advance the animation frame.\r\n *\r\n * @method Phaser.Animations.Animation#nextFrame\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Animations.AnimationState} state - The Animation State to advance.\r\n */\r\n nextFrame: function (state)\r\n {\r\n var frame = state.currentFrame;\r\n\r\n if (frame.isLast)\r\n {\r\n // We're at the end of the animation\r\n\r\n // Yoyo? (happens before repeat)\r\n if (state.yoyo)\r\n {\r\n this.handleYoyoFrame(state, false);\r\n }\r\n else if (state.repeatCounter > 0)\r\n {\r\n // Repeat (happens before complete)\r\n\r\n if (state.inReverse && state.forward)\r\n {\r\n state.forward = false;\r\n }\r\n else\r\n {\r\n this.repeatAnimation(state);\r\n }\r\n }\r\n else\r\n {\r\n state.complete();\r\n }\r\n }\r\n else\r\n {\r\n this.updateAndGetNextTick(state, frame.nextFrame);\r\n }\r\n },\r\n\r\n /**\r\n * Handle the yoyo functionality in nextFrame and previousFrame methods.\r\n *\r\n * @method Phaser.Animations.Animation#handleYoyoFrame\r\n * @private\r\n * @since 3.12.0\r\n *\r\n * @param {Phaser.Animations.AnimationState} state - The Animation State to advance.\r\n * @param {boolean} isReverse - Is animation in reverse mode? (Default: false)\r\n */\r\n handleYoyoFrame: function (state, isReverse)\r\n {\r\n if (!isReverse) { isReverse = false; }\r\n\r\n if (state.inReverse === !isReverse && state.repeatCounter > 0)\r\n {\r\n if (state.repeatDelay === 0 || state.pendingRepeat)\r\n {\r\n state.forward = isReverse;\r\n }\r\n\r\n this.repeatAnimation(state);\r\n\r\n return;\r\n }\r\n\r\n if (state.inReverse !== isReverse && state.repeatCounter === 0)\r\n {\r\n state.complete();\r\n\r\n return;\r\n }\r\n\r\n state.forward = isReverse;\r\n\r\n var frame = (isReverse) ? state.currentFrame.nextFrame : state.currentFrame.prevFrame;\r\n\r\n this.updateAndGetNextTick(state, frame);\r\n },\r\n\r\n /**\r\n * Returns the animation last frame.\r\n *\r\n * @method Phaser.Animations.Animation#getLastFrame\r\n * @since 3.12.0\r\n *\r\n * @return {Phaser.Animations.AnimationFrame} The last Animation Frame.\r\n */\r\n getLastFrame: function ()\r\n {\r\n return this.frames[this.frames.length - 1];\r\n },\r\n\r\n /**\r\n * Called internally when the Animation is playing backwards.\r\n * Sets the previous frame, causing a yoyo, repeat, complete or update, accordingly.\r\n *\r\n * @method Phaser.Animations.Animation#previousFrame\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Animations.AnimationState} state - The Animation State belonging to the Game Object invoking this call.\r\n */\r\n previousFrame: function (state)\r\n {\r\n var frame = state.currentFrame;\r\n\r\n if (frame.isFirst)\r\n {\r\n // We're at the start of the animation\r\n if (state.yoyo)\r\n {\r\n this.handleYoyoFrame(state, true);\r\n }\r\n else if (state.repeatCounter > 0)\r\n {\r\n if (state.inReverse && !state.forward)\r\n {\r\n this.repeatAnimation(state);\r\n }\r\n else\r\n {\r\n // Repeat (happens before complete)\r\n state.forward = true;\r\n\r\n this.repeatAnimation(state);\r\n }\r\n }\r\n else\r\n {\r\n state.complete();\r\n }\r\n }\r\n else\r\n {\r\n this.updateAndGetNextTick(state, frame.prevFrame);\r\n }\r\n },\r\n\r\n /**\r\n * Update Frame and Wait next tick.\r\n *\r\n * @method Phaser.Animations.Animation#updateAndGetNextTick\r\n * @private\r\n * @since 3.12.0\r\n *\r\n * @param {Phaser.Animations.AnimationState} state - The Animation State.\r\n * @param {Phaser.Animations.AnimationFrame} frame - An Animation frame.\r\n */\r\n updateAndGetNextTick: function (state, frame)\r\n {\r\n state.setCurrentFrame(frame);\r\n\r\n this.getNextTick(state);\r\n },\r\n\r\n /**\r\n * Removes the given AnimationFrame from this Animation instance.\r\n * This is a global action. Any Game Object using this Animation will be impacted by this change.\r\n *\r\n * @method Phaser.Animations.Animation#removeFrame\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Animations.AnimationFrame} frame - The AnimationFrame to be removed.\r\n *\r\n * @return {this} This Animation object.\r\n */\r\n removeFrame: function (frame)\r\n {\r\n var index = this.frames.indexOf(frame);\r\n\r\n if (index !== -1)\r\n {\r\n this.removeFrameAt(index);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes a frame from the AnimationFrame array at the provided index\r\n * and updates the animation accordingly.\r\n *\r\n * @method Phaser.Animations.Animation#removeFrameAt\r\n * @since 3.0.0\r\n *\r\n * @param {number} index - The index in the AnimationFrame array\r\n *\r\n * @return {this} This Animation object.\r\n */\r\n removeFrameAt: function (index)\r\n {\r\n this.frames.splice(index, 1);\r\n\r\n this.updateFrameSequence();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Called internally during playback. Forces the animation to repeat, providing there are enough counts left\r\n * in the repeat counter.\r\n *\r\n * @method Phaser.Animations.Animation#repeatAnimation\r\n * @fires Phaser.Animations.Events#ANIMATION_REPEAT\r\n * @fires Phaser.Animations.Events#SPRITE_ANIMATION_REPEAT\r\n * @fires Phaser.Animations.Events#SPRITE_ANIMATION_KEY_REPEAT\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Animations.AnimationState} state - The Animation State belonging to the Game Object invoking this call.\r\n */\r\n repeatAnimation: function (state)\r\n {\r\n if (state._pendingStop === 2)\r\n {\r\n if (state._pendingStopValue === 0)\r\n {\r\n return state.stop();\r\n }\r\n else\r\n {\r\n state._pendingStopValue--;\r\n }\r\n }\r\n\r\n if (state.repeatDelay > 0 && !state.pendingRepeat)\r\n {\r\n state.pendingRepeat = true;\r\n state.accumulator -= state.nextTick;\r\n state.nextTick += state.repeatDelay;\r\n }\r\n else\r\n {\r\n state.repeatCounter--;\r\n\r\n if (state.forward)\r\n {\r\n state.setCurrentFrame(state.currentFrame.nextFrame);\r\n }\r\n else\r\n {\r\n state.setCurrentFrame(state.currentFrame.prevFrame);\r\n }\r\n\r\n if (state.isPlaying)\r\n {\r\n this.getNextTick(state);\r\n\r\n state.handleRepeat();\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Converts the animation data to JSON.\r\n *\r\n * @method Phaser.Animations.Animation#toJSON\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Types.Animations.JSONAnimation} The resulting JSONAnimation formatted object.\r\n */\r\n toJSON: function ()\r\n {\r\n var output = {\r\n key: this.key,\r\n type: this.type,\r\n frames: [],\r\n frameRate: this.frameRate,\r\n duration: this.duration,\r\n skipMissedFrames: this.skipMissedFrames,\r\n delay: this.delay,\r\n repeat: this.repeat,\r\n repeatDelay: this.repeatDelay,\r\n yoyo: this.yoyo,\r\n showBeforeDelay: this.showBeforeDelay,\r\n showOnStart: this.showOnStart,\r\n randomFrame: this.randomFrame,\r\n hideOnComplete: this.hideOnComplete\r\n };\r\n\r\n this.frames.forEach(function (frame)\r\n {\r\n output.frames.push(frame.toJSON());\r\n });\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Called internally whenever frames are added to, or removed from, this Animation.\r\n *\r\n * @method Phaser.Animations.Animation#updateFrameSequence\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Animation object.\r\n */\r\n updateFrameSequence: function ()\r\n {\r\n var len = this.frames.length;\r\n var slice = 1 / (len - 1);\r\n\r\n var frame;\r\n\r\n for (var i = 0; i < len; i++)\r\n {\r\n frame = this.frames[i];\r\n\r\n frame.index = i + 1;\r\n frame.isFirst = false;\r\n frame.isLast = false;\r\n frame.progress = i * slice;\r\n\r\n if (i === 0)\r\n {\r\n frame.isFirst = true;\r\n\r\n if (len === 1)\r\n {\r\n frame.isLast = true;\r\n frame.nextFrame = frame;\r\n frame.prevFrame = frame;\r\n }\r\n else\r\n {\r\n frame.isLast = false;\r\n frame.prevFrame = this.frames[len - 1];\r\n frame.nextFrame = this.frames[i + 1];\r\n }\r\n }\r\n else if (i === len - 1 && len > 1)\r\n {\r\n frame.isLast = true;\r\n frame.prevFrame = this.frames[len - 2];\r\n frame.nextFrame = this.frames[0];\r\n }\r\n else if (len > 1)\r\n {\r\n frame.prevFrame = this.frames[i - 1];\r\n frame.nextFrame = this.frames[i + 1];\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Pauses playback of this Animation. The paused state is set immediately.\r\n *\r\n * @method Phaser.Animations.Animation#pause\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Animation object.\r\n */\r\n pause: function ()\r\n {\r\n this.paused = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resumes playback of this Animation. The paused state is reset immediately.\r\n *\r\n * @method Phaser.Animations.Animation#resume\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Animation object.\r\n */\r\n resume: function ()\r\n {\r\n this.paused = false;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Destroys this Animation instance. It will remove all event listeners,\r\n * remove this animation and its key from the global Animation Manager,\r\n * and then destroy all Animation Frames in turn.\r\n *\r\n * @method Phaser.Animations.Animation#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n if (this.manager.off)\r\n {\r\n this.manager.off(Events.PAUSE_ALL, this.pause, this);\r\n this.manager.off(Events.RESUME_ALL, this.resume, this);\r\n }\r\n\r\n this.manager.remove(this.key);\r\n\r\n for (var i = 0; i < this.frames.length; i++)\r\n {\r\n this.frames[i].destroy();\r\n }\r\n\r\n this.frames = [];\r\n\r\n this.manager = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Animation;\r\n\n\n/***/ }),\n\n/***/ 41138:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n/**\r\n * @classdesc\r\n * A single frame in an Animation sequence.\r\n *\r\n * An AnimationFrame consists of a reference to the Texture it uses for rendering, references to other\r\n * frames in the animation, and index data. It also has the ability to modify the animation timing.\r\n *\r\n * AnimationFrames are generated automatically by the Animation class.\r\n *\r\n * @class AnimationFrame\r\n * @memberof Phaser.Animations\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {string} textureKey - The key of the Texture this AnimationFrame uses.\r\n * @param {(string|number)} textureFrame - The key of the Frame within the Texture that this AnimationFrame uses.\r\n * @param {number} index - The index of this AnimationFrame within the Animation sequence.\r\n * @param {Phaser.Textures.Frame} frame - A reference to the Texture Frame this AnimationFrame uses for rendering.\r\n * @param {boolean} [isKeyFrame=false] - Is this Frame a Keyframe within the Animation?\r\n */\r\nvar AnimationFrame = new Class({\r\n\r\n initialize:\r\n\r\n function AnimationFrame (textureKey, textureFrame, index, frame, isKeyFrame)\r\n {\r\n if (isKeyFrame === undefined) { isKeyFrame = false; }\r\n\r\n /**\r\n * The key of the Texture this AnimationFrame uses.\r\n *\r\n * @name Phaser.Animations.AnimationFrame#textureKey\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.textureKey = textureKey;\r\n\r\n /**\r\n * The key of the Frame within the Texture that this AnimationFrame uses.\r\n *\r\n * @name Phaser.Animations.AnimationFrame#textureFrame\r\n * @type {(string|number)}\r\n * @since 3.0.0\r\n */\r\n this.textureFrame = textureFrame;\r\n\r\n /**\r\n * The index of this AnimationFrame within the Animation sequence.\r\n *\r\n * @name Phaser.Animations.AnimationFrame#index\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.index = index;\r\n\r\n /**\r\n * A reference to the Texture Frame this AnimationFrame uses for rendering.\r\n *\r\n * @name Phaser.Animations.AnimationFrame#frame\r\n * @type {Phaser.Textures.Frame}\r\n * @since 3.0.0\r\n */\r\n this.frame = frame;\r\n\r\n /**\r\n * Is this the first frame in an animation sequence?\r\n *\r\n * @name Phaser.Animations.AnimationFrame#isFirst\r\n * @type {boolean}\r\n * @default false\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.isFirst = false;\r\n\r\n /**\r\n * Is this the last frame in an animation sequence?\r\n *\r\n * @name Phaser.Animations.AnimationFrame#isLast\r\n * @type {boolean}\r\n * @default false\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.isLast = false;\r\n\r\n /**\r\n * A reference to the AnimationFrame that comes before this one in the animation, if any.\r\n *\r\n * @name Phaser.Animations.AnimationFrame#prevFrame\r\n * @type {?Phaser.Animations.AnimationFrame}\r\n * @default null\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.prevFrame = null;\r\n\r\n /**\r\n * A reference to the AnimationFrame that comes after this one in the animation, if any.\r\n *\r\n * @name Phaser.Animations.AnimationFrame#nextFrame\r\n * @type {?Phaser.Animations.AnimationFrame}\r\n * @default null\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.nextFrame = null;\r\n\r\n /**\r\n * The duration, in ms, of this frame of the animation.\r\n *\r\n * @name Phaser.Animations.AnimationFrame#duration\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.duration = 0;\r\n\r\n /**\r\n * What % through the animation does this frame come?\r\n * This value is generated when the animation is created and cached here.\r\n *\r\n * @name Phaser.Animations.AnimationFrame#progress\r\n * @type {number}\r\n * @default 0\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.progress = 0;\r\n\r\n /**\r\n * Is this Frame a KeyFrame within the Animation?\r\n *\r\n * @name Phaser.Animations.AnimationFrame#isKeyFrame\r\n * @type {boolean}\r\n * @since 3.50.0\r\n */\r\n this.isKeyFrame = isKeyFrame;\r\n },\r\n\r\n /**\r\n * Generates a JavaScript object suitable for converting to JSON.\r\n *\r\n * @method Phaser.Animations.AnimationFrame#toJSON\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Types.Animations.JSONAnimationFrame} The AnimationFrame data.\r\n */\r\n toJSON: function ()\r\n {\r\n return {\r\n key: this.textureKey,\r\n frame: this.textureFrame,\r\n duration: this.duration,\r\n keyframe: this.isKeyFrame\r\n };\r\n },\r\n\r\n /**\r\n * Destroys this object by removing references to external resources and callbacks.\r\n *\r\n * @method Phaser.Animations.AnimationFrame#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.frame = undefined;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = AnimationFrame;\r\n\n\n/***/ }),\n\n/***/ 60848:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Animation = __webpack_require__(42099);\r\nvar Class = __webpack_require__(83419);\r\nvar CustomMap = __webpack_require__(90330);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Events = __webpack_require__(74943);\r\nvar GameEvents = __webpack_require__(8443);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar GetValue = __webpack_require__(35154);\r\nvar MATH_CONST = __webpack_require__(36383);\r\nvar NumberArray = __webpack_require__(20283);\r\nvar Pad = __webpack_require__(41836);\r\n\r\n/**\r\n * @classdesc\r\n * The Animation Manager.\r\n *\r\n * Animations are managed by the global Animation Manager. This is a singleton class that is\r\n * responsible for creating and delivering animations and their corresponding data to all Game Objects.\r\n * Unlike plugins it is owned by the Game instance, not the Scene.\r\n *\r\n * Sprites and other Game Objects get the data they need from the AnimationManager.\r\n *\r\n * @class AnimationManager\r\n * @extends Phaser.Events.EventEmitter\r\n * @memberof Phaser.Animations\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Game} game - A reference to the Phaser.Game instance.\r\n */\r\nvar AnimationManager = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function AnimationManager (game)\r\n {\r\n EventEmitter.call(this);\r\n\r\n /**\r\n * A reference to the Phaser.Game instance.\r\n *\r\n * @name Phaser.Animations.AnimationManager#game\r\n * @type {Phaser.Game}\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n this.game = game;\r\n\r\n /**\r\n * A reference to the Texture Manager.\r\n *\r\n * @name Phaser.Animations.AnimationManager#textureManager\r\n * @type {Phaser.Textures.TextureManager}\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n this.textureManager = null;\r\n\r\n /**\r\n * The global time scale of the Animation Manager.\r\n *\r\n * This scales the time delta between two frames, thus influencing the speed of time for the Animation Manager.\r\n *\r\n * @name Phaser.Animations.AnimationManager#globalTimeScale\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n this.globalTimeScale = 1;\r\n\r\n /**\r\n * The Animations registered in the Animation Manager.\r\n *\r\n * This map should be modified with the {@link #add} and {@link #create} methods of the Animation Manager.\r\n *\r\n * @name Phaser.Animations.AnimationManager#anims\r\n * @type {Phaser.Structs.Map.}\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n this.anims = new CustomMap();\r\n\r\n /**\r\n * A list of animation mix times.\r\n *\r\n * See the {@link #setMix} method for more details.\r\n *\r\n * @name Phaser.Animations.AnimationManager#mixes\r\n * @type {Phaser.Structs.Map.}\r\n * @since 3.50.0\r\n */\r\n this.mixes = new CustomMap();\r\n\r\n /**\r\n * Whether the Animation Manager is paused along with all of its Animations.\r\n *\r\n * @name Phaser.Animations.AnimationManager#paused\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.paused = false;\r\n\r\n /**\r\n * The name of this Animation Manager.\r\n *\r\n * @name Phaser.Animations.AnimationManager#name\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.name = 'AnimationManager';\r\n\r\n game.events.once(GameEvents.BOOT, this.boot, this);\r\n },\r\n\r\n /**\r\n * Registers event listeners after the Game boots.\r\n *\r\n * @method Phaser.Animations.AnimationManager#boot\r\n * @listens Phaser.Core.Events#DESTROY\r\n * @since 3.0.0\r\n */\r\n boot: function ()\r\n {\r\n this.textureManager = this.game.textures;\r\n\r\n this.game.events.once(GameEvents.DESTROY, this.destroy, this);\r\n },\r\n\r\n /**\r\n * Adds a mix between two animations.\r\n *\r\n * Mixing allows you to specify a unique delay between a pairing of animations.\r\n *\r\n * When playing Animation A on a Game Object, if you then play Animation B, and a\r\n * mix exists, it will wait for the specified delay to be over before playing Animation B.\r\n *\r\n * This allows you to customise smoothing between different types of animation, such\r\n * as blending between an idle and a walk state, or a running and a firing state.\r\n *\r\n * Note that mixing is only applied if you use the `Sprite.play` method. If you opt to use\r\n * `playAfterRepeat` or `playAfterDelay` instead, those will take priority and the mix\r\n * delay will not be used.\r\n *\r\n * To update an existing mix, just call this method with the new delay.\r\n *\r\n * To remove a mix pairing, see the `removeMix` method.\r\n *\r\n * @method Phaser.Animations.AnimationManager#addMix\r\n * @since 3.50.0\r\n *\r\n * @param {(string|Phaser.Animations.Animation)} animA - The string-based key, or instance of, Animation A.\r\n * @param {(string|Phaser.Animations.Animation)} animB - The string-based key, or instance of, Animation B.\r\n * @param {number} delay - The delay, in milliseconds, to wait when transitioning from Animation A to B.\r\n *\r\n * @return {this} This Animation Manager.\r\n */\r\n addMix: function (animA, animB, delay)\r\n {\r\n var anims = this.anims;\r\n var mixes = this.mixes;\r\n\r\n var keyA = (typeof(animA) === 'string') ? animA : animA.key;\r\n var keyB = (typeof(animB) === 'string') ? animB : animB.key;\r\n\r\n if (anims.has(keyA) && anims.has(keyB))\r\n {\r\n var mixObj = mixes.get(keyA);\r\n\r\n if (!mixObj)\r\n {\r\n mixObj = {};\r\n }\r\n\r\n mixObj[keyB] = delay;\r\n\r\n mixes.set(keyA, mixObj);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes a mix between two animations.\r\n *\r\n * Mixing allows you to specify a unique delay between a pairing of animations.\r\n *\r\n * Calling this method lets you remove those pairings. You can either remove\r\n * it between `animA` and `animB`, or if you do not provide the `animB` parameter,\r\n * it will remove all `animA` mixes.\r\n *\r\n * If you wish to update an existing mix instead, call the `addMix` method with the\r\n * new delay.\r\n *\r\n * @method Phaser.Animations.AnimationManager#removeMix\r\n * @since 3.50.0\r\n *\r\n * @param {(string|Phaser.Animations.Animation)} animA - The string-based key, or instance of, Animation A.\r\n * @param {(string|Phaser.Animations.Animation)} [animB] - The string-based key, or instance of, Animation B. If not given, all mixes for Animation A will be removed.\r\n *\r\n * @return {this} This Animation Manager.\r\n */\r\n removeMix: function (animA, animB)\r\n {\r\n var mixes = this.mixes;\r\n\r\n var keyA = (typeof(animA) === 'string') ? animA : animA.key;\r\n\r\n var mixObj = mixes.get(keyA);\r\n\r\n if (mixObj)\r\n {\r\n if (animB)\r\n {\r\n var keyB = (typeof(animB) === 'string') ? animB : animB.key;\r\n\r\n if (mixObj.hasOwnProperty(keyB))\r\n {\r\n // Remove just this pairing\r\n delete mixObj[keyB];\r\n }\r\n }\r\n else if (!animB)\r\n {\r\n // Remove everything for animA\r\n mixes.delete(keyA);\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns the mix delay between two animations.\r\n *\r\n * If no mix has been set-up, this method will return zero.\r\n *\r\n * If you wish to create, or update, a new mix, call the `addMix` method.\r\n * If you wish to remove a mix, call the `removeMix` method.\r\n *\r\n * @method Phaser.Animations.AnimationManager#getMix\r\n * @since 3.50.0\r\n *\r\n * @param {(string|Phaser.Animations.Animation)} animA - The string-based key, or instance of, Animation A.\r\n * @param {(string|Phaser.Animations.Animation)} animB - The string-based key, or instance of, Animation B.\r\n *\r\n * @return {number} The mix duration, or zero if no mix exists.\r\n */\r\n getMix: function (animA, animB)\r\n {\r\n var mixes = this.mixes;\r\n\r\n var keyA = (typeof(animA) === 'string') ? animA : animA.key;\r\n var keyB = (typeof(animB) === 'string') ? animB : animB.key;\r\n\r\n var mixObj = mixes.get(keyA);\r\n\r\n if (mixObj && mixObj.hasOwnProperty(keyB))\r\n {\r\n return mixObj[keyB];\r\n }\r\n else\r\n {\r\n return 0;\r\n }\r\n },\r\n\r\n /**\r\n * Adds an existing Animation to the Animation Manager.\r\n *\r\n * @method Phaser.Animations.AnimationManager#add\r\n * @fires Phaser.Animations.Events#ADD_ANIMATION\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key under which the Animation should be added. The Animation will be updated with it. Must be unique.\r\n * @param {Phaser.Animations.Animation} animation - The Animation which should be added to the Animation Manager.\r\n *\r\n * @return {this} This Animation Manager.\r\n */\r\n add: function (key, animation)\r\n {\r\n if (this.anims.has(key))\r\n {\r\n console.warn('Animation key exists: ' + key);\r\n\r\n return this;\r\n }\r\n\r\n animation.key = key;\r\n\r\n this.anims.set(key, animation);\r\n\r\n this.emit(Events.ADD_ANIMATION, key, animation);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Checks to see if the given key is already in use within the Animation Manager or not.\r\n *\r\n * Animations are global. Keys created in one scene can be used from any other Scene in your game. They are not Scene specific.\r\n *\r\n * @method Phaser.Animations.AnimationManager#exists\r\n * @since 3.16.0\r\n *\r\n * @param {string} key - The key of the Animation to check.\r\n *\r\n * @return {boolean} `true` if the Animation already exists in the Animation Manager, or `false` if the key is available.\r\n */\r\n exists: function (key)\r\n {\r\n return this.anims.has(key);\r\n },\r\n\r\n /**\r\n * Create one, or more animations from a loaded Aseprite JSON file.\r\n *\r\n * Aseprite is a powerful animated sprite editor and pixel art tool.\r\n *\r\n * You can find more details at https://www.aseprite.org/\r\n *\r\n * To export a compatible JSON file in Aseprite, please do the following:\r\n *\r\n * 1. Go to \"File - Export Sprite Sheet\"\r\n *\r\n * 2. On the **Layout** tab:\r\n * 2a. Set the \"Sheet type\" to \"Packed\"\r\n * 2b. Set the \"Constraints\" to \"None\"\r\n * 2c. Check the \"Merge Duplicates\" checkbox\r\n *\r\n * 3. On the **Sprite** tab:\r\n * 3a. Set \"Layers\" to \"Visible layers\"\r\n * 3b. Set \"Frames\" to \"All frames\", unless you only wish to export a sub-set of tags\r\n *\r\n * 4. On the **Borders** tab:\r\n * 4a. Check the \"Trim Sprite\" and \"Trim Cells\" options\r\n * 4b. Ensure \"Border Padding\", \"Spacing\" and \"Inner Padding\" are all > 0 (1 is usually enough)\r\n *\r\n * 5. On the **Output** tab:\r\n * 5a. Check \"Output File\", give your image a name and make sure you choose \"png files\" as the file type\r\n * 5b. Check \"JSON Data\" and give your json file a name\r\n * 5c. The JSON Data type can be either a Hash or Array, Phaser doesn't mind.\r\n * 5d. Make sure \"Tags\" is checked in the Meta options\r\n * 5e. In the \"Item Filename\" input box, make sure it says just \"{frame}\" and nothing more.\r\n *\r\n * 6. Click export\r\n *\r\n * This was tested with Aseprite 1.2.25.\r\n *\r\n * This will export a png and json file which you can load using the Aseprite Loader, i.e.:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.path = 'assets/animations/aseprite/';\r\n * this.load.aseprite('paladin', 'paladin.png', 'paladin.json');\r\n * }\r\n * ```\r\n *\r\n * Once loaded, you can call this method from within a Scene with the 'atlas' key:\r\n *\r\n * ```javascript\r\n * this.anims.createFromAseprite('paladin');\r\n * ```\r\n *\r\n * Any animations defined in the JSON will now be available to use in Phaser and you play them\r\n * via their Tag name. For example, if you have an animation called 'War Cry' on your Aseprite timeline,\r\n * you can play it in Phaser using that Tag name:\r\n *\r\n * ```javascript\r\n * this.add.sprite(400, 300).play('War Cry');\r\n * ```\r\n *\r\n * When calling this method you can optionally provide an array of tag names, and only those animations\r\n * will be created. For example:\r\n *\r\n * ```javascript\r\n * this.anims.createFromAseprite('paladin', [ 'step', 'War Cry', 'Magnum Break' ]);\r\n * ```\r\n *\r\n * This will only create the 3 animations defined. Note that the tag names are case-sensitive.\r\n *\r\n * @method Phaser.Animations.AnimationManager#createFromAseprite\r\n * @since 3.50.0\r\n *\r\n * @param {string} key - The key of the loaded Aseprite atlas. It must have been loaded prior to calling this method.\r\n * @param {string[]} [tags] - An array of Tag names. If provided, only animations found in this array will be created.\r\n * @param {(Phaser.Animations.AnimationManager|Phaser.GameObjects.GameObject)} [target] - Create the animations on this target Sprite. If not given, they will be created globally in this Animation Manager.\r\n *\r\n * @return {Phaser.Animations.Animation[]} An array of Animation instances that were successfully created.\r\n */\r\n createFromAseprite: function (key, tags, target)\r\n {\r\n var output = [];\r\n\r\n var data = this.game.cache.json.get(key);\r\n\r\n if (!data)\r\n {\r\n console.warn('No Aseprite data found for: ' + key);\r\n\r\n return output;\r\n }\r\n\r\n var _this = this;\r\n\r\n var meta = GetValue(data, 'meta', null);\r\n var frames = GetValue(data, 'frames', null);\r\n\r\n if (meta && frames)\r\n {\r\n var frameTags = GetValue(meta, 'frameTags', []);\r\n\r\n frameTags.forEach(function (tag)\r\n {\r\n var animFrames = [];\r\n\r\n var name = GetFastValue(tag, 'name', null);\r\n var from = GetFastValue(tag, 'from', 0);\r\n var to = GetFastValue(tag, 'to', 0);\r\n var direction = GetFastValue(tag, 'direction', 'forward');\r\n\r\n if (!name)\r\n {\r\n // Skip if no name\r\n return;\r\n }\r\n\r\n if (!tags || (tags && tags.indexOf(name) > -1))\r\n {\r\n // Get all the frames for this tag and calculate the total duration in milliseconds.\r\n var totalDuration = 0;\r\n for (var i = from; i <= to; i++)\r\n {\r\n var frameKey = i.toString();\r\n var frame = frames[frameKey];\r\n\r\n if (frame)\r\n {\r\n var frameDuration = GetFastValue(frame, 'duration', MATH_CONST.MAX_SAFE_INTEGER);\r\n animFrames.push({ key: key, frame: frameKey, duration: frameDuration });\r\n totalDuration += frameDuration;\r\n }\r\n }\r\n\r\n if (direction === 'reverse')\r\n {\r\n animFrames = animFrames.reverse();\r\n }\r\n\r\n // Create the animation\r\n var createConfig = {\r\n key: name,\r\n frames: animFrames,\r\n duration: totalDuration,\r\n yoyo: (direction === 'pingpong')\r\n };\r\n\r\n var result;\r\n\r\n if (target)\r\n {\r\n if (target.anims)\r\n {\r\n result = target.anims.create(createConfig);\r\n }\r\n }\r\n else\r\n {\r\n result = _this.create(createConfig);\r\n }\r\n\r\n if (result)\r\n {\r\n output.push(result);\r\n }\r\n }\r\n });\r\n }\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Creates a new Animation and adds it to the Animation Manager.\r\n *\r\n * Animations are global. Once created, you can use them in any Scene in your game. They are not Scene specific.\r\n *\r\n * If an invalid key is given this method will return `false`.\r\n *\r\n * If you pass the key of an animation that already exists in the Animation Manager, that animation will be returned.\r\n *\r\n * A brand new animation is only created if the key is valid and not already in use.\r\n *\r\n * If you wish to re-use an existing key, call `AnimationManager.remove` first, then this method.\r\n *\r\n * @method Phaser.Animations.AnimationManager#create\r\n * @fires Phaser.Animations.Events#ADD_ANIMATION\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Animations.Animation} config - The configuration settings for the Animation.\r\n *\r\n * @return {(Phaser.Animations.Animation|false)} The Animation that was created, or `false` if the key is already in use.\r\n */\r\n create: function (config)\r\n {\r\n var key = config.key;\r\n\r\n var anim = false;\r\n\r\n if (key)\r\n {\r\n anim = this.get(key);\r\n\r\n if (!anim)\r\n {\r\n anim = new Animation(this, key, config);\r\n\r\n this.anims.set(key, anim);\r\n\r\n this.emit(Events.ADD_ANIMATION, key, anim);\r\n }\r\n else\r\n {\r\n console.warn('AnimationManager key already exists: ' + key);\r\n }\r\n }\r\n\r\n return anim;\r\n },\r\n\r\n /**\r\n * Loads this Animation Manager's Animations and settings from a JSON object.\r\n *\r\n * @method Phaser.Animations.AnimationManager#fromJSON\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Animations.JSONAnimations|Phaser.Types.Animations.JSONAnimation)} data - The JSON object to parse.\r\n * @param {boolean} [clearCurrentAnimations=false] - If set to `true`, the current animations will be removed (`anims.clear()`). If set to `false` (default), the animations in `data` will be added.\r\n *\r\n * @return {Phaser.Animations.Animation[]} An array containing all of the Animation objects that were created as a result of this call.\r\n */\r\n fromJSON: function (data, clearCurrentAnimations)\r\n {\r\n if (clearCurrentAnimations === undefined) { clearCurrentAnimations = false; }\r\n\r\n if (clearCurrentAnimations)\r\n {\r\n this.anims.clear();\r\n }\r\n\r\n // Do we have a String (i.e. from JSON, or an Object?)\r\n if (typeof data === 'string')\r\n {\r\n data = JSON.parse(data);\r\n }\r\n\r\n var output = [];\r\n\r\n // Array of animations, or a single animation?\r\n if (data.hasOwnProperty('anims') && Array.isArray(data.anims))\r\n {\r\n for (var i = 0; i < data.anims.length; i++)\r\n {\r\n output.push(this.create(data.anims[i]));\r\n }\r\n\r\n if (data.hasOwnProperty('globalTimeScale'))\r\n {\r\n this.globalTimeScale = data.globalTimeScale;\r\n }\r\n }\r\n else if (data.hasOwnProperty('key') && data.type === 'frame')\r\n {\r\n output.push(this.create(data));\r\n }\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Generate an array of {@link Phaser.Types.Animations.AnimationFrame} objects from a texture key and configuration object.\r\n *\r\n * Generates objects with string based frame names, as configured by the given {@link Phaser.Types.Animations.GenerateFrameNames}.\r\n *\r\n * It's a helper method, designed to make it easier for you to extract all of the frame names from texture atlases.\r\n *\r\n * If you're working with a sprite sheet, see the `generateFrameNumbers` method instead.\r\n *\r\n * Example:\r\n *\r\n * If you have a texture atlases loaded called `gems` and it contains 6 frames called `ruby_0001`, `ruby_0002`, and so on,\r\n * then you can call this method using: `this.anims.generateFrameNames('gems', { prefix: 'ruby_', start: 1, end: 6, zeroPad: 4 })`.\r\n *\r\n * The `end` value tells it to select frames 1 through 6, incrementally numbered, all starting with the prefix `ruby_`. The `zeroPad`\r\n * value tells it how many zeroes pad out the numbers. To create an animation using this method, you can do:\r\n *\r\n * ```javascript\r\n * this.anims.create({\r\n * key: 'ruby',\r\n * repeat: -1,\r\n * frames: this.anims.generateFrameNames('gems', {\r\n * prefix: 'ruby_',\r\n * end: 6,\r\n * zeroPad: 4\r\n * })\r\n * });\r\n * ```\r\n *\r\n * Please see the animation examples for further details.\r\n *\r\n * @method Phaser.Animations.AnimationManager#generateFrameNames\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key for the texture containing the animation frames.\r\n * @param {Phaser.Types.Animations.GenerateFrameNames} [config] - The configuration object for the animation frame names.\r\n *\r\n * @return {Phaser.Types.Animations.AnimationFrame[]} The array of {@link Phaser.Types.Animations.AnimationFrame} objects.\r\n */\r\n generateFrameNames: function (key, config)\r\n {\r\n var prefix = GetValue(config, 'prefix', '');\r\n var start = GetValue(config, 'start', 0);\r\n var end = GetValue(config, 'end', 0);\r\n var suffix = GetValue(config, 'suffix', '');\r\n var zeroPad = GetValue(config, 'zeroPad', 0);\r\n var out = GetValue(config, 'outputArray', []);\r\n var frames = GetValue(config, 'frames', false);\r\n\r\n if (!this.textureManager.exists(key))\r\n {\r\n console.warn('Texture \"%s\" not found', key);\r\n\r\n return out;\r\n }\r\n\r\n var texture = this.textureManager.get(key);\r\n\r\n if (!texture)\r\n {\r\n return out;\r\n }\r\n\r\n var i;\r\n\r\n if (!config)\r\n {\r\n // Use every frame in the atlas\r\n frames = texture.getFrameNames();\r\n\r\n for (i = 0; i < frames.length; i++)\r\n {\r\n out.push({ key: key, frame: frames[i] });\r\n }\r\n }\r\n else\r\n {\r\n if (!frames)\r\n {\r\n frames = NumberArray(start, end);\r\n }\r\n\r\n for (i = 0; i < frames.length; i++)\r\n {\r\n var frame = prefix + Pad(frames[i], zeroPad, '0', 1) + suffix;\r\n\r\n if (texture.has(frame))\r\n {\r\n out.push({ key: key, frame: frame });\r\n }\r\n else\r\n {\r\n console.warn('Frame \"%s\" not found in texture \"%s\"', frame, key);\r\n }\r\n }\r\n }\r\n\r\n return out;\r\n },\r\n\r\n /**\r\n * Generate an array of {@link Phaser.Types.Animations.AnimationFrame} objects from a texture key and configuration object.\r\n *\r\n * Generates objects with numbered frame names, as configured by the given {@link Phaser.Types.Animations.GenerateFrameNumbers}.\r\n *\r\n * If you're working with a texture atlas, see the `generateFrameNames` method instead.\r\n *\r\n * It's a helper method, designed to make it easier for you to extract frames from sprite sheets.\r\n *\r\n * Example:\r\n *\r\n * If you have a sprite sheet loaded called `explosion` and it contains 12 frames, then you can call this method using:\r\n *\r\n * `this.anims.generateFrameNumbers('explosion', { start: 0, end: 11 })`.\r\n *\r\n * The `end` value of 11 tells it to stop after the 12th frame has been added, because it started at zero.\r\n *\r\n * To create an animation using this method, you can do:\r\n *\r\n * ```javascript\r\n * this.anims.create({\r\n * key: 'boom',\r\n * frames: this.anims.generateFrameNumbers('explosion', {\r\n * start: 0,\r\n * end: 11\r\n * })\r\n * });\r\n * ```\r\n *\r\n * Note that `start` is optional and you don't need to include it if the animation starts from frame 0.\r\n *\r\n * To specify an animation in reverse, swap the `start` and `end` values.\r\n *\r\n * If the frames are not sequential, you may pass an array of frame numbers instead, for example:\r\n *\r\n * `this.anims.generateFrameNumbers('explosion', { frames: [ 0, 1, 2, 1, 2, 3, 4, 0, 1, 2 ] })`\r\n *\r\n * Please see the animation examples and `GenerateFrameNumbers` config docs for further details.\r\n *\r\n * @method Phaser.Animations.AnimationManager#generateFrameNumbers\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key for the texture containing the animation frames.\r\n * @param {Phaser.Types.Animations.GenerateFrameNumbers} [config] - The configuration object for the animation frames.\r\n *\r\n * @return {Phaser.Types.Animations.AnimationFrame[]} The array of {@link Phaser.Types.Animations.AnimationFrame} objects.\r\n */\r\n generateFrameNumbers: function (key, config)\r\n {\r\n var start = GetValue(config, 'start', 0);\r\n var end = GetValue(config, 'end', -1);\r\n var first = GetValue(config, 'first', false);\r\n var out = GetValue(config, 'outputArray', []);\r\n var frames = GetValue(config, 'frames', false);\r\n\r\n if (!this.textureManager.exists(key))\r\n {\r\n console.warn('Texture \"%s\" not found', key);\r\n\r\n return out;\r\n }\r\n\r\n var texture = this.textureManager.get(key);\r\n\r\n if (!texture)\r\n {\r\n return out;\r\n }\r\n\r\n if (first && texture.has(first))\r\n {\r\n out.push({ key: key, frame: first });\r\n }\r\n\r\n // No 'frames' array? Then generate one automatically\r\n if (!frames)\r\n {\r\n if (end === -1)\r\n {\r\n // -1 because of __BASE, which we don't want in our results\r\n // and -1 because frames are zero based\r\n end = texture.frameTotal - 2;\r\n }\r\n\r\n frames = NumberArray(start, end);\r\n }\r\n\r\n for (var i = 0; i < frames.length; i++)\r\n {\r\n var frameName = frames[i];\r\n\r\n if (texture.has(frameName))\r\n {\r\n out.push({ key: key, frame: frameName });\r\n }\r\n else\r\n {\r\n console.warn('Frame \"%s\" not found in texture \"%s\"', frameName, key);\r\n }\r\n }\r\n\r\n return out;\r\n },\r\n\r\n /**\r\n * Get an Animation.\r\n *\r\n * @method Phaser.Animations.AnimationManager#get\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key of the Animation to retrieve.\r\n *\r\n * @return {Phaser.Animations.Animation} The Animation.\r\n */\r\n get: function (key)\r\n {\r\n return this.anims.get(key);\r\n },\r\n\r\n /**\r\n * Returns an array of all Animation keys that are using the given\r\n * Texture. Only Animations that have at least one AnimationFrame\r\n * entry using this texture will be included in the result.\r\n *\r\n * @method Phaser.Animations.AnimationManager#getAnimsFromTexture\r\n * @since 3.60.0\r\n *\r\n * @param {(string|Phaser.Textures.Texture|Phaser.Textures.Frame)} key - The unique string-based key of the Texture, or a Texture, or Frame instance.\r\n *\r\n * @return {string[]} An array of Animation keys that feature the given Texture.\r\n */\r\n getAnimsFromTexture: function (key)\r\n {\r\n var texture = this.textureManager.get(key);\r\n\r\n var match = texture.key;\r\n var anims = this.anims.getArray();\r\n\r\n var out = [];\r\n\r\n for (var i = 0; i < anims.length; i++)\r\n {\r\n var anim = anims[i];\r\n var frames = anim.frames;\r\n\r\n for (var c = 0; c < frames.length; c++)\r\n {\r\n if (frames[c].textureKey === match)\r\n {\r\n out.push(anim.key);\r\n\r\n break;\r\n }\r\n }\r\n }\r\n\r\n return out;\r\n },\r\n\r\n /**\r\n * Pause all animations.\r\n *\r\n * @method Phaser.Animations.AnimationManager#pauseAll\r\n * @fires Phaser.Animations.Events#PAUSE_ALL\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Animation Manager.\r\n */\r\n pauseAll: function ()\r\n {\r\n if (!this.paused)\r\n {\r\n this.paused = true;\r\n\r\n this.emit(Events.PAUSE_ALL);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Play an animation on the given Game Objects that have an Animation Component.\r\n *\r\n * @method Phaser.Animations.AnimationManager#play\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Animations.Animation|Phaser.Types.Animations.PlayAnimationConfig)} key - The string-based key of the animation to play, or an Animation instance, or a `PlayAnimationConfig` object.\r\n * @param {Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]} children - An array of Game Objects to play the animation on. They must have an Animation Component.\r\n *\r\n * @return {this} This Animation Manager.\r\n */\r\n play: function (key, children)\r\n {\r\n if (!Array.isArray(children))\r\n {\r\n children = [ children ];\r\n }\r\n\r\n for (var i = 0; i < children.length; i++)\r\n {\r\n children[i].anims.play(key);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes an array of Game Objects that have an Animation Component and then\r\n * starts the given animation playing on them. The start time of each Game Object\r\n * is offset, incrementally, by the `stagger` amount.\r\n *\r\n * For example, if you pass an array with 4 children and a stagger time of 1000,\r\n * the delays will be:\r\n *\r\n * child 1: 1000ms delay\r\n * child 2: 2000ms delay\r\n * child 3: 3000ms delay\r\n * child 4: 4000ms delay\r\n *\r\n * If you set the `staggerFirst` parameter to `false` they would be:\r\n *\r\n * child 1: 0ms delay\r\n * child 2: 1000ms delay\r\n * child 3: 2000ms delay\r\n * child 4: 3000ms delay\r\n *\r\n * You can also set `stagger` to be a negative value. If it was -1000, the above would be:\r\n *\r\n * child 1: 3000ms delay\r\n * child 2: 2000ms delay\r\n * child 3: 1000ms delay\r\n * child 4: 0ms delay\r\n *\r\n * @method Phaser.Animations.AnimationManager#staggerPlay\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [items,$return]\r\n *\r\n * @param {(string|Phaser.Animations.Animation|Phaser.Types.Animations.PlayAnimationConfig)} key - The string-based key of the animation to play, or an Animation instance, or a `PlayAnimationConfig` object.\r\n * @param {Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]} children - An array of Game Objects to play the animation on. They must have an Animation Component.\r\n * @param {number} stagger - The amount of time, in milliseconds, to offset each play time by. If a negative value is given, it's applied to the children in reverse order.\r\n * @param {boolean} [staggerFirst=true] -Should the first child be staggered as well?\r\n *\r\n * @return {this} This Animation Manager.\r\n */\r\n staggerPlay: function (key, children, stagger, staggerFirst)\r\n {\r\n if (stagger === undefined) { stagger = 0; }\r\n if (staggerFirst === undefined) { staggerFirst = true; }\r\n\r\n if (!Array.isArray(children))\r\n {\r\n children = [ children ];\r\n }\r\n\r\n var len = children.length;\r\n\r\n if (!staggerFirst)\r\n {\r\n len--;\r\n }\r\n\r\n for (var i = 0; i < children.length; i++)\r\n {\r\n var time = (stagger < 0) ? Math.abs(stagger) * (len - i) : stagger * i;\r\n\r\n children[i].anims.playAfterDelay(key, time);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes an Animation from this Animation Manager, based on the given key.\r\n *\r\n * This is a global action. Once an Animation has been removed, no Game Objects\r\n * can carry on using it.\r\n *\r\n * @method Phaser.Animations.AnimationManager#remove\r\n * @fires Phaser.Animations.Events#REMOVE_ANIMATION\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key of the animation to remove.\r\n *\r\n * @return {Phaser.Animations.Animation} The Animation instance that was removed from the Animation Manager.\r\n */\r\n remove: function (key)\r\n {\r\n var anim = this.get(key);\r\n\r\n if (anim)\r\n {\r\n this.emit(Events.REMOVE_ANIMATION, key, anim);\r\n\r\n this.anims.delete(key);\r\n\r\n this.removeMix(key);\r\n }\r\n\r\n return anim;\r\n },\r\n\r\n /**\r\n * Resume all paused animations.\r\n *\r\n * @method Phaser.Animations.AnimationManager#resumeAll\r\n * @fires Phaser.Animations.Events#RESUME_ALL\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Animation Manager.\r\n */\r\n resumeAll: function ()\r\n {\r\n if (this.paused)\r\n {\r\n this.paused = false;\r\n\r\n this.emit(Events.RESUME_ALL);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns the Animation data as JavaScript object based on the given key.\r\n * Or, if not key is defined, it will return the data of all animations as array of objects.\r\n *\r\n * @method Phaser.Animations.AnimationManager#toJSON\r\n * @since 3.0.0\r\n *\r\n * @param {string} [key] - The animation to get the JSONAnimation data from. If not provided, all animations are returned as an array.\r\n *\r\n * @return {Phaser.Types.Animations.JSONAnimations} The resulting JSONAnimations formatted object.\r\n */\r\n toJSON: function (key)\r\n {\r\n var output = {\r\n anims: [],\r\n globalTimeScale: this.globalTimeScale\r\n };\r\n\r\n if (key !== undefined && key !== '')\r\n {\r\n output.anims.push(this.anims.get(key).toJSON());\r\n }\r\n else\r\n {\r\n this.anims.each(function (animationKey, animation)\r\n {\r\n output.anims.push(animation.toJSON());\r\n });\r\n }\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Destroy this Animation Manager and clean up animation definitions and references to other objects.\r\n * This method should not be called directly. It will be called automatically as a response to a `destroy` event from the Phaser.Game instance.\r\n *\r\n * @method Phaser.Animations.AnimationManager#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.anims.clear();\r\n this.mixes.clear();\r\n\r\n this.textureManager = null;\r\n\r\n this.game = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = AnimationManager;\r\n\n\n/***/ }),\n\n/***/ 9674:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Animation = __webpack_require__(42099);\r\nvar Between = __webpack_require__(30976);\r\nvar Class = __webpack_require__(83419);\r\nvar CustomMap = __webpack_require__(90330);\r\nvar Events = __webpack_require__(74943);\r\nvar GetFastValue = __webpack_require__(95540);\r\n\r\n/**\r\n * @classdesc\r\n * The Animation State Component.\r\n *\r\n * This component provides features to apply animations to Game Objects. It is responsible for\r\n * loading, queuing animations for later playback, mixing between animations and setting\r\n * the current animation frame to the Game Object that owns this component.\r\n *\r\n * This component lives as an instance within any Game Object that has it defined, such as Sprites.\r\n *\r\n * You can access its properties and methods via the `anims` property, i.e. `Sprite.anims`.\r\n *\r\n * As well as playing animations stored in the global Animation Manager, this component\r\n * can also create animations that are stored locally within it. See the `create` method\r\n * for more details.\r\n *\r\n * Prior to Phaser 3.50 this component was called just `Animation` and lived in the\r\n * `Phaser.GameObjects.Components` namespace. It was renamed to `AnimationState`\r\n * in 3.50 to help better identify its true purpose when browsing the documentation.\r\n *\r\n * @class AnimationState\r\n * @memberof Phaser.Animations\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} parent - The Game Object to which this animation component belongs.\r\n */\r\nvar AnimationState = new Class({\r\n\r\n initialize:\r\n\r\n function AnimationState (parent)\r\n {\r\n /**\r\n * The Game Object to which this animation component belongs.\r\n *\r\n * You can typically access this component from the Game Object\r\n * via the `this.anims` property.\r\n *\r\n * @name Phaser.Animations.AnimationState#parent\r\n * @type {Phaser.GameObjects.GameObject}\r\n * @since 3.0.0\r\n */\r\n this.parent = parent;\r\n\r\n /**\r\n * A reference to the global Animation Manager.\r\n *\r\n * @name Phaser.Animations.AnimationState#animationManager\r\n * @type {Phaser.Animations.AnimationManager}\r\n * @since 3.0.0\r\n */\r\n this.animationManager = parent.scene.sys.anims;\r\n\r\n this.animationManager.on(Events.REMOVE_ANIMATION, this.globalRemove, this);\r\n\r\n /**\r\n * A reference to the Texture Manager.\r\n *\r\n * @name Phaser.Animations.AnimationState#textureManager\r\n * @type {Phaser.Textures.TextureManager}\r\n * @protected\r\n * @since 3.50.0\r\n */\r\n this.textureManager = this.animationManager.textureManager;\r\n\r\n /**\r\n * The Animations stored locally in this Animation component.\r\n *\r\n * Do not modify the contents of this Map directly, instead use the\r\n * `add`, `create` and `remove` methods of this class instead.\r\n *\r\n * @name Phaser.Animations.AnimationState#anims\r\n * @type {Phaser.Structs.Map.}\r\n * @protected\r\n * @since 3.50.0\r\n */\r\n this.anims = null;\r\n\r\n /**\r\n * Is an animation currently playing or not?\r\n *\r\n * @name Phaser.Animations.AnimationState#isPlaying\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.isPlaying = false;\r\n\r\n /**\r\n * Has the current animation started playing, or is it waiting for a delay to expire?\r\n *\r\n * @name Phaser.Animations.AnimationState#hasStarted\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.50.0\r\n */\r\n this.hasStarted = false;\r\n\r\n /**\r\n * The current Animation loaded into this Animation component.\r\n *\r\n * Will by `null` if no animation is yet loaded.\r\n *\r\n * @name Phaser.Animations.AnimationState#currentAnim\r\n * @type {?Phaser.Animations.Animation}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.currentAnim = null;\r\n\r\n /**\r\n * The current AnimationFrame being displayed by this Animation component.\r\n *\r\n * Will by `null` if no animation is yet loaded.\r\n *\r\n * @name Phaser.Animations.AnimationState#currentFrame\r\n * @type {?Phaser.Animations.AnimationFrame}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.currentFrame = null;\r\n\r\n /**\r\n * The key, instance, or config of the next Animation to be loaded into this Animation component\r\n * when the current animation completes.\r\n *\r\n * Will by `null` if no animation has been queued.\r\n *\r\n * @name Phaser.Animations.AnimationState#nextAnim\r\n * @type {?(string|Phaser.Animations.Animation|Phaser.Types.Animations.PlayAnimationConfig)}\r\n * @default null\r\n * @since 3.16.0\r\n */\r\n this.nextAnim = null;\r\n\r\n /**\r\n * A queue of Animations to be loaded into this Animation component when the current animation completes.\r\n *\r\n * Populate this queue via the `chain` method.\r\n *\r\n * @name Phaser.Animations.AnimationState#nextAnimsQueue\r\n * @type {array}\r\n * @since 3.24.0\r\n */\r\n this.nextAnimsQueue = [];\r\n\r\n /**\r\n * The Time Scale factor.\r\n *\r\n * You can adjust this value to modify the passage of time for the animation that is currently\r\n * playing. For example, setting it to 2 will make the animation play twice as fast. Or setting\r\n * it to 0.5 will slow the animation down.\r\n *\r\n * You can change this value at run-time, or set it via the `PlayAnimationConfig`.\r\n *\r\n * Prior to Phaser 3.50 this property was private and called `_timeScale`.\r\n *\r\n * @name Phaser.Animations.AnimationState#timeScale\r\n * @type {number}\r\n * @default 1\r\n * @since 3.50.0\r\n */\r\n this.timeScale = 1;\r\n\r\n /**\r\n * The frame rate of playback, of the current animation, in frames per second.\r\n *\r\n * This value is set when a new animation is loaded into this component and should\r\n * be treated as read-only, as changing it once playback has started will not alter\r\n * the animation. To change the frame rate, provide a new value in the `PlayAnimationConfig` object.\r\n *\r\n * @name Phaser.Animations.AnimationState#frameRate\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.frameRate = 0;\r\n\r\n /**\r\n * The duration of the current animation, in milliseconds.\r\n *\r\n * This value is set when a new animation is loaded into this component and should\r\n * be treated as read-only, as changing it once playback has started will not alter\r\n * the animation. To change the duration, provide a new value in the `PlayAnimationConfig` object.\r\n *\r\n * @name Phaser.Animations.AnimationState#duration\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.duration = 0;\r\n\r\n /**\r\n * The number of milliseconds per frame, not including frame specific modifiers that may be present in the\r\n * Animation data.\r\n *\r\n * This value is calculated when a new animation is loaded into this component and should\r\n * be treated as read-only. Changing it will not alter playback speed.\r\n *\r\n * @name Phaser.Animations.AnimationState#msPerFrame\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.msPerFrame = 0;\r\n\r\n /**\r\n * Skip frames if the time lags, or always advanced anyway?\r\n *\r\n * @name Phaser.Animations.AnimationState#skipMissedFrames\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.skipMissedFrames = true;\r\n\r\n /**\r\n * Start playback of this animation from a random frame?\r\n *\r\n * @name Phaser.Animations.AnimationState#randomFrame\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.60.0\r\n */\r\n this.randomFrame = false;\r\n\r\n /**\r\n * The delay before starting playback of the current animation, in milliseconds.\r\n *\r\n * This value is set when a new animation is loaded into this component and should\r\n * be treated as read-only, as changing it once playback has started will not alter\r\n * the animation. To change the delay, provide a new value in the `PlayAnimationConfig` object.\r\n *\r\n * Prior to Phaser 3.50 this property was private and called `_delay`.\r\n *\r\n * @name Phaser.Animations.AnimationState#delay\r\n * @type {number}\r\n * @default 0\r\n * @since 3.50.0\r\n */\r\n this.delay = 0;\r\n\r\n /**\r\n * The number of times to repeat playback of the current animation.\r\n *\r\n * If -1, it means the animation will repeat forever.\r\n *\r\n * This value is set when a new animation is loaded into this component and should\r\n * be treated as read-only, as changing it once playback has started will not alter\r\n * the animation. To change the number of repeats, provide a new value in the `PlayAnimationConfig` object.\r\n *\r\n * Prior to Phaser 3.50 this property was private and called `_repeat`.\r\n *\r\n * @name Phaser.Animations.AnimationState#repeat\r\n * @type {number}\r\n * @default 0\r\n * @since 3.50.0\r\n */\r\n this.repeat = 0;\r\n\r\n /**\r\n * The number of milliseconds to wait before starting the repeat playback of the current animation.\r\n *\r\n * This value is set when a new animation is loaded into this component, but can also be modified\r\n * at run-time.\r\n *\r\n * You can change the repeat delay by providing a new value in the `PlayAnimationConfig` object.\r\n *\r\n * Prior to Phaser 3.50 this property was private and called `_repeatDelay`.\r\n *\r\n * @name Phaser.Animations.AnimationState#repeatDelay\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.repeatDelay = 0;\r\n\r\n /**\r\n * Should the current animation yoyo? An animation that yoyos will play in reverse, from the end\r\n * to the start, before then repeating or completing. An animation that does not yoyo will just\r\n * play from the start to the end.\r\n *\r\n * This value is set when a new animation is loaded into this component, but can also be modified\r\n * at run-time.\r\n *\r\n * You can change the yoyo by providing a new value in the `PlayAnimationConfig` object.\r\n *\r\n * Prior to Phaser 3.50 this property was private and called `_yoyo`.\r\n *\r\n * @name Phaser.Animations.AnimationState#yoyo\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.50.0\r\n */\r\n this.yoyo = false;\r\n\r\n /**\r\n * If the animation has a delay set, before playback will begin, this\r\n * controls when the first frame is set on the Sprite. If this property\r\n * is 'false' then the frame is set only after the delay has expired.\r\n * This is the default behavior.\r\n *\r\n * If this property is 'true' then the first frame of this animation\r\n * is set immediately, and then when the delay expires, playback starts.\r\n *\r\n * @name Phaser.Animations.AnimationState#showBeforeDelay\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.showBeforeDelay = false;\r\n\r\n /**\r\n * Should the GameObject's `visible` property be set to `true` when the animation starts to play?\r\n *\r\n * This will happen _after_ any delay that may have been set.\r\n *\r\n * This value is set when a new animation is loaded into this component, but can also be modified\r\n * at run-time, assuming the animation is currently delayed.\r\n *\r\n * @name Phaser.Animations.AnimationState#showOnStart\r\n * @type {boolean}\r\n * @since 3.50.0\r\n */\r\n this.showOnStart = false;\r\n\r\n /**\r\n * Should the GameObject's `visible` property be set to `false` when the animation completes?\r\n *\r\n * This value is set when a new animation is loaded into this component, but can also be modified\r\n * at run-time, assuming the animation is still actively playing.\r\n *\r\n * @name Phaser.Animations.AnimationState#hideOnComplete\r\n * @type {boolean}\r\n * @since 3.50.0\r\n */\r\n this.hideOnComplete = false;\r\n\r\n /**\r\n * Is the playhead moving forwards (`true`) or in reverse (`false`) ?\r\n *\r\n * @name Phaser.Animations.AnimationState#forward\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.forward = true;\r\n\r\n /**\r\n * An internal trigger that tells the component if it should plays the animation\r\n * in reverse mode ('true') or not ('false'). This is used because `forward` can\r\n * be changed by the `yoyo` feature.\r\n *\r\n * Prior to Phaser 3.50 this property was private and called `_reverse`.\r\n *\r\n * @name Phaser.Animations.AnimationState#inReverse\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.50.0\r\n */\r\n this.inReverse = false;\r\n\r\n /**\r\n * Internal time overflow accumulator.\r\n *\r\n * This has the `delta` time added to it as part of the `update` step.\r\n *\r\n * @name Phaser.Animations.AnimationState#accumulator\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.accumulator = 0;\r\n\r\n /**\r\n * The time point at which the next animation frame will change.\r\n *\r\n * This value is compared against the `accumulator` as part of the `update` step.\r\n *\r\n * @name Phaser.Animations.AnimationState#nextTick\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.nextTick = 0;\r\n\r\n /**\r\n * A counter keeping track of how much delay time, in milliseconds, is left before playback begins.\r\n *\r\n * This is set via the `playAfterDelay` method, although it can be modified at run-time\r\n * if required, as long as the animation has not already started playing.\r\n *\r\n * @name Phaser.Animations.AnimationState#delayCounter\r\n * @type {number}\r\n * @default 0\r\n * @since 3.50.0\r\n */\r\n this.delayCounter = 0;\r\n\r\n /**\r\n * A counter that keeps track of how many repeats are left to run.\r\n *\r\n * This value is set when a new animation is loaded into this component, but can also be modified\r\n * at run-time.\r\n *\r\n * @name Phaser.Animations.AnimationState#repeatCounter\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.repeatCounter = 0;\r\n\r\n /**\r\n * An internal flag keeping track of pending repeats.\r\n *\r\n * @name Phaser.Animations.AnimationState#pendingRepeat\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.pendingRepeat = false;\r\n\r\n /**\r\n * Is the Animation paused?\r\n *\r\n * @name Phaser.Animations.AnimationState#_paused\r\n * @type {boolean}\r\n * @private\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this._paused = false;\r\n\r\n /**\r\n * Was the animation previously playing before being paused?\r\n *\r\n * @name Phaser.Animations.AnimationState#_wasPlaying\r\n * @type {boolean}\r\n * @private\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this._wasPlaying = false;\r\n\r\n /**\r\n * Internal property tracking if this Animation is waiting to stop.\r\n *\r\n * 0 = No\r\n * 1 = Waiting for ms to pass\r\n * 2 = Waiting for repeat\r\n * 3 = Waiting for specific frame\r\n *\r\n * @name Phaser.Animations.AnimationState#_pendingStop\r\n * @type {number}\r\n * @private\r\n * @since 3.4.0\r\n */\r\n this._pendingStop = 0;\r\n\r\n /**\r\n * Internal property used by _pendingStop.\r\n *\r\n * @name Phaser.Animations.AnimationState#_pendingStopValue\r\n * @type {any}\r\n * @private\r\n * @since 3.4.0\r\n */\r\n this._pendingStopValue;\r\n },\r\n\r\n /**\r\n * Sets an animation, or an array of animations, to be played in the future, after the current one completes or stops.\r\n *\r\n * The current animation must enter a 'completed' state for this to happen, i.e. finish all of its repeats, delays, etc,\r\n * or have one of the `stop` methods called.\r\n *\r\n * An animation set to repeat forever will never enter a completed state unless stopped.\r\n *\r\n * You can chain a new animation at any point, including before the current one starts playing, during it, or when it ends (via its `animationcomplete` event).\r\n *\r\n * Chained animations are specific to a Game Object, meaning different Game Objects can have different chained animations without impacting the global animation they're playing.\r\n *\r\n * Call this method with no arguments to reset all currently chained animations.\r\n *\r\n * @method Phaser.Animations.AnimationState#chain\r\n * @since 3.16.0\r\n *\r\n * @param {(string|Phaser.Animations.Animation|Phaser.Types.Animations.PlayAnimationConfig|string[]|Phaser.Animations.Animation[]|Phaser.Types.Animations.PlayAnimationConfig[])} [key] - The string-based key of the animation to play, or an Animation instance, or a `PlayAnimationConfig` object, or an array of them.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that owns this Animation Component.\r\n */\r\n chain: function (key)\r\n {\r\n var parent = this.parent;\r\n\r\n if (key === undefined)\r\n {\r\n this.nextAnimsQueue.length = 0;\r\n this.nextAnim = null;\r\n\r\n return parent;\r\n }\r\n\r\n if (!Array.isArray(key))\r\n {\r\n key = [ key ];\r\n }\r\n\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n var anim = key[i];\r\n\r\n if (!this.nextAnim)\r\n {\r\n this.nextAnim = anim;\r\n }\r\n else\r\n {\r\n this.nextAnimsQueue.push(anim);\r\n }\r\n }\r\n\r\n return this.parent;\r\n },\r\n\r\n /**\r\n * Returns the key of the animation currently loaded into this component.\r\n *\r\n * Prior to Phaser 3.50 this method was called `getCurrentKey`.\r\n *\r\n * @method Phaser.Animations.AnimationState#getName\r\n * @since 3.50.0\r\n *\r\n * @return {string} The key of the Animation currently loaded into this component, or an empty string if none loaded.\r\n */\r\n getName: function ()\r\n {\r\n return (this.currentAnim) ? this.currentAnim.key : '';\r\n },\r\n\r\n /**\r\n * Returns the key of the animation frame currently displayed by this component.\r\n *\r\n * @method Phaser.Animations.AnimationState#getFrameName\r\n * @since 3.50.0\r\n *\r\n * @return {string} The key of the Animation Frame currently displayed by this component, or an empty string if no animation has been loaded.\r\n */\r\n getFrameName: function ()\r\n {\r\n return (this.currentFrame) ? this.currentFrame.textureFrame : '';\r\n },\r\n\r\n /**\r\n * Internal method used to load an animation into this component.\r\n *\r\n * @method Phaser.Animations.AnimationState#load\r\n * @protected\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Animations.PlayAnimationConfig)} key - The string-based key of the animation to play, or a `PlayAnimationConfig` object.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that owns this Animation Component.\r\n */\r\n load: function (key)\r\n {\r\n if (this.isPlaying)\r\n {\r\n this.stop();\r\n }\r\n\r\n var manager = this.animationManager;\r\n var animKey = (typeof key === 'string') ? key : GetFastValue(key, 'key', null);\r\n\r\n // Get the animation, first from the local map and, if not found, from the Animation Manager\r\n var anim = (this.exists(animKey)) ? this.get(animKey) : manager.get(animKey);\r\n\r\n if (!anim)\r\n {\r\n console.warn('Missing animation: ' + animKey);\r\n }\r\n else\r\n {\r\n this.currentAnim = anim;\r\n\r\n // And now override the animation values, if set in the config.\r\n\r\n var totalFrames = anim.getTotalFrames();\r\n var frameRate = GetFastValue(key, 'frameRate', anim.frameRate);\r\n var duration = GetFastValue(key, 'duration', anim.duration);\r\n\r\n anim.calculateDuration(this, totalFrames, duration, frameRate);\r\n\r\n this.delay = GetFastValue(key, 'delay', anim.delay);\r\n this.repeat = GetFastValue(key, 'repeat', anim.repeat);\r\n this.repeatDelay = GetFastValue(key, 'repeatDelay', anim.repeatDelay);\r\n this.yoyo = GetFastValue(key, 'yoyo', anim.yoyo);\r\n this.showBeforeDelay = GetFastValue(key, 'showBeforeDelay', anim.showBeforeDelay);\r\n this.showOnStart = GetFastValue(key, 'showOnStart', anim.showOnStart);\r\n this.hideOnComplete = GetFastValue(key, 'hideOnComplete', anim.hideOnComplete);\r\n this.skipMissedFrames = GetFastValue(key, 'skipMissedFrames', anim.skipMissedFrames);\r\n this.randomFrame = GetFastValue(key, 'randomFrame', anim.randomFrame);\r\n\r\n this.timeScale = GetFastValue(key, 'timeScale', this.timeScale);\r\n\r\n var startFrame = GetFastValue(key, 'startFrame', 0);\r\n\r\n if (startFrame > totalFrames)\r\n {\r\n startFrame = 0;\r\n }\r\n\r\n if (this.randomFrame)\r\n {\r\n startFrame = Between(0, totalFrames - 1);\r\n }\r\n\r\n var frame = anim.frames[startFrame];\r\n\r\n if (startFrame === 0 && !this.forward)\r\n {\r\n frame = anim.getLastFrame();\r\n }\r\n\r\n this.currentFrame = frame;\r\n }\r\n\r\n return this.parent;\r\n },\r\n\r\n /**\r\n * Pause the current animation and set the `isPlaying` property to `false`.\r\n * You can optionally pause it at a specific frame.\r\n *\r\n * @method Phaser.Animations.AnimationState#pause\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Animations.AnimationFrame} [atFrame] - An optional frame to set after pausing the animation.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that owns this Animation Component.\r\n */\r\n pause: function (atFrame)\r\n {\r\n if (!this._paused)\r\n {\r\n this._paused = true;\r\n this._wasPlaying = this.isPlaying;\r\n this.isPlaying = false;\r\n }\r\n\r\n if (atFrame !== undefined)\r\n {\r\n this.setCurrentFrame(atFrame);\r\n }\r\n\r\n return this.parent;\r\n },\r\n\r\n /**\r\n * Resumes playback of a paused animation and sets the `isPlaying` property to `true`.\r\n * You can optionally tell it to start playback from a specific frame.\r\n *\r\n * @method Phaser.Animations.AnimationState#resume\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Animations.AnimationFrame} [fromFrame] - An optional frame to set before restarting playback.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that owns this Animation Component.\r\n */\r\n resume: function (fromFrame)\r\n {\r\n if (this._paused)\r\n {\r\n this._paused = false;\r\n this.isPlaying = this._wasPlaying;\r\n }\r\n\r\n if (fromFrame !== undefined)\r\n {\r\n this.setCurrentFrame(fromFrame);\r\n }\r\n\r\n return this.parent;\r\n },\r\n\r\n /**\r\n * Waits for the specified delay, in milliseconds, then starts playback of the given animation.\r\n *\r\n * If the animation _also_ has a delay value set in its config, it will be **added** to the delay given here.\r\n *\r\n * If an animation is already running and a new animation is given to this method, it will wait for\r\n * the given delay before starting the new animation.\r\n *\r\n * If no animation is currently running, the given one begins after the delay.\r\n *\r\n * Prior to Phaser 3.50 this method was called 'delayedPlay' and the parameters were in the reverse order.\r\n *\r\n * @method Phaser.Animations.AnimationState#playAfterDelay\r\n * @fires Phaser.Animations.Events#ANIMATION_START\r\n * @since 3.50.0\r\n *\r\n * @param {(string|Phaser.Animations.Animation|Phaser.Types.Animations.PlayAnimationConfig)} key - The string-based key of the animation to play, or an Animation instance, or a `PlayAnimationConfig` object.\r\n * @param {number} delay - The delay, in milliseconds, to wait before starting the animation playing.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that owns this Animation Component.\r\n */\r\n playAfterDelay: function (key, delay)\r\n {\r\n if (!this.isPlaying)\r\n {\r\n this.delayCounter = delay;\r\n\r\n this.play(key, true);\r\n }\r\n else\r\n {\r\n // If we've got a nextAnim, move it to the queue\r\n var nextAnim = this.nextAnim;\r\n var queue = this.nextAnimsQueue;\r\n\r\n if (nextAnim)\r\n {\r\n queue.unshift(nextAnim);\r\n }\r\n\r\n this.nextAnim = key;\r\n\r\n this._pendingStop = 1;\r\n this._pendingStopValue = delay;\r\n }\r\n\r\n return this.parent;\r\n },\r\n\r\n /**\r\n * Waits for the current animation to complete the `repeatCount` number of repeat cycles, then starts playback\r\n * of the given animation.\r\n *\r\n * You can use this to ensure there are no harsh jumps between two sets of animations, i.e. going from an\r\n * idle animation to a walking animation, by making them blend smoothly into each other.\r\n *\r\n * If no animation is currently running, the given one will start immediately.\r\n *\r\n * @method Phaser.Animations.AnimationState#playAfterRepeat\r\n * @fires Phaser.Animations.Events#ANIMATION_START\r\n * @since 3.50.0\r\n *\r\n * @param {(string|Phaser.Animations.Animation|Phaser.Types.Animations.PlayAnimationConfig)} key - The string-based key of the animation to play, or an Animation instance, or a `PlayAnimationConfig` object.\r\n * @param {number} [repeatCount=1] - How many times should the animation repeat before the next one starts?\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that owns this Animation Component.\r\n */\r\n playAfterRepeat: function (key, repeatCount)\r\n {\r\n if (repeatCount === undefined) { repeatCount = 1; }\r\n\r\n if (!this.isPlaying)\r\n {\r\n this.play(key);\r\n }\r\n else\r\n {\r\n // If we've got a nextAnim, move it to the queue\r\n var nextAnim = this.nextAnim;\r\n var queue = this.nextAnimsQueue;\r\n\r\n if (nextAnim)\r\n {\r\n queue.unshift(nextAnim);\r\n }\r\n\r\n if (this.repeatCounter !== -1 && repeatCount > this.repeatCounter)\r\n {\r\n repeatCount = this.repeatCounter;\r\n }\r\n\r\n this.nextAnim = key;\r\n\r\n this._pendingStop = 2;\r\n this._pendingStopValue = repeatCount;\r\n }\r\n\r\n return this.parent;\r\n },\r\n\r\n /**\r\n * Start playing the given animation on this Sprite.\r\n *\r\n * Animations in Phaser can either belong to the global Animation Manager, or specifically to this Sprite.\r\n *\r\n * The benefit of a global animation is that multiple Sprites can all play the same animation, without\r\n * having to duplicate the data. You can just create it once and then play it on any Sprite.\r\n *\r\n * The following code shows how to create a global repeating animation. The animation will be created\r\n * from all of the frames within the sprite sheet that was loaded with the key 'muybridge':\r\n *\r\n * ```javascript\r\n * var config = {\r\n * key: 'run',\r\n * frames: 'muybridge',\r\n * frameRate: 15,\r\n * repeat: -1\r\n * };\r\n *\r\n * // This code should be run from within a Scene:\r\n * this.anims.create(config);\r\n * ```\r\n *\r\n * However, if you wish to create an animation that is unique to this Sprite, and this Sprite alone,\r\n * you can call the `Animation.create` method instead. It accepts the exact same parameters as when\r\n * creating a global animation, however the resulting data is kept locally in this Sprite.\r\n *\r\n * With the animation created, either globally or locally, you can now play it on this Sprite:\r\n *\r\n * ```javascript\r\n * this.add.sprite(x, y).play('run');\r\n * ```\r\n *\r\n * Alternatively, if you wish to run it at a different frame rate, for example, you can pass a config\r\n * object instead:\r\n *\r\n * ```javascript\r\n * this.add.sprite(x, y).play({ key: 'run', frameRate: 24 });\r\n * ```\r\n *\r\n * When playing an animation on a Sprite it will first check to see if it can find a matching key\r\n * locally within the Sprite. If it can, it will play the local animation. If not, it will then\r\n * search the global Animation Manager and look for it there.\r\n *\r\n * If you need a Sprite to be able to play both local and global animations, make sure they don't\r\n * have conflicting keys.\r\n *\r\n * See the documentation for the `PlayAnimationConfig` config object for more details about this.\r\n *\r\n * Also, see the documentation in the Animation Manager for further details on creating animations.\r\n *\r\n * @method Phaser.Animations.AnimationState#play\r\n * @fires Phaser.Animations.Events#ANIMATION_START\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Animations.Animation|Phaser.Types.Animations.PlayAnimationConfig)} key - The string-based key of the animation to play, or an Animation instance, or a `PlayAnimationConfig` object.\r\n * @param {boolean} [ignoreIfPlaying=false] - If this animation is already playing then ignore this call.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that owns this Animation Component.\r\n */\r\n play: function (key, ignoreIfPlaying)\r\n {\r\n if (ignoreIfPlaying === undefined) { ignoreIfPlaying = false; }\r\n\r\n var currentAnim = this.currentAnim;\r\n var parent = this.parent;\r\n\r\n // Must be either an Animation instance, or a PlayAnimationConfig object\r\n var animKey = (typeof key === 'string') ? key : key.key;\r\n\r\n if (ignoreIfPlaying && this.isPlaying && currentAnim.key === animKey)\r\n {\r\n return parent;\r\n }\r\n\r\n // Are we mixing?\r\n if (currentAnim && this.isPlaying)\r\n {\r\n var mix = this.animationManager.getMix(currentAnim.key, key);\r\n\r\n if (mix > 0)\r\n {\r\n return this.playAfterDelay(key, mix);\r\n }\r\n }\r\n\r\n this.forward = true;\r\n this.inReverse = false;\r\n\r\n this._paused = false;\r\n this._wasPlaying = true;\r\n\r\n return this.startAnimation(key);\r\n },\r\n\r\n /**\r\n * Start playing the given animation on this Sprite, in reverse.\r\n *\r\n * Animations in Phaser can either belong to the global Animation Manager, or specifically to this Sprite.\r\n *\r\n * The benefit of a global animation is that multiple Sprites can all play the same animation, without\r\n * having to duplicate the data. You can just create it once and then play it on any Sprite.\r\n *\r\n * The following code shows how to create a global repeating animation. The animation will be created\r\n * from all of the frames within the sprite sheet that was loaded with the key 'muybridge':\r\n *\r\n * ```javascript\r\n * var config = {\r\n * key: 'run',\r\n * frames: 'muybridge',\r\n * frameRate: 15,\r\n * repeat: -1\r\n * };\r\n *\r\n * // This code should be run from within a Scene:\r\n * this.anims.create(config);\r\n * ```\r\n *\r\n * However, if you wish to create an animation that is unique to this Sprite, and this Sprite alone,\r\n * you can call the `Animation.create` method instead. It accepts the exact same parameters as when\r\n * creating a global animation, however the resulting data is kept locally in this Sprite.\r\n *\r\n * With the animation created, either globally or locally, you can now play it on this Sprite:\r\n *\r\n * ```javascript\r\n * this.add.sprite(x, y).playReverse('run');\r\n * ```\r\n *\r\n * Alternatively, if you wish to run it at a different frame rate, for example, you can pass a config\r\n * object instead:\r\n *\r\n * ```javascript\r\n * this.add.sprite(x, y).playReverse({ key: 'run', frameRate: 24 });\r\n * ```\r\n *\r\n * When playing an animation on a Sprite it will first check to see if it can find a matching key\r\n * locally within the Sprite. If it can, it will play the local animation. If not, it will then\r\n * search the global Animation Manager and look for it there.\r\n *\r\n * If you need a Sprite to be able to play both local and global animations, make sure they don't\r\n * have conflicting keys.\r\n *\r\n * See the documentation for the `PlayAnimationConfig` config object for more details about this.\r\n *\r\n * Also, see the documentation in the Animation Manager for further details on creating animations.\r\n *\r\n * @method Phaser.Animations.AnimationState#playReverse\r\n * @fires Phaser.Animations.Events#ANIMATION_START\r\n * @since 3.12.0\r\n *\r\n * @param {(string|Phaser.Animations.Animation|Phaser.Types.Animations.PlayAnimationConfig)} key - The string-based key of the animation to play, or an Animation instance, or a `PlayAnimationConfig` object.\r\n * @param {boolean} [ignoreIfPlaying=false] - If an animation is already playing then ignore this call.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that owns this Animation Component.\r\n */\r\n playReverse: function (key, ignoreIfPlaying)\r\n {\r\n if (ignoreIfPlaying === undefined) { ignoreIfPlaying = false; }\r\n\r\n // Must be either an Animation instance, or a PlayAnimationConfig object\r\n var animKey = (typeof key === 'string') ? key : key.key;\r\n\r\n if (ignoreIfPlaying && this.isPlaying && this.currentAnim.key === animKey)\r\n {\r\n return this.parent;\r\n }\r\n\r\n this.forward = false;\r\n this.inReverse = true;\r\n\r\n this._paused = false;\r\n this._wasPlaying = true;\r\n\r\n return this.startAnimation(key);\r\n },\r\n\r\n /**\r\n * Load the animation based on the key and set-up all of the internal values\r\n * needed for playback to start. If there is no delay, it will also fire the start events.\r\n *\r\n * @method Phaser.Animations.AnimationState#startAnimation\r\n * @fires Phaser.Animations.Events#ANIMATION_START\r\n * @since 3.50.0\r\n *\r\n * @param {(string|Phaser.Types.Animations.PlayAnimationConfig)} key - The string-based key of the animation to play, or a `PlayAnimationConfig` object.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that owns this Animation Component.\r\n */\r\n startAnimation: function (key)\r\n {\r\n this.load(key);\r\n\r\n var anim = this.currentAnim;\r\n var gameObject = this.parent;\r\n\r\n if (!anim)\r\n {\r\n return gameObject;\r\n }\r\n\r\n // Should give us 9,007,199,254,740,991 safe repeats\r\n this.repeatCounter = (this.repeat === -1) ? Number.MAX_VALUE : this.repeat;\r\n\r\n anim.getFirstTick(this);\r\n\r\n this.isPlaying = true;\r\n this.pendingRepeat = false;\r\n this.hasStarted = false;\r\n\r\n this._pendingStop = 0;\r\n this._pendingStopValue = 0;\r\n this._paused = false;\r\n\r\n // Add any delay the animation itself may have had as well\r\n this.delayCounter += this.delay;\r\n\r\n if (this.delayCounter === 0)\r\n {\r\n this.handleStart();\r\n }\r\n else if (this.showBeforeDelay)\r\n {\r\n // We have a delay, but still need to set the frame\r\n this.setCurrentFrame(this.currentFrame);\r\n }\r\n\r\n return gameObject;\r\n },\r\n\r\n /**\r\n * Handles the start of an animation playback.\r\n *\r\n * @method Phaser.Animations.AnimationState#handleStart\r\n * @private\r\n * @since 3.50.0\r\n */\r\n handleStart: function ()\r\n {\r\n if (this.showOnStart)\r\n {\r\n this.parent.setVisible(true);\r\n }\r\n\r\n this.setCurrentFrame(this.currentFrame);\r\n\r\n this.hasStarted = true;\r\n\r\n this.emitEvents(Events.ANIMATION_START);\r\n },\r\n\r\n /**\r\n * Handles the repeat of an animation.\r\n *\r\n * @method Phaser.Animations.AnimationState#handleRepeat\r\n * @private\r\n * @since 3.50.0\r\n */\r\n handleRepeat: function ()\r\n {\r\n this.pendingRepeat = false;\r\n\r\n this.emitEvents(Events.ANIMATION_REPEAT);\r\n },\r\n\r\n /**\r\n * Handles the stop of an animation playback.\r\n *\r\n * @method Phaser.Animations.AnimationState#handleStop\r\n * @private\r\n * @since 3.50.0\r\n */\r\n handleStop: function ()\r\n {\r\n this._pendingStop = 0;\r\n\r\n this.isPlaying = false;\r\n\r\n this.emitEvents(Events.ANIMATION_STOP);\r\n },\r\n\r\n /**\r\n * Handles the completion of an animation playback.\r\n *\r\n * @method Phaser.Animations.AnimationState#handleComplete\r\n * @private\r\n * @since 3.50.0\r\n */\r\n handleComplete: function ()\r\n {\r\n this._pendingStop = 0;\r\n\r\n this.isPlaying = false;\r\n\r\n if (this.hideOnComplete)\r\n {\r\n this.parent.setVisible(false);\r\n }\r\n\r\n this.emitEvents(Events.ANIMATION_COMPLETE, Events.ANIMATION_COMPLETE_KEY);\r\n },\r\n\r\n /**\r\n * Fires the given animation event.\r\n *\r\n * @method Phaser.Animations.AnimationState#emitEvents\r\n * @private\r\n * @since 3.50.0\r\n *\r\n * @param {string} event - The Animation Event to dispatch.\r\n */\r\n emitEvents: function (event, keyEvent)\r\n {\r\n var anim = this.currentAnim;\r\n\r\n if (anim)\r\n {\r\n var frame = this.currentFrame;\r\n\r\n var gameObject = this.parent;\r\n\r\n var frameKey = frame.textureFrame;\r\n\r\n gameObject.emit(event, anim, frame, gameObject, frameKey);\r\n\r\n if (keyEvent)\r\n {\r\n gameObject.emit(keyEvent + anim.key, anim, frame, gameObject, frameKey);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Reverse the Animation that is already playing on the Game Object.\r\n *\r\n * @method Phaser.Animations.AnimationState#reverse\r\n * @since 3.12.0\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that owns this Animation Component.\r\n */\r\n reverse: function ()\r\n {\r\n if (this.isPlaying)\r\n {\r\n this.inReverse = !this.inReverse;\r\n\r\n this.forward = !this.forward;\r\n }\r\n\r\n return this.parent;\r\n },\r\n\r\n /**\r\n * Returns a value between 0 and 1 indicating how far this animation is through, ignoring repeats and yoyos.\r\n *\r\n * The value is based on the current frame and how far that is in the animation, it is not based on\r\n * the duration of the animation.\r\n *\r\n * @method Phaser.Animations.AnimationState#getProgress\r\n * @since 3.4.0\r\n *\r\n * @return {number} The progress of the current animation in frames, between 0 and 1.\r\n */\r\n getProgress: function ()\r\n {\r\n var frame = this.currentFrame;\r\n\r\n if (!frame)\r\n {\r\n return 0;\r\n }\r\n\r\n var p = frame.progress;\r\n\r\n if (this.inReverse)\r\n {\r\n p *= -1;\r\n }\r\n\r\n return p;\r\n },\r\n\r\n /**\r\n * Takes a value between 0 and 1 and uses it to set how far this animation is through playback.\r\n *\r\n * Does not factor in repeats or yoyos, but does handle playing forwards or backwards.\r\n *\r\n * The value is based on the current frame and how far that is in the animation, it is not based on\r\n * the duration of the animation.\r\n *\r\n * @method Phaser.Animations.AnimationState#setProgress\r\n * @since 3.4.0\r\n *\r\n * @param {number} [value=0] - The progress value, between 0 and 1.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that owns this Animation Component.\r\n */\r\n setProgress: function (value)\r\n {\r\n if (!this.forward)\r\n {\r\n value = 1 - value;\r\n }\r\n\r\n this.setCurrentFrame(this.currentAnim.getFrameByProgress(value));\r\n\r\n return this.parent;\r\n },\r\n\r\n /**\r\n * Sets the number of times that the animation should repeat after its first play through.\r\n * For example, if repeat is 1, the animation will play a total of twice: the initial play plus 1 repeat.\r\n *\r\n * To repeat indefinitely, use -1.\r\n * The value should always be an integer.\r\n *\r\n * Calling this method only works if the animation is already running. Otherwise, any\r\n * value specified here will be overwritten when the next animation loads in. To avoid this,\r\n * use the `repeat` property of the `PlayAnimationConfig` object instead.\r\n *\r\n * @method Phaser.Animations.AnimationState#setRepeat\r\n * @since 3.4.0\r\n *\r\n * @param {number} value - The number of times that the animation should repeat.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that owns this Animation Component.\r\n */\r\n setRepeat: function (value)\r\n {\r\n this.repeatCounter = (value === -1) ? Number.MAX_VALUE : value;\r\n\r\n return this.parent;\r\n },\r\n\r\n /**\r\n * Handle the removal of an animation from the Animation Manager.\r\n *\r\n * @method Phaser.Animations.AnimationState#globalRemove\r\n * @since 3.50.0\r\n *\r\n * @param {string} [key] - The key of the removed Animation.\r\n * @param {Phaser.Animations.Animation} [animation] - The removed Animation.\r\n */\r\n globalRemove: function (key, animation)\r\n {\r\n if (animation === undefined) { animation = this.currentAnim; }\r\n\r\n if (this.isPlaying && animation.key === this.currentAnim.key)\r\n {\r\n this.stop();\r\n\r\n this.setCurrentFrame(this.currentAnim.frames[0]);\r\n }\r\n },\r\n\r\n /**\r\n * Restarts the current animation from its beginning.\r\n *\r\n * You can optionally reset the delay and repeat counters as well.\r\n *\r\n * Calling this will fire the `ANIMATION_RESTART` event immediately.\r\n *\r\n * If you `includeDelay` then it will also fire the `ANIMATION_START` event once\r\n * the delay has expired, otherwise, playback will just begin immediately.\r\n *\r\n * @method Phaser.Animations.AnimationState#restart\r\n * @fires Phaser.Animations.Events#ANIMATION_RESTART\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [includeDelay=false] - Whether to include the delay value of the animation when restarting.\r\n * @param {boolean} [resetRepeats=false] - Whether to reset the repeat counter or not?\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that owns this Animation Component.\r\n */\r\n restart: function (includeDelay, resetRepeats)\r\n {\r\n if (includeDelay === undefined) { includeDelay = false; }\r\n if (resetRepeats === undefined) { resetRepeats = false; }\r\n\r\n var anim = this.currentAnim;\r\n var gameObject = this.parent;\r\n\r\n if (!anim)\r\n {\r\n return gameObject;\r\n }\r\n\r\n if (resetRepeats)\r\n {\r\n this.repeatCounter = (this.repeat === -1) ? Number.MAX_VALUE : this.repeat;\r\n }\r\n\r\n anim.getFirstTick(this);\r\n\r\n this.emitEvents(Events.ANIMATION_RESTART);\r\n\r\n this.isPlaying = true;\r\n this.pendingRepeat = false;\r\n\r\n // Set this to `true` if there is no delay to include, so it skips the `hasStarted` check in `update`.\r\n this.hasStarted = !includeDelay;\r\n\r\n this._pendingStop = 0;\r\n this._pendingStopValue = 0;\r\n this._paused = false;\r\n\r\n this.setCurrentFrame(anim.frames[0]);\r\n\r\n return this.parent;\r\n },\r\n\r\n /**\r\n * The current animation has completed. This dispatches the `ANIMATION_COMPLETE` event.\r\n *\r\n * This method is called by the Animation instance and should not usually be invoked directly.\r\n *\r\n * If no animation is loaded, no events will be dispatched.\r\n *\r\n * If another animation has been queued for playback, it will be started after the events fire.\r\n *\r\n * @method Phaser.Animations.AnimationState#complete\r\n * @fires Phaser.Animations.Events#ANIMATION_COMPLETE\r\n * @since 3.50.0\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that owns this Animation Component.\r\n */\r\n complete: function ()\r\n {\r\n this._pendingStop = 0;\r\n\r\n this.isPlaying = false;\r\n\r\n if (this.currentAnim)\r\n {\r\n this.handleComplete();\r\n }\r\n\r\n if (this.nextAnim)\r\n {\r\n var key = this.nextAnim;\r\n\r\n this.nextAnim = (this.nextAnimsQueue.length > 0) ? this.nextAnimsQueue.shift() : null;\r\n\r\n this.play(key);\r\n }\r\n\r\n return this.parent;\r\n },\r\n\r\n /**\r\n * Immediately stops the current animation from playing and dispatches the `ANIMATION_STOP` event.\r\n *\r\n * If no animation is running, no events will be dispatched.\r\n *\r\n * If there is another animation in the queue (set via the `chain` method) then it will start playing.\r\n *\r\n * @method Phaser.Animations.AnimationState#stop\r\n * @fires Phaser.Animations.Events#ANIMATION_STOP\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that owns this Animation Component.\r\n */\r\n stop: function ()\r\n {\r\n this._pendingStop = 0;\r\n\r\n this.isPlaying = false;\r\n\r\n this.delayCounter = 0;\r\n\r\n if (this.currentAnim)\r\n {\r\n this.handleStop();\r\n }\r\n\r\n if (this.nextAnim)\r\n {\r\n var key = this.nextAnim;\r\n\r\n this.nextAnim = this.nextAnimsQueue.shift();\r\n\r\n this.play(key);\r\n }\r\n\r\n return this.parent;\r\n },\r\n\r\n /**\r\n * Stops the current animation from playing after the specified time delay, given in milliseconds.\r\n *\r\n * It then dispatches the `ANIMATION_STOP` event.\r\n *\r\n * If no animation is running, no events will be dispatched.\r\n *\r\n * If there is another animation in the queue (set via the `chain` method) then it will start playing,\r\n * when the current one stops.\r\n *\r\n * @method Phaser.Animations.AnimationState#stopAfterDelay\r\n * @fires Phaser.Animations.Events#ANIMATION_STOP\r\n * @since 3.4.0\r\n *\r\n * @param {number} delay - The number of milliseconds to wait before stopping this animation.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that owns this Animation Component.\r\n */\r\n stopAfterDelay: function (delay)\r\n {\r\n this._pendingStop = 1;\r\n this._pendingStopValue = delay;\r\n\r\n return this.parent;\r\n },\r\n\r\n /**\r\n * Stops the current animation from playing when it next repeats.\r\n *\r\n * It then dispatches the `ANIMATION_STOP` event.\r\n *\r\n * If no animation is running, no events will be dispatched.\r\n *\r\n * If there is another animation in the queue (set via the `chain` method) then it will start playing,\r\n * when the current one stops.\r\n *\r\n * Prior to Phaser 3.50 this method was called `stopOnRepeat` and had no parameters.\r\n *\r\n * @method Phaser.Animations.AnimationState#stopAfterRepeat\r\n * @fires Phaser.Animations.Events#ANIMATION_STOP\r\n * @since 3.50.0\r\n *\r\n * @param {number} [repeatCount=1] - How many times should the animation repeat before stopping?\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that owns this Animation Component.\r\n */\r\n stopAfterRepeat: function (repeatCount)\r\n {\r\n if (repeatCount === undefined) { repeatCount = 1; }\r\n\r\n if (this.repeatCounter !== -1 && repeatCount > this.repeatCounter)\r\n {\r\n repeatCount = this.repeatCounter;\r\n }\r\n\r\n this._pendingStop = 2;\r\n this._pendingStopValue = repeatCount;\r\n\r\n return this.parent;\r\n },\r\n\r\n /**\r\n * Stops the current animation from playing when it next sets the given frame.\r\n * If this frame doesn't exist within the animation it will not stop it from playing.\r\n *\r\n * It then dispatches the `ANIMATION_STOP` event.\r\n *\r\n * If no animation is running, no events will be dispatched.\r\n *\r\n * If there is another animation in the queue (set via the `chain` method) then it will start playing,\r\n * when the current one stops.\r\n *\r\n * @method Phaser.Animations.AnimationState#stopOnFrame\r\n * @fires Phaser.Animations.Events#ANIMATION_STOP\r\n * @since 3.4.0\r\n *\r\n * @param {Phaser.Animations.AnimationFrame} frame - The frame to check before stopping this animation.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that owns this Animation Component.\r\n */\r\n stopOnFrame: function (frame)\r\n {\r\n this._pendingStop = 3;\r\n this._pendingStopValue = frame;\r\n\r\n return this.parent;\r\n },\r\n\r\n /**\r\n * Returns the total number of frames in this animation, or returns zero if no\r\n * animation has been loaded.\r\n *\r\n * @method Phaser.Animations.AnimationState#getTotalFrames\r\n * @since 3.4.0\r\n *\r\n * @return {number} The total number of frames in the current animation, or zero if no animation has been loaded.\r\n */\r\n getTotalFrames: function ()\r\n {\r\n return (this.currentAnim) ? this.currentAnim.getTotalFrames() : 0;\r\n },\r\n\r\n /**\r\n * The internal update loop for the AnimationState Component.\r\n *\r\n * This is called automatically by the `Sprite.preUpdate` method.\r\n *\r\n * @method Phaser.Animations.AnimationState#update\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current timestamp.\r\n * @param {number} delta - The delta time, in ms, elapsed since the last frame.\r\n */\r\n update: function (time, delta)\r\n {\r\n var anim = this.currentAnim;\r\n\r\n if (!this.isPlaying || !anim || anim.paused)\r\n {\r\n return;\r\n }\r\n\r\n this.accumulator += delta * this.timeScale * this.animationManager.globalTimeScale;\r\n\r\n if (this._pendingStop === 1)\r\n {\r\n this._pendingStopValue -= delta;\r\n\r\n if (this._pendingStopValue <= 0)\r\n {\r\n return this.stop();\r\n }\r\n }\r\n\r\n if (!this.hasStarted)\r\n {\r\n if (this.accumulator >= this.delayCounter)\r\n {\r\n this.accumulator -= this.delayCounter;\r\n\r\n this.handleStart();\r\n }\r\n }\r\n else if (this.accumulator >= this.nextTick)\r\n {\r\n // Process one frame advance as standard\r\n\r\n if (this.forward)\r\n {\r\n anim.nextFrame(this);\r\n }\r\n else\r\n {\r\n anim.previousFrame(this);\r\n }\r\n\r\n // And only do more if we're skipping frames and have time left\r\n if (this.isPlaying && this._pendingStop === 0 && this.skipMissedFrames && this.accumulator > this.nextTick)\r\n {\r\n var safetyNet = 0;\r\n\r\n do\r\n {\r\n if (this.forward)\r\n {\r\n anim.nextFrame(this);\r\n }\r\n else\r\n {\r\n anim.previousFrame(this);\r\n }\r\n\r\n safetyNet++;\r\n\r\n } while (this.isPlaying && this.accumulator > this.nextTick && safetyNet < 60);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Sets the given Animation Frame as being the current frame\r\n * and applies it to the parent Game Object, adjusting size and origin as needed.\r\n *\r\n * @method Phaser.Animations.AnimationState#setCurrentFrame\r\n * @fires Phaser.Animations.Events#ANIMATION_UPDATE\r\n * @fires Phaser.Animations.Events#ANIMATION_STOP\r\n * @since 3.4.0\r\n *\r\n * @param {Phaser.Animations.AnimationFrame} animationFrame - The animation frame to change to.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object this Animation Component belongs to.\r\n */\r\n setCurrentFrame: function (animationFrame)\r\n {\r\n var gameObject = this.parent;\r\n\r\n this.currentFrame = animationFrame;\r\n\r\n gameObject.texture = animationFrame.frame.texture;\r\n gameObject.frame = animationFrame.frame;\r\n\r\n if (gameObject.isCropped)\r\n {\r\n gameObject.frame.updateCropUVs(gameObject._crop, gameObject.flipX, gameObject.flipY);\r\n }\r\n\r\n if (animationFrame.setAlpha)\r\n {\r\n gameObject.alpha = animationFrame.alpha;\r\n }\r\n\r\n gameObject.setSizeToFrame();\r\n\r\n if (gameObject._originComponent)\r\n {\r\n if (animationFrame.frame.customPivot)\r\n {\r\n gameObject.setOrigin(animationFrame.frame.pivotX, animationFrame.frame.pivotY);\r\n }\r\n else\r\n {\r\n gameObject.updateDisplayOrigin();\r\n }\r\n }\r\n\r\n if (this.isPlaying && this.hasStarted)\r\n {\r\n this.emitEvents(Events.ANIMATION_UPDATE);\r\n\r\n if (this._pendingStop === 3 && this._pendingStopValue === animationFrame)\r\n {\r\n this.stop();\r\n }\r\n }\r\n\r\n return gameObject;\r\n },\r\n\r\n /**\r\n * Advances the animation to the next frame, regardless of the time or animation state.\r\n * If the animation is set to repeat, or yoyo, this will still take effect.\r\n *\r\n * Calling this does not change the direction of the animation. I.e. if it was currently\r\n * playing in reverse, calling this method doesn't then change the direction to forwards.\r\n *\r\n * @method Phaser.Animations.AnimationState#nextFrame\r\n * @since 3.16.0\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object this Animation Component belongs to.\r\n */\r\n nextFrame: function ()\r\n {\r\n if (this.currentAnim)\r\n {\r\n this.currentAnim.nextFrame(this);\r\n }\r\n\r\n return this.parent;\r\n },\r\n\r\n /**\r\n * Advances the animation to the previous frame, regardless of the time or animation state.\r\n * If the animation is set to repeat, or yoyo, this will still take effect.\r\n *\r\n * Calling this does not change the direction of the animation. I.e. if it was currently\r\n * playing in forwards, calling this method doesn't then change the direction to backwards.\r\n *\r\n * @method Phaser.Animations.AnimationState#previousFrame\r\n * @since 3.16.0\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object this Animation Component belongs to.\r\n */\r\n previousFrame: function ()\r\n {\r\n if (this.currentAnim)\r\n {\r\n this.currentAnim.previousFrame(this);\r\n }\r\n\r\n return this.parent;\r\n },\r\n\r\n /**\r\n * Get an Animation instance that has been created locally on this Sprite.\r\n *\r\n * See the `create` method for more details.\r\n *\r\n * @method Phaser.Animations.AnimationState#get\r\n * @since 3.50.0\r\n *\r\n * @param {string} key - The key of the Animation to retrieve.\r\n *\r\n * @return {Phaser.Animations.Animation} The Animation, or `null` if the key is invalid.\r\n */\r\n get: function (key)\r\n {\r\n return (this.anims) ? this.anims.get(key) : null;\r\n },\r\n\r\n /**\r\n * Checks to see if the given key is already used locally within the animations stored on this Sprite.\r\n *\r\n * @method Phaser.Animations.AnimationState#exists\r\n * @since 3.50.0\r\n *\r\n * @param {string} key - The key of the Animation to check.\r\n *\r\n * @return {boolean} `true` if the Animation exists locally, or `false` if the key is available, or there are no local animations.\r\n */\r\n exists: function (key)\r\n {\r\n return (this.anims) ? this.anims.has(key) : false;\r\n },\r\n\r\n /**\r\n * Creates a new Animation that is local specifically to this Sprite.\r\n *\r\n * When a Sprite owns an animation, it is kept out of the global Animation Manager, which means\r\n * you're free to use keys that may be already defined there. Unless you specifically need a Sprite\r\n * to have a unique animation, you should favor using global animations instead, as they allow for\r\n * the same animation to be used across multiple Sprites, saving on memory. However, if this Sprite\r\n * is the only one to use this animation, it's sensible to create it here.\r\n *\r\n * If an invalid key is given this method will return `false`.\r\n *\r\n * If you pass the key of an animation that already exists locally, that animation will be returned.\r\n *\r\n * A brand new animation is only created if the key is valid and not already in use by this Sprite.\r\n *\r\n * If you wish to re-use an existing key, call the `remove` method first, then this method.\r\n *\r\n * @method Phaser.Animations.AnimationState#create\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Types.Animations.Animation} config - The configuration settings for the Animation.\r\n *\r\n * @return {(Phaser.Animations.Animation|false)} The Animation that was created, or `false` if the key is already in use.\r\n */\r\n create: function (config)\r\n {\r\n var key = config.key;\r\n\r\n var anim = false;\r\n\r\n if (key)\r\n {\r\n anim = this.get(key);\r\n\r\n if (!anim)\r\n {\r\n anim = new Animation(this, key, config);\r\n\r\n if (!this.anims)\r\n {\r\n this.anims = new CustomMap();\r\n }\r\n\r\n this.anims.set(key, anim);\r\n }\r\n else\r\n {\r\n console.warn('Animation key already exists: ' + key);\r\n }\r\n }\r\n\r\n return anim;\r\n },\r\n\r\n /**\r\n * Create one, or more animations from a loaded Aseprite JSON file.\r\n *\r\n * Aseprite is a powerful animated sprite editor and pixel art tool.\r\n *\r\n * You can find more details at https://www.aseprite.org/\r\n *\r\n * To export a compatible JSON file in Aseprite, please do the following:\r\n *\r\n * 1. Go to \"File - Export Sprite Sheet\"\r\n *\r\n * 2. On the **Layout** tab:\r\n * 2a. Set the \"Sheet type\" to \"Packed\"\r\n * 2b. Set the \"Constraints\" to \"None\"\r\n * 2c. Check the \"Merge Duplicates\" checkbox\r\n *\r\n * 3. On the **Sprite** tab:\r\n * 3a. Set \"Layers\" to \"Visible layers\"\r\n * 3b. Set \"Frames\" to \"All frames\", unless you only wish to export a sub-set of tags\r\n *\r\n * 4. On the **Borders** tab:\r\n * 4a. Check the \"Trim Sprite\" and \"Trim Cells\" options\r\n * 4b. Ensure \"Border Padding\", \"Spacing\" and \"Inner Padding\" are all > 0 (1 is usually enough)\r\n *\r\n * 5. On the **Output** tab:\r\n * 5a. Check \"Output File\", give your image a name and make sure you choose \"png files\" as the file type\r\n * 5b. Check \"JSON Data\" and give your json file a name\r\n * 5c. The JSON Data type can be either a Hash or Array, Phaser doesn't mind.\r\n * 5d. Make sure \"Tags\" is checked in the Meta options\r\n * 5e. In the \"Item Filename\" input box, make sure it says just \"{frame}\" and nothing more.\r\n *\r\n * 6. Click export\r\n *\r\n * This was tested with Aseprite 1.2.25.\r\n *\r\n * This will export a png and json file which you can load using the Aseprite Loader, i.e.:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.path = 'assets/animations/aseprite/';\r\n * this.load.aseprite('paladin', 'paladin.png', 'paladin.json');\r\n * }\r\n * ```\r\n *\r\n * Once loaded, you can call this method on a Sprite with the 'atlas' key:\r\n *\r\n * ```javascript\r\n * const sprite = this.add.sprite(400, 300);\r\n *\r\n * sprite.anims.createFromAseprite('paladin');\r\n * ```\r\n *\r\n * Any animations defined in the JSON will now be available to use on this Sprite and you play them\r\n * via their Tag name. For example, if you have an animation called 'War Cry' on your Aseprite timeline,\r\n * you can play it on the Sprite using that Tag name:\r\n *\r\n * ```javascript\r\n * const sprite = this.add.sprite(400, 300);\r\n *\r\n * sprite.anims.createFromAseprite('paladin');\r\n *\r\n * sprite.play('War Cry');\r\n * ```\r\n *\r\n * When calling this method you can optionally provide an array of tag names, and only those animations\r\n * will be created. For example:\r\n *\r\n * ```javascript\r\n * sprite.anims.createFromAseprite('paladin', [ 'step', 'War Cry', 'Magnum Break' ]);\r\n * ```\r\n *\r\n * This will only create the 3 animations defined. Note that the tag names are case-sensitive.\r\n *\r\n * @method Phaser.Animations.AnimationState#createFromAseprite\r\n * @since 3.60.0\r\n *\r\n * @param {string} key - The key of the loaded Aseprite atlas. It must have been loaded prior to calling this method.\r\n * @param {string[]} [tags] - An array of Tag names. If provided, only animations found in this array will be created.\r\n *\r\n * @return {Phaser.Animations.Animation[]} An array of Animation instances that were successfully created.\r\n */\r\n createFromAseprite: function (key, tags)\r\n {\r\n return this.animationManager.createFromAseprite(key, tags, this.parent);\r\n },\r\n\r\n /**\r\n * Generate an array of {@link Phaser.Types.Animations.AnimationFrame} objects from a texture key and configuration object.\r\n *\r\n * Generates objects with string based frame names, as configured by the given {@link Phaser.Types.Animations.GenerateFrameNames}.\r\n *\r\n * It's a helper method, designed to make it easier for you to extract all of the frame names from texture atlases.\r\n * If you're working with a sprite sheet, see the `generateFrameNumbers` method instead.\r\n *\r\n * Example:\r\n *\r\n * If you have a texture atlases loaded called `gems` and it contains 6 frames called `ruby_0001`, `ruby_0002`, and so on,\r\n * then you can call this method using: `this.anims.generateFrameNames('gems', { prefix: 'ruby_', end: 6, zeroPad: 4 })`.\r\n *\r\n * The `end` value tells it to look for 6 frames, incrementally numbered, all starting with the prefix `ruby_`. The `zeroPad`\r\n * value tells it how many zeroes pad out the numbers. To create an animation using this method, you can do:\r\n *\r\n * ```javascript\r\n * this.anims.create({\r\n * key: 'ruby',\r\n * repeat: -1,\r\n * frames: this.anims.generateFrameNames('gems', {\r\n * prefix: 'ruby_',\r\n * end: 6,\r\n * zeroPad: 4\r\n * })\r\n * });\r\n * ```\r\n *\r\n * Please see the animation examples for further details.\r\n *\r\n * @method Phaser.Animations.AnimationState#generateFrameNames\r\n * @since 3.50.0\r\n *\r\n * @param {string} key - The key for the texture containing the animation frames.\r\n * @param {Phaser.Types.Animations.GenerateFrameNames} [config] - The configuration object for the animation frame names.\r\n *\r\n * @return {Phaser.Types.Animations.AnimationFrame[]} The array of {@link Phaser.Types.Animations.AnimationFrame} objects.\r\n */\r\n generateFrameNames: function (key, config)\r\n {\r\n return this.animationManager.generateFrameNames(key, config);\r\n },\r\n\r\n /**\r\n * Generate an array of {@link Phaser.Types.Animations.AnimationFrame} objects from a texture key and configuration object.\r\n *\r\n * Generates objects with numbered frame names, as configured by the given {@link Phaser.Types.Animations.GenerateFrameNumbers}.\r\n *\r\n * If you're working with a texture atlas, see the `generateFrameNames` method instead.\r\n *\r\n * It's a helper method, designed to make it easier for you to extract frames from sprite sheets.\r\n * If you're working with a texture atlas, see the `generateFrameNames` method instead.\r\n *\r\n * Example:\r\n *\r\n * If you have a sprite sheet loaded called `explosion` and it contains 12 frames, then you can call this method using:\r\n * `this.anims.generateFrameNumbers('explosion', { start: 0, end: 11 })`.\r\n *\r\n * The `end` value tells it to stop after 12 frames. To create an animation using this method, you can do:\r\n *\r\n * ```javascript\r\n * this.anims.create({\r\n * key: 'boom',\r\n * frames: this.anims.generateFrameNumbers('explosion', {\r\n * start: 0,\r\n * end: 11\r\n * })\r\n * });\r\n * ```\r\n *\r\n * Note that `start` is optional and you don't need to include it if the animation starts from frame 0.\r\n *\r\n * To specify an animation in reverse, swap the `start` and `end` values.\r\n *\r\n * If the frames are not sequential, you may pass an array of frame numbers instead, for example:\r\n *\r\n * `this.anims.generateFrameNumbers('explosion', { frames: [ 0, 1, 2, 1, 2, 3, 4, 0, 1, 2 ] })`\r\n *\r\n * Please see the animation examples and `GenerateFrameNumbers` config docs for further details.\r\n *\r\n * @method Phaser.Animations.AnimationState#generateFrameNumbers\r\n * @since 3.50.0\r\n *\r\n * @param {string} key - The key for the texture containing the animation frames.\r\n * @param {Phaser.Types.Animations.GenerateFrameNumbers} [config] - The configuration object for the animation frames.\r\n *\r\n * @return {Phaser.Types.Animations.AnimationFrame[]} The array of {@link Phaser.Types.Animations.AnimationFrame} objects.\r\n */\r\n generateFrameNumbers: function (key, config)\r\n {\r\n return this.animationManager.generateFrameNumbers(key, config);\r\n },\r\n\r\n /**\r\n * Removes a locally created Animation from this Sprite, based on the given key.\r\n *\r\n * Once an Animation has been removed, this Sprite cannot play it again without re-creating it.\r\n *\r\n * @method Phaser.Animations.AnimationState#remove\r\n * @since 3.50.0\r\n *\r\n * @param {string} key - The key of the animation to remove.\r\n *\r\n * @return {Phaser.Animations.Animation} The Animation instance that was removed from this Sprite, if the key was valid.\r\n */\r\n remove: function (key)\r\n {\r\n var anim = this.get(key);\r\n\r\n if (anim)\r\n {\r\n if (this.currentAnim === anim)\r\n {\r\n this.stop();\r\n }\r\n\r\n this.anims.delete(key);\r\n }\r\n\r\n return anim;\r\n },\r\n\r\n /**\r\n * Destroy this Animation component.\r\n *\r\n * Unregisters event listeners and cleans up its references.\r\n *\r\n * @method Phaser.Animations.AnimationState#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.animationManager.off(Events.REMOVE_ANIMATION, this.globalRemove, this);\r\n\r\n if (this.anims)\r\n {\r\n this.anims.clear();\r\n }\r\n\r\n this.animationManager = null;\r\n this.parent = null;\r\n this.nextAnim = null;\r\n this.nextAnimsQueue.length = 0;\r\n\r\n this.currentAnim = null;\r\n this.currentFrame = null;\r\n },\r\n\r\n /**\r\n * `true` if the current animation is paused, otherwise `false`.\r\n *\r\n * @name Phaser.Animations.AnimationState#isPaused\r\n * @readonly\r\n * @type {boolean}\r\n * @since 3.4.0\r\n */\r\n isPaused: {\r\n\r\n get: function ()\r\n {\r\n return this._paused;\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = AnimationState;\r\n\n\n/***/ }),\n\n/***/ 57090:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Add Animation Event.\r\n *\r\n * This event is dispatched when a new animation is added to the global Animation Manager.\r\n *\r\n * This can happen either as a result of an animation instance being added to the Animation Manager,\r\n * or the Animation Manager creating a new animation directly.\r\n *\r\n * @event Phaser.Animations.Events#ADD_ANIMATION\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key of the Animation that was added to the global Animation Manager.\r\n * @param {Phaser.Animations.Animation} animation - An instance of the newly created Animation.\r\n */\r\nmodule.exports = 'add';\r\n\n\n/***/ }),\n\n/***/ 25312:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Animation Complete Event.\r\n *\r\n * This event is dispatched by a Sprite when an animation playing on it completes playback.\r\n * This happens when the animation gets to the end of its sequence, factoring in any delays\r\n * or repeats it may have to process.\r\n *\r\n * An animation that is set to loop, or repeat forever, will never fire this event, because\r\n * it never actually completes. If you need to handle this, listen for the `ANIMATION_STOP`\r\n * event instead, as this is emitted when the animation is stopped directly.\r\n *\r\n * Listen for it on the Sprite using `sprite.on('animationcomplete', listener)`\r\n *\r\n * The animation event flow is as follows:\r\n *\r\n * 1. `ANIMATION_START`\r\n * 2. `ANIMATION_UPDATE` (repeated for however many frames the animation has)\r\n * 3. `ANIMATION_REPEAT` (only if the animation is set to repeat, it then emits more update events after this)\r\n * 4. `ANIMATION_COMPLETE` (only if there is a finite, or zero, repeat count)\r\n * 5. `ANIMATION_COMPLETE_KEY` (only if there is a finite, or zero, repeat count)\r\n *\r\n * If the animation is stopped directly, the `ANIMATION_STOP` event is dispatched instead of `ANIMATION_COMPLETE`.\r\n *\r\n * If the animation is restarted while it is already playing, `ANIMATION_RESTART` is emitted.\r\n *\r\n * @event Phaser.Animations.Events#ANIMATION_COMPLETE\r\n * @type {string}\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Animations.Animation} animation - A reference to the Animation that completed.\r\n * @param {Phaser.Animations.AnimationFrame} frame - The current Animation Frame of the Animation.\r\n * @param {Phaser.GameObjects.Sprite} gameObject - A reference to the Game Object on which the animation updated.\r\n * @param {string} frameKey - The unique key of the Animation Frame within the Animation.\r\n */\r\nmodule.exports = 'animationcomplete';\r\n\n\n/***/ }),\n\n/***/ 89580:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Animation Complete Dynamic Key Event.\r\n *\r\n * This event is dispatched by a Sprite when an animation playing on it completes playback.\r\n * This happens when the animation gets to the end of its sequence, factoring in any delays\r\n * or repeats it may have to process.\r\n *\r\n * An animation that is set to loop, or repeat forever, will never fire this event, because\r\n * it never actually completes. If you need to handle this, listen for the `ANIMATION_STOP`\r\n * event instead, as this is emitted when the animation is stopped directly.\r\n *\r\n * The difference between this and the `ANIMATION_COMPLETE` event is that this one has a\r\n * dynamic event name that contains the name of the animation within it. For example,\r\n * if you had an animation called `explode` you could listen for the completion of that\r\n * specific animation by using: `sprite.on('animationcomplete-explode', listener)`. Or, if you\r\n * wish to use types: `sprite.on(Phaser.Animations.Events.ANIMATION_COMPLETE_KEY + 'explode', listener)`.\r\n *\r\n * The animation event flow is as follows:\r\n *\r\n * 1. `ANIMATION_START`\r\n * 2. `ANIMATION_UPDATE` (repeated for however many frames the animation has)\r\n * 3. `ANIMATION_REPEAT` (only if the animation is set to repeat, it then emits more update events after this)\r\n * 4. `ANIMATION_COMPLETE` (only if there is a finite, or zero, repeat count)\r\n * 5. `ANIMATION_COMPLETE_KEY` (only if there is a finite, or zero, repeat count)\r\n *\r\n * If the animation is stopped directly, the `ANIMATION_STOP` event is dispatched instead of `ANIMATION_COMPLETE`.\r\n *\r\n * If the animation is restarted while it is already playing, `ANIMATION_RESTART` is emitted.\r\n *\r\n * @event Phaser.Animations.Events#ANIMATION_COMPLETE_KEY\r\n * @type {string}\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Animations.Animation} animation - A reference to the Animation that completed.\r\n * @param {Phaser.Animations.AnimationFrame} frame - The current Animation Frame of the Animation.\r\n * @param {Phaser.GameObjects.Sprite} gameObject - A reference to the Game Object on which the animation updated.\r\n * @param {string} frameKey - The unique key of the Animation Frame within the Animation.\r\n */\r\nmodule.exports = 'animationcomplete-';\r\n\n\n/***/ }),\n\n/***/ 52860:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Animation Repeat Event.\r\n *\r\n * This event is dispatched by a Sprite when an animation repeats playing on it.\r\n * This happens if the animation was created, or played, with a `repeat` value specified.\r\n *\r\n * An animation will repeat when it reaches the end of its sequence.\r\n *\r\n * Listen for it on the Sprite using `sprite.on('animationrepeat', listener)`\r\n *\r\n * The animation event flow is as follows:\r\n *\r\n * 1. `ANIMATION_START`\r\n * 2. `ANIMATION_UPDATE` (repeated for however many frames the animation has)\r\n * 3. `ANIMATION_REPEAT` (only if the animation is set to repeat, it then emits more update events after this)\r\n * 4. `ANIMATION_COMPLETE` (only if there is a finite, or zero, repeat count)\r\n * 5. `ANIMATION_COMPLETE_KEY` (only if there is a finite, or zero, repeat count)\r\n *\r\n * If the animation is stopped directly, the `ANIMATION_STOP` event is dispatched instead of `ANIMATION_COMPLETE`.\r\n *\r\n * If the animation is restarted while it is already playing, `ANIMATION_RESTART` is emitted.\r\n *\r\n * @event Phaser.Animations.Events#ANIMATION_REPEAT\r\n * @type {string}\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Animations.Animation} animation - A reference to the Animation that has repeated.\r\n * @param {Phaser.Animations.AnimationFrame} frame - The current Animation Frame of the Animation.\r\n * @param {Phaser.GameObjects.Sprite} gameObject - A reference to the Game Object on which the animation repeated.\r\n * @param {string} frameKey - The unique key of the Animation Frame within the Animation.\r\n */\r\nmodule.exports = 'animationrepeat';\r\n\n\n/***/ }),\n\n/***/ 63850:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Animation Restart Event.\r\n *\r\n * This event is dispatched by a Sprite when an animation restarts playing on it.\r\n * This only happens when the `Sprite.anims.restart` method is called.\r\n *\r\n * Listen for it on the Sprite using `sprite.on('animationrestart', listener)`\r\n *\r\n * The animation event flow is as follows:\r\n *\r\n * 1. `ANIMATION_START`\r\n * 2. `ANIMATION_UPDATE` (repeated for however many frames the animation has)\r\n * 3. `ANIMATION_REPEAT` (only if the animation is set to repeat, it then emits more update events after this)\r\n * 4. `ANIMATION_COMPLETE` (only if there is a finite, or zero, repeat count)\r\n * 5. `ANIMATION_COMPLETE_KEY` (only if there is a finite, or zero, repeat count)\r\n *\r\n * If the animation is stopped directly, the `ANIMATION_STOP` event is dispatched instead of `ANIMATION_COMPLETE`.\r\n *\r\n * If the animation is restarted while it is already playing, `ANIMATION_RESTART` is emitted.\r\n *\r\n * @event Phaser.Animations.Events#ANIMATION_RESTART\r\n * @type {string}\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Animations.Animation} animation - A reference to the Animation that has restarted.\r\n * @param {Phaser.Animations.AnimationFrame} frame - The current Animation Frame of the Animation.\r\n * @param {Phaser.GameObjects.Sprite} gameObject - A reference to the Game Object on which the animation restarted.\r\n * @param {string} frameKey - The unique key of the Animation Frame within the Animation.\r\n */\r\nmodule.exports = 'animationrestart';\r\n\n\n/***/ }),\n\n/***/ 99085:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Animation Start Event.\r\n *\r\n * This event is dispatched by a Sprite when an animation starts playing on it.\r\n * This happens when the animation is played, factoring in any delay that may have been specified.\r\n * This event happens after the delay has expired and prior to the first update event.\r\n *\r\n * Listen for it on the Sprite using `sprite.on('animationstart', listener)`\r\n *\r\n * The animation event flow is as follows:\r\n *\r\n * 1. `ANIMATION_START`\r\n * 2. `ANIMATION_UPDATE` (repeated for however many frames the animation has)\r\n * 3. `ANIMATION_REPEAT` (only if the animation is set to repeat, it then emits more update events after this)\r\n * 4. `ANIMATION_COMPLETE` (only if there is a finite, or zero, repeat count)\r\n * 5. `ANIMATION_COMPLETE_KEY` (only if there is a finite, or zero, repeat count)\r\n *\r\n * If the animation is stopped directly, the `ANIMATION_STOP` event is dispatched instead of `ANIMATION_COMPLETE`.\r\n *\r\n * If the animation is restarted while it is already playing, `ANIMATION_RESTART` is emitted.\r\n *\r\n * @event Phaser.Animations.Events#ANIMATION_START\r\n * @type {string}\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Animations.Animation} animation - A reference to the Animation that has started.\r\n * @param {Phaser.Animations.AnimationFrame} frame - The current Animation Frame of the Animation.\r\n * @param {Phaser.GameObjects.Sprite} gameObject - A reference to the Game Object on which the animation started.\r\n * @param {string} frameKey - The unique key of the Animation Frame within the Animation.\r\n */\r\nmodule.exports = 'animationstart';\r\n\n\n/***/ }),\n\n/***/ 28087:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Animation Stop Event.\r\n *\r\n * This event is dispatched by a Sprite when an animation is stopped on it. An animation\r\n * will only be stopeed if a method such as `Sprite.stop` or `Sprite.anims.stopAfterDelay`\r\n * is called. It can also be emitted if a new animation is started before the current one completes.\r\n *\r\n * Listen for it on the Sprite using `sprite.on('animationstop', listener)`\r\n *\r\n * The animation event flow is as follows:\r\n *\r\n * 1. `ANIMATION_START`\r\n * 2. `ANIMATION_UPDATE` (repeated for however many frames the animation has)\r\n * 3. `ANIMATION_REPEAT` (only if the animation is set to repeat, it then emits more update events after this)\r\n * 4. `ANIMATION_COMPLETE` (only if there is a finite, or zero, repeat count)\r\n * 5. `ANIMATION_COMPLETE_KEY` (only if there is a finite, or zero, repeat count)\r\n *\r\n * If the animation is stopped directly, the `ANIMATION_STOP` event is dispatched instead of `ANIMATION_COMPLETE`.\r\n *\r\n * If the animation is restarted while it is already playing, `ANIMATION_RESTART` is emitted.\r\n *\r\n * @event Phaser.Animations.Events#ANIMATION_STOP\r\n * @type {string}\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Animations.Animation} animation - A reference to the Animation that has stopped.\r\n * @param {Phaser.Animations.AnimationFrame} frame - The current Animation Frame of the Animation.\r\n * @param {Phaser.GameObjects.Sprite} gameObject - A reference to the Game Object on which the animation stopped.\r\n * @param {string} frameKey - The unique key of the Animation Frame within the Animation.\r\n */\r\nmodule.exports = 'animationstop';\r\n\n\n/***/ }),\n\n/***/ 1794:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Animation Update Event.\r\n *\r\n * This event is dispatched by a Sprite when an animation playing on it updates. This happens when the animation changes frame.\r\n * An animation will change frame based on the frame rate and other factors like `timeScale` and `delay`. It can also change\r\n * frame when stopped or restarted.\r\n *\r\n * Listen for it on the Sprite using `sprite.on('animationupdate', listener)`\r\n *\r\n * If an animation is playing faster than the game frame-rate can handle, it's entirely possible for it to emit several\r\n * update events in a single game frame, so please be aware of this in your code. The **final** event received that frame\r\n * is the one that is rendered to the game.\r\n *\r\n * The animation event flow is as follows:\r\n *\r\n * 1. `ANIMATION_START`\r\n * 2. `ANIMATION_UPDATE` (repeated for however many frames the animation has)\r\n * 3. `ANIMATION_REPEAT` (only if the animation is set to repeat, it then emits more update events after this)\r\n * 4. `ANIMATION_COMPLETE` (only if there is a finite, or zero, repeat count)\r\n * 5. `ANIMATION_COMPLETE_KEY` (only if there is a finite, or zero, repeat count)\r\n *\r\n * If the animation is stopped directly, the `ANIMATION_STOP` event is dispatched instead of `ANIMATION_COMPLETE`.\r\n *\r\n * If the animation is restarted while it is already playing, `ANIMATION_RESTART` is emitted.\r\n *\r\n * @event Phaser.Animations.Events#ANIMATION_UPDATE\r\n * @type {string}\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Animations.Animation} animation - A reference to the Animation that has updated.\r\n * @param {Phaser.Animations.AnimationFrame} frame - The current Animation Frame of the Animation.\r\n * @param {Phaser.GameObjects.Sprite} gameObject - A reference to the Game Object on which the animation updated.\r\n * @param {string} frameKey - The unique key of the Animation Frame within the Animation.\r\n */\r\nmodule.exports = 'animationupdate';\r\n\n\n/***/ }),\n\n/***/ 52562:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Pause All Animations Event.\r\n *\r\n * This event is dispatched when the global Animation Manager is told to pause.\r\n *\r\n * When this happens all current animations will stop updating, although it doesn't necessarily mean\r\n * that the game has paused as well.\r\n *\r\n * @event Phaser.Animations.Events#PAUSE_ALL\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\nmodule.exports = 'pauseall';\r\n\n\n/***/ }),\n\n/***/ 57953:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Remove Animation Event.\r\n *\r\n * This event is dispatched when an animation is removed from the global Animation Manager.\r\n *\r\n * @event Phaser.Animations.Events#REMOVE_ANIMATION\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key of the Animation that was removed from the global Animation Manager.\r\n * @param {Phaser.Animations.Animation} animation - An instance of the removed Animation.\r\n */\r\nmodule.exports = 'remove';\r\n\n\n/***/ }),\n\n/***/ 68339:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Resume All Animations Event.\r\n *\r\n * This event is dispatched when the global Animation Manager resumes, having been previously paused.\r\n *\r\n * When this happens all current animations will continue updating again.\r\n *\r\n * @event Phaser.Animations.Events#RESUME_ALL\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\nmodule.exports = 'resumeall';\r\n\n\n/***/ }),\n\n/***/ 74943:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Animations.Events\r\n */\r\n\r\nmodule.exports = {\r\n\r\n ADD_ANIMATION: __webpack_require__(57090),\r\n ANIMATION_COMPLETE: __webpack_require__(25312),\r\n ANIMATION_COMPLETE_KEY: __webpack_require__(89580),\r\n ANIMATION_REPEAT: __webpack_require__(52860),\r\n ANIMATION_RESTART: __webpack_require__(63850),\r\n ANIMATION_START: __webpack_require__(99085),\r\n ANIMATION_STOP: __webpack_require__(28087),\r\n ANIMATION_UPDATE: __webpack_require__(1794),\r\n PAUSE_ALL: __webpack_require__(52562),\r\n REMOVE_ANIMATION: __webpack_require__(57953),\r\n RESUME_ALL: __webpack_require__(68339)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 60421:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Animations\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Animation: __webpack_require__(42099),\r\n AnimationFrame: __webpack_require__(41138),\r\n AnimationManager: __webpack_require__(60848),\r\n AnimationState: __webpack_require__(9674),\r\n Events: __webpack_require__(74943)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 2161:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CustomMap = __webpack_require__(90330);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Events = __webpack_require__(24736);\r\n\r\n/**\r\n * @classdesc\r\n * The BaseCache is a base Cache class that can be used for storing references to any kind of data.\r\n *\r\n * Data can be added, retrieved and removed based on the given keys.\r\n *\r\n * Keys are string-based.\r\n *\r\n * @class BaseCache\r\n * @memberof Phaser.Cache\r\n * @constructor\r\n * @since 3.0.0\r\n */\r\nvar BaseCache = new Class({\r\n\r\n initialize:\r\n\r\n function BaseCache ()\r\n {\r\n /**\r\n * The Map in which the cache objects are stored.\r\n *\r\n * You can query the Map directly or use the BaseCache methods.\r\n *\r\n * @name Phaser.Cache.BaseCache#entries\r\n * @type {Phaser.Structs.Map.}\r\n * @since 3.0.0\r\n */\r\n this.entries = new CustomMap();\r\n\r\n /**\r\n * An instance of EventEmitter used by the cache to emit related events.\r\n *\r\n * @name Phaser.Cache.BaseCache#events\r\n * @type {Phaser.Events.EventEmitter}\r\n * @since 3.0.0\r\n */\r\n this.events = new EventEmitter();\r\n },\r\n\r\n /**\r\n * Adds an item to this cache. The item is referenced by a unique string, which you are responsible\r\n * for setting and keeping track of. The item can only be retrieved by using this string.\r\n *\r\n * @method Phaser.Cache.BaseCache#add\r\n * @fires Phaser.Cache.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The unique key by which the data added to the cache will be referenced.\r\n * @param {*} data - The data to be stored in the cache.\r\n *\r\n * @return {this} This BaseCache object.\r\n */\r\n add: function (key, data)\r\n {\r\n this.entries.set(key, data);\r\n\r\n this.events.emit(Events.ADD, this, key, data);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Checks if this cache contains an item matching the given key.\r\n * This performs the same action as `BaseCache.exists`.\r\n *\r\n * @method Phaser.Cache.BaseCache#has\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The unique key of the item to be checked in this cache.\r\n *\r\n * @return {boolean} Returns `true` if the cache contains an item matching the given key, otherwise `false`.\r\n */\r\n has: function (key)\r\n {\r\n return this.entries.has(key);\r\n },\r\n\r\n /**\r\n * Checks if this cache contains an item matching the given key.\r\n * This performs the same action as `BaseCache.has` and is called directly by the Loader.\r\n *\r\n * @method Phaser.Cache.BaseCache#exists\r\n * @since 3.7.0\r\n *\r\n * @param {string} key - The unique key of the item to be checked in this cache.\r\n *\r\n * @return {boolean} Returns `true` if the cache contains an item matching the given key, otherwise `false`.\r\n */\r\n exists: function (key)\r\n {\r\n return this.entries.has(key);\r\n },\r\n\r\n /**\r\n * Gets an item from this cache based on the given key.\r\n *\r\n * @method Phaser.Cache.BaseCache#get\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The unique key of the item to be retrieved from this cache.\r\n *\r\n * @return {*} The item in the cache, or `null` if no item matching the given key was found.\r\n */\r\n get: function (key)\r\n {\r\n return this.entries.get(key);\r\n },\r\n\r\n /**\r\n * Removes and item from this cache based on the given key.\r\n *\r\n * If an entry matching the key is found it is removed from the cache and a `remove` event emitted.\r\n * No additional checks are done on the item removed. If other systems or parts of your game code\r\n * are relying on this item, it is up to you to sever those relationships prior to removing the item.\r\n *\r\n * @method Phaser.Cache.BaseCache#remove\r\n * @fires Phaser.Cache.Events#REMOVE\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The unique key of the item to remove from the cache.\r\n *\r\n * @return {this} This BaseCache object.\r\n */\r\n remove: function (key)\r\n {\r\n var entry = this.get(key);\r\n\r\n if (entry)\r\n {\r\n this.entries.delete(key);\r\n\r\n this.events.emit(Events.REMOVE, this, key, entry.data);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns all keys in use in this cache.\r\n *\r\n * @method Phaser.Cache.BaseCache#getKeys\r\n * @since 3.17.0\r\n *\r\n * @return {string[]} Array containing all the keys.\r\n */\r\n getKeys: function ()\r\n {\r\n return this.entries.keys();\r\n },\r\n\r\n /**\r\n * Destroys this cache and all items within it.\r\n *\r\n * @method Phaser.Cache.BaseCache#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.entries.clear();\r\n this.events.removeAllListeners();\r\n\r\n this.entries = null;\r\n this.events = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = BaseCache;\r\n\n\n/***/ }),\n\n/***/ 24047:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BaseCache = __webpack_require__(2161);\r\nvar Class = __webpack_require__(83419);\r\nvar GameEvents = __webpack_require__(8443);\r\n\r\n/**\r\n * @classdesc\r\n * The Cache Manager is the global cache owned and maintained by the Game instance.\r\n *\r\n * Various systems, such as the file Loader, rely on this cache in order to store the files\r\n * it has loaded. The manager itself doesn't store any files, but instead owns multiple BaseCache\r\n * instances, one per type of file. You can also add your own custom caches.\r\n *\r\n * @class CacheManager\r\n * @memberof Phaser.Cache\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Game} game - A reference to the Phaser.Game instance that owns this CacheManager.\r\n */\r\nvar CacheManager = new Class({\r\n\r\n initialize:\r\n\r\n function CacheManager (game)\r\n {\r\n /**\r\n * A reference to the Phaser.Game instance that owns this CacheManager.\r\n *\r\n * @name Phaser.Cache.CacheManager#game\r\n * @type {Phaser.Game}\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n this.game = game;\r\n\r\n /**\r\n * A Cache storing all binary files, typically added via the Loader.\r\n *\r\n * @name Phaser.Cache.CacheManager#binary\r\n * @type {Phaser.Cache.BaseCache}\r\n * @since 3.0.0\r\n */\r\n this.binary = new BaseCache();\r\n\r\n /**\r\n * A Cache storing all bitmap font data files, typically added via the Loader.\r\n * Only the font data is stored in this cache, the textures are part of the Texture Manager.\r\n *\r\n * @name Phaser.Cache.CacheManager#bitmapFont\r\n * @type {Phaser.Cache.BaseCache}\r\n * @since 3.0.0\r\n */\r\n this.bitmapFont = new BaseCache();\r\n\r\n /**\r\n * A Cache storing all JSON data files, typically added via the Loader.\r\n *\r\n * @name Phaser.Cache.CacheManager#json\r\n * @type {Phaser.Cache.BaseCache}\r\n * @since 3.0.0\r\n */\r\n this.json = new BaseCache();\r\n\r\n /**\r\n * A Cache storing all physics data files, typically added via the Loader.\r\n *\r\n * @name Phaser.Cache.CacheManager#physics\r\n * @type {Phaser.Cache.BaseCache}\r\n * @since 3.0.0\r\n */\r\n this.physics = new BaseCache();\r\n\r\n /**\r\n * A Cache storing all shader source files, typically added via the Loader.\r\n *\r\n * @name Phaser.Cache.CacheManager#shader\r\n * @type {Phaser.Cache.BaseCache}\r\n * @since 3.0.0\r\n */\r\n this.shader = new BaseCache();\r\n\r\n /**\r\n * A Cache storing all non-streaming audio files, typically added via the Loader.\r\n *\r\n * @name Phaser.Cache.CacheManager#audio\r\n * @type {Phaser.Cache.BaseCache}\r\n * @since 3.0.0\r\n */\r\n this.audio = new BaseCache();\r\n\r\n /**\r\n * A Cache storing all non-streaming video files, typically added via the Loader.\r\n *\r\n * @name Phaser.Cache.CacheManager#video\r\n * @type {Phaser.Cache.BaseCache}\r\n * @since 3.20.0\r\n */\r\n this.video = new BaseCache();\r\n\r\n /**\r\n * A Cache storing all text files, typically added via the Loader.\r\n *\r\n * @name Phaser.Cache.CacheManager#text\r\n * @type {Phaser.Cache.BaseCache}\r\n * @since 3.0.0\r\n */\r\n this.text = new BaseCache();\r\n\r\n /**\r\n * A Cache storing all html files, typically added via the Loader.\r\n *\r\n * @name Phaser.Cache.CacheManager#html\r\n * @type {Phaser.Cache.BaseCache}\r\n * @since 3.12.0\r\n */\r\n this.html = new BaseCache();\r\n\r\n /**\r\n * A Cache storing all WaveFront OBJ files, typically added via the Loader.\r\n *\r\n * @name Phaser.Cache.CacheManager#obj\r\n * @type {Phaser.Cache.BaseCache}\r\n * @since 3.0.0\r\n */\r\n this.obj = new BaseCache();\r\n\r\n /**\r\n * A Cache storing all tilemap data files, typically added via the Loader.\r\n * Only the data is stored in this cache, the textures are part of the Texture Manager.\r\n *\r\n * @name Phaser.Cache.CacheManager#tilemap\r\n * @type {Phaser.Cache.BaseCache}\r\n * @since 3.0.0\r\n */\r\n this.tilemap = new BaseCache();\r\n\r\n /**\r\n * A Cache storing all xml data files, typically added via the Loader.\r\n *\r\n * @name Phaser.Cache.CacheManager#xml\r\n * @type {Phaser.Cache.BaseCache}\r\n * @since 3.0.0\r\n */\r\n this.xml = new BaseCache();\r\n\r\n /**\r\n * An object that contains your own custom BaseCache entries.\r\n * Add to this via the `addCustom` method.\r\n *\r\n * @name Phaser.Cache.CacheManager#custom\r\n * @type {Object.}\r\n * @since 3.0.0\r\n */\r\n this.custom = {};\r\n\r\n this.game.events.once(GameEvents.DESTROY, this.destroy, this);\r\n },\r\n\r\n /**\r\n * Add your own custom Cache for storing your own files.\r\n * The cache will be available under `Cache.custom.key`.\r\n * The cache will only be created if the key is not already in use.\r\n *\r\n * @method Phaser.Cache.CacheManager#addCustom\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The unique key of your custom cache.\r\n *\r\n * @return {Phaser.Cache.BaseCache} A reference to the BaseCache that was created. If the key was already in use, a reference to the existing cache is returned instead.\r\n */\r\n addCustom: function (key)\r\n {\r\n if (!this.custom.hasOwnProperty(key))\r\n {\r\n this.custom[key] = new BaseCache();\r\n }\r\n\r\n return this.custom[key];\r\n },\r\n\r\n /**\r\n * Removes all entries from all BaseCaches and destroys all custom caches.\r\n *\r\n * @method Phaser.Cache.CacheManager#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n var keys = [\r\n 'binary',\r\n 'bitmapFont',\r\n 'json',\r\n 'physics',\r\n 'shader',\r\n 'audio',\r\n 'video',\r\n 'text',\r\n 'html',\r\n 'obj',\r\n 'tilemap',\r\n 'xml'\r\n ];\r\n\r\n for (var i = 0; i < keys.length; i++)\r\n {\r\n this[keys[i]].destroy();\r\n this[keys[i]] = null;\r\n }\r\n\r\n for (var key in this.custom)\r\n {\r\n this.custom[key].destroy();\r\n }\r\n\r\n this.custom = null;\r\n\r\n this.game = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = CacheManager;\r\n\n\n/***/ }),\n\n/***/ 51464:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Cache Add Event.\r\n *\r\n * This event is dispatched by any Cache that extends the BaseCache each time a new object is added to it.\r\n *\r\n * @event Phaser.Cache.Events#ADD\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Cache.BaseCache} cache - The cache to which the object was added.\r\n * @param {string} key - The key of the object added to the cache.\r\n * @param {*} object - A reference to the object that was added to the cache.\r\n */\r\nmodule.exports = 'add';\r\n\n\n/***/ }),\n\n/***/ 59261:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Cache Remove Event.\r\n *\r\n * This event is dispatched by any Cache that extends the BaseCache each time an object is removed from it.\r\n *\r\n * @event Phaser.Cache.Events#REMOVE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Cache.BaseCache} cache - The cache from which the object was removed.\r\n * @param {string} key - The key of the object removed from the cache.\r\n * @param {*} object - A reference to the object that was removed from the cache.\r\n */\r\nmodule.exports = 'remove';\r\n\n\n/***/ }),\n\n/***/ 24736:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Cache.Events\r\n */\r\n\r\nmodule.exports = {\r\n\r\n ADD: __webpack_require__(51464),\r\n REMOVE: __webpack_require__(59261)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 83388:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Cache\r\n */\r\n\r\nmodule.exports = {\r\n\r\n BaseCache: __webpack_require__(2161),\r\n CacheManager: __webpack_require__(24047),\r\n Events: __webpack_require__(24736)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 71911:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar DegToRad = __webpack_require__(39506);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Events = __webpack_require__(19715);\r\nvar Rectangle = __webpack_require__(87841);\r\nvar TransformMatrix = __webpack_require__(61340);\r\nvar ValueToColor = __webpack_require__(80333);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * A Base Camera class.\r\n *\r\n * The Camera is the way in which all games are rendered in Phaser. They provide a view into your game world,\r\n * and can be positioned, rotated, zoomed and scrolled accordingly.\r\n *\r\n * A Camera consists of two elements: The viewport and the scroll values.\r\n *\r\n * The viewport is the physical position and size of the Camera within your game. Cameras, by default, are\r\n * created the same size as your game, but their position and size can be set to anything. This means if you\r\n * wanted to create a camera that was 320x200 in size, positioned in the bottom-right corner of your game,\r\n * you'd adjust the viewport to do that (using methods like `setViewport` and `setSize`).\r\n *\r\n * If you wish to change where the Camera is looking in your game, then you scroll it. You can do this\r\n * via the properties `scrollX` and `scrollY` or the method `setScroll`. Scrolling has no impact on the\r\n * viewport, and changing the viewport has no impact on the scrolling.\r\n *\r\n * By default a Camera will render all Game Objects it can see. You can change this using the `ignore` method,\r\n * allowing you to filter Game Objects out on a per-Camera basis.\r\n *\r\n * The Base Camera is extended by the Camera class, which adds in special effects including Fade,\r\n * Flash and Camera Shake, as well as the ability to follow Game Objects.\r\n *\r\n * The Base Camera was introduced in Phaser 3.12. It was split off from the Camera class, to allow\r\n * you to isolate special effects as needed. Therefore the 'since' values for properties of this class relate\r\n * to when they were added to the Camera class.\r\n *\r\n * @class BaseCamera\r\n * @memberof Phaser.Cameras.Scene2D\r\n * @constructor\r\n * @since 3.12.0\r\n *\r\n * @extends Phaser.Events.EventEmitter\r\n * @extends Phaser.GameObjects.Components.Alpha\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {number} x - The x position of the Camera, relative to the top-left of the game canvas.\r\n * @param {number} y - The y position of the Camera, relative to the top-left of the game canvas.\r\n * @param {number} width - The width of the Camera, in pixels.\r\n * @param {number} height - The height of the Camera, in pixels.\r\n */\r\nvar BaseCamera = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n Mixins: [\r\n Components.AlphaSingle,\r\n Components.Visible\r\n ],\r\n\r\n initialize:\r\n\r\n function BaseCamera (x, y, width, height)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (width === undefined) { width = 0; }\r\n if (height === undefined) { height = 0; }\r\n\r\n EventEmitter.call(this);\r\n\r\n /**\r\n * A reference to the Scene this camera belongs to.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.0.0\r\n */\r\n this.scene;\r\n\r\n /**\r\n * A reference to the Game Scene Manager.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#sceneManager\r\n * @type {Phaser.Scenes.SceneManager}\r\n * @since 3.12.0\r\n */\r\n this.sceneManager;\r\n\r\n /**\r\n * A reference to the Game Scale Manager.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#scaleManager\r\n * @type {Phaser.Scale.ScaleManager}\r\n * @since 3.16.0\r\n */\r\n this.scaleManager;\r\n\r\n /**\r\n * A reference to the Scene's Camera Manager to which this Camera belongs.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#cameraManager\r\n * @type {Phaser.Cameras.Scene2D.CameraManager}\r\n * @since 3.17.0\r\n */\r\n this.cameraManager;\r\n\r\n /**\r\n * The Camera ID. Assigned by the Camera Manager and used to handle camera exclusion.\r\n * This value is a bitmask.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#id\r\n * @type {number}\r\n * @readonly\r\n * @since 3.11.0\r\n */\r\n this.id = 0;\r\n\r\n /**\r\n * The name of the Camera. This is left empty for your own use.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#name\r\n * @type {string}\r\n * @default ''\r\n * @since 3.0.0\r\n */\r\n this.name = '';\r\n\r\n /**\r\n * Should this camera round its pixel values to integers?\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#roundPixels\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.roundPixels = false;\r\n\r\n /**\r\n * Is this Camera visible or not?\r\n *\r\n * A visible camera will render and perform input tests.\r\n * An invisible camera will not render anything and will skip input tests.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#visible\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.10.0\r\n */\r\n\r\n /**\r\n * Is this Camera using a bounds to restrict scrolling movement?\r\n *\r\n * Set this property along with the bounds via `Camera.setBounds`.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#useBounds\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.useBounds = false;\r\n\r\n /**\r\n * The World View is a Rectangle that defines the area of the 'world' the Camera is currently looking at.\r\n * This factors in the Camera viewport size, zoom and scroll position and is updated in the Camera preRender step.\r\n * If you have enabled Camera bounds the worldview will be clamped to those bounds accordingly.\r\n * You can use it for culling or intersection checks.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#worldView\r\n * @type {Phaser.Geom.Rectangle}\r\n * @readonly\r\n * @since 3.11.0\r\n */\r\n this.worldView = new Rectangle();\r\n\r\n /**\r\n * Is this Camera dirty?\r\n *\r\n * A dirty Camera has had either its viewport size, bounds, scroll, rotation or zoom levels changed since the last frame.\r\n *\r\n * This flag is cleared during the `postRenderCamera` method of the renderer.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#dirty\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.11.0\r\n */\r\n this.dirty = true;\r\n\r\n /**\r\n * The x position of the Camera viewport, relative to the top-left of the game canvas.\r\n * The viewport is the area into which the camera renders.\r\n * To adjust the position the camera is looking at in the game world, see the `scrollX` value.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#_x\r\n * @type {number}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._x = x;\r\n\r\n /**\r\n * The y position of the Camera, relative to the top-left of the game canvas.\r\n * The viewport is the area into which the camera renders.\r\n * To adjust the position the camera is looking at in the game world, see the `scrollY` value.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#_y\r\n * @type {number}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._y = y;\r\n\r\n /**\r\n * The width of the Camera viewport, in pixels.\r\n *\r\n * The viewport is the area into which the Camera renders. Setting the viewport does\r\n * not restrict where the Camera can scroll to.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#_width\r\n * @type {number}\r\n * @private\r\n * @since 3.11.0\r\n */\r\n this._width = width;\r\n\r\n /**\r\n * The height of the Camera viewport, in pixels.\r\n *\r\n * The viewport is the area into which the Camera renders. Setting the viewport does\r\n * not restrict where the Camera can scroll to.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#_height\r\n * @type {number}\r\n * @private\r\n * @since 3.11.0\r\n */\r\n this._height = height;\r\n\r\n /**\r\n * The bounds the camera is restrained to during scrolling.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#_bounds\r\n * @type {Phaser.Geom.Rectangle}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._bounds = new Rectangle();\r\n\r\n /**\r\n * The horizontal scroll position of this Camera.\r\n *\r\n * Change this value to cause the Camera to scroll around your Scene.\r\n *\r\n * Alternatively, setting the Camera to follow a Game Object, via the `startFollow` method,\r\n * will automatically adjust the Camera scroll values accordingly.\r\n *\r\n * You can set the bounds within which the Camera can scroll via the `setBounds` method.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#_scrollX\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.11.0\r\n */\r\n this._scrollX = 0;\r\n\r\n /**\r\n * The vertical scroll position of this Camera.\r\n *\r\n * Change this value to cause the Camera to scroll around your Scene.\r\n *\r\n * Alternatively, setting the Camera to follow a Game Object, via the `startFollow` method,\r\n * will automatically adjust the Camera scroll values accordingly.\r\n *\r\n * You can set the bounds within which the Camera can scroll via the `setBounds` method.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#_scrollY\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.11.0\r\n */\r\n this._scrollY = 0;\r\n\r\n /**\r\n * The Camera horizontal zoom value. Change this value to zoom in, or out of, a Scene.\r\n *\r\n * A value of 0.5 would zoom the Camera out, so you can now see twice as much\r\n * of the Scene as before. A value of 2 would zoom the Camera in, so every pixel\r\n * now takes up 2 pixels when rendered.\r\n *\r\n * Set to 1 to return to the default zoom level.\r\n *\r\n * Be careful to never set this value to zero.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#_zoomX\r\n * @type {number}\r\n * @private\r\n * @default 1\r\n * @since 3.50.0\r\n */\r\n this._zoomX = 1;\r\n\r\n /**\r\n * The Camera vertical zoom value. Change this value to zoom in, or out of, a Scene.\r\n *\r\n * A value of 0.5 would zoom the Camera out, so you can now see twice as much\r\n * of the Scene as before. A value of 2 would zoom the Camera in, so every pixel\r\n * now takes up 2 pixels when rendered.\r\n *\r\n * Set to 1 to return to the default zoom level.\r\n *\r\n * Be careful to never set this value to zero.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#_zoomY\r\n * @type {number}\r\n * @private\r\n * @default 1\r\n * @since 3.50.0\r\n */\r\n this._zoomY = 1;\r\n\r\n /**\r\n * The rotation of the Camera in radians.\r\n *\r\n * Camera rotation always takes place based on the Camera viewport. By default, rotation happens\r\n * in the center of the viewport. You can adjust this with the `originX` and `originY` properties.\r\n *\r\n * Rotation influences the rendering of _all_ Game Objects visible by this Camera. However, it does not\r\n * rotate the Camera viewport itself, which always remains an axis-aligned rectangle.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#_rotation\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.11.0\r\n */\r\n this._rotation = 0;\r\n\r\n /**\r\n * A local transform matrix used for internal calculations.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#matrix\r\n * @type {Phaser.GameObjects.Components.TransformMatrix}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this.matrix = new TransformMatrix();\r\n\r\n /**\r\n * Does this Camera have a transparent background?\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#transparent\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.transparent = true;\r\n\r\n /**\r\n * The background color of this Camera. Only used if `transparent` is `false`.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#backgroundColor\r\n * @type {Phaser.Display.Color}\r\n * @since 3.0.0\r\n */\r\n this.backgroundColor = ValueToColor('rgba(0,0,0,0)');\r\n\r\n /**\r\n * The Camera alpha value. Setting this property impacts every single object that this Camera\r\n * renders. You can either set the property directly, i.e. via a Tween, to fade a Camera in or out,\r\n * or via the chainable `setAlpha` method instead.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#alpha\r\n * @type {number}\r\n * @default 1\r\n * @since 3.11.0\r\n */\r\n\r\n /**\r\n * Should the camera cull Game Objects before checking them for input hit tests?\r\n * In some special cases it may be beneficial to disable this.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#disableCull\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.disableCull = false;\r\n\r\n /**\r\n * A temporary array of culled objects.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#culledObjects\r\n * @type {Phaser.GameObjects.GameObject[]}\r\n * @default []\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this.culledObjects = [];\r\n\r\n /**\r\n * The mid-point of the Camera in 'world' coordinates.\r\n *\r\n * Use it to obtain exactly where in the world the center of the camera is currently looking.\r\n *\r\n * This value is updated in the preRender method, after the scroll values and follower\r\n * have been processed.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#midPoint\r\n * @type {Phaser.Math.Vector2}\r\n * @readonly\r\n * @since 3.11.0\r\n */\r\n this.midPoint = new Vector2(width / 2, height / 2);\r\n\r\n /**\r\n * The horizontal origin of rotation for this Camera.\r\n *\r\n * By default the camera rotates around the center of the viewport.\r\n *\r\n * Changing the origin allows you to adjust the point in the viewport from which rotation happens.\r\n * A value of 0 would rotate from the top-left of the viewport. A value of 1 from the bottom right.\r\n *\r\n * See `setOrigin` to set both origins in a single, chainable call.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#originX\r\n * @type {number}\r\n * @default 0.5\r\n * @since 3.11.0\r\n */\r\n this.originX = 0.5;\r\n\r\n /**\r\n * The vertical origin of rotation for this Camera.\r\n *\r\n * By default the camera rotates around the center of the viewport.\r\n *\r\n * Changing the origin allows you to adjust the point in the viewport from which rotation happens.\r\n * A value of 0 would rotate from the top-left of the viewport. A value of 1 from the bottom right.\r\n *\r\n * See `setOrigin` to set both origins in a single, chainable call.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#originY\r\n * @type {number}\r\n * @default 0.5\r\n * @since 3.11.0\r\n */\r\n this.originY = 0.5;\r\n\r\n /**\r\n * Does this Camera have a custom viewport?\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#_customViewport\r\n * @type {boolean}\r\n * @private\r\n * @default false\r\n * @since 3.12.0\r\n */\r\n this._customViewport = false;\r\n\r\n /**\r\n * The Mask this Camera is using during render.\r\n * Set the mask using the `setMask` method. Remove the mask using the `clearMask` method.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#mask\r\n * @type {?(Phaser.Display.Masks.BitmapMask|Phaser.Display.Masks.GeometryMask)}\r\n * @since 3.17.0\r\n */\r\n this.mask = null;\r\n\r\n /**\r\n * The Camera that this Camera uses for translation during masking.\r\n *\r\n * If the mask is fixed in position this will be a reference to\r\n * the CameraManager.default instance. Otherwise, it'll be a reference\r\n * to itself.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#_maskCamera\r\n * @type {?Phaser.Cameras.Scene2D.BaseCamera}\r\n * @private\r\n * @since 3.17.0\r\n */\r\n this._maskCamera = null;\r\n\r\n /**\r\n * This array is populated with all of the Game Objects that this Camera has rendered\r\n * in the previous (or current, depending on when you inspect it) frame.\r\n *\r\n * It is cleared at the start of `Camera.preUpdate`, or if the Camera is destroyed.\r\n *\r\n * You should not modify this array as it is used internally by the input system,\r\n * however you can read it as required. Note that Game Objects may appear in this\r\n * list multiple times if they belong to multiple non-exclusive Containers.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#renderList\r\n * @type {Phaser.GameObjects.GameObject[]}\r\n * @since 3.52.0\r\n */\r\n this.renderList = [];\r\n\r\n /**\r\n * Is this Camera a Scene Camera? (which is the default), or a Camera\r\n * belonging to a Texture?\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#isSceneCamera\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.60.0\r\n */\r\n this.isSceneCamera = true;\r\n\r\n /**\r\n * Can this Camera render rounded pixel values?\r\n * \r\n * This property is updated during the `preRender` method and should not be\r\n * set directly. It is set based on the `roundPixels` property of the Camera\r\n * combined with the zoom level. If the zoom is an integer then the WebGL\r\n * Renderer can apply rounding during rendering.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#renderRoundPixels\r\n * @type {boolean}\r\n * @readonly\r\n * @default true\r\n * @since 3.86.0\r\n */\r\n this.renderRoundPixels = true;\r\n },\r\n\r\n /**\r\n * Adds the given Game Object to this cameras render list.\r\n *\r\n * This is invoked during the rendering stage. Only objects that are actually rendered\r\n * will appear in the render list.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#addToRenderList\r\n * @since 3.52.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} child - The Game Object to add to the render list.\r\n */\r\n addToRenderList: function (child)\r\n {\r\n this.renderList.push(child);\r\n },\r\n\r\n /**\r\n * Set the Alpha level of this Camera. The alpha controls the opacity of the Camera as it renders.\r\n * Alpha values are provided as a float between 0, fully transparent, and 1, fully opaque.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#setAlpha\r\n * @since 3.11.0\r\n *\r\n * @param {number} [value=1] - The Camera alpha value.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n\r\n /**\r\n * Sets the rotation origin of this Camera.\r\n *\r\n * The values are given in the range 0 to 1 and are only used when calculating Camera rotation.\r\n *\r\n * By default the camera rotates around the center of the viewport.\r\n *\r\n * Changing the origin allows you to adjust the point in the viewport from which rotation happens.\r\n * A value of 0 would rotate from the top-left of the viewport. A value of 1 from the bottom right.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#setOrigin\r\n * @since 3.11.0\r\n *\r\n * @param {number} [x=0.5] - The horizontal origin value.\r\n * @param {number} [y=x] - The vertical origin value. If not defined it will be set to the value of `x`.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n setOrigin: function (x, y)\r\n {\r\n if (x === undefined) { x = 0.5; }\r\n if (y === undefined) { y = x; }\r\n\r\n this.originX = x;\r\n this.originY = y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calculates what the Camera.scrollX and scrollY values would need to be in order to move\r\n * the Camera so it is centered on the given x and y coordinates, without actually moving\r\n * the Camera there. The results are clamped based on the Camera bounds, if set.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#getScroll\r\n * @since 3.11.0\r\n *\r\n * @param {number} x - The horizontal coordinate to center on.\r\n * @param {number} y - The vertical coordinate to center on.\r\n * @param {Phaser.Math.Vector2} [out] - A Vector2 to store the values in. If not given a new Vector2 is created.\r\n *\r\n * @return {Phaser.Math.Vector2} The scroll coordinates stored in the `x` and `y` properties.\r\n */\r\n getScroll: function (x, y, out)\r\n {\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n var originX = this.width * 0.5;\r\n var originY = this.height * 0.5;\r\n\r\n out.x = x - originX;\r\n out.y = y - originY;\r\n\r\n if (this.useBounds)\r\n {\r\n out.x = this.clampX(out.x);\r\n out.y = this.clampY(out.y);\r\n }\r\n\r\n return out;\r\n },\r\n\r\n /**\r\n * Moves the Camera horizontally so that it is centered on the given x coordinate, bounds allowing.\r\n * Calling this does not change the scrollY value.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#centerOnX\r\n * @since 3.16.0\r\n *\r\n * @param {number} x - The horizontal coordinate to center on.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n centerOnX: function (x)\r\n {\r\n var originX = this.width * 0.5;\r\n\r\n this.midPoint.x = x;\r\n\r\n this.scrollX = x - originX;\r\n\r\n if (this.useBounds)\r\n {\r\n this.scrollX = this.clampX(this.scrollX);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Moves the Camera vertically so that it is centered on the given y coordinate, bounds allowing.\r\n * Calling this does not change the scrollX value.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#centerOnY\r\n * @since 3.16.0\r\n *\r\n * @param {number} y - The vertical coordinate to center on.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n centerOnY: function (y)\r\n {\r\n var originY = this.height * 0.5;\r\n\r\n this.midPoint.y = y;\r\n\r\n this.scrollY = y - originY;\r\n\r\n if (this.useBounds)\r\n {\r\n this.scrollY = this.clampY(this.scrollY);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Moves the Camera so that it is centered on the given coordinates, bounds allowing.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#centerOn\r\n * @since 3.11.0\r\n *\r\n * @param {number} x - The horizontal coordinate to center on.\r\n * @param {number} y - The vertical coordinate to center on.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n centerOn: function (x, y)\r\n {\r\n this.centerOnX(x);\r\n this.centerOnY(y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Moves the Camera so that it is looking at the center of the Camera Bounds, if enabled.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#centerToBounds\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n centerToBounds: function ()\r\n {\r\n if (this.useBounds)\r\n {\r\n var bounds = this._bounds;\r\n var originX = this.width * 0.5;\r\n var originY = this.height * 0.5;\r\n\r\n this.midPoint.set(bounds.centerX, bounds.centerY);\r\n\r\n this.scrollX = bounds.centerX - originX;\r\n this.scrollY = bounds.centerY - originY;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Moves the Camera so that it is re-centered based on its viewport size.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#centerToSize\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n centerToSize: function ()\r\n {\r\n this.scrollX = this.width * 0.5;\r\n this.scrollY = this.height * 0.5;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes an array of Game Objects and returns a new array featuring only those objects\r\n * visible by this camera.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#cull\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject[]} G - [renderableObjects,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject[]} renderableObjects - An array of Game Objects to cull.\r\n *\r\n * @return {Phaser.GameObjects.GameObject[]} An array of Game Objects visible to this Camera.\r\n */\r\n cull: function (renderableObjects)\r\n {\r\n if (this.disableCull)\r\n {\r\n return renderableObjects;\r\n }\r\n\r\n var cameraMatrix = this.matrix.matrix;\r\n\r\n var mva = cameraMatrix[0];\r\n var mvb = cameraMatrix[1];\r\n var mvc = cameraMatrix[2];\r\n var mvd = cameraMatrix[3];\r\n\r\n /* First Invert Matrix */\r\n var determinant = (mva * mvd) - (mvb * mvc);\r\n\r\n if (!determinant)\r\n {\r\n return renderableObjects;\r\n }\r\n\r\n var mve = cameraMatrix[4];\r\n var mvf = cameraMatrix[5];\r\n\r\n var scrollX = this.scrollX;\r\n var scrollY = this.scrollY;\r\n var cameraW = this.width;\r\n var cameraH = this.height;\r\n var cullTop = this.y;\r\n var cullBottom = cullTop + cameraH;\r\n var cullLeft = this.x;\r\n var cullRight = cullLeft + cameraW;\r\n var culledObjects = this.culledObjects;\r\n var length = renderableObjects.length;\r\n\r\n determinant = 1 / determinant;\r\n\r\n culledObjects.length = 0;\r\n\r\n for (var index = 0; index < length; ++index)\r\n {\r\n var object = renderableObjects[index];\r\n\r\n if (!object.hasOwnProperty('width') || object.parentContainer)\r\n {\r\n culledObjects.push(object);\r\n continue;\r\n }\r\n\r\n var objectW = object.width;\r\n var objectH = object.height;\r\n var objectX = (object.x - (scrollX * object.scrollFactorX)) - (objectW * object.originX);\r\n var objectY = (object.y - (scrollY * object.scrollFactorY)) - (objectH * object.originY);\r\n var tx = (objectX * mva + objectY * mvc + mve);\r\n var ty = (objectX * mvb + objectY * mvd + mvf);\r\n var tw = ((objectX + objectW) * mva + (objectY + objectH) * mvc + mve);\r\n var th = ((objectX + objectW) * mvb + (objectY + objectH) * mvd + mvf);\r\n\r\n if ((tw > cullLeft && tx < cullRight) && (th > cullTop && ty < cullBottom))\r\n {\r\n culledObjects.push(object);\r\n }\r\n }\r\n\r\n return culledObjects;\r\n },\r\n\r\n /**\r\n * Converts the given `x` and `y` coordinates into World space, based on this Cameras transform.\r\n * You can optionally provide a Vector2, or similar object, to store the results in.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#getWorldPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [output,$return]\r\n *\r\n * @param {number} x - The x position to convert to world space.\r\n * @param {number} y - The y position to convert to world space.\r\n * @param {(object|Phaser.Math.Vector2)} [output] - An optional object to store the results in. If not provided a new Vector2 will be created.\r\n *\r\n * @return {Phaser.Math.Vector2} An object holding the converted values in its `x` and `y` properties.\r\n */\r\n getWorldPoint: function (x, y, output)\r\n {\r\n if (output === undefined) { output = new Vector2(); }\r\n\r\n var cameraMatrix = this.matrix.matrix;\r\n\r\n var mva = cameraMatrix[0];\r\n var mvb = cameraMatrix[1];\r\n var mvc = cameraMatrix[2];\r\n var mvd = cameraMatrix[3];\r\n var mve = cameraMatrix[4];\r\n var mvf = cameraMatrix[5];\r\n\r\n // Invert Matrix\r\n var determinant = (mva * mvd) - (mvb * mvc);\r\n\r\n if (!determinant)\r\n {\r\n output.x = x;\r\n output.y = y;\r\n\r\n return output;\r\n }\r\n\r\n determinant = 1 / determinant;\r\n\r\n var ima = mvd * determinant;\r\n var imb = -mvb * determinant;\r\n var imc = -mvc * determinant;\r\n var imd = mva * determinant;\r\n var ime = (mvc * mvf - mvd * mve) * determinant;\r\n var imf = (mvb * mve - mva * mvf) * determinant;\r\n\r\n var c = Math.cos(this.rotation);\r\n var s = Math.sin(this.rotation);\r\n\r\n var zoomX = this.zoomX;\r\n var zoomY = this.zoomY;\r\n\r\n var scrollX = this.scrollX;\r\n var scrollY = this.scrollY;\r\n\r\n var sx = x + ((scrollX * c - scrollY * s) * zoomX);\r\n var sy = y + ((scrollX * s + scrollY * c) * zoomY);\r\n\r\n // Apply transform to point\r\n output.x = (sx * ima + sy * imc) + ime;\r\n output.y = (sx * imb + sy * imd) + imf;\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Given a Game Object, or an array of Game Objects, it will update all of their camera filter settings\r\n * so that they are ignored by this Camera. This means they will not be rendered by this Camera.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#ignore\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]|Phaser.GameObjects.Group|Phaser.GameObjects.Layer|Phaser.GameObjects.Layer[])} entries - The Game Object, or array of Game Objects, to be ignored by this Camera.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n ignore: function (entries)\r\n {\r\n var id = this.id;\r\n\r\n if (!Array.isArray(entries))\r\n {\r\n entries = [ entries ];\r\n }\r\n\r\n for (var i = 0; i < entries.length; i++)\r\n {\r\n var entry = entries[i];\r\n\r\n if (Array.isArray(entry))\r\n {\r\n this.ignore(entry);\r\n }\r\n else if (entry.isParent)\r\n {\r\n this.ignore(entry.getChildren());\r\n }\r\n else\r\n {\r\n entry.cameraFilter |= id;\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes an x value and checks it's within the range of the Camera bounds, adjusting if required.\r\n * Do not call this method if you are not using camera bounds.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#clampX\r\n * @since 3.11.0\r\n *\r\n * @param {number} x - The value to horizontally scroll clamp.\r\n *\r\n * @return {number} The adjusted value to use as scrollX.\r\n */\r\n clampX: function (x)\r\n {\r\n var bounds = this._bounds;\r\n\r\n var dw = this.displayWidth;\r\n\r\n var bx = bounds.x + ((dw - this.width) / 2);\r\n var bw = Math.max(bx, bx + bounds.width - dw);\r\n\r\n if (x < bx)\r\n {\r\n x = bx;\r\n }\r\n else if (x > bw)\r\n {\r\n x = bw;\r\n }\r\n\r\n return x;\r\n },\r\n\r\n /**\r\n * Takes a y value and checks it's within the range of the Camera bounds, adjusting if required.\r\n * Do not call this method if you are not using camera bounds.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#clampY\r\n * @since 3.11.0\r\n *\r\n * @param {number} y - The value to vertically scroll clamp.\r\n *\r\n * @return {number} The adjusted value to use as scrollY.\r\n */\r\n clampY: function (y)\r\n {\r\n var bounds = this._bounds;\r\n\r\n var dh = this.displayHeight;\r\n\r\n var by = bounds.y + ((dh - this.height) / 2);\r\n var bh = Math.max(by, by + bounds.height - dh);\r\n\r\n if (y < by)\r\n {\r\n y = by;\r\n }\r\n else if (y > bh)\r\n {\r\n y = bh;\r\n }\r\n\r\n return y;\r\n },\r\n\r\n /*\r\n var gap = this._zoomInversed;\r\n return gap * Math.round((src.x - this.scrollX * src.scrollFactorX) / gap);\r\n */\r\n\r\n /**\r\n * If this Camera has previously had movement bounds set on it, this will remove them.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#removeBounds\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n removeBounds: function ()\r\n {\r\n this.useBounds = false;\r\n\r\n this.dirty = true;\r\n\r\n this._bounds.setEmpty();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the rotation of this Camera. This causes everything it renders to appear rotated.\r\n *\r\n * Rotating a camera does not rotate the viewport itself, it is applied during rendering.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#setAngle\r\n * @since 3.0.0\r\n *\r\n * @param {number} [value=0] - The cameras angle of rotation, given in degrees.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n setAngle: function (value)\r\n {\r\n if (value === undefined) { value = 0; }\r\n\r\n this.rotation = DegToRad(value);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the background color for this Camera.\r\n *\r\n * By default a Camera has a transparent background but it can be given a solid color, with any level\r\n * of transparency, via this method.\r\n *\r\n * The color value can be specified using CSS color notation, hex or numbers.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#setBackgroundColor\r\n * @since 3.0.0\r\n *\r\n * @param {(string|number|Phaser.Types.Display.InputColorObject)} [color='rgba(0,0,0,0)'] - The color value. In CSS, hex or numeric color notation.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n setBackgroundColor: function (color)\r\n {\r\n if (color === undefined) { color = 'rgba(0,0,0,0)'; }\r\n\r\n this.backgroundColor = ValueToColor(color);\r\n\r\n this.transparent = (this.backgroundColor.alpha === 0);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the bounds of the Camera. The bounds are an axis-aligned rectangle.\r\n *\r\n * The Camera bounds controls where the Camera can scroll to, stopping it from scrolling off the\r\n * edges and into blank space. It does not limit the placement of Game Objects, or where\r\n * the Camera viewport can be positioned.\r\n *\r\n * Temporarily disable the bounds by changing the boolean `Camera.useBounds`.\r\n *\r\n * Clear the bounds entirely by calling `Camera.removeBounds`.\r\n *\r\n * If you set bounds that are smaller than the viewport it will stop the Camera from being\r\n * able to scroll. The bounds can be positioned where-ever you wish. By default they are from\r\n * 0x0 to the canvas width x height. This means that the coordinate 0x0 is the top left of\r\n * the Camera bounds. However, you can position them anywhere. So if you wanted a game world\r\n * that was 2048x2048 in size, with 0x0 being the center of it, you can set the bounds x/y\r\n * to be -1024, -1024, with a width and height of 2048. Depending on your game you may find\r\n * it easier for 0x0 to be the top-left of the bounds, or you may wish 0x0 to be the middle.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#setBounds\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The top-left x coordinate of the bounds.\r\n * @param {number} y - The top-left y coordinate of the bounds.\r\n * @param {number} width - The width of the bounds, in pixels.\r\n * @param {number} height - The height of the bounds, in pixels.\r\n * @param {boolean} [centerOn=false] - If `true` the Camera will automatically be centered on the new bounds.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n setBounds: function (x, y, width, height, centerOn)\r\n {\r\n if (centerOn === undefined) { centerOn = false; }\r\n\r\n this._bounds.setTo(x, y, width, height);\r\n\r\n this.dirty = true;\r\n this.useBounds = true;\r\n\r\n if (centerOn)\r\n {\r\n this.centerToBounds();\r\n }\r\n else\r\n {\r\n this.scrollX = this.clampX(this.scrollX);\r\n this.scrollY = this.clampY(this.scrollY);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns a rectangle containing the bounds of the Camera.\r\n *\r\n * If the Camera does not have any bounds the rectangle will be empty.\r\n *\r\n * The rectangle is a copy of the bounds, so is safe to modify.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#getBounds\r\n * @since 3.16.0\r\n *\r\n * @param {Phaser.Geom.Rectangle} [out] - An optional Rectangle to store the bounds in. If not given, a new Rectangle will be created.\r\n *\r\n * @return {Phaser.Geom.Rectangle} A rectangle containing the bounds of this Camera.\r\n */\r\n getBounds: function (out)\r\n {\r\n if (out === undefined) { out = new Rectangle(); }\r\n\r\n var source = this._bounds;\r\n\r\n out.setTo(source.x, source.y, source.width, source.height);\r\n\r\n return out;\r\n },\r\n\r\n /**\r\n * Sets the name of this Camera.\r\n * This value is for your own use and isn't used internally.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#setName\r\n * @since 3.0.0\r\n *\r\n * @param {string} [value=''] - The name of the Camera.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n setName: function (value)\r\n {\r\n if (value === undefined) { value = ''; }\r\n\r\n this.name = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the position of the Camera viewport within the game.\r\n *\r\n * This does not change where the camera is 'looking'. See `setScroll` to control that.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#setPosition\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The top-left x coordinate of the Camera viewport.\r\n * @param {number} [y=x] - The top-left y coordinate of the Camera viewport.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n setPosition: function (x, y)\r\n {\r\n if (y === undefined) { y = x; }\r\n\r\n this.x = x;\r\n this.y = y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the rotation of this Camera. This causes everything it renders to appear rotated.\r\n *\r\n * Rotating a camera does not rotate the viewport itself, it is applied during rendering.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#setRotation\r\n * @since 3.0.0\r\n *\r\n * @param {number} [value=0] - The rotation of the Camera, in radians.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n setRotation: function (value)\r\n {\r\n if (value === undefined) { value = 0; }\r\n\r\n this.rotation = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Should the Camera round pixel values to whole integers when rendering Game Objects?\r\n *\r\n * In some types of game, especially with pixel art, this is required to prevent sub-pixel aliasing.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#setRoundPixels\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} value - `true` to round Camera pixels, `false` to not.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n setRoundPixels: function (value)\r\n {\r\n this.roundPixels = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Scene the Camera is bound to.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#setScene\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene the camera is bound to.\r\n * @param {boolean} [isSceneCamera=true] - Is this Camera being used for a Scene (true) or a Texture? (false)\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n setScene: function (scene, isSceneCamera)\r\n {\r\n if (isSceneCamera === undefined) { isSceneCamera = true; }\r\n\r\n if (this.scene && this._customViewport)\r\n {\r\n this.sceneManager.customViewports--;\r\n }\r\n\r\n this.scene = scene;\r\n this.isSceneCamera = isSceneCamera;\r\n\r\n var sys = scene.sys;\r\n\r\n this.sceneManager = sys.game.scene;\r\n this.scaleManager = sys.scale;\r\n this.cameraManager = sys.cameras;\r\n\r\n this.updateSystem();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the position of where the Camera is looking within the game.\r\n * You can also modify the properties `Camera.scrollX` and `Camera.scrollY` directly.\r\n * Use this method, or the scroll properties, to move your camera around the game world.\r\n *\r\n * This does not change where the camera viewport is placed. See `setPosition` to control that.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#setScroll\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x coordinate of the Camera in the game world.\r\n * @param {number} [y=x] - The y coordinate of the Camera in the game world.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n setScroll: function (x, y)\r\n {\r\n if (y === undefined) { y = x; }\r\n\r\n this.scrollX = x;\r\n this.scrollY = y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the size of the Camera viewport.\r\n *\r\n * By default a Camera is the same size as the game, but can be made smaller via this method,\r\n * allowing you to create mini-cam style effects by creating and positioning a smaller Camera\r\n * viewport within your game.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#setSize\r\n * @since 3.0.0\r\n *\r\n * @param {number} width - The width of the Camera viewport.\r\n * @param {number} [height=width] - The height of the Camera viewport.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n setSize: function (width, height)\r\n {\r\n if (height === undefined) { height = width; }\r\n\r\n this.width = width;\r\n this.height = height;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * This method sets the position and size of the Camera viewport in a single call.\r\n *\r\n * If you're trying to change where the Camera is looking at in your game, then see\r\n * the method `Camera.setScroll` instead. This method is for changing the viewport\r\n * itself, not what the camera can see.\r\n *\r\n * By default a Camera is the same size as the game, but can be made smaller via this method,\r\n * allowing you to create mini-cam style effects by creating and positioning a smaller Camera\r\n * viewport within your game.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#setViewport\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The top-left x coordinate of the Camera viewport.\r\n * @param {number} y - The top-left y coordinate of the Camera viewport.\r\n * @param {number} width - The width of the Camera viewport.\r\n * @param {number} [height=width] - The height of the Camera viewport.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n setViewport: function (x, y, width, height)\r\n {\r\n this.x = x;\r\n this.y = y;\r\n this.width = width;\r\n this.height = height;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the zoom value of the Camera.\r\n *\r\n * Changing to a smaller value, such as 0.5, will cause the camera to 'zoom out'.\r\n * Changing to a larger value, such as 2, will cause the camera to 'zoom in'.\r\n *\r\n * A value of 1 means 'no zoom' and is the default.\r\n *\r\n * Changing the zoom does not impact the Camera viewport in any way, it is only applied during rendering.\r\n *\r\n * As of Phaser 3.50 you can now set the horizontal and vertical zoom values independently.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#setZoom\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=1] - The horizontal zoom value of the Camera. The minimum it can be is 0.001.\r\n * @param {number} [y=x] - The vertical zoom value of the Camera. The minimum it can be is 0.001.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n setZoom: function (x, y)\r\n {\r\n if (x === undefined) { x = 1; }\r\n if (y === undefined) { y = x; }\r\n\r\n if (x === 0)\r\n {\r\n x = 0.001;\r\n }\r\n\r\n if (y === 0)\r\n {\r\n y = 0.001;\r\n }\r\n\r\n this.zoomX = x;\r\n this.zoomY = y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the mask to be applied to this Camera during rendering.\r\n *\r\n * The mask must have been previously created and can be either a GeometryMask or a BitmapMask.\r\n *\r\n * Bitmap Masks only work on WebGL. Geometry Masks work on both WebGL and Canvas.\r\n *\r\n * If a mask is already set on this Camera it will be immediately replaced.\r\n *\r\n * Masks have no impact on physics or input detection. They are purely a rendering component\r\n * that allows you to limit what is visible during the render pass.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#setMask\r\n * @since 3.17.0\r\n *\r\n * @param {(Phaser.Display.Masks.BitmapMask|Phaser.Display.Masks.GeometryMask)} mask - The mask this Camera will use when rendering.\r\n * @param {boolean} [fixedPosition=true] - Should the mask translate along with the Camera, or be fixed in place and not impacted by the Cameras transform?\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n setMask: function (mask, fixedPosition)\r\n {\r\n if (fixedPosition === undefined) { fixedPosition = true; }\r\n\r\n this.mask = mask;\r\n\r\n this._maskCamera = (fixedPosition) ? this.cameraManager.default : this;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Clears the mask that this Camera was using.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#clearMask\r\n * @since 3.17.0\r\n *\r\n * @param {boolean} [destroyMask=false] - Destroy the mask before clearing it?\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n clearMask: function (destroyMask)\r\n {\r\n if (destroyMask === undefined) { destroyMask = false; }\r\n\r\n if (destroyMask && this.mask)\r\n {\r\n this.mask.destroy();\r\n }\r\n\r\n this.mask = null;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the visibility of this Camera.\r\n *\r\n * An invisible Camera will skip rendering and input tests of everything it can see.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#setVisible\r\n * @since 3.10.0\r\n *\r\n * @param {boolean} value - The visible state of the Camera.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n\r\n /**\r\n * Returns an Object suitable for JSON storage containing all of the Camera viewport and rendering properties.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#toJSON\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Types.Cameras.Scene2D.JSONCamera} A well-formed object suitable for conversion to JSON.\r\n */\r\n toJSON: function ()\r\n {\r\n var output = {\r\n name: this.name,\r\n x: this.x,\r\n y: this.y,\r\n width: this.width,\r\n height: this.height,\r\n zoom: this.zoom,\r\n rotation: this.rotation,\r\n roundPixels: this.roundPixels,\r\n scrollX: this.scrollX,\r\n scrollY: this.scrollY,\r\n backgroundColor: this.backgroundColor.rgba\r\n };\r\n\r\n if (this.useBounds)\r\n {\r\n output['bounds'] = {\r\n x: this._bounds.x,\r\n y: this._bounds.y,\r\n width: this._bounds.width,\r\n height: this._bounds.height\r\n };\r\n }\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Internal method called automatically by the Camera Manager.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#update\r\n * @protected\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current timestamp as generated by the Request Animation Frame or SetTimeout.\r\n * @param {number} delta - The delta time, in ms, elapsed since the last frame.\r\n */\r\n update: function ()\r\n {\r\n // NOOP\r\n },\r\n\r\n /**\r\n * Set if this Camera is being used as a Scene Camera, or a Texture\r\n * Camera.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#setIsSceneCamera\r\n * @since 3.60.0\r\n *\r\n * @param {boolean} value - Is this being used as a Scene Camera, or a Texture camera?\r\n */\r\n setIsSceneCamera: function (value)\r\n {\r\n this.isSceneCamera = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal method called automatically when the viewport changes.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#updateSystem\r\n * @private\r\n * @since 3.12.0\r\n */\r\n updateSystem: function ()\r\n {\r\n if (!this.scaleManager || !this.isSceneCamera)\r\n {\r\n return;\r\n }\r\n\r\n var custom = (this._x !== 0 || this._y !== 0 || this.scaleManager.width !== this._width || this.scaleManager.height !== this._height);\r\n\r\n var sceneManager = this.sceneManager;\r\n\r\n if (custom && !this._customViewport)\r\n {\r\n // We need a custom viewport for this Camera\r\n sceneManager.customViewports++;\r\n }\r\n else if (!custom && this._customViewport)\r\n {\r\n // We're turning off a custom viewport for this Camera\r\n sceneManager.customViewports--;\r\n }\r\n\r\n this.dirty = true;\r\n this._customViewport = custom;\r\n },\r\n\r\n /**\r\n * Destroys this Camera instance and its internal properties and references.\r\n * Once destroyed you cannot use this Camera again, even if re-added to a Camera Manager.\r\n *\r\n * This method is called automatically by `CameraManager.remove` if that methods `runDestroy` argument is `true`, which is the default.\r\n *\r\n * Unless you have a specific reason otherwise, always use `CameraManager.remove` and allow it to handle the camera destruction,\r\n * rather than calling this method directly.\r\n *\r\n * @method Phaser.Cameras.Scene2D.BaseCamera#destroy\r\n * @fires Phaser.Cameras.Scene2D.Events#DESTROY\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.emit(Events.DESTROY, this);\r\n\r\n this.removeAllListeners();\r\n\r\n this.matrix.destroy();\r\n\r\n this.culledObjects = [];\r\n\r\n if (this._customViewport)\r\n {\r\n // We're turning off a custom viewport for this Camera\r\n this.sceneManager.customViewports--;\r\n }\r\n\r\n this.renderList = [];\r\n\r\n this._bounds = null;\r\n\r\n this.scene = null;\r\n this.scaleManager = null;\r\n this.sceneManager = null;\r\n this.cameraManager = null;\r\n },\r\n\r\n /**\r\n * The x position of the Camera viewport, relative to the top-left of the game canvas.\r\n * The viewport is the area into which the camera renders.\r\n * To adjust the position the camera is looking at in the game world, see the `scrollX` value.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#x\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n x: {\r\n\r\n get: function ()\r\n {\r\n return this._x;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._x = value;\r\n this.updateSystem();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The y position of the Camera viewport, relative to the top-left of the game canvas.\r\n * The viewport is the area into which the camera renders.\r\n * To adjust the position the camera is looking at in the game world, see the `scrollY` value.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#y\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n y: {\r\n\r\n get: function ()\r\n {\r\n return this._y;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._y = value;\r\n this.updateSystem();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The width of the Camera viewport, in pixels.\r\n *\r\n * The viewport is the area into which the Camera renders. Setting the viewport does\r\n * not restrict where the Camera can scroll to.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#width\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n width: {\r\n\r\n get: function ()\r\n {\r\n return this._width;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._width = value;\r\n this.updateSystem();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The height of the Camera viewport, in pixels.\r\n *\r\n * The viewport is the area into which the Camera renders. Setting the viewport does\r\n * not restrict where the Camera can scroll to.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#height\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n height: {\r\n\r\n get: function ()\r\n {\r\n return this._height;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._height = value;\r\n this.updateSystem();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The horizontal scroll position of this Camera.\r\n *\r\n * Change this value to cause the Camera to scroll around your Scene.\r\n *\r\n * Alternatively, setting the Camera to follow a Game Object, via the `startFollow` method,\r\n * will automatically adjust the Camera scroll values accordingly.\r\n *\r\n * You can set the bounds within which the Camera can scroll via the `setBounds` method.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#scrollX\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n scrollX: {\r\n\r\n get: function ()\r\n {\r\n return this._scrollX;\r\n },\r\n\r\n set: function (value)\r\n {\r\n if (value !== this._scrollX)\r\n {\r\n this._scrollX = value;\r\n this.dirty = true;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The vertical scroll position of this Camera.\r\n *\r\n * Change this value to cause the Camera to scroll around your Scene.\r\n *\r\n * Alternatively, setting the Camera to follow a Game Object, via the `startFollow` method,\r\n * will automatically adjust the Camera scroll values accordingly.\r\n *\r\n * You can set the bounds within which the Camera can scroll via the `setBounds` method.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#scrollY\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n scrollY: {\r\n\r\n get: function ()\r\n {\r\n return this._scrollY;\r\n },\r\n\r\n set: function (value)\r\n {\r\n if (value !== this._scrollY)\r\n {\r\n this._scrollY = value;\r\n this.dirty = true;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The Camera zoom value. Change this value to zoom in, or out of, a Scene.\r\n *\r\n * A value of 0.5 would zoom the Camera out, so you can now see twice as much\r\n * of the Scene as before. A value of 2 would zoom the Camera in, so every pixel\r\n * now takes up 2 pixels when rendered.\r\n *\r\n * Set to 1 to return to the default zoom level.\r\n *\r\n * Be careful to never set this value to zero.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#zoom\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n zoom: {\r\n\r\n get: function ()\r\n {\r\n return (this._zoomX + this._zoomY) / 2;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._zoomX = value;\r\n this._zoomY = value;\r\n\r\n this.dirty = true;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The Camera horizontal zoom value. Change this value to zoom in, or out of, a Scene.\r\n *\r\n * A value of 0.5 would zoom the Camera out, so you can now see twice as much\r\n * of the Scene as before. A value of 2 would zoom the Camera in, so every pixel\r\n * now takes up 2 pixels when rendered.\r\n *\r\n * Set to 1 to return to the default zoom level.\r\n *\r\n * Be careful to never set this value to zero.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#zoomX\r\n * @type {number}\r\n * @default 1\r\n * @since 3.50.0\r\n */\r\n zoomX: {\r\n\r\n get: function ()\r\n {\r\n return this._zoomX;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._zoomX = value;\r\n this.dirty = true;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The Camera vertical zoom value. Change this value to zoom in, or out of, a Scene.\r\n *\r\n * A value of 0.5 would zoom the Camera out, so you can now see twice as much\r\n * of the Scene as before. A value of 2 would zoom the Camera in, so every pixel\r\n * now takes up 2 pixels when rendered.\r\n *\r\n * Set to 1 to return to the default zoom level.\r\n *\r\n * Be careful to never set this value to zero.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#zoomY\r\n * @type {number}\r\n * @default 1\r\n * @since 3.50.0\r\n */\r\n zoomY: {\r\n\r\n get: function ()\r\n {\r\n return this._zoomY;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._zoomY = value;\r\n this.dirty = true;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The rotation of the Camera in radians.\r\n *\r\n * Camera rotation always takes place based on the Camera viewport. By default, rotation happens\r\n * in the center of the viewport. You can adjust this with the `originX` and `originY` properties.\r\n *\r\n * Rotation influences the rendering of _all_ Game Objects visible by this Camera. However, it does not\r\n * rotate the Camera viewport itself, which always remains an axis-aligned rectangle.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#rotation\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.11.0\r\n */\r\n rotation: {\r\n\r\n get: function ()\r\n {\r\n return this._rotation;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._rotation = value;\r\n this.dirty = true;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The horizontal position of the center of the Camera's viewport, relative to the left of the game canvas.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#centerX\r\n * @type {number}\r\n * @readonly\r\n * @since 3.10.0\r\n */\r\n centerX: {\r\n\r\n get: function ()\r\n {\r\n return this.x + (0.5 * this.width);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The vertical position of the center of the Camera's viewport, relative to the top of the game canvas.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#centerY\r\n * @type {number}\r\n * @readonly\r\n * @since 3.10.0\r\n */\r\n centerY: {\r\n\r\n get: function ()\r\n {\r\n return this.y + (0.5 * this.height);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The displayed width of the camera viewport, factoring in the camera zoom level.\r\n *\r\n * If a camera has a viewport width of 800 and a zoom of 0.5 then its display width\r\n * would be 1600, as it's displaying twice as many pixels as zoom level 1.\r\n *\r\n * Equally, a camera with a width of 800 and zoom of 2 would have a display width\r\n * of 400 pixels.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#displayWidth\r\n * @type {number}\r\n * @readonly\r\n * @since 3.11.0\r\n */\r\n displayWidth: {\r\n\r\n get: function ()\r\n {\r\n return this.width / this.zoomX;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The displayed height of the camera viewport, factoring in the camera zoom level.\r\n *\r\n * If a camera has a viewport height of 600 and a zoom of 0.5 then its display height\r\n * would be 1200, as it's displaying twice as many pixels as zoom level 1.\r\n *\r\n * Equally, a camera with a height of 600 and zoom of 2 would have a display height\r\n * of 300 pixels.\r\n *\r\n * @name Phaser.Cameras.Scene2D.BaseCamera#displayHeight\r\n * @type {number}\r\n * @readonly\r\n * @since 3.11.0\r\n */\r\n displayHeight: {\r\n\r\n get: function ()\r\n {\r\n return this.height / this.zoomY;\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = BaseCamera;\r\n\n\n/***/ }),\n\n/***/ 38058:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BaseCamera = __webpack_require__(71911);\r\nvar CenterOn = __webpack_require__(67502);\r\nvar Clamp = __webpack_require__(45319);\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar Effects = __webpack_require__(20052);\r\nvar Events = __webpack_require__(19715);\r\nvar Linear = __webpack_require__(28915);\r\nvar Rectangle = __webpack_require__(87841);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * A Camera.\r\n *\r\n * The Camera is the way in which all games are rendered in Phaser. They provide a view into your game world,\r\n * and can be positioned, rotated, zoomed and scrolled accordingly.\r\n *\r\n * A Camera consists of two elements: The viewport and the scroll values.\r\n *\r\n * The viewport is the physical position and size of the Camera within your game. Cameras, by default, are\r\n * created the same size as your game, but their position and size can be set to anything. This means if you\r\n * wanted to create a camera that was 320x200 in size, positioned in the bottom-right corner of your game,\r\n * you'd adjust the viewport to do that (using methods like `setViewport` and `setSize`).\r\n *\r\n * If you wish to change where the Camera is looking in your game, then you scroll it. You can do this\r\n * via the properties `scrollX` and `scrollY` or the method `setScroll`. Scrolling has no impact on the\r\n * viewport, and changing the viewport has no impact on the scrolling.\r\n *\r\n * By default a Camera will render all Game Objects it can see. You can change this using the `ignore` method,\r\n * allowing you to filter Game Objects out on a per-Camera basis.\r\n *\r\n * A Camera also has built-in special effects including Fade, Flash and Camera Shake.\r\n *\r\n * @class Camera\r\n * @memberof Phaser.Cameras.Scene2D\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @extends Phaser.Cameras.Scene2D.BaseCamera\r\n * @extends Phaser.GameObjects.Components.PostPipeline\r\n *\r\n * @param {number} x - The x position of the Camera, relative to the top-left of the game canvas.\r\n * @param {number} y - The y position of the Camera, relative to the top-left of the game canvas.\r\n * @param {number} width - The width of the Camera, in pixels.\r\n * @param {number} height - The height of the Camera, in pixels.\r\n */\r\nvar Camera = new Class({\r\n\r\n Extends: BaseCamera,\r\n\r\n Mixins: [\r\n Components.PostPipeline\r\n ],\r\n\r\n initialize:\r\n\r\n function Camera (x, y, width, height)\r\n {\r\n BaseCamera.call(this, x, y, width, height);\r\n\r\n this.initPostPipeline();\r\n\r\n /**\r\n * Does this Camera allow the Game Objects it renders to receive input events?\r\n *\r\n * @name Phaser.Cameras.Scene2D.Camera#inputEnabled\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.inputEnabled = true;\r\n\r\n /**\r\n * The Camera Fade effect handler.\r\n * To fade this camera see the `Camera.fade` methods.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Camera#fadeEffect\r\n * @type {Phaser.Cameras.Scene2D.Effects.Fade}\r\n * @since 3.5.0\r\n */\r\n this.fadeEffect = new Effects.Fade(this);\r\n\r\n /**\r\n * The Camera Flash effect handler.\r\n * To flash this camera see the `Camera.flash` method.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Camera#flashEffect\r\n * @type {Phaser.Cameras.Scene2D.Effects.Flash}\r\n * @since 3.5.0\r\n */\r\n this.flashEffect = new Effects.Flash(this);\r\n\r\n /**\r\n * The Camera Shake effect handler.\r\n * To shake this camera see the `Camera.shake` method.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Camera#shakeEffect\r\n * @type {Phaser.Cameras.Scene2D.Effects.Shake}\r\n * @since 3.5.0\r\n */\r\n this.shakeEffect = new Effects.Shake(this);\r\n\r\n /**\r\n * The Camera Pan effect handler.\r\n * To pan this camera see the `Camera.pan` method.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Camera#panEffect\r\n * @type {Phaser.Cameras.Scene2D.Effects.Pan}\r\n * @since 3.11.0\r\n */\r\n this.panEffect = new Effects.Pan(this);\r\n\r\n /**\r\n * The Camera Rotate To effect handler.\r\n * To rotate this camera see the `Camera.rotateTo` method.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Camera#rotateToEffect\r\n * @type {Phaser.Cameras.Scene2D.Effects.RotateTo}\r\n * @since 3.23.0\r\n */\r\n this.rotateToEffect = new Effects.RotateTo(this);\r\n\r\n /**\r\n * The Camera Zoom effect handler.\r\n * To zoom this camera see the `Camera.zoom` method.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Camera#zoomEffect\r\n * @type {Phaser.Cameras.Scene2D.Effects.Zoom}\r\n * @since 3.11.0\r\n */\r\n this.zoomEffect = new Effects.Zoom(this);\r\n\r\n /**\r\n * The linear interpolation value to use when following a target.\r\n *\r\n * Can also be set via `setLerp` or as part of the `startFollow` call.\r\n *\r\n * The default values of 1 means the camera will instantly snap to the target coordinates.\r\n * A lower value, such as 0.1 means the camera will more slowly track the target, giving\r\n * a smooth transition. You can set the horizontal and vertical values independently, and also\r\n * adjust this value in real-time during your game.\r\n *\r\n * Be sure to keep the value between 0 and 1. A value of zero will disable tracking on that axis.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Camera#lerp\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.9.0\r\n */\r\n this.lerp = new Vector2(1, 1);\r\n\r\n /**\r\n * The values stored in this property are subtracted from the Camera targets position, allowing you to\r\n * offset the camera from the actual target x/y coordinates by this amount.\r\n * Can also be set via `setFollowOffset` or as part of the `startFollow` call.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Camera#followOffset\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.9.0\r\n */\r\n this.followOffset = new Vector2();\r\n\r\n /**\r\n * The Camera dead zone.\r\n *\r\n * The deadzone is only used when the camera is following a target.\r\n *\r\n * It defines a rectangular region within which if the target is present, the camera will not scroll.\r\n * If the target moves outside of this area, the camera will begin scrolling in order to follow it.\r\n *\r\n * The `lerp` values that you can set for a follower target also apply when using a deadzone.\r\n *\r\n * You can directly set this property to be an instance of a Rectangle. Or, you can use the\r\n * `setDeadzone` method for a chainable approach.\r\n *\r\n * The rectangle you provide can have its dimensions adjusted dynamically, however, please\r\n * note that its position is updated every frame, as it is constantly re-centered on the cameras mid point.\r\n *\r\n * Calling `setDeadzone` with no arguments will reset an active deadzone, as will setting this property\r\n * to `null`.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Camera#deadzone\r\n * @type {?Phaser.Geom.Rectangle}\r\n * @since 3.11.0\r\n */\r\n this.deadzone = null;\r\n\r\n /**\r\n * Internal follow target reference.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Camera#_follow\r\n * @type {?any}\r\n * @private\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this._follow = null;\r\n },\r\n\r\n /**\r\n * Sets the Camera dead zone.\r\n *\r\n * The deadzone is only used when the camera is following a target.\r\n *\r\n * It defines a rectangular region within which if the target is present, the camera will not scroll.\r\n * If the target moves outside of this area, the camera will begin scrolling in order to follow it.\r\n *\r\n * The deadzone rectangle is re-positioned every frame so that it is centered on the mid-point\r\n * of the camera. This allows you to use the object for additional game related checks, such as\r\n * testing if an object is within it or not via a Rectangle.contains call.\r\n *\r\n * The `lerp` values that you can set for a follower target also apply when using a deadzone.\r\n *\r\n * Calling this method with no arguments will reset an active deadzone.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Camera#setDeadzone\r\n * @since 3.11.0\r\n *\r\n * @param {number} [width] - The width of the deadzone rectangle in pixels. If not specified the deadzone is removed.\r\n * @param {number} [height] - The height of the deadzone rectangle in pixels.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n setDeadzone: function (width, height)\r\n {\r\n if (width === undefined)\r\n {\r\n this.deadzone = null;\r\n }\r\n else\r\n {\r\n if (this.deadzone)\r\n {\r\n this.deadzone.width = width;\r\n this.deadzone.height = height;\r\n }\r\n else\r\n {\r\n this.deadzone = new Rectangle(0, 0, width, height);\r\n }\r\n\r\n if (this._follow)\r\n {\r\n var originX = this.width / 2;\r\n var originY = this.height / 2;\r\n\r\n var fx = this._follow.x - this.followOffset.x;\r\n var fy = this._follow.y - this.followOffset.y;\r\n\r\n this.midPoint.set(fx, fy);\r\n\r\n this.scrollX = fx - originX;\r\n this.scrollY = fy - originY;\r\n }\r\n\r\n CenterOn(this.deadzone, this.midPoint.x, this.midPoint.y);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Fades the Camera in from the given color over the duration specified.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Camera#fadeIn\r\n * @fires Phaser.Cameras.Scene2D.Events#FADE_IN_START\r\n * @fires Phaser.Cameras.Scene2D.Events#FADE_IN_COMPLETE\r\n * @since 3.3.0\r\n *\r\n * @param {number} [duration=1000] - The duration of the effect in milliseconds.\r\n * @param {number} [red=0] - The amount to fade the red channel towards. A value between 0 and 255.\r\n * @param {number} [green=0] - The amount to fade the green channel towards. A value between 0 and 255.\r\n * @param {number} [blue=0] - The amount to fade the blue channel towards. A value between 0 and 255.\r\n * @param {function} [callback] - This callback will be invoked every frame for the duration of the effect.\r\n * It is sent two arguments: A reference to the camera and a progress amount between 0 and 1 indicating how complete the effect is.\r\n * @param {any} [context] - The context in which the callback is invoked. Defaults to the Scene to which the Camera belongs.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n fadeIn: function (duration, red, green, blue, callback, context)\r\n {\r\n return this.fadeEffect.start(false, duration, red, green, blue, true, callback, context);\r\n },\r\n\r\n /**\r\n * Fades the Camera out to the given color over the duration specified.\r\n * This is an alias for Camera.fade that forces the fade to start, regardless of existing fades.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Camera#fadeOut\r\n * @fires Phaser.Cameras.Scene2D.Events#FADE_OUT_START\r\n * @fires Phaser.Cameras.Scene2D.Events#FADE_OUT_COMPLETE\r\n * @since 3.3.0\r\n *\r\n * @param {number} [duration=1000] - The duration of the effect in milliseconds.\r\n * @param {number} [red=0] - The amount to fade the red channel towards. A value between 0 and 255.\r\n * @param {number} [green=0] - The amount to fade the green channel towards. A value between 0 and 255.\r\n * @param {number} [blue=0] - The amount to fade the blue channel towards. A value between 0 and 255.\r\n * @param {function} [callback] - This callback will be invoked every frame for the duration of the effect.\r\n * It is sent two arguments: A reference to the camera and a progress amount between 0 and 1 indicating how complete the effect is.\r\n * @param {any} [context] - The context in which the callback is invoked. Defaults to the Scene to which the Camera belongs.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n fadeOut: function (duration, red, green, blue, callback, context)\r\n {\r\n return this.fadeEffect.start(true, duration, red, green, blue, true, callback, context);\r\n },\r\n\r\n /**\r\n * Fades the Camera from the given color to transparent over the duration specified.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Camera#fadeFrom\r\n * @fires Phaser.Cameras.Scene2D.Events#FADE_IN_START\r\n * @fires Phaser.Cameras.Scene2D.Events#FADE_IN_COMPLETE\r\n * @since 3.5.0\r\n *\r\n * @param {number} [duration=1000] - The duration of the effect in milliseconds.\r\n * @param {number} [red=0] - The amount to fade the red channel towards. A value between 0 and 255.\r\n * @param {number} [green=0] - The amount to fade the green channel towards. A value between 0 and 255.\r\n * @param {number} [blue=0] - The amount to fade the blue channel towards. A value between 0 and 255.\r\n * @param {boolean} [force=false] - Force the effect to start immediately, even if already running.\r\n * @param {function} [callback] - This callback will be invoked every frame for the duration of the effect.\r\n * It is sent two arguments: A reference to the camera and a progress amount between 0 and 1 indicating how complete the effect is.\r\n * @param {any} [context] - The context in which the callback is invoked. Defaults to the Scene to which the Camera belongs.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n fadeFrom: function (duration, red, green, blue, force, callback, context)\r\n {\r\n return this.fadeEffect.start(false, duration, red, green, blue, force, callback, context);\r\n },\r\n\r\n /**\r\n * Fades the Camera from transparent to the given color over the duration specified.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Camera#fade\r\n * @fires Phaser.Cameras.Scene2D.Events#FADE_OUT_START\r\n * @fires Phaser.Cameras.Scene2D.Events#FADE_OUT_COMPLETE\r\n * @since 3.0.0\r\n *\r\n * @param {number} [duration=1000] - The duration of the effect in milliseconds.\r\n * @param {number} [red=0] - The amount to fade the red channel towards. A value between 0 and 255.\r\n * @param {number} [green=0] - The amount to fade the green channel towards. A value between 0 and 255.\r\n * @param {number} [blue=0] - The amount to fade the blue channel towards. A value between 0 and 255.\r\n * @param {boolean} [force=false] - Force the effect to start immediately, even if already running.\r\n * @param {function} [callback] - This callback will be invoked every frame for the duration of the effect.\r\n * It is sent two arguments: A reference to the camera and a progress amount between 0 and 1 indicating how complete the effect is.\r\n * @param {any} [context] - The context in which the callback is invoked. Defaults to the Scene to which the Camera belongs.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n fade: function (duration, red, green, blue, force, callback, context)\r\n {\r\n return this.fadeEffect.start(true, duration, red, green, blue, force, callback, context);\r\n },\r\n\r\n /**\r\n * Flashes the Camera by setting it to the given color immediately and then fading it away again quickly over the duration specified.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Camera#flash\r\n * @fires Phaser.Cameras.Scene2D.Events#FLASH_START\r\n * @fires Phaser.Cameras.Scene2D.Events#FLASH_COMPLETE\r\n * @since 3.0.0\r\n *\r\n * @param {number} [duration=250] - The duration of the effect in milliseconds.\r\n * @param {number} [red=255] - The amount to fade the red channel towards. A value between 0 and 255.\r\n * @param {number} [green=255] - The amount to fade the green channel towards. A value between 0 and 255.\r\n * @param {number} [blue=255] - The amount to fade the blue channel towards. A value between 0 and 255.\r\n * @param {boolean} [force=false] - Force the effect to start immediately, even if already running.\r\n * @param {function} [callback] - This callback will be invoked every frame for the duration of the effect.\r\n * It is sent two arguments: A reference to the camera and a progress amount between 0 and 1 indicating how complete the effect is.\r\n * @param {any} [context] - The context in which the callback is invoked. Defaults to the Scene to which the Camera belongs.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n flash: function (duration, red, green, blue, force, callback, context)\r\n {\r\n return this.flashEffect.start(duration, red, green, blue, force, callback, context);\r\n },\r\n\r\n /**\r\n * Shakes the Camera by the given intensity over the duration specified.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Camera#shake\r\n * @fires Phaser.Cameras.Scene2D.Events#SHAKE_START\r\n * @fires Phaser.Cameras.Scene2D.Events#SHAKE_COMPLETE\r\n * @since 3.0.0\r\n *\r\n * @param {number} [duration=100] - The duration of the effect in milliseconds.\r\n * @param {(number|Phaser.Math.Vector2)} [intensity=0.05] - The intensity of the shake.\r\n * @param {boolean} [force=false] - Force the shake effect to start immediately, even if already running.\r\n * @param {function} [callback] - This callback will be invoked every frame for the duration of the effect.\r\n * It is sent two arguments: A reference to the camera and a progress amount between 0 and 1 indicating how complete the effect is.\r\n * @param {any} [context] - The context in which the callback is invoked. Defaults to the Scene to which the Camera belongs.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n shake: function (duration, intensity, force, callback, context)\r\n {\r\n return this.shakeEffect.start(duration, intensity, force, callback, context);\r\n },\r\n\r\n /**\r\n * This effect will scroll the Camera so that the center of its viewport finishes at the given destination,\r\n * over the duration and with the ease specified.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Camera#pan\r\n * @fires Phaser.Cameras.Scene2D.Events#PAN_START\r\n * @fires Phaser.Cameras.Scene2D.Events#PAN_COMPLETE\r\n * @since 3.11.0\r\n *\r\n * @param {number} x - The destination x coordinate to scroll the center of the Camera viewport to.\r\n * @param {number} y - The destination y coordinate to scroll the center of the Camera viewport to.\r\n * @param {number} [duration=1000] - The duration of the effect in milliseconds.\r\n * @param {(string|function)} [ease='Linear'] - The ease to use for the pan. Can be any of the Phaser Easing constants or a custom function.\r\n * @param {boolean} [force=false] - Force the pan effect to start immediately, even if already running.\r\n * @param {Phaser.Types.Cameras.Scene2D.CameraPanCallback} [callback] - This callback will be invoked every frame for the duration of the effect.\r\n * It is sent four arguments: A reference to the camera, a progress amount between 0 and 1 indicating how complete the effect is,\r\n * the current camera scroll x coordinate and the current camera scroll y coordinate.\r\n * @param {any} [context] - The context in which the callback is invoked. Defaults to the Scene to which the Camera belongs.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n pan: function (x, y, duration, ease, force, callback, context)\r\n {\r\n return this.panEffect.start(x, y, duration, ease, force, callback, context);\r\n },\r\n\r\n /**\r\n * This effect will rotate the Camera so that the viewport finishes at the given angle in radians,\r\n * over the duration and with the ease specified.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Camera#rotateTo\r\n * @since 3.23.0\r\n *\r\n * @param {number} radians - The destination angle in radians to rotate the Camera viewport to. If the angle is positive then the rotation is clockwise else anticlockwise\r\n * @param {boolean} [shortestPath=false] - If shortest path is set to true the camera will rotate in the quickest direction clockwise or anti-clockwise.\r\n * @param {number} [duration=1000] - The duration of the effect in milliseconds.\r\n * @param {(string|function)} [ease='Linear'] - The ease to use for the rotation. Can be any of the Phaser Easing constants or a custom function.\r\n * @param {boolean} [force=false] - Force the rotation effect to start immediately, even if already running.\r\n * @param {CameraRotateCallback} [callback] - This callback will be invoked every frame for the duration of the effect.\r\n * It is sent four arguments: A reference to the camera, a progress amount between 0 and 1 indicating how complete the effect is,\r\n * the current camera rotation angle in radians.\r\n * @param {any} [context] - The context in which the callback is invoked. Defaults to the Scene to which the Camera belongs.\r\n *\r\n * @return {Phaser.Cameras.Scene2D.Camera} This Camera instance.\r\n */\r\n rotateTo: function (radians, shortestPath, duration, ease, force, callback, context)\r\n {\r\n return this.rotateToEffect.start(radians, shortestPath, duration, ease, force, callback, context);\r\n },\r\n\r\n /**\r\n * This effect will zoom the Camera to the given scale, over the duration and with the ease specified.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Camera#zoomTo\r\n * @fires Phaser.Cameras.Scene2D.Events#ZOOM_START\r\n * @fires Phaser.Cameras.Scene2D.Events#ZOOM_COMPLETE\r\n * @since 3.11.0\r\n *\r\n * @param {number} zoom - The target Camera zoom value.\r\n * @param {number} [duration=1000] - The duration of the effect in milliseconds.\r\n * @param {(string|function)} [ease='Linear'] - The ease to use for the pan. Can be any of the Phaser Easing constants or a custom function.\r\n * @param {boolean} [force=false] - Force the pan effect to start immediately, even if already running.\r\n * @param {Phaser.Types.Cameras.Scene2D.CameraPanCallback} [callback] - This callback will be invoked every frame for the duration of the effect.\r\n * It is sent four arguments: A reference to the camera, a progress amount between 0 and 1 indicating how complete the effect is,\r\n * the current camera scroll x coordinate and the current camera scroll y coordinate.\r\n * @param {any} [context] - The context in which the callback is invoked. Defaults to the Scene to which the Camera belongs.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n zoomTo: function (zoom, duration, ease, force, callback, context)\r\n {\r\n return this.zoomEffect.start(zoom, duration, ease, force, callback, context);\r\n },\r\n\r\n /**\r\n * Internal preRender step.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Camera#preRender\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n preRender: function ()\r\n {\r\n this.renderList.length = 0;\r\n\r\n var width = this.width;\r\n var height = this.height;\r\n\r\n var halfWidth = width * 0.5;\r\n var halfHeight = height * 0.5;\r\n\r\n var zoomX = this.zoomX;\r\n var zoomY = this.zoomY;\r\n var matrix = this.matrix;\r\n\r\n this.renderRoundPixels = (this.roundPixels && Number.isInteger(zoomX) && Number.isInteger(zoomY));\r\n\r\n var originX = width * this.originX;\r\n var originY = height * this.originY;\r\n\r\n var follow = this._follow;\r\n var deadzone = this.deadzone;\r\n\r\n var sx = this.scrollX;\r\n var sy = this.scrollY;\r\n\r\n if (deadzone)\r\n {\r\n CenterOn(deadzone, this.midPoint.x, this.midPoint.y);\r\n }\r\n\r\n var emitFollowEvent = false;\r\n\r\n if (follow && !this.panEffect.isRunning)\r\n {\r\n var lerp = this.lerp;\r\n\r\n var fx = follow.x - this.followOffset.x;\r\n var fy = follow.y - this.followOffset.y;\r\n\r\n if (deadzone)\r\n {\r\n if (fx < deadzone.x)\r\n {\r\n sx = Linear(sx, sx - (deadzone.x - fx), lerp.x);\r\n }\r\n else if (fx > deadzone.right)\r\n {\r\n sx = Linear(sx, sx + (fx - deadzone.right), lerp.x);\r\n }\r\n\r\n if (fy < deadzone.y)\r\n {\r\n sy = Linear(sy, sy - (deadzone.y - fy), lerp.y);\r\n }\r\n else if (fy > deadzone.bottom)\r\n {\r\n sy = Linear(sy, sy + (fy - deadzone.bottom), lerp.y);\r\n }\r\n }\r\n else\r\n {\r\n sx = Linear(sx, fx - originX, lerp.x);\r\n sy = Linear(sy, fy - originY, lerp.y);\r\n }\r\n\r\n emitFollowEvent = true;\r\n }\r\n\r\n if (this.roundPixels)\r\n {\r\n sx = Math.floor(sx);\r\n sy = Math.floor(sy);\r\n }\r\n\r\n if (this.useBounds)\r\n {\r\n sx = this.clampX(sx);\r\n sy = this.clampY(sy);\r\n }\r\n\r\n // Values are in pixels and not impacted by zooming the Camera\r\n this.scrollX = sx;\r\n this.scrollY = sy;\r\n\r\n // Don't round the midPoint, otherwise it breaks things like smooth zoom\r\n var midX = sx + halfWidth;\r\n var midY = sy + halfHeight;\r\n\r\n // The center of the camera, in world space, so taking zoom into account\r\n // Basically the pixel value of what it's looking at in the middle of the cam\r\n this.midPoint.set(midX, midY);\r\n\r\n var displayWidth = Math.floor((width / zoomX) + 0.5);\r\n var displayHeight = Math.floor((height / zoomY) + 0.5);\r\n\r\n var vwx = Math.floor((midX - (displayWidth / 2)) + 0.5);\r\n var vwy = Math.floor((midY - (displayHeight / 2)) + 0.5);\r\n\r\n this.worldView.setTo(vwx, vwy, displayWidth, displayHeight);\r\n\r\n matrix.applyITRS(\r\n Math.floor(this.x + originX + 0.5),\r\n Math.floor(this.y + originY + 0.5),\r\n this.rotation,\r\n zoomX, zoomY\r\n );\r\n\r\n matrix.translate(-originX, -originY);\r\n\r\n this.shakeEffect.preRender();\r\n\r\n if (emitFollowEvent)\r\n {\r\n this.emit(Events.FOLLOW_UPDATE, this, follow);\r\n }\r\n },\r\n\r\n /**\r\n * Sets the linear interpolation value to use when following a target.\r\n *\r\n * The default values of 1 means the camera will instantly snap to the target coordinates.\r\n * A lower value, such as 0.1 means the camera will more slowly track the target, giving\r\n * a smooth transition. You can set the horizontal and vertical values independently, and also\r\n * adjust this value in real-time during your game.\r\n *\r\n * Be sure to keep the value between 0 and 1. A value of zero will disable tracking on that axis.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Camera#setLerp\r\n * @since 3.9.0\r\n *\r\n * @param {number} [x=1] - The amount added to the horizontal linear interpolation of the follow target.\r\n * @param {number} [y=1] - The amount added to the vertical linear interpolation of the follow target.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n setLerp: function (x, y)\r\n {\r\n if (x === undefined) { x = 1; }\r\n if (y === undefined) { y = x; }\r\n\r\n this.lerp.set(x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the horizontal and vertical offset of the camera from its follow target.\r\n * The values are subtracted from the targets position during the Cameras update step.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Camera#setFollowOffset\r\n * @since 3.9.0\r\n *\r\n * @param {number} [x=0] - The horizontal offset from the camera follow target.x position.\r\n * @param {number} [y=0] - The vertical offset from the camera follow target.y position.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n setFollowOffset: function (x, y)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n\r\n this.followOffset.set(x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Camera to follow a Game Object.\r\n *\r\n * When enabled the Camera will automatically adjust its scroll position to keep the target Game Object\r\n * in its center.\r\n *\r\n * You can set the linear interpolation value used in the follow code.\r\n * Use low lerp values (such as 0.1) to automatically smooth the camera motion.\r\n *\r\n * If you find you're getting a slight \"jitter\" effect when following an object it's probably to do with sub-pixel\r\n * rendering of the targets position. This can be rounded by setting the `roundPixels` argument to `true` to\r\n * force full pixel rounding rendering. Note that this can still be broken if you have specified a non-integer zoom\r\n * value on the camera. So be sure to keep the camera zoom to integers.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Camera#startFollow\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.GameObjects.GameObject|object)} target - The target for the Camera to follow.\r\n * @param {boolean} [roundPixels=false] - Round the camera position to whole integers to avoid sub-pixel rendering?\r\n * @param {number} [lerpX=1] - A value between 0 and 1. This value specifies the amount of linear interpolation to use when horizontally tracking the target. The closer the value to 1, the faster the camera will track.\r\n * @param {number} [lerpY=1] - A value between 0 and 1. This value specifies the amount of linear interpolation to use when vertically tracking the target. The closer the value to 1, the faster the camera will track.\r\n * @param {number} [offsetX=0] - The horizontal offset from the camera follow target.x position.\r\n * @param {number} [offsetY=0] - The vertical offset from the camera follow target.y position.\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n startFollow: function (target, roundPixels, lerpX, lerpY, offsetX, offsetY)\r\n {\r\n if (roundPixels === undefined) { roundPixels = false; }\r\n if (lerpX === undefined) { lerpX = 1; }\r\n if (lerpY === undefined) { lerpY = lerpX; }\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = offsetX; }\r\n\r\n this._follow = target;\r\n\r\n this.roundPixels = roundPixels;\r\n\r\n lerpX = Clamp(lerpX, 0, 1);\r\n lerpY = Clamp(lerpY, 0, 1);\r\n\r\n this.lerp.set(lerpX, lerpY);\r\n\r\n this.followOffset.set(offsetX, offsetY);\r\n\r\n var originX = this.width / 2;\r\n var originY = this.height / 2;\r\n\r\n var fx = target.x - offsetX;\r\n var fy = target.y - offsetY;\r\n\r\n this.midPoint.set(fx, fy);\r\n\r\n this.scrollX = fx - originX;\r\n this.scrollY = fy - originY;\r\n\r\n if (this.useBounds)\r\n {\r\n this.scrollX = this.clampX(this.scrollX);\r\n this.scrollY = this.clampY(this.scrollY);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Stops a Camera from following a Game Object, if previously set via `Camera.startFollow`.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Camera#stopFollow\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n stopFollow: function ()\r\n {\r\n this._follow = null;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resets any active FX, such as a fade, flash or shake. Useful to call after a fade in order to\r\n * remove the fade.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Camera#resetFX\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Camera instance.\r\n */\r\n resetFX: function ()\r\n {\r\n this.rotateToEffect.reset();\r\n this.panEffect.reset();\r\n this.shakeEffect.reset();\r\n this.flashEffect.reset();\r\n this.fadeEffect.reset();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal method called automatically by the Camera Manager.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Camera#update\r\n * @protected\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current timestamp as generated by the Request Animation Frame or SetTimeout.\r\n * @param {number} delta - The delta time, in ms, elapsed since the last frame.\r\n */\r\n update: function (time, delta)\r\n {\r\n if (this.visible)\r\n {\r\n this.rotateToEffect.update(time, delta);\r\n this.panEffect.update(time, delta);\r\n this.zoomEffect.update(time, delta);\r\n this.shakeEffect.update(time, delta);\r\n this.flashEffect.update(time, delta);\r\n this.fadeEffect.update(time, delta);\r\n }\r\n },\r\n\r\n /**\r\n * Destroys this Camera instance. You rarely need to call this directly.\r\n *\r\n * Called by the Camera Manager. If you wish to destroy a Camera please use `CameraManager.remove` as\r\n * cameras are stored in a pool, ready for recycling later, and calling this directly will prevent that.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Camera#destroy\r\n * @fires Phaser.Cameras.Scene2D.Events#DESTROY\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.resetFX();\r\n\r\n BaseCamera.prototype.destroy.call(this);\r\n\r\n this._follow = null;\r\n\r\n this.deadzone = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Camera;\r\n\n\n/***/ }),\n\n/***/ 32743:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Camera = __webpack_require__(38058);\r\nvar Class = __webpack_require__(83419);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar PluginCache = __webpack_require__(37277);\r\nvar RectangleContains = __webpack_require__(37303);\r\nvar ScaleEvents = __webpack_require__(97480);\r\nvar SceneEvents = __webpack_require__(44594);\r\n\r\n/**\r\n * @classdesc\r\n * The Camera Manager is a plugin that belongs to a Scene and is responsible for managing all of the Scene Cameras.\r\n *\r\n * By default you can access the Camera Manager from within a Scene using `this.cameras`, although this can be changed\r\n * in your game config.\r\n *\r\n * Create new Cameras using the `add` method. Or extend the Camera class with your own addition code and then add\r\n * the new Camera in using the `addExisting` method.\r\n *\r\n * Cameras provide a view into your game world, and can be positioned, rotated, zoomed and scrolled accordingly.\r\n *\r\n * A Camera consists of two elements: The viewport and the scroll values.\r\n *\r\n * The viewport is the physical position and size of the Camera within your game. Cameras, by default, are\r\n * created the same size as your game, but their position and size can be set to anything. This means if you\r\n * wanted to create a camera that was 320x200 in size, positioned in the bottom-right corner of your game,\r\n * you'd adjust the viewport to do that (using methods like `setViewport` and `setSize`).\r\n *\r\n * If you wish to change where the Camera is looking in your game, then you scroll it. You can do this\r\n * via the properties `scrollX` and `scrollY` or the method `setScroll`. Scrolling has no impact on the\r\n * viewport, and changing the viewport has no impact on the scrolling.\r\n *\r\n * By default a Camera will render all Game Objects it can see. You can change this using the `ignore` method,\r\n * allowing you to filter Game Objects out on a per-Camera basis. The Camera Manager can manage up to 31 unique\r\n * 'Game Object ignore capable' Cameras. Any Cameras beyond 31 that you create will all be given a Camera ID of\r\n * zero, meaning that they cannot be used for Game Object exclusion. This means if you need your Camera to ignore\r\n * Game Objects, make sure it's one of the first 31 created.\r\n *\r\n * A Camera also has built-in special effects including Fade, Flash, Camera Shake, Pan and Zoom.\r\n *\r\n * @class CameraManager\r\n * @memberof Phaser.Cameras.Scene2D\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene that owns the Camera Manager plugin.\r\n */\r\nvar CameraManager = new Class({\r\n\r\n initialize:\r\n\r\n function CameraManager (scene)\r\n {\r\n /**\r\n * The Scene that owns the Camera Manager plugin.\r\n *\r\n * @name Phaser.Cameras.Scene2D.CameraManager#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.0.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * A reference to the Scene.Systems handler for the Scene that owns the Camera Manager.\r\n *\r\n * @name Phaser.Cameras.Scene2D.CameraManager#systems\r\n * @type {Phaser.Scenes.Systems}\r\n * @since 3.0.0\r\n */\r\n this.systems = scene.sys;\r\n\r\n /**\r\n * All Cameras created by, or added to, this Camera Manager, will have their `roundPixels`\r\n * property set to match this value. By default it is set to match the value set in the\r\n * game configuration, but can be changed at any point. Equally, individual cameras can\r\n * also be changed as needed.\r\n *\r\n * @name Phaser.Cameras.Scene2D.CameraManager#roundPixels\r\n * @type {boolean}\r\n * @since 3.11.0\r\n */\r\n this.roundPixels = scene.sys.game.config.roundPixels;\r\n\r\n /**\r\n * An Array of the Camera objects being managed by this Camera Manager.\r\n * The Cameras are updated and rendered in the same order in which they appear in this array.\r\n * Do not directly add or remove entries to this array. However, you can move the contents\r\n * around the array should you wish to adjust the display order.\r\n *\r\n * @name Phaser.Cameras.Scene2D.CameraManager#cameras\r\n * @type {Phaser.Cameras.Scene2D.Camera[]}\r\n * @since 3.0.0\r\n */\r\n this.cameras = [];\r\n\r\n /**\r\n * A handy reference to the 'main' camera. By default this is the first Camera the\r\n * Camera Manager creates. You can also set it directly, or use the `makeMain` argument\r\n * in the `add` and `addExisting` methods. It allows you to access it from your game:\r\n *\r\n * ```javascript\r\n * var cam = this.cameras.main;\r\n * ```\r\n *\r\n * Also see the properties `camera1`, `camera2` and so on.\r\n *\r\n * @name Phaser.Cameras.Scene2D.CameraManager#main\r\n * @type {Phaser.Cameras.Scene2D.Camera}\r\n * @since 3.0.0\r\n */\r\n this.main;\r\n\r\n /**\r\n * A default un-transformed Camera that doesn't exist on the camera list and doesn't\r\n * count towards the total number of cameras being managed. It exists for other\r\n * systems, as well as your own code, should they require a basic un-transformed\r\n * camera instance from which to calculate a view matrix.\r\n *\r\n * @name Phaser.Cameras.Scene2D.CameraManager#default\r\n * @type {Phaser.Cameras.Scene2D.Camera}\r\n * @since 3.17.0\r\n */\r\n this.default;\r\n\r\n scene.sys.events.once(SceneEvents.BOOT, this.boot, this);\r\n scene.sys.events.on(SceneEvents.START, this.start, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically, only once, when the Scene is first created.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.Cameras.Scene2D.CameraManager#boot\r\n * @private\r\n * @listens Phaser.Scenes.Events#DESTROY\r\n * @since 3.5.1\r\n */\r\n boot: function ()\r\n {\r\n var sys = this.systems;\r\n\r\n if (sys.settings.cameras)\r\n {\r\n // We have cameras to create\r\n this.fromJSON(sys.settings.cameras);\r\n }\r\n else\r\n {\r\n // Make one\r\n this.add();\r\n }\r\n\r\n this.main = this.cameras[0];\r\n\r\n // Create a default camera\r\n this.default = new Camera(0, 0, sys.scale.width, sys.scale.height).setScene(this.scene);\r\n\r\n sys.game.scale.on(ScaleEvents.RESIZE, this.onResize, this);\r\n\r\n this.systems.events.once(SceneEvents.DESTROY, this.destroy, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically by the Scene when it is starting up.\r\n * It is responsible for creating local systems, properties and listening for Scene events.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.Cameras.Scene2D.CameraManager#start\r\n * @private\r\n * @listens Phaser.Scenes.Events#UPDATE\r\n * @listens Phaser.Scenes.Events#SHUTDOWN\r\n * @since 3.5.0\r\n */\r\n start: function ()\r\n {\r\n if (!this.main)\r\n {\r\n var sys = this.systems;\r\n\r\n if (sys.settings.cameras)\r\n {\r\n // We have cameras to create\r\n this.fromJSON(sys.settings.cameras);\r\n }\r\n else\r\n {\r\n // Make one\r\n this.add();\r\n }\r\n\r\n this.main = this.cameras[0];\r\n }\r\n\r\n var eventEmitter = this.systems.events;\r\n\r\n eventEmitter.on(SceneEvents.UPDATE, this.update, this);\r\n eventEmitter.once(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * Adds a new Camera into the Camera Manager. The Camera Manager can support up to 31 different Cameras.\r\n *\r\n * Each Camera has its own viewport, which controls the size of the Camera and its position within the canvas.\r\n *\r\n * Use the `Camera.scrollX` and `Camera.scrollY` properties to change where the Camera is looking, or the\r\n * Camera methods such as `centerOn`. Cameras also have built in special effects, such as fade, flash, shake,\r\n * pan and zoom.\r\n *\r\n * By default Cameras are transparent and will render anything that they can see based on their `scrollX`\r\n * and `scrollY` values. Game Objects can be set to be ignored by a Camera by using the `Camera.ignore` method.\r\n *\r\n * The Camera will have its `roundPixels` property set to whatever `CameraManager.roundPixels` is. You can change\r\n * it after creation if required.\r\n *\r\n * See the Camera class documentation for more details.\r\n *\r\n * @method Phaser.Cameras.Scene2D.CameraManager#add\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=0] - The horizontal position of the Camera viewport.\r\n * @param {number} [y=0] - The vertical position of the Camera viewport.\r\n * @param {number} [width] - The width of the Camera viewport. If not given it'll be the game config size.\r\n * @param {number} [height] - The height of the Camera viewport. If not given it'll be the game config size.\r\n * @param {boolean} [makeMain=false] - Set this Camera as being the 'main' camera. This just makes the property `main` a reference to it.\r\n * @param {string} [name=''] - The name of the Camera.\r\n *\r\n * @return {Phaser.Cameras.Scene2D.Camera} The newly created Camera.\r\n */\r\n add: function (x, y, width, height, makeMain, name)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (width === undefined) { width = this.scene.sys.scale.width; }\r\n if (height === undefined) { height = this.scene.sys.scale.height; }\r\n if (makeMain === undefined) { makeMain = false; }\r\n if (name === undefined) { name = ''; }\r\n\r\n var camera = new Camera(x, y, width, height);\r\n\r\n camera.setName(name);\r\n camera.setScene(this.scene);\r\n camera.setRoundPixels(this.roundPixels);\r\n\r\n camera.id = this.getNextID();\r\n\r\n this.cameras.push(camera);\r\n\r\n if (makeMain)\r\n {\r\n this.main = camera;\r\n }\r\n\r\n return camera;\r\n },\r\n\r\n /**\r\n * Adds an existing Camera into the Camera Manager.\r\n *\r\n * The Camera should either be a `Phaser.Cameras.Scene2D.Camera` instance, or a class that extends from it.\r\n *\r\n * The Camera will have its `roundPixels` property set to whatever `CameraManager.roundPixels` is. You can change\r\n * it after addition if required.\r\n *\r\n * The Camera will be assigned an ID, which is used for Game Object exclusion and then added to the\r\n * manager. As long as it doesn't already exist in the manager it will be added then returned.\r\n *\r\n * If this method returns `null` then the Camera already exists in this Camera Manager.\r\n *\r\n * @method Phaser.Cameras.Scene2D.CameraManager#addExisting\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to be added to the Camera Manager.\r\n * @param {boolean} [makeMain=false] - Set this Camera as being the 'main' camera. This just makes the property `main` a reference to it.\r\n *\r\n * @return {?Phaser.Cameras.Scene2D.Camera} The Camera that was added to the Camera Manager, or `null` if it couldn't be added.\r\n */\r\n addExisting: function (camera, makeMain)\r\n {\r\n if (makeMain === undefined) { makeMain = false; }\r\n\r\n var index = this.cameras.indexOf(camera);\r\n\r\n if (index === -1)\r\n {\r\n camera.id = this.getNextID();\r\n\r\n camera.setRoundPixels(this.roundPixels);\r\n\r\n this.cameras.push(camera);\r\n\r\n if (makeMain)\r\n {\r\n this.main = camera;\r\n }\r\n\r\n return camera;\r\n }\r\n\r\n return null;\r\n },\r\n\r\n /**\r\n * Gets the next available Camera ID number.\r\n *\r\n * The Camera Manager supports up to 31 unique cameras, after which the ID returned will always be zero.\r\n * You can create additional cameras beyond 31, but they cannot be used for Game Object exclusion.\r\n *\r\n * @method Phaser.Cameras.Scene2D.CameraManager#getNextID\r\n * @private\r\n * @since 3.11.0\r\n *\r\n * @return {number} The next available Camera ID, or 0 if they're all already in use.\r\n */\r\n getNextID: function ()\r\n {\r\n var cameras = this.cameras;\r\n\r\n var testID = 1;\r\n\r\n // Find the first free camera ID we can use\r\n\r\n for (var t = 0; t < 32; t++)\r\n {\r\n var found = false;\r\n\r\n for (var i = 0; i < cameras.length; i++)\r\n {\r\n var camera = cameras[i];\r\n\r\n if (camera && camera.id === testID)\r\n {\r\n found = true;\r\n continue;\r\n }\r\n }\r\n\r\n if (found)\r\n {\r\n testID = testID << 1;\r\n }\r\n else\r\n {\r\n return testID;\r\n }\r\n }\r\n\r\n return 0;\r\n },\r\n\r\n /**\r\n * Gets the total number of Cameras in this Camera Manager.\r\n *\r\n * If the optional `isVisible` argument is set it will only count Cameras that are currently visible.\r\n *\r\n * @method Phaser.Cameras.Scene2D.CameraManager#getTotal\r\n * @since 3.11.0\r\n *\r\n * @param {boolean} [isVisible=false] - Set the `true` to only include visible Cameras in the total.\r\n *\r\n * @return {number} The total number of Cameras in this Camera Manager.\r\n */\r\n getTotal: function (isVisible)\r\n {\r\n if (isVisible === undefined) { isVisible = false; }\r\n\r\n var total = 0;\r\n\r\n var cameras = this.cameras;\r\n\r\n for (var i = 0; i < cameras.length; i++)\r\n {\r\n var camera = cameras[i];\r\n\r\n if (!isVisible || (isVisible && camera.visible))\r\n {\r\n total++;\r\n }\r\n }\r\n\r\n return total;\r\n },\r\n\r\n /**\r\n * Populates this Camera Manager based on the given configuration object, or an array of config objects.\r\n *\r\n * See the `Phaser.Types.Cameras.Scene2D.CameraConfig` documentation for details of the object structure.\r\n *\r\n * @method Phaser.Cameras.Scene2D.CameraManager#fromJSON\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Types.Cameras.Scene2D.CameraConfig|Phaser.Types.Cameras.Scene2D.CameraConfig[])} config - A Camera configuration object, or an array of them, to be added to this Camera Manager.\r\n *\r\n * @return {this} This Camera Manager instance.\r\n */\r\n fromJSON: function (config)\r\n {\r\n if (!Array.isArray(config))\r\n {\r\n config = [ config ];\r\n }\r\n\r\n var gameWidth = this.scene.sys.scale.width;\r\n var gameHeight = this.scene.sys.scale.height;\r\n\r\n for (var i = 0; i < config.length; i++)\r\n {\r\n var cameraConfig = config[i];\r\n\r\n var x = GetFastValue(cameraConfig, 'x', 0);\r\n var y = GetFastValue(cameraConfig, 'y', 0);\r\n var width = GetFastValue(cameraConfig, 'width', gameWidth);\r\n var height = GetFastValue(cameraConfig, 'height', gameHeight);\r\n\r\n var camera = this.add(x, y, width, height);\r\n\r\n // Direct properties\r\n camera.name = GetFastValue(cameraConfig, 'name', '');\r\n camera.zoom = GetFastValue(cameraConfig, 'zoom', 1);\r\n camera.rotation = GetFastValue(cameraConfig, 'rotation', 0);\r\n camera.scrollX = GetFastValue(cameraConfig, 'scrollX', 0);\r\n camera.scrollY = GetFastValue(cameraConfig, 'scrollY', 0);\r\n camera.roundPixels = GetFastValue(cameraConfig, 'roundPixels', false);\r\n camera.visible = GetFastValue(cameraConfig, 'visible', true);\r\n\r\n // Background Color\r\n\r\n var backgroundColor = GetFastValue(cameraConfig, 'backgroundColor', false);\r\n\r\n if (backgroundColor)\r\n {\r\n camera.setBackgroundColor(backgroundColor);\r\n }\r\n\r\n // Bounds\r\n\r\n var boundsConfig = GetFastValue(cameraConfig, 'bounds', null);\r\n\r\n if (boundsConfig)\r\n {\r\n var bx = GetFastValue(boundsConfig, 'x', 0);\r\n var by = GetFastValue(boundsConfig, 'y', 0);\r\n var bwidth = GetFastValue(boundsConfig, 'width', gameWidth);\r\n var bheight = GetFastValue(boundsConfig, 'height', gameHeight);\r\n\r\n camera.setBounds(bx, by, bwidth, bheight);\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Gets a Camera based on its name.\r\n *\r\n * Camera names are optional and don't have to be set, so this method is only of any use if you\r\n * have given your Cameras unique names.\r\n *\r\n * @method Phaser.Cameras.Scene2D.CameraManager#getCamera\r\n * @since 3.0.0\r\n *\r\n * @param {string} name - The name of the Camera.\r\n *\r\n * @return {?Phaser.Cameras.Scene2D.Camera} The first Camera with a name matching the given string, otherwise `null`.\r\n */\r\n getCamera: function (name)\r\n {\r\n var cameras = this.cameras;\r\n\r\n for (var i = 0; i < cameras.length; i++)\r\n {\r\n if (cameras[i].name === name)\r\n {\r\n return cameras[i];\r\n }\r\n }\r\n\r\n return null;\r\n },\r\n\r\n /**\r\n * Returns an array of all cameras below the given Pointer.\r\n *\r\n * The first camera in the array is the top-most camera in the camera list.\r\n *\r\n * @method Phaser.Cameras.Scene2D.CameraManager#getCamerasBelowPointer\r\n * @since 3.10.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer to check against.\r\n *\r\n * @return {Phaser.Cameras.Scene2D.Camera[]} An array of cameras below the Pointer.\r\n */\r\n getCamerasBelowPointer: function (pointer)\r\n {\r\n var cameras = this.cameras;\r\n\r\n var x = pointer.x;\r\n var y = pointer.y;\r\n\r\n var output = [];\r\n\r\n for (var i = 0; i < cameras.length; i++)\r\n {\r\n var camera = cameras[i];\r\n\r\n if (camera.visible && camera.inputEnabled && RectangleContains(camera, x, y))\r\n {\r\n // So the top-most camera is at the top of the search array\r\n output.unshift(camera);\r\n }\r\n }\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Removes the given Camera, or an array of Cameras, from this Camera Manager.\r\n *\r\n * If found in the Camera Manager it will be immediately removed from the local cameras array.\r\n * If also currently the 'main' camera, 'main' will be reset to be camera 0.\r\n *\r\n * The removed Cameras are automatically destroyed if the `runDestroy` argument is `true`, which is the default.\r\n * If you wish to re-use the cameras then set this to `false`, but know that they will retain their references\r\n * and internal data until destroyed or re-added to a Camera Manager.\r\n *\r\n * @method Phaser.Cameras.Scene2D.CameraManager#remove\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Cameras.Scene2D.Camera|Phaser.Cameras.Scene2D.Camera[])} camera - The Camera, or an array of Cameras, to be removed from this Camera Manager.\r\n * @param {boolean} [runDestroy=true] - Automatically call `Camera.destroy` on each Camera removed from this Camera Manager.\r\n *\r\n * @return {number} The total number of Cameras removed.\r\n */\r\n remove: function (camera, runDestroy)\r\n {\r\n if (runDestroy === undefined) { runDestroy = true; }\r\n\r\n if (!Array.isArray(camera))\r\n {\r\n camera = [ camera ];\r\n }\r\n\r\n var total = 0;\r\n var cameras = this.cameras;\r\n\r\n for (var i = 0; i < camera.length; i++)\r\n {\r\n var index = cameras.indexOf(camera[i]);\r\n\r\n if (index !== -1)\r\n {\r\n if (runDestroy)\r\n {\r\n cameras[index].destroy();\r\n }\r\n else\r\n {\r\n cameras[index].renderList = [];\r\n }\r\n\r\n cameras.splice(index, 1);\r\n\r\n total++;\r\n }\r\n }\r\n\r\n if (!this.main && cameras[0])\r\n {\r\n this.main = cameras[0];\r\n }\r\n\r\n return total;\r\n },\r\n\r\n /**\r\n * The internal render method. This is called automatically by the Scene and should not be invoked directly.\r\n *\r\n * It will iterate through all local cameras and render them in turn, as long as they're visible and have\r\n * an alpha level > 0.\r\n *\r\n * @method Phaser.Cameras.Scene2D.CameraManager#render\r\n * @protected\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)} renderer - The Renderer that will render the children to this camera.\r\n * @param {Phaser.GameObjects.DisplayList} displayList - The Display List for the Scene.\r\n */\r\n render: function (renderer, displayList)\r\n {\r\n var scene = this.scene;\r\n var cameras = this.cameras;\r\n\r\n for (var i = 0; i < cameras.length; i++)\r\n {\r\n var camera = cameras[i];\r\n\r\n if (camera.visible && camera.alpha > 0)\r\n {\r\n camera.preRender();\r\n\r\n var visibleChildren = this.getVisibleChildren(displayList.getChildren(), camera);\r\n\r\n renderer.render(scene, visibleChildren, camera);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Takes an array of Game Objects and a Camera and returns a new array\r\n * containing only those Game Objects that pass the `willRender` test\r\n * against the given Camera.\r\n *\r\n * @method Phaser.Cameras.Scene2D.CameraManager#getVisibleChildren\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject[]} children - An array of Game Objects to be checked against the camera.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera to filter the Game Objects against.\r\n *\r\n * @return {Phaser.GameObjects.GameObject[]} A filtered list of only Game Objects within the Scene that will render against the given Camera.\r\n */\r\n getVisibleChildren: function (children, camera)\r\n {\r\n return children.filter(function (child)\r\n {\r\n return child.willRender(camera);\r\n });\r\n },\r\n\r\n /**\r\n * Resets this Camera Manager.\r\n *\r\n * This will iterate through all current Cameras, destroying them all, then it will reset the\r\n * cameras array, reset the ID counter and create 1 new single camera using the default values.\r\n *\r\n * @method Phaser.Cameras.Scene2D.CameraManager#resetAll\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Cameras.Scene2D.Camera} The freshly created main Camera.\r\n */\r\n resetAll: function ()\r\n {\r\n for (var i = 0; i < this.cameras.length; i++)\r\n {\r\n this.cameras[i].destroy();\r\n }\r\n\r\n this.cameras = [];\r\n\r\n this.main = this.add();\r\n\r\n return this.main;\r\n },\r\n\r\n /**\r\n * The main update loop. Called automatically when the Scene steps.\r\n *\r\n * @method Phaser.Cameras.Scene2D.CameraManager#update\r\n * @protected\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current timestamp as generated by the Request Animation Frame or SetTimeout.\r\n * @param {number} delta - The delta time, in ms, elapsed since the last frame.\r\n */\r\n update: function (time, delta)\r\n {\r\n for (var i = 0; i < this.cameras.length; i++)\r\n {\r\n this.cameras[i].update(time, delta);\r\n }\r\n },\r\n\r\n /**\r\n * The event handler that manages the `resize` event dispatched by the Scale Manager.\r\n *\r\n * @method Phaser.Cameras.Scene2D.CameraManager#onResize\r\n * @since 3.18.0\r\n *\r\n * @param {Phaser.Structs.Size} gameSize - The default Game Size object. This is the un-modified game dimensions.\r\n * @param {Phaser.Structs.Size} baseSize - The base Size object. The game dimensions. The canvas width / height values match this.\r\n */\r\n onResize: function (gameSize, baseSize, displaySize, previousWidth, previousHeight)\r\n {\r\n for (var i = 0; i < this.cameras.length; i++)\r\n {\r\n var cam = this.cameras[i];\r\n\r\n // if camera is at 0x0 and was the size of the previous game size, then we can safely assume it\r\n // should be updated to match the new game size too\r\n\r\n if (cam._x === 0 && cam._y === 0 && cam._width === previousWidth && cam._height === previousHeight)\r\n {\r\n cam.setSize(baseSize.width, baseSize.height);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Resizes all cameras to the given dimensions.\r\n *\r\n * @method Phaser.Cameras.Scene2D.CameraManager#resize\r\n * @since 3.2.0\r\n *\r\n * @param {number} width - The new width of the camera.\r\n * @param {number} height - The new height of the camera.\r\n */\r\n resize: function (width, height)\r\n {\r\n for (var i = 0; i < this.cameras.length; i++)\r\n {\r\n this.cameras[i].setSize(width, height);\r\n }\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is shutting down.\r\n * We need to kill and reset all internal properties as well as stop listening to Scene events.\r\n *\r\n * @method Phaser.Cameras.Scene2D.CameraManager#shutdown\r\n * @private\r\n * @since 3.0.0\r\n */\r\n shutdown: function ()\r\n {\r\n this.main = undefined;\r\n\r\n for (var i = 0; i < this.cameras.length; i++)\r\n {\r\n this.cameras[i].destroy();\r\n }\r\n\r\n this.cameras = [];\r\n\r\n var eventEmitter = this.systems.events;\r\n\r\n eventEmitter.off(SceneEvents.UPDATE, this.update, this);\r\n eventEmitter.off(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is being destroyed.\r\n * We need to shutdown and then kill off all external references.\r\n *\r\n * @method Phaser.Cameras.Scene2D.CameraManager#destroy\r\n * @private\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.shutdown();\r\n\r\n this.default.destroy();\r\n\r\n this.systems.events.off(SceneEvents.START, this.start, this);\r\n this.systems.events.off(SceneEvents.DESTROY, this.destroy, this);\r\n this.systems.game.scale.off(ScaleEvents.RESIZE, this.onResize, this);\r\n\r\n this.scene = null;\r\n this.systems = null;\r\n }\r\n\r\n});\r\n\r\nPluginCache.register('CameraManager', CameraManager, 'cameras');\r\n\r\nmodule.exports = CameraManager;\r\n\n\n/***/ }),\n\n/***/ 5020:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Clamp = __webpack_require__(45319);\r\nvar Class = __webpack_require__(83419);\r\nvar Events = __webpack_require__(19715);\r\n\r\n/**\r\n * @classdesc\r\n * A Camera Fade effect.\r\n *\r\n * This effect will fade the camera viewport to the given color, over the duration specified.\r\n *\r\n * Only the camera viewport is faded. None of the objects it is displaying are impacted, i.e. their colors do\r\n * not change.\r\n *\r\n * The effect will dispatch several events on the Camera itself and you can also specify an `onUpdate` callback,\r\n * which is invoked each frame for the duration of the effect, if required.\r\n *\r\n * @class Fade\r\n * @memberof Phaser.Cameras.Scene2D.Effects\r\n * @constructor\r\n * @since 3.5.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera this effect is acting upon.\r\n */\r\nvar Fade = new Class({\r\n\r\n initialize:\r\n\r\n function Fade (camera)\r\n {\r\n /**\r\n * The Camera this effect belongs to.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Fade#camera\r\n * @type {Phaser.Cameras.Scene2D.Camera}\r\n * @readonly\r\n * @since 3.5.0\r\n */\r\n this.camera = camera;\r\n\r\n /**\r\n * Is this effect actively running?\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Fade#isRunning\r\n * @type {boolean}\r\n * @readonly\r\n * @default false\r\n * @since 3.5.0\r\n */\r\n this.isRunning = false;\r\n\r\n /**\r\n * Has this effect finished running?\r\n *\r\n * This is different from `isRunning` because it remains set to `true` when the effect is over,\r\n * until the effect is either reset or started again.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Fade#isComplete\r\n * @type {boolean}\r\n * @readonly\r\n * @default false\r\n * @since 3.5.0\r\n */\r\n this.isComplete = false;\r\n\r\n /**\r\n * The direction of the fade.\r\n * `true` = fade out (transparent to color), `false` = fade in (color to transparent)\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Fade#direction\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.5.0\r\n */\r\n this.direction = true;\r\n\r\n /**\r\n * The duration of the effect, in milliseconds.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Fade#duration\r\n * @type {number}\r\n * @readonly\r\n * @default 0\r\n * @since 3.5.0\r\n */\r\n this.duration = 0;\r\n\r\n /**\r\n * The value of the red color channel the camera will use for the fade effect.\r\n * A value between 0 and 255.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Fade#red\r\n * @type {number}\r\n * @private\r\n * @since 3.5.0\r\n */\r\n this.red = 0;\r\n\r\n /**\r\n * The value of the green color channel the camera will use for the fade effect.\r\n * A value between 0 and 255.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Fade#green\r\n * @type {number}\r\n * @private\r\n * @since 3.5.0\r\n */\r\n this.green = 0;\r\n\r\n /**\r\n * The value of the blue color channel the camera will use for the fade effect.\r\n * A value between 0 and 255.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Fade#blue\r\n * @type {number}\r\n * @private\r\n * @since 3.5.0\r\n */\r\n this.blue = 0;\r\n\r\n /**\r\n * The value of the alpha channel used during the fade effect.\r\n * A value between 0 and 1.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Fade#alpha\r\n * @type {number}\r\n * @private\r\n * @since 3.5.0\r\n */\r\n this.alpha = 0;\r\n\r\n /**\r\n * If this effect is running this holds the current percentage of the progress, a value between 0 and 1.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Fade#progress\r\n * @type {number}\r\n * @since 3.5.0\r\n */\r\n this.progress = 0;\r\n\r\n /**\r\n * Effect elapsed timer.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Fade#_elapsed\r\n * @type {number}\r\n * @private\r\n * @since 3.5.0\r\n */\r\n this._elapsed = 0;\r\n\r\n /**\r\n * This callback is invoked every frame for the duration of the effect.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Fade#_onUpdate\r\n * @type {?Phaser.Types.Cameras.Scene2D.CameraFadeCallback}\r\n * @private\r\n * @default null\r\n * @since 3.5.0\r\n */\r\n this._onUpdate;\r\n\r\n /**\r\n * On Complete callback scope.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Fade#_onUpdateScope\r\n * @type {any}\r\n * @private\r\n * @since 3.5.0\r\n */\r\n this._onUpdateScope;\r\n },\r\n\r\n /**\r\n * Fades the Camera to or from the given color over the duration specified.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Fade#start\r\n * @fires Phaser.Cameras.Scene2D.Events#FADE_IN_START\r\n * @fires Phaser.Cameras.Scene2D.Events#FADE_OUT_START\r\n * @since 3.5.0\r\n *\r\n * @param {boolean} [direction=true] - The direction of the fade. `true` = fade out (transparent to color), `false` = fade in (color to transparent)\r\n * @param {number} [duration=1000] - The duration of the effect in milliseconds.\r\n * @param {number} [red=0] - The amount to fade the red channel towards. A value between 0 and 255.\r\n * @param {number} [green=0] - The amount to fade the green channel towards. A value between 0 and 255.\r\n * @param {number} [blue=0] - The amount to fade the blue channel towards. A value between 0 and 255.\r\n * @param {boolean} [force=false] - Force the effect to start immediately, even if already running.\r\n * @param {Phaser.Types.Cameras.Scene2D.CameraFadeCallback} [callback] - This callback will be invoked every frame for the duration of the effect.\r\n * It is sent two arguments: A reference to the camera and a progress amount between 0 and 1 indicating how complete the effect is.\r\n * @param {any} [context] - The context in which the callback is invoked. Defaults to the Scene to which the Camera belongs.\r\n *\r\n * @return {Phaser.Cameras.Scene2D.Camera} The Camera on which the effect was started.\r\n */\r\n start: function (direction, duration, red, green, blue, force, callback, context)\r\n {\r\n if (direction === undefined) { direction = true; }\r\n if (duration === undefined) { duration = 1000; }\r\n if (red === undefined) { red = 0; }\r\n if (green === undefined) { green = 0; }\r\n if (blue === undefined) { blue = 0; }\r\n if (force === undefined) { force = false; }\r\n if (callback === undefined) { callback = null; }\r\n if (context === undefined) { context = this.camera.scene; }\r\n\r\n if (!force && this.isRunning)\r\n {\r\n return this.camera;\r\n }\r\n\r\n this.isRunning = true;\r\n this.isComplete = false;\r\n this.duration = duration;\r\n this.direction = direction;\r\n this.progress = 0;\r\n\r\n this.red = red;\r\n this.green = green;\r\n this.blue = blue;\r\n this.alpha = (direction) ? Number.MIN_VALUE : 1;\r\n\r\n this._elapsed = 0;\r\n\r\n this._onUpdate = callback;\r\n this._onUpdateScope = context;\r\n\r\n var eventName = (direction) ? Events.FADE_OUT_START : Events.FADE_IN_START;\r\n\r\n this.camera.emit(eventName, this.camera, this, duration, red, green, blue);\r\n\r\n return this.camera;\r\n },\r\n\r\n /**\r\n * The main update loop for this effect. Called automatically by the Camera.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Fade#update\r\n * @since 3.5.0\r\n *\r\n * @param {number} time - The current timestamp as generated by the Request Animation Frame or SetTimeout.\r\n * @param {number} delta - The delta time, in ms, elapsed since the last frame.\r\n */\r\n update: function (time, delta)\r\n {\r\n if (!this.isRunning)\r\n {\r\n return;\r\n }\r\n\r\n this._elapsed += delta;\r\n\r\n this.progress = Clamp(this._elapsed / this.duration, 0, 1);\r\n\r\n if (this._onUpdate)\r\n {\r\n this._onUpdate.call(this._onUpdateScope, this.camera, this.progress);\r\n }\r\n\r\n if (this._elapsed < this.duration)\r\n {\r\n this.alpha = (this.direction) ? this.progress : 1 - this.progress;\r\n }\r\n else\r\n {\r\n this.alpha = (this.direction) ? 1 : 0;\r\n this.effectComplete();\r\n }\r\n },\r\n\r\n /**\r\n * Called internally by the Canvas Renderer.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Fade#postRenderCanvas\r\n * @since 3.5.0\r\n *\r\n * @param {CanvasRenderingContext2D} ctx - The Canvas context to render to.\r\n *\r\n * @return {boolean} `true` if the effect drew to the renderer, otherwise `false`.\r\n */\r\n postRenderCanvas: function (ctx)\r\n {\r\n if (!this.isRunning && !this.isComplete)\r\n {\r\n return false;\r\n }\r\n\r\n var camera = this.camera;\r\n\r\n ctx.fillStyle = 'rgba(' + this.red + ',' + this.green + ',' + this.blue + ',' + this.alpha + ')';\r\n ctx.fillRect(camera.x, camera.y, camera.width, camera.height);\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * Called internally by the WebGL Renderer.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Fade#postRenderWebGL\r\n * @since 3.5.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.Pipelines.MultiPipeline} pipeline - The WebGL Pipeline to render to. Must provide the `drawFillRect` method.\r\n * @param {function} getTintFunction - A function that will return the gl safe tint colors.\r\n *\r\n * @return {boolean} `true` if the effect drew to the renderer, otherwise `false`.\r\n */\r\n postRenderWebGL: function (pipeline, getTintFunction)\r\n {\r\n if (!this.isRunning && !this.isComplete)\r\n {\r\n return false;\r\n }\r\n\r\n var camera = this.camera;\r\n var red = this.red / 255;\r\n var green = this.green / 255;\r\n var blue = this.blue / 255;\r\n\r\n pipeline.drawFillRect(\r\n camera.x, camera.y, camera.width, camera.height,\r\n getTintFunction(blue, green, red, 1),\r\n this.alpha\r\n );\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * Called internally when the effect completes.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Fade#effectComplete\r\n * @fires Phaser.Cameras.Scene2D.Events#FADE_IN_COMPLETE\r\n * @fires Phaser.Cameras.Scene2D.Events#FADE_OUT_COMPLETE\r\n * @since 3.5.0\r\n */\r\n effectComplete: function ()\r\n {\r\n this._onUpdate = null;\r\n this._onUpdateScope = null;\r\n\r\n this.isRunning = false;\r\n this.isComplete = true;\r\n\r\n var eventName = (this.direction) ? Events.FADE_OUT_COMPLETE : Events.FADE_IN_COMPLETE;\r\n\r\n this.camera.emit(eventName, this.camera, this);\r\n },\r\n\r\n /**\r\n * Resets this camera effect.\r\n * If it was previously running, it stops instantly without calling its onComplete callback or emitting an event.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Fade#reset\r\n * @since 3.5.0\r\n */\r\n reset: function ()\r\n {\r\n this.isRunning = false;\r\n this.isComplete = false;\r\n\r\n this._onUpdate = null;\r\n this._onUpdateScope = null;\r\n },\r\n\r\n /**\r\n * Destroys this effect, releasing it from the Camera.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Fade#destroy\r\n * @since 3.5.0\r\n */\r\n destroy: function ()\r\n {\r\n this.reset();\r\n\r\n this.camera = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Fade;\r\n\n\n/***/ }),\n\n/***/ 10662:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Clamp = __webpack_require__(45319);\r\nvar Class = __webpack_require__(83419);\r\nvar Events = __webpack_require__(19715);\r\n\r\n/**\r\n * @classdesc\r\n * A Camera Flash effect.\r\n *\r\n * This effect will flash the camera viewport to the given color, over the duration specified.\r\n *\r\n * Only the camera viewport is flashed. None of the objects it is displaying are impacted, i.e. their colors do\r\n * not change.\r\n *\r\n * The effect will dispatch several events on the Camera itself and you can also specify an `onUpdate` callback,\r\n * which is invoked each frame for the duration of the effect, if required.\r\n *\r\n * @class Flash\r\n * @memberof Phaser.Cameras.Scene2D.Effects\r\n * @constructor\r\n * @since 3.5.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera this effect is acting upon.\r\n */\r\nvar Flash = new Class({\r\n\r\n initialize:\r\n\r\n function Flash (camera)\r\n {\r\n /**\r\n * The Camera this effect belongs to.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Flash#camera\r\n * @type {Phaser.Cameras.Scene2D.Camera}\r\n * @readonly\r\n * @since 3.5.0\r\n */\r\n this.camera = camera;\r\n\r\n /**\r\n * Is this effect actively running?\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Flash#isRunning\r\n * @type {boolean}\r\n * @readonly\r\n * @default false\r\n * @since 3.5.0\r\n */\r\n this.isRunning = false;\r\n\r\n /**\r\n * The duration of the effect, in milliseconds.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Flash#duration\r\n * @type {number}\r\n * @readonly\r\n * @default 0\r\n * @since 3.5.0\r\n */\r\n this.duration = 0;\r\n\r\n /**\r\n * The value of the red color channel the camera will use for the flash effect.\r\n * A value between 0 and 255.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Flash#red\r\n * @type {number}\r\n * @private\r\n * @since 3.5.0\r\n */\r\n this.red = 0;\r\n\r\n /**\r\n * The value of the green color channel the camera will use for the flash effect.\r\n * A value between 0 and 255.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Flash#green\r\n * @type {number}\r\n * @private\r\n * @since 3.5.0\r\n */\r\n this.green = 0;\r\n\r\n /**\r\n * The value of the blue color channel the camera will use for the flash effect.\r\n * A value between 0 and 255.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Flash#blue\r\n * @type {number}\r\n * @private\r\n * @since 3.5.0\r\n */\r\n this.blue = 0;\r\n\r\n /**\r\n * The value of the alpha channel used during the flash effect.\r\n * A value between 0 and 1.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Flash#alpha\r\n * @type {number}\r\n * @since 3.5.0\r\n */\r\n this.alpha = 1;\r\n\r\n /**\r\n * If this effect is running this holds the current percentage of the progress, a value between 0 and 1.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Flash#progress\r\n * @type {number}\r\n * @since 3.5.0\r\n */\r\n this.progress = 0;\r\n\r\n /**\r\n * Effect elapsed timer.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Flash#_elapsed\r\n * @type {number}\r\n * @private\r\n * @since 3.5.0\r\n */\r\n this._elapsed = 0;\r\n\r\n /**\r\n * This is an internal copy of the initial value of `this.alpha`, used to calculate the current alpha value of the fade effect.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Flash#_alpha\r\n * @type {number}\r\n * @private\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this._alpha;\r\n\r\n /**\r\n * This callback is invoked every frame for the duration of the effect.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Flash#_onUpdate\r\n * @type {?Phaser.Types.Cameras.Scene2D.CameraFlashCallback}\r\n * @private\r\n * @default null\r\n * @since 3.5.0\r\n */\r\n this._onUpdate;\r\n\r\n /**\r\n * On Complete callback scope.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Flash#_onUpdateScope\r\n * @type {any}\r\n * @private\r\n * @since 3.5.0\r\n */\r\n this._onUpdateScope;\r\n },\r\n\r\n /**\r\n * Flashes the Camera to or from the given color over the duration specified.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Flash#start\r\n * @fires Phaser.Cameras.Scene2D.Events#FLASH_START\r\n * @fires Phaser.Cameras.Scene2D.Events#FLASH_COMPLETE\r\n * @since 3.5.0\r\n *\r\n * @param {number} [duration=250] - The duration of the effect in milliseconds.\r\n * @param {number} [red=255] - The amount to flash the red channel towards. A value between 0 and 255.\r\n * @param {number} [green=255] - The amount to flash the green channel towards. A value between 0 and 255.\r\n * @param {number} [blue=255] - The amount to flash the blue channel towards. A value between 0 and 255.\r\n * @param {boolean} [force=false] - Force the effect to start immediately, even if already running.\r\n * @param {Phaser.Types.Cameras.Scene2D.CameraFlashCallback} [callback] - This callback will be invoked every frame for the duration of the effect.\r\n * It is sent two arguments: A reference to the camera and a progress amount between 0 and 1 indicating how complete the effect is.\r\n * @param {any} [context] - The context in which the callback is invoked. Defaults to the Scene to which the Camera belongs.\r\n *\r\n * @return {Phaser.Cameras.Scene2D.Camera} The Camera on which the effect was started.\r\n */\r\n start: function (duration, red, green, blue, force, callback, context)\r\n {\r\n if (duration === undefined) { duration = 250; }\r\n if (red === undefined) { red = 255; }\r\n if (green === undefined) { green = 255; }\r\n if (blue === undefined) { blue = 255; }\r\n if (force === undefined) { force = false; }\r\n if (callback === undefined) { callback = null; }\r\n if (context === undefined) { context = this.camera.scene; }\r\n\r\n if (!force && this.isRunning)\r\n {\r\n return this.camera;\r\n }\r\n\r\n this.isRunning = true;\r\n this.duration = duration;\r\n this.progress = 0;\r\n\r\n this.red = red;\r\n this.green = green;\r\n this.blue = blue;\r\n\r\n this._alpha = this.alpha;\r\n this._elapsed = 0;\r\n\r\n this._onUpdate = callback;\r\n this._onUpdateScope = context;\r\n\r\n this.camera.emit(Events.FLASH_START, this.camera, this, duration, red, green, blue);\r\n\r\n return this.camera;\r\n },\r\n\r\n /**\r\n * The main update loop for this effect. Called automatically by the Camera.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Flash#update\r\n * @since 3.5.0\r\n *\r\n * @param {number} time - The current timestamp as generated by the Request Animation Frame or SetTimeout.\r\n * @param {number} delta - The delta time, in ms, elapsed since the last frame.\r\n */\r\n update: function (time, delta)\r\n {\r\n if (!this.isRunning)\r\n {\r\n return;\r\n }\r\n\r\n this._elapsed += delta;\r\n\r\n this.progress = Clamp(this._elapsed / this.duration, 0, 1);\r\n\r\n if (this._onUpdate)\r\n {\r\n this._onUpdate.call(this._onUpdateScope, this.camera, this.progress);\r\n }\r\n\r\n if (this._elapsed < this.duration)\r\n {\r\n this.alpha = this._alpha * (1 - this.progress);\r\n }\r\n else\r\n {\r\n this.effectComplete();\r\n }\r\n },\r\n\r\n /**\r\n * Called internally by the Canvas Renderer.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Flash#postRenderCanvas\r\n * @since 3.5.0\r\n *\r\n * @param {CanvasRenderingContext2D} ctx - The Canvas context to render to.\r\n *\r\n * @return {boolean} `true` if the effect drew to the renderer, otherwise `false`.\r\n */\r\n postRenderCanvas: function (ctx)\r\n {\r\n if (!this.isRunning)\r\n {\r\n return false;\r\n }\r\n\r\n var camera = this.camera;\r\n\r\n ctx.fillStyle = 'rgba(' + this.red + ',' + this.green + ',' + this.blue + ',' + this.alpha + ')';\r\n ctx.fillRect(camera.x, camera.y, camera.width, camera.height);\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * Called internally by the WebGL Renderer.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Flash#postRenderWebGL\r\n * @since 3.5.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.Pipelines.MultiPipeline} pipeline - The WebGL Pipeline to render to. Must provide the `drawFillRect` method.\r\n * @param {function} getTintFunction - A function that will return the gl safe tint colors.\r\n *\r\n * @return {boolean} `true` if the effect drew to the renderer, otherwise `false`.\r\n */\r\n postRenderWebGL: function (pipeline, getTintFunction)\r\n {\r\n if (!this.isRunning)\r\n {\r\n return false;\r\n }\r\n\r\n var camera = this.camera;\r\n var red = this.red / 255;\r\n var green = this.green / 255;\r\n var blue = this.blue / 255;\r\n\r\n pipeline.drawFillRect(\r\n camera.x, camera.y, camera.width, camera.height,\r\n getTintFunction(blue, green, red, 1),\r\n this.alpha\r\n );\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * Called internally when the effect completes.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Flash#effectComplete\r\n * @fires Phaser.Cameras.Scene2D.Events#FLASH_COMPLETE\r\n * @since 3.5.0\r\n */\r\n effectComplete: function ()\r\n {\r\n this.alpha = this._alpha;\r\n this._onUpdate = null;\r\n this._onUpdateScope = null;\r\n\r\n this.isRunning = false;\r\n\r\n this.camera.emit(Events.FLASH_COMPLETE, this.camera, this);\r\n },\r\n\r\n /**\r\n * Resets this camera effect.\r\n * If it was previously running, it stops instantly without calling its onComplete callback or emitting an event.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Flash#reset\r\n * @since 3.5.0\r\n */\r\n reset: function ()\r\n {\r\n this.isRunning = false;\r\n\r\n this._onUpdate = null;\r\n this._onUpdateScope = null;\r\n },\r\n\r\n /**\r\n * Destroys this effect, releasing it from the Camera.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Flash#destroy\r\n * @since 3.5.0\r\n */\r\n destroy: function ()\r\n {\r\n this.reset();\r\n\r\n this.camera = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Flash;\r\n\n\n/***/ }),\n\n/***/ 20359:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Clamp = __webpack_require__(45319);\r\nvar Class = __webpack_require__(83419);\r\nvar EaseMap = __webpack_require__(62640);\r\nvar Events = __webpack_require__(19715);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * A Camera Pan effect.\r\n *\r\n * This effect will scroll the Camera so that the center of its viewport finishes at the given destination,\r\n * over the duration and with the ease specified.\r\n *\r\n * Only the camera scroll is moved. None of the objects it is displaying are impacted, i.e. their positions do\r\n * not change.\r\n *\r\n * The effect will dispatch several events on the Camera itself and you can also specify an `onUpdate` callback,\r\n * which is invoked each frame for the duration of the effect if required.\r\n *\r\n * @class Pan\r\n * @memberof Phaser.Cameras.Scene2D.Effects\r\n * @constructor\r\n * @since 3.11.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera this effect is acting upon.\r\n */\r\nvar Pan = new Class({\r\n\r\n initialize:\r\n\r\n function Pan (camera)\r\n {\r\n /**\r\n * The Camera this effect belongs to.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Pan#camera\r\n * @type {Phaser.Cameras.Scene2D.Camera}\r\n * @readonly\r\n * @since 3.11.0\r\n */\r\n this.camera = camera;\r\n\r\n /**\r\n * Is this effect actively running?\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Pan#isRunning\r\n * @type {boolean}\r\n * @readonly\r\n * @default false\r\n * @since 3.11.0\r\n */\r\n this.isRunning = false;\r\n\r\n /**\r\n * The duration of the effect, in milliseconds.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Pan#duration\r\n * @type {number}\r\n * @readonly\r\n * @default 0\r\n * @since 3.11.0\r\n */\r\n this.duration = 0;\r\n\r\n /**\r\n * The starting scroll coordinates to pan the camera from.\r\n * \r\n * @name Phaser.Cameras.Scene2D.Effects.Pan#source\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.11.0\r\n */\r\n this.source = new Vector2();\r\n\r\n /**\r\n * The constantly updated value based on zoom.\r\n * \r\n * @name Phaser.Cameras.Scene2D.Effects.Pan#current\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.11.0\r\n */\r\n this.current = new Vector2();\r\n\r\n /**\r\n * The destination scroll coordinates to pan the camera to.\r\n * \r\n * @name Phaser.Cameras.Scene2D.Effects.Pan#destination\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.11.0\r\n */\r\n this.destination = new Vector2();\r\n\r\n /**\r\n * The ease function to use during the pan.\r\n * \r\n * @name Phaser.Cameras.Scene2D.Effects.Pan#ease\r\n * @type {function}\r\n * @since 3.11.0\r\n */\r\n this.ease;\r\n\r\n /**\r\n * If this effect is running this holds the current percentage of the progress, a value between 0 and 1.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Pan#progress\r\n * @type {number}\r\n * @since 3.11.0\r\n */\r\n this.progress = 0;\r\n\r\n /**\r\n * Effect elapsed timer.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Pan#_elapsed\r\n * @type {number}\r\n * @private\r\n * @since 3.11.0\r\n */\r\n this._elapsed = 0;\r\n\r\n /**\r\n * This callback is invoked every frame for the duration of the effect.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Pan#_onUpdate\r\n * @type {?Phaser.Types.Cameras.Scene2D.CameraPanCallback}\r\n * @private\r\n * @default null\r\n * @since 3.11.0\r\n */\r\n this._onUpdate;\r\n\r\n /**\r\n * On Complete callback scope.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Pan#_onUpdateScope\r\n * @type {any}\r\n * @private\r\n * @since 3.11.0\r\n */\r\n this._onUpdateScope;\r\n },\r\n\r\n /**\r\n * This effect will scroll the Camera so that the center of its viewport finishes at the given destination,\r\n * over the duration and with the ease specified.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Pan#start\r\n * @fires Phaser.Cameras.Scene2D.Events#PAN_START\r\n * @fires Phaser.Cameras.Scene2D.Events#PAN_COMPLETE\r\n * @since 3.11.0\r\n *\r\n * @param {number} x - The destination x coordinate to scroll the center of the Camera viewport to.\r\n * @param {number} y - The destination y coordinate to scroll the center of the Camera viewport to.\r\n * @param {number} [duration=1000] - The duration of the effect in milliseconds.\r\n * @param {(string|function)} [ease='Linear'] - The ease to use for the pan. Can be any of the Phaser Easing constants or a custom function.\r\n * @param {boolean} [force=false] - Force the pan effect to start immediately, even if already running.\r\n * @param {Phaser.Types.Cameras.Scene2D.CameraPanCallback} [callback] - This callback will be invoked every frame for the duration of the effect.\r\n * It is sent four arguments: A reference to the camera, a progress amount between 0 and 1 indicating how complete the effect is,\r\n * the current camera scroll x coordinate and the current camera scroll y coordinate.\r\n * @param {any} [context] - The context in which the callback is invoked. Defaults to the Scene to which the Camera belongs.\r\n *\r\n * @return {Phaser.Cameras.Scene2D.Camera} The Camera on which the effect was started.\r\n */\r\n start: function (x, y, duration, ease, force, callback, context)\r\n {\r\n if (duration === undefined) { duration = 1000; }\r\n if (ease === undefined) { ease = EaseMap.Linear; }\r\n if (force === undefined) { force = false; }\r\n if (callback === undefined) { callback = null; }\r\n if (context === undefined) { context = this.camera.scene; }\r\n\r\n var cam = this.camera;\r\n\r\n if (!force && this.isRunning)\r\n {\r\n return cam;\r\n }\r\n\r\n this.isRunning = true;\r\n this.duration = duration;\r\n this.progress = 0;\r\n\r\n // Starting from\r\n this.source.set(cam.scrollX, cam.scrollY);\r\n\r\n // Destination\r\n this.destination.set(x, y);\r\n\r\n // Zoom factored version\r\n cam.getScroll(x, y, this.current);\r\n\r\n // Using this ease\r\n if (typeof ease === 'string' && EaseMap.hasOwnProperty(ease))\r\n {\r\n this.ease = EaseMap[ease];\r\n }\r\n else if (typeof ease === 'function')\r\n {\r\n this.ease = ease;\r\n }\r\n\r\n this._elapsed = 0;\r\n\r\n this._onUpdate = callback;\r\n this._onUpdateScope = context;\r\n\r\n this.camera.emit(Events.PAN_START, this.camera, this, duration, x, y);\r\n\r\n return cam;\r\n },\r\n\r\n /**\r\n * The main update loop for this effect. Called automatically by the Camera.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Pan#update\r\n * @since 3.11.0\r\n *\r\n * @param {number} time - The current timestamp as generated by the Request Animation Frame or SetTimeout.\r\n * @param {number} delta - The delta time, in ms, elapsed since the last frame.\r\n */\r\n update: function (time, delta)\r\n {\r\n if (!this.isRunning)\r\n {\r\n return;\r\n }\r\n\r\n this._elapsed += delta;\r\n\r\n var progress = Clamp(this._elapsed / this.duration, 0, 1);\r\n\r\n this.progress = progress;\r\n\r\n var cam = this.camera;\r\n\r\n if (this._elapsed < this.duration)\r\n {\r\n var v = this.ease(progress);\r\n\r\n cam.getScroll(this.destination.x, this.destination.y, this.current);\r\n\r\n var x = this.source.x + ((this.current.x - this.source.x) * v);\r\n var y = this.source.y + ((this.current.y - this.source.y) * v);\r\n\r\n cam.setScroll(x, y);\r\n\r\n if (this._onUpdate)\r\n {\r\n this._onUpdate.call(this._onUpdateScope, cam, progress, x, y);\r\n }\r\n }\r\n else\r\n {\r\n cam.centerOn(this.destination.x, this.destination.y);\r\n\r\n if (this._onUpdate)\r\n {\r\n this._onUpdate.call(this._onUpdateScope, cam, progress, cam.scrollX, cam.scrollY);\r\n }\r\n \r\n this.effectComplete();\r\n }\r\n },\r\n\r\n /**\r\n * Called internally when the effect completes.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Pan#effectComplete\r\n * @fires Phaser.Cameras.Scene2D.Events#PAN_COMPLETE\r\n * @since 3.11.0\r\n */\r\n effectComplete: function ()\r\n {\r\n this._onUpdate = null;\r\n this._onUpdateScope = null;\r\n\r\n this.isRunning = false;\r\n\r\n this.camera.emit(Events.PAN_COMPLETE, this.camera, this);\r\n },\r\n\r\n /**\r\n * Resets this camera effect.\r\n * If it was previously running, it stops instantly without calling its onComplete callback or emitting an event.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Pan#reset\r\n * @since 3.11.0\r\n */\r\n reset: function ()\r\n {\r\n this.isRunning = false;\r\n\r\n this._onUpdate = null;\r\n this._onUpdateScope = null;\r\n },\r\n\r\n /**\r\n * Destroys this effect, releasing it from the Camera.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Pan#destroy\r\n * @since 3.11.0\r\n */\r\n destroy: function ()\r\n {\r\n this.reset();\r\n\r\n this.camera = null;\r\n this.source = null;\r\n this.destination = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Pan;\r\n\n\n/***/ }),\n\n/***/ 34208:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Jason Nicholls \r\n * @copyright 2018 Photon Storm Ltd.\r\n * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}\r\n */\r\n\r\nvar Clamp = __webpack_require__(45319);\r\nvar Class = __webpack_require__(83419);\r\nvar Events = __webpack_require__(19715);\r\nvar EaseMap = __webpack_require__(62640);\r\n\r\n/**\r\n * @classdesc\r\n * A Camera Rotate effect.\r\n *\r\n * This effect will rotate the Camera so that the its viewport finishes at the given angle in radians,\r\n * over the duration and with the ease specified.\r\n * \r\n * Camera rotation always takes place based on the Camera viewport. By default, rotation happens\r\n * in the center of the viewport. You can adjust this with the `originX` and `originY` properties.\r\n *\r\n * Rotation influences the rendering of _all_ Game Objects visible by this Camera. However, it does not\r\n * rotate the Camera viewport itself, which always remains an axis-aligned rectangle.\r\n *\r\n * Only the camera is rotates. None of the objects it is displaying are impacted, i.e. their positions do\r\n * not change.\r\n *\r\n * The effect will dispatch several events on the Camera itself and you can also specify an `onUpdate` callback,\r\n * which is invoked each frame for the duration of the effect if required.\r\n *\r\n * @class RotateTo\r\n * @memberof Phaser.Cameras.Scene2D.Effects\r\n * @constructor\r\n * @since 3.23.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera this effect is acting upon.\r\n */\r\nvar RotateTo = new Class({\r\n\r\n initialize:\r\n\r\n function RotateTo (camera)\r\n {\r\n /**\r\n * The Camera this effect belongs to.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.RotateTo#camera\r\n * @type {Phaser.Cameras.Scene2D.Camera}\r\n * @readonly\r\n * @since 3.23.0\r\n */\r\n this.camera = camera;\r\n\r\n /**\r\n * Is this effect actively running?\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.RotateTo#isRunning\r\n * @type {boolean}\r\n * @readonly\r\n * @default false\r\n * @since 3.23.0\r\n */\r\n this.isRunning = false;\r\n\r\n /**\r\n * The duration of the effect, in milliseconds.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.RotateTo#duration\r\n * @type {number}\r\n * @readonly\r\n * @default 0\r\n * @since 3.23.0\r\n */\r\n this.duration = 0;\r\n\r\n /**\r\n * The starting angle to rotate the camera from.\r\n * \r\n * @name Phaser.Cameras.Scene2D.Effects.RotateTo#source\r\n * @type {number}\r\n * @since 3.23.0\r\n */\r\n this.source = 0;\r\n\r\n /**\r\n * The constantly updated value based on the force.\r\n * \r\n * @name Phaser.Cameras.Scene2D.Effects.RotateTo#current\r\n * @type {number}\r\n * @since 3.23.0\r\n */\r\n this.current = 0;\r\n\r\n /**\r\n * The destination angle in radians to rotate the camera to.\r\n * \r\n * @name Phaser.Cameras.Scene2D.Effects.RotateTo#destination\r\n * @type {number}\r\n * @since 3.23.0\r\n */\r\n this.destination = 0;\r\n\r\n /**\r\n * The ease function to use during the Rotate.\r\n * \r\n * @name Phaser.Cameras.Scene2D.Effects.RotateTo#ease\r\n * @type {function}\r\n * @since 3.23.0\r\n */\r\n this.ease;\r\n\r\n /**\r\n * If this effect is running this holds the current percentage of the progress, a value between 0 and 1.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.RotateTo#progress\r\n * @type {number}\r\n * @since 3.23.0\r\n */\r\n this.progress = 0;\r\n\r\n /**\r\n * Effect elapsed timer.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.RotateTo#_elapsed\r\n * @type {number}\r\n * @private\r\n * @since 3.23.0\r\n */\r\n this._elapsed = 0;\r\n\r\n /**\r\n * @callback CameraRotateCallback\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera on which the effect is running.\r\n * @param {number} progress - The progress of the effect. A value between 0 and 1.\r\n * @param {number} angle - The Camera's new angle in radians.\r\n */\r\n\r\n /**\r\n * This callback is invoked every frame for the duration of the effect.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.RotateTo#_onUpdate\r\n * @type {?CameraRotateCallback}\r\n * @private\r\n * @default null\r\n * @since 3.23.0\r\n */\r\n this._onUpdate;\r\n\r\n /**\r\n * On Complete callback scope.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.RotateTo#_onUpdateScope\r\n * @type {any}\r\n * @private\r\n * @since 3.23.0\r\n */\r\n this._onUpdateScope;\r\n\r\n /**\r\n * The direction of the rotation.\r\n * \r\n * @name Phaser.Cameras.Scene2D.Effects.RotateTo#clockwise\r\n * @type {boolean}\r\n * @since 3.23.0\r\n */\r\n this.clockwise = true;\r\n\r\n /**\r\n * The shortest direction to the target rotation.\r\n * \r\n * @name Phaser.Cameras.Scene2D.Effects.RotateTo#shortestPath\r\n * @type {boolean}\r\n * @since 3.23.0\r\n */\r\n this.shortestPath = false;\r\n },\r\n\r\n /**\r\n * This effect will scroll the Camera so that the center of its viewport finishes at the given angle,\r\n * over the duration and with the ease specified.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.RotateTo#start\r\n * @fires Phaser.Cameras.Scene2D.Events#ROTATE_START\r\n * @fires Phaser.Cameras.Scene2D.Events#ROTATE_COMPLETE\r\n * @since 3.23.0\r\n *\r\n * @param {number} radians - The destination angle in radians to rotate the Camera viewport to. If the angle is positive then the rotation is clockwise else anticlockwise\r\n * @param {boolean} [shortestPath=false] - If shortest path is set to true the camera will rotate in the quickest direction clockwise or anti-clockwise.\r\n * @param {number} [duration=1000] - The duration of the effect in milliseconds.\r\n * @param {(string|function)} [ease='Linear'] - The ease to use for the Rotate. Can be any of the Phaser Easing constants or a custom function.\r\n * @param {boolean} [force=false] - Force the rotation effect to start immediately, even if already running.\r\n * @param {CameraRotateCallback} [callback] - This callback will be invoked every frame for the duration of the effect.\r\n * It is sent four arguments: A reference to the camera, a progress amount between 0 and 1 indicating how complete the effect is,\r\n * the current camera scroll x coordinate and the current camera scroll y coordinate.\r\n * @param {any} [context] - The context in which the callback is invoked. Defaults to the Scene to which the Camera belongs.\r\n *\r\n * @return {Phaser.Cameras.Scene2D.Camera} The Camera on which the effect was started.\r\n */\r\n start: function (radians, shortestPath, duration, ease, force, callback, context)\r\n {\r\n if (duration === undefined) { duration = 1000; }\r\n if (ease === undefined) { ease = EaseMap.Linear; }\r\n if (force === undefined) { force = false; }\r\n if (callback === undefined) { callback = null; }\r\n if (context === undefined) { context = this.camera.scene; }\r\n if (shortestPath === undefined) { shortestPath = false; }\r\n\r\n this.shortestPath = shortestPath;\r\n\r\n var tmpDestination = radians;\r\n\r\n if (radians < 0)\r\n {\r\n tmpDestination = -1 * radians;\r\n this.clockwise = false;\r\n }\r\n else\r\n {\r\n this.clockwise = true;\r\n }\r\n\r\n var maxRad = (360 * Math.PI) / 180;\r\n\r\n tmpDestination = tmpDestination - (Math.floor(tmpDestination / maxRad) * maxRad);\r\n\r\n var cam = this.camera;\r\n\r\n if (!force && this.isRunning)\r\n {\r\n return cam;\r\n }\r\n\r\n this.isRunning = true;\r\n this.duration = duration;\r\n this.progress = 0;\r\n\r\n // Starting from\r\n this.source = cam.rotation;\r\n\r\n // Destination\r\n this.destination = tmpDestination;\r\n\r\n // Using this ease\r\n if (typeof ease === 'string' && EaseMap.hasOwnProperty(ease))\r\n {\r\n this.ease = EaseMap[ease];\r\n }\r\n else if (typeof ease === 'function')\r\n {\r\n this.ease = ease;\r\n }\r\n\r\n this._elapsed = 0;\r\n\r\n this._onUpdate = callback;\r\n this._onUpdateScope = context;\r\n\r\n\r\n if (this.shortestPath)\r\n {\r\n // The shortest path is true so calculate the quickest direction\r\n var cwDist = 0;\r\n var acwDist = 0;\r\n\r\n if (this.destination > this.source)\r\n {\r\n cwDist = Math.abs(this.destination - this.source);\r\n }\r\n else\r\n {\r\n cwDist = (Math.abs(this.destination + maxRad) - this.source);\r\n }\r\n\r\n if (this.source > this.destination)\r\n {\r\n acwDist = Math.abs(this.source - this.destination);\r\n }\r\n else\r\n {\r\n acwDist = (Math.abs(this.source + maxRad) - this.destination);\r\n }\r\n\r\n if (cwDist < acwDist)\r\n {\r\n this.clockwise = true;\r\n }\r\n else if (cwDist > acwDist)\r\n {\r\n this.clockwise = false;\r\n }\r\n }\r\n\r\n this.camera.emit(Events.ROTATE_START, this.camera, this, duration, tmpDestination);\r\n\r\n return cam;\r\n },\r\n\r\n /**\r\n * The main update loop for this effect. Called automatically by the Camera.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.RotateTo#update\r\n * @since 3.23.0\r\n *\r\n * @param {number} time - The current timestamp as generated by the Request Animation Frame or SetTimeout.\r\n * @param {number} delta - The delta time, in ms, elapsed since the last frame.\r\n */\r\n update: function (time, delta)\r\n {\r\n if (!this.isRunning)\r\n {\r\n return;\r\n }\r\n\r\n this._elapsed += delta;\r\n\r\n var progress = Clamp(this._elapsed / this.duration, 0, 1);\r\n\r\n this.progress = progress;\r\n\r\n var cam = this.camera;\r\n\r\n if (this._elapsed < this.duration)\r\n {\r\n var v = this.ease(progress);\r\n\r\n this.current = cam.rotation;\r\n var distance = 0;\r\n var maxRad = (360 * Math.PI) / 180;\r\n var target = this.destination;\r\n var current = this.current;\r\n\r\n if (this.clockwise === false)\r\n {\r\n target = this.current;\r\n current = this.destination;\r\n }\r\n\r\n if (target >= current)\r\n {\r\n distance = Math.abs(target - current);\r\n }\r\n else\r\n {\r\n distance = (Math.abs(target + maxRad) - current);\r\n }\r\n\r\n var r = 0;\r\n\r\n if (this.clockwise)\r\n {\r\n r = (cam.rotation + (distance * v));\r\n }\r\n else\r\n {\r\n r = (cam.rotation - (distance * v));\r\n }\r\n\r\n cam.rotation = r;\r\n\r\n if (this._onUpdate)\r\n {\r\n this._onUpdate.call(this._onUpdateScope, cam, progress, r);\r\n }\r\n }\r\n else\r\n {\r\n cam.rotation = this.destination;\r\n\r\n if (this._onUpdate)\r\n {\r\n this._onUpdate.call(this._onUpdateScope, cam, progress, this.destination);\r\n }\r\n \r\n this.effectComplete();\r\n }\r\n },\r\n\r\n /**\r\n * Called internally when the effect completes.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.RotateTo#effectComplete\r\n * @since 3.23.0\r\n */\r\n effectComplete: function ()\r\n {\r\n this._onUpdate = null;\r\n this._onUpdateScope = null;\r\n\r\n this.isRunning = false;\r\n\r\n this.camera.emit(Events.ROTATE_COMPLETE, this.camera, this);\r\n },\r\n\r\n /**\r\n * Resets this camera effect.\r\n * If it was previously running, it stops instantly without calling its onComplete callback or emitting an event.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.RotateTo#reset\r\n * @since 3.23.0\r\n */\r\n reset: function ()\r\n {\r\n this.isRunning = false;\r\n\r\n this._onUpdate = null;\r\n this._onUpdateScope = null;\r\n },\r\n\r\n /**\r\n * Destroys this effect, releasing it from the Camera.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.RotateTo#destroy\r\n * @since 3.23.0\r\n */\r\n destroy: function ()\r\n {\r\n this.reset();\r\n\r\n this.camera = null;\r\n this.source = null;\r\n this.destination = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = RotateTo;\r\n\n\n/***/ }),\n\n/***/ 30330:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Clamp = __webpack_require__(45319);\r\nvar Class = __webpack_require__(83419);\r\nvar Events = __webpack_require__(19715);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * A Camera Shake effect.\r\n *\r\n * This effect will shake the camera viewport by a random amount, bounded by the specified intensity, each frame.\r\n *\r\n * Only the camera viewport is moved. None of the objects it is displaying are impacted, i.e. their positions do\r\n * not change.\r\n *\r\n * The effect will dispatch several events on the Camera itself and you can also specify an `onUpdate` callback,\r\n * which is invoked each frame for the duration of the effect if required.\r\n *\r\n * @class Shake\r\n * @memberof Phaser.Cameras.Scene2D.Effects\r\n * @constructor\r\n * @since 3.5.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera this effect is acting upon.\r\n */\r\nvar Shake = new Class({\r\n\r\n initialize:\r\n\r\n function Shake (camera)\r\n {\r\n /**\r\n * The Camera this effect belongs to.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Shake#camera\r\n * @type {Phaser.Cameras.Scene2D.Camera}\r\n * @readonly\r\n * @since 3.5.0\r\n */\r\n this.camera = camera;\r\n\r\n /**\r\n * Is this effect actively running?\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Shake#isRunning\r\n * @type {boolean}\r\n * @readonly\r\n * @default false\r\n * @since 3.5.0\r\n */\r\n this.isRunning = false;\r\n\r\n /**\r\n * The duration of the effect, in milliseconds.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Shake#duration\r\n * @type {number}\r\n * @readonly\r\n * @default 0\r\n * @since 3.5.0\r\n */\r\n this.duration = 0;\r\n\r\n /**\r\n * The intensity of the effect. Use small float values. The default when the effect starts is 0.05.\r\n * This is a Vector2 object, allowing you to control the shake intensity independently across x and y.\r\n * You can modify this value while the effect is active to create more varied shake effects.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Shake#intensity\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.5.0\r\n */\r\n this.intensity = new Vector2();\r\n\r\n /**\r\n * If this effect is running this holds the current percentage of the progress, a value between 0 and 1.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Shake#progress\r\n * @type {number}\r\n * @since 3.5.0\r\n */\r\n this.progress = 0;\r\n\r\n /**\r\n * Effect elapsed timer.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Shake#_elapsed\r\n * @type {number}\r\n * @private\r\n * @since 3.5.0\r\n */\r\n this._elapsed = 0;\r\n\r\n /**\r\n * How much to offset the camera by horizontally.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Shake#_offsetX\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this._offsetX = 0;\r\n\r\n /**\r\n * How much to offset the camera by vertically.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Shake#_offsetY\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this._offsetY = 0;\r\n\r\n /**\r\n * This callback is invoked every frame for the duration of the effect.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Shake#_onUpdate\r\n * @type {?Phaser.Types.Cameras.Scene2D.CameraShakeCallback}\r\n * @private\r\n * @default null\r\n * @since 3.5.0\r\n */\r\n this._onUpdate;\r\n\r\n /**\r\n * On Complete callback scope.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Shake#_onUpdateScope\r\n * @type {any}\r\n * @private\r\n * @since 3.5.0\r\n */\r\n this._onUpdateScope;\r\n },\r\n\r\n /**\r\n * Shakes the Camera by the given intensity over the duration specified.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Shake#start\r\n * @fires Phaser.Cameras.Scene2D.Events#SHAKE_START\r\n * @fires Phaser.Cameras.Scene2D.Events#SHAKE_COMPLETE\r\n * @since 3.5.0\r\n *\r\n * @param {number} [duration=100] - The duration of the effect in milliseconds.\r\n * @param {(number|Phaser.Math.Vector2)} [intensity=0.05] - The intensity of the shake.\r\n * @param {boolean} [force=false] - Force the shake effect to start immediately, even if already running.\r\n * @param {Phaser.Types.Cameras.Scene2D.CameraShakeCallback} [callback] - This callback will be invoked every frame for the duration of the effect.\r\n * It is sent two arguments: A reference to the camera and a progress amount between 0 and 1 indicating how complete the effect is.\r\n * @param {any} [context] - The context in which the callback is invoked. Defaults to the Scene to which the Camera belongs.\r\n *\r\n * @return {Phaser.Cameras.Scene2D.Camera} The Camera on which the effect was started.\r\n */\r\n start: function (duration, intensity, force, callback, context)\r\n {\r\n if (duration === undefined) { duration = 100; }\r\n if (intensity === undefined) { intensity = 0.05; }\r\n if (force === undefined) { force = false; }\r\n if (callback === undefined) { callback = null; }\r\n if (context === undefined) { context = this.camera.scene; }\r\n\r\n if (!force && this.isRunning)\r\n {\r\n return this.camera;\r\n }\r\n\r\n this.isRunning = true;\r\n this.duration = duration;\r\n this.progress = 0;\r\n\r\n if (typeof intensity === 'number')\r\n {\r\n this.intensity.set(intensity);\r\n }\r\n else\r\n {\r\n this.intensity.set(intensity.x, intensity.y);\r\n }\r\n\r\n this._elapsed = 0;\r\n this._offsetX = 0;\r\n this._offsetY = 0;\r\n\r\n this._onUpdate = callback;\r\n this._onUpdateScope = context;\r\n\r\n this.camera.emit(Events.SHAKE_START, this.camera, this, duration, intensity);\r\n\r\n return this.camera;\r\n },\r\n\r\n /**\r\n * The pre-render step for this effect. Called automatically by the Camera.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Shake#preRender\r\n * @since 3.5.0\r\n */\r\n preRender: function ()\r\n {\r\n if (this.isRunning)\r\n {\r\n this.camera.matrix.translate(this._offsetX, this._offsetY);\r\n }\r\n },\r\n\r\n /**\r\n * The main update loop for this effect. Called automatically by the Camera.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Shake#update\r\n * @since 3.5.0\r\n *\r\n * @param {number} time - The current timestamp as generated by the Request Animation Frame or SetTimeout.\r\n * @param {number} delta - The delta time, in ms, elapsed since the last frame.\r\n */\r\n update: function (time, delta)\r\n {\r\n if (!this.isRunning)\r\n {\r\n return;\r\n }\r\n\r\n this._elapsed += delta;\r\n\r\n this.progress = Clamp(this._elapsed / this.duration, 0, 1);\r\n\r\n if (this._onUpdate)\r\n {\r\n this._onUpdate.call(this._onUpdateScope, this.camera, this.progress);\r\n }\r\n\r\n if (this._elapsed < this.duration)\r\n {\r\n var intensity = this.intensity;\r\n var width = this.camera.width;\r\n var height = this.camera.height;\r\n var zoom = this.camera.zoom;\r\n\r\n this._offsetX = (Math.random() * intensity.x * width * 2 - intensity.x * width) * zoom;\r\n this._offsetY = (Math.random() * intensity.y * height * 2 - intensity.y * height) * zoom;\r\n\r\n if (this.camera.roundPixels)\r\n {\r\n this._offsetX = Math.round(this._offsetX);\r\n this._offsetY = Math.round(this._offsetY);\r\n }\r\n }\r\n else\r\n {\r\n this.effectComplete();\r\n }\r\n },\r\n\r\n /**\r\n * Called internally when the effect completes.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Shake#effectComplete\r\n * @fires Phaser.Cameras.Scene2D.Events#SHAKE_COMPLETE\r\n * @since 3.5.0\r\n */\r\n effectComplete: function ()\r\n {\r\n this._offsetX = 0;\r\n this._offsetY = 0;\r\n\r\n this._onUpdate = null;\r\n this._onUpdateScope = null;\r\n\r\n this.isRunning = false;\r\n\r\n this.camera.emit(Events.SHAKE_COMPLETE, this.camera, this);\r\n },\r\n\r\n /**\r\n * Resets this camera effect.\r\n * If it was previously running, it stops instantly without calling its onComplete callback or emitting an event.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Shake#reset\r\n * @since 3.5.0\r\n */\r\n reset: function ()\r\n {\r\n this.isRunning = false;\r\n\r\n this._offsetX = 0;\r\n this._offsetY = 0;\r\n\r\n this._onUpdate = null;\r\n this._onUpdateScope = null;\r\n },\r\n\r\n /**\r\n * Destroys this effect, releasing it from the Camera.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Shake#destroy\r\n * @since 3.5.0\r\n */\r\n destroy: function ()\r\n {\r\n this.reset();\r\n\r\n this.camera = null;\r\n this.intensity = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Shake;\r\n\n\n/***/ }),\n\n/***/ 45641:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Clamp = __webpack_require__(45319);\r\nvar Class = __webpack_require__(83419);\r\nvar EaseMap = __webpack_require__(62640);\r\nvar Events = __webpack_require__(19715);\r\n\r\n/**\r\n * @classdesc\r\n * A Camera Zoom effect.\r\n *\r\n * This effect will zoom the Camera to the given scale, over the duration and with the ease specified.\r\n *\r\n * The effect will dispatch several events on the Camera itself and you can also specify an `onUpdate` callback,\r\n * which is invoked each frame for the duration of the effect if required.\r\n *\r\n * @class Zoom\r\n * @memberof Phaser.Cameras.Scene2D.Effects\r\n * @constructor\r\n * @since 3.11.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera this effect is acting upon.\r\n */\r\nvar Zoom = new Class({\r\n\r\n initialize:\r\n\r\n function Zoom (camera)\r\n {\r\n /**\r\n * The Camera this effect belongs to.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Zoom#camera\r\n * @type {Phaser.Cameras.Scene2D.Camera}\r\n * @readonly\r\n * @since 3.11.0\r\n */\r\n this.camera = camera;\r\n\r\n /**\r\n * Is this effect actively running?\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Zoom#isRunning\r\n * @type {boolean}\r\n * @readonly\r\n * @default false\r\n * @since 3.11.0\r\n */\r\n this.isRunning = false;\r\n\r\n /**\r\n * The duration of the effect, in milliseconds.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Zoom#duration\r\n * @type {number}\r\n * @readonly\r\n * @default 0\r\n * @since 3.11.0\r\n */\r\n this.duration = 0;\r\n\r\n /**\r\n * The starting zoom value;\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Zoom#source\r\n * @type {number}\r\n * @since 3.11.0\r\n */\r\n this.source = 1;\r\n\r\n /**\r\n * The destination zoom value.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Zoom#destination\r\n * @type {number}\r\n * @since 3.11.0\r\n */\r\n this.destination = 1;\r\n\r\n /**\r\n * The ease function to use during the zoom.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Zoom#ease\r\n * @type {function}\r\n * @since 3.11.0\r\n */\r\n this.ease;\r\n\r\n /**\r\n * If this effect is running this holds the current percentage of the progress, a value between 0 and 1.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Zoom#progress\r\n * @type {number}\r\n * @since 3.11.0\r\n */\r\n this.progress = 0;\r\n\r\n /**\r\n * Effect elapsed timer.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Zoom#_elapsed\r\n * @type {number}\r\n * @private\r\n * @since 3.11.0\r\n */\r\n this._elapsed = 0;\r\n\r\n /**\r\n * This callback is invoked every frame for the duration of the effect.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Zoom#_onUpdate\r\n * @type {?Phaser.Types.Cameras.Scene2D.CameraZoomCallback}\r\n * @private\r\n * @default null\r\n * @since 3.11.0\r\n */\r\n this._onUpdate;\r\n\r\n /**\r\n * On Complete callback scope.\r\n *\r\n * @name Phaser.Cameras.Scene2D.Effects.Zoom#_onUpdateScope\r\n * @type {any}\r\n * @private\r\n * @since 3.11.0\r\n */\r\n this._onUpdateScope;\r\n },\r\n\r\n /**\r\n * This effect will zoom the Camera to the given scale, over the duration and with the ease specified.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Zoom#start\r\n * @fires Phaser.Cameras.Scene2D.Events#ZOOM_START\r\n * @fires Phaser.Cameras.Scene2D.Events#ZOOM_COMPLETE\r\n * @since 3.11.0\r\n *\r\n * @param {number} zoom - The target Camera zoom value.\r\n * @param {number} [duration=1000] - The duration of the effect in milliseconds.\r\n * @param {(string|function)} [ease='Linear'] - The ease to use for the Zoom. Can be any of the Phaser Easing constants or a custom function.\r\n * @param {boolean} [force=false] - Force the zoom effect to start immediately, even if already running.\r\n * @param {Phaser.Types.Cameras.Scene2D.CameraZoomCallback} [callback] - This callback will be invoked every frame for the duration of the effect.\r\n * It is sent three arguments: A reference to the camera, a progress amount between 0 and 1 indicating how complete the effect is,\r\n * and the current camera zoom value.\r\n * @param {any} [context] - The context in which the callback is invoked. Defaults to the Scene to which the Camera belongs.\r\n *\r\n * @return {Phaser.Cameras.Scene2D.Camera} The Camera on which the effect was started.\r\n */\r\n start: function (zoom, duration, ease, force, callback, context)\r\n {\r\n if (duration === undefined) { duration = 1000; }\r\n if (ease === undefined) { ease = EaseMap.Linear; }\r\n if (force === undefined) { force = false; }\r\n if (callback === undefined) { callback = null; }\r\n if (context === undefined) { context = this.camera.scene; }\r\n\r\n var cam = this.camera;\r\n\r\n if (!force && this.isRunning)\r\n {\r\n return cam;\r\n }\r\n\r\n this.isRunning = true;\r\n this.duration = duration;\r\n this.progress = 0;\r\n\r\n // Starting from\r\n this.source = cam.zoom;\r\n\r\n // Zooming to\r\n this.destination = zoom;\r\n\r\n // Using this ease\r\n if (typeof ease === 'string' && EaseMap.hasOwnProperty(ease))\r\n {\r\n this.ease = EaseMap[ease];\r\n }\r\n else if (typeof ease === 'function')\r\n {\r\n this.ease = ease;\r\n }\r\n\r\n this._elapsed = 0;\r\n\r\n this._onUpdate = callback;\r\n this._onUpdateScope = context;\r\n\r\n this.camera.emit(Events.ZOOM_START, this.camera, this, duration, zoom);\r\n\r\n return cam;\r\n },\r\n\r\n /**\r\n * The main update loop for this effect. Called automatically by the Camera.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Zoom#update\r\n * @since 3.11.0\r\n *\r\n * @param {number} time - The current timestamp as generated by the Request Animation Frame or SetTimeout.\r\n * @param {number} delta - The delta time, in ms, elapsed since the last frame.\r\n */\r\n update: function (time, delta)\r\n {\r\n if (!this.isRunning)\r\n {\r\n return;\r\n }\r\n\r\n this._elapsed += delta;\r\n\r\n this.progress = Clamp(this._elapsed / this.duration, 0, 1);\r\n\r\n if (this._elapsed < this.duration)\r\n {\r\n this.camera.zoom = this.source + ((this.destination - this.source) * this.ease(this.progress));\r\n\r\n if (this._onUpdate)\r\n {\r\n this._onUpdate.call(this._onUpdateScope, this.camera, this.progress, this.camera.zoom);\r\n }\r\n }\r\n else\r\n {\r\n this.camera.zoom = this.destination;\r\n\r\n if (this._onUpdate)\r\n {\r\n this._onUpdate.call(this._onUpdateScope, this.camera, this.progress, this.destination);\r\n }\r\n\r\n this.effectComplete();\r\n }\r\n },\r\n\r\n /**\r\n * Called internally when the effect completes.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Zoom#effectComplete\r\n * @fires Phaser.Cameras.Scene2D.Events#ZOOM_COMPLETE\r\n * @since 3.11.0\r\n */\r\n effectComplete: function ()\r\n {\r\n this._onUpdate = null;\r\n this._onUpdateScope = null;\r\n\r\n this.isRunning = false;\r\n\r\n this.camera.emit(Events.ZOOM_COMPLETE, this.camera, this);\r\n },\r\n\r\n /**\r\n * Resets this camera effect.\r\n * If it was previously running, it stops instantly without calling its onComplete callback or emitting an event.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Zoom#reset\r\n * @since 3.11.0\r\n */\r\n reset: function ()\r\n {\r\n this.isRunning = false;\r\n\r\n this._onUpdate = null;\r\n this._onUpdateScope = null;\r\n },\r\n\r\n /**\r\n * Destroys this effect, releasing it from the Camera.\r\n *\r\n * @method Phaser.Cameras.Scene2D.Effects.Zoom#destroy\r\n * @since 3.11.0\r\n */\r\n destroy: function ()\r\n {\r\n this.reset();\r\n\r\n this.camera = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Zoom;\r\n\n\n/***/ }),\n\n/***/ 20052:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Cameras.Scene2D.Effects\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Fade: __webpack_require__(5020),\r\n Flash: __webpack_require__(10662),\r\n Pan: __webpack_require__(20359),\r\n Shake: __webpack_require__(30330),\r\n RotateTo: __webpack_require__(34208),\r\n Zoom: __webpack_require__(45641)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 16438:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Destroy Camera Event.\r\n *\r\n * This event is dispatched by a Camera instance when it is destroyed by the Camera Manager.\r\n *\r\n * Listen for it via either of the following:\r\n *\r\n * ```js\r\n * this.cameras.main.on('cameradestroy', () => {});\r\n * ```\r\n *\r\n * or use the constant, to avoid having to remember the correct event string:\r\n *\r\n * ```js\r\n * this.cameras.main.on(Phaser.Cameras.Scene2D.Events.DESTROY, () => {});\r\n * ```\r\n *\r\n * @event Phaser.Cameras.Scene2D.Events#DESTROY\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.BaseCamera} camera - The camera that was destroyed.\r\n */\r\nmodule.exports = 'cameradestroy';\r\n\n\n/***/ }),\n\n/***/ 32726:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Camera Fade In Complete Event.\r\n *\r\n * This event is dispatched by a Camera instance when the Fade In Effect completes.\r\n *\r\n * Listen to it from a Camera instance using `Camera.on('camerafadeincomplete', listener)`.\r\n *\r\n * @event Phaser.Cameras.Scene2D.Events#FADE_IN_COMPLETE\r\n * @type {string}\r\n * @since 3.3.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera that the effect began on.\r\n * @param {Phaser.Cameras.Scene2D.Effects.Fade} effect - A reference to the effect instance.\r\n */\r\nmodule.exports = 'camerafadeincomplete';\r\n\n\n/***/ }),\n\n/***/ 87807:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Camera Fade In Start Event.\r\n *\r\n * This event is dispatched by a Camera instance when the Fade In Effect starts.\r\n *\r\n * Listen to it from a Camera instance using `Camera.on('camerafadeinstart', listener)`.\r\n *\r\n * @event Phaser.Cameras.Scene2D.Events#FADE_IN_START\r\n * @type {string}\r\n * @since 3.3.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera that the effect began on.\r\n * @param {Phaser.Cameras.Scene2D.Effects.Fade} effect - A reference to the effect instance.\r\n * @param {number} duration - The duration of the effect.\r\n * @param {number} red - The red color channel value.\r\n * @param {number} green - The green color channel value.\r\n * @param {number} blue - The blue color channel value.\r\n */\r\nmodule.exports = 'camerafadeinstart';\r\n\n\n/***/ }),\n\n/***/ 45917:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Camera Fade Out Complete Event.\r\n *\r\n * This event is dispatched by a Camera instance when the Fade Out Effect completes.\r\n *\r\n * Listen to it from a Camera instance using `Camera.on('camerafadeoutcomplete', listener)`.\r\n *\r\n * @event Phaser.Cameras.Scene2D.Events#FADE_OUT_COMPLETE\r\n * @type {string}\r\n * @since 3.3.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera that the effect began on.\r\n * @param {Phaser.Cameras.Scene2D.Effects.Fade} effect - A reference to the effect instance.\r\n */\r\nmodule.exports = 'camerafadeoutcomplete';\r\n\n\n/***/ }),\n\n/***/ 95666:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Camera Fade Out Start Event.\r\n *\r\n * This event is dispatched by a Camera instance when the Fade Out Effect starts.\r\n *\r\n * Listen to it from a Camera instance using `Camera.on('camerafadeoutstart', listener)`.\r\n *\r\n * @event Phaser.Cameras.Scene2D.Events#FADE_OUT_START\r\n * @type {string}\r\n * @since 3.3.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera that the effect began on.\r\n * @param {Phaser.Cameras.Scene2D.Effects.Fade} effect - A reference to the effect instance.\r\n * @param {number} duration - The duration of the effect.\r\n * @param {number} red - The red color channel value.\r\n * @param {number} green - The green color channel value.\r\n * @param {number} blue - The blue color channel value.\r\n */\r\nmodule.exports = 'camerafadeoutstart';\r\n\n\n/***/ }),\n\n/***/ 47056:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Camera Flash Complete Event.\r\n *\r\n * This event is dispatched by a Camera instance when the Flash Effect completes.\r\n *\r\n * Listen for it via either of the following:\r\n *\r\n * ```js\r\n * this.cameras.main.on('cameraflashcomplete', () => {});\r\n * ```\r\n *\r\n * or use the constant, to avoid having to remember the correct event string:\r\n *\r\n * ```js\r\n * this.cameras.main.on(Phaser.Cameras.Scene2D.Events.FLASH_COMPLETE, () => {});\r\n * ```\r\n *\r\n * @event Phaser.Cameras.Scene2D.Events#FLASH_COMPLETE\r\n * @type {string}\r\n * @since 3.3.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera that the effect began on.\r\n * @param {Phaser.Cameras.Scene2D.Effects.Flash} effect - A reference to the effect instance.\r\n */\r\nmodule.exports = 'cameraflashcomplete';\r\n\n\n/***/ }),\n\n/***/ 91261:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Camera Flash Start Event.\r\n *\r\n * This event is dispatched by a Camera instance when the Flash Effect starts.\r\n *\r\n * Listen for it via either of the following:\r\n *\r\n * ```js\r\n * this.cameras.main.on('cameraflashstart', () => {});\r\n * ```\r\n *\r\n * or use the constant, to avoid having to remember the correct event string:\r\n *\r\n * ```js\r\n * this.cameras.main.on(Phaser.Cameras.Scene2D.Events.FLASH_START, () => {});\r\n * ```\r\n *\r\n * @event Phaser.Cameras.Scene2D.Events#FLASH_START\r\n * @type {string}\r\n * @since 3.3.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera that the effect began on.\r\n * @param {Phaser.Cameras.Scene2D.Effects.Flash} effect - A reference to the effect instance.\r\n * @param {number} duration - The duration of the effect.\r\n * @param {number} red - The red color channel value.\r\n * @param {number} green - The green color channel value.\r\n * @param {number} blue - The blue color channel value.\r\n */\r\nmodule.exports = 'cameraflashstart';\r\n\n\n/***/ }),\n\n/***/ 45047:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Camera Follower Update Event.\r\n *\r\n * This event is dispatched by a Camera instance when it is following a\r\n * Game Object and the Camera position has been updated as a result of\r\n * that following.\r\n *\r\n * Listen to it from a Camera instance using: `camera.on('followupdate', listener)`.\r\n *\r\n * @event Phaser.Cameras.Scene2D.Events#FOLLOW_UPDATE\r\n * @type {string}\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.BaseCamera} camera - The camera that emitted the event.\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object the camera is following.\r\n */\r\nmodule.exports = 'followupdate';\r\n\n\n/***/ }),\n\n/***/ 81927:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Camera Pan Complete Event.\r\n *\r\n * This event is dispatched by a Camera instance when the Pan Effect completes.\r\n *\r\n * Listen for it via either of the following:\r\n *\r\n * ```js\r\n * this.cameras.main.on('camerapancomplete', () => {});\r\n * ```\r\n *\r\n * or use the constant, to avoid having to remember the correct event string:\r\n *\r\n * ```js\r\n * this.cameras.main.on(Phaser.Cameras.Scene2D.Events.PAN_COMPLETE, () => {});\r\n * ```\r\n *\r\n * @event Phaser.Cameras.Scene2D.Events#PAN_COMPLETE\r\n * @type {string}\r\n * @since 3.3.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera that the effect began on.\r\n * @param {Phaser.Cameras.Scene2D.Effects.Pan} effect - A reference to the effect instance.\r\n */\r\nmodule.exports = 'camerapancomplete';\r\n\n\n/***/ }),\n\n/***/ 74264:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Camera Pan Start Event.\r\n *\r\n * This event is dispatched by a Camera instance when the Pan Effect starts.\r\n *\r\n * Listen for it via either of the following:\r\n *\r\n * ```js\r\n * this.cameras.main.on('camerapanstart', () => {});\r\n * ```\r\n *\r\n * or use the constant, to avoid having to remember the correct event string:\r\n *\r\n * ```js\r\n * this.cameras.main.on(Phaser.Cameras.Scene2D.Events.PAN_START, () => {});\r\n * ```\r\n *\r\n * @event Phaser.Cameras.Scene2D.Events#PAN_START\r\n * @type {string}\r\n * @since 3.3.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera that the effect began on.\r\n * @param {Phaser.Cameras.Scene2D.Effects.Pan} effect - A reference to the effect instance.\r\n * @param {number} duration - The duration of the effect.\r\n * @param {number} x - The destination scroll x coordinate.\r\n * @param {number} y - The destination scroll y coordinate.\r\n */\r\nmodule.exports = 'camerapanstart';\r\n\n\n/***/ }),\n\n/***/ 54419:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Camera Post-Render Event.\r\n *\r\n * This event is dispatched by a Camera instance after is has finished rendering.\r\n * It is only dispatched if the Camera is rendering to a texture.\r\n *\r\n * Listen to it from a Camera instance using: `camera.on('postrender', listener)`.\r\n *\r\n * @event Phaser.Cameras.Scene2D.Events#POST_RENDER\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.BaseCamera} camera - The camera that has finished rendering to a texture.\r\n */\r\nmodule.exports = 'postrender';\r\n\n\n/***/ }),\n\n/***/ 79330:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Camera Pre-Render Event.\r\n *\r\n * This event is dispatched by a Camera instance when it is about to render.\r\n * It is only dispatched if the Camera is rendering to a texture.\r\n *\r\n * Listen to it from a Camera instance using: `camera.on('prerender', listener)`.\r\n *\r\n * @event Phaser.Cameras.Scene2D.Events#PRE_RENDER\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.BaseCamera} camera - The camera that is about to render to a texture.\r\n */\r\nmodule.exports = 'prerender';\r\n\n\n/***/ }),\n\n/***/ 93183:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Camera Rotate Complete Event.\r\n *\r\n * This event is dispatched by a Camera instance when the Rotate Effect completes.\r\n *\r\n * Listen for it via either of the following:\r\n *\r\n * ```js\r\n * this.cameras.main.on('camerarotatecomplete', () => {});\r\n * ```\r\n *\r\n * or use the constant, to avoid having to remember the correct event string:\r\n *\r\n * ```js\r\n * this.cameras.main.on(Phaser.Cameras.Scene2D.Events.ROTATE_COMPLETE, () => {});\r\n * ```\r\n *\r\n * @event Phaser.Cameras.Scene2D.Events#ROTATE_COMPLETE\r\n * @type {string}\r\n * @since 3.23.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera that the effect began on.\r\n * @param {Phaser.Cameras.Scene2D.Effects.RotateTo} effect - A reference to the effect instance.\r\n */\r\nmodule.exports = 'camerarotatecomplete';\r\n\n\n/***/ }),\n\n/***/ 80112:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Camera Rotate Start Event.\r\n *\r\n * This event is dispatched by a Camera instance when the Rotate Effect starts.\r\n *\r\n * Listen for it via either of the following:\r\n *\r\n * ```js\r\n * this.cameras.main.on('camerarotatestart', () => {});\r\n * ```\r\n *\r\n * or use the constant, to avoid having to remember the correct event string:\r\n *\r\n * ```js\r\n * this.cameras.main.on(Phaser.Cameras.Scene2D.Events.ROTATE_START, () => {});\r\n * ```\r\n *\r\n * @event Phaser.Cameras.Scene2D.Events#ROTATE_START\r\n * @type {string}\r\n * @since 3.23.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera that the effect began on.\r\n * @param {Phaser.Cameras.Scene2D.Effects.RotateTo} effect - A reference to the effect instance.\r\n * @param {number} duration - The duration of the effect.\r\n * @param {number} destination - The destination value.\r\n */\r\nmodule.exports = 'camerarotatestart';\r\n\n\n/***/ }),\n\n/***/ 62252:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Camera Shake Complete Event.\r\n *\r\n * This event is dispatched by a Camera instance when the Shake Effect completes.\r\n *\r\n * Listen for it via either of the following:\r\n *\r\n * ```js\r\n * this.cameras.main.on('camerashakecomplete', () => {});\r\n * ```\r\n *\r\n * or use the constant, to avoid having to remember the correct event string:\r\n *\r\n * ```js\r\n * this.cameras.main.on(Phaser.Cameras.Scene2D.Events.SHAKE_COMPLETE, () => {});\r\n * ```\r\n *\r\n * @event Phaser.Cameras.Scene2D.Events#SHAKE_COMPLETE\r\n * @type {string}\r\n * @since 3.3.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera that the effect began on.\r\n * @param {Phaser.Cameras.Scene2D.Effects.Shake} effect - A reference to the effect instance.\r\n */\r\nmodule.exports = 'camerashakecomplete';\r\n\n\n/***/ }),\n\n/***/ 86017:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Camera Shake Start Event.\r\n *\r\n * This event is dispatched by a Camera instance when the Shake Effect starts.\r\n *\r\n * Listen for it via either of the following:\r\n *\r\n * ```js\r\n * this.cameras.main.on('camerashakestart', () => {});\r\n * ```\r\n *\r\n * or use the constant, to avoid having to remember the correct event string:\r\n *\r\n * ```js\r\n * this.cameras.main.on(Phaser.Cameras.Scene2D.Events.SHAKE_START, () => {});\r\n * ```\r\n *\r\n * @event Phaser.Cameras.Scene2D.Events#SHAKE_START\r\n * @type {string}\r\n * @since 3.3.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera that the effect began on.\r\n * @param {Phaser.Cameras.Scene2D.Effects.Shake} effect - A reference to the effect instance.\r\n * @param {number} duration - The duration of the effect.\r\n * @param {number} intensity - The intensity of the effect.\r\n */\r\nmodule.exports = 'camerashakestart';\r\n\n\n/***/ }),\n\n/***/ 539:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Camera Zoom Complete Event.\r\n *\r\n * This event is dispatched by a Camera instance when the Zoom Effect completes.\r\n *\r\n * Listen for it via either of the following:\r\n *\r\n * ```js\r\n * this.cameras.main.on('camerazoomcomplete', () => {});\r\n * ```\r\n *\r\n * or use the constant, to avoid having to remember the correct event string:\r\n *\r\n * ```js\r\n * this.cameras.main.on(Phaser.Cameras.Scene2D.Events.ZOOM_COMPLETE, () => {});\r\n * ```\r\n *\r\n * @event Phaser.Cameras.Scene2D.Events#ZOOM_COMPLETE\r\n * @type {string}\r\n * @since 3.3.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera that the effect began on.\r\n * @param {Phaser.Cameras.Scene2D.Effects.Zoom} effect - A reference to the effect instance.\r\n */\r\nmodule.exports = 'camerazoomcomplete';\r\n\n\n/***/ }),\n\n/***/ 51892:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Camera Zoom Start Event.\r\n *\r\n * This event is dispatched by a Camera instance when the Zoom Effect starts.\r\n *\r\n * Listen for it via either of the following:\r\n *\r\n * ```js\r\n * this.cameras.main.on('camerazoomstart', () => {});\r\n * ```\r\n *\r\n * or use the constant, to avoid having to remember the correct event string:\r\n *\r\n * ```js\r\n * this.cameras.main.on(Phaser.Cameras.Scene2D.Events.ZOOM_START, () => {});\r\n * ```\r\n *\r\n * @event Phaser.Cameras.Scene2D.Events#ZOOM_START\r\n * @type {string}\r\n * @since 3.3.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera that the effect began on.\r\n * @param {Phaser.Cameras.Scene2D.Effects.Zoom} effect - A reference to the effect instance.\r\n * @param {number} duration - The duration of the effect.\r\n * @param {number} zoom - The destination zoom value.\r\n */\r\nmodule.exports = 'camerazoomstart';\r\n\n\n/***/ }),\n\n/***/ 19715:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Cameras.Scene2D.Events\r\n */\r\n\r\nmodule.exports = {\r\n\r\n DESTROY: __webpack_require__(16438),\r\n FADE_IN_COMPLETE: __webpack_require__(32726),\r\n FADE_IN_START: __webpack_require__(87807),\r\n FADE_OUT_COMPLETE: __webpack_require__(45917),\r\n FADE_OUT_START: __webpack_require__(95666),\r\n FLASH_COMPLETE: __webpack_require__(47056),\r\n FLASH_START: __webpack_require__(91261),\r\n FOLLOW_UPDATE: __webpack_require__(45047),\r\n PAN_COMPLETE: __webpack_require__(81927),\r\n PAN_START: __webpack_require__(74264),\r\n POST_RENDER: __webpack_require__(54419),\r\n PRE_RENDER: __webpack_require__(79330),\r\n ROTATE_COMPLETE: __webpack_require__(93183),\r\n ROTATE_START: __webpack_require__(80112),\r\n SHAKE_COMPLETE: __webpack_require__(62252),\r\n SHAKE_START: __webpack_require__(86017),\r\n ZOOM_COMPLETE: __webpack_require__(539),\r\n ZOOM_START: __webpack_require__(51892)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 87969:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Cameras.Scene2D\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Camera: __webpack_require__(38058),\r\n BaseCamera: __webpack_require__(71911),\r\n CameraManager: __webpack_require__(32743),\r\n Effects: __webpack_require__(20052),\r\n Events: __webpack_require__(19715)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 63091:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar GetValue = __webpack_require__(35154);\r\n\r\n/**\r\n * @classdesc\r\n * A Fixed Key Camera Control.\r\n *\r\n * This allows you to control the movement and zoom of a camera using the defined keys.\r\n *\r\n * ```javascript\r\n * var camControl = new FixedKeyControl({\r\n * camera: this.cameras.main,\r\n * left: cursors.left,\r\n * right: cursors.right,\r\n * speed: float OR { x: 0, y: 0 }\r\n * });\r\n * ```\r\n *\r\n * Movement is precise and has no 'smoothing' applied to it.\r\n *\r\n * You must call the `update` method of this controller every frame.\r\n *\r\n * @class FixedKeyControl\r\n * @memberof Phaser.Cameras.Controls\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Cameras.Controls.FixedKeyControlConfig} config - The Fixed Key Control configuration object.\r\n */\r\nvar FixedKeyControl = new Class({\r\n\r\n initialize:\r\n\r\n function FixedKeyControl (config)\r\n {\r\n /**\r\n * The Camera that this Control will update.\r\n *\r\n * @name Phaser.Cameras.Controls.FixedKeyControl#camera\r\n * @type {?Phaser.Cameras.Scene2D.Camera}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.camera = GetValue(config, 'camera', null);\r\n\r\n /**\r\n * The Key to be pressed that will move the Camera left.\r\n *\r\n * @name Phaser.Cameras.Controls.FixedKeyControl#left\r\n * @type {?Phaser.Input.Keyboard.Key}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.left = GetValue(config, 'left', null);\r\n\r\n /**\r\n * The Key to be pressed that will move the Camera right.\r\n *\r\n * @name Phaser.Cameras.Controls.FixedKeyControl#right\r\n * @type {?Phaser.Input.Keyboard.Key}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.right = GetValue(config, 'right', null);\r\n\r\n /**\r\n * The Key to be pressed that will move the Camera up.\r\n *\r\n * @name Phaser.Cameras.Controls.FixedKeyControl#up\r\n * @type {?Phaser.Input.Keyboard.Key}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.up = GetValue(config, 'up', null);\r\n\r\n /**\r\n * The Key to be pressed that will move the Camera down.\r\n *\r\n * @name Phaser.Cameras.Controls.FixedKeyControl#down\r\n * @type {?Phaser.Input.Keyboard.Key}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.down = GetValue(config, 'down', null);\r\n\r\n /**\r\n * The Key to be pressed that will zoom the Camera in.\r\n *\r\n * @name Phaser.Cameras.Controls.FixedKeyControl#zoomIn\r\n * @type {?Phaser.Input.Keyboard.Key}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.zoomIn = GetValue(config, 'zoomIn', null);\r\n\r\n /**\r\n * The Key to be pressed that will zoom the Camera out.\r\n *\r\n * @name Phaser.Cameras.Controls.FixedKeyControl#zoomOut\r\n * @type {?Phaser.Input.Keyboard.Key}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.zoomOut = GetValue(config, 'zoomOut', null);\r\n\r\n /**\r\n * The speed at which the camera will zoom if the `zoomIn` or `zoomOut` keys are pressed.\r\n *\r\n * @name Phaser.Cameras.Controls.FixedKeyControl#zoomSpeed\r\n * @type {number}\r\n * @default 0.01\r\n * @since 3.0.0\r\n */\r\n this.zoomSpeed = GetValue(config, 'zoomSpeed', 0.01);\r\n\r\n /**\r\n * The smallest zoom value the camera will reach when zoomed out.\r\n *\r\n * @name Phaser.Cameras.Controls.FixedKeyControl#minZoom\r\n * @type {number}\r\n * @default 0.001\r\n * @since 3.53.0\r\n */\r\n this.minZoom = GetValue(config, 'minZoom', 0.001);\r\n\r\n /**\r\n * The largest zoom value the camera will reach when zoomed in.\r\n *\r\n * @name Phaser.Cameras.Controls.FixedKeyControl#maxZoom\r\n * @type {number}\r\n * @default 1000\r\n * @since 3.53.0\r\n */\r\n this.maxZoom = GetValue(config, 'maxZoom', 1000);\r\n\r\n /**\r\n * The horizontal speed the camera will move.\r\n *\r\n * @name Phaser.Cameras.Controls.FixedKeyControl#speedX\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.speedX = 0;\r\n\r\n /**\r\n * The vertical speed the camera will move.\r\n *\r\n * @name Phaser.Cameras.Controls.FixedKeyControl#speedY\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.speedY = 0;\r\n\r\n var speed = GetValue(config, 'speed', null);\r\n\r\n if (typeof speed === 'number')\r\n {\r\n this.speedX = speed;\r\n this.speedY = speed;\r\n }\r\n else\r\n {\r\n this.speedX = GetValue(config, 'speed.x', 0);\r\n this.speedY = GetValue(config, 'speed.y', 0);\r\n }\r\n\r\n /**\r\n * Internal property to track the current zoom level.\r\n *\r\n * @name Phaser.Cameras.Controls.FixedKeyControl#_zoom\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this._zoom = 0;\r\n\r\n /**\r\n * A flag controlling if the Controls will update the Camera or not.\r\n *\r\n * @name Phaser.Cameras.Controls.FixedKeyControl#active\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.active = (this.camera !== null);\r\n },\r\n\r\n /**\r\n * Starts the Key Control running, providing it has been linked to a camera.\r\n *\r\n * @method Phaser.Cameras.Controls.FixedKeyControl#start\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Key Control instance.\r\n */\r\n start: function ()\r\n {\r\n this.active = (this.camera !== null);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Stops this Key Control from running. Call `start` to start it again.\r\n *\r\n * @method Phaser.Cameras.Controls.FixedKeyControl#stop\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Key Control instance.\r\n */\r\n stop: function ()\r\n {\r\n this.active = false;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Binds this Key Control to a camera.\r\n *\r\n * @method Phaser.Cameras.Controls.FixedKeyControl#setCamera\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera to bind this Key Control to.\r\n *\r\n * @return {this} This Key Control instance.\r\n */\r\n setCamera: function (camera)\r\n {\r\n this.camera = camera;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Applies the results of pressing the control keys to the Camera.\r\n *\r\n * You must call this every step, it is not called automatically.\r\n *\r\n * @method Phaser.Cameras.Controls.FixedKeyControl#update\r\n * @since 3.0.0\r\n *\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n */\r\n update: function (delta)\r\n {\r\n if (!this.active)\r\n {\r\n return;\r\n }\r\n\r\n if (delta === undefined) { delta = 1; }\r\n\r\n var cam = this.camera;\r\n\r\n if (this.up && this.up.isDown)\r\n {\r\n cam.scrollY -= ((this.speedY * delta) | 0);\r\n }\r\n else if (this.down && this.down.isDown)\r\n {\r\n cam.scrollY += ((this.speedY * delta) | 0);\r\n }\r\n\r\n if (this.left && this.left.isDown)\r\n {\r\n cam.scrollX -= ((this.speedX * delta) | 0);\r\n }\r\n else if (this.right && this.right.isDown)\r\n {\r\n cam.scrollX += ((this.speedX * delta) | 0);\r\n }\r\n\r\n // Camera zoom\r\n\r\n if (this.zoomIn && this.zoomIn.isDown)\r\n {\r\n cam.zoom -= this.zoomSpeed;\r\n\r\n if (cam.zoom < this.minZoom)\r\n {\r\n cam.zoom = this.minZoom;\r\n }\r\n }\r\n else if (this.zoomOut && this.zoomOut.isDown)\r\n {\r\n cam.zoom += this.zoomSpeed;\r\n\r\n if (cam.zoom > this.maxZoom)\r\n {\r\n cam.zoom = this.maxZoom;\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Destroys this Key Control.\r\n *\r\n * @method Phaser.Cameras.Controls.FixedKeyControl#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.camera = null;\r\n\r\n this.left = null;\r\n this.right = null;\r\n this.up = null;\r\n this.down = null;\r\n\r\n this.zoomIn = null;\r\n this.zoomOut = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = FixedKeyControl;\r\n\n\n/***/ }),\n\n/***/ 58818:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar GetValue = __webpack_require__(35154);\r\n\r\n/**\r\n * @classdesc\r\n * A Smoothed Key Camera Control.\r\n *\r\n * This allows you to control the movement and zoom of a camera using the defined keys.\r\n * Unlike the Fixed Camera Control you can also provide physics values for acceleration, drag and maxSpeed for smoothing effects.\r\n *\r\n * ```javascript\r\n * var controlConfig = {\r\n * camera: this.cameras.main,\r\n * left: cursors.left,\r\n * right: cursors.right,\r\n * up: cursors.up,\r\n * down: cursors.down,\r\n * zoomIn: this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.Q),\r\n * zoomOut: this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.E),\r\n * zoomSpeed: 0.02,\r\n * acceleration: 0.06,\r\n * drag: 0.0005,\r\n * maxSpeed: 1.0\r\n * };\r\n * ```\r\n *\r\n * You must call the `update` method of this controller every frame.\r\n *\r\n * @class SmoothedKeyControl\r\n * @memberof Phaser.Cameras.Controls\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Cameras.Controls.SmoothedKeyControlConfig} config - The Smoothed Key Control configuration object.\r\n */\r\nvar SmoothedKeyControl = new Class({\r\n\r\n initialize:\r\n\r\n function SmoothedKeyControl (config)\r\n {\r\n /**\r\n * The Camera that this Control will update.\r\n *\r\n * @name Phaser.Cameras.Controls.SmoothedKeyControl#camera\r\n * @type {?Phaser.Cameras.Scene2D.Camera}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.camera = GetValue(config, 'camera', null);\r\n\r\n /**\r\n * The Key to be pressed that will move the Camera left.\r\n *\r\n * @name Phaser.Cameras.Controls.SmoothedKeyControl#left\r\n * @type {?Phaser.Input.Keyboard.Key}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.left = GetValue(config, 'left', null);\r\n\r\n /**\r\n * The Key to be pressed that will move the Camera right.\r\n *\r\n * @name Phaser.Cameras.Controls.SmoothedKeyControl#right\r\n * @type {?Phaser.Input.Keyboard.Key}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.right = GetValue(config, 'right', null);\r\n\r\n /**\r\n * The Key to be pressed that will move the Camera up.\r\n *\r\n * @name Phaser.Cameras.Controls.SmoothedKeyControl#up\r\n * @type {?Phaser.Input.Keyboard.Key}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.up = GetValue(config, 'up', null);\r\n\r\n /**\r\n * The Key to be pressed that will move the Camera down.\r\n *\r\n * @name Phaser.Cameras.Controls.SmoothedKeyControl#down\r\n * @type {?Phaser.Input.Keyboard.Key}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.down = GetValue(config, 'down', null);\r\n\r\n /**\r\n * The Key to be pressed that will zoom the Camera in.\r\n *\r\n * @name Phaser.Cameras.Controls.SmoothedKeyControl#zoomIn\r\n * @type {?Phaser.Input.Keyboard.Key}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.zoomIn = GetValue(config, 'zoomIn', null);\r\n\r\n /**\r\n * The Key to be pressed that will zoom the Camera out.\r\n *\r\n * @name Phaser.Cameras.Controls.SmoothedKeyControl#zoomOut\r\n * @type {?Phaser.Input.Keyboard.Key}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.zoomOut = GetValue(config, 'zoomOut', null);\r\n\r\n /**\r\n * The speed at which the camera will zoom if the `zoomIn` or `zoomOut` keys are pressed.\r\n *\r\n * @name Phaser.Cameras.Controls.SmoothedKeyControl#zoomSpeed\r\n * @type {number}\r\n * @default 0.01\r\n * @since 3.0.0\r\n */\r\n this.zoomSpeed = GetValue(config, 'zoomSpeed', 0.01);\r\n\r\n /**\r\n * The smallest zoom value the camera will reach when zoomed out.\r\n *\r\n * @name Phaser.Cameras.Controls.SmoothedKeyControl#minZoom\r\n * @type {number}\r\n * @default 0.001\r\n * @since 3.53.0\r\n */\r\n this.minZoom = GetValue(config, 'minZoom', 0.001);\r\n\r\n /**\r\n * The largest zoom value the camera will reach when zoomed in.\r\n *\r\n * @name Phaser.Cameras.Controls.SmoothedKeyControl#maxZoom\r\n * @type {number}\r\n * @default 1000\r\n * @since 3.53.0\r\n */\r\n this.maxZoom = GetValue(config, 'maxZoom', 1000);\r\n\r\n /**\r\n * The horizontal acceleration the camera will move.\r\n *\r\n * @name Phaser.Cameras.Controls.SmoothedKeyControl#accelX\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.accelX = 0;\r\n\r\n /**\r\n * The vertical acceleration the camera will move.\r\n *\r\n * @name Phaser.Cameras.Controls.SmoothedKeyControl#accelY\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.accelY = 0;\r\n\r\n var accel = GetValue(config, 'acceleration', null);\r\n\r\n if (typeof accel === 'number')\r\n {\r\n this.accelX = accel;\r\n this.accelY = accel;\r\n }\r\n else\r\n {\r\n this.accelX = GetValue(config, 'acceleration.x', 0);\r\n this.accelY = GetValue(config, 'acceleration.y', 0);\r\n }\r\n\r\n /**\r\n * The horizontal drag applied to the camera when it is moving.\r\n *\r\n * @name Phaser.Cameras.Controls.SmoothedKeyControl#dragX\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.dragX = 0;\r\n\r\n /**\r\n * The vertical drag applied to the camera when it is moving.\r\n *\r\n * @name Phaser.Cameras.Controls.SmoothedKeyControl#dragY\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.dragY = 0;\r\n\r\n var drag = GetValue(config, 'drag', null);\r\n\r\n if (typeof drag === 'number')\r\n {\r\n this.dragX = drag;\r\n this.dragY = drag;\r\n }\r\n else\r\n {\r\n this.dragX = GetValue(config, 'drag.x', 0);\r\n this.dragY = GetValue(config, 'drag.y', 0);\r\n }\r\n\r\n /**\r\n * The maximum horizontal speed the camera will move.\r\n *\r\n * @name Phaser.Cameras.Controls.SmoothedKeyControl#maxSpeedX\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.maxSpeedX = 0;\r\n\r\n /**\r\n * The maximum vertical speed the camera will move.\r\n *\r\n * @name Phaser.Cameras.Controls.SmoothedKeyControl#maxSpeedY\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.maxSpeedY = 0;\r\n\r\n var maxSpeed = GetValue(config, 'maxSpeed', null);\r\n\r\n if (typeof maxSpeed === 'number')\r\n {\r\n this.maxSpeedX = maxSpeed;\r\n this.maxSpeedY = maxSpeed;\r\n }\r\n else\r\n {\r\n this.maxSpeedX = GetValue(config, 'maxSpeed.x', 0);\r\n this.maxSpeedY = GetValue(config, 'maxSpeed.y', 0);\r\n }\r\n\r\n /**\r\n * Internal property to track the speed of the control.\r\n *\r\n * @name Phaser.Cameras.Controls.SmoothedKeyControl#_speedX\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this._speedX = 0;\r\n\r\n /**\r\n * Internal property to track the speed of the control.\r\n *\r\n * @name Phaser.Cameras.Controls.SmoothedKeyControl#_speedY\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this._speedY = 0;\r\n\r\n /**\r\n * Internal property to track the zoom of the control.\r\n *\r\n * @name Phaser.Cameras.Controls.SmoothedKeyControl#_zoom\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this._zoom = 0;\r\n\r\n /**\r\n * A flag controlling if the Controls will update the Camera or not.\r\n *\r\n * @name Phaser.Cameras.Controls.SmoothedKeyControl#active\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.active = (this.camera !== null);\r\n },\r\n\r\n /**\r\n * Starts the Key Control running, providing it has been linked to a camera.\r\n *\r\n * @method Phaser.Cameras.Controls.SmoothedKeyControl#start\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Key Control instance.\r\n */\r\n start: function ()\r\n {\r\n this.active = (this.camera !== null);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Stops this Key Control from running. Call `start` to start it again.\r\n *\r\n * @method Phaser.Cameras.Controls.SmoothedKeyControl#stop\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Key Control instance.\r\n */\r\n stop: function ()\r\n {\r\n this.active = false;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Binds this Key Control to a camera.\r\n *\r\n * @method Phaser.Cameras.Controls.SmoothedKeyControl#setCamera\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera to bind this Key Control to.\r\n *\r\n * @return {this} This Key Control instance.\r\n */\r\n setCamera: function (camera)\r\n {\r\n this.camera = camera;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Applies the results of pressing the control keys to the Camera.\r\n *\r\n * You must call this every step, it is not called automatically.\r\n *\r\n * @method Phaser.Cameras.Controls.SmoothedKeyControl#update\r\n * @since 3.0.0\r\n *\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n */\r\n update: function (delta)\r\n {\r\n if (!this.active)\r\n {\r\n return;\r\n }\r\n\r\n if (delta === undefined) { delta = 1; }\r\n\r\n var cam = this.camera;\r\n\r\n // Apply Deceleration\r\n\r\n if (this._speedX > 0)\r\n {\r\n this._speedX -= this.dragX * delta;\r\n\r\n if (this._speedX < 0)\r\n {\r\n this._speedX = 0;\r\n }\r\n }\r\n else if (this._speedX < 0)\r\n {\r\n this._speedX += this.dragX * delta;\r\n\r\n if (this._speedX > 0)\r\n {\r\n this._speedX = 0;\r\n }\r\n }\r\n\r\n if (this._speedY > 0)\r\n {\r\n this._speedY -= this.dragY * delta;\r\n\r\n if (this._speedY < 0)\r\n {\r\n this._speedY = 0;\r\n }\r\n }\r\n else if (this._speedY < 0)\r\n {\r\n this._speedY += this.dragY * delta;\r\n\r\n if (this._speedY > 0)\r\n {\r\n this._speedY = 0;\r\n }\r\n }\r\n\r\n // Check for keys\r\n\r\n if (this.up && this.up.isDown)\r\n {\r\n this._speedY += this.accelY;\r\n\r\n if (this._speedY > this.maxSpeedY)\r\n {\r\n this._speedY = this.maxSpeedY;\r\n }\r\n }\r\n else if (this.down && this.down.isDown)\r\n {\r\n this._speedY -= this.accelY;\r\n\r\n if (this._speedY < -this.maxSpeedY)\r\n {\r\n this._speedY = -this.maxSpeedY;\r\n }\r\n }\r\n\r\n if (this.left && this.left.isDown)\r\n {\r\n this._speedX += this.accelX;\r\n\r\n if (this._speedX > this.maxSpeedX)\r\n {\r\n this._speedX = this.maxSpeedX;\r\n }\r\n }\r\n else if (this.right && this.right.isDown)\r\n {\r\n this._speedX -= this.accelX;\r\n\r\n if (this._speedX < -this.maxSpeedX)\r\n {\r\n this._speedX = -this.maxSpeedX;\r\n }\r\n }\r\n\r\n // Camera zoom\r\n\r\n if (this.zoomIn && this.zoomIn.isDown)\r\n {\r\n this._zoom = -this.zoomSpeed;\r\n }\r\n else if (this.zoomOut && this.zoomOut.isDown)\r\n {\r\n this._zoom = this.zoomSpeed;\r\n }\r\n else\r\n {\r\n this._zoom = 0;\r\n }\r\n\r\n // Apply to Camera\r\n\r\n if (this._speedX !== 0)\r\n {\r\n cam.scrollX -= ((this._speedX * delta) | 0);\r\n }\r\n\r\n if (this._speedY !== 0)\r\n {\r\n cam.scrollY -= ((this._speedY * delta) | 0);\r\n }\r\n\r\n if (this._zoom !== 0)\r\n {\r\n cam.zoom += this._zoom;\r\n\r\n if (cam.zoom < this.minZoom)\r\n {\r\n cam.zoom = this.minZoom;\r\n }\r\n else if (cam.zoom > this.maxZoom)\r\n {\r\n cam.zoom = this.maxZoom;\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Destroys this Key Control.\r\n *\r\n * @method Phaser.Cameras.Controls.SmoothedKeyControl#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.camera = null;\r\n\r\n this.left = null;\r\n this.right = null;\r\n this.up = null;\r\n this.down = null;\r\n\r\n this.zoomIn = null;\r\n this.zoomOut = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = SmoothedKeyControl;\r\n\n\n/***/ }),\n\n/***/ 38865:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Cameras.Controls\r\n */\r\n\r\nmodule.exports = {\r\n\r\n FixedKeyControl: __webpack_require__(63091),\r\n SmoothedKeyControl: __webpack_require__(58818)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 26638:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Cameras\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Types.Cameras\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Controls: __webpack_require__(38865),\r\n Scene2D: __webpack_require__(87969)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 8054:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Global constants.\r\n *\r\n * @ignore\r\n */\r\n\r\nvar CONST = {\r\n\r\n /**\r\n * Phaser Release Version\r\n *\r\n * @name Phaser.VERSION\r\n * @const\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n VERSION: '3.86.0',\r\n\r\n BlendModes: __webpack_require__(10312),\r\n\r\n ScaleModes: __webpack_require__(29795),\r\n\r\n /**\r\n * This setting will auto-detect if the browser is capable of suppporting WebGL.\r\n * If it is, it will use the WebGL Renderer. If not, it will fall back to the Canvas Renderer.\r\n *\r\n * @name Phaser.AUTO\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n AUTO: 0,\r\n\r\n /**\r\n * Forces Phaser to only use the Canvas Renderer, regardless if the browser supports\r\n * WebGL or not.\r\n *\r\n * @name Phaser.CANVAS\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n CANVAS: 1,\r\n\r\n /**\r\n * Forces Phaser to use the WebGL Renderer. If the browser does not support it, there is\r\n * no fallback to Canvas with this setting, so you should trap it and display a suitable\r\n * message to the user.\r\n *\r\n * @name Phaser.WEBGL\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n WEBGL: 2,\r\n\r\n /**\r\n * A Headless Renderer doesn't create either a Canvas or WebGL Renderer. However, it still\r\n * absolutely relies on the DOM being present and available. This mode is meant for unit testing,\r\n * not for running Phaser on the server, which is something you really shouldn't do.\r\n *\r\n * @name Phaser.HEADLESS\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n HEADLESS: 3,\r\n\r\n /**\r\n * In Phaser the value -1 means 'forever' in lots of cases, this const allows you to use it instead\r\n * to help you remember what the value is doing in your code.\r\n *\r\n * @name Phaser.FOREVER\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n FOREVER: -1,\r\n\r\n /**\r\n * Direction constant.\r\n *\r\n * @name Phaser.NONE\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n NONE: 4,\r\n\r\n /**\r\n * Direction constant.\r\n *\r\n * @name Phaser.UP\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n UP: 5,\r\n\r\n /**\r\n * Direction constant.\r\n *\r\n * @name Phaser.DOWN\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n DOWN: 6,\r\n\r\n /**\r\n * Direction constant.\r\n *\r\n * @name Phaser.LEFT\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n LEFT: 7,\r\n\r\n /**\r\n * Direction constant.\r\n *\r\n * @name Phaser.RIGHT\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n RIGHT: 8\r\n\r\n};\r\n\r\nmodule.exports = CONST;\r\n\n\n/***/ }),\n\n/***/ 69547:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(8054);\r\nvar DefaultPlugins = __webpack_require__(42363);\r\nvar Device = __webpack_require__(82264);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar GetValue = __webpack_require__(35154);\r\nvar IsPlainObject = __webpack_require__(41212);\r\nvar NOOP = __webpack_require__(29747);\r\nvar PhaserMath = __webpack_require__(75508);\r\nvar PIPELINE_CONST = __webpack_require__(36060);\r\nvar ValueToColor = __webpack_require__(80333);\r\n\r\n/**\r\n * @classdesc\r\n * The active game configuration settings, parsed from a {@link Phaser.Types.Core.GameConfig} object.\r\n *\r\n * @class Config\r\n * @memberof Phaser.Core\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Core.GameConfig} [GameConfig] - The configuration object for your Phaser Game instance.\r\n *\r\n * @see Phaser.Game#config\r\n */\r\nvar Config = new Class({\r\n\r\n initialize:\r\n\r\n function Config (config)\r\n {\r\n if (config === undefined) { config = {}; }\r\n\r\n var defaultBannerColor = [\r\n '#ff0000',\r\n '#ffff00',\r\n '#00ff00',\r\n '#00ffff',\r\n '#000000'\r\n ];\r\n\r\n var defaultBannerTextColor = '#ffffff';\r\n\r\n // Scale Manager - Anything set in here over-rides anything set in the core game config\r\n\r\n var scaleConfig = GetValue(config, 'scale', null);\r\n\r\n /**\r\n * @const {(number|string)} Phaser.Core.Config#width - The width of the underlying canvas, in pixels.\r\n */\r\n this.width = GetValue(scaleConfig, 'width', 1024, config);\r\n\r\n /**\r\n * @const {(number|string)} Phaser.Core.Config#height - The height of the underlying canvas, in pixels.\r\n */\r\n this.height = GetValue(scaleConfig, 'height', 768, config);\r\n\r\n /**\r\n * @const {(Phaser.Scale.ZoomType|number)} Phaser.Core.Config#zoom - The zoom factor, as used by the Scale Manager.\r\n */\r\n this.zoom = GetValue(scaleConfig, 'zoom', 1, config);\r\n\r\n /**\r\n * @const {?*} Phaser.Core.Config#parent - A parent DOM element into which the canvas created by the renderer will be injected.\r\n */\r\n this.parent = GetValue(scaleConfig, 'parent', undefined, config);\r\n\r\n /**\r\n * @const {Phaser.Scale.ScaleModeType} Phaser.Core.Config#scaleMode - The scale mode as used by the Scale Manager. The default is zero, which is no scaling.\r\n */\r\n this.scaleMode = GetValue(scaleConfig, (scaleConfig) ? 'mode' : 'scaleMode', 0, config);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#expandParent - Is the Scale Manager allowed to adjust the CSS height property of the parent to be 100%?\r\n */\r\n this.expandParent = GetValue(scaleConfig, 'expandParent', true, config);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#autoRound - Automatically round the display and style sizes of the canvas. This can help with performance in lower-powered devices.\r\n */\r\n this.autoRound = GetValue(scaleConfig, 'autoRound', false, config);\r\n\r\n /**\r\n * @const {Phaser.Scale.CenterType} Phaser.Core.Config#autoCenter - Automatically center the canvas within the parent?\r\n */\r\n this.autoCenter = GetValue(scaleConfig, 'autoCenter', 0, config);\r\n\r\n /**\r\n * @const {number} Phaser.Core.Config#resizeInterval - How many ms should elapse before checking if the browser size has changed?\r\n */\r\n this.resizeInterval = GetValue(scaleConfig, 'resizeInterval', 500, config);\r\n\r\n /**\r\n * @const {?(HTMLElement|string)} Phaser.Core.Config#fullscreenTarget - The DOM element that will be sent into full screen mode, or its `id`. If undefined Phaser will create its own div and insert the canvas into it when entering fullscreen mode.\r\n */\r\n this.fullscreenTarget = GetValue(scaleConfig, 'fullscreenTarget', null, config);\r\n\r\n /**\r\n * @const {number} Phaser.Core.Config#minWidth - The minimum width, in pixels, the canvas will scale down to. A value of zero means no minimum.\r\n */\r\n this.minWidth = GetValue(scaleConfig, 'min.width', 0, config);\r\n\r\n /**\r\n * @const {number} Phaser.Core.Config#maxWidth - The maximum width, in pixels, the canvas will scale up to. A value of zero means no maximum.\r\n */\r\n this.maxWidth = GetValue(scaleConfig, 'max.width', 0, config);\r\n\r\n /**\r\n * @const {number} Phaser.Core.Config#minHeight - The minimum height, in pixels, the canvas will scale down to. A value of zero means no minimum.\r\n */\r\n this.minHeight = GetValue(scaleConfig, 'min.height', 0, config);\r\n\r\n /**\r\n * @const {number} Phaser.Core.Config#maxHeight - The maximum height, in pixels, the canvas will scale up to. A value of zero means no maximum.\r\n */\r\n this.maxHeight = GetValue(scaleConfig, 'max.height', 0, config);\r\n\r\n /**\r\n * @const {number} Phaser.Core.Config#snapWidth - The horizontal amount to snap the canvas by when the Scale Manager is resizing. A value of zero means no snapping.\r\n */\r\n this.snapWidth = GetValue(scaleConfig, 'snap.width', 0, config);\r\n\r\n /**\r\n * @const {number} Phaser.Core.Config#snapHeight - The vertical amount to snap the canvas by when the Scale Manager is resizing. A value of zero means no snapping.\r\n */\r\n this.snapHeight = GetValue(scaleConfig, 'snap.height', 0, config);\r\n\r\n /**\r\n * @const {number} Phaser.Core.Config#renderType - Force Phaser to use a specific renderer. Can be `CONST.CANVAS`, `CONST.WEBGL`, `CONST.HEADLESS` or `CONST.AUTO` (default)\r\n */\r\n this.renderType = GetValue(config, 'type', CONST.AUTO);\r\n\r\n /**\r\n * @const {?HTMLCanvasElement} Phaser.Core.Config#canvas - Force Phaser to use your own Canvas element instead of creating one.\r\n */\r\n this.canvas = GetValue(config, 'canvas', null);\r\n\r\n /**\r\n * @const {?(CanvasRenderingContext2D|WebGLRenderingContext)} Phaser.Core.Config#context - Force Phaser to use your own Canvas context instead of creating one.\r\n */\r\n this.context = GetValue(config, 'context', null);\r\n\r\n /**\r\n * @const {?string} Phaser.Core.Config#canvasStyle - Optional CSS attributes to be set on the canvas object created by the renderer.\r\n */\r\n this.canvasStyle = GetValue(config, 'canvasStyle', null);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#customEnvironment - Is Phaser running under a custom (non-native web) environment? If so, set this to `true` to skip internal Feature detection. If `true` the `renderType` cannot be left as `AUTO`.\r\n */\r\n this.customEnvironment = GetValue(config, 'customEnvironment', false);\r\n\r\n /**\r\n * @const {?object} Phaser.Core.Config#sceneConfig - The default Scene configuration object.\r\n */\r\n this.sceneConfig = GetValue(config, 'scene', null);\r\n\r\n /**\r\n * @const {string[]} Phaser.Core.Config#seed - A seed which the Random Data Generator will use. If not given, a dynamic seed based on the time is used.\r\n */\r\n this.seed = GetValue(config, 'seed', [ (Date.now() * Math.random()).toString() ]);\r\n\r\n PhaserMath.RND = new PhaserMath.RandomDataGenerator(this.seed);\r\n\r\n /**\r\n * @const {string} Phaser.Core.Config#gameTitle - The title of the game.\r\n */\r\n this.gameTitle = GetValue(config, 'title', '');\r\n\r\n /**\r\n * @const {string} Phaser.Core.Config#gameURL - The URL of the game.\r\n */\r\n this.gameURL = GetValue(config, 'url', 'https://phaser.io/v385/');\r\n\r\n /**\r\n * @const {string} Phaser.Core.Config#gameVersion - The version of the game.\r\n */\r\n this.gameVersion = GetValue(config, 'version', '');\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#autoFocus - If `true` the window will automatically be given focus immediately and on any future mousedown event.\r\n */\r\n this.autoFocus = GetValue(config, 'autoFocus', true);\r\n\r\n /**\r\n * @const {(number|boolean)} Phaser.Core.Config#stableSort - `false` or `0` = Use the built-in StableSort (needed for older browsers), `true` or `1` = Rely on ES2019 Array.sort being stable (modern browsers only), or `-1` = Try and determine this automatically based on browser inspection (not guaranteed to work, errs on side of caution).\r\n */\r\n this.stableSort = GetValue(config, 'stableSort', -1);\r\n\r\n if (this.stableSort === -1)\r\n {\r\n this.stableSort = (Device.browser.es2019) ? 1 : 0;\r\n }\r\n\r\n Device.features.stableSort = this.stableSort;\r\n\r\n // DOM Element Container\r\n\r\n /**\r\n * @const {?boolean} Phaser.Core.Config#domCreateContainer - Should the game create a div element to act as a DOM Container? Only enable if you're using DOM Element objects. You must provide a parent object if you use this feature.\r\n */\r\n this.domCreateContainer = GetValue(config, 'dom.createContainer', false);\r\n\r\n /**\r\n * @const {?string} Phaser.Core.Config#domPointerEvents - The default `pointerEvents` attribute set on the DOM Container.\r\n */\r\n this.domPointerEvents = GetValue(config, 'dom.pointerEvents', 'none');\r\n\r\n // Input\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#inputKeyboard - Enable the Keyboard Plugin. This can be disabled in games that don't need keyboard input.\r\n */\r\n this.inputKeyboard = GetValue(config, 'input.keyboard', true);\r\n\r\n /**\r\n * @const {*} Phaser.Core.Config#inputKeyboardEventTarget - The DOM Target to listen for keyboard events on. Defaults to `window` if not specified.\r\n */\r\n this.inputKeyboardEventTarget = GetValue(config, 'input.keyboard.target', window);\r\n\r\n /**\r\n * @const {?number[]} Phaser.Core.Config#inputKeyboardCapture - `preventDefault` will be called on every non-modified key which has a key code in this array. By default, it is empty.\r\n */\r\n this.inputKeyboardCapture = GetValue(config, 'input.keyboard.capture', []);\r\n\r\n /**\r\n * @const {(boolean|object)} Phaser.Core.Config#inputMouse - Enable the Mouse Plugin. This can be disabled in games that don't need mouse input.\r\n */\r\n this.inputMouse = GetValue(config, 'input.mouse', true);\r\n\r\n /**\r\n * @const {?*} Phaser.Core.Config#inputMouseEventTarget - The DOM Target to listen for mouse events on. Defaults to the game canvas if not specified.\r\n */\r\n this.inputMouseEventTarget = GetValue(config, 'input.mouse.target', null);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#inputMousePreventDefaultDown - Should `mousedown` DOM events have `preventDefault` called on them?\r\n */\r\n this.inputMousePreventDefaultDown = GetValue(config, 'input.mouse.preventDefaultDown', true);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#inputMousePreventDefaultUp - Should `mouseup` DOM events have `preventDefault` called on them?\r\n */\r\n this.inputMousePreventDefaultUp = GetValue(config, 'input.mouse.preventDefaultUp', true);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#inputMousePreventDefaultMove - Should `mousemove` DOM events have `preventDefault` called on them?\r\n */\r\n this.inputMousePreventDefaultMove = GetValue(config, 'input.mouse.preventDefaultMove', true);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#inputMousePreventDefaultWheel - Should `wheel` DOM events have `preventDefault` called on them?\r\n */\r\n this.inputMousePreventDefaultWheel = GetValue(config, 'input.mouse.preventDefaultWheel', true);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#inputTouch - Enable the Touch Plugin. This can be disabled in games that don't need touch input.\r\n */\r\n this.inputTouch = GetValue(config, 'input.touch', Device.input.touch);\r\n\r\n /**\r\n * @const {?*} Phaser.Core.Config#inputTouchEventTarget - The DOM Target to listen for touch events on. Defaults to the game canvas if not specified.\r\n */\r\n this.inputTouchEventTarget = GetValue(config, 'input.touch.target', null);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#inputTouchCapture - Should touch events be captured? I.e. have prevent default called on them.\r\n */\r\n this.inputTouchCapture = GetValue(config, 'input.touch.capture', true);\r\n\r\n /**\r\n * @const {number} Phaser.Core.Config#inputActivePointers - The number of Pointer objects created by default. In a mouse-only, or non-multi touch game, you can leave this as 1.\r\n */\r\n this.inputActivePointers = GetValue(config, 'input.activePointers', 1);\r\n\r\n /**\r\n * @const {number} Phaser.Core.Config#inputSmoothFactor - The smoothing factor to apply during Pointer movement. See {@link Phaser.Input.Pointer#smoothFactor}.\r\n */\r\n this.inputSmoothFactor = GetValue(config, 'input.smoothFactor', 0);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#inputWindowEvents - Should Phaser listen for input events on the Window? If you disable this, events like 'POINTER_UP_OUTSIDE' will no longer fire.\r\n */\r\n this.inputWindowEvents = GetValue(config, 'input.windowEvents', true);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#inputGamepad - Enable the Gamepad Plugin. This can be disabled in games that don't need gamepad input.\r\n */\r\n this.inputGamepad = GetValue(config, 'input.gamepad', false);\r\n\r\n /**\r\n * @const {*} Phaser.Core.Config#inputGamepadEventTarget - The DOM Target to listen for gamepad events on. Defaults to `window` if not specified.\r\n */\r\n this.inputGamepadEventTarget = GetValue(config, 'input.gamepad.target', window);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#disableContextMenu - Set to `true` to disable the right-click context menu.\r\n */\r\n this.disableContextMenu = GetValue(config, 'disableContextMenu', false);\r\n\r\n /**\r\n * @const {Phaser.Types.Core.AudioConfig} Phaser.Core.Config#audio - The Audio Configuration object.\r\n */\r\n this.audio = GetValue(config, 'audio', {});\r\n\r\n // If you do: { banner: false } it won't display any banner at all\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#hideBanner - Don't write the banner line to the console.log. See `Phaser.Types.Core.BannerConfig` for details of this object.\r\n */\r\n this.hideBanner = (GetValue(config, 'banner', null) === false);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#hidePhaser - Omit Phaser's name and version from the banner.\r\n */\r\n this.hidePhaser = GetValue(config, 'banner.hidePhaser', false);\r\n\r\n /**\r\n * @const {string} Phaser.Core.Config#bannerTextColor - The color of the banner text.\r\n */\r\n this.bannerTextColor = GetValue(config, 'banner.text', defaultBannerTextColor);\r\n\r\n /**\r\n * @const {string[]} Phaser.Core.Config#bannerBackgroundColor - The background colors of the banner.\r\n */\r\n this.bannerBackgroundColor = GetValue(config, 'banner.background', defaultBannerColor);\r\n\r\n if (this.gameTitle === '' && this.hidePhaser)\r\n {\r\n this.hideBanner = true;\r\n }\r\n\r\n /**\r\n * @const {Phaser.Types.Core.FPSConfig} Phaser.Core.Config#fps - The Frame Rate Configuration object, as parsed by the Timestep class.\r\n */\r\n this.fps = GetValue(config, 'fps', null);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#disablePreFX - Disables the automatic creation of the Pre FX Pipelines. If disabled, you cannot use the built-in Pre FX on Game Objects.\r\n */\r\n this.disablePreFX = GetValue(config, 'disablePreFX', false);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#disablePostFX - Disables the automatic creation of the Post FX Pipelines. If disabled, you cannot use the built-in Post FX on Game Objects.\r\n */\r\n this.disablePostFX = GetValue(config, 'disablePostFX', false);\r\n\r\n // Render Settings - Anything set in here over-rides anything set in the core game config\r\n\r\n var renderConfig = GetValue(config, 'render', null);\r\n\r\n /**\r\n * @const {Phaser.Types.Core.PipelineConfig} Phaser.Core.Config#pipeline - An object mapping WebGL names to WebGLPipeline classes. These should be class constructors, not instances.\r\n */\r\n this.pipeline = GetValue(renderConfig, 'pipeline', null, config);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#autoMobilePipeline - Automatically enable the Mobile Pipeline if iOS or Android detected?\r\n */\r\n this.autoMobilePipeline = GetValue(renderConfig, 'autoMobilePipeline', true, config);\r\n\r\n /**\r\n * @const {string} Phaser.Core.Config#defaultPipeline - The WebGL Pipeline that Game Objects will use by default. Set to 'MultiPipeline' as standard. See also 'autoMobilePipeline'.\r\n */\r\n this.defaultPipeline = GetValue(renderConfig, 'defaultPipeline', PIPELINE_CONST.MULTI_PIPELINE, config);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#antialias - When set to `true`, WebGL uses linear interpolation to draw scaled or rotated textures, giving a smooth appearance. When set to `false`, WebGL uses nearest-neighbor interpolation, giving a crisper appearance. `false` also disables antialiasing of the game canvas itself, if the browser supports it, when the game canvas is scaled.\r\n */\r\n this.antialias = GetValue(renderConfig, 'antialias', true, config);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#antialiasGL - Sets the `antialias` property when the WebGL context is created. Setting this value does not impact any subsequent textures that are created, or the canvas style attributes.\r\n */\r\n this.antialiasGL = GetValue(renderConfig, 'antialiasGL', true, config);\r\n\r\n /**\r\n * @const {string} Phaser.Core.Config#mipmapFilter - Sets the mipmap magFilter to be used when creating WebGL textures. Don't set unless you wish to create mipmaps. Set to one of the following: 'NEAREST', 'LINEAR', 'NEAREST_MIPMAP_NEAREST', 'LINEAR_MIPMAP_NEAREST', 'NEAREST_MIPMAP_LINEAR' or 'LINEAR_MIPMAP_LINEAR'.\r\n */\r\n this.mipmapFilter = GetValue(renderConfig, 'mipmapFilter', '', config);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#desynchronized - When set to `true` it will create a desynchronized context for both 2D and WebGL. See https://developers.google.com/web/updates/2019/05/desynchronized for details.\r\n */\r\n this.desynchronized = GetValue(renderConfig, 'desynchronized', false, config);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#roundPixels - Draw texture-based Game Objects at only whole-integer positions. Game Objects without textures, like Graphics, ignore this property.\r\n */\r\n this.roundPixels = GetValue(renderConfig, 'roundPixels', false, config);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#pixelArt - Prevent pixel art from becoming blurred when scaled. It will remain crisp (tells the WebGL renderer to automatically create textures using a linear filter mode).\r\n */\r\n this.pixelArt = GetValue(renderConfig, 'pixelArt', this.zoom !== 1, config);\r\n\r\n if (this.pixelArt)\r\n {\r\n this.antialias = false;\r\n this.antialiasGL = false;\r\n this.roundPixels = true;\r\n }\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#transparent - Whether the game canvas will have a transparent background.\r\n */\r\n this.transparent = GetValue(renderConfig, 'transparent', false, config);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#clearBeforeRender - Whether the game canvas will be cleared between each rendering frame. You can disable this if you have a full-screen background image or game object.\r\n */\r\n this.clearBeforeRender = GetValue(renderConfig, 'clearBeforeRender', true, config);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#preserveDrawingBuffer - If the value is true the WebGL buffers will not be cleared and will preserve their values until cleared or overwritten by the author.\r\n */\r\n this.preserveDrawingBuffer = GetValue(renderConfig, 'preserveDrawingBuffer', false, config);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#premultipliedAlpha - In WebGL mode, sets the drawing buffer to contain colors with pre-multiplied alpha.\r\n */\r\n this.premultipliedAlpha = GetValue(renderConfig, 'premultipliedAlpha', true, config);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#failIfMajorPerformanceCaveat - Let the browser abort creating a WebGL context if it judges performance would be unacceptable.\r\n */\r\n this.failIfMajorPerformanceCaveat = GetValue(renderConfig, 'failIfMajorPerformanceCaveat', false, config);\r\n\r\n /**\r\n * @const {string} Phaser.Core.Config#powerPreference - \"high-performance\", \"low-power\" or \"default\". A hint to the browser on how much device power the game might use.\r\n */\r\n this.powerPreference = GetValue(renderConfig, 'powerPreference', 'default', config);\r\n\r\n /**\r\n * @const {number} Phaser.Core.Config#batchSize - The default WebGL Batch size. Represents the number of _quads_ that can be added to a single batch.\r\n */\r\n this.batchSize = GetValue(renderConfig, 'batchSize', 4096, config);\r\n\r\n /**\r\n * @const {number} Phaser.Core.Config#maxTextures - When in WebGL mode, this sets the maximum number of GPU Textures to use. The default, -1, will use all available units. The WebGL1 spec says all browsers should provide a minimum of 8.\r\n */\r\n this.maxTextures = GetValue(renderConfig, 'maxTextures', -1, config);\r\n\r\n /**\r\n * @const {number} Phaser.Core.Config#maxLights - The maximum number of lights allowed to be visible within range of a single Camera in the LightManager.\r\n */\r\n this.maxLights = GetValue(renderConfig, 'maxLights', 10, config);\r\n\r\n var bgc = GetValue(config, 'backgroundColor', 0);\r\n\r\n /**\r\n * @const {Phaser.Display.Color} Phaser.Core.Config#backgroundColor - The background color of the game canvas. The default is black. This value is ignored if `transparent` is set to `true`.\r\n */\r\n this.backgroundColor = ValueToColor(bgc);\r\n\r\n if (this.transparent)\r\n {\r\n this.backgroundColor = ValueToColor(0x000000);\r\n this.backgroundColor.alpha = 0;\r\n }\r\n\r\n /**\r\n * @const {Phaser.Types.Core.BootCallback} Phaser.Core.Config#preBoot - Called before Phaser boots. Useful for initializing anything not related to Phaser that Phaser may require while booting.\r\n */\r\n this.preBoot = GetValue(config, 'callbacks.preBoot', NOOP);\r\n\r\n /**\r\n * @const {Phaser.Types.Core.BootCallback} Phaser.Core.Config#postBoot - A function to run at the end of the boot sequence. At this point, all the game systems have started and plugins have been loaded.\r\n */\r\n this.postBoot = GetValue(config, 'callbacks.postBoot', NOOP);\r\n\r\n /**\r\n * @const {Phaser.Types.Core.PhysicsConfig} Phaser.Core.Config#physics - The Physics Configuration object.\r\n */\r\n this.physics = GetValue(config, 'physics', {});\r\n\r\n /**\r\n * @const {(boolean|string)} Phaser.Core.Config#defaultPhysicsSystem - The default physics system. It will be started for each scene. Either 'arcade', 'impact' or 'matter'.\r\n */\r\n this.defaultPhysicsSystem = GetValue(this.physics, 'default', false);\r\n\r\n /**\r\n * @const {string} Phaser.Core.Config#loaderBaseURL - A URL used to resolve paths given to the loader. Example: 'http://labs.phaser.io/assets/'.\r\n */\r\n this.loaderBaseURL = GetValue(config, 'loader.baseURL', '');\r\n\r\n /**\r\n * @const {string} Phaser.Core.Config#loaderPath - A URL path used to resolve relative paths given to the loader. Example: 'images/sprites/'.\r\n */\r\n this.loaderPath = GetValue(config, 'loader.path', '');\r\n\r\n /**\r\n * @const {number} Phaser.Core.Config#loaderMaxParallelDownloads - Maximum parallel downloads allowed for resources (Default to 32).\r\n */\r\n this.loaderMaxParallelDownloads = GetValue(config, 'loader.maxParallelDownloads', (Device.os.android) ? 6 : 32);\r\n\r\n /**\r\n * @const {(string|undefined)} Phaser.Core.Config#loaderCrossOrigin - 'anonymous', 'use-credentials', or `undefined`. If you're not making cross-origin requests, leave this as `undefined`. See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes}.\r\n */\r\n this.loaderCrossOrigin = GetValue(config, 'loader.crossOrigin', undefined);\r\n\r\n /**\r\n * @const {string} Phaser.Core.Config#loaderResponseType - The response type of the XHR request, e.g. `blob`, `text`, etc.\r\n */\r\n this.loaderResponseType = GetValue(config, 'loader.responseType', '');\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#loaderAsync - Should the XHR request use async or not?\r\n */\r\n this.loaderAsync = GetValue(config, 'loader.async', true);\r\n\r\n /**\r\n * @const {string} Phaser.Core.Config#loaderUser - Optional username for all XHR requests.\r\n */\r\n this.loaderUser = GetValue(config, 'loader.user', '');\r\n\r\n /**\r\n * @const {string} Phaser.Core.Config#loaderPassword - Optional password for all XHR requests.\r\n */\r\n this.loaderPassword = GetValue(config, 'loader.password', '');\r\n\r\n /**\r\n * @const {number} Phaser.Core.Config#loaderTimeout - Optional XHR timeout value, in ms.\r\n */\r\n this.loaderTimeout = GetValue(config, 'loader.timeout', 0);\r\n\r\n /**\r\n * @const {number} Phaser.Core.Config#loaderMaxRetries - The number of times to retry a file load if it fails.\r\n */\r\n this.loaderMaxRetries = GetValue(config, 'loader.maxRetries', 2);\r\n\r\n /**\r\n * @const {boolean} Phaser.Core.Config#loaderWithCredentials - Optional XHR withCredentials value.\r\n */\r\n this.loaderWithCredentials = GetValue(config, 'loader.withCredentials', false);\r\n\r\n /**\r\n * @const {string} Phaser.Core.Config#loaderImageLoadType - Optional load type for image, `XHR` is default, or `HTMLImageElement` for a lightweight way.\r\n */\r\n this.loaderImageLoadType = GetValue(config, 'loader.imageLoadType', 'XHR');\r\n\r\n // On iOS, Capacitor often runs on a capacitor:// protocol, meaning local files are served from capacitor:// rather than file://\r\n // See: https://github.com/photonstorm/phaser/issues/5685\r\n\r\n /**\r\n * @const {string[]} Phaser.Core.Config#loaderLocalScheme - An array of schemes that the Loader considers as being 'local' files. Defaults to: `[ 'file://', 'capacitor://' ]`.\r\n */\r\n this.loaderLocalScheme = GetValue(config, 'loader.localScheme', [ 'file://', 'capacitor://' ]);\r\n\r\n /**\r\n * @const {number} Phaser.Core.Config#glowFXQuality - The quality of the Glow FX (defaults to 0.1)\r\n */\r\n this.glowFXQuality = GetValue(config, 'fx.glow.quality', 0.1);\r\n\r\n /**\r\n * @const {number} Phaser.Core.Config#glowFXDistance - The distance of the Glow FX (defaults to 10)\r\n */\r\n this.glowFXDistance = GetValue(config, 'fx.glow.distance', 10);\r\n\r\n /*\r\n * Allows `plugins` property to either be an array, in which case it just replaces\r\n * the default plugins like previously, or a config object.\r\n *\r\n * plugins: {\r\n * global: [\r\n * { key: 'TestPlugin', plugin: TestPlugin, start: true, data: { msg: 'The plugin is alive' } },\r\n * ],\r\n * scene: [\r\n * { key: 'WireFramePlugin', plugin: WireFramePlugin, systemKey: 'wireFramePlugin', sceneKey: 'wireframe' }\r\n * ],\r\n * default: [], OR\r\n * defaultMerge: [\r\n * 'ModPlayer'\r\n * ]\r\n * }\r\n */\r\n\r\n /**\r\n * @const {any} Phaser.Core.Config#installGlobalPlugins - An array of global plugins to be installed.\r\n */\r\n this.installGlobalPlugins = [];\r\n\r\n /**\r\n * @const {any} Phaser.Core.Config#installScenePlugins - An array of Scene level plugins to be installed.\r\n */\r\n this.installScenePlugins = [];\r\n\r\n var plugins = GetValue(config, 'plugins', null);\r\n var defaultPlugins = DefaultPlugins.DefaultScene;\r\n\r\n if (plugins)\r\n {\r\n // Old 3.7 array format?\r\n if (Array.isArray(plugins))\r\n {\r\n this.defaultPlugins = plugins;\r\n }\r\n else if (IsPlainObject(plugins))\r\n {\r\n this.installGlobalPlugins = GetFastValue(plugins, 'global', []);\r\n this.installScenePlugins = GetFastValue(plugins, 'scene', []);\r\n\r\n if (Array.isArray(plugins.default))\r\n {\r\n defaultPlugins = plugins.default;\r\n }\r\n else if (Array.isArray(plugins.defaultMerge))\r\n {\r\n defaultPlugins = defaultPlugins.concat(plugins.defaultMerge);\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * @const {any} Phaser.Core.Config#defaultPlugins - The plugins installed into every Scene (in addition to CoreScene and Global).\r\n */\r\n this.defaultPlugins = defaultPlugins;\r\n\r\n // Default / Missing Images\r\n var pngPrefix = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg';\r\n\r\n /**\r\n * @const {string} Phaser.Core.Config#defaultImage - A base64 encoded PNG that will be used as the default blank texture.\r\n */\r\n this.defaultImage = GetValue(config, 'images.default', pngPrefix + 'AQMAAABJtOi3AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABVJREFUeF7NwIEAAAAAgKD9qdeocAMAoAABm3DkcAAAAABJRU5ErkJggg==');\r\n\r\n /**\r\n * @const {string} Phaser.Core.Config#missingImage - A base64 encoded PNG that will be used as the default texture when a texture is assigned that is missing or not loaded.\r\n */\r\n this.missingImage = GetValue(config, 'images.missing', pngPrefix + 'CAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ9JREFUeNq01ssOwyAMRFG46v//Mt1ESmgh+DFmE2GPOBARKb2NVjo+17PXLD8a1+pl5+A+wSgFygymWYHBb0FtsKhJDdZlncG2IzJ4ayoMDv20wTmSMzClEgbWYNTAkQ0Z+OJ+A/eWnAaR9+oxCF4Os0H8htsMUp+pwcgBBiMNnAwF8GqIgL2hAzaGFFgZauDPKABmowZ4GL369/0rwACp2yA/ttmvsQAAAABJRU5ErkJggg==');\r\n\r\n /**\r\n * @const {string} Phaser.Core.Config#whiteImage - A base64 encoded PNG that will be used as the default texture when a texture is assigned that is white or not loaded.\r\n */\r\n this.whiteImage = GetValue(config, 'images.white', 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABdJREFUeNpi/P//PwMMMDEgAdwcgAADAJZuAwXJYZOzAAAAAElFTkSuQmCC');\r\n\r\n if (window)\r\n {\r\n if (window.FORCE_WEBGL)\r\n {\r\n this.renderType = CONST.WEBGL;\r\n }\r\n else if (window.FORCE_CANVAS)\r\n {\r\n this.renderType = CONST.CANVAS;\r\n }\r\n }\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Config;\r\n\n\n/***/ }),\n\n/***/ 86054:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CanvasInterpolation = __webpack_require__(20623);\r\nvar CanvasPool = __webpack_require__(27919);\r\nvar CONST = __webpack_require__(8054);\r\nvar Features = __webpack_require__(89357);\r\n\r\n/**\r\n * Called automatically by Phaser.Game and responsible for creating the renderer it will use.\r\n *\r\n * Relies upon two webpack global flags to be defined: `WEBGL_RENDERER` and `CANVAS_RENDERER` during build time, but not at run-time.\r\n *\r\n * @function Phaser.Core.CreateRenderer\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Game} game - The Phaser.Game instance on which the renderer will be set.\r\n */\r\nvar CreateRenderer = function (game)\r\n{\r\n var config = game.config;\r\n\r\n if ((config.customEnvironment || config.canvas) && config.renderType === CONST.AUTO)\r\n {\r\n throw new Error('Must set explicit renderType in custom environment');\r\n }\r\n\r\n // Not a custom environment, didn't provide their own canvas and not headless, so determine the renderer:\r\n if (!config.customEnvironment && !config.canvas && config.renderType !== CONST.HEADLESS)\r\n {\r\n if (config.renderType === CONST.AUTO)\r\n {\r\n config.renderType = Features.webGL ? CONST.WEBGL : CONST.CANVAS;\r\n }\r\n\r\n if (config.renderType === CONST.WEBGL)\r\n {\r\n if (!Features.webGL) { throw new Error('Cannot create WebGL context, aborting.'); }\r\n }\r\n else if (config.renderType === CONST.CANVAS)\r\n {\r\n if (!Features.canvas) { throw new Error('Cannot create Canvas context, aborting.'); }\r\n }\r\n else\r\n {\r\n throw new Error('Unknown value for renderer type: ' + config.renderType);\r\n }\r\n }\r\n\r\n // Pixel Art mode?\r\n if (!config.antialias)\r\n {\r\n CanvasPool.disableSmoothing();\r\n }\r\n\r\n var baseSize = game.scale.baseSize;\r\n\r\n var width = baseSize.width;\r\n var height = baseSize.height;\r\n\r\n // Does the game config provide its own canvas element to use?\r\n if (config.canvas)\r\n {\r\n game.canvas = config.canvas;\r\n\r\n game.canvas.width = width;\r\n game.canvas.height = height;\r\n }\r\n else\r\n {\r\n game.canvas = CanvasPool.create(game, width, height, config.renderType);\r\n }\r\n\r\n // Does the game config provide some canvas css styles to use?\r\n if (config.canvasStyle)\r\n {\r\n game.canvas.style = config.canvasStyle;\r\n }\r\n\r\n // Pixel Art mode?\r\n if (!config.antialias)\r\n {\r\n CanvasInterpolation.setCrisp(game.canvas);\r\n }\r\n\r\n if (config.renderType === CONST.HEADLESS)\r\n {\r\n // Nothing more to do here\r\n return;\r\n }\r\n\r\n var CanvasRenderer;\r\n var WebGLRenderer;\r\n\r\n if (true)\r\n {\r\n CanvasRenderer = __webpack_require__(68627);\r\n WebGLRenderer = __webpack_require__(74797);\r\n\r\n // Let the config pick the renderer type, as both are included\r\n if (config.renderType === CONST.WEBGL)\r\n {\r\n game.renderer = new WebGLRenderer(game);\r\n }\r\n else\r\n {\r\n game.renderer = new CanvasRenderer(game);\r\n game.context = game.renderer.gameContext;\r\n }\r\n }\r\n\r\n if (false)\r\n {}\r\n\r\n if (false)\r\n {}\r\n};\r\n\r\nmodule.exports = CreateRenderer;\r\n\n\n/***/ }),\n\n/***/ 96391:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(8054);\r\n\r\n/**\r\n * Called automatically by Phaser.Game and responsible for creating the console.log debug header.\r\n *\r\n * You can customize or disable the header via the Game Config object.\r\n *\r\n * @function Phaser.Core.DebugHeader\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Game} game - The Phaser.Game instance which will output this debug header.\r\n */\r\nvar DebugHeader = function (game)\r\n{\r\n var config = game.config;\r\n\r\n if (config.hideBanner)\r\n {\r\n return;\r\n }\r\n\r\n var renderType = 'WebGL';\r\n\r\n if (config.renderType === CONST.CANVAS)\r\n {\r\n renderType = 'Canvas';\r\n }\r\n else if (config.renderType === CONST.HEADLESS)\r\n {\r\n renderType = 'Headless';\r\n }\r\n\r\n var audioConfig = config.audio;\r\n var deviceAudio = game.device.audio;\r\n\r\n var audioType;\r\n\r\n if (deviceAudio.webAudio && !audioConfig.disableWebAudio)\r\n {\r\n audioType = 'Web Audio';\r\n }\r\n else if (audioConfig.noAudio || (!deviceAudio.webAudio && !deviceAudio.audioData))\r\n {\r\n audioType = 'No Audio';\r\n }\r\n else\r\n {\r\n audioType = 'HTML5 Audio';\r\n }\r\n\r\n if (!game.device.browser.ie)\r\n {\r\n var c = '';\r\n var args = [ c ];\r\n\r\n if (Array.isArray(config.bannerBackgroundColor))\r\n {\r\n var lastColor;\r\n\r\n config.bannerBackgroundColor.forEach(function (color)\r\n {\r\n c = c.concat('%c ');\r\n\r\n args.push('background: ' + color);\r\n\r\n lastColor = color;\r\n });\r\n\r\n // inject the text color\r\n args[args.length - 1] = 'color: ' + config.bannerTextColor + '; background: ' + lastColor;\r\n }\r\n else\r\n {\r\n c = c.concat('%c ');\r\n\r\n args.push('color: ' + config.bannerTextColor + '; background: ' + config.bannerBackgroundColor);\r\n }\r\n\r\n // URL link background color (always transparent to support different browser themes)\r\n args.push('background: transparent');\r\n\r\n if (config.gameTitle)\r\n {\r\n c = c.concat(config.gameTitle);\r\n\r\n if (config.gameVersion)\r\n {\r\n c = c.concat(' v' + config.gameVersion);\r\n }\r\n\r\n if (!config.hidePhaser)\r\n {\r\n c = c.concat(' / ');\r\n }\r\n }\r\n\r\n var fb = ( false) ? 0 : '';\r\n\r\n if (!config.hidePhaser)\r\n {\r\n c = c.concat('Phaser v' + CONST.VERSION + fb + ' (' + renderType + ' | ' + audioType + ')');\r\n }\r\n\r\n c = c.concat(' %c ' + config.gameURL);\r\n\r\n // Inject the new string back into the args array\r\n args[0] = c;\r\n\r\n console.log.apply(console, args);\r\n }\r\n else if (window['console'])\r\n {\r\n console.log('Phaser v' + CONST.VERSION + ' / https://phaser.io');\r\n }\r\n};\r\n\r\nmodule.exports = DebugHeader;\r\n\n\n/***/ }),\n\n/***/ 50127:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar AddToDOM = __webpack_require__(40366);\r\nvar AnimationManager = __webpack_require__(60848);\r\nvar CacheManager = __webpack_require__(24047);\r\nvar CanvasPool = __webpack_require__(27919);\r\nvar Class = __webpack_require__(83419);\r\nvar Config = __webpack_require__(69547);\r\nvar CreateDOMContainer = __webpack_require__(83719);\r\nvar CreateRenderer = __webpack_require__(86054);\r\nvar DataManager = __webpack_require__(45893);\r\nvar DebugHeader = __webpack_require__(96391);\r\nvar Device = __webpack_require__(82264);\r\nvar DOMContentLoaded = __webpack_require__(57264);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Events = __webpack_require__(8443);\r\nvar InputManager = __webpack_require__(7003);\r\nvar PluginCache = __webpack_require__(37277);\r\nvar PluginManager = __webpack_require__(77332);\r\nvar ScaleManager = __webpack_require__(76531);\r\nvar SceneManager = __webpack_require__(60903);\r\nvar TextureEvents = __webpack_require__(69442);\r\nvar TextureManager = __webpack_require__(17130);\r\nvar TimeStep = __webpack_require__(65898);\r\nvar VisibilityHandler = __webpack_require__(51085);\r\n\r\nif (true)\r\n{\r\n var SoundManagerCreator = __webpack_require__(14747);\r\n}\r\n\r\nif (false)\r\n{ var FacebookInstantGamesPlugin; }\r\n\r\n/**\r\n * @classdesc\r\n * The Phaser.Game instance is the main controller for the entire Phaser game. It is responsible\r\n * for handling the boot process, parsing the configuration values, creating the renderer,\r\n * and setting-up all of the global Phaser systems, such as sound and input.\r\n * Once that is complete it will start the Scene Manager and then begin the main game loop.\r\n *\r\n * You should generally avoid accessing any of the systems created by Game, and instead use those\r\n * made available to you via the Phaser.Scene Systems class instead.\r\n *\r\n * @class Game\r\n * @memberof Phaser\r\n * @constructor\r\n * @fires Phaser.Core.Events#BLUR\r\n * @fires Phaser.Core.Events#FOCUS\r\n * @fires Phaser.Core.Events#HIDDEN\r\n * @fires Phaser.Core.Events#VISIBLE\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Core.GameConfig} [GameConfig] - The configuration object for your Phaser Game instance.\r\n */\r\nvar Game = new Class({\r\n\r\n initialize:\r\n\r\n function Game (config)\r\n {\r\n /**\r\n * The parsed Game Configuration object.\r\n *\r\n * The values stored within this object are read-only and should not be changed at run-time.\r\n *\r\n * @name Phaser.Game#config\r\n * @type {Phaser.Core.Config}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.config = new Config(config);\r\n\r\n /**\r\n * A reference to either the Canvas or WebGL Renderer that this Game is using.\r\n *\r\n * @name Phaser.Game#renderer\r\n * @type {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)}\r\n * @since 3.0.0\r\n */\r\n this.renderer = null;\r\n\r\n /**\r\n * A reference to an HTML Div Element used as the DOM Element Container.\r\n *\r\n * Only set if `createDOMContainer` is `true` in the game config (by default it is `false`) and\r\n * if you provide a parent element to insert the Phaser Game inside.\r\n *\r\n * See the DOM Element Game Object for more details.\r\n *\r\n * @name Phaser.Game#domContainer\r\n * @type {HTMLDivElement}\r\n * @since 3.17.0\r\n */\r\n this.domContainer = null;\r\n\r\n /**\r\n * A reference to the HTML Canvas Element that Phaser uses to render the game.\r\n * This is created automatically by Phaser unless you provide a `canvas` property\r\n * in your Game Config.\r\n *\r\n * @name Phaser.Game#canvas\r\n * @type {HTMLCanvasElement}\r\n * @since 3.0.0\r\n */\r\n this.canvas = null;\r\n\r\n /**\r\n * A reference to the Rendering Context belonging to the Canvas Element this game is rendering to.\r\n * If the game is running under Canvas it will be a 2d Canvas Rendering Context.\r\n * If the game is running under WebGL it will be a WebGL Rendering Context.\r\n * This context is created automatically by Phaser unless you provide a `context` property\r\n * in your Game Config.\r\n *\r\n * @name Phaser.Game#context\r\n * @type {(CanvasRenderingContext2D|WebGLRenderingContext)}\r\n * @since 3.0.0\r\n */\r\n this.context = null;\r\n\r\n /**\r\n * A flag indicating when this Game instance has finished its boot process.\r\n *\r\n * @name Phaser.Game#isBooted\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.isBooted = false;\r\n\r\n /**\r\n * A flag indicating if this Game is currently running its game step or not.\r\n *\r\n * @name Phaser.Game#isRunning\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.isRunning = false;\r\n\r\n /**\r\n * An Event Emitter which is used to broadcast game-level events from the global systems.\r\n *\r\n * @name Phaser.Game#events\r\n * @type {Phaser.Events.EventEmitter}\r\n * @since 3.0.0\r\n */\r\n this.events = new EventEmitter();\r\n\r\n /**\r\n * An instance of the Animation Manager.\r\n *\r\n * The Animation Manager is a global system responsible for managing all animations used within your game.\r\n *\r\n * @name Phaser.Game#anims\r\n * @type {Phaser.Animations.AnimationManager}\r\n * @since 3.0.0\r\n */\r\n this.anims = new AnimationManager(this);\r\n\r\n /**\r\n * An instance of the Texture Manager.\r\n *\r\n * The Texture Manager is a global system responsible for managing all textures being used by your game.\r\n *\r\n * @name Phaser.Game#textures\r\n * @type {Phaser.Textures.TextureManager}\r\n * @since 3.0.0\r\n */\r\n this.textures = new TextureManager(this);\r\n\r\n /**\r\n * An instance of the Cache Manager.\r\n *\r\n * The Cache Manager is a global system responsible for caching, accessing and releasing external game assets.\r\n *\r\n * @name Phaser.Game#cache\r\n * @type {Phaser.Cache.CacheManager}\r\n * @since 3.0.0\r\n */\r\n this.cache = new CacheManager(this);\r\n\r\n /**\r\n * An instance of the Data Manager. This is a global manager, available from any Scene\r\n * and allows you to share and exchange your own game-level data or events without having\r\n * to use an internal event system.\r\n *\r\n * @name Phaser.Game#registry\r\n * @type {Phaser.Data.DataManager}\r\n * @since 3.0.0\r\n */\r\n this.registry = new DataManager(this, new EventEmitter());\r\n\r\n /**\r\n * An instance of the Input Manager.\r\n *\r\n * The Input Manager is a global system responsible for the capture of browser-level input events.\r\n *\r\n * @name Phaser.Game#input\r\n * @type {Phaser.Input.InputManager}\r\n * @since 3.0.0\r\n */\r\n this.input = new InputManager(this, this.config);\r\n\r\n /**\r\n * An instance of the Scene Manager.\r\n *\r\n * The Scene Manager is a global system responsible for creating, modifying and updating the Scenes in your game.\r\n *\r\n * @name Phaser.Game#scene\r\n * @type {Phaser.Scenes.SceneManager}\r\n * @since 3.0.0\r\n */\r\n this.scene = new SceneManager(this, this.config.sceneConfig);\r\n\r\n /**\r\n * A reference to the Device inspector.\r\n *\r\n * Contains information about the device running this game, such as OS, browser vendor and feature support.\r\n * Used by various systems to determine capabilities and code paths.\r\n *\r\n * @name Phaser.Game#device\r\n * @type {Phaser.DeviceConf}\r\n * @since 3.0.0\r\n */\r\n this.device = Device;\r\n\r\n /**\r\n * An instance of the Scale Manager.\r\n *\r\n * The Scale Manager is a global system responsible for handling scaling of the game canvas.\r\n *\r\n * @name Phaser.Game#scale\r\n * @type {Phaser.Scale.ScaleManager}\r\n * @since 3.16.0\r\n */\r\n this.scale = new ScaleManager(this, this.config);\r\n\r\n /**\r\n * An instance of the base Sound Manager.\r\n *\r\n * The Sound Manager is a global system responsible for the playback and updating of all audio in your game.\r\n *\r\n * You can disable the inclusion of the Sound Manager in your build by toggling the webpack `FEATURE_SOUND` flag.\r\n *\r\n * @name Phaser.Game#sound\r\n * @type {(Phaser.Sound.NoAudioSoundManager|Phaser.Sound.HTML5AudioSoundManager|Phaser.Sound.WebAudioSoundManager)}\r\n * @since 3.0.0\r\n */\r\n this.sound = null;\r\n\r\n if (true)\r\n {\r\n this.sound = SoundManagerCreator.create(this);\r\n }\r\n\r\n /**\r\n * An instance of the Time Step.\r\n *\r\n * The Time Step is a global system responsible for setting-up and responding to the browser frame events, processing\r\n * them and calculating delta values. It then automatically calls the game step.\r\n *\r\n * @name Phaser.Game#loop\r\n * @type {Phaser.Core.TimeStep}\r\n * @since 3.0.0\r\n */\r\n this.loop = new TimeStep(this, this.config.fps);\r\n\r\n /**\r\n * An instance of the Plugin Manager.\r\n *\r\n * The Plugin Manager is a global system that allows plugins to register themselves with it, and can then install\r\n * those plugins into Scenes as required.\r\n *\r\n * @name Phaser.Game#plugins\r\n * @type {Phaser.Plugins.PluginManager}\r\n * @since 3.0.0\r\n */\r\n this.plugins = new PluginManager(this, this.config);\r\n\r\n if (false)\r\n {}\r\n\r\n /**\r\n * Is this Game pending destruction at the start of the next frame?\r\n *\r\n * @name Phaser.Game#pendingDestroy\r\n * @type {boolean}\r\n * @private\r\n * @since 3.5.0\r\n */\r\n this.pendingDestroy = false;\r\n\r\n /**\r\n * Remove the Canvas once the destroy is over?\r\n *\r\n * @name Phaser.Game#removeCanvas\r\n * @type {boolean}\r\n * @private\r\n * @since 3.5.0\r\n */\r\n this.removeCanvas = false;\r\n\r\n /**\r\n * Remove everything when the game is destroyed.\r\n * You cannot create a new Phaser instance on the same web page after doing this.\r\n *\r\n * @name Phaser.Game#noReturn\r\n * @type {boolean}\r\n * @private\r\n * @since 3.12.0\r\n */\r\n this.noReturn = false;\r\n\r\n /**\r\n * Does the window the game is running in currently have focus or not?\r\n * This is modified by the VisibilityHandler.\r\n *\r\n * @name Phaser.Game#hasFocus\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.9.0\r\n */\r\n this.hasFocus = false;\r\n\r\n /**\r\n * Is the Game currently paused? This will stop everything from updating,\r\n * except the `TimeStep` and related RequestAnimationFrame or setTimeout.\r\n * Those will continue stepping, but the core Game step will be skipped.\r\n *\r\n * @name Phaser.Game#isPaused\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.isPaused = false;\r\n\r\n // Wait for the DOM Ready event, then call boot.\r\n DOMContentLoaded(this.boot.bind(this));\r\n },\r\n\r\n /**\r\n * This method is called automatically when the DOM is ready. It is responsible for creating the renderer,\r\n * displaying the Debug Header, adding the game canvas to the DOM and emitting the 'boot' event.\r\n * It listens for a 'ready' event from the base systems and once received it will call `Game.start`.\r\n *\r\n * @method Phaser.Game#boot\r\n * @protected\r\n * @fires Phaser.Core.Events#BOOT\r\n * @listens Phaser.Textures.Events#READY\r\n * @since 3.0.0\r\n */\r\n boot: function ()\r\n {\r\n if (!PluginCache.hasCore('EventEmitter'))\r\n {\r\n console.warn('Aborting. Core Plugins missing.');\r\n return;\r\n }\r\n\r\n this.isBooted = true;\r\n\r\n this.config.preBoot(this);\r\n\r\n this.scale.preBoot();\r\n\r\n CreateRenderer(this);\r\n\r\n CreateDOMContainer(this);\r\n\r\n DebugHeader(this);\r\n\r\n AddToDOM(this.canvas, this.config.parent);\r\n\r\n // The Texture Manager has to wait on a couple of non-blocking events before it's fully ready.\r\n // So it will emit this internal event when done:\r\n this.textures.once(TextureEvents.READY, this.texturesReady, this);\r\n\r\n this.events.emit(Events.BOOT);\r\n\r\n if (false)\r\n {}\r\n },\r\n\r\n /**\r\n * Called automatically when the Texture Manager has finished setting up and preparing the\r\n * default textures.\r\n *\r\n * @method Phaser.Game#texturesReady\r\n * @private\r\n * @fires Phaser.Game#READY\r\n * @since 3.12.0\r\n */\r\n texturesReady: function ()\r\n {\r\n // Start all the other systems\r\n this.events.emit(Events.READY);\r\n\r\n this.start();\r\n },\r\n\r\n /**\r\n * Called automatically by Game.boot once all of the global systems have finished setting themselves up.\r\n * By this point the Game is now ready to start the main loop running.\r\n * It will also enable the Visibility Handler.\r\n *\r\n * @method Phaser.Game#start\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n start: function ()\r\n {\r\n this.isRunning = true;\r\n\r\n this.config.postBoot(this);\r\n\r\n if (this.renderer)\r\n {\r\n this.loop.start(this.step.bind(this));\r\n }\r\n else\r\n {\r\n this.loop.start(this.headlessStep.bind(this));\r\n }\r\n\r\n VisibilityHandler(this);\r\n\r\n var eventEmitter = this.events;\r\n\r\n eventEmitter.on(Events.HIDDEN, this.onHidden, this);\r\n eventEmitter.on(Events.VISIBLE, this.onVisible, this);\r\n eventEmitter.on(Events.BLUR, this.onBlur, this);\r\n eventEmitter.on(Events.FOCUS, this.onFocus, this);\r\n },\r\n\r\n /**\r\n * The main Game Step. Called automatically by the Time Step, once per browser frame (typically as a result of\r\n * Request Animation Frame, or Set Timeout on very old browsers.)\r\n *\r\n * The step will update the global managers first, then proceed to update each Scene in turn, via the Scene Manager.\r\n *\r\n * It will then render each Scene in turn, via the Renderer. This process emits `prerender` and `postrender` events.\r\n *\r\n * @method Phaser.Game#step\r\n * @fires Phaser.Core.Events#PRE_STEP\r\n * @fires Phaser.Core.Events#STEP\r\n * @fires Phaser.Core.Events#POST_STEP\r\n * @fires Phaser.Core.Events#PRE_RENDER\r\n * @fires Phaser.Core.Events#POST_RENDER\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n */\r\n step: function (time, delta)\r\n {\r\n if (this.pendingDestroy)\r\n {\r\n return this.runDestroy();\r\n }\r\n\r\n if (this.isPaused)\r\n {\r\n return;\r\n }\r\n\r\n var eventEmitter = this.events;\r\n\r\n // Global Managers like Input and Sound update in the prestep\r\n\r\n eventEmitter.emit(Events.PRE_STEP, time, delta);\r\n\r\n // This is mostly meant for user-land code and plugins\r\n\r\n eventEmitter.emit(Events.STEP, time, delta);\r\n\r\n // Update the Scene Manager and all active Scenes\r\n\r\n this.scene.update(time, delta);\r\n\r\n // Our final event before rendering starts\r\n\r\n eventEmitter.emit(Events.POST_STEP, time, delta);\r\n\r\n var renderer = this.renderer;\r\n\r\n // Run the Pre-render (clearing the canvas, setting background colors, etc)\r\n\r\n renderer.preRender();\r\n\r\n eventEmitter.emit(Events.PRE_RENDER, renderer, time, delta);\r\n\r\n // The main render loop. Iterates all Scenes and all Cameras in those scenes, rendering to the renderer instance.\r\n\r\n this.scene.render(renderer);\r\n\r\n // The Post-Render call. Tidies up loose end, takes snapshots, etc.\r\n\r\n renderer.postRender();\r\n\r\n // The final event before the step repeats. Your last chance to do anything to the canvas before it all starts again.\r\n\r\n eventEmitter.emit(Events.POST_RENDER, renderer, time, delta);\r\n },\r\n\r\n /**\r\n * A special version of the Game Step for the HEADLESS renderer only.\r\n *\r\n * The main Game Step. Called automatically by the Time Step, once per browser frame (typically as a result of\r\n * Request Animation Frame, or Set Timeout on very old browsers.)\r\n *\r\n * The step will update the global managers first, then proceed to update each Scene in turn, via the Scene Manager.\r\n *\r\n * This process emits `prerender` and `postrender` events, even though nothing actually displays.\r\n *\r\n * @method Phaser.Game#headlessStep\r\n * @fires Phaser.Game#PRE_RENDER\r\n * @fires Phaser.Game#POST_RENDER\r\n * @since 3.2.0\r\n *\r\n * @param {number} time - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n */\r\n headlessStep: function (time, delta)\r\n {\r\n if (this.pendingDestroy)\r\n {\r\n return this.runDestroy();\r\n }\r\n\r\n if (this.isPaused)\r\n {\r\n return;\r\n }\r\n\r\n var eventEmitter = this.events;\r\n\r\n // Global Managers like Input and Sound update in the prestep\r\n\r\n eventEmitter.emit(Events.PRE_STEP, time, delta);\r\n\r\n // This is mostly meant for user-land code and plugins\r\n\r\n eventEmitter.emit(Events.STEP, time, delta);\r\n\r\n // Update the Scene Manager and all active Scenes\r\n\r\n this.scene.update(time, delta);\r\n\r\n // Our final event before rendering starts\r\n\r\n eventEmitter.emit(Events.POST_STEP, time, delta);\r\n\r\n // Render\r\n this.scene.isProcessing = false;\r\n\r\n eventEmitter.emit(Events.PRE_RENDER, null, time, delta);\r\n\r\n eventEmitter.emit(Events.POST_RENDER, null, time, delta);\r\n },\r\n\r\n /**\r\n * Called automatically by the Visibility Handler.\r\n * This will pause the main loop and then emit a pause event.\r\n *\r\n * @method Phaser.Game#onHidden\r\n * @protected\r\n * @fires Phaser.Core.Events#PAUSE\r\n * @since 3.0.0\r\n */\r\n onHidden: function ()\r\n {\r\n this.loop.pause();\r\n\r\n this.events.emit(Events.PAUSE);\r\n },\r\n\r\n /**\r\n * This will pause the entire game and emit a `PAUSE` event.\r\n *\r\n * All of Phaser's internal systems will be paused and the game will not re-render.\r\n *\r\n * Note that it does not pause any Loader requests that are currently in-flight.\r\n *\r\n * @method Phaser.Game#pause\r\n * @fires Phaser.Core.Events#PAUSE\r\n * @since 3.60.0\r\n */\r\n pause: function ()\r\n {\r\n var wasPaused = this.isPaused;\r\n\r\n this.isPaused = true;\r\n\r\n if (!wasPaused)\r\n {\r\n this.events.emit(Events.PAUSE);\r\n }\r\n },\r\n\r\n /**\r\n * Called automatically by the Visibility Handler.\r\n * This will resume the main loop and then emit a resume event.\r\n *\r\n * @method Phaser.Game#onVisible\r\n * @protected\r\n * @fires Phaser.Core.Events#RESUME\r\n * @since 3.0.0\r\n */\r\n onVisible: function ()\r\n {\r\n this.loop.resume();\r\n\r\n this.events.emit(Events.RESUME, this.loop.pauseDuration);\r\n },\r\n\r\n /**\r\n * This will resume the entire game and emit a `RESUME` event.\r\n *\r\n * All of Phaser's internal systems will be resumed and the game will start rendering again.\r\n *\r\n * @method Phaser.Game#resume\r\n * @fires Phaser.Core.Events#RESUME\r\n * @since 3.60.0\r\n */\r\n resume: function ()\r\n {\r\n var wasPaused = this.isPaused;\r\n\r\n this.isPaused = false;\r\n\r\n if (wasPaused)\r\n {\r\n this.events.emit(Events.RESUME, 0);\r\n }\r\n },\r\n\r\n /**\r\n * Called automatically by the Visibility Handler.\r\n * This will set the main loop into a 'blurred' state, which pauses it.\r\n *\r\n * @method Phaser.Game#onBlur\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n onBlur: function ()\r\n {\r\n this.hasFocus = false;\r\n\r\n this.loop.blur();\r\n },\r\n\r\n /**\r\n * Called automatically by the Visibility Handler.\r\n * This will set the main loop into a 'focused' state, which resumes it.\r\n *\r\n * @method Phaser.Game#onFocus\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n onFocus: function ()\r\n {\r\n this.hasFocus = true;\r\n\r\n this.loop.focus();\r\n },\r\n\r\n /**\r\n * Returns the current game frame.\r\n *\r\n * When the game starts running, the frame is incremented every time Request Animation Frame, or Set Timeout, fires.\r\n *\r\n * @method Phaser.Game#getFrame\r\n * @since 3.16.0\r\n *\r\n * @return {number} The current game frame.\r\n */\r\n getFrame: function ()\r\n {\r\n return this.loop.frame;\r\n },\r\n\r\n /**\r\n * Returns the time that the current game step started at, as based on `performance.now`.\r\n *\r\n * @method Phaser.Game#getTime\r\n * @since 3.16.0\r\n *\r\n * @return {number} The current game timestamp.\r\n */\r\n getTime: function ()\r\n {\r\n return this.loop.now;\r\n },\r\n\r\n /**\r\n * Flags this Game instance as needing to be destroyed on the _next frame_, making this an asynchronous operation.\r\n *\r\n * It will wait until the current frame has completed and then call `runDestroy` internally.\r\n *\r\n * If you need to react to the games eventual destruction, listen for the `DESTROY` event.\r\n *\r\n * If you **do not** need to run Phaser again on the same web page you can set the `noReturn` argument to `true` and it will free-up\r\n * memory being held by the core Phaser plugins. If you do need to create another game instance on the same page, leave this as `false`.\r\n *\r\n * @method Phaser.Game#destroy\r\n * @fires Phaser.Core.Events#DESTROY\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} removeCanvas - Set to `true` if you would like the parent canvas element removed from the DOM, or `false` to leave it in place.\r\n * @param {boolean} [noReturn=false] - If `true` all the core Phaser plugins are destroyed. You cannot create another instance of Phaser on the same web page if you do this.\r\n */\r\n destroy: function (removeCanvas, noReturn)\r\n {\r\n if (noReturn === undefined) { noReturn = false; }\r\n\r\n this.pendingDestroy = true;\r\n\r\n this.removeCanvas = removeCanvas;\r\n this.noReturn = noReturn;\r\n },\r\n\r\n /**\r\n * Destroys this Phaser.Game instance, all global systems, all sub-systems and all Scenes.\r\n *\r\n * @method Phaser.Game#runDestroy\r\n * @private\r\n * @since 3.5.0\r\n */\r\n runDestroy: function ()\r\n {\r\n this.scene.destroy();\r\n\r\n this.events.emit(Events.DESTROY);\r\n\r\n this.events.removeAllListeners();\r\n\r\n if (this.renderer)\r\n {\r\n this.renderer.destroy();\r\n }\r\n\r\n if (this.removeCanvas && this.canvas)\r\n {\r\n CanvasPool.remove(this.canvas);\r\n\r\n if (this.canvas.parentNode)\r\n {\r\n this.canvas.parentNode.removeChild(this.canvas);\r\n }\r\n }\r\n\r\n if (this.domContainer && this.domContainer.parentNode)\r\n {\r\n this.domContainer.parentNode.removeChild(this.domContainer);\r\n }\r\n\r\n this.loop.destroy();\r\n\r\n this.pendingDestroy = false;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Game;\r\n\r\n/**\r\n * \"Computers are good at following instructions, but not at reading your mind.\" - Donald Knuth\r\n */\r\n\n\n/***/ }),\n\n/***/ 65898:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar GetValue = __webpack_require__(35154);\r\nvar NOOP = __webpack_require__(29747);\r\nvar RequestAnimationFrame = __webpack_require__(43092);\r\n\r\n// http://www.testufo.com/#test=animation-time-graph\r\n\r\n/**\r\n * @classdesc\r\n * The core runner class that Phaser uses to handle the game loop. It can use either Request Animation Frame,\r\n * or SetTimeout, based on browser support and config settings, to create a continuous loop within the browser.\r\n *\r\n * Each time the loop fires, `TimeStep.step` is called and this is then passed onto the core Game update loop,\r\n * it is the core heartbeat of your game. It will fire as often as Request Animation Frame is capable of handling\r\n * on the target device.\r\n *\r\n * Note that there are lots of situations where a browser will stop updating your game. Such as if the player\r\n * switches tabs, or covers up the browser window with another application. In these cases, the 'heartbeat'\r\n * of your game will pause, and only resume when focus is returned to it by the player. There is no way to avoid\r\n * this situation, all you can do is use the visibility events the browser, and Phaser, provide to detect when\r\n * it has happened and then gracefully recover.\r\n *\r\n * @class TimeStep\r\n * @memberof Phaser.Core\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Game} game - A reference to the Phaser.Game instance that owns this Time Step.\r\n * @param {Phaser.Types.Core.FPSConfig} config\r\n */\r\nvar TimeStep = new Class({\r\n\r\n initialize:\r\n\r\n function TimeStep (game, config)\r\n {\r\n /**\r\n * A reference to the Phaser.Game instance.\r\n *\r\n * @name Phaser.Core.TimeStep#game\r\n * @type {Phaser.Game}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.game = game;\r\n\r\n /**\r\n * The Request Animation Frame DOM Event handler.\r\n *\r\n * @name Phaser.Core.TimeStep#raf\r\n * @type {Phaser.DOM.RequestAnimationFrame}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.raf = new RequestAnimationFrame();\r\n\r\n /**\r\n * A flag that is set once the TimeStep has started running and toggled when it stops.\r\n *\r\n * @name Phaser.Core.TimeStep#started\r\n * @type {boolean}\r\n * @readonly\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.started = false;\r\n\r\n /**\r\n * A flag that is set once the TimeStep has started running and toggled when it stops.\r\n * The difference between this value and `started` is that `running` is toggled when\r\n * the TimeStep is sent to sleep, where-as `started` remains `true`, only changing if\r\n * the TimeStep is actually stopped, not just paused.\r\n *\r\n * @name Phaser.Core.TimeStep#running\r\n * @type {boolean}\r\n * @readonly\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.running = false;\r\n\r\n /**\r\n * The minimum fps rate you want the Time Step to run at.\r\n *\r\n * Setting this cannot guarantee the browser runs at this rate, it merely influences\r\n * the internal timing values to help the Timestep know when it has gone out of sync.\r\n *\r\n * @name Phaser.Core.TimeStep#minFps\r\n * @type {number}\r\n * @default 5\r\n * @since 3.0.0\r\n */\r\n this.minFps = GetValue(config, 'min', 5);\r\n\r\n /**\r\n * The target fps rate for the Time Step to run at.\r\n *\r\n * Setting this value will not actually change the speed at which the browser runs, that is beyond\r\n * the control of Phaser. Instead, it allows you to determine performance issues and if the Time Step\r\n * is spiraling out of control.\r\n *\r\n * @name Phaser.Core.TimeStep#targetFps\r\n * @type {number}\r\n * @default 60\r\n * @since 3.0.0\r\n */\r\n this.targetFps = GetValue(config, 'target', 60);\r\n\r\n /**\r\n * Enforce a frame rate limit. This forces how often the Game step will run. By default it is zero,\r\n * which means it will run at whatever limit the browser (via RequestAnimationFrame) can handle, which\r\n * is the optimum rate for fast-action or responsive games.\r\n *\r\n * However, if you are building a non-game app, like a graphics generator, or low-intensity game that doesn't\r\n * require 60fps, then you can lower the step rate via this Game Config value:\r\n *\r\n * ```js\r\n * fps: {\r\n * limit: 30\r\n * }\r\n * ```\r\n *\r\n * Setting this _beyond_ the rate of RequestAnimationFrame will make no difference at all.\r\n *\r\n * Use it purely to _restrict_ updates in low-intensity situations only.\r\n *\r\n * @name Phaser.Core.TimeStep#fpsLimit\r\n * @type {number}\r\n * @default 0\r\n * @since 3.60.0\r\n */\r\n this.fpsLimit = GetValue(config, 'limit', 0);\r\n\r\n /**\r\n * Is the FPS rate limited?\r\n *\r\n * This is set by setting the Game Config `limit` value to a value above zero.\r\n *\r\n * Consider this property as read-only.\r\n *\r\n * @name Phaser.Core.TimeStep#hasFpsLimit\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.60.0\r\n */\r\n this.hasFpsLimit = (this.fpsLimit > 0);\r\n\r\n /**\r\n * Internal value holding the fps rate limit in ms.\r\n *\r\n * @name Phaser.Core.TimeStep#_limitRate\r\n * @type {number}\r\n * @private\r\n * @since 3.60.0\r\n */\r\n this._limitRate = (this.hasFpsLimit) ? (1000 / this.fpsLimit) : 0;\r\n\r\n /**\r\n * The minimum fps value in ms.\r\n *\r\n * Defaults to 200ms between frames (i.e. super slow!)\r\n *\r\n * @name Phaser.Core.TimeStep#_min\r\n * @type {number}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._min = 1000 / this.minFps;\r\n\r\n /**\r\n * The target fps value in ms.\r\n *\r\n * Defaults to 16.66ms between frames (i.e. normal)\r\n *\r\n * @name Phaser.Core.TimeStep#_target\r\n * @type {number}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._target = 1000 / this.targetFps;\r\n\r\n /**\r\n * An exponential moving average of the frames per second.\r\n *\r\n * @name Phaser.Core.TimeStep#actualFps\r\n * @type {number}\r\n * @readonly\r\n * @default 60\r\n * @since 3.0.0\r\n */\r\n this.actualFps = this.targetFps;\r\n\r\n /**\r\n * The time at which the next fps rate update will take place.\r\n *\r\n * When an fps update happens, the `framesThisSecond` value is reset.\r\n *\r\n * @name Phaser.Core.TimeStep#nextFpsUpdate\r\n * @type {number}\r\n * @readonly\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.nextFpsUpdate = 0;\r\n\r\n /**\r\n * The number of frames processed this second.\r\n *\r\n * @name Phaser.Core.TimeStep#framesThisSecond\r\n * @type {number}\r\n * @readonly\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.framesThisSecond = 0;\r\n\r\n /**\r\n * A callback to be invoked each time the TimeStep steps.\r\n *\r\n * @name Phaser.Core.TimeStep#callback\r\n * @type {Phaser.Types.Core.TimeStepCallback}\r\n * @default NOOP\r\n * @since 3.0.0\r\n */\r\n this.callback = NOOP;\r\n\r\n /**\r\n * You can force the TimeStep to use SetTimeOut instead of Request Animation Frame by setting\r\n * the `forceSetTimeOut` property to `true` in the Game Configuration object. It cannot be changed at run-time.\r\n *\r\n * @name Phaser.Core.TimeStep#forceSetTimeOut\r\n * @type {boolean}\r\n * @readonly\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.forceSetTimeOut = GetValue(config, 'forceSetTimeOut', false);\r\n\r\n /**\r\n * The time, updated each step by adding the elapsed delta time to the previous value.\r\n *\r\n * This differs from the `TimeStep.now` value, which is the high resolution time value\r\n * as provided by Request Animation Frame.\r\n *\r\n * @name Phaser.Core.TimeStep#time\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.time = 0;\r\n\r\n /**\r\n * The time at which the game started running.\r\n *\r\n * This value is adjusted if the game is then paused and resumes.\r\n *\r\n * @name Phaser.Core.TimeStep#startTime\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.startTime = 0;\r\n\r\n /**\r\n * The time of the previous step.\r\n *\r\n * This is typically a high resolution timer value, as provided by Request Animation Frame.\r\n *\r\n * @name Phaser.Core.TimeStep#lastTime\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.lastTime = 0;\r\n\r\n /**\r\n * The current frame the game is on. This counter is incremented once every game step, regardless of how much\r\n * time has passed and is unaffected by delta smoothing.\r\n *\r\n * @name Phaser.Core.TimeStep#frame\r\n * @type {number}\r\n * @readonly\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.frame = 0;\r\n\r\n /**\r\n * Is the browser currently considered in focus by the Page Visibility API?\r\n *\r\n * This value is set in the `blur` method, which is called automatically by the Game instance.\r\n *\r\n * @name Phaser.Core.TimeStep#inFocus\r\n * @type {boolean}\r\n * @readonly\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.inFocus = true;\r\n\r\n /**\r\n * The duration of the most recent game pause, if any, in ms.\r\n *\r\n * @name Phaser.Core.TimeStep#pauseDuration\r\n * @type {number}\r\n * @readonly\r\n * @default 0\r\n * @since 3.85.0\r\n */\r\n this.pauseDuration = 0;\r\n\r\n /**\r\n * The timestamp at which the game became paused, as determined by the Page Visibility API.\r\n *\r\n * @name Phaser.Core.TimeStep#_pauseTime\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this._pauseTime = 0;\r\n\r\n /**\r\n * An internal counter to allow for the browser 'cooling down' after coming back into focus.\r\n *\r\n * @name Phaser.Core.TimeStep#_coolDown\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this._coolDown = 0;\r\n\r\n /**\r\n * The delta time, in ms, since the last game step. This is a clamped and smoothed average value.\r\n *\r\n * @name Phaser.Core.TimeStep#delta\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.delta = 0;\r\n\r\n /**\r\n * Internal index of the delta history position.\r\n *\r\n * @name Phaser.Core.TimeStep#deltaIndex\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.deltaIndex = 0;\r\n\r\n /**\r\n * Internal array holding the previous delta values, used for delta smoothing.\r\n *\r\n * @name Phaser.Core.TimeStep#deltaHistory\r\n * @type {number[]}\r\n * @since 3.0.0\r\n */\r\n this.deltaHistory = [];\r\n\r\n /**\r\n * The maximum number of delta values that are retained in order to calculate a smoothed moving average.\r\n *\r\n * This can be changed in the Game Config via the `fps.deltaHistory` property. The default is 10.\r\n *\r\n * @name Phaser.Core.TimeStep#deltaSmoothingMax\r\n * @type {number}\r\n * @default 10\r\n * @since 3.0.0\r\n */\r\n this.deltaSmoothingMax = GetValue(config, 'deltaHistory', 10);\r\n\r\n /**\r\n * The number of frames that the cooldown is set to after the browser panics over the FPS rate, usually\r\n * as a result of switching tabs and regaining focus.\r\n *\r\n * This can be changed in the Game Config via the `fps.panicMax` property. The default is 120.\r\n *\r\n * @name Phaser.Core.TimeStep#panicMax\r\n * @type {number}\r\n * @default 120\r\n * @since 3.0.0\r\n */\r\n this.panicMax = GetValue(config, 'panicMax', 120);\r\n\r\n /**\r\n * The actual elapsed time in ms between one update and the next.\r\n *\r\n * Unlike with `delta`, no smoothing, capping, or averaging is applied to this value.\r\n * So please be careful when using this value in math calculations.\r\n *\r\n * @name Phaser.Core.TimeStep#rawDelta\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.rawDelta = 0;\r\n\r\n /**\r\n * The time, set at the start of the current step.\r\n *\r\n * This is typically a high resolution timer value, as provided by Request Animation Frame.\r\n *\r\n * This can differ from the `time` value in that it isn't calculated based on the delta value.\r\n *\r\n * @name Phaser.Core.TimeStep#now\r\n * @type {number}\r\n * @default 0\r\n * @since 3.18.0\r\n */\r\n this.now = 0;\r\n\r\n /**\r\n * Apply smoothing to the delta value used within Phasers internal calculations?\r\n *\r\n * This can be changed in the Game Config via the `fps.smoothStep` property. The default is `true`.\r\n *\r\n * Smoothing helps settle down the delta values after browser tab switches, or other situations\r\n * which could cause significant delta spikes or dips. By default it has been enabled in Phaser 3\r\n * since the first version, but is now exposed under this property (and the corresponding game config\r\n * `smoothStep` value), to allow you to easily disable it, should you require.\r\n *\r\n * @name Phaser.Core.TimeStep#smoothStep\r\n * @type {boolean}\r\n * @since 3.22.0\r\n */\r\n this.smoothStep = GetValue(config, 'smoothStep', true);\r\n },\r\n\r\n /**\r\n * Called by the Game instance when the DOM window.onBlur event triggers.\r\n *\r\n * @method Phaser.Core.TimeStep#blur\r\n * @since 3.0.0\r\n */\r\n blur: function ()\r\n {\r\n this.inFocus = false;\r\n },\r\n\r\n /**\r\n * Called by the Game instance when the DOM window.onFocus event triggers.\r\n *\r\n * @method Phaser.Core.TimeStep#focus\r\n * @since 3.0.0\r\n */\r\n focus: function ()\r\n {\r\n this.inFocus = true;\r\n\r\n this.resetDelta();\r\n },\r\n\r\n /**\r\n * Called when the visibility API says the game is 'hidden' (tab switch out of view, etc)\r\n *\r\n * @method Phaser.Core.TimeStep#pause\r\n * @since 3.0.0\r\n */\r\n pause: function ()\r\n {\r\n this._pauseTime = window.performance.now();\r\n },\r\n\r\n /**\r\n * Called when the visibility API says the game is 'visible' again (tab switch back into view, etc)\r\n *\r\n * @method Phaser.Core.TimeStep#resume\r\n * @since 3.0.0\r\n */\r\n resume: function ()\r\n {\r\n this.resetDelta();\r\n\r\n this.pauseDuration = this.time - this._pauseTime;\r\n this.startTime += this.pauseDuration;\r\n },\r\n\r\n /**\r\n * Resets the time, lastTime, fps averages and delta history.\r\n * Called automatically when a browser sleeps them resumes.\r\n *\r\n * @method Phaser.Core.TimeStep#resetDelta\r\n * @since 3.0.0\r\n */\r\n resetDelta: function ()\r\n {\r\n var now = window.performance.now();\r\n\r\n this.time = now;\r\n this.lastTime = now;\r\n this.nextFpsUpdate = now + 1000;\r\n this.framesThisSecond = 0;\r\n\r\n // Pre-populate smoothing array\r\n\r\n for (var i = 0; i < this.deltaSmoothingMax; i++)\r\n {\r\n this.deltaHistory[i] = Math.min(this._target, this.deltaHistory[i]);\r\n }\r\n\r\n this.delta = 0;\r\n this.deltaIndex = 0;\r\n\r\n this._coolDown = this.panicMax;\r\n },\r\n\r\n /**\r\n * Starts the Time Step running, if it is not already doing so.\r\n * Called automatically by the Game Boot process.\r\n *\r\n * @method Phaser.Core.TimeStep#start\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Core.TimeStepCallback} callback - The callback to be invoked each time the Time Step steps.\r\n */\r\n start: function (callback)\r\n {\r\n if (this.started)\r\n {\r\n return this;\r\n }\r\n\r\n this.started = true;\r\n this.running = true;\r\n\r\n for (var i = 0; i < this.deltaSmoothingMax; i++)\r\n {\r\n this.deltaHistory[i] = this._target;\r\n }\r\n\r\n this.resetDelta();\r\n\r\n this.startTime = window.performance.now();\r\n\r\n this.callback = callback;\r\n\r\n var step = (this.hasFpsLimit) ? this.stepLimitFPS.bind(this) : this.step.bind(this);\r\n\r\n this.raf.start(step, this.forceSetTimeOut, this._target);\r\n },\r\n\r\n /**\r\n * Takes the delta value and smooths it based on the previous frames.\r\n *\r\n * Called automatically as part of the step.\r\n *\r\n * @method Phaser.Core.TimeStep#smoothDelta\r\n * @since 3.60.0\r\n *\r\n * @param {number} delta - The delta value for this step.\r\n *\r\n * @return {number} The smoothed delta value.\r\n */\r\n smoothDelta: function (delta)\r\n {\r\n var idx = this.deltaIndex;\r\n var history = this.deltaHistory;\r\n var max = this.deltaSmoothingMax;\r\n\r\n if (this._coolDown > 0 || !this.inFocus)\r\n {\r\n this._coolDown--;\r\n\r\n delta = Math.min(delta, this._target);\r\n }\r\n\r\n if (delta > this._min)\r\n {\r\n // Probably super bad start time or browser tab context loss,\r\n // so use the last 'sane' delta value\r\n\r\n delta = history[idx];\r\n\r\n // Clamp delta to min (in case history has become corrupted somehow)\r\n delta = Math.min(delta, this._min);\r\n }\r\n\r\n // Smooth out the delta over the previous X frames\r\n\r\n // add the delta to the smoothing array\r\n history[idx] = delta;\r\n\r\n // adjusts the delta history array index based on the smoothing count\r\n // this stops the array growing beyond the size of deltaSmoothingMax\r\n this.deltaIndex++;\r\n\r\n if (this.deltaIndex >= max)\r\n {\r\n this.deltaIndex = 0;\r\n }\r\n\r\n // Loop the history array, adding the delta values together\r\n var avg = 0;\r\n\r\n for (var i = 0; i < max; i++)\r\n {\r\n avg += history[i];\r\n }\r\n\r\n // Then divide by the array length to get the average delta\r\n avg /= max;\r\n\r\n return avg;\r\n },\r\n\r\n /**\r\n * Update the estimate of the frame rate, `fps`. Every second, the number\r\n * of frames that occurred in that second are included in an exponential\r\n * moving average of all frames per second, with an alpha of 0.25. This\r\n * means that more recent seconds affect the estimated frame rate more than\r\n * older seconds.\r\n *\r\n * When a browser window is NOT minimized, but is covered up (i.e. you're using\r\n * another app which has spawned a window over the top of the browser), then it\r\n * will start to throttle the raf callback time. It waits for a while, and then\r\n * starts to drop the frame rate at 1 frame per second until it's down to just over 1fps.\r\n * So if the game was running at 60fps, and the player opens a new window, then\r\n * after 60 seconds (+ the 'buffer time') it'll be down to 1fps, so rafin'g at 1Hz.\r\n *\r\n * When they make the game visible again, the frame rate is increased at a rate of\r\n * approx. 8fps, back up to 60fps (or the max it can obtain)\r\n *\r\n * There is no easy way to determine if this drop in frame rate is because the\r\n * browser is throttling raf, or because the game is struggling with performance\r\n * because you're asking it to do too much on the device.\r\n *\r\n * Compute the new exponential moving average with an alpha of 0.25.\r\n *\r\n * @method Phaser.Core.TimeStep#updateFPS\r\n * @since 3.60.0\r\n *\r\n * @param {number} time - The timestamp passed in from RequestAnimationFrame or setTimeout.\r\n */\r\n updateFPS: function (time)\r\n {\r\n this.actualFps = 0.25 * this.framesThisSecond + 0.75 * this.actualFps;\r\n this.nextFpsUpdate = time + 1000;\r\n this.framesThisSecond = 0;\r\n },\r\n\r\n /**\r\n * The main step method with an fps limiter. This is called each time the browser updates, either by Request Animation Frame,\r\n * or by Set Timeout. It is responsible for calculating the delta values, frame totals, cool down history and more.\r\n * You generally should never call this method directly.\r\n *\r\n * @method Phaser.Core.TimeStep#stepLimitFPS\r\n * @since 3.60.0\r\n *\r\n * @param {number} time - The timestamp passed in from RequestAnimationFrame or setTimeout.\r\n */\r\n stepLimitFPS: function (time)\r\n {\r\n this.now = time;\r\n\r\n // delta time (time is in ms)\r\n // Math.max because Chrome will sometimes give negative deltas\r\n var delta = Math.max(0, time - this.lastTime);\r\n\r\n this.rawDelta = delta;\r\n\r\n // Real-world timer advance\r\n this.time += this.rawDelta;\r\n\r\n if (this.smoothStep)\r\n {\r\n delta = this.smoothDelta(delta);\r\n }\r\n\r\n // Set as the world delta value (after smoothing, if applied)\r\n this.delta += delta;\r\n\r\n if (time >= this.nextFpsUpdate)\r\n {\r\n this.updateFPS(time);\r\n }\r\n\r\n this.framesThisSecond++;\r\n\r\n if (this.delta >= this._limitRate)\r\n {\r\n this.callback(time, this.delta);\r\n\r\n this.delta = 0;\r\n }\r\n\r\n // Shift time value over\r\n this.lastTime = time;\r\n\r\n this.frame++;\r\n },\r\n\r\n /**\r\n * The main step method. This is called each time the browser updates, either by Request Animation Frame,\r\n * or by Set Timeout. It is responsible for calculating the delta values, frame totals, cool down history and more.\r\n * You generally should never call this method directly.\r\n *\r\n * @method Phaser.Core.TimeStep#step\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The timestamp passed in from RequestAnimationFrame or setTimeout.\r\n */\r\n step: function (time)\r\n {\r\n this.now = time;\r\n\r\n // delta time (time is in ms)\r\n // Math.max because Chrome will sometimes give negative deltas\r\n var delta = Math.max(0, time - this.lastTime);\r\n\r\n this.rawDelta = delta;\r\n\r\n // Real-world timer advance\r\n this.time += this.rawDelta;\r\n\r\n if (this.smoothStep)\r\n {\r\n delta = this.smoothDelta(delta);\r\n }\r\n\r\n // Set as the world delta value (after smoothing, if applied)\r\n this.delta = delta;\r\n\r\n if (time >= this.nextFpsUpdate)\r\n {\r\n this.updateFPS(time);\r\n }\r\n\r\n this.framesThisSecond++;\r\n\r\n this.callback(time, delta);\r\n\r\n // Shift time value over\r\n this.lastTime = time;\r\n\r\n this.frame++;\r\n },\r\n\r\n /**\r\n * Manually calls `TimeStep.step`.\r\n *\r\n * @method Phaser.Core.TimeStep#tick\r\n * @since 3.0.0\r\n */\r\n tick: function ()\r\n {\r\n var now = window.performance.now();\r\n\r\n if (this.hasFpsLimit)\r\n {\r\n this.stepLimitFPS(now);\r\n }\r\n else\r\n {\r\n this.step(now);\r\n }\r\n },\r\n\r\n /**\r\n * Sends the TimeStep to sleep, stopping Request Animation Frame (or SetTimeout) and toggling the `running` flag to false.\r\n *\r\n * @method Phaser.Core.TimeStep#sleep\r\n * @since 3.0.0\r\n */\r\n sleep: function ()\r\n {\r\n if (this.running)\r\n {\r\n this.raf.stop();\r\n\r\n this.running = false;\r\n }\r\n },\r\n\r\n /**\r\n * Wakes-up the TimeStep, restarting Request Animation Frame (or SetTimeout) and toggling the `running` flag to true.\r\n * The `seamless` argument controls if the wake-up should adjust the start time or not.\r\n *\r\n * @method Phaser.Core.TimeStep#wake\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [seamless=false] - Adjust the startTime based on the lastTime values.\r\n */\r\n wake: function (seamless)\r\n {\r\n if (seamless === undefined) { seamless = false; }\r\n\r\n var now = window.performance.now();\r\n\r\n if (this.running)\r\n {\r\n return;\r\n }\r\n else if (seamless)\r\n {\r\n this.startTime += -this.lastTime + (this.lastTime + now);\r\n }\r\n\r\n var step = (this.hasFpsLimit) ? this.stepLimitFPS.bind(this) : this.step.bind(this);\r\n\r\n this.raf.start(step, this.forceSetTimeOut, this._target);\r\n\r\n this.running = true;\r\n\r\n this.nextFpsUpdate = now + 1000;\r\n this.framesThisSecond = 0;\r\n this.fpsLimitTriggered = false;\r\n\r\n this.tick();\r\n },\r\n\r\n /**\r\n * Gets the duration which the game has been running, in seconds.\r\n *\r\n * @method Phaser.Core.TimeStep#getDuration\r\n * @since 3.17.0\r\n *\r\n * @return {number} The duration in seconds.\r\n */\r\n getDuration: function ()\r\n {\r\n return Math.round(this.lastTime - this.startTime) / 1000;\r\n },\r\n\r\n /**\r\n * Gets the duration which the game has been running, in ms.\r\n *\r\n * @method Phaser.Core.TimeStep#getDurationMS\r\n * @since 3.17.0\r\n *\r\n * @return {number} The duration in ms.\r\n */\r\n getDurationMS: function ()\r\n {\r\n return Math.round(this.lastTime - this.startTime);\r\n },\r\n\r\n /**\r\n * Stops the TimeStep running.\r\n *\r\n * @method Phaser.Core.TimeStep#stop\r\n * @since 3.0.0\r\n *\r\n * @return {this} The TimeStep object.\r\n */\r\n stop: function ()\r\n {\r\n this.running = false;\r\n this.started = false;\r\n\r\n this.raf.stop();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Destroys the TimeStep. This will stop Request Animation Frame, stop the step, clear the callbacks and null\r\n * any objects.\r\n *\r\n * @method Phaser.Core.TimeStep#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.stop();\r\n\r\n this.raf.destroy();\r\n\r\n this.raf = null;\r\n this.game = null;\r\n this.callback = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = TimeStep;\r\n\n\n/***/ }),\n\n/***/ 51085:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Events = __webpack_require__(8443);\r\n\r\n/**\r\n * The Visibility Handler is responsible for listening out for document level visibility change events.\r\n * This includes `visibilitychange` if the browser supports it, and blur and focus events. It then uses\r\n * the provided Event Emitter and fires the related events.\r\n *\r\n * @function Phaser.Core.VisibilityHandler\r\n * @fires Phaser.Core.Events#BLUR\r\n * @fires Phaser.Core.Events#FOCUS\r\n * @fires Phaser.Core.Events#HIDDEN\r\n * @fires Phaser.Core.Events#VISIBLE\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Game} game - The Game instance this Visibility Handler is working on.\r\n */\r\nvar VisibilityHandler = function (game)\r\n{\r\n var hiddenVar;\r\n var eventEmitter = game.events;\r\n\r\n if (document.hidden !== undefined)\r\n {\r\n hiddenVar = 'visibilitychange';\r\n }\r\n else\r\n {\r\n var vendors = [ 'webkit', 'moz', 'ms' ];\r\n\r\n vendors.forEach(function (prefix)\r\n {\r\n if (document[prefix + 'Hidden'] !== undefined)\r\n {\r\n document.hidden = function ()\r\n {\r\n return document[prefix + 'Hidden'];\r\n };\r\n\r\n hiddenVar = prefix + 'visibilitychange';\r\n }\r\n\r\n });\r\n }\r\n\r\n var onChange = function (event)\r\n {\r\n if (document.hidden || event.type === 'pause')\r\n {\r\n eventEmitter.emit(Events.HIDDEN);\r\n }\r\n else\r\n {\r\n eventEmitter.emit(Events.VISIBLE);\r\n }\r\n };\r\n\r\n if (hiddenVar)\r\n {\r\n document.addEventListener(hiddenVar, onChange, false);\r\n }\r\n\r\n window.onblur = function ()\r\n {\r\n eventEmitter.emit(Events.BLUR);\r\n };\r\n\r\n window.onfocus = function ()\r\n {\r\n eventEmitter.emit(Events.FOCUS);\r\n };\r\n\r\n // Automatically give the window focus unless config says otherwise\r\n if (window.focus && game.config.autoFocus)\r\n {\r\n window.focus();\r\n }\r\n};\r\n\r\nmodule.exports = VisibilityHandler;\r\n\n\n/***/ }),\n\n/***/ 97217:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Blur Event.\r\n *\r\n * This event is dispatched by the Game Visibility Handler when the window in which the Game instance is embedded\r\n * enters a blurred state. The blur event is raised when the window loses focus. This can happen if a user swaps\r\n * tab, or if they simply remove focus from the browser to another app.\r\n *\r\n * @event Phaser.Core.Events#BLUR\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\nmodule.exports = 'blur';\r\n\n\n/***/ }),\n\n/***/ 47548:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Boot Event.\r\n *\r\n * This event is dispatched when the Phaser Game instance has finished booting, but before it is ready to start running.\r\n * The global systems use this event to know when to set themselves up, dispatching their own `ready` events as required.\r\n *\r\n * @event Phaser.Core.Events#BOOT\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\nmodule.exports = 'boot';\r\n\n\n/***/ }),\n\n/***/ 19814:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Context Lost Event.\r\n *\r\n * This event is dispatched by the Game if the WebGL Renderer it is using encounters a WebGL Context Lost event from the browser.\r\n *\r\n * The renderer halts all rendering and cannot resume after this happens.\r\n *\r\n * @event Phaser.Core.Events#CONTEXT_LOST\r\n * @type {string}\r\n * @since 3.19.0\r\n */\r\nmodule.exports = 'contextlost';\r\n\n\n/***/ }),\n\n/***/ 68446:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Destroy Event.\r\n *\r\n * This event is dispatched when the game instance has been told to destroy itself.\r\n * Lots of internal systems listen to this event in order to clear themselves out.\r\n * Custom plugins and game code should also do the same.\r\n *\r\n * @event Phaser.Core.Events#DESTROY\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\nmodule.exports = 'destroy';\r\n\n\n/***/ }),\n\n/***/ 41700:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Focus Event.\r\n *\r\n * This event is dispatched by the Game Visibility Handler when the window in which the Game instance is embedded\r\n * enters a focused state. The focus event is raised when the window re-gains focus, having previously lost it.\r\n *\r\n * @event Phaser.Core.Events#FOCUS\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\nmodule.exports = 'focus';\r\n\n\n/***/ }),\n\n/***/ 25432:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Hidden Event.\r\n *\r\n * This event is dispatched by the Game Visibility Handler when the document in which the Game instance is embedded\r\n * enters a hidden state. Only browsers that support the Visibility API will cause this event to be emitted.\r\n *\r\n * In most modern browsers, when the document enters a hidden state, the Request Animation Frame and setTimeout, which\r\n * control the main game loop, will automatically pause. There is no way to stop this from happening. It is something\r\n * your game should account for in its own code, should the pause be an issue (i.e. for multiplayer games)\r\n *\r\n * @event Phaser.Core.Events#HIDDEN\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\nmodule.exports = 'hidden';\r\n\n\n/***/ }),\n\n/***/ 65942:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Pause Event.\r\n *\r\n * This event is dispatched when the Game loop enters a paused state, usually as a result of the Visibility Handler.\r\n *\r\n * @event Phaser.Core.Events#PAUSE\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\nmodule.exports = 'pause';\r\n\n\n/***/ }),\n\n/***/ 59211:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Post-Render Event.\r\n *\r\n * This event is dispatched right at the end of the render process.\r\n *\r\n * Every Scene will have rendered and been drawn to the canvas by the time this event is fired.\r\n * Use it for any last minute post-processing before the next game step begins.\r\n *\r\n * @event Phaser.Core.Events#POST_RENDER\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)} renderer - A reference to the current renderer being used by the Game instance.\r\n */\r\nmodule.exports = 'postrender';\r\n\n\n/***/ }),\n\n/***/ 47789:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Post-Step Event.\r\n *\r\n * This event is dispatched after the Scene Manager has updated.\r\n * Hook into it from plugins or systems that need to do things before the render starts.\r\n *\r\n * @event Phaser.Core.Events#POST_STEP\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n */\r\nmodule.exports = 'poststep';\r\n\n\n/***/ }),\n\n/***/ 39066:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Pre-Render Event.\r\n *\r\n * This event is dispatched immediately before any of the Scenes have started to render.\r\n *\r\n * The renderer will already have been initialized this frame, clearing itself and preparing to receive the Scenes for rendering, but it won't have actually drawn anything yet.\r\n *\r\n * @event Phaser.Core.Events#PRE_RENDER\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)} renderer - A reference to the current renderer being used by the Game instance.\r\n */\r\nmodule.exports = 'prerender';\r\n\n\n/***/ }),\n\n/***/ 460:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Pre-Step Event.\r\n *\r\n * This event is dispatched before the main Game Step starts. By this point in the game cycle none of the Scene updates have yet happened.\r\n * Hook into it from plugins or systems that need to update before the Scene Manager does.\r\n *\r\n * @event Phaser.Core.Events#PRE_STEP\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n */\r\nmodule.exports = 'prestep';\r\n\n\n/***/ }),\n\n/***/ 16175:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Ready Event.\r\n *\r\n * This event is dispatched when the Phaser Game instance has finished booting, the Texture Manager is fully ready,\r\n * and all local systems are now able to start.\r\n *\r\n * @event Phaser.Core.Events#READY\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\nmodule.exports = 'ready';\r\n\n\n/***/ }),\n\n/***/ 42331:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Resume Event.\r\n *\r\n * This event is dispatched when the game loop leaves a paused state and resumes running.\r\n *\r\n * @event Phaser.Core.Events#RESUME\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {number} pauseDuration - The duration, in ms, that the game was paused for, or 0 if {@link Phaser.Game#resume} was called.\r\n */\r\nmodule.exports = 'resume';\r\n\n\n/***/ }),\n\n/***/ 11966:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Step Event.\r\n *\r\n * This event is dispatched after the Game Pre-Step and before the Scene Manager steps.\r\n * Hook into it from plugins or systems that need to update before the Scene Manager does, but after the core Systems have.\r\n *\r\n * @event Phaser.Core.Events#STEP\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n */\r\nmodule.exports = 'step';\r\n\n\n/***/ }),\n\n/***/ 32969:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * This event is dispatched when the Scene Manager has created the System Scene,\r\n * which other plugins and systems may use to initialize themselves.\r\n *\r\n * This event is dispatched just once by the Game instance.\r\n *\r\n * @event Phaser.Core.Events#SYSTEM_READY\r\n * @type {string}\r\n * @since 3.70.0\r\n *\r\n * @param {Phaser.Scenes.Systems} sys - A reference to the Scene Systems class of the Scene that emitted this event.\r\n */\r\nmodule.exports = 'systemready';\r\n\n\n/***/ }),\n\n/***/ 94830:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Visible Event.\r\n *\r\n * This event is dispatched by the Game Visibility Handler when the document in which the Game instance is embedded\r\n * enters a visible state, previously having been hidden.\r\n *\r\n * Only browsers that support the Visibility API will cause this event to be emitted.\r\n *\r\n * @event Phaser.Core.Events#VISIBLE\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\nmodule.exports = 'visible';\r\n\n\n/***/ }),\n\n/***/ 8443:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Core.Events\r\n */\r\n\r\nmodule.exports = {\r\n\r\n BLUR: __webpack_require__(97217),\r\n BOOT: __webpack_require__(47548),\r\n CONTEXT_LOST: __webpack_require__(19814),\r\n DESTROY: __webpack_require__(68446),\r\n FOCUS: __webpack_require__(41700),\r\n HIDDEN: __webpack_require__(25432),\r\n PAUSE: __webpack_require__(65942),\r\n POST_RENDER: __webpack_require__(59211),\r\n POST_STEP: __webpack_require__(47789),\r\n PRE_RENDER: __webpack_require__(39066),\r\n PRE_STEP: __webpack_require__(460),\r\n READY: __webpack_require__(16175),\r\n RESUME: __webpack_require__(42331),\r\n STEP: __webpack_require__(11966),\r\n SYSTEM_READY: __webpack_require__(32969),\r\n VISIBLE: __webpack_require__(94830)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 42857:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Core\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Config: __webpack_require__(69547),\r\n CreateRenderer: __webpack_require__(86054),\r\n DebugHeader: __webpack_require__(96391),\r\n Events: __webpack_require__(8443),\r\n TimeStep: __webpack_require__(65898),\r\n VisibilityHandler: __webpack_require__(51085)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 99584:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Arne16 = __webpack_require__(5290);\r\nvar CanvasPool = __webpack_require__(27919);\r\nvar GetValue = __webpack_require__(35154);\r\n\r\n/**\r\n * Generates a texture based on the given Create configuration object.\r\n *\r\n * The texture is drawn using a fixed-size indexed palette of 16 colors, where the hex value in the\r\n * data cells map to a single color. For example, if the texture config looked like this:\r\n *\r\n * ```javascript\r\n * var star = [\r\n * '.....828.....',\r\n * '....72227....',\r\n * '....82228....',\r\n * '...7222227...',\r\n * '2222222222222',\r\n * '8222222222228',\r\n * '.72222222227.',\r\n * '..787777787..',\r\n * '..877777778..',\r\n * '.78778887787.',\r\n * '.27887.78872.',\r\n * '.787.....787.'\r\n * ];\r\n *\r\n * this.textures.generate('star', { data: star, pixelWidth: 4 });\r\n * ```\r\n *\r\n * Then it would generate a texture that is 52 x 48 pixels in size, because each cell of the data array\r\n * represents 1 pixel multiplied by the `pixelWidth` value. The cell values, such as `8`, maps to color\r\n * number 8 in the palette. If a cell contains a period character `.` then it is transparent.\r\n *\r\n * The default palette is Arne16, but you can specify your own using the `palette` property.\r\n *\r\n * @function Phaser.Create.GenerateTexture\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Create.GenerateTextureConfig} config - The Generate Texture Configuration object.\r\n *\r\n * @return {HTMLCanvasElement} An HTMLCanvasElement which contains the generated texture drawn to it.\r\n */\r\nvar GenerateTexture = function (config)\r\n{\r\n var data = GetValue(config, 'data', []);\r\n var canvas = GetValue(config, 'canvas', null);\r\n var palette = GetValue(config, 'palette', Arne16);\r\n var pixelWidth = GetValue(config, 'pixelWidth', 1);\r\n var pixelHeight = GetValue(config, 'pixelHeight', pixelWidth);\r\n var resizeCanvas = GetValue(config, 'resizeCanvas', true);\r\n var clearCanvas = GetValue(config, 'clearCanvas', true);\r\n var preRender = GetValue(config, 'preRender', null);\r\n var postRender = GetValue(config, 'postRender', null);\r\n\r\n var width = Math.floor(Math.abs(data[0].length * pixelWidth));\r\n var height = Math.floor(Math.abs(data.length * pixelHeight));\r\n\r\n if (!canvas)\r\n {\r\n canvas = CanvasPool.create2D(this, width, height);\r\n resizeCanvas = false;\r\n clearCanvas = false;\r\n }\r\n\r\n if (resizeCanvas)\r\n {\r\n canvas.width = width;\r\n canvas.height = height;\r\n }\r\n\r\n var ctx = canvas.getContext('2d', { willReadFrequently: true });\r\n\r\n if (clearCanvas)\r\n {\r\n ctx.clearRect(0, 0, width, height);\r\n }\r\n\r\n // preRender Callback?\r\n if (preRender)\r\n {\r\n preRender(canvas, ctx);\r\n }\r\n\r\n // Draw it\r\n for (var y = 0; y < data.length; y++)\r\n {\r\n var row = data[y];\r\n\r\n for (var x = 0; x < row.length; x++)\r\n {\r\n var d = row[x];\r\n\r\n if (d !== '.' && d !== ' ')\r\n {\r\n ctx.fillStyle = palette[d];\r\n ctx.fillRect(x * pixelWidth, y * pixelHeight, pixelWidth, pixelHeight);\r\n }\r\n }\r\n }\r\n\r\n // postRender Callback?\r\n if (postRender)\r\n {\r\n postRender(canvas, ctx);\r\n }\r\n\r\n return canvas;\r\n};\r\n\r\nmodule.exports = GenerateTexture;\r\n\n\n/***/ }),\n\n/***/ 15822:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Create\r\n */\r\n\r\nmodule.exports = {\r\n\r\n GenerateTexture: __webpack_require__(99584),\r\n Palettes: __webpack_require__(57763)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 5290:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * A 16 color palette by [Arne](http://androidarts.com/palette/16pal.htm)\r\n *\r\n * @name Phaser.Create.Palettes.ARNE16\r\n * @since 3.0.0\r\n *\r\n * @type {Phaser.Types.Create.Palette}\r\n */\r\nmodule.exports = {\r\n 0: '#000',\r\n 1: '#9D9D9D',\r\n 2: '#FFF',\r\n 3: '#BE2633',\r\n 4: '#E06F8B',\r\n 5: '#493C2B',\r\n 6: '#A46422',\r\n 7: '#EB8931',\r\n 8: '#F7E26B',\r\n 9: '#2F484E',\r\n A: '#44891A',\r\n B: '#A3CE27',\r\n C: '#1B2632',\r\n D: '#005784',\r\n E: '#31A2F2',\r\n F: '#B2DCEF'\r\n};\r\n\n\n/***/ }),\n\n/***/ 23816:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * A 16 color palette inspired by the Commodore 64.\r\n *\r\n * @name Phaser.Create.Palettes.C64\r\n * @since 3.0.0\r\n *\r\n * @type {Phaser.Types.Create.Palette}\r\n */\r\nmodule.exports = {\r\n 0: '#000',\r\n 1: '#fff',\r\n 2: '#8b4131',\r\n 3: '#7bbdc5',\r\n 4: '#8b41ac',\r\n 5: '#6aac41',\r\n 6: '#3931a4',\r\n 7: '#d5de73',\r\n 8: '#945a20',\r\n 9: '#5a4100',\r\n A: '#bd736a',\r\n B: '#525252',\r\n C: '#838383',\r\n D: '#acee8b',\r\n E: '#7b73de',\r\n F: '#acacac'\r\n};\r\n\n\n/***/ }),\n\n/***/ 9866:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * A 16 color CGA inspired palette by [Arne](http://androidarts.com/palette/16pal.htm)\r\n *\r\n * @name Phaser.Create.Palettes.CGA\r\n * @since 3.0.0\r\n *\r\n * @type {Phaser.Types.Create.Palette}\r\n */\r\nmodule.exports = {\r\n 0: '#000',\r\n 1: '#2234d1',\r\n 2: '#0c7e45',\r\n 3: '#44aacc',\r\n 4: '#8a3622',\r\n 5: '#5c2e78',\r\n 6: '#aa5c3d',\r\n 7: '#b5b5b5',\r\n 8: '#5e606e',\r\n 9: '#4c81fb',\r\n A: '#6cd947',\r\n B: '#7be2f9',\r\n C: '#eb8a60',\r\n D: '#e23d69',\r\n E: '#ffd93f',\r\n F: '#fff'\r\n};\r\n\n\n/***/ }),\n\n/***/ 77552:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * A 16 color JMP palette by [Arne](http://androidarts.com/palette/16pal.htm)\r\n *\r\n * @name Phaser.Create.Palettes.JMP\r\n * @since 3.0.0\r\n *\r\n * @type {Phaser.Types.Create.Palette}\r\n */\r\nmodule.exports = {\r\n 0: '#000',\r\n 1: '#191028',\r\n 2: '#46af45',\r\n 3: '#a1d685',\r\n 4: '#453e78',\r\n 5: '#7664fe',\r\n 6: '#833129',\r\n 7: '#9ec2e8',\r\n 8: '#dc534b',\r\n 9: '#e18d79',\r\n A: '#d6b97b',\r\n B: '#e9d8a1',\r\n C: '#216c4b',\r\n D: '#d365c8',\r\n E: '#afaab9',\r\n F: '#f5f4eb'\r\n};\r\n\n\n/***/ }),\n\n/***/ 92259:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * A 16 color palette inspired by Japanese computers like the MSX.\r\n *\r\n * @name Phaser.Create.Palettes.MSX\r\n * @since 3.0.0\r\n *\r\n * @type {Phaser.Types.Create.Palette}\r\n */\r\nmodule.exports = {\r\n 0: '#000',\r\n 1: '#191028',\r\n 2: '#46af45',\r\n 3: '#a1d685',\r\n 4: '#453e78',\r\n 5: '#7664fe',\r\n 6: '#833129',\r\n 7: '#9ec2e8',\r\n 8: '#dc534b',\r\n 9: '#e18d79',\r\n A: '#d6b97b',\r\n B: '#e9d8a1',\r\n C: '#216c4b',\r\n D: '#d365c8',\r\n E: '#afaab9',\r\n F: '#fff'\r\n};\r\n\n\n/***/ }),\n\n/***/ 57763:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Create.Palettes\r\n */\r\n\r\nmodule.exports = {\r\n\r\n ARNE16: __webpack_require__(5290),\r\n C64: __webpack_require__(23816),\r\n CGA: __webpack_require__(9866),\r\n JMP: __webpack_require__(77552),\r\n MSX: __webpack_require__(92259)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 46728:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog)\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CubicBezier = __webpack_require__(36316);\r\nvar Curve = __webpack_require__(80021);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * A higher-order Bézier curve constructed of four points.\r\n *\r\n * @class CubicBezier\r\n * @extends Phaser.Curves.Curve\r\n * @memberof Phaser.Curves\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Vector2|Phaser.Math.Vector2[])} p0 - Start point, or an array of point pairs.\r\n * @param {Phaser.Math.Vector2} p1 - Control Point 1.\r\n * @param {Phaser.Math.Vector2} p2 - Control Point 2.\r\n * @param {Phaser.Math.Vector2} p3 - End Point.\r\n */\r\nvar CubicBezierCurve = new Class({\r\n\r\n Extends: Curve,\r\n\r\n initialize:\r\n\r\n function CubicBezierCurve (p0, p1, p2, p3)\r\n {\r\n Curve.call(this, 'CubicBezierCurve');\r\n\r\n if (Array.isArray(p0))\r\n {\r\n p3 = new Vector2(p0[6], p0[7]);\r\n p2 = new Vector2(p0[4], p0[5]);\r\n p1 = new Vector2(p0[2], p0[3]);\r\n p0 = new Vector2(p0[0], p0[1]);\r\n }\r\n\r\n /**\r\n * The start point of this curve.\r\n *\r\n * @name Phaser.Curves.CubicBezier#p0\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.p0 = p0;\r\n\r\n /**\r\n * The first control point of this curve.\r\n *\r\n * @name Phaser.Curves.CubicBezier#p1\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.p1 = p1;\r\n\r\n /**\r\n * The second control point of this curve.\r\n *\r\n * @name Phaser.Curves.CubicBezier#p2\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.p2 = p2;\r\n\r\n /**\r\n * The end point of this curve.\r\n *\r\n * @name Phaser.Curves.CubicBezier#p3\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.p3 = p3;\r\n },\r\n\r\n /**\r\n * Gets the starting point on the curve.\r\n *\r\n * @method Phaser.Curves.CubicBezier#getStartPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {Phaser.Math.Vector2} [out] - A Vector2 object to store the result in. If not given will be created.\r\n *\r\n * @return {Phaser.Math.Vector2} The coordinates of the point on the curve. If an `out` object was given this will be returned.\r\n */\r\n getStartPoint: function (out)\r\n {\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n return out.copy(this.p0);\r\n },\r\n\r\n /**\r\n * Returns the resolution of this curve.\r\n *\r\n * @method Phaser.Curves.CubicBezier#getResolution\r\n * @since 3.0.0\r\n *\r\n * @param {number} divisions - The amount of divisions used by this curve.\r\n *\r\n * @return {number} The resolution of the curve.\r\n */\r\n getResolution: function (divisions)\r\n {\r\n return divisions;\r\n },\r\n\r\n /**\r\n * Get point at relative position in curve according to length.\r\n *\r\n * @method Phaser.Curves.CubicBezier#getPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {number} t - The position along the curve to return. Where 0 is the start and 1 is the end.\r\n * @param {Phaser.Math.Vector2} [out] - A Vector2 object to store the result in. If not given will be created.\r\n *\r\n * @return {Phaser.Math.Vector2} The coordinates of the point on the curve. If an `out` object was given this will be returned.\r\n */\r\n getPoint: function (t, out)\r\n {\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n var p0 = this.p0;\r\n var p1 = this.p1;\r\n var p2 = this.p2;\r\n var p3 = this.p3;\r\n\r\n return out.set(CubicBezier(t, p0.x, p1.x, p2.x, p3.x), CubicBezier(t, p0.y, p1.y, p2.y, p3.y));\r\n },\r\n\r\n /**\r\n * Draws this curve to the specified graphics object.\r\n *\r\n * @method Phaser.Curves.CubicBezier#draw\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.Graphics} G - [graphics,$return]\r\n *\r\n * @param {Phaser.GameObjects.Graphics} graphics - The graphics object this curve should be drawn to.\r\n * @param {number} [pointsTotal=32] - The number of intermediary points that make up this curve. A higher number of points will result in a smoother curve.\r\n *\r\n * @return {Phaser.GameObjects.Graphics} The graphics object this curve was drawn to. Useful for method chaining.\r\n */\r\n draw: function (graphics, pointsTotal)\r\n {\r\n if (pointsTotal === undefined) { pointsTotal = 32; }\r\n\r\n var points = this.getPoints(pointsTotal);\r\n\r\n graphics.beginPath();\r\n graphics.moveTo(this.p0.x, this.p0.y);\r\n\r\n for (var i = 1; i < points.length; i++)\r\n {\r\n graphics.lineTo(points[i].x, points[i].y);\r\n }\r\n\r\n graphics.strokePath();\r\n\r\n // So you can chain graphics calls\r\n return graphics;\r\n },\r\n\r\n /**\r\n * Returns a JSON object that describes this curve.\r\n *\r\n * @method Phaser.Curves.CubicBezier#toJSON\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Types.Curves.JSONCurve} The JSON object containing this curve data.\r\n */\r\n toJSON: function ()\r\n {\r\n return {\r\n type: this.type,\r\n points: [\r\n this.p0.x, this.p0.y,\r\n this.p1.x, this.p1.y,\r\n this.p2.x, this.p2.y,\r\n this.p3.x, this.p3.y\r\n ]\r\n };\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Generates a curve from a JSON object.\r\n *\r\n * @function Phaser.Curves.CubicBezier.fromJSON\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Curves.JSONCurve} data - The JSON object containing this curve data.\r\n *\r\n * @return {Phaser.Curves.CubicBezier} The curve generated from the JSON object.\r\n */\r\nCubicBezierCurve.fromJSON = function (data)\r\n{\r\n var points = data.points;\r\n\r\n var p0 = new Vector2(points[0], points[1]);\r\n var p1 = new Vector2(points[2], points[3]);\r\n var p2 = new Vector2(points[4], points[5]);\r\n var p3 = new Vector2(points[6], points[7]);\r\n\r\n return new CubicBezierCurve(p0, p1, p2, p3);\r\n};\r\n\r\nmodule.exports = CubicBezierCurve;\r\n\n\n/***/ }),\n\n/***/ 80021:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar FromPoints = __webpack_require__(19217);\r\nvar Rectangle = __webpack_require__(87841);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * A Base Curve class, which all other curve types extend.\r\n *\r\n * Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog)\r\n *\r\n * @class Curve\r\n * @memberof Phaser.Curves\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {string} type - The curve type.\r\n */\r\nvar Curve = new Class({\r\n\r\n initialize:\r\n\r\n function Curve (type)\r\n {\r\n /**\r\n * String based identifier for the type of curve.\r\n *\r\n * @name Phaser.Curves.Curve#type\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.type = type;\r\n\r\n /**\r\n * The default number of divisions within the curve.\r\n *\r\n * @name Phaser.Curves.Curve#defaultDivisions\r\n * @type {number}\r\n * @default 5\r\n * @since 3.0.0\r\n */\r\n this.defaultDivisions = 5;\r\n\r\n /**\r\n * The quantity of arc length divisions within the curve.\r\n *\r\n * @name Phaser.Curves.Curve#arcLengthDivisions\r\n * @type {number}\r\n * @default 100\r\n * @since 3.0.0\r\n */\r\n this.arcLengthDivisions = 100;\r\n\r\n /**\r\n * An array of cached arc length values.\r\n *\r\n * @name Phaser.Curves.Curve#cacheArcLengths\r\n * @type {number[]}\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this.cacheArcLengths = [];\r\n\r\n /**\r\n * Does the data of this curve need updating?\r\n *\r\n * @name Phaser.Curves.Curve#needsUpdate\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.needsUpdate = true;\r\n\r\n /**\r\n * For a curve on a Path, `false` means the Path will ignore this curve.\r\n *\r\n * @name Phaser.Curves.Curve#active\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.active = true;\r\n\r\n /**\r\n * A temporary calculation Vector.\r\n *\r\n * @name Phaser.Curves.Curve#_tmpVec2A\r\n * @type {Phaser.Math.Vector2}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._tmpVec2A = new Vector2();\r\n\r\n /**\r\n * A temporary calculation Vector.\r\n *\r\n * @name Phaser.Curves.Curve#_tmpVec2B\r\n * @type {Phaser.Math.Vector2}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._tmpVec2B = new Vector2();\r\n },\r\n\r\n /**\r\n * Draws this curve on the given Graphics object.\r\n *\r\n * The curve is drawn using `Graphics.strokePoints` so will be drawn at whatever the present Graphics stroke color is.\r\n * The Graphics object is not cleared before the draw, so the curve will appear on-top of anything else already rendered to it.\r\n *\r\n * @method Phaser.Curves.Curve#draw\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.Graphics} G - [graphics,$return]\r\n *\r\n * @param {Phaser.GameObjects.Graphics} graphics - The Graphics instance onto which this curve will be drawn.\r\n * @param {number} [pointsTotal=32] - The resolution of the curve. The higher the value the smoother it will render, at the cost of rendering performance.\r\n *\r\n * @return {Phaser.GameObjects.Graphics} The Graphics object to which the curve was drawn.\r\n */\r\n draw: function (graphics, pointsTotal)\r\n {\r\n if (pointsTotal === undefined) { pointsTotal = 32; }\r\n\r\n // So you can chain graphics calls\r\n return graphics.strokePoints(this.getPoints(pointsTotal));\r\n },\r\n\r\n /**\r\n * Returns a Rectangle where the position and dimensions match the bounds of this Curve.\r\n *\r\n * You can control the accuracy of the bounds. The value given is used to work out how many points\r\n * to plot across the curve. Higher values are more accurate at the cost of calculation speed.\r\n *\r\n * @method Phaser.Curves.Curve#getBounds\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Rectangle} [out] - The Rectangle to store the bounds in. If falsey a new object will be created.\r\n * @param {number} [accuracy=16] - The accuracy of the bounds calculations.\r\n *\r\n * @return {Phaser.Geom.Rectangle} A Rectangle object holding the bounds of this curve. If `out` was given it will be this object.\r\n */\r\n getBounds: function (out, accuracy)\r\n {\r\n if (!out) { out = new Rectangle(); }\r\n if (accuracy === undefined) { accuracy = 16; }\r\n\r\n var len = this.getLength();\r\n\r\n if (accuracy > len)\r\n {\r\n accuracy = len / 2;\r\n }\r\n\r\n // The length of the curve in pixels\r\n // So we'll have 1 spaced point per 'accuracy' pixels\r\n\r\n var spaced = Math.max(1, Math.round(len / accuracy));\r\n\r\n return FromPoints(this.getSpacedPoints(spaced), out);\r\n },\r\n\r\n /**\r\n * Returns an array of points, spaced out X distance pixels apart.\r\n * The smaller the distance, the larger the array will be.\r\n *\r\n * @method Phaser.Curves.Curve#getDistancePoints\r\n * @since 3.0.0\r\n *\r\n * @param {number} distance - The distance, in pixels, between each point along the curve.\r\n *\r\n * @return {Phaser.Geom.Point[]} An Array of Point objects.\r\n */\r\n getDistancePoints: function (distance)\r\n {\r\n var len = this.getLength();\r\n\r\n var spaced = Math.max(1, len / distance);\r\n\r\n return this.getSpacedPoints(spaced);\r\n },\r\n\r\n /**\r\n * Get a point at the end of the curve.\r\n *\r\n * @method Phaser.Curves.Curve#getEndPoint\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector2} [out] - Optional Vector object to store the result in.\r\n *\r\n * @return {Phaser.Math.Vector2} Vector2 containing the coordinates of the curves end point.\r\n */\r\n getEndPoint: function (out)\r\n {\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n return this.getPointAt(1, out);\r\n },\r\n\r\n /**\r\n * Get total curve arc length\r\n *\r\n * @method Phaser.Curves.Curve#getLength\r\n * @since 3.0.0\r\n *\r\n * @return {number} The total length of the curve.\r\n */\r\n getLength: function ()\r\n {\r\n var lengths = this.getLengths();\r\n\r\n return lengths[lengths.length - 1];\r\n },\r\n\r\n\r\n /**\r\n * Get a list of cumulative segment lengths.\r\n *\r\n * These lengths are\r\n *\r\n * - [0] 0\r\n * - [1] The first segment\r\n * - [2] The first and second segment\r\n * - ...\r\n * - [divisions] All segments\r\n *\r\n * @method Phaser.Curves.Curve#getLengths\r\n * @since 3.0.0\r\n *\r\n * @param {number} [divisions] - The number of divisions or segments.\r\n *\r\n * @return {number[]} An array of cumulative lengths.\r\n */\r\n getLengths: function (divisions)\r\n {\r\n if (divisions === undefined) { divisions = this.arcLengthDivisions; }\r\n\r\n if ((this.cacheArcLengths.length === divisions + 1) && !this.needsUpdate)\r\n {\r\n return this.cacheArcLengths;\r\n }\r\n\r\n this.needsUpdate = false;\r\n\r\n var cache = [];\r\n var current;\r\n var last = this.getPoint(0, this._tmpVec2A);\r\n var sum = 0;\r\n\r\n cache.push(0);\r\n\r\n for (var p = 1; p <= divisions; p++)\r\n {\r\n current = this.getPoint(p / divisions, this._tmpVec2B);\r\n\r\n sum += current.distance(last);\r\n\r\n cache.push(sum);\r\n\r\n last.copy(current);\r\n }\r\n\r\n this.cacheArcLengths = cache;\r\n\r\n return cache; // { sums: cache, sum:sum }; Sum is in the last element.\r\n },\r\n\r\n // Get point at relative position in curve according to arc length\r\n\r\n // - u [0 .. 1]\r\n\r\n /**\r\n * Get a point at a relative position on the curve, by arc length.\r\n *\r\n * @method Phaser.Curves.Curve#getPointAt\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {number} u - The relative position, [0..1].\r\n * @param {Phaser.Math.Vector2} [out] - A point to store the result in.\r\n *\r\n * @return {Phaser.Math.Vector2} The point.\r\n */\r\n getPointAt: function (u, out)\r\n {\r\n var t = this.getUtoTmapping(u);\r\n\r\n return this.getPoint(t, out);\r\n },\r\n\r\n // Get sequence of points using getPoint( t )\r\n\r\n /**\r\n * Get a sequence of evenly spaced points from the curve.\r\n *\r\n * You can pass `divisions`, `stepRate`, or neither.\r\n *\r\n * The number of divisions will be\r\n *\r\n * 1. `divisions`, if `divisions` > 0; or\r\n * 2. `this.getLength / stepRate`, if `stepRate` > 0; or\r\n * 3. `this.defaultDivisions`\r\n *\r\n * `1 + divisions` points will be returned.\r\n *\r\n * @method Phaser.Curves.Curve#getPoints\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2[]} O - [out,$return]\r\n *\r\n * @param {number} [divisions] - The number of divisions to make.\r\n * @param {number} [stepRate] - The curve distance between points, implying `divisions`.\r\n * @param {(array|Phaser.Math.Vector2[])} [out] - An optional array to store the points in.\r\n *\r\n * @return {(array|Phaser.Math.Vector2[])} An array of Points from the curve.\r\n */\r\n getPoints: function (divisions, stepRate, out)\r\n {\r\n if (out === undefined) { out = []; }\r\n\r\n // If divisions is a falsey value (false, null, 0, undefined, etc) then we calculate it based on the stepRate instead.\r\n if (!divisions)\r\n {\r\n if (!stepRate)\r\n {\r\n divisions = this.defaultDivisions;\r\n }\r\n else\r\n {\r\n divisions = this.getLength() / stepRate;\r\n }\r\n }\r\n\r\n for (var d = 0; d <= divisions; d++)\r\n {\r\n out.push(this.getPoint(d / divisions));\r\n }\r\n\r\n return out;\r\n },\r\n\r\n /**\r\n * Get a random point from the curve.\r\n *\r\n * @method Phaser.Curves.Curve#getRandomPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {Phaser.Math.Vector2} [out] - A point object to store the result in.\r\n *\r\n * @return {Phaser.Math.Vector2} The point.\r\n */\r\n getRandomPoint: function (out)\r\n {\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n return this.getPoint(Math.random(), out);\r\n },\r\n\r\n // Get sequence of points using getPointAt( u )\r\n\r\n /**\r\n * Get a sequence of equally spaced points (by arc distance) from the curve.\r\n *\r\n * `1 + divisions` points will be returned.\r\n *\r\n * @method Phaser.Curves.Curve#getSpacedPoints\r\n * @since 3.0.0\r\n *\r\n * @param {number} [divisions=this.defaultDivisions] - The number of divisions to make.\r\n * @param {number} [stepRate] - Step between points. Used to calculate the number of points to return when divisions is falsy. Ignored if divisions is positive.\r\n * @param {(array|Phaser.Math.Vector2[])} [out] - An optional array to store the points in.\r\n *\r\n * @return {Phaser.Math.Vector2[]} An array of points.\r\n */\r\n getSpacedPoints: function (divisions, stepRate, out)\r\n {\r\n if (out === undefined) { out = []; }\r\n\r\n // If divisions is a falsey value (false, null, 0, undefined, etc) then we calculate it based on the stepRate instead.\r\n if (!divisions)\r\n {\r\n if (!stepRate)\r\n {\r\n divisions = this.defaultDivisions;\r\n }\r\n else\r\n {\r\n divisions = this.getLength() / stepRate;\r\n }\r\n }\r\n\r\n for (var d = 0; d <= divisions; d++)\r\n {\r\n var t = this.getUtoTmapping(d / divisions, null, divisions);\r\n\r\n out.push(this.getPoint(t));\r\n }\r\n\r\n return out;\r\n },\r\n\r\n /**\r\n * Get a point at the start of the curve.\r\n *\r\n * @method Phaser.Curves.Curve#getStartPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {Phaser.Math.Vector2} [out] - A point to store the result in.\r\n *\r\n * @return {Phaser.Math.Vector2} The point.\r\n */\r\n getStartPoint: function (out)\r\n {\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n return this.getPointAt(0, out);\r\n },\r\n\r\n /**\r\n * Get a unit vector tangent at a relative position on the curve.\r\n * In case any sub curve does not implement its tangent derivation,\r\n * 2 points a small delta apart will be used to find its gradient\r\n * which seems to give a reasonable approximation\r\n *\r\n * @method Phaser.Curves.Curve#getTangent\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {number} t - The relative position on the curve, [0..1].\r\n * @param {Phaser.Math.Vector2} [out] - A vector to store the result in.\r\n *\r\n * @return {Phaser.Math.Vector2} Vector approximating the tangent line at the point t (delta +/- 0.0001)\r\n */\r\n getTangent: function (t, out)\r\n {\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n var delta = 0.0001;\r\n var t1 = t - delta;\r\n var t2 = t + delta;\r\n\r\n // Capping in case of danger\r\n\r\n if (t1 < 0)\r\n {\r\n t1 = 0;\r\n }\r\n\r\n if (t2 > 1)\r\n {\r\n t2 = 1;\r\n }\r\n\r\n this.getPoint(t1, this._tmpVec2A);\r\n this.getPoint(t2, out);\r\n\r\n return out.subtract(this._tmpVec2A).normalize();\r\n },\r\n\r\n /**\r\n * Get a unit vector tangent at a relative position on the curve, by arc length.\r\n *\r\n * @method Phaser.Curves.Curve#getTangentAt\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {number} u - The relative position on the curve, [0..1].\r\n * @param {Phaser.Math.Vector2} [out] - A vector to store the result in.\r\n *\r\n * @return {Phaser.Math.Vector2} The tangent vector.\r\n */\r\n getTangentAt: function (u, out)\r\n {\r\n var t = this.getUtoTmapping(u);\r\n\r\n return this.getTangent(t, out);\r\n },\r\n\r\n /**\r\n * Given a distance in pixels, get a t to find p.\r\n *\r\n * @method Phaser.Curves.Curve#getTFromDistance\r\n * @since 3.0.0\r\n *\r\n * @param {number} distance - The distance, in pixels.\r\n * @param {number} [divisions] - Optional amount of divisions.\r\n *\r\n * @return {number} The distance.\r\n */\r\n getTFromDistance: function (distance, divisions)\r\n {\r\n if (distance <= 0)\r\n {\r\n return 0;\r\n }\r\n\r\n return this.getUtoTmapping(0, distance, divisions);\r\n },\r\n\r\n /**\r\n * Given u ( 0 .. 1 ), get a t to find p. This gives you points which are equidistant.\r\n *\r\n * @method Phaser.Curves.Curve#getUtoTmapping\r\n * @since 3.0.0\r\n *\r\n * @param {number} u - A float between 0 and 1.\r\n * @param {number} distance - The distance, in pixels.\r\n * @param {number} [divisions] - Optional amount of divisions.\r\n *\r\n * @return {number} The equidistant value.\r\n */\r\n getUtoTmapping: function (u, distance, divisions)\r\n {\r\n var arcLengths = this.getLengths(divisions);\r\n\r\n var i = 0;\r\n var il = arcLengths.length;\r\n\r\n var targetArcLength; // The targeted u distance value to get\r\n\r\n if (distance)\r\n {\r\n // Cannot overshoot the curve\r\n targetArcLength = Math.min(distance, arcLengths[il - 1]);\r\n }\r\n else\r\n {\r\n targetArcLength = u * arcLengths[il - 1];\r\n }\r\n\r\n // binary search for the index with largest value smaller than target u distance\r\n\r\n var low = 0;\r\n var high = il - 1;\r\n var comparison;\r\n\r\n while (low <= high)\r\n {\r\n i = Math.floor(low + (high - low) / 2); // less likely to overflow, though probably not issue here, JS doesn't really have integers, all numbers are floats\r\n\r\n comparison = arcLengths[i] - targetArcLength;\r\n\r\n if (comparison < 0)\r\n {\r\n low = i + 1;\r\n }\r\n else if (comparison > 0)\r\n {\r\n high = i - 1;\r\n }\r\n else\r\n {\r\n high = i;\r\n break;\r\n }\r\n }\r\n\r\n i = high;\r\n\r\n if (arcLengths[i] === targetArcLength)\r\n {\r\n return i / (il - 1);\r\n }\r\n\r\n // we could get finer grain at lengths, or use simple interpolation between two points\r\n\r\n var lengthBefore = arcLengths[i];\r\n var lengthAfter = arcLengths[i + 1];\r\n\r\n var segmentLength = lengthAfter - lengthBefore;\r\n\r\n // determine where we are between the 'before' and 'after' points\r\n\r\n var segmentFraction = (targetArcLength - lengthBefore) / segmentLength;\r\n\r\n // add that fractional amount to t\r\n\r\n return (i + segmentFraction) / (il - 1);\r\n },\r\n\r\n /**\r\n * Calculate and cache the arc lengths.\r\n *\r\n * @method Phaser.Curves.Curve#updateArcLengths\r\n * @since 3.0.0\r\n *\r\n * @see Phaser.Curves.Curve#getLengths()\r\n */\r\n updateArcLengths: function ()\r\n {\r\n this.needsUpdate = true;\r\n\r\n this.getLengths();\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Curve;\r\n\n\n/***/ }),\n\n/***/ 73825:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog)\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Curve = __webpack_require__(80021);\r\nvar DegToRad = __webpack_require__(39506);\r\nvar GetValue = __webpack_require__(35154);\r\nvar RadToDeg = __webpack_require__(43396);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * An Elliptical Curve derived from the Base Curve class.\r\n * \r\n * See https://en.wikipedia.org/wiki/Elliptic_curve for more details.\r\n *\r\n * @class Ellipse\r\n * @extends Phaser.Curves.Curve\r\n * @memberof Phaser.Curves\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {(number|Phaser.Types.Curves.EllipseCurveConfig)} [x=0] - The x coordinate of the ellipse, or an Ellipse Curve configuration object.\r\n * @param {number} [y=0] - The y coordinate of the ellipse.\r\n * @param {number} [xRadius=0] - The horizontal radius of ellipse.\r\n * @param {number} [yRadius=0] - The vertical radius of ellipse.\r\n * @param {number} [startAngle=0] - The start angle of the ellipse, in degrees.\r\n * @param {number} [endAngle=360] - The end angle of the ellipse, in degrees.\r\n * @param {boolean} [clockwise=false] - Whether the ellipse angles are given as clockwise (`true`) or counter-clockwise (`false`).\r\n * @param {number} [rotation=0] - The rotation of the ellipse, in degrees.\r\n */\r\nvar EllipseCurve = new Class({\r\n\r\n Extends: Curve,\r\n\r\n initialize:\r\n\r\n function EllipseCurve (x, y, xRadius, yRadius, startAngle, endAngle, clockwise, rotation)\r\n {\r\n if (typeof x === 'object')\r\n {\r\n var config = x;\r\n\r\n x = GetValue(config, 'x', 0);\r\n y = GetValue(config, 'y', 0);\r\n xRadius = GetValue(config, 'xRadius', 0);\r\n yRadius = GetValue(config, 'yRadius', xRadius);\r\n startAngle = GetValue(config, 'startAngle', 0);\r\n endAngle = GetValue(config, 'endAngle', 360);\r\n clockwise = GetValue(config, 'clockwise', false);\r\n rotation = GetValue(config, 'rotation', 0);\r\n }\r\n else\r\n {\r\n if (yRadius === undefined) { yRadius = xRadius; }\r\n if (startAngle === undefined) { startAngle = 0; }\r\n if (endAngle === undefined) { endAngle = 360; }\r\n if (clockwise === undefined) { clockwise = false; }\r\n if (rotation === undefined) { rotation = 0; }\r\n }\r\n\r\n Curve.call(this, 'EllipseCurve');\r\n\r\n // Center point\r\n\r\n /**\r\n * The center point of the ellipse. Used for calculating rotation.\r\n *\r\n * @name Phaser.Curves.Ellipse#p0\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.p0 = new Vector2(x, y);\r\n\r\n /**\r\n * The horizontal radius of the ellipse.\r\n *\r\n * @name Phaser.Curves.Ellipse#_xRadius\r\n * @type {number}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._xRadius = xRadius;\r\n\r\n /**\r\n * The vertical radius of the ellipse.\r\n *\r\n * @name Phaser.Curves.Ellipse#_yRadius\r\n * @type {number}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._yRadius = yRadius;\r\n\r\n // Radians\r\n\r\n /**\r\n * The starting angle of the ellipse in radians.\r\n *\r\n * @name Phaser.Curves.Ellipse#_startAngle\r\n * @type {number}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._startAngle = DegToRad(startAngle);\r\n\r\n /**\r\n * The end angle of the ellipse in radians.\r\n *\r\n * @name Phaser.Curves.Ellipse#_endAngle\r\n * @type {number}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._endAngle = DegToRad(endAngle);\r\n\r\n /**\r\n * Anti-clockwise direction.\r\n *\r\n * @name Phaser.Curves.Ellipse#_clockwise\r\n * @type {boolean}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._clockwise = clockwise;\r\n\r\n /**\r\n * The rotation of the arc.\r\n *\r\n * @name Phaser.Curves.Ellipse#_rotation\r\n * @type {number}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._rotation = DegToRad(rotation);\r\n },\r\n\r\n /**\r\n * Gets the starting point on the curve.\r\n *\r\n * @method Phaser.Curves.Ellipse#getStartPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {Phaser.Math.Vector2} [out] - A Vector2 object to store the result in. If not given will be created.\r\n *\r\n * @return {Phaser.Math.Vector2} The coordinates of the point on the curve. If an `out` object was given this will be returned.\r\n */\r\n getStartPoint: function (out)\r\n {\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n return this.getPoint(0, out);\r\n },\r\n\r\n /**\r\n * Get the resolution of the curve.\r\n *\r\n * @method Phaser.Curves.Ellipse#getResolution\r\n * @since 3.0.0\r\n *\r\n * @param {number} divisions - Optional divisions value.\r\n *\r\n * @return {number} The curve resolution.\r\n */\r\n getResolution: function (divisions)\r\n {\r\n return divisions * 2;\r\n },\r\n\r\n /**\r\n * Get point at relative position in curve according to length.\r\n *\r\n * @method Phaser.Curves.Ellipse#getPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {number} t - The position along the curve to return. Where 0 is the start and 1 is the end.\r\n * @param {Phaser.Math.Vector2} [out] - A Vector2 object to store the result in. If not given will be created.\r\n *\r\n * @return {Phaser.Math.Vector2} The coordinates of the point on the curve. If an `out` object was given this will be returned.\r\n */\r\n getPoint: function (t, out)\r\n {\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n var twoPi = Math.PI * 2;\r\n var deltaAngle = this._endAngle - this._startAngle;\r\n var samePoints = Math.abs(deltaAngle) < Number.EPSILON;\r\n\r\n // ensures that deltaAngle is 0 .. 2 PI\r\n while (deltaAngle < 0)\r\n {\r\n deltaAngle += twoPi;\r\n }\r\n\r\n while (deltaAngle > twoPi)\r\n {\r\n deltaAngle -= twoPi;\r\n }\r\n\r\n if (deltaAngle < Number.EPSILON)\r\n {\r\n if (samePoints)\r\n {\r\n deltaAngle = 0;\r\n }\r\n else\r\n {\r\n deltaAngle = twoPi;\r\n }\r\n }\r\n\r\n if (this._clockwise && !samePoints)\r\n {\r\n if (deltaAngle === twoPi)\r\n {\r\n deltaAngle = - twoPi;\r\n }\r\n else\r\n {\r\n deltaAngle = deltaAngle - twoPi;\r\n }\r\n }\r\n\r\n var angle = this._startAngle + t * deltaAngle;\r\n var x = this.p0.x + this._xRadius * Math.cos(angle);\r\n var y = this.p0.y + this._yRadius * Math.sin(angle);\r\n\r\n if (this._rotation !== 0)\r\n {\r\n var cos = Math.cos(this._rotation);\r\n var sin = Math.sin(this._rotation);\r\n\r\n var tx = x - this.p0.x;\r\n var ty = y - this.p0.y;\r\n\r\n // Rotate the point about the center of the ellipse.\r\n x = tx * cos - ty * sin + this.p0.x;\r\n y = tx * sin + ty * cos + this.p0.y;\r\n }\r\n\r\n return out.set(x, y);\r\n },\r\n\r\n /**\r\n * Sets the horizontal radius of this curve.\r\n *\r\n * @method Phaser.Curves.Ellipse#setXRadius\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The horizontal radius of this curve.\r\n *\r\n * @return {this} This curve object.\r\n */\r\n setXRadius: function (value)\r\n {\r\n this.xRadius = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the vertical radius of this curve.\r\n *\r\n * @method Phaser.Curves.Ellipse#setYRadius\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The vertical radius of this curve.\r\n *\r\n * @return {this} This curve object.\r\n */\r\n setYRadius: function (value)\r\n {\r\n this.yRadius = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the width of this curve.\r\n *\r\n * @method Phaser.Curves.Ellipse#setWidth\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The width of this curve.\r\n *\r\n * @return {this} This curve object.\r\n */\r\n setWidth: function (value)\r\n {\r\n this.xRadius = value / 2;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the height of this curve.\r\n *\r\n * @method Phaser.Curves.Ellipse#setHeight\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The height of this curve.\r\n *\r\n * @return {this} This curve object.\r\n */\r\n setHeight: function (value)\r\n {\r\n this.yRadius = value / 2;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the start angle of this curve.\r\n *\r\n * @method Phaser.Curves.Ellipse#setStartAngle\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The start angle of this curve, in radians.\r\n *\r\n * @return {this} This curve object.\r\n */\r\n setStartAngle: function (value)\r\n {\r\n this.startAngle = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the end angle of this curve.\r\n *\r\n * @method Phaser.Curves.Ellipse#setEndAngle\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The end angle of this curve, in radians.\r\n *\r\n * @return {this} This curve object.\r\n */\r\n setEndAngle: function (value)\r\n {\r\n this.endAngle = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets if this curve extends clockwise or anti-clockwise.\r\n *\r\n * @method Phaser.Curves.Ellipse#setClockwise\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} value - The clockwise state of this curve.\r\n *\r\n * @return {this} This curve object.\r\n */\r\n setClockwise: function (value)\r\n {\r\n this.clockwise = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the rotation of this curve.\r\n *\r\n * @method Phaser.Curves.Ellipse#setRotation\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The rotation of this curve, in radians.\r\n *\r\n * @return {this} This curve object.\r\n */\r\n setRotation: function (value)\r\n {\r\n this.rotation = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The x coordinate of the center of the ellipse.\r\n *\r\n * @name Phaser.Curves.Ellipse#x\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n x: {\r\n\r\n get: function ()\r\n {\r\n return this.p0.x;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.p0.x = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The y coordinate of the center of the ellipse.\r\n *\r\n * @name Phaser.Curves.Ellipse#y\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n y: {\r\n\r\n get: function ()\r\n {\r\n return this.p0.y;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.p0.y = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The horizontal radius of the ellipse.\r\n *\r\n * @name Phaser.Curves.Ellipse#xRadius\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n xRadius: {\r\n\r\n get: function ()\r\n {\r\n return this._xRadius;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._xRadius = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The vertical radius of the ellipse.\r\n *\r\n * @name Phaser.Curves.Ellipse#yRadius\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n yRadius: {\r\n\r\n get: function ()\r\n {\r\n return this._yRadius;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._yRadius = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The start angle of the ellipse in degrees.\r\n *\r\n * @name Phaser.Curves.Ellipse#startAngle\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n startAngle: {\r\n\r\n get: function ()\r\n {\r\n return RadToDeg(this._startAngle);\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._startAngle = DegToRad(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The end angle of the ellipse in degrees.\r\n *\r\n * @name Phaser.Curves.Ellipse#endAngle\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n endAngle: {\r\n\r\n get: function ()\r\n {\r\n return RadToDeg(this._endAngle);\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._endAngle = DegToRad(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * `true` if the ellipse rotation is clockwise or `false` if anti-clockwise.\r\n *\r\n * @name Phaser.Curves.Ellipse#clockwise\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n clockwise: {\r\n\r\n get: function ()\r\n {\r\n return this._clockwise;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._clockwise = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The rotation of the ellipse, relative to the center, in degrees.\r\n *\r\n * @name Phaser.Curves.Ellipse#angle\r\n * @type {number}\r\n * @since 3.14.0\r\n */\r\n angle: {\r\n\r\n get: function ()\r\n {\r\n return RadToDeg(this._rotation);\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._rotation = DegToRad(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The rotation of the ellipse, relative to the center, in radians.\r\n *\r\n * @name Phaser.Curves.Ellipse#rotation\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n rotation: {\r\n\r\n get: function ()\r\n {\r\n return this._rotation;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._rotation = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * JSON serialization of the curve.\r\n *\r\n * @method Phaser.Curves.Ellipse#toJSON\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Types.Curves.JSONEllipseCurve} The JSON object containing this curve data.\r\n */\r\n toJSON: function ()\r\n {\r\n return {\r\n type: this.type,\r\n x: this.p0.x,\r\n y: this.p0.y,\r\n xRadius: this._xRadius,\r\n yRadius: this._yRadius,\r\n startAngle: RadToDeg(this._startAngle),\r\n endAngle: RadToDeg(this._endAngle),\r\n clockwise: this._clockwise,\r\n rotation: RadToDeg(this._rotation)\r\n };\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Creates a curve from the provided Ellipse Curve Configuration object.\r\n *\r\n * @function Phaser.Curves.Ellipse.fromJSON\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Curves.JSONEllipseCurve} data - The JSON object containing this curve data.\r\n *\r\n * @return {Phaser.Curves.Ellipse} The ellipse curve constructed from the configuration object.\r\n */\r\nEllipseCurve.fromJSON = function (data)\r\n{\r\n return new EllipseCurve(data);\r\n};\r\n\r\nmodule.exports = EllipseCurve;\r\n\n\n/***/ }),\n\n/***/ 33951:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog)\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Curve = __webpack_require__(80021);\r\nvar FromPoints = __webpack_require__(19217);\r\nvar Rectangle = __webpack_require__(87841);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * A LineCurve is a \"curve\" comprising exactly two points (a line segment).\r\n *\r\n * @class Line\r\n * @extends Phaser.Curves.Curve\r\n * @memberof Phaser.Curves\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Vector2|number[])} p0 - The first endpoint.\r\n * @param {Phaser.Math.Vector2} [p1] - The second endpoint.\r\n */\r\nvar LineCurve = new Class({\r\n\r\n Extends: Curve,\r\n\r\n initialize:\r\n\r\n // vec2s or array\r\n function LineCurve (p0, p1)\r\n {\r\n Curve.call(this, 'LineCurve');\r\n\r\n if (Array.isArray(p0))\r\n {\r\n p1 = new Vector2(p0[2], p0[3]);\r\n p0 = new Vector2(p0[0], p0[1]);\r\n }\r\n\r\n /**\r\n * The first endpoint.\r\n *\r\n * @name Phaser.Curves.Line#p0\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.p0 = p0;\r\n\r\n /**\r\n * The second endpoint.\r\n *\r\n * @name Phaser.Curves.Line#p1\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.p1 = p1;\r\n\r\n // Override default Curve.arcLengthDivisions\r\n\r\n /**\r\n * The quantity of arc length divisions within the curve.\r\n *\r\n * @name Phaser.Curves.Line#arcLengthDivisions\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n this.arcLengthDivisions = 1;\r\n },\r\n\r\n /**\r\n * Returns a Rectangle where the position and dimensions match the bounds of this Curve.\r\n *\r\n * @method Phaser.Curves.Line#getBounds\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} [out] - A Rectangle object to store the bounds in. If not given a new Rectangle will be created.\r\n *\r\n * @return {Phaser.Geom.Rectangle} A Rectangle object holding the bounds of this curve. If `out` was given it will be this object.\r\n */\r\n getBounds: function (out)\r\n {\r\n if (out === undefined) { out = new Rectangle(); }\r\n\r\n return FromPoints([ this.p0, this.p1 ], out);\r\n },\r\n\r\n /**\r\n * Gets the starting point on the curve.\r\n *\r\n * @method Phaser.Curves.Line#getStartPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {Phaser.Math.Vector2} [out] - A Vector2 object to store the result in. If not given will be created.\r\n *\r\n * @return {Phaser.Math.Vector2} The coordinates of the point on the curve. If an `out` object was given this will be returned.\r\n */\r\n getStartPoint: function (out)\r\n {\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n return out.copy(this.p0);\r\n },\r\n\r\n /**\r\n * Gets the resolution of the line.\r\n *\r\n * @method Phaser.Curves.Line#getResolution\r\n * @since 3.0.0\r\n *\r\n * @param {number} [divisions=1] - The number of divisions to consider.\r\n *\r\n * @return {number} The resolution. Equal to the number of divisions.\r\n */\r\n getResolution: function (divisions)\r\n {\r\n if (divisions === undefined) { divisions = 1; }\r\n\r\n return divisions;\r\n },\r\n\r\n /**\r\n * Get point at relative position in curve according to length.\r\n *\r\n * @method Phaser.Curves.Line#getPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {number} t - The position along the curve to return. Where 0 is the start and 1 is the end.\r\n * @param {Phaser.Math.Vector2} [out] - A Vector2 object to store the result in. If not given will be created.\r\n *\r\n * @return {Phaser.Math.Vector2} The coordinates of the point on the curve. If an `out` object was given this will be returned.\r\n */\r\n getPoint: function (t, out)\r\n {\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n if (t === 1)\r\n {\r\n return out.copy(this.p1);\r\n }\r\n\r\n out.copy(this.p1).subtract(this.p0).scale(t).add(this.p0);\r\n\r\n return out;\r\n },\r\n\r\n // Line curve is linear, so we can overwrite default getPointAt\r\n\r\n /**\r\n * Gets a point at a given position on the line.\r\n *\r\n * @method Phaser.Curves.Line#getPointAt\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {number} u - The position along the curve to return. Where 0 is the start and 1 is the end.\r\n * @param {Phaser.Math.Vector2} [out] - A Vector2 object to store the result in. If not given will be created.\r\n *\r\n * @return {Phaser.Math.Vector2} The coordinates of the point on the curve. If an `out` object was given this will be returned.\r\n */\r\n getPointAt: function (u, out)\r\n {\r\n return this.getPoint(u, out);\r\n },\r\n\r\n /**\r\n * Gets the slope of the line as a unit vector.\r\n *\r\n * @method Phaser.Curves.Line#getTangent\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {number} [t] - The relative position on the line, [0..1].\r\n * @param {Phaser.Math.Vector2} [out] - A vector to store the result in.\r\n *\r\n * @return {Phaser.Math.Vector2} The tangent vector.\r\n */\r\n getTangent: function (t, out)\r\n {\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n out.copy(this.p1).subtract(this.p0).normalize();\r\n\r\n return out;\r\n },\r\n\r\n /**\r\n * Given u ( 0 .. 1 ), get a t to find p. This gives you points which are equidistant.\r\n *\r\n * @method Phaser.Curves.Line#getUtoTmapping\r\n * @since 3.0.0\r\n *\r\n * @param {number} u - A float between 0 and 1.\r\n * @param {number} distance - The distance, in pixels.\r\n * @param {number} [divisions] - Optional amount of divisions.\r\n *\r\n * @return {number} The equidistant value.\r\n */\r\n getUtoTmapping: function (u, distance, divisions)\r\n {\r\n var t;\r\n\r\n if (distance)\r\n {\r\n var arcLengths = this.getLengths(divisions);\r\n var lineLength = arcLengths[arcLengths.length - 1];\r\n\r\n // Cannot overshoot the curve\r\n var targetLineLength = Math.min(distance, lineLength);\r\n\r\n t = targetLineLength / lineLength;\r\n }\r\n else\r\n {\r\n t = u;\r\n }\r\n\r\n return t;\r\n },\r\n\r\n // Override default Curve.draw because this is better than calling getPoints on a line!\r\n\r\n /**\r\n * Draws this curve on the given Graphics object.\r\n *\r\n * The curve is drawn using `Graphics.lineBetween` so will be drawn at whatever the present Graphics line color is.\r\n * The Graphics object is not cleared before the draw, so the curve will appear on-top of anything else already rendered to it.\r\n *\r\n * @method Phaser.Curves.Line#draw\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.Graphics} G - [graphics,$return]\r\n *\r\n * @param {Phaser.GameObjects.Graphics} graphics - The Graphics instance onto which this curve will be drawn.\r\n *\r\n * @return {Phaser.GameObjects.Graphics} The Graphics object to which the curve was drawn.\r\n */\r\n draw: function (graphics)\r\n {\r\n graphics.lineBetween(this.p0.x, this.p0.y, this.p1.x, this.p1.y);\r\n\r\n // So you can chain graphics calls\r\n return graphics;\r\n },\r\n\r\n /**\r\n * Gets a JSON representation of the line.\r\n *\r\n * @method Phaser.Curves.Line#toJSON\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Types.Curves.JSONCurve} The JSON object containing this curve data.\r\n */\r\n toJSON: function ()\r\n {\r\n return {\r\n type: this.type,\r\n points: [\r\n this.p0.x, this.p0.y,\r\n this.p1.x, this.p1.y\r\n ]\r\n };\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Configures this line from a JSON representation.\r\n *\r\n * @function Phaser.Curves.Line.fromJSON\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Curves.JSONCurve} data - The JSON object containing this curve data.\r\n *\r\n * @return {Phaser.Curves.Line} A new LineCurve object.\r\n */\r\nLineCurve.fromJSON = function (data)\r\n{\r\n var points = data.points;\r\n\r\n var p0 = new Vector2(points[0], points[1]);\r\n var p1 = new Vector2(points[2], points[3]);\r\n\r\n return new LineCurve(p0, p1);\r\n};\r\n\r\nmodule.exports = LineCurve;\r\n\n\n/***/ }),\n\n/***/ 14744:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Curve = __webpack_require__(80021);\r\nvar QuadraticBezierInterpolation = __webpack_require__(32112);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * A quadratic Bézier curve constructed from two control points.\r\n *\r\n * @class QuadraticBezier\r\n * @extends Phaser.Curves.Curve\r\n * @memberof Phaser.Curves\r\n * @constructor\r\n * @since 3.2.0\r\n *\r\n * @param {(Phaser.Math.Vector2|number[])} p0 - Start point, or an array of point pairs.\r\n * @param {Phaser.Math.Vector2} p1 - Control Point 1.\r\n * @param {Phaser.Math.Vector2} p2 - Control Point 2.\r\n */\r\nvar QuadraticBezier = new Class({\r\n\r\n Extends: Curve,\r\n\r\n initialize:\r\n\r\n function QuadraticBezier (p0, p1, p2)\r\n {\r\n Curve.call(this, 'QuadraticBezierCurve');\r\n\r\n if (Array.isArray(p0))\r\n {\r\n p2 = new Vector2(p0[4], p0[5]);\r\n p1 = new Vector2(p0[2], p0[3]);\r\n p0 = new Vector2(p0[0], p0[1]);\r\n }\r\n\r\n /**\r\n * The start point.\r\n *\r\n * @name Phaser.Curves.QuadraticBezier#p0\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.2.0\r\n */\r\n this.p0 = p0;\r\n\r\n /**\r\n * The first control point.\r\n *\r\n * @name Phaser.Curves.QuadraticBezier#p1\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.2.0\r\n */\r\n this.p1 = p1;\r\n\r\n /**\r\n * The second control point.\r\n *\r\n * @name Phaser.Curves.QuadraticBezier#p2\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.2.0\r\n */\r\n this.p2 = p2;\r\n },\r\n\r\n /**\r\n * Gets the starting point on the curve.\r\n *\r\n * @method Phaser.Curves.QuadraticBezier#getStartPoint\r\n * @since 3.2.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {Phaser.Math.Vector2} [out] - A Vector2 object to store the result in. If not given will be created.\r\n *\r\n * @return {Phaser.Math.Vector2} The coordinates of the point on the curve. If an `out` object was given this will be returned.\r\n */\r\n getStartPoint: function (out)\r\n {\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n return out.copy(this.p0);\r\n },\r\n\r\n /**\r\n * Get the resolution of the curve.\r\n *\r\n * @method Phaser.Curves.QuadraticBezier#getResolution\r\n * @since 3.2.0\r\n *\r\n * @param {number} divisions - Optional divisions value.\r\n *\r\n * @return {number} The curve resolution.\r\n */\r\n getResolution: function (divisions)\r\n {\r\n return divisions;\r\n },\r\n\r\n /**\r\n * Get point at relative position in curve according to length.\r\n *\r\n * @method Phaser.Curves.QuadraticBezier#getPoint\r\n * @since 3.2.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {number} t - The position along the curve to return. Where 0 is the start and 1 is the end.\r\n * @param {Phaser.Math.Vector2} [out] - A Vector2 object to store the result in. If not given will be created.\r\n *\r\n * @return {Phaser.Math.Vector2} The coordinates of the point on the curve. If an `out` object was given this will be returned.\r\n */\r\n getPoint: function (t, out)\r\n {\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n var p0 = this.p0;\r\n var p1 = this.p1;\r\n var p2 = this.p2;\r\n\r\n return out.set(\r\n QuadraticBezierInterpolation(t, p0.x, p1.x, p2.x),\r\n QuadraticBezierInterpolation(t, p0.y, p1.y, p2.y)\r\n );\r\n },\r\n\r\n /**\r\n * Draws this curve on the given Graphics object.\r\n *\r\n * The curve is drawn using `Graphics.strokePoints` so will be drawn at whatever the present Graphics stroke color is.\r\n * The Graphics object is not cleared before the draw, so the curve will appear on-top of anything else already rendered to it.\r\n *\r\n * @method Phaser.Curves.QuadraticBezier#draw\r\n * @since 3.2.0\r\n *\r\n * @generic {Phaser.GameObjects.Graphics} G - [graphics,$return]\r\n *\r\n * @param {Phaser.GameObjects.Graphics} graphics - `Graphics` object to draw onto.\r\n * @param {number} [pointsTotal=32] - Number of points to be used for drawing the curve. Higher numbers result in smoother curve but require more processing.\r\n *\r\n * @return {Phaser.GameObjects.Graphics} `Graphics` object that was drawn to.\r\n */\r\n draw: function (graphics, pointsTotal)\r\n {\r\n if (pointsTotal === undefined) { pointsTotal = 32; }\r\n\r\n var points = this.getPoints(pointsTotal);\r\n\r\n graphics.beginPath();\r\n graphics.moveTo(this.p0.x, this.p0.y);\r\n\r\n for (var i = 1; i < points.length; i++)\r\n {\r\n graphics.lineTo(points[i].x, points[i].y);\r\n }\r\n\r\n graphics.strokePath();\r\n\r\n // So you can chain graphics calls\r\n return graphics;\r\n },\r\n\r\n /**\r\n * Converts the curve into a JSON compatible object.\r\n *\r\n * @method Phaser.Curves.QuadraticBezier#toJSON\r\n * @since 3.2.0\r\n *\r\n * @return {Phaser.Types.Curves.JSONCurve} The JSON object containing this curve data.\r\n */\r\n toJSON: function ()\r\n {\r\n return {\r\n type: this.type,\r\n points: [\r\n this.p0.x, this.p0.y,\r\n this.p1.x, this.p1.y,\r\n this.p2.x, this.p2.y\r\n ]\r\n };\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Creates a curve from a JSON object, e. g. created by `toJSON`.\r\n *\r\n * @function Phaser.Curves.QuadraticBezier.fromJSON\r\n * @since 3.2.0\r\n *\r\n * @param {Phaser.Types.Curves.JSONCurve} data - The JSON object containing this curve data.\r\n *\r\n * @return {Phaser.Curves.QuadraticBezier} The created curve instance.\r\n */\r\nQuadraticBezier.fromJSON = function (data)\r\n{\r\n var points = data.points;\r\n\r\n var p0 = new Vector2(points[0], points[1]);\r\n var p1 = new Vector2(points[2], points[3]);\r\n var p2 = new Vector2(points[4], points[5]);\r\n\r\n return new QuadraticBezier(p0, p1, p2);\r\n};\r\n\r\nmodule.exports = QuadraticBezier;\r\n\n\n/***/ }),\n\n/***/ 42534:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog)\r\n\r\nvar CatmullRom = __webpack_require__(87842);\r\nvar Class = __webpack_require__(83419);\r\nvar Curve = __webpack_require__(80021);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * Create a smooth 2d spline curve from a series of points.\r\n *\r\n * @class Spline\r\n * @extends Phaser.Curves.Curve\r\n * @memberof Phaser.Curves\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Vector2[]|number[]|number[][])} [points] - The points that configure the curve.\r\n */\r\nvar SplineCurve = new Class({\r\n\r\n Extends: Curve,\r\n\r\n initialize:\r\n\r\n function SplineCurve (points)\r\n {\r\n if (points === undefined) { points = []; }\r\n\r\n Curve.call(this, 'SplineCurve');\r\n\r\n /**\r\n * The Vector2 points that configure the curve.\r\n *\r\n * @name Phaser.Curves.Spline#points\r\n * @type {Phaser.Math.Vector2[]}\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this.points = [];\r\n\r\n this.addPoints(points);\r\n },\r\n\r\n /**\r\n * Add a list of points to the current list of Vector2 points of the curve.\r\n *\r\n * @method Phaser.Curves.Spline#addPoints\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Vector2[]|number[]|number[][])} points - The points that configure the curve.\r\n *\r\n * @return {this} This curve object.\r\n */\r\n addPoints: function (points)\r\n {\r\n for (var i = 0; i < points.length; i++)\r\n {\r\n var p = new Vector2();\r\n\r\n if (typeof points[i] === 'number')\r\n {\r\n p.x = points[i];\r\n p.y = points[i + 1];\r\n i++;\r\n }\r\n else if (Array.isArray(points[i]))\r\n {\r\n // An array of arrays?\r\n p.x = points[i][0];\r\n p.y = points[i][1];\r\n }\r\n else\r\n {\r\n p.x = points[i].x;\r\n p.y = points[i].y;\r\n }\r\n\r\n this.points.push(p);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Add a point to the current list of Vector2 points of the curve.\r\n *\r\n * @method Phaser.Curves.Spline#addPoint\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x coordinate of this curve\r\n * @param {number} y - The y coordinate of this curve\r\n *\r\n * @return {Phaser.Math.Vector2} The new Vector2 added to the curve\r\n */\r\n addPoint: function (x, y)\r\n {\r\n var vec = new Vector2(x, y);\r\n\r\n this.points.push(vec);\r\n\r\n return vec;\r\n },\r\n\r\n /**\r\n * Gets the starting point on the curve.\r\n *\r\n * @method Phaser.Curves.Spline#getStartPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {Phaser.Math.Vector2} [out] - A Vector2 object to store the result in. If not given will be created.\r\n *\r\n * @return {Phaser.Math.Vector2} The coordinates of the point on the curve. If an `out` object was given this will be returned.\r\n */\r\n getStartPoint: function (out)\r\n {\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n return out.copy(this.points[0]);\r\n },\r\n\r\n /**\r\n * Get the resolution of the curve.\r\n *\r\n * @method Phaser.Curves.Spline#getResolution\r\n * @since 3.0.0\r\n *\r\n * @param {number} divisions - Optional divisions value.\r\n *\r\n * @return {number} The curve resolution.\r\n */\r\n getResolution: function (divisions)\r\n {\r\n return divisions * this.points.length;\r\n },\r\n\r\n /**\r\n * Get point at relative position in curve according to length.\r\n *\r\n * @method Phaser.Curves.Spline#getPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {number} t - The position along the curve to return. Where 0 is the start and 1 is the end.\r\n * @param {Phaser.Math.Vector2} [out] - A Vector2 object to store the result in. If not given will be created.\r\n *\r\n * @return {Phaser.Math.Vector2} The coordinates of the point on the curve. If an `out` object was given this will be returned.\r\n */\r\n getPoint: function (t, out)\r\n {\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n var points = this.points;\r\n\r\n var point = (points.length - 1) * t;\r\n\r\n var intPoint = Math.floor(point);\r\n\r\n var weight = point - intPoint;\r\n\r\n var p0 = points[(intPoint === 0) ? intPoint : intPoint - 1];\r\n var p1 = points[intPoint];\r\n var p2 = points[(intPoint > points.length - 2) ? points.length - 1 : intPoint + 1];\r\n var p3 = points[(intPoint > points.length - 3) ? points.length - 1 : intPoint + 2];\r\n\r\n return out.set(CatmullRom(weight, p0.x, p1.x, p2.x, p3.x), CatmullRom(weight, p0.y, p1.y, p2.y, p3.y));\r\n },\r\n\r\n /**\r\n * Exports a JSON object containing this curve data.\r\n *\r\n * @method Phaser.Curves.Spline#toJSON\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Types.Curves.JSONCurve} The JSON object containing this curve data.\r\n */\r\n toJSON: function ()\r\n {\r\n var points = [];\r\n\r\n for (var i = 0; i < this.points.length; i++)\r\n {\r\n points.push(this.points[i].x);\r\n points.push(this.points[i].y);\r\n }\r\n\r\n return {\r\n type: this.type,\r\n points: points\r\n };\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Imports a JSON object containing this curve data.\r\n *\r\n * @function Phaser.Curves.Spline.fromJSON\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Curves.JSONCurve} data - The JSON object containing this curve data.\r\n *\r\n * @return {Phaser.Curves.Spline} The spline curve created.\r\n */\r\nSplineCurve.fromJSON = function (data)\r\n{\r\n return new SplineCurve(data.points);\r\n};\r\n\r\nmodule.exports = SplineCurve;\r\n\n\n/***/ }),\n\n/***/ 25410:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Curves\r\n */\r\n\r\nmodule.exports = {\r\n Path: __webpack_require__(46669),\r\n MoveTo: __webpack_require__(68618),\r\n\r\n CubicBezier: __webpack_require__(46728),\r\n Curve: __webpack_require__(80021),\r\n Ellipse: __webpack_require__(73825),\r\n Line: __webpack_require__(33951),\r\n QuadraticBezier: __webpack_require__(14744),\r\n Spline: __webpack_require__(42534)\r\n};\r\n\n\n/***/ }),\n\n/***/ 68618:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * A MoveTo Curve is a very simple curve consisting of only a single point.\r\n * Its intended use is to move the ending point in a Path.\r\n *\r\n * @class MoveTo\r\n * @memberof Phaser.Curves\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=0] - `x` pixel coordinate.\r\n * @param {number} [y=0] - `y` pixel coordinate.\r\n */\r\nvar MoveTo = new Class({\r\n\r\n initialize:\r\n\r\n function MoveTo (x, y)\r\n {\r\n /**\r\n * Denotes that this Curve does not influence the bounds, points, and drawing of its parent Path. Must be `false` or some methods in the parent Path will throw errors.\r\n *\r\n * @name Phaser.Curves.MoveTo#active\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.active = false;\r\n\r\n /**\r\n * The lone point which this curve consists of.\r\n *\r\n * @name Phaser.Curves.MoveTo#p0\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.p0 = new Vector2(x, y);\r\n },\r\n\r\n /**\r\n * Get point at relative position in curve according to length.\r\n *\r\n * @method Phaser.Curves.MoveTo#getPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {number} t - The position along the curve to return. Where 0 is the start and 1 is the end.\r\n * @param {Phaser.Math.Vector2} [out] - A Vector2 object to store the result in. If not given will be created.\r\n *\r\n * @return {Phaser.Math.Vector2} The coordinates of the point on the curve. If an `out` object was given this will be returned.\r\n */\r\n getPoint: function (t, out)\r\n {\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n return out.copy(this.p0);\r\n },\r\n\r\n /**\r\n * Retrieves the point at given position in the curve. This will always return this curve's only point.\r\n *\r\n * @method Phaser.Curves.MoveTo#getPointAt\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {number} u - The position in the path to retrieve, between 0 and 1. Not used.\r\n * @param {Phaser.Math.Vector2} [out] - An optional vector in which to store the point.\r\n *\r\n * @return {Phaser.Math.Vector2} The modified `out` vector, or a new `Vector2` if none was provided.\r\n */\r\n getPointAt: function (u, out)\r\n {\r\n return this.getPoint(u, out);\r\n },\r\n\r\n /**\r\n * Gets the resolution of this curve.\r\n *\r\n * @method Phaser.Curves.MoveTo#getResolution\r\n * @since 3.0.0\r\n *\r\n * @return {number} The resolution of this curve. For a MoveTo the value is always 1.\r\n */\r\n getResolution: function ()\r\n {\r\n return 1;\r\n },\r\n\r\n /**\r\n * Gets the length of this curve.\r\n *\r\n * @method Phaser.Curves.MoveTo#getLength\r\n * @since 3.0.0\r\n *\r\n * @return {number} The length of this curve. For a MoveTo the value is always 0.\r\n */\r\n getLength: function ()\r\n {\r\n return 0;\r\n },\r\n\r\n /**\r\n * Converts this curve into a JSON-serializable object.\r\n *\r\n * @method Phaser.Curves.MoveTo#toJSON\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Types.Curves.JSONCurve} A primitive object with the curve's type and only point.\r\n */\r\n toJSON: function ()\r\n {\r\n return {\r\n type: 'MoveTo',\r\n points: [\r\n this.p0.x, this.p0.y\r\n ]\r\n };\r\n }\r\n\r\n});\r\n\r\nmodule.exports = MoveTo;\r\n\n\n/***/ }),\n\n/***/ 46669:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// Based on the three.js Curve classes created by [zz85](http://www.lab4games.net/zz85/blog)\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CubicBezierCurve = __webpack_require__(46728);\r\nvar EllipseCurve = __webpack_require__(73825);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\nvar LineCurve = __webpack_require__(33951);\r\nvar MovePathTo = __webpack_require__(68618);\r\nvar QuadraticBezierCurve = __webpack_require__(14744);\r\nvar Rectangle = __webpack_require__(87841);\r\nvar SplineCurve = __webpack_require__(42534);\r\nvar Vector2 = __webpack_require__(26099);\r\nvar MATH_CONST = __webpack_require__(36383);\r\n\r\n/**\r\n * @classdesc\r\n * A Path combines multiple Curves into one continuous compound curve.\r\n * It does not matter how many Curves are in the Path or what type they are.\r\n *\r\n * A Curve in a Path does not have to start where the previous Curve ends - that is to say, a Path does not\r\n * have to be an uninterrupted curve. Only the order of the Curves influences the actual points on the Path.\r\n *\r\n * @class Path\r\n * @memberof Phaser.Curves\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=0] - The X coordinate of the Path's starting point or a {@link Phaser.Types.Curves.JSONPath}.\r\n * @param {number} [y=0] - The Y coordinate of the Path's starting point.\r\n */\r\nvar Path = new Class({\r\n\r\n initialize:\r\n\r\n function Path (x, y)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n\r\n /**\r\n * The name of this Path.\r\n * Empty by default and never populated by Phaser, this is left for developers to use.\r\n *\r\n * @name Phaser.Curves.Path#name\r\n * @type {string}\r\n * @default ''\r\n * @since 3.0.0\r\n */\r\n this.name = '';\r\n\t\t\r\n /**\r\n * The default number of divisions within a curve.\r\n *\r\n * @name Phaser.Curves.Path#defaultDivisions\r\n * @type {number}\r\n * @default 12\r\n * @since 3.70.0\r\n */\r\n this.defaultDivisions = 12;\r\n\r\n /**\r\n * The list of Curves which make up this Path.\r\n *\r\n * @name Phaser.Curves.Path#curves\r\n * @type {Phaser.Curves.Curve[]}\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this.curves = [];\r\n\r\n /**\r\n * The cached length of each Curve in the Path.\r\n *\r\n * Used internally by {@link #getCurveLengths}.\r\n *\r\n * @name Phaser.Curves.Path#cacheLengths\r\n * @type {number[]}\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this.cacheLengths = [];\r\n\r\n /**\r\n * Automatically closes the path.\r\n *\r\n * @name Phaser.Curves.Path#autoClose\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.autoClose = false;\r\n\r\n /**\r\n * The starting point of the Path.\r\n *\r\n * This is not necessarily equivalent to the starting point of the first Curve in the Path. In an empty Path, it's also treated as the ending point.\r\n *\r\n * @name Phaser.Curves.Path#startPoint\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.startPoint = new Vector2();\r\n\r\n /**\r\n * A temporary vector used to avoid object creation when adding a Curve to the Path.\r\n *\r\n * @name Phaser.Curves.Path#_tmpVec2A\r\n * @type {Phaser.Math.Vector2}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._tmpVec2A = new Vector2();\r\n\r\n /**\r\n * A temporary vector used to avoid object creation when adding a Curve to the Path.\r\n *\r\n * @name Phaser.Curves.Path#_tmpVec2B\r\n * @type {Phaser.Math.Vector2}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._tmpVec2B = new Vector2();\r\n\r\n if (typeof x === 'object')\r\n {\r\n this.fromJSON(x);\r\n }\r\n else\r\n {\r\n this.startPoint.set(x, y);\r\n }\r\n },\r\n\r\n /**\r\n * Appends a Curve to the end of the Path.\r\n *\r\n * The Curve does not have to start where the Path ends or, for an empty Path, at its defined starting point.\r\n *\r\n * @method Phaser.Curves.Path#add\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Curves.Curve} curve - The Curve to append.\r\n *\r\n * @return {this} This Path object.\r\n */\r\n add: function (curve)\r\n {\r\n this.curves.push(curve);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Creates a circular Ellipse Curve positioned at the end of the Path.\r\n *\r\n * @method Phaser.Curves.Path#circleTo\r\n * @since 3.0.0\r\n *\r\n * @param {number} radius - The radius of the circle.\r\n * @param {boolean} [clockwise=false] - `true` to create a clockwise circle as opposed to a counter-clockwise circle.\r\n * @param {number} [rotation=0] - The rotation of the circle in degrees.\r\n *\r\n * @return {this} This Path object.\r\n */\r\n circleTo: function (radius, clockwise, rotation)\r\n {\r\n if (clockwise === undefined) { clockwise = false; }\r\n\r\n return this.ellipseTo(radius, radius, 0, 360, clockwise, rotation);\r\n },\r\n\r\n /**\r\n * Ensures that the Path is closed.\r\n *\r\n * A closed Path starts and ends at the same point. If the Path is not closed, a straight Line Curve will be created from the ending point directly to the starting point. During the check, the actual starting point of the Path, i.e. the starting point of the first Curve, will be used as opposed to the Path's defined {@link startPoint}, which could differ.\r\n *\r\n * Calling this method on an empty Path will result in an error.\r\n *\r\n * @method Phaser.Curves.Path#closePath\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Path object.\r\n */\r\n closePath: function ()\r\n {\r\n // Add a line curve if start and end of lines are not connected\r\n var startPoint = this.curves[0].getPoint(0);\r\n var endPoint = this.curves[this.curves.length - 1].getPoint(1);\r\n\r\n if (!startPoint.equals(endPoint))\r\n {\r\n // This will copy a reference to the vectors, which probably isn't sensible\r\n this.curves.push(new LineCurve(endPoint, startPoint));\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Creates a cubic bezier curve starting at the previous end point and ending at p3, using p1 and p2 as control points.\r\n *\r\n * @method Phaser.Curves.Path#cubicBezierTo\r\n * @since 3.0.0\r\n *\r\n * @param {(number|Phaser.Math.Vector2)} x - The x coordinate of the end point. Or, if a Vector2, the p1 value.\r\n * @param {(number|Phaser.Math.Vector2)} y - The y coordinate of the end point. Or, if a Vector2, the p2 value.\r\n * @param {(number|Phaser.Math.Vector2)} control1X - The x coordinate of the first control point. Or, if a Vector2, the p3 value.\r\n * @param {number} [control1Y] - The y coordinate of the first control point. Not used if Vector2s are provided as the first 3 arguments.\r\n * @param {number} [control2X] - The x coordinate of the second control point. Not used if Vector2s are provided as the first 3 arguments.\r\n * @param {number} [control2Y] - The y coordinate of the second control point. Not used if Vector2s are provided as the first 3 arguments.\r\n *\r\n * @return {this} This Path object.\r\n */\r\n cubicBezierTo: function (x, y, control1X, control1Y, control2X, control2Y)\r\n {\r\n var p0 = this.getEndPoint();\r\n var p1;\r\n var p2;\r\n var p3;\r\n\r\n // Assume they're all Vector2s\r\n if (x instanceof Vector2)\r\n {\r\n p1 = x;\r\n p2 = y;\r\n p3 = control1X;\r\n }\r\n else\r\n {\r\n p1 = new Vector2(control1X, control1Y);\r\n p2 = new Vector2(control2X, control2Y);\r\n p3 = new Vector2(x, y);\r\n }\r\n\r\n return this.add(new CubicBezierCurve(p0, p1, p2, p3));\r\n },\r\n\r\n // Creates a quadratic bezier curve starting at the previous end point and ending at p2, using p1 as a control point\r\n\r\n /**\r\n * Creates a Quadratic Bezier Curve starting at the ending point of the Path.\r\n *\r\n * @method Phaser.Curves.Path#quadraticBezierTo\r\n * @since 3.2.0\r\n *\r\n * @param {(number|Phaser.Math.Vector2[])} x - The X coordinate of the second control point or, if it's a `Vector2`, the first control point.\r\n * @param {number} [y] - The Y coordinate of the second control point or, if `x` is a `Vector2`, the second control point.\r\n * @param {number} [controlX] - If `x` is not a `Vector2`, the X coordinate of the first control point.\r\n * @param {number} [controlY] - If `x` is not a `Vector2`, the Y coordinate of the first control point.\r\n *\r\n * @return {this} This Path object.\r\n */\r\n quadraticBezierTo: function (x, y, controlX, controlY)\r\n {\r\n var p0 = this.getEndPoint();\r\n var p1;\r\n var p2;\r\n\r\n // Assume they're all Vector2s\r\n if (x instanceof Vector2)\r\n {\r\n p1 = x;\r\n p2 = y;\r\n }\r\n else\r\n {\r\n p1 = new Vector2(controlX, controlY);\r\n p2 = new Vector2(x, y);\r\n }\r\n\r\n return this.add(new QuadraticBezierCurve(p0, p1, p2));\r\n },\r\n\r\n /**\r\n * Draws all Curves in the Path to a Graphics Game Object.\r\n *\r\n * @method Phaser.Curves.Path#draw\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.Graphics} G - [out,$return]\r\n *\r\n * @param {Phaser.GameObjects.Graphics} graphics - The Graphics Game Object to draw to.\r\n * @param {number} [pointsTotal=32] - The number of points to draw for each Curve. Higher numbers result in a smoother curve but require more processing.\r\n *\r\n * @return {Phaser.GameObjects.Graphics} The Graphics object which was drawn to.\r\n */\r\n draw: function (graphics, pointsTotal)\r\n {\r\n for (var i = 0; i < this.curves.length; i++)\r\n {\r\n var curve = this.curves[i];\r\n\r\n if (!curve.active)\r\n {\r\n continue;\r\n }\r\n\r\n curve.draw(graphics, pointsTotal);\r\n }\r\n\r\n return graphics;\r\n },\r\n\r\n /**\r\n * Creates an ellipse curve positioned at the previous end point, using the given parameters.\r\n *\r\n * @method Phaser.Curves.Path#ellipseTo\r\n * @since 3.0.0\r\n *\r\n * @param {number} [xRadius=0] - The horizontal radius of ellipse.\r\n * @param {number} [yRadius=0] - The vertical radius of ellipse.\r\n * @param {number} [startAngle=0] - The start angle of the ellipse, in degrees.\r\n * @param {number} [endAngle=360] - The end angle of the ellipse, in degrees.\r\n * @param {boolean} [clockwise=false] - Whether the ellipse angles are given as clockwise (`true`) or counter-clockwise (`false`).\r\n * @param {number} [rotation=0] - The rotation of the ellipse, in degrees.\r\n *\r\n * @return {this} This Path object.\r\n */\r\n ellipseTo: function (xRadius, yRadius, startAngle, endAngle, clockwise, rotation)\r\n {\r\n var ellipse = new EllipseCurve(0, 0, xRadius, yRadius, startAngle, endAngle, clockwise, rotation);\r\n\r\n var end = this.getEndPoint(this._tmpVec2A);\r\n\r\n // Calculate where to center the ellipse\r\n var start = ellipse.getStartPoint(this._tmpVec2B);\r\n\r\n end.subtract(start);\r\n\r\n ellipse.x = end.x;\r\n ellipse.y = end.y;\r\n\r\n return this.add(ellipse);\r\n },\r\n\r\n /**\r\n * Creates a Path from a Path Configuration object.\r\n *\r\n * The provided object should be a {@link Phaser.Types.Curves.JSONPath}, as returned by {@link #toJSON}. Providing a malformed object may cause errors.\r\n *\r\n * @method Phaser.Curves.Path#fromJSON\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Curves.JSONPath} data - The JSON object containing the Path data.\r\n *\r\n * @return {this} This Path object.\r\n */\r\n fromJSON: function (data)\r\n {\r\n // data should be an object matching the Path.toJSON object structure.\r\n\r\n this.curves = [];\r\n this.cacheLengths = [];\r\n\r\n this.startPoint.set(data.x, data.y);\r\n\r\n this.autoClose = data.autoClose;\r\n\r\n for (var i = 0; i < data.curves.length; i++)\r\n {\r\n var curve = data.curves[i];\r\n\r\n switch (curve.type)\r\n {\r\n case 'LineCurve':\r\n this.add(LineCurve.fromJSON(curve));\r\n break;\r\n\r\n case 'EllipseCurve':\r\n this.add(EllipseCurve.fromJSON(curve));\r\n break;\r\n\r\n case 'SplineCurve':\r\n this.add(SplineCurve.fromJSON(curve));\r\n break;\r\n\r\n case 'CubicBezierCurve':\r\n this.add(CubicBezierCurve.fromJSON(curve));\r\n break;\r\n\r\n case 'QuadraticBezierCurve':\r\n this.add(QuadraticBezierCurve.fromJSON(curve));\r\n break;\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns a Rectangle with a position and size matching the bounds of this Path.\r\n *\r\n * @method Phaser.Curves.Path#getBounds\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} [out] - The Rectangle to store the bounds in.\r\n * @param {number} [accuracy=16] - The accuracy of the bounds calculations. Higher values are more accurate at the cost of calculation speed.\r\n *\r\n * @return {Phaser.Geom.Rectangle} The modified `out` Rectangle, or a new Rectangle if none was provided.\r\n */\r\n getBounds: function (out, accuracy)\r\n {\r\n if (out === undefined) { out = new Rectangle(); }\r\n if (accuracy === undefined) { accuracy = 16; }\r\n\r\n out.x = Number.MAX_VALUE;\r\n out.y = Number.MAX_VALUE;\r\n\r\n var bounds = new Rectangle();\r\n var maxRight = MATH_CONST.MIN_SAFE_INTEGER;\r\n var maxBottom = MATH_CONST.MIN_SAFE_INTEGER;\r\n\r\n for (var i = 0; i < this.curves.length; i++)\r\n {\r\n var curve = this.curves[i];\r\n\r\n if (!curve.active)\r\n {\r\n continue;\r\n }\r\n\r\n curve.getBounds(bounds, accuracy);\r\n\r\n out.x = Math.min(out.x, bounds.x);\r\n out.y = Math.min(out.y, bounds.y);\r\n\r\n maxRight = Math.max(maxRight, bounds.right);\r\n maxBottom = Math.max(maxBottom, bounds.bottom);\r\n }\r\n\r\n out.right = maxRight;\r\n out.bottom = maxBottom;\r\n\r\n return out;\r\n },\r\n\r\n /**\r\n * Returns an array containing the length of the Path at the end of each Curve.\r\n *\r\n * The result of this method will be cached to avoid recalculating it in subsequent calls. The cache is only invalidated when the {@link #curves} array changes in length, leading to potential inaccuracies if a Curve in the Path is changed, or if a Curve is removed and another is added in its place.\r\n *\r\n * @method Phaser.Curves.Path#getCurveLengths\r\n * @since 3.0.0\r\n *\r\n * @return {number[]} An array containing the length of the Path at the end of each one of its Curves.\r\n */\r\n getCurveLengths: function ()\r\n {\r\n // We use cache values if curves and cache array are same length\r\n\r\n if (this.cacheLengths.length === this.curves.length)\r\n {\r\n return this.cacheLengths;\r\n }\r\n\r\n // Get length of sub-curve\r\n // Push sums into cached array\r\n\r\n var lengths = [];\r\n var sums = 0;\r\n\r\n for (var i = 0; i < this.curves.length; i++)\r\n {\r\n sums += this.curves[i].getLength();\r\n\r\n lengths.push(sums);\r\n }\r\n\r\n this.cacheLengths = lengths;\r\n\r\n return lengths;\r\n },\r\n\r\n /**\r\n * Returns the Curve that forms the Path at the given normalized location (between 0 and 1).\r\n *\r\n * @method Phaser.Curves.Path#getCurveAt\r\n * @since 3.60.0\r\n *\r\n * @param {number} t - The normalized location on the Path, between 0 and 1.\r\n *\r\n * @return {?Phaser.Curves.Curve} The Curve that is part of this Path at a given location, or `null` if no curve was found.\r\n */\r\n getCurveAt: function (t)\r\n {\r\n var d = t * this.getLength();\r\n var curveLengths = this.getCurveLengths();\r\n var i = 0;\r\n\r\n while (i < curveLengths.length)\r\n {\r\n if (curveLengths[i] >= d)\r\n {\r\n return this.curves[i];\r\n }\r\n\r\n i++;\r\n }\r\n\r\n return null;\r\n },\r\n\r\n /**\r\n * Returns the ending point of the Path.\r\n *\r\n * A Path's ending point is equivalent to the ending point of the last Curve in the Path. For an empty Path, the ending point is at the Path's defined {@link #startPoint}.\r\n *\r\n * @method Phaser.Curves.Path#getEndPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {Phaser.Math.Vector2} [out] - The object to store the point in.\r\n *\r\n * @return {Phaser.Math.Vector2} The modified `out` object, or a new Vector2 if none was provided.\r\n */\r\n getEndPoint: function (out)\r\n {\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n if (this.curves.length > 0)\r\n {\r\n this.curves[this.curves.length - 1].getPoint(1, out);\r\n }\r\n else\r\n {\r\n out.copy(this.startPoint);\r\n }\r\n\r\n return out;\r\n },\r\n\r\n /**\r\n * Returns the total length of the Path.\r\n *\r\n * @see {@link #getCurveLengths}\r\n *\r\n * @method Phaser.Curves.Path#getLength\r\n * @since 3.0.0\r\n *\r\n * @return {number} The total length of the Path.\r\n */\r\n getLength: function ()\r\n {\r\n var lens = this.getCurveLengths();\r\n\r\n return lens[lens.length - 1];\r\n },\r\n\r\n // To get accurate point with reference to\r\n // entire path distance at time t,\r\n // following has to be done:\r\n\r\n // 1. Length of each sub path have to be known\r\n // 2. Locate and identify type of curve\r\n // 3. Get t for the curve\r\n // 4. Return curve.getPointAt(t')\r\n\r\n /**\r\n * Calculates the coordinates of the point at the given normalized location (between 0 and 1) on the Path.\r\n *\r\n * The location is relative to the entire Path, not to an individual Curve. A location of 0.5 is always in the middle of the Path and is thus an equal distance away from both its starting and ending points. In a Path with one Curve, it would be in the middle of the Curve; in a Path with two Curves, it could be anywhere on either one of them depending on their lengths.\r\n *\r\n * @method Phaser.Curves.Path#getPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {number} t - The location of the point to return, between 0 and 1.\r\n * @param {Phaser.Math.Vector2} [out] - The object in which to store the calculated point.\r\n *\r\n * @return {?Phaser.Math.Vector2} The modified `out` object, or a new `Vector2` if none was provided.\r\n */\r\n getPoint: function (t, out)\r\n {\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n var d = t * this.getLength();\r\n var curveLengths = this.getCurveLengths();\r\n var i = 0;\r\n\r\n while (i < curveLengths.length)\r\n {\r\n if (curveLengths[i] >= d)\r\n {\r\n var diff = curveLengths[i] - d;\r\n var curve = this.curves[i];\r\n\r\n var segmentLength = curve.getLength();\r\n var u = (segmentLength === 0) ? 0 : 1 - diff / segmentLength;\r\n\r\n return curve.getPointAt(u, out);\r\n }\r\n\r\n i++;\r\n }\r\n\r\n // loop where sum != 0, sum > d , sum+1 1 && !points[points.length - 1].equals(points[0]))\r\n {\r\n points.push(points[0]);\r\n }\r\n\r\n return points;\r\n },\r\n\r\n /**\r\n * Returns a randomly chosen point anywhere on the path. This follows the same rules as `getPoint` in that it may return a point on any Curve inside this path.\r\n *\r\n * When calling this method multiple times, the points are not guaranteed to be equally spaced spatially.\r\n *\r\n * @method Phaser.Curves.Path#getRandomPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {Phaser.Math.Vector2} [out] - `Vector2` instance that should be used for storing the result. If `undefined` a new `Vector2` will be created.\r\n *\r\n * @return {Phaser.Math.Vector2} The modified `out` object, or a new `Vector2` if none was provided.\r\n */\r\n getRandomPoint: function (out)\r\n {\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n return this.getPoint(Math.random(), out);\r\n },\r\n\r\n /**\r\n * Divides this Path into a set of equally spaced points,\r\n *\r\n * The resulting points are equally spaced with respect to the points' position on the path, but not necessarily equally spaced spatially.\r\n *\r\n * @method Phaser.Curves.Path#getSpacedPoints\r\n * @since 3.0.0\r\n *\r\n * @param {number} [divisions=40] - The amount of points to divide this Path into.\r\n *\r\n * @return {Phaser.Math.Vector2[]} A list of the points this path was subdivided into.\r\n */\r\n getSpacedPoints: function (divisions)\r\n {\r\n if (divisions === undefined) { divisions = 40; }\r\n\r\n var points = [];\r\n\r\n for (var i = 0; i <= divisions; i++)\r\n {\r\n points.push(this.getPoint(i / divisions));\r\n }\r\n\r\n if (this.autoClose)\r\n {\r\n points.push(points[0]);\r\n }\r\n\r\n return points;\r\n },\r\n\r\n /**\r\n * Returns the starting point of the Path.\r\n *\r\n * @method Phaser.Curves.Path#getStartPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {Phaser.Math.Vector2} [out] - `Vector2` instance that should be used for storing the result. If `undefined` a new `Vector2` will be created.\r\n *\r\n * @return {Phaser.Math.Vector2} The modified `out` object, or a new Vector2 if none was provided.\r\n */\r\n getStartPoint: function (out)\r\n {\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n return out.copy(this.startPoint);\r\n },\r\n\r\n /**\r\n * Gets a unit vector tangent at a relative position on the path.\r\n *\r\n * @method Phaser.Curves.Path#getTangent\r\n * @since 3.23.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {number} t - The relative position on the path, [0..1].\r\n * @param {Phaser.Math.Vector2} [out] - A vector to store the result in.\r\n *\r\n * @return {Phaser.Math.Vector2} Vector approximating the tangent line at the point t (delta +/- 0.0001)\r\n */\r\n getTangent: function (t, out)\r\n {\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n var d = t * this.getLength();\r\n var curveLengths = this.getCurveLengths();\r\n var i = 0;\r\n\r\n while (i < curveLengths.length)\r\n {\r\n if (curveLengths[i] >= d)\r\n {\r\n var diff = curveLengths[i] - d;\r\n var curve = this.curves[i];\r\n\r\n var segmentLength = curve.getLength();\r\n var u = (segmentLength === 0) ? 0 : 1 - diff / segmentLength;\r\n\r\n return curve.getTangentAt(u, out);\r\n }\r\n\r\n i++;\r\n }\r\n\r\n return null;\r\n },\r\n\r\n /**\r\n * Creates a line curve from the previous end point to x/y.\r\n *\r\n * @method Phaser.Curves.Path#lineTo\r\n * @since 3.0.0\r\n *\r\n * @param {(number|Phaser.Math.Vector2|Phaser.Types.Math.Vector2Like)} x - The X coordinate of the line's end point, or a `Vector2` / `Vector2Like` containing the entire end point.\r\n * @param {number} [y] - The Y coordinate of the line's end point, if a number was passed as the X parameter.\r\n *\r\n * @return {this} This Path object.\r\n */\r\n lineTo: function (x, y)\r\n {\r\n if (x instanceof Vector2)\r\n {\r\n this._tmpVec2B.copy(x);\r\n }\r\n else if (typeof x === 'object')\r\n {\r\n this._tmpVec2B.setFromObject(x);\r\n }\r\n else\r\n {\r\n this._tmpVec2B.set(x, y);\r\n }\r\n\r\n var end = this.getEndPoint(this._tmpVec2A);\r\n\r\n return this.add(new LineCurve([ end.x, end.y, this._tmpVec2B.x, this._tmpVec2B.y ]));\r\n },\r\n\r\n /**\r\n * Creates a spline curve starting at the previous end point, using the given points on the curve.\r\n *\r\n * @method Phaser.Curves.Path#splineTo\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector2[]} points - The points the newly created spline curve should consist of.\r\n *\r\n * @return {this} This Path object.\r\n */\r\n splineTo: function (points)\r\n {\r\n points.unshift(this.getEndPoint());\r\n\r\n return this.add(new SplineCurve(points));\r\n },\r\n\r\n /**\r\n * Creates a \"gap\" in this path from the path's current end point to the given coordinates.\r\n *\r\n * After calling this function, this Path's end point will be equal to the given coordinates\r\n *\r\n * @method Phaser.Curves.Path#moveTo\r\n * @since 3.0.0\r\n *\r\n * @param {(number|Phaser.Math.Vector2|Phaser.Types.Math.Vector2Like)} x - The X coordinate of the position to move the path's end point to, or a `Vector2` / `Vector2Like` containing the entire new end point.\r\n * @param {number} [y] - The Y coordinate of the position to move the path's end point to, if a number was passed as the X coordinate.\r\n *\r\n * @return {this} This Path object.\r\n */\r\n moveTo: function (x, y)\r\n {\r\n if (x instanceof Vector2)\r\n {\r\n return this.add(new MovePathTo(x.x, x.y));\r\n }\r\n else\r\n {\r\n return this.add(new MovePathTo(x, y));\r\n }\r\n },\r\n\r\n /**\r\n * Converts this Path to a JSON object containing the path information and its constituent curves.\r\n *\r\n * @method Phaser.Curves.Path#toJSON\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Types.Curves.JSONPath} The JSON object containing this path's data.\r\n */\r\n toJSON: function ()\r\n {\r\n var out = [];\r\n\r\n for (var i = 0; i < this.curves.length; i++)\r\n {\r\n out.push(this.curves[i].toJSON());\r\n }\r\n\r\n return {\r\n type: 'Path',\r\n x: this.startPoint.x,\r\n y: this.startPoint.y,\r\n autoClose: this.autoClose,\r\n curves: out\r\n };\r\n },\r\n\r\n /**\r\n * cacheLengths must be recalculated.\r\n *\r\n * @method Phaser.Curves.Path#updateArcLengths\r\n * @since 3.0.0\r\n */\r\n updateArcLengths: function ()\r\n {\r\n this.cacheLengths = [];\r\n\r\n this.getCurveLengths();\r\n },\r\n\r\n /**\r\n * Disposes of this Path, clearing its internal references to objects so they can be garbage-collected.\r\n *\r\n * @method Phaser.Curves.Path#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.curves.length = 0;\r\n this.cacheLengths.length = 0;\r\n this.startPoint = undefined;\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Creates a new Path Object.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#path\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal position of this Path.\r\n * @param {number} y - The vertical position of this Path.\r\n *\r\n * @return {Phaser.Curves.Path} The Path Object that was created.\r\n */\r\nGameObjectFactory.register('path', function (x, y)\r\n{\r\n return new Path(x, y);\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectFactory context.\r\n//\r\n// There are several properties available to use:\r\n//\r\n// this.scene - a reference to the Scene that owns the GameObjectFactory\r\n// this.displayList - a reference to the Display List the Scene owns\r\n// this.updateList - a reference to the Update List the Scene owns\r\n\r\nmodule.exports = Path;\r\n\n\n/***/ }),\n\n/***/ 45893:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Events = __webpack_require__(24882);\r\n\r\n/**\r\n * @callback DataEachCallback\r\n *\r\n * @param {*} parent - The parent object of the DataManager.\r\n * @param {string} key - The key of the value.\r\n * @param {*} value - The value.\r\n * @param {...*} [args] - Additional arguments that will be passed to the callback, after the game object, key, and data.\r\n */\r\n\r\n/**\r\n * @classdesc\r\n * The Data Manager Component features a means to store pieces of data specific to a Game Object, System or Plugin.\r\n * You can then search, query it, and retrieve the data. The parent must either extend EventEmitter,\r\n * or have a property called `events` that is an instance of it.\r\n *\r\n * @class DataManager\r\n * @memberof Phaser.Data\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {object} parent - The object that this DataManager belongs to.\r\n * @param {Phaser.Events.EventEmitter} [eventEmitter] - The DataManager's event emitter.\r\n */\r\nvar DataManager = new Class({\r\n\r\n initialize:\r\n\r\n function DataManager (parent, eventEmitter)\r\n {\r\n /**\r\n * The object that this DataManager belongs to.\r\n *\r\n * @name Phaser.Data.DataManager#parent\r\n * @type {*}\r\n * @since 3.0.0\r\n */\r\n this.parent = parent;\r\n\r\n /**\r\n * The DataManager's event emitter.\r\n *\r\n * @name Phaser.Data.DataManager#events\r\n * @type {Phaser.Events.EventEmitter}\r\n * @since 3.0.0\r\n */\r\n this.events = eventEmitter;\r\n\r\n if (!eventEmitter)\r\n {\r\n this.events = (parent.events) ? parent.events : parent;\r\n }\r\n\r\n /**\r\n * The data list.\r\n *\r\n * @name Phaser.Data.DataManager#list\r\n * @type {Object.}\r\n * @default {}\r\n * @since 3.0.0\r\n */\r\n this.list = {};\r\n\r\n /**\r\n * The public values list. You can use this to access anything you have stored\r\n * in this Data Manager. For example, if you set a value called `gold` you can\r\n * access it via:\r\n *\r\n * ```javascript\r\n * this.data.values.gold;\r\n * ```\r\n *\r\n * You can also modify it directly:\r\n *\r\n * ```javascript\r\n * this.data.values.gold += 1000;\r\n * ```\r\n *\r\n * Doing so will emit a `setdata` event from the parent of this Data Manager.\r\n *\r\n * Do not modify this object directly. Adding properties directly to this object will not\r\n * emit any events. Always use `DataManager.set` to create new items the first time around.\r\n *\r\n * @name Phaser.Data.DataManager#values\r\n * @type {Object.}\r\n * @default {}\r\n * @since 3.10.0\r\n */\r\n this.values = {};\r\n\r\n /**\r\n * Whether setting data is frozen for this DataManager.\r\n *\r\n * @name Phaser.Data.DataManager#_frozen\r\n * @type {boolean}\r\n * @private\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this._frozen = false;\r\n\r\n if (!parent.hasOwnProperty('sys') && this.events)\r\n {\r\n this.events.once(Events.DESTROY, this.destroy, this);\r\n }\r\n },\r\n\r\n /**\r\n * Retrieves the value for the given key, or undefined if it doesn't exist.\r\n *\r\n * You can also access values via the `values` object. For example, if you had a key called `gold` you can do either:\r\n *\r\n * ```javascript\r\n * this.data.get('gold');\r\n * ```\r\n *\r\n * Or access the value directly:\r\n *\r\n * ```javascript\r\n * this.data.values.gold;\r\n * ```\r\n *\r\n * You can also pass in an array of keys, in which case an array of values will be returned:\r\n *\r\n * ```javascript\r\n * this.data.get([ 'gold', 'armor', 'health' ]);\r\n * ```\r\n *\r\n * This approach is useful for destructuring arrays in ES6.\r\n *\r\n * @method Phaser.Data.DataManager#get\r\n * @since 3.0.0\r\n *\r\n * @param {(string|string[])} key - The key of the value to retrieve, or an array of keys.\r\n *\r\n * @return {*} The value belonging to the given key, or an array of values, the order of which will match the input array.\r\n */\r\n get: function (key)\r\n {\r\n var list = this.list;\r\n\r\n if (Array.isArray(key))\r\n {\r\n var output = [];\r\n\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n output.push(list[key[i]]);\r\n }\r\n\r\n return output;\r\n }\r\n else\r\n {\r\n return list[key];\r\n }\r\n },\r\n\r\n /**\r\n * Retrieves all data values in a new object.\r\n *\r\n * @method Phaser.Data.DataManager#getAll\r\n * @since 3.0.0\r\n *\r\n * @return {Object.} All data values.\r\n */\r\n getAll: function ()\r\n {\r\n var results = {};\r\n\r\n for (var key in this.list)\r\n {\r\n if (this.list.hasOwnProperty(key))\r\n {\r\n results[key] = this.list[key];\r\n }\r\n }\r\n\r\n return results;\r\n },\r\n\r\n /**\r\n * Queries the DataManager for the values of keys matching the given regular expression.\r\n *\r\n * @method Phaser.Data.DataManager#query\r\n * @since 3.0.0\r\n *\r\n * @param {RegExp} search - A regular expression object. If a non-RegExp object obj is passed, it is implicitly converted to a RegExp by using new RegExp(obj).\r\n *\r\n * @return {Object.} The values of the keys matching the search string.\r\n */\r\n query: function (search)\r\n {\r\n var results = {};\r\n\r\n for (var key in this.list)\r\n {\r\n if (this.list.hasOwnProperty(key) && key.match(search))\r\n {\r\n results[key] = this.list[key];\r\n }\r\n }\r\n\r\n return results;\r\n },\r\n\r\n /**\r\n * Sets a value for the given key. If the key doesn't already exist in the Data Manager then it is created.\r\n *\r\n * ```javascript\r\n * data.set('name', 'Red Gem Stone');\r\n * ```\r\n *\r\n * You can also pass in an object of key value pairs as the first argument:\r\n *\r\n * ```javascript\r\n * data.set({ name: 'Red Gem Stone', level: 2, owner: 'Link', gold: 50 });\r\n * ```\r\n *\r\n * To get a value back again you can call `get`:\r\n *\r\n * ```javascript\r\n * data.get('gold');\r\n * ```\r\n *\r\n * Or you can access the value directly via the `values` property, where it works like any other variable:\r\n *\r\n * ```javascript\r\n * data.values.gold += 50;\r\n * ```\r\n *\r\n * When the value is first set, a `setdata` event is emitted.\r\n *\r\n * If the key already exists, a `changedata` event is emitted instead, along an event named after the key.\r\n * For example, if you updated an existing key called `PlayerLives` then it would emit the event `changedata-PlayerLives`.\r\n * These events will be emitted regardless if you use this method to set the value, or the direct `values` setter.\r\n *\r\n * Please note that the data keys are case-sensitive and must be valid JavaScript Object property strings.\r\n * This means the keys `gold` and `Gold` are treated as two unique values within the Data Manager.\r\n *\r\n * @method Phaser.Data.DataManager#set\r\n * @fires Phaser.Data.Events#SET_DATA\r\n * @fires Phaser.Data.Events#CHANGE_DATA\r\n * @fires Phaser.Data.Events#CHANGE_DATA_KEY\r\n * @since 3.0.0\r\n *\r\n * @generic {any} T\r\n * @genericUse {(string|T)} - [key]\r\n *\r\n * @param {(string|object)} key - The key to set the value for. Or an object of key value pairs. If an object the `data` argument is ignored.\r\n * @param {*} [data] - The value to set for the given key. If an object is provided as the key this argument is ignored.\r\n *\r\n * @return {this} This Data Manager instance.\r\n */\r\n set: function (key, data)\r\n {\r\n if (this._frozen)\r\n {\r\n return this;\r\n }\r\n\r\n if (typeof key === 'string')\r\n {\r\n return this.setValue(key, data);\r\n }\r\n else\r\n {\r\n for (var entry in key)\r\n {\r\n this.setValue(entry, key[entry]);\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Increase a value for the given key. If the key doesn't already exist in the Data Manager then it is increased from 0.\r\n *\r\n * When the value is first set, a `setdata` event is emitted.\r\n *\r\n * @method Phaser.Data.DataManager#inc\r\n * @fires Phaser.Data.Events#SET_DATA\r\n * @fires Phaser.Data.Events#CHANGE_DATA\r\n * @fires Phaser.Data.Events#CHANGE_DATA_KEY\r\n * @since 3.23.0\r\n *\r\n * @param {string} key - The key to change the value for.\r\n * @param {number} [amount=1] - The amount to increase the given key by. Pass a negative value to decrease the key.\r\n *\r\n * @return {this} This Data Manager instance.\r\n */\r\n inc: function (key, amount)\r\n {\r\n if (this._frozen)\r\n {\r\n return this;\r\n }\r\n\r\n if (amount === undefined)\r\n {\r\n amount = 1;\r\n }\r\n\r\n var value = this.get(key);\r\n\r\n if (value === undefined)\r\n {\r\n value = 0;\r\n }\r\n\r\n this.set(key, (value + amount));\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Toggle a boolean value for the given key. If the key doesn't already exist in the Data Manager then it is toggled from false.\r\n *\r\n * When the value is first set, a `setdata` event is emitted.\r\n *\r\n * @method Phaser.Data.DataManager#toggle\r\n * @fires Phaser.Data.Events#SET_DATA\r\n * @fires Phaser.Data.Events#CHANGE_DATA\r\n * @fires Phaser.Data.Events#CHANGE_DATA_KEY\r\n * @since 3.23.0\r\n *\r\n * @param {string} key - The key to toggle the value for.\r\n *\r\n * @return {this} This Data Manager instance.\r\n */\r\n toggle: function (key)\r\n {\r\n if (this._frozen)\r\n {\r\n return this;\r\n }\r\n\r\n this.set(key, !this.get(key));\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal value setter, called automatically by the `set` method.\r\n *\r\n * @method Phaser.Data.DataManager#setValue\r\n * @fires Phaser.Data.Events#SET_DATA\r\n * @fires Phaser.Data.Events#CHANGE_DATA\r\n * @fires Phaser.Data.Events#CHANGE_DATA_KEY\r\n * @private\r\n * @since 3.10.0\r\n *\r\n * @param {string} key - The key to set the value for.\r\n * @param {*} data - The value to set.\r\n *\r\n * @return {this} This Data Manager instance.\r\n */\r\n setValue: function (key, data)\r\n {\r\n if (this._frozen)\r\n {\r\n return this;\r\n }\r\n\r\n if (this.has(key))\r\n {\r\n // Hit the key getter, which will in turn emit the events.\r\n this.values[key] = data;\r\n }\r\n else\r\n {\r\n var _this = this;\r\n var list = this.list;\r\n var events = this.events;\r\n var parent = this.parent;\r\n\r\n Object.defineProperty(this.values, key, {\r\n\r\n enumerable: true,\r\n\r\n configurable: true,\r\n\r\n get: function ()\r\n {\r\n return list[key];\r\n },\r\n\r\n set: function (value)\r\n {\r\n if (!_this._frozen)\r\n {\r\n var previousValue = list[key];\r\n list[key] = value;\r\n\r\n events.emit(Events.CHANGE_DATA, parent, key, value, previousValue);\r\n events.emit(Events.CHANGE_DATA_KEY + key, parent, value, previousValue);\r\n }\r\n }\r\n\r\n });\r\n\r\n list[key] = data;\r\n\r\n events.emit(Events.SET_DATA, parent, key, data);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Passes all data entries to the given callback.\r\n *\r\n * @method Phaser.Data.DataManager#each\r\n * @since 3.0.0\r\n *\r\n * @param {DataEachCallback} callback - The function to call.\r\n * @param {*} [context] - Value to use as `this` when executing callback.\r\n * @param {...*} [args] - Additional arguments that will be passed to the callback, after the game object, key, and data.\r\n *\r\n * @return {this} This Data Manager instance.\r\n */\r\n each: function (callback, context)\r\n {\r\n var args = [ this.parent, null, undefined ];\r\n\r\n for (var i = 1; i < arguments.length; i++)\r\n {\r\n args.push(arguments[i]);\r\n }\r\n\r\n for (var key in this.list)\r\n {\r\n args[1] = key;\r\n args[2] = this.list[key];\r\n\r\n callback.apply(context, args);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Merge the given object of key value pairs into this DataManager.\r\n *\r\n * Any newly created values will emit a `setdata` event. Any updated values (see the `overwrite` argument)\r\n * will emit a `changedata` event.\r\n *\r\n * @method Phaser.Data.DataManager#merge\r\n * @fires Phaser.Data.Events#SET_DATA\r\n * @fires Phaser.Data.Events#CHANGE_DATA\r\n * @fires Phaser.Data.Events#CHANGE_DATA_KEY\r\n * @since 3.0.0\r\n *\r\n * @param {Object.} data - The data to merge.\r\n * @param {boolean} [overwrite=true] - Whether to overwrite existing data. Defaults to true.\r\n *\r\n * @return {this} This Data Manager instance.\r\n */\r\n merge: function (data, overwrite)\r\n {\r\n if (overwrite === undefined) { overwrite = true; }\r\n\r\n // Merge data from another component into this one\r\n for (var key in data)\r\n {\r\n if (data.hasOwnProperty(key) && (overwrite || (!overwrite && !this.has(key))))\r\n {\r\n this.setValue(key, data[key]);\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Remove the value for the given key.\r\n *\r\n * If the key is found in this Data Manager it is removed from the internal lists and a\r\n * `removedata` event is emitted.\r\n *\r\n * You can also pass in an array of keys, in which case all keys in the array will be removed:\r\n *\r\n * ```javascript\r\n * this.data.remove([ 'gold', 'armor', 'health' ]);\r\n * ```\r\n *\r\n * @method Phaser.Data.DataManager#remove\r\n * @fires Phaser.Data.Events#REMOVE_DATA\r\n * @since 3.0.0\r\n *\r\n * @param {(string|string[])} key - The key to remove, or an array of keys to remove.\r\n *\r\n * @return {this} This Data Manager instance.\r\n */\r\n remove: function (key)\r\n {\r\n if (this._frozen)\r\n {\r\n return this;\r\n }\r\n\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n this.removeValue(key[i]);\r\n }\r\n }\r\n else\r\n {\r\n return this.removeValue(key);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal value remover, called automatically by the `remove` method.\r\n *\r\n * @method Phaser.Data.DataManager#removeValue\r\n * @private\r\n * @fires Phaser.Data.Events#REMOVE_DATA\r\n * @since 3.10.0\r\n *\r\n * @param {string} key - The key to set the value for.\r\n *\r\n * @return {this} This Data Manager instance.\r\n */\r\n removeValue: function (key)\r\n {\r\n if (this.has(key))\r\n {\r\n var data = this.list[key];\r\n\r\n delete this.list[key];\r\n delete this.values[key];\r\n\r\n this.events.emit(Events.REMOVE_DATA, this.parent, key, data);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Retrieves the data associated with the given 'key', deletes it from this Data Manager, then returns it.\r\n *\r\n * @method Phaser.Data.DataManager#pop\r\n * @fires Phaser.Data.Events#REMOVE_DATA\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key of the value to retrieve and delete.\r\n *\r\n * @return {*} The value of the given key.\r\n */\r\n pop: function (key)\r\n {\r\n var data = undefined;\r\n\r\n if (!this._frozen && this.has(key))\r\n {\r\n data = this.list[key];\r\n\r\n delete this.list[key];\r\n delete this.values[key];\r\n\r\n this.events.emit(Events.REMOVE_DATA, this.parent, key, data);\r\n }\r\n\r\n return data;\r\n },\r\n\r\n /**\r\n * Determines whether the given key is set in this Data Manager.\r\n *\r\n * Please note that the keys are case-sensitive and must be valid JavaScript Object property strings.\r\n * This means the keys `gold` and `Gold` are treated as two unique values within the Data Manager.\r\n *\r\n * @method Phaser.Data.DataManager#has\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key to check.\r\n *\r\n * @return {boolean} Returns `true` if the key exists, otherwise `false`.\r\n */\r\n has: function (key)\r\n {\r\n return this.list.hasOwnProperty(key);\r\n },\r\n\r\n /**\r\n * Freeze or unfreeze this Data Manager. A frozen Data Manager will block all attempts\r\n * to create new values or update existing ones.\r\n *\r\n * @method Phaser.Data.DataManager#setFreeze\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} value - Whether to freeze or unfreeze the Data Manager.\r\n *\r\n * @return {this} This Data Manager instance.\r\n */\r\n setFreeze: function (value)\r\n {\r\n this._frozen = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Delete all data in this Data Manager and unfreeze it.\r\n *\r\n * @method Phaser.Data.DataManager#reset\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Data Manager instance.\r\n */\r\n reset: function ()\r\n {\r\n for (var key in this.list)\r\n {\r\n delete this.list[key];\r\n delete this.values[key];\r\n }\r\n\r\n this._frozen = false;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Destroy this data manager.\r\n *\r\n * @method Phaser.Data.DataManager#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.reset();\r\n\r\n this.events.off(Events.CHANGE_DATA);\r\n this.events.off(Events.SET_DATA);\r\n this.events.off(Events.REMOVE_DATA);\r\n\r\n this.parent = null;\r\n },\r\n\r\n /**\r\n * Gets or sets the frozen state of this Data Manager.\r\n * A frozen Data Manager will block all attempts to create new values or update existing ones.\r\n *\r\n * @name Phaser.Data.DataManager#freeze\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n freeze: {\r\n\r\n get: function ()\r\n {\r\n return this._frozen;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._frozen = (value) ? true : false;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Return the total number of entries in this Data Manager.\r\n *\r\n * @name Phaser.Data.DataManager#count\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n count: {\r\n\r\n get: function ()\r\n {\r\n var i = 0;\r\n\r\n for (var key in this.list)\r\n {\r\n if (this.list[key] !== undefined)\r\n {\r\n i++;\r\n }\r\n }\r\n\r\n return i;\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = DataManager;\r\n\n\n/***/ }),\n\n/***/ 63646:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar DataManager = __webpack_require__(45893);\r\nvar PluginCache = __webpack_require__(37277);\r\nvar SceneEvents = __webpack_require__(44594);\r\n\r\n/**\r\n * @classdesc\r\n * The Data Component features a means to store pieces of data specific to a Game Object, System or Plugin.\r\n * You can then search, query it, and retrieve the data. The parent must either extend EventEmitter,\r\n * or have a property called `events` that is an instance of it.\r\n *\r\n * @class DataManagerPlugin\r\n * @extends Phaser.Data.DataManager\r\n * @memberof Phaser.Data\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - A reference to the Scene that this DataManager belongs to.\r\n */\r\nvar DataManagerPlugin = new Class({\r\n\r\n Extends: DataManager,\r\n\r\n initialize:\r\n\r\n function DataManagerPlugin (scene)\r\n {\r\n DataManager.call(this, scene, scene.sys.events);\r\n\r\n /**\r\n * A reference to the Scene that this DataManager belongs to.\r\n *\r\n * @name Phaser.Data.DataManagerPlugin#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.0.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * A reference to the Scene's Systems.\r\n *\r\n * @name Phaser.Data.DataManagerPlugin#systems\r\n * @type {Phaser.Scenes.Systems}\r\n * @since 3.0.0\r\n */\r\n this.systems = scene.sys;\r\n\r\n scene.sys.events.once(SceneEvents.BOOT, this.boot, this);\r\n scene.sys.events.on(SceneEvents.START, this.start, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically, only once, when the Scene is first created.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.Data.DataManagerPlugin#boot\r\n * @private\r\n * @since 3.5.1\r\n */\r\n boot: function ()\r\n {\r\n this.events = this.systems.events;\r\n\r\n this.events.once(SceneEvents.DESTROY, this.destroy, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically by the Scene when it is starting up.\r\n * It is responsible for creating local systems, properties and listening for Scene events.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.Data.DataManagerPlugin#start\r\n * @private\r\n * @since 3.5.0\r\n */\r\n start: function ()\r\n {\r\n this.events.once(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is shutting down.\r\n * We need to kill and reset all internal properties as well as stop listening to Scene events.\r\n *\r\n * @method Phaser.Data.DataManagerPlugin#shutdown\r\n * @private\r\n * @since 3.5.0\r\n */\r\n shutdown: function ()\r\n {\r\n this.systems.events.off(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is being destroyed.\r\n * We need to shutdown and then kill off all external references.\r\n *\r\n * @method Phaser.Data.DataManagerPlugin#destroy\r\n * @since 3.5.0\r\n */\r\n destroy: function ()\r\n {\r\n DataManager.prototype.destroy.call(this);\r\n\r\n this.events.off(SceneEvents.START, this.start, this);\r\n\r\n this.scene = null;\r\n this.systems = null;\r\n }\r\n\r\n});\r\n\r\nPluginCache.register('DataManagerPlugin', DataManagerPlugin, 'data');\r\n\r\nmodule.exports = DataManagerPlugin;\r\n\n\n/***/ }),\n\n/***/ 10700:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Change Data Event.\r\n *\r\n * This event is dispatched by a Data Manager when an item in the data store is changed.\r\n *\r\n * Game Objects with data enabled have an instance of a Data Manager under the `data` property. So, to listen for\r\n * a change data event from a Game Object you would use: `sprite.on('changedata', listener)`.\r\n *\r\n * This event is dispatched for all items that change in the Data Manager.\r\n * To listen for the change of a specific item, use the `CHANGE_DATA_KEY_EVENT` event.\r\n *\r\n * @event Phaser.Data.Events#CHANGE_DATA\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {any} parent - A reference to the object that the Data Manager responsible for this event belongs to.\r\n * @param {string} key - The unique key of the data item within the Data Manager.\r\n * @param {any} value - The new value of the item in the Data Manager.\r\n * @param {any} previousValue - The previous value of the item in the Data Manager.\r\n */\r\nmodule.exports = 'changedata';\r\n\n\n/***/ }),\n\n/***/ 93608:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Change Data Key Event.\r\n *\r\n * This event is dispatched by a Data Manager when an item in the data store is changed.\r\n *\r\n * Game Objects with data enabled have an instance of a Data Manager under the `data` property. So, to listen for\r\n * the change of a specific data item from a Game Object you would use: `sprite.on('changedata-key', listener)`,\r\n * where `key` is the unique string key of the data item. For example, if you have a data item stored called `gold`\r\n * then you can listen for `sprite.on('changedata-gold')`.\r\n *\r\n * @event Phaser.Data.Events#CHANGE_DATA_KEY\r\n * @type {string}\r\n * @since 3.16.1\r\n *\r\n * @param {any} parent - A reference to the object that owns the instance of the Data Manager responsible for this event.\r\n * @param {any} value - The item that was updated in the Data Manager. This can be of any data type, i.e. a string, boolean, number, object or instance.\r\n * @param {any} previousValue - The previous item that was updated in the Data Manager. This can be of any data type, i.e. a string, boolean, number, object or instance.\r\n */\r\nmodule.exports = 'changedata-';\r\n\n\n/***/ }),\n\n/***/ 60883:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Data Manager Destroy Event.\r\n *\r\n * The Data Manager will listen for the destroy event from its parent, and then close itself down.\r\n *\r\n * @event Phaser.Data.Events#DESTROY\r\n * @type {string}\r\n * @since 3.50.0\r\n */\r\nmodule.exports = 'destroy';\r\n\n\n/***/ }),\n\n/***/ 69780:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Remove Data Event.\r\n *\r\n * This event is dispatched by a Data Manager when an item is removed from it.\r\n *\r\n * Game Objects with data enabled have an instance of a Data Manager under the `data` property. So, to listen for\r\n * the removal of a data item on a Game Object you would use: `sprite.on('removedata', listener)`.\r\n *\r\n * @event Phaser.Data.Events#REMOVE_DATA\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {any} parent - A reference to the object that owns the instance of the Data Manager responsible for this event.\r\n * @param {string} key - The unique key of the data item within the Data Manager.\r\n * @param {any} data - The item that was removed from the Data Manager. This can be of any data type, i.e. a string, boolean, number, object or instance.\r\n */\r\nmodule.exports = 'removedata';\r\n\n\n/***/ }),\n\n/***/ 22166:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Set Data Event.\r\n *\r\n * This event is dispatched by a Data Manager when a new item is added to the data store.\r\n *\r\n * Game Objects with data enabled have an instance of a Data Manager under the `data` property. So, to listen for\r\n * the addition of a new data item on a Game Object you would use: `sprite.on('setdata', listener)`.\r\n *\r\n * @event Phaser.Data.Events#SET_DATA\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {any} parent - A reference to the object that owns the instance of the Data Manager responsible for this event.\r\n * @param {string} key - The unique key of the data item within the Data Manager.\r\n * @param {any} data - The item that was added to the Data Manager. This can be of any data type, i.e. a string, boolean, number, object or instance.\r\n */\r\nmodule.exports = 'setdata';\r\n\n\n/***/ }),\n\n/***/ 24882:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Data.Events\r\n */\r\n\r\nmodule.exports = {\r\n\r\n CHANGE_DATA: __webpack_require__(10700),\r\n CHANGE_DATA_KEY: __webpack_require__(93608),\r\n DESTROY: __webpack_require__(60883),\r\n REMOVE_DATA: __webpack_require__(69780),\r\n SET_DATA: __webpack_require__(22166)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 44965:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Data\r\n */\r\n\r\nmodule.exports = {\r\n\r\n DataManager: __webpack_require__(45893),\r\n DataManagerPlugin: __webpack_require__(63646),\r\n Events: __webpack_require__(24882)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 7098:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Browser = __webpack_require__(84148);\r\n\r\n/**\r\n * Determines the audio playback capabilities of the device running this Phaser Game instance.\r\n * These values are read-only and populated during the boot sequence of the game.\r\n * They are then referenced by internal game systems and are available for you to access\r\n * via `this.sys.game.device.audio` from within any Scene.\r\n *\r\n * @typedef {object} Phaser.Device.Audio\r\n * @since 3.0.0\r\n *\r\n * @property {boolean} audioData - Can this device play HTML Audio tags?\r\n * @property {boolean} dolby - Can this device play EC-3 Dolby Digital Plus files?\r\n * @property {boolean} m4a - Can this device can play m4a files.\r\n * @property {boolean} aac - Can this device can play aac files.\r\n * @property {boolean} flac - Can this device can play flac files.\r\n * @property {boolean} mp3 - Can this device play mp3 files?\r\n * @property {boolean} ogg - Can this device play ogg files?\r\n * @property {boolean} opus - Can this device play opus files?\r\n * @property {boolean} wav - Can this device play wav files?\r\n * @property {boolean} webAudio - Does this device have the Web Audio API?\r\n * @property {boolean} webm - Can this device play webm files?\r\n */\r\nvar Audio = {\r\n\r\n flac: false,\r\n aac: false,\r\n audioData: false,\r\n dolby: false,\r\n m4a: false,\r\n mp3: false,\r\n ogg: false,\r\n opus: false,\r\n wav: false,\r\n webAudio: false,\r\n webm: false\r\n\r\n};\r\n\r\nfunction init ()\r\n{\r\n if (typeof importScripts === 'function')\r\n {\r\n return Audio;\r\n }\r\n\r\n Audio.audioData = !!(window['Audio']);\r\n\r\n Audio.webAudio = !!(window['AudioContext'] || window['webkitAudioContext']);\r\n\r\n var audioElement = document.createElement('audio');\r\n var result = !!audioElement.canPlayType;\r\n\r\n try\r\n {\r\n if (result)\r\n {\r\n var CanPlay = function (type1, type2)\r\n {\r\n var canPlayType1 = audioElement.canPlayType('audio/' + type1).replace(/^no$/, '');\r\n\r\n if (type2)\r\n {\r\n return Boolean(canPlayType1 || audioElement.canPlayType('audio/' + type2).replace(/^no$/, ''));\r\n }\r\n else\r\n {\r\n return Boolean(canPlayType1);\r\n }\r\n };\r\n\r\n // wav Mimetypes accepted:\r\n // developer.mozilla.org/En/Media_formats_supported_by_the_audio_and_video_elements\r\n\r\n Audio.ogg = CanPlay('ogg; codecs=\"vorbis\"');\r\n Audio.opus = CanPlay('ogg; codecs=\"opus\"', 'opus');\r\n Audio.mp3 = CanPlay('mpeg');\r\n Audio.wav = CanPlay('wav');\r\n Audio.m4a = CanPlay('x-m4a');\r\n Audio.aac = CanPlay('aac');\r\n Audio.flac = CanPlay('flac', 'x-flac');\r\n Audio.webm = CanPlay('webm; codecs=\"vorbis\"');\r\n\r\n if (audioElement.canPlayType('audio/mp4; codecs=\"ec-3\"') !== '')\r\n {\r\n if (Browser.edge)\r\n {\r\n Audio.dolby = true;\r\n }\r\n else if (Browser.safari && Browser.safariVersion >= 9)\r\n {\r\n if ((/Mac OS X (\\d+)_(\\d+)/).test(navigator.userAgent))\r\n {\r\n var major = parseInt(RegExp.$1, 10);\r\n var minor = parseInt(RegExp.$2, 10);\r\n\r\n if ((major === 10 && minor >= 11) || major > 10)\r\n {\r\n Audio.dolby = true;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n catch (e)\r\n {\r\n // Nothing to do here\r\n }\r\n\r\n return Audio;\r\n}\r\n\r\nmodule.exports = init();\r\n\n\n/***/ }),\n\n/***/ 84148:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar OS = __webpack_require__(25892);\r\n\r\n/**\r\n * Determines the browser type and version running this Phaser Game instance.\r\n * These values are read-only and populated during the boot sequence of the game.\r\n * They are then referenced by internal game systems and are available for you to access\r\n * via `this.sys.game.device.browser` from within any Scene.\r\n *\r\n * @typedef {object} Phaser.Device.Browser\r\n * @since 3.0.0\r\n *\r\n * @property {boolean} chrome - Set to true if running in Chrome.\r\n * @property {boolean} edge - Set to true if running in Microsoft Edge browser.\r\n * @property {boolean} firefox - Set to true if running in Firefox.\r\n * @property {boolean} ie - Set to true if running in Internet Explorer 11 or less (not Edge).\r\n * @property {boolean} mobileSafari - Set to true if running in Mobile Safari.\r\n * @property {boolean} opera - Set to true if running in Opera.\r\n * @property {boolean} safari - Set to true if running in Safari.\r\n * @property {boolean} silk - Set to true if running in the Silk browser (as used on the Amazon Kindle)\r\n * @property {boolean} trident - Set to true if running a Trident version of Internet Explorer (IE11+)\r\n * @property {number} chromeVersion - If running in Chrome this will contain the major version number.\r\n * @property {number} firefoxVersion - If running in Firefox this will contain the major version number.\r\n * @property {number} ieVersion - If running in Internet Explorer this will contain the major version number. Beyond IE10 you should use Browser.trident and Browser.tridentVersion.\r\n * @property {number} safariVersion - If running in Safari this will contain the major version number.\r\n * @property {number} tridentVersion - If running in Internet Explorer 11 this will contain the major version number. See {@link http://msdn.microsoft.com/en-us/library/ie/ms537503(v=vs.85).aspx}\r\n */\r\nvar Browser = {\r\n\r\n chrome: false,\r\n chromeVersion: 0,\r\n edge: false,\r\n firefox: false,\r\n firefoxVersion: 0,\r\n ie: false,\r\n ieVersion: 0,\r\n mobileSafari: false,\r\n opera: false,\r\n safari: false,\r\n safariVersion: 0,\r\n silk: false,\r\n trident: false,\r\n tridentVersion: 0,\r\n es2019: false\r\n\r\n};\r\n\r\nfunction init ()\r\n{\r\n var ua = navigator.userAgent;\r\n\r\n if ((/Edg\\/\\d+/).test(ua))\r\n {\r\n Browser.edge = true;\r\n Browser.es2019 = true;\r\n }\r\n else if ((/OPR/).test(ua))\r\n {\r\n Browser.opera = true;\r\n Browser.es2019 = true;\r\n }\r\n else if ((/Chrome\\/(\\d+)/).test(ua) && !OS.windowsPhone)\r\n {\r\n Browser.chrome = true;\r\n Browser.chromeVersion = parseInt(RegExp.$1, 10);\r\n Browser.es2019 = (Browser.chromeVersion > 69);\r\n }\r\n else if ((/Firefox\\D+(\\d+)/).test(ua))\r\n {\r\n Browser.firefox = true;\r\n Browser.firefoxVersion = parseInt(RegExp.$1, 10);\r\n Browser.es2019 = (Browser.firefoxVersion > 10);\r\n }\r\n else if ((/AppleWebKit\\/(?!.*CriOS)/).test(ua) && OS.iOS)\r\n {\r\n Browser.mobileSafari = true;\r\n Browser.es2019 = true;\r\n }\r\n else if ((/MSIE (\\d+\\.\\d+);/).test(ua))\r\n {\r\n Browser.ie = true;\r\n Browser.ieVersion = parseInt(RegExp.$1, 10);\r\n }\r\n else if ((/Version\\/(\\d+\\.\\d+(\\.\\d+)?) Safari/).test(ua) && !OS.windowsPhone)\r\n {\r\n Browser.safari = true;\r\n Browser.safariVersion = parseInt(RegExp.$1, 10);\r\n Browser.es2019 = (Browser.safariVersion > 10);\r\n }\r\n else if ((/Trident\\/(\\d+\\.\\d+)(.*)rv:(\\d+\\.\\d+)/).test(ua))\r\n {\r\n Browser.ie = true;\r\n Browser.trident = true;\r\n Browser.tridentVersion = parseInt(RegExp.$1, 10);\r\n Browser.ieVersion = parseInt(RegExp.$3, 10);\r\n }\r\n\r\n // Silk gets its own if clause because its ua also contains 'Safari'\r\n if ((/Silk/).test(ua))\r\n {\r\n Browser.silk = true;\r\n }\r\n\r\n return Browser;\r\n}\r\n\r\nmodule.exports = init();\r\n\n\n/***/ }),\n\n/***/ 89289:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CanvasPool = __webpack_require__(27919);\r\n\r\n/**\r\n * Determines the canvas features of the browser running this Phaser Game instance.\r\n * These values are read-only and populated during the boot sequence of the game.\r\n * They are then referenced by internal game systems and are available for you to access\r\n * via `this.sys.game.device.canvasFeatures` from within any Scene.\r\n *\r\n * @typedef {object} Phaser.Device.CanvasFeatures\r\n * @since 3.0.0\r\n *\r\n * @property {boolean} supportInverseAlpha - Set to true if the browser supports inversed alpha.\r\n * @property {boolean} supportNewBlendModes - Set to true if the browser supports new canvas blend modes.\r\n */\r\nvar CanvasFeatures = {\r\n\r\n supportInverseAlpha: false,\r\n supportNewBlendModes: false\r\n\r\n};\r\n\r\nfunction checkBlendMode ()\r\n{\r\n var pngHead = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/';\r\n var pngEnd = 'AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==';\r\n\r\n var magenta = new Image();\r\n\r\n magenta.onload = function ()\r\n {\r\n var yellow = new Image();\r\n\r\n yellow.onload = function ()\r\n {\r\n var canvas = CanvasPool.create2D(yellow, 6);\r\n var context = canvas.getContext('2d', { willReadFrequently: true });\r\n\r\n context.globalCompositeOperation = 'multiply';\r\n\r\n context.drawImage(magenta, 0, 0);\r\n context.drawImage(yellow, 2, 0);\r\n\r\n if (!context.getImageData(2, 0, 1, 1))\r\n {\r\n return false;\r\n }\r\n\r\n var data = context.getImageData(2, 0, 1, 1).data;\r\n\r\n CanvasPool.remove(yellow);\r\n\r\n CanvasFeatures.supportNewBlendModes = (data[0] === 255 && data[1] === 0 && data[2] === 0);\r\n };\r\n\r\n yellow.src = pngHead + '/wCKxvRF' + pngEnd;\r\n };\r\n\r\n magenta.src = pngHead + 'AP804Oa6' + pngEnd;\r\n\r\n return false;\r\n}\r\n\r\nfunction checkInverseAlpha ()\r\n{\r\n var canvas = CanvasPool.create2D(this, 2);\r\n var context = canvas.getContext('2d', { willReadFrequently: true });\r\n\r\n context.fillStyle = 'rgba(10, 20, 30, 0.5)';\r\n\r\n // Draw a single pixel\r\n context.fillRect(0, 0, 1, 1);\r\n\r\n // Get the color values\r\n var s1 = context.getImageData(0, 0, 1, 1);\r\n\r\n if (s1 === null)\r\n {\r\n return false;\r\n }\r\n\r\n // Plot them to x2\r\n context.putImageData(s1, 1, 0);\r\n\r\n // Get those values\r\n var s2 = context.getImageData(1, 0, 1, 1);\r\n\r\n var result = (s2.data[0] === s1.data[0] && s2.data[1] === s1.data[1] && s2.data[2] === s1.data[2] && s2.data[3] === s1.data[3]);\r\n\r\n CanvasPool.remove(this);\r\n\r\n // Compare and return\r\n return result;\r\n}\r\n\r\nfunction init ()\r\n{\r\n if (typeof importScripts !== 'function' && document !== undefined)\r\n {\r\n CanvasFeatures.supportNewBlendModes = checkBlendMode();\r\n CanvasFeatures.supportInverseAlpha = checkInverseAlpha();\r\n }\r\n\r\n return CanvasFeatures;\r\n}\r\n\r\nmodule.exports = init();\r\n\n\n/***/ }),\n\n/***/ 89357:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar OS = __webpack_require__(25892);\r\nvar Browser = __webpack_require__(84148);\r\nvar CanvasPool = __webpack_require__(27919);\r\n\r\n/**\r\n * Determines the features of the browser running this Phaser Game instance.\r\n * These values are read-only and populated during the boot sequence of the game.\r\n * They are then referenced by internal game systems and are available for you to access\r\n * via `this.sys.game.device.features` from within any Scene.\r\n *\r\n * @typedef {object} Phaser.Device.Features\r\n * @since 3.0.0\r\n *\r\n * @property {boolean} canvas - Is canvas available?\r\n * @property {?boolean} canvasBitBltShift - True if canvas supports a 'copy' bitblt onto itself when the source and destination regions overlap.\r\n * @property {boolean} file - Is file available?\r\n * @property {boolean} fileSystem - Is fileSystem available?\r\n * @property {boolean} getUserMedia - Does the device support the getUserMedia API?\r\n * @property {boolean} littleEndian - Is the device big or little endian? (only detected if the browser supports TypedArrays)\r\n * @property {boolean} localStorage - Is localStorage available?\r\n * @property {boolean} pointerLock - Is Pointer Lock available?\r\n * @property {boolean} stableSort - Is Array.sort stable?\r\n * @property {boolean} support32bit - Does the device context support 32bit pixel manipulation using array buffer views?\r\n * @property {boolean} vibration - Does the device support the Vibration API?\r\n * @property {boolean} webGL - Is webGL available?\r\n * @property {boolean} worker - Is worker available?\r\n */\r\nvar Features = {\r\n\r\n canvas: false,\r\n canvasBitBltShift: null,\r\n file: false,\r\n fileSystem: false,\r\n getUserMedia: true,\r\n littleEndian: false,\r\n localStorage: false,\r\n pointerLock: false,\r\n stableSort: false,\r\n support32bit: false,\r\n vibration: false,\r\n webGL: false,\r\n worker: false\r\n\r\n};\r\n\r\n// Check Little or Big Endian system.\r\n// @author Matt DesLauriers (@mattdesl)\r\nfunction checkIsLittleEndian ()\r\n{\r\n var a = new ArrayBuffer(4);\r\n var b = new Uint8Array(a);\r\n var c = new Uint32Array(a);\r\n\r\n b[0] = 0xa1;\r\n b[1] = 0xb2;\r\n b[2] = 0xc3;\r\n b[3] = 0xd4;\r\n\r\n if (c[0] === 0xd4c3b2a1)\r\n {\r\n return true;\r\n }\r\n\r\n if (c[0] === 0xa1b2c3d4)\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n // Could not determine endianness\r\n return null;\r\n }\r\n}\r\n\r\nfunction init ()\r\n{\r\n if (typeof importScripts === 'function')\r\n {\r\n return Features;\r\n }\r\n\r\n Features.canvas = !!window['CanvasRenderingContext2D'];\r\n\r\n try\r\n {\r\n Features.localStorage = !!localStorage.getItem;\r\n }\r\n catch (error)\r\n {\r\n Features.localStorage = false;\r\n }\r\n\r\n Features.file = !!window['File'] && !!window['FileReader'] && !!window['FileList'] && !!window['Blob'];\r\n Features.fileSystem = !!window['requestFileSystem'];\r\n\r\n var isUint8 = false;\r\n\r\n var testWebGL = function ()\r\n {\r\n if (window['WebGLRenderingContext'])\r\n {\r\n try\r\n {\r\n var canvas = CanvasPool.createWebGL(this);\r\n\r\n var ctx = canvas.getContext('webgl') || canvas.getContext('experimental-webgl');\r\n\r\n var canvas2D = CanvasPool.create2D(this);\r\n\r\n var ctx2D = canvas2D.getContext('2d', { willReadFrequently: true });\r\n\r\n // Can't be done on a webgl context\r\n var image = ctx2D.createImageData(1, 1);\r\n\r\n // Test to see if ImageData uses CanvasPixelArray or Uint8ClampedArray.\r\n // @author Matt DesLauriers (@mattdesl)\r\n isUint8 = image.data instanceof Uint8ClampedArray;\r\n\r\n CanvasPool.remove(canvas);\r\n CanvasPool.remove(canvas2D);\r\n\r\n return !!ctx;\r\n }\r\n catch (e)\r\n {\r\n return false;\r\n }\r\n }\r\n\r\n return false;\r\n };\r\n\r\n Features.webGL = testWebGL();\r\n\r\n Features.worker = !!window['Worker'];\r\n\r\n Features.pointerLock = 'pointerLockElement' in document || 'mozPointerLockElement' in document || 'webkitPointerLockElement' in document;\r\n\r\n navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia || navigator.oGetUserMedia;\r\n\r\n window.URL = window.URL || window.webkitURL || window.mozURL || window.msURL;\r\n\r\n Features.getUserMedia = Features.getUserMedia && !!navigator.getUserMedia && !!window.URL;\r\n\r\n // Older versions of firefox (< 21) apparently claim support but user media does not actually work\r\n if (Browser.firefox && Browser.firefoxVersion < 21)\r\n {\r\n Features.getUserMedia = false;\r\n }\r\n\r\n // Excludes iOS versions as they generally wrap UIWebView (eg. Safari WebKit) and it\r\n // is safer to not try and use the fast copy-over method.\r\n if (!OS.iOS && (Browser.ie || Browser.firefox || Browser.chrome))\r\n {\r\n Features.canvasBitBltShift = true;\r\n }\r\n\r\n // Known not to work\r\n if (Browser.safari || Browser.mobileSafari)\r\n {\r\n Features.canvasBitBltShift = false;\r\n }\r\n\r\n navigator.vibrate = navigator.vibrate || navigator.webkitVibrate || navigator.mozVibrate || navigator.msVibrate;\r\n\r\n if (navigator.vibrate)\r\n {\r\n Features.vibration = true;\r\n }\r\n\r\n if (typeof ArrayBuffer !== 'undefined' && typeof Uint8Array !== 'undefined' && typeof Uint32Array !== 'undefined')\r\n {\r\n Features.littleEndian = checkIsLittleEndian();\r\n }\r\n\r\n Features.support32bit = (\r\n typeof ArrayBuffer !== 'undefined' &&\r\n typeof Uint8ClampedArray !== 'undefined' &&\r\n typeof Int32Array !== 'undefined' &&\r\n Features.littleEndian !== null &&\r\n isUint8\r\n );\r\n\r\n return Features;\r\n}\r\n\r\nmodule.exports = init();\r\n\n\n/***/ }),\n\n/***/ 91639:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Determines the full screen support of the browser running this Phaser Game instance.\r\n * These values are read-only and populated during the boot sequence of the game.\r\n * They are then referenced by internal game systems and are available for you to access\r\n * via `this.sys.game.device.fullscreen` from within any Scene.\r\n *\r\n * @typedef {object} Phaser.Device.Fullscreen\r\n * @since 3.0.0\r\n *\r\n * @property {boolean} available - Does the browser support the Full Screen API?\r\n * @property {boolean} keyboard - Does the browser support access to the Keyboard during Full Screen mode?\r\n * @property {string} cancel - If the browser supports the Full Screen API this holds the call you need to use to cancel it.\r\n * @property {string} request - If the browser supports the Full Screen API this holds the call you need to use to activate it.\r\n */\r\nvar Fullscreen = {\r\n\r\n available: false,\r\n cancel: '',\r\n keyboard: false,\r\n request: ''\r\n\r\n};\r\n\r\n/**\r\n* Checks for support of the Full Screen API.\r\n*\r\n* @ignore\r\n*/\r\nfunction init ()\r\n{\r\n if (typeof importScripts === 'function')\r\n {\r\n return Fullscreen;\r\n }\r\n\r\n var i;\r\n\r\n var suffix1 = 'Fullscreen';\r\n var suffix2 = 'FullScreen';\r\n\r\n var fs = [\r\n 'request' + suffix1,\r\n 'request' + suffix2,\r\n 'webkitRequest' + suffix1,\r\n 'webkitRequest' + suffix2,\r\n 'msRequest' + suffix1,\r\n 'msRequest' + suffix2,\r\n 'mozRequest' + suffix2,\r\n 'mozRequest' + suffix1\r\n ];\r\n\r\n for (i = 0; i < fs.length; i++)\r\n {\r\n if (document.documentElement[fs[i]])\r\n {\r\n Fullscreen.available = true;\r\n Fullscreen.request = fs[i];\r\n break;\r\n }\r\n }\r\n\r\n var cfs = [\r\n 'cancel' + suffix2,\r\n 'exit' + suffix1,\r\n 'webkitCancel' + suffix2,\r\n 'webkitExit' + suffix1,\r\n 'msCancel' + suffix2,\r\n 'msExit' + suffix1,\r\n 'mozCancel' + suffix2,\r\n 'mozExit' + suffix1\r\n ];\r\n\r\n if (Fullscreen.available)\r\n {\r\n for (i = 0; i < cfs.length; i++)\r\n {\r\n if (document[cfs[i]])\r\n {\r\n Fullscreen.cancel = cfs[i];\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // Keyboard Input?\r\n // Safari 5.1 says it supports fullscreen keyboard, but is lying.\r\n if (window['Element'] && Element['ALLOW_KEYBOARD_INPUT'] && !(/ Version\\/5\\.1(?:\\.\\d+)? Safari\\//).test(navigator.userAgent))\r\n {\r\n Fullscreen.keyboard = true;\r\n }\r\n\r\n Object.defineProperty(Fullscreen, 'active', { get: function () { return !!(document.fullscreenElement || document.webkitFullscreenElement || document.mozFullScreenElement || document.msFullscreenElement); } });\r\n\r\n return Fullscreen;\r\n}\r\n\r\nmodule.exports = init();\r\n\n\n/***/ }),\n\n/***/ 31784:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Browser = __webpack_require__(84148);\r\n\r\n/**\r\n * Determines the input support of the browser running this Phaser Game instance.\r\n * These values are read-only and populated during the boot sequence of the game.\r\n * They are then referenced by internal game systems and are available for you to access\r\n * via `this.sys.game.device.input` from within any Scene.\r\n *\r\n * @typedef {object} Phaser.Device.Input\r\n * @since 3.0.0\r\n *\r\n * @property {?string} wheelType - The newest type of Wheel/Scroll event supported: 'wheel', 'mousewheel', 'DOMMouseScroll'\r\n * @property {boolean} gamepads - Is navigator.getGamepads available?\r\n * @property {boolean} mspointer - Is mspointer available?\r\n * @property {boolean} touch - Is touch available?\r\n */\r\nvar Input = {\r\n\r\n gamepads: false,\r\n mspointer: false,\r\n touch: false,\r\n wheelEvent: null\r\n\r\n};\r\n\r\nfunction init ()\r\n{\r\n if (typeof importScripts === 'function')\r\n {\r\n return Input;\r\n }\r\n\r\n if ('ontouchstart' in document.documentElement || (navigator.maxTouchPoints && navigator.maxTouchPoints >= 1))\r\n {\r\n Input.touch = true;\r\n }\r\n\r\n if (navigator.msPointerEnabled || navigator.pointerEnabled)\r\n {\r\n Input.mspointer = true;\r\n }\r\n\r\n if (navigator.getGamepads)\r\n {\r\n Input.gamepads = true;\r\n }\r\n\r\n // See https://developer.mozilla.org/en-US/docs/Web/Events/wheel\r\n if ('onwheel' in window || (Browser.ie && 'WheelEvent' in window))\r\n {\r\n // DOM3 Wheel Event: FF 17+, IE 9+, Chrome 31+, Safari 7+\r\n Input.wheelEvent = 'wheel';\r\n }\r\n else if ('onmousewheel' in window)\r\n {\r\n // Non-FF legacy: IE 6-9, Chrome 1-31, Safari 5-7.\r\n Input.wheelEvent = 'mousewheel';\r\n }\r\n else if (Browser.firefox && 'MouseScrollEvent' in window)\r\n {\r\n // FF prior to 17. This should probably be scrubbed.\r\n Input.wheelEvent = 'DOMMouseScroll';\r\n }\r\n\r\n return Input;\r\n}\r\n\r\nmodule.exports = init();\r\n\n\n/***/ }),\n\n/***/ 25892:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Determines the operating system of the device running this Phaser Game instance.\r\n * These values are read-only and populated during the boot sequence of the game.\r\n * They are then referenced by internal game systems and are available for you to access\r\n * via `this.sys.game.device.os` from within any Scene.\r\n *\r\n * @typedef {object} Phaser.Device.OS\r\n * @since 3.0.0\r\n *\r\n * @property {boolean} android - Is running on android?\r\n * @property {boolean} chromeOS - Is running on chromeOS?\r\n * @property {boolean} cordova - Is the game running under Apache Cordova?\r\n * @property {boolean} crosswalk - Is the game running under the Intel Crosswalk XDK?\r\n * @property {boolean} desktop - Is running on a desktop?\r\n * @property {boolean} ejecta - Is the game running under Ejecta?\r\n * @property {boolean} electron - Is the game running under GitHub Electron?\r\n * @property {boolean} iOS - Is running on iOS?\r\n * @property {boolean} iPad - Is running on iPad?\r\n * @property {boolean} iPhone - Is running on iPhone?\r\n * @property {boolean} kindle - Is running on an Amazon Kindle?\r\n * @property {boolean} linux - Is running on linux?\r\n * @property {boolean} macOS - Is running on macOS?\r\n * @property {boolean} node - Is the game running under Node.js?\r\n * @property {boolean} nodeWebkit - Is the game running under Node-Webkit?\r\n * @property {boolean} webApp - Set to true if running as a WebApp, i.e. within a WebView\r\n * @property {boolean} windows - Is running on windows?\r\n * @property {boolean} windowsPhone - Is running on a Windows Phone?\r\n * @property {number} iOSVersion - If running in iOS this will contain the major version number.\r\n * @property {number} pixelRatio - PixelRatio of the host device?\r\n */\r\nvar OS = {\r\n\r\n android: false,\r\n chromeOS: false,\r\n cordova: false,\r\n crosswalk: false,\r\n desktop: false,\r\n ejecta: false,\r\n electron: false,\r\n iOS: false,\r\n iOSVersion: 0,\r\n iPad: false,\r\n iPhone: false,\r\n kindle: false,\r\n linux: false,\r\n macOS: false,\r\n node: false,\r\n nodeWebkit: false,\r\n pixelRatio: 1,\r\n webApp: false,\r\n windows: false,\r\n windowsPhone: false\r\n\r\n};\r\n\r\nfunction init ()\r\n{\r\n if (typeof importScripts === 'function')\r\n {\r\n return OS;\r\n }\r\n\r\n var ua = navigator.userAgent;\r\n\r\n if ((/Windows/).test(ua))\r\n {\r\n OS.windows = true;\r\n }\r\n else if ((/Mac OS/).test(ua) && !((/like Mac OS/).test(ua)))\r\n {\r\n // Because iOS 13 identifies as Mac OS:\r\n if (navigator.maxTouchPoints && navigator.maxTouchPoints > 2)\r\n {\r\n OS.iOS = true;\r\n OS.iPad = true;\r\n\r\n (navigator.appVersion).match(/Version\\/(\\d+)/);\r\n\r\n OS.iOSVersion = parseInt(RegExp.$1, 10);\r\n }\r\n else\r\n {\r\n OS.macOS = true;\r\n }\r\n }\r\n else if ((/Android/).test(ua))\r\n {\r\n OS.android = true;\r\n }\r\n else if ((/Linux/).test(ua))\r\n {\r\n OS.linux = true;\r\n }\r\n else if ((/iP[ao]d|iPhone/i).test(ua))\r\n {\r\n OS.iOS = true;\r\n\r\n (navigator.appVersion).match(/OS (\\d+)/);\r\n\r\n OS.iOSVersion = parseInt(RegExp.$1, 10);\r\n\r\n OS.iPhone = ua.toLowerCase().indexOf('iphone') !== -1;\r\n OS.iPad = ua.toLowerCase().indexOf('ipad') !== -1;\r\n }\r\n else if ((/Kindle/).test(ua) || (/\\bKF[A-Z][A-Z]+/).test(ua) || (/Silk.*Mobile Safari/).test(ua))\r\n {\r\n OS.kindle = true;\r\n\r\n // This will NOT detect early generations of Kindle Fire, I think there is no reliable way...\r\n // E.g. \"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us; Silk/1.1.0-80) AppleWebKit/533.16 (KHTML, like Gecko) Version/5.0 Safari/533.16 Silk-Accelerated=true\"\r\n }\r\n else if ((/CrOS/).test(ua))\r\n {\r\n OS.chromeOS = true;\r\n }\r\n\r\n if ((/Windows Phone/i).test(ua) || (/IEMobile/i).test(ua))\r\n {\r\n OS.android = false;\r\n OS.iOS = false;\r\n OS.macOS = false;\r\n OS.windows = true;\r\n OS.windowsPhone = true;\r\n }\r\n\r\n var silk = (/Silk/).test(ua);\r\n\r\n if (OS.windows || OS.macOS || (OS.linux && !silk) || OS.chromeOS)\r\n {\r\n OS.desktop = true;\r\n }\r\n\r\n // Windows Phone / Table reset\r\n if (OS.windowsPhone || (((/Windows NT/i).test(ua)) && ((/Touch/i).test(ua))))\r\n {\r\n OS.desktop = false;\r\n }\r\n\r\n // WebApp mode in iOS\r\n if (navigator.standalone)\r\n {\r\n OS.webApp = true;\r\n }\r\n\r\n if (typeof importScripts !== 'function')\r\n {\r\n if (window.cordova !== undefined)\r\n {\r\n OS.cordova = true;\r\n }\r\n\r\n if (window.ejecta !== undefined)\r\n {\r\n OS.ejecta = true;\r\n }\r\n }\r\n\r\n if (typeof process !== 'undefined' && process.versions && process.versions.node)\r\n {\r\n OS.node = true;\r\n }\r\n\r\n if (OS.node && typeof process.versions === 'object')\r\n {\r\n OS.nodeWebkit = !!process.versions['node-webkit'];\r\n\r\n OS.electron = !!process.versions.electron;\r\n }\r\n\r\n if ((/Crosswalk/).test(ua))\r\n {\r\n OS.crosswalk = true;\r\n }\r\n\r\n OS.pixelRatio = window['devicePixelRatio'] || 1;\r\n\r\n return OS;\r\n}\r\n\r\nmodule.exports = init();\r\n\n\n/***/ }),\n\n/***/ 43267:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetFastValue = __webpack_require__(95540);\r\n\r\n/**\r\n * Determines the video support of the browser running this Phaser Game instance.\r\n *\r\n * These values are read-only and populated during the boot sequence of the game.\r\n *\r\n * They are then referenced by internal game systems and are available for you to access\r\n * via `this.sys.game.device.video` from within any Scene.\r\n *\r\n * In Phaser 3.20 the properties were renamed to drop the 'Video' suffix.\r\n *\r\n * @typedef {object} Phaser.Device.Video\r\n * @since 3.0.0\r\n *\r\n * @property {boolean} h264 - Can this device play h264 mp4 video files?\r\n * @property {boolean} hls - Can this device play hls video files?\r\n * @property {boolean} mp4 - Can this device play h264 mp4 video files?\r\n * @property {boolean} m4v - Can this device play m4v (typically mp4) video files?\r\n * @property {boolean} ogg - Can this device play ogg video files?\r\n * @property {boolean} vp9 - Can this device play vp9 video files?\r\n * @property {boolean} webm - Can this device play webm video files?\r\n * @property {function} getVideoURL - Returns the first video URL that can be played by this browser.\r\n */\r\nvar Video = {\r\n\r\n h264: false,\r\n hls: false,\r\n mp4: false,\r\n m4v: false,\r\n ogg: false,\r\n vp9: false,\r\n webm: false,\r\n hasRequestVideoFrame: false\r\n\r\n};\r\n\r\nfunction init ()\r\n{\r\n if (typeof importScripts === 'function')\r\n {\r\n return Video;\r\n }\r\n\r\n var videoElement = document.createElement('video');\r\n var result = !!videoElement.canPlayType;\r\n var no = /^no$/;\r\n\r\n try\r\n {\r\n if (result)\r\n {\r\n if (videoElement.canPlayType('video/ogg; codecs=\"theora\"').replace(no, ''))\r\n {\r\n Video.ogg = true;\r\n }\r\n\r\n if (videoElement.canPlayType('video/mp4; codecs=\"avc1.42E01E\"').replace(no, ''))\r\n {\r\n // Without QuickTime, this value will be `undefined`. github.com/Modernizr/Modernizr/issues/546\r\n Video.h264 = true;\r\n Video.mp4 = true;\r\n }\r\n\r\n if (videoElement.canPlayType('video/x-m4v').replace(no, ''))\r\n {\r\n Video.m4v = true;\r\n }\r\n\r\n if (videoElement.canPlayType('video/webm; codecs=\"vp8, vorbis\"').replace(no, ''))\r\n {\r\n Video.webm = true;\r\n }\r\n\r\n if (videoElement.canPlayType('video/webm; codecs=\"vp9\"').replace(no, ''))\r\n {\r\n Video.vp9 = true;\r\n }\r\n\r\n if (videoElement.canPlayType('application/x-mpegURL; codecs=\"avc1.42E01E\"').replace(no, ''))\r\n {\r\n Video.hls = true;\r\n }\r\n }\r\n }\r\n catch (e)\r\n {\r\n // Nothing to do\r\n }\r\n\r\n if (videoElement.parentNode)\r\n {\r\n videoElement.parentNode.removeChild(videoElement);\r\n }\r\n\r\n Video.getVideoURL = function (urls)\r\n {\r\n if (!Array.isArray(urls))\r\n {\r\n urls = [ urls ];\r\n }\r\n\r\n for (var i = 0; i < urls.length; i++)\r\n {\r\n var url = GetFastValue(urls[i], 'url', urls[i]);\r\n\r\n if (url.indexOf('blob:') === 0)\r\n {\r\n return {\r\n url: url,\r\n type: ''\r\n };\r\n }\r\n\r\n var videoType;\r\n\r\n if (url.indexOf('data:') === 0)\r\n {\r\n videoType = url.split(',')[0].match(/\\/(.*?);/);\r\n }\r\n else\r\n {\r\n videoType = url.match(/\\.([a-zA-Z0-9]+)($|\\?)/);\r\n }\r\n\r\n videoType = GetFastValue(urls[i], 'type', (videoType) ? videoType[1] : '').toLowerCase();\r\n\r\n if (Video[videoType])\r\n {\r\n return {\r\n url: url,\r\n type: videoType\r\n };\r\n }\r\n }\r\n\r\n return null;\r\n };\r\n\r\n return Video;\r\n}\r\n\r\nmodule.exports = init();\r\n\n\n/***/ }),\n\n/***/ 82264:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// This singleton is instantiated as soon as Phaser loads,\r\n// before a Phaser.Game instance has even been created.\r\n// Which means all instances of Phaser Games can share it,\r\n// without having to re-poll the device all over again\r\n\r\n/**\r\n * @namespace Phaser.Device\r\n * @since 3.0.0\r\n */\r\n\r\n/**\r\n * @typedef {object} Phaser.DeviceConf\r\n *\r\n * @property {Phaser.Device.OS} os - The OS Device functions.\r\n * @property {Phaser.Device.Browser} browser - The Browser Device functions.\r\n * @property {Phaser.Device.Features} features - The Features Device functions.\r\n * @property {Phaser.Device.Input} input - The Input Device functions.\r\n * @property {Phaser.Device.Audio} audio - The Audio Device functions.\r\n * @property {Phaser.Device.Video} video - The Video Device functions.\r\n * @property {Phaser.Device.Fullscreen} fullscreen - The Fullscreen Device functions.\r\n * @property {Phaser.Device.CanvasFeatures} canvasFeatures - The Canvas Device functions.\r\n */\r\n\r\nmodule.exports = {\r\n\r\n os: __webpack_require__(25892),\r\n browser: __webpack_require__(84148),\r\n features: __webpack_require__(89357),\r\n input: __webpack_require__(31784),\r\n audio: __webpack_require__(7098),\r\n video: __webpack_require__(43267),\r\n fullscreen: __webpack_require__(91639),\r\n canvasFeatures: __webpack_require__(89289)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 89422:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\nvar tempMatrix = new Float32Array(20);\r\n\r\n/**\r\n * @classdesc\r\n * The ColorMatrix class creates a 5x4 matrix that can be used in shaders and graphics\r\n * operations. It provides methods required to modify the color values, such as adjusting\r\n * the brightness, setting a sepia tone, hue rotation and more.\r\n *\r\n * Use the method `getData` to return a Float32Array containing the current color values.\r\n *\r\n * @class ColorMatrix\r\n * @memberof Phaser.Display\r\n * @constructor\r\n * @since 3.50.0\r\n */\r\nvar ColorMatrix = new Class({\r\n\r\n initialize:\r\n\r\n function ColorMatrix ()\r\n {\r\n /**\r\n * Internal ColorMatrix array.\r\n *\r\n * @name Phaser.Display.ColorMatrix#_matrix\r\n * @type {Float32Array}\r\n * @private\r\n * @since 3.50.0\r\n */\r\n this._matrix = new Float32Array(20);\r\n\r\n /**\r\n * The value that determines how much of the original color is used\r\n * when mixing the colors. A value between 0 (all original) and 1 (all final)\r\n *\r\n * @name Phaser.Display.ColorMatrix#alpha\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.alpha = 1;\r\n\r\n /**\r\n * Is the ColorMatrix array dirty?\r\n *\r\n * @name Phaser.Display.ColorMatrix#_dirty\r\n * @type {boolean}\r\n * @private\r\n * @since 3.50.0\r\n */\r\n this._dirty = true;\r\n\r\n /**\r\n * The matrix data as a Float32Array.\r\n *\r\n * Returned by the `getData` method.\r\n *\r\n * @name Phaser.Display.ColorMatrix#data\r\n * @type {Float32Array}\r\n * @private\r\n * @since 3.50.0\r\n */\r\n this._data = new Float32Array(20);\r\n\r\n this.reset();\r\n },\r\n\r\n /**\r\n * Sets this ColorMatrix from the given array of color values.\r\n *\r\n * @method Phaser.Display.ColorMatrix#set\r\n * @since 3.50.0\r\n *\r\n * @param {(number[]|Float32Array)} value - The ColorMatrix values to set. Must have 20 elements.\r\n *\r\n * @return {this} This ColorMatrix instance.\r\n */\r\n set: function (value)\r\n {\r\n this._matrix.set(value);\r\n\r\n this._dirty = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resets the ColorMatrix to default values and also resets\r\n * the `alpha` property back to 1.\r\n *\r\n * @method Phaser.Display.ColorMatrix#reset\r\n * @since 3.50.0\r\n *\r\n * @return {this} This ColorMatrix instance.\r\n */\r\n reset: function ()\r\n {\r\n var m = this._matrix;\r\n\r\n m.fill(0);\r\n\r\n m[0] = 1;\r\n m[6] = 1;\r\n m[12] = 1;\r\n m[18] = 1;\r\n\r\n this.alpha = 1;\r\n\r\n this._dirty = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Gets the ColorMatrix as a Float32Array.\r\n *\r\n * Can be used directly as a 1fv shader uniform value.\r\n *\r\n * @method Phaser.Display.ColorMatrix#getData\r\n * @since 3.50.0\r\n *\r\n * @return {Float32Array} The ColorMatrix as a Float32Array.\r\n */\r\n getData: function ()\r\n {\r\n var data = this._data;\r\n\r\n if (this._dirty)\r\n {\r\n data.set(this._matrix);\r\n\r\n data[4] /= 255;\r\n data[9] /= 255;\r\n data[14] /= 255;\r\n data[19] /= 255;\r\n\r\n this._dirty = false;\r\n }\r\n\r\n return data;\r\n },\r\n\r\n /**\r\n * Changes the brightness of this ColorMatrix by the given amount.\r\n *\r\n * @method Phaser.Display.ColorMatrix#brightness\r\n * @since 3.50.0\r\n *\r\n * @param {number} [value=0] - The amount of brightness to apply to this ColorMatrix. Between 0 (black) and 1.\r\n * @param {boolean} [multiply=false] - Multiply the resulting ColorMatrix (`true`), or set it (`false`) ?\r\n *\r\n * @return {this} This ColorMatrix instance.\r\n */\r\n brightness: function (value, multiply)\r\n {\r\n if (value === undefined) { value = 0; }\r\n if (multiply === undefined) { multiply = false; }\r\n\r\n var b = value;\r\n\r\n return this.multiply([\r\n b, 0, 0, 0, 0,\r\n 0, b, 0, 0, 0,\r\n 0, 0, b, 0, 0,\r\n 0, 0, 0, 1, 0\r\n ], multiply);\r\n },\r\n\r\n /**\r\n * Changes the saturation of this ColorMatrix by the given amount.\r\n *\r\n * @method Phaser.Display.ColorMatrix#saturate\r\n * @since 3.50.0\r\n *\r\n * @param {number} [value=0] - The amount of saturation to apply to this ColorMatrix.\r\n * @param {boolean} [multiply=false] - Multiply the resulting ColorMatrix (`true`), or set it (`false`) ?\r\n *\r\n * @return {this} This ColorMatrix instance.\r\n */\r\n saturate: function (value, multiply)\r\n {\r\n if (value === undefined) { value = 0; }\r\n if (multiply === undefined) { multiply = false; }\r\n\r\n var x = (value * 2 / 3) + 1;\r\n var y = ((x - 1) * -0.5);\r\n\r\n return this.multiply([\r\n x, y, y, 0, 0,\r\n y, x, y, 0, 0,\r\n y, y, x, 0, 0,\r\n 0, 0, 0, 1, 0\r\n ], multiply);\r\n },\r\n\r\n /**\r\n * Desaturates this ColorMatrix (removes color from it).\r\n *\r\n * @method Phaser.Display.ColorMatrix#saturation\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [multiply=false] - Multiply the resulting ColorMatrix (`true`), or set it (`false`) ?\r\n *\r\n * @return {this} This ColorMatrix instance.\r\n */\r\n desaturate: function (multiply)\r\n {\r\n if (multiply === undefined) { multiply = false; }\r\n\r\n return this.saturate(-1, multiply);\r\n },\r\n\r\n /**\r\n * Rotates the hues of this ColorMatrix by the value given.\r\n *\r\n * @method Phaser.Display.ColorMatrix#hue\r\n * @since 3.50.0\r\n *\r\n * @param {number} [rotation=0] - The amount of hue rotation to apply to this ColorMatrix, in degrees.\r\n * @param {boolean} [multiply=false] - Multiply the resulting ColorMatrix (`true`), or set it (`false`) ?\r\n *\r\n * @return {this} This ColorMatrix instance.\r\n */\r\n hue: function (rotation, multiply)\r\n {\r\n if (rotation === undefined) { rotation = 0; }\r\n if (multiply === undefined) { multiply = false; }\r\n\r\n rotation = rotation / 180 * Math.PI;\r\n\r\n var cos = Math.cos(rotation);\r\n var sin = Math.sin(rotation);\r\n var lumR = 0.213;\r\n var lumG = 0.715;\r\n var lumB = 0.072;\r\n\r\n return this.multiply([\r\n lumR + cos * (1 - lumR) + sin * (-lumR),lumG + cos * (-lumG) + sin * (-lumG),lumB + cos * (-lumB) + sin * (1 - lumB), 0, 0,\r\n lumR + cos * (-lumR) + sin * (0.143),lumG + cos * (1 - lumG) + sin * (0.140),lumB + cos * (-lumB) + sin * (-0.283), 0, 0,\r\n lumR + cos * (-lumR) + sin * (-(1 - lumR)),lumG + cos * (-lumG) + sin * (lumG),lumB + cos * (1 - lumB) + sin * (lumB), 0, 0,\r\n 0, 0, 0, 1, 0\r\n ], multiply);\r\n },\r\n\r\n /**\r\n * Sets this ColorMatrix to be grayscale.\r\n *\r\n * @method Phaser.Display.ColorMatrix#grayscale\r\n * @since 3.50.0\r\n *\r\n * @param {number} [value=1] - The grayscale scale (0 is black).\r\n * @param {boolean} [multiply=false] - Multiply the resulting ColorMatrix (`true`), or set it (`false`) ?\r\n *\r\n * @return {this} This ColorMatrix instance.\r\n */\r\n grayscale: function (value, multiply)\r\n {\r\n if (value === undefined) { value = 1; }\r\n if (multiply === undefined) { multiply = false; }\r\n\r\n return this.saturate(-value, multiply);\r\n },\r\n\r\n /**\r\n * Sets this ColorMatrix to be black and white.\r\n *\r\n * @method Phaser.Display.ColorMatrix#blackWhite\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [multiply=false] - Multiply the resulting ColorMatrix (`true`), or set it (`false`) ?\r\n *\r\n * @return {this} This ColorMatrix instance.\r\n */\r\n blackWhite: function (multiply)\r\n {\r\n if (multiply === undefined) { multiply = false; }\r\n\r\n return this.multiply(ColorMatrix.BLACK_WHITE, multiply);\r\n },\r\n\r\n /**\r\n * Change the contrast of this ColorMatrix by the amount given.\r\n *\r\n * @method Phaser.Display.ColorMatrix#contrast\r\n * @since 3.50.0\r\n *\r\n * @param {number} [value=0] - The amount of contrast to apply to this ColorMatrix.\r\n * @param {boolean} [multiply=false] - Multiply the resulting ColorMatrix (`true`), or set it (`false`) ?\r\n *\r\n * @return {this} This ColorMatrix instance.\r\n */\r\n contrast: function (value, multiply)\r\n {\r\n if (value === undefined) { value = 0; }\r\n if (multiply === undefined) { multiply = false; }\r\n\r\n var v = value + 1;\r\n var o = -0.5 * (v - 1);\r\n\r\n return this.multiply([\r\n v, 0, 0, 0, o,\r\n 0, v, 0, 0, o,\r\n 0, 0, v, 0, o,\r\n 0, 0, 0, 1, 0\r\n ], multiply);\r\n },\r\n\r\n /**\r\n * Converts this ColorMatrix to have negative values.\r\n *\r\n * @method Phaser.Display.ColorMatrix#negative\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [multiply=false] - Multiply the resulting ColorMatrix (`true`), or set it (`false`) ?\r\n *\r\n * @return {this} This ColorMatrix instance.\r\n */\r\n negative: function (multiply)\r\n {\r\n if (multiply === undefined) { multiply = false; }\r\n\r\n return this.multiply(ColorMatrix.NEGATIVE, multiply);\r\n },\r\n\r\n /**\r\n * Apply a desaturated luminance to this ColorMatrix.\r\n *\r\n * @method Phaser.Display.ColorMatrix#desaturateLuminance\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [multiply=false] - Multiply the resulting ColorMatrix (`true`), or set it (`false`) ?\r\n *\r\n * @return {this} This ColorMatrix instance.\r\n */\r\n desaturateLuminance: function (multiply)\r\n {\r\n if (multiply === undefined) { multiply = false; }\r\n\r\n return this.multiply(ColorMatrix.DESATURATE_LUMINANCE, multiply);\r\n },\r\n\r\n /**\r\n * Applies a sepia tone to this ColorMatrix.\r\n *\r\n * @method Phaser.Display.ColorMatrix#sepia\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [multiply=false] - Multiply the resulting ColorMatrix (`true`), or set it (`false`) ?\r\n *\r\n * @return {this} This ColorMatrix instance.\r\n */\r\n sepia: function (multiply)\r\n {\r\n if (multiply === undefined) { multiply = false; }\r\n\r\n return this.multiply(ColorMatrix.SEPIA, multiply);\r\n },\r\n\r\n /**\r\n * Applies a night vision tone to this ColorMatrix.\r\n *\r\n * @method Phaser.Display.ColorMatrix#night\r\n * @since 3.50.0\r\n *\r\n * @param {number} [intensity=0.1] - The intensity of this effect.\r\n * @param {boolean} [multiply=false] - Multiply the resulting ColorMatrix (`true`), or set it (`false`) ?\r\n *\r\n * @return {this} This ColorMatrix instance.\r\n */\r\n night: function (intensity, multiply)\r\n {\r\n if (intensity === undefined) { intensity = 0.1; }\r\n if (multiply === undefined) { multiply = false; }\r\n\r\n return this.multiply([\r\n intensity * (-2.0), -intensity, 0, 0, 0,\r\n -intensity, 0, intensity, 0, 0,\r\n 0, intensity, intensity * 2.0, 0, 0,\r\n 0, 0, 0, 1, 0\r\n ], multiply);\r\n },\r\n\r\n /**\r\n * Applies a trippy color tone to this ColorMatrix.\r\n *\r\n * @method Phaser.Display.ColorMatrix#lsd\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [multiply=false] - Multiply the resulting ColorMatrix (`true`), or set it (`false`) ?\r\n *\r\n * @return {this} This ColorMatrix instance.\r\n */\r\n lsd: function (multiply)\r\n {\r\n if (multiply === undefined) { multiply = false; }\r\n\r\n return this.multiply(ColorMatrix.LSD, multiply);\r\n },\r\n\r\n /**\r\n * Applies a brown tone to this ColorMatrix.\r\n *\r\n * @method Phaser.Display.ColorMatrix#brown\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [multiply=false] - Multiply the resulting ColorMatrix (`true`), or set it (`false`) ?\r\n *\r\n * @return {this} This ColorMatrix instance.\r\n */\r\n brown: function (multiply)\r\n {\r\n if (multiply === undefined) { multiply = false; }\r\n\r\n return this.multiply(ColorMatrix.BROWN, multiply);\r\n },\r\n\r\n /**\r\n * Applies a vintage pinhole color effect to this ColorMatrix.\r\n *\r\n * @method Phaser.Display.ColorMatrix#vintagePinhole\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [multiply=false] - Multiply the resulting ColorMatrix (`true`), or set it (`false`) ?\r\n *\r\n * @return {this} This ColorMatrix instance.\r\n */\r\n vintagePinhole: function (multiply)\r\n {\r\n if (multiply === undefined) { multiply = false; }\r\n\r\n return this.multiply(ColorMatrix.VINTAGE, multiply);\r\n },\r\n\r\n /**\r\n * Applies a kodachrome color effect to this ColorMatrix.\r\n *\r\n * @method Phaser.Display.ColorMatrix#kodachrome\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [multiply=false] - Multiply the resulting ColorMatrix (`true`), or set it (`false`) ?\r\n *\r\n * @return {this} This ColorMatrix instance.\r\n */\r\n kodachrome: function (multiply)\r\n {\r\n if (multiply === undefined) { multiply = false; }\r\n\r\n return this.multiply(ColorMatrix.KODACHROME, multiply);\r\n },\r\n\r\n /**\r\n * Applies a technicolor color effect to this ColorMatrix.\r\n *\r\n * @method Phaser.Display.ColorMatrix#technicolor\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [multiply=false] - Multiply the resulting ColorMatrix (`true`), or set it (`false`) ?\r\n *\r\n * @return {this} This ColorMatrix instance.\r\n */\r\n technicolor: function (multiply)\r\n {\r\n if (multiply === undefined) { multiply = false; }\r\n\r\n return this.multiply(ColorMatrix.TECHNICOLOR, multiply);\r\n },\r\n\r\n /**\r\n * Applies a polaroid color effect to this ColorMatrix.\r\n *\r\n * @method Phaser.Display.ColorMatrix#polaroid\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [multiply=false] - Multiply the resulting ColorMatrix (`true`), or set it (`false`) ?\r\n *\r\n * @return {this} This ColorMatrix instance.\r\n */\r\n polaroid: function (multiply)\r\n {\r\n if (multiply === undefined) { multiply = false; }\r\n\r\n return this.multiply(ColorMatrix.POLAROID, multiply);\r\n },\r\n\r\n /**\r\n * Shifts the values of this ColorMatrix into BGR order.\r\n *\r\n * @method Phaser.Display.ColorMatrix#shiftToBGR\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [multiply=false] - Multiply the resulting ColorMatrix (`true`), or set it (`false`) ?\r\n *\r\n * @return {this} This ColorMatrix instance.\r\n */\r\n shiftToBGR: function (multiply)\r\n {\r\n if (multiply === undefined) { multiply = false; }\r\n\r\n return this.multiply(ColorMatrix.SHIFT_BGR, multiply);\r\n },\r\n\r\n /**\r\n * Multiplies the two given matrices.\r\n *\r\n * @method Phaser.Display.ColorMatrix#multiply\r\n * @since 3.50.0\r\n *\r\n * @param {number[]} a - The 5x4 array to multiply with ColorMatrix._matrix.\r\n * @param {boolean} [multiply=false] - Multiply the resulting ColorMatrix (`true`), or set it (`false`) ?\r\n *\r\n * @return {this} This ColorMatrix instance.\r\n */\r\n multiply: function (a, multiply)\r\n {\r\n if (multiply === undefined) { multiply = false; }\r\n\r\n // Duplicate _matrix into c\r\n\r\n if (!multiply)\r\n {\r\n this.reset();\r\n }\r\n\r\n var m = this._matrix;\r\n var c = tempMatrix;\r\n\r\n // copy _matrix to tempMatrox\r\n c.set(m);\r\n\r\n m.set([\r\n // R\r\n (c[0] * a[0]) + (c[1] * a[5]) + (c[2] * a[10]) + (c[3] * a[15]),\r\n (c[0] * a[1]) + (c[1] * a[6]) + (c[2] * a[11]) + (c[3] * a[16]),\r\n (c[0] * a[2]) + (c[1] * a[7]) + (c[2] * a[12]) + (c[3] * a[17]),\r\n (c[0] * a[3]) + (c[1] * a[8]) + (c[2] * a[13]) + (c[3] * a[18]),\r\n (c[0] * a[4]) + (c[1] * a[9]) + (c[2] * a[14]) + (c[3] * a[19]) + c[4],\r\n\r\n // G\r\n (c[5] * a[0]) + (c[6] * a[5]) + (c[7] * a[10]) + (c[8] * a[15]),\r\n (c[5] * a[1]) + (c[6] * a[6]) + (c[7] * a[11]) + (c[8] * a[16]),\r\n (c[5] * a[2]) + (c[6] * a[7]) + (c[7] * a[12]) + (c[8] * a[17]),\r\n (c[5] * a[3]) + (c[6] * a[8]) + (c[7] * a[13]) + (c[8] * a[18]),\r\n (c[5] * a[4]) + (c[6] * a[9]) + (c[7] * a[14]) + (c[8] * a[19]) + c[9],\r\n\r\n // B\r\n (c[10] * a[0]) + (c[11] * a[5]) + (c[12] * a[10]) + (c[13] * a[15]),\r\n (c[10] * a[1]) + (c[11] * a[6]) + (c[12] * a[11]) + (c[13] * a[16]),\r\n (c[10] * a[2]) + (c[11] * a[7]) + (c[12] * a[12]) + (c[13] * a[17]),\r\n (c[10] * a[3]) + (c[11] * a[8]) + (c[12] * a[13]) + (c[13] * a[18]),\r\n (c[10] * a[4]) + (c[11] * a[9]) + (c[12] * a[14]) + (c[13] * a[19]) + c[14],\r\n\r\n // A\r\n (c[15] * a[0]) + (c[16] * a[5]) + (c[17] * a[10]) + (c[18] * a[15]),\r\n (c[15] * a[1]) + (c[16] * a[6]) + (c[17] * a[11]) + (c[18] * a[16]),\r\n (c[15] * a[2]) + (c[16] * a[7]) + (c[17] * a[12]) + (c[18] * a[17]),\r\n (c[15] * a[3]) + (c[16] * a[8]) + (c[17] * a[13]) + (c[18] * a[18]),\r\n (c[15] * a[4]) + (c[16] * a[9]) + (c[17] * a[14]) + (c[18] * a[19]) + c[19]\r\n\r\n ]);\r\n\r\n this._dirty = true;\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\n/**\r\n * A constant array used by the ColorMatrix class for black_white operations.\r\n *\r\n * @name Phaser.Display.ColorMatrix.BLACK_WHITE\r\n * @const\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\nColorMatrix.BLACK_WHITE = [ 0.3, 0.6, 0.1, 0, 0, 0.3, 0.6, 0.1, 0, 0, 0.3, 0.6, 0.1, 0, 0, 0, 0, 0, 1, 0 ];\r\n\r\n/**\r\n * A constant array used by the ColorMatrix class for negative operations.\r\n *\r\n * @name Phaser.Display.ColorMatrix.NEGATIVE\r\n * @const\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\nColorMatrix.NEGATIVE = [ -1, 0, 0, 1, 0, 0, -1, 0, 1, 0, 0, 0, -1, 1, 0, 0, 0, 0, 1, 0 ];\r\n\r\n/**\r\n * A constant array used by the ColorMatrix class for desatured luminance operations.\r\n *\r\n * @name Phaser.Display.ColorMatrix.DESATURATE_LUMINANCE\r\n * @const\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\nColorMatrix.DESATURATE_LUMINANCE = [ 0.2764723, 0.9297080, 0.0938197, 0, -37.1, 0.2764723, 0.9297080, 0.0938197, 0, -37.1, 0.2764723, 0.9297080, 0.0938197, 0, -37.1, 0, 0, 0, 1, 0 ];\r\n\r\n/**\r\n * A constant array used by the ColorMatrix class for sepia operations.\r\n *\r\n * @name Phaser.Display.ColorMatrix.SEPIA\r\n * @const\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\nColorMatrix.SEPIA = [ 0.393, 0.7689999, 0.18899999, 0, 0, 0.349, 0.6859999, 0.16799999, 0, 0, 0.272, 0.5339999, 0.13099999, 0, 0, 0, 0, 0, 1, 0 ];\r\n\r\n/**\r\n * A constant array used by the ColorMatrix class for lsd operations.\r\n *\r\n * @name Phaser.Display.ColorMatrix.LSD\r\n * @const\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\nColorMatrix.LSD = [ 2, -0.4, 0.5, 0, 0, -0.5, 2, -0.4, 0, 0, -0.4, -0.5, 3, 0, 0, 0, 0, 0, 1, 0 ];\r\n\r\n/**\r\n * A constant array used by the ColorMatrix class for brown operations.\r\n *\r\n * @name Phaser.Display.ColorMatrix.BROWN\r\n * @const\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\nColorMatrix.BROWN = [ 0.5997023498159715, 0.34553243048391263, -0.2708298674538042, 0, 47.43192855600873, -0.037703249837783157, 0.8609577587992641, 0.15059552388459913, 0, -36.96841498319127, 0.24113635128153335, -0.07441037908422492, 0.44972182064877153, 0, -7.562075277591283, 0, 0, 0, 1, 0 ];\r\n\r\n/**\r\n * A constant array used by the ColorMatrix class for vintage pinhole operations.\r\n *\r\n * @name Phaser.Display.ColorMatrix.VINTAGE\r\n * @const\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\nColorMatrix.VINTAGE = [ 0.6279345635605994, 0.3202183420819367, -0.03965408211312453, 0, 9.651285835294123, 0.02578397704808868, 0.6441188644374771, 0.03259127616149294, 0, 7.462829176470591, 0.0466055556782719, -0.0851232987247891, 0.5241648018700465, 0, 5.159190588235296, 0, 0, 0, 1, 0 ];\r\n\r\n/**\r\n * A constant array used by the ColorMatrix class for kodachrome operations.\r\n *\r\n * @name Phaser.Display.ColorMatrix.KODACHROME\r\n * @const\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\nColorMatrix.KODACHROME = [ 1.1285582396593525, -0.3967382283601348, -0.03992559172921793, 0, 63.72958762196502, -0.16404339962244616, 1.0835251566291304, -0.05498805115633132, 0, 24.732407896706203, -0.16786010706155763, -0.5603416277695248, 1.6014850761964943, 0, 35.62982807460946, 0, 0, 0, 1, 0 ];\r\n\r\n/**\r\n * A constant array used by the ColorMatrix class for technicolor operations.\r\n *\r\n * @name Phaser.Display.ColorMatrix.TECHNICOLOR\r\n * @const\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\nColorMatrix.TECHNICOLOR = [ 1.9125277891456083, -0.8545344976951645, -0.09155508482755585, 0, 11.793603434377337, -0.3087833385928097, 1.7658908555458428, -0.10601743074722245, 0, -70.35205161461398, -0.231103377548616, -0.7501899197440212, 1.847597816108189, 0, 30.950940869491138, 0, 0, 0, 1, 0 ];\r\n\r\n/**\r\n * A constant array used by the ColorMatrix class for polaroid shift operations.\r\n *\r\n * @name Phaser.Display.ColorMatrix.POLAROID\r\n * @const\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\nColorMatrix.POLAROID = [ 1.438, -0.062, -0.062, 0, 0, -0.122, 1.378, -0.122, 0, 0, -0.016, -0.016, 1.483, 0, 0, 0, 0, 0, 1, 0 ];\r\n\r\n/**\r\n * A constant array used by the ColorMatrix class for shift BGR operations.\r\n *\r\n * @name Phaser.Display.ColorMatrix.SHIFT_BGR\r\n * @const\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\nColorMatrix.SHIFT_BGR = [ 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0 ];\r\n\r\nmodule.exports = ColorMatrix;\r\n\n\n/***/ }),\n\n/***/ 51767:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar NOOP = __webpack_require__(29747);\r\n\r\n/**\r\n * @classdesc\r\n * The RGB class holds a single color value and allows for easy modification and reading of it,\r\n * with optional on-change callback notification and a dirty flag.\r\n *\r\n * @class RGB\r\n * @memberof Phaser.Display\r\n * @constructor\r\n * @since 3.50.0\r\n *\r\n * @param {number} [red=0] - The red color value. A number between 0 and 1.\r\n * @param {number} [green=0] - The green color value. A number between 0 and 1.\r\n * @param {number} [blue=0] - The blue color value. A number between 0 and 1.\r\n */\r\nvar RGB = new Class({\r\n\r\n initialize:\r\n\r\n function RGB (red, green, blue)\r\n {\r\n /**\r\n * Cached RGB values.\r\n *\r\n * @name Phaser.Display.RGB#_rgb\r\n * @type {number[]}\r\n * @private\r\n * @since 3.50.0\r\n */\r\n this._rgb = [ 0, 0, 0 ];\r\n\r\n /**\r\n * This callback will be invoked each time one of the RGB color values change.\r\n *\r\n * The callback is sent the new color values as the parameters.\r\n *\r\n * @name Phaser.Display.RGB#onChangeCallback\r\n * @type {function}\r\n * @since 3.50.0\r\n */\r\n this.onChangeCallback = NOOP;\r\n\r\n /**\r\n * Is this color dirty?\r\n *\r\n * @name Phaser.Display.RGB#dirty\r\n * @type {boolean}\r\n * @since 3.50.0\r\n */\r\n this.dirty = false;\r\n\r\n this.set(red, green, blue);\r\n },\r\n\r\n /**\r\n * Sets the red, green and blue values of this RGB object, flags it as being\r\n * dirty and then invokes the `onChangeCallback`, if set.\r\n *\r\n * @method Phaser.Display.RGB#set\r\n * @since 3.50.0\r\n *\r\n * @param {number} [red=0] - The red color value. A number between 0 and 1.\r\n * @param {number} [green=0] - The green color value. A number between 0 and 1.\r\n * @param {number} [blue=0] - The blue color value. A number between 0 and 1.\r\n *\r\n * @return {this} This RGB instance.\r\n */\r\n set: function (red, green, blue)\r\n {\r\n if (red === undefined) { red = 0; }\r\n if (green === undefined) { green = 0; }\r\n if (blue === undefined) { blue = 0; }\r\n\r\n this._rgb = [ red, green, blue ];\r\n\r\n this.onChange();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Compares the given rgb parameters with those in this object and returns\r\n * a boolean `true` value if they are equal, otherwise it returns `false`.\r\n *\r\n * @method Phaser.Display.RGB#equals\r\n * @since 3.50.0\r\n *\r\n * @param {number} red - The red value to compare with this object.\r\n * @param {number} green - The green value to compare with this object.\r\n * @param {number} blue - The blue value to compare with this object.\r\n *\r\n * @return {boolean} `true` if the given values match those in this object, otherwise `false`.\r\n */\r\n equals: function (red, green, blue)\r\n {\r\n var rgb = this._rgb;\r\n\r\n return (rgb[0] === red && rgb[1] === green && rgb[2] === blue);\r\n },\r\n\r\n /**\r\n * Internal on change handler. Sets this object as being dirty and\r\n * then invokes the `onChangeCallback`, if set, passing in the\r\n * new RGB values.\r\n *\r\n * @method Phaser.Display.RGB#onChange\r\n * @since 3.50.0\r\n */\r\n onChange: function ()\r\n {\r\n this.dirty = true;\r\n\r\n var rgb = this._rgb;\r\n\r\n this.onChangeCallback.call(this, rgb[0], rgb[1], rgb[2]);\r\n },\r\n\r\n /**\r\n * The red color value. Between 0 and 1.\r\n *\r\n * Changing this property will flag this RGB object as being dirty\r\n * and invoke the `onChangeCallback` , if set.\r\n *\r\n * @name Phaser.Display.RGB#r\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n r: {\r\n\r\n get: function ()\r\n {\r\n return this._rgb[0];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._rgb[0] = value;\r\n this.onChange();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The green color value. Between 0 and 1.\r\n *\r\n * Changing this property will flag this RGB object as being dirty\r\n * and invoke the `onChangeCallback` , if set.\r\n *\r\n * @name Phaser.Display.RGB#g\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n g: {\r\n\r\n get: function ()\r\n {\r\n return this._rgb[1];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._rgb[1] = value;\r\n this.onChange();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The blue color value. Between 0 and 1.\r\n *\r\n * Changing this property will flag this RGB object as being dirty\r\n * and invoke the `onChangeCallback` , if set.\r\n *\r\n * @name Phaser.Display.RGB#b\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n b: {\r\n\r\n get: function ()\r\n {\r\n return this._rgb[2];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._rgb[2] = value;\r\n this.onChange();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Nulls any external references this object contains.\r\n *\r\n * @method Phaser.Display.RGB#destroy\r\n * @since 3.50.0\r\n */\r\n destroy: function ()\r\n {\r\n this.onChangeCallback = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = RGB;\r\n\n\n/***/ }),\n\n/***/ 60461:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar ALIGN_CONST = {\r\n\r\n /**\r\n * A constant representing a top-left alignment or position.\r\n * @constant\r\n * @name Phaser.Display.Align.TOP_LEFT\r\n * @since 3.0.0\r\n * @type {number}\r\n */\r\n TOP_LEFT: 0,\r\n\r\n /**\r\n * A constant representing a top-center alignment or position.\r\n * @constant\r\n * @name Phaser.Display.Align.TOP_CENTER\r\n * @since 3.0.0\r\n * @type {number}\r\n */\r\n TOP_CENTER: 1,\r\n\r\n /**\r\n * A constant representing a top-right alignment or position.\r\n * @constant\r\n * @name Phaser.Display.Align.TOP_RIGHT\r\n * @since 3.0.0\r\n * @type {number}\r\n */\r\n TOP_RIGHT: 2,\r\n\r\n /**\r\n * A constant representing a left-top alignment or position.\r\n * @constant\r\n * @name Phaser.Display.Align.LEFT_TOP\r\n * @since 3.0.0\r\n * @type {number}\r\n */\r\n LEFT_TOP: 3,\r\n\r\n /**\r\n * A constant representing a left-center alignment or position.\r\n * @constant\r\n * @name Phaser.Display.Align.LEFT_CENTER\r\n * @since 3.0.0\r\n * @type {number}\r\n */\r\n LEFT_CENTER: 4,\r\n\r\n /**\r\n * A constant representing a left-bottom alignment or position.\r\n * @constant\r\n * @name Phaser.Display.Align.LEFT_BOTTOM\r\n * @since 3.0.0\r\n * @type {number}\r\n */\r\n LEFT_BOTTOM: 5,\r\n\r\n /**\r\n * A constant representing a center alignment or position.\r\n * @constant\r\n * @name Phaser.Display.Align.CENTER\r\n * @since 3.0.0\r\n * @type {number}\r\n */\r\n CENTER: 6,\r\n\r\n /**\r\n * A constant representing a right-top alignment or position.\r\n * @constant\r\n * @name Phaser.Display.Align.RIGHT_TOP\r\n * @since 3.0.0\r\n * @type {number}\r\n */\r\n RIGHT_TOP: 7,\r\n\r\n /**\r\n * A constant representing a right-center alignment or position.\r\n * @constant\r\n * @name Phaser.Display.Align.RIGHT_CENTER\r\n * @since 3.0.0\r\n * @type {number}\r\n */\r\n RIGHT_CENTER: 8,\r\n\r\n /**\r\n * A constant representing a right-bottom alignment or position.\r\n * @constant\r\n * @name Phaser.Display.Align.RIGHT_BOTTOM\r\n * @since 3.0.0\r\n * @type {number}\r\n */\r\n RIGHT_BOTTOM: 9,\r\n\r\n /**\r\n * A constant representing a bottom-left alignment or position.\r\n * @constant\r\n * @name Phaser.Display.Align.BOTTOM_LEFT\r\n * @since 3.0.0\r\n * @type {number}\r\n */\r\n BOTTOM_LEFT: 10,\r\n\r\n /**\r\n * A constant representing a bottom-center alignment or position.\r\n * @constant\r\n * @name Phaser.Display.Align.BOTTOM_CENTER\r\n * @since 3.0.0\r\n * @type {number}\r\n */\r\n BOTTOM_CENTER: 11,\r\n\r\n /**\r\n * A constant representing a bottom-right alignment or position.\r\n * @constant\r\n * @name Phaser.Display.Align.BOTTOM_RIGHT\r\n * @since 3.0.0\r\n * @type {number}\r\n */\r\n BOTTOM_RIGHT: 12\r\n\r\n};\r\n\r\nmodule.exports = ALIGN_CONST;\r\n\n\n/***/ }),\n\n/***/ 54312:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetBottom = __webpack_require__(62235);\r\nvar GetCenterX = __webpack_require__(35893);\r\nvar SetBottom = __webpack_require__(86327);\r\nvar SetCenterX = __webpack_require__(88417);\r\n\r\n/**\r\n * Takes given Game Object and aligns it so that it is positioned in the bottom center of the other.\r\n *\r\n * @function Phaser.Display.Align.In.BottomCenter\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignIn - The Game Object to base the alignment position on.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar BottomCenter = function (gameObject, alignIn, offsetX, offsetY)\r\n{\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n SetCenterX(gameObject, GetCenterX(alignIn) + offsetX);\r\n SetBottom(gameObject, GetBottom(alignIn) + offsetY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = BottomCenter;\r\n\n\n/***/ }),\n\n/***/ 46768:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetBottom = __webpack_require__(62235);\r\nvar GetLeft = __webpack_require__(26541);\r\nvar SetBottom = __webpack_require__(86327);\r\nvar SetLeft = __webpack_require__(385);\r\n\r\n/**\r\n * Takes given Game Object and aligns it so that it is positioned in the bottom left of the other.\r\n *\r\n * @function Phaser.Display.Align.In.BottomLeft\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignIn - The Game Object to base the alignment position on.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar BottomLeft = function (gameObject, alignIn, offsetX, offsetY)\r\n{\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n SetLeft(gameObject, GetLeft(alignIn) - offsetX);\r\n SetBottom(gameObject, GetBottom(alignIn) + offsetY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = BottomLeft;\r\n\n\n/***/ }),\n\n/***/ 35827:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetBottom = __webpack_require__(62235);\r\nvar GetRight = __webpack_require__(54380);\r\nvar SetBottom = __webpack_require__(86327);\r\nvar SetRight = __webpack_require__(40136);\r\n\r\n/**\r\n * Takes given Game Object and aligns it so that it is positioned in the bottom right of the other.\r\n *\r\n * @function Phaser.Display.Align.In.BottomRight\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignIn - The Game Object to base the alignment position on.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar BottomRight = function (gameObject, alignIn, offsetX, offsetY)\r\n{\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n SetRight(gameObject, GetRight(alignIn) + offsetX);\r\n SetBottom(gameObject, GetBottom(alignIn) + offsetY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = BottomRight;\r\n\n\n/***/ }),\n\n/***/ 46871:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CenterOn = __webpack_require__(66786);\r\nvar GetCenterX = __webpack_require__(35893);\r\nvar GetCenterY = __webpack_require__(7702);\r\n\r\n/**\r\n * Takes given Game Object and aligns it so that it is positioned in the center of the other.\r\n *\r\n * @function Phaser.Display.Align.In.Center\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignIn - The Game Object to base the alignment position on.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar Center = function (gameObject, alignIn, offsetX, offsetY)\r\n{\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n CenterOn(gameObject, GetCenterX(alignIn) + offsetX, GetCenterY(alignIn) + offsetY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = Center;\r\n\n\n/***/ }),\n\n/***/ 5198:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetCenterY = __webpack_require__(7702);\r\nvar GetLeft = __webpack_require__(26541);\r\nvar SetCenterY = __webpack_require__(20786);\r\nvar SetLeft = __webpack_require__(385);\r\n\r\n/**\r\n * Takes given Game Object and aligns it so that it is positioned in the left center of the other.\r\n *\r\n * @function Phaser.Display.Align.In.LeftCenter\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignIn - The Game Object to base the alignment position on.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar LeftCenter = function (gameObject, alignIn, offsetX, offsetY)\r\n{\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n SetLeft(gameObject, GetLeft(alignIn) - offsetX);\r\n SetCenterY(gameObject, GetCenterY(alignIn) + offsetY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = LeftCenter;\r\n\n\n/***/ }),\n\n/***/ 11879:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar ALIGN_CONST = __webpack_require__(60461);\r\n\r\nvar AlignInMap = [];\r\n\r\nAlignInMap[ALIGN_CONST.BOTTOM_CENTER] = __webpack_require__(54312);\r\nAlignInMap[ALIGN_CONST.BOTTOM_LEFT] = __webpack_require__(46768);\r\nAlignInMap[ALIGN_CONST.BOTTOM_RIGHT] = __webpack_require__(35827);\r\nAlignInMap[ALIGN_CONST.CENTER] = __webpack_require__(46871);\r\nAlignInMap[ALIGN_CONST.LEFT_CENTER] = __webpack_require__(5198);\r\nAlignInMap[ALIGN_CONST.RIGHT_CENTER] = __webpack_require__(80503);\r\nAlignInMap[ALIGN_CONST.TOP_CENTER] = __webpack_require__(89698);\r\nAlignInMap[ALIGN_CONST.TOP_LEFT] = __webpack_require__(922);\r\nAlignInMap[ALIGN_CONST.TOP_RIGHT] = __webpack_require__(21373);\r\nAlignInMap[ALIGN_CONST.LEFT_BOTTOM] = AlignInMap[ALIGN_CONST.BOTTOM_LEFT];\r\nAlignInMap[ALIGN_CONST.LEFT_TOP] = AlignInMap[ALIGN_CONST.TOP_LEFT];\r\nAlignInMap[ALIGN_CONST.RIGHT_BOTTOM] = AlignInMap[ALIGN_CONST.BOTTOM_RIGHT];\r\nAlignInMap[ALIGN_CONST.RIGHT_TOP] = AlignInMap[ALIGN_CONST.TOP_RIGHT];\r\n\r\n/**\r\n * Takes given Game Object and aligns it so that it is positioned relative to the other.\r\n * The alignment used is based on the `position` argument, which is an `ALIGN_CONST` value, such as `LEFT_CENTER` or `TOP_RIGHT`.\r\n *\r\n * @function Phaser.Display.Align.In.QuickSet\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [child,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} child - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignIn - The Game Object to base the alignment position on.\r\n * @param {number} position - The position to align the Game Object with. This is an align constant, such as `ALIGN_CONST.LEFT_CENTER`.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar QuickSet = function (child, alignIn, position, offsetX, offsetY)\r\n{\r\n return AlignInMap[position](child, alignIn, offsetX, offsetY);\r\n};\r\n\r\nmodule.exports = QuickSet;\r\n\n\n/***/ }),\n\n/***/ 80503:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetCenterY = __webpack_require__(7702);\r\nvar GetRight = __webpack_require__(54380);\r\nvar SetCenterY = __webpack_require__(20786);\r\nvar SetRight = __webpack_require__(40136);\r\n\r\n/**\r\n * Takes given Game Object and aligns it so that it is positioned in the right center of the other.\r\n *\r\n * @function Phaser.Display.Align.In.RightCenter\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignIn - The Game Object to base the alignment position on.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar RightCenter = function (gameObject, alignIn, offsetX, offsetY)\r\n{\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n SetRight(gameObject, GetRight(alignIn) + offsetX);\r\n SetCenterY(gameObject, GetCenterY(alignIn) + offsetY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = RightCenter;\r\n\n\n/***/ }),\n\n/***/ 89698:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetCenterX = __webpack_require__(35893);\r\nvar GetTop = __webpack_require__(17717);\r\nvar SetCenterX = __webpack_require__(88417);\r\nvar SetTop = __webpack_require__(66737);\r\n\r\n/**\r\n * Takes given Game Object and aligns it so that it is positioned in the top center of the other.\r\n *\r\n * @function Phaser.Display.Align.In.TopCenter\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignIn - The Game Object to base the alignment position on.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar TopCenter = function (gameObject, alignIn, offsetX, offsetY)\r\n{\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n SetCenterX(gameObject, GetCenterX(alignIn) + offsetX);\r\n SetTop(gameObject, GetTop(alignIn) - offsetY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = TopCenter;\r\n\n\n/***/ }),\n\n/***/ 922:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetLeft = __webpack_require__(26541);\r\nvar GetTop = __webpack_require__(17717);\r\nvar SetLeft = __webpack_require__(385);\r\nvar SetTop = __webpack_require__(66737);\r\n\r\n/**\r\n * Takes given Game Object and aligns it so that it is positioned in the top left of the other.\r\n *\r\n * @function Phaser.Display.Align.In.TopLeft\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignIn - The Game Object to base the alignment position on.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar TopLeft = function (gameObject, alignIn, offsetX, offsetY)\r\n{\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n SetLeft(gameObject, GetLeft(alignIn) - offsetX);\r\n SetTop(gameObject, GetTop(alignIn) - offsetY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = TopLeft;\r\n\n\n/***/ }),\n\n/***/ 21373:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetRight = __webpack_require__(54380);\r\nvar GetTop = __webpack_require__(17717);\r\nvar SetRight = __webpack_require__(40136);\r\nvar SetTop = __webpack_require__(66737);\r\n\r\n/**\r\n * Takes given Game Object and aligns it so that it is positioned in the top right of the other.\r\n *\r\n * @function Phaser.Display.Align.In.TopRight\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignIn - The Game Object to base the alignment position on.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar TopRight = function (gameObject, alignIn, offsetX, offsetY)\r\n{\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n SetRight(gameObject, GetRight(alignIn) + offsetX);\r\n SetTop(gameObject, GetTop(alignIn) - offsetY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = TopRight;\r\n\n\n/***/ }),\n\n/***/ 91660:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Display.Align.In\r\n */\r\n\r\nmodule.exports = {\r\n\r\n BottomCenter: __webpack_require__(54312),\r\n BottomLeft: __webpack_require__(46768),\r\n BottomRight: __webpack_require__(35827),\r\n Center: __webpack_require__(46871),\r\n LeftCenter: __webpack_require__(5198),\r\n QuickSet: __webpack_require__(11879),\r\n RightCenter: __webpack_require__(80503),\r\n TopCenter: __webpack_require__(89698),\r\n TopLeft: __webpack_require__(922),\r\n TopRight: __webpack_require__(21373)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 71926:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(60461);\r\nvar Extend = __webpack_require__(79291);\r\n\r\n/**\r\n * @namespace Phaser.Display.Align\r\n */\r\n\r\nvar Align = {\r\n\r\n In: __webpack_require__(91660),\r\n To: __webpack_require__(16694)\r\n\r\n};\r\n\r\n// Merge in the consts\r\nAlign = Extend(false, Align, CONST);\r\n\r\nmodule.exports = Align;\r\n\n\n/***/ }),\n\n/***/ 21578:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetBottom = __webpack_require__(62235);\r\nvar GetCenterX = __webpack_require__(35893);\r\nvar SetCenterX = __webpack_require__(88417);\r\nvar SetTop = __webpack_require__(66737);\r\n\r\n/**\r\n * Takes given Game Object and aligns it so that it is positioned next to the bottom center position of the other.\r\n *\r\n * @function Phaser.Display.Align.To.BottomCenter\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignTo - The Game Object to base the alignment position on.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar BottomCenter = function (gameObject, alignTo, offsetX, offsetY)\r\n{\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n SetCenterX(gameObject, GetCenterX(alignTo) + offsetX);\r\n SetTop(gameObject, GetBottom(alignTo) + offsetY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = BottomCenter;\r\n\n\n/***/ }),\n\n/***/ 10210:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetBottom = __webpack_require__(62235);\r\nvar GetLeft = __webpack_require__(26541);\r\nvar SetLeft = __webpack_require__(385);\r\nvar SetTop = __webpack_require__(66737);\r\n\r\n/**\r\n * Takes given Game Object and aligns it so that it is positioned next to the bottom left position of the other.\r\n *\r\n * @function Phaser.Display.Align.To.BottomLeft\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignTo - The Game Object to base the alignment position on.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar BottomLeft = function (gameObject, alignTo, offsetX, offsetY)\r\n{\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n SetLeft(gameObject, GetLeft(alignTo) - offsetX);\r\n SetTop(gameObject, GetBottom(alignTo) + offsetY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = BottomLeft;\r\n\n\n/***/ }),\n\n/***/ 82341:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetBottom = __webpack_require__(62235);\r\nvar GetRight = __webpack_require__(54380);\r\nvar SetRight = __webpack_require__(40136);\r\nvar SetTop = __webpack_require__(66737);\r\n\r\n/**\r\n * Takes given Game Object and aligns it so that it is positioned next to the bottom right position of the other.\r\n *\r\n * @function Phaser.Display.Align.To.BottomRight\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignTo - The Game Object to base the alignment position on.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar BottomRight = function (gameObject, alignTo, offsetX, offsetY)\r\n{\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n SetRight(gameObject, GetRight(alignTo) + offsetX);\r\n SetTop(gameObject, GetBottom(alignTo) + offsetY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = BottomRight;\r\n\n\n/***/ }),\n\n/***/ 87958:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetBottom = __webpack_require__(62235);\r\nvar GetLeft = __webpack_require__(26541);\r\nvar SetBottom = __webpack_require__(86327);\r\nvar SetRight = __webpack_require__(40136);\r\n\r\n/**\r\n * Takes given Game Object and aligns it so that it is positioned next to the left bottom position of the other.\r\n *\r\n * @function Phaser.Display.Align.To.LeftBottom\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignTo - The Game Object to base the alignment position on.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar LeftBottom = function (gameObject, alignTo, offsetX, offsetY)\r\n{\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n SetRight(gameObject, GetLeft(alignTo) - offsetX);\r\n SetBottom(gameObject, GetBottom(alignTo) + offsetY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = LeftBottom;\r\n\n\n/***/ }),\n\n/***/ 40080:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetCenterY = __webpack_require__(7702);\r\nvar GetLeft = __webpack_require__(26541);\r\nvar SetCenterY = __webpack_require__(20786);\r\nvar SetRight = __webpack_require__(40136);\r\n\r\n/**\r\n * Takes given Game Object and aligns it so that it is positioned next to the left center position of the other.\r\n *\r\n * @function Phaser.Display.Align.To.LeftCenter\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignTo - The Game Object to base the alignment position on.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar LeftCenter = function (gameObject, alignTo, offsetX, offsetY)\r\n{\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n SetRight(gameObject, GetLeft(alignTo) - offsetX);\r\n SetCenterY(gameObject, GetCenterY(alignTo) + offsetY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = LeftCenter;\r\n\n\n/***/ }),\n\n/***/ 88466:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetLeft = __webpack_require__(26541);\r\nvar GetTop = __webpack_require__(17717);\r\nvar SetRight = __webpack_require__(40136);\r\nvar SetTop = __webpack_require__(66737);\r\n\r\n/**\r\n * Takes given Game Object and aligns it so that it is positioned next to the left top position of the other.\r\n *\r\n * @function Phaser.Display.Align.To.LeftTop\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignTo - The Game Object to base the alignment position on.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar LeftTop = function (gameObject, alignTo, offsetX, offsetY)\r\n{\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n SetRight(gameObject, GetLeft(alignTo) - offsetX);\r\n SetTop(gameObject, GetTop(alignTo) - offsetY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = LeftTop;\r\n\n\n/***/ }),\n\n/***/ 38829:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author samme\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar ALIGN_CONST = __webpack_require__(60461);\r\n\r\nvar AlignToMap = [];\r\n\r\nAlignToMap[ALIGN_CONST.BOTTOM_CENTER] = __webpack_require__(21578);\r\nAlignToMap[ALIGN_CONST.BOTTOM_LEFT] = __webpack_require__(10210);\r\nAlignToMap[ALIGN_CONST.BOTTOM_RIGHT] = __webpack_require__(82341);\r\nAlignToMap[ALIGN_CONST.LEFT_BOTTOM] = __webpack_require__(87958);\r\nAlignToMap[ALIGN_CONST.LEFT_CENTER] = __webpack_require__(40080);\r\nAlignToMap[ALIGN_CONST.LEFT_TOP] = __webpack_require__(88466);\r\nAlignToMap[ALIGN_CONST.RIGHT_BOTTOM] = __webpack_require__(19211);\r\nAlignToMap[ALIGN_CONST.RIGHT_CENTER] = __webpack_require__(34609);\r\nAlignToMap[ALIGN_CONST.RIGHT_TOP] = __webpack_require__(48741);\r\nAlignToMap[ALIGN_CONST.TOP_CENTER] = __webpack_require__(49440);\r\nAlignToMap[ALIGN_CONST.TOP_LEFT] = __webpack_require__(81288);\r\nAlignToMap[ALIGN_CONST.TOP_RIGHT] = __webpack_require__(61323);\r\n\r\n/**\r\n * Takes a Game Object and aligns it next to another, at the given position.\r\n * The alignment used is based on the `position` argument, which is a `Phaser.Display.Align` property such as `LEFT_CENTER` or `TOP_RIGHT`.\r\n *\r\n * @function Phaser.Display.Align.To.QuickSet\r\n * @since 3.22.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [child,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} child - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignTo - The Game Object to base the alignment position on.\r\n * @param {number} position - The position to align the Game Object with. This is an align constant, such as `Phaser.Display.Align.LEFT_CENTER`.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar QuickSet = function (child, alignTo, position, offsetX, offsetY)\r\n{\r\n return AlignToMap[position](child, alignTo, offsetX, offsetY);\r\n};\r\n\r\nmodule.exports = QuickSet;\r\n\n\n/***/ }),\n\n/***/ 19211:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetBottom = __webpack_require__(62235);\r\nvar GetRight = __webpack_require__(54380);\r\nvar SetBottom = __webpack_require__(86327);\r\nvar SetLeft = __webpack_require__(385);\r\n\r\n/**\r\n * Takes given Game Object and aligns it so that it is positioned next to the right bottom position of the other.\r\n *\r\n * @function Phaser.Display.Align.To.RightBottom\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignTo - The Game Object to base the alignment position on.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar RightBottom = function (gameObject, alignTo, offsetX, offsetY)\r\n{\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n SetLeft(gameObject, GetRight(alignTo) + offsetX);\r\n SetBottom(gameObject, GetBottom(alignTo) + offsetY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = RightBottom;\r\n\n\n/***/ }),\n\n/***/ 34609:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetCenterY = __webpack_require__(7702);\r\nvar GetRight = __webpack_require__(54380);\r\nvar SetCenterY = __webpack_require__(20786);\r\nvar SetLeft = __webpack_require__(385);\r\n\r\n/**\r\n * Takes given Game Object and aligns it so that it is positioned next to the right center position of the other.\r\n *\r\n * @function Phaser.Display.Align.To.RightCenter\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignTo - The Game Object to base the alignment position on.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar RightCenter = function (gameObject, alignTo, offsetX, offsetY)\r\n{\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n SetLeft(gameObject, GetRight(alignTo) + offsetX);\r\n SetCenterY(gameObject, GetCenterY(alignTo) + offsetY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = RightCenter;\r\n\n\n/***/ }),\n\n/***/ 48741:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetRight = __webpack_require__(54380);\r\nvar GetTop = __webpack_require__(17717);\r\nvar SetLeft = __webpack_require__(385);\r\nvar SetTop = __webpack_require__(66737);\r\n\r\n/**\r\n * Takes given Game Object and aligns it so that it is positioned next to the right top position of the other.\r\n *\r\n * @function Phaser.Display.Align.To.RightTop\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignTo - The Game Object to base the alignment position on.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar RightTop = function (gameObject, alignTo, offsetX, offsetY)\r\n{\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n SetLeft(gameObject, GetRight(alignTo) + offsetX);\r\n SetTop(gameObject, GetTop(alignTo) - offsetY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = RightTop;\r\n\n\n/***/ }),\n\n/***/ 49440:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetCenterX = __webpack_require__(35893);\r\nvar GetTop = __webpack_require__(17717);\r\nvar SetBottom = __webpack_require__(86327);\r\nvar SetCenterX = __webpack_require__(88417);\r\n\r\n/**\r\n * Takes given Game Object and aligns it so that it is positioned next to the top center position of the other.\r\n *\r\n * @function Phaser.Display.Align.To.TopCenter\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignTo - The Game Object to base the alignment position on.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar TopCenter = function (gameObject, alignTo, offsetX, offsetY)\r\n{\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n SetCenterX(gameObject, GetCenterX(alignTo) + offsetX);\r\n SetBottom(gameObject, GetTop(alignTo) - offsetY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = TopCenter;\r\n\n\n/***/ }),\n\n/***/ 81288:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetLeft = __webpack_require__(26541);\r\nvar GetTop = __webpack_require__(17717);\r\nvar SetBottom = __webpack_require__(86327);\r\nvar SetLeft = __webpack_require__(385);\r\n\r\n/**\r\n * Takes given Game Object and aligns it so that it is positioned next to the top left position of the other.\r\n *\r\n * @function Phaser.Display.Align.To.TopLeft\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignTo - The Game Object to base the alignment position on.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar TopLeft = function (gameObject, alignTo, offsetX, offsetY)\r\n{\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n SetLeft(gameObject, GetLeft(alignTo) - offsetX);\r\n SetBottom(gameObject, GetTop(alignTo) - offsetY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = TopLeft;\r\n\n\n/***/ }),\n\n/***/ 61323:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetRight = __webpack_require__(54380);\r\nvar GetTop = __webpack_require__(17717);\r\nvar SetBottom = __webpack_require__(86327);\r\nvar SetRight = __webpack_require__(40136);\r\n\r\n/**\r\n * Takes given Game Object and aligns it so that it is positioned next to the top right position of the other.\r\n *\r\n * @function Phaser.Display.Align.To.TopRight\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be positioned.\r\n * @param {Phaser.GameObjects.GameObject} alignTo - The Game Object to base the alignment position on.\r\n * @param {number} [offsetX=0] - Optional horizontal offset from the position.\r\n * @param {number} [offsetY=0] - Optional vertical offset from the position.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was aligned.\r\n */\r\nvar TopRight = function (gameObject, alignTo, offsetX, offsetY)\r\n{\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n SetRight(gameObject, GetRight(alignTo) + offsetX);\r\n SetBottom(gameObject, GetTop(alignTo) - offsetY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = TopRight;\r\n\n\n/***/ }),\n\n/***/ 16694:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Display.Align.To\r\n */\r\n\r\nmodule.exports = {\r\n\r\n BottomCenter: __webpack_require__(21578),\r\n BottomLeft: __webpack_require__(10210),\r\n BottomRight: __webpack_require__(82341),\r\n LeftBottom: __webpack_require__(87958),\r\n LeftCenter: __webpack_require__(40080),\r\n LeftTop: __webpack_require__(88466),\r\n QuickSet: __webpack_require__(38829),\r\n RightBottom: __webpack_require__(19211),\r\n RightCenter: __webpack_require__(34609),\r\n RightTop: __webpack_require__(48741),\r\n TopCenter: __webpack_require__(49440),\r\n TopLeft: __webpack_require__(81288),\r\n TopRight: __webpack_require__(61323)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 66786:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar SetCenterX = __webpack_require__(88417);\r\nvar SetCenterY = __webpack_require__(20786);\r\n\r\n/**\r\n * Positions the Game Object so that it is centered on the given coordinates.\r\n *\r\n * @function Phaser.Display.Bounds.CenterOn\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be re-positioned.\r\n * @param {number} x - The horizontal coordinate to position the Game Object on.\r\n * @param {number} y - The vertical coordinate to position the Game Object on.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was positioned.\r\n */\r\nvar CenterOn = function (gameObject, x, y)\r\n{\r\n SetCenterX(gameObject, x);\r\n\r\n return SetCenterY(gameObject, y);\r\n};\r\n\r\nmodule.exports = CenterOn;\r\n\n\n/***/ }),\n\n/***/ 62235:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Returns the bottom coordinate from the bounds of the Game Object.\r\n *\r\n * @function Phaser.Display.Bounds.GetBottom\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to get the bounds value from.\r\n *\r\n * @return {number} The bottom coordinate of the bounds of the Game Object.\r\n */\r\nvar GetBottom = function (gameObject)\r\n{\r\n return (gameObject.y + gameObject.height) - (gameObject.height * gameObject.originY);\r\n};\r\n\r\nmodule.exports = GetBottom;\r\n\n\n/***/ }),\n\n/***/ 72873:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author samme\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetBottom = __webpack_require__(62235);\r\nvar GetLeft = __webpack_require__(26541);\r\nvar GetRight = __webpack_require__(54380);\r\nvar GetTop = __webpack_require__(17717);\r\nvar Rectangle = __webpack_require__(87841);\r\n\r\n/**\r\n * Returns the unrotated bounds of the Game Object as a rectangle.\r\n *\r\n * @function Phaser.Display.Bounds.GetBounds\r\n * @since 3.24.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to get the bounds value from.\r\n * @param {(Phaser.Geom.Rectangle|object)} [output] - An object to store the values in. If not provided a new Rectangle will be created.\r\n *\r\n * @return {(Phaser.Geom.Rectangle|object)} - The bounds of the Game Object.\r\n */\r\nvar GetBounds = function (gameObject, output)\r\n{\r\n if (output === undefined) { output = new Rectangle(); }\r\n\r\n var left = GetLeft(gameObject);\r\n var top = GetTop(gameObject);\r\n\r\n output.x = left;\r\n output.y = top;\r\n output.width = GetRight(gameObject) - left;\r\n output.height = GetBottom(gameObject) - top;\r\n\r\n return output;\r\n};\r\n\r\nmodule.exports = GetBounds;\r\n\n\n/***/ }),\n\n/***/ 35893:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Returns the center x coordinate from the bounds of the Game Object.\r\n *\r\n * @function Phaser.Display.Bounds.GetCenterX\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to get the bounds value from.\r\n *\r\n * @return {number} The center x coordinate of the bounds of the Game Object.\r\n */\r\nvar GetCenterX = function (gameObject)\r\n{\r\n return gameObject.x - (gameObject.width * gameObject.originX) + (gameObject.width * 0.5);\r\n};\r\n\r\nmodule.exports = GetCenterX;\r\n\n\n/***/ }),\n\n/***/ 7702:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Returns the center y coordinate from the bounds of the Game Object.\r\n *\r\n * @function Phaser.Display.Bounds.GetCenterY\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to get the bounds value from.\r\n *\r\n * @return {number} The center y coordinate of the bounds of the Game Object.\r\n */\r\nvar GetCenterY = function (gameObject)\r\n{\r\n return gameObject.y - (gameObject.height * gameObject.originY) + (gameObject.height * 0.5);\r\n};\r\n\r\nmodule.exports = GetCenterY;\r\n\n\n/***/ }),\n\n/***/ 26541:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Returns the left coordinate from the bounds of the Game Object.\r\n *\r\n * @function Phaser.Display.Bounds.GetLeft\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to get the bounds value from.\r\n *\r\n * @return {number} The left coordinate of the bounds of the Game Object.\r\n */\r\nvar GetLeft = function (gameObject)\r\n{\r\n return gameObject.x - (gameObject.width * gameObject.originX);\r\n};\r\n\r\nmodule.exports = GetLeft;\r\n\n\n/***/ }),\n\n/***/ 87431:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Returns the amount the Game Object is visually offset from its x coordinate.\r\n * This is the same as `width * origin.x`.\r\n * This value will only be > 0 if `origin.x` is not equal to zero.\r\n *\r\n * @function Phaser.Display.Bounds.GetOffsetX\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to get the bounds value from.\r\n *\r\n * @return {number} The horizontal offset of the Game Object.\r\n */\r\nvar GetOffsetX = function (gameObject)\r\n{\r\n return gameObject.width * gameObject.originX;\r\n};\r\n\r\nmodule.exports = GetOffsetX;\r\n\n\n/***/ }),\n\n/***/ 46928:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Returns the amount the Game Object is visually offset from its y coordinate.\r\n * This is the same as `width * origin.y`.\r\n * This value will only be > 0 if `origin.y` is not equal to zero.\r\n *\r\n * @function Phaser.Display.Bounds.GetOffsetY\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to get the bounds value from.\r\n *\r\n * @return {number} The vertical offset of the Game Object.\r\n */\r\nvar GetOffsetY = function (gameObject)\r\n{\r\n return gameObject.height * gameObject.originY;\r\n};\r\n\r\nmodule.exports = GetOffsetY;\r\n\n\n/***/ }),\n\n/***/ 54380:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Returns the right coordinate from the bounds of the Game Object.\r\n *\r\n * @function Phaser.Display.Bounds.GetRight\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to get the bounds value from.\r\n *\r\n * @return {number} The right coordinate of the bounds of the Game Object.\r\n */\r\nvar GetRight = function (gameObject)\r\n{\r\n return (gameObject.x + gameObject.width) - (gameObject.width * gameObject.originX);\r\n};\r\n\r\nmodule.exports = GetRight;\r\n\n\n/***/ }),\n\n/***/ 17717:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Returns the top coordinate from the bounds of the Game Object.\r\n *\r\n * @function Phaser.Display.Bounds.GetTop\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to get the bounds value from.\r\n *\r\n * @return {number} The top coordinate of the bounds of the Game Object.\r\n */\r\nvar GetTop = function (gameObject)\r\n{\r\n return gameObject.y - (gameObject.height * gameObject.originY);\r\n};\r\n\r\nmodule.exports = GetTop;\r\n\n\n/***/ }),\n\n/***/ 86327:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Positions the Game Object so that the bottom of its bounds aligns with the given coordinate.\r\n *\r\n * @function Phaser.Display.Bounds.SetBottom\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be re-positioned.\r\n * @param {number} value - The coordinate to position the Game Object bounds on.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was positioned.\r\n */\r\nvar SetBottom = function (gameObject, value)\r\n{\r\n gameObject.y = (value - gameObject.height) + (gameObject.height * gameObject.originY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = SetBottom;\r\n\n\n/***/ }),\n\n/***/ 88417:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Positions the Game Object so that the center top of its bounds aligns with the given coordinate.\r\n *\r\n * @function Phaser.Display.Bounds.SetCenterX\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be re-positioned.\r\n * @param {number} x - The coordinate to position the Game Object bounds on.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was positioned.\r\n */\r\nvar SetCenterX = function (gameObject, x)\r\n{\r\n var offsetX = gameObject.width * gameObject.originX;\r\n\r\n gameObject.x = (x + offsetX) - (gameObject.width * 0.5);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = SetCenterX;\r\n\n\n/***/ }),\n\n/***/ 20786:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Positions the Game Object so that the center top of its bounds aligns with the given coordinate.\r\n *\r\n * @function Phaser.Display.Bounds.SetCenterY\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be re-positioned.\r\n * @param {number} y - The coordinate to position the Game Object bounds on.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was positioned.\r\n */\r\nvar SetCenterY = function (gameObject, y)\r\n{\r\n var offsetY = gameObject.height * gameObject.originY;\r\n\r\n gameObject.y = (y + offsetY) - (gameObject.height * 0.5);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = SetCenterY;\r\n\n\n/***/ }),\n\n/***/ 385:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Positions the Game Object so that the left of its bounds aligns with the given coordinate.\r\n *\r\n * @function Phaser.Display.Bounds.SetLeft\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be re-positioned.\r\n * @param {number} value - The coordinate to position the Game Object bounds on.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was positioned.\r\n */\r\nvar SetLeft = function (gameObject, value)\r\n{\r\n gameObject.x = value + (gameObject.width * gameObject.originX);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = SetLeft;\r\n\n\n/***/ }),\n\n/***/ 40136:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Positions the Game Object so that the left of its bounds aligns with the given coordinate.\r\n *\r\n * @function Phaser.Display.Bounds.SetRight\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be re-positioned.\r\n * @param {number} value - The coordinate to position the Game Object bounds on.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was positioned.\r\n */\r\nvar SetRight = function (gameObject, value)\r\n{\r\n gameObject.x = (value - gameObject.width) + (gameObject.width * gameObject.originX);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = SetRight;\r\n\n\n/***/ }),\n\n/***/ 66737:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Positions the Game Object so that the top of its bounds aligns with the given coordinate.\r\n *\r\n * @function Phaser.Display.Bounds.SetTop\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will be re-positioned.\r\n * @param {number} value - The coordinate to position the Game Object bounds on.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was positioned.\r\n */\r\nvar SetTop = function (gameObject, value)\r\n{\r\n gameObject.y = value + (gameObject.height * gameObject.originY);\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = SetTop;\r\n\n\n/***/ }),\n\n/***/ 58724:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Display.Bounds\r\n */\r\n\r\nmodule.exports = {\r\n\r\n CenterOn: __webpack_require__(66786),\r\n GetBottom: __webpack_require__(62235),\r\n GetBounds: __webpack_require__(72873),\r\n GetCenterX: __webpack_require__(35893),\r\n GetCenterY: __webpack_require__(7702),\r\n GetLeft: __webpack_require__(26541),\r\n GetOffsetX: __webpack_require__(87431),\r\n GetOffsetY: __webpack_require__(46928),\r\n GetRight: __webpack_require__(54380),\r\n GetTop: __webpack_require__(17717),\r\n SetBottom: __webpack_require__(86327),\r\n SetCenterX: __webpack_require__(88417),\r\n SetCenterY: __webpack_require__(20786),\r\n SetLeft: __webpack_require__(385),\r\n SetRight: __webpack_require__(40136),\r\n SetTop: __webpack_require__(66737)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 20623:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Display.Canvas.CanvasInterpolation\r\n * @since 3.0.0\r\n */\r\nvar CanvasInterpolation = {\r\n\r\n /**\r\n * Sets the CSS image-rendering property on the given canvas to be 'crisp' (aka 'optimize contrast' on webkit).\r\n *\r\n * @function Phaser.Display.Canvas.CanvasInterpolation.setCrisp\r\n * @since 3.0.0\r\n * \r\n * @param {HTMLCanvasElement} canvas - The canvas object to have the style set on.\r\n * \r\n * @return {HTMLCanvasElement} The canvas.\r\n */\r\n setCrisp: function (canvas)\r\n {\r\n var types = [ 'optimizeSpeed', '-moz-crisp-edges', '-o-crisp-edges', '-webkit-optimize-contrast', 'optimize-contrast', 'crisp-edges', 'pixelated' ];\r\n\r\n types.forEach(function (type)\r\n {\r\n canvas.style['image-rendering'] = type;\r\n });\r\n\r\n canvas.style.msInterpolationMode = 'nearest-neighbor';\r\n\r\n return canvas;\r\n },\r\n\r\n /**\r\n * Sets the CSS image-rendering property on the given canvas to be 'bicubic' (aka 'auto').\r\n *\r\n * @function Phaser.Display.Canvas.CanvasInterpolation.setBicubic\r\n * @since 3.0.0\r\n * \r\n * @param {HTMLCanvasElement} canvas - The canvas object to have the style set on.\r\n * \r\n * @return {HTMLCanvasElement} The canvas.\r\n */\r\n setBicubic: function (canvas)\r\n {\r\n canvas.style['image-rendering'] = 'auto';\r\n canvas.style.msInterpolationMode = 'bicubic';\r\n\r\n return canvas;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = CanvasInterpolation;\r\n\n\n/***/ }),\n\n/***/ 27919:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(8054);\r\nvar Smoothing = __webpack_require__(68703);\r\n\r\n// The pool into which the canvas elements are placed.\r\nvar pool = [];\r\n\r\n// Automatically apply smoothing(false) to created Canvas elements\r\nvar _disableContextSmoothing = false;\r\n\r\n/**\r\n * The CanvasPool is a global static object, that allows Phaser to recycle and pool 2D Context Canvas DOM elements.\r\n * It does not pool WebGL Contexts, because once the context options are set they cannot be modified again,\r\n * which is useless for some of the Phaser pipelines / renderer.\r\n *\r\n * This singleton is instantiated as soon as Phaser loads, before a Phaser.Game instance has even been created.\r\n * Which means all instances of Phaser Games on the same page can share the one single pool.\r\n *\r\n * @namespace Phaser.Display.Canvas.CanvasPool\r\n * @since 3.0.0\r\n */\r\nvar CanvasPool = function ()\r\n{\r\n /**\r\n * Creates a new Canvas DOM element, or pulls one from the pool if free.\r\n *\r\n * @function Phaser.Display.Canvas.CanvasPool.create\r\n * @since 3.0.0\r\n *\r\n * @param {*} parent - The parent of the Canvas object.\r\n * @param {number} [width=1] - The width of the Canvas.\r\n * @param {number} [height=1] - The height of the Canvas.\r\n * @param {number} [canvasType=Phaser.CANVAS] - The type of the Canvas. Either `Phaser.CANVAS` or `Phaser.WEBGL`.\r\n * @param {boolean} [selfParent=false] - Use the generated Canvas element as the parent?\r\n *\r\n * @return {HTMLCanvasElement} The canvas element that was created or pulled from the pool\r\n */\r\n var create = function (parent, width, height, canvasType, selfParent)\r\n {\r\n if (width === undefined) { width = 1; }\r\n if (height === undefined) { height = 1; }\r\n if (canvasType === undefined) { canvasType = CONST.CANVAS; }\r\n if (selfParent === undefined) { selfParent = false; }\r\n\r\n var canvas;\r\n var container = first(canvasType);\r\n\r\n if (container === null)\r\n {\r\n container = {\r\n parent: parent,\r\n canvas: document.createElement('canvas'),\r\n type: canvasType\r\n };\r\n\r\n if (canvasType === CONST.CANVAS)\r\n {\r\n pool.push(container);\r\n }\r\n\r\n canvas = container.canvas;\r\n }\r\n else\r\n {\r\n container.parent = parent;\r\n\r\n canvas = container.canvas;\r\n }\r\n\r\n if (selfParent)\r\n {\r\n container.parent = canvas;\r\n }\r\n\r\n canvas.width = width;\r\n canvas.height = height;\r\n\r\n if (_disableContextSmoothing && canvasType === CONST.CANVAS)\r\n {\r\n Smoothing.disable(canvas.getContext('2d', { willReadFrequently: false }));\r\n }\r\n\r\n return canvas;\r\n };\r\n\r\n /**\r\n * Creates a new Canvas DOM element, or pulls one from the pool if free.\r\n *\r\n * @function Phaser.Display.Canvas.CanvasPool.create2D\r\n * @since 3.0.0\r\n *\r\n * @param {*} parent - The parent of the Canvas object.\r\n * @param {number} [width=1] - The width of the Canvas.\r\n * @param {number} [height=1] - The height of the Canvas.\r\n *\r\n * @return {HTMLCanvasElement} The created canvas.\r\n */\r\n var create2D = function (parent, width, height)\r\n {\r\n return create(parent, width, height, CONST.CANVAS);\r\n };\r\n\r\n /**\r\n * Creates a new Canvas DOM element, or pulls one from the pool if free.\r\n *\r\n * @function Phaser.Display.Canvas.CanvasPool.createWebGL\r\n * @since 3.0.0\r\n *\r\n * @param {*} parent - The parent of the Canvas object.\r\n * @param {number} [width=1] - The width of the Canvas.\r\n * @param {number} [height=1] - The height of the Canvas.\r\n *\r\n * @return {HTMLCanvasElement} The created WebGL canvas.\r\n */\r\n var createWebGL = function (parent, width, height)\r\n {\r\n return create(parent, width, height, CONST.WEBGL);\r\n };\r\n\r\n /**\r\n * Gets the first free canvas index from the pool.\r\n *\r\n * @function Phaser.Display.Canvas.CanvasPool.first\r\n * @since 3.0.0\r\n *\r\n * @param {number} [canvasType=Phaser.CANVAS] - The type of the Canvas. Either `Phaser.CANVAS` or `Phaser.WEBGL`.\r\n *\r\n * @return {HTMLCanvasElement} The first free canvas, or `null` if a WebGL canvas was requested or if the pool doesn't have free canvases.\r\n */\r\n var first = function (canvasType)\r\n {\r\n if (canvasType === undefined) { canvasType = CONST.CANVAS; }\r\n\r\n if (canvasType === CONST.WEBGL)\r\n {\r\n return null;\r\n }\r\n\r\n for (var i = 0; i < pool.length; i++)\r\n {\r\n var container = pool[i];\r\n\r\n if (!container.parent && container.type === canvasType)\r\n {\r\n return container;\r\n }\r\n }\r\n\r\n return null;\r\n };\r\n\r\n /**\r\n * Looks up a canvas based on its parent, and if found puts it back in the pool, freeing it up for re-use.\r\n * The canvas has its width and height set to 1, and its parent attribute nulled.\r\n *\r\n * @function Phaser.Display.Canvas.CanvasPool.remove\r\n * @since 3.0.0\r\n *\r\n * @param {*} parent - The canvas or the parent of the canvas to free.\r\n */\r\n var remove = function (parent)\r\n {\r\n // Check to see if the parent is a canvas object\r\n var isCanvas = parent instanceof HTMLCanvasElement;\r\n\r\n pool.forEach(function (container)\r\n {\r\n if ((isCanvas && container.canvas === parent) || (!isCanvas && container.parent === parent))\r\n {\r\n container.parent = null;\r\n container.canvas.width = 1;\r\n container.canvas.height = 1;\r\n }\r\n });\r\n };\r\n\r\n /**\r\n * Gets the total number of used canvas elements in the pool.\r\n *\r\n * @function Phaser.Display.Canvas.CanvasPool.total\r\n * @since 3.0.0\r\n *\r\n * @return {number} The number of used canvases.\r\n */\r\n var total = function ()\r\n {\r\n var c = 0;\r\n\r\n pool.forEach(function (container)\r\n {\r\n if (container.parent)\r\n {\r\n c++;\r\n }\r\n });\r\n\r\n return c;\r\n };\r\n\r\n /**\r\n * Gets the total number of free canvas elements in the pool.\r\n *\r\n * @function Phaser.Display.Canvas.CanvasPool.free\r\n * @since 3.0.0\r\n *\r\n * @return {number} The number of free canvases.\r\n */\r\n var free = function ()\r\n {\r\n return pool.length - total();\r\n };\r\n\r\n /**\r\n * Disable context smoothing on any new Canvas element created.\r\n *\r\n * @function Phaser.Display.Canvas.CanvasPool.disableSmoothing\r\n * @since 3.0.0\r\n */\r\n var disableSmoothing = function ()\r\n {\r\n _disableContextSmoothing = true;\r\n };\r\n\r\n /**\r\n * Enable context smoothing on any new Canvas element created.\r\n *\r\n * @function Phaser.Display.Canvas.CanvasPool.enableSmoothing\r\n * @since 3.0.0\r\n */\r\n var enableSmoothing = function ()\r\n {\r\n _disableContextSmoothing = false;\r\n };\r\n\r\n return {\r\n create2D: create2D,\r\n create: create,\r\n createWebGL: createWebGL,\r\n disableSmoothing: disableSmoothing,\r\n enableSmoothing: enableSmoothing,\r\n first: first,\r\n free: free,\r\n pool: pool,\r\n remove: remove,\r\n total: total\r\n };\r\n};\r\n\r\n// If we export the called function here, it'll only be invoked once (not every time it's required).\r\nmodule.exports = CanvasPool();\r\n\n\n/***/ }),\n\n/***/ 68703:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// Browser specific prefix, so not going to change between contexts, only between browsers\r\nvar prefix = '';\r\n\r\n/**\r\n * @namespace Phaser.Display.Canvas.Smoothing\r\n * @since 3.0.0\r\n */\r\nvar Smoothing = function ()\r\n{\r\n /**\r\n * Gets the Smoothing Enabled vendor prefix being used on the given context, or null if not set.\r\n *\r\n * @function Phaser.Display.Canvas.Smoothing.getPrefix\r\n * @since 3.0.0\r\n *\r\n * @param {(CanvasRenderingContext2D|WebGLRenderingContext)} context - The canvas context to check.\r\n *\r\n * @return {string} The name of the property on the context which controls image smoothing (either `imageSmoothingEnabled` or a vendor-prefixed version thereof), or `null` if not supported.\r\n */\r\n var getPrefix = function (context)\r\n {\r\n var vendors = [ 'i', 'webkitI', 'msI', 'mozI', 'oI' ];\r\n\r\n for (var i = 0; i < vendors.length; i++)\r\n {\r\n var s = vendors[i] + 'mageSmoothingEnabled';\r\n\r\n if (s in context)\r\n {\r\n return s;\r\n }\r\n }\r\n\r\n return null;\r\n };\r\n\r\n /**\r\n * Sets the Image Smoothing property on the given context. Set to false to disable image smoothing.\r\n * By default browsers have image smoothing enabled, which isn't always what you visually want, especially\r\n * when using pixel art in a game. Note that this sets the property on the context itself, so that any image\r\n * drawn to the context will be affected. This sets the property across all current browsers but support is\r\n * patchy on earlier browsers, especially on mobile.\r\n *\r\n * @function Phaser.Display.Canvas.Smoothing.enable\r\n * @since 3.0.0\r\n *\r\n * @param {(CanvasRenderingContext2D|WebGLRenderingContext)} context - The context on which to enable smoothing.\r\n *\r\n * @return {(CanvasRenderingContext2D|WebGLRenderingContext)} The provided context.\r\n */\r\n var enable = function (context)\r\n {\r\n if (prefix === '')\r\n {\r\n prefix = getPrefix(context);\r\n }\r\n\r\n if (prefix)\r\n {\r\n context[prefix] = true;\r\n }\r\n\r\n return context;\r\n };\r\n\r\n /**\r\n * Sets the Image Smoothing property on the given context. Set to false to disable image smoothing.\r\n * By default browsers have image smoothing enabled, which isn't always what you visually want, especially\r\n * when using pixel art in a game. Note that this sets the property on the context itself, so that any image\r\n * drawn to the context will be affected. This sets the property across all current browsers but support is\r\n * patchy on earlier browsers, especially on mobile.\r\n *\r\n * @function Phaser.Display.Canvas.Smoothing.disable\r\n * @since 3.0.0\r\n *\r\n * @param {(CanvasRenderingContext2D|WebGLRenderingContext)} context - The context on which to disable smoothing.\r\n *\r\n * @return {(CanvasRenderingContext2D|WebGLRenderingContext)} The provided context.\r\n */\r\n var disable = function (context)\r\n {\r\n if (prefix === '')\r\n {\r\n prefix = getPrefix(context);\r\n }\r\n\r\n if (prefix)\r\n {\r\n context[prefix] = false;\r\n }\r\n\r\n return context;\r\n };\r\n\r\n /**\r\n * Returns `true` if the given context has image smoothing enabled, otherwise returns `false`.\r\n * Returns null if no smoothing prefix is available.\r\n *\r\n * @function Phaser.Display.Canvas.Smoothing.isEnabled\r\n * @since 3.0.0\r\n *\r\n * @param {(CanvasRenderingContext2D|WebGLRenderingContext)} context - The context to check.\r\n *\r\n * @return {?boolean} `true` if smoothing is enabled on the context, otherwise `false`. `null` if not supported.\r\n */\r\n var isEnabled = function (context)\r\n {\r\n return (prefix !== null) ? context[prefix] : null;\r\n };\r\n\r\n return {\r\n disable: disable,\r\n enable: enable,\r\n getPrefix: getPrefix,\r\n isEnabled: isEnabled\r\n };\r\n\r\n};\r\n\r\nmodule.exports = Smoothing();\r\n\n\n/***/ }),\n\n/***/ 65208:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Sets the touch-action property on the canvas style. Can be used to disable default browser touch actions.\r\n *\r\n * @function Phaser.Display.Canvas.TouchAction\r\n * @since 3.0.0\r\n *\r\n * @param {HTMLCanvasElement} canvas - The canvas element to have the style applied to.\r\n * @param {string} [value='none'] - The touch action value to set on the canvas. Set to `none` to disable touch actions.\r\n *\r\n * @return {HTMLCanvasElement} The canvas element.\r\n */\r\nvar TouchAction = function (canvas, value)\r\n{\r\n if (value === undefined) { value = 'none'; }\r\n\r\n canvas.style['msTouchAction'] = value;\r\n canvas.style['ms-touch-action'] = value;\r\n canvas.style['touch-action'] = value;\r\n\r\n return canvas;\r\n};\r\n\r\nmodule.exports = TouchAction;\r\n\n\n/***/ }),\n\n/***/ 91610:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Sets the user-select property on the canvas style. Can be used to disable default browser selection actions.\r\n *\r\n * @function Phaser.Display.Canvas.UserSelect\r\n * @since 3.0.0\r\n *\r\n * @param {HTMLCanvasElement} canvas - The canvas element to have the style applied to.\r\n * @param {string} [value='none'] - The touch callout value to set on the canvas. Set to `none` to disable touch callouts.\r\n *\r\n * @return {HTMLCanvasElement} The canvas element.\r\n */\r\nvar UserSelect = function (canvas, value)\r\n{\r\n if (value === undefined) { value = 'none'; }\r\n\r\n var vendors = [\r\n '-webkit-',\r\n '-khtml-',\r\n '-moz-',\r\n '-ms-',\r\n ''\r\n ];\r\n\r\n vendors.forEach(function (vendor)\r\n {\r\n canvas.style[vendor + 'user-select'] = value;\r\n });\r\n\r\n canvas.style['-webkit-touch-callout'] = value;\r\n canvas.style['-webkit-tap-highlight-color'] = 'rgba(0, 0, 0, 0)';\r\n\r\n return canvas;\r\n};\r\n\r\nmodule.exports = UserSelect;\r\n\n\n/***/ }),\n\n/***/ 26253:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Display.Canvas\r\n */\r\n\r\nmodule.exports = {\r\n\r\n CanvasInterpolation: __webpack_require__(20623),\r\n CanvasPool: __webpack_require__(27919),\r\n Smoothing: __webpack_require__(68703),\r\n TouchAction: __webpack_require__(65208),\r\n UserSelect: __webpack_require__(91610)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 40987:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar GetColor = __webpack_require__(37589);\r\nvar GetColor32 = __webpack_require__(1000);\r\nvar HSVToRGB = __webpack_require__(7537);\r\nvar RGBToHSV = __webpack_require__(87837);\r\n\r\n/**\r\n * @namespace Phaser.Display.Color\r\n */\r\n\r\n/**\r\n * @classdesc\r\n * The Color class holds a single color value and allows for easy modification and reading of it.\r\n *\r\n * @class Color\r\n * @memberof Phaser.Display\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {number} [red=0] - The red color value. A number between 0 and 255.\r\n * @param {number} [green=0] - The green color value. A number between 0 and 255.\r\n * @param {number} [blue=0] - The blue color value. A number between 0 and 255.\r\n * @param {number} [alpha=255] - The alpha value. A number between 0 and 255.\r\n */\r\nvar Color = new Class({\r\n\r\n initialize:\r\n\r\n function Color (red, green, blue, alpha)\r\n {\r\n if (red === undefined) { red = 0; }\r\n if (green === undefined) { green = 0; }\r\n if (blue === undefined) { blue = 0; }\r\n if (alpha === undefined) { alpha = 255; }\r\n\r\n /**\r\n * The internal red color value.\r\n *\r\n * @name Phaser.Display.Color#r\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.r = 0;\r\n\r\n /**\r\n * The internal green color value.\r\n *\r\n * @name Phaser.Display.Color#g\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.g = 0;\r\n\r\n /**\r\n * The internal blue color value.\r\n *\r\n * @name Phaser.Display.Color#b\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.b = 0;\r\n\r\n /**\r\n * The internal alpha color value.\r\n *\r\n * @name Phaser.Display.Color#a\r\n * @type {number}\r\n * @private\r\n * @default 255\r\n * @since 3.0.0\r\n */\r\n this.a = 255;\r\n\r\n /**\r\n * The hue color value. A number between 0 and 1.\r\n * This is the base color.\r\n *\r\n * @name Phaser.Display.Color#_h\r\n * @type {number}\r\n * @default 0\r\n * @private\r\n * @since 3.13.0\r\n */\r\n this._h = 0;\r\n\r\n /**\r\n * The saturation color value. A number between 0 and 1.\r\n * This controls how much of the hue will be in the final color, where 1 is fully saturated and 0 will give you white.\r\n *\r\n * @name Phaser.Display.Color#_s\r\n * @type {number}\r\n * @default 0\r\n * @private\r\n * @since 3.13.0\r\n */\r\n this._s = 0;\r\n\r\n /**\r\n * The lightness color value. A number between 0 and 1.\r\n * This controls how dark the color is. Where 1 is as bright as possible and 0 is black.\r\n *\r\n * @name Phaser.Display.Color#_v\r\n * @type {number}\r\n * @default 0\r\n * @private\r\n * @since 3.13.0\r\n */\r\n this._v = 0;\r\n\r\n /**\r\n * Is this color update locked?\r\n *\r\n * @name Phaser.Display.Color#_locked\r\n * @type {boolean}\r\n * @private\r\n * @since 3.13.0\r\n */\r\n this._locked = false;\r\n\r\n /**\r\n * An array containing the calculated color values for WebGL use.\r\n *\r\n * @name Phaser.Display.Color#gl\r\n * @type {number[]}\r\n * @since 3.0.0\r\n */\r\n this.gl = [ 0, 0, 0, 1 ];\r\n\r\n /**\r\n * Pre-calculated internal color value.\r\n *\r\n * @name Phaser.Display.Color#_color\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this._color = 0;\r\n\r\n /**\r\n * Pre-calculated internal color32 value.\r\n *\r\n * @name Phaser.Display.Color#_color32\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this._color32 = 0;\r\n\r\n /**\r\n * Pre-calculated internal color rgb string value.\r\n *\r\n * @name Phaser.Display.Color#_rgba\r\n * @type {string}\r\n * @private\r\n * @default ''\r\n * @since 3.0.0\r\n */\r\n this._rgba = '';\r\n\r\n this.setTo(red, green, blue, alpha);\r\n },\r\n\r\n /**\r\n * Sets this color to be transparent. Sets all values to zero.\r\n *\r\n * @method Phaser.Display.Color#transparent\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Display.Color} This Color object.\r\n */\r\n transparent: function ()\r\n {\r\n this._locked = true;\r\n\r\n this.red = 0;\r\n this.green = 0;\r\n this.blue = 0;\r\n this.alpha = 0;\r\n\r\n this._locked = false;\r\n\r\n return this.update(true);\r\n },\r\n\r\n /**\r\n * Sets the color of this Color component.\r\n *\r\n * @method Phaser.Display.Color#setTo\r\n * @since 3.0.0\r\n *\r\n * @param {number} red - The red color value. A number between 0 and 255.\r\n * @param {number} green - The green color value. A number between 0 and 255.\r\n * @param {number} blue - The blue color value. A number between 0 and 255.\r\n * @param {number} [alpha=255] - The alpha value. A number between 0 and 255.\r\n * @param {boolean} [updateHSV=true] - Update the HSV values after setting the RGB values?\r\n *\r\n * @return {Phaser.Display.Color} This Color object.\r\n */\r\n setTo: function (red, green, blue, alpha, updateHSV)\r\n {\r\n if (alpha === undefined) { alpha = 255; }\r\n if (updateHSV === undefined) { updateHSV = true; }\r\n\r\n this._locked = true;\r\n\r\n this.red = red;\r\n this.green = green;\r\n this.blue = blue;\r\n this.alpha = alpha;\r\n\r\n this._locked = false;\r\n\r\n return this.update(updateHSV);\r\n },\r\n\r\n /**\r\n * Sets the red, green, blue and alpha GL values of this Color component.\r\n *\r\n * @method Phaser.Display.Color#setGLTo\r\n * @since 3.0.0\r\n *\r\n * @param {number} red - The red color value. A number between 0 and 1.\r\n * @param {number} green - The green color value. A number between 0 and 1.\r\n * @param {number} blue - The blue color value. A number between 0 and 1.\r\n * @param {number} [alpha=1] - The alpha value. A number between 0 and 1.\r\n *\r\n * @return {Phaser.Display.Color} This Color object.\r\n */\r\n setGLTo: function (red, green, blue, alpha)\r\n {\r\n if (alpha === undefined) { alpha = 1; }\r\n\r\n this._locked = true;\r\n\r\n this.redGL = red;\r\n this.greenGL = green;\r\n this.blueGL = blue;\r\n this.alphaGL = alpha;\r\n\r\n this._locked = false;\r\n\r\n return this.update(true);\r\n },\r\n\r\n /**\r\n * Sets the color based on the color object given.\r\n *\r\n * @method Phaser.Display.Color#setFromRGB\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Display.InputColorObject} color - An object containing `r`, `g`, `b` and optionally `a` values in the range 0 to 255.\r\n *\r\n * @return {Phaser.Display.Color} This Color object.\r\n */\r\n setFromRGB: function (color)\r\n {\r\n this._locked = true;\r\n\r\n this.red = color.r;\r\n this.green = color.g;\r\n this.blue = color.b;\r\n\r\n if (color.hasOwnProperty('a'))\r\n {\r\n this.alpha = color.a;\r\n }\r\n\r\n this._locked = false;\r\n\r\n return this.update(true);\r\n },\r\n\r\n /**\r\n * Sets the color based on the hue, saturation and lightness values given.\r\n *\r\n * @method Phaser.Display.Color#setFromHSV\r\n * @since 3.13.0\r\n *\r\n * @param {number} h - The hue, in the range 0 - 1. This is the base color.\r\n * @param {number} s - The saturation, in the range 0 - 1. This controls how much of the hue will be in the final color, where 1 is fully saturated and 0 will give you white.\r\n * @param {number} v - The value, in the range 0 - 1. This controls how dark the color is. Where 1 is as bright as possible and 0 is black.\r\n *\r\n * @return {Phaser.Display.Color} This Color object.\r\n */\r\n setFromHSV: function (h, s, v)\r\n {\r\n return HSVToRGB(h, s, v, this);\r\n },\r\n\r\n /**\r\n * Updates the internal cache values.\r\n *\r\n * @method Phaser.Display.Color#update\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Display.Color} This Color object.\r\n */\r\n update: function (updateHSV)\r\n {\r\n if (updateHSV === undefined) { updateHSV = false; }\r\n\r\n if (this._locked)\r\n {\r\n return this;\r\n }\r\n\r\n var r = this.r;\r\n var g = this.g;\r\n var b = this.b;\r\n var a = this.a;\r\n\r\n this._color = GetColor(r, g, b);\r\n this._color32 = GetColor32(r, g, b, a);\r\n this._rgba = 'rgba(' + r + ',' + g + ',' + b + ',' + (a / 255) + ')';\r\n\r\n if (updateHSV)\r\n {\r\n RGBToHSV(r, g, b, this);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Updates the internal hsv cache values.\r\n *\r\n * @method Phaser.Display.Color#updateHSV\r\n * @private\r\n * @since 3.13.0\r\n *\r\n * @return {Phaser.Display.Color} This Color object.\r\n */\r\n updateHSV: function ()\r\n {\r\n var r = this.r;\r\n var g = this.g;\r\n var b = this.b;\r\n\r\n RGBToHSV(r, g, b, this);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns a new Color component using the values from this one.\r\n *\r\n * @method Phaser.Display.Color#clone\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Display.Color} A new Color object.\r\n */\r\n clone: function ()\r\n {\r\n return new Color(this.r, this.g, this.b, this.a);\r\n },\r\n\r\n /**\r\n * Sets this Color object to be grayscaled based on the shade value given.\r\n *\r\n * @method Phaser.Display.Color#gray\r\n * @since 3.13.0\r\n * \r\n * @param {number} shade - A value between 0 and 255.\r\n *\r\n * @return {Phaser.Display.Color} This Color object.\r\n */\r\n gray: function (shade)\r\n {\r\n return this.setTo(shade, shade, shade);\r\n },\r\n\r\n /**\r\n * Sets this Color object to be a random color between the `min` and `max` values given.\r\n *\r\n * @method Phaser.Display.Color#random\r\n * @since 3.13.0\r\n * \r\n * @param {number} [min=0] - The minimum random color value. Between 0 and 255.\r\n * @param {number} [max=255] - The maximum random color value. Between 0 and 255.\r\n *\r\n * @return {Phaser.Display.Color} This Color object.\r\n */\r\n random: function (min, max)\r\n {\r\n if (min === undefined) { min = 0; }\r\n if (max === undefined) { max = 255; }\r\n\r\n var r = Math.floor(min + Math.random() * (max - min));\r\n var g = Math.floor(min + Math.random() * (max - min));\r\n var b = Math.floor(min + Math.random() * (max - min));\r\n\r\n return this.setTo(r, g, b);\r\n },\r\n\r\n /**\r\n * Sets this Color object to be a random grayscale color between the `min` and `max` values given.\r\n *\r\n * @method Phaser.Display.Color#randomGray\r\n * @since 3.13.0\r\n * \r\n * @param {number} [min=0] - The minimum random color value. Between 0 and 255.\r\n * @param {number} [max=255] - The maximum random color value. Between 0 and 255.\r\n *\r\n * @return {Phaser.Display.Color} This Color object.\r\n */\r\n randomGray: function (min, max)\r\n {\r\n if (min === undefined) { min = 0; }\r\n if (max === undefined) { max = 255; }\r\n\r\n var s = Math.floor(min + Math.random() * (max - min));\r\n\r\n return this.setTo(s, s, s);\r\n },\r\n\r\n /**\r\n * Increase the saturation of this Color by the percentage amount given.\r\n * The saturation is the amount of the base color in the hue.\r\n *\r\n * @method Phaser.Display.Color#saturate\r\n * @since 3.13.0\r\n * \r\n * @param {number} amount - The percentage amount to change this color by. A value between 0 and 100.\r\n *\r\n * @return {Phaser.Display.Color} This Color object.\r\n */\r\n saturate: function (amount)\r\n {\r\n this.s += amount / 100;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Decrease the saturation of this Color by the percentage amount given.\r\n * The saturation is the amount of the base color in the hue.\r\n *\r\n * @method Phaser.Display.Color#desaturate\r\n * @since 3.13.0\r\n * \r\n * @param {number} amount - The percentage amount to change this color by. A value between 0 and 100.\r\n *\r\n * @return {Phaser.Display.Color} This Color object.\r\n */\r\n desaturate: function (amount)\r\n {\r\n this.s -= amount / 100;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Increase the lightness of this Color by the percentage amount given.\r\n *\r\n * @method Phaser.Display.Color#lighten\r\n * @since 3.13.0\r\n * \r\n * @param {number} amount - The percentage amount to change this color by. A value between 0 and 100.\r\n *\r\n * @return {Phaser.Display.Color} This Color object.\r\n */\r\n lighten: function (amount)\r\n {\r\n this.v += amount / 100;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Decrease the lightness of this Color by the percentage amount given.\r\n *\r\n * @method Phaser.Display.Color#darken\r\n * @since 3.13.0\r\n * \r\n * @param {number} amount - The percentage amount to change this color by. A value between 0 and 100.\r\n *\r\n * @return {Phaser.Display.Color} This Color object.\r\n */\r\n darken: function (amount)\r\n {\r\n this.v -= amount / 100;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Brighten this Color by the percentage amount given.\r\n *\r\n * @method Phaser.Display.Color#brighten\r\n * @since 3.13.0\r\n * \r\n * @param {number} amount - The percentage amount to change this color by. A value between 0 and 100.\r\n *\r\n * @return {Phaser.Display.Color} This Color object.\r\n */\r\n brighten: function (amount)\r\n {\r\n var r = this.r;\r\n var g = this.g;\r\n var b = this.b;\r\n\r\n r = Math.max(0, Math.min(255, r - Math.round(255 * - (amount / 100))));\r\n g = Math.max(0, Math.min(255, g - Math.round(255 * - (amount / 100))));\r\n b = Math.max(0, Math.min(255, b - Math.round(255 * - (amount / 100))));\r\n\r\n return this.setTo(r, g, b);\r\n },\r\n\r\n /**\r\n * The color of this Color component, not including the alpha channel.\r\n *\r\n * @name Phaser.Display.Color#color\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n color: {\r\n\r\n get: function ()\r\n {\r\n return this._color;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The color of this Color component, including the alpha channel.\r\n *\r\n * @name Phaser.Display.Color#color32\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n color32: {\r\n\r\n get: function ()\r\n {\r\n return this._color32;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The color of this Color component as a string which can be used in CSS color values.\r\n *\r\n * @name Phaser.Display.Color#rgba\r\n * @type {string}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n rgba: {\r\n\r\n get: function ()\r\n {\r\n return this._rgba;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The red color value, normalized to the range 0 to 1.\r\n *\r\n * @name Phaser.Display.Color#redGL\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n redGL: {\r\n\r\n get: function ()\r\n {\r\n return this.gl[0];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.gl[0] = Math.min(Math.abs(value), 1);\r\n\r\n this.r = Math.floor(this.gl[0] * 255);\r\n\r\n this.update(true);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The green color value, normalized to the range 0 to 1.\r\n *\r\n * @name Phaser.Display.Color#greenGL\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n greenGL: {\r\n\r\n get: function ()\r\n {\r\n return this.gl[1];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.gl[1] = Math.min(Math.abs(value), 1);\r\n\r\n this.g = Math.floor(this.gl[1] * 255);\r\n\r\n this.update(true);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The blue color value, normalized to the range 0 to 1.\r\n *\r\n * @name Phaser.Display.Color#blueGL\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n blueGL: {\r\n\r\n get: function ()\r\n {\r\n return this.gl[2];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.gl[2] = Math.min(Math.abs(value), 1);\r\n\r\n this.b = Math.floor(this.gl[2] * 255);\r\n\r\n this.update(true);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The alpha color value, normalized to the range 0 to 1.\r\n *\r\n * @name Phaser.Display.Color#alphaGL\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n alphaGL: {\r\n\r\n get: function ()\r\n {\r\n return this.gl[3];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.gl[3] = Math.min(Math.abs(value), 1);\r\n\r\n this.a = Math.floor(this.gl[3] * 255);\r\n\r\n this.update();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The red color value, normalized to the range 0 to 255.\r\n *\r\n * @name Phaser.Display.Color#red\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n red: {\r\n\r\n get: function ()\r\n {\r\n return this.r;\r\n },\r\n\r\n set: function (value)\r\n {\r\n value = Math.floor(Math.abs(value));\r\n\r\n this.r = Math.min(value, 255);\r\n\r\n this.gl[0] = value / 255;\r\n\r\n this.update(true);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The green color value, normalized to the range 0 to 255.\r\n *\r\n * @name Phaser.Display.Color#green\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n green: {\r\n\r\n get: function ()\r\n {\r\n return this.g;\r\n },\r\n\r\n set: function (value)\r\n {\r\n value = Math.floor(Math.abs(value));\r\n\r\n this.g = Math.min(value, 255);\r\n\r\n this.gl[1] = value / 255;\r\n\r\n this.update(true);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The blue color value, normalized to the range 0 to 255.\r\n *\r\n * @name Phaser.Display.Color#blue\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n blue: {\r\n\r\n get: function ()\r\n {\r\n return this.b;\r\n },\r\n\r\n set: function (value)\r\n {\r\n value = Math.floor(Math.abs(value));\r\n\r\n this.b = Math.min(value, 255);\r\n\r\n this.gl[2] = value / 255;\r\n\r\n this.update(true);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The alpha color value, normalized to the range 0 to 255.\r\n *\r\n * @name Phaser.Display.Color#alpha\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n alpha: {\r\n\r\n get: function ()\r\n {\r\n return this.a;\r\n },\r\n\r\n set: function (value)\r\n {\r\n value = Math.floor(Math.abs(value));\r\n\r\n this.a = Math.min(value, 255);\r\n\r\n this.gl[3] = value / 255;\r\n\r\n this.update();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The hue color value. A number between 0 and 1.\r\n * This is the base color.\r\n *\r\n * @name Phaser.Display.Color#h\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n h: {\r\n\r\n get: function ()\r\n {\r\n return this._h;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._h = value;\r\n\r\n HSVToRGB(value, this._s, this._v, this);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The saturation color value. A number between 0 and 1.\r\n * This controls how much of the hue will be in the final color, where 1 is fully saturated and 0 will give you white.\r\n *\r\n * @name Phaser.Display.Color#s\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n s: {\r\n\r\n get: function ()\r\n {\r\n return this._s;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._s = value;\r\n\r\n HSVToRGB(this._h, value, this._v, this);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The lightness color value. A number between 0 and 1.\r\n * This controls how dark the color is. Where 1 is as bright as possible and 0 is black.\r\n *\r\n * @name Phaser.Display.Color#v\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n v: {\r\n\r\n get: function ()\r\n {\r\n return this._v;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._v = value;\r\n\r\n HSVToRGB(this._h, this._s, value, this);\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Color;\r\n\n\n/***/ }),\n\n/***/ 92728:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetColor = __webpack_require__(37589);\r\n\r\n/**\r\n * Return an array of Colors in a Color Spectrum.\r\n *\r\n * The spectrum colors flow in the order: red, yellow, green, blue.\r\n *\r\n * By default this function will return an array with 1024 elements in.\r\n *\r\n * However, you can reduce this to a smaller quantity if needed, by specitying the `limit` parameter.\r\n *\r\n * @function Phaser.Display.Color.ColorSpectrum\r\n * @since 3.50.0\r\n *\r\n * @param {number} [limit=1024] - How many colors should be returned? The maximum is 1024 but you can set a smaller quantity if required.\r\n *\r\n * @return {Phaser.Types.Display.ColorObject[]} An array containing `limit` parameter number of elements, where each contains a Color Object.\r\n */\r\nvar ColorSpectrum = function (limit)\r\n{\r\n if (limit === undefined) { limit = 1024; }\r\n\r\n var colors = [];\r\n\r\n var range = 255;\r\n\r\n var i;\r\n var r = 255;\r\n var g = 0;\r\n var b = 0;\r\n\r\n // Red to Yellow\r\n for (i = 0; i <= range; i++)\r\n {\r\n colors.push({ r: r, g: i, b: b, color: GetColor(r, i, b) });\r\n }\r\n\r\n g = 255;\r\n\r\n // Yellow to Green\r\n for (i = range; i >= 0; i--)\r\n {\r\n colors.push({ r: i, g: g, b: b, color: GetColor(i, g, b) });\r\n }\r\n\r\n r = 0;\r\n\r\n // Green to Blue\r\n for (i = 0; i <= range; i++, g--)\r\n {\r\n colors.push({ r: r, g: g, b: i, color: GetColor(r, g, i) });\r\n }\r\n\r\n g = 0;\r\n b = 255;\r\n\r\n // Blue to Red\r\n for (i = 0; i <= range; i++, b--, r++)\r\n {\r\n colors.push({ r: r, g: g, b: b, color: GetColor(r, g, b) });\r\n }\r\n\r\n if (limit === 1024)\r\n {\r\n return colors;\r\n }\r\n else\r\n {\r\n var out = [];\r\n\r\n var t = 0;\r\n var inc = 1024 / limit;\r\n\r\n for (i = 0; i < limit; i++)\r\n {\r\n out.push(colors[Math.floor(t)]);\r\n\r\n t += inc;\r\n }\r\n\r\n return out;\r\n }\r\n};\r\n\r\nmodule.exports = ColorSpectrum;\r\n\n\n/***/ }),\n\n/***/ 91588:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Converts the given color value into an Object containing r,g,b and a properties.\r\n *\r\n * @function Phaser.Display.Color.ColorToRGBA\r\n * @since 3.0.0\r\n *\r\n * @param {number} color - A color value, optionally including the alpha value.\r\n *\r\n * @return {Phaser.Types.Display.ColorObject} An object containing the parsed color values.\r\n */\r\nvar ColorToRGBA = function (color)\r\n{\r\n var output = {\r\n r: color >> 16 & 0xFF,\r\n g: color >> 8 & 0xFF,\r\n b: color & 0xFF,\r\n a: 255\r\n };\r\n\r\n if (color > 16777215)\r\n {\r\n output.a = color >>> 24;\r\n }\r\n\r\n return output;\r\n};\r\n\r\nmodule.exports = ColorToRGBA;\r\n\n\n/***/ }),\n\n/***/ 62957:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Returns a string containing a hex representation of the given color component.\r\n *\r\n * @function Phaser.Display.Color.ComponentToHex\r\n * @since 3.0.0\r\n *\r\n * @param {number} color - The color channel to get the hex value for, must be a value between 0 and 255.\r\n *\r\n * @return {string} A string of length 2 characters, i.e. 255 = ff, 100 = 64.\r\n */\r\nvar ComponentToHex = function (color)\r\n{\r\n var hex = color.toString(16);\r\n\r\n return (hex.length === 1) ? '0' + hex : hex;\r\n};\r\n\r\nmodule.exports = ComponentToHex;\r\n\n\n/***/ }),\n\n/***/ 37589:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Given 3 separate color values this will return an integer representation of it.\r\n *\r\n * @function Phaser.Display.Color.GetColor\r\n * @since 3.0.0\r\n *\r\n * @param {number} red - The red color value. A number between 0 and 255.\r\n * @param {number} green - The green color value. A number between 0 and 255.\r\n * @param {number} blue - The blue color value. A number between 0 and 255.\r\n *\r\n * @return {number} The combined color value.\r\n */\r\nvar GetColor = function (red, green, blue)\r\n{\r\n return red << 16 | green << 8 | blue;\r\n};\r\n\r\nmodule.exports = GetColor;\r\n\n\n/***/ }),\n\n/***/ 1000:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Given an alpha and 3 color values this will return an integer representation of it.\r\n *\r\n * @function Phaser.Display.Color.GetColor32\r\n * @since 3.0.0\r\n *\r\n * @param {number} red - The red color value. A number between 0 and 255.\r\n * @param {number} green - The green color value. A number between 0 and 255.\r\n * @param {number} blue - The blue color value. A number between 0 and 255.\r\n * @param {number} alpha - The alpha color value. A number between 0 and 255.\r\n *\r\n * @return {number} The combined color value.\r\n */\r\nvar GetColor32 = function (red, green, blue, alpha)\r\n{\r\n return alpha << 24 | red << 16 | green << 8 | blue;\r\n};\r\n\r\nmodule.exports = GetColor32;\r\n\n\n/***/ }),\n\n/***/ 62183:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Color = __webpack_require__(40987);\r\nvar HueToComponent = __webpack_require__(89528);\r\n\r\n/**\r\n * Converts HSL (hue, saturation and lightness) values to a Phaser Color object.\r\n *\r\n * @function Phaser.Display.Color.HSLToColor\r\n * @since 3.0.0\r\n *\r\n * @param {number} h - The hue value in the range 0 to 1.\r\n * @param {number} s - The saturation value in the range 0 to 1.\r\n * @param {number} l - The lightness value in the range 0 to 1.\r\n *\r\n * @return {Phaser.Display.Color} A Color object created from the results of the h, s and l values.\r\n */\r\nvar HSLToColor = function (h, s, l)\r\n{\r\n // achromatic by default\r\n var r = l;\r\n var g = l;\r\n var b = l;\r\n\r\n if (s !== 0)\r\n {\r\n var q = (l < 0.5) ? l * (1 + s) : l + s - l * s;\r\n var p = 2 * l - q;\r\n\r\n r = HueToComponent(p, q, h + 1 / 3);\r\n g = HueToComponent(p, q, h);\r\n b = HueToComponent(p, q, h - 1 / 3);\r\n }\r\n\r\n var color = new Color();\r\n\r\n return color.setGLTo(r, g, b, 1);\r\n};\r\n\r\nmodule.exports = HSLToColor;\r\n\n\n/***/ }),\n\n/***/ 27939:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar HSVToRGB = __webpack_require__(7537);\r\n\r\n/**\r\n * Generates an HSV color wheel which is an array of 360 Color objects, for each step of the wheel.\r\n *\r\n * @function Phaser.Display.Color.HSVColorWheel\r\n * @since 3.0.0\r\n *\r\n * @param {number} [s=1] - The saturation, in the range 0 - 1.\r\n * @param {number} [v=1] - The value, in the range 0 - 1.\r\n *\r\n * @return {Phaser.Types.Display.ColorObject[]} An array containing 360 ColorObject elements, where each element contains a Color object corresponding to the color at that point in the HSV color wheel.\r\n */\r\nvar HSVColorWheel = function (s, v)\r\n{\r\n if (s === undefined) { s = 1; }\r\n if (v === undefined) { v = 1; }\r\n\r\n var colors = [];\r\n\r\n for (var c = 0; c <= 359; c++)\r\n {\r\n colors.push(HSVToRGB(c / 359, s, v));\r\n }\r\n\r\n return colors;\r\n};\r\n\r\nmodule.exports = HSVColorWheel;\r\n\n\n/***/ }),\n\n/***/ 7537:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetColor = __webpack_require__(37589);\r\n\r\n/**\r\n * RGB space conversion.\r\n *\r\n * @ignore\r\n *\r\n * @param {number} n - The value to convert.\r\n * @param {number} h - The h value.\r\n * @param {number} s - The s value.\r\n * @param {number} v - The v value.\r\n *\r\n * @return {number} The converted value.\r\n */\r\nfunction ConvertValue (n, h, s, v)\r\n{\r\n var k = (n + h * 6) % 6;\r\n\r\n var min = Math.min(k, 4 - k, 1);\r\n\r\n return Math.round(255 * (v - v * s * Math.max(0, min)));\r\n}\r\n\r\n/**\r\n * Converts a HSV (hue, saturation and value) color set to RGB.\r\n *\r\n * Conversion formula from https://en.wikipedia.org/wiki/HSL_and_HSV\r\n *\r\n * Assumes HSV values are contained in the set [0, 1].\r\n *\r\n * @function Phaser.Display.Color.HSVToRGB\r\n * @since 3.0.0\r\n *\r\n * @param {number} h - The hue, in the range 0 - 1. This is the base color.\r\n * @param {number} s - The saturation, in the range 0 - 1. This controls how much of the hue will be in the final color, where 1 is fully saturated and 0 will give you white.\r\n * @param {number} v - The value, in the range 0 - 1. This controls how dark the color is. Where 1 is as bright as possible and 0 is black.\r\n * @param {(Phaser.Types.Display.ColorObject|Phaser.Display.Color)} [out] - A Color object to store the results in. If not given a new ColorObject will be created.\r\n *\r\n * @return {(Phaser.Types.Display.ColorObject|Phaser.Display.Color)} An object with the red, green and blue values set in the r, g and b properties.\r\n */\r\nvar HSVToRGB = function (h, s, v, out)\r\n{\r\n if (s === undefined) { s = 1; }\r\n if (v === undefined) { v = 1; }\r\n\r\n var r = ConvertValue(5, h, s, v);\r\n var g = ConvertValue(3, h, s, v);\r\n var b = ConvertValue(1, h, s, v);\r\n\r\n if (!out)\r\n {\r\n return { r: r, g: g, b: b, color: GetColor(r, g, b) };\r\n }\r\n else if (out.setTo)\r\n {\r\n return out.setTo(r, g, b, out.alpha, true);\r\n }\r\n else\r\n {\r\n out.r = r;\r\n out.g = g;\r\n out.b = b;\r\n out.color = GetColor(r, g, b);\r\n\r\n return out;\r\n }\r\n};\r\n\r\nmodule.exports = HSVToRGB;\r\n\n\n/***/ }),\n\n/***/ 70238:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Color = __webpack_require__(40987);\r\n\r\n/**\r\n * Converts a hex string into a Phaser Color object.\r\n * \r\n * The hex string can supplied as `'#0033ff'` or the short-hand format of `'#03f'`; it can begin with an optional \"#\" or \"0x\", or be unprefixed.\r\n *\r\n * An alpha channel is _not_ supported.\r\n *\r\n * @function Phaser.Display.Color.HexStringToColor\r\n * @since 3.0.0\r\n *\r\n * @param {string} hex - The hex color value to convert, such as `#0033ff` or the short-hand format: `#03f`.\r\n *\r\n * @return {Phaser.Display.Color} A Color object populated by the values of the given string.\r\n */\r\nvar HexStringToColor = function (hex)\r\n{\r\n var color = new Color();\r\n\r\n // Expand shorthand form (e.g. \"03F\") to full form (e.g. \"0033FF\")\r\n hex = hex.replace(/^(?:#|0x)?([a-f\\d])([a-f\\d])([a-f\\d])$/i, function (m, r, g, b)\r\n {\r\n return r + r + g + g + b + b;\r\n });\r\n\r\n var result = (/^(?:#|0x)?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i).exec(hex);\r\n\r\n if (result)\r\n {\r\n var r = parseInt(result[1], 16);\r\n var g = parseInt(result[2], 16);\r\n var b = parseInt(result[3], 16);\r\n\r\n color.setTo(r, g, b);\r\n }\r\n\r\n return color;\r\n};\r\n\r\nmodule.exports = HexStringToColor;\r\n\n\n/***/ }),\n\n/***/ 89528:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Converts a hue to an RGB color.\r\n * Based on code by Michael Jackson (https://github.com/mjijackson)\r\n *\r\n * @function Phaser.Display.Color.HueToComponent\r\n * @since 3.0.0\r\n *\r\n * @param {number} p\r\n * @param {number} q\r\n * @param {number} t\r\n *\r\n * @return {number} The combined color value.\r\n */\r\nvar HueToComponent = function (p, q, t)\r\n{\r\n if (t < 0)\r\n {\r\n t += 1;\r\n }\r\n\r\n if (t > 1)\r\n {\r\n t -= 1;\r\n }\r\n\r\n if (t < 1 / 6)\r\n {\r\n return p + (q - p) * 6 * t;\r\n }\r\n\r\n if (t < 1 / 2)\r\n {\r\n return q;\r\n }\r\n\r\n if (t < 2 / 3)\r\n {\r\n return p + (q - p) * (2 / 3 - t) * 6;\r\n }\r\n\r\n return p;\r\n};\r\n\r\nmodule.exports = HueToComponent;\r\n\n\n/***/ }),\n\n/***/ 30100:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Color = __webpack_require__(40987);\r\nvar IntegerToRGB = __webpack_require__(90664);\r\n\r\n/**\r\n * Converts the given color value into an instance of a Color object.\r\n *\r\n * @function Phaser.Display.Color.IntegerToColor\r\n * @since 3.0.0\r\n *\r\n * @param {number} input - The color value to convert into a Color object.\r\n *\r\n * @return {Phaser.Display.Color} A Color object.\r\n */\r\nvar IntegerToColor = function (input)\r\n{\r\n var rgb = IntegerToRGB(input);\r\n\r\n return new Color(rgb.r, rgb.g, rgb.b, rgb.a);\r\n};\r\n\r\nmodule.exports = IntegerToColor;\r\n\n\n/***/ }),\n\n/***/ 90664:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Return the component parts of a color as an Object with the properties alpha, red, green, blue.\r\n *\r\n * Alpha will only be set if it exists in the given color (0xAARRGGBB)\r\n *\r\n * @function Phaser.Display.Color.IntegerToRGB\r\n * @since 3.0.0\r\n *\r\n * @param {number} input - The color value to convert into a Color object.\r\n *\r\n * @return {Phaser.Types.Display.ColorObject} An object with the red, green and blue values set in the r, g and b properties.\r\n */\r\nvar IntegerToRGB = function (color)\r\n{\r\n if (color > 16777215)\r\n {\r\n // The color value has an alpha component\r\n return {\r\n a: color >>> 24,\r\n r: color >> 16 & 0xFF,\r\n g: color >> 8 & 0xFF,\r\n b: color & 0xFF\r\n };\r\n }\r\n else\r\n {\r\n return {\r\n a: 255,\r\n r: color >> 16 & 0xFF,\r\n g: color >> 8 & 0xFF,\r\n b: color & 0xFF\r\n };\r\n }\r\n};\r\n\r\nmodule.exports = IntegerToRGB;\r\n\n\n/***/ }),\n\n/***/ 13699:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Linear = __webpack_require__(28915);\r\n\r\n/**\r\n * @namespace Phaser.Display.Color.Interpolate\r\n * @memberof Phaser.Display.Color\r\n * @since 3.0.0\r\n */\r\n\r\n/**\r\n * Interpolates between the two given color ranges over the length supplied.\r\n *\r\n * @function Phaser.Display.Color.Interpolate.RGBWithRGB\r\n * @memberof Phaser.Display.Color.Interpolate\r\n * @static\r\n * @since 3.0.0\r\n *\r\n * @param {number} r1 - Red value.\r\n * @param {number} g1 - Blue value.\r\n * @param {number} b1 - Green value.\r\n * @param {number} r2 - Red value.\r\n * @param {number} g2 - Blue value.\r\n * @param {number} b2 - Green value.\r\n * @param {number} [length=100] - Distance to interpolate over.\r\n * @param {number} [index=0] - Index to start from.\r\n *\r\n * @return {Phaser.Types.Display.ColorObject} An object containing the interpolated color values.\r\n */\r\nvar RGBWithRGB = function (r1, g1, b1, r2, g2, b2, length, index)\r\n{\r\n if (length === undefined) { length = 100; }\r\n if (index === undefined) { index = 0; }\r\n\r\n var t = index / length;\r\n\r\n return {\r\n r: Linear(r1, r2, t),\r\n g: Linear(g1, g2, t),\r\n b: Linear(b1, b2, t)\r\n };\r\n};\r\n\r\n/**\r\n * Interpolates between the two given color objects over the length supplied.\r\n *\r\n * @function Phaser.Display.Color.Interpolate.ColorWithColor\r\n * @memberof Phaser.Display.Color.Interpolate\r\n * @static\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Display.Color} color1 - The first Color object.\r\n * @param {Phaser.Display.Color} color2 - The second Color object.\r\n * @param {number} [length=100] - Distance to interpolate over.\r\n * @param {number} [index=0] - Index to start from.\r\n *\r\n * @return {Phaser.Types.Display.ColorObject} An object containing the interpolated color values.\r\n */\r\nvar ColorWithColor = function (color1, color2, length, index)\r\n{\r\n if (length === undefined) { length = 100; }\r\n if (index === undefined) { index = 0; }\r\n\r\n return RGBWithRGB(color1.r, color1.g, color1.b, color2.r, color2.g, color2.b, length, index);\r\n};\r\n\r\n/**\r\n * Interpolates between the Color object and color values over the length supplied.\r\n *\r\n * @function Phaser.Display.Color.Interpolate.ColorWithRGB\r\n * @memberof Phaser.Display.Color.Interpolate\r\n * @static\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Display.Color} color1 - The first Color object.\r\n * @param {number} r - Red value.\r\n * @param {number} g - Blue value.\r\n * @param {number} b - Green value.\r\n * @param {number} [length=100] - Distance to interpolate over.\r\n * @param {number} [index=0] - Index to start from.\r\n *\r\n * @return {Phaser.Types.Display.ColorObject} An object containing the interpolated color values.\r\n */\r\nvar ColorWithRGB = function (color, r, g, b, length, index)\r\n{\r\n if (length === undefined) { length = 100; }\r\n if (index === undefined) { index = 0; }\r\n\r\n return RGBWithRGB(color.r, color.g, color.b, r, g, b, length, index);\r\n};\r\n\r\nmodule.exports = {\r\n\r\n RGBWithRGB: RGBWithRGB,\r\n ColorWithRGB: ColorWithRGB,\r\n ColorWithColor: ColorWithColor\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 68957:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Color = __webpack_require__(40987);\r\n\r\n/**\r\n * Converts an object containing `r`, `g`, `b` and `a` properties into a Color class instance.\r\n *\r\n * @function Phaser.Display.Color.ObjectToColor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Display.InputColorObject} input - An object containing `r`, `g`, `b` and `a` properties in the range 0 to 255.\r\n *\r\n * @return {Phaser.Display.Color} A Color object.\r\n */\r\nvar ObjectToColor = function (input)\r\n{\r\n return new Color(input.r, input.g, input.b, input.a);\r\n};\r\n\r\nmodule.exports = ObjectToColor;\r\n\n\n/***/ }),\n\n/***/ 87388:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Color = __webpack_require__(40987);\r\n\r\n/**\r\n * Converts a CSS 'web' string into a Phaser Color object.\r\n * \r\n * The web string can be in the format `'rgb(r,g,b)'` or `'rgba(r,g,b,a)'` where r/g/b are in the range [0..255] and a is in the range [0..1].\r\n *\r\n * @function Phaser.Display.Color.RGBStringToColor\r\n * @since 3.0.0\r\n *\r\n * @param {string} rgb - The CSS format color string, using the `rgb` or `rgba` format.\r\n *\r\n * @return {Phaser.Display.Color} A Color object.\r\n */\r\nvar RGBStringToColor = function (rgb)\r\n{\r\n var color = new Color();\r\n\r\n var result = (/^rgba?\\(\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*(?:,\\s*(\\d+(?:\\.\\d+)?))?\\s*\\)$/).exec(rgb.toLowerCase());\r\n\r\n if (result)\r\n {\r\n var r = parseInt(result[1], 10);\r\n var g = parseInt(result[2], 10);\r\n var b = parseInt(result[3], 10);\r\n var a = (result[4] !== undefined) ? parseFloat(result[4]) : 1;\r\n\r\n color.setTo(r, g, b, a * 255);\r\n }\r\n\r\n return color;\r\n};\r\n\r\nmodule.exports = RGBStringToColor;\r\n\n\n/***/ }),\n\n/***/ 87837:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Converts an RGB color value to HSV (hue, saturation and value).\r\n * Conversion formula from http://en.wikipedia.org/wiki/HSL_color_space.\r\n * Assumes RGB values are contained in the set [0, 255] and returns h, s and v in the set [0, 1].\r\n * Based on code by Michael Jackson (https://github.com/mjijackson)\r\n *\r\n * @function Phaser.Display.Color.RGBToHSV\r\n * @since 3.0.0\r\n *\r\n * @param {number} r - The red color value. A number between 0 and 255.\r\n * @param {number} g - The green color value. A number between 0 and 255.\r\n * @param {number} b - The blue color value. A number between 0 and 255.\r\n * @param {(Phaser.Types.Display.HSVColorObject|Phaser.Display.Color)} [out] - An object to store the color values in. If not given an HSV Color Object will be created.\r\n *\r\n * @return {(Phaser.Types.Display.HSVColorObject|Phaser.Display.Color)} An object with the properties `h`, `s` and `v` set.\r\n */\r\nvar RGBToHSV = function (r, g, b, out)\r\n{\r\n if (out === undefined) { out = { h: 0, s: 0, v: 0 }; }\r\n\r\n r /= 255;\r\n g /= 255;\r\n b /= 255;\r\n\r\n var min = Math.min(r, g, b);\r\n var max = Math.max(r, g, b);\r\n var d = max - min;\r\n\r\n // achromatic by default\r\n var h = 0;\r\n var s = (max === 0) ? 0 : d / max;\r\n var v = max;\r\n\r\n if (max !== min)\r\n {\r\n if (max === r)\r\n {\r\n h = (g - b) / d + ((g < b) ? 6 : 0);\r\n }\r\n else if (max === g)\r\n {\r\n h = (b - r) / d + 2;\r\n }\r\n else if (max === b)\r\n {\r\n h = (r - g) / d + 4;\r\n }\r\n\r\n h /= 6;\r\n }\r\n\r\n if (out.hasOwnProperty('_h'))\r\n {\r\n out._h = h;\r\n out._s = s;\r\n out._v = v;\r\n }\r\n else\r\n {\r\n out.h = h;\r\n out.s = s;\r\n out.v = v;\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = RGBToHSV;\r\n\n\n/***/ }),\n\n/***/ 75723:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar ComponentToHex = __webpack_require__(62957);\r\n\r\n/**\r\n * Converts the color values into an HTML compatible color string, prefixed with either `#` or `0x`.\r\n *\r\n * @function Phaser.Display.Color.RGBToString\r\n * @since 3.0.0\r\n *\r\n * @param {number} r - The red color value. A number between 0 and 255.\r\n * @param {number} g - The green color value. A number between 0 and 255.\r\n * @param {number} b - The blue color value. A number between 0 and 255.\r\n * @param {number} [a=255] - The alpha value. A number between 0 and 255.\r\n * @param {string} [prefix=#] - The prefix of the string. Either `#` or `0x`.\r\n *\r\n * @return {string} A string-based representation of the color values.\r\n */\r\nvar RGBToString = function (r, g, b, a, prefix)\r\n{\r\n if (a === undefined) { a = 255; }\r\n if (prefix === undefined) { prefix = '#'; }\r\n\r\n if (prefix === '#')\r\n {\r\n return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1, 7);\r\n }\r\n else\r\n {\r\n return '0x' + ComponentToHex(a) + ComponentToHex(r) + ComponentToHex(g) + ComponentToHex(b);\r\n }\r\n};\r\n\r\nmodule.exports = RGBToString;\r\n\n\n/***/ }),\n\n/***/ 85386:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Between = __webpack_require__(30976);\r\nvar Color = __webpack_require__(40987);\r\n\r\n/**\r\n * Creates a new Color object where the r, g, and b values have been set to random values\r\n * based on the given min max values.\r\n *\r\n * @function Phaser.Display.Color.RandomRGB\r\n * @since 3.0.0\r\n *\r\n * @param {number} [min=0] - The minimum value to set the random range from (between 0 and 255)\r\n * @param {number} [max=255] - The maximum value to set the random range from (between 0 and 255)\r\n *\r\n * @return {Phaser.Display.Color} A Color object.\r\n */\r\nvar RandomRGB = function (min, max)\r\n{\r\n if (min === undefined) { min = 0; }\r\n if (max === undefined) { max = 255; }\r\n\r\n return new Color(Between(min, max), Between(min, max), Between(min, max));\r\n};\r\n\r\nmodule.exports = RandomRGB;\r\n\n\n/***/ }),\n\n/***/ 80333:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar HexStringToColor = __webpack_require__(70238);\r\nvar IntegerToColor = __webpack_require__(30100);\r\nvar ObjectToColor = __webpack_require__(68957);\r\nvar RGBStringToColor = __webpack_require__(87388);\r\n\r\n/**\r\n * Converts the given source color value into an instance of a Color class.\r\n * The value can be either a string, prefixed with `rgb` or a hex string, a number or an Object.\r\n *\r\n * @function Phaser.Display.Color.ValueToColor\r\n * @since 3.0.0\r\n *\r\n * @param {(string|number|Phaser.Types.Display.InputColorObject)} input - The source color value to convert.\r\n *\r\n * @return {Phaser.Display.Color} A Color object.\r\n */\r\nvar ValueToColor = function (input)\r\n{\r\n var t = typeof input;\r\n\r\n switch (t)\r\n {\r\n case 'string':\r\n\r\n if (input.substr(0, 3).toLowerCase() === 'rgb')\r\n {\r\n return RGBStringToColor(input);\r\n }\r\n else\r\n {\r\n return HexStringToColor(input);\r\n }\r\n\r\n case 'number':\r\n\r\n return IntegerToColor(input);\r\n\r\n case 'object':\r\n\r\n return ObjectToColor(input);\r\n }\r\n};\r\n\r\nmodule.exports = ValueToColor;\r\n\n\n/***/ }),\n\n/***/ 3956:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Color = __webpack_require__(40987);\r\n\r\nColor.ColorSpectrum = __webpack_require__(92728);\r\nColor.ColorToRGBA = __webpack_require__(91588);\r\nColor.ComponentToHex = __webpack_require__(62957);\r\nColor.GetColor = __webpack_require__(37589);\r\nColor.GetColor32 = __webpack_require__(1000);\r\nColor.HexStringToColor = __webpack_require__(70238);\r\nColor.HSLToColor = __webpack_require__(62183);\r\nColor.HSVColorWheel = __webpack_require__(27939);\r\nColor.HSVToRGB = __webpack_require__(7537);\r\nColor.HueToComponent = __webpack_require__(89528);\r\nColor.IntegerToColor = __webpack_require__(30100);\r\nColor.IntegerToRGB = __webpack_require__(90664);\r\nColor.Interpolate = __webpack_require__(13699);\r\nColor.ObjectToColor = __webpack_require__(68957);\r\nColor.RandomRGB = __webpack_require__(85386);\r\nColor.RGBStringToColor = __webpack_require__(87388);\r\nColor.RGBToHSV = __webpack_require__(87837);\r\nColor.RGBToString = __webpack_require__(75723);\r\nColor.ValueToColor = __webpack_require__(80333);\r\n\r\nmodule.exports = Color;\r\n\n\n/***/ }),\n\n/***/ 27460:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Display\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Align: __webpack_require__(71926),\r\n BaseShader: __webpack_require__(73894),\r\n Bounds: __webpack_require__(58724),\r\n Canvas: __webpack_require__(26253),\r\n Color: __webpack_require__(3956),\r\n ColorMatrix: __webpack_require__(89422),\r\n Masks: __webpack_require__(69781),\r\n RGB: __webpack_require__(51767)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 6858:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * @classdesc\r\n * A Bitmap Mask combines the alpha (opacity) of a masked pixel with the alpha of another pixel.\r\n * Unlike the Geometry Mask, which is a clipping path, a Bitmap Mask behaves like an alpha mask,\r\n * not a clipping path. It is only available when using the WebGL Renderer.\r\n *\r\n * A Bitmap Mask can use any Game Object or Dynamic Texture to determine the alpha of each pixel of the masked Game Object(s).\r\n * For any given point of a masked Game Object's texture, the pixel's alpha will be multiplied by the alpha\r\n * of the pixel at the same position in the Bitmap Mask's Game Object. The color of the pixel from the\r\n * Bitmap Mask doesn't matter.\r\n *\r\n * For example, if a pure blue pixel with an alpha of 0.95 is masked with a pure red pixel with an\r\n * alpha of 0.5, the resulting pixel will be pure blue with an alpha of 0.475. Naturally, this means\r\n * that a pixel in the mask with an alpha of 0 will hide the corresponding pixel in all masked Game Objects.\r\n * A pixel with an alpha of 1 in the masked Game Object will receive the same alpha as the\r\n * corresponding pixel in the mask.\r\n *\r\n * Note: You cannot combine Bitmap Masks and Blend Modes on the same Game Object. You can, however,\r\n * combine Geometry Masks and Blend Modes together.\r\n *\r\n * The Bitmap Mask's location matches the location of its Game Object, not the location of the\r\n * masked objects. Moving or transforming the underlying Game Object will change the mask\r\n * (and affect the visibility of any masked objects), whereas moving or transforming a masked object\r\n * will not affect the mask.\r\n *\r\n * The Bitmap Mask will not render its Game Object by itself. If the Game Object is not in a\r\n * Scene's display list, it will only be used for the mask and its full texture will not be directly\r\n * visible. Adding the underlying Game Object to a Scene will not cause any problems - it will\r\n * render as a normal Game Object and will also serve as a mask.\r\n *\r\n * @class BitmapMask\r\n * @memberof Phaser.Display.Masks\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this mask is being added.\r\n * @param {(Phaser.GameObjects.GameObject|Phaser.Textures.DynamicTexture)} [maskObject] - The Game Object or Dynamic Texture that will be used as the mask. If `null` it will generate an Image Game Object using the rest of the arguments.\r\n * @param {number} [x] - If creating a Game Object, the horizontal position in the world.\r\n * @param {number} [y] - If creating a Game Object, the vertical position in the world.\r\n * @param {(string|Phaser.Textures.Texture)} [texture] - If creating a Game Object, the key, or instance of the Texture it will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number|Phaser.Textures.Frame)} [frame] - If creating a Game Object, an optional frame from the Texture this Game Object is rendering with.\r\n */\r\nvar BitmapMask = new Class({\r\n\r\n initialize:\r\n\r\n function BitmapMask (scene, maskObject, x, y, texture, frame)\r\n {\r\n if (!maskObject)\r\n {\r\n maskObject = scene.sys.make.image({ x: x, y: y, key: texture, frame: frame, add: false });\r\n }\r\n\r\n /**\r\n * The Game Object that is used as the mask. Must use a texture, such as a Sprite.\r\n *\r\n * @name Phaser.Display.Masks.BitmapMask#bitmapMask\r\n * @type {(Phaser.GameObjects.GameObject|Phaser.Textures.DynamicTexture)}\r\n * @since 3.0.0\r\n */\r\n this.bitmapMask = maskObject;\r\n\r\n /**\r\n * Whether to invert the masks alpha.\r\n *\r\n * If `true`, the alpha of the masking pixel will be inverted before it's multiplied with the masked pixel.\r\n *\r\n * Essentially, this means that a masked area will be visible only if the corresponding area in the mask is invisible.\r\n *\r\n * @name Phaser.Display.Masks.BitmapMask#invertAlpha\r\n * @type {boolean}\r\n * @since 3.1.2\r\n */\r\n this.invertAlpha = false;\r\n\r\n /**\r\n * Is this mask a stencil mask? This is false by default and should not be changed.\r\n *\r\n * @name Phaser.Display.Masks.BitmapMask#isStencil\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.17.0\r\n */\r\n this.isStencil = false;\r\n },\r\n\r\n /**\r\n * Sets a new Game Object or Dynamic Texture for this Bitmap Mask to use.\r\n *\r\n * If a Game Object it must have a texture, such as a Sprite.\r\n *\r\n * You can update the source of the mask as often as you like.\r\n *\r\n * @method Phaser.Display.Masks.BitmapMask#setBitmap\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.GameObjects.GameObject|Phaser.Textures.DynamicTexture)} maskObject - The Game Object or Dynamic Texture that will be used as the mask. If a Game Object, it must have a texture, such as a Sprite.\r\n */\r\n setBitmap: function (maskObject)\r\n {\r\n this.bitmapMask = maskObject;\r\n },\r\n\r\n /**\r\n * Prepares the WebGL Renderer to render a Game Object with this mask applied.\r\n *\r\n * This renders the masking Game Object to the mask framebuffer and switches to the main framebuffer so that the masked Game Object will be rendered to it instead of being rendered directly to the frame.\r\n *\r\n * @method Phaser.Display.Masks.BitmapMask#preRenderWebGL\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)} renderer - The WebGL Renderer to prepare.\r\n * @param {Phaser.GameObjects.GameObject} maskedObject - The masked Game Object which will be drawn.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to render to.\r\n */\r\n preRenderWebGL: function (renderer, maskedObject, camera)\r\n {\r\n renderer.pipelines.BITMAPMASK_PIPELINE.beginMask(this, maskedObject, camera);\r\n },\r\n\r\n /**\r\n * Finalizes rendering of a masked Game Object.\r\n *\r\n * This resets the previously bound framebuffer and switches the WebGL Renderer to the Bitmap Mask Pipeline, which uses a special fragment shader to apply the masking effect.\r\n *\r\n * @method Phaser.Display.Masks.BitmapMask#postRenderWebGL\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)} renderer - The WebGL Renderer to clean up.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to render to.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} [renderTarget] - Optional WebGL RenderTarget.\r\n */\r\n postRenderWebGL: function (renderer, camera, renderTarget)\r\n {\r\n renderer.pipelines.BITMAPMASK_PIPELINE.endMask(this, camera, renderTarget);\r\n },\r\n\r\n /**\r\n * This is a NOOP method. Bitmap Masks are not supported by the Canvas Renderer.\r\n *\r\n * @method Phaser.Display.Masks.BitmapMask#preRenderCanvas\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)} renderer - The Canvas Renderer which would be rendered to.\r\n * @param {Phaser.GameObjects.GameObject} mask - The masked Game Object which would be rendered.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to render to.\r\n */\r\n preRenderCanvas: function ()\r\n {\r\n // NOOP\r\n },\r\n\r\n /**\r\n * This is a NOOP method. Bitmap Masks are not supported by the Canvas Renderer.\r\n *\r\n * @method Phaser.Display.Masks.BitmapMask#postRenderCanvas\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)} renderer - The Canvas Renderer which would be rendered to.\r\n */\r\n postRenderCanvas: function ()\r\n {\r\n // NOOP\r\n },\r\n\r\n /**\r\n * Destroys this BitmapMask and nulls any references it holds.\r\n *\r\n * Note that if a Game Object is currently using this mask it will _not_ automatically detect you have destroyed it,\r\n * so be sure to call `clearMask` on any Game Object using it, before destroying it.\r\n *\r\n * @method Phaser.Display.Masks.BitmapMask#destroy\r\n * @since 3.7.0\r\n */\r\n destroy: function ()\r\n {\r\n this.bitmapMask = null;\r\n }\r\n\r\n});\r\n\r\n/**\r\n * A Bitmap Mask combines the alpha (opacity) of a masked pixel with the alpha of another pixel.\r\n * Unlike the Geometry Mask, which is a clipping path, a Bitmap Mask behaves like an alpha mask,\r\n * not a clipping path. It is only available when using the WebGL Renderer.\r\n *\r\n * A Bitmap Mask can use any Game Object, or Dynamic Texture, to determine the alpha of each pixel of the masked Game Object(s).\r\n * For any given point of a masked Game Object's texture, the pixel's alpha will be multiplied by the alpha\r\n * of the pixel at the same position in the Bitmap Mask's Game Object. The color of the pixel from the\r\n * Bitmap Mask doesn't matter.\r\n *\r\n * For example, if a pure blue pixel with an alpha of 0.95 is masked with a pure red pixel with an\r\n * alpha of 0.5, the resulting pixel will be pure blue with an alpha of 0.475. Naturally, this means\r\n * that a pixel in the mask with an alpha of 0 will hide the corresponding pixel in all masked Game Objects\r\n * A pixel with an alpha of 1 in the masked Game Object will receive the same alpha as the\r\n * corresponding pixel in the mask.\r\n *\r\n * Note: You cannot combine Bitmap Masks and Blend Modes on the same Game Object. You can, however,\r\n * combine Geometry Masks and Blend Modes together.\r\n *\r\n * The Bitmap Mask's location matches the location of its Game Object, not the location of the\r\n * masked objects. Moving or transforming the underlying Game Object will change the mask\r\n * (and affect the visibility of any masked objects), whereas moving or transforming a masked object\r\n * will not affect the mask.\r\n *\r\n * The Bitmap Mask will not render its Game Object by itself. If the Game Object is not in a\r\n * Scene's display list, it will only be used for the mask and its full texture will not be directly\r\n * visible. Adding the underlying Game Object to a Scene will not cause any problems - it will\r\n * render as a normal Game Object and will also serve as a mask.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#bitmapMask\r\n * @since 3.60.0\r\n *\r\n * @param {(Phaser.GameObjects.GameObject|Phaser.Textures.DynamicTexture)} [maskObject] - The Game Object or Texture that will be used as the mask. If `null` it will generate an Image Game Object using the rest of the arguments.\r\n * @param {number} [x] - If creating a Game Object, the horizontal position in the world.\r\n * @param {number} [y] - If creating a Game Object, the vertical position in the world.\r\n * @param {(string|Phaser.Textures.Texture)} [texture] - If creating a Game Object, the key, or instance of the Texture it will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number|Phaser.Textures.Frame)} [frame] - If creating a Game Object, an optional frame from the Texture this Game Object is rendering with.\r\n *\r\n * @return {Phaser.Display.Masks.BitmapMask} The Bitmap Mask that was created.\r\n */\r\nGameObjectFactory.register('bitmapMask', function (maskObject, x, y, key, frame)\r\n{\r\n return new BitmapMask(this.scene, maskObject, x, y, key, frame);\r\n});\r\n\r\nmodule.exports = BitmapMask;\r\n\n\n/***/ }),\n\n/***/ 80661:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n/**\r\n * @classdesc\r\n * A Geometry Mask can be applied to a Game Object to hide any pixels of it which don't intersect\r\n * a visible pixel from the geometry mask. The mask is essentially a clipping path which can only\r\n * make a masked pixel fully visible or fully invisible without changing its alpha (opacity).\r\n *\r\n * A Geometry Mask uses a Graphics Game Object to determine which pixels of the masked Game Object(s)\r\n * should be clipped. For any given point of a masked Game Object's texture, the pixel will only be displayed\r\n * if the Graphics Game Object of the Geometry Mask has a visible pixel at the same position. The color and\r\n * alpha of the pixel from the Geometry Mask do not matter.\r\n *\r\n * The Geometry Mask's location matches the location of its Graphics object, not the location of the masked objects.\r\n * Moving or transforming the underlying Graphics object will change the mask (and affect the visibility\r\n * of any masked objects), whereas moving or transforming a masked object will not affect the mask.\r\n * You can think of the Geometry Mask (or rather, of its Graphics object) as an invisible curtain placed\r\n * in front of all masked objects which has its own visual properties and, naturally, respects the camera's\r\n * visual properties, but isn't affected by and doesn't follow the masked objects by itself.\r\n *\r\n * @class GeometryMask\r\n * @memberof Phaser.Display.Masks\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - This parameter is not used.\r\n * @param {Phaser.GameObjects.Graphics} graphicsGeometry - The Graphics Game Object to use for the Geometry Mask. Doesn't have to be in the Display List.\r\n */\r\nvar GeometryMask = new Class({\r\n\r\n initialize:\r\n\r\n function GeometryMask (scene, graphicsGeometry)\r\n {\r\n /**\r\n * The Graphics object which describes the Geometry Mask.\r\n *\r\n * @name Phaser.Display.Masks.GeometryMask#geometryMask\r\n * @type {Phaser.GameObjects.Graphics}\r\n * @since 3.0.0\r\n */\r\n this.geometryMask = graphicsGeometry;\r\n\r\n /**\r\n * Similar to the BitmapMasks invertAlpha setting this to true will then hide all pixels\r\n * drawn to the Geometry Mask.\r\n *\r\n * This is a WebGL only feature.\r\n *\r\n * @name Phaser.Display.Masks.GeometryMask#invertAlpha\r\n * @type {boolean}\r\n * @since 3.16.0\r\n */\r\n this.invertAlpha = false;\r\n\r\n /**\r\n * Is this mask a stencil mask?\r\n *\r\n * @name Phaser.Display.Masks.GeometryMask#isStencil\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.17.0\r\n */\r\n this.isStencil = true;\r\n\r\n /**\r\n * The current stencil level. This can change dynamically at runtime\r\n * and is set in the applyStencil method.\r\n *\r\n * @name Phaser.Display.Masks.GeometryMask#level\r\n * @type {boolean}\r\n * @since 3.17.0\r\n */\r\n this.level = 0;\r\n },\r\n\r\n /**\r\n * Sets a new Graphics object for the Geometry Mask.\r\n *\r\n * @method Phaser.Display.Masks.GeometryMask#setShape\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Graphics} graphicsGeometry - The Graphics object which will be used for the Geometry Mask.\r\n *\r\n * @return {this} This Geometry Mask\r\n */\r\n setShape: function (graphicsGeometry)\r\n {\r\n this.geometryMask = graphicsGeometry;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the `invertAlpha` property of this Geometry Mask.\r\n *\r\n * Inverting the alpha essentially flips the way the mask works.\r\n *\r\n * This is a WebGL only feature.\r\n *\r\n * @method Phaser.Display.Masks.GeometryMask#setInvertAlpha\r\n * @since 3.17.0\r\n *\r\n * @param {boolean} [value=true] - Invert the alpha of this mask?\r\n *\r\n * @return {this} This Geometry Mask\r\n */\r\n setInvertAlpha: function (value)\r\n {\r\n if (value === undefined) { value = true; }\r\n\r\n this.invertAlpha = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Renders the Geometry Mask's underlying Graphics object to the OpenGL stencil buffer and enables the stencil test, which clips rendered pixels according to the mask.\r\n *\r\n * @method Phaser.Display.Masks.GeometryMask#preRenderWebGL\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - The WebGL Renderer instance to draw to.\r\n * @param {Phaser.GameObjects.GameObject} child - The Game Object being rendered.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera the Game Object is being rendered through.\r\n */\r\n preRenderWebGL: function (renderer, child, camera)\r\n {\r\n var gl = renderer.gl;\r\n\r\n // Force flushing before drawing to stencil buffer\r\n renderer.flush();\r\n\r\n if (renderer.maskStack.length === 0)\r\n {\r\n gl.enable(gl.STENCIL_TEST);\r\n gl.clear(gl.STENCIL_BUFFER_BIT);\r\n\r\n renderer.maskCount = 0;\r\n }\r\n\r\n if (renderer.currentCameraMask.mask !== this)\r\n {\r\n renderer.currentMask.mask = this;\r\n }\r\n\r\n renderer.maskStack.push({ mask: this, camera: camera });\r\n\r\n this.applyStencil(renderer, camera, true);\r\n\r\n renderer.maskCount++;\r\n },\r\n\r\n /**\r\n * Applies the current stencil mask to the renderer.\r\n *\r\n * @method Phaser.Display.Masks.GeometryMask#applyStencil\r\n * @since 3.17.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - The WebGL Renderer instance to draw to.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera the Game Object is being rendered through.\r\n * @param {boolean} inc - Is this an INCR stencil or a DECR stencil?\r\n */\r\n applyStencil: function (renderer, camera, inc)\r\n {\r\n var gl = renderer.gl;\r\n var geometryMask = this.geometryMask;\r\n var level = renderer.maskCount;\r\n var mask = 0xff;\r\n\r\n gl.colorMask(false, false, false, false);\r\n\r\n if (inc)\r\n {\r\n gl.stencilFunc(gl.EQUAL, level, mask);\r\n gl.stencilOp(gl.KEEP, gl.KEEP, gl.INCR);\r\n\r\n // Do this _after_ we set the stencilFunc\r\n level++;\r\n }\r\n else\r\n {\r\n gl.stencilFunc(gl.EQUAL, level + 1, mask);\r\n gl.stencilOp(gl.KEEP, gl.KEEP, gl.DECR);\r\n }\r\n\r\n this.level = level;\r\n\r\n // Write stencil buffer\r\n geometryMask.renderWebGL(renderer, geometryMask, camera);\r\n\r\n renderer.flush();\r\n\r\n gl.colorMask(true, true, true, true);\r\n gl.stencilOp(gl.KEEP, gl.KEEP, gl.KEEP);\r\n\r\n if (this.invertAlpha)\r\n {\r\n gl.stencilFunc(gl.NOTEQUAL, level, mask);\r\n }\r\n else\r\n {\r\n gl.stencilFunc(gl.EQUAL, level, mask);\r\n }\r\n },\r\n\r\n /**\r\n * Flushes all rendered pixels and disables the stencil test of a WebGL context, thus disabling the mask for it.\r\n *\r\n * @method Phaser.Display.Masks.GeometryMask#postRenderWebGL\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - The WebGL Renderer instance to draw flush.\r\n */\r\n postRenderWebGL: function (renderer)\r\n {\r\n var gl = renderer.gl;\r\n\r\n renderer.maskStack.pop();\r\n\r\n renderer.maskCount--;\r\n\r\n // Force flush before disabling stencil test\r\n renderer.flush();\r\n\r\n var current = renderer.currentMask;\r\n\r\n if (renderer.maskStack.length === 0)\r\n {\r\n // If this is the only mask in the stack, flush and disable\r\n current.mask = null;\r\n\r\n gl.disable(gl.STENCIL_TEST);\r\n }\r\n else\r\n {\r\n var prev = renderer.maskStack[renderer.maskStack.length - 1];\r\n\r\n prev.mask.applyStencil(renderer, prev.camera, false);\r\n\r\n if (renderer.currentCameraMask.mask !== prev.mask)\r\n {\r\n current.mask = prev.mask;\r\n current.camera = prev.camera;\r\n }\r\n else\r\n {\r\n current.mask = null;\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Sets the clipping path of a 2D canvas context to the Geometry Mask's underlying Graphics object.\r\n *\r\n * @method Phaser.Display.Masks.GeometryMask#preRenderCanvas\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - The Canvas Renderer instance to set the clipping path on.\r\n * @param {Phaser.GameObjects.GameObject} mask - The Game Object being rendered.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera the Game Object is being rendered through.\r\n */\r\n preRenderCanvas: function (renderer, mask, camera)\r\n {\r\n var geometryMask = this.geometryMask;\r\n\r\n renderer.currentContext.save();\r\n\r\n geometryMask.renderCanvas(renderer, geometryMask, camera, null, null, true);\r\n\r\n renderer.currentContext.clip();\r\n },\r\n\r\n /**\r\n * Restore the canvas context's previous clipping path, thus turning off the mask for it.\r\n *\r\n * @method Phaser.Display.Masks.GeometryMask#postRenderCanvas\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - The Canvas Renderer instance being restored.\r\n */\r\n postRenderCanvas: function (renderer)\r\n {\r\n renderer.currentContext.restore();\r\n },\r\n\r\n /**\r\n * Destroys this GeometryMask and nulls any references it holds.\r\n *\r\n * Note that if a Game Object is currently using this mask it will _not_ automatically detect you have destroyed it,\r\n * so be sure to call `clearMask` on any Game Object using it, before destroying it.\r\n *\r\n * @method Phaser.Display.Masks.GeometryMask#destroy\r\n * @since 3.7.0\r\n */\r\n destroy: function ()\r\n {\r\n this.geometryMask = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = GeometryMask;\r\n\n\n/***/ }),\n\n/***/ 69781:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Display.Masks\r\n */\r\n\r\nmodule.exports = {\r\n\r\n BitmapMask: __webpack_require__(6858),\r\n GeometryMask: __webpack_require__(80661)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 73894:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n/**\r\n * @classdesc\r\n * A BaseShader is a small resource class that contains the data required for a WebGL Shader to be created.\r\n *\r\n * It contains the raw source code to the fragment and vertex shader, as well as an object that defines\r\n * the uniforms the shader requires, if any.\r\n *\r\n * BaseShaders are stored in the Shader Cache, available in a Scene via `this.cache.shaders` and are referenced\r\n * by a unique key-based string. Retrieve them via `this.cache.shaders.get(key)`.\r\n *\r\n * BaseShaders are created automatically by the GLSL File Loader when loading an external shader resource.\r\n * They can also be created at runtime, allowing you to use dynamically generated shader source code.\r\n *\r\n * Default fragment and vertex source is used if not provided in the constructor, setting-up a basic shader,\r\n * suitable for debug rendering.\r\n *\r\n * @class BaseShader\r\n * @memberof Phaser.Display\r\n * @constructor\r\n * @since 3.17.0\r\n *\r\n * @param {string} key - The key of this shader. Must be unique within the shader cache.\r\n * @param {string} [fragmentSrc] - The fragment source for the shader.\r\n * @param {string} [vertexSrc] - The vertex source for the shader.\r\n * @param {any} [uniforms] - Optional object defining the uniforms the shader uses.\r\n */\r\nvar BaseShader = new Class({\r\n\r\n initialize:\r\n\r\n function BaseShader (key, fragmentSrc, vertexSrc, uniforms)\r\n {\r\n if (!fragmentSrc || fragmentSrc === '')\r\n {\r\n fragmentSrc = [\r\n 'precision mediump float;',\r\n\r\n 'uniform vec2 resolution;',\r\n\r\n 'varying vec2 fragCoord;',\r\n\r\n 'void main () {',\r\n ' vec2 uv = fragCoord / resolution.xy;',\r\n ' gl_FragColor = vec4(uv.xyx, 1.0);',\r\n '}'\r\n ].join('\\n');\r\n }\r\n\r\n if (!vertexSrc || vertexSrc === '')\r\n {\r\n vertexSrc = [\r\n 'precision mediump float;',\r\n\r\n 'uniform mat4 uProjectionMatrix;',\r\n 'uniform mat4 uViewMatrix;',\r\n 'uniform vec2 uResolution;',\r\n\r\n 'attribute vec2 inPosition;',\r\n\r\n 'varying vec2 fragCoord;',\r\n 'varying vec2 outTexCoord;',\r\n\r\n 'void main () {',\r\n ' gl_Position = uProjectionMatrix * uViewMatrix * vec4(inPosition, 1.0, 1.0);',\r\n ' fragCoord = vec2(inPosition.x, uResolution.y - inPosition.y);',\r\n ' outTexCoord = vec2(inPosition.x / uResolution.x, fragCoord.y / uResolution.y);',\r\n '}'\r\n ].join('\\n');\r\n }\r\n\r\n if (uniforms === undefined) { uniforms = null; }\r\n\r\n /**\r\n * The key of this shader, unique within the shader cache of this Phaser game instance.\r\n *\r\n * @name Phaser.Display.BaseShader#key\r\n * @type {string}\r\n * @since 3.17.0\r\n */\r\n this.key = key;\r\n\r\n /**\r\n * The source code, as a string, of the fragment shader being used.\r\n *\r\n * @name Phaser.Display.BaseShader#fragmentSrc\r\n * @type {string}\r\n * @since 3.17.0\r\n */\r\n this.fragmentSrc = fragmentSrc;\r\n\r\n /**\r\n * The source code, as a string, of the vertex shader being used.\r\n *\r\n * @name Phaser.Display.BaseShader#vertexSrc\r\n * @type {string}\r\n * @since 3.17.0\r\n */\r\n this.vertexSrc = vertexSrc;\r\n\r\n /**\r\n * The default uniforms for this shader.\r\n *\r\n * @name Phaser.Display.BaseShader#uniforms\r\n * @type {?any}\r\n * @since 3.17.0\r\n */\r\n this.uniforms = uniforms;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = BaseShader;\r\n\n\n/***/ }),\n\n/***/ 40366:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Adds the given element to the DOM. If a parent is provided the element is added as a child of the parent, providing it was able to access it.\r\n * If no parent was given it falls back to using `document.body`.\r\n *\r\n * @function Phaser.DOM.AddToDOM\r\n * @since 3.0.0\r\n *\r\n * @param {HTMLElement} element - The element to be added to the DOM. Usually a Canvas object.\r\n * @param {(string|HTMLElement)} [parent] - The parent in which to add the element. Can be a string which is passed to `getElementById` or an actual DOM object.\r\n *\r\n * @return {HTMLElement} The element that was added to the DOM.\r\n */\r\nvar AddToDOM = function (element, parent)\r\n{\r\n var target;\r\n\r\n if (parent)\r\n {\r\n if (typeof parent === 'string')\r\n {\r\n // Hopefully an element ID\r\n target = document.getElementById(parent);\r\n }\r\n else if (typeof parent === 'object' && parent.nodeType === 1)\r\n {\r\n // Quick test for a HTMLElement\r\n target = parent;\r\n }\r\n }\r\n else if (element.parentElement || parent === null)\r\n {\r\n return element;\r\n }\r\n\r\n // Fallback, covers an invalid ID and a non HTMLElement object\r\n if (!target)\r\n {\r\n target = document.body;\r\n }\r\n\r\n target.appendChild(element);\r\n\r\n return element;\r\n};\r\n\r\nmodule.exports = AddToDOM;\r\n\n\n/***/ }),\n\n/***/ 83719:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar AddToDOM = __webpack_require__(40366);\r\n\r\nvar CreateDOMContainer = function (game)\r\n{\r\n var config = game.config;\r\n\r\n if (!config.parent || !config.domCreateContainer)\r\n {\r\n return;\r\n }\r\n\r\n // DOM Element Container\r\n var div = document.createElement('div');\r\n\r\n div.style.cssText = [\r\n 'display: block;',\r\n 'width: ' + game.scale.width + 'px;',\r\n 'height: ' + game.scale.height + 'px;',\r\n 'padding: 0; margin: 0;',\r\n 'position: absolute;',\r\n 'overflow: hidden;',\r\n 'pointer-events: ' + config.domPointerEvents + ';',\r\n 'transform: scale(1);',\r\n 'transform-origin: left top;'\r\n ].join(' ');\r\n\r\n game.domContainer = div;\r\n\r\n AddToDOM(div, config.parent);\r\n};\r\n\r\nmodule.exports = CreateDOMContainer;\r\n\n\n/***/ }),\n\n/***/ 57264:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar OS = __webpack_require__(25892);\r\n\r\n/**\r\n * @callback ContentLoadedCallback\r\n */\r\n\r\n/**\r\n * Inspects the readyState of the document. If the document is already complete then it invokes the given callback.\r\n * If not complete it sets up several event listeners such as `deviceready`, and once those fire, it invokes the callback.\r\n * Called automatically by the Phaser.Game instance. Should not usually be accessed directly.\r\n *\r\n * @function Phaser.DOM.DOMContentLoaded\r\n * @since 3.0.0\r\n *\r\n * @param {ContentLoadedCallback} callback - The callback to be invoked when the device is ready and the DOM content is loaded.\r\n */\r\nvar DOMContentLoaded = function (callback)\r\n{\r\n if (document.readyState === 'complete' || document.readyState === 'interactive')\r\n {\r\n callback();\r\n\r\n return;\r\n }\r\n\r\n var check = function ()\r\n {\r\n document.removeEventListener('deviceready', check, true);\r\n document.removeEventListener('DOMContentLoaded', check, true);\r\n window.removeEventListener('load', check, true);\r\n\r\n callback();\r\n };\r\n\r\n if (!document.body)\r\n {\r\n window.setTimeout(check, 20);\r\n }\r\n else if (OS.cordova)\r\n {\r\n // Ref. http://docs.phonegap.com/en/3.5.0/cordova_events_events.md.html#deviceready\r\n document.addEventListener('deviceready', check, false);\r\n }\r\n else\r\n {\r\n document.addEventListener('DOMContentLoaded', check, true);\r\n window.addEventListener('load', check, true);\r\n }\r\n};\r\n\r\nmodule.exports = DOMContentLoaded;\r\n\n\n/***/ }),\n\n/***/ 57811:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Attempts to determine the document inner height across iOS and standard devices.\r\n * Based on code by @tylerjpeterson\r\n *\r\n * @function Phaser.DOM.GetInnerHeight\r\n * @since 3.16.0\r\n *\r\n * @param {boolean} iOS - Is this running on iOS?\r\n *\r\n * @return {number} The inner height value.\r\n */\r\nvar GetInnerHeight = function (iOS)\r\n{\r\n\r\n if (!iOS)\r\n {\r\n return window.innerHeight;\r\n }\r\n\r\n var axis = Math.abs(window.orientation);\r\n\r\n var size = { w: 0, h: 0 };\r\n\r\n var ruler = document.createElement('div');\r\n\r\n ruler.setAttribute('style', 'position: fixed; height: 100vh; width: 0; top: 0');\r\n\r\n document.documentElement.appendChild(ruler);\r\n\r\n size.w = (axis === 90) ? ruler.offsetHeight : window.innerWidth;\r\n size.h = (axis === 90) ? window.innerWidth : ruler.offsetHeight;\r\n\r\n document.documentElement.removeChild(ruler);\r\n\r\n ruler = null;\r\n\r\n if (Math.abs(window.orientation) !== 90)\r\n {\r\n return size.h;\r\n }\r\n else\r\n {\r\n return size.w;\r\n }\r\n};\r\n\r\nmodule.exports = GetInnerHeight;\r\n\n\n/***/ }),\n\n/***/ 45818:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(13560);\r\n\r\n/**\r\n * Attempts to determine the screen orientation using the Orientation API.\r\n *\r\n * @function Phaser.DOM.GetScreenOrientation\r\n * @since 3.16.0\r\n *\r\n * @param {number} width - The width of the viewport.\r\n * @param {number} height - The height of the viewport.\r\n *\r\n * @return {string} The orientation.\r\n */\r\nvar GetScreenOrientation = function (width, height)\r\n{\r\n var screen = window.screen;\r\n var orientation = (screen) ? screen.orientation || screen.mozOrientation || screen.msOrientation : false;\r\n\r\n if (orientation && typeof orientation.type === 'string')\r\n {\r\n // Screen Orientation API specification\r\n return orientation.type;\r\n }\r\n else if (typeof orientation === 'string')\r\n {\r\n // moz / ms-orientation are strings\r\n return orientation;\r\n }\r\n\r\n if (typeof window.orientation === 'number')\r\n {\r\n // Do this check first, as iOS supports this, but also has an incomplete window.screen implementation\r\n // This may change by device based on \"natural\" orientation.\r\n return (window.orientation === 0 || window.orientation === 180) ? CONST.ORIENTATION.PORTRAIT : CONST.ORIENTATION.LANDSCAPE;\r\n }\r\n else if (window.matchMedia)\r\n {\r\n if (window.matchMedia('(orientation: portrait)').matches)\r\n {\r\n return CONST.ORIENTATION.PORTRAIT;\r\n }\r\n else if (window.matchMedia('(orientation: landscape)').matches)\r\n {\r\n return CONST.ORIENTATION.LANDSCAPE;\r\n }\r\n }\r\n else\r\n {\r\n return (height > width) ? CONST.ORIENTATION.PORTRAIT : CONST.ORIENTATION.LANDSCAPE;\r\n }\r\n};\r\n\r\nmodule.exports = GetScreenOrientation;\r\n\n\n/***/ }),\n\n/***/ 74403:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Attempts to get the target DOM element based on the given value, which can be either\r\n * a string, in which case it will be looked-up by ID, or an element node. If nothing\r\n * can be found it will return a reference to the document.body.\r\n *\r\n * @function Phaser.DOM.GetTarget\r\n * @since 3.16.0\r\n *\r\n * @param {HTMLElement} element - The DOM element to look-up.\r\n */\r\nvar GetTarget = function (element)\r\n{\r\n var target;\r\n\r\n if (element !== '')\r\n {\r\n if (typeof element === 'string')\r\n {\r\n // Hopefully an element ID\r\n target = document.getElementById(element);\r\n }\r\n else if (element && element.nodeType === 1)\r\n {\r\n // Quick test for a HTMLElement\r\n target = element;\r\n }\r\n }\r\n\r\n // Fallback to the document body. Covers an invalid ID and a non HTMLElement object.\r\n if (!target)\r\n {\r\n // Use the full window\r\n target = document.body;\r\n }\r\n\r\n return target;\r\n};\r\n\r\nmodule.exports = GetTarget;\r\n\n\n/***/ }),\n\n/***/ 56836:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Takes the given data string and parses it as XML.\r\n * First tries to use the window.DOMParser and reverts to the Microsoft.XMLDOM if that fails.\r\n * The parsed XML object is returned, or `null` if there was an error while parsing the data.\r\n *\r\n * @function Phaser.DOM.ParseXML\r\n * @since 3.0.0\r\n *\r\n * @param {string} data - The XML source stored in a string.\r\n *\r\n * @return {?(DOMParser|ActiveXObject)} The parsed XML data, or `null` if the data could not be parsed.\r\n */\r\nvar ParseXML = function (data)\r\n{\r\n var xml = '';\r\n\r\n try\r\n {\r\n if (window['DOMParser'])\r\n {\r\n var domparser = new DOMParser();\r\n xml = domparser.parseFromString(data, 'text/xml');\r\n }\r\n else\r\n {\r\n xml = new ActiveXObject('Microsoft.XMLDOM');\r\n xml.loadXML(data);\r\n }\r\n }\r\n catch (e)\r\n {\r\n xml = null;\r\n }\r\n\r\n if (!xml || !xml.documentElement || xml.getElementsByTagName('parsererror').length)\r\n {\r\n return null;\r\n }\r\n else\r\n {\r\n return xml;\r\n }\r\n};\r\n\r\nmodule.exports = ParseXML;\r\n\n\n/***/ }),\n\n/***/ 35846:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Attempts to remove the element from its parentNode in the DOM.\r\n *\r\n * @function Phaser.DOM.RemoveFromDOM\r\n * @since 3.0.0\r\n *\r\n * @param {HTMLElement} element - The DOM element to remove from its parent node.\r\n */\r\nvar RemoveFromDOM = function (element)\r\n{\r\n if (element.parentNode)\r\n {\r\n element.parentNode.removeChild(element);\r\n }\r\n};\r\n\r\nmodule.exports = RemoveFromDOM;\r\n\n\n/***/ }),\n\n/***/ 43092:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar NOOP = __webpack_require__(29747);\r\n\r\n/**\r\n * @classdesc\r\n * Abstracts away the use of RAF or setTimeOut for the core game update loop.\r\n *\r\n * This is invoked automatically by the Phaser.Game instance.\r\n *\r\n * @class RequestAnimationFrame\r\n * @memberof Phaser.DOM\r\n * @constructor\r\n * @since 3.0.0\r\n */\r\nvar RequestAnimationFrame = new Class({\r\n\r\n initialize:\r\n\r\n function RequestAnimationFrame ()\r\n {\r\n /**\r\n * True if RequestAnimationFrame is running, otherwise false.\r\n *\r\n * @name Phaser.DOM.RequestAnimationFrame#isRunning\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.isRunning = false;\r\n\r\n /**\r\n * The callback to be invoked each step.\r\n *\r\n * @name Phaser.DOM.RequestAnimationFrame#callback\r\n * @type {FrameRequestCallback}\r\n * @since 3.0.0\r\n */\r\n this.callback = NOOP;\r\n\r\n /**\r\n * True if the step is using setTimeout instead of RAF.\r\n *\r\n * @name Phaser.DOM.RequestAnimationFrame#isSetTimeOut\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.isSetTimeOut = false;\r\n\r\n /**\r\n * The setTimeout or RAF callback ID used when canceling them.\r\n *\r\n * @name Phaser.DOM.RequestAnimationFrame#timeOutID\r\n * @type {?number}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.timeOutID = null;\r\n\r\n /**\r\n * The delay rate in ms for setTimeOut.\r\n *\r\n * @name Phaser.DOM.RequestAnimationFrame#delay\r\n * @type {number}\r\n * @default 0\r\n * @since 3.60.0\r\n */\r\n this.delay = 0;\r\n\r\n var _this = this;\r\n\r\n /**\r\n * The RAF step function.\r\n *\r\n * Invokes the callback and schedules another call to requestAnimationFrame.\r\n *\r\n * @name Phaser.DOM.RequestAnimationFrame#step\r\n * @type {FrameRequestCallback}\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The timestamp passed in from RequestAnimationFrame.\r\n */\r\n this.step = function step (time)\r\n {\r\n _this.callback(time);\r\n\r\n if (_this.isRunning)\r\n {\r\n _this.timeOutID = window.requestAnimationFrame(step);\r\n }\r\n };\r\n\r\n /**\r\n * The SetTimeout step function.\r\n *\r\n * Invokes the callback and schedules another call to setTimeout.\r\n *\r\n * @name Phaser.DOM.RequestAnimationFrame#stepTimeout\r\n * @type {function}\r\n * @since 3.0.0\r\n */\r\n this.stepTimeout = function stepTimeout ()\r\n {\r\n if (_this.isRunning)\r\n {\r\n // Make the next request before the callback, so that timing is maintained\r\n _this.timeOutID = window.setTimeout(stepTimeout, _this.delay);\r\n }\r\n\r\n _this.callback(window.performance.now());\r\n };\r\n },\r\n\r\n /**\r\n * Starts the requestAnimationFrame or setTimeout process running.\r\n *\r\n * @method Phaser.DOM.RequestAnimationFrame#start\r\n * @since 3.0.0\r\n *\r\n * @param {FrameRequestCallback} callback - The callback to invoke each step.\r\n * @param {boolean} forceSetTimeOut - Should it use SetTimeout, even if RAF is available?\r\n * @param {number} delay - The setTimeout delay rate in ms.\r\n */\r\n start: function (callback, forceSetTimeOut, delay)\r\n {\r\n if (this.isRunning)\r\n {\r\n return;\r\n }\r\n\r\n this.callback = callback;\r\n\r\n this.isSetTimeOut = forceSetTimeOut;\r\n\r\n this.delay = delay;\r\n\r\n this.isRunning = true;\r\n\r\n this.timeOutID = (forceSetTimeOut) ? window.setTimeout(this.stepTimeout, 0) : window.requestAnimationFrame(this.step);\r\n },\r\n\r\n /**\r\n * Stops the requestAnimationFrame or setTimeout from running.\r\n *\r\n * @method Phaser.DOM.RequestAnimationFrame#stop\r\n * @since 3.0.0\r\n */\r\n stop: function ()\r\n {\r\n this.isRunning = false;\r\n\r\n if (this.isSetTimeOut)\r\n {\r\n clearTimeout(this.timeOutID);\r\n }\r\n else\r\n {\r\n window.cancelAnimationFrame(this.timeOutID);\r\n }\r\n },\r\n\r\n /**\r\n * Stops the step from running and clears the callback reference.\r\n *\r\n * @method Phaser.DOM.RequestAnimationFrame#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.stop();\r\n\r\n this.callback = NOOP;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = RequestAnimationFrame;\r\n\n\n/***/ }),\n\n/***/ 84902:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.DOM\r\n */\r\n\r\nvar Dom = {\r\n\r\n AddToDOM: __webpack_require__(40366),\r\n DOMContentLoaded: __webpack_require__(57264),\r\n GetInnerHeight: __webpack_require__(57811),\r\n GetScreenOrientation: __webpack_require__(45818),\r\n GetTarget: __webpack_require__(74403),\r\n ParseXML: __webpack_require__(56836),\r\n RemoveFromDOM: __webpack_require__(35846),\r\n RequestAnimationFrame: __webpack_require__(43092)\r\n\r\n};\r\n\r\nmodule.exports = Dom;\r\n\n\n/***/ }),\n\n/***/ 47565:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar EE = __webpack_require__(50792);\r\nvar PluginCache = __webpack_require__(37277);\r\n\r\n/**\r\n * @classdesc\r\n * EventEmitter is a Scene Systems plugin compatible version of eventemitter3.\r\n *\r\n * @class EventEmitter\r\n * @memberof Phaser.Events\r\n * @constructor\r\n * @since 3.0.0\r\n */\r\nvar EventEmitter = new Class({\r\n\r\n Extends: EE,\r\n\r\n initialize:\r\n\r\n function EventEmitter ()\r\n {\r\n EE.call(this);\r\n },\r\n\r\n /**\r\n * Removes all listeners.\r\n *\r\n * @method Phaser.Events.EventEmitter#shutdown\r\n * @since 3.0.0\r\n */\r\n shutdown: function ()\r\n {\r\n this.removeAllListeners();\r\n },\r\n\r\n /**\r\n * Removes all listeners.\r\n *\r\n * @method Phaser.Events.EventEmitter#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.removeAllListeners();\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Return an array listing the events for which the emitter has registered listeners.\r\n *\r\n * @method Phaser.Events.EventEmitter#eventNames\r\n * @since 3.0.0\r\n *\r\n * @return {Array.}\r\n */\r\n\r\n/**\r\n * Return the listeners registered for a given event.\r\n *\r\n * @method Phaser.Events.EventEmitter#listeners\r\n * @since 3.0.0\r\n *\r\n * @param {(string|symbol)} event - The event name.\r\n *\r\n * @return {Function[]} The registered listeners.\r\n */\r\n\r\n/**\r\n * Return the number of listeners listening to a given event.\r\n *\r\n * @method Phaser.Events.EventEmitter#listenerCount\r\n * @since 3.0.0\r\n *\r\n * @param {(string|symbol)} event - The event name.\r\n *\r\n * @return {number} The number of listeners.\r\n */\r\n\r\n/**\r\n * Calls each of the listeners registered for a given event.\r\n *\r\n * @method Phaser.Events.EventEmitter#emit\r\n * @since 3.0.0\r\n *\r\n * @param {(string|symbol)} event - The event name.\r\n * @param {...*} [args] - Additional arguments that will be passed to the event handler.\r\n *\r\n * @return {boolean} `true` if the event had listeners, else `false`.\r\n */\r\n\r\n/**\r\n * Add a listener for a given event.\r\n *\r\n * @method Phaser.Events.EventEmitter#on\r\n * @since 3.0.0\r\n *\r\n * @param {(string|symbol)} event - The event name.\r\n * @param {function} fn - The listener function.\r\n * @param {*} [context=this] - The context to invoke the listener with.\r\n *\r\n * @return {this} `this`.\r\n */\r\n\r\n/**\r\n * Add a listener for a given event.\r\n *\r\n * @method Phaser.Events.EventEmitter#addListener\r\n * @since 3.0.0\r\n *\r\n * @param {(string|symbol)} event - The event name.\r\n * @param {function} fn - The listener function.\r\n * @param {*} [context=this] - The context to invoke the listener with.\r\n *\r\n * @return {this} `this`.\r\n */\r\n\r\n/**\r\n * Add a one-time listener for a given event.\r\n *\r\n * @method Phaser.Events.EventEmitter#once\r\n * @since 3.0.0\r\n *\r\n * @param {(string|symbol)} event - The event name.\r\n * @param {function} fn - The listener function.\r\n * @param {*} [context=this] - The context to invoke the listener with.\r\n *\r\n * @return {this} `this`.\r\n */\r\n\r\n/**\r\n * Remove the listeners of a given event.\r\n *\r\n * @method Phaser.Events.EventEmitter#removeListener\r\n * @since 3.0.0\r\n *\r\n * @param {(string|symbol)} event - The event name.\r\n * @param {function} [fn] - Only remove the listeners that match this function.\r\n * @param {*} [context] - Only remove the listeners that have this context.\r\n * @param {boolean} [once] - Only remove one-time listeners.\r\n *\r\n * @return {this} `this`.\r\n */\r\n\r\n/**\r\n * Remove the listeners of a given event.\r\n *\r\n * @method Phaser.Events.EventEmitter#off\r\n * @since 3.0.0\r\n *\r\n * @param {(string|symbol)} event - The event name.\r\n * @param {function} [fn] - Only remove the listeners that match this function.\r\n * @param {*} [context] - Only remove the listeners that have this context.\r\n * @param {boolean} [once] - Only remove one-time listeners.\r\n *\r\n * @return {this} `this`.\r\n */\r\n\r\n/**\r\n * Remove all listeners, or those of the specified event.\r\n *\r\n * @method Phaser.Events.EventEmitter#removeAllListeners\r\n * @since 3.0.0\r\n *\r\n * @param {(string|symbol)} [event] - The event name.\r\n *\r\n * @return {this} `this`.\r\n */\r\n\r\nPluginCache.register('EventEmitter', EventEmitter, 'events');\r\n\r\nmodule.exports = EventEmitter;\r\n\n\n/***/ }),\n\n/***/ 93055:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Events\r\n */\r\n\r\nmodule.exports = { EventEmitter: __webpack_require__(47565) };\r\n\n\n/***/ }),\n\n/***/ 20122:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Controller = __webpack_require__(72898);\r\nvar FX_CONST = __webpack_require__(14811);\r\n\r\n/**\r\n * @classdesc\r\n * The Barrel FX Controller.\r\n *\r\n * This FX controller manages the barrel distortion effect for a Game Object.\r\n *\r\n * A barrel effect allows you to apply either a 'pinch' or 'expand' distortion to\r\n * a Game Object. The amount of the effect can be modified in real-time.\r\n *\r\n * A Barrel effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.preFX.addBarrel();\r\n * sprite.postFX.addBarrel();\r\n * ```\r\n *\r\n * @class Barrel\r\n * @extends Phaser.FX.Controller\r\n * @memberof Phaser.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - A reference to the Game Object that has this fx.\r\n * @param {number} [amount=1] - The amount of distortion applied to the barrel effect. A value of 1 is no distortion. Typically keep this within +- 1.\r\n */\r\nvar Barrel = new Class({\r\n\r\n Extends: Controller,\r\n\r\n initialize:\r\n\r\n function Barrel (gameObject, amount)\r\n {\r\n if (amount === undefined) { amount = 1; }\r\n\r\n Controller.call(this, FX_CONST.BARREL, gameObject);\r\n\r\n /**\r\n * The amount of distortion applied to the barrel effect.\r\n *\r\n * Typically keep this within the range 1 (no distortion) to +- 1.\r\n *\r\n * @name Phaser.FX.Barrel#amount\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.amount = amount;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Barrel;\r\n\n\n/***/ }),\n\n/***/ 32251:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Controller = __webpack_require__(72898);\r\nvar FX_CONST = __webpack_require__(14811);\r\n\r\n/**\r\n * @classdesc\r\n * The Bloom FX Controller.\r\n *\r\n * This FX controller manages the bloom effect for a Game Object.\r\n *\r\n * Bloom is an effect used to reproduce an imaging artifact of real-world cameras.\r\n * The effect produces fringes of light extending from the borders of bright areas in an image,\r\n * contributing to the illusion of an extremely bright light overwhelming the\r\n * camera or eye capturing the scene.\r\n *\r\n * A Bloom effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.preFX.addBloom();\r\n * sprite.postFX.addBloom();\r\n * ```\r\n *\r\n * @class Bloom\r\n * @extends Phaser.FX.Controller\r\n * @memberof Phaser.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - A reference to the Game Object that has this fx.\r\n * @param {number} [color=0xffffff] - The color of the Bloom, as a hex value.\r\n * @param {number} [offsetX=1] - The horizontal offset of the bloom effect.\r\n * @param {number} [offsetY=1] - The vertical offset of the bloom effect.\r\n * @param {number} [blurStrength=1] - The strength of the blur process of the bloom effect.\r\n * @param {number} [strength=1] - The strength of the blend process of the bloom effect.\r\n * @param {number} [steps=4] - The number of steps to run the Bloom effect for. This value should always be an integer.\r\n */\r\nvar Bloom = new Class({\r\n\r\n Extends: Controller,\r\n\r\n initialize:\r\n\r\n function Bloom (gameObject, color, offsetX, offsetY, blurStrength, strength, steps)\r\n {\r\n if (offsetX === undefined) { offsetX = 1; }\r\n if (offsetY === undefined) { offsetY = 1; }\r\n if (blurStrength === undefined) { blurStrength = 1; }\r\n if (strength === undefined) { strength = 1; }\r\n if (steps === undefined) { steps = 4; }\r\n\r\n Controller.call(this, FX_CONST.BLOOM, gameObject);\r\n\r\n /**\r\n * The number of steps to run the Bloom effect for.\r\n *\r\n * This value should always be an integer.\r\n *\r\n * It defaults to 4. The higher the value, the smoother the Bloom,\r\n * but at the cost of exponentially more gl operations.\r\n *\r\n * Keep this to the lowest possible number you can have it, while\r\n * still looking correct for your game.\r\n *\r\n * @name Phaser.FX.Bloom#steps\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.steps = steps;\r\n\r\n /**\r\n * The horizontal offset of the bloom effect.\r\n *\r\n * @name Phaser.FX.Bloom#offsetX\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.offsetX = offsetX;\r\n\r\n /**\r\n * The vertical offset of the bloom effect.\r\n *\r\n * @name Phaser.FX.Bloom#offsetY\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.offsetY = offsetY;\r\n\r\n /**\r\n * The strength of the blur process of the bloom effect.\r\n *\r\n * @name Phaser.FX.Bloom#blurStrength\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.blurStrength = blurStrength;\r\n\r\n /**\r\n * The strength of the blend process of the bloom effect.\r\n *\r\n * @name Phaser.FX.Bloom#strength\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.strength = strength;\r\n\r\n /**\r\n * The internal gl color array.\r\n *\r\n * @name Phaser.FX.Bloom#glcolor\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\n this.glcolor = [ 1, 1, 1 ];\r\n\r\n if (color !== undefined && color !== null)\r\n {\r\n this.color = color;\r\n }\r\n },\r\n\r\n /**\r\n * The color of the bloom as a number value.\r\n *\r\n * @name Phaser.FX.Bloom#color\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n color: {\r\n\r\n get: function ()\r\n {\r\n var color = this.glcolor;\r\n\r\n return (((color[0] * 255) << 16) + ((color[1] * 255) << 8) + (color[2] * 255 | 0));\r\n },\r\n\r\n set: function (value)\r\n {\r\n var color = this.glcolor;\r\n\r\n color[0] = ((value >> 16) & 0xFF) / 255;\r\n color[1] = ((value >> 8) & 0xFF) / 255;\r\n color[2] = (value & 0xFF) / 255;\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Bloom;\r\n\n\n/***/ }),\n\n/***/ 9047:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Controller = __webpack_require__(72898);\r\nvar FX_CONST = __webpack_require__(14811);\r\n\r\n/**\r\n * @classdesc\r\n * The Blur FX Controller.\r\n *\r\n * This FX controller manages the blur effect for a Game Object.\r\n *\r\n * A Gaussian blur is the result of blurring an image by a Gaussian function. It is a widely used effect,\r\n * typically to reduce image noise and reduce detail. The visual effect of this blurring technique is a\r\n * smooth blur resembling that of viewing the image through a translucent screen, distinctly different\r\n * from the bokeh effect produced by an out-of-focus lens or the shadow of an object under usual illumination.\r\n *\r\n * A Blur effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.preFX.addBlur();\r\n * sprite.postFX.addBlur();\r\n * ```\r\n *\r\n * @class Blur\r\n * @extends Phaser.FX.Controller\r\n * @memberof Phaser.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - A reference to the Game Object that has this fx.\r\n * @param {number} [quality=0] - The quality of the blur effect. Can be either 0 for Low Quality, 1 for Medium Quality or 2 for High Quality.\r\n * @param {number} [x=2] - The horizontal offset of the blur effect.\r\n * @param {number} [y=2] - The vertical offset of the blur effect.\r\n * @param {number} [strength=1] - The strength of the blur effect.\r\n * @param {number} [color=0xffffff] - The color of the blur, as a hex value.\r\n * @param {number} [steps=4] - The number of steps to run the blur effect for. This value should always be an integer.\r\n */\r\nvar Blur = new Class({\r\n\r\n Extends: Controller,\r\n\r\n initialize:\r\n\r\n function Blur (gameObject, quality, x, y, strength, color, steps)\r\n {\r\n if (quality === undefined) { quality = 0; }\r\n if (x === undefined) { x = 2; }\r\n if (y === undefined) { y = 2; }\r\n if (strength === undefined) { strength = 1; }\r\n if (steps === undefined) { steps = 4; }\r\n\r\n Controller.call(this, FX_CONST.BLUR, gameObject);\r\n\r\n /**\r\n * The quality of the blur effect.\r\n *\r\n * This can be:\r\n *\r\n * 0 for Low Quality\r\n * 1 for Medium Quality\r\n * 2 for High Quality\r\n *\r\n * The higher the quality, the more complex shader is used\r\n * and the more processing time is spent on the GPU calculating\r\n * the final blur. This value is used in conjunction with the\r\n * `steps` value, as one has a direct impact on the other.\r\n *\r\n * Keep this value as low as you can, while still achieving the\r\n * desired effect you need for your game.\r\n *\r\n * @name Phaser.FX.Blur#quality\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.quality = quality;\r\n\r\n /**\r\n * The horizontal offset of the blur effect.\r\n *\r\n * @name Phaser.FX.Blur#x\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.x = x;\r\n\r\n /**\r\n * The vertical offset of the blur effect.\r\n *\r\n * @name Phaser.FX.Blur#y\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.y = y;\r\n\r\n /**\r\n * The number of steps to run the Blur effect for.\r\n *\r\n * This value should always be an integer.\r\n *\r\n * It defaults to 4. The higher the value, the smoother the blur,\r\n * but at the cost of exponentially more gl operations.\r\n *\r\n * Keep this to the lowest possible number you can have it, while\r\n * still looking correct for your game.\r\n *\r\n * @name Phaser.FX.Blur#steps\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.steps = steps;\r\n\r\n /**\r\n * The strength of the blur effect.\r\n *\r\n * @name Phaser.FX.Blur#strength\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.strength = strength;\r\n\r\n /**\r\n * The internal gl color array.\r\n *\r\n * @name Phaser.FX.Blur#glcolor\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\n this.glcolor = [ 1, 1, 1 ];\r\n\r\n if (color !== undefined && color !== null)\r\n {\r\n this.color = color;\r\n }\r\n },\r\n\r\n /**\r\n * The color of the blur as a number value.\r\n *\r\n * @name Phaser.FX.Blur#color\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n color: {\r\n\r\n get: function ()\r\n {\r\n var color = this.glcolor;\r\n\r\n return (((color[0] * 255) << 16) + ((color[1] * 255) << 8) + (color[2] * 255 | 0));\r\n },\r\n\r\n set: function (value)\r\n {\r\n var color = this.glcolor;\r\n\r\n color[0] = ((value >> 16) & 0xFF) / 255;\r\n color[1] = ((value >> 8) & 0xFF) / 255;\r\n color[2] = (value & 0xFF) / 255;\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Blur;\r\n\n\n/***/ }),\n\n/***/ 27885:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Controller = __webpack_require__(72898);\r\nvar FX_CONST = __webpack_require__(14811);\r\n\r\n/**\r\n * @classdesc\r\n * The Bokeh FX Controller.\r\n *\r\n * This FX controller manages the bokeh effect for a Game Object.\r\n *\r\n * Bokeh refers to a visual effect that mimics the photographic technique of creating a shallow depth of field.\r\n * This effect is used to emphasize the game's main subject or action, by blurring the background or foreground\r\n * elements, resulting in a more immersive and visually appealing experience. It is achieved through rendering\r\n * techniques that simulate the out-of-focus areas, giving a sense of depth and realism to the game's graphics.\r\n *\r\n * This effect can also be used to generate a Tilt Shift effect, which is a technique used to create a miniature\r\n * effect by blurring everything except a small area of the image. This effect is achieved by blurring the\r\n * top and bottom elements, while keeping the center area in focus.\r\n *\r\n * A Bokeh effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.preFX.addBokeh();\r\n * sprite.postFX.addBokeh();\r\n * ```\r\n *\r\n * @class Bokeh\r\n * @extends Phaser.FX.Controller\r\n * @memberof Phaser.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - A reference to the Game Object that has this fx.\r\n * @param {number} [radius=0.5] - The radius of the bokeh effect.\r\n * @param {number} [amount=1] - The amount of the bokeh effect.\r\n * @param {number} [contrast=0.2] - The color contrast of the bokeh effect.\r\n * @param {boolean} [isTiltShift=false] - Is this a bokeh or Tile Shift effect?\r\n * @param {number} [blurX=1] - If Tilt Shift, the amount of horizontal blur.\r\n * @param {number} [blurY=1] - If Tilt Shift, the amount of vertical blur.\r\n * @param {number} [strength=1] - If Tilt Shift, the strength of the blur.\r\n */\r\nvar Bokeh = new Class({\r\n\r\n Extends: Controller,\r\n\r\n initialize:\r\n\r\n function Bokeh (gameObject, radius, amount, contrast, isTiltShift, blurX, blurY, strength)\r\n {\r\n if (radius === undefined) { radius = 0.5; }\r\n if (amount === undefined) { amount = 1; }\r\n if (contrast === undefined) { contrast = 0.2; }\r\n if (isTiltShift === undefined) { isTiltShift = false; }\r\n if (blurX === undefined) { blurX = 1; }\r\n if (blurY === undefined) { blurY = 1; }\r\n if (strength === undefined) { strength = 1; }\r\n\r\n Controller.call(this, FX_CONST.BOKEH, gameObject);\r\n\r\n /**\r\n * The radius of the bokeh effect.\r\n *\r\n * This is a float value, where a radius of 0 will result in no effect being applied,\r\n * and a radius of 1 will result in a strong bokeh. However, you can exceed this value\r\n * for even stronger effects.\r\n *\r\n * @name Phaser.FX.Bokeh#radius\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.radius = radius;\r\n\r\n /**\r\n * The amount, or strength, of the bokeh effect. Defaults to 1.\r\n *\r\n * @name Phaser.FX.Bokeh#amount\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.amount = amount;\r\n\r\n /**\r\n * The color contrast, or brightness, of the bokeh effect. Defaults to 0.2.\r\n *\r\n * @name Phaser.FX.Bokeh#contrast\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.contrast = contrast;\r\n\r\n /**\r\n * Is this a Tilt Shift effect or a standard bokeh effect?\r\n *\r\n * @name Phaser.FX.Bokeh#isTiltShift\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.isTiltShift = isTiltShift;\r\n\r\n /**\r\n * If a Tilt Shift effect this controls the strength of the blur.\r\n *\r\n * Setting this value on a non-Tilt Shift effect will have no effect.\r\n *\r\n * @name Phaser.FX.Bokeh#strength\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.strength = strength;\r\n\r\n /**\r\n * If a Tilt Shift effect this controls the amount of horizontal blur.\r\n *\r\n * Setting this value on a non-Tilt Shift effect will have no effect.\r\n *\r\n * @name Phaser.FX.Bokeh#blurX\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.blurX = blurX;\r\n\r\n /**\r\n * If a Tilt Shift effect this controls the amount of vertical blur.\r\n *\r\n * Setting this value on a non-Tilt Shift effect will have no effect.\r\n *\r\n * @name Phaser.FX.Bokeh#blurY\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.blurY = blurY;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Bokeh;\r\n\n\n/***/ }),\n\n/***/ 12578:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Controller = __webpack_require__(72898);\r\nvar FX_CONST = __webpack_require__(14811);\r\n\r\n/**\r\n * @classdesc\r\n * The Circle FX Controller.\r\n *\r\n * This FX controller manages the circle effect for a Game Object.\r\n *\r\n * This effect will draw a circle around the texture of the Game Object, effectively masking off\r\n * any area outside of the circle without the need for an actual mask. You can control the thickness\r\n * of the circle, the color of the circle and the color of the background, should the texture be\r\n * transparent. You can also control the feathering applied to the circle, allowing for a harsh or soft edge.\r\n *\r\n * Please note that adding this effect to a Game Object will not change the input area or physics body of\r\n * the Game Object, should it have one.\r\n *\r\n * A Circle effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.preFX.addCircle();\r\n * sprite.postFX.addCircle();\r\n * ```\r\n *\r\n * @class Circle\r\n * @extends Phaser.FX.Controller\r\n * @memberof Phaser.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - A reference to the Game Object that has this fx.\r\n * @param {number} [thickness=8] - The width of the circle around the texture, in pixels.\r\n * @param {number} [color=0xfeedb6] - The color of the circular ring, given as a number value.\r\n * @param {number} [backgroundColor=0xff0000] - The color of the background, behind the texture, given as a number value.\r\n * @param {number} [scale=1] - The scale of the circle. The default scale is 1, which is a circle the full size of the underlying texture.\r\n * @param {number} [feather=0.005] - The amount of feathering to apply to the circle from the ring.\r\n */\r\nvar Circle = new Class({\r\n\r\n Extends: Controller,\r\n\r\n initialize:\r\n\r\n function Circle (gameObject, thickness, color, backgroundColor, scale, feather)\r\n {\r\n if (thickness === undefined) { thickness = 8; }\r\n if (scale === undefined) { scale = 1; }\r\n if (feather === undefined) { feather = 0.005; }\r\n\r\n Controller.call(this, FX_CONST.CIRCLE, gameObject);\r\n\r\n /**\r\n * The scale of the circle. The default scale is 1, which is a circle\r\n * the full size of the underlying texture. Reduce this value to create\r\n * a smaller circle, or increase it to create a circle that extends off\r\n * the edges of the texture.\r\n *\r\n * @name Phaser.FX.Circle#scale\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.scale = scale;\r\n\r\n /**\r\n * The amount of feathering to apply to the circle from the ring,\r\n * extending into the middle of the circle. The default is 0.005,\r\n * which is a very low amount of feathering just making sure the ring\r\n * has a smooth edge. Increase this amount to a value such as 0.5\r\n * or 0.025 for larger amounts of feathering.\r\n *\r\n * @name Phaser.FX.Circle#feather\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.feather = feather;\r\n\r\n /**\r\n * The width of the circle around the texture, in pixels. This value\r\n * doesn't factor in the feather, which can extend the thickness\r\n * internally depending on its value.\r\n *\r\n * @name Phaser.FX.Circle#thickness\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.thickness = thickness;\r\n\r\n /**\r\n * The internal gl color array for the ring color.\r\n *\r\n * @name Phaser.FX.Circle#glcolor\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\n this.glcolor = [ 1, 0.2, 0.7 ];\r\n\r\n /**\r\n * The internal gl color array for the background color.\r\n *\r\n * @name Phaser.FX.Circle#glcolor2\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\n this.glcolor2 = [ 1, 0, 0, 0.4 ];\r\n\r\n if (color !== undefined && color !== null)\r\n {\r\n this.color = color;\r\n }\r\n\r\n if (backgroundColor !== undefined && backgroundColor !== null)\r\n {\r\n this.backgroundColor = backgroundColor;\r\n }\r\n },\r\n\r\n /**\r\n * The color of the circular ring, given as a number value.\r\n *\r\n * @name Phaser.FX.Circle#color\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n color: {\r\n\r\n get: function ()\r\n {\r\n var color = this.glcolor;\r\n\r\n return (((color[0] * 255) << 16) + ((color[1] * 255) << 8) + (color[2] * 255 | 0));\r\n },\r\n\r\n set: function (value)\r\n {\r\n var color = this.glcolor;\r\n\r\n color[0] = ((value >> 16) & 0xFF) / 255;\r\n color[1] = ((value >> 8) & 0xFF) / 255;\r\n color[2] = (value & 0xFF) / 255;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The color of the background, behind the texture, given as a number value.\r\n *\r\n * @name Phaser.FX.Circle#backgroundColor\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n backgroundColor: {\r\n\r\n get: function ()\r\n {\r\n var color = this.glcolor2;\r\n\r\n return (((color[0] * 255) << 16) + ((color[1] * 255) << 8) + (color[2] * 255 | 0));\r\n },\r\n\r\n set: function (value)\r\n {\r\n var color = this.glcolor2;\r\n\r\n color[0] = ((value >> 16) & 0xFF) / 255;\r\n color[1] = ((value >> 8) & 0xFF) / 255;\r\n color[2] = (value & 0xFF) / 255;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The alpha of the background, behind the texture, given as a number value.\r\n *\r\n * @name Phaser.FX.Circle#backgroundAlpha\r\n * @type {number}\r\n * @since 3.70.0\r\n */\r\n backgroundAlpha: {\r\n\r\n get: function ()\r\n {\r\n return this.glcolor2[3];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.glcolor2[3] = value;\r\n }\r\n\r\n }\r\n});\r\n\r\nmodule.exports = Circle;\r\n\n\n/***/ }),\n\n/***/ 15802:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar BaseColorMatrix = __webpack_require__(89422);\r\nvar FX_CONST = __webpack_require__(14811);\r\n\r\n/**\r\n * @classdesc\r\n * The ColorMatrix FX Controller.\r\n *\r\n * This FX controller manages the color matrix effect for a Game Object.\r\n *\r\n * The color matrix effect is a visual technique that involves manipulating the colors of an image\r\n * or scene using a mathematical matrix. This process can adjust hue, saturation, brightness, and contrast,\r\n * allowing developers to create various stylistic appearances or mood settings within the game.\r\n * Common applications include simulating different lighting conditions, applying color filters,\r\n * or achieving a specific visual style.\r\n *\r\n * A ColorMatrix effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.preFX.addColorMatrix();\r\n * sprite.postFX.addColorMatrix();\r\n * ```\r\n *\r\n * @class ColorMatrix\r\n * @extends Phaser.Display.ColorMatrix\r\n * @memberof Phaser.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - A reference to the Game Object that has this fx.\r\n */\r\nvar ColorMatrix = new Class({\r\n\r\n Extends: BaseColorMatrix,\r\n\r\n initialize:\r\n\r\n function ColorMatrix (gameObject)\r\n {\r\n BaseColorMatrix.call(this);\r\n\r\n /**\r\n * The FX_CONST type of this effect.\r\n *\r\n * @name Phaser.FX.ColorMatrix#type\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.type = FX_CONST.COLOR_MATRIX;\r\n\r\n /**\r\n * A reference to the Game Object that owns this effect.\r\n *\r\n * @name Phaser.FX.ColorMatrix#gameObject\r\n * @type {Phaser.GameObjects.GameObject}\r\n * @since 3.60.0\r\n */\r\n this.gameObject = gameObject;\r\n\r\n /**\r\n * Toggle this boolean to enable or disable this effect,\r\n * without removing and adding it from the Game Object.\r\n *\r\n * @name Phaser.FX.ColorMatrix#active\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.active = true;\r\n },\r\n\r\n destroy: function ()\r\n {\r\n this.gameObject = null;\r\n this._matrix = null;\r\n this._data = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = ColorMatrix;\r\n\n\n/***/ }),\n\n/***/ 72898:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n/**\r\n * @classdesc\r\n * FX Controller is the base class that all built-in FX use.\r\n *\r\n * You should not normally create an instance of this class directly, but instead use one of the built-in FX that extend it.\r\n *\r\n * @class Controller\r\n * @memberof Phaser.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {number} type - The FX Type constant.\r\n * @param {Phaser.GameObjects.GameObject} gameObject - A reference to the Game Object that has this fx.\r\n */\r\nvar Controller = new Class({\r\n\r\n initialize:\r\n\r\n function Controller (type, gameObject)\r\n {\r\n /**\r\n * The FX_CONST type of this effect.\r\n *\r\n * @name Phaser.FX.Controller#type\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.type = type;\r\n\r\n /**\r\n * A reference to the Game Object that owns this effect.\r\n *\r\n * @name Phaser.FX.Controller#gameObject\r\n * @type {Phaser.GameObjects.GameObject}\r\n * @since 3.60.0\r\n */\r\n this.gameObject = gameObject;\r\n\r\n /**\r\n * Toggle this boolean to enable or disable this effect,\r\n * without removing and adding it from the Game Object.\r\n *\r\n * Only works for Pre FX.\r\n *\r\n * Post FX are always active.\r\n *\r\n * @name Phaser.FX.Controller#active\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.active = true;\r\n },\r\n\r\n /**\r\n * Sets the active state of this FX Controller.\r\n *\r\n * A disabled FX Controller will not be updated.\r\n *\r\n * @method Phaser.FX.Controller#setActive\r\n * @since 3.60.0\r\n *\r\n * @param {boolean} value - `true` to enable this FX Controller, or `false` to disable it.\r\n *\r\n * @return {this} This FX Controller instance.\r\n */\r\n setActive: function (value)\r\n {\r\n this.active = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Destroys this FX Controller.\r\n *\r\n * @method Phaser.FX.Controller#destroy\r\n * @since 3.60.0\r\n */\r\n destroy: function ()\r\n {\r\n this.gameObject = null;\r\n this.active = false;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Controller;\r\n\n\n/***/ }),\n\n/***/ 44553:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Controller = __webpack_require__(72898);\r\nvar FX_CONST = __webpack_require__(14811);\r\n\r\n/**\r\n * @classdesc\r\n * The Displacement FX Controller.\r\n *\r\n * This FX controller manages the displacement effect for a Game Object.\r\n *\r\n * The displacement effect is a visual technique that alters the position of pixels in an image\r\n * or texture based on the values of a displacement map. This effect is used to create the illusion\r\n * of depth, surface irregularities, or distortion in otherwise flat elements. It can be applied to\r\n * characters, objects, or backgrounds to enhance realism, convey movement, or achieve various\r\n * stylistic appearances.\r\n *\r\n * A Displacement effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.preFX.addDisplacement();\r\n * sprite.postFX.addDisplacement();\r\n * ```\r\n *\r\n * @class Displacement\r\n * @extends Phaser.FX.Controller\r\n * @memberof Phaser.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - A reference to the Game Object that has this fx.\r\n * @param {string} [texture='__WHITE'] - The unique string-based key of the texture to use for displacement, which must exist in the Texture Manager.\r\n * @param {number} [x=0.005] - The amount of horizontal displacement to apply. A very small float number, such as 0.005.\r\n * @param {number} [y=0.005] - The amount of vertical displacement to apply. A very small float number, such as 0.005.\r\n */\r\nvar Displacement = new Class({\r\n\r\n Extends: Controller,\r\n\r\n initialize:\r\n\r\n function Displacement (gameObject, texture, x, y)\r\n {\r\n if (texture === undefined) { texture = '__WHITE'; }\r\n if (x === undefined) { x = 0.005; }\r\n if (y === undefined) { y = 0.005; }\r\n\r\n Controller.call(this, FX_CONST.DISPLACEMENT, gameObject);\r\n\r\n /**\r\n * The amount of horizontal displacement to apply.\r\n *\r\n * @name Phaser.FX.Displacement#x\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.x = x;\r\n\r\n /**\r\n * The amount of vertical displacement to apply.\r\n *\r\n * @name Phaser.FX.Displacement#y\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.y = y;\r\n\r\n /**\r\n * The underlying texture used for displacement.\r\n *\r\n * @name Phaser.FX.Displacement#glTexture\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper}\r\n * @since 3.60.0\r\n */\r\n this.glTexture;\r\n\r\n this.setTexture(texture);\r\n },\r\n\r\n /**\r\n * Sets the Texture to be used for the displacement effect.\r\n *\r\n * You can only use a whole texture, not a frame from a texture atlas or sprite sheet.\r\n *\r\n * @method Phaser.FX.Displacement#setTexture\r\n * @since 3.60.0\r\n *\r\n * @param {string} [texture='__WHITE'] - The unique string-based key of the texture to use for displacement, which must exist in the Texture Manager.\r\n *\r\n * @return {this} This FX Controller.\r\n */\r\n setTexture: function (texture)\r\n {\r\n var phaserTexture = this.gameObject.scene.sys.textures.getFrame(texture);\r\n\r\n if (phaserTexture)\r\n {\r\n this.glTexture = phaserTexture.glTexture;\r\n }\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Displacement;\r\n\n\n/***/ }),\n\n/***/ 68531:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Controller = __webpack_require__(72898);\r\nvar FX_CONST = __webpack_require__(14811);\r\n\r\n/**\r\n * @classdesc\r\n * The Glow FX Controller.\r\n *\r\n * This FX controller manages the glow effect for a Game Object.\r\n *\r\n * The glow effect is a visual technique that creates a soft, luminous halo around game objects,\r\n * characters, or UI elements. This effect is used to emphasize importance, enhance visual appeal,\r\n * or convey a sense of energy, magic, or otherworldly presence. The effect can also be set on\r\n * the inside of the Game Object. The color and strength of the glow can be modified.\r\n *\r\n * A Glow effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.preFX.addGlow();\r\n * sprite.postFX.addGlow();\r\n * ```\r\n *\r\n * @class Glow\r\n * @extends Phaser.FX.Controller\r\n * @memberof Phaser.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - A reference to the Game Object that has this fx.\r\n * @param {number} [color=0xffffff] - The color of the glow effect as a number value.\r\n * @param {number} [outerStrength=4] - The strength of the glow outward from the edge of the Sprite.\r\n * @param {number} [innerStrength=0] - The strength of the glow inward from the edge of the Sprite.\r\n * @param {boolean} [knockout=false] - If `true` only the glow is drawn, not the texture itself.\r\n */\r\nvar Glow = new Class({\r\n\r\n Extends: Controller,\r\n\r\n initialize:\r\n\r\n function Glow (gameObject, color, outerStrength, innerStrength, knockout)\r\n {\r\n if (outerStrength === undefined) { outerStrength = 4; }\r\n if (innerStrength === undefined) { innerStrength = 0; }\r\n if (knockout === undefined) { knockout = false; }\r\n\r\n Controller.call(this, FX_CONST.GLOW, gameObject);\r\n\r\n /**\r\n * The strength of the glow outward from the edge of the Sprite.\r\n *\r\n * @name Phaser.FX.Glow#outerStrength\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.outerStrength = outerStrength;\r\n\r\n /**\r\n * The strength of the glow inward from the edge of the Sprite.\r\n *\r\n * @name Phaser.FX.Glow#innerStrength\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.innerStrength = innerStrength;\r\n\r\n /**\r\n * If `true` only the glow is drawn, not the texture itself.\r\n *\r\n * @name Phaser.FX.Glow#knockout\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.knockout = knockout;\r\n\r\n /**\r\n * A 4 element array of gl color values.\r\n *\r\n * @name Phaser.FX.Glow#glcolor\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\n this.glcolor = [ 1, 1, 1, 1 ];\r\n\r\n if (color !== undefined)\r\n {\r\n this.color = color;\r\n }\r\n },\r\n\r\n /**\r\n * The color of the glow as a number value.\r\n *\r\n * @name Phaser.FX.Glow#color\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n color: {\r\n\r\n get: function ()\r\n {\r\n var color = this.glcolor;\r\n\r\n return (((color[0] * 255) << 16) + ((color[1] * 255) << 8) + (color[2] * 255 | 0));\r\n },\r\n\r\n set: function (value)\r\n {\r\n var color = this.glcolor;\r\n\r\n color[0] = ((value >> 16) & 0xFF) / 255;\r\n color[1] = ((value >> 8) & 0xFF) / 255;\r\n color[2] = (value & 0xFF) / 255;\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Glow;\r\n\n\n/***/ }),\n\n/***/ 37102:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Controller = __webpack_require__(72898);\r\nvar FX_CONST = __webpack_require__(14811);\r\n\r\n/**\r\n * @classdesc\r\n * The Gradient FX Controller.\r\n *\r\n * This FX controller manages the gradient effect for a Game Object.\r\n *\r\n * The gradient overlay effect is a visual technique where a smooth color transition is applied over Game Objects,\r\n * such as sprites or UI components. This effect is used to enhance visual appeal, emphasize depth, or create\r\n * stylistic and atmospheric variations. It can also be utilized to convey information, such as representing\r\n * progress or health status through color changes.\r\n *\r\n * A Gradient effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.preFX.addGradient();\r\n * sprite.postFX.addGradient();\r\n * ```\r\n *\r\n * @class Gradient\r\n * @extends Phaser.FX.Controller\r\n * @memberof Phaser.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - A reference to the Game Object that has this fx.\r\n * @param {number} [color1=0xff0000] - The first gradient color, given as a number value.\r\n * @param {number} [color2=0x00ff00] - The second gradient color, given as a number value.\r\n * @param {number} [alpha=0.2] - The alpha value of the gradient effect.\r\n * @param {number} [fromX=0] - The horizontal position the gradient will start from. This value is normalized, between 0 and 1, and is not in pixels.\r\n * @param {number} [fromY=0] - The vertical position the gradient will start from. This value is normalized, between 0 and 1, and is not in pixels.\r\n * @param {number} [toX=0] - The horizontal position the gradient will end at. This value is normalized, between 0 and 1, and is not in pixels.\r\n * @param {number} [toY=1] - The vertical position the gradient will end at. This value is normalized, between 0 and 1, and is not in pixels.\r\n * @param {number} [size=0] - How many 'chunks' the gradient is divided in to, as spread over the entire height of the texture. Leave this at zero for a smooth gradient, or set higher for a more retro chunky effect.\r\n */\r\nvar Gradient = new Class({\r\n\r\n Extends: Controller,\r\n\r\n initialize:\r\n\r\n function Gradient (gameObject, color1, color2, alpha, fromX, fromY, toX, toY, size)\r\n {\r\n if (alpha === undefined) { alpha = 0.2; }\r\n if (fromX === undefined) { fromX = 0; }\r\n if (fromY === undefined) { fromY = 0; }\r\n if (toX === undefined) { toX = 0; }\r\n if (toY === undefined) { toY = 1; }\r\n if (size === undefined) { size = 0; }\r\n\r\n Controller.call(this, FX_CONST.GRADIENT, gameObject);\r\n\r\n /**\r\n * The alpha value of the gradient effect.\r\n *\r\n * @name Phaser.FX.Gradient#alpha\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.alpha = alpha;\r\n\r\n /**\r\n * Sets how many 'chunks' the gradient is divided in to, as spread over the\r\n * entire height of the texture. Leave this at zero for a smooth gradient,\r\n * or set to a higher number to split the gradient into that many sections, giving\r\n * a more banded 'retro' effect.\r\n *\r\n * @name Phaser.FX.Gradient#size\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.size = size;\r\n\r\n /**\r\n * The horizontal position the gradient will start from. This value is normalized, between 0 and 1 and is not in pixels.\r\n *\r\n * @name Phaser.FX.Gradient#fromX\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.fromX = fromX;\r\n\r\n /**\r\n * The vertical position the gradient will start from. This value is normalized, between 0 and 1 and is not in pixels.\r\n *\r\n * @name Phaser.FX.Gradient#fromY\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.fromY = fromY;\r\n\r\n /**\r\n * The horizontal position the gradient will end. This value is normalized, between 0 and 1 and is not in pixels.\r\n *\r\n * @name Phaser.FX.Gradient#toX\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.toX = toX;\r\n\r\n /**\r\n * The vertical position the gradient will end. This value is normalized, between 0 and 1 and is not in pixels.\r\n *\r\n * @name Phaser.FX.Gradient#toY\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.toY = toY;\r\n\r\n /**\r\n * The internal gl color array for the starting color.\r\n *\r\n * @name Phaser.FX.Gradient#glcolor1\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\n this.glcolor1 = [ 255, 0, 0 ];\r\n\r\n /**\r\n * The internal gl color array for the ending color.\r\n *\r\n * @name Phaser.FX.Gradient#glcolor2\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\n this.glcolor2 = [ 0, 255, 0 ];\r\n\r\n if (color1 !== undefined && color1 !== null)\r\n {\r\n this.color1 = color1;\r\n }\r\n\r\n if (color2 !== undefined && color2 !== null)\r\n {\r\n this.color2 = color2;\r\n }\r\n },\r\n\r\n /**\r\n * The first gradient color, given as a number value.\r\n *\r\n * @name Phaser.FX.Gradient#color1\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n color1: {\r\n\r\n get: function ()\r\n {\r\n var color = this.glcolor1;\r\n\r\n return (((color[0]) << 16) + ((color[1]) << 8) + (color[2] | 0));\r\n },\r\n\r\n set: function (value)\r\n {\r\n var color = this.glcolor1;\r\n\r\n color[0] = ((value >> 16) & 0xFF);\r\n color[1] = ((value >> 8) & 0xFF);\r\n color[2] = (value & 0xFF);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The second gradient color, given as a number value.\r\n *\r\n * @name Phaser.FX.Gradient#color2\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n color2: {\r\n\r\n get: function ()\r\n {\r\n var color = this.glcolor2;\r\n\r\n return (((color[0]) << 16) + ((color[1]) << 8) + (color[2] | 0));\r\n },\r\n\r\n set: function (value)\r\n {\r\n var color = this.glcolor2;\r\n\r\n color[0] = ((value >> 16) & 0xFF);\r\n color[1] = ((value >> 8) & 0xFF);\r\n color[2] = (value & 0xFF);\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Gradient;\r\n\n\n/***/ }),\n\n/***/ 86886:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Controller = __webpack_require__(72898);\r\nvar FX_CONST = __webpack_require__(14811);\r\n\r\n/**\r\n * @classdesc\r\n * The Pixelate FX Controller.\r\n *\r\n * This FX controller manages the pixelate effect for a Game Object.\r\n *\r\n * The pixelate effect is a visual technique that deliberately reduces the resolution or detail of an image,\r\n * creating a blocky or mosaic appearance composed of large, visible pixels. This effect can be used for stylistic\r\n * purposes, as a homage to retro gaming, or as a means to obscure certain elements within the game, such as\r\n * during a transition or to censor specific content.\r\n *\r\n * A Pixelate effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.preFX.addPixelate();\r\n * sprite.postFX.addPixelate();\r\n * ```\r\n *\r\n * @class Pixelate\r\n * @extends Phaser.FX.Controller\r\n * @memberof Phaser.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - A reference to the Game Object that has this fx.\r\n * @param {number} [amount=1] - The amount of pixelation to apply.\r\n */\r\nvar Pixelate = new Class({\r\n\r\n Extends: Controller,\r\n\r\n initialize:\r\n\r\n function Pixelate (gameObject, amount)\r\n {\r\n if (amount === undefined) { amount = 1; }\r\n\r\n Controller.call(this, FX_CONST.PIXELATE, gameObject);\r\n\r\n /**\r\n * The amount of pixelation to apply.\r\n *\r\n * @name Phaser.FX.Pixelate#amount\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.amount = amount;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Pixelate;\r\n\n\n/***/ }),\n\n/***/ 92322:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Controller = __webpack_require__(72898);\r\nvar FX_CONST = __webpack_require__(14811);\r\n\r\n/**\r\n * @classdesc\r\n * The Shadow FX Controller.\r\n *\r\n * This FX controller manages the shadow effect for a Game Object.\r\n *\r\n * The shadow effect is a visual technique used to create the illusion of depth and realism by adding darker,\r\n * offset silhouettes or shapes beneath game objects, characters, or environments. These simulated shadows\r\n * help to enhance the visual appeal and immersion, making the 2D game world appear more dynamic and three-dimensional.\r\n *\r\n * A Shadow effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.preFX.addShadow();\r\n * sprite.postFX.addShadow();\r\n * ```\r\n *\r\n * @class Shadow\r\n * @extends Phaser.FX.Controller\r\n * @memberof Phaser.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - A reference to the Game Object that has this fx.\r\n * @param {number} [x=0] - The horizontal offset of the shadow effect.\r\n * @param {number} [y=0] - The vertical offset of the shadow effect.\r\n * @param {number} [decay=0.1] - The amount of decay for shadow effect.\r\n * @param {number} [power=1] - The power of the shadow effect.\r\n * @param {number} [color=0x000000] - The color of the shadow.\r\n * @param {number} [samples=6] - The number of samples that the shadow effect will run for. An integer between 1 and 12.\r\n * @param {number} [intensity=1] - The intensity of the shadow effect.\r\n */\r\nvar Shadow = new Class({\r\n\r\n Extends: Controller,\r\n\r\n initialize:\r\n\r\n function Shadow (gameObject, x, y, decay, power, color, samples, intensity)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (decay === undefined) { decay = 0.1; }\r\n if (power === undefined) { power = 1; }\r\n if (samples === undefined) { samples = 6; }\r\n if (intensity === undefined) { intensity = 1; }\r\n\r\n Controller.call(this, FX_CONST.SHADOW, gameObject);\r\n\r\n /**\r\n * The horizontal offset of the shadow effect.\r\n *\r\n * @name Phaser.FX.Shadow#x\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.x = x;\r\n\r\n /**\r\n * The vertical offset of the shadow effect.\r\n *\r\n * @name Phaser.FX.Shadow#y\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.y = y;\r\n\r\n /**\r\n * The amount of decay for the shadow effect.\r\n *\r\n * @name Phaser.FX.Shadow#decay\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.decay = decay;\r\n\r\n /**\r\n * The power of the shadow effect.\r\n *\r\n * @name Phaser.FX.Shadow#power\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.power = power;\r\n\r\n /**\r\n * The internal gl color array.\r\n *\r\n * @name Phaser.FX.Shadow#glcolor\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\n this.glcolor = [ 0, 0, 0, 1 ];\r\n\r\n /**\r\n * The number of samples that the shadow effect will run for.\r\n *\r\n * This should be an integer with a minimum value of 1 and a maximum of 12.\r\n *\r\n * @name Phaser.FX.Shadow#samples\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.samples = samples;\r\n\r\n /**\r\n * The intensity of the shadow effect.\r\n *\r\n * @name Phaser.FX.Shadow#intensity\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.intensity = intensity;\r\n\r\n if (color !== undefined)\r\n {\r\n this.color = color;\r\n }\r\n },\r\n\r\n /**\r\n * The color of the shadow.\r\n *\r\n * @name Phaser.FX.Shadow#color\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n color: {\r\n\r\n get: function ()\r\n {\r\n var color = this.glcolor;\r\n\r\n return (((color[0] * 255) << 16) + ((color[1] * 255) << 8) + (color[2] * 255 | 0));\r\n },\r\n\r\n set: function (value)\r\n {\r\n var color = this.glcolor;\r\n\r\n color[0] = ((value >> 16) & 0xFF) / 255;\r\n color[1] = ((value >> 8) & 0xFF) / 255;\r\n color[2] = (value & 0xFF) / 255;\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Shadow;\r\n\n\n/***/ }),\n\n/***/ 39563:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Controller = __webpack_require__(72898);\r\nvar FX_CONST = __webpack_require__(14811);\r\n\r\n/**\r\n * @classdesc\r\n * The Shine FX Controller.\r\n *\r\n * This FX controller manages the shift effect for a Game Object.\r\n *\r\n * The shine effect is a visual technique that simulates the appearance of reflective\r\n * or glossy surfaces by passing a light beam across a Game Object. This effect is used to\r\n * enhance visual appeal, emphasize certain features, and create a sense of depth or\r\n * material properties.\r\n *\r\n * A Shine effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.preFX.addShine();\r\n * sprite.postFX.addShine();\r\n * ```\r\n *\r\n * @class Shine\r\n * @extends Phaser.FX.Controller\r\n * @memberof Phaser.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - A reference to the Game Object that has this fx.\r\n * @param {number} [speed=0.5] - The speed of the Shine effect.\r\n * @param {number} [lineWidth=0.5] - The line width of the Shine effect.\r\n * @param {number} [gradient=3] - The gradient of the Shine effect.\r\n * @param {boolean} [reveal=false] - Does this Shine effect reveal or get added to its target?\r\n */\r\nvar Shine = new Class({\r\n\r\n Extends: Controller,\r\n\r\n initialize:\r\n\r\n function Shine (gameObject, speed, lineWidth, gradient, reveal)\r\n {\r\n if (speed === undefined) { speed = 0.5; }\r\n if (lineWidth === undefined) { lineWidth = 0.5; }\r\n if (gradient === undefined) { gradient = 3; }\r\n if (reveal === undefined) { reveal = false; }\r\n\r\n Controller.call(this, FX_CONST.SHINE, gameObject);\r\n\r\n /**\r\n * The speed of the Shine effect.\r\n *\r\n * @name Phaser.FX.Shine#speed\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.speed = speed;\r\n\r\n /**\r\n * The line width of the Shine effect.\r\n *\r\n * @name Phaser.FX.Shine#lineWidth\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.lineWidth = lineWidth;\r\n\r\n /**\r\n * The gradient of the Shine effect.\r\n *\r\n * @name Phaser.FX.Shine#gradient\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.gradient = gradient;\r\n\r\n /**\r\n * Does this Shine effect reveal or get added to its target?\r\n *\r\n * @name Phaser.FX.Shine#reveal\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.reveal = reveal;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Shine;\r\n\n\n/***/ }),\n\n/***/ 56448:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Controller = __webpack_require__(72898);\r\nvar FX_CONST = __webpack_require__(14811);\r\n\r\n/**\r\n * @classdesc\r\n * The Vignette FX Controller.\r\n *\r\n * This FX controller manages the vignette effect for a Game Object.\r\n *\r\n * The vignette effect is a visual technique where the edges of the screen, or a Game Object, gradually darken or blur,\r\n * creating a frame-like appearance. This effect is used to draw the player's focus towards the central action or subject,\r\n * enhance immersion, and provide a cinematic or artistic quality to the game's visuals.\r\n *\r\n * A Vignette effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.preFX.addVignette();\r\n * sprite.postFX.addVignette();\r\n * ```\r\n *\r\n * @class Vignette\r\n * @extends Phaser.FX.Controller\r\n * @memberof Phaser.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - A reference to the Game Object that has this fx.\r\n * @param {number} [x=0.5] - The horizontal offset of the vignette effect. This value is normalized to the range 0 to 1.\r\n * @param {number} [y=0.5] - The vertical offset of the vignette effect. This value is normalized to the range 0 to 1.\r\n * @param {number} [radius=0.5] - The radius of the vignette effect. This value is normalized to the range 0 to 1.\r\n * @param {number} [strength=0.5] - The strength of the vignette effect.\r\n */\r\nvar Vignette = new Class({\r\n\r\n Extends: Controller,\r\n\r\n initialize:\r\n\r\n function Vignette (gameObject, x, y, radius, strength)\r\n {\r\n if (x === undefined) { x = 0.5; }\r\n if (y === undefined) { y = 0.5; }\r\n if (radius === undefined) { radius = 0.5; }\r\n if (strength === undefined) { strength = 0.5; }\r\n\r\n Controller.call(this, FX_CONST.VIGNETTE, gameObject);\r\n\r\n /**\r\n * The horizontal offset of the vignette effect. This value is normalized to the range 0 to 1.\r\n *\r\n * @name Phaser.FX.Vignette#x\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.x = x;\r\n\r\n /**\r\n * The vertical offset of the vignette effect. This value is normalized to the range 0 to 1.\r\n *\r\n * @name Phaser.FX.Vignette#y\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.y = y;\r\n\r\n /**\r\n * The radius of the vignette effect. This value is normalized to the range 0 to 1.\r\n *\r\n * @name Phaser.FX.Vignette#radius\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.radius = radius;\r\n\r\n /**\r\n * The strength of the vignette effect.\r\n *\r\n * @name Phaser.FX.Vignette#strength\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.strength = strength;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Vignette;\r\n\n\n/***/ }),\n\n/***/ 38433:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Controller = __webpack_require__(72898);\r\nvar FX_CONST = __webpack_require__(14811);\r\n\r\n/**\r\n * @classdesc\r\n * The Wipe FX Controller.\r\n *\r\n * This FX controller manages the wipe effect for a Game Object.\r\n *\r\n * The wipe or reveal effect is a visual technique that gradually uncovers or conceals elements\r\n * in the game, such as images, text, or scene transitions. This effect is often used to create\r\n * a sense of progression, reveal hidden content, or provide a smooth and visually appealing transition\r\n * between game states.\r\n *\r\n * You can set both the direction and the axis of the wipe effect. The following combinations are possible:\r\n *\r\n * * left to right: direction 0, axis 0\r\n * * right to left: direction 1, axis 0\r\n * * top to bottom: direction 1, axis 1\r\n * * bottom to top: direction 1, axis 0\r\n *\r\n * It is up to you to set the `progress` value yourself, i.e. via a Tween, in order to transition the effect.\r\n *\r\n * A Wipe effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.preFX.addWipe();\r\n * sprite.postFX.addWipe();\r\n * sprite.preFX.addReveal();\r\n * sprite.postFX.addReveal();\r\n * ```\r\n *\r\n * @class Wipe\r\n * @extends Phaser.FX.Controller\r\n * @memberof Phaser.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - A reference to the Game Object that has this fx.\r\n * @param {number} [wipeWidth=0.1] - The width of the wipe effect. This value is normalized in the range 0 to 1.\r\n * @param {number} [direction=0] - The direction of the wipe effect. Either 0 or 1. Set in conjunction with the axis property.\r\n * @param {number} [axis=0] - The axis of the wipe effect. Either 0 or 1. Set in conjunction with the direction property.\r\n * @param {boolean} [reveal=false] - Is this a reveal (true) or a fade (false) effect?\r\n */\r\nvar Wipe = new Class({\r\n\r\n Extends: Controller,\r\n\r\n initialize:\r\n\r\n function Wipe (gameObject, wipeWidth, direction, axis, reveal)\r\n {\r\n if (wipeWidth === undefined) { wipeWidth = 0.1; }\r\n if (direction === undefined) { direction = 0; }\r\n if (axis === undefined) { axis = 0; }\r\n if (reveal === undefined) { reveal = false; }\r\n\r\n Controller.call(this, FX_CONST.WIPE, gameObject);\r\n\r\n /**\r\n * The progress of the Wipe effect. This value is normalized to the range 0 to 1.\r\n *\r\n * Adjust this value to make the wipe transition (i.e. via a Tween)\r\n *\r\n * @name Phaser.FX.Wipe#progress\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.progress = 0;\r\n\r\n /**\r\n * The width of the wipe effect. This value is normalized in the range 0 to 1.\r\n *\r\n * @name Phaser.FX.Wipe#wipeWidth\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.wipeWidth = wipeWidth;\r\n\r\n /**\r\n * The direction of the wipe effect. Either 0 or 1. Set in conjunction with the axis property.\r\n *\r\n * @name Phaser.FX.Wipe#direction\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.direction = direction;\r\n\r\n /**\r\n * The axis of the wipe effect. Either 0 or 1. Set in conjunction with the direction property.\r\n *\r\n * @name Phaser.FX.Wipe#axis\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.axis = axis;\r\n\r\n /**\r\n * Is this a reveal (true) or a fade (false) effect?\r\n *\r\n * @name Phaser.FX.Wipe#reveal\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.reveal = reveal;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Wipe;\r\n\n\n/***/ }),\n\n/***/ 14811:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar FX_CONST = {\r\n\r\n /**\r\n * The Glow FX.\r\n *\r\n * @name Phaser.FX.GLOW\r\n * @type {number}\r\n * @const\r\n * @since 3.60.0\r\n */\r\n GLOW: 4,\r\n\r\n /**\r\n * The Shadow FX.\r\n *\r\n * @name Phaser.FX.SHADOW\r\n * @type {number}\r\n * @const\r\n * @since 3.60.0\r\n */\r\n SHADOW: 5,\r\n\r\n /**\r\n * The Pixelate FX.\r\n *\r\n * @name Phaser.FX.PIXELATE\r\n * @type {number}\r\n * @const\r\n * @since 3.60.0\r\n */\r\n PIXELATE: 6,\r\n\r\n /**\r\n * The Vignette FX.\r\n *\r\n * @name Phaser.FX.VIGNETTE\r\n * @type {number}\r\n * @const\r\n * @since 3.60.0\r\n */\r\n VIGNETTE: 7,\r\n\r\n /**\r\n * The Shine FX.\r\n *\r\n * @name Phaser.FX.SHINE\r\n * @type {number}\r\n * @const\r\n * @since 3.60.0\r\n */\r\n SHINE: 8,\r\n\r\n /**\r\n * The Blur FX.\r\n *\r\n * @name Phaser.FX.BLUR\r\n * @type {number}\r\n * @const\r\n * @since 3.60.0\r\n */\r\n BLUR: 9, // uses 3 shaders, slots 9, 10 and 11\r\n\r\n /**\r\n * The Gradient FX.\r\n *\r\n * @name Phaser.FX.GRADIENT\r\n * @type {number}\r\n * @const\r\n * @since 3.60.0\r\n */\r\n GRADIENT: 12,\r\n\r\n /**\r\n * The Bloom FX.\r\n *\r\n * @name Phaser.FX.BLOOM\r\n * @type {number}\r\n * @const\r\n * @since 3.60.0\r\n */\r\n BLOOM: 13,\r\n\r\n /**\r\n * The Color Matrix FX.\r\n *\r\n * @name Phaser.FX.COLOR_MATRIX\r\n * @type {number}\r\n * @const\r\n * @since 3.60.0\r\n */\r\n COLOR_MATRIX: 14,\r\n\r\n /**\r\n * The Circle FX.\r\n *\r\n * @name Phaser.FX.CIRCLE\r\n * @type {number}\r\n * @const\r\n * @since 3.60.0\r\n */\r\n CIRCLE: 15,\r\n\r\n /**\r\n * The Barrel FX.\r\n *\r\n * @name Phaser.FX.BARREL\r\n * @type {number}\r\n * @const\r\n * @since 3.60.0\r\n */\r\n BARREL: 16,\r\n\r\n /**\r\n * The Displacement FX.\r\n *\r\n * @name Phaser.FX.DISPLACEMENT\r\n * @type {number}\r\n * @const\r\n * @since 3.60.0\r\n */\r\n DISPLACEMENT: 17,\r\n\r\n /**\r\n * The Wipe FX.\r\n *\r\n * @name Phaser.FX.WIPE\r\n * @type {number}\r\n * @const\r\n * @since 3.60.0\r\n */\r\n WIPE: 18,\r\n\r\n /**\r\n * The Bokeh and Tilt Shift FX.\r\n *\r\n * @name Phaser.FX.BOKEH\r\n * @type {number}\r\n * @const\r\n * @since 3.60.0\r\n */\r\n BOKEH: 19\r\n\r\n};\r\n\r\nmodule.exports = FX_CONST;\r\n\n\n/***/ }),\n\n/***/ 66064:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Extend = __webpack_require__(79291);\r\nvar FX_CONST = __webpack_require__(14811);\r\n\r\n/**\r\n * @namespace Phaser.FX\r\n */\r\n\r\nvar FX = {\r\n\r\n Barrel: __webpack_require__(20122),\r\n Controller: __webpack_require__(72898),\r\n Bloom: __webpack_require__(32251),\r\n Blur: __webpack_require__(9047),\r\n Bokeh: __webpack_require__(27885),\r\n Circle: __webpack_require__(12578),\r\n ColorMatrix: __webpack_require__(15802),\r\n Displacement: __webpack_require__(44553),\r\n Glow: __webpack_require__(68531),\r\n Gradient: __webpack_require__(37102),\r\n Pixelate: __webpack_require__(86886),\r\n Shadow: __webpack_require__(92322),\r\n Shine: __webpack_require__(39563),\r\n Vignette: __webpack_require__(56448),\r\n Wipe: __webpack_require__(38433)\r\n\r\n};\r\n\r\nFX = Extend(false, FX, FX_CONST);\r\n\r\nmodule.exports = FX;\r\n\n\n/***/ }),\n\n/***/ 25305:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BlendModes = __webpack_require__(10312);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\n\r\n/**\r\n * Builds a Game Object using the provided configuration object.\r\n *\r\n * @function Phaser.GameObjects.BuildGameObject\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - A reference to the Scene.\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The initial GameObject.\r\n * @param {Phaser.Types.GameObjects.GameObjectConfig} config - The config to build the GameObject with.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The built Game Object.\r\n */\r\nvar BuildGameObject = function (scene, gameObject, config)\r\n{\r\n // Position\r\n\r\n gameObject.x = GetAdvancedValue(config, 'x', 0);\r\n gameObject.y = GetAdvancedValue(config, 'y', 0);\r\n gameObject.depth = GetAdvancedValue(config, 'depth', 0);\r\n\r\n // Flip\r\n\r\n gameObject.flipX = GetAdvancedValue(config, 'flipX', false);\r\n gameObject.flipY = GetAdvancedValue(config, 'flipY', false);\r\n\r\n // Scale\r\n // Either: { scale: 2 } or { scale: { x: 2, y: 2 }}\r\n\r\n var scale = GetAdvancedValue(config, 'scale', null);\r\n\r\n if (typeof scale === 'number')\r\n {\r\n gameObject.setScale(scale);\r\n }\r\n else if (scale !== null)\r\n {\r\n gameObject.scaleX = GetAdvancedValue(scale, 'x', 1);\r\n gameObject.scaleY = GetAdvancedValue(scale, 'y', 1);\r\n }\r\n\r\n // ScrollFactor\r\n // Either: { scrollFactor: 2 } or { scrollFactor: { x: 2, y: 2 }}\r\n\r\n var scrollFactor = GetAdvancedValue(config, 'scrollFactor', null);\r\n\r\n if (typeof scrollFactor === 'number')\r\n {\r\n gameObject.setScrollFactor(scrollFactor);\r\n }\r\n else if (scrollFactor !== null)\r\n {\r\n gameObject.scrollFactorX = GetAdvancedValue(scrollFactor, 'x', 1);\r\n gameObject.scrollFactorY = GetAdvancedValue(scrollFactor, 'y', 1);\r\n }\r\n\r\n // Rotation\r\n\r\n gameObject.rotation = GetAdvancedValue(config, 'rotation', 0);\r\n\r\n var angle = GetAdvancedValue(config, 'angle', null);\r\n\r\n if (angle !== null)\r\n {\r\n gameObject.angle = angle;\r\n }\r\n\r\n // Alpha\r\n\r\n gameObject.alpha = GetAdvancedValue(config, 'alpha', 1);\r\n\r\n // Origin\r\n // Either: { origin: 0.5 } or { origin: { x: 0.5, y: 0.5 }}\r\n\r\n var origin = GetAdvancedValue(config, 'origin', null);\r\n\r\n if (typeof origin === 'number')\r\n {\r\n gameObject.setOrigin(origin);\r\n }\r\n else if (origin !== null)\r\n {\r\n var ox = GetAdvancedValue(origin, 'x', 0.5);\r\n var oy = GetAdvancedValue(origin, 'y', 0.5);\r\n\r\n gameObject.setOrigin(ox, oy);\r\n }\r\n\r\n // BlendMode\r\n\r\n gameObject.blendMode = GetAdvancedValue(config, 'blendMode', BlendModes.NORMAL);\r\n\r\n // Visible\r\n\r\n gameObject.visible = GetAdvancedValue(config, 'visible', true);\r\n\r\n // Add to Scene\r\n\r\n var add = GetAdvancedValue(config, 'add', true);\r\n\r\n if (add)\r\n {\r\n scene.sys.displayList.add(gameObject);\r\n }\r\n\r\n if (gameObject.preUpdate)\r\n {\r\n scene.sys.updateList.add(gameObject);\r\n }\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = BuildGameObject;\r\n\n\n/***/ }),\n\n/***/ 13059:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\n\r\n/**\r\n * Adds an Animation component to a Sprite and populates it based on the given config.\r\n *\r\n * @function Phaser.GameObjects.BuildGameObjectAnimation\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Sprite} sprite - The sprite to add an Animation component to.\r\n * @param {object} config - The animation config.\r\n *\r\n * @return {Phaser.GameObjects.Sprite} The updated Sprite.\r\n */\r\nvar BuildGameObjectAnimation = function (sprite, config)\r\n{\r\n var animConfig = GetAdvancedValue(config, 'anims', null);\r\n\r\n if (animConfig === null)\r\n {\r\n return sprite;\r\n }\r\n\r\n if (typeof animConfig === 'string')\r\n {\r\n // { anims: 'key' }\r\n sprite.anims.play(animConfig);\r\n }\r\n else if (typeof animConfig === 'object')\r\n {\r\n // { anims: {\r\n // key: string\r\n // startFrame: [string|number]\r\n // delay: [float]\r\n // repeat: [integer]\r\n // repeatDelay: [float]\r\n // yoyo: [boolean]\r\n // play: [boolean]\r\n // delayedPlay: [boolean]\r\n // }\r\n // }\r\n\r\n var anims = sprite.anims;\r\n\r\n var key = GetAdvancedValue(animConfig, 'key', undefined);\r\n\r\n if (key)\r\n {\r\n var startFrame = GetAdvancedValue(animConfig, 'startFrame', undefined);\r\n\r\n var delay = GetAdvancedValue(animConfig, 'delay', 0);\r\n var repeat = GetAdvancedValue(animConfig, 'repeat', 0);\r\n var repeatDelay = GetAdvancedValue(animConfig, 'repeatDelay', 0);\r\n var yoyo = GetAdvancedValue(animConfig, 'yoyo', false);\r\n\r\n var play = GetAdvancedValue(animConfig, 'play', false);\r\n var delayedPlay = GetAdvancedValue(animConfig, 'delayedPlay', 0);\r\n\r\n var playConfig = {\r\n key: key,\r\n delay: delay,\r\n repeat: repeat,\r\n repeatDelay: repeatDelay,\r\n yoyo: yoyo,\r\n startFrame: startFrame\r\n };\r\n\r\n if (play)\r\n {\r\n anims.play(playConfig);\r\n }\r\n else if (delayedPlay > 0)\r\n {\r\n anims.playAfterDelay(playConfig, delayedPlay);\r\n }\r\n else\r\n {\r\n anims.load(playConfig);\r\n }\r\n }\r\n }\r\n\r\n return sprite;\r\n};\r\n\r\nmodule.exports = BuildGameObjectAnimation;\r\n\n\n/***/ }),\n\n/***/ 8050:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar List = __webpack_require__(73162);\r\nvar PluginCache = __webpack_require__(37277);\r\nvar GameObjectEvents = __webpack_require__(51708);\r\nvar SceneEvents = __webpack_require__(44594);\r\nvar StableSort = __webpack_require__(19186);\r\n\r\n/**\r\n * @classdesc\r\n * The Display List plugin.\r\n *\r\n * Display Lists belong to a Scene and maintain the list of Game Objects to render every frame.\r\n *\r\n * Some of these Game Objects may also be part of the Scene's [Update List]{@link Phaser.GameObjects.UpdateList}, for updating.\r\n *\r\n * @class DisplayList\r\n * @extends Phaser.Structs.List.\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene that this Display List belongs to.\r\n */\r\nvar DisplayList = new Class({\r\n\r\n Extends: List,\r\n\r\n initialize:\r\n\r\n function DisplayList (scene)\r\n {\r\n List.call(this, scene);\r\n\r\n /**\r\n * The flag the determines whether Game Objects should be sorted when `depthSort()` is called.\r\n *\r\n * @name Phaser.GameObjects.DisplayList#sortChildrenFlag\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.sortChildrenFlag = false;\r\n\r\n /**\r\n * The Scene that this Display List belongs to.\r\n *\r\n * @name Phaser.GameObjects.DisplayList#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.0.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * The Scene's Systems.\r\n *\r\n * @name Phaser.GameObjects.DisplayList#systems\r\n * @type {Phaser.Scenes.Systems}\r\n * @since 3.0.0\r\n */\r\n this.systems = scene.sys;\r\n\r\n /**\r\n * The Scene's Event Emitter.\r\n *\r\n * @name Phaser.GameObjects.DisplayList#events\r\n * @type {Phaser.Events.EventEmitter}\r\n * @since 3.50.0\r\n */\r\n this.events = scene.sys.events;\r\n\r\n // Set the List callbacks\r\n this.addCallback = this.addChildCallback;\r\n this.removeCallback = this.removeChildCallback;\r\n\r\n this.events.once(SceneEvents.BOOT, this.boot, this);\r\n this.events.on(SceneEvents.START, this.start, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically, only once, when the Scene is first created.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.GameObjects.DisplayList#boot\r\n * @private\r\n * @since 3.5.1\r\n */\r\n boot: function ()\r\n {\r\n this.events.once(SceneEvents.DESTROY, this.destroy, this);\r\n },\r\n\r\n /**\r\n * Internal method called from `List.addCallback`.\r\n *\r\n * @method Phaser.GameObjects.DisplayList#addChildCallback\r\n * @private\r\n * @fires Phaser.Scenes.Events#ADDED_TO_SCENE\r\n * @fires Phaser.GameObjects.Events#ADDED_TO_SCENE\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that was added to the list.\r\n */\r\n addChildCallback: function (gameObject)\r\n {\r\n if (gameObject.displayList && gameObject.displayList !== this)\r\n {\r\n gameObject.removeFromDisplayList();\r\n }\r\n\r\n if (gameObject.parentContainer)\r\n {\r\n gameObject.parentContainer.remove(gameObject);\r\n }\r\n\r\n if (!gameObject.displayList)\r\n {\r\n this.queueDepthSort();\r\n\r\n gameObject.displayList = this;\r\n\r\n gameObject.emit(GameObjectEvents.ADDED_TO_SCENE, gameObject, this.scene);\r\n\r\n this.events.emit(SceneEvents.ADDED_TO_SCENE, gameObject, this.scene);\r\n }\r\n },\r\n\r\n /**\r\n * Internal method called from `List.removeCallback`.\r\n *\r\n * @method Phaser.GameObjects.DisplayList#removeChildCallback\r\n * @private\r\n * @fires Phaser.Scenes.Events#REMOVED_FROM_SCENE\r\n * @fires Phaser.GameObjects.Events#REMOVED_FROM_SCENE\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that was removed from the list.\r\n */\r\n removeChildCallback: function (gameObject)\r\n {\r\n this.queueDepthSort();\r\n\r\n gameObject.displayList = null;\r\n\r\n gameObject.emit(GameObjectEvents.REMOVED_FROM_SCENE, gameObject, this.scene);\r\n\r\n this.events.emit(SceneEvents.REMOVED_FROM_SCENE, gameObject, this.scene);\r\n },\r\n\r\n /**\r\n * This method is called automatically by the Scene when it is starting up.\r\n * It is responsible for creating local systems, properties and listening for Scene events.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.GameObjects.DisplayList#start\r\n * @private\r\n * @since 3.5.0\r\n */\r\n start: function ()\r\n {\r\n this.events.once(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * Force a sort of the display list on the next call to depthSort.\r\n *\r\n * @method Phaser.GameObjects.DisplayList#queueDepthSort\r\n * @since 3.0.0\r\n */\r\n queueDepthSort: function ()\r\n {\r\n this.sortChildrenFlag = true;\r\n },\r\n\r\n /**\r\n * Immediately sorts the display list if the flag is set.\r\n *\r\n * @method Phaser.GameObjects.DisplayList#depthSort\r\n * @since 3.0.0\r\n */\r\n depthSort: function ()\r\n {\r\n if (this.sortChildrenFlag)\r\n {\r\n StableSort(this.list, this.sortByDepth);\r\n\r\n this.sortChildrenFlag = false;\r\n }\r\n },\r\n\r\n /**\r\n * Compare the depth of two Game Objects.\r\n *\r\n * @method Phaser.GameObjects.DisplayList#sortByDepth\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} childA - The first Game Object.\r\n * @param {Phaser.GameObjects.GameObject} childB - The second Game Object.\r\n *\r\n * @return {number} The difference between the depths of each Game Object.\r\n */\r\n sortByDepth: function (childA, childB)\r\n {\r\n return childA._depth - childB._depth;\r\n },\r\n\r\n /**\r\n * Returns an array which contains all objects currently on the Display List.\r\n * This is a reference to the main list array, not a copy of it, so be careful not to modify it.\r\n *\r\n * @method Phaser.GameObjects.DisplayList#getChildren\r\n * @since 3.12.0\r\n *\r\n * @return {Phaser.GameObjects.GameObject[]} The group members.\r\n */\r\n getChildren: function ()\r\n {\r\n return this.list;\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is shutting down.\r\n *\r\n * We need to kill and reset all internal properties as well as stop listening to Scene events.\r\n *\r\n * @method Phaser.GameObjects.DisplayList#shutdown\r\n * @private\r\n * @since 3.0.0\r\n */\r\n shutdown: function ()\r\n {\r\n var list = this.list;\r\n\r\n while (list.length)\r\n {\r\n list[0].destroy(true);\r\n }\r\n\r\n this.events.off(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is being destroyed.\r\n * We need to shutdown and then kill off all external references.\r\n *\r\n * @method Phaser.GameObjects.DisplayList#destroy\r\n * @private\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.shutdown();\r\n\r\n this.events.off(SceneEvents.START, this.start, this);\r\n\r\n this.scene = null;\r\n this.systems = null;\r\n this.events = null;\r\n }\r\n\r\n});\r\n\r\nPluginCache.register('DisplayList', DisplayList, 'displayList');\r\n\r\nmodule.exports = DisplayList;\r\n\n\n/***/ }),\n\n/***/ 95643:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar ComponentsToJSON = __webpack_require__(53774);\r\nvar DataManager = __webpack_require__(45893);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Events = __webpack_require__(51708);\r\nvar SceneEvents = __webpack_require__(44594);\r\n\r\n/**\r\n * @classdesc\r\n * The base class that all Game Objects extend.\r\n * You don't create GameObjects directly and they cannot be added to the display list.\r\n * Instead, use them as the base for your own custom classes.\r\n *\r\n * @class GameObject\r\n * @memberof Phaser.GameObjects\r\n * @extends Phaser.Events.EventEmitter\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs.\r\n * @param {string} type - A textual representation of the type of Game Object, i.e. `sprite`.\r\n */\r\nvar GameObject = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function GameObject (scene, type)\r\n {\r\n EventEmitter.call(this);\r\n\r\n /**\r\n * A reference to the Scene to which this Game Object belongs.\r\n *\r\n * Game Objects can only belong to one Scene.\r\n *\r\n * You should consider this property as being read-only. You cannot move a\r\n * Game Object to another Scene by simply changing it.\r\n *\r\n * @name Phaser.GameObjects.GameObject#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.0.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * Holds a reference to the Display List that contains this Game Object.\r\n *\r\n * This is set automatically when this Game Object is added to a Scene or Layer.\r\n *\r\n * You should treat this property as being read-only.\r\n *\r\n * @name Phaser.GameObjects.GameObject#displayList\r\n * @type {(Phaser.GameObjects.DisplayList|Phaser.GameObjects.Layer)}\r\n * @default null\r\n * @since 3.50.0\r\n */\r\n this.displayList = null;\r\n\r\n /**\r\n * A textual representation of this Game Object, i.e. `sprite`.\r\n * Used internally by Phaser but is available for your own custom classes to populate.\r\n *\r\n * @name Phaser.GameObjects.GameObject#type\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.type = type;\r\n\r\n /**\r\n * The current state of this Game Object.\r\n *\r\n * Phaser itself will never modify this value, although plugins may do so.\r\n *\r\n * Use this property to track the state of a Game Object during its lifetime. For example, it could change from\r\n * a state of 'moving', to 'attacking', to 'dead'. The state value should be an integer (ideally mapped to a constant\r\n * in your game code), or a string. These are recommended to keep it light and simple, with fast comparisons.\r\n * If you need to store complex data about your Game Object, look at using the Data Component instead.\r\n *\r\n * @name Phaser.GameObjects.GameObject#state\r\n * @type {(number|string)}\r\n * @since 3.16.0\r\n */\r\n this.state = 0;\r\n\r\n /**\r\n * The parent Container of this Game Object, if it has one.\r\n *\r\n * @name Phaser.GameObjects.GameObject#parentContainer\r\n * @type {Phaser.GameObjects.Container}\r\n * @since 3.4.0\r\n */\r\n this.parentContainer = null;\r\n\r\n /**\r\n * The name of this Game Object.\r\n * Empty by default and never populated by Phaser, this is left for developers to use.\r\n *\r\n * @name Phaser.GameObjects.GameObject#name\r\n * @type {string}\r\n * @default ''\r\n * @since 3.0.0\r\n */\r\n this.name = '';\r\n\r\n /**\r\n * The active state of this Game Object.\r\n * A Game Object with an active state of `true` is processed by the Scenes UpdateList, if added to it.\r\n * An active object is one which is having its logic and internal systems updated.\r\n *\r\n * @name Phaser.GameObjects.GameObject#active\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.active = true;\r\n\r\n /**\r\n * The Tab Index of the Game Object.\r\n * Reserved for future use by plugins and the Input Manager.\r\n *\r\n * @name Phaser.GameObjects.GameObject#tabIndex\r\n * @type {number}\r\n * @default -1\r\n * @since 3.0.0\r\n */\r\n this.tabIndex = -1;\r\n\r\n /**\r\n * A Data Manager.\r\n * It allows you to store, query and get key/value paired information specific to this Game Object.\r\n * `null` by default. Automatically created if you use `getData` or `setData` or `setDataEnabled`.\r\n *\r\n * @name Phaser.GameObjects.GameObject#data\r\n * @type {Phaser.Data.DataManager}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.data = null;\r\n\r\n /**\r\n * The flags that are compared against `RENDER_MASK` to determine if this Game Object will render or not.\r\n * The bits are 0001 | 0010 | 0100 | 1000 set by the components Visible, Alpha, Transform and Texture respectively.\r\n * If those components are not used by your custom class then you can use this bitmask as you wish.\r\n *\r\n * @name Phaser.GameObjects.GameObject#renderFlags\r\n * @type {number}\r\n * @default 15\r\n * @since 3.0.0\r\n */\r\n this.renderFlags = 15;\r\n\r\n /**\r\n * A bitmask that controls if this Game Object is drawn by a Camera or not.\r\n * Not usually set directly, instead call `Camera.ignore`, however you can\r\n * set this property directly using the Camera.id property:\r\n *\r\n * @example\r\n * this.cameraFilter |= camera.id\r\n *\r\n * @name Phaser.GameObjects.GameObject#cameraFilter\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.cameraFilter = 0;\r\n\r\n /**\r\n * If this Game Object is enabled for input then this property will contain an InteractiveObject instance.\r\n * Not usually set directly. Instead call `GameObject.setInteractive()`.\r\n *\r\n * @name Phaser.GameObjects.GameObject#input\r\n * @type {?Phaser.Types.Input.InteractiveObject}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.input = null;\r\n\r\n /**\r\n * If this Game Object is enabled for Arcade or Matter Physics then this property will contain a reference to a Physics Body.\r\n *\r\n * @name Phaser.GameObjects.GameObject#body\r\n * @type {?(Phaser.Physics.Arcade.Body|Phaser.Physics.Arcade.StaticBody|MatterJS.BodyType)}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.body = null;\r\n\r\n /**\r\n * This Game Object will ignore all calls made to its destroy method if this flag is set to `true`.\r\n * This includes calls that may come from a Group, Container or the Scene itself.\r\n * While it allows you to persist a Game Object across Scenes, please understand you are entirely\r\n * responsible for managing references to and from this Game Object.\r\n *\r\n * @name Phaser.GameObjects.GameObject#ignoreDestroy\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.5.0\r\n */\r\n this.ignoreDestroy = false;\r\n\r\n this.on(Events.ADDED_TO_SCENE, this.addedToScene, this);\r\n this.on(Events.REMOVED_FROM_SCENE, this.removedFromScene, this);\r\n\r\n // Tell the Scene to re-sort the children\r\n scene.sys.queueDepthSort();\r\n },\r\n\r\n /**\r\n * Sets the `active` property of this Game Object and returns this Game Object for further chaining.\r\n * A Game Object with its `active` property set to `true` will be updated by the Scenes UpdateList.\r\n *\r\n * @method Phaser.GameObjects.GameObject#setActive\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} value - True if this Game Object should be set as active, false if not.\r\n *\r\n * @return {this} This GameObject.\r\n */\r\n setActive: function (value)\r\n {\r\n this.active = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the `name` property of this Game Object and returns this Game Object for further chaining.\r\n * The `name` property is not populated by Phaser and is presented for your own use.\r\n *\r\n * @method Phaser.GameObjects.GameObject#setName\r\n * @since 3.0.0\r\n *\r\n * @param {string} value - The name to be given to this Game Object.\r\n *\r\n * @return {this} This GameObject.\r\n */\r\n setName: function (value)\r\n {\r\n this.name = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the current state of this Game Object.\r\n *\r\n * Phaser itself will never modify the State of a Game Object, although plugins may do so.\r\n *\r\n * For example, a Game Object could change from a state of 'moving', to 'attacking', to 'dead'.\r\n * The state value should typically be an integer (ideally mapped to a constant\r\n * in your game code), but could also be a string. It is recommended to keep it light and simple.\r\n * If you need to store complex data about your Game Object, look at using the Data Component instead.\r\n *\r\n * @method Phaser.GameObjects.GameObject#setState\r\n * @since 3.16.0\r\n *\r\n * @param {(number|string)} value - The state of the Game Object.\r\n *\r\n * @return {this} This GameObject.\r\n */\r\n setState: function (value)\r\n {\r\n this.state = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds a Data Manager component to this Game Object.\r\n *\r\n * @method Phaser.GameObjects.GameObject#setDataEnabled\r\n * @since 3.0.0\r\n * @see Phaser.Data.DataManager\r\n *\r\n * @return {this} This GameObject.\r\n */\r\n setDataEnabled: function ()\r\n {\r\n if (!this.data)\r\n {\r\n this.data = new DataManager(this);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Allows you to store a key value pair within this Game Objects Data Manager.\r\n *\r\n * If the Game Object has not been enabled for data (via `setDataEnabled`) then it will be enabled\r\n * before setting the value.\r\n *\r\n * If the key doesn't already exist in the Data Manager then it is created.\r\n *\r\n * ```javascript\r\n * sprite.setData('name', 'Red Gem Stone');\r\n * ```\r\n *\r\n * You can also pass in an object of key value pairs as the first argument:\r\n *\r\n * ```javascript\r\n * sprite.setData({ name: 'Red Gem Stone', level: 2, owner: 'Link', gold: 50 });\r\n * ```\r\n *\r\n * To get a value back again you can call `getData`:\r\n *\r\n * ```javascript\r\n * sprite.getData('gold');\r\n * ```\r\n *\r\n * Or you can access the value directly via the `values` property, where it works like any other variable:\r\n *\r\n * ```javascript\r\n * sprite.data.values.gold += 50;\r\n * ```\r\n *\r\n * When the value is first set, a `setdata` event is emitted from this Game Object.\r\n *\r\n * If the key already exists, a `changedata` event is emitted instead, along an event named after the key.\r\n * For example, if you updated an existing key called `PlayerLives` then it would emit the event `changedata-PlayerLives`.\r\n * These events will be emitted regardless if you use this method to set the value, or the direct `values` setter.\r\n *\r\n * Please note that the data keys are case-sensitive and must be valid JavaScript Object property strings.\r\n * This means the keys `gold` and `Gold` are treated as two unique values within the Data Manager.\r\n *\r\n * @method Phaser.GameObjects.GameObject#setData\r\n * @since 3.0.0\r\n *\r\n * @generic {any} T\r\n * @genericUse {(string|T)} - [key]\r\n *\r\n * @param {(string|object)} key - The key to set the value for. Or an object of key value pairs. If an object the `data` argument is ignored.\r\n * @param {*} [data] - The value to set for the given key. If an object is provided as the key this argument is ignored.\r\n *\r\n * @return {this} This GameObject.\r\n */\r\n setData: function (key, value)\r\n {\r\n if (!this.data)\r\n {\r\n this.data = new DataManager(this);\r\n }\r\n\r\n this.data.set(key, value);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Increase a value for the given key within this Game Objects Data Manager. If the key doesn't already exist in the Data Manager then it is increased from 0.\r\n *\r\n * If the Game Object has not been enabled for data (via `setDataEnabled`) then it will be enabled\r\n * before setting the value.\r\n *\r\n * If the key doesn't already exist in the Data Manager then it is created.\r\n *\r\n * When the value is first set, a `setdata` event is emitted from this Game Object.\r\n *\r\n * @method Phaser.GameObjects.GameObject#incData\r\n * @since 3.23.0\r\n *\r\n * @param {string} key - The key to change the value for.\r\n * @param {number} [amount=1] - The amount to increase the given key by. Pass a negative value to decrease the key.\r\n *\r\n * @return {this} This GameObject.\r\n */\r\n incData: function (key, amount)\r\n {\r\n if (!this.data)\r\n {\r\n this.data = new DataManager(this);\r\n }\r\n\r\n this.data.inc(key, amount);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Toggle a boolean value for the given key within this Game Objects Data Manager. If the key doesn't already exist in the Data Manager then it is toggled from false.\r\n *\r\n * If the Game Object has not been enabled for data (via `setDataEnabled`) then it will be enabled\r\n * before setting the value.\r\n *\r\n * If the key doesn't already exist in the Data Manager then it is created.\r\n *\r\n * When the value is first set, a `setdata` event is emitted from this Game Object.\r\n *\r\n * @method Phaser.GameObjects.GameObject#toggleData\r\n * @since 3.23.0\r\n *\r\n * @param {string} key - The key to toggle the value for.\r\n *\r\n * @return {this} This GameObject.\r\n */\r\n toggleData: function (key)\r\n {\r\n if (!this.data)\r\n {\r\n this.data = new DataManager(this);\r\n }\r\n\r\n this.data.toggle(key);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Retrieves the value for the given key in this Game Objects Data Manager, or undefined if it doesn't exist.\r\n *\r\n * You can also access values via the `values` object. For example, if you had a key called `gold` you can do either:\r\n *\r\n * ```javascript\r\n * sprite.getData('gold');\r\n * ```\r\n *\r\n * Or access the value directly:\r\n *\r\n * ```javascript\r\n * sprite.data.values.gold;\r\n * ```\r\n *\r\n * You can also pass in an array of keys, in which case an array of values will be returned:\r\n *\r\n * ```javascript\r\n * sprite.getData([ 'gold', 'armor', 'health' ]);\r\n * ```\r\n *\r\n * This approach is useful for destructuring arrays in ES6.\r\n *\r\n * @method Phaser.GameObjects.GameObject#getData\r\n * @since 3.0.0\r\n *\r\n * @param {(string|string[])} key - The key of the value to retrieve, or an array of keys.\r\n *\r\n * @return {*} The value belonging to the given key, or an array of values, the order of which will match the input array.\r\n */\r\n getData: function (key)\r\n {\r\n if (!this.data)\r\n {\r\n this.data = new DataManager(this);\r\n }\r\n\r\n return this.data.get(key);\r\n },\r\n\r\n /**\r\n * Pass this Game Object to the Input Manager to enable it for Input.\r\n *\r\n * Input works by using hit areas, these are nearly always geometric shapes, such as rectangles or circles, that act as the hit area\r\n * for the Game Object. However, you can provide your own hit area shape and callback, should you wish to handle some more advanced\r\n * input detection.\r\n *\r\n * If no arguments are provided it will try and create a rectangle hit area based on the texture frame the Game Object is using. If\r\n * this isn't a texture-bound object, such as a Graphics or BitmapText object, this will fail, and you'll need to provide a specific\r\n * shape for it to use.\r\n *\r\n * You can also provide an Input Configuration Object as the only argument to this method.\r\n *\r\n * @example\r\n * sprite.setInteractive();\r\n *\r\n * @example\r\n * sprite.setInteractive(new Phaser.Geom.Circle(45, 46, 45), Phaser.Geom.Circle.Contains);\r\n *\r\n * @example\r\n * graphics.setInteractive(new Phaser.Geom.Rectangle(0, 0, 128, 128), Phaser.Geom.Rectangle.Contains);\r\n *\r\n * @method Phaser.GameObjects.GameObject#setInteractive\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Types.Input.InputConfiguration|any)} [hitArea] - Either an input configuration object, or a geometric shape that defines the hit area for the Game Object. If not given it will try to create a Rectangle based on the texture frame.\r\n * @param {Phaser.Types.Input.HitAreaCallback} [callback] - The callback that determines if the pointer is within the Hit Area shape or not. If you provide a shape you must also provide a callback.\r\n * @param {boolean} [dropZone=false] - Should this Game Object be treated as a drop zone target?\r\n *\r\n * @return {this} This GameObject.\r\n */\r\n setInteractive: function (hitArea, hitAreaCallback, dropZone)\r\n {\r\n this.scene.sys.input.enable(this, hitArea, hitAreaCallback, dropZone);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * If this Game Object has previously been enabled for input, this will disable it.\r\n *\r\n * An object that is disabled for input stops processing or being considered for\r\n * input events, but can be turned back on again at any time by simply calling\r\n * `setInteractive()` with no arguments provided.\r\n *\r\n * If want to completely remove interaction from this Game Object then use `removeInteractive` instead.\r\n *\r\n * @method Phaser.GameObjects.GameObject#disableInteractive\r\n * @since 3.7.0\r\n * \r\n * @param {boolean} [resetCursor=false] - Should the currently active Input cursor, if any, be reset to the default cursor?\r\n *\r\n * @return {this} This GameObject.\r\n */\r\n disableInteractive: function (resetCursor)\r\n {\r\n if (resetCursor === undefined) { resetCursor = false; }\r\n\r\n this.scene.sys.input.disable(this, resetCursor);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * If this Game Object has previously been enabled for input, this will queue it\r\n * for removal, causing it to no longer be interactive. The removal happens on\r\n * the next game step, it is not immediate.\r\n *\r\n * The Interactive Object that was assigned to this Game Object will be destroyed,\r\n * removed from the Input Manager and cleared from this Game Object.\r\n *\r\n * If you wish to re-enable this Game Object at a later date you will need to\r\n * re-create its InteractiveObject by calling `setInteractive` again.\r\n *\r\n * If you wish to only temporarily stop an object from receiving input then use\r\n * `disableInteractive` instead, as that toggles the interactive state, where-as\r\n * this erases it completely.\r\n *\r\n * If you wish to resize a hit area, don't remove and then set it as being\r\n * interactive. Instead, access the hitarea object directly and resize the shape\r\n * being used. I.e.: `sprite.input.hitArea.setSize(width, height)` (assuming the\r\n * shape is a Rectangle, which it is by default.)\r\n *\r\n * @method Phaser.GameObjects.GameObject#removeInteractive\r\n * @since 3.7.0\r\n * \r\n * @param {boolean} [resetCursor=false] - Should the currently active Input cursor, if any, be reset to the default cursor?\r\n *\r\n * @return {this} This GameObject.\r\n */\r\n removeInteractive: function (resetCursor)\r\n {\r\n if (resetCursor === undefined) { resetCursor = false; }\r\n\r\n this.scene.sys.input.clear(this);\r\n\r\n if (resetCursor)\r\n {\r\n this.scene.sys.input.resetCursor();\r\n }\r\n\r\n this.input = undefined;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * This callback is invoked when this Game Object is added to a Scene.\r\n *\r\n * Can be overriden by custom Game Objects, but be aware of some Game Objects that\r\n * will use this, such as Sprites, to add themselves into the Update List.\r\n *\r\n * You can also listen for the `ADDED_TO_SCENE` event from this Game Object.\r\n *\r\n * @method Phaser.GameObjects.GameObject#addedToScene\r\n * @since 3.50.0\r\n */\r\n addedToScene: function ()\r\n {\r\n },\r\n\r\n /**\r\n * This callback is invoked when this Game Object is removed from a Scene.\r\n *\r\n * Can be overriden by custom Game Objects, but be aware of some Game Objects that\r\n * will use this, such as Sprites, to removed themselves from the Update List.\r\n *\r\n * You can also listen for the `REMOVED_FROM_SCENE` event from this Game Object.\r\n *\r\n * @method Phaser.GameObjects.GameObject#removedFromScene\r\n * @since 3.50.0\r\n */\r\n removedFromScene: function ()\r\n {\r\n },\r\n\r\n /**\r\n * To be overridden by custom GameObjects. Allows base objects to be used in a Pool.\r\n *\r\n * @method Phaser.GameObjects.GameObject#update\r\n * @since 3.0.0\r\n *\r\n * @param {...*} [args] - args\r\n */\r\n update: function ()\r\n {\r\n },\r\n\r\n /**\r\n * Returns a JSON representation of the Game Object.\r\n *\r\n * @method Phaser.GameObjects.GameObject#toJSON\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Types.GameObjects.JSONGameObject} A JSON representation of the Game Object.\r\n */\r\n toJSON: function ()\r\n {\r\n return ComponentsToJSON(this);\r\n },\r\n\r\n /**\r\n * Compares the renderMask with the renderFlags to see if this Game Object will render or not.\r\n * Also checks the Game Object against the given Cameras exclusion list.\r\n *\r\n * @method Phaser.GameObjects.GameObject#willRender\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to check against this Game Object.\r\n *\r\n * @return {boolean} True if the Game Object should be rendered, otherwise false.\r\n */\r\n willRender: function (camera)\r\n {\r\n var listWillRender = (this.displayList && this.displayList.active) ? this.displayList.willRender(camera) : true;\r\n\r\n return !(!listWillRender || GameObject.RENDER_MASK !== this.renderFlags || (this.cameraFilter !== 0 && (this.cameraFilter & camera.id)));\r\n },\r\n\r\n /**\r\n * Returns an array containing the display list index of either this Game Object, or if it has one,\r\n * its parent Container. It then iterates up through all of the parent containers until it hits the\r\n * root of the display list (which is index 0 in the returned array).\r\n *\r\n * Used internally by the InputPlugin but also useful if you wish to find out the display depth of\r\n * this Game Object and all of its ancestors.\r\n *\r\n * @method Phaser.GameObjects.GameObject#getIndexList\r\n * @since 3.4.0\r\n *\r\n * @return {number[]} An array of display list position indexes.\r\n */\r\n getIndexList: function ()\r\n {\r\n // eslint-disable-next-line consistent-this\r\n var child = this;\r\n var parent = this.parentContainer;\r\n\r\n var indexes = [];\r\n\r\n while (parent)\r\n {\r\n indexes.unshift(parent.getIndex(child));\r\n\r\n child = parent;\r\n\r\n if (!parent.parentContainer)\r\n {\r\n break;\r\n }\r\n else\r\n {\r\n parent = parent.parentContainer;\r\n }\r\n }\r\n\r\n if (this.displayList)\r\n {\r\n indexes.unshift(this.displayList.getIndex(child));\r\n }\r\n else\r\n {\r\n indexes.unshift(this.scene.sys.displayList.getIndex(child));\r\n }\r\n\r\n return indexes;\r\n },\r\n\r\n /**\r\n * Adds this Game Object to the given Display List.\r\n *\r\n * If no Display List is specified, it will default to the Display List owned by the Scene to which\r\n * this Game Object belongs.\r\n *\r\n * A Game Object can only exist on one Display List at any given time, but may move freely between them.\r\n *\r\n * If this Game Object is already on another Display List when this method is called, it will first\r\n * be removed from it, before being added to the new list.\r\n *\r\n * You can query which list it is on by looking at the `Phaser.GameObjects.GameObject#displayList` property.\r\n *\r\n * If a Game Object isn't on any display list, it will not be rendered. If you just wish to temporarly\r\n * disable it from rendering, consider using the `setVisible` method, instead.\r\n *\r\n * @method Phaser.GameObjects.GameObject#addToDisplayList\r\n * @fires Phaser.Scenes.Events#ADDED_TO_SCENE\r\n * @fires Phaser.GameObjects.Events#ADDED_TO_SCENE\r\n * @since 3.53.0\r\n *\r\n * @param {(Phaser.GameObjects.DisplayList|Phaser.GameObjects.Layer)} [displayList] - The Display List to add to. Defaults to the Scene Display List.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n addToDisplayList: function (displayList)\r\n {\r\n if (displayList === undefined) { displayList = this.scene.sys.displayList; }\r\n\r\n if (this.displayList && this.displayList !== displayList)\r\n {\r\n this.removeFromDisplayList();\r\n }\r\n\r\n // Don't repeat if it's already on this list\r\n if (!displayList.exists(this))\r\n {\r\n this.displayList = displayList;\r\n\r\n displayList.add(this, true);\r\n\r\n displayList.queueDepthSort();\r\n\r\n this.emit(Events.ADDED_TO_SCENE, this, this.scene);\r\n\r\n displayList.events.emit(SceneEvents.ADDED_TO_SCENE, this, this.scene);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds this Game Object to the Update List belonging to the Scene.\r\n *\r\n * When a Game Object is added to the Update List it will have its `preUpdate` method called\r\n * every game frame. This method is passed two parameters: `delta` and `time`.\r\n *\r\n * If you wish to run your own logic within `preUpdate` then you should always call\r\n * `super.preUpdate(delta, time)` within it, or it may fail to process required operations,\r\n * such as Sprite animations.\r\n *\r\n * @method Phaser.GameObjects.GameObject#addToUpdateList\r\n * @since 3.53.0\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n addToUpdateList: function ()\r\n {\r\n if (this.scene && this.preUpdate)\r\n {\r\n this.scene.sys.updateList.add(this);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes this Game Object from the Display List it is currently on.\r\n *\r\n * A Game Object can only exist on one Display List at any given time, but may move freely removed\r\n * and added back at a later stage.\r\n *\r\n * You can query which list it is on by looking at the `Phaser.GameObjects.GameObject#displayList` property.\r\n *\r\n * If a Game Object isn't on any Display List, it will not be rendered. If you just wish to temporarly\r\n * disable it from rendering, consider using the `setVisible` method, instead.\r\n *\r\n * @method Phaser.GameObjects.GameObject#removeFromDisplayList\r\n * @fires Phaser.Scenes.Events#REMOVED_FROM_SCENE\r\n * @fires Phaser.GameObjects.Events#REMOVED_FROM_SCENE\r\n * @since 3.53.0\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n removeFromDisplayList: function ()\r\n {\r\n var displayList = this.displayList || this.scene.sys.displayList;\r\n\r\n if (displayList && displayList.exists(this))\r\n {\r\n displayList.remove(this, true);\r\n\r\n displayList.queueDepthSort();\r\n\r\n this.displayList = null;\r\n\r\n this.emit(Events.REMOVED_FROM_SCENE, this, this.scene);\r\n\r\n displayList.events.emit(SceneEvents.REMOVED_FROM_SCENE, this, this.scene);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes this Game Object from the Scene's Update List.\r\n *\r\n * When a Game Object is on the Update List, it will have its `preUpdate` method called\r\n * every game frame. Calling this method will remove it from the list, preventing this.\r\n *\r\n * Removing a Game Object from the Update List will stop most internal functions working.\r\n * For example, removing a Sprite from the Update List will prevent it from being able to\r\n * run animations.\r\n *\r\n * @method Phaser.GameObjects.GameObject#removeFromUpdateList\r\n * @since 3.53.0\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n removeFromUpdateList: function ()\r\n {\r\n if (this.scene && this.preUpdate)\r\n {\r\n this.scene.sys.updateList.remove(this);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns a reference to the underlying display list _array_ that contains this Game Object,\r\n * which will be either the Scene's Display List or the internal list belonging\r\n * to its parent Container, if it has one.\r\n * \r\n * If this Game Object is not on a display list or in a container, it will return `null`.\r\n * \r\n * You should be very careful with this method, and understand that it returns a direct reference to the\r\n * internal array used by the Display List. Mutating this array directly can cause all kinds of subtle\r\n * and difficult to debug issues in your game.\r\n *\r\n * @method Phaser.GameObjects.GameObject#getDisplayList\r\n * @since 3.85.0\r\n *\r\n * @return {?Phaser.GameObjects.GameObject[]} The internal Display List array of Game Objects, or `null`.\r\n */\r\n getDisplayList: function ()\r\n {\r\n var list = null;\r\n\r\n if (this.parentContainer)\r\n {\r\n list = this.parentContainer.list;\r\n }\r\n else if (this.displayList)\r\n {\r\n list = this.displayList.list;\r\n }\r\n\r\n return list;\r\n },\r\n\r\n /**\r\n * Destroys this Game Object removing it from the Display List and Update List and\r\n * severing all ties to parent resources.\r\n *\r\n * Also removes itself from the Input Manager and Physics Manager if previously enabled.\r\n *\r\n * Use this to remove a Game Object from your game if you don't ever plan to use it again.\r\n * As long as no reference to it exists within your own code it should become free for\r\n * garbage collection by the browser.\r\n *\r\n * If you just want to temporarily disable an object then look at using the\r\n * Game Object Pool instead of destroying it, as destroyed objects cannot be resurrected.\r\n *\r\n * @method Phaser.GameObjects.GameObject#destroy\r\n * @fires Phaser.GameObjects.Events#DESTROY\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [fromScene=false] - `True` if this Game Object is being destroyed by the Scene, `false` if not.\r\n */\r\n destroy: function (fromScene)\r\n {\r\n // This Game Object has already been destroyed\r\n if (!this.scene || this.ignoreDestroy)\r\n {\r\n return;\r\n }\r\n\r\n if (fromScene === undefined) { fromScene = false; }\r\n\r\n if (this.preDestroy)\r\n {\r\n this.preDestroy.call(this);\r\n }\r\n\r\n this.emit(Events.DESTROY, this, fromScene);\r\n\r\n this.removeAllListeners();\r\n\r\n if (this.postPipelines)\r\n {\r\n this.resetPostPipeline(true);\r\n }\r\n\r\n this.removeFromDisplayList();\r\n this.removeFromUpdateList();\r\n\r\n if (this.input)\r\n {\r\n this.scene.sys.input.clear(this);\r\n\r\n this.input = undefined;\r\n }\r\n\r\n if (this.data)\r\n {\r\n this.data.destroy();\r\n\r\n this.data = undefined;\r\n }\r\n\r\n if (this.body)\r\n {\r\n this.body.destroy();\r\n\r\n this.body = undefined;\r\n }\r\n\r\n if (this.preFX)\r\n {\r\n this.preFX.destroy();\r\n\r\n this.preFX = undefined;\r\n }\r\n\r\n if (this.postFX)\r\n {\r\n this.postFX.destroy();\r\n\r\n this.postFX = undefined;\r\n }\r\n\r\n this.active = false;\r\n this.visible = false;\r\n\r\n this.scene = undefined;\r\n this.parentContainer = undefined;\r\n }\r\n\r\n});\r\n\r\n/**\r\n * The bitmask that `GameObject.renderFlags` is compared against to determine if the Game Object will render or not.\r\n *\r\n * @constant {number} RENDER_MASK\r\n * @memberof Phaser.GameObjects.GameObject\r\n * @default\r\n */\r\nGameObject.RENDER_MASK = 15;\r\n\r\nmodule.exports = GameObject;\r\n\n\n/***/ }),\n\n/***/ 44603:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar PluginCache = __webpack_require__(37277);\r\nvar SceneEvents = __webpack_require__(44594);\r\n\r\n/**\r\n * @classdesc\r\n * The Game Object Creator is a Scene plugin that allows you to quickly create many common\r\n * types of Game Objects and return them using a configuration object, rather than\r\n * having to specify a limited set of parameters such as with the GameObjectFactory.\r\n *\r\n * Game Objects made via this class are automatically added to the Scene and Update List\r\n * unless you explicitly set the `add` property in the configuration object to `false`.\r\n *\r\n * @class GameObjectCreator\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object Factory belongs.\r\n */\r\nvar GameObjectCreator = new Class({\r\n\r\n initialize:\r\n\r\n function GameObjectCreator (scene)\r\n {\r\n /**\r\n * The Scene to which this Game Object Creator belongs.\r\n *\r\n * @name Phaser.GameObjects.GameObjectCreator#scene\r\n * @type {Phaser.Scene}\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * A reference to the Scene.Systems.\r\n *\r\n * @name Phaser.GameObjects.GameObjectCreator#systems\r\n * @type {Phaser.Scenes.Systems}\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n this.systems = scene.sys;\r\n\r\n /**\r\n * A reference to the Scene Event Emitter.\r\n *\r\n * @name Phaser.GameObjects.GameObjectCreator#events\r\n * @type {Phaser.Events.EventEmitter}\r\n * @protected\r\n * @since 3.50.0\r\n */\r\n this.events = scene.sys.events;\r\n\r\n /**\r\n * A reference to the Scene Display List.\r\n *\r\n * @name Phaser.GameObjects.GameObjectCreator#displayList\r\n * @type {Phaser.GameObjects.DisplayList}\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n this.displayList;\r\n\r\n /**\r\n * A reference to the Scene Update List.\r\n *\r\n * @name Phaser.GameObjects.GameObjectCreator#updateList\r\n * @type {Phaser.GameObjects.UpdateList}\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n this.updateList;\r\n\r\n this.events.once(SceneEvents.BOOT, this.boot, this);\r\n this.events.on(SceneEvents.START, this.start, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically, only once, when the Scene is first created.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#boot\r\n * @private\r\n * @since 3.5.1\r\n */\r\n boot: function ()\r\n {\r\n this.displayList = this.systems.displayList;\r\n this.updateList = this.systems.updateList;\r\n\r\n this.events.once(SceneEvents.DESTROY, this.destroy, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically by the Scene when it is starting up.\r\n * It is responsible for creating local systems, properties and listening for Scene events.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#start\r\n * @private\r\n * @since 3.5.0\r\n */\r\n start: function ()\r\n {\r\n this.events.once(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is shutting down.\r\n * We need to kill and reset all internal properties as well as stop listening to Scene events.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#shutdown\r\n * @private\r\n * @since 3.0.0\r\n */\r\n shutdown: function ()\r\n {\r\n this.events.off(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is being destroyed.\r\n * We need to shutdown and then kill off all external references.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#destroy\r\n * @private\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.shutdown();\r\n\r\n this.events.off(SceneEvents.START, this.start, this);\r\n\r\n this.scene = null;\r\n this.systems = null;\r\n this.events = null;\r\n\r\n this.displayList = null;\r\n this.updateList = null;\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Static method called directly by the Game Object creator functions.\r\n * With this method you can register a custom GameObject factory in the GameObjectCreator,\r\n * providing a name (`factoryType`) and the constructor (`factoryFunction`) in order\r\n * to be called when you invoke Phaser.Scene.make[ factoryType ] method.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator.register\r\n * @static\r\n * @since 3.0.0\r\n *\r\n * @param {string} factoryType - The key of the factory that you will use to call to Phaser.Scene.make[ factoryType ] method.\r\n * @param {function} factoryFunction - The constructor function to be called when you invoke to the Phaser.Scene.make method.\r\n */\r\nGameObjectCreator.register = function (factoryType, factoryFunction)\r\n{\r\n if (!GameObjectCreator.prototype.hasOwnProperty(factoryType))\r\n {\r\n GameObjectCreator.prototype[factoryType] = factoryFunction;\r\n }\r\n};\r\n\r\n/**\r\n * Static method called directly by the Game Object Creator functions.\r\n *\r\n * With this method you can remove a custom Game Object Creator that has been previously\r\n * registered in the Game Object Creator. Pass in its `factoryType` in order to remove it.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator.remove\r\n * @static\r\n * @since 3.0.0\r\n *\r\n * @param {string} factoryType - The key of the factory that you want to remove from the GameObjectCreator.\r\n */\r\nGameObjectCreator.remove = function (factoryType)\r\n{\r\n if (GameObjectCreator.prototype.hasOwnProperty(factoryType))\r\n {\r\n delete GameObjectCreator.prototype[factoryType];\r\n }\r\n};\r\n\r\nPluginCache.register('GameObjectCreator', GameObjectCreator, 'make');\r\n\r\nmodule.exports = GameObjectCreator;\r\n\n\n/***/ }),\n\n/***/ 39429:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar PluginCache = __webpack_require__(37277);\r\nvar SceneEvents = __webpack_require__(44594);\r\n\r\n/**\r\n * @classdesc\r\n * The Game Object Factory is a Scene plugin that allows you to quickly create many common\r\n * types of Game Objects and have them automatically registered with the Scene.\r\n *\r\n * Game Objects directly register themselves with the Factory and inject their own creation\r\n * methods into the class.\r\n *\r\n * @class GameObjectFactory\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object Factory belongs.\r\n */\r\nvar GameObjectFactory = new Class({\r\n\r\n initialize:\r\n\r\n function GameObjectFactory (scene)\r\n {\r\n /**\r\n * The Scene to which this Game Object Factory belongs.\r\n *\r\n * @name Phaser.GameObjects.GameObjectFactory#scene\r\n * @type {Phaser.Scene}\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * A reference to the Scene.Systems.\r\n *\r\n * @name Phaser.GameObjects.GameObjectFactory#systems\r\n * @type {Phaser.Scenes.Systems}\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n this.systems = scene.sys;\r\n\r\n /**\r\n * A reference to the Scene Event Emitter.\r\n *\r\n * @name Phaser.GameObjects.GameObjectFactory#events\r\n * @type {Phaser.Events.EventEmitter}\r\n * @protected\r\n * @since 3.50.0\r\n */\r\n this.events = scene.sys.events;\r\n\r\n /**\r\n * A reference to the Scene Display List.\r\n *\r\n * @name Phaser.GameObjects.GameObjectFactory#displayList\r\n * @type {Phaser.GameObjects.DisplayList}\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n this.displayList;\r\n\r\n /**\r\n * A reference to the Scene Update List.\r\n *\r\n * @name Phaser.GameObjects.GameObjectFactory#updateList\r\n * @type {Phaser.GameObjects.UpdateList}\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n this.updateList;\r\n\r\n this.events.once(SceneEvents.BOOT, this.boot, this);\r\n this.events.on(SceneEvents.START, this.start, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically, only once, when the Scene is first created.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#boot\r\n * @private\r\n * @since 3.5.1\r\n */\r\n boot: function ()\r\n {\r\n this.displayList = this.systems.displayList;\r\n this.updateList = this.systems.updateList;\r\n\r\n this.events.once(SceneEvents.DESTROY, this.destroy, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically by the Scene when it is starting up.\r\n * It is responsible for creating local systems, properties and listening for Scene events.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#start\r\n * @private\r\n * @since 3.5.0\r\n */\r\n start: function ()\r\n {\r\n this.events.once(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * Adds an existing Game Object to this Scene.\r\n *\r\n * If the Game Object renders, it will be added to the Display List.\r\n * If it has a `preUpdate` method, it will be added to the Update List.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#existing\r\n * @since 3.0.0\r\n *\r\n * @generic {(Phaser.GameObjects.GameObject|Phaser.GameObjects.Group|Phaser.GameObjects.Layer)} G - [child,$return]\r\n *\r\n * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.Group|Phaser.GameObjects.Layer)} child - The child to be added to this Scene.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was added.\r\n */\r\n existing: function (child)\r\n {\r\n if (child.renderCanvas || child.renderWebGL)\r\n {\r\n this.displayList.add(child);\r\n }\r\n\r\n // For when custom objects have overridden `preUpdate` but don't hook into the ADDED_TO_SCENE event:\r\n // Adding to the list multiple times is safe, as it won't add duplicates into the list anyway.\r\n if (child.preUpdate)\r\n {\r\n this.updateList.add(child);\r\n }\r\n\r\n return child;\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is shutting down.\r\n * We need to kill and reset all internal properties as well as stop listening to Scene events.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#shutdown\r\n * @private\r\n * @since 3.0.0\r\n */\r\n shutdown: function ()\r\n {\r\n this.events.off(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is being destroyed.\r\n * We need to shutdown and then kill off all external references.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#destroy\r\n * @private\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.shutdown();\r\n\r\n this.events.off(SceneEvents.START, this.start, this);\r\n\r\n this.scene = null;\r\n this.systems = null;\r\n this.events = null;\r\n\r\n this.displayList = null;\r\n this.updateList = null;\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Static method called directly by the Game Object factory functions.\r\n * With this method you can register a custom GameObject factory in the GameObjectFactory,\r\n * providing a name (`factoryType`) and the constructor (`factoryFunction`) in order\r\n * to be called when you call to Phaser.Scene.add[ factoryType ] method.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory.register\r\n * @static\r\n * @since 3.0.0\r\n *\r\n * @param {string} factoryType - The key of the factory that you will use to call to Phaser.Scene.add[ factoryType ] method.\r\n * @param {function} factoryFunction - The constructor function to be called when you invoke to the Phaser.Scene.add method.\r\n */\r\nGameObjectFactory.register = function (factoryType, factoryFunction)\r\n{\r\n if (!GameObjectFactory.prototype.hasOwnProperty(factoryType))\r\n {\r\n GameObjectFactory.prototype[factoryType] = factoryFunction;\r\n }\r\n};\r\n\r\n/**\r\n * Static method called directly by the Game Object factory functions.\r\n * With this method you can remove a custom GameObject factory registered in the GameObjectFactory,\r\n * providing a its `factoryType`.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory.remove\r\n * @static\r\n * @since 3.0.0\r\n *\r\n * @param {string} factoryType - The key of the factory that you want to remove from the GameObjectFactory.\r\n */\r\nGameObjectFactory.remove = function (factoryType)\r\n{\r\n if (GameObjectFactory.prototype.hasOwnProperty(factoryType))\r\n {\r\n delete GameObjectFactory.prototype[factoryType];\r\n }\r\n};\r\n\r\nPluginCache.register('GameObjectFactory', GameObjectFactory, 'add');\r\n\r\nmodule.exports = GameObjectFactory;\r\n\n\n/***/ }),\n\n/***/ 91296:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar TransformMatrix = __webpack_require__(61340);\r\n\r\nvar tempMatrix1 = new TransformMatrix();\r\nvar tempMatrix2 = new TransformMatrix();\r\nvar tempMatrix3 = new TransformMatrix();\r\n\r\nvar result = { camera: tempMatrix1, sprite: tempMatrix2, calc: tempMatrix3 };\r\n\r\n/**\r\n * Calculates the Transform Matrix of the given Game Object and Camera, factoring in\r\n * the parent matrix if provided.\r\n *\r\n * Note that the object this results contains _references_ to the Transform Matrices,\r\n * not new instances of them. Therefore, you should use their values immediately, or\r\n * copy them to your own matrix, as they will be replaced as soon as another Game\r\n * Object is rendered.\r\n *\r\n * @function Phaser.GameObjects.GetCalcMatrix\r\n * @memberof Phaser.GameObjects\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} src - The Game Object to calculate the transform matrix for.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera being used to render the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} [parentMatrix] - The transform matrix of the parent container, if any.\r\n *\r\n * @return {Phaser.Types.GameObjects.GetCalcMatrixResults} The results object containing the updated transform matrices.\r\n */\r\nvar GetCalcMatrix = function (src, camera, parentMatrix)\r\n{\r\n var camMatrix = tempMatrix1;\r\n var spriteMatrix = tempMatrix2;\r\n var calcMatrix = tempMatrix3;\r\n\r\n spriteMatrix.applyITRS(src.x, src.y, src.rotation, src.scaleX, src.scaleY);\r\n\r\n camMatrix.copyFrom(camera.matrix);\r\n\r\n if (parentMatrix)\r\n {\r\n // Multiply the camera by the parent matrix\r\n camMatrix.multiplyWithOffset(parentMatrix, -camera.scrollX * src.scrollFactorX, -camera.scrollY * src.scrollFactorY);\r\n\r\n // Undo the camera scroll\r\n spriteMatrix.e = src.x;\r\n spriteMatrix.f = src.y;\r\n }\r\n else\r\n {\r\n spriteMatrix.e -= camera.scrollX * src.scrollFactorX;\r\n spriteMatrix.f -= camera.scrollY * src.scrollFactorY;\r\n }\r\n\r\n // Multiply by the Sprite matrix, store result in calcMatrix\r\n camMatrix.multiply(spriteMatrix, calcMatrix);\r\n\r\n return result;\r\n};\r\n\r\nmodule.exports = GetCalcMatrix;\r\n\n\n/***/ }),\n\n/***/ 45027:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar ProcessQueue = __webpack_require__(25774);\r\nvar PluginCache = __webpack_require__(37277);\r\nvar SceneEvents = __webpack_require__(44594);\r\n\r\n/**\r\n * @classdesc\r\n * The Update List plugin.\r\n *\r\n * Update Lists belong to a Scene and maintain the list Game Objects to be updated every frame.\r\n *\r\n * Some or all of these Game Objects may also be part of the Scene's [Display List]{@link Phaser.GameObjects.DisplayList}, for Rendering.\r\n *\r\n * @class UpdateList\r\n * @extends Phaser.Structs.ProcessQueue.\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene that the Update List belongs to.\r\n */\r\nvar UpdateList = new Class({\r\n\r\n Extends: ProcessQueue,\r\n\r\n initialize:\r\n\r\n function UpdateList (scene)\r\n {\r\n ProcessQueue.call(this);\r\n\r\n // No duplicates in this list\r\n this.checkQueue = true;\r\n\r\n /**\r\n * The Scene that the Update List belongs to.\r\n *\r\n * @name Phaser.GameObjects.UpdateList#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.0.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * The Scene's Systems.\r\n *\r\n * @name Phaser.GameObjects.UpdateList#systems\r\n * @type {Phaser.Scenes.Systems}\r\n * @since 3.0.0\r\n */\r\n this.systems = scene.sys;\r\n\r\n /**\r\n * The `pending` list is a selection of items which are due to be made 'active' in the next update.\r\n *\r\n * @name Phaser.GameObjects.UpdateList#_pending\r\n * @type {Array.<*>}\r\n * @private\r\n * @default []\r\n * @since 3.20.0\r\n */\r\n\r\n /**\r\n * The `active` list is a selection of items which are considered active and should be updated.\r\n *\r\n * @name Phaser.GameObjects.UpdateList#_active\r\n * @type {Array.<*>}\r\n * @private\r\n * @default []\r\n * @since 3.20.0\r\n */\r\n\r\n /**\r\n * The `destroy` list is a selection of items that were active and are awaiting being destroyed in the next update.\r\n *\r\n * @name Phaser.GameObjects.UpdateList#_destroy\r\n * @type {Array.<*>}\r\n * @private\r\n * @default []\r\n * @since 3.20.0\r\n */\r\n\r\n /**\r\n * The total number of items awaiting processing.\r\n *\r\n * @name Phaser.GameObjects.UpdateList#_toProcess\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n\r\n scene.sys.events.once(SceneEvents.BOOT, this.boot, this);\r\n scene.sys.events.on(SceneEvents.START, this.start, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically, only once, when the Scene is first created.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.GameObjects.UpdateList#boot\r\n * @private\r\n * @since 3.5.1\r\n */\r\n boot: function ()\r\n {\r\n this.systems.events.once(SceneEvents.DESTROY, this.destroy, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically by the Scene when it is starting up.\r\n * It is responsible for creating local systems, properties and listening for Scene events.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.GameObjects.UpdateList#start\r\n * @private\r\n * @since 3.5.0\r\n */\r\n start: function ()\r\n {\r\n var eventEmitter = this.systems.events;\r\n\r\n eventEmitter.on(SceneEvents.PRE_UPDATE, this.update, this);\r\n eventEmitter.on(SceneEvents.UPDATE, this.sceneUpdate, this);\r\n eventEmitter.once(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * The update step.\r\n *\r\n * Pre-updates every active Game Object in the list.\r\n *\r\n * @method Phaser.GameObjects.UpdateList#sceneUpdate\r\n * @since 3.20.0\r\n *\r\n * @param {number} time - The current timestamp.\r\n * @param {number} delta - The delta time elapsed since the last frame.\r\n */\r\n sceneUpdate: function (time, delta)\r\n {\r\n var list = this._active;\r\n var length = list.length;\r\n\r\n for (var i = 0; i < length; i++)\r\n {\r\n var gameObject = list[i];\r\n\r\n if (gameObject.active)\r\n {\r\n gameObject.preUpdate.call(gameObject, time, delta);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is shutting down.\r\n *\r\n * We need to kill and reset all internal properties as well as stop listening to Scene events.\r\n *\r\n * @method Phaser.GameObjects.UpdateList#shutdown\r\n * @since 3.0.0\r\n */\r\n shutdown: function ()\r\n {\r\n var i = this._active.length;\r\n\r\n while (i--)\r\n {\r\n this._active[i].destroy(true);\r\n }\r\n\r\n i = this._pending.length;\r\n\r\n while (i--)\r\n {\r\n this._pending[i].destroy(true);\r\n }\r\n\r\n i = this._destroy.length;\r\n\r\n while (i--)\r\n {\r\n this._destroy[i].destroy(true);\r\n }\r\n\r\n this._toProcess = 0;\r\n\r\n this._pending = [];\r\n this._active = [];\r\n this._destroy = [];\r\n\r\n this.removeAllListeners();\r\n\r\n var eventEmitter = this.systems.events;\r\n\r\n eventEmitter.off(SceneEvents.PRE_UPDATE, this.update, this);\r\n eventEmitter.off(SceneEvents.UPDATE, this.sceneUpdate, this);\r\n eventEmitter.off(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is being destroyed.\r\n *\r\n * We need to shutdown and then kill off all external references.\r\n *\r\n * @method Phaser.GameObjects.UpdateList#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.shutdown();\r\n\r\n this.systems.events.off(SceneEvents.START, this.start, this);\r\n\r\n this.scene = null;\r\n this.systems = null;\r\n }\r\n\r\n /**\r\n * Adds a new item to the Update List.\r\n *\r\n * The item is added to the pending list and made active in the next update.\r\n *\r\n * @method Phaser.GameObjects.UpdateList#add\r\n * @since 3.0.0\r\n *\r\n * @param {*} item - The item to add to the queue.\r\n *\r\n * @return {*} The item that was added.\r\n */\r\n\r\n /**\r\n * Removes an item from the Update List.\r\n *\r\n * The item is added to the pending destroy and fully removed in the next update.\r\n *\r\n * @method Phaser.GameObjects.UpdateList#remove\r\n * @since 3.0.0\r\n *\r\n * @param {*} item - The item to be removed from the queue.\r\n *\r\n * @return {*} The item that was removed.\r\n */\r\n\r\n /**\r\n * Removes all active items from this Update List.\r\n *\r\n * All the items are marked as 'pending destroy' and fully removed in the next update.\r\n *\r\n * @method Phaser.GameObjects.UpdateList#removeAll\r\n * @since 3.20.0\r\n *\r\n * @return {this} This Update List object.\r\n */\r\n\r\n /**\r\n * Update this queue. First it will process any items awaiting destruction, and remove them.\r\n *\r\n * Then it will check to see if there are any items pending insertion, and move them to an\r\n * active state. Finally, it will return a list of active items for further processing.\r\n *\r\n * @method Phaser.GameObjects.UpdateList#update\r\n * @since 3.0.0\r\n *\r\n * @return {Array.<*>} A list of active items.\r\n */\r\n\r\n /**\r\n * Returns the current list of active items.\r\n *\r\n * This method returns a reference to the active list array, not a copy of it.\r\n * Therefore, be careful to not modify this array outside of the ProcessQueue.\r\n *\r\n * @method Phaser.GameObjects.UpdateList#getActive\r\n * @since 3.0.0\r\n *\r\n * @return {Array.<*>} A list of active items.\r\n */\r\n\r\n /**\r\n * The number of entries in the active list.\r\n *\r\n * @name Phaser.GameObjects.UpdateList#length\r\n * @type {number}\r\n * @readonly\r\n * @since 3.20.0\r\n */\r\n});\r\n\r\nPluginCache.register('UpdateList', UpdateList, 'updateList');\r\n\r\nmodule.exports = UpdateList;\r\n\n\n/***/ }),\n\n/***/ 3217:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Renders one character of the Bitmap Text to the WebGL Pipeline.\r\n *\r\n * @function BatchChar\r\n * @since 3.50.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLPipeline} pipeline - The WebGLPipeline. Must have a `batchQuad` method.\r\n * @param {Phaser.GameObjects.BitmapText} src - The BitmapText Game Object.\r\n * @param {Phaser.Types.GameObjects.BitmapText.BitmapTextCharacter} char - The character to render.\r\n * @param {Phaser.Types.GameObjects.BitmapText.BitmapFontCharacterData} glyph - The character glyph.\r\n * @param {number} offsetX - The x offset.\r\n * @param {number} offsetY - The y offset.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} calcMatrix - The transform matrix.\r\n * @param {boolean} roundPixels - Round the transform values or not?\r\n * @param {number} tintTL - Top-left tint value.\r\n * @param {number} tintTR - Top-right tint value.\r\n * @param {number} tintBL - Bottom-left tint value.\r\n * @param {number} tintBR - Bottom-right tint value.\r\n * @param {number} tintEffect - The tint effect mode.\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} texture - The texture.\r\n * @param {number} textureUnit - The texture unit.\r\n */\r\nvar BatchChar = function (pipeline, src, char, glyph, offsetX, offsetY, calcMatrix, roundPixels, tintTL, tintTR, tintBL, tintBR, tintEffect, texture, textureUnit)\r\n{\r\n var x = (char.x - src.displayOriginX) + offsetX;\r\n var y = (char.y - src.displayOriginY) + offsetY;\r\n\r\n var xw = x + char.w;\r\n var yh = y + char.h;\r\n\r\n var a = calcMatrix.a;\r\n var b = calcMatrix.b;\r\n var c = calcMatrix.c;\r\n var d = calcMatrix.d;\r\n var e = calcMatrix.e;\r\n var f = calcMatrix.f;\r\n\r\n var tx0 = x * a + y * c + e;\r\n var ty0 = x * b + y * d + f;\r\n\r\n var tx1 = x * a + yh * c + e;\r\n var ty1 = x * b + yh * d + f;\r\n\r\n var tx2 = xw * a + yh * c + e;\r\n var ty2 = xw * b + yh * d + f;\r\n\r\n var tx3 = xw * a + y * c + e;\r\n var ty3 = xw * b + y * d + f;\r\n\r\n if (roundPixels)\r\n {\r\n tx0 = Math.round(tx0);\r\n ty0 = Math.round(ty0);\r\n\r\n tx1 = Math.round(tx1);\r\n ty1 = Math.round(ty1);\r\n\r\n tx2 = Math.round(tx2);\r\n ty2 = Math.round(ty2);\r\n\r\n tx3 = Math.round(tx3);\r\n ty3 = Math.round(ty3);\r\n }\r\n\r\n pipeline.batchQuad(src, tx0, ty0, tx1, ty1, tx2, ty2, tx3, ty3, glyph.u0, glyph.v0, glyph.u1, glyph.v1, tintTL, tintTR, tintBL, tintBR, tintEffect, texture, textureUnit);\r\n};\r\n\r\nmodule.exports = BatchChar;\r\n\n\n/***/ }),\n\n/***/ 53048:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculate the full bounds, in local and world space, of a BitmapText Game Object.\r\n *\r\n * Returns a BitmapTextSize object that contains global and local variants of the Game Objects x and y coordinates and\r\n * its width and height. Also includes an array of the line lengths and all word positions.\r\n *\r\n * The global position and size take into account the Game Object's position and scale.\r\n *\r\n * The local position and size just takes into account the font data.\r\n *\r\n * @function GetBitmapTextSize\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {(Phaser.GameObjects.DynamicBitmapText|Phaser.GameObjects.BitmapText)} src - The BitmapText to calculate the bounds values for.\r\n * @param {boolean} [round=false] - Whether to round the positions to the nearest integer.\r\n * @param {boolean} [updateOrigin=false] - Whether to update the origin of the BitmapText after bounds calculations?\r\n * @param {object} [out] - Object to store the results in, to save constant object creation. If not provided an empty object is returned.\r\n *\r\n * @return {Phaser.Types.GameObjects.BitmapText.BitmapTextSize} The calculated bounds values of the BitmapText.\r\n */\r\nvar GetBitmapTextSize = function (src, round, updateOrigin, out)\r\n{\r\n if (updateOrigin === undefined) { updateOrigin = false; }\r\n\r\n if (out === undefined)\r\n {\r\n out = {\r\n local: {\r\n x: 0,\r\n y: 0,\r\n width: 0,\r\n height: 0\r\n },\r\n global: {\r\n x: 0,\r\n y: 0,\r\n width: 0,\r\n height: 0\r\n },\r\n lines: {\r\n shortest: 0,\r\n longest: 0,\r\n lengths: null,\r\n height: 0\r\n },\r\n wrappedText: '',\r\n words: [],\r\n characters: [],\r\n scaleX: 0,\r\n scaleY: 0\r\n };\r\n\r\n return out;\r\n }\r\n\r\n var text = src.text;\r\n var textLength = text.length;\r\n var maxWidth = src.maxWidth;\r\n var wordWrapCharCode = src.wordWrapCharCode;\r\n\r\n var bx = Number.MAX_VALUE;\r\n var by = Number.MAX_VALUE;\r\n var bw = 0;\r\n var bh = 0;\r\n\r\n var chars = src.fontData.chars;\r\n var lineHeight = src.fontData.lineHeight;\r\n var letterSpacing = src.letterSpacing;\r\n var lineSpacing = src.lineSpacing;\r\n\r\n var xAdvance = 0;\r\n var yAdvance = 0;\r\n\r\n var charCode = 0;\r\n\r\n var glyph = null;\r\n\r\n var align = src._align;\r\n\r\n var x = 0;\r\n var y = 0;\r\n\r\n var scale = (src.fontSize / src.fontData.size);\r\n var sx = scale * src.scaleX;\r\n var sy = scale * src.scaleY;\r\n\r\n var lastGlyph = null;\r\n var lastCharCode = 0;\r\n var lineWidths = [];\r\n var shortestLine = Number.MAX_VALUE;\r\n var longestLine = 0;\r\n var currentLine = 0;\r\n var currentLineWidth = 0;\r\n\r\n var i;\r\n var j;\r\n var lines;\r\n var words = [];\r\n var characters = [];\r\n var current = null;\r\n\r\n // Measure the width of the text\r\n var measureTextWidth = function (text, fontData)\r\n {\r\n var width = 0;\r\n\r\n for (var i = 0; i < text.length; i++)\r\n {\r\n var charCode = text.charCodeAt(i);\r\n var glyph = fontData.chars[charCode];\r\n\r\n if (glyph)\r\n {\r\n width += glyph.xAdvance;\r\n }\r\n }\r\n\r\n return width * sx;\r\n };\r\n \r\n // Scan for breach of maxWidth and insert carriage-returns\r\n if (maxWidth > 0)\r\n {\r\n // Split the text into lines\r\n lines = text.split('\\n');\r\n var wrappedLines = [];\r\n\r\n // Loop through each line\r\n for (i = 0; i < lines.length; i++)\r\n {\r\n var line = lines[i];\r\n var word = '';\r\n var wrappedLine = '';\r\n var lineToCheck = '';\r\n var lineWithWord = '';\r\n\r\n // Loop through each character in a line\r\n for (j = 0; j < line.length; j++)\r\n {\r\n charCode = line.charCodeAt(j);\r\n\r\n word += line[j];\r\n\r\n // White space or end of line?\r\n if (charCode === wordWrapCharCode || j === line.length - 1)\r\n {\r\n lineWithWord = lineToCheck + word;\r\n \r\n var textWidth = measureTextWidth(lineWithWord, src.fontData);\r\n\r\n if (textWidth <= maxWidth)\r\n {\r\n lineToCheck = lineWithWord;\r\n }\r\n else\r\n {\r\n // If the current word is too long to fit on a line, wrap it\r\n wrappedLine += (wrappedLine ? '\\n' : '') + lineToCheck;\r\n lineToCheck = word;\r\n }\r\n\r\n word = '';\r\n }\r\n }\r\n\r\n wrappedLine += (wrappedLine ? '\\n' : '') + lineToCheck;\r\n wrappedLines.push(wrappedLine);\r\n }\r\n\r\n text = wrappedLines.join('\\n');\r\n\r\n // Loop through the words array and see if we've got any > maxWidth\r\n var prev;\r\n var offset = 0;\r\n var crs = [];\r\n\r\n for (i = 0; i < words.length; i++)\r\n {\r\n var entry = words[i];\r\n var left = entry.x;\r\n var right = entry.x + entry.w;\r\n\r\n if (left === 0)\r\n {\r\n offset = 0;\r\n prev = null;\r\n }\r\n\r\n if (prev)\r\n {\r\n var diff = left - (prev.x + prev.w);\r\n\r\n offset = left - (diff + prev.w);\r\n\r\n prev = null;\r\n }\r\n\r\n var checkLeft = left - offset;\r\n var checkRight = right - offset;\r\n\r\n if (checkLeft > maxWidth || checkRight > maxWidth)\r\n {\r\n crs.push(entry.i - 1);\r\n\r\n if (entry.cr)\r\n {\r\n crs.push(entry.i + entry.word.length);\r\n\r\n offset = 0;\r\n prev = null;\r\n }\r\n else\r\n {\r\n prev = entry;\r\n }\r\n }\r\n else if (entry.cr)\r\n {\r\n crs.push(entry.i + entry.word.length);\r\n\r\n offset = 0;\r\n prev = null;\r\n }\r\n }\r\n\r\n var stringInsert = function (str, index, value)\r\n {\r\n return str.substr(0, index) + value + str.substr(index + 1);\r\n };\r\n\r\n for (i = crs.length - 1; i >= 0; i--)\r\n {\r\n if (crs[i] > -1)\r\n {\r\n text = stringInsert(text, crs[i], '\\n');\r\n }\r\n }\r\n \r\n out.wrappedText = text;\r\n\r\n textLength = text.length;\r\n\r\n // Recalculated in the next loop\r\n words = [];\r\n current = null;\r\n }\r\n\r\n var charIndex = 0;\r\n\r\n for (i = 0; i < textLength; i++)\r\n {\r\n charCode = text.charCodeAt(i);\r\n\r\n if (charCode === 10)\r\n {\r\n if (current !== null)\r\n {\r\n words.push({\r\n word: current.word,\r\n i: current.i,\r\n x: current.x * sx,\r\n y: current.y * sy,\r\n w: current.w * sx,\r\n h: current.h * sy\r\n });\r\n\r\n current = null;\r\n }\r\n\r\n lastGlyph = null;\r\n\r\n lineWidths[currentLine] = currentLineWidth;\r\n\r\n if (currentLineWidth > longestLine)\r\n {\r\n longestLine = currentLineWidth;\r\n }\r\n\r\n if (currentLineWidth < shortestLine)\r\n {\r\n shortestLine = currentLineWidth;\r\n }\r\n\r\n currentLine++;\r\n currentLineWidth = 0;\r\n\r\n xAdvance = 0;\r\n yAdvance = (lineHeight + lineSpacing) * currentLine;\r\n\r\n continue;\r\n }\r\n\r\n glyph = chars[charCode];\r\n\r\n if (!glyph)\r\n {\r\n continue;\r\n }\r\n\r\n x = xAdvance;\r\n y = yAdvance;\r\n\r\n if (lastGlyph !== null)\r\n {\r\n var kerningOffset = glyph.kerning[lastCharCode];\r\n\r\n x += (kerningOffset !== undefined) ? kerningOffset : 0;\r\n }\r\n\r\n if (bx > x)\r\n {\r\n bx = x;\r\n }\r\n\r\n if (by > y)\r\n {\r\n by = y;\r\n }\r\n\r\n var gw = x + glyph.xAdvance;\r\n var gh = y + lineHeight;\r\n\r\n if (bw < gw)\r\n {\r\n bw = gw;\r\n }\r\n\r\n if (bh < gh)\r\n {\r\n bh = gh;\r\n }\r\n\r\n var charWidth = glyph.xOffset + glyph.xAdvance + ((kerningOffset !== undefined) ? kerningOffset : 0);\r\n\r\n if (charCode === wordWrapCharCode)\r\n {\r\n if (current !== null)\r\n {\r\n words.push({\r\n word: current.word,\r\n i: current.i,\r\n x: current.x * sx,\r\n y: current.y * sy,\r\n w: current.w * sx,\r\n h: current.h * sy\r\n });\r\n\r\n current = null;\r\n }\r\n }\r\n else\r\n {\r\n if (current === null)\r\n {\r\n // We're starting a new word, recording the starting index, etc\r\n current = { word: '', i: charIndex, x: xAdvance, y: yAdvance, w: 0, h: lineHeight };\r\n }\r\n\r\n current.word = current.word.concat(text[i]);\r\n current.w += charWidth;\r\n }\r\n\r\n characters.push({\r\n i: charIndex,\r\n idx: i,\r\n char: text[i],\r\n code: charCode,\r\n x: (glyph.xOffset + x) * scale,\r\n y: (glyph.yOffset + yAdvance) * scale,\r\n w: glyph.width * scale,\r\n h: glyph.height * scale,\r\n t: yAdvance * scale,\r\n r: gw * scale,\r\n b: lineHeight * scale,\r\n line: currentLine,\r\n glyph: glyph\r\n });\r\n\r\n xAdvance += glyph.xAdvance + letterSpacing + ((kerningOffset !== undefined) ? kerningOffset : 0);\r\n lastGlyph = glyph;\r\n lastCharCode = charCode;\r\n currentLineWidth = gw * scale;\r\n charIndex++;\r\n }\r\n\r\n // Last word\r\n if (current !== null)\r\n {\r\n words.push({\r\n word: current.word,\r\n i: current.i,\r\n x: current.x * sx,\r\n y: current.y * sy,\r\n w: current.w * sx,\r\n h: current.h * sy\r\n });\r\n }\r\n\r\n lineWidths[currentLine] = currentLineWidth;\r\n\r\n if (currentLineWidth > longestLine)\r\n {\r\n longestLine = currentLineWidth;\r\n }\r\n\r\n if (currentLineWidth < shortestLine)\r\n {\r\n shortestLine = currentLineWidth;\r\n }\r\n\r\n // Adjust all of the character positions based on alignment\r\n if (align > 0)\r\n {\r\n for (var c = 0; c < characters.length; c++)\r\n {\r\n var currentChar = characters[c];\r\n\r\n if (align === 1)\r\n {\r\n var ax1 = ((longestLine - lineWidths[currentChar.line]) / 2);\r\n\r\n currentChar.x += ax1;\r\n currentChar.r += ax1;\r\n }\r\n else if (align === 2)\r\n {\r\n var ax2 = (longestLine - lineWidths[currentChar.line]);\r\n\r\n currentChar.x += ax2;\r\n currentChar.r += ax2;\r\n }\r\n }\r\n }\r\n\r\n var local = out.local;\r\n var global = out.global;\r\n \r\n lines = out.lines;\r\n\r\n local.x = bx * scale;\r\n local.y = by * scale;\r\n local.width = bw * scale;\r\n local.height = bh * scale;\r\n\r\n global.x = (src.x - src._displayOriginX) + (bx * sx);\r\n global.y = (src.y - src._displayOriginY) + (by * sy);\r\n\r\n global.width = bw * sx;\r\n global.height = bh * sy;\r\n\r\n lines.shortest = shortestLine;\r\n lines.longest = longestLine;\r\n lines.lengths = lineWidths;\r\n\r\n if (round)\r\n {\r\n local.x = Math.ceil(local.x);\r\n local.y = Math.ceil(local.y);\r\n local.width = Math.ceil(local.width);\r\n local.height = Math.ceil(local.height);\r\n\r\n global.x = Math.ceil(global.x);\r\n global.y = Math.ceil(global.y);\r\n global.width = Math.ceil(global.width);\r\n global.height = Math.ceil(global.height);\r\n\r\n lines.shortest = Math.ceil(shortestLine);\r\n lines.longest = Math.ceil(longestLine);\r\n }\r\n\r\n if (updateOrigin)\r\n {\r\n src._displayOriginX = (src.originX * local.width);\r\n src._displayOriginY = (src.originY * local.height);\r\n\r\n global.x = src.x - (src._displayOriginX * src.scaleX);\r\n global.y = src.y - (src._displayOriginY * src.scaleY);\r\n\r\n if (round)\r\n {\r\n global.x = Math.ceil(global.x);\r\n global.y = Math.ceil(global.y);\r\n }\r\n }\r\n\r\n out.words = words;\r\n out.characters = characters;\r\n out.lines.height = lineHeight;\r\n out.scale = scale;\r\n out.scaleX = src.scaleX;\r\n out.scaleY = src.scaleY;\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetBitmapTextSize;\r\n\n\n/***/ }),\n\n/***/ 61327:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar ParseXMLBitmapFont = __webpack_require__(21859);\r\n\r\n/**\r\n * Parse an XML Bitmap Font from an Atlas.\r\n *\r\n * Adds the parsed Bitmap Font data to the cache with the `fontName` key.\r\n *\r\n * @function ParseFromAtlas\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to parse the Bitmap Font for.\r\n * @param {string} fontName - The key of the font to add to the Bitmap Font cache.\r\n * @param {string} textureKey - The key of the BitmapFont's texture.\r\n * @param {string} frameKey - The key of the BitmapFont texture's frame.\r\n * @param {string} xmlKey - The key of the XML data of the font to parse.\r\n * @param {number} [xSpacing] - The x-axis spacing to add between each letter.\r\n * @param {number} [ySpacing] - The y-axis spacing to add to the line height.\r\n *\r\n * @return {boolean} Whether the parsing was successful or not.\r\n */\r\nvar ParseFromAtlas = function (scene, fontName, textureKey, frameKey, xmlKey, xSpacing, ySpacing)\r\n{\r\n var texture = scene.sys.textures.get(textureKey);\r\n var frame = texture.get(frameKey);\r\n var xml = scene.sys.cache.xml.get(xmlKey);\r\n\r\n if (frame && xml)\r\n {\r\n var data = ParseXMLBitmapFont(xml, frame, xSpacing, ySpacing, texture);\r\n\r\n scene.sys.cache.bitmapFont.add(fontName, { data: data, texture: textureKey, frame: frameKey, fromAtlas: true });\r\n\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n};\r\n\r\nmodule.exports = ParseFromAtlas;\r\n\n\n/***/ }),\n\n/***/ 6925:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetValue = __webpack_require__(35154);\r\n\r\n/**\r\n * Parses a Retro Font configuration object so you can pass it to the BitmapText constructor\r\n * and create a BitmapText object using a fixed-width retro font.\r\n *\r\n * @function Phaser.GameObjects.RetroFont.Parse\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - A reference to the Phaser Scene.\r\n * @param {Phaser.Types.GameObjects.BitmapText.RetroFontConfig} config - The font configuration object.\r\n *\r\n * @return {Phaser.Types.GameObjects.BitmapText.BitmapFontData} A parsed Bitmap Font data entry for the Bitmap Font cache.\r\n */\r\nvar ParseRetroFont = function (scene, config)\r\n{\r\n var w = config.width;\r\n var h = config.height;\r\n\r\n var cx = Math.floor(w / 2);\r\n var cy = Math.floor(h / 2);\r\n\r\n var letters = GetValue(config, 'chars', '');\r\n\r\n if (letters === '')\r\n {\r\n return;\r\n }\r\n\r\n var key = GetValue(config, 'image', '');\r\n\r\n var frame = scene.sys.textures.getFrame(key);\r\n var textureX = frame.cutX;\r\n var textureY = frame.cutY;\r\n var textureWidth = frame.source.width;\r\n var textureHeight = frame.source.height;\r\n\r\n var offsetX = GetValue(config, 'offset.x', 0);\r\n var offsetY = GetValue(config, 'offset.y', 0);\r\n var spacingX = GetValue(config, 'spacing.x', 0);\r\n var spacingY = GetValue(config, 'spacing.y', 0);\r\n var lineSpacing = GetValue(config, 'lineSpacing', 0);\r\n\r\n var charsPerRow = GetValue(config, 'charsPerRow', null);\r\n\r\n if (charsPerRow === null)\r\n {\r\n charsPerRow = textureWidth / w;\r\n\r\n if (charsPerRow > letters.length)\r\n {\r\n charsPerRow = letters.length;\r\n }\r\n }\r\n\r\n var x = offsetX;\r\n var y = offsetY;\r\n\r\n var data = {\r\n retroFont: true,\r\n font: key,\r\n size: w,\r\n lineHeight: h + lineSpacing,\r\n chars: {}\r\n };\r\n\r\n var r = 0;\r\n\r\n for (var i = 0; i < letters.length; i++)\r\n {\r\n var charCode = letters.charCodeAt(i);\r\n\r\n var u0 = (textureX + x) / textureWidth;\r\n var v0 = (textureY + y) / textureHeight;\r\n var u1 = (textureX + x + w) / textureWidth;\r\n var v1 = (textureY + y + h) / textureHeight;\r\n\r\n data.chars[charCode] =\r\n {\r\n x: x,\r\n y: y,\r\n width: w,\r\n height: h,\r\n centerX: cx,\r\n centerY: cy,\r\n xOffset: 0,\r\n yOffset: 0,\r\n xAdvance: w,\r\n data: {},\r\n kerning: {},\r\n u0: u0,\r\n v0: v0,\r\n u1: u1,\r\n v1: v1\r\n };\r\n\r\n r++;\r\n\r\n if (r === charsPerRow)\r\n {\r\n r = 0;\r\n x = offsetX;\r\n y += h + spacingY;\r\n }\r\n else\r\n {\r\n x += w + spacingX;\r\n }\r\n }\r\n\r\n var entry = {\r\n data: data,\r\n frame: null,\r\n texture: key\r\n };\r\n\r\n return entry;\r\n};\r\n\r\nmodule.exports = ParseRetroFont;\r\n\n\n/***/ }),\n\n/***/ 21859:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Read an integer value from an XML Node.\r\n *\r\n * @function getValue\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {Node} node - The XML Node.\r\n * @param {string} attribute - The attribute to read.\r\n *\r\n * @return {number} The parsed value.\r\n */\r\nfunction getValue (node, attribute)\r\n{\r\n return parseInt(node.getAttribute(attribute), 10);\r\n}\r\n\r\n/**\r\n * Parse an XML font to Bitmap Font data for the Bitmap Font cache.\r\n *\r\n * @function ParseXMLBitmapFont\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {XMLDocument} xml - The XML Document to parse the font from.\r\n * @param {Phaser.Textures.Frame} frame - The texture frame to take into account when creating the uv data.\r\n * @param {number} [xSpacing=0] - The x-axis spacing to add between each letter.\r\n * @param {number} [ySpacing=0] - The y-axis spacing to add to the line height.\r\n * @param {Phaser.Textures.Texture} [texture] - If provided, each glyph in the Bitmap Font will be added to this texture as a frame.\r\n *\r\n * @return {Phaser.Types.GameObjects.BitmapText.BitmapFontData} The parsed Bitmap Font data.\r\n */\r\nvar ParseXMLBitmapFont = function (xml, frame, xSpacing, ySpacing, texture)\r\n{\r\n if (xSpacing === undefined) { xSpacing = 0; }\r\n if (ySpacing === undefined) { ySpacing = 0; }\r\n\r\n var textureX = frame.cutX;\r\n var textureY = frame.cutY;\r\n var textureWidth = frame.source.width;\r\n var textureHeight = frame.source.height;\r\n var sourceIndex = frame.sourceIndex;\r\n\r\n var data = {};\r\n var info = xml.getElementsByTagName('info')[0];\r\n var common = xml.getElementsByTagName('common')[0];\r\n\r\n data.font = info.getAttribute('face');\r\n data.size = getValue(info, 'size');\r\n data.lineHeight = getValue(common, 'lineHeight') + ySpacing;\r\n data.chars = {};\r\n\r\n var letters = xml.getElementsByTagName('char');\r\n\r\n var adjustForTrim = (frame !== undefined && frame.trimmed);\r\n\r\n if (adjustForTrim)\r\n {\r\n var top = frame.height;\r\n var left = frame.width;\r\n }\r\n\r\n for (var i = 0; i < letters.length; i++)\r\n {\r\n var node = letters[i];\r\n\r\n var charCode = getValue(node, 'id');\r\n var letter = String.fromCharCode(charCode);\r\n var gx = getValue(node, 'x');\r\n var gy = getValue(node, 'y');\r\n var gw = getValue(node, 'width');\r\n var gh = getValue(node, 'height');\r\n\r\n // Handle frame trim issues\r\n\r\n if (adjustForTrim)\r\n {\r\n if (gx < left)\r\n {\r\n left = gx;\r\n }\r\n\r\n if (gy < top)\r\n {\r\n top = gy;\r\n }\r\n }\r\n\r\n if (adjustForTrim && top !== 0 && left !== 0)\r\n {\r\n // Now we know the top and left coordinates of the glyphs in the original data\r\n // so we can work out how much to adjust the glyphs by\r\n\r\n gx -= frame.x;\r\n gy -= frame.y;\r\n }\r\n\r\n var u0 = (textureX + gx) / textureWidth;\r\n var v0 = (textureY + gy) / textureHeight;\r\n var u1 = (textureX + gx + gw) / textureWidth;\r\n var v1 = (textureY + gy + gh) / textureHeight;\r\n\r\n data.chars[charCode] =\r\n {\r\n x: gx,\r\n y: gy,\r\n width: gw,\r\n height: gh,\r\n centerX: Math.floor(gw / 2),\r\n centerY: Math.floor(gh / 2),\r\n xOffset: getValue(node, 'xoffset'),\r\n yOffset: getValue(node, 'yoffset'),\r\n xAdvance: getValue(node, 'xadvance') + xSpacing,\r\n data: {},\r\n kerning: {},\r\n u0: u0,\r\n v0: v0,\r\n u1: u1,\r\n v1: v1\r\n };\r\n\r\n if (texture && gw !== 0 && gh !== 0)\r\n {\r\n var charFrame = texture.add(letter, sourceIndex, gx, gy, gw, gh);\r\n\r\n if (charFrame)\r\n {\r\n charFrame.setUVs(gw, gh, u0, v0, u1, v1);\r\n }\r\n }\r\n }\r\n\r\n var kernings = xml.getElementsByTagName('kerning');\r\n\r\n for (i = 0; i < kernings.length; i++)\r\n {\r\n var kern = kernings[i];\r\n\r\n var first = getValue(kern, 'first');\r\n var second = getValue(kern, 'second');\r\n var amount = getValue(kern, 'amount');\r\n\r\n data.chars[second].kerning[first] = amount;\r\n }\r\n\r\n return data;\r\n};\r\n\r\nmodule.exports = ParseXMLBitmapFont;\r\n\n\n/***/ }),\n\n/***/ 196:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar RETRO_FONT_CONST = __webpack_require__(87662);\r\nvar Extend = __webpack_require__(79291);\r\n\r\n/**\r\n * @namespace Phaser.GameObjects.RetroFont\r\n * @since 3.6.0\r\n */\r\n\r\nvar RetroFont = { Parse: __webpack_require__(6925) };\r\n\r\n// Merge in the consts\r\nRetroFont = Extend(false, RetroFont, RETRO_FONT_CONST);\r\n\r\nmodule.exports = RetroFont;\r\n\n\n/***/ }),\n\n/***/ 87662:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar RETRO_FONT_CONST = {\r\n\r\n /**\r\n * Text Set 1 = !\\\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\r\n * \r\n * @name Phaser.GameObjects.RetroFont.TEXT_SET1\r\n * @type {string}\r\n * @since 3.6.0\r\n */\r\n TEXT_SET1: ' !\"#$%&\\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~',\r\n\r\n /**\r\n * Text Set 2 = !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\r\n * \r\n * @name Phaser.GameObjects.RetroFont.TEXT_SET2\r\n * @type {string}\r\n * @since 3.6.0\r\n */\r\n TEXT_SET2: ' !\"#$%&\\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ',\r\n\r\n /**\r\n * Text Set 3 = ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 \r\n * \r\n * @name Phaser.GameObjects.RetroFont.TEXT_SET3\r\n * @type {string}\r\n * @since 3.6.0\r\n */\r\n TEXT_SET3: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ',\r\n\r\n /**\r\n * Text Set 4 = ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789\r\n * \r\n * @name Phaser.GameObjects.RetroFont.TEXT_SET4\r\n * @type {string}\r\n * @since 3.6.0\r\n */\r\n TEXT_SET4: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789',\r\n\r\n /**\r\n * Text Set 5 = ABCDEFGHIJKLMNOPQRSTUVWXYZ.,/() '!?-*:0123456789\r\n * \r\n * @name Phaser.GameObjects.RetroFont.TEXT_SET5\r\n * @type {string}\r\n * @since 3.6.0\r\n */\r\n TEXT_SET5: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ.,/() \\'!?-*:0123456789',\r\n\r\n /**\r\n * Text Set 6 = ABCDEFGHIJKLMNOPQRSTUVWXYZ!?:;0123456789\"(),-.' \r\n * \r\n * @name Phaser.GameObjects.RetroFont.TEXT_SET6\r\n * @type {string}\r\n * @since 3.6.0\r\n */\r\n TEXT_SET6: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ!?:;0123456789\"(),-.\\' ',\r\n\r\n /**\r\n * Text Set 7 = AGMSY+:4BHNTZ!;5CIOU.?06DJPV,(17EKQW\")28FLRX-'39\r\n * \r\n * @name Phaser.GameObjects.RetroFont.TEXT_SET7\r\n * @type {string}\r\n * @since 3.6.0\r\n */\r\n TEXT_SET7: 'AGMSY+:4BHNTZ!;5CIOU.?06DJPV,(17EKQW\")28FLRX-\\'39',\r\n\r\n /**\r\n * Text Set 8 = 0123456789 .ABCDEFGHIJKLMNOPQRSTUVWXYZ\r\n * \r\n * @name Phaser.GameObjects.RetroFont.TEXT_SET8\r\n * @type {string}\r\n * @since 3.6.0\r\n */\r\n TEXT_SET8: '0123456789 .ABCDEFGHIJKLMNOPQRSTUVWXYZ',\r\n\r\n /**\r\n * Text Set 9 = ABCDEFGHIJKLMNOPQRSTUVWXYZ()-0123456789.:,'\"?!\r\n * \r\n * @name Phaser.GameObjects.RetroFont.TEXT_SET9\r\n * @type {string}\r\n * @since 3.6.0\r\n */\r\n TEXT_SET9: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ()-0123456789.:,\\'\"?!',\r\n\r\n /**\r\n * Text Set 10 = ABCDEFGHIJKLMNOPQRSTUVWXYZ\r\n * \r\n * @name Phaser.GameObjects.RetroFont.TEXT_SET10\r\n * @type {string}\r\n * @since 3.6.0\r\n */\r\n TEXT_SET10: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',\r\n\r\n /**\r\n * Text Set 11 = ABCDEFGHIJKLMNOPQRSTUVWXYZ.,\"-+!?()':;0123456789\r\n * \r\n * @name Phaser.GameObjects.RetroFont.TEXT_SET11\r\n * @since 3.6.0\r\n * @type {string}\r\n */\r\n TEXT_SET11: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ.,\"-+!?()\\':;0123456789'\r\n\r\n};\r\n\r\nmodule.exports = RETRO_FONT_CONST;\r\n\n\n/***/ }),\n\n/***/ 2638:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BitmapText = __webpack_require__(22186);\r\nvar Class = __webpack_require__(83419);\r\nvar Render = __webpack_require__(12310);\r\n\r\n/**\r\n * @classdesc\r\n * BitmapText objects work by taking a texture file and an XML or JSON file that describes the font structure.\r\n *\r\n * During rendering for each letter of the text is rendered to the display, proportionally spaced out and aligned to\r\n * match the font structure.\r\n *\r\n * Dynamic Bitmap Text objects are different from Static Bitmap Text in that they invoke a callback for each\r\n * letter being rendered during the render pass. This callback allows you to manipulate the properties of\r\n * each letter being rendered, such as its position, scale or tint, allowing you to create interesting effects\r\n * like jiggling text, which can't be done with Static text. This means that Dynamic Text takes more processing\r\n * time, so only use them if you require the callback ability they have.\r\n *\r\n * BitmapText objects are less flexible than Text objects, in that they have less features such as shadows, fills and the ability\r\n * to use Web Fonts, however you trade this flexibility for rendering speed. You can also create visually compelling BitmapTexts by\r\n * processing the font texture in an image editor, applying fills and any other effects required.\r\n *\r\n * To create multi-line text insert \\r, \\n or \\r\\n escape codes into the text string.\r\n *\r\n * To create a BitmapText data files you need a 3rd party app such as:\r\n *\r\n * BMFont (Windows, free): {@link http://www.angelcode.com/products/bmfont/|http://www.angelcode.com/products/bmfont/}\r\n * Glyph Designer (OS X, commercial): {@link http://www.71squared.com/en/glyphdesigner|http://www.71squared.com/en/glyphdesigner}\r\n * Snow BMF (Web-based, free): {@link https://snowb.org//|https://snowb.org/}\r\n * Littera (Flash-based, free): {@link http://kvazars.com/littera/|http://kvazars.com/littera/}\r\n *\r\n * For most use cases it is recommended to use XML. If you wish to use JSON, the formatting should be equal to the result of\r\n * converting a valid XML file through the popular X2JS library. An online tool for conversion can be found here: {@link http://codebeautify.org/xmltojson|http://codebeautify.org/xmltojson}\r\n *\r\n * @class DynamicBitmapText\r\n * @extends Phaser.GameObjects.BitmapText\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. It can only belong to one Scene at any given time.\r\n * @param {number} x - The x coordinate of this Game Object in world space.\r\n * @param {number} y - The y coordinate of this Game Object in world space.\r\n * @param {string} font - The key of the font to use from the Bitmap Font cache.\r\n * @param {(string|string[])} [text] - The string, or array of strings, to be set as the content of this Bitmap Text.\r\n * @param {number} [size] - The font size of this Bitmap Text.\r\n * @param {number} [align=0] - The alignment of the text in a multi-line BitmapText object.\r\n */\r\nvar DynamicBitmapText = new Class({\r\n\r\n Extends: BitmapText,\r\n\r\n Mixins: [\r\n Render\r\n ],\r\n\r\n initialize:\r\n\r\n function DynamicBitmapText (scene, x, y, font, text, size, align)\r\n {\r\n BitmapText.call(this, scene, x, y, font, text, size, align);\r\n\r\n this.type = 'DynamicBitmapText';\r\n\r\n /**\r\n * The horizontal scroll position of the Bitmap Text.\r\n *\r\n * @name Phaser.GameObjects.DynamicBitmapText#scrollX\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.scrollX = 0;\r\n\r\n /**\r\n * The vertical scroll position of the Bitmap Text.\r\n *\r\n * @name Phaser.GameObjects.DynamicBitmapText#scrollY\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.scrollY = 0;\r\n\r\n /**\r\n * The crop width of the Bitmap Text.\r\n *\r\n * @name Phaser.GameObjects.DynamicBitmapText#cropWidth\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.cropWidth = 0;\r\n\r\n /**\r\n * The crop height of the Bitmap Text.\r\n *\r\n * @name Phaser.GameObjects.DynamicBitmapText#cropHeight\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.cropHeight = 0;\r\n\r\n /**\r\n * A callback that alters how each character of the Bitmap Text is rendered.\r\n *\r\n * @name Phaser.GameObjects.DynamicBitmapText#displayCallback\r\n * @type {Phaser.Types.GameObjects.BitmapText.DisplayCallback}\r\n * @since 3.0.0\r\n */\r\n this.displayCallback;\r\n\r\n /**\r\n * The data object that is populated during rendering, then passed to the displayCallback.\r\n * You should modify this object then return it back from the callback. It's updated values\r\n * will be used to render the specific glyph.\r\n *\r\n * Please note that if you need a reference to this object locally in your game code then you\r\n * should shallow copy it, as it's updated and re-used for every glyph in the text.\r\n *\r\n * @name Phaser.GameObjects.DynamicBitmapText#callbackData\r\n * @type {Phaser.Types.GameObjects.BitmapText.DisplayCallbackConfig}\r\n * @since 3.11.0\r\n */\r\n this.callbackData = {\r\n parent: this,\r\n color: 0,\r\n tint: {\r\n topLeft: 0,\r\n topRight: 0,\r\n bottomLeft: 0,\r\n bottomRight: 0\r\n },\r\n index: 0,\r\n charCode: 0,\r\n x: 0,\r\n y: 0,\r\n scale: 0,\r\n rotation: 0,\r\n data: 0\r\n };\r\n },\r\n\r\n /**\r\n * Set the crop size of this Bitmap Text.\r\n *\r\n * @method Phaser.GameObjects.DynamicBitmapText#setSize\r\n * @since 3.0.0\r\n *\r\n * @param {number} width - The width of the crop.\r\n * @param {number} height - The height of the crop.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setSize: function (width, height)\r\n {\r\n this.cropWidth = width;\r\n this.cropHeight = height;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set a callback that alters how each character of the Bitmap Text is rendered.\r\n *\r\n * The callback receives a {@link Phaser.Types.GameObjects.BitmapText.DisplayCallbackConfig} object that contains information about the character that's\r\n * about to be rendered.\r\n *\r\n * It should return an object with `x`, `y`, `scale` and `rotation` properties that will be used instead of the\r\n * usual values when rendering.\r\n *\r\n * @method Phaser.GameObjects.DynamicBitmapText#setDisplayCallback\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.BitmapText.DisplayCallback} callback - The display callback to set.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setDisplayCallback: function (callback)\r\n {\r\n this.displayCallback = callback;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the horizontal scroll position of this Bitmap Text.\r\n *\r\n * @method Phaser.GameObjects.DynamicBitmapText#setScrollX\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The horizontal scroll position to set.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setScrollX: function (value)\r\n {\r\n this.scrollX = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the vertical scroll position of this Bitmap Text.\r\n *\r\n * @method Phaser.GameObjects.DynamicBitmapText#setScrollY\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The vertical scroll position to set.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setScrollY: function (value)\r\n {\r\n this.scrollY = value;\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = DynamicBitmapText;\r\n\n\n/***/ }),\n\n/***/ 86741:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar SetTransform = __webpack_require__(20926);\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.DynamicBitmapText#renderCanvas\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.DynamicBitmapText} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar DynamicBitmapTextCanvasRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n var text = src._text;\r\n var textLength = text.length;\r\n\r\n var ctx = renderer.currentContext;\r\n\r\n if (textLength === 0 || !SetTransform(renderer, ctx, src, camera, parentMatrix))\r\n {\r\n return;\r\n }\r\n\r\n camera.addToRenderList(src);\r\n\r\n var textureFrame = src.fromAtlas\r\n ? src.frame\r\n : src.texture.frames['__BASE'];\r\n\r\n var displayCallback = src.displayCallback;\r\n var callbackData = src.callbackData;\r\n\r\n var chars = src.fontData.chars;\r\n var lineHeight = src.fontData.lineHeight;\r\n var letterSpacing = src._letterSpacing;\r\n\r\n var xAdvance = 0;\r\n var yAdvance = 0;\r\n\r\n var charCode = 0;\r\n\r\n var glyph = null;\r\n var glyphX = 0;\r\n var glyphY = 0;\r\n var glyphW = 0;\r\n var glyphH = 0;\r\n\r\n var x = 0;\r\n var y = 0;\r\n\r\n var lastGlyph = null;\r\n var lastCharCode = 0;\r\n\r\n var image = src.frame.source.image;\r\n\r\n var textureX = textureFrame.cutX;\r\n var textureY = textureFrame.cutY;\r\n\r\n var rotation = 0;\r\n var scale = 0;\r\n var baseScale = (src._fontSize / src.fontData.size);\r\n\r\n var align = src._align;\r\n var currentLine = 0;\r\n var lineOffsetX = 0;\r\n\r\n // Update the bounds - skipped internally if not dirty\r\n src.getTextBounds(false);\r\n\r\n var lineData = src._bounds.lines;\r\n\r\n if (align === 1)\r\n {\r\n lineOffsetX = (lineData.longest - lineData.lengths[0]) / 2;\r\n }\r\n else if (align === 2)\r\n {\r\n lineOffsetX = (lineData.longest - lineData.lengths[0]);\r\n }\r\n\r\n ctx.translate(-src.displayOriginX, -src.displayOriginY);\r\n\r\n var roundPixels = camera.roundPixels;\r\n\r\n if (src.cropWidth > 0 && src.cropHeight > 0)\r\n {\r\n ctx.beginPath();\r\n ctx.rect(0, 0, src.cropWidth, src.cropHeight);\r\n ctx.clip();\r\n }\r\n\r\n for (var i = 0; i < textLength; i++)\r\n {\r\n // Reset the scale (in case the callback changed it)\r\n scale = baseScale;\r\n rotation = 0;\r\n\r\n charCode = text.charCodeAt(i);\r\n\r\n if (charCode === 10)\r\n {\r\n currentLine++;\r\n\r\n if (align === 1)\r\n {\r\n lineOffsetX = (lineData.longest - lineData.lengths[currentLine]) / 2;\r\n }\r\n else if (align === 2)\r\n {\r\n lineOffsetX = (lineData.longest - lineData.lengths[currentLine]);\r\n }\r\n\r\n xAdvance = 0;\r\n yAdvance += lineHeight;\r\n lastGlyph = null;\r\n\r\n continue;\r\n }\r\n\r\n glyph = chars[charCode];\r\n\r\n if (!glyph)\r\n {\r\n continue;\r\n }\r\n\r\n glyphX = textureX + glyph.x;\r\n glyphY = textureY + glyph.y;\r\n\r\n glyphW = glyph.width;\r\n glyphH = glyph.height;\r\n\r\n x = (glyph.xOffset + xAdvance) - src.scrollX;\r\n y = (glyph.yOffset + yAdvance) - src.scrollY;\r\n\r\n if (lastGlyph !== null)\r\n {\r\n var kerningOffset = glyph.kerning[lastCharCode];\r\n x += (kerningOffset !== undefined) ? kerningOffset : 0;\r\n }\r\n\r\n if (displayCallback)\r\n {\r\n callbackData.index = i;\r\n callbackData.charCode = charCode;\r\n callbackData.x = x;\r\n callbackData.y = y;\r\n callbackData.scale = scale;\r\n callbackData.rotation = rotation;\r\n callbackData.data = glyph.data;\r\n\r\n var output = displayCallback(callbackData);\r\n\r\n x = output.x;\r\n y = output.y;\r\n scale = output.scale;\r\n rotation = output.rotation;\r\n }\r\n\r\n x *= scale;\r\n y *= scale;\r\n\r\n x += lineOffsetX;\r\n\r\n xAdvance += glyph.xAdvance + letterSpacing + ((kerningOffset !== undefined) ? kerningOffset : 0);\r\n lastGlyph = glyph;\r\n lastCharCode = charCode;\r\n\r\n // Nothing to render or a space? Then skip to the next glyph\r\n if (glyphW === 0 || glyphH === 0 || charCode === 32)\r\n {\r\n continue;\r\n }\r\n\r\n if (roundPixels)\r\n {\r\n x = Math.round(x);\r\n y = Math.round(y);\r\n }\r\n\r\n ctx.save();\r\n\r\n ctx.translate(x, y);\r\n\r\n ctx.rotate(rotation);\r\n\r\n ctx.scale(scale, scale);\r\n\r\n ctx.drawImage(image, glyphX, glyphY, glyphW, glyphH, 0, 0, glyphW, glyphH);\r\n\r\n ctx.restore();\r\n }\r\n\r\n ctx.restore();\r\n};\r\n\r\nmodule.exports = DynamicBitmapTextCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 11164:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BitmapText = __webpack_require__(2638);\r\nvar BuildGameObject = __webpack_require__(25305);\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\n\r\n/**\r\n * Creates a new Dynamic Bitmap Text Game Object and returns it.\r\n *\r\n * Note: This method will only be available if the Dynamic Bitmap Text Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#dynamicBitmapText\r\n * @since 3.0.0\r\n *²\r\n * @param {Phaser.Types.GameObjects.BitmapText.BitmapTextConfig} config - The configuration object this Game Object will use to create itself.\r\n * @param {boolean} [addToScene] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.\r\n *\r\n * @return {Phaser.GameObjects.DynamicBitmapText} The Game Object that was created.\r\n */\r\nGameObjectCreator.register('dynamicBitmapText', function (config, addToScene)\r\n{\r\n if (config === undefined) { config = {}; }\r\n\r\n var font = GetAdvancedValue(config, 'font', '');\r\n var text = GetAdvancedValue(config, 'text', '');\r\n var size = GetAdvancedValue(config, 'size', false);\r\n\r\n var bitmapText = new BitmapText(this.scene, 0, 0, font, text, size);\r\n\r\n if (addToScene !== undefined)\r\n {\r\n config.add = addToScene;\r\n }\r\n\r\n BuildGameObject(this.scene, bitmapText, config);\r\n\r\n return bitmapText;\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectCreator context.\r\n\n\n/***/ }),\n\n/***/ 72566:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar DynamicBitmapText = __webpack_require__(2638);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * Creates a new Dynamic Bitmap Text Game Object and adds it to the Scene.\r\n * \r\n * BitmapText objects work by taking a texture file and an XML or JSON file that describes the font structure.\r\n * \r\n * During rendering for each letter of the text is rendered to the display, proportionally spaced out and aligned to\r\n * match the font structure.\r\n * \r\n * Dynamic Bitmap Text objects are different from Static Bitmap Text in that they invoke a callback for each\r\n * letter being rendered during the render pass. This callback allows you to manipulate the properties of\r\n * each letter being rendered, such as its position, scale or tint, allowing you to create interesting effects\r\n * like jiggling text, which can't be done with Static text. This means that Dynamic Text takes more processing\r\n * time, so only use them if you require the callback ability they have.\r\n *\r\n * BitmapText objects are less flexible than Text objects, in that they have less features such as shadows, fills and the ability\r\n * to use Web Fonts, however you trade this flexibility for rendering speed. You can also create visually compelling BitmapTexts by\r\n * processing the font texture in an image editor, applying fills and any other effects required.\r\n *\r\n * To create multi-line text insert \\r, \\n or \\r\\n escape codes into the text string.\r\n *\r\n * To create a BitmapText data files you need a 3rd party app such as:\r\n *\r\n * BMFont (Windows, free): http://www.angelcode.com/products/bmfont/\r\n * Glyph Designer (OS X, commercial): http://www.71squared.com/en/glyphdesigner\r\n * Littera (Web-based, free): http://kvazars.com/littera/\r\n *\r\n * For most use cases it is recommended to use XML. If you wish to use JSON, the formatting should be equal to the result of\r\n * converting a valid XML file through the popular X2JS library. An online tool for conversion can be found here: http://codebeautify.org/xmltojson\r\n *\r\n * Note: This method will only be available if the Dynamic Bitmap Text Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#dynamicBitmapText\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x position of the Game Object.\r\n * @param {number} y - The y position of the Game Object.\r\n * @param {string} font - The key of the font to use from the BitmapFont cache.\r\n * @param {(string|string[])} [text] - The string, or array of strings, to be set as the content of this Bitmap Text.\r\n * @param {number} [size] - The font size to set.\r\n *\r\n * @return {Phaser.GameObjects.DynamicBitmapText} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('dynamicBitmapText', function (x, y, font, text, size)\r\n{\r\n return this.displayList.add(new DynamicBitmapText(this.scene, x, y, font, text, size));\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectFactory context.\r\n//\r\n// There are several properties available to use:\r\n//\r\n// this.scene - a reference to the Scene that owns the GameObjectFactory\r\n// this.displayList - a reference to the Display List the Scene owns\r\n// this.updateList - a reference to the Update List the Scene owns\r\n\n\n/***/ }),\n\n/***/ 12310:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(73482);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(86741);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 73482:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetCalcMatrix = __webpack_require__(91296);\r\nvar TransformMatrix = __webpack_require__(61340);\r\nvar Utils = __webpack_require__(70554);\r\n\r\nvar tempMatrix = new TransformMatrix();\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.DynamicBitmapText#renderWebGL\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.DynamicBitmapText} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar DynamicBitmapTextWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n var text = src.text;\r\n var textLength = text.length;\r\n\r\n if (textLength === 0)\r\n {\r\n return;\r\n }\r\n\r\n camera.addToRenderList(src);\r\n\r\n var pipeline = renderer.pipelines.set(src.pipeline, src);\r\n\r\n var result = GetCalcMatrix(src, camera, parentMatrix);\r\n\r\n // This causes a flush if the BitmapText has a Post Pipeline\r\n renderer.pipelines.preBatch(src);\r\n\r\n var spriteMatrix = result.sprite;\r\n var calcMatrix = result.calc;\r\n\r\n var fontMatrix = tempMatrix;\r\n\r\n var crop = (src.cropWidth > 0 || src.cropHeight > 0);\r\n\r\n if (crop)\r\n {\r\n pipeline.flush();\r\n\r\n renderer.pushScissor(\r\n calcMatrix.tx,\r\n calcMatrix.ty,\r\n src.cropWidth * calcMatrix.scaleX,\r\n src.cropHeight * calcMatrix.scaleY\r\n );\r\n }\r\n\r\n var frame = src.frame;\r\n var texture = frame.glTexture;\r\n\r\n var tintEffect = src.tintFill;\r\n var tintTL = Utils.getTintAppendFloatAlpha(src.tintTopLeft, camera.alpha * src._alphaTL);\r\n var tintTR = Utils.getTintAppendFloatAlpha(src.tintTopRight, camera.alpha * src._alphaTR);\r\n var tintBL = Utils.getTintAppendFloatAlpha(src.tintBottomLeft, camera.alpha * src._alphaBL);\r\n var tintBR = Utils.getTintAppendFloatAlpha(src.tintBottomRight, camera.alpha * src._alphaBR);\r\n\r\n var textureUnit = pipeline.setGameObject(src);\r\n\r\n var xAdvance = 0;\r\n var yAdvance = 0;\r\n var charCode = 0;\r\n var lastCharCode = 0;\r\n var letterSpacing = src.letterSpacing;\r\n var glyph;\r\n var glyphW = 0;\r\n var glyphH = 0;\r\n var lastGlyph;\r\n var scrollX = src.scrollX;\r\n var scrollY = src.scrollY;\r\n\r\n var fontData = src.fontData;\r\n var chars = fontData.chars;\r\n var lineHeight = fontData.lineHeight;\r\n var scale = (src.fontSize / fontData.size);\r\n var rotation = 0;\r\n\r\n var align = src._align;\r\n var currentLine = 0;\r\n var lineOffsetX = 0;\r\n\r\n // Update the bounds - skipped internally if not dirty\r\n var bounds = src.getTextBounds(false);\r\n\r\n // In case the method above changed it (word wrapping)\r\n if (src.maxWidth > 0)\r\n {\r\n text = bounds.wrappedText;\r\n textLength = text.length;\r\n }\r\n\r\n var lineData = src._bounds.lines;\r\n\r\n if (align === 1)\r\n {\r\n lineOffsetX = (lineData.longest - lineData.lengths[0]) / 2;\r\n }\r\n else if (align === 2)\r\n {\r\n lineOffsetX = (lineData.longest - lineData.lengths[0]);\r\n }\r\n\r\n var roundPixels = camera.roundPixels;\r\n var displayCallback = src.displayCallback;\r\n var callbackData = src.callbackData;\r\n\r\n for (var i = 0; i < textLength; i++)\r\n {\r\n charCode = text.charCodeAt(i);\r\n\r\n // Carriage-return\r\n if (charCode === 10)\r\n {\r\n currentLine++;\r\n\r\n if (align === 1)\r\n {\r\n lineOffsetX = (lineData.longest - lineData.lengths[currentLine]) / 2;\r\n }\r\n else if (align === 2)\r\n {\r\n lineOffsetX = (lineData.longest - lineData.lengths[currentLine]);\r\n }\r\n\r\n xAdvance = 0;\r\n yAdvance += lineHeight;\r\n lastGlyph = null;\r\n\r\n continue;\r\n }\r\n\r\n glyph = chars[charCode];\r\n\r\n if (!glyph)\r\n {\r\n continue;\r\n }\r\n\r\n glyphW = glyph.width;\r\n glyphH = glyph.height;\r\n\r\n var x = (glyph.xOffset + xAdvance) - scrollX;\r\n var y = (glyph.yOffset + yAdvance) - scrollY;\r\n\r\n if (lastGlyph !== null)\r\n {\r\n var kerningOffset = glyph.kerning[lastCharCode] || 0;\r\n x += kerningOffset;\r\n xAdvance += kerningOffset;\r\n }\r\n\r\n xAdvance += glyph.xAdvance + letterSpacing;\r\n lastGlyph = glyph;\r\n lastCharCode = charCode;\r\n\r\n // Nothing to render or a space? Then skip to the next glyph\r\n if (glyphW === 0 || glyphH === 0 || charCode === 32)\r\n {\r\n continue;\r\n }\r\n\r\n scale = (src.fontSize / src.fontData.size);\r\n rotation = 0;\r\n\r\n if (displayCallback)\r\n {\r\n callbackData.color = 0;\r\n callbackData.tint.topLeft = tintTL;\r\n callbackData.tint.topRight = tintTR;\r\n callbackData.tint.bottomLeft = tintBL;\r\n callbackData.tint.bottomRight = tintBR;\r\n callbackData.index = i;\r\n callbackData.charCode = charCode;\r\n callbackData.x = x;\r\n callbackData.y = y;\r\n callbackData.scale = scale;\r\n callbackData.rotation = rotation;\r\n callbackData.data = glyph.data;\r\n\r\n var output = displayCallback(callbackData);\r\n\r\n x = output.x;\r\n y = output.y;\r\n scale = output.scale;\r\n rotation = output.rotation;\r\n\r\n if (output.color)\r\n {\r\n tintTL = output.color;\r\n tintTR = output.color;\r\n tintBL = output.color;\r\n tintBR = output.color;\r\n }\r\n else\r\n {\r\n tintTL = output.tint.topLeft;\r\n tintTR = output.tint.topRight;\r\n tintBL = output.tint.bottomLeft;\r\n tintBR = output.tint.bottomRight;\r\n }\r\n\r\n tintTL = Utils.getTintAppendFloatAlpha(tintTL, camera.alpha * src._alphaTL);\r\n tintTR = Utils.getTintAppendFloatAlpha(tintTR, camera.alpha * src._alphaTR);\r\n tintBL = Utils.getTintAppendFloatAlpha(tintBL, camera.alpha * src._alphaBL);\r\n tintBR = Utils.getTintAppendFloatAlpha(tintBR, camera.alpha * src._alphaBR);\r\n }\r\n\r\n x *= scale;\r\n y *= scale;\r\n\r\n x -= src.displayOriginX;\r\n y -= src.displayOriginY;\r\n\r\n x += lineOffsetX;\r\n\r\n fontMatrix.applyITRS(x, y, rotation, scale, scale);\r\n\r\n calcMatrix.multiply(fontMatrix, spriteMatrix);\r\n\r\n var u0 = glyph.u0;\r\n var v0 = glyph.v0;\r\n var u1 = glyph.u1;\r\n var v1 = glyph.v1;\r\n\r\n var xw = glyphW;\r\n var yh = glyphH;\r\n\r\n var tx0 = spriteMatrix.e;\r\n var ty0 = spriteMatrix.f;\r\n\r\n var tx1 = yh * spriteMatrix.c + spriteMatrix.e;\r\n var ty1 = yh * spriteMatrix.d + spriteMatrix.f;\r\n\r\n var tx2 = xw * spriteMatrix.a + yh * spriteMatrix.c + spriteMatrix.e;\r\n var ty2 = xw * spriteMatrix.b + yh * spriteMatrix.d + spriteMatrix.f;\r\n\r\n var tx3 = xw * spriteMatrix.a + spriteMatrix.e;\r\n var ty3 = xw * spriteMatrix.b + spriteMatrix.f;\r\n\r\n if (roundPixels)\r\n {\r\n tx0 = Math.round(tx0);\r\n ty0 = Math.round(ty0);\r\n\r\n tx1 = Math.round(tx1);\r\n ty1 = Math.round(ty1);\r\n\r\n tx2 = Math.round(tx2);\r\n ty2 = Math.round(ty2);\r\n\r\n tx3 = Math.round(tx3);\r\n ty3 = Math.round(ty3);\r\n }\r\n\r\n if (pipeline.shouldFlush(6))\r\n {\r\n pipeline.flush();\r\n textureUnit = pipeline.setGameObject(src);\r\n }\r\n\r\n pipeline.batchQuad(src, tx0, ty0, tx1, ty1, tx2, ty2, tx3, ty3, u0, v0, u1, v1, tintTL, tintTR, tintBL, tintBR, tintEffect, texture, textureUnit);\r\n }\r\n\r\n if (crop)\r\n {\r\n pipeline.flush();\r\n\r\n renderer.popScissor();\r\n }\r\n\r\n renderer.pipelines.postBatch(src);\r\n};\r\n\r\nmodule.exports = DynamicBitmapTextWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 22186:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Clamp = __webpack_require__(45319);\r\nvar Components = __webpack_require__(31401);\r\nvar GameObject = __webpack_require__(95643);\r\nvar GetBitmapTextSize = __webpack_require__(53048);\r\nvar ParseFromAtlas = __webpack_require__(61327);\r\nvar ParseXMLBitmapFont = __webpack_require__(21859);\r\nvar Rectangle = __webpack_require__(87841);\r\nvar Render = __webpack_require__(18658);\r\n\r\n/**\r\n * @classdesc\r\n * BitmapText objects work by taking a texture file and an XML or JSON file that describes the font structure.\r\n *\r\n * During rendering for each letter of the text is rendered to the display, proportionally spaced out and aligned to\r\n * match the font structure.\r\n *\r\n * BitmapText objects are less flexible than Text objects, in that they have less features such as shadows, fills and the ability\r\n * to use Web Fonts, however you trade this flexibility for rendering speed. You can also create visually compelling BitmapTexts by\r\n * processing the font texture in an image editor, applying fills and any other effects required.\r\n *\r\n * To create multi-line text insert \\r, \\n or \\r\\n escape codes into the text string.\r\n *\r\n * To create a BitmapText data files you need a 3rd party app such as:\r\n *\r\n * BMFont (Windows, free): {@link http://www.angelcode.com/products/bmfont/|http://www.angelcode.com/products/bmfont/}\r\n * Glyph Designer (OS X, commercial): {@link http://www.71squared.com/en/glyphdesigner|http://www.71squared.com/en/glyphdesigner}\r\n * Snow BMF (Web-based, free): {@link https://snowb.org//|https://snowb.org/}\r\n * Littera (Flash-based, free): {@link http://kvazars.com/littera/|http://kvazars.com/littera/}\r\n *\r\n * For most use cases it is recommended to use XML. If you wish to use JSON, the formatting should be equal to the result of\r\n * converting a valid XML file through the popular X2JS library. An online tool for conversion can be found here: {@link http://codebeautify.org/xmltojson|http://codebeautify.org/xmltojson}\r\n *\r\n * @class BitmapText\r\n * @extends Phaser.GameObjects.GameObject\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @extends Phaser.GameObjects.Components.Alpha\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.GetBounds\r\n * @extends Phaser.GameObjects.Components.Mask\r\n * @extends Phaser.GameObjects.Components.Origin\r\n * @extends Phaser.GameObjects.Components.Pipeline\r\n * @extends Phaser.GameObjects.Components.PostPipeline\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n * @extends Phaser.GameObjects.Components.Texture\r\n * @extends Phaser.GameObjects.Components.Tint\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. It can only belong to one Scene at any given time.\r\n * @param {number} x - The x coordinate of this Game Object in world space.\r\n * @param {number} y - The y coordinate of this Game Object in world space.\r\n * @param {string} font - The key of the font to use from the Bitmap Font cache.\r\n * @param {(string|string[])} [text] - The string, or array of strings, to be set as the content of this Bitmap Text.\r\n * @param {number} [size] - The font size of this Bitmap Text.\r\n * @param {number} [align=0] - The alignment of the text in a multi-line BitmapText object.\r\n */\r\nvar BitmapText = new Class({\r\n\r\n Extends: GameObject,\r\n\r\n Mixins: [\r\n Components.Alpha,\r\n Components.BlendMode,\r\n Components.Depth,\r\n Components.GetBounds,\r\n Components.Mask,\r\n Components.Origin,\r\n Components.Pipeline,\r\n Components.PostPipeline,\r\n Components.ScrollFactor,\r\n Components.Texture,\r\n Components.Tint,\r\n Components.Transform,\r\n Components.Visible,\r\n Render\r\n ],\r\n\r\n initialize:\r\n\r\n function BitmapText (scene, x, y, font, text, size, align)\r\n {\r\n if (text === undefined) { text = ''; }\r\n if (align === undefined) { align = 0; }\r\n\r\n GameObject.call(this, scene, 'BitmapText');\r\n\r\n /**\r\n * The key of the Bitmap Font used by this Bitmap Text.\r\n * To change the font after creation please use `setFont`.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#font\r\n * @type {string}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.font = font;\r\n\r\n var entry = this.scene.sys.cache.bitmapFont.get(font);\r\n\r\n if (!entry)\r\n {\r\n throw new Error('Invalid BitmapText key: ' + font);\r\n }\r\n\r\n /**\r\n * The data of the Bitmap Font used by this Bitmap Text.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#fontData\r\n * @type {Phaser.Types.GameObjects.BitmapText.BitmapFontData}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.fontData = entry.data;\r\n\r\n /**\r\n * The text that this Bitmap Text object displays.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#_text\r\n * @type {string}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._text = '';\r\n\r\n /**\r\n * The font size of this Bitmap Text.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#_fontSize\r\n * @type {number}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._fontSize = size || this.fontData.size;\r\n\r\n /**\r\n * Adds / Removes spacing between characters.\r\n *\r\n * Can be a negative or positive number.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#_letterSpacing\r\n * @type {number}\r\n * @private\r\n * @since 3.4.0\r\n */\r\n this._letterSpacing = 0;\r\n\r\n /**\r\n * Adds / Removes line spacing in a multiline BitmapText object.\r\n *\r\n * Can be a negative or positive number.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#_lineSpacing\r\n * @type {number}\r\n * @private\r\n * @since 3.60.0\r\n */\r\n this._lineSpacing = 0;\r\n\r\n /**\r\n * Controls the alignment of each line of text in this BitmapText object.\r\n * Only has any effect when this BitmapText contains multiple lines of text, split with carriage-returns.\r\n * Has no effect with single-lines of text.\r\n *\r\n * See the methods `setLeftAlign`, `setCenterAlign` and `setRightAlign`.\r\n *\r\n * 0 = Left aligned (default)\r\n * 1 = Middle aligned\r\n * 2 = Right aligned\r\n *\r\n * The alignment position is based on the longest line of text.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#_align\r\n * @type {number}\r\n * @private\r\n * @since 3.11.0\r\n */\r\n this._align = align;\r\n\r\n /**\r\n * An object that describes the size of this Bitmap Text.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#_bounds\r\n * @type {Phaser.Types.GameObjects.BitmapText.BitmapTextSize}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._bounds = GetBitmapTextSize();\r\n\r\n /**\r\n * An internal dirty flag for bounds calculation.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#_dirty\r\n * @type {boolean}\r\n * @private\r\n * @since 3.11.0\r\n */\r\n this._dirty = true;\r\n\r\n /**\r\n * Internal cache var holding the maxWidth.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#_maxWidth\r\n * @type {number}\r\n * @private\r\n * @since 3.21.0\r\n */\r\n this._maxWidth = 0;\r\n\r\n /**\r\n * The character code used to detect for word wrapping.\r\n * Defaults to 32 (a space character).\r\n *\r\n * @name Phaser.GameObjects.BitmapText#wordWrapCharCode\r\n * @type {number}\r\n * @since 3.21.0\r\n */\r\n this.wordWrapCharCode = 32;\r\n\r\n /**\r\n * Internal array holding the character tint color data.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#charColors\r\n * @type {array}\r\n * @private\r\n * @since 3.50.0\r\n */\r\n this.charColors = [];\r\n\r\n /**\r\n * The horizontal offset of the drop shadow.\r\n *\r\n * You can set this directly, or use `Phaser.GameObjects.BitmapText#setDropShadow`.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#dropShadowX\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.dropShadowX = 0;\r\n\r\n /**\r\n * The vertical offset of the drop shadow.\r\n *\r\n * You can set this directly, or use `Phaser.GameObjects.BitmapText#setDropShadow`.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#dropShadowY\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.dropShadowY = 0;\r\n\r\n /**\r\n * The color of the drop shadow.\r\n *\r\n * You can set this directly, or use `Phaser.GameObjects.BitmapText#setDropShadow`.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#dropShadowColor\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.dropShadowColor = 0x000000;\r\n\r\n /**\r\n * The alpha value of the drop shadow.\r\n *\r\n * You can set this directly, or use `Phaser.GameObjects.BitmapText#setDropShadow`.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#dropShadowAlpha\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.dropShadowAlpha = 0.5;\r\n\r\n /**\r\n * Indicates whether the font texture is from an atlas or not.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#fromAtlas\r\n * @type {boolean}\r\n * @since 3.54.0\r\n * @readonly\r\n */\r\n this.fromAtlas = entry.fromAtlas;\r\n\r\n this.setTexture(entry.texture, entry.frame);\r\n this.setPosition(x, y);\r\n this.setOrigin(0, 0);\r\n this.initPipeline();\r\n this.initPostPipeline();\r\n\r\n this.setText(text);\r\n },\r\n\r\n /**\r\n * Set the lines of text in this BitmapText to be left-aligned.\r\n * This only has any effect if this BitmapText contains more than one line of text.\r\n *\r\n * @method Phaser.GameObjects.BitmapText#setLeftAlign\r\n * @since 3.11.0\r\n *\r\n * @return {this} This BitmapText Object.\r\n */\r\n setLeftAlign: function ()\r\n {\r\n this._align = BitmapText.ALIGN_LEFT;\r\n\r\n this._dirty = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the lines of text in this BitmapText to be center-aligned.\r\n * This only has any effect if this BitmapText contains more than one line of text.\r\n *\r\n * @method Phaser.GameObjects.BitmapText#setCenterAlign\r\n * @since 3.11.0\r\n *\r\n * @return {this} This BitmapText Object.\r\n */\r\n setCenterAlign: function ()\r\n {\r\n this._align = BitmapText.ALIGN_CENTER;\r\n\r\n this._dirty = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the lines of text in this BitmapText to be right-aligned.\r\n * This only has any effect if this BitmapText contains more than one line of text.\r\n *\r\n * @method Phaser.GameObjects.BitmapText#setRightAlign\r\n * @since 3.11.0\r\n *\r\n * @return {this} This BitmapText Object.\r\n */\r\n setRightAlign: function ()\r\n {\r\n this._align = BitmapText.ALIGN_RIGHT;\r\n\r\n this._dirty = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the font size of this Bitmap Text.\r\n *\r\n * @method Phaser.GameObjects.BitmapText#setFontSize\r\n * @since 3.0.0\r\n *\r\n * @param {number} size - The font size to set.\r\n *\r\n * @return {this} This BitmapText Object.\r\n */\r\n setFontSize: function (size)\r\n {\r\n this._fontSize = size;\r\n\r\n this._dirty = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the letter spacing between each character of this Bitmap Text.\r\n * Can be a positive value to increase the space, or negative to reduce it.\r\n * Spacing is applied after the kerning values have been set.\r\n *\r\n * @method Phaser.GameObjects.BitmapText#setLetterSpacing\r\n * @since 3.4.0\r\n *\r\n * @param {number} [spacing=0] - The amount of horizontal space to add between each character.\r\n *\r\n * @return {this} This BitmapText Object.\r\n */\r\n setLetterSpacing: function (spacing)\r\n {\r\n if (spacing === undefined) { spacing = 0; }\r\n\r\n this._letterSpacing = spacing;\r\n\r\n this._dirty = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the line spacing value. This value is added to the font height to\r\n * calculate the overall line height.\r\n *\r\n * Spacing can be a negative or positive number.\r\n *\r\n * Only has an effect if this BitmapText object contains multiple lines of text.\r\n *\r\n * @method Phaser.GameObjects.BitmapText#setLineSpacing\r\n * @since 3.60.0\r\n *\r\n * @param {number} [spacing=0] - The amount of space to add between each line in multi-line text.\r\n *\r\n * @return {this} This BitmapText Object.\r\n */\r\n setLineSpacing: function (spacing)\r\n {\r\n if (spacing === undefined) { spacing = 0; }\r\n\r\n this.lineSpacing = spacing;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the textual content of this BitmapText.\r\n *\r\n * An array of strings will be converted into multi-line text. Use the align methods to change multi-line alignment.\r\n *\r\n * @method Phaser.GameObjects.BitmapText#setText\r\n * @since 3.0.0\r\n *\r\n * @param {(string|string[])} value - The string, or array of strings, to be set as the content of this BitmapText.\r\n *\r\n * @return {this} This BitmapText Object.\r\n */\r\n setText: function (value)\r\n {\r\n if (!value && value !== 0)\r\n {\r\n value = '';\r\n }\r\n\r\n if (Array.isArray(value))\r\n {\r\n value = value.join('\\n');\r\n }\r\n\r\n if (value !== this.text)\r\n {\r\n this._text = value.toString();\r\n\r\n this._dirty = true;\r\n\r\n this.updateDisplayOrigin();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a drop shadow effect on this Bitmap Text.\r\n *\r\n * This is a WebGL only feature and only works with Static Bitmap Text, not Dynamic.\r\n *\r\n * You can set the vertical and horizontal offset of the shadow, as well as the color and alpha.\r\n *\r\n * Once a shadow has been enabled you can modify the `dropShadowX` and `dropShadowY` properties of this\r\n * Bitmap Text directly to adjust the position of the shadow in real-time.\r\n *\r\n * If you wish to clear the shadow, call this method with no parameters specified.\r\n *\r\n * @method Phaser.GameObjects.BitmapText#setDropShadow\r\n * @webglOnly\r\n * @since 3.50.0\r\n *\r\n * @param {number} [x=0] - The horizontal offset of the drop shadow.\r\n * @param {number} [y=0] - The vertical offset of the drop shadow.\r\n * @param {number} [color=0x000000] - The color of the drop shadow, given as a hex value, i.e. `0x000000` for black.\r\n * @param {number} [alpha=0.5] - The alpha of the drop shadow, given as a float between 0 and 1. This is combined with the Bitmap Text alpha as well.\r\n *\r\n * @return {this} This BitmapText Object.\r\n */\r\n setDropShadow: function (x, y, color, alpha)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (color === undefined) { color = 0x000000; }\r\n if (alpha === undefined) { alpha = 0.5; }\r\n\r\n this.dropShadowX = x;\r\n this.dropShadowY = y;\r\n this.dropShadowColor = color;\r\n this.dropShadowAlpha = alpha;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a tint on a range of characters in this Bitmap Text, starting from the `start` parameter index\r\n * and running for `length` quantity of characters.\r\n *\r\n * The `start` parameter can be negative. In this case, it starts at the end of the text and counts\r\n * backwards `start` places.\r\n *\r\n * You can also pass in -1 as the `length` and it will tint all characters from `start`\r\n * up until the end of the string.\r\n\r\n * Remember that spaces and punctuation count as characters.\r\n *\r\n * This is a WebGL only feature and only works with Static Bitmap Text, not Dynamic.\r\n *\r\n * The tint works by taking the pixel color values from the Bitmap Text texture, and then\r\n * multiplying it by the color value of the tint. You can provide either one color value,\r\n * in which case the whole character will be tinted in that color. Or you can provide a color\r\n * per corner. The colors are blended together across the extent of the character range.\r\n *\r\n * To swap this from being an additive tint to a fill based tint, set the `tintFill` parameter to `true`.\r\n *\r\n * To modify the tint color once set, call this method again with new color values.\r\n *\r\n * Using `setWordTint` can override tints set by this function, and vice versa.\r\n *\r\n * To remove a tint call this method with just the `start`, and optionally, the `length` parameters defined.\r\n *\r\n * @method Phaser.GameObjects.BitmapText#setCharacterTint\r\n * @webglOnly\r\n * @since 3.50.0\r\n *\r\n * @param {number} [start=0] - The starting character to begin the tint at. If negative, it counts back from the end of the text.\r\n * @param {number} [length=1] - The number of characters to tint. Remember that spaces count as a character too. Pass -1 to tint all characters from `start` onwards.\r\n * @param {boolean} [tintFill=false] - Use a fill-based tint (true), or an additive tint (false)\r\n * @param {number} [topLeft=0xffffff] - The tint being applied to the top-left of the character. If not other values are given this value is applied evenly, tinting the whole character.\r\n * @param {number} [topRight] - The tint being applied to the top-right of the character.\r\n * @param {number} [bottomLeft] - The tint being applied to the bottom-left of the character.\r\n * @param {number} [bottomRight] - The tint being applied to the bottom-right of the character.\r\n *\r\n * @return {this} This BitmapText Object.\r\n */\r\n setCharacterTint: function (start, length, tintFill, topLeft, topRight, bottomLeft, bottomRight)\r\n {\r\n if (start === undefined) { start = 0; }\r\n if (length === undefined) { length = 1; }\r\n if (tintFill === undefined) { tintFill = false; }\r\n if (topLeft === undefined) { topLeft = -1; }\r\n\r\n if (topRight === undefined)\r\n {\r\n topRight = topLeft;\r\n bottomLeft = topLeft;\r\n bottomRight = topLeft;\r\n }\r\n\r\n var len = this.text.length;\r\n\r\n if (length === -1)\r\n {\r\n length = len;\r\n }\r\n\r\n if (start < 0)\r\n {\r\n start = len + start;\r\n }\r\n\r\n start = Clamp(start, 0, len - 1);\r\n\r\n var end = Clamp(start + length, start, len);\r\n\r\n var charColors = this.charColors;\r\n\r\n for (var i = start; i < end; i++)\r\n {\r\n var color = charColors[i];\r\n\r\n if (topLeft === -1)\r\n {\r\n charColors[i] = null;\r\n }\r\n else\r\n {\r\n var tintEffect = (tintFill) ? 1 : 0;\r\n\r\n if (color)\r\n {\r\n color.tintEffect = tintEffect;\r\n color.tintTL = topLeft;\r\n color.tintTR = topRight;\r\n color.tintBL = bottomLeft;\r\n color.tintBR = bottomRight;\r\n }\r\n else\r\n {\r\n charColors[i] = {\r\n tintEffect: tintEffect,\r\n tintTL: topLeft,\r\n tintTR: topRight,\r\n tintBL: bottomLeft,\r\n tintBR: bottomRight\r\n };\r\n }\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a tint on a matching word within this Bitmap Text.\r\n *\r\n * The `word` parameter can be either a string or a number.\r\n *\r\n * If a string, it will run a string comparison against the text contents, and if matching,\r\n * it will tint the whole word.\r\n *\r\n * If a number, if till that word, based on its offset within the text contents.\r\n *\r\n * The `count` parameter controls how many words are replaced. Pass in -1 to replace them all.\r\n *\r\n * This parameter is ignored if you pass a number as the `word` to be searched for.\r\n *\r\n * This is a WebGL only feature and only works with Static Bitmap Text, not Dynamic.\r\n *\r\n * The tint works by taking the pixel color values from the Bitmap Text texture, and then\r\n * multiplying it by the color value of the tint. You can provide either one color value,\r\n * in which case the whole character will be tinted in that color. Or you can provide a color\r\n * per corner. The colors are blended together across the extent of the character range.\r\n *\r\n * To swap this from being an additive tint to a fill based tint, set the `tintFill` parameter to `true`.\r\n *\r\n * To modify the tint color once set, call this method again with new color values.\r\n *\r\n * Using `setCharacterTint` can override tints set by this function, and vice versa.\r\n *\r\n * @method Phaser.GameObjects.BitmapText#setWordTint\r\n * @webglOnly\r\n * @since 3.50.0\r\n *\r\n * @param {(string|number)} word - The word to search for. Either a string, or an index of the word in the words array.\r\n * @param {number} [count=1] - The number of matching words to tint. Pass -1 to tint all matching words.\r\n * @param {boolean} [tintFill=false] - Use a fill-based tint (true), or an additive tint (false)\r\n * @param {number} [topLeft=0xffffff] - The tint being applied to the top-left of the word. If not other values are given this value is applied evenly, tinting the whole word.\r\n * @param {number} [topRight] - The tint being applied to the top-right of the word.\r\n * @param {number} [bottomLeft] - The tint being applied to the bottom-left of the word.\r\n * @param {number} [bottomRight] - The tint being applied to the bottom-right of the word.\r\n *\r\n * @return {this} This BitmapText Object.\r\n */\r\n setWordTint: function (word, count, tintFill, topLeft, topRight, bottomLeft, bottomRight)\r\n {\r\n if (count === undefined) { count = 1; }\r\n\r\n var bounds = this.getTextBounds();\r\n\r\n var words = bounds.words;\r\n\r\n var wordIsNumber = (typeof(word) === 'number');\r\n\r\n var total = 0;\r\n\r\n for (var i = 0; i < words.length; i++)\r\n {\r\n var lineword = words[i];\r\n\r\n if ((wordIsNumber && i === word) || (!wordIsNumber && lineword.word === word))\r\n {\r\n this.setCharacterTint(lineword.i, lineword.word.length, tintFill, topLeft, topRight, bottomLeft, bottomRight);\r\n\r\n total++;\r\n\r\n if (total === count)\r\n {\r\n return this;\r\n }\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calculate the bounds of this Bitmap Text.\r\n *\r\n * An object is returned that contains the position, width and height of the Bitmap Text in local and global\r\n * contexts.\r\n *\r\n * Local size is based on just the font size and a [0, 0] position.\r\n *\r\n * Global size takes into account the Game Object's scale, world position and display origin.\r\n *\r\n * Also in the object is data regarding the length of each line, should this be a multi-line BitmapText.\r\n *\r\n * @method Phaser.GameObjects.BitmapText#getTextBounds\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [round=false] - Whether to round the results up to the nearest integer.\r\n *\r\n * @return {Phaser.Types.GameObjects.BitmapText.BitmapTextSize} An object that describes the size of this Bitmap Text.\r\n */\r\n getTextBounds: function (round)\r\n {\r\n // local = The BitmapText based on fontSize and 0x0 coords\r\n // global = The BitmapText, taking into account scale and world position\r\n // lines = The BitmapText line data\r\n\r\n var bounds = this._bounds;\r\n\r\n if (this._dirty || round || this.scaleX !== bounds.scaleX || this.scaleY !== bounds.scaleY)\r\n {\r\n GetBitmapTextSize(this, round, true, bounds);\r\n\r\n this._dirty = false;\r\n }\r\n\r\n return bounds;\r\n },\r\n\r\n /**\r\n * Gets the character located at the given x/y coordinate within this Bitmap Text.\r\n *\r\n * The coordinates you pass in are translated into the local space of the\r\n * Bitmap Text, however, it is up to you to first translate the input coordinates to world space.\r\n *\r\n * If you wish to use this in combination with an input event, be sure\r\n * to pass in `Pointer.worldX` and `worldY` so they are in world space.\r\n *\r\n * In some cases, based on kerning, characters can overlap. When this happens,\r\n * the first character in the word is returned.\r\n *\r\n * Note that this does not work for DynamicBitmapText if you have changed the\r\n * character positions during render. It will only scan characters in their un-translated state.\r\n *\r\n * @method Phaser.GameObjects.BitmapText#getCharacterAt\r\n * @since 3.50.0\r\n *\r\n * @param {number} x - The x position to check.\r\n * @param {number} y - The y position to check.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera which is being tested against. If not given will use the Scene default camera.\r\n *\r\n * @return {Phaser.Types.GameObjects.BitmapText.BitmapTextCharacter} The character object at the given position, or `null`.\r\n */\r\n getCharacterAt: function (x, y, camera)\r\n {\r\n var point = this.getLocalPoint(x, y, null, camera);\r\n\r\n var bounds = this.getTextBounds();\r\n\r\n var chars = bounds.characters;\r\n\r\n var tempRect = new Rectangle();\r\n\r\n for (var i = 0; i < chars.length; i++)\r\n {\r\n var char = chars[i];\r\n\r\n tempRect.setTo(char.x, char.t, char.r - char.x, char.b);\r\n\r\n if (tempRect.contains(point.x, point.y))\r\n {\r\n return char;\r\n }\r\n }\r\n\r\n return null;\r\n },\r\n\r\n /**\r\n * Updates the Display Origin cached values internally stored on this Game Object.\r\n * You don't usually call this directly, but it is exposed for edge-cases where you may.\r\n *\r\n * @method Phaser.GameObjects.BitmapText#updateDisplayOrigin\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n updateDisplayOrigin: function ()\r\n {\r\n this._dirty = true;\r\n\r\n this.getTextBounds(false);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Changes the font this BitmapText is using to render.\r\n *\r\n * The new texture is loaded and applied to the BitmapText. The existing text, size and alignment are preserved,\r\n * unless overridden via the arguments.\r\n *\r\n * @method Phaser.GameObjects.BitmapText#setFont\r\n * @since 3.11.0\r\n *\r\n * @param {string} font - The key of the font to use from the Bitmap Font cache.\r\n * @param {number} [size] - The font size of this Bitmap Text. If not specified the current size will be used.\r\n * @param {number} [align=0] - The alignment of the text in a multi-line BitmapText object. If not specified the current alignment will be used.\r\n *\r\n * @return {this} This BitmapText Object.\r\n */\r\n setFont: function (key, size, align)\r\n {\r\n if (size === undefined) { size = this._fontSize; }\r\n if (align === undefined) { align = this._align; }\r\n\r\n var entry = this.scene.sys.cache.bitmapFont.get(key);\r\n\r\n if (entry)\r\n {\r\n this.font = key;\r\n this.fontData = entry.data;\r\n this._fontSize = size;\r\n this._align = align;\r\n this.fromAtlas = entry.fromAtlas === true;\r\n\r\n this.setTexture(entry.texture, entry.frame);\r\n\r\n GetBitmapTextSize(this, false, true, this._bounds);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the maximum display width of this BitmapText in pixels.\r\n *\r\n * If `BitmapText.text` is longer than `maxWidth` then the lines will be automatically wrapped\r\n * based on the previous whitespace character found in the line.\r\n *\r\n * If no whitespace was found then no wrapping will take place and consequently the `maxWidth` value will not be honored.\r\n *\r\n * Disable maxWidth by setting the value to 0.\r\n *\r\n * You can set the whitespace character to be searched for by setting the `wordWrapCharCode` parameter or property.\r\n *\r\n * @method Phaser.GameObjects.BitmapText#setMaxWidth\r\n * @since 3.21.0\r\n *\r\n * @param {number} value - The maximum display width of this BitmapText in pixels. Set to zero to disable.\r\n * @param {number} [wordWrapCharCode] - The character code to check for when word wrapping. Defaults to 32 (the space character).\r\n *\r\n * @return {this} This BitmapText Object.\r\n */\r\n setMaxWidth: function (value, wordWrapCharCode)\r\n {\r\n this._maxWidth = value;\r\n\r\n this._dirty = true;\r\n\r\n if (wordWrapCharCode !== undefined)\r\n {\r\n this.wordWrapCharCode = wordWrapCharCode;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Controls the alignment of each line of text in this BitmapText object.\r\n *\r\n * Only has any effect when this BitmapText contains multiple lines of text, split with carriage-returns.\r\n * Has no effect with single-lines of text.\r\n *\r\n * See the methods `setLeftAlign`, `setCenterAlign` and `setRightAlign`.\r\n *\r\n * 0 = Left aligned (default)\r\n * 1 = Middle aligned\r\n * 2 = Right aligned\r\n *\r\n * The alignment position is based on the longest line of text.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#align\r\n * @type {number}\r\n * @since 3.11.0\r\n */\r\n align: {\r\n\r\n set: function (value)\r\n {\r\n this._align = value;\r\n this._dirty = true;\r\n },\r\n\r\n get: function ()\r\n {\r\n return this._align;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The text that this Bitmap Text object displays.\r\n *\r\n * You can also use the method `setText` if you want a chainable way to change the text content.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#text\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n text: {\r\n\r\n set: function (value)\r\n {\r\n this.setText(value);\r\n },\r\n\r\n get: function ()\r\n {\r\n return this._text;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The font size of this Bitmap Text.\r\n *\r\n * You can also use the method `setFontSize` if you want a chainable way to change the font size.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#fontSize\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n fontSize: {\r\n\r\n set: function (value)\r\n {\r\n this._fontSize = value;\r\n this._dirty = true;\r\n },\r\n\r\n get: function ()\r\n {\r\n return this._fontSize;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Adds / Removes spacing between characters.\r\n *\r\n * Can be a negative or positive number.\r\n *\r\n * You can also use the method `setLetterSpacing` if you want a chainable way to change the letter spacing.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#letterSpacing\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n letterSpacing: {\r\n\r\n set: function (value)\r\n {\r\n this._letterSpacing = value;\r\n this._dirty = true;\r\n },\r\n\r\n get: function ()\r\n {\r\n return this._letterSpacing;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Adds / Removes spacing between lines.\r\n *\r\n * Can be a negative or positive number.\r\n *\r\n * You can also use the method `setLineSpacing` if you want a chainable way to change the line spacing.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#lineSpacing\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n lineSpacing: {\r\n\r\n set: function (value)\r\n {\r\n this._lineSpacing = value;\r\n this._dirty = true;\r\n },\r\n\r\n get: function ()\r\n {\r\n return this._lineSpacing;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The maximum display width of this BitmapText in pixels.\r\n *\r\n * If BitmapText.text is longer than maxWidth then the lines will be automatically wrapped\r\n * based on the last whitespace character found in the line.\r\n *\r\n * If no whitespace was found then no wrapping will take place and consequently the maxWidth value will not be honored.\r\n *\r\n * Disable maxWidth by setting the value to 0.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#maxWidth\r\n * @type {number}\r\n * @since 3.21.0\r\n */\r\n maxWidth: {\r\n\r\n set: function (value)\r\n {\r\n this._maxWidth = value;\r\n this._dirty = true;\r\n },\r\n\r\n get: function ()\r\n {\r\n return this._maxWidth;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The width of this Bitmap Text.\r\n *\r\n * This property is read-only.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#width\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n width: {\r\n\r\n get: function ()\r\n {\r\n this.getTextBounds(false);\r\n\r\n return this._bounds.global.width;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The height of this Bitmap text.\r\n *\r\n * This property is read-only.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#height\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n height: {\r\n\r\n get: function ()\r\n {\r\n this.getTextBounds(false);\r\n\r\n return this._bounds.global.height;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The displayed width of this Bitmap Text.\r\n *\r\n * This value takes into account the scale factor.\r\n *\r\n * This property is read-only.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#displayWidth\r\n * @type {number}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n displayWidth: {\r\n\r\n get: function ()\r\n {\r\n return this.width;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The displayed height of this Bitmap Text.\r\n *\r\n * This value takes into account the scale factor.\r\n *\r\n * This property is read-only.\r\n *\r\n * @name Phaser.GameObjects.BitmapText#displayHeight\r\n * @type {number}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n displayHeight: {\r\n\r\n get: function ()\r\n {\r\n return this.height;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Build a JSON representation of this Bitmap Text.\r\n *\r\n * @method Phaser.GameObjects.BitmapText#toJSON\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Types.GameObjects.BitmapText.JSONBitmapText} A JSON representation of this Bitmap Text.\r\n */\r\n toJSON: function ()\r\n {\r\n var out = Components.ToJSON(this);\r\n\r\n // Extra data is added here\r\n\r\n var data = {\r\n font: this.font,\r\n text: this.text,\r\n fontSize: this.fontSize,\r\n letterSpacing: this.letterSpacing,\r\n lineSpacing: this.lineSpacing,\r\n align: this.align\r\n };\r\n\r\n out.data = data;\r\n\r\n return out;\r\n },\r\n\r\n /**\r\n * Internal destroy handler, called as part of the destroy process.\r\n *\r\n * @method Phaser.GameObjects.BitmapText#preDestroy\r\n * @protected\r\n * @since 3.50.0\r\n */\r\n preDestroy: function ()\r\n {\r\n this.charColors.length = 0;\r\n this._bounds = null;\r\n this.fontData = null;\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Left align the text characters in a multi-line BitmapText object.\r\n *\r\n * @name Phaser.GameObjects.BitmapText.ALIGN_LEFT\r\n * @type {number}\r\n * @since 3.11.0\r\n */\r\nBitmapText.ALIGN_LEFT = 0;\r\n\r\n/**\r\n * Center align the text characters in a multi-line BitmapText object.\r\n *\r\n * @name Phaser.GameObjects.BitmapText.ALIGN_CENTER\r\n * @type {number}\r\n * @since 3.11.0\r\n */\r\nBitmapText.ALIGN_CENTER = 1;\r\n\r\n/**\r\n * Right align the text characters in a multi-line BitmapText object.\r\n *\r\n * @name Phaser.GameObjects.BitmapText.ALIGN_RIGHT\r\n * @type {number}\r\n * @since 3.11.0\r\n */\r\nBitmapText.ALIGN_RIGHT = 2;\r\n\r\n/**\r\n * Parse an XML Bitmap Font from an Atlas.\r\n *\r\n * Adds the parsed Bitmap Font data to the cache with the `fontName` key.\r\n *\r\n * @method Phaser.GameObjects.BitmapText.ParseFromAtlas\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to parse the Bitmap Font for.\r\n * @param {string} fontName - The key of the font to add to the Bitmap Font cache.\r\n * @param {string} textureKey - The key of the BitmapFont's texture.\r\n * @param {string} frameKey - The key of the BitmapFont texture's frame.\r\n * @param {string} xmlKey - The key of the XML data of the font to parse.\r\n * @param {number} [xSpacing] - The x-axis spacing to add between each letter.\r\n * @param {number} [ySpacing] - The y-axis spacing to add to the line height.\r\n *\r\n * @return {boolean} Whether the parsing was successful or not.\r\n */\r\nBitmapText.ParseFromAtlas = ParseFromAtlas;\r\n\r\n/**\r\n * Parse an XML font to Bitmap Font data for the Bitmap Font cache.\r\n *\r\n * @method Phaser.GameObjects.BitmapText.ParseXMLBitmapFont\r\n * @since 3.17.0\r\n *\r\n * @param {XMLDocument} xml - The XML Document to parse the font from.\r\n * @param {Phaser.Textures.Frame} frame - The texture frame to take into account when creating the uv data.\r\n * @param {number} [xSpacing=0] - The x-axis spacing to add between each letter.\r\n * @param {number} [ySpacing=0] - The y-axis spacing to add to the line height.\r\n *\r\n * @return {Phaser.Types.GameObjects.BitmapText.BitmapFontData} The parsed Bitmap Font data.\r\n */\r\nBitmapText.ParseXMLBitmapFont = ParseXMLBitmapFont;\r\n\r\nmodule.exports = BitmapText;\r\n\n\n/***/ }),\n\n/***/ 37289:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar SetTransform = __webpack_require__(20926);\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.BitmapText#renderCanvas\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.BitmapText} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar BitmapTextCanvasRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n var text = src._text;\r\n var textLength = text.length;\r\n\r\n var ctx = renderer.currentContext;\r\n\r\n if (textLength === 0 || !SetTransform(renderer, ctx, src, camera, parentMatrix))\r\n {\r\n return;\r\n }\r\n\r\n camera.addToRenderList(src);\r\n\r\n var textureFrame = src.fromAtlas\r\n ? src.frame\r\n : src.texture.frames['__BASE'];\r\n\r\n var chars = src.fontData.chars;\r\n var lineHeight = src.fontData.lineHeight;\r\n var letterSpacing = src._letterSpacing;\r\n var lineSpacing = src._lineSpacing;\r\n\r\n var xAdvance = 0;\r\n var yAdvance = 0;\r\n\r\n var charCode = 0;\r\n\r\n var glyph = null;\r\n var glyphX = 0;\r\n var glyphY = 0;\r\n var glyphW = 0;\r\n var glyphH = 0;\r\n\r\n var x = 0;\r\n var y = 0;\r\n\r\n var lastGlyph = null;\r\n var lastCharCode = 0;\r\n\r\n var image = textureFrame.source.image;\r\n\r\n var textureX = textureFrame.cutX;\r\n var textureY = textureFrame.cutY;\r\n\r\n var scale = (src._fontSize / src.fontData.size);\r\n\r\n var align = src._align;\r\n var currentLine = 0;\r\n var lineOffsetX = 0;\r\n\r\n // Update the bounds - skipped internally if not dirty\r\n var bounds = src.getTextBounds(false);\r\n\r\n // In case the method above changed it (word wrapping)\r\n if (src.maxWidth > 0)\r\n {\r\n text = bounds.wrappedText;\r\n textLength = text.length;\r\n }\r\n\r\n var lineData = src._bounds.lines;\r\n\r\n if (align === 1)\r\n {\r\n lineOffsetX = (lineData.longest - lineData.lengths[0]) / 2;\r\n }\r\n else if (align === 2)\r\n {\r\n lineOffsetX = (lineData.longest - lineData.lengths[0]);\r\n }\r\n\r\n ctx.translate(-src.displayOriginX, -src.displayOriginY);\r\n\r\n var roundPixels = camera.roundPixels;\r\n\r\n for (var i = 0; i < textLength; i++)\r\n {\r\n charCode = text.charCodeAt(i);\r\n\r\n if (charCode === 10)\r\n {\r\n currentLine++;\r\n\r\n if (align === 1)\r\n {\r\n lineOffsetX = (lineData.longest - lineData.lengths[currentLine]) / 2;\r\n }\r\n else if (align === 2)\r\n {\r\n lineOffsetX = (lineData.longest - lineData.lengths[currentLine]);\r\n }\r\n\r\n xAdvance = 0;\r\n yAdvance += lineHeight + lineSpacing;\r\n\r\n lastGlyph = null;\r\n\r\n continue;\r\n }\r\n\r\n glyph = chars[charCode];\r\n\r\n if (!glyph)\r\n {\r\n continue;\r\n }\r\n\r\n glyphX = textureX + glyph.x;\r\n glyphY = textureY + glyph.y;\r\n\r\n glyphW = glyph.width;\r\n glyphH = glyph.height;\r\n\r\n x = glyph.xOffset + xAdvance;\r\n y = glyph.yOffset + yAdvance;\r\n\r\n if (lastGlyph !== null)\r\n {\r\n var kerningOffset = glyph.kerning[lastCharCode];\r\n x += (kerningOffset !== undefined) ? kerningOffset : 0;\r\n }\r\n\r\n x *= scale;\r\n y *= scale;\r\n\r\n x += lineOffsetX;\r\n\r\n xAdvance += glyph.xAdvance + letterSpacing + ((kerningOffset !== undefined) ? kerningOffset : 0);\r\n lastGlyph = glyph;\r\n lastCharCode = charCode;\r\n\r\n // Nothing to render or a space? Then skip to the next glyph\r\n if (glyphW === 0 || glyphH === 0 || charCode === 32)\r\n {\r\n continue;\r\n }\r\n\r\n if (roundPixels)\r\n {\r\n x = Math.round(x);\r\n y = Math.round(y);\r\n }\r\n\r\n ctx.save();\r\n\r\n ctx.translate(x, y);\r\n\r\n ctx.scale(scale, scale);\r\n\r\n ctx.drawImage(image, glyphX, glyphY, glyphW, glyphH, 0, 0, glyphW, glyphH);\r\n\r\n ctx.restore();\r\n }\r\n\r\n ctx.restore();\r\n};\r\n\r\nmodule.exports = BitmapTextCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 57336:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BitmapText = __webpack_require__(22186);\r\nvar BuildGameObject = __webpack_require__(25305);\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\nvar GetValue = __webpack_require__(35154);\r\n\r\n/**\r\n * Creates a new Bitmap Text Game Object and returns it.\r\n *\r\n * Note: This method will only be available if the Bitmap Text Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#bitmapText\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.BitmapText.BitmapTextConfig} config - The configuration object this Game Object will use to create itself.\r\n * @param {boolean} [addToScene] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.\r\n * \r\n * @return {Phaser.GameObjects.BitmapText} The Game Object that was created.\r\n */\r\nGameObjectCreator.register('bitmapText', function (config, addToScene)\r\n{\r\n if (config === undefined) { config = {}; }\r\n\r\n var font = GetValue(config, 'font', '');\r\n var text = GetAdvancedValue(config, 'text', '');\r\n var size = GetAdvancedValue(config, 'size', false);\r\n var align = GetValue(config, 'align', 0);\r\n\r\n var bitmapText = new BitmapText(this.scene, 0, 0, font, text, size, align);\r\n\r\n if (addToScene !== undefined)\r\n {\r\n config.add = addToScene;\r\n }\r\n\r\n BuildGameObject(this.scene, bitmapText, config);\r\n\r\n return bitmapText;\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectCreator context.\r\n\n\n/***/ }),\n\n/***/ 34914:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BitmapText = __webpack_require__(22186);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * Creates a new Bitmap Text Game Object and adds it to the Scene.\r\n * \r\n * BitmapText objects work by taking a texture file and an XML or JSON file that describes the font structure.\r\n * \r\n * During rendering for each letter of the text is rendered to the display, proportionally spaced out and aligned to\r\n * match the font structure.\r\n * \r\n * BitmapText objects are less flexible than Text objects, in that they have less features such as shadows, fills and the ability\r\n * to use Web Fonts, however you trade this flexibility for rendering speed. You can also create visually compelling BitmapTexts by\r\n * processing the font texture in an image editor, applying fills and any other effects required.\r\n *\r\n * To create multi-line text insert \\r, \\n or \\r\\n escape codes into the text string.\r\n *\r\n * To create a BitmapText data files you need a 3rd party app such as:\r\n *\r\n * BMFont (Windows, free): http://www.angelcode.com/products/bmfont/\r\n * Glyph Designer (OS X, commercial): http://www.71squared.com/en/glyphdesigner\r\n * Littera (Web-based, free): http://kvazars.com/littera/\r\n *\r\n * For most use cases it is recommended to use XML. If you wish to use JSON, the formatting should be equal to the result of\r\n * converting a valid XML file through the popular X2JS library. An online tool for conversion can be found here: http://codebeautify.org/xmltojson\r\n *\r\n * Note: This method will only be available if the Bitmap Text Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#bitmapText\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x position of the Game Object.\r\n * @param {number} y - The y position of the Game Object.\r\n * @param {string} font - The key of the font to use from the BitmapFont cache.\r\n * @param {(string|string[])} [text] - The string, or array of strings, to be set as the content of this Bitmap Text.\r\n * @param {number} [size] - The font size to set.\r\n * @param {number} [align=0] - The alignment of the text in a multi-line BitmapText object.\r\n *\r\n * @return {Phaser.GameObjects.BitmapText} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('bitmapText', function (x, y, font, text, size, align)\r\n{\r\n return this.displayList.add(new BitmapText(this.scene, x, y, font, text, size, align));\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectFactory context.\r\n//\r\n// There are several properties available to use:\r\n//\r\n// this.scene - a reference to the Scene that owns the GameObjectFactory\r\n// this.displayList - a reference to the Display List the Scene owns\r\n// this.updateList - a reference to the Update List the Scene owns\r\n\n\n/***/ }),\n\n/***/ 18658:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(33590);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(37289);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 33590:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BatchChar = __webpack_require__(3217);\r\nvar GetCalcMatrix = __webpack_require__(91296);\r\nvar Utils = __webpack_require__(70554);\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.BitmapText#renderWebGL\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.BitmapText} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar BitmapTextWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n var text = src._text;\r\n var textLength = text.length;\r\n\r\n if (textLength === 0)\r\n {\r\n return;\r\n }\r\n\r\n camera.addToRenderList(src);\r\n\r\n var pipeline = renderer.pipelines.set(src.pipeline, src);\r\n\r\n var calcMatrix = GetCalcMatrix(src, camera, parentMatrix).calc;\r\n\r\n // This causes a flush if the BitmapText has a Post Pipeline\r\n renderer.pipelines.preBatch(src);\r\n\r\n var roundPixels = camera.roundPixels;\r\n\r\n var cameraAlpha = camera.alpha;\r\n\r\n var charColors = src.charColors;\r\n\r\n var tintEffect = src.tintFill;\r\n\r\n var getTint = Utils.getTintAppendFloatAlpha;\r\n\r\n var tintTL = getTint(src.tintTopLeft, cameraAlpha * src._alphaTL);\r\n var tintTR = getTint(src.tintTopRight, cameraAlpha * src._alphaTR);\r\n var tintBL = getTint(src.tintBottomLeft, cameraAlpha * src._alphaBL);\r\n var tintBR = getTint(src.tintBottomRight, cameraAlpha * src._alphaBR);\r\n\r\n var texture = src.frame.glTexture;\r\n var textureUnit = pipeline.setGameObject(src);\r\n\r\n // Update the bounds - skipped internally if not dirty\r\n var bounds = src.getTextBounds(false);\r\n\r\n var i;\r\n var char;\r\n var glyph;\r\n\r\n var characters = bounds.characters;\r\n\r\n var dropShadowX = src.dropShadowX;\r\n var dropShadowY = src.dropShadowY;\r\n\r\n var dropShadow = (dropShadowX !== 0 || dropShadowY !== 0);\r\n\r\n if (dropShadow)\r\n {\r\n var srcShadowColor = src.dropShadowColor;\r\n var srcShadowAlpha = src.dropShadowAlpha;\r\n\r\n var shadowTL = getTint(srcShadowColor, cameraAlpha * srcShadowAlpha * src._alphaTL);\r\n var shadowTR = getTint(srcShadowColor, cameraAlpha * srcShadowAlpha * src._alphaTR);\r\n var shadowBL = getTint(srcShadowColor, cameraAlpha * srcShadowAlpha * src._alphaBL);\r\n var shadowBR = getTint(srcShadowColor, cameraAlpha * srcShadowAlpha * src._alphaBR);\r\n\r\n for (i = 0; i < characters.length; i++)\r\n {\r\n char = characters[i];\r\n glyph = char.glyph;\r\n\r\n if (char.code === 32 || glyph.width === 0 || glyph.height === 0)\r\n {\r\n continue;\r\n }\r\n\r\n BatchChar(pipeline, src, char, glyph, dropShadowX, dropShadowY, calcMatrix, roundPixels, shadowTL, shadowTR, shadowBL, shadowBR, 1, texture, textureUnit);\r\n }\r\n }\r\n\r\n for (i = 0; i < characters.length; i++)\r\n {\r\n char = characters[i];\r\n glyph = char.glyph;\r\n\r\n if (char.code === 32 || glyph.width === 0 || glyph.height === 0)\r\n {\r\n continue;\r\n }\r\n\r\n if (pipeline.shouldFlush(6))\r\n {\r\n pipeline.flush();\r\n textureUnit = pipeline.setGameObject(src);\r\n }\r\n\r\n if (charColors[char.i])\r\n {\r\n var color = charColors[char.i];\r\n\r\n var charTintEffect = color.tintEffect;\r\n var charTintTL = getTint(color.tintTL, cameraAlpha * src._alphaTL);\r\n var charTintTR = getTint(color.tintTR, cameraAlpha * src._alphaTR);\r\n var charTintBL = getTint(color.tintBL, cameraAlpha * src._alphaBL);\r\n var charTintBR = getTint(color.tintBR, cameraAlpha * src._alphaBR);\r\n\r\n BatchChar(pipeline, src, char, glyph, 0, 0, calcMatrix, roundPixels, charTintTL, charTintTR, charTintBL, charTintBR, charTintEffect, texture, textureUnit);\r\n }\r\n else\r\n {\r\n BatchChar(pipeline, src, char, glyph, 0, 0, calcMatrix, roundPixels, tintTL, tintTR, tintBL, tintBR, tintEffect, texture, textureUnit);\r\n }\r\n\r\n // Debug test if the characters are in the correct place when rendered:\r\n // pipeline.drawFillRect(tx0, ty0, tx2 - tx0, ty2 - ty0, 0x00ff00, 0.5);\r\n }\r\n\r\n renderer.pipelines.postBatch(src);\r\n};\r\n\r\nmodule.exports = BitmapTextWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 6107:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BlitterRender = __webpack_require__(48011);\r\nvar Bob = __webpack_require__(46590);\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar Frame = __webpack_require__(4327);\r\nvar GameObject = __webpack_require__(95643);\r\nvar List = __webpack_require__(73162);\r\n\r\n/**\r\n * @callback CreateCallback\r\n *\r\n * @param {Phaser.GameObjects.Bob} bob - The Bob that was created by the Blitter.\r\n * @param {number} index - The position of the Bob within the Blitter display list.\r\n */\r\n\r\n/**\r\n * @classdesc\r\n * A Blitter Game Object.\r\n *\r\n * The Blitter Game Object is a special kind of container that creates, updates and manages Bob objects.\r\n * Bobs are designed for rendering speed rather than flexibility. They consist of a texture, or frame from a texture,\r\n * a position and an alpha value. You cannot scale or rotate them. They use a batched drawing method for speed\r\n * during rendering.\r\n *\r\n * A Blitter Game Object has one texture bound to it. Bobs created by the Blitter can use any Frame from this\r\n * Texture to render with, but they cannot use any other Texture. It is this single texture-bind that allows\r\n * them their speed.\r\n *\r\n * If you have a need to blast a large volume of frames around the screen then Blitter objects are well worth\r\n * investigating. They are especially useful for using as a base for your own special effects systems.\r\n *\r\n * @class Blitter\r\n * @extends Phaser.GameObjects.GameObject\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @extends Phaser.GameObjects.Components.Alpha\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.Mask\r\n * @extends Phaser.GameObjects.Components.Pipeline\r\n * @extends Phaser.GameObjects.Components.PostPipeline\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n * @extends Phaser.GameObjects.Components.Size\r\n * @extends Phaser.GameObjects.Components.Texture\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. It can only belong to one Scene at any given time.\r\n * @param {number} [x=0] - The x coordinate of this Game Object in world space.\r\n * @param {number} [y=0] - The y coordinate of this Game Object in world space.\r\n * @param {string} [texture='__DEFAULT'] - The key of the texture this Game Object will use for rendering. The Texture must already exist in the Texture Manager.\r\n * @param {(string|number)} [frame=0] - The Frame of the Texture that this Game Object will use. Only set if the Texture has multiple frames, such as a Texture Atlas or Sprite Sheet.\r\n */\r\nvar Blitter = new Class({\r\n\r\n Extends: GameObject,\r\n\r\n Mixins: [\r\n Components.Alpha,\r\n Components.BlendMode,\r\n Components.Depth,\r\n Components.Mask,\r\n Components.Pipeline,\r\n Components.PostPipeline,\r\n Components.ScrollFactor,\r\n Components.Size,\r\n Components.Texture,\r\n Components.Transform,\r\n Components.Visible,\r\n BlitterRender\r\n ],\r\n\r\n initialize:\r\n\r\n function Blitter (scene, x, y, texture, frame)\r\n {\r\n GameObject.call(this, scene, 'Blitter');\r\n\r\n this.setTexture(texture, frame);\r\n this.setPosition(x, y);\r\n this.initPipeline();\r\n this.initPostPipeline();\r\n\r\n /**\r\n * The children of this Blitter.\r\n * This List contains all of the Bob objects created by the Blitter.\r\n *\r\n * @name Phaser.GameObjects.Blitter#children\r\n * @type {Phaser.Structs.List.}\r\n * @since 3.0.0\r\n */\r\n this.children = new List();\r\n\r\n /**\r\n * A transient array that holds all of the Bobs that will be rendered this frame.\r\n * The array is re-populated whenever the dirty flag is set.\r\n *\r\n * @name Phaser.GameObjects.Blitter#renderList\r\n * @type {Phaser.GameObjects.Bob[]}\r\n * @default []\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this.renderList = [];\r\n\r\n /**\r\n * Is the Blitter considered dirty?\r\n * A 'dirty' Blitter has had its child count changed since the last frame.\r\n *\r\n * @name Phaser.GameObjects.Blitter#dirty\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.dirty = false;\r\n },\r\n\r\n /**\r\n * Creates a new Bob in this Blitter.\r\n *\r\n * The Bob is created at the given coordinates, relative to the Blitter and uses the given frame.\r\n * A Bob can use any frame belonging to the texture bound to the Blitter.\r\n *\r\n * @method Phaser.GameObjects.Blitter#create\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x position of the Bob. Bob coordinate are relative to the position of the Blitter object.\r\n * @param {number} y - The y position of the Bob. Bob coordinate are relative to the position of the Blitter object.\r\n * @param {(string|number|Phaser.Textures.Frame)} [frame] - The Frame the Bob will use. It _must_ be part of the Texture the parent Blitter object is using.\r\n * @param {boolean} [visible=true] - Should the created Bob render or not?\r\n * @param {number} [index] - The position in the Blitters Display List to add the new Bob at. Defaults to the top of the list.\r\n *\r\n * @return {Phaser.GameObjects.Bob} The newly created Bob object.\r\n */\r\n create: function (x, y, frame, visible, index)\r\n {\r\n if (visible === undefined) { visible = true; }\r\n if (index === undefined) { index = this.children.length; }\r\n\r\n if (frame === undefined)\r\n {\r\n frame = this.frame;\r\n }\r\n else if (!(frame instanceof Frame))\r\n {\r\n frame = this.texture.get(frame);\r\n }\r\n\r\n var bob = new Bob(this, x, y, frame, visible);\r\n\r\n this.children.addAt(bob, index, false);\r\n\r\n this.dirty = true;\r\n\r\n return bob;\r\n },\r\n\r\n /**\r\n * Creates multiple Bob objects within this Blitter and then passes each of them to the specified callback.\r\n *\r\n * @method Phaser.GameObjects.Blitter#createFromCallback\r\n * @since 3.0.0\r\n *\r\n * @param {CreateCallback} callback - The callback to invoke after creating a bob. It will be sent two arguments: The Bob and the index of the Bob.\r\n * @param {number} quantity - The quantity of Bob objects to create.\r\n * @param {(string|number|Phaser.Textures.Frame|string[]|number[]|Phaser.Textures.Frame[])} [frame] - The Frame the Bobs will use. It must be part of the Blitter Texture.\r\n * @param {boolean} [visible=true] - Should the created Bob render or not?\r\n *\r\n * @return {Phaser.GameObjects.Bob[]} An array of Bob objects that were created.\r\n */\r\n createFromCallback: function (callback, quantity, frame, visible)\r\n {\r\n var bobs = this.createMultiple(quantity, frame, visible);\r\n\r\n for (var i = 0; i < bobs.length; i++)\r\n {\r\n var bob = bobs[i];\r\n\r\n callback.call(this, bob, i);\r\n }\r\n\r\n return bobs;\r\n },\r\n\r\n /**\r\n * Creates multiple Bobs in one call.\r\n *\r\n * The amount created is controlled by a combination of the `quantity` argument and the number of frames provided.\r\n *\r\n * If the quantity is set to 10 and you provide 2 frames, then 20 Bobs will be created. 10 with the first\r\n * frame and 10 with the second.\r\n *\r\n * @method Phaser.GameObjects.Blitter#createMultiple\r\n * @since 3.0.0\r\n *\r\n * @param {number} quantity - The quantity of Bob objects to create.\r\n * @param {(string|number|Phaser.Textures.Frame|string[]|number[]|Phaser.Textures.Frame[])} [frame] - The Frame the Bobs will use. It must be part of the Blitter Texture.\r\n * @param {boolean} [visible=true] - Should the created Bob render or not?\r\n *\r\n * @return {Phaser.GameObjects.Bob[]} An array of Bob objects that were created.\r\n */\r\n createMultiple: function (quantity, frame, visible)\r\n {\r\n if (frame === undefined) { frame = this.frame.name; }\r\n if (visible === undefined) { visible = true; }\r\n\r\n if (!Array.isArray(frame))\r\n {\r\n frame = [ frame ];\r\n }\r\n\r\n var bobs = [];\r\n var _this = this;\r\n\r\n frame.forEach(function (singleFrame)\r\n {\r\n for (var i = 0; i < quantity; i++)\r\n {\r\n bobs.push(_this.create(0, 0, singleFrame, visible));\r\n }\r\n });\r\n\r\n return bobs;\r\n },\r\n\r\n /**\r\n * Checks if the given child can render or not, by checking its `visible` and `alpha` values.\r\n *\r\n * @method Phaser.GameObjects.Blitter#childCanRender\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Bob} child - The Bob to check for rendering.\r\n *\r\n * @return {boolean} Returns `true` if the given child can render, otherwise `false`.\r\n */\r\n childCanRender: function (child)\r\n {\r\n return (child.visible && child.alpha > 0);\r\n },\r\n\r\n /**\r\n * Returns an array of Bobs to be rendered.\r\n * If the Blitter is dirty then a new list is generated and stored in `renderList`.\r\n *\r\n * @method Phaser.GameObjects.Blitter#getRenderList\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.GameObjects.Bob[]} An array of Bob objects that will be rendered this frame.\r\n */\r\n getRenderList: function ()\r\n {\r\n if (this.dirty)\r\n {\r\n this.renderList = this.children.list.filter(this.childCanRender, this);\r\n this.dirty = false;\r\n }\r\n\r\n return this.renderList;\r\n },\r\n\r\n /**\r\n * Removes all Bobs from the children List and clears the dirty flag.\r\n *\r\n * @method Phaser.GameObjects.Blitter#clear\r\n * @since 3.0.0\r\n */\r\n clear: function ()\r\n {\r\n this.children.removeAll();\r\n this.dirty = true;\r\n },\r\n\r\n /**\r\n * Internal destroy handler, called as part of the destroy process.\r\n *\r\n * @method Phaser.GameObjects.Blitter#preDestroy\r\n * @protected\r\n * @since 3.9.0\r\n */\r\n preDestroy: function ()\r\n {\r\n this.children.destroy();\r\n\r\n this.renderList = [];\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Blitter;\r\n\n\n/***/ }),\n\n/***/ 72396:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Blitter#renderCanvas\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.Blitter} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar BlitterCanvasRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n var list = src.getRenderList();\r\n\r\n if (list.length === 0)\r\n {\r\n return;\r\n }\r\n\r\n var ctx = renderer.currentContext;\r\n\r\n var alpha = camera.alpha * src.alpha;\r\n\r\n if (alpha === 0)\r\n {\r\n // Nothing to see, so abort early\r\n return;\r\n }\r\n\r\n camera.addToRenderList(src);\r\n\r\n // Blend Mode + Scale Mode\r\n ctx.globalCompositeOperation = renderer.blendModes[src.blendMode];\r\n\r\n ctx.imageSmoothingEnabled = !src.frame.source.scaleMode;\r\n\r\n var cameraScrollX = src.x - camera.scrollX * src.scrollFactorX;\r\n var cameraScrollY = src.y - camera.scrollY * src.scrollFactorY;\r\n\r\n ctx.save();\r\n\r\n if (parentMatrix)\r\n {\r\n parentMatrix.copyToContext(ctx);\r\n }\r\n\r\n var roundPixels = camera.roundPixels;\r\n\r\n // Render bobs\r\n for (var i = 0; i < list.length; i++)\r\n {\r\n var bob = list[i];\r\n var flip = (bob.flipX || bob.flipY);\r\n var frame = bob.frame;\r\n var cd = frame.canvasData;\r\n var dx = frame.x;\r\n var dy = frame.y;\r\n var fx = 1;\r\n var fy = 1;\r\n\r\n var bobAlpha = bob.alpha * alpha;\r\n\r\n if (bobAlpha === 0)\r\n {\r\n continue;\r\n }\r\n\r\n ctx.globalAlpha = bobAlpha;\r\n\r\n if (!flip)\r\n {\r\n if (roundPixels)\r\n {\r\n dx = Math.round(dx);\r\n dy = Math.round(dy);\r\n }\r\n\r\n if (cd.width > 0 && cd.height > 0)\r\n {\r\n ctx.drawImage(\r\n frame.source.image,\r\n cd.x,\r\n cd.y,\r\n cd.width,\r\n cd.height,\r\n dx + bob.x + cameraScrollX,\r\n dy + bob.y + cameraScrollY,\r\n cd.width,\r\n cd.height\r\n );\r\n }\r\n }\r\n else\r\n {\r\n if (bob.flipX)\r\n {\r\n fx = -1;\r\n dx -= cd.width;\r\n }\r\n\r\n if (bob.flipY)\r\n {\r\n fy = -1;\r\n dy -= cd.height;\r\n }\r\n\r\n if (cd.width > 0 && cd.height > 0)\r\n {\r\n ctx.save();\r\n ctx.translate(bob.x + cameraScrollX, bob.y + cameraScrollY);\r\n ctx.scale(fx, fy);\r\n ctx.drawImage(frame.source.image, cd.x, cd.y, cd.width, cd.height, dx, dy, cd.width, cd.height);\r\n ctx.restore();\r\n }\r\n }\r\n }\r\n\r\n ctx.restore();\r\n};\r\n\r\nmodule.exports = BlitterCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 9403:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Blitter = __webpack_require__(6107);\r\nvar BuildGameObject = __webpack_require__(25305);\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\n\r\n/**\r\n * Creates a new Blitter Game Object and returns it.\r\n *\r\n * Note: This method will only be available if the Blitter Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#blitter\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Sprite.SpriteConfig} config - The configuration object this Game Object will use to create itself.\r\n * @param {boolean} [addToScene] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.\r\n *\r\n * @return {Phaser.GameObjects.Blitter} The Game Object that was created.\r\n */\r\nGameObjectCreator.register('blitter', function (config, addToScene)\r\n{\r\n if (config === undefined) { config = {}; }\r\n\r\n var key = GetAdvancedValue(config, 'key', null);\r\n var frame = GetAdvancedValue(config, 'frame', null);\r\n\r\n var blitter = new Blitter(this.scene, 0, 0, key, frame);\r\n\r\n if (addToScene !== undefined)\r\n {\r\n config.add = addToScene;\r\n }\r\n\r\n BuildGameObject(this.scene, blitter, config);\r\n\r\n return blitter;\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectCreator context.\r\n\n\n/***/ }),\n\n/***/ 12709:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Blitter = __webpack_require__(6107);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * Creates a new Blitter Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Blitter Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#blitter\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x position of the Game Object.\r\n * @param {number} y - The y position of the Game Object.\r\n * @param {(string|Phaser.Textures.Texture)} texture - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - The default Frame children of the Blitter will use.\r\n *\r\n * @return {Phaser.GameObjects.Blitter} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('blitter', function (x, y, texture, frame)\r\n{\r\n return this.displayList.add(new Blitter(this.scene, x, y, texture, frame));\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectFactory context.\r\n//\r\n// There are several properties available to use:\r\n//\r\n// this.scene - a reference to the Scene that owns the GameObjectFactory\r\n// this.displayList - a reference to the Display List the Scene owns\r\n// this.updateList - a reference to the Update List the Scene owns\r\n\n\n/***/ }),\n\n/***/ 48011:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(99485);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(72396);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 99485:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar TransformMatrix = __webpack_require__(61340);\r\nvar Utils = __webpack_require__(70554);\r\n\r\nvar tempMatrix = new TransformMatrix();\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Blitter#renderWebGL\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Blitter} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar BlitterWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n var list = src.getRenderList();\r\n var alpha = camera.alpha * src.alpha;\r\n\r\n if (list.length === 0 || alpha === 0)\r\n {\r\n // Nothing to see, so abort early\r\n return;\r\n }\r\n\r\n camera.addToRenderList(src);\r\n\r\n var pipeline = renderer.pipelines.set(this.pipeline, src);\r\n\r\n var cameraScrollX = camera.scrollX * src.scrollFactorX;\r\n var cameraScrollY = camera.scrollY * src.scrollFactorY;\r\n \r\n var calcMatrix = tempMatrix.copyFrom(camera.matrix);\r\n \r\n if (parentMatrix)\r\n {\r\n calcMatrix.multiplyWithOffset(parentMatrix, -cameraScrollX, -cameraScrollY);\r\n \r\n cameraScrollX = 0;\r\n cameraScrollY = 0;\r\n }\r\n \r\n var blitterX = src.x - cameraScrollX;\r\n var blitterY = src.y - cameraScrollY;\r\n var prevTextureSourceIndex = -1;\r\n var tintEffect = false;\r\n var roundPixels = camera.roundPixels;\r\n\r\n renderer.pipelines.preBatch(src);\r\n\r\n for (var i = 0; i < list.length; i++)\r\n {\r\n var bob = list[i];\r\n var frame = bob.frame;\r\n var bobAlpha = bob.alpha * alpha;\r\n\r\n if (bobAlpha === 0)\r\n {\r\n continue;\r\n }\r\n\r\n var width = frame.width;\r\n var height = frame.height;\r\n\r\n var x = blitterX + bob.x + frame.x;\r\n var y = blitterY + bob.y + frame.y;\r\n\r\n if (bob.flipX)\r\n {\r\n width *= -1;\r\n x += frame.width;\r\n }\r\n\r\n if (bob.flipY)\r\n {\r\n height *= -1;\r\n y += frame.height;\r\n }\r\n\r\n var quad = calcMatrix.setQuad(x, y, x + width, y + height, roundPixels);\r\n\r\n var tint = Utils.getTintAppendFloatAlpha(bob.tint, bobAlpha);\r\n\r\n // Bind texture only if the Texture Source is different from before\r\n if (frame.sourceIndex !== prevTextureSourceIndex)\r\n {\r\n var textureUnit = pipeline.setGameObject(src, frame);\r\n\r\n prevTextureSourceIndex = frame.sourceIndex;\r\n }\r\n\r\n if (pipeline.batchQuad(src, quad[0], quad[1], quad[2], quad[3], quad[4], quad[5], quad[6], quad[7], frame.u0, frame.v0, frame.u1, frame.v1, tint, tint, tint, tint, tintEffect, frame.glTexture, textureUnit))\r\n {\r\n prevTextureSourceIndex = -1;\r\n }\r\n }\r\n\r\n renderer.pipelines.postBatch(src);\r\n};\r\n\r\nmodule.exports = BlitterWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 46590:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Frame = __webpack_require__(4327);\r\n\r\n/**\r\n * @classdesc\r\n * A Bob Game Object.\r\n *\r\n * A Bob belongs to a Blitter Game Object. The Blitter is responsible for managing and rendering this object.\r\n *\r\n * A Bob has a position, alpha value and a frame from a texture that it uses to render with. You can also toggle\r\n * the flipped and visible state of the Bob. The Frame the Bob uses to render can be changed dynamically, but it\r\n * must be a Frame within the Texture used by the parent Blitter.\r\n *\r\n * Bob positions are relative to the Blitter parent. So if you move the Blitter parent, all Bob children will\r\n * have their positions impacted by this change as well.\r\n *\r\n * You can manipulate Bob objects directly from your game code, but the creation and destruction of them should be\r\n * handled via the Blitter parent.\r\n *\r\n * @class Bob\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Blitter} blitter - The parent Blitter object is responsible for updating this Bob.\r\n * @param {number} x - The horizontal position of this Game Object in the world, relative to the parent Blitter position.\r\n * @param {number} y - The vertical position of this Game Object in the world, relative to the parent Blitter position.\r\n * @param {(string|number)} frame - The Frame this Bob will render with, as defined in the Texture the parent Blitter is using.\r\n * @param {boolean} visible - Should the Bob render visible or not to start with?\r\n */\r\nvar Bob = new Class({\r\n\r\n initialize:\r\n\r\n function Bob (blitter, x, y, frame, visible)\r\n {\r\n /**\r\n * The Blitter object that this Bob belongs to.\r\n *\r\n * @name Phaser.GameObjects.Bob#parent\r\n * @type {Phaser.GameObjects.Blitter}\r\n * @since 3.0.0\r\n */\r\n this.parent = blitter;\r\n\r\n /**\r\n * The x position of this Bob, relative to the x position of the Blitter.\r\n *\r\n * @name Phaser.GameObjects.Bob#x\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.x = x;\r\n\r\n /**\r\n * The y position of this Bob, relative to the y position of the Blitter.\r\n *\r\n * @name Phaser.GameObjects.Bob#y\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.y = y;\r\n\r\n /**\r\n * The frame that the Bob uses to render with.\r\n * To change the frame use the `Bob.setFrame` method.\r\n *\r\n * @name Phaser.GameObjects.Bob#frame\r\n * @type {Phaser.Textures.Frame}\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n this.frame = frame;\r\n\r\n /**\r\n * A blank object which can be used to store data related to this Bob in.\r\n *\r\n * @name Phaser.GameObjects.Bob#data\r\n * @type {object}\r\n * @default {}\r\n * @since 3.0.0\r\n */\r\n this.data = {};\r\n\r\n /**\r\n * The tint value of this Bob.\r\n *\r\n * @name Phaser.GameObjects.Bob#tint\r\n * @type {number}\r\n * @default 0xffffff\r\n * @since 3.20.0\r\n */\r\n this.tint = 0xffffff;\r\n\r\n /**\r\n * The visible state of this Bob.\r\n *\r\n * @name Phaser.GameObjects.Bob#_visible\r\n * @type {boolean}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._visible = visible;\r\n\r\n /**\r\n * The alpha value of this Bob.\r\n *\r\n * @name Phaser.GameObjects.Bob#_alpha\r\n * @type {number}\r\n * @private\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n this._alpha = 1;\r\n\r\n /**\r\n * The horizontally flipped state of the Bob.\r\n * A Bob that is flipped horizontally will render inversed on the horizontal axis.\r\n * Flipping always takes place from the middle of the texture.\r\n *\r\n * @name Phaser.GameObjects.Bob#flipX\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.flipX = false;\r\n\r\n /**\r\n * The vertically flipped state of the Bob.\r\n * A Bob that is flipped vertically will render inversed on the vertical axis (i.e. upside down)\r\n * Flipping always takes place from the middle of the texture.\r\n *\r\n * @name Phaser.GameObjects.Bob#flipY\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.flipY = false;\r\n\r\n /**\r\n * Private read-only property used to allow Bobs to have physics bodies.\r\n *\r\n * @name Phaser.GameObjects.Bob#hasTransformComponent\r\n * @type {boolean}\r\n * @private\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.hasTransformComponent = true;\r\n },\r\n\r\n /**\r\n * Changes the Texture Frame being used by this Bob.\r\n * The frame must be part of the Texture the parent Blitter is using.\r\n * If no value is given it will use the default frame of the Blitter parent.\r\n *\r\n * @method Phaser.GameObjects.Bob#setFrame\r\n * @since 3.0.0\r\n *\r\n * @param {(string|number|Phaser.Textures.Frame)} [frame] - The frame to be used during rendering.\r\n *\r\n * @return {this} This Bob Game Object.\r\n */\r\n setFrame: function (frame)\r\n {\r\n if (frame === undefined)\r\n {\r\n this.frame = this.parent.frame;\r\n }\r\n else if (frame instanceof Frame && frame.texture === this.parent.texture)\r\n {\r\n this.frame = frame;\r\n }\r\n else\r\n {\r\n this.frame = this.parent.texture.get(frame);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resets the horizontal and vertical flipped state of this Bob back to their default un-flipped state.\r\n *\r\n * @method Phaser.GameObjects.Bob#resetFlip\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Bob Game Object.\r\n */\r\n resetFlip: function ()\r\n {\r\n this.flipX = false;\r\n this.flipY = false;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resets this Bob.\r\n *\r\n * Changes the position to the values given, and optionally changes the frame.\r\n *\r\n * Also resets the flipX and flipY values, sets alpha back to 1 and visible to true.\r\n *\r\n * @method Phaser.GameObjects.Bob#reset\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x position of the Bob. Bob coordinate are relative to the position of the Blitter object.\r\n * @param {number} y - The y position of the Bob. Bob coordinate are relative to the position of the Blitter object.\r\n * @param {(string|number|Phaser.Textures.Frame)} [frame] - The Frame the Bob will use. It _must_ be part of the Texture the parent Blitter object is using.\r\n *\r\n * @return {this} This Bob Game Object.\r\n */\r\n reset: function (x, y, frame)\r\n {\r\n this.x = x;\r\n this.y = y;\r\n\r\n this.flipX = false;\r\n this.flipY = false;\r\n\r\n this._alpha = 1;\r\n this._visible = true;\r\n\r\n this.parent.dirty = true;\r\n\r\n if (frame)\r\n {\r\n this.setFrame(frame);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Changes the position of this Bob to the values given.\r\n *\r\n * @method Phaser.GameObjects.Bob#setPosition\r\n * @since 3.20.0\r\n *\r\n * @param {number} x - The x position of the Bob. Bob coordinate are relative to the position of the Blitter object.\r\n * @param {number} y - The y position of the Bob. Bob coordinate are relative to the position of the Blitter object.\r\n *\r\n * @return {this} This Bob Game Object.\r\n */\r\n setPosition: function (x, y)\r\n {\r\n this.x = x;\r\n this.y = y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the horizontal flipped state of this Bob.\r\n *\r\n * @method Phaser.GameObjects.Bob#setFlipX\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} value - The flipped state. `false` for no flip, or `true` to be flipped.\r\n *\r\n * @return {this} This Bob Game Object.\r\n */\r\n setFlipX: function (value)\r\n {\r\n this.flipX = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the vertical flipped state of this Bob.\r\n *\r\n * @method Phaser.GameObjects.Bob#setFlipY\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} value - The flipped state. `false` for no flip, or `true` to be flipped.\r\n *\r\n * @return {this} This Bob Game Object.\r\n */\r\n setFlipY: function (value)\r\n {\r\n this.flipY = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the horizontal and vertical flipped state of this Bob.\r\n *\r\n * @method Phaser.GameObjects.Bob#setFlip\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} x - The horizontal flipped state. `false` for no flip, or `true` to be flipped.\r\n * @param {boolean} y - The horizontal flipped state. `false` for no flip, or `true` to be flipped.\r\n *\r\n * @return {this} This Bob Game Object.\r\n */\r\n setFlip: function (x, y)\r\n {\r\n this.flipX = x;\r\n this.flipY = y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the visibility of this Bob.\r\n *\r\n * An invisible Bob will skip rendering.\r\n *\r\n * @method Phaser.GameObjects.Bob#setVisible\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} value - The visible state of the Game Object.\r\n *\r\n * @return {this} This Bob Game Object.\r\n */\r\n setVisible: function (value)\r\n {\r\n this.visible = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the Alpha level of this Bob. The alpha controls the opacity of the Game Object as it renders.\r\n * Alpha values are provided as a float between 0, fully transparent, and 1, fully opaque.\r\n *\r\n * A Bob with alpha 0 will skip rendering.\r\n *\r\n * @method Phaser.GameObjects.Bob#setAlpha\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The alpha value used for this Bob. Between 0 and 1.\r\n *\r\n * @return {this} This Bob Game Object.\r\n */\r\n setAlpha: function (value)\r\n {\r\n this.alpha = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the tint of this Bob.\r\n *\r\n * @method Phaser.GameObjects.Bob#setTint\r\n * @since 3.20.0\r\n *\r\n * @param {number} value - The tint value used for this Bob. Between 0 and 0xffffff.\r\n *\r\n * @return {this} This Bob Game Object.\r\n */\r\n setTint: function (value)\r\n {\r\n this.tint = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Destroys this Bob instance.\r\n * Removes itself from the Blitter and clears the parent, frame and data properties.\r\n *\r\n * @method Phaser.GameObjects.Bob#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.parent.dirty = true;\r\n\r\n this.parent.children.remove(this);\r\n\r\n this.parent = undefined;\r\n this.frame = undefined;\r\n this.data = undefined;\r\n },\r\n\r\n /**\r\n * The visible state of the Bob.\r\n *\r\n * An invisible Bob will skip rendering.\r\n *\r\n * @name Phaser.GameObjects.Bob#visible\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n visible: {\r\n\r\n get: function ()\r\n {\r\n return this._visible;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.parent.dirty |= (this._visible !== value);\r\n this._visible = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The alpha value of the Bob, between 0 and 1.\r\n *\r\n * A Bob with alpha 0 will skip rendering.\r\n *\r\n * @name Phaser.GameObjects.Bob#alpha\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n alpha: {\r\n\r\n get: function ()\r\n {\r\n return this._alpha;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.parent.dirty |= ((this._alpha > 0) !== (value > 0));\r\n this._alpha = value;\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Bob;\r\n\n\n/***/ }),\n\n/***/ 16005:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Clamp = __webpack_require__(45319);\r\n\r\n// bitmask flag for GameObject.renderMask\r\nvar _FLAG = 2; // 0010\r\n\r\n/**\r\n * Provides methods used for setting the alpha properties of a Game Object.\r\n * Should be applied as a mixin and not used directly.\r\n *\r\n * @namespace Phaser.GameObjects.Components.Alpha\r\n * @since 3.0.0\r\n */\r\n\r\nvar Alpha = {\r\n\r\n /**\r\n * Private internal value. Holds the global alpha value.\r\n *\r\n * @name Phaser.GameObjects.Components.Alpha#_alpha\r\n * @type {number}\r\n * @private\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n _alpha: 1,\r\n\r\n /**\r\n * Private internal value. Holds the top-left alpha value.\r\n *\r\n * @name Phaser.GameObjects.Components.Alpha#_alphaTL\r\n * @type {number}\r\n * @private\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n _alphaTL: 1,\r\n\r\n /**\r\n * Private internal value. Holds the top-right alpha value.\r\n *\r\n * @name Phaser.GameObjects.Components.Alpha#_alphaTR\r\n * @type {number}\r\n * @private\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n _alphaTR: 1,\r\n\r\n /**\r\n * Private internal value. Holds the bottom-left alpha value.\r\n *\r\n * @name Phaser.GameObjects.Components.Alpha#_alphaBL\r\n * @type {number}\r\n * @private\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n _alphaBL: 1,\r\n\r\n /**\r\n * Private internal value. Holds the bottom-right alpha value.\r\n *\r\n * @name Phaser.GameObjects.Components.Alpha#_alphaBR\r\n * @type {number}\r\n * @private\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n _alphaBR: 1,\r\n\r\n /**\r\n * Clears all alpha values associated with this Game Object.\r\n *\r\n * Immediately sets the alpha levels back to 1 (fully opaque).\r\n *\r\n * @method Phaser.GameObjects.Components.Alpha#clearAlpha\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n clearAlpha: function ()\r\n {\r\n return this.setAlpha(1);\r\n },\r\n\r\n /**\r\n * Set the Alpha level of this Game Object. The alpha controls the opacity of the Game Object as it renders.\r\n * Alpha values are provided as a float between 0, fully transparent, and 1, fully opaque.\r\n *\r\n * If your game is running under WebGL you can optionally specify four different alpha values, each of which\r\n * correspond to the four corners of the Game Object. Under Canvas only the `topLeft` value given is used.\r\n *\r\n * @method Phaser.GameObjects.Components.Alpha#setAlpha\r\n * @since 3.0.0\r\n *\r\n * @param {number} [topLeft=1] - The alpha value used for the top-left of the Game Object. If this is the only value given it's applied across the whole Game Object.\r\n * @param {number} [topRight] - The alpha value used for the top-right of the Game Object. WebGL only.\r\n * @param {number} [bottomLeft] - The alpha value used for the bottom-left of the Game Object. WebGL only.\r\n * @param {number} [bottomRight] - The alpha value used for the bottom-right of the Game Object. WebGL only.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setAlpha: function (topLeft, topRight, bottomLeft, bottomRight)\r\n {\r\n if (topLeft === undefined) { topLeft = 1; }\r\n\r\n // Treat as if there is only one alpha value for the whole Game Object\r\n if (topRight === undefined)\r\n {\r\n this.alpha = topLeft;\r\n }\r\n else\r\n {\r\n this._alphaTL = Clamp(topLeft, 0, 1);\r\n this._alphaTR = Clamp(topRight, 0, 1);\r\n this._alphaBL = Clamp(bottomLeft, 0, 1);\r\n this._alphaBR = Clamp(bottomRight, 0, 1);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The alpha value of the Game Object.\r\n *\r\n * This is a global value, impacting the entire Game Object, not just a region of it.\r\n *\r\n * @name Phaser.GameObjects.Components.Alpha#alpha\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n alpha: {\r\n\r\n get: function ()\r\n {\r\n return this._alpha;\r\n },\r\n\r\n set: function (value)\r\n {\r\n var v = Clamp(value, 0, 1);\r\n\r\n this._alpha = v;\r\n this._alphaTL = v;\r\n this._alphaTR = v;\r\n this._alphaBL = v;\r\n this._alphaBR = v;\r\n\r\n if (v === 0)\r\n {\r\n this.renderFlags &= ~_FLAG;\r\n }\r\n else\r\n {\r\n this.renderFlags |= _FLAG;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The alpha value starting from the top-left of the Game Object.\r\n * This value is interpolated from the corner to the center of the Game Object.\r\n *\r\n * @name Phaser.GameObjects.Components.Alpha#alphaTopLeft\r\n * @type {number}\r\n * @webglOnly\r\n * @since 3.0.0\r\n */\r\n alphaTopLeft: {\r\n\r\n get: function ()\r\n {\r\n return this._alphaTL;\r\n },\r\n\r\n set: function (value)\r\n {\r\n var v = Clamp(value, 0, 1);\r\n\r\n this._alphaTL = v;\r\n\r\n if (v !== 0)\r\n {\r\n this.renderFlags |= _FLAG;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The alpha value starting from the top-right of the Game Object.\r\n * This value is interpolated from the corner to the center of the Game Object.\r\n *\r\n * @name Phaser.GameObjects.Components.Alpha#alphaTopRight\r\n * @type {number}\r\n * @webglOnly\r\n * @since 3.0.0\r\n */\r\n alphaTopRight: {\r\n\r\n get: function ()\r\n {\r\n return this._alphaTR;\r\n },\r\n\r\n set: function (value)\r\n {\r\n var v = Clamp(value, 0, 1);\r\n\r\n this._alphaTR = v;\r\n\r\n if (v !== 0)\r\n {\r\n this.renderFlags |= _FLAG;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The alpha value starting from the bottom-left of the Game Object.\r\n * This value is interpolated from the corner to the center of the Game Object.\r\n *\r\n * @name Phaser.GameObjects.Components.Alpha#alphaBottomLeft\r\n * @type {number}\r\n * @webglOnly\r\n * @since 3.0.0\r\n */\r\n alphaBottomLeft: {\r\n\r\n get: function ()\r\n {\r\n return this._alphaBL;\r\n },\r\n\r\n set: function (value)\r\n {\r\n var v = Clamp(value, 0, 1);\r\n\r\n this._alphaBL = v;\r\n\r\n if (v !== 0)\r\n {\r\n this.renderFlags |= _FLAG;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The alpha value starting from the bottom-right of the Game Object.\r\n * This value is interpolated from the corner to the center of the Game Object.\r\n *\r\n * @name Phaser.GameObjects.Components.Alpha#alphaBottomRight\r\n * @type {number}\r\n * @webglOnly\r\n * @since 3.0.0\r\n */\r\n alphaBottomRight: {\r\n\r\n get: function ()\r\n {\r\n return this._alphaBR;\r\n },\r\n\r\n set: function (value)\r\n {\r\n var v = Clamp(value, 0, 1);\r\n\r\n this._alphaBR = v;\r\n\r\n if (v !== 0)\r\n {\r\n this.renderFlags |= _FLAG;\r\n }\r\n }\r\n\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Alpha;\r\n\n\n/***/ }),\n\n/***/ 88509:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Clamp = __webpack_require__(45319);\r\n\r\n// bitmask flag for GameObject.renderMask\r\nvar _FLAG = 2; // 0010\r\n\r\n/**\r\n * Provides methods used for setting the alpha property of a Game Object.\r\n * Should be applied as a mixin and not used directly.\r\n *\r\n * @namespace Phaser.GameObjects.Components.AlphaSingle\r\n * @since 3.22.0\r\n */\r\n\r\nvar AlphaSingle = {\r\n\r\n /**\r\n * Private internal value. Holds the global alpha value.\r\n *\r\n * @name Phaser.GameObjects.Components.AlphaSingle#_alpha\r\n * @type {number}\r\n * @private\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n _alpha: 1,\r\n\r\n /**\r\n * Clears all alpha values associated with this Game Object.\r\n *\r\n * Immediately sets the alpha levels back to 1 (fully opaque).\r\n *\r\n * @method Phaser.GameObjects.Components.AlphaSingle#clearAlpha\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n clearAlpha: function ()\r\n {\r\n return this.setAlpha(1);\r\n },\r\n\r\n /**\r\n * Set the Alpha level of this Game Object. The alpha controls the opacity of the Game Object as it renders.\r\n * Alpha values are provided as a float between 0, fully transparent, and 1, fully opaque.\r\n *\r\n * @method Phaser.GameObjects.Components.AlphaSingle#setAlpha\r\n * @since 3.0.0\r\n *\r\n * @param {number} [value=1] - The alpha value applied across the whole Game Object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setAlpha: function (value)\r\n {\r\n if (value === undefined) { value = 1; }\r\n\r\n this.alpha = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The alpha value of the Game Object.\r\n *\r\n * This is a global value, impacting the entire Game Object, not just a region of it.\r\n *\r\n * @name Phaser.GameObjects.Components.AlphaSingle#alpha\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n alpha: {\r\n\r\n get: function ()\r\n {\r\n return this._alpha;\r\n },\r\n\r\n set: function (value)\r\n {\r\n var v = Clamp(value, 0, 1);\r\n\r\n this._alpha = v;\r\n\r\n if (v === 0)\r\n {\r\n this.renderFlags &= ~_FLAG;\r\n }\r\n else\r\n {\r\n this.renderFlags |= _FLAG;\r\n }\r\n }\r\n\r\n }\r\n\r\n};\r\n\r\nmodule.exports = AlphaSingle;\r\n\n\n/***/ }),\n\n/***/ 90065:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BlendModes = __webpack_require__(10312);\r\n\r\n/**\r\n * Provides methods used for setting the blend mode of a Game Object.\r\n * Should be applied as a mixin and not used directly.\r\n *\r\n * @namespace Phaser.GameObjects.Components.BlendMode\r\n * @since 3.0.0\r\n */\r\n\r\nvar BlendMode = {\r\n\r\n /**\r\n * Private internal value. Holds the current blend mode.\r\n *\r\n * @name Phaser.GameObjects.Components.BlendMode#_blendMode\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n _blendMode: BlendModes.NORMAL,\r\n\r\n /**\r\n * Sets the Blend Mode being used by this Game Object.\r\n *\r\n * This can be a const, such as `Phaser.BlendModes.SCREEN`, or an integer, such as 4 (for Overlay)\r\n *\r\n * Under WebGL only the following Blend Modes are available:\r\n *\r\n * * NORMAL\r\n * * ADD\r\n * * MULTIPLY\r\n * * SCREEN\r\n * * ERASE\r\n *\r\n * Canvas has more available depending on browser support.\r\n *\r\n * You can also create your own custom Blend Modes in WebGL.\r\n *\r\n * Blend modes have different effects under Canvas and WebGL, and from browser to browser, depending\r\n * on support. Blend Modes also cause a WebGL batch flush should it encounter a new blend mode. For these\r\n * reasons try to be careful about the construction of your Scene and the frequency of which blend modes\r\n * are used.\r\n *\r\n * @name Phaser.GameObjects.Components.BlendMode#blendMode\r\n * @type {(Phaser.BlendModes|string|number)}\r\n * @since 3.0.0\r\n */\r\n blendMode: {\r\n\r\n get: function ()\r\n {\r\n return this._blendMode;\r\n },\r\n\r\n set: function (value)\r\n {\r\n if (typeof value === 'string')\r\n {\r\n value = BlendModes[value];\r\n }\r\n\r\n value |= 0;\r\n\r\n if (value >= -1)\r\n {\r\n this._blendMode = value;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Sets the Blend Mode being used by this Game Object.\r\n *\r\n * This can be a const, such as `Phaser.BlendModes.SCREEN`, or an integer, such as 4 (for Overlay)\r\n *\r\n * Under WebGL only the following Blend Modes are available:\r\n *\r\n * * NORMAL\r\n * * ADD\r\n * * MULTIPLY\r\n * * SCREEN\r\n * * ERASE (only works when rendering to a framebuffer, like a Render Texture)\r\n *\r\n * Canvas has more available depending on browser support.\r\n *\r\n * You can also create your own custom Blend Modes in WebGL.\r\n *\r\n * Blend modes have different effects under Canvas and WebGL, and from browser to browser, depending\r\n * on support. Blend Modes also cause a WebGL batch flush should it encounter a new blend mode. For these\r\n * reasons try to be careful about the construction of your Scene and the frequency in which blend modes\r\n * are used.\r\n *\r\n * @method Phaser.GameObjects.Components.BlendMode#setBlendMode\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.BlendModes|number)} value - The BlendMode value. Either a string, a CONST or a number.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setBlendMode: function (value)\r\n {\r\n this.blendMode = value;\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = BlendMode;\r\n\n\n/***/ }),\n\n/***/ 94215:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Provides methods used for calculating and setting the size of a non-Frame based Game Object.\r\n * Should be applied as a mixin and not used directly.\r\n *\r\n * @namespace Phaser.GameObjects.Components.ComputedSize\r\n * @since 3.0.0\r\n */\r\n\r\nvar ComputedSize = {\r\n\r\n /**\r\n * The native (un-scaled) width of this Game Object.\r\n *\r\n * Changing this value will not change the size that the Game Object is rendered in-game.\r\n * For that you need to either set the scale of the Game Object (`setScale`) or use\r\n * the `displayWidth` property.\r\n *\r\n * @name Phaser.GameObjects.Components.ComputedSize#width\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n width: 0,\r\n\r\n /**\r\n * The native (un-scaled) height of this Game Object.\r\n *\r\n * Changing this value will not change the size that the Game Object is rendered in-game.\r\n * For that you need to either set the scale of the Game Object (`setScale`) or use\r\n * the `displayHeight` property.\r\n *\r\n * @name Phaser.GameObjects.Components.ComputedSize#height\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n height: 0,\r\n\r\n /**\r\n * The displayed width of this Game Object.\r\n *\r\n * This value takes into account the scale factor.\r\n *\r\n * Setting this value will adjust the Game Object's scale property.\r\n *\r\n * @name Phaser.GameObjects.Components.ComputedSize#displayWidth\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n displayWidth: {\r\n\r\n get: function ()\r\n {\r\n return this.scaleX * this.width;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.scaleX = value / this.width;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The displayed height of this Game Object.\r\n *\r\n * This value takes into account the scale factor.\r\n *\r\n * Setting this value will adjust the Game Object's scale property.\r\n *\r\n * @name Phaser.GameObjects.Components.ComputedSize#displayHeight\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n displayHeight: {\r\n\r\n get: function ()\r\n {\r\n return this.scaleY * this.height;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.scaleY = value / this.height;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Sets the internal size of this Game Object, as used for frame or physics body creation.\r\n *\r\n * This will not change the size that the Game Object is rendered in-game.\r\n * For that you need to either set the scale of the Game Object (`setScale`) or call the\r\n * `setDisplaySize` method, which is the same thing as changing the scale but allows you\r\n * to do so by giving pixel values.\r\n *\r\n * If you have enabled this Game Object for input, changing the size will _not_ change the\r\n * size of the hit area. To do this you should adjust the `input.hitArea` object directly.\r\n *\r\n * @method Phaser.GameObjects.Components.ComputedSize#setSize\r\n * @since 3.4.0\r\n *\r\n * @param {number} width - The width of this Game Object.\r\n * @param {number} height - The height of this Game Object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setSize: function (width, height)\r\n {\r\n this.width = width;\r\n this.height = height;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the display size of this Game Object.\r\n *\r\n * Calling this will adjust the scale.\r\n *\r\n * @method Phaser.GameObjects.Components.ComputedSize#setDisplaySize\r\n * @since 3.4.0\r\n *\r\n * @param {number} width - The width of this Game Object.\r\n * @param {number} height - The height of this Game Object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setDisplaySize: function (width, height)\r\n {\r\n this.displayWidth = width;\r\n this.displayHeight = height;\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = ComputedSize;\r\n\n\n/***/ }),\n\n/***/ 61683:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Provides methods used for getting and setting the texture of a Game Object.\r\n *\r\n * @namespace Phaser.GameObjects.Components.Crop\r\n * @since 3.12.0\r\n */\r\n\r\nvar Crop = {\r\n\r\n /**\r\n * The Texture this Game Object is using to render with.\r\n *\r\n * @name Phaser.GameObjects.Components.Crop#texture\r\n * @type {Phaser.Textures.Texture|Phaser.Textures.CanvasTexture}\r\n * @since 3.0.0\r\n */\r\n texture: null,\r\n\r\n /**\r\n * The Texture Frame this Game Object is using to render with.\r\n *\r\n * @name Phaser.GameObjects.Components.Crop#frame\r\n * @type {Phaser.Textures.Frame}\r\n * @since 3.0.0\r\n */\r\n frame: null,\r\n\r\n /**\r\n * A boolean flag indicating if this Game Object is being cropped or not.\r\n * You can toggle this at any time after `setCrop` has been called, to turn cropping on or off.\r\n * Equally, calling `setCrop` with no arguments will reset the crop and disable it.\r\n *\r\n * @name Phaser.GameObjects.Components.Crop#isCropped\r\n * @type {boolean}\r\n * @since 3.11.0\r\n */\r\n isCropped: false,\r\n\r\n /**\r\n * Applies a crop to a texture based Game Object, such as a Sprite or Image.\r\n *\r\n * The crop is a rectangle that limits the area of the texture frame that is visible during rendering.\r\n *\r\n * Cropping a Game Object does not change its size, dimensions, physics body or hit area, it just\r\n * changes what is shown when rendered.\r\n *\r\n * The crop size as well as coordinates can not exceed the the size of the texture frame.\r\n *\r\n * The crop coordinates are relative to the texture frame, not the Game Object, meaning 0 x 0 is the top-left.\r\n *\r\n * Therefore, if you had a Game Object that had an 800x600 sized texture, and you wanted to show only the left\r\n * half of it, you could call `setCrop(0, 0, 400, 600)`.\r\n *\r\n * It is also scaled to match the Game Object scale automatically. Therefore a crop rectangle of 100x50 would crop\r\n * an area of 200x100 when applied to a Game Object that had a scale factor of 2.\r\n *\r\n * You can either pass in numeric values directly, or you can provide a single Rectangle object as the first argument.\r\n *\r\n * Call this method with no arguments at all to reset the crop, or toggle the property `isCropped` to `false`.\r\n *\r\n * You should do this if the crop rectangle becomes the same size as the frame itself, as it will allow\r\n * the renderer to skip several internal calculations.\r\n *\r\n * @method Phaser.GameObjects.Components.Crop#setCrop\r\n * @since 3.11.0\r\n *\r\n * @param {(number|Phaser.Geom.Rectangle)} [x] - The x coordinate to start the crop from. Cannot be negative or exceed the Frame width. Or a Phaser.Geom.Rectangle object, in which case the rest of the arguments are ignored.\r\n * @param {number} [y] - The y coordinate to start the crop from. Cannot be negative or exceed the Frame height.\r\n * @param {number} [width] - The width of the crop rectangle in pixels. Cannot exceed the Frame width.\r\n * @param {number} [height] - The height of the crop rectangle in pixels. Cannot exceed the Frame height.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setCrop: function (x, y, width, height)\r\n {\r\n if (x === undefined)\r\n {\r\n this.isCropped = false;\r\n }\r\n else if (this.frame)\r\n {\r\n if (typeof x === 'number')\r\n {\r\n this.frame.setCropUVs(this._crop, x, y, width, height, this.flipX, this.flipY);\r\n }\r\n else\r\n {\r\n var rect = x;\r\n\r\n this.frame.setCropUVs(this._crop, rect.x, rect.y, rect.width, rect.height, this.flipX, this.flipY);\r\n }\r\n\r\n this.isCropped = true;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal method that returns a blank, well-formed crop object for use by a Game Object.\r\n *\r\n * @method Phaser.GameObjects.Components.Crop#resetCropObject\r\n * @private\r\n * @since 3.12.0\r\n *\r\n * @return {object} The crop object.\r\n */\r\n resetCropObject: function ()\r\n {\r\n return { u0: 0, v0: 0, u1: 0, v1: 0, width: 0, height: 0, x: 0, y: 0, flipX: false, flipY: false, cx: 0, cy: 0, cw: 0, ch: 0 };\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Crop;\r\n\n\n/***/ }),\n\n/***/ 89272:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Provides methods used for setting the depth of a Game Object.\r\n * Should be applied as a mixin and not used directly.\r\n *\r\n * @namespace Phaser.GameObjects.Components.Depth\r\n * @since 3.0.0\r\n */\r\n\r\nvar ArrayUtils = __webpack_require__(37105);\r\n\r\nvar Depth = {\r\n\r\n /**\r\n * Private internal value. Holds the depth of the Game Object.\r\n *\r\n * @name Phaser.GameObjects.Components.Depth#_depth\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n _depth: 0,\r\n\r\n /**\r\n * The depth of this Game Object within the Scene. Ensure this value is only ever set to a number data-type.\r\n *\r\n * The depth is also known as the 'z-index' in some environments, and allows you to change the rendering order\r\n * of Game Objects, without actually moving their position in the display list.\r\n *\r\n * The default depth is zero. A Game Object with a higher depth\r\n * value will always render in front of one with a lower value.\r\n *\r\n * Setting the depth will queue a depth sort event within the Scene.\r\n *\r\n * @name Phaser.GameObjects.Components.Depth#depth\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n depth: {\r\n\r\n get: function ()\r\n {\r\n return this._depth;\r\n },\r\n\r\n set: function (value)\r\n {\r\n if (this.displayList)\r\n {\r\n this.displayList.queueDepthSort();\r\n }\r\n\r\n this._depth = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The depth of this Game Object within the Scene.\r\n *\r\n * The depth is also known as the 'z-index' in some environments, and allows you to change the rendering order\r\n * of Game Objects, without actually moving their position in the display list.\r\n *\r\n * The default depth is zero. A Game Object with a higher depth\r\n * value will always render in front of one with a lower value.\r\n *\r\n * Setting the depth will queue a depth sort event within the Scene.\r\n *\r\n * @method Phaser.GameObjects.Components.Depth#setDepth\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The depth of this Game Object. Ensure this value is only ever a number data-type.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setDepth: function (value)\r\n {\r\n if (value === undefined) { value = 0; }\r\n\r\n this.depth = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets this Game Object to be at the top of the display list, or the top of its parent container.\r\n * \r\n * Being at the top means it will render on-top of everything else.\r\n * \r\n * This method does not change this Game Objects `depth` value, it simply alters its list position.\r\n *\r\n * @method Phaser.GameObjects.Components.Depth#setToTop\r\n * @since 3.85.0\r\n * \r\n * @return {this} This Game Object instance.\r\n */\r\n setToTop: function ()\r\n {\r\n var list = this.getDisplayList();\r\n\r\n if (list)\r\n {\r\n ArrayUtils.BringToTop(list, this);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets this Game Object to the back of the display list, or the back of its parent container.\r\n * \r\n * Being at the back means it will render below everything else.\r\n * \r\n * This method does not change this Game Objects `depth` value, it simply alters its list position.\r\n *\r\n * @method Phaser.GameObjects.Components.Depth#setToBack\r\n * @since 3.85.0\r\n * \r\n * @return {this} This Game Object instance.\r\n */\r\n setToBack: function ()\r\n {\r\n var list = this.getDisplayList();\r\n\r\n if (list)\r\n {\r\n ArrayUtils.SendToBack(list, this);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Move this Game Object so that it appears above the given Game Object.\r\n * \r\n * This means it will render immediately after the other object in the display list.\r\n * \r\n * Both objects must belong to the same display list, or parent container.\r\n * \r\n * This method does not change this Game Objects `depth` value, it simply alters its list position.\r\n *\r\n * @method Phaser.GameObjects.Components.Depth#setAbove\r\n * @since 3.85.0\r\n * \r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that this Game Object will be moved to be above.\r\n * \r\n * @return {this} This Game Object instance.\r\n */\r\n setAbove: function (gameObject)\r\n {\r\n var list = this.getDisplayList();\r\n\r\n if (list && gameObject)\r\n {\r\n ArrayUtils.MoveAbove(list, this, gameObject);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Move this Game Object so that it appears below the given Game Object.\r\n * \r\n * This means it will render immediately under the other object in the display list.\r\n * \r\n * Both objects must belong to the same display list, or parent container.\r\n * \r\n * This method does not change this Game Objects `depth` value, it simply alters its list position.\r\n *\r\n * @method Phaser.GameObjects.Components.Depth#setBelow\r\n * @since 3.85.0\r\n * \r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that this Game Object will be moved to be below.\r\n * \r\n * @return {this} This Game Object instance.\r\n */\r\n setBelow: function (gameObject)\r\n {\r\n var list = this.getDisplayList();\r\n\r\n if (list && gameObject)\r\n {\r\n ArrayUtils.MoveBelow(list, this, gameObject);\r\n }\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Depth;\r\n\n\n/***/ }),\n\n/***/ 47059:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Effects = __webpack_require__(66064);\r\nvar SpliceOne = __webpack_require__(19133);\r\n\r\n/**\r\n * @classdesc\r\n * The FX Component features a set of methods used for applying a range of special built-in effects to a Game Object.\r\n *\r\n * The effects include the following:\r\n *\r\n * * Barrel Distortion\r\n * * Bloom\r\n * * Blur\r\n * * Bokeh / Tilt Shift\r\n * * Circle Outline\r\n * * Color Matrix\r\n * * Glow\r\n * * Displacement\r\n * * Gradient\r\n * * Pixelate\r\n * * Shine\r\n * * Shadow\r\n * * Vignette\r\n * * Wipe / Reveal\r\n *\r\n * All Game Objects support Post FX. These are effects applied after the Game Object has been rendered.\r\n *\r\n * Texture-based Game Objects also support Pre FX, including:\r\n *\r\n * * Image\r\n * * Sprite\r\n * * TileSprite\r\n * * Text\r\n * * RenderTexture\r\n * * Video\r\n *\r\n * And any Game Object that extends the above.\r\n *\r\n * The difference between Pre FX and Post FX are that all Post FX take place in a canvas (renderer) sized frame buffer,\r\n * after the Game Object has been rendered. Pre FX, however, take place in a texture sized frame buffer, which is sized\r\n * based on the Game Object itself. The end result is then composited back to the main game canvas. For intensive effects,\r\n * such as blur, bloom or glow, which can require many iterations, this is a much more efficient way to apply the effect,\r\n * as only it only has to work on a Game Object sized texture and not all pixels in the canvas.\r\n *\r\n * In short, you should always try and use a Pre FX if you can.\r\n *\r\n * Due to the way that FX work they can be stacked-up. For example, you can apply a blur to a Game Object, then apply\r\n * a bloom effect to the same Game Object. The bloom effect will be applied to the blurred texture, not the original.\r\n * Keep the order in mind when stacking effects.\r\n *\r\n * All effects are WebGL only and do not have canvas counterparts.\r\n *\r\n * As you can appreciate, some effects are more expensive than others. For example, a bloom effect is going to be more\r\n * expensive than a simple color matrix effect, so please consider using them wisely and performance test your target\r\n * platforms early on in production.\r\n *\r\n * This component is created automatically by the `PostPipeline` class and does not need to be instantiated directly.\r\n *\r\n * @class FX\r\n * @memberof Phaser.GameObjects.Components\r\n * @constructor\r\n * @since 3.60.0\r\n * @webglOnly\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - A reference to the Game Object that owns this FX Component.\r\n * @param {boolean} isPost - Is this a Pre or Post FX Component?\r\n */\r\nvar FX = new Class({\r\n\r\n initialize:\r\n\r\n function FX (gameObject, isPost)\r\n {\r\n /**\r\n * A reference to the Game Object that owns this FX Component.\r\n *\r\n * @name Phaser.GameObjects.Components.FX#gameObject\r\n * @type {Phaser.GameObjects.GameObject}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.gameObject = gameObject;\r\n\r\n /**\r\n * Is this a Post FX Controller? or a Pre FX Controller?\r\n *\r\n * @name Phaser.GameObjects.Components.FX#isPost\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.isPost = isPost;\r\n\r\n /**\r\n * Has this FX Component been enabled?\r\n *\r\n * You should treat this property as read-only, although it is toggled\r\n * automaticaly during internal use.\r\n *\r\n * @name Phaser.GameObjects.Components.FX#enabled\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.enabled = false;\r\n\r\n /**\r\n * An array containing all of the Pre FX Controllers that\r\n * have been added to this FX Component. They are processed in\r\n * the order they are added.\r\n *\r\n * This array is empty if this is a Post FX Component.\r\n *\r\n * @name Phaser.GameObjects.Components.FX#list\r\n * @type {Phaser.FX.Controller[]}\r\n * @since 3.60.0\r\n */\r\n this.list = [];\r\n\r\n /**\r\n * The amount of extra padding to be applied to this Game Object\r\n * when it is being rendered by a PreFX Pipeline.\r\n *\r\n * Lots of FX require additional spacing added to the texture the\r\n * Game Object uses, for example a glow or shadow effect, and this\r\n * method allows you to control how much extra padding is included\r\n * in addition to the texture size.\r\n *\r\n * You do not need to set this if you're only using Post FX.\r\n *\r\n * @name Phaser.GameObjects.Components.FX#padding\r\n * @type {number}\r\n * @default 0\r\n * @since 3.60.0\r\n */\r\n this.padding = 0;\r\n },\r\n\r\n /**\r\n * Sets the amount of extra padding to be applied to this Game Object\r\n * when it is being rendered by a PreFX Pipeline.\r\n *\r\n * Lots of FX require additional spacing added to the texture the\r\n * Game Object uses, for example a glow or shadow effect, and this\r\n * method allows you to control how much extra padding is included\r\n * in addition to the texture size.\r\n *\r\n * You do not need to set this if you're only using Post FX.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#setPadding\r\n * @webglOnly\r\n * @since 3.60.0\r\n *\r\n * @param {number} [padding=0] - The amount of padding to add to this Game Object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setPadding: function (padding)\r\n {\r\n if (padding === undefined) { padding = 0; }\r\n\r\n this.padding = padding;\r\n\r\n return this.gameObject;\r\n },\r\n\r\n /**\r\n * This callback is invoked when this Game Object is copied by a PreFX Pipeline.\r\n *\r\n * This happens when the pipeline uses its `copySprite` method.\r\n *\r\n * It's invoked prior to the copy, allowing you to set shader uniforms, etc on the pipeline.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#onFXCopy\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.Pipelines.PreFXPipeline} pipeline - The PreFX Pipeline that invoked this callback.\r\n */\r\n onFXCopy: function ()\r\n {\r\n },\r\n\r\n /**\r\n * This callback is invoked when this Game Object is rendered by a PreFX Pipeline.\r\n *\r\n * This happens when the pipeline uses its `drawSprite` method.\r\n *\r\n * It's invoked prior to the draw, allowing you to set shader uniforms, etc on the pipeline.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#onFX\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.Pipelines.PreFXPipeline} pipeline - The PreFX Pipeline that invoked this callback.\r\n */\r\n onFX: function ()\r\n {\r\n },\r\n\r\n /**\r\n * Enables this FX Component and applies the FXPipeline to the parent Game Object.\r\n *\r\n * This is called automatically whenever you call a method such as `addBloom`, etc.\r\n *\r\n * You can check the `enabled` property to see if the Game Object is already enabled, or not.\r\n *\r\n * This only applies to Pre FX. Post FX are always enabled.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#enable\r\n * @since 3.60.0\r\n *\r\n * @param {number} [padding=0] - The amount of padding to add to this Game Object.\r\n */\r\n enable: function (padding)\r\n {\r\n if (this.isPost)\r\n {\r\n return;\r\n }\r\n\r\n var renderer = this.gameObject.scene.sys.renderer;\r\n\r\n if (renderer && renderer.pipelines)\r\n {\r\n this.gameObject.pipeline = renderer.pipelines.FX_PIPELINE;\r\n\r\n if (padding !== undefined)\r\n {\r\n this.padding = padding;\r\n }\r\n\r\n this.enabled = true;\r\n }\r\n else\r\n {\r\n this.enabled = false;\r\n }\r\n },\r\n\r\n /**\r\n * Destroys and removes all FX Controllers that are part of this FX Component,\r\n * then disables it.\r\n *\r\n * If this is a Pre FX Component it will only remove Pre FX.\r\n * If this is a Post FX Component it will only remove Post FX.\r\n *\r\n * To remove both at once use the `GameObject.clearFX` method instead.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#clear\r\n * @since 3.60.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n clear: function ()\r\n {\r\n if (this.isPost)\r\n {\r\n this.gameObject.resetPostPipeline(true);\r\n }\r\n else\r\n {\r\n var list = this.list;\r\n\r\n for (var i = 0; i < list.length; i++)\r\n {\r\n list[i].destroy();\r\n }\r\n\r\n this.list = [];\r\n }\r\n\r\n this.enabled = false;\r\n\r\n return this.gameObject;\r\n },\r\n\r\n /**\r\n * Searches for the given FX Controller within this FX Component.\r\n *\r\n * If found, the controller is removed from this component and then destroyed.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#remove\r\n * @since 3.60.0\r\n *\r\n * @generic {Phaser.FX.Controller} T\r\n * @genericUse {T} - [fx]\r\n *\r\n * @param {Phaser.FX.Controller} fx - The FX Controller to remove from this FX Component.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n remove: function (fx)\r\n {\r\n var i;\r\n\r\n if (this.isPost)\r\n {\r\n var pipelines = this.gameObject.getPostPipeline(String(fx.type));\r\n\r\n if (!Array.isArray(pipelines))\r\n {\r\n pipelines = [ pipelines ];\r\n }\r\n\r\n for (i = 0; i < pipelines.length; i++)\r\n {\r\n var pipeline = pipelines[i];\r\n\r\n if (pipeline.controller === fx)\r\n {\r\n this.gameObject.removePostPipeline(pipeline);\r\n\r\n fx.destroy();\r\n\r\n break;\r\n }\r\n }\r\n }\r\n else\r\n {\r\n var list = this.list;\r\n\r\n for (i = 0; i < list.length; i++)\r\n {\r\n if (list[i] === fx)\r\n {\r\n SpliceOne(list, i);\r\n\r\n fx.destroy();\r\n }\r\n }\r\n }\r\n\r\n return this.gameObject;\r\n },\r\n\r\n /**\r\n * Disables this FX Component.\r\n *\r\n * This will reset the pipeline on the Game Object that owns this component back to its\r\n * default and flag this component as disabled.\r\n *\r\n * You can re-enable it again by calling `enable` for Pre FX or by adding an FX for Post FX.\r\n *\r\n * Optionally, set `clear` to destroy all current FX Controllers.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#disable\r\n * @since 3.60.0\r\n *\r\n * @param {boolean} [clear=false] - Destroy and remove all FX Controllers that are part of this component.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n disable: function (clear)\r\n {\r\n if (clear === undefined) { clear = false; }\r\n\r\n if (!this.isPost)\r\n {\r\n this.gameObject.resetPipeline();\r\n }\r\n\r\n this.enabled = false;\r\n\r\n if (clear)\r\n {\r\n this.clear();\r\n }\r\n\r\n return this.gameObject;\r\n },\r\n\r\n /**\r\n * Adds the given FX Controler to this FX Component.\r\n *\r\n * Note that adding an FX Controller does not remove any existing FX. They all stack-up\r\n * on-top of each other. If you don't want this, make sure to call either `remove` or\r\n * `clear` first.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#add\r\n * @since 3.60.0\r\n *\r\n * @generic {Phaser.FX.Controller} T\r\n * @genericUse {T} - [fx]\r\n *\r\n * @param {Phaser.FX.Controller} fx - The FX Controller to add to this FX Component.\r\n * @param {object} [config] - Optional configuration object that is passed to the pipeline during instantiation.\r\n *\r\n * @return {Phaser.FX.Controller} The FX Controller.\r\n */\r\n add: function (fx, config)\r\n {\r\n if (this.isPost)\r\n {\r\n var type = String(fx.type);\r\n\r\n this.gameObject.setPostPipeline(type, config);\r\n\r\n var pipeline = this.gameObject.getPostPipeline(type);\r\n\r\n if (pipeline)\r\n {\r\n if (Array.isArray(pipeline))\r\n {\r\n pipeline = pipeline.pop();\r\n }\r\n\r\n if (pipeline)\n {\r\n pipeline.controller = fx;\r\n }\r\n\r\n return fx;\r\n }\r\n }\r\n else\r\n {\r\n if (!this.enabled)\r\n {\r\n this.enable();\r\n }\r\n\r\n this.list.push(fx);\r\n\r\n return fx;\r\n }\r\n },\r\n\r\n /**\r\n * Adds a Glow effect.\r\n *\r\n * The glow effect is a visual technique that creates a soft, luminous halo around game objects,\r\n * characters, or UI elements. This effect is used to emphasize importance, enhance visual appeal,\r\n * or convey a sense of energy, magic, or otherworldly presence. The effect can also be set on\r\n * the inside of the Game Object. The color and strength of the glow can be modified.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#addGlow\r\n * @since 3.60.0\r\n *\r\n * @param {number} [color=0xffffff] - The color of the glow effect as a number value.\r\n * @param {number} [outerStrength=4] - The strength of the glow outward from the edge of the Sprite.\r\n * @param {number} [innerStrength=0] - The strength of the glow inward from the edge of the Sprite.\r\n * @param {boolean} [knockout=false] - If `true` only the glow is drawn, not the texture itself.\r\n * @param {number} [quality=0.1] - Only available for PostFX. Sets the quality of this Glow effect. Default is 0.1. Cannot be changed post-creation.\r\n * @param {number} [distance=10] - Only available for PostFX. Sets the distance of this Glow effect. Default is 10. Cannot be changed post-creation.\r\n *\r\n * @return {Phaser.FX.Glow} The Glow FX Controller.\r\n */\r\n addGlow: function (color, outerStrength, innerStrength, knockout, quality, distance)\r\n {\r\n return this.add(new Effects.Glow(this.gameObject, color, outerStrength, innerStrength, knockout), { quality: quality, distance: distance });\r\n },\r\n\r\n /**\r\n * Adds a Shadow effect.\r\n *\r\n * The shadow effect is a visual technique used to create the illusion of depth and realism by adding darker,\r\n * offset silhouettes or shapes beneath game objects, characters, or environments. These simulated shadows\r\n * help to enhance the visual appeal and immersion, making the 2D game world appear more dynamic and three-dimensional.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#addShadow\r\n * @since 3.60.0\r\n *\r\n * @param {number} [x=0] - The horizontal offset of the shadow effect.\r\n * @param {number} [y=0] - The vertical offset of the shadow effect.\r\n * @param {number} [decay=0.1] - The amount of decay for shadow effect.\r\n * @param {number} [power=1] - The power of the shadow effect.\r\n * @param {number} [color=0x000000] - The color of the shadow.\r\n * @param {number} [samples=6] - The number of samples that the shadow effect will run for. An integer between 1 and 12.\r\n * @param {number} [intensity=1] - The intensity of the shadow effect.\r\n *\r\n * @return {Phaser.FX.Shadow} The Shadow FX Controller.\r\n */\r\n addShadow: function (x, y, decay, power, color, samples, intensity)\r\n {\r\n return this.add(new Effects.Shadow(this.gameObject, x, y, decay, power, color, samples, intensity));\r\n },\r\n\r\n /**\r\n * Adds a Pixelate effect.\r\n *\r\n * The pixelate effect is a visual technique that deliberately reduces the resolution or detail of an image,\r\n * creating a blocky or mosaic appearance composed of large, visible pixels. This effect can be used for stylistic\r\n * purposes, as a homage to retro gaming, or as a means to obscure certain elements within the game, such as\r\n * during a transition or to censor specific content.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#addPixelate\r\n * @since 3.60.0\r\n *\r\n * @param {number} [amount=1] - The amount of pixelation to apply.\r\n *\r\n * @return {Phaser.FX.Pixelate} The Pixelate FX Controller.\r\n */\r\n addPixelate: function (amount)\r\n {\r\n return this.add(new Effects.Pixelate(this.gameObject, amount));\r\n },\r\n\r\n /**\r\n * Adds a Vignette effect.\r\n *\r\n * The vignette effect is a visual technique where the edges of the screen, or a Game Object, gradually darken or blur,\r\n * creating a frame-like appearance. This effect is used to draw the player's focus towards the central action or subject,\r\n * enhance immersion, and provide a cinematic or artistic quality to the game's visuals.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#addVignette\r\n * @since 3.60.0\r\n *\r\n * @param {number} [x=0.5] - The horizontal offset of the vignette effect. This value is normalized to the range 0 to 1.\r\n * @param {number} [y=0.5] - The vertical offset of the vignette effect. This value is normalized to the range 0 to 1.\r\n * @param {number} [radius=0.5] - The radius of the vignette effect. This value is normalized to the range 0 to 1.\r\n * @param {number} [strength=0.5] - The strength of the vignette effect.\r\n *\r\n * @return {Phaser.FX.Vignette} The Vignette FX Controller.\r\n */\r\n addVignette: function (x, y, radius, strength)\r\n {\r\n return this.add(new Effects.Vignette(this.gameObject, x, y, radius, strength));\r\n },\r\n\r\n /**\r\n * Adds a Shine effect.\r\n *\r\n * The shine effect is a visual technique that simulates the appearance of reflective\r\n * or glossy surfaces by passing a light beam across a Game Object. This effect is used to\r\n * enhance visual appeal, emphasize certain features, and create a sense of depth or\r\n * material properties.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#addShine\r\n * @since 3.60.0\r\n *\r\n * @param {number} [speed=0.5] - The speed of the Shine effect.\r\n * @param {number} [lineWidth=0.5] - The line width of the Shine effect.\r\n * @param {number} [gradient=3] - The gradient of the Shine effect.\r\n * @param {boolean} [reveal=false] - Does this Shine effect reveal or get added to its target?\r\n *\r\n * @return {Phaser.FX.Shine} The Shine FX Controller.\r\n */\r\n addShine: function (speed, lineWidth, gradient, reveal)\r\n {\r\n return this.add(new Effects.Shine(this.gameObject, speed, lineWidth, gradient, reveal));\r\n },\r\n\r\n /**\r\n * Adds a Blur effect.\r\n *\r\n * A Gaussian blur is the result of blurring an image by a Gaussian function. It is a widely used effect,\r\n * typically to reduce image noise and reduce detail. The visual effect of this blurring technique is a\r\n * smooth blur resembling that of viewing the image through a translucent screen, distinctly different\r\n * from the bokeh effect produced by an out-of-focus lens or the shadow of an object under usual illumination.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#addBlur\r\n * @since 3.60.0\r\n *\r\n * @param {number} [quality=0] - The quality of the blur effect. Can be either 0 for Low Quality, 1 for Medium Quality or 2 for High Quality.\r\n * @param {number} [x=2] - The horizontal offset of the blur effect.\r\n * @param {number} [y=2] - The vertical offset of the blur effect.\r\n * @param {number} [strength=1] - The strength of the blur effect.\r\n * @param {number} [color=0xffffff] - The color of the blur, as a hex value.\r\n * @param {number} [steps=4] - The number of steps to run the blur effect for. This value should always be an integer.\r\n *\r\n * @return {Phaser.FX.Blur} The Blur FX Controller.\r\n */\r\n addBlur: function (quality, x, y, strength, color, steps)\r\n {\r\n return this.add(new Effects.Blur(this.gameObject, quality, x, y, strength, color, steps));\r\n },\r\n\r\n /**\r\n * Adds a Gradient effect.\r\n *\r\n * The gradient overlay effect is a visual technique where a smooth color transition is applied over Game Objects,\r\n * such as sprites or UI components. This effect is used to enhance visual appeal, emphasize depth, or create\r\n * stylistic and atmospheric variations. It can also be utilized to convey information, such as representing\r\n * progress or health status through color changes.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#addGradient\r\n * @since 3.60.0\r\n *\r\n * @param {number} [color1=0xff0000] - The first gradient color, given as a number value.\r\n * @param {number} [color2=0x00ff00] - The second gradient color, given as a number value.\r\n * @param {number} [alpha=0.2] - The alpha value of the gradient effect.\r\n * @param {number} [fromX=0] - The horizontal position the gradient will start from. This value is normalized, between 0 and 1, and is not in pixels.\r\n * @param {number} [fromY=0] - The vertical position the gradient will start from. This value is normalized, between 0 and 1, and is not in pixels.\r\n * @param {number} [toX=0] - The horizontal position the gradient will end at. This value is normalized, between 0 and 1, and is not in pixels.\r\n * @param {number} [toY=1] - The vertical position the gradient will end at. This value is normalized, between 0 and 1, and is not in pixels.\r\n * @param {number} [size=0] - How many 'chunks' the gradient is divided in to, as spread over the entire height of the texture. Leave this at zero for a smooth gradient, or set higher for a more retro chunky effect.\r\n *\r\n * @return {Phaser.FX.Gradient} The Gradient FX Controller.\r\n */\r\n addGradient: function (color1, color2, alpha, fromX, fromY, toX, toY, size)\r\n {\r\n return this.add(new Effects.Gradient(this.gameObject, color1, color2, alpha, fromX, fromY, toX, toY, size));\r\n },\r\n\r\n /**\r\n * Adds a Bloom effect.\r\n *\r\n * Bloom is an effect used to reproduce an imaging artifact of real-world cameras.\r\n * The effect produces fringes of light extending from the borders of bright areas in an image,\r\n * contributing to the illusion of an extremely bright light overwhelming the\r\n * camera or eye capturing the scene.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#addBloom\r\n * @since 3.60.0\r\n *\r\n * @param {number} [color] - The color of the Bloom, as a hex value.\r\n * @param {number} [offsetX=1] - The horizontal offset of the bloom effect.\r\n * @param {number} [offsetY=1] - The vertical offset of the bloom effect.\r\n * @param {number} [blurStrength=1] - The strength of the blur process of the bloom effect.\r\n * @param {number} [strength=1] - The strength of the blend process of the bloom effect.\r\n * @param {number} [steps=4] - The number of steps to run the Bloom effect for. This value should always be an integer.\r\n *\r\n * @return {Phaser.FX.Bloom} The Bloom FX Controller.\r\n */\r\n addBloom: function (color, offsetX, offsetY, blurStrength, strength, steps)\r\n {\r\n return this.add(new Effects.Bloom(this.gameObject, color, offsetX, offsetY, blurStrength, strength, steps));\r\n },\r\n\r\n /**\r\n * Adds a ColorMatrix effect.\r\n *\r\n * The color matrix effect is a visual technique that involves manipulating the colors of an image\r\n * or scene using a mathematical matrix. This process can adjust hue, saturation, brightness, and contrast,\r\n * allowing developers to create various stylistic appearances or mood settings within the game.\r\n * Common applications include simulating different lighting conditions, applying color filters,\r\n * or achieving a specific visual style.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#addColorMatrix\r\n * @since 3.60.0\r\n *\r\n * @return {Phaser.FX.ColorMatrix} The ColorMatrix FX Controller.\r\n */\r\n addColorMatrix: function ()\r\n {\r\n return this.add(new Effects.ColorMatrix(this.gameObject));\r\n },\r\n\r\n /**\r\n * Adds a Circle effect.\r\n *\r\n * This effect will draw a circle around the texture of the Game Object, effectively masking off\r\n * any area outside of the circle without the need for an actual mask. You can control the thickness\r\n * of the circle, the color of the circle and the color of the background, should the texture be\r\n * transparent. You can also control the feathering applied to the circle, allowing for a harsh or soft edge.\r\n *\r\n * Please note that adding this effect to a Game Object will not change the input area or physics body of\r\n * the Game Object, should it have one.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#addCircle\r\n * @since 3.60.0\r\n *\r\n * @param {number} [thickness=8] - The width of the circle around the texture, in pixels.\r\n * @param {number} [color=0xfeedb6] - The color of the circular ring, given as a number value.\r\n * @param {number} [backgroundColor=0xff0000] - The color of the background, behind the texture, given as a number value.\r\n * @param {number} [scale=1] - The scale of the circle. The default scale is 1, which is a circle the full size of the underlying texture.\r\n * @param {number} [feather=0.005] - The amount of feathering to apply to the circle from the ring.\r\n *\r\n * @return {Phaser.FX.Circle} The Circle FX Controller.\r\n */\r\n addCircle: function (thickness, color, backgroundColor, scale, feather)\r\n {\r\n return this.add(new Effects.Circle(this.gameObject, thickness, color, backgroundColor, scale, feather));\r\n },\r\n\r\n /**\r\n * Adds a Barrel effect.\r\n *\r\n * A barrel effect allows you to apply either a 'pinch' or 'expand' distortion to\r\n * a Game Object. The amount of the effect can be modified in real-time.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#addBarrel\r\n * @since 3.60.0\r\n *\r\n * @param {number} [amount=1] - The amount of distortion applied to the barrel effect. A value of 1 is no distortion. Typically keep this within +- 1.\r\n *\r\n * @return {Phaser.FX.Barrel} The Barrel FX Controller.\r\n */\r\n addBarrel: function (amount)\r\n {\r\n return this.add(new Effects.Barrel(this.gameObject, amount));\r\n },\r\n\r\n /**\r\n * Adds a Displacement effect.\r\n *\r\n * The displacement effect is a visual technique that alters the position of pixels in an image\r\n * or texture based on the values of a displacement map. This effect is used to create the illusion\r\n * of depth, surface irregularities, or distortion in otherwise flat elements. It can be applied to\r\n * characters, objects, or backgrounds to enhance realism, convey movement, or achieve various\r\n * stylistic appearances.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#addDisplacement\r\n * @since 3.60.0\r\n *\r\n * @param {string} [texture='__WHITE'] - The unique string-based key of the texture to use for displacement, which must exist in the Texture Manager.\r\n * @param {number} [x=0.005] - The amount of horizontal displacement to apply. A very small float number, such as 0.005.\r\n * @param {number} [y=0.005] - The amount of vertical displacement to apply. A very small float number, such as 0.005.\r\n *\r\n * @return {Phaser.FX.Displacement} The Displacement FX Controller.\r\n */\r\n addDisplacement: function (texture, x, y)\r\n {\r\n return this.add(new Effects.Displacement(this.gameObject, texture, x, y));\r\n },\r\n\r\n /**\r\n * Adds a Wipe effect.\r\n *\r\n * The wipe or reveal effect is a visual technique that gradually uncovers or conceals elements\r\n * in the game, such as images, text, or scene transitions. This effect is often used to create\r\n * a sense of progression, reveal hidden content, or provide a smooth and visually appealing transition\r\n * between game states.\r\n *\r\n * You can set both the direction and the axis of the wipe effect. The following combinations are possible:\r\n *\r\n * * left to right: direction 0, axis 0\r\n * * right to left: direction 1, axis 0\r\n * * top to bottom: direction 1, axis 1\r\n * * bottom to top: direction 1, axis 0\r\n *\r\n * It is up to you to set the `progress` value yourself, i.e. via a Tween, in order to transition the effect.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#addWipe\r\n * @since 3.60.0\r\n *\r\n * @param {number} [wipeWidth=0.1] - The width of the wipe effect. This value is normalized in the range 0 to 1.\r\n * @param {number} [direction=0] - The direction of the wipe effect. Either 0 or 1. Set in conjunction with the axis property.\r\n * @param {number} [axis=0] - The axis of the wipe effect. Either 0 or 1. Set in conjunction with the direction property.\r\n *\r\n * @return {Phaser.FX.Wipe} The Wipe FX Controller.\r\n */\r\n addWipe: function (wipeWidth, direction, axis)\r\n {\r\n return this.add(new Effects.Wipe(this.gameObject, wipeWidth, direction, axis));\r\n },\r\n\r\n /**\r\n * Adds a Reveal Wipe effect.\r\n *\r\n * The wipe or reveal effect is a visual technique that gradually uncovers or conceals elements\r\n * in the game, such as images, text, or scene transitions. This effect is often used to create\r\n * a sense of progression, reveal hidden content, or provide a smooth and visually appealing transition\r\n * between game states.\r\n *\r\n * You can set both the direction and the axis of the wipe effect. The following combinations are possible:\r\n *\r\n * * left to right: direction 0, axis 0\r\n * * right to left: direction 1, axis 0\r\n * * top to bottom: direction 1, axis 1\r\n * * bottom to top: direction 1, axis 0\r\n *\r\n * It is up to you to set the `progress` value yourself, i.e. via a Tween, in order to transition the effect.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#addReveal\r\n * @since 3.60.0\r\n *\r\n * @param {number} [wipeWidth=0.1] - The width of the wipe effect. This value is normalized in the range 0 to 1.\r\n * @param {number} [direction=0] - The direction of the wipe effect. Either 0 or 1. Set in conjunction with the axis property.\r\n * @param {number} [axis=0] - The axis of the wipe effect. Either 0 or 1. Set in conjunction with the direction property.\r\n *\r\n * @return {Phaser.FX.Wipe} The Wipe FX Controller.\r\n */\r\n addReveal: function (wipeWidth, direction, axis)\r\n {\r\n return this.add(new Effects.Wipe(this.gameObject, wipeWidth, direction, axis, true));\r\n },\r\n\r\n /**\r\n * Adds a Bokeh effect.\r\n *\r\n * Bokeh refers to a visual effect that mimics the photographic technique of creating a shallow depth of field.\r\n * This effect is used to emphasize the game's main subject or action, by blurring the background or foreground\r\n * elements, resulting in a more immersive and visually appealing experience. It is achieved through rendering\r\n * techniques that simulate the out-of-focus areas, giving a sense of depth and realism to the game's graphics.\r\n *\r\n * See also Tilt Shift.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#addBokeh\r\n * @since 3.60.0\r\n *\r\n * @param {number} [radius=0.5] - The radius of the bokeh effect.\r\n * @param {number} [amount=1] - The amount of the bokeh effect.\r\n * @param {number} [contrast=0.2] - The color contrast of the bokeh effect.\r\n *\r\n * @return {Phaser.FX.Bokeh} The Bokeh FX Controller.\r\n */\r\n addBokeh: function (radius, amount, contrast)\r\n {\r\n return this.add(new Effects.Bokeh(this.gameObject, radius, amount, contrast));\r\n },\r\n\r\n /**\r\n * Adds a Tilt Shift effect.\r\n *\r\n * This Bokeh effect can also be used to generate a Tilt Shift effect, which is a technique used to create a miniature\r\n * effect by blurring everything except a small area of the image. This effect is achieved by blurring the\r\n * top and bottom elements, while keeping the center area in focus.\r\n *\r\n * See also Bokeh.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#addTiltShift\r\n * @since 3.60.0\r\n *\r\n * @param {number} [radius=0.5] - The radius of the bokeh effect.\r\n * @param {number} [amount=1] - The amount of the bokeh effect.\r\n * @param {number} [contrast=0.2] - The color contrast of the bokeh effect.\r\n * @param {number} [blurX=1] - The amount of horizontal blur.\r\n * @param {number} [blurY=1] - The amount of vertical blur.\r\n * @param {number} [strength=1] - The strength of the blur.\r\n *\r\n * @return {Phaser.FX.Bokeh} The Bokeh TiltShift FX Controller.\r\n */\r\n addTiltShift: function (radius, amount, contrast, blurX, blurY, strength)\r\n {\r\n return this.add(new Effects.Bokeh(this.gameObject, radius, amount, contrast, true, blurX, blurY, strength));\r\n },\r\n\r\n /**\r\n * Destroys this FX Component.\r\n *\r\n * Called automatically when Game Objects are destroyed.\r\n *\r\n * @method Phaser.GameObjects.Components.FX#destroy\r\n * @since 3.60.0\r\n */\r\n destroy: function ()\r\n {\r\n this.clear();\r\n\r\n this.gameObject = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = FX;\r\n\n\n/***/ }),\n\n/***/ 54434:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Provides methods used for visually flipping a Game Object.\r\n * Should be applied as a mixin and not used directly.\r\n *\r\n * @namespace Phaser.GameObjects.Components.Flip\r\n * @since 3.0.0\r\n */\r\n\r\nvar Flip = {\r\n\r\n /**\r\n * The horizontally flipped state of the Game Object.\r\n *\r\n * A Game Object that is flipped horizontally will render inversed on the horizontal axis.\r\n * Flipping always takes place from the middle of the texture and does not impact the scale value.\r\n * If this Game Object has a physics body, it will not change the body. This is a rendering toggle only.\r\n *\r\n * @name Phaser.GameObjects.Components.Flip#flipX\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n flipX: false,\r\n\r\n /**\r\n * The vertically flipped state of the Game Object.\r\n *\r\n * A Game Object that is flipped vertically will render inversed on the vertical axis (i.e. upside down)\r\n * Flipping always takes place from the middle of the texture and does not impact the scale value.\r\n * If this Game Object has a physics body, it will not change the body. This is a rendering toggle only.\r\n *\r\n * @name Phaser.GameObjects.Components.Flip#flipY\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n flipY: false,\r\n\r\n /**\r\n * Toggles the horizontal flipped state of this Game Object.\r\n *\r\n * A Game Object that is flipped horizontally will render inversed on the horizontal axis.\r\n * Flipping always takes place from the middle of the texture and does not impact the scale value.\r\n * If this Game Object has a physics body, it will not change the body. This is a rendering toggle only.\r\n *\r\n * @method Phaser.GameObjects.Components.Flip#toggleFlipX\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n toggleFlipX: function ()\r\n {\r\n this.flipX = !this.flipX;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Toggles the vertical flipped state of this Game Object.\r\n *\r\n * @method Phaser.GameObjects.Components.Flip#toggleFlipY\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n toggleFlipY: function ()\r\n {\r\n this.flipY = !this.flipY;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the horizontal flipped state of this Game Object.\r\n *\r\n * A Game Object that is flipped horizontally will render inversed on the horizontal axis.\r\n * Flipping always takes place from the middle of the texture and does not impact the scale value.\r\n * If this Game Object has a physics body, it will not change the body. This is a rendering toggle only.\r\n *\r\n * @method Phaser.GameObjects.Components.Flip#setFlipX\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} value - The flipped state. `false` for no flip, or `true` to be flipped.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setFlipX: function (value)\r\n {\r\n this.flipX = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the vertical flipped state of this Game Object.\r\n *\r\n * @method Phaser.GameObjects.Components.Flip#setFlipY\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} value - The flipped state. `false` for no flip, or `true` to be flipped.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setFlipY: function (value)\r\n {\r\n this.flipY = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the horizontal and vertical flipped state of this Game Object.\r\n *\r\n * A Game Object that is flipped will render inversed on the flipped axis.\r\n * Flipping always takes place from the middle of the texture and does not impact the scale value.\r\n * If this Game Object has a physics body, it will not change the body. This is a rendering toggle only.\r\n *\r\n * @method Phaser.GameObjects.Components.Flip#setFlip\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} x - The horizontal flipped state. `false` for no flip, or `true` to be flipped.\r\n * @param {boolean} y - The horizontal flipped state. `false` for no flip, or `true` to be flipped.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setFlip: function (x, y)\r\n {\r\n this.flipX = x;\r\n this.flipY = y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resets the horizontal and vertical flipped state of this Game Object back to their default un-flipped state.\r\n *\r\n * @method Phaser.GameObjects.Components.Flip#resetFlip\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n resetFlip: function ()\r\n {\r\n this.flipX = false;\r\n this.flipY = false;\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Flip;\r\n\n\n/***/ }),\n\n/***/ 8004:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Rectangle = __webpack_require__(87841);\r\nvar RotateAround = __webpack_require__(11520);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * Provides methods used for obtaining the bounds of a Game Object.\r\n * Should be applied as a mixin and not used directly.\r\n *\r\n * @namespace Phaser.GameObjects.Components.GetBounds\r\n * @since 3.0.0\r\n */\r\n\r\nvar GetBounds = {\r\n\r\n /**\r\n * Processes the bounds output vector before returning it.\r\n *\r\n * @method Phaser.GameObjects.Components.GetBounds#prepareBoundsOutput\r\n * @private\r\n * @since 3.18.0\r\n *\r\n * @generic {Phaser.Types.Math.Vector2Like} O - [output,$return]\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} output - An object to store the values in. If not provided a new Vector2 will be created.\r\n * @param {boolean} [includeParent=false] - If this Game Object has a parent Container, include it (and all other ancestors) in the resulting vector?\r\n *\r\n * @return {Phaser.Types.Math.Vector2Like} The values stored in the output object.\r\n */\r\n prepareBoundsOutput: function (output, includeParent)\r\n {\r\n if (includeParent === undefined) { includeParent = false; }\r\n\r\n if (this.rotation !== 0)\r\n {\r\n RotateAround(output, this.x, this.y, this.rotation);\r\n }\r\n\r\n if (includeParent && this.parentContainer)\r\n {\r\n var parentMatrix = this.parentContainer.getBoundsTransformMatrix();\r\n\r\n parentMatrix.transformPoint(output.x, output.y, output);\r\n }\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Gets the center coordinate of this Game Object, regardless of origin.\r\n *\r\n * The returned point is calculated in local space and does not factor in any parent Containers,\r\n * unless the `includeParent` argument is set to `true`.\r\n *\r\n * @method Phaser.GameObjects.Components.GetBounds#getCenter\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Types.Math.Vector2Like} O - [output,$return]\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} [output] - An object to store the values in. If not provided a new Vector2 will be created.\r\n * @param {boolean} [includeParent=false] - If this Game Object has a parent Container, include it (and all other ancestors) in the resulting vector?\r\n *\r\n * @return {Phaser.Types.Math.Vector2Like} The values stored in the output object.\r\n */\r\n getCenter: function (output, includeParent)\r\n {\r\n if (output === undefined) { output = new Vector2(); }\r\n\r\n output.x = this.x - (this.displayWidth * this.originX) + (this.displayWidth / 2);\r\n output.y = this.y - (this.displayHeight * this.originY) + (this.displayHeight / 2);\r\n\r\n return this.prepareBoundsOutput(output, includeParent);\r\n },\r\n\r\n /**\r\n * Gets the top-left corner coordinate of this Game Object, regardless of origin.\r\n *\r\n * The returned point is calculated in local space and does not factor in any parent Containers,\r\n * unless the `includeParent` argument is set to `true`.\r\n *\r\n * @method Phaser.GameObjects.Components.GetBounds#getTopLeft\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Types.Math.Vector2Like} O - [output,$return]\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} [output] - An object to store the values in. If not provided a new Vector2 will be created.\r\n * @param {boolean} [includeParent=false] - If this Game Object has a parent Container, include it (and all other ancestors) in the resulting vector?\r\n *\r\n * @return {Phaser.Types.Math.Vector2Like} The values stored in the output object.\r\n */\r\n getTopLeft: function (output, includeParent)\r\n {\r\n if (!output) { output = new Vector2(); }\r\n\r\n output.x = this.x - (this.displayWidth * this.originX);\r\n output.y = this.y - (this.displayHeight * this.originY);\r\n\r\n return this.prepareBoundsOutput(output, includeParent);\r\n },\r\n\r\n /**\r\n * Gets the top-center coordinate of this Game Object, regardless of origin.\r\n *\r\n * The returned point is calculated in local space and does not factor in any parent Containers,\r\n * unless the `includeParent` argument is set to `true`.\r\n *\r\n * @method Phaser.GameObjects.Components.GetBounds#getTopCenter\r\n * @since 3.18.0\r\n *\r\n * @generic {Phaser.Types.Math.Vector2Like} O - [output,$return]\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} [output] - An object to store the values in. If not provided a new Vector2 will be created.\r\n * @param {boolean} [includeParent=false] - If this Game Object has a parent Container, include it (and all other ancestors) in the resulting vector?\r\n *\r\n * @return {Phaser.Types.Math.Vector2Like} The values stored in the output object.\r\n */\r\n getTopCenter: function (output, includeParent)\r\n {\r\n if (!output) { output = new Vector2(); }\r\n\r\n output.x = (this.x - (this.displayWidth * this.originX)) + (this.displayWidth / 2);\r\n output.y = this.y - (this.displayHeight * this.originY);\r\n\r\n return this.prepareBoundsOutput(output, includeParent);\r\n },\r\n\r\n /**\r\n * Gets the top-right corner coordinate of this Game Object, regardless of origin.\r\n *\r\n * The returned point is calculated in local space and does not factor in any parent Containers,\r\n * unless the `includeParent` argument is set to `true`.\r\n *\r\n * @method Phaser.GameObjects.Components.GetBounds#getTopRight\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Types.Math.Vector2Like} O - [output,$return]\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} [output] - An object to store the values in. If not provided a new Vector2 will be created.\r\n * @param {boolean} [includeParent=false] - If this Game Object has a parent Container, include it (and all other ancestors) in the resulting vector?\r\n *\r\n * @return {Phaser.Types.Math.Vector2Like} The values stored in the output object.\r\n */\r\n getTopRight: function (output, includeParent)\r\n {\r\n if (!output) { output = new Vector2(); }\r\n\r\n output.x = (this.x - (this.displayWidth * this.originX)) + this.displayWidth;\r\n output.y = this.y - (this.displayHeight * this.originY);\r\n\r\n return this.prepareBoundsOutput(output, includeParent);\r\n },\r\n\r\n /**\r\n * Gets the left-center coordinate of this Game Object, regardless of origin.\r\n *\r\n * The returned point is calculated in local space and does not factor in any parent Containers,\r\n * unless the `includeParent` argument is set to `true`.\r\n *\r\n * @method Phaser.GameObjects.Components.GetBounds#getLeftCenter\r\n * @since 3.18.0\r\n *\r\n * @generic {Phaser.Types.Math.Vector2Like} O - [output,$return]\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} [output] - An object to store the values in. If not provided a new Vector2 will be created.\r\n * @param {boolean} [includeParent=false] - If this Game Object has a parent Container, include it (and all other ancestors) in the resulting vector?\r\n *\r\n * @return {Phaser.Types.Math.Vector2Like} The values stored in the output object.\r\n */\r\n getLeftCenter: function (output, includeParent)\r\n {\r\n if (!output) { output = new Vector2(); }\r\n\r\n output.x = this.x - (this.displayWidth * this.originX);\r\n output.y = (this.y - (this.displayHeight * this.originY)) + (this.displayHeight / 2);\r\n\r\n return this.prepareBoundsOutput(output, includeParent);\r\n },\r\n\r\n /**\r\n * Gets the right-center coordinate of this Game Object, regardless of origin.\r\n *\r\n * The returned point is calculated in local space and does not factor in any parent Containers,\r\n * unless the `includeParent` argument is set to `true`.\r\n *\r\n * @method Phaser.GameObjects.Components.GetBounds#getRightCenter\r\n * @since 3.18.0\r\n *\r\n * @generic {Phaser.Types.Math.Vector2Like} O - [output,$return]\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} [output] - An object to store the values in. If not provided a new Vector2 will be created.\r\n * @param {boolean} [includeParent=false] - If this Game Object has a parent Container, include it (and all other ancestors) in the resulting vector?\r\n *\r\n * @return {Phaser.Types.Math.Vector2Like} The values stored in the output object.\r\n */\r\n getRightCenter: function (output, includeParent)\r\n {\r\n if (!output) { output = new Vector2(); }\r\n\r\n output.x = (this.x - (this.displayWidth * this.originX)) + this.displayWidth;\r\n output.y = (this.y - (this.displayHeight * this.originY)) + (this.displayHeight / 2);\r\n\r\n return this.prepareBoundsOutput(output, includeParent);\r\n },\r\n\r\n /**\r\n * Gets the bottom-left corner coordinate of this Game Object, regardless of origin.\r\n *\r\n * The returned point is calculated in local space and does not factor in any parent Containers,\r\n * unless the `includeParent` argument is set to `true`.\r\n *\r\n * @method Phaser.GameObjects.Components.GetBounds#getBottomLeft\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Types.Math.Vector2Like} O - [output,$return]\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} [output] - An object to store the values in. If not provided a new Vector2 will be created.\r\n * @param {boolean} [includeParent=false] - If this Game Object has a parent Container, include it (and all other ancestors) in the resulting vector?\r\n *\r\n * @return {Phaser.Types.Math.Vector2Like} The values stored in the output object.\r\n */\r\n getBottomLeft: function (output, includeParent)\r\n {\r\n if (!output) { output = new Vector2(); }\r\n\r\n output.x = this.x - (this.displayWidth * this.originX);\r\n output.y = (this.y - (this.displayHeight * this.originY)) + this.displayHeight;\r\n\r\n return this.prepareBoundsOutput(output, includeParent);\r\n },\r\n\r\n /**\r\n * Gets the bottom-center coordinate of this Game Object, regardless of origin.\r\n *\r\n * The returned point is calculated in local space and does not factor in any parent Containers,\r\n * unless the `includeParent` argument is set to `true`.\r\n *\r\n * @method Phaser.GameObjects.Components.GetBounds#getBottomCenter\r\n * @since 3.18.0\r\n *\r\n * @generic {Phaser.Types.Math.Vector2Like} O - [output,$return]\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} [output] - An object to store the values in. If not provided a new Vector2 will be created.\r\n * @param {boolean} [includeParent=false] - If this Game Object has a parent Container, include it (and all other ancestors) in the resulting vector?\r\n *\r\n * @return {Phaser.Types.Math.Vector2Like} The values stored in the output object.\r\n */\r\n getBottomCenter: function (output, includeParent)\r\n {\r\n if (!output) { output = new Vector2(); }\r\n\r\n output.x = (this.x - (this.displayWidth * this.originX)) + (this.displayWidth / 2);\r\n output.y = (this.y - (this.displayHeight * this.originY)) + this.displayHeight;\r\n\r\n return this.prepareBoundsOutput(output, includeParent);\r\n },\r\n\r\n /**\r\n * Gets the bottom-right corner coordinate of this Game Object, regardless of origin.\r\n *\r\n * The returned point is calculated in local space and does not factor in any parent Containers,\r\n * unless the `includeParent` argument is set to `true`.\r\n *\r\n * @method Phaser.GameObjects.Components.GetBounds#getBottomRight\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Types.Math.Vector2Like} O - [output,$return]\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} [output] - An object to store the values in. If not provided a new Vector2 will be created.\r\n * @param {boolean} [includeParent=false] - If this Game Object has a parent Container, include it (and all other ancestors) in the resulting vector?\r\n *\r\n * @return {Phaser.Types.Math.Vector2Like} The values stored in the output object.\r\n */\r\n getBottomRight: function (output, includeParent)\r\n {\r\n if (!output) { output = new Vector2(); }\r\n\r\n output.x = (this.x - (this.displayWidth * this.originX)) + this.displayWidth;\r\n output.y = (this.y - (this.displayHeight * this.originY)) + this.displayHeight;\r\n\r\n return this.prepareBoundsOutput(output, includeParent);\r\n },\r\n\r\n /**\r\n * Gets the bounds of this Game Object, regardless of origin.\r\n *\r\n * The values are stored and returned in a Rectangle, or Rectangle-like, object.\r\n *\r\n * @method Phaser.GameObjects.Components.GetBounds#getBounds\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [output,$return]\r\n *\r\n * @param {(Phaser.Geom.Rectangle|object)} [output] - An object to store the values in. If not provided a new Rectangle will be created.\r\n *\r\n * @return {(Phaser.Geom.Rectangle|object)} The values stored in the output object.\r\n */\r\n getBounds: function (output)\r\n {\r\n if (output === undefined) { output = new Rectangle(); }\r\n\r\n // We can use the output object to temporarily store the x/y coords in:\r\n\r\n var TLx, TLy, TRx, TRy, BLx, BLy, BRx, BRy;\r\n\r\n // Instead of doing a check if parent container is\r\n // defined per corner we only do it once.\r\n if (this.parentContainer)\r\n {\r\n var parentMatrix = this.parentContainer.getBoundsTransformMatrix();\r\n\r\n this.getTopLeft(output);\r\n parentMatrix.transformPoint(output.x, output.y, output);\r\n\r\n TLx = output.x;\r\n TLy = output.y;\r\n\r\n this.getTopRight(output);\r\n parentMatrix.transformPoint(output.x, output.y, output);\r\n\r\n TRx = output.x;\r\n TRy = output.y;\r\n\r\n this.getBottomLeft(output);\r\n parentMatrix.transformPoint(output.x, output.y, output);\r\n\r\n BLx = output.x;\r\n BLy = output.y;\r\n\r\n this.getBottomRight(output);\r\n parentMatrix.transformPoint(output.x, output.y, output);\r\n\r\n BRx = output.x;\r\n BRy = output.y;\r\n }\r\n else\r\n {\r\n this.getTopLeft(output);\r\n\r\n TLx = output.x;\r\n TLy = output.y;\r\n\r\n this.getTopRight(output);\r\n\r\n TRx = output.x;\r\n TRy = output.y;\r\n\r\n this.getBottomLeft(output);\r\n\r\n BLx = output.x;\r\n BLy = output.y;\r\n\r\n this.getBottomRight(output);\r\n\r\n BRx = output.x;\r\n BRy = output.y;\r\n }\r\n\r\n output.x = Math.min(TLx, TRx, BLx, BRx);\r\n output.y = Math.min(TLy, TRy, BLy, BRy);\r\n output.width = Math.max(TLx, TRx, BLx, BRx) - output.x;\r\n output.height = Math.max(TLy, TRy, BLy, BRy) - output.y;\r\n\r\n return output;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = GetBounds;\r\n\n\n/***/ }),\n\n/***/ 8573:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BitmapMask = __webpack_require__(6858);\r\nvar GeometryMask = __webpack_require__(80661);\r\n\r\n/**\r\n * Provides methods used for getting and setting the mask of a Game Object.\r\n *\r\n * @namespace Phaser.GameObjects.Components.Mask\r\n * @since 3.0.0\r\n */\r\n\r\nvar Mask = {\r\n\r\n /**\r\n * The Mask this Game Object is using during render.\r\n *\r\n * @name Phaser.GameObjects.Components.Mask#mask\r\n * @type {Phaser.Display.Masks.BitmapMask|Phaser.Display.Masks.GeometryMask}\r\n * @since 3.0.0\r\n */\r\n mask: null,\r\n\r\n /**\r\n * Sets the mask that this Game Object will use to render with.\r\n *\r\n * The mask must have been previously created and can be either a GeometryMask or a BitmapMask.\r\n * Note: Bitmap Masks only work on WebGL. Geometry Masks work on both WebGL and Canvas.\r\n *\r\n * If a mask is already set on this Game Object it will be immediately replaced.\r\n *\r\n * Masks are positioned in global space and are not relative to the Game Object to which they\r\n * are applied. The reason for this is that multiple Game Objects can all share the same mask.\r\n *\r\n * Masks have no impact on physics or input detection. They are purely a rendering component\r\n * that allows you to limit what is visible during the render pass.\r\n *\r\n * @method Phaser.GameObjects.Components.Mask#setMask\r\n * @since 3.6.2\r\n *\r\n * @param {Phaser.Display.Masks.BitmapMask|Phaser.Display.Masks.GeometryMask} mask - The mask this Game Object will use when rendering.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setMask: function (mask)\r\n {\r\n this.mask = mask;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Clears the mask that this Game Object was using.\r\n *\r\n * @method Phaser.GameObjects.Components.Mask#clearMask\r\n * @since 3.6.2\r\n *\r\n * @param {boolean} [destroyMask=false] - Destroy the mask before clearing it?\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n clearMask: function (destroyMask)\r\n {\r\n if (destroyMask === undefined) { destroyMask = false; }\r\n\r\n if (destroyMask && this.mask)\r\n {\r\n this.mask.destroy();\r\n }\r\n\r\n this.mask = null;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Creates and returns a Bitmap Mask. This mask can be used by any Game Object,\r\n * including this one, or a Dynamic Texture.\r\n *\r\n * Note: Bitmap Masks only work on WebGL. Geometry Masks work on both WebGL and Canvas.\r\n *\r\n * To create the mask you need to pass in a reference to a renderable Game Object.\r\n * A renderable Game Object is one that uses a texture to render with, such as an\r\n * Image, Sprite, Render Texture or BitmapText.\r\n *\r\n * If you do not provide a renderable object, and this Game Object has a texture,\r\n * it will use itself as the object. This means you can call this method to create\r\n * a Bitmap Mask from any renderable texture-based Game Object.\r\n *\r\n * @method Phaser.GameObjects.Components.Mask#createBitmapMask\r\n * @since 3.6.2\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G\r\n * @generic {Phaser.Textures.DynamicTexture} T\r\n * @genericUse {(G|T|null)} [maskObject]\r\n *\r\n * @param {(Phaser.GameObjects.GameObject|Phaser.Textures.DynamicTexture)} [maskObject] - The Game Object or Dynamic Texture that will be used as the mask. If `null` it will generate an Image Game Object using the rest of the arguments.\r\n * @param {number} [x] - If creating a Game Object, the horizontal position in the world.\r\n * @param {number} [y] - If creating a Game Object, the vertical position in the world.\r\n * @param {(string|Phaser.Textures.Texture)} [texture] - If creating a Game Object, the key, or instance of the Texture it will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number|Phaser.Textures.Frame)} [frame] - If creating a Game Object, an optional frame from the Texture this Game Object is rendering with.\r\n *\r\n * @return {Phaser.Display.Masks.BitmapMask} This Bitmap Mask that was created.\r\n */\r\n createBitmapMask: function (maskObject, x, y, texture, frame)\r\n {\r\n if (maskObject === undefined && (this.texture || this.shader || this.geom))\r\n {\r\n // eslint-disable-next-line consistent-this\r\n maskObject = this;\r\n }\r\n\r\n return new BitmapMask(this.scene, maskObject, x, y, texture, frame);\r\n },\r\n\r\n /**\r\n * Creates and returns a Geometry Mask. This mask can be used by any Game Object,\r\n * including this one.\r\n *\r\n * To create the mask you need to pass in a reference to a Graphics Game Object.\r\n *\r\n * If you do not provide a graphics object, and this Game Object is an instance\r\n * of a Graphics object, then it will use itself to create the mask.\r\n *\r\n * This means you can call this method to create a Geometry Mask from any Graphics Game Object.\r\n *\r\n * @method Phaser.GameObjects.Components.Mask#createGeometryMask\r\n * @since 3.6.2\r\n *\r\n * @generic {Phaser.GameObjects.Graphics} G\r\n * @generic {Phaser.GameObjects.Shape} S\r\n * @genericUse {(G|S)} [graphics]\r\n *\r\n * @param {Phaser.GameObjects.Graphics|Phaser.GameObjects.Shape} [graphics] - A Graphics Game Object, or any kind of Shape Game Object. The geometry within it will be used as the mask.\r\n *\r\n * @return {Phaser.Display.Masks.GeometryMask} This Geometry Mask that was created.\r\n */\r\n createGeometryMask: function (graphics)\r\n {\r\n if (graphics === undefined && (this.type === 'Graphics' || this.geom))\r\n {\r\n // eslint-disable-next-line consistent-this\r\n graphics = this;\r\n }\r\n\r\n return new GeometryMask(this.scene, graphics);\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Mask;\r\n\n\n/***/ }),\n\n/***/ 27387:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Provides methods used for getting and setting the origin of a Game Object.\r\n * Values are normalized, given in the range 0 to 1.\r\n * Display values contain the calculated pixel values.\r\n * Should be applied as a mixin and not used directly.\r\n *\r\n * @namespace Phaser.GameObjects.Components.Origin\r\n * @since 3.0.0\r\n */\r\n\r\nvar Origin = {\r\n\r\n /**\r\n * A property indicating that a Game Object has this component.\r\n *\r\n * @name Phaser.GameObjects.Components.Origin#_originComponent\r\n * @type {boolean}\r\n * @private\r\n * @default true\r\n * @since 3.2.0\r\n */\r\n _originComponent: true,\r\n\r\n /**\r\n * The horizontal origin of this Game Object.\r\n * The origin maps the relationship between the size and position of the Game Object.\r\n * The default value is 0.5, meaning all Game Objects are positioned based on their center.\r\n * Setting the value to 0 means the position now relates to the left of the Game Object.\r\n * Set this value with `setOrigin()`.\r\n *\r\n * @name Phaser.GameObjects.Components.Origin#originX\r\n * @type {number}\r\n * @readonly\r\n * @default 0.5\r\n * @since 3.0.0\r\n */\r\n originX: 0.5,\r\n\r\n /**\r\n * The vertical origin of this Game Object.\r\n * The origin maps the relationship between the size and position of the Game Object.\r\n * The default value is 0.5, meaning all Game Objects are positioned based on their center.\r\n * Setting the value to 0 means the position now relates to the top of the Game Object.\r\n * Set this value with `setOrigin()`.\r\n *\r\n * @name Phaser.GameObjects.Components.Origin#originY\r\n * @type {number}\r\n * @readonly\r\n * @default 0.5\r\n * @since 3.0.0\r\n */\r\n originY: 0.5,\r\n\r\n // private + read only\r\n _displayOriginX: 0,\r\n _displayOriginY: 0,\r\n\r\n /**\r\n * The horizontal display origin of this Game Object.\r\n * The origin is a normalized value between 0 and 1.\r\n * The displayOrigin is a pixel value, based on the size of the Game Object combined with the origin.\r\n *\r\n * @name Phaser.GameObjects.Components.Origin#displayOriginX\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n displayOriginX: {\r\n\r\n get: function ()\r\n {\r\n return this._displayOriginX;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._displayOriginX = value;\r\n this.originX = value / this.width;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The vertical display origin of this Game Object.\r\n * The origin is a normalized value between 0 and 1.\r\n * The displayOrigin is a pixel value, based on the size of the Game Object combined with the origin.\r\n *\r\n * @name Phaser.GameObjects.Components.Origin#displayOriginY\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n displayOriginY: {\r\n\r\n get: function ()\r\n {\r\n return this._displayOriginY;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._displayOriginY = value;\r\n this.originY = value / this.height;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Sets the origin of this Game Object.\r\n *\r\n * The values are given in the range 0 to 1.\r\n *\r\n * @method Phaser.GameObjects.Components.Origin#setOrigin\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=0.5] - The horizontal origin value.\r\n * @param {number} [y=x] - The vertical origin value. If not defined it will be set to the value of `x`.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setOrigin: function (x, y)\r\n {\r\n if (x === undefined) { x = 0.5; }\r\n if (y === undefined) { y = x; }\r\n\r\n this.originX = x;\r\n this.originY = y;\r\n\r\n return this.updateDisplayOrigin();\r\n },\r\n\r\n /**\r\n * Sets the origin of this Game Object based on the Pivot values in its Frame.\r\n *\r\n * @method Phaser.GameObjects.Components.Origin#setOriginFromFrame\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setOriginFromFrame: function ()\r\n {\r\n if (!this.frame || !this.frame.customPivot)\r\n {\r\n return this.setOrigin();\r\n }\r\n else\r\n {\r\n this.originX = this.frame.pivotX;\r\n this.originY = this.frame.pivotY;\r\n }\r\n\r\n return this.updateDisplayOrigin();\r\n },\r\n\r\n /**\r\n * Sets the display origin of this Game Object.\r\n * The difference between this and setting the origin is that you can use pixel values for setting the display origin.\r\n *\r\n * @method Phaser.GameObjects.Components.Origin#setDisplayOrigin\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=0] - The horizontal display origin value.\r\n * @param {number} [y=x] - The vertical display origin value. If not defined it will be set to the value of `x`.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setDisplayOrigin: function (x, y)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = x; }\r\n\r\n this.displayOriginX = x;\r\n this.displayOriginY = y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Updates the Display Origin cached values internally stored on this Game Object.\r\n * You don't usually call this directly, but it is exposed for edge-cases where you may.\r\n *\r\n * @method Phaser.GameObjects.Components.Origin#updateDisplayOrigin\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n updateDisplayOrigin: function ()\r\n {\r\n this._displayOriginX = this.originX * this.width;\r\n this._displayOriginY = this.originY * this.height;\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Origin;\r\n\n\n/***/ }),\n\n/***/ 37640:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar DegToRad = __webpack_require__(39506);\r\nvar GetBoolean = __webpack_require__(57355);\r\nvar GetValue = __webpack_require__(35154);\r\nvar TWEEN_CONST = __webpack_require__(86353);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * Provides methods used for managing a Game Object following a Path.\r\n * Should be applied as a mixin and not used directly.\r\n *\r\n * @namespace Phaser.GameObjects.Components.PathFollower\r\n * @since 3.17.0\r\n */\r\n\r\nvar PathFollower = {\r\n\r\n /**\r\n * The Path this PathFollower is following. It can only follow one Path at a time.\r\n *\r\n * @name Phaser.GameObjects.Components.PathFollower#path\r\n * @type {Phaser.Curves.Path}\r\n * @since 3.0.0\r\n */\r\n path: null,\r\n\r\n /**\r\n * Should the PathFollower automatically rotate to point in the direction of the Path?\r\n *\r\n * @name Phaser.GameObjects.Components.PathFollower#rotateToPath\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n rotateToPath: false,\r\n\r\n /**\r\n * If the PathFollower is rotating to match the Path (@see Phaser.GameObjects.PathFollower#rotateToPath)\r\n * this value is added to the rotation value. This allows you to rotate objects to a path but control\r\n * the angle of the rotation as well.\r\n *\r\n * @name Phaser.GameObjects.PathFollower#pathRotationOffset\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n pathRotationOffset: 0,\r\n\r\n /**\r\n * An additional vector to add to the PathFollowers position, allowing you to offset it from the\r\n * Path coordinates.\r\n *\r\n * @name Phaser.GameObjects.PathFollower#pathOffset\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n pathOffset: null,\r\n\r\n /**\r\n * A Vector2 that stores the current point of the path the follower is on.\r\n *\r\n * @name Phaser.GameObjects.PathFollower#pathVector\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n pathVector: null,\r\n\r\n /**\r\n * The distance the follower has traveled from the previous point to the current one, at the last update.\r\n *\r\n * @name Phaser.GameObjects.PathFollower#pathDelta\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.23.0\r\n */\r\n pathDelta: null,\r\n\r\n /**\r\n * The Tween used for following the Path.\r\n *\r\n * @name Phaser.GameObjects.PathFollower#pathTween\r\n * @type {Phaser.Tweens.Tween}\r\n * @since 3.0.0\r\n */\r\n pathTween: null,\r\n\r\n /**\r\n * Settings for the PathFollower.\r\n *\r\n * @name Phaser.GameObjects.PathFollower#pathConfig\r\n * @type {?Phaser.Types.GameObjects.PathFollower.PathConfig}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n pathConfig: null,\r\n\r\n /**\r\n * Records the direction of the follower so it can change direction.\r\n *\r\n * @name Phaser.GameObjects.PathFollower#_prevDirection\r\n * @type {number}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n _prevDirection: TWEEN_CONST.PLAYING_FORWARD,\r\n\r\n /**\r\n * Set the Path that this PathFollower should follow.\r\n *\r\n * Optionally accepts {@link Phaser.Types.GameObjects.PathFollower.PathConfig} settings.\r\n *\r\n * @method Phaser.GameObjects.Components.PathFollower#setPath\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Curves.Path} path - The Path this PathFollower is following. It can only follow one Path at a time.\r\n * @param {(number|Phaser.Types.GameObjects.PathFollower.PathConfig|Phaser.Types.Tweens.NumberTweenBuilderConfig)} [config] - Settings for the PathFollower.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setPath: function (path, config)\r\n {\r\n if (config === undefined) { config = this.pathConfig; }\r\n\r\n var tween = this.pathTween;\r\n\r\n if (tween && tween.isPlaying())\r\n {\r\n tween.stop();\r\n }\r\n\r\n this.path = path;\r\n\r\n if (config)\r\n {\r\n this.startFollow(config);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set whether the PathFollower should automatically rotate to point in the direction of the Path.\r\n *\r\n * @method Phaser.GameObjects.Components.PathFollower#setRotateToPath\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} value - Whether the PathFollower should automatically rotate to point in the direction of the Path.\r\n * @param {number} [offset=0] - Rotation offset in degrees.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setRotateToPath: function (value, offset)\r\n {\r\n if (offset === undefined) { offset = 0; }\r\n\r\n this.rotateToPath = value;\r\n\r\n this.pathRotationOffset = offset;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Is this PathFollower actively following a Path or not?\r\n *\r\n * To be considered as `isFollowing` it must be currently moving on a Path, and not paused.\r\n *\r\n * @method Phaser.GameObjects.Components.PathFollower#isFollowing\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} `true` is this PathFollower is actively following a Path, otherwise `false`.\r\n */\r\n isFollowing: function ()\r\n {\r\n var tween = this.pathTween;\r\n\r\n return (tween && tween.isPlaying());\r\n },\r\n\r\n /**\r\n * Starts this PathFollower following its given Path.\r\n *\r\n * @method Phaser.GameObjects.Components.PathFollower#startFollow\r\n * @since 3.3.0\r\n *\r\n * @param {(number|Phaser.Types.GameObjects.PathFollower.PathConfig|Phaser.Types.Tweens.NumberTweenBuilderConfig)} [config={}] - The duration of the follow, or a PathFollower config object.\r\n * @param {number} [startAt=0] - Optional start position of the follow, between 0 and 1.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n startFollow: function (config, startAt)\r\n {\r\n if (config === undefined) { config = {}; }\r\n if (startAt === undefined) { startAt = 0; }\r\n\r\n var tween = this.pathTween;\r\n\r\n if (tween && tween.isPlaying())\r\n {\r\n tween.stop();\r\n }\r\n\r\n if (typeof config === 'number')\r\n {\r\n config = { duration: config };\r\n }\r\n\r\n // Override in case they've been specified in the config\r\n config.from = GetValue(config, 'from', 0);\r\n config.to = GetValue(config, 'to', 1);\r\n\r\n var positionOnPath = GetBoolean(config, 'positionOnPath', false);\r\n\r\n this.rotateToPath = GetBoolean(config, 'rotateToPath', false);\r\n this.pathRotationOffset = GetValue(config, 'rotationOffset', 0);\r\n\r\n // This works, but it's not an ideal way of doing it as the follower jumps position\r\n var seek = GetValue(config, 'startAt', startAt);\r\n\r\n if (seek)\r\n {\r\n config.onStart = function (tween)\r\n {\r\n var tweenData = tween.data[0];\r\n tweenData.progress = seek;\r\n tweenData.elapsed = tweenData.duration * seek;\r\n var v = tweenData.ease(tweenData.progress);\r\n tweenData.current = tweenData.start + ((tweenData.end - tweenData.start) * v);\r\n tweenData.setTargetValue();\r\n };\r\n }\r\n\r\n if (!this.pathOffset)\r\n {\r\n this.pathOffset = new Vector2(this.x, this.y);\r\n }\r\n\r\n if (!this.pathVector)\r\n {\r\n this.pathVector = new Vector2();\r\n }\r\n\r\n if (!this.pathDelta)\r\n {\r\n this.pathDelta = new Vector2();\r\n }\r\n\r\n this.pathDelta.reset();\r\n\r\n config.persist = true;\r\n\r\n this.pathTween = this.scene.sys.tweens.addCounter(config);\r\n\r\n // The starting point of the path, relative to this follower\r\n this.path.getStartPoint(this.pathOffset);\r\n\r\n if (positionOnPath)\r\n {\r\n this.x = this.pathOffset.x;\r\n this.y = this.pathOffset.y;\r\n }\r\n\r\n this.pathOffset.x = this.x - this.pathOffset.x;\r\n this.pathOffset.y = this.y - this.pathOffset.y;\r\n\r\n this._prevDirection = TWEEN_CONST.PLAYING_FORWARD;\r\n\r\n if (this.rotateToPath)\r\n {\r\n // Set the rotation now (in case the tween has a delay on it, etc)\r\n var nextPoint = this.path.getPoint(0.1);\r\n\r\n this.rotation = Math.atan2(nextPoint.y - this.y, nextPoint.x - this.x) + DegToRad(this.pathRotationOffset);\r\n }\r\n\r\n this.pathConfig = config;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Pauses this PathFollower. It will still continue to render, but it will remain motionless at the\r\n * point on the Path at which you paused it.\r\n *\r\n * @method Phaser.GameObjects.Components.PathFollower#pauseFollow\r\n * @since 3.3.0\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n pauseFollow: function ()\r\n {\r\n var tween = this.pathTween;\r\n\r\n if (tween && tween.isPlaying())\r\n {\r\n tween.pause();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resumes a previously paused PathFollower.\r\n *\r\n * If the PathFollower was not paused this has no effect.\r\n *\r\n * @method Phaser.GameObjects.Components.PathFollower#resumeFollow\r\n * @since 3.3.0\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n resumeFollow: function ()\r\n {\r\n var tween = this.pathTween;\r\n\r\n if (tween && tween.isPaused())\r\n {\r\n tween.resume();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Stops this PathFollower from following the path any longer.\r\n *\r\n * This will invoke any 'stop' conditions that may exist on the Path, or for the follower.\r\n *\r\n * @method Phaser.GameObjects.Components.PathFollower#stopFollow\r\n * @since 3.3.0\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n stopFollow: function ()\r\n {\r\n var tween = this.pathTween;\r\n\r\n if (tween && tween.isPlaying())\r\n {\r\n tween.stop();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal update handler that advances this PathFollower along the path.\r\n *\r\n * Called automatically by the Scene step, should not typically be called directly.\r\n *\r\n * @method Phaser.GameObjects.Components.PathFollower#pathUpdate\r\n * @since 3.17.0\r\n */\r\n pathUpdate: function ()\r\n {\r\n var tween = this.pathTween;\r\n\r\n if (tween && tween.data)\r\n {\r\n var tweenData = tween.data[0];\r\n var pathDelta = this.pathDelta;\r\n var pathVector = this.pathVector;\r\n\r\n pathDelta.copy(pathVector).negate();\r\n\r\n if (tweenData.state === TWEEN_CONST.COMPLETE)\r\n {\r\n this.path.getPoint(tweenData.end, pathVector);\r\n\r\n pathDelta.add(pathVector);\r\n pathVector.add(this.pathOffset);\r\n\r\n this.setPosition(pathVector.x, pathVector.y);\r\n\r\n return;\r\n }\r\n else if (tweenData.state !== TWEEN_CONST.PLAYING_FORWARD && tweenData.state !== TWEEN_CONST.PLAYING_BACKWARD)\r\n {\r\n // If delayed, etc then bail out\r\n return;\r\n }\r\n\r\n this.path.getPoint(tween.getValue(), pathVector);\r\n\r\n pathDelta.add(pathVector);\r\n pathVector.add(this.pathOffset);\r\n\r\n var oldX = this.x;\r\n var oldY = this.y;\r\n\r\n this.setPosition(pathVector.x, pathVector.y);\r\n\r\n var speedX = this.x - oldX;\r\n var speedY = this.y - oldY;\r\n\r\n if (speedX === 0 && speedY === 0)\r\n {\r\n // Bail out early\r\n return;\r\n }\r\n\r\n if (tweenData.state !== this._prevDirection)\r\n {\r\n // We've changed direction, so don't do a rotate this frame\r\n this._prevDirection = tweenData.state;\r\n\r\n return;\r\n }\r\n\r\n if (this.rotateToPath)\r\n {\r\n this.rotation = Math.atan2(speedY, speedX) + DegToRad(this.pathRotationOffset);\r\n }\r\n }\r\n }\r\n\r\n};\r\n\r\nmodule.exports = PathFollower;\r\n\n\n/***/ }),\n\n/***/ 72699:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar DeepCopy = __webpack_require__(62644);\r\n\r\n/**\r\n * Provides methods used for setting the WebGL rendering pipeline of a Game Object.\r\n *\r\n * @namespace Phaser.GameObjects.Components.Pipeline\r\n * @webglOnly\r\n * @since 3.0.0\r\n */\r\n\r\nvar Pipeline = {\r\n\r\n /**\r\n * The initial WebGL pipeline of this Game Object.\r\n *\r\n * If you call `resetPipeline` on this Game Object, the pipeline is reset to this default.\r\n *\r\n * @name Phaser.GameObjects.Components.Pipeline#defaultPipeline\r\n * @type {Phaser.Renderer.WebGL.WebGLPipeline}\r\n * @default null\r\n * @webglOnly\r\n * @since 3.0.0\r\n */\r\n defaultPipeline: null,\r\n\r\n /**\r\n * The current WebGL pipeline of this Game Object.\r\n *\r\n * @name Phaser.GameObjects.Components.Pipeline#pipeline\r\n * @type {Phaser.Renderer.WebGL.WebGLPipeline}\r\n * @default null\r\n * @webglOnly\r\n * @since 3.0.0\r\n */\r\n pipeline: null,\r\n\r\n /**\r\n * An object to store pipeline specific data in, to be read by the pipelines this Game Object uses.\r\n *\r\n * @name Phaser.GameObjects.Components.Pipeline#pipelineData\r\n * @type {object}\r\n * @webglOnly\r\n * @since 3.50.0\r\n */\r\n pipelineData: null,\r\n\r\n /**\r\n * Sets the initial WebGL Pipeline of this Game Object.\r\n *\r\n * This should only be called during the instantiation of the Game Object. After that, use `setPipeline`.\r\n *\r\n * @method Phaser.GameObjects.Components.Pipeline#initPipeline\r\n * @webglOnly\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Renderer.WebGL.WebGLPipeline)} [pipeline] - Either the string-based name of the pipeline, or a pipeline instance to set.\r\n *\r\n * @return {boolean} `true` if the pipeline was set successfully, otherwise `false`.\r\n */\r\n initPipeline: function (pipeline)\r\n {\r\n this.pipelineData = {};\r\n\r\n var renderer = this.scene.sys.renderer;\r\n\r\n if (!renderer)\r\n {\r\n return false;\r\n }\r\n\r\n var pipelines = renderer.pipelines;\r\n\r\n if (pipelines)\r\n {\r\n if (pipeline === undefined)\r\n {\r\n pipeline = pipelines.default;\r\n }\r\n\r\n var instance = pipelines.get(pipeline);\r\n\r\n if (instance)\r\n {\r\n this.defaultPipeline = instance;\r\n this.pipeline = instance;\r\n\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Sets the main WebGL Pipeline of this Game Object.\r\n *\r\n * Also sets the `pipelineData` property, if the parameter is given.\r\n *\r\n * @method Phaser.GameObjects.Components.Pipeline#setPipeline\r\n * @webglOnly\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Renderer.WebGL.WebGLPipeline)} pipeline - Either the string-based name of the pipeline, or a pipeline instance to set.\r\n * @param {object} [pipelineData] - Optional pipeline data object that is set in to the `pipelineData` property of this Game Object.\r\n * @param {boolean} [copyData=true] - Should the pipeline data object be _deep copied_ into the `pipelineData` property of this Game Object? If `false` it will be set by reference instead.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setPipeline: function (pipeline, pipelineData, copyData)\r\n {\r\n var renderer = this.scene.sys.renderer;\r\n\r\n if (!renderer)\r\n {\r\n return this;\r\n }\r\n\r\n var pipelines = renderer.pipelines;\r\n\r\n if (pipelines)\r\n {\r\n var instance = pipelines.get(pipeline);\r\n\r\n if (instance)\r\n {\r\n this.pipeline = instance;\r\n }\r\n\r\n if (pipelineData)\r\n {\r\n this.pipelineData = (copyData) ? DeepCopy(pipelineData) : pipelineData;\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds an entry to the `pipelineData` object belonging to this Game Object.\r\n *\r\n * If the 'key' already exists, its value is updated. If it doesn't exist, it is created.\r\n *\r\n * If `value` is undefined, and `key` exists, `key` is removed from the data object.\r\n *\r\n * @method Phaser.GameObjects.Components.Pipeline#setPipelineData\r\n * @webglOnly\r\n * @since 3.50.0\r\n *\r\n * @param {string} key - The key of the pipeline data to set, update, or delete.\r\n * @param {any} [value] - The value to be set with the key. If `undefined` then `key` will be deleted from the object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setPipelineData: function (key, value)\r\n {\r\n var data = this.pipelineData;\r\n\r\n if (value === undefined)\r\n {\r\n delete data[key];\r\n }\r\n else\r\n {\r\n data[key] = value;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resets the WebGL Pipeline of this Game Object back to the default it was created with.\r\n *\r\n * @method Phaser.GameObjects.Components.Pipeline#resetPipeline\r\n * @webglOnly\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [resetData=false] - Reset the `pipelineData` object to being an empty object?\r\n *\r\n * @return {boolean} `true` if the pipeline was reset successfully, otherwise `false`.\r\n */\r\n resetPipeline: function (resetData)\r\n {\r\n if (resetData === undefined) { resetData = false; }\r\n\r\n this.pipeline = this.defaultPipeline;\r\n\r\n if (resetData)\r\n {\r\n this.pipelineData = {};\r\n }\r\n\r\n return (this.pipeline !== null);\r\n },\r\n\r\n /**\r\n * Gets the name of the WebGL Pipeline this Game Object is currently using.\r\n *\r\n * @method Phaser.GameObjects.Components.Pipeline#getPipelineName\r\n * @webglOnly\r\n * @since 3.0.0\r\n *\r\n * @return {?string} The string-based name of the pipeline being used by this Game Object, or null.\r\n */\r\n getPipelineName: function ()\r\n {\r\n return (this.pipeline === null) ? null : this.pipeline.name;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Pipeline;\r\n\n\n/***/ }),\n\n/***/ 17581:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar DeepCopy = __webpack_require__(62644);\r\nvar FX = __webpack_require__(47059);\r\nvar SpliceOne = __webpack_require__(19133);\r\n\r\n/**\r\n * Provides methods used for setting the WebGL rendering post pipeline of a Game Object.\r\n *\r\n * @namespace Phaser.GameObjects.Components.PostPipeline\r\n * @webglOnly\r\n * @since 3.60.0\r\n */\r\n\r\nvar PostPipeline = {\r\n\r\n /**\r\n * Does this Game Object have any Post Pipelines set?\r\n *\r\n * @name Phaser.GameObjects.Components.PostPipeline#hasPostPipeline\r\n * @type {boolean}\r\n * @webglOnly\r\n * @since 3.60.0\r\n */\r\n hasPostPipeline: false,\r\n\r\n /**\r\n * The WebGL Post FX Pipelines this Game Object uses for post-render effects.\r\n *\r\n * The pipelines are processed in the order in which they appear in this array.\r\n *\r\n * If you modify this array directly, be sure to set the\r\n * `hasPostPipeline` property accordingly.\r\n *\r\n * @name Phaser.GameObjects.Components.PostPipeline#postPipelines\r\n * @type {Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[]}\r\n * @webglOnly\r\n * @since 3.60.0\r\n */\r\n postPipelines: null,\r\n\r\n /**\r\n * An object to store pipeline specific data in, to be read by the pipelines this Game Object uses.\r\n *\r\n * @name Phaser.GameObjects.Components.PostPipeline#postPipelineData\r\n * @type {object}\r\n * @webglOnly\r\n * @since 3.60.0\r\n */\r\n postPipelineData: null,\r\n\r\n /**\r\n * The Pre FX component of this Game Object.\r\n *\r\n * This component allows you to apply a variety of built-in effects to this Game Object, such\r\n * as glow, blur, bloom, displacements, vignettes and more. You access them via this property,\r\n * for example:\r\n *\r\n * ```js\r\n * const player = this.add.sprite();\r\n * player.preFX.addBloom();\r\n * ```\r\n *\r\n * Only the following Game Objects support Pre FX:\r\n *\r\n * * Image\r\n * * Sprite\r\n * * TileSprite\r\n * * Text\r\n * * RenderTexture\r\n * * Video\r\n *\r\n * All FX are WebGL only and do not have Canvas counterparts.\r\n *\r\n * Please see the FX Class for more details and available methods.\r\n *\r\n * @name Phaser.GameObjects.Components.PostPipeline#preFX\r\n * @type {?Phaser.GameObjects.Components.FX}\r\n * @webglOnly\r\n * @since 3.60.0\r\n */\r\n preFX: null,\r\n\r\n /**\r\n * The Post FX component of this Game Object.\r\n *\r\n * This component allows you to apply a variety of built-in effects to this Game Object, such\r\n * as glow, blur, bloom, displacements, vignettes and more. You access them via this property,\r\n * for example:\r\n *\r\n * ```js\r\n * const player = this.add.sprite();\r\n * player.postFX.addBloom();\r\n * ```\r\n *\r\n * All FX are WebGL only and do not have Canvas counterparts.\r\n *\r\n * Please see the FX Class for more details and available methods.\r\n *\r\n * This property is always `null` until the `initPostPipeline` method is called.\r\n *\r\n * @name Phaser.GameObjects.Components.PostPipeline#postFX\r\n * @type {Phaser.GameObjects.Components.FX}\r\n * @webglOnly\r\n * @since 3.60.0\r\n */\r\n postFX: null,\r\n\r\n /**\r\n * This should only be called during the instantiation of the Game Object.\r\n *\r\n * It is called by default by all core Game Objects and doesn't need\r\n * calling again.\r\n *\r\n * After that, use `setPostPipeline`.\r\n *\r\n * @method Phaser.GameObjects.Components.PostPipeline#initPostPipeline\r\n * @webglOnly\r\n * @since 3.60.0\r\n *\r\n * @param {boolean} [preFX=false] - Does this Game Object support Pre FX?\r\n */\r\n initPostPipeline: function (preFX)\r\n {\r\n this.postPipelines = [];\r\n this.postPipelineData = {};\r\n\r\n this.postFX = new FX(this, true);\r\n\r\n if (preFX)\r\n {\r\n this.preFX = new FX(this, false);\r\n }\r\n },\r\n\r\n /**\r\n * Sets one, or more, Post Pipelines on this Game Object.\r\n *\r\n * Post Pipelines are invoked after this Game Object has rendered to its target and\r\n * are commonly used for post-fx.\r\n *\r\n * The post pipelines are appended to the `postPipelines` array belonging to this\r\n * Game Object. When the renderer processes this Game Object, it iterates through the post\r\n * pipelines in the order in which they appear in the array. If you are stacking together\r\n * multiple effects, be aware that the order is important.\r\n *\r\n * If you call this method multiple times, the new pipelines will be appended to any existing\r\n * post pipelines already set. Use the `resetPostPipeline` method to clear them first, if required.\r\n *\r\n * You can optionally also set the `postPipelineData` property, if the parameter is given.\r\n *\r\n * @method Phaser.GameObjects.Components.PostPipeline#setPostPipeline\r\n * @webglOnly\r\n * @since 3.60.0\r\n *\r\n * @param {(string|string[]|function|function[]|Phaser.Renderer.WebGL.Pipelines.PostFXPipeline|Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[])} pipelines - Either the string-based name of the pipeline, or a pipeline instance, or class, or an array of them.\r\n * @param {object} [pipelineData] - Optional pipeline data object that is set in to the `postPipelineData` property of this Game Object.\r\n * @param {boolean} [copyData=true] - Should the pipeline data object be _deep copied_ into the `postPipelineData` property of this Game Object? If `false` it will be set by reference instead.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setPostPipeline: function (pipelines, pipelineData, copyData)\r\n {\r\n var renderer = this.scene.sys.renderer;\r\n\r\n if (!renderer)\r\n {\r\n return this;\r\n }\r\n\r\n var pipelineManager = renderer.pipelines;\r\n\r\n if (pipelineManager)\r\n {\r\n if (!Array.isArray(pipelines))\r\n {\r\n pipelines = [ pipelines ];\r\n }\r\n\r\n for (var i = 0; i < pipelines.length; i++)\r\n {\r\n var instance = pipelineManager.getPostPipeline(pipelines[i], this, pipelineData);\r\n\r\n if (instance)\r\n {\r\n this.postPipelines.push(instance);\r\n }\r\n }\r\n\r\n if (pipelineData)\r\n {\r\n this.postPipelineData = (copyData) ? DeepCopy(pipelineData) : pipelineData;\r\n }\r\n }\r\n\r\n this.hasPostPipeline = (this.postPipelines.length > 0);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds an entry to the `postPipelineData` object belonging to this Game Object.\r\n *\r\n * If the 'key' already exists, its value is updated. If it doesn't exist, it is created.\r\n *\r\n * If `value` is undefined, and `key` exists, `key` is removed from the data object.\r\n *\r\n * @method Phaser.GameObjects.Components.PostPipeline#setPostPipelineData\r\n * @webglOnly\r\n * @since 3.60.0\r\n *\r\n * @param {string} key - The key of the pipeline data to set, update, or delete.\r\n * @param {any} [value] - The value to be set with the key. If `undefined` then `key` will be deleted from the object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setPostPipelineData: function (key, value)\r\n {\r\n var data = this.postPipelineData;\r\n\r\n if (value === undefined)\r\n {\r\n delete data[key];\r\n }\r\n else\r\n {\r\n data[key] = value;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Gets a Post Pipeline instance from this Game Object, based on the given name, and returns it.\r\n *\r\n * @method Phaser.GameObjects.Components.PostPipeline#getPostPipeline\r\n * @webglOnly\r\n * @since 3.60.0\r\n *\r\n * @param {(string|function|Phaser.Renderer.WebGL.Pipelines.PostFXPipeline)} pipeline - The string-based name of the pipeline, or a pipeline class.\r\n *\r\n * @return {(Phaser.Renderer.WebGL.Pipelines.PostFXPipeline|Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[])} An array of all the Post Pipelines matching the name. This array will be empty if there was no match. If there was only one single match, that pipeline is returned directly, not in an array.\r\n */\r\n getPostPipeline: function (pipeline)\r\n {\r\n var isString = (typeof pipeline === 'string');\r\n\r\n var pipelines = this.postPipelines;\r\n\r\n var results = [];\r\n\r\n for (var i = 0; i < pipelines.length; i++)\r\n {\r\n var instance = pipelines[i];\r\n\r\n if ((isString && instance.name === pipeline) || (!isString && instance instanceof pipeline))\r\n {\r\n results.push(instance);\r\n }\r\n }\r\n\r\n return (results.length === 1) ? results[0] : results;\r\n },\r\n\r\n /**\r\n * Resets the WebGL Post Pipelines of this Game Object. It does this by calling\r\n * the `destroy` method on each post pipeline and then clearing the local array.\r\n *\r\n * @method Phaser.GameObjects.Components.PostPipeline#resetPostPipeline\r\n * @webglOnly\r\n * @since 3.60.0\r\n *\r\n * @param {boolean} [resetData=false] - Reset the `postPipelineData` object to being an empty object?\r\n */\r\n resetPostPipeline: function (resetData)\r\n {\r\n if (resetData === undefined) { resetData = false; }\r\n\r\n var pipelines = this.postPipelines;\r\n\r\n for (var i = 0; i < pipelines.length; i++)\r\n {\r\n pipelines[i].destroy();\r\n }\r\n\r\n this.postPipelines = [];\r\n this.hasPostPipeline = false;\r\n\r\n if (resetData)\r\n {\r\n this.postPipelineData = {};\r\n }\r\n },\r\n\r\n /**\r\n * Removes a type of Post Pipeline instances from this Game Object, based on the given name, and destroys them.\r\n *\r\n * If you wish to remove all Post Pipelines use the `resetPostPipeline` method instead.\r\n *\r\n * @method Phaser.GameObjects.Components.PostPipeline#removePostPipeline\r\n * @webglOnly\r\n * @since 3.60.0\r\n *\r\n * @param {string|Phaser.Renderer.WebGL.Pipelines.PostFXPipeline} pipeline - The string-based name of the pipeline, or a pipeline class.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n removePostPipeline: function (pipeline)\r\n {\r\n var isString = (typeof pipeline === 'string');\r\n\r\n var pipelines = this.postPipelines;\r\n\r\n for (var i = pipelines.length - 1; i >= 0; i--)\r\n {\r\n var instance = pipelines[i];\r\n\r\n if (\r\n (isString && instance.name === pipeline) ||\r\n (!isString && instance === pipeline))\r\n {\r\n instance.destroy();\r\n\r\n SpliceOne(pipelines, i);\r\n }\r\n }\r\n\r\n this.hasPostPipeline = (this.postPipelines.length > 0);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes all Pre and Post FX Controllers from this Game Object.\r\n *\r\n * If you wish to remove a single controller, use the `preFX.remove(fx)` or `postFX.remove(fx)` methods instead.\r\n *\r\n * If you wish to clear a single controller, use the `preFX.clear()` or `postFX.clear()` methods instead.\r\n *\r\n * @method Phaser.GameObjects.Components.PostPipeline#clearFX\r\n * @webglOnly\r\n * @since 3.60.0\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n clearFX: function ()\r\n {\r\n if (this.preFX)\r\n {\r\n this.preFX.clear();\r\n }\r\n\r\n if (this.postFX)\r\n {\r\n this.postFX.clear();\r\n }\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = PostPipeline;\r\n\n\n/***/ }),\n\n/***/ 80227:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Provides methods used for getting and setting the Scroll Factor of a Game Object.\r\n *\r\n * @namespace Phaser.GameObjects.Components.ScrollFactor\r\n * @since 3.0.0\r\n */\r\n\r\nvar ScrollFactor = {\r\n\r\n /**\r\n * The horizontal scroll factor of this Game Object.\r\n *\r\n * The scroll factor controls the influence of the movement of a Camera upon this Game Object.\r\n *\r\n * When a camera scrolls it will change the location at which this Game Object is rendered on-screen.\r\n * It does not change the Game Objects actual position values.\r\n *\r\n * A value of 1 means it will move exactly in sync with a camera.\r\n * A value of 0 means it will not move at all, even if the camera moves.\r\n * Other values control the degree to which the camera movement is mapped to this Game Object.\r\n *\r\n * Please be aware that scroll factor values other than 1 are not taken in to consideration when\r\n * calculating physics collisions. Bodies always collide based on their world position, but changing\r\n * the scroll factor is a visual adjustment to where the textures are rendered, which can offset\r\n * them from physics bodies if not accounted for in your code.\r\n *\r\n * @name Phaser.GameObjects.Components.ScrollFactor#scrollFactorX\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n scrollFactorX: 1,\r\n\r\n /**\r\n * The vertical scroll factor of this Game Object.\r\n *\r\n * The scroll factor controls the influence of the movement of a Camera upon this Game Object.\r\n *\r\n * When a camera scrolls it will change the location at which this Game Object is rendered on-screen.\r\n * It does not change the Game Objects actual position values.\r\n *\r\n * A value of 1 means it will move exactly in sync with a camera.\r\n * A value of 0 means it will not move at all, even if the camera moves.\r\n * Other values control the degree to which the camera movement is mapped to this Game Object.\r\n *\r\n * Please be aware that scroll factor values other than 1 are not taken in to consideration when\r\n * calculating physics collisions. Bodies always collide based on their world position, but changing\r\n * the scroll factor is a visual adjustment to where the textures are rendered, which can offset\r\n * them from physics bodies if not accounted for in your code.\r\n *\r\n * @name Phaser.GameObjects.Components.ScrollFactor#scrollFactorY\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n scrollFactorY: 1,\r\n\r\n /**\r\n * Sets the scroll factor of this Game Object.\r\n *\r\n * The scroll factor controls the influence of the movement of a Camera upon this Game Object.\r\n *\r\n * When a camera scrolls it will change the location at which this Game Object is rendered on-screen.\r\n * It does not change the Game Objects actual position values.\r\n *\r\n * A value of 1 means it will move exactly in sync with a camera.\r\n * A value of 0 means it will not move at all, even if the camera moves.\r\n * Other values control the degree to which the camera movement is mapped to this Game Object.\r\n *\r\n * Please be aware that scroll factor values other than 1 are not taken in to consideration when\r\n * calculating physics collisions. Bodies always collide based on their world position, but changing\r\n * the scroll factor is a visual adjustment to where the textures are rendered, which can offset\r\n * them from physics bodies if not accounted for in your code.\r\n *\r\n * @method Phaser.GameObjects.Components.ScrollFactor#setScrollFactor\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal scroll factor of this Game Object.\r\n * @param {number} [y=x] - The vertical scroll factor of this Game Object. If not set it will use the `x` value.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setScrollFactor: function (x, y)\r\n {\r\n if (y === undefined) { y = x; }\r\n\r\n this.scrollFactorX = x;\r\n this.scrollFactorY = y;\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = ScrollFactor;\r\n\n\n/***/ }),\n\n/***/ 16736:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Provides methods used for getting and setting the size of a Game Object.\r\n *\r\n * @namespace Phaser.GameObjects.Components.Size\r\n * @since 3.0.0\r\n */\r\n\r\nvar Size = {\r\n\r\n /**\r\n * A property indicating that a Game Object has this component.\r\n *\r\n * @name Phaser.GameObjects.Components.Size#_sizeComponent\r\n * @type {boolean}\r\n * @private\r\n * @default true\r\n * @since 3.2.0\r\n */\r\n _sizeComponent: true,\r\n\r\n /**\r\n * The native (un-scaled) width of this Game Object.\r\n *\r\n * Changing this value will not change the size that the Game Object is rendered in-game.\r\n * For that you need to either set the scale of the Game Object (`setScale`) or use\r\n * the `displayWidth` property.\r\n *\r\n * @name Phaser.GameObjects.Components.Size#width\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n width: 0,\r\n\r\n /**\r\n * The native (un-scaled) height of this Game Object.\r\n *\r\n * Changing this value will not change the size that the Game Object is rendered in-game.\r\n * For that you need to either set the scale of the Game Object (`setScale`) or use\r\n * the `displayHeight` property.\r\n *\r\n * @name Phaser.GameObjects.Components.Size#height\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n height: 0,\r\n\r\n /**\r\n * The displayed width of this Game Object.\r\n *\r\n * This value takes into account the scale factor.\r\n *\r\n * Setting this value will adjust the Game Object's scale property.\r\n *\r\n * @name Phaser.GameObjects.Components.Size#displayWidth\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n displayWidth: {\r\n\r\n get: function ()\r\n {\r\n return Math.abs(this.scaleX * this.frame.realWidth);\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.scaleX = value / this.frame.realWidth;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The displayed height of this Game Object.\r\n *\r\n * This value takes into account the scale factor.\r\n *\r\n * Setting this value will adjust the Game Object's scale property.\r\n *\r\n * @name Phaser.GameObjects.Components.Size#displayHeight\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n displayHeight: {\r\n\r\n get: function ()\r\n {\r\n return Math.abs(this.scaleY * this.frame.realHeight);\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.scaleY = value / this.frame.realHeight;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Sets the size of this Game Object to be that of the given Frame.\r\n *\r\n * This will not change the size that the Game Object is rendered in-game.\r\n * For that you need to either set the scale of the Game Object (`setScale`) or call the\r\n * `setDisplaySize` method, which is the same thing as changing the scale but allows you\r\n * to do so by giving pixel values.\r\n *\r\n * If you have enabled this Game Object for input, changing the size will _not_ change the\r\n * size of the hit area. To do this you should adjust the `input.hitArea` object directly.\r\n *\r\n * @method Phaser.GameObjects.Components.Size#setSizeToFrame\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Textures.Frame|boolean} [frame] - The frame to base the size of this Game Object on.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setSizeToFrame: function (frame)\r\n {\r\n if (!frame) { frame = this.frame; }\r\n\r\n this.width = frame.realWidth;\r\n this.height = frame.realHeight;\r\n\r\n var input = this.input;\r\n\r\n if (input && !input.customHitArea)\r\n {\r\n input.hitArea.width = this.width;\r\n input.hitArea.height = this.height;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the internal size of this Game Object, as used for frame or physics body creation.\r\n *\r\n * This will not change the size that the Game Object is rendered in-game.\r\n * For that you need to either set the scale of the Game Object (`setScale`) or call the\r\n * `setDisplaySize` method, which is the same thing as changing the scale but allows you\r\n * to do so by giving pixel values.\r\n *\r\n * If you have enabled this Game Object for input, changing the size will _not_ change the\r\n * size of the hit area. To do this you should adjust the `input.hitArea` object directly.\r\n *\r\n * @method Phaser.GameObjects.Components.Size#setSize\r\n * @since 3.0.0\r\n *\r\n * @param {number} width - The width of this Game Object.\r\n * @param {number} height - The height of this Game Object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setSize: function (width, height)\r\n {\r\n this.width = width;\r\n this.height = height;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the display size of this Game Object.\r\n *\r\n * Calling this will adjust the scale.\r\n *\r\n * @method Phaser.GameObjects.Components.Size#setDisplaySize\r\n * @since 3.0.0\r\n *\r\n * @param {number} width - The width of this Game Object.\r\n * @param {number} height - The height of this Game Object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setDisplaySize: function (width, height)\r\n {\r\n this.displayWidth = width;\r\n this.displayHeight = height;\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Size;\r\n\n\n/***/ }),\n\n/***/ 37726:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Frame = __webpack_require__(4327);\r\n\r\n// bitmask flag for GameObject.renderMask\r\nvar _FLAG = 8; // 1000\r\n\r\n/**\r\n * Provides methods used for getting and setting the texture of a Game Object.\r\n *\r\n * @namespace Phaser.GameObjects.Components.Texture\r\n * @since 3.0.0\r\n */\r\n\r\nvar Texture = {\r\n\r\n /**\r\n * The Texture this Game Object is using to render with.\r\n *\r\n * @name Phaser.GameObjects.Components.Texture#texture\r\n * @type {Phaser.Textures.Texture|Phaser.Textures.CanvasTexture}\r\n * @since 3.0.0\r\n */\r\n texture: null,\r\n\r\n /**\r\n * The Texture Frame this Game Object is using to render with.\r\n *\r\n * @name Phaser.GameObjects.Components.Texture#frame\r\n * @type {Phaser.Textures.Frame}\r\n * @since 3.0.0\r\n */\r\n frame: null,\r\n\r\n /**\r\n * Internal flag. Not to be set by this Game Object.\r\n *\r\n * @name Phaser.GameObjects.Components.Texture#isCropped\r\n * @type {boolean}\r\n * @private\r\n * @since 3.11.0\r\n */\r\n isCropped: false,\r\n\r\n /**\r\n * Sets the texture and frame this Game Object will use to render with.\r\n *\r\n * Textures are referenced by their string-based keys, as stored in the Texture Manager.\r\n *\r\n * Calling this method will modify the `width` and `height` properties of your Game Object.\r\n *\r\n * It will also change the `origin` if the Frame has a custom pivot point, as exported from packages like Texture Packer.\r\n *\r\n * @method Phaser.GameObjects.Components.Texture#setTexture\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Textures.Texture)} key - The key of the texture to be used, as stored in the Texture Manager, or a Texture instance.\r\n * @param {(string|number)} [frame] - The name or index of the frame within the Texture.\r\n * @param {boolean} [updateSize=true] - Should this call adjust the size of the Game Object?\r\n * @param {boolean} [updateOrigin=true] - Should this call change the origin of the Game Object?\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setTexture: function (key, frame, updateSize, updateOrigin)\r\n {\r\n this.texture = this.scene.sys.textures.get(key);\r\n\r\n return this.setFrame(frame, updateSize, updateOrigin);\r\n },\r\n\r\n /**\r\n * Sets the frame this Game Object will use to render with.\r\n *\r\n * If you pass a string or index then the Frame has to belong to the current Texture being used\r\n * by this Game Object.\r\n *\r\n * If you pass a Frame instance, then the Texture being used by this Game Object will also be updated.\r\n *\r\n * Calling `setFrame` will modify the `width` and `height` properties of your Game Object.\r\n *\r\n * It will also change the `origin` if the Frame has a custom pivot point, as exported from packages like Texture Packer.\r\n *\r\n * @method Phaser.GameObjects.Components.Texture#setFrame\r\n * @since 3.0.0\r\n *\r\n * @param {(string|number|Phaser.Textures.Frame)} frame - The name or index of the frame within the Texture, or a Frame instance.\r\n * @param {boolean} [updateSize=true] - Should this call adjust the size of the Game Object?\r\n * @param {boolean} [updateOrigin=true] - Should this call adjust the origin of the Game Object?\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setFrame: function (frame, updateSize, updateOrigin)\r\n {\r\n if (updateSize === undefined) { updateSize = true; }\r\n if (updateOrigin === undefined) { updateOrigin = true; }\r\n\r\n if (frame instanceof Frame)\r\n {\r\n this.texture = this.scene.sys.textures.get(frame.texture.key);\r\n\r\n this.frame = frame;\r\n }\r\n else\r\n {\r\n this.frame = this.texture.get(frame);\r\n }\r\n\r\n if (!this.frame.cutWidth || !this.frame.cutHeight)\r\n {\r\n this.renderFlags &= ~_FLAG;\r\n }\r\n else\r\n {\r\n this.renderFlags |= _FLAG;\r\n }\r\n\r\n if (this._sizeComponent && updateSize)\r\n {\r\n this.setSizeToFrame();\r\n }\r\n\r\n if (this._originComponent && updateOrigin)\r\n {\r\n if (this.frame.customPivot)\r\n {\r\n this.setOrigin(this.frame.pivotX, this.frame.pivotY);\r\n }\r\n else\r\n {\r\n this.updateDisplayOrigin();\r\n }\r\n }\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Texture;\r\n\n\n/***/ }),\n\n/***/ 79812:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Frame = __webpack_require__(4327);\r\n\r\n// bitmask flag for GameObject.renderMask\r\nvar _FLAG = 8; // 1000\r\n\r\n/**\r\n * Provides methods used for getting and setting the texture of a Game Object.\r\n *\r\n * @namespace Phaser.GameObjects.Components.TextureCrop\r\n * @since 3.0.0\r\n */\r\n\r\nvar TextureCrop = {\r\n\r\n /**\r\n * The Texture this Game Object is using to render with.\r\n *\r\n * @name Phaser.GameObjects.Components.TextureCrop#texture\r\n * @type {Phaser.Textures.Texture|Phaser.Textures.CanvasTexture}\r\n * @since 3.0.0\r\n */\r\n texture: null,\r\n\r\n /**\r\n * The Texture Frame this Game Object is using to render with.\r\n *\r\n * @name Phaser.GameObjects.Components.TextureCrop#frame\r\n * @type {Phaser.Textures.Frame}\r\n * @since 3.0.0\r\n */\r\n frame: null,\r\n\r\n /**\r\n * A boolean flag indicating if this Game Object is being cropped or not.\r\n * You can toggle this at any time after `setCrop` has been called, to turn cropping on or off.\r\n * Equally, calling `setCrop` with no arguments will reset the crop and disable it.\r\n *\r\n * @name Phaser.GameObjects.Components.TextureCrop#isCropped\r\n * @type {boolean}\r\n * @since 3.11.0\r\n */\r\n isCropped: false,\r\n\r\n /**\r\n * Applies a crop to a texture based Game Object, such as a Sprite or Image.\r\n *\r\n * The crop is a rectangle that limits the area of the texture frame that is visible during rendering.\r\n *\r\n * Cropping a Game Object does not change its size, dimensions, physics body or hit area, it just\r\n * changes what is shown when rendered.\r\n *\r\n * The crop size as well as coordinates can not exceed the the size of the texture frame.\r\n *\r\n * The crop coordinates are relative to the texture frame, not the Game Object, meaning 0 x 0 is the top-left.\r\n *\r\n * Therefore, if you had a Game Object that had an 800x600 sized texture, and you wanted to show only the left\r\n * half of it, you could call `setCrop(0, 0, 400, 600)`.\r\n *\r\n * It is also scaled to match the Game Object scale automatically. Therefore a crop rectangle of 100x50 would crop\r\n * an area of 200x100 when applied to a Game Object that had a scale factor of 2.\r\n *\r\n * You can either pass in numeric values directly, or you can provide a single Rectangle object as the first argument.\r\n *\r\n * Call this method with no arguments at all to reset the crop, or toggle the property `isCropped` to `false`.\r\n *\r\n * You should do this if the crop rectangle becomes the same size as the frame itself, as it will allow\r\n * the renderer to skip several internal calculations.\r\n *\r\n * @method Phaser.GameObjects.Components.TextureCrop#setCrop\r\n * @since 3.11.0\r\n *\r\n * @param {(number|Phaser.Geom.Rectangle)} [x] - The x coordinate to start the crop from. Cannot be negative or exceed the Frame width. Or a Phaser.Geom.Rectangle object, in which case the rest of the arguments are ignored.\r\n * @param {number} [y] - The y coordinate to start the crop from. Cannot be negative or exceed the Frame height.\r\n * @param {number} [width] - The width of the crop rectangle in pixels. Cannot exceed the Frame width.\r\n * @param {number} [height] - The height of the crop rectangle in pixels. Cannot exceed the Frame height.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setCrop: function (x, y, width, height)\r\n {\r\n if (x === undefined)\r\n {\r\n this.isCropped = false;\r\n }\r\n else if (this.frame)\r\n {\r\n if (typeof x === 'number')\r\n {\r\n this.frame.setCropUVs(this._crop, x, y, width, height, this.flipX, this.flipY);\r\n }\r\n else\r\n {\r\n var rect = x;\r\n\r\n this.frame.setCropUVs(this._crop, rect.x, rect.y, rect.width, rect.height, this.flipX, this.flipY);\r\n }\r\n\r\n this.isCropped = true;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the texture and frame this Game Object will use to render with.\r\n *\r\n * Textures are referenced by their string-based keys, as stored in the Texture Manager.\r\n *\r\n * @method Phaser.GameObjects.Components.TextureCrop#setTexture\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key of the texture to be used, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - The name or index of the frame within the Texture.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setTexture: function (key, frame)\r\n {\r\n this.texture = this.scene.sys.textures.get(key);\r\n\r\n return this.setFrame(frame);\r\n },\r\n\r\n /**\r\n * Sets the frame this Game Object will use to render with.\r\n *\r\n * If you pass a string or index then the Frame has to belong to the current Texture being used\r\n * by this Game Object.\r\n *\r\n * If you pass a Frame instance, then the Texture being used by this Game Object will also be updated.\r\n *\r\n * Calling `setFrame` will modify the `width` and `height` properties of your Game Object.\r\n *\r\n * It will also change the `origin` if the Frame has a custom pivot point, as exported from packages like Texture Packer.\r\n *\r\n * @method Phaser.GameObjects.Components.TextureCrop#setFrame\r\n * @since 3.0.0\r\n *\r\n * @param {(string|number|Phaser.Textures.Frame)} frame - The name or index of the frame within the Texture, or a Frame instance.\r\n * @param {boolean} [updateSize=true] - Should this call adjust the size of the Game Object?\r\n * @param {boolean} [updateOrigin=true] - Should this call adjust the origin of the Game Object?\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setFrame: function (frame, updateSize, updateOrigin)\r\n {\r\n if (updateSize === undefined) { updateSize = true; }\r\n if (updateOrigin === undefined) { updateOrigin = true; }\r\n\r\n if (frame instanceof Frame)\r\n {\r\n this.texture = this.scene.sys.textures.get(frame.texture.key);\r\n\r\n this.frame = frame;\r\n }\r\n else\r\n {\r\n this.frame = this.texture.get(frame);\r\n }\r\n\r\n if (!this.frame.cutWidth || !this.frame.cutHeight)\r\n {\r\n this.renderFlags &= ~_FLAG;\r\n }\r\n else\r\n {\r\n this.renderFlags |= _FLAG;\r\n }\r\n\r\n if (this._sizeComponent && updateSize)\r\n {\r\n this.setSizeToFrame();\r\n }\r\n\r\n if (this._originComponent && updateOrigin)\r\n {\r\n if (this.frame.customPivot)\r\n {\r\n this.setOrigin(this.frame.pivotX, this.frame.pivotY);\r\n }\r\n else\r\n {\r\n this.updateDisplayOrigin();\r\n }\r\n }\r\n\r\n if (this.isCropped)\r\n {\r\n this.frame.updateCropUVs(this._crop, this.flipX, this.flipY);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal method that returns a blank, well-formed crop object for use by a Game Object.\r\n *\r\n * @method Phaser.GameObjects.Components.TextureCrop#resetCropObject\r\n * @private\r\n * @since 3.12.0\r\n *\r\n * @return {object} The crop object.\r\n */\r\n resetCropObject: function ()\r\n {\r\n return { u0: 0, v0: 0, u1: 0, v1: 0, width: 0, height: 0, x: 0, y: 0, flipX: false, flipY: false, cx: 0, cy: 0, cw: 0, ch: 0 };\r\n }\r\n\r\n};\r\n\r\nmodule.exports = TextureCrop;\r\n\n\n/***/ }),\n\n/***/ 27472:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Provides methods used for setting the tint of a Game Object.\r\n * Should be applied as a mixin and not used directly.\r\n *\r\n * @namespace Phaser.GameObjects.Components.Tint\r\n * @webglOnly\r\n * @since 3.0.0\r\n */\r\n\r\nvar Tint = {\r\n\r\n /**\r\n * The tint value being applied to the top-left vertice of the Game Object.\r\n * This value is interpolated from the corner to the center of the Game Object.\r\n * The value should be set as a hex number, i.e. 0xff0000 for red, or 0xff00ff for purple.\r\n *\r\n * @name Phaser.GameObjects.Components.Tint#tintTopLeft\r\n * @type {number}\r\n * @default 0xffffff\r\n * @since 3.0.0\r\n */\r\n tintTopLeft: 0xffffff,\r\n\r\n /**\r\n * The tint value being applied to the top-right vertice of the Game Object.\r\n * This value is interpolated from the corner to the center of the Game Object.\r\n * The value should be set as a hex number, i.e. 0xff0000 for red, or 0xff00ff for purple.\r\n *\r\n * @name Phaser.GameObjects.Components.Tint#tintTopRight\r\n * @type {number}\r\n * @default 0xffffff\r\n * @since 3.0.0\r\n */\r\n tintTopRight: 0xffffff,\r\n\r\n /**\r\n * The tint value being applied to the bottom-left vertice of the Game Object.\r\n * This value is interpolated from the corner to the center of the Game Object.\r\n * The value should be set as a hex number, i.e. 0xff0000 for red, or 0xff00ff for purple.\r\n *\r\n * @name Phaser.GameObjects.Components.Tint#tintBottomLeft\r\n * @type {number}\r\n * @default 0xffffff\r\n * @since 3.0.0\r\n */\r\n tintBottomLeft: 0xffffff,\r\n\r\n /**\r\n * The tint value being applied to the bottom-right vertice of the Game Object.\r\n * This value is interpolated from the corner to the center of the Game Object.\r\n * The value should be set as a hex number, i.e. 0xff0000 for red, or 0xff00ff for purple.\r\n *\r\n * @name Phaser.GameObjects.Components.Tint#tintBottomRight\r\n * @type {number}\r\n * @default 0xffffff\r\n * @since 3.0.0\r\n */\r\n tintBottomRight: 0xffffff,\r\n\r\n /**\r\n * The tint fill mode.\r\n *\r\n * `false` = An additive tint (the default), where vertices colors are blended with the texture.\r\n * `true` = A fill tint, where the vertices colors replace the texture, but respects texture alpha.\r\n *\r\n * @name Phaser.GameObjects.Components.Tint#tintFill\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.11.0\r\n */\r\n tintFill: false,\r\n\r\n /**\r\n * Clears all tint values associated with this Game Object.\r\n *\r\n * Immediately sets the color values back to 0xffffff and the tint type to 'additive',\r\n * which results in no visible change to the texture.\r\n *\r\n * @method Phaser.GameObjects.Components.Tint#clearTint\r\n * @webglOnly\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n clearTint: function ()\r\n {\r\n this.setTint(0xffffff);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets an additive tint on this Game Object.\r\n *\r\n * The tint works by taking the pixel color values from the Game Objects texture, and then\r\n * multiplying it by the color value of the tint. You can provide either one color value,\r\n * in which case the whole Game Object will be tinted in that color. Or you can provide a color\r\n * per corner. The colors are blended together across the extent of the Game Object.\r\n *\r\n * To modify the tint color once set, either call this method again with new values or use the\r\n * `tint` property to set all colors at once. Or, use the properties `tintTopLeft`, `tintTopRight,\r\n * `tintBottomLeft` and `tintBottomRight` to set the corner color values independently.\r\n *\r\n * To remove a tint call `clearTint`.\r\n *\r\n * To swap this from being an additive tint to a fill based tint set the property `tintFill` to `true`.\r\n *\r\n * @method Phaser.GameObjects.Components.Tint#setTint\r\n * @webglOnly\r\n * @since 3.0.0\r\n *\r\n * @param {number} [topLeft=0xffffff] - The tint being applied to the top-left of the Game Object. If no other values are given this value is applied evenly, tinting the whole Game Object.\r\n * @param {number} [topRight] - The tint being applied to the top-right of the Game Object.\r\n * @param {number} [bottomLeft] - The tint being applied to the bottom-left of the Game Object.\r\n * @param {number} [bottomRight] - The tint being applied to the bottom-right of the Game Object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setTint: function (topLeft, topRight, bottomLeft, bottomRight)\r\n {\r\n if (topLeft === undefined) { topLeft = 0xffffff; }\r\n\r\n if (topRight === undefined)\r\n {\r\n topRight = topLeft;\r\n bottomLeft = topLeft;\r\n bottomRight = topLeft;\r\n }\r\n\r\n this.tintTopLeft = topLeft;\r\n this.tintTopRight = topRight;\r\n this.tintBottomLeft = bottomLeft;\r\n this.tintBottomRight = bottomRight;\r\n\r\n this.tintFill = false;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a fill-based tint on this Game Object.\r\n *\r\n * Unlike an additive tint, a fill-tint literally replaces the pixel colors from the texture\r\n * with those in the tint. You can use this for effects such as making a player flash 'white'\r\n * if hit by something. You can provide either one color value, in which case the whole\r\n * Game Object will be rendered in that color. Or you can provide a color per corner. The colors\r\n * are blended together across the extent of the Game Object.\r\n *\r\n * To modify the tint color once set, either call this method again with new values or use the\r\n * `tint` property to set all colors at once. Or, use the properties `tintTopLeft`, `tintTopRight,\r\n * `tintBottomLeft` and `tintBottomRight` to set the corner color values independently.\r\n *\r\n * To remove a tint call `clearTint`.\r\n *\r\n * To swap this from being a fill-tint to an additive tint set the property `tintFill` to `false`.\r\n *\r\n * @method Phaser.GameObjects.Components.Tint#setTintFill\r\n * @webglOnly\r\n * @since 3.11.0\r\n *\r\n * @param {number} [topLeft=0xffffff] - The tint being applied to the top-left of the Game Object. If not other values are given this value is applied evenly, tinting the whole Game Object.\r\n * @param {number} [topRight] - The tint being applied to the top-right of the Game Object.\r\n * @param {number} [bottomLeft] - The tint being applied to the bottom-left of the Game Object.\r\n * @param {number} [bottomRight] - The tint being applied to the bottom-right of the Game Object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setTintFill: function (topLeft, topRight, bottomLeft, bottomRight)\r\n {\r\n this.setTint(topLeft, topRight, bottomLeft, bottomRight);\r\n\r\n this.tintFill = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The tint value being applied to the whole of the Game Object.\r\n * Return `tintTopLeft` when read this tint property.\r\n *\r\n * @name Phaser.GameObjects.Components.Tint#tint\r\n * @type {number}\r\n * @webglOnly\r\n * @since 3.0.0\r\n */\r\n tint: {\r\n\r\n get: function ()\r\n {\r\n return this.tintTopLeft;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.setTint(value, value, value, value);\r\n }\r\n },\r\n\r\n /**\r\n * Does this Game Object have a tint applied?\r\n *\r\n * It checks to see if the 4 tint properties are set to the value 0xffffff\r\n * and that the `tintFill` property is `false`. This indicates that a Game Object isn't tinted.\r\n *\r\n * @name Phaser.GameObjects.Components.Tint#isTinted\r\n * @type {boolean}\r\n * @webglOnly\r\n * @readonly\r\n * @since 3.11.0\r\n */\r\n isTinted: {\r\n\r\n get: function ()\r\n {\r\n var white = 0xffffff;\r\n\r\n return (\r\n this.tintFill ||\r\n this.tintTopLeft !== white ||\r\n this.tintTopRight !== white ||\r\n this.tintBottomLeft !== white ||\r\n this.tintBottomRight !== white\r\n );\r\n }\r\n\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Tint;\r\n\n\n/***/ }),\n\n/***/ 53774:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Build a JSON representation of the given Game Object.\r\n *\r\n * This is typically extended further by Game Object specific implementations.\r\n *\r\n * @method Phaser.GameObjects.Components.ToJSON\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to export as JSON.\r\n *\r\n * @return {Phaser.Types.GameObjects.JSONGameObject} A JSON representation of the Game Object.\r\n */\r\nvar ToJSON = function (gameObject)\r\n{\r\n var out = {\r\n name: gameObject.name,\r\n type: gameObject.type,\r\n x: gameObject.x,\r\n y: gameObject.y,\r\n depth: gameObject.depth,\r\n scale: {\r\n x: gameObject.scaleX,\r\n y: gameObject.scaleY\r\n },\r\n origin: {\r\n x: gameObject.originX,\r\n y: gameObject.originY\r\n },\r\n flipX: gameObject.flipX,\r\n flipY: gameObject.flipY,\r\n rotation: gameObject.rotation,\r\n alpha: gameObject.alpha,\r\n visible: gameObject.visible,\r\n blendMode: gameObject.blendMode,\r\n textureKey: '',\r\n frameKey: '',\r\n data: {}\r\n };\r\n\r\n if (gameObject.texture)\r\n {\r\n out.textureKey = gameObject.texture.key;\r\n out.frameKey = gameObject.frame.name;\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = ToJSON;\r\n\n\n/***/ }),\n\n/***/ 16901:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar MATH_CONST = __webpack_require__(36383);\r\nvar TransformMatrix = __webpack_require__(61340);\r\nvar TransformXY = __webpack_require__(85955);\r\nvar WrapAngle = __webpack_require__(86554);\r\nvar WrapAngleDegrees = __webpack_require__(30954);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n// global bitmask flag for GameObject.renderMask (used by Scale)\r\nvar _FLAG = 4; // 0100\r\n\r\n/**\r\n * Provides methods used for getting and setting the position, scale and rotation of a Game Object.\r\n *\r\n * @namespace Phaser.GameObjects.Components.Transform\r\n * @since 3.0.0\r\n */\r\n\r\nvar Transform = {\r\n\r\n /**\r\n * A property indicating that a Game Object has this component.\r\n *\r\n * @name Phaser.GameObjects.Components.Transform#hasTransformComponent\r\n * @type {boolean}\r\n * @readonly\r\n * @default true\r\n * @since 3.60.0\r\n */\r\n hasTransformComponent: true,\r\n\r\n /**\r\n * Private internal value. Holds the horizontal scale value.\r\n *\r\n * @name Phaser.GameObjects.Components.Transform#_scaleX\r\n * @type {number}\r\n * @private\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n _scaleX: 1,\r\n\r\n /**\r\n * Private internal value. Holds the vertical scale value.\r\n *\r\n * @name Phaser.GameObjects.Components.Transform#_scaleY\r\n * @type {number}\r\n * @private\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n _scaleY: 1,\r\n\r\n /**\r\n * Private internal value. Holds the rotation value in radians.\r\n *\r\n * @name Phaser.GameObjects.Components.Transform#_rotation\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n _rotation: 0,\r\n\r\n /**\r\n * The x position of this Game Object.\r\n *\r\n * @name Phaser.GameObjects.Components.Transform#x\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n x: 0,\r\n\r\n /**\r\n * The y position of this Game Object.\r\n *\r\n * @name Phaser.GameObjects.Components.Transform#y\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n y: 0,\r\n\r\n /**\r\n * The z position of this Game Object.\r\n *\r\n * Note: The z position does not control the rendering order of 2D Game Objects. Use\r\n * {@link Phaser.GameObjects.Components.Depth#depth} instead.\r\n *\r\n * @name Phaser.GameObjects.Components.Transform#z\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n z: 0,\r\n\r\n /**\r\n * The w position of this Game Object.\r\n *\r\n * @name Phaser.GameObjects.Components.Transform#w\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n w: 0,\r\n\r\n /**\r\n * This is a special setter that allows you to set both the horizontal and vertical scale of this Game Object\r\n * to the same value, at the same time. When reading this value the result returned is `(scaleX + scaleY) / 2`.\r\n *\r\n * Use of this property implies you wish the horizontal and vertical scales to be equal to each other. If this\r\n * isn't the case, use the `scaleX` or `scaleY` properties instead.\r\n *\r\n * @name Phaser.GameObjects.Components.Transform#scale\r\n * @type {number}\r\n * @default 1\r\n * @since 3.18.0\r\n */\r\n scale: {\r\n\r\n get: function ()\r\n {\r\n return (this._scaleX + this._scaleY) / 2;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._scaleX = value;\r\n this._scaleY = value;\r\n\r\n if (value === 0)\r\n {\r\n this.renderFlags &= ~_FLAG;\r\n }\r\n else\r\n {\r\n this.renderFlags |= _FLAG;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The horizontal scale of this Game Object.\r\n *\r\n * @name Phaser.GameObjects.Components.Transform#scaleX\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n scaleX: {\r\n\r\n get: function ()\r\n {\r\n return this._scaleX;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._scaleX = value;\r\n\r\n if (value === 0)\r\n {\r\n this.renderFlags &= ~_FLAG;\r\n }\r\n else if (this._scaleY !== 0)\r\n {\r\n this.renderFlags |= _FLAG;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The vertical scale of this Game Object.\r\n *\r\n * @name Phaser.GameObjects.Components.Transform#scaleY\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n scaleY: {\r\n\r\n get: function ()\r\n {\r\n return this._scaleY;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._scaleY = value;\r\n\r\n if (value === 0)\r\n {\r\n this.renderFlags &= ~_FLAG;\r\n }\r\n else if (this._scaleX !== 0)\r\n {\r\n this.renderFlags |= _FLAG;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The angle of this Game Object as expressed in degrees.\r\n *\r\n * Phaser uses a right-hand clockwise rotation system, where 0 is right, 90 is down, 180/-180 is left\r\n * and -90 is up.\r\n *\r\n * If you prefer to work in radians, see the `rotation` property instead.\r\n *\r\n * @name Phaser.GameObjects.Components.Transform#angle\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n angle: {\r\n\r\n get: function ()\r\n {\r\n return WrapAngleDegrees(this._rotation * MATH_CONST.RAD_TO_DEG);\r\n },\r\n\r\n set: function (value)\r\n {\r\n // value is in degrees\r\n this.rotation = WrapAngleDegrees(value) * MATH_CONST.DEG_TO_RAD;\r\n }\r\n },\r\n\r\n /**\r\n * The angle of this Game Object in radians.\r\n *\r\n * Phaser uses a right-hand clockwise rotation system, where 0 is right, PI/2 is down, +-PI is left\r\n * and -PI/2 is up.\r\n *\r\n * If you prefer to work in degrees, see the `angle` property instead.\r\n *\r\n * @name Phaser.GameObjects.Components.Transform#rotation\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n rotation: {\r\n\r\n get: function ()\r\n {\r\n return this._rotation;\r\n },\r\n\r\n set: function (value)\r\n {\r\n // value is in radians\r\n this._rotation = WrapAngle(value);\r\n }\r\n },\r\n\r\n /**\r\n * Sets the position of this Game Object.\r\n *\r\n * @method Phaser.GameObjects.Components.Transform#setPosition\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=0] - The x position of this Game Object.\r\n * @param {number} [y=x] - The y position of this Game Object. If not set it will use the `x` value.\r\n * @param {number} [z=0] - The z position of this Game Object.\r\n * @param {number} [w=0] - The w position of this Game Object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setPosition: function (x, y, z, w)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = x; }\r\n if (z === undefined) { z = 0; }\r\n if (w === undefined) { w = 0; }\r\n\r\n this.x = x;\r\n this.y = y;\r\n this.z = z;\r\n this.w = w;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Copies an object's coordinates to this Game Object's position.\r\n *\r\n * @method Phaser.GameObjects.Components.Transform#copyPosition\r\n * @since 3.50.0\r\n *\r\n * @param {(Phaser.Types.Math.Vector2Like|Phaser.Types.Math.Vector3Like|Phaser.Types.Math.Vector4Like)} source - An object with numeric 'x', 'y', 'z', or 'w' properties. Undefined values are not copied.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n copyPosition: function (source)\r\n {\r\n if (source.x !== undefined) { this.x = source.x; }\r\n if (source.y !== undefined) { this.y = source.y; }\r\n if (source.z !== undefined) { this.z = source.z; }\r\n if (source.w !== undefined) { this.w = source.w; }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the position of this Game Object to be a random position within the confines of\r\n * the given area.\r\n *\r\n * If no area is specified a random position between 0 x 0 and the game width x height is used instead.\r\n *\r\n * The position does not factor in the size of this Game Object, meaning that only the origin is\r\n * guaranteed to be within the area.\r\n *\r\n * @method Phaser.GameObjects.Components.Transform#setRandomPosition\r\n * @since 3.8.0\r\n *\r\n * @param {number} [x=0] - The x position of the top-left of the random area.\r\n * @param {number} [y=0] - The y position of the top-left of the random area.\r\n * @param {number} [width] - The width of the random area.\r\n * @param {number} [height] - The height of the random area.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setRandomPosition: function (x, y, width, height)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (width === undefined) { width = this.scene.sys.scale.width; }\r\n if (height === undefined) { height = this.scene.sys.scale.height; }\r\n\r\n this.x = x + (Math.random() * width);\r\n this.y = y + (Math.random() * height);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the rotation of this Game Object.\r\n *\r\n * @method Phaser.GameObjects.Components.Transform#setRotation\r\n * @since 3.0.0\r\n *\r\n * @param {number} [radians=0] - The rotation of this Game Object, in radians.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setRotation: function (radians)\r\n {\r\n if (radians === undefined) { radians = 0; }\r\n\r\n this.rotation = radians;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the angle of this Game Object.\r\n *\r\n * @method Phaser.GameObjects.Components.Transform#setAngle\r\n * @since 3.0.0\r\n *\r\n * @param {number} [degrees=0] - The rotation of this Game Object, in degrees.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setAngle: function (degrees)\r\n {\r\n if (degrees === undefined) { degrees = 0; }\r\n\r\n this.angle = degrees;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the scale of this Game Object.\r\n *\r\n * @method Phaser.GameObjects.Components.Transform#setScale\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=1] - The horizontal scale of this Game Object.\r\n * @param {number} [y=x] - The vertical scale of this Game Object. If not set it will use the `x` value.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setScale: function (x, y)\r\n {\r\n if (x === undefined) { x = 1; }\r\n if (y === undefined) { y = x; }\r\n\r\n this.scaleX = x;\r\n this.scaleY = y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the x position of this Game Object.\r\n *\r\n * @method Phaser.GameObjects.Components.Transform#setX\r\n * @since 3.0.0\r\n *\r\n * @param {number} [value=0] - The x position of this Game Object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setX: function (value)\r\n {\r\n if (value === undefined) { value = 0; }\r\n\r\n this.x = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the y position of this Game Object.\r\n *\r\n * @method Phaser.GameObjects.Components.Transform#setY\r\n * @since 3.0.0\r\n *\r\n * @param {number} [value=0] - The y position of this Game Object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setY: function (value)\r\n {\r\n if (value === undefined) { value = 0; }\r\n\r\n this.y = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the z position of this Game Object.\r\n *\r\n * Note: The z position does not control the rendering order of 2D Game Objects. Use\r\n * {@link Phaser.GameObjects.Components.Depth#setDepth} instead.\r\n *\r\n * @method Phaser.GameObjects.Components.Transform#setZ\r\n * @since 3.0.0\r\n *\r\n * @param {number} [value=0] - The z position of this Game Object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setZ: function (value)\r\n {\r\n if (value === undefined) { value = 0; }\r\n\r\n this.z = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the w position of this Game Object.\r\n *\r\n * @method Phaser.GameObjects.Components.Transform#setW\r\n * @since 3.0.0\r\n *\r\n * @param {number} [value=0] - The w position of this Game Object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setW: function (value)\r\n {\r\n if (value === undefined) { value = 0; }\r\n\r\n this.w = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Gets the local transform matrix for this Game Object.\r\n *\r\n * @method Phaser.GameObjects.Components.Transform#getLocalTransformMatrix\r\n * @since 3.4.0\r\n *\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} [tempMatrix] - The matrix to populate with the values from this Game Object.\r\n *\r\n * @return {Phaser.GameObjects.Components.TransformMatrix} The populated Transform Matrix.\r\n */\r\n getLocalTransformMatrix: function (tempMatrix)\r\n {\r\n if (tempMatrix === undefined) { tempMatrix = new TransformMatrix(); }\r\n\r\n return tempMatrix.applyITRS(this.x, this.y, this._rotation, this._scaleX, this._scaleY);\r\n },\r\n\r\n /**\r\n * Gets the world transform matrix for this Game Object, factoring in any parent Containers.\r\n *\r\n * @method Phaser.GameObjects.Components.Transform#getWorldTransformMatrix\r\n * @since 3.4.0\r\n *\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} [tempMatrix] - The matrix to populate with the values from this Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} [parentMatrix] - A temporary matrix to hold parent values during the calculations.\r\n *\r\n * @return {Phaser.GameObjects.Components.TransformMatrix} The populated Transform Matrix.\r\n */\r\n getWorldTransformMatrix: function (tempMatrix, parentMatrix)\r\n {\r\n if (tempMatrix === undefined) { tempMatrix = new TransformMatrix(); }\r\n\r\n var parent = this.parentContainer;\r\n\r\n if (!parent)\r\n {\r\n return this.getLocalTransformMatrix(tempMatrix);\r\n }\r\n\r\n if (!parentMatrix)\r\n {\r\n parentMatrix = new TransformMatrix();\r\n }\r\n\r\n tempMatrix.applyITRS(this.x, this.y, this._rotation, this._scaleX, this._scaleY);\r\n\r\n while (parent)\r\n {\r\n parentMatrix.applyITRS(parent.x, parent.y, parent._rotation, parent._scaleX, parent._scaleY);\r\n\r\n parentMatrix.multiply(tempMatrix, tempMatrix);\r\n\r\n parent = parent.parentContainer;\r\n }\r\n\r\n return tempMatrix;\r\n },\r\n\r\n /**\r\n * Takes the given `x` and `y` coordinates and converts them into local space for this\r\n * Game Object, taking into account parent and local transforms, and the Display Origin.\r\n *\r\n * The returned Vector2 contains the translated point in its properties.\r\n *\r\n * A Camera needs to be provided in order to handle modified scroll factors. If no\r\n * camera is specified, it will use the `main` camera from the Scene to which this\r\n * Game Object belongs.\r\n *\r\n * @method Phaser.GameObjects.Components.Transform#getLocalPoint\r\n * @since 3.50.0\r\n *\r\n * @param {number} x - The x position to translate.\r\n * @param {number} y - The y position to translate.\r\n * @param {Phaser.Math.Vector2} [point] - A Vector2, or point-like object, to store the results in.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera which is being tested against. If not given will use the Scene default camera.\r\n *\r\n * @return {Phaser.Math.Vector2} The translated point.\r\n */\r\n getLocalPoint: function (x, y, point, camera)\r\n {\r\n if (!point) { point = new Vector2(); }\r\n if (!camera) { camera = this.scene.sys.cameras.main; }\r\n\r\n var csx = camera.scrollX;\r\n var csy = camera.scrollY;\r\n\r\n var px = x + (csx * this.scrollFactorX) - csx;\r\n var py = y + (csy * this.scrollFactorY) - csy;\r\n\r\n if (this.parentContainer)\r\n {\r\n this.getWorldTransformMatrix().applyInverse(px, py, point);\r\n }\r\n else\r\n {\r\n TransformXY(px, py, this.x, this.y, this.rotation, this.scaleX, this.scaleY, point);\r\n }\r\n\r\n // Normalize origin\r\n if (this._originComponent)\r\n {\r\n point.x += this._displayOriginX;\r\n point.y += this._displayOriginY;\r\n }\r\n\r\n return point;\r\n },\r\n\r\n /**\r\n * Gets the sum total rotation of all of this Game Objects parent Containers.\r\n *\r\n * The returned value is in radians and will be zero if this Game Object has no parent container.\r\n *\r\n * @method Phaser.GameObjects.Components.Transform#getParentRotation\r\n * @since 3.18.0\r\n *\r\n * @return {number} The sum total rotation, in radians, of all parent containers of this Game Object.\r\n */\r\n getParentRotation: function ()\r\n {\r\n var rotation = 0;\r\n\r\n var parent = this.parentContainer;\r\n\r\n while (parent)\r\n {\r\n rotation += parent.rotation;\r\n\r\n parent = parent.parentContainer;\r\n }\r\n\r\n return rotation;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Transform;\r\n\n\n/***/ }),\n\n/***/ 61340:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar MATH_CONST = __webpack_require__(36383);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * A Matrix used for display transformations for rendering.\r\n *\r\n * It is represented like so:\r\n *\r\n * ```\r\n * | a | c | tx |\r\n * | b | d | ty |\r\n * | 0 | 0 | 1 |\r\n * ```\r\n *\r\n * @class TransformMatrix\r\n * @memberof Phaser.GameObjects.Components\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {number} [a=1] - The Scale X value.\r\n * @param {number} [b=0] - The Skew Y value.\r\n * @param {number} [c=0] - The Skew X value.\r\n * @param {number} [d=1] - The Scale Y value.\r\n * @param {number} [tx=0] - The Translate X value.\r\n * @param {number} [ty=0] - The Translate Y value.\r\n */\r\nvar TransformMatrix = new Class({\r\n\r\n initialize:\r\n\r\n function TransformMatrix (a, b, c, d, tx, ty)\r\n {\r\n if (a === undefined) { a = 1; }\r\n if (b === undefined) { b = 0; }\r\n if (c === undefined) { c = 0; }\r\n if (d === undefined) { d = 1; }\r\n if (tx === undefined) { tx = 0; }\r\n if (ty === undefined) { ty = 0; }\r\n\r\n /**\r\n * The matrix values.\r\n *\r\n * @name Phaser.GameObjects.Components.TransformMatrix#matrix\r\n * @type {Float32Array}\r\n * @since 3.0.0\r\n */\r\n this.matrix = new Float32Array([ a, b, c, d, tx, ty, 0, 0, 1 ]);\r\n\r\n /**\r\n * The decomposed matrix.\r\n *\r\n * @name Phaser.GameObjects.Components.TransformMatrix#decomposedMatrix\r\n * @type {object}\r\n * @since 3.0.0\r\n */\r\n this.decomposedMatrix = {\r\n translateX: 0,\r\n translateY: 0,\r\n scaleX: 1,\r\n scaleY: 1,\r\n rotation: 0\r\n };\r\n\r\n /**\r\n * The temporary quad value cache.\r\n *\r\n * @name Phaser.GameObjects.Components.TransformMatrix#quad\r\n * @type {Float32Array}\r\n * @since 3.60.0\r\n */\r\n this.quad = new Float32Array(8);\r\n },\r\n\r\n /**\r\n * The Scale X value.\r\n *\r\n * @name Phaser.GameObjects.Components.TransformMatrix#a\r\n * @type {number}\r\n * @since 3.4.0\r\n */\r\n a: {\r\n\r\n get: function ()\r\n {\r\n return this.matrix[0];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.matrix[0] = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The Skew Y value.\r\n *\r\n * @name Phaser.GameObjects.Components.TransformMatrix#b\r\n * @type {number}\r\n * @since 3.4.0\r\n */\r\n b: {\r\n\r\n get: function ()\r\n {\r\n return this.matrix[1];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.matrix[1] = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The Skew X value.\r\n *\r\n * @name Phaser.GameObjects.Components.TransformMatrix#c\r\n * @type {number}\r\n * @since 3.4.0\r\n */\r\n c: {\r\n\r\n get: function ()\r\n {\r\n return this.matrix[2];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.matrix[2] = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The Scale Y value.\r\n *\r\n * @name Phaser.GameObjects.Components.TransformMatrix#d\r\n * @type {number}\r\n * @since 3.4.0\r\n */\r\n d: {\r\n\r\n get: function ()\r\n {\r\n return this.matrix[3];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.matrix[3] = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The Translate X value.\r\n *\r\n * @name Phaser.GameObjects.Components.TransformMatrix#e\r\n * @type {number}\r\n * @since 3.11.0\r\n */\r\n e: {\r\n\r\n get: function ()\r\n {\r\n return this.matrix[4];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.matrix[4] = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The Translate Y value.\r\n *\r\n * @name Phaser.GameObjects.Components.TransformMatrix#f\r\n * @type {number}\r\n * @since 3.11.0\r\n */\r\n f: {\r\n\r\n get: function ()\r\n {\r\n return this.matrix[5];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.matrix[5] = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The Translate X value.\r\n *\r\n * @name Phaser.GameObjects.Components.TransformMatrix#tx\r\n * @type {number}\r\n * @since 3.4.0\r\n */\r\n tx: {\r\n\r\n get: function ()\r\n {\r\n return this.matrix[4];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.matrix[4] = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The Translate Y value.\r\n *\r\n * @name Phaser.GameObjects.Components.TransformMatrix#ty\r\n * @type {number}\r\n * @since 3.4.0\r\n */\r\n ty: {\r\n\r\n get: function ()\r\n {\r\n return this.matrix[5];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.matrix[5] = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The rotation of the Matrix. Value is in radians.\r\n *\r\n * @name Phaser.GameObjects.Components.TransformMatrix#rotation\r\n * @type {number}\r\n * @readonly\r\n * @since 3.4.0\r\n */\r\n rotation: {\r\n\r\n get: function ()\r\n {\r\n return Math.acos(this.a / this.scaleX) * ((Math.atan(-this.c / this.a) < 0) ? -1 : 1);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The rotation of the Matrix, normalized to be within the Phaser right-handed\r\n * clockwise rotation space. Value is in radians.\r\n *\r\n * @name Phaser.GameObjects.Components.TransformMatrix#rotationNormalized\r\n * @type {number}\r\n * @readonly\r\n * @since 3.19.0\r\n */\r\n rotationNormalized: {\r\n\r\n get: function ()\r\n {\r\n var matrix = this.matrix;\r\n\r\n var a = matrix[0];\r\n var b = matrix[1];\r\n var c = matrix[2];\r\n var d = matrix[3];\r\n\r\n if (a || b)\r\n {\r\n // var r = Math.sqrt(a * a + b * b);\r\n\r\n return (b > 0) ? Math.acos(a / this.scaleX) : -Math.acos(a / this.scaleX);\r\n }\r\n else if (c || d)\r\n {\r\n // var s = Math.sqrt(c * c + d * d);\r\n\r\n return MATH_CONST.TAU - ((d > 0) ? Math.acos(-c / this.scaleY) : -Math.acos(c / this.scaleY));\r\n }\r\n else\r\n {\r\n return 0;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The decomposed horizontal scale of the Matrix. This value is always positive.\r\n *\r\n * @name Phaser.GameObjects.Components.TransformMatrix#scaleX\r\n * @type {number}\r\n * @readonly\r\n * @since 3.4.0\r\n */\r\n scaleX: {\r\n\r\n get: function ()\r\n {\r\n return Math.sqrt((this.a * this.a) + (this.b * this.b));\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The decomposed vertical scale of the Matrix. This value is always positive.\r\n *\r\n * @name Phaser.GameObjects.Components.TransformMatrix#scaleY\r\n * @type {number}\r\n * @readonly\r\n * @since 3.4.0\r\n */\r\n scaleY: {\r\n\r\n get: function ()\r\n {\r\n return Math.sqrt((this.c * this.c) + (this.d * this.d));\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Reset the Matrix to an identity matrix.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#loadIdentity\r\n * @since 3.0.0\r\n *\r\n * @return {this} This TransformMatrix.\r\n */\r\n loadIdentity: function ()\r\n {\r\n var matrix = this.matrix;\r\n\r\n matrix[0] = 1;\r\n matrix[1] = 0;\r\n matrix[2] = 0;\r\n matrix[3] = 1;\r\n matrix[4] = 0;\r\n matrix[5] = 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Translate the Matrix.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#translate\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal translation value.\r\n * @param {number} y - The vertical translation value.\r\n *\r\n * @return {this} This TransformMatrix.\r\n */\r\n translate: function (x, y)\r\n {\r\n var matrix = this.matrix;\r\n\r\n matrix[4] = matrix[0] * x + matrix[2] * y + matrix[4];\r\n matrix[5] = matrix[1] * x + matrix[3] * y + matrix[5];\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Scale the Matrix.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#scale\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal scale value.\r\n * @param {number} y - The vertical scale value.\r\n *\r\n * @return {this} This TransformMatrix.\r\n */\r\n scale: function (x, y)\r\n {\r\n var matrix = this.matrix;\r\n\r\n matrix[0] *= x;\r\n matrix[1] *= x;\r\n matrix[2] *= y;\r\n matrix[3] *= y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Rotate the Matrix.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#rotate\r\n * @since 3.0.0\r\n *\r\n * @param {number} angle - The angle of rotation in radians.\r\n *\r\n * @return {this} This TransformMatrix.\r\n */\r\n rotate: function (angle)\r\n {\r\n var sin = Math.sin(angle);\r\n var cos = Math.cos(angle);\r\n\r\n var matrix = this.matrix;\r\n\r\n var a = matrix[0];\r\n var b = matrix[1];\r\n var c = matrix[2];\r\n var d = matrix[3];\r\n\r\n matrix[0] = a * cos + c * sin;\r\n matrix[1] = b * cos + d * sin;\r\n matrix[2] = a * -sin + c * cos;\r\n matrix[3] = b * -sin + d * cos;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Multiply this Matrix by the given Matrix.\r\n *\r\n * If an `out` Matrix is given then the results will be stored in it.\r\n * If it is not given, this matrix will be updated in place instead.\r\n * Use an `out` Matrix if you do not wish to mutate this matrix.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#multiply\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} rhs - The Matrix to multiply by.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} [out] - An optional Matrix to store the results in.\r\n *\r\n * @return {(this|Phaser.GameObjects.Components.TransformMatrix)} Either this TransformMatrix, or the `out` Matrix, if given in the arguments.\r\n */\r\n multiply: function (rhs, out)\r\n {\r\n var matrix = this.matrix;\r\n var source = rhs.matrix;\r\n\r\n var localA = matrix[0];\r\n var localB = matrix[1];\r\n var localC = matrix[2];\r\n var localD = matrix[3];\r\n var localE = matrix[4];\r\n var localF = matrix[5];\r\n\r\n var sourceA = source[0];\r\n var sourceB = source[1];\r\n var sourceC = source[2];\r\n var sourceD = source[3];\r\n var sourceE = source[4];\r\n var sourceF = source[5];\r\n\r\n var destinationMatrix = (out === undefined) ? matrix : out.matrix;\r\n\r\n destinationMatrix[0] = (sourceA * localA) + (sourceB * localC);\r\n destinationMatrix[1] = (sourceA * localB) + (sourceB * localD);\r\n destinationMatrix[2] = (sourceC * localA) + (sourceD * localC);\r\n destinationMatrix[3] = (sourceC * localB) + (sourceD * localD);\r\n destinationMatrix[4] = (sourceE * localA) + (sourceF * localC) + localE;\r\n destinationMatrix[5] = (sourceE * localB) + (sourceF * localD) + localF;\r\n\r\n return destinationMatrix;\r\n },\r\n\r\n /**\r\n * Multiply this Matrix by the matrix given, including the offset.\r\n *\r\n * The offsetX is added to the tx value: `offsetX * a + offsetY * c + tx`.\r\n * The offsetY is added to the ty value: `offsetY * b + offsetY * d + ty`.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#multiplyWithOffset\r\n * @since 3.11.0\r\n *\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} src - The source Matrix to copy from.\r\n * @param {number} offsetX - Horizontal offset to factor in to the multiplication.\r\n * @param {number} offsetY - Vertical offset to factor in to the multiplication.\r\n *\r\n * @return {this} This TransformMatrix.\r\n */\r\n multiplyWithOffset: function (src, offsetX, offsetY)\r\n {\r\n var matrix = this.matrix;\r\n var otherMatrix = src.matrix;\r\n\r\n var a0 = matrix[0];\r\n var b0 = matrix[1];\r\n var c0 = matrix[2];\r\n var d0 = matrix[3];\r\n var tx0 = matrix[4];\r\n var ty0 = matrix[5];\r\n\r\n var pse = offsetX * a0 + offsetY * c0 + tx0;\r\n var psf = offsetX * b0 + offsetY * d0 + ty0;\r\n\r\n var a1 = otherMatrix[0];\r\n var b1 = otherMatrix[1];\r\n var c1 = otherMatrix[2];\r\n var d1 = otherMatrix[3];\r\n var tx1 = otherMatrix[4];\r\n var ty1 = otherMatrix[5];\r\n\r\n matrix[0] = a1 * a0 + b1 * c0;\r\n matrix[1] = a1 * b0 + b1 * d0;\r\n matrix[2] = c1 * a0 + d1 * c0;\r\n matrix[3] = c1 * b0 + d1 * d0;\r\n matrix[4] = tx1 * a0 + ty1 * c0 + pse;\r\n matrix[5] = tx1 * b0 + ty1 * d0 + psf;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Transform the Matrix.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#transform\r\n * @since 3.0.0\r\n *\r\n * @param {number} a - The Scale X value.\r\n * @param {number} b - The Shear Y value.\r\n * @param {number} c - The Shear X value.\r\n * @param {number} d - The Scale Y value.\r\n * @param {number} tx - The Translate X value.\r\n * @param {number} ty - The Translate Y value.\r\n *\r\n * @return {this} This TransformMatrix.\r\n */\r\n transform: function (a, b, c, d, tx, ty)\r\n {\r\n var matrix = this.matrix;\r\n\r\n var a0 = matrix[0];\r\n var b0 = matrix[1];\r\n var c0 = matrix[2];\r\n var d0 = matrix[3];\r\n var tx0 = matrix[4];\r\n var ty0 = matrix[5];\r\n\r\n matrix[0] = a * a0 + b * c0;\r\n matrix[1] = a * b0 + b * d0;\r\n matrix[2] = c * a0 + d * c0;\r\n matrix[3] = c * b0 + d * d0;\r\n matrix[4] = tx * a0 + ty * c0 + tx0;\r\n matrix[5] = tx * b0 + ty * d0 + ty0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Transform a point in to the local space of this Matrix.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#transformPoint\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x coordinate of the point to transform.\r\n * @param {number} y - The y coordinate of the point to transform.\r\n * @param {Phaser.Types.Math.Vector2Like} [point] - Optional Point object to store the transformed coordinates in.\r\n *\r\n * @return {Phaser.Types.Math.Vector2Like} The Point containing the transformed coordinates.\r\n */\r\n transformPoint: function (x, y, point)\r\n {\r\n if (point === undefined) { point = { x: 0, y: 0 }; }\r\n\r\n var matrix = this.matrix;\r\n\r\n var a = matrix[0];\r\n var b = matrix[1];\r\n var c = matrix[2];\r\n var d = matrix[3];\r\n var tx = matrix[4];\r\n var ty = matrix[5];\r\n\r\n point.x = x * a + y * c + tx;\r\n point.y = x * b + y * d + ty;\r\n\r\n return point;\r\n },\r\n\r\n /**\r\n * Invert the Matrix.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#invert\r\n * @since 3.0.0\r\n *\r\n * @return {this} This TransformMatrix.\r\n */\r\n invert: function ()\r\n {\r\n var matrix = this.matrix;\r\n\r\n var a = matrix[0];\r\n var b = matrix[1];\r\n var c = matrix[2];\r\n var d = matrix[3];\r\n var tx = matrix[4];\r\n var ty = matrix[5];\r\n\r\n var n = a * d - b * c;\r\n\r\n matrix[0] = d / n;\r\n matrix[1] = -b / n;\r\n matrix[2] = -c / n;\r\n matrix[3] = a / n;\r\n matrix[4] = (c * ty - d * tx) / n;\r\n matrix[5] = -(a * ty - b * tx) / n;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the values of this Matrix to copy those of the matrix given.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#copyFrom\r\n * @since 3.11.0\r\n *\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} src - The source Matrix to copy from.\r\n *\r\n * @return {this} This TransformMatrix.\r\n */\r\n copyFrom: function (src)\r\n {\r\n var matrix = this.matrix;\r\n\r\n matrix[0] = src.a;\r\n matrix[1] = src.b;\r\n matrix[2] = src.c;\r\n matrix[3] = src.d;\r\n matrix[4] = src.e;\r\n matrix[5] = src.f;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the values of this Matrix to copy those of the array given.\r\n * Where array indexes 0, 1, 2, 3, 4 and 5 are mapped to a, b, c, d, e and f.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#copyFromArray\r\n * @since 3.11.0\r\n *\r\n * @param {array} src - The array of values to set into this matrix.\r\n *\r\n * @return {this} This TransformMatrix.\r\n */\r\n copyFromArray: function (src)\r\n {\r\n var matrix = this.matrix;\r\n\r\n matrix[0] = src[0];\r\n matrix[1] = src[1];\r\n matrix[2] = src[2];\r\n matrix[3] = src[3];\r\n matrix[4] = src[4];\r\n matrix[5] = src[5];\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Copy the values from this Matrix to the given Canvas Rendering Context.\r\n * This will use the Context.transform method.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#copyToContext\r\n * @since 3.12.0\r\n *\r\n * @param {CanvasRenderingContext2D} ctx - The Canvas Rendering Context to copy the matrix values to.\r\n *\r\n * @return {CanvasRenderingContext2D} The Canvas Rendering Context.\r\n */\r\n copyToContext: function (ctx)\r\n {\r\n var matrix = this.matrix;\r\n\r\n ctx.transform(matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5]);\r\n\r\n return ctx;\r\n },\r\n\r\n /**\r\n * Copy the values from this Matrix to the given Canvas Rendering Context.\r\n * This will use the Context.setTransform method.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#setToContext\r\n * @since 3.12.0\r\n *\r\n * @param {CanvasRenderingContext2D} ctx - The Canvas Rendering Context to copy the matrix values to.\r\n *\r\n * @return {CanvasRenderingContext2D} The Canvas Rendering Context.\r\n */\r\n setToContext: function (ctx)\r\n {\r\n ctx.setTransform(this);\r\n\r\n return ctx;\r\n },\r\n\r\n /**\r\n * Copy the values in this Matrix to the array given.\r\n *\r\n * Where array indexes 0, 1, 2, 3, 4 and 5 are mapped to a, b, c, d, e and f.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#copyToArray\r\n * @since 3.12.0\r\n *\r\n * @param {array} [out] - The array to copy the matrix values in to.\r\n *\r\n * @return {array} An array where elements 0 to 5 contain the values from this matrix.\r\n */\r\n copyToArray: function (out)\r\n {\r\n var matrix = this.matrix;\r\n\r\n if (out === undefined)\r\n {\r\n out = [ matrix[0], matrix[1], matrix[2], matrix[3], matrix[4], matrix[5] ];\r\n }\r\n else\r\n {\r\n out[0] = matrix[0];\r\n out[1] = matrix[1];\r\n out[2] = matrix[2];\r\n out[3] = matrix[3];\r\n out[4] = matrix[4];\r\n out[5] = matrix[5];\r\n }\r\n\r\n return out;\r\n },\r\n\r\n /**\r\n * Set the values of this Matrix.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#setTransform\r\n * @since 3.0.0\r\n *\r\n * @param {number} a - The Scale X value.\r\n * @param {number} b - The Shear Y value.\r\n * @param {number} c - The Shear X value.\r\n * @param {number} d - The Scale Y value.\r\n * @param {number} tx - The Translate X value.\r\n * @param {number} ty - The Translate Y value.\r\n *\r\n * @return {this} This TransformMatrix.\r\n */\r\n setTransform: function (a, b, c, d, tx, ty)\r\n {\r\n var matrix = this.matrix;\r\n\r\n matrix[0] = a;\r\n matrix[1] = b;\r\n matrix[2] = c;\r\n matrix[3] = d;\r\n matrix[4] = tx;\r\n matrix[5] = ty;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Decompose this Matrix into its translation, scale and rotation values using QR decomposition.\r\n *\r\n * The result must be applied in the following order to reproduce the current matrix:\r\n *\r\n * translate -> rotate -> scale\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#decomposeMatrix\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Types.GameObjects.DecomposeMatrixResults} The decomposed Matrix.\r\n */\r\n decomposeMatrix: function ()\r\n {\r\n var decomposedMatrix = this.decomposedMatrix;\r\n\r\n var matrix = this.matrix;\r\n\r\n // a = scale X (1)\r\n // b = shear Y (0)\r\n // c = shear X (0)\r\n // d = scale Y (1)\r\n\r\n var a = matrix[0];\r\n var b = matrix[1];\r\n var c = matrix[2];\r\n var d = matrix[3];\r\n\r\n var determ = a * d - b * c;\r\n\r\n decomposedMatrix.translateX = matrix[4];\r\n decomposedMatrix.translateY = matrix[5];\r\n\r\n if (a || b)\r\n {\r\n var r = Math.sqrt(a * a + b * b);\r\n\r\n decomposedMatrix.rotation = (b > 0) ? Math.acos(a / r) : -Math.acos(a / r);\r\n decomposedMatrix.scaleX = r;\r\n decomposedMatrix.scaleY = determ / r;\r\n }\r\n else if (c || d)\r\n {\r\n var s = Math.sqrt(c * c + d * d);\r\n\r\n decomposedMatrix.rotation = Math.PI * 0.5 - (d > 0 ? Math.acos(-c / s) : -Math.acos(c / s));\r\n decomposedMatrix.scaleX = determ / s;\r\n decomposedMatrix.scaleY = s;\r\n }\r\n else\r\n {\r\n decomposedMatrix.rotation = 0;\r\n decomposedMatrix.scaleX = 0;\r\n decomposedMatrix.scaleY = 0;\r\n }\r\n\r\n return decomposedMatrix;\r\n },\r\n\r\n /**\r\n * Apply the identity, translate, rotate and scale operations on the Matrix.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#applyITRS\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal translation.\r\n * @param {number} y - The vertical translation.\r\n * @param {number} rotation - The angle of rotation in radians.\r\n * @param {number} scaleX - The horizontal scale.\r\n * @param {number} scaleY - The vertical scale.\r\n *\r\n * @return {this} This TransformMatrix.\r\n */\r\n applyITRS: function (x, y, rotation, scaleX, scaleY)\r\n {\r\n var matrix = this.matrix;\r\n\r\n var radianSin = Math.sin(rotation);\r\n var radianCos = Math.cos(rotation);\r\n\r\n // Translate\r\n matrix[4] = x;\r\n matrix[5] = y;\r\n\r\n // Rotate and Scale\r\n matrix[0] = radianCos * scaleX;\r\n matrix[1] = radianSin * scaleX;\r\n matrix[2] = -radianSin * scaleY;\r\n matrix[3] = radianCos * scaleY;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes the `x` and `y` values and returns a new position in the `output` vector that is the inverse of\r\n * the current matrix with its transformation applied.\r\n *\r\n * Can be used to translate points from world to local space.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#applyInverse\r\n * @since 3.12.0\r\n *\r\n * @param {number} x - The x position to translate.\r\n * @param {number} y - The y position to translate.\r\n * @param {Phaser.Math.Vector2} [output] - A Vector2, or point-like object, to store the results in.\r\n *\r\n * @return {Phaser.Math.Vector2} The coordinates, inverse-transformed through this matrix.\r\n */\r\n applyInverse: function (x, y, output)\r\n {\r\n if (output === undefined) { output = new Vector2(); }\r\n\r\n var matrix = this.matrix;\r\n\r\n var a = matrix[0];\r\n var b = matrix[1];\r\n var c = matrix[2];\r\n var d = matrix[3];\r\n var tx = matrix[4];\r\n var ty = matrix[5];\r\n\r\n var id = 1 / ((a * d) + (c * -b));\r\n\r\n output.x = (d * id * x) + (-c * id * y) + (((ty * c) - (tx * d)) * id);\r\n output.y = (a * id * y) + (-b * id * x) + (((-ty * a) + (tx * b)) * id);\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Performs the 8 calculations required to create the vertices of\r\n * a quad based on this matrix and the given x/y/xw/yh values.\r\n *\r\n * The result is stored in `TransformMatrix.quad`, which is returned\r\n * from this method.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#setQuad\r\n * @since 3.60.0\r\n *\r\n * @param {number} x - The x value.\r\n * @param {number} y - The y value.\r\n * @param {number} xw - The xw value.\r\n * @param {number} yh - The yh value.\r\n * @param {boolean} [roundPixels=false] - Pass the results via Math.round?\r\n * @param {Float32Array} [quad] - Optional Float32Array to store the results in. Otherwises uses the local quad array.\r\n *\r\n * @return {Float32Array} The quad Float32Array.\r\n */\r\n setQuad: function (x, y, xw, yh, roundPixels, quad)\r\n {\r\n if (roundPixels === undefined) { roundPixels = false; }\r\n if (quad === undefined) { quad = this.quad; }\r\n\r\n var matrix = this.matrix;\r\n\r\n var a = matrix[0];\r\n var b = matrix[1];\r\n var c = matrix[2];\r\n var d = matrix[3];\r\n var e = matrix[4];\r\n var f = matrix[5];\r\n\r\n // Compute the unrounded positions for the quad\r\n var x0 = x * a + y * c + e;\r\n var y0 = x * b + y * d + f;\r\n\r\n var x1 = x * a + yh * c + e;\r\n var y1 = x * b + yh * d + f;\r\n\r\n var x2 = xw * a + yh * c + e;\r\n var y2 = xw * b + yh * d + f;\r\n\r\n var x3 = xw * a + y * c + e;\r\n var y3 = xw * b + y * d + f;\r\n\r\n if (roundPixels)\r\n {\r\n // Round the top-left corner\r\n var rx0 = Math.floor(x0 + 0.5);\r\n var ry0 = Math.floor(y0 + 0.5);\r\n\r\n // Calculate the offset caused by rounding\r\n var dx = rx0 - x0;\r\n var dy = ry0 - y0;\r\n\r\n // Adjust the other corners by the same offset\r\n quad[0] = rx0;\r\n quad[1] = ry0;\r\n\r\n quad[2] = x1 + dx;\r\n quad[3] = y1 + dy;\r\n\r\n quad[4] = x2 + dx;\r\n quad[5] = y2 + dy;\r\n\r\n quad[6] = x3 + dx;\r\n quad[7] = y3 + dy;\r\n }\r\n else\r\n {\r\n quad[0] = x0;\r\n quad[1] = y0;\r\n\r\n quad[2] = x1;\r\n quad[3] = y1;\r\n\r\n quad[4] = x2;\r\n quad[5] = y2;\r\n\r\n quad[6] = x3;\r\n quad[7] = y3;\r\n }\r\n\r\n return quad;\r\n },\r\n\r\n /**\r\n * Returns the X component of this matrix multiplied by the given values.\r\n * This is the same as `x * a + y * c + e`.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#getX\r\n * @since 3.12.0\r\n *\r\n * @param {number} x - The x value.\r\n * @param {number} y - The y value.\r\n *\r\n * @return {number} The calculated x value.\r\n */\r\n getX: function (x, y)\r\n {\r\n return x * this.a + y * this.c + this.e;\r\n },\r\n\r\n /**\r\n * Returns the Y component of this matrix multiplied by the given values.\r\n * This is the same as `x * b + y * d + f`.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#getY\r\n * @since 3.12.0\r\n *\r\n * @param {number} x - The x value.\r\n * @param {number} y - The y value.\r\n *\r\n * @return {number} The calculated y value.\r\n */\r\n getY: function (x, y)\r\n {\r\n return x * this.b + y * this.d + this.f;\r\n },\r\n\r\n /**\r\n * Returns the X component of this matrix multiplied by the given values.\r\n *\r\n * This is the same as `x * a + y * c + e`, optionally passing via `Math.round`.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#getXRound\r\n * @since 3.50.0\r\n *\r\n * @param {number} x - The x value.\r\n * @param {number} y - The y value.\r\n * @param {boolean} [round=false] - Math.round the resulting value?\r\n *\r\n * @return {number} The calculated x value.\r\n */\r\n getXRound: function (x, y, round)\r\n {\r\n var v = this.getX(x, y);\r\n\r\n if (round)\r\n {\r\n v = Math.floor(v + 0.5);\r\n }\r\n\r\n return v;\r\n },\r\n\r\n /**\r\n * Returns the Y component of this matrix multiplied by the given values.\r\n *\r\n * This is the same as `x * b + y * d + f`, optionally passing via `Math.round`.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#getYRound\r\n * @since 3.50.0\r\n *\r\n * @param {number} x - The x value.\r\n * @param {number} y - The y value.\r\n * @param {boolean} [round=false] - Math.round the resulting value?\r\n *\r\n * @return {number} The calculated y value.\r\n */\r\n getYRound: function (x, y, round)\r\n {\r\n var v = this.getY(x, y);\r\n\r\n if (round)\r\n {\r\n v = Math.floor(v + 0.5);\r\n }\r\n\r\n return v;\r\n },\r\n\r\n /**\r\n * Returns a string that can be used in a CSS Transform call as a `matrix` property.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#getCSSMatrix\r\n * @since 3.12.0\r\n *\r\n * @return {string} A string containing the CSS Transform matrix values.\r\n */\r\n getCSSMatrix: function ()\r\n {\r\n var m = this.matrix;\r\n\r\n return 'matrix(' + m[0] + ',' + m[1] + ',' + m[2] + ',' + m[3] + ',' + m[4] + ',' + m[5] + ')';\r\n },\r\n\r\n /**\r\n * Destroys this Transform Matrix.\r\n *\r\n * @method Phaser.GameObjects.Components.TransformMatrix#destroy\r\n * @since 3.4.0\r\n */\r\n destroy: function ()\r\n {\r\n this.matrix = null;\r\n this.quad = null;\r\n this.decomposedMatrix = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = TransformMatrix;\r\n\n\n/***/ }),\n\n/***/ 59715:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// bitmask flag for GameObject.renderMask\r\nvar _FLAG = 1; // 0001\r\n\r\n/**\r\n * Provides methods used for setting the visibility of a Game Object.\r\n * Should be applied as a mixin and not used directly.\r\n *\r\n * @namespace Phaser.GameObjects.Components.Visible\r\n * @since 3.0.0\r\n */\r\n\r\nvar Visible = {\r\n\r\n /**\r\n * Private internal value. Holds the visible value.\r\n *\r\n * @name Phaser.GameObjects.Components.Visible#_visible\r\n * @type {boolean}\r\n * @private\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n _visible: true,\r\n\r\n /**\r\n * The visible state of the Game Object.\r\n *\r\n * An invisible Game Object will skip rendering, but will still process update logic.\r\n *\r\n * @name Phaser.GameObjects.Components.Visible#visible\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n visible: {\r\n\r\n get: function ()\r\n {\r\n return this._visible;\r\n },\r\n\r\n set: function (value)\r\n {\r\n if (value)\r\n {\r\n this._visible = true;\r\n this.renderFlags |= _FLAG;\r\n }\r\n else\r\n {\r\n this._visible = false;\r\n this.renderFlags &= ~_FLAG;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Sets the visibility of this Game Object.\r\n *\r\n * An invisible Game Object will skip rendering, but will still process update logic.\r\n *\r\n * @method Phaser.GameObjects.Components.Visible#setVisible\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} value - The visible state of the Game Object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setVisible: function (value)\r\n {\r\n this.visible = value;\r\n\r\n return this;\r\n }\r\n};\r\n\r\nmodule.exports = Visible;\r\n\n\n/***/ }),\n\n/***/ 31401:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.GameObjects.Components\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Alpha: __webpack_require__(16005),\r\n AlphaSingle: __webpack_require__(88509),\r\n BlendMode: __webpack_require__(90065),\r\n ComputedSize: __webpack_require__(94215),\r\n Crop: __webpack_require__(61683),\r\n Depth: __webpack_require__(89272),\r\n Flip: __webpack_require__(54434),\r\n FX: __webpack_require__(47059),\r\n GetBounds: __webpack_require__(8004),\r\n Mask: __webpack_require__(8573),\r\n Origin: __webpack_require__(27387),\r\n PathFollower: __webpack_require__(37640),\r\n Pipeline: __webpack_require__(72699),\r\n PostPipeline: __webpack_require__(17581),\r\n ScrollFactor: __webpack_require__(80227),\r\n Size: __webpack_require__(16736),\r\n Texture: __webpack_require__(37726),\r\n TextureCrop: __webpack_require__(79812),\r\n Tint: __webpack_require__(27472),\r\n ToJSON: __webpack_require__(53774),\r\n Transform: __webpack_require__(16901),\r\n TransformMatrix: __webpack_require__(61340),\r\n Visible: __webpack_require__(59715)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 31559:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Felipe Alfonso <@bitnenfer>\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar ArrayUtils = __webpack_require__(37105);\r\nvar BlendModes = __webpack_require__(10312);\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar Events = __webpack_require__(51708);\r\nvar GameObject = __webpack_require__(95643);\r\nvar Rectangle = __webpack_require__(87841);\r\nvar Render = __webpack_require__(29959);\r\nvar Union = __webpack_require__(36899);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\nvar tempTransformMatrix = new Components.TransformMatrix();\r\n\r\n/**\r\n * @classdesc\r\n * A Container Game Object.\r\n *\r\n * A Container, as the name implies, can 'contain' other types of Game Object.\r\n * When a Game Object is added to a Container, the Container becomes responsible for the rendering of it.\r\n * By default it will be removed from the Display List and instead added to the Containers own internal list.\r\n *\r\n * The position of the Game Object automatically becomes relative to the position of the Container.\r\n *\r\n * The transform point of a Container is 0x0 (in local space) and that cannot be changed. The children you add to the\r\n * Container should be positioned with this value in mind. I.e. you should treat 0x0 as being the center of\r\n * the Container, and position children positively and negative around it as required.\r\n *\r\n * When the Container is rendered, all of its children are rendered as well, in the order in which they exist\r\n * within the Container. Container children can be repositioned using methods such as `MoveUp`, `MoveDown` and `SendToBack`.\r\n *\r\n * If you modify a transform property of the Container, such as `Container.x` or `Container.rotation` then it will\r\n * automatically influence all children as well.\r\n *\r\n * Containers can include other Containers for deeply nested transforms.\r\n *\r\n * Containers can have masks set on them and can be used as a mask too. However, Container children cannot be masked.\r\n * The masks do not 'stack up'. Only a Container on the root of the display list will use its mask.\r\n *\r\n * Containers can be enabled for input. Because they do not have a texture you need to provide a shape for them\r\n * to use as their hit area. Container children can also be enabled for input, independent of the Container.\r\n *\r\n * If input enabling a _child_ you should not set both the `origin` and a **negative** scale factor on the child,\r\n * or the input area will become misaligned.\r\n *\r\n * Containers can be given a physics body for either Arcade Physics, Impact Physics or Matter Physics. However,\r\n * if Container _children_ are enabled for physics you may get unexpected results, such as offset bodies,\r\n * if the Container itself, or any of its ancestors, is positioned anywhere other than at 0 x 0. Container children\r\n * with physics do not factor in the Container due to the excessive extra calculations needed. Please structure\r\n * your game to work around this.\r\n *\r\n * It's important to understand the impact of using Containers. They add additional processing overhead into\r\n * every one of their children. The deeper you nest them, the more the cost escalates. This is especially true\r\n * for input events. You also loose the ability to set the display depth of Container children in the same\r\n * flexible manner as those not within them. In short, don't use them for the sake of it. You pay a small cost\r\n * every time you create one, try to structure your game around avoiding that where possible.\r\n *\r\n * @class Container\r\n * @extends Phaser.GameObjects.GameObject\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.4.0\r\n *\r\n * @extends Phaser.GameObjects.Components.AlphaSingle\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.ComputedSize\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.Mask\r\n * @extends Phaser.GameObjects.Components.PostPipeline\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {Phaser.GameObjects.GameObject[]} [children] - An optional array of Game Objects to add to this Container.\r\n */\r\nvar Container = new Class({\r\n\r\n Extends: GameObject,\r\n\r\n Mixins: [\r\n Components.AlphaSingle,\r\n Components.BlendMode,\r\n Components.ComputedSize,\r\n Components.Depth,\r\n Components.Mask,\r\n Components.PostPipeline,\r\n Components.Transform,\r\n Components.Visible,\r\n Render\r\n ],\r\n\r\n initialize:\r\n\r\n function Container (scene, x, y, children)\r\n {\r\n GameObject.call(this, scene, 'Container');\r\n\r\n /**\r\n * An array holding the children of this Container.\r\n *\r\n * @name Phaser.GameObjects.Container#list\r\n * @type {Phaser.GameObjects.GameObject[]}\r\n * @since 3.4.0\r\n */\r\n this.list = [];\r\n\r\n /**\r\n * Does this Container exclusively manage its children?\r\n *\r\n * The default is `true` which means a child added to this Container cannot\r\n * belong in another Container, which includes the Scene display list.\r\n *\r\n * If you disable this then this Container will no longer exclusively manage its children.\r\n * This allows you to create all kinds of interesting graphical effects, such as replicating\r\n * Game Objects without reparenting them all over the Scene.\r\n * However, doing so will prevent children from receiving any kind of input event or have\r\n * their physics bodies work by default, as they're no longer a single entity on the\r\n * display list, but are being replicated where-ever this Container is.\r\n *\r\n * @name Phaser.GameObjects.Container#exclusive\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.4.0\r\n */\r\n this.exclusive = true;\r\n\r\n /**\r\n * Containers can have an optional maximum size. If set to anything above 0 it\r\n * will constrict the addition of new Game Objects into the Container, capping off\r\n * the maximum limit the Container can grow in size to.\r\n *\r\n * @name Phaser.GameObjects.Container#maxSize\r\n * @type {number}\r\n * @default -1\r\n * @since 3.4.0\r\n */\r\n this.maxSize = -1;\r\n\r\n /**\r\n * The cursor position.\r\n *\r\n * @name Phaser.GameObjects.Container#position\r\n * @type {number}\r\n * @since 3.4.0\r\n */\r\n this.position = 0;\r\n\r\n /**\r\n * Internal Transform Matrix used for local space conversion.\r\n *\r\n * @name Phaser.GameObjects.Container#localTransform\r\n * @type {Phaser.GameObjects.Components.TransformMatrix}\r\n * @since 3.4.0\r\n */\r\n this.localTransform = new Components.TransformMatrix();\r\n\r\n /**\r\n * The property key to sort by.\r\n *\r\n * @name Phaser.GameObjects.Container#_sortKey\r\n * @type {string}\r\n * @private\r\n * @since 3.4.0\r\n */\r\n this._sortKey = '';\r\n\r\n /**\r\n * A reference to the Scene Systems Event Emitter.\r\n *\r\n * @name Phaser.GameObjects.Container#_sysEvents\r\n * @type {Phaser.Events.EventEmitter}\r\n * @private\r\n * @since 3.9.0\r\n */\r\n this._sysEvents = scene.sys.events;\r\n\r\n /**\r\n * The horizontal scroll factor of this Container.\r\n *\r\n * The scroll factor controls the influence of the movement of a Camera upon this Container.\r\n *\r\n * When a camera scrolls it will change the location at which this Container is rendered on-screen.\r\n * It does not change the Containers actual position values.\r\n *\r\n * For a Container, setting this value will only update the Container itself, not its children.\r\n * If you wish to change the scrollFactor of the children as well, use the `setScrollFactor` method.\r\n *\r\n * A value of 1 means it will move exactly in sync with a camera.\r\n * A value of 0 means it will not move at all, even if the camera moves.\r\n * Other values control the degree to which the camera movement is mapped to this Container.\r\n *\r\n * Please be aware that scroll factor values other than 1 are not taken in to consideration when\r\n * calculating physics collisions. Bodies always collide based on their world position, but changing\r\n * the scroll factor is a visual adjustment to where the textures are rendered, which can offset\r\n * them from physics bodies if not accounted for in your code.\r\n *\r\n * @name Phaser.GameObjects.Container#scrollFactorX\r\n * @type {number}\r\n * @default 1\r\n * @since 3.4.0\r\n */\r\n this.scrollFactorX = 1;\r\n\r\n /**\r\n * The vertical scroll factor of this Container.\r\n *\r\n * The scroll factor controls the influence of the movement of a Camera upon this Container.\r\n *\r\n * When a camera scrolls it will change the location at which this Container is rendered on-screen.\r\n * It does not change the Containers actual position values.\r\n *\r\n * For a Container, setting this value will only update the Container itself, not its children.\r\n * If you wish to change the scrollFactor of the children as well, use the `setScrollFactor` method.\r\n *\r\n * A value of 1 means it will move exactly in sync with a camera.\r\n * A value of 0 means it will not move at all, even if the camera moves.\r\n * Other values control the degree to which the camera movement is mapped to this Container.\r\n *\r\n * Please be aware that scroll factor values other than 1 are not taken in to consideration when\r\n * calculating physics collisions. Bodies always collide based on their world position, but changing\r\n * the scroll factor is a visual adjustment to where the textures are rendered, which can offset\r\n * them from physics bodies if not accounted for in your code.\r\n *\r\n * @name Phaser.GameObjects.Container#scrollFactorY\r\n * @type {number}\r\n * @default 1\r\n * @since 3.4.0\r\n */\r\n this.scrollFactorY = 1;\r\n\r\n this.initPostPipeline();\r\n\r\n this.setPosition(x, y);\r\n\r\n this.setBlendMode(BlendModes.SKIP_CHECK);\r\n\r\n if (children)\r\n {\r\n this.add(children);\r\n }\r\n },\r\n\r\n /**\r\n * Internal value to allow Containers to be used for input and physics.\r\n * Do not change this value. It has no effect other than to break things.\r\n *\r\n * @name Phaser.GameObjects.Container#originX\r\n * @type {number}\r\n * @readonly\r\n * @override\r\n * @since 3.4.0\r\n */\r\n originX: {\r\n\r\n get: function ()\r\n {\r\n return 0.5;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Internal value to allow Containers to be used for input and physics.\r\n * Do not change this value. It has no effect other than to break things.\r\n *\r\n * @name Phaser.GameObjects.Container#originY\r\n * @type {number}\r\n * @readonly\r\n * @override\r\n * @since 3.4.0\r\n */\r\n originY: {\r\n\r\n get: function ()\r\n {\r\n return 0.5;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Internal value to allow Containers to be used for input and physics.\r\n * Do not change this value. It has no effect other than to break things.\r\n *\r\n * @name Phaser.GameObjects.Container#displayOriginX\r\n * @type {number}\r\n * @readonly\r\n * @override\r\n * @since 3.4.0\r\n */\r\n displayOriginX: {\r\n\r\n get: function ()\r\n {\r\n return this.width * 0.5;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Internal value to allow Containers to be used for input and physics.\r\n * Do not change this value. It has no effect other than to break things.\r\n *\r\n * @name Phaser.GameObjects.Container#displayOriginY\r\n * @type {number}\r\n * @readonly\r\n * @override\r\n * @since 3.4.0\r\n */\r\n displayOriginY: {\r\n\r\n get: function ()\r\n {\r\n return this.height * 0.5;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Does this Container exclusively manage its children?\r\n *\r\n * The default is `true` which means a child added to this Container cannot\r\n * belong in another Container, which includes the Scene display list.\r\n *\r\n * If you disable this then this Container will no longer exclusively manage its children.\r\n * This allows you to create all kinds of interesting graphical effects, such as replicating\r\n * Game Objects without reparenting them all over the Scene.\r\n * However, doing so will prevent children from receiving any kind of input event or have\r\n * their physics bodies work by default, as they're no longer a single entity on the\r\n * display list, but are being replicated where-ever this Container is.\r\n *\r\n * @method Phaser.GameObjects.Container#setExclusive\r\n * @since 3.4.0\r\n *\r\n * @param {boolean} [value=true] - The exclusive state of this Container.\r\n *\r\n * @return {this} This Container.\r\n */\r\n setExclusive: function (value)\r\n {\r\n if (value === undefined) { value = true; }\r\n\r\n this.exclusive = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Gets the bounds of this Container. It works by iterating all children of the Container,\r\n * getting their respective bounds, and then working out a min-max rectangle from that.\r\n * It does not factor in if the children render or not, all are included.\r\n *\r\n * Some children are unable to return their bounds, such as Graphics objects, in which case\r\n * they are skipped.\r\n *\r\n * Depending on the quantity of children in this Container it could be a really expensive call,\r\n * so cache it and only poll it as needed.\r\n *\r\n * The values are stored and returned in a Rectangle object.\r\n *\r\n * @method Phaser.GameObjects.Container#getBounds\r\n * @since 3.4.0\r\n *\r\n * @param {Phaser.Geom.Rectangle} [output] - A Geom.Rectangle object to store the values in. If not provided a new Rectangle will be created.\r\n *\r\n * @return {Phaser.Geom.Rectangle} The values stored in the output object.\r\n */\r\n getBounds: function (output)\r\n {\r\n if (output === undefined) { output = new Rectangle(); }\r\n\r\n output.setTo(this.x, this.y, 0, 0);\r\n\r\n if (this.parentContainer)\r\n {\r\n var parentMatrix = this.parentContainer.getBoundsTransformMatrix();\r\n var transformedPosition = parentMatrix.transformPoint(this.x, this.y);\r\n\r\n output.setTo(transformedPosition.x, transformedPosition.y, 0, 0);\r\n }\r\n\r\n if (this.list.length > 0)\r\n {\r\n var children = this.list;\r\n var tempRect = new Rectangle();\r\n var hasSetFirst = false;\r\n\r\n output.setEmpty();\r\n\r\n for (var i = 0; i < children.length; i++)\r\n {\r\n var entry = children[i];\r\n\r\n if (entry.getBounds)\r\n {\r\n entry.getBounds(tempRect);\r\n\r\n if (!hasSetFirst)\r\n {\r\n output.setTo(tempRect.x, tempRect.y, tempRect.width, tempRect.height);\r\n hasSetFirst = true;\r\n }\r\n else\r\n {\r\n Union(tempRect, output, output);\r\n }\r\n }\r\n }\r\n }\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Internal add handler.\r\n *\r\n * @method Phaser.GameObjects.Container#addHandler\r\n * @private\r\n * @since 3.4.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that was just added to this Container.\r\n */\r\n addHandler: function (gameObject)\r\n {\r\n gameObject.once(Events.DESTROY, this.onChildDestroyed, this);\r\n\r\n if (this.exclusive)\r\n {\r\n if (gameObject.parentContainer)\r\n {\r\n gameObject.parentContainer.remove(gameObject);\r\n }\r\n\r\n gameObject.parentContainer = this;\r\n\r\n gameObject.removeFromDisplayList();\r\n\r\n gameObject.addedToScene();\r\n }\r\n },\r\n\r\n /**\r\n * Internal remove handler.\r\n *\r\n * @method Phaser.GameObjects.Container#removeHandler\r\n * @private\r\n * @since 3.4.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that was just removed from this Container.\r\n */\r\n removeHandler: function (gameObject)\r\n {\r\n gameObject.off(Events.DESTROY, this.remove, this);\r\n\r\n if (this.exclusive)\r\n {\r\n gameObject.parentContainer = null;\r\n\r\n gameObject.removedFromScene();\r\n\r\n gameObject.addToDisplayList();\r\n }\r\n },\r\n\r\n /**\r\n * Takes a Point-like object, such as a Vector2, Geom.Point or object with public x and y properties,\r\n * and transforms it into the space of this Container, then returns it in the output object.\r\n *\r\n * @method Phaser.GameObjects.Container#pointToContainer\r\n * @since 3.4.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} source - The Source Point to be transformed.\r\n * @param {Phaser.Types.Math.Vector2Like} [output] - A destination object to store the transformed point in. If none given a Vector2 will be created and returned.\r\n *\r\n * @return {Phaser.Types.Math.Vector2Like} The transformed point.\r\n */\r\n pointToContainer: function (source, output)\r\n {\r\n if (output === undefined) { output = new Vector2(); }\r\n\r\n if (this.parentContainer)\r\n {\r\n this.parentContainer.pointToContainer(source, output);\r\n }\r\n else\r\n {\r\n output.x = source.x;\r\n output.y = source.y;\r\n }\r\n\r\n var tempMatrix = tempTransformMatrix;\r\n\r\n // No need to loadIdentity because applyITRS overwrites every value anyway\r\n tempMatrix.applyITRS(this.x, this.y, this.rotation, this.scaleX, this.scaleY);\r\n\r\n tempMatrix.invert();\r\n\r\n tempMatrix.transformPoint(source.x, source.y, output);\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Returns the world transform matrix as used for Bounds checks.\r\n *\r\n * The returned matrix is temporal and shouldn't be stored.\r\n *\r\n * @method Phaser.GameObjects.Container#getBoundsTransformMatrix\r\n * @since 3.4.0\r\n *\r\n * @return {Phaser.GameObjects.Components.TransformMatrix} The world transform matrix.\r\n */\r\n getBoundsTransformMatrix: function ()\r\n {\r\n return this.getWorldTransformMatrix(tempTransformMatrix, this.localTransform);\r\n },\r\n\r\n /**\r\n * Adds the given Game Object, or array of Game Objects, to this Container.\r\n *\r\n * Each Game Object must be unique within the Container.\r\n *\r\n * @method Phaser.GameObjects.Container#add\r\n * @since 3.4.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} T\r\n * @genericUse {(T|T[])} - [child]\r\n *\r\n * @param {Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]} child - The Game Object, or array of Game Objects, to add to the Container.\r\n *\r\n * @return {this} This Container instance.\r\n */\r\n add: function (child)\r\n {\r\n ArrayUtils.Add(this.list, child, this.maxSize, this.addHandler, this);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds the given Game Object, or array of Game Objects, to this Container at the specified position.\r\n *\r\n * Existing Game Objects in the Container are shifted up.\r\n *\r\n * Each Game Object must be unique within the Container.\r\n *\r\n * @method Phaser.GameObjects.Container#addAt\r\n * @since 3.4.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} T\r\n * @genericUse {(T|T[])} - [child]\r\n *\r\n * @param {Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]} child - The Game Object, or array of Game Objects, to add to the Container.\r\n * @param {number} [index=0] - The position to insert the Game Object/s at.\r\n *\r\n * @return {this} This Container instance.\r\n */\r\n addAt: function (child, index)\r\n {\r\n ArrayUtils.AddAt(this.list, child, index, this.maxSize, this.addHandler, this);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns the Game Object at the given position in this Container.\r\n *\r\n * @method Phaser.GameObjects.Container#getAt\r\n * @since 3.4.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} T\r\n * @genericUse {T} - [$return]\r\n *\r\n * @param {number} index - The position to get the Game Object from.\r\n *\r\n * @return {?Phaser.GameObjects.GameObject} The Game Object at the specified index, or `null` if none found.\r\n */\r\n getAt: function (index)\r\n {\r\n return this.list[index];\r\n },\r\n\r\n /**\r\n * Returns the index of the given Game Object in this Container.\r\n *\r\n * @method Phaser.GameObjects.Container#getIndex\r\n * @since 3.4.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} T\r\n * @genericUse {T} - [child]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} child - The Game Object to search for in this Container.\r\n *\r\n * @return {number} The index of the Game Object in this Container, or -1 if not found.\r\n */\r\n getIndex: function (child)\r\n {\r\n return this.list.indexOf(child);\r\n },\r\n\r\n /**\r\n * Sort the contents of this Container so the items are in order based on the given property.\r\n * For example: `sort('alpha')` would sort the elements based on the value of their `alpha` property.\r\n *\r\n * @method Phaser.GameObjects.Container#sort\r\n * @since 3.4.0\r\n *\r\n * @param {string} property - The property to lexically sort by.\r\n * @param {function} [handler] - Provide your own custom handler function. Will receive 2 children which it should compare and return a boolean.\r\n *\r\n * @return {this} This Container instance.\r\n */\r\n sort: function (property, handler)\r\n {\r\n if (!property)\r\n {\r\n return this;\r\n }\r\n\r\n if (handler === undefined)\r\n {\r\n handler = function (childA, childB)\r\n {\r\n return childA[property] - childB[property];\r\n };\r\n }\r\n\r\n ArrayUtils.StableSort(this.list, handler);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Searches for the first instance of a child with its `name` property matching the given argument.\r\n * Should more than one child have the same name only the first is returned.\r\n *\r\n * @method Phaser.GameObjects.Container#getByName\r\n * @since 3.4.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} T\r\n * @genericUse {T} - [$return]\r\n *\r\n * @param {string} name - The name to search for.\r\n *\r\n * @return {?Phaser.GameObjects.GameObject} The first child with a matching name, or `null` if none were found.\r\n */\r\n getByName: function (name)\r\n {\r\n return ArrayUtils.GetFirst(this.list, 'name', name);\r\n },\r\n\r\n /**\r\n * Returns a random Game Object from this Container.\r\n *\r\n * @method Phaser.GameObjects.Container#getRandom\r\n * @since 3.4.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} T\r\n * @genericUse {T} - [$return]\r\n *\r\n * @param {number} [startIndex=0] - An optional start index.\r\n * @param {number} [length] - An optional length, the total number of elements (from the startIndex) to choose from.\r\n *\r\n * @return {?Phaser.GameObjects.GameObject} A random child from the Container, or `null` if the Container is empty.\r\n */\r\n getRandom: function (startIndex, length)\r\n {\r\n return ArrayUtils.GetRandom(this.list, startIndex, length);\r\n },\r\n\r\n /**\r\n * Gets the first Game Object in this Container.\r\n *\r\n * You can also specify a property and value to search for, in which case it will return the first\r\n * Game Object in this Container with a matching property and / or value.\r\n *\r\n * For example: `getFirst('visible', true)` would return the first Game Object that had its `visible` property set.\r\n *\r\n * You can limit the search to the `startIndex` - `endIndex` range.\r\n *\r\n * @method Phaser.GameObjects.Container#getFirst\r\n * @since 3.4.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} T\r\n * @genericUse {T} - [$return]\r\n *\r\n * @param {string} property - The property to test on each Game Object in the Container.\r\n * @param {*} value - The value to test the property against. Must pass a strict (`===`) comparison check.\r\n * @param {number} [startIndex=0] - An optional start index to search from.\r\n * @param {number} [endIndex=Container.length] - An optional end index to search up to (but not included)\r\n *\r\n * @return {?Phaser.GameObjects.GameObject} The first matching Game Object, or `null` if none was found.\r\n */\r\n getFirst: function (property, value, startIndex, endIndex)\r\n {\r\n return ArrayUtils.GetFirst(this.list, property, value, startIndex, endIndex);\r\n },\r\n\r\n /**\r\n * Returns all Game Objects in this Container.\r\n *\r\n * You can optionally specify a matching criteria using the `property` and `value` arguments.\r\n *\r\n * For example: `getAll('body')` would return only Game Objects that have a body property.\r\n *\r\n * You can also specify a value to compare the property to:\r\n *\r\n * `getAll('visible', true)` would return only Game Objects that have their visible property set to `true`.\r\n *\r\n * Optionally you can specify a start and end index. For example if this Container had 100 Game Objects,\r\n * and you set `startIndex` to 0 and `endIndex` to 50, it would return matches from only\r\n * the first 50 Game Objects.\r\n *\r\n * @method Phaser.GameObjects.Container#getAll\r\n * @since 3.4.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} T\r\n * @genericUse {T[]} - [$return]\r\n *\r\n * @param {string} [property] - The property to test on each Game Object in the Container.\r\n * @param {any} [value] - If property is set then the `property` must strictly equal this value to be included in the results.\r\n * @param {number} [startIndex=0] - An optional start index to search from.\r\n * @param {number} [endIndex=Container.length] - An optional end index to search up to (but not included)\r\n *\r\n * @return {Phaser.GameObjects.GameObject[]} An array of matching Game Objects from this Container.\r\n */\r\n getAll: function (property, value, startIndex, endIndex)\r\n {\r\n return ArrayUtils.GetAll(this.list, property, value, startIndex, endIndex);\r\n },\r\n\r\n /**\r\n * Returns the total number of Game Objects in this Container that have a property\r\n * matching the given value.\r\n *\r\n * For example: `count('visible', true)` would count all the elements that have their visible property set.\r\n *\r\n * You can optionally limit the operation to the `startIndex` - `endIndex` range.\r\n *\r\n * @method Phaser.GameObjects.Container#count\r\n * @since 3.4.0\r\n *\r\n * @param {string} property - The property to check.\r\n * @param {any} value - The value to check.\r\n * @param {number} [startIndex=0] - An optional start index to search from.\r\n * @param {number} [endIndex=Container.length] - An optional end index to search up to (but not included)\r\n *\r\n * @return {number} The total number of Game Objects in this Container with a property matching the given value.\r\n */\r\n count: function (property, value, startIndex, endIndex)\r\n {\r\n return ArrayUtils.CountAllMatching(this.list, property, value, startIndex, endIndex);\r\n },\r\n\r\n /**\r\n * Swaps the position of two Game Objects in this Container.\r\n * Both Game Objects must belong to this Container.\r\n *\r\n * @method Phaser.GameObjects.Container#swap\r\n * @since 3.4.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} T\r\n * @genericUse {T} - [child1,child2]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} child1 - The first Game Object to swap.\r\n * @param {Phaser.GameObjects.GameObject} child2 - The second Game Object to swap.\r\n *\r\n * @return {this} This Container instance.\r\n */\r\n swap: function (child1, child2)\r\n {\r\n ArrayUtils.Swap(this.list, child1, child2);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Moves a Game Object to a new position within this Container.\r\n *\r\n * The Game Object must already be a child of this Container.\r\n *\r\n * The Game Object is removed from its old position and inserted into the new one.\r\n * Therefore the Container size does not change. Other children will change position accordingly.\r\n *\r\n * @method Phaser.GameObjects.Container#moveTo\r\n * @since 3.4.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} T\r\n * @genericUse {T} - [child]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} child - The Game Object to move.\r\n * @param {number} index - The new position of the Game Object in this Container.\r\n *\r\n * @return {this} This Container instance.\r\n */\r\n moveTo: function (child, index)\r\n {\r\n ArrayUtils.MoveTo(this.list, child, index);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Moves a Game Object above another one within this Container.\r\n * If the Game Object is already above the other, it isn't moved.\r\n *\r\n * These 2 Game Objects must already be children of this Container.\r\n *\r\n * @method Phaser.GameObjects.Container#moveAbove\r\n * @since 3.55.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} T\r\n * @genericUse {T} - [child1,child2]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} child1 - The Game Object to move above base Game Object.\r\n * @param {Phaser.GameObjects.GameObject} child2 - The base Game Object.\r\n *\r\n * @return {this} This Container instance.\r\n */\r\n moveAbove: function (child1, child2)\r\n {\r\n ArrayUtils.MoveAbove(this.list, child1, child2);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Moves a Game Object below another one within this Container.\r\n * If the Game Object is already below the other, it isn't moved.\r\n *\r\n * These 2 Game Objects must already be children of this Container.\r\n *\r\n * @method Phaser.GameObjects.Container#moveBelow\r\n * @since 3.55.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} T\r\n * @genericUse {T} - [child1,child2]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} child1 - The Game Object to move below base Game Object.\r\n * @param {Phaser.GameObjects.GameObject} child2 - The base Game Object.\r\n *\r\n * @return {this} This Container instance.\r\n */\r\n moveBelow: function (child1, child2)\r\n {\r\n ArrayUtils.MoveBelow(this.list, child1, child2);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes the given Game Object, or array of Game Objects, from this Container.\r\n *\r\n * The Game Objects must already be children of this Container.\r\n *\r\n * You can also optionally call `destroy` on each Game Object that is removed from the Container.\r\n *\r\n * @method Phaser.GameObjects.Container#remove\r\n * @since 3.4.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} T\r\n * @genericUse {(T|T[])} - [child]\r\n *\r\n * @param {Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]} child - The Game Object, or array of Game Objects, to be removed from the Container.\r\n * @param {boolean} [destroyChild=false] - Optionally call `destroy` on each child successfully removed from this Container.\r\n *\r\n * @return {this} This Container instance.\r\n */\r\n remove: function (child, destroyChild)\r\n {\r\n var removed = ArrayUtils.Remove(this.list, child, this.removeHandler, this);\r\n\r\n if (destroyChild && removed)\r\n {\r\n if (!Array.isArray(removed))\r\n {\r\n removed = [ removed ];\r\n }\r\n\r\n for (var i = 0; i < removed.length; i++)\r\n {\r\n removed[i].destroy();\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes the Game Object at the given position in this Container.\r\n *\r\n * You can also optionally call `destroy` on the Game Object, if one is found.\r\n *\r\n * @method Phaser.GameObjects.Container#removeAt\r\n * @since 3.4.0\r\n *\r\n * @param {number} index - The index of the Game Object to be removed.\r\n * @param {boolean} [destroyChild=false] - Optionally call `destroy` on the Game Object if successfully removed from this Container.\r\n *\r\n * @return {this} This Container instance.\r\n */\r\n removeAt: function (index, destroyChild)\r\n {\r\n var removed = ArrayUtils.RemoveAt(this.list, index, this.removeHandler, this);\r\n\r\n if (destroyChild && removed)\r\n {\r\n removed.destroy();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes the Game Objects between the given positions in this Container.\r\n *\r\n * You can also optionally call `destroy` on each Game Object that is removed from the Container.\r\n *\r\n * @method Phaser.GameObjects.Container#removeBetween\r\n * @since 3.4.0\r\n *\r\n * @param {number} [startIndex=0] - An optional start index to search from.\r\n * @param {number} [endIndex=Container.length] - An optional end index to search up to (but not included)\r\n * @param {boolean} [destroyChild=false] - Optionally call `destroy` on each Game Object successfully removed from this Container.\r\n *\r\n * @return {this} This Container instance.\r\n */\r\n removeBetween: function (startIndex, endIndex, destroyChild)\r\n {\r\n var removed = ArrayUtils.RemoveBetween(this.list, startIndex, endIndex, this.removeHandler, this);\r\n\r\n if (destroyChild)\r\n {\r\n for (var i = 0; i < removed.length; i++)\r\n {\r\n removed[i].destroy();\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes all Game Objects from this Container.\r\n *\r\n * You can also optionally call `destroy` on each Game Object that is removed from the Container.\r\n *\r\n * @method Phaser.GameObjects.Container#removeAll\r\n * @since 3.4.0\r\n *\r\n * @param {boolean} [destroyChild=false] - Optionally call `destroy` on each Game Object successfully removed from this Container.\r\n *\r\n * @return {this} This Container instance.\r\n */\r\n removeAll: function (destroyChild)\r\n {\r\n var list = this.list;\r\n\r\n if (destroyChild)\r\n {\r\n for (var i = 0; i < list.length; i++)\r\n {\r\n if (list[i] && list[i].scene)\r\n {\r\n list[i].off(Events.DESTROY, this.onChildDestroyed, this);\r\n\r\n list[i].destroy();\r\n }\r\n }\r\n\r\n this.list = [];\r\n }\r\n else\r\n {\r\n ArrayUtils.RemoveBetween(list, 0, list.length, this.removeHandler, this);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Brings the given Game Object to the top of this Container.\r\n * This will cause it to render on-top of any other objects in the Container.\r\n *\r\n * @method Phaser.GameObjects.Container#bringToTop\r\n * @since 3.4.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} T\r\n * @genericUse {T} - [child]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} child - The Game Object to bring to the top of the Container.\r\n *\r\n * @return {this} This Container instance.\r\n */\r\n bringToTop: function (child)\r\n {\r\n ArrayUtils.BringToTop(this.list, child);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sends the given Game Object to the bottom of this Container.\r\n * This will cause it to render below any other objects in the Container.\r\n *\r\n * @method Phaser.GameObjects.Container#sendToBack\r\n * @since 3.4.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} T\r\n * @genericUse {T} - [child]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} child - The Game Object to send to the bottom of the Container.\r\n *\r\n * @return {this} This Container instance.\r\n */\r\n sendToBack: function (child)\r\n {\r\n ArrayUtils.SendToBack(this.list, child);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Moves the given Game Object up one place in this Container, unless it's already at the top.\r\n *\r\n * @method Phaser.GameObjects.Container#moveUp\r\n * @since 3.4.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} T\r\n * @genericUse {T} - [child]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} child - The Game Object to be moved in the Container.\r\n *\r\n * @return {this} This Container instance.\r\n */\r\n moveUp: function (child)\r\n {\r\n ArrayUtils.MoveUp(this.list, child);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Moves the given Game Object down one place in this Container, unless it's already at the bottom.\r\n *\r\n * @method Phaser.GameObjects.Container#moveDown\r\n * @since 3.4.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} T\r\n * @genericUse {T} - [child]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} child - The Game Object to be moved in the Container.\r\n *\r\n * @return {this} This Container instance.\r\n */\r\n moveDown: function (child)\r\n {\r\n ArrayUtils.MoveDown(this.list, child);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Reverses the order of all Game Objects in this Container.\r\n *\r\n * @method Phaser.GameObjects.Container#reverse\r\n * @since 3.4.0\r\n *\r\n * @return {this} This Container instance.\r\n */\r\n reverse: function ()\r\n {\r\n this.list.reverse();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Shuffles the all Game Objects in this Container using the Fisher-Yates implementation.\r\n *\r\n * @method Phaser.GameObjects.Container#shuffle\r\n * @since 3.4.0\r\n *\r\n * @return {this} This Container instance.\r\n */\r\n shuffle: function ()\r\n {\r\n ArrayUtils.Shuffle(this.list);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Replaces a Game Object in this Container with the new Game Object.\r\n * The new Game Object cannot already be a child of this Container.\r\n *\r\n * @method Phaser.GameObjects.Container#replace\r\n * @since 3.4.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} T\r\n * @genericUse {T} - [oldChild,newChild]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} oldChild - The Game Object in this Container that will be replaced.\r\n * @param {Phaser.GameObjects.GameObject} newChild - The Game Object to be added to this Container.\r\n * @param {boolean} [destroyChild=false] - Optionally call `destroy` on the Game Object if successfully removed from this Container.\r\n *\r\n * @return {this} This Container instance.\r\n */\r\n replace: function (oldChild, newChild, destroyChild)\r\n {\r\n var moved = ArrayUtils.Replace(this.list, oldChild, newChild);\r\n\r\n if (moved)\r\n {\r\n this.addHandler(newChild);\r\n this.removeHandler(oldChild);\r\n\r\n if (destroyChild)\r\n {\r\n oldChild.destroy();\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns `true` if the given Game Object is a direct child of this Container.\r\n *\r\n * This check does not scan nested Containers.\r\n *\r\n * @method Phaser.GameObjects.Container#exists\r\n * @since 3.4.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} T\r\n * @genericUse {T} - [child]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} child - The Game Object to check for within this Container.\r\n *\r\n * @return {boolean} True if the Game Object is an immediate child of this Container, otherwise false.\r\n */\r\n exists: function (child)\r\n {\r\n return (this.list.indexOf(child) > -1);\r\n },\r\n\r\n /**\r\n * Sets the property to the given value on all Game Objects in this Container.\r\n *\r\n * Optionally you can specify a start and end index. For example if this Container had 100 Game Objects,\r\n * and you set `startIndex` to 0 and `endIndex` to 50, it would return matches from only\r\n * the first 50 Game Objects.\r\n *\r\n * @method Phaser.GameObjects.Container#setAll\r\n * @since 3.4.0\r\n *\r\n * @param {string} property - The property that must exist on the Game Object.\r\n * @param {any} value - The value to get the property to.\r\n * @param {number} [startIndex=0] - An optional start index to search from.\r\n * @param {number} [endIndex=Container.length] - An optional end index to search up to (but not included)\r\n *\r\n * @return {this} This Container instance.\r\n */\r\n setAll: function (property, value, startIndex, endIndex)\r\n {\r\n ArrayUtils.SetAll(this.list, property, value, startIndex, endIndex);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * @callback EachContainerCallback\r\n * @generic I - [item]\r\n *\r\n * @param {*} item - The child Game Object of the Container.\r\n * @param {...*} [args] - Additional arguments that will be passed to the callback, after the child.\r\n */\r\n\r\n /**\r\n * Passes all Game Objects in this Container to the given callback.\r\n *\r\n * A copy of the Container is made before passing each entry to your callback.\r\n * This protects against the callback itself modifying the Container.\r\n *\r\n * If you know for sure that the callback will not change the size of this Container\r\n * then you can use the more performant `Container.iterate` method instead.\r\n *\r\n * @method Phaser.GameObjects.Container#each\r\n * @since 3.4.0\r\n *\r\n * @param {function} callback - The function to call.\r\n * @param {object} [context] - Value to use as `this` when executing callback.\r\n * @param {...*} [args] - Additional arguments that will be passed to the callback, after the child.\r\n *\r\n * @return {this} This Container instance.\r\n */\r\n each: function (callback, context)\r\n {\r\n var args = [ null ];\r\n var i;\r\n var temp = this.list.slice();\r\n var len = temp.length;\r\n\r\n for (i = 2; i < arguments.length; i++)\r\n {\r\n args.push(arguments[i]);\r\n }\r\n\r\n for (i = 0; i < len; i++)\r\n {\r\n args[0] = temp[i];\r\n\r\n callback.apply(context, args);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Passes all Game Objects in this Container to the given callback.\r\n *\r\n * Only use this method when you absolutely know that the Container will not be modified during\r\n * the iteration, i.e. by removing or adding to its contents.\r\n *\r\n * @method Phaser.GameObjects.Container#iterate\r\n * @since 3.4.0\r\n *\r\n * @param {function} callback - The function to call.\r\n * @param {object} [context] - Value to use as `this` when executing callback.\r\n * @param {...*} [args] - Additional arguments that will be passed to the callback, after the child.\r\n *\r\n * @return {this} This Container instance.\r\n */\r\n iterate: function (callback, context)\r\n {\r\n var args = [ null ];\r\n var i;\r\n\r\n for (i = 2; i < arguments.length; i++)\r\n {\r\n args.push(arguments[i]);\r\n }\r\n\r\n for (i = 0; i < this.list.length; i++)\r\n {\r\n args[0] = this.list[i];\r\n\r\n callback.apply(context, args);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the scroll factor of this Container and optionally all of its children.\r\n *\r\n * The scroll factor controls the influence of the movement of a Camera upon this Game Object.\r\n *\r\n * When a camera scrolls it will change the location at which this Game Object is rendered on-screen.\r\n * It does not change the Game Objects actual position values.\r\n *\r\n * A value of 1 means it will move exactly in sync with a camera.\r\n * A value of 0 means it will not move at all, even if the camera moves.\r\n * Other values control the degree to which the camera movement is mapped to this Game Object.\r\n *\r\n * Please be aware that scroll factor values other than 1 are not taken in to consideration when\r\n * calculating physics collisions. Bodies always collide based on their world position, but changing\r\n * the scroll factor is a visual adjustment to where the textures are rendered, which can offset\r\n * them from physics bodies if not accounted for in your code.\r\n *\r\n * @method Phaser.GameObjects.Container#setScrollFactor\r\n * @since 3.4.0\r\n *\r\n * @param {number} x - The horizontal scroll factor of this Game Object.\r\n * @param {number} [y=x] - The vertical scroll factor of this Game Object. If not set it will use the `x` value.\r\n * @param {boolean} [updateChildren=false] - Apply this scrollFactor to all Container children as well?\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setScrollFactor: function (x, y, updateChildren)\r\n {\r\n if (y === undefined) { y = x; }\r\n if (updateChildren === undefined) { updateChildren = false; }\r\n\r\n this.scrollFactorX = x;\r\n this.scrollFactorY = y;\r\n\r\n if (updateChildren)\r\n {\r\n ArrayUtils.SetAll(this.list, 'scrollFactorX', x);\r\n ArrayUtils.SetAll(this.list, 'scrollFactorY', y);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The number of Game Objects inside this Container.\r\n *\r\n * @name Phaser.GameObjects.Container#length\r\n * @type {number}\r\n * @readonly\r\n * @since 3.4.0\r\n */\r\n length: {\r\n\r\n get: function ()\r\n {\r\n return this.list.length;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Returns the first Game Object within the Container, or `null` if it is empty.\r\n *\r\n * You can move the cursor by calling `Container.next` and `Container.previous`.\r\n *\r\n * @name Phaser.GameObjects.Container#first\r\n * @type {?Phaser.GameObjects.GameObject}\r\n * @readonly\r\n * @since 3.4.0\r\n */\r\n first: {\r\n\r\n get: function ()\r\n {\r\n this.position = 0;\r\n\r\n if (this.list.length > 0)\r\n {\r\n return this.list[0];\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Returns the last Game Object within the Container, or `null` if it is empty.\r\n *\r\n * You can move the cursor by calling `Container.next` and `Container.previous`.\r\n *\r\n * @name Phaser.GameObjects.Container#last\r\n * @type {?Phaser.GameObjects.GameObject}\r\n * @readonly\r\n * @since 3.4.0\r\n */\r\n last: {\r\n\r\n get: function ()\r\n {\r\n if (this.list.length > 0)\r\n {\r\n this.position = this.list.length - 1;\r\n\r\n return this.list[this.position];\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Returns the next Game Object within the Container, or `null` if it is empty.\r\n *\r\n * You can move the cursor by calling `Container.next` and `Container.previous`.\r\n *\r\n * @name Phaser.GameObjects.Container#next\r\n * @type {?Phaser.GameObjects.GameObject}\r\n * @readonly\r\n * @since 3.4.0\r\n */\r\n next: {\r\n\r\n get: function ()\r\n {\r\n if (this.position < this.list.length)\r\n {\r\n this.position++;\r\n\r\n return this.list[this.position];\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Returns the previous Game Object within the Container, or `null` if it is empty.\r\n *\r\n * You can move the cursor by calling `Container.next` and `Container.previous`.\r\n *\r\n * @name Phaser.GameObjects.Container#previous\r\n * @type {?Phaser.GameObjects.GameObject}\r\n * @readonly\r\n * @since 3.4.0\r\n */\r\n previous: {\r\n\r\n get: function ()\r\n {\r\n if (this.position > 0)\r\n {\r\n this.position--;\r\n\r\n return this.list[this.position];\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Internal destroy handler, called as part of the destroy process.\r\n *\r\n * @method Phaser.GameObjects.Container#preDestroy\r\n * @protected\r\n * @since 3.9.0\r\n */\r\n preDestroy: function ()\r\n {\r\n this.removeAll(!!this.exclusive);\r\n\r\n this.localTransform.destroy();\r\n\r\n this.list = [];\r\n },\r\n\r\n /**\r\n * Internal handler, called when a child is destroyed.\r\n *\r\n * @method Phaser.GameObjects.Container#onChildDestroyed\r\n * @protected\r\n * @since 3.80.0\r\n */\r\n onChildDestroyed: function (gameObject)\r\n {\r\n ArrayUtils.Remove(this.list, gameObject);\r\n\r\n if (this.exclusive)\r\n {\r\n gameObject.parentContainer = null;\r\n\r\n gameObject.removedFromScene();\r\n }\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Container;\r\n\n\n/***/ }),\n\n/***/ 53584:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Felipe Alfonso <@bitnenfer>\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Container#renderCanvas\r\n * @since 3.4.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.Container} container - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar ContainerCanvasRenderer = function (renderer, container, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(container);\r\n\r\n var children = container.list;\r\n\r\n if (children.length === 0)\r\n {\r\n return;\r\n }\r\n\r\n var transformMatrix = container.localTransform;\r\n\r\n if (parentMatrix)\r\n {\r\n transformMatrix.loadIdentity();\r\n transformMatrix.multiply(parentMatrix);\r\n transformMatrix.translate(container.x, container.y);\r\n transformMatrix.rotate(container.rotation);\r\n transformMatrix.scale(container.scaleX, container.scaleY);\r\n }\r\n else\r\n {\r\n transformMatrix.applyITRS(container.x, container.y, container.rotation, container.scaleX, container.scaleY);\r\n }\r\n\r\n var containerHasBlendMode = (container.blendMode !== -1);\r\n\r\n if (!containerHasBlendMode)\r\n {\r\n // If Container is SKIP_TEST then set blend mode to be Normal\r\n renderer.setBlendMode(0);\r\n }\r\n\r\n var alpha = container._alpha;\r\n var scrollFactorX = container.scrollFactorX;\r\n var scrollFactorY = container.scrollFactorY;\r\n\r\n if (container.mask)\r\n {\r\n container.mask.preRenderCanvas(renderer, null, camera);\r\n }\r\n\r\n for (var i = 0; i < children.length; i++)\r\n {\r\n var child = children[i];\r\n\r\n if (!child.willRender(camera))\r\n {\r\n continue;\r\n }\r\n\r\n var childAlpha = child.alpha;\r\n var childScrollFactorX = child.scrollFactorX;\r\n var childScrollFactorY = child.scrollFactorY;\r\n\r\n if (!containerHasBlendMode && child.blendMode !== renderer.currentBlendMode)\r\n {\r\n // If Container doesn't have its own blend mode, then a child can have one\r\n renderer.setBlendMode(child.blendMode);\r\n }\r\n\r\n // Set parent values\r\n child.setScrollFactor(childScrollFactorX * scrollFactorX, childScrollFactorY * scrollFactorY);\r\n child.setAlpha(childAlpha * alpha);\r\n\r\n // Render\r\n child.renderCanvas(renderer, child, camera, transformMatrix);\r\n\r\n // Restore original values\r\n child.setAlpha(childAlpha);\r\n child.setScrollFactor(childScrollFactorX, childScrollFactorY);\r\n }\r\n\r\n if (container.mask)\r\n {\r\n container.mask.postRenderCanvas(renderer);\r\n }\r\n};\r\n\r\nmodule.exports = ContainerCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 77143:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Felipe Alfonso <@bitnenfer>\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BuildGameObject = __webpack_require__(25305);\r\nvar Container = __webpack_require__(31559);\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\nvar GetFastValue = __webpack_require__(95540);\r\n\r\n/**\r\n * Creates a new Container Game Object and returns it.\r\n *\r\n * Note: This method will only be available if the Container Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#container\r\n * @since 3.4.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Container.ContainerConfig} config - The configuration object this Game Object will use to create itself.\r\n * @param {boolean} [addToScene] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.\r\n *\r\n * @return {Phaser.GameObjects.Container} The Game Object that was created.\r\n */\r\nGameObjectCreator.register('container', function (config, addToScene)\r\n{\r\n if (config === undefined) { config = {}; }\r\n\r\n var x = GetAdvancedValue(config, 'x', 0);\r\n var y = GetAdvancedValue(config, 'y', 0);\r\n var children = GetFastValue(config, 'children', null);\r\n\r\n var container = new Container(this.scene, x, y, children);\r\n\r\n if (addToScene !== undefined)\r\n {\r\n config.add = addToScene;\r\n }\r\n\r\n BuildGameObject(this.scene, container, config);\r\n\r\n return container;\r\n});\r\n\n\n/***/ }),\n\n/***/ 24961:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Felipe Alfonso <@bitnenfer>\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Container = __webpack_require__(31559);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * Creates a new Container Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Container Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#container\r\n * @since 3.4.0\r\n *\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]} [children] - An optional array of Game Objects to add to this Container.\r\n *\r\n * @return {Phaser.GameObjects.Container} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('container', function (x, y, children)\r\n{\r\n return this.displayList.add(new Container(this.scene, x, y, children));\r\n});\r\n\n\n/***/ }),\n\n/***/ 29959:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Felipe Alfonso <@bitnenfer>\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(72249);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(53584);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 72249:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Felipe Alfonso <@bitnenfer>\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Container#renderWebGL\r\n * @since 3.4.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Container} container - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar ContainerWebGLRenderer = function (renderer, container, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(container);\r\n\r\n var children = container.list;\r\n var childCount = children.length;\r\n\r\n if (childCount === 0)\r\n {\r\n return;\r\n }\r\n\r\n var transformMatrix = container.localTransform;\r\n\r\n if (parentMatrix)\r\n {\r\n transformMatrix.loadIdentity();\r\n transformMatrix.multiply(parentMatrix);\r\n transformMatrix.translate(container.x, container.y);\r\n transformMatrix.rotate(container.rotation);\r\n transformMatrix.scale(container.scaleX, container.scaleY);\r\n }\r\n else\r\n {\r\n transformMatrix.applyITRS(container.x, container.y, container.rotation, container.scaleX, container.scaleY);\r\n }\r\n\r\n renderer.pipelines.preBatch(container);\r\n\r\n var containerHasBlendMode = (container.blendMode !== -1);\r\n\r\n if (!containerHasBlendMode)\r\n {\r\n // If Container is SKIP_TEST then set blend mode to be Normal\r\n renderer.setBlendMode(0);\r\n }\r\n\r\n var alpha = container.alpha;\r\n\r\n var scrollFactorX = container.scrollFactorX;\r\n var scrollFactorY = container.scrollFactorY;\r\n\r\n for (var i = 0; i < childCount; i++)\r\n {\r\n var child = children[i];\r\n\r\n if (!child.willRender(camera))\r\n {\r\n continue;\r\n }\r\n\r\n var childAlphaTopLeft;\r\n var childAlphaTopRight;\r\n var childAlphaBottomLeft;\r\n var childAlphaBottomRight;\r\n\r\n if (child.alphaTopLeft !== undefined)\r\n {\r\n childAlphaTopLeft = child.alphaTopLeft;\r\n childAlphaTopRight = child.alphaTopRight;\r\n childAlphaBottomLeft = child.alphaBottomLeft;\r\n childAlphaBottomRight = child.alphaBottomRight;\r\n }\r\n else\r\n {\r\n var childAlpha = child.alpha;\r\n\r\n childAlphaTopLeft = childAlpha;\r\n childAlphaTopRight = childAlpha;\r\n childAlphaBottomLeft = childAlpha;\r\n childAlphaBottomRight = childAlpha;\r\n }\r\n\r\n var childScrollFactorX = child.scrollFactorX;\r\n var childScrollFactorY = child.scrollFactorY;\r\n\r\n if (!containerHasBlendMode && child.blendMode !== renderer.currentBlendMode)\r\n {\r\n // If Container doesn't have its own blend mode, then a child can have one\r\n renderer.setBlendMode(child.blendMode);\r\n }\r\n\r\n var mask = child.mask;\r\n\r\n if (mask)\r\n {\r\n mask.preRenderWebGL(renderer, child, camera);\r\n }\r\n\r\n var type = child.type;\r\n\r\n if (type !== renderer.currentType)\r\n {\r\n renderer.newType = true;\r\n renderer.currentType = type;\r\n }\r\n\r\n renderer.nextTypeMatch = (i < childCount - 1) ? (children[i + 1].type === renderer.currentType) : false;\r\n\r\n // Set parent values\r\n child.setScrollFactor(childScrollFactorX * scrollFactorX, childScrollFactorY * scrollFactorY);\r\n\r\n child.setAlpha(childAlphaTopLeft * alpha, childAlphaTopRight * alpha, childAlphaBottomLeft * alpha, childAlphaBottomRight * alpha);\r\n\r\n // Render\r\n child.renderWebGL(renderer, child, camera, transformMatrix, container);\r\n\r\n // Restore original values\r\n\r\n child.setAlpha(childAlphaTopLeft, childAlphaTopRight, childAlphaBottomLeft, childAlphaBottomRight);\r\n\r\n child.setScrollFactor(childScrollFactorX, childScrollFactorY);\r\n\r\n if (mask)\r\n {\r\n mask.postRenderWebGL(renderer, camera);\r\n }\r\n\r\n renderer.newType = false;\r\n }\r\n\r\n renderer.pipelines.postBatch(container);\r\n};\r\n\r\nmodule.exports = ContainerWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 47407:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Phaser Blend Modes to CSS Blend Modes Map.\r\n *\r\n * @name Phaser.CSSBlendModes\r\n * @ignore\r\n * @enum {string}\r\n * @memberof Phaser\r\n * @readonly\r\n * @since 3.12.0\r\n */\r\n\r\nmodule.exports = [\r\n 'normal',\r\n 'multiply',\r\n 'multiply',\r\n 'screen',\r\n 'overlay',\r\n 'darken',\r\n 'lighten',\r\n 'color-dodge',\r\n 'color-burn',\r\n 'hard-light',\r\n 'soft-light',\r\n 'difference',\r\n 'exclusion',\r\n 'hue',\r\n 'saturation',\r\n 'color',\r\n 'luminosity'\r\n];\r\n\n\n/***/ }),\n\n/***/ 3069:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar DOMElementRender = __webpack_require__(441);\r\nvar GameObject = __webpack_require__(95643);\r\nvar IsPlainObject = __webpack_require__(41212);\r\nvar RemoveFromDOM = __webpack_require__(35846);\r\nvar SCENE_EVENTS = __webpack_require__(44594);\r\nvar Vector4 = __webpack_require__(61369);\r\n\r\n/**\r\n * @classdesc\r\n * DOM Element Game Objects are a way to control and manipulate HTML Elements over the top of your game.\r\n *\r\n * In order for DOM Elements to display you have to enable them by adding the following to your game\r\n * configuration object:\r\n *\r\n * ```javascript\r\n * dom {\r\n * createContainer: true\r\n * }\r\n * ```\r\n *\r\n * You must also have a parent container for Phaser. This is specified by the `parent` property in the\r\n * game config.\r\n *\r\n * When these two things are added, Phaser will automatically create a DOM Container div that is positioned\r\n * over the top of the game canvas. This div is sized to match the canvas, and if the canvas size changes,\r\n * as a result of settings within the Scale Manager, the dom container is resized accordingly.\r\n *\r\n * If you have not already done so, you have to provide a `parent` in the Game Configuration, or the DOM\r\n * Container will fail to be created.\r\n *\r\n * You can create a DOM Element by either passing in DOMStrings, or by passing in a reference to an existing\r\n * Element that you wish to be placed under the control of Phaser. For example:\r\n *\r\n * ```javascript\r\n * this.add.dom(x, y, 'div', 'background-color: lime; width: 220px; height: 100px; font: 48px Arial', 'Phaser');\r\n * ```\r\n *\r\n * The above code will insert a div element into the DOM Container at the given x/y coordinate. The DOMString in\r\n * the 4th argument sets the initial CSS style of the div and the final argument is the inner text. In this case,\r\n * it will create a lime colored div that is 220px by 100px in size with the text Phaser in it, in an Arial font.\r\n *\r\n * You should nearly always, without exception, use explicitly sized HTML Elements, in order to fully control\r\n * alignment and positioning of the elements next to regular game content.\r\n *\r\n * Rather than specify the CSS and HTML directly you can use the `load.html` File Loader to load it into the\r\n * cache and then use the `createFromCache` method instead. You can also use `createFromHTML` and various other\r\n * methods available in this class to help construct your elements.\r\n *\r\n * Once the element has been created you can then control it like you would any other Game Object. You can set its\r\n * position, scale, rotation, alpha and other properties. It will move as the main Scene Camera moves and be clipped\r\n * at the edge of the canvas. It's important to remember some limitations of DOM Elements: The obvious one is that\r\n * they appear above or below your game canvas. You cannot blend them into the display list, meaning you cannot have\r\n * a DOM Element, then a Sprite, then another DOM Element behind it.\r\n *\r\n * They also cannot be enabled for input. To do that, you have to use the `addListener` method to add native event\r\n * listeners directly. The final limitation is to do with cameras. The DOM Container is sized to match the game canvas\r\n * entirely and clipped accordingly. DOM Elements respect camera scrolling and scrollFactor settings, but if you\r\n * change the size of the camera so it no longer matches the size of the canvas, they won't be clipped accordingly.\r\n *\r\n * DOM Game Objects can be added to a Phaser Container, however you should only nest them **one level deep**.\r\n * Any further down the chain and they will ignore all root container properties.\r\n *\r\n * Also, all DOM Elements are inserted into the same DOM Container, regardless of which Scene they are created in.\r\n *\r\n * Note that you should only have DOM Elements in a Scene with a _single_ Camera. If you require multiple cameras,\r\n * use parallel scenes to achieve this.\r\n *\r\n * DOM Elements are a powerful way to align native HTML with your Phaser Game Objects. For example, you can insert\r\n * a login form for a multiplayer game directly into your title screen. Or a text input box for a highscore table.\r\n * Or a banner ad from a 3rd party service. Or perhaps you'd like to use them for high resolution text display and\r\n * UI. The choice is up to you, just remember that you're dealing with standard HTML and CSS floating over the top\r\n * of your game, and should treat it accordingly.\r\n *\r\n * @class DOMElement\r\n * @extends Phaser.GameObjects.GameObject\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.17.0\r\n *\r\n * @extends Phaser.GameObjects.Components.AlphaSingle\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.Origin\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} [x=0] - The horizontal position of this DOM Element in the world.\r\n * @param {number} [y=0] - The vertical position of this DOM Element in the world.\r\n * @param {(Element|string)} [element] - An existing DOM element, or a string. If a string starting with a # it will do a `getElementById` look-up on the string (minus the hash). Without a hash, it represents the type of element to create, i.e. 'div'.\r\n * @param {(string|any)} [style] - If a string, will be set directly as the elements `style` property value. If a plain object, will be iterated and the values transferred. In both cases the values replacing whatever CSS styles may have been previously set.\r\n * @param {string} [innerText] - If given, will be set directly as the elements `innerText` property value, replacing whatever was there before.\r\n */\r\nvar DOMElement = new Class({\r\n\r\n Extends: GameObject,\r\n\r\n Mixins: [\r\n Components.AlphaSingle,\r\n Components.BlendMode,\r\n Components.Depth,\r\n Components.Origin,\r\n Components.ScrollFactor,\r\n Components.Transform,\r\n Components.Visible,\r\n DOMElementRender\r\n ],\r\n\r\n initialize:\r\n\r\n function DOMElement (scene, x, y, element, style, innerText)\r\n {\r\n GameObject.call(this, scene, 'DOMElement');\r\n\r\n /**\r\n * A reference to the parent DOM Container that the Game instance created when it started.\r\n *\r\n * @name Phaser.GameObjects.DOMElement#parent\r\n * @type {Element}\r\n * @since 3.17.0\r\n */\r\n this.parent = scene.sys.game.domContainer;\r\n\r\n /**\r\n * A reference to the HTML Cache.\r\n *\r\n * @name Phaser.GameObjects.DOMElement#cache\r\n * @type {Phaser.Cache.BaseCache}\r\n * @since 3.17.0\r\n */\r\n this.cache = scene.sys.cache.html;\r\n\r\n /**\r\n * The actual DOM Element that this Game Object is bound to. For example, if you've created a `
`\r\n * then this property is a direct reference to that element within the dom.\r\n *\r\n * @name Phaser.GameObjects.DOMElement#node\r\n * @type {Element}\r\n * @since 3.17.0\r\n */\r\n this.node;\r\n\r\n /**\r\n * By default a DOM Element will have its transform, display, opacity, zIndex and blend mode properties\r\n * updated when its rendered. If, for some reason, you don't want any of these changed other than the\r\n * CSS transform, then set this flag to `true`. When `true` only the CSS Transform is applied and it's\r\n * up to you to keep track of and set the other properties as required.\r\n *\r\n * This can be handy if, for example, you've a nested DOM Element and you don't want the opacity to be\r\n * picked-up by any of its children.\r\n *\r\n * @name Phaser.GameObjects.DOMElement#transformOnly\r\n * @type {boolean}\r\n * @since 3.17.0\r\n */\r\n this.transformOnly = false;\r\n\r\n /**\r\n * The angle, in radians, by which to skew the DOM Element on the horizontal axis.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/CSS/transform\r\n *\r\n * @name Phaser.GameObjects.DOMElement#skewX\r\n * @type {number}\r\n * @since 3.17.0\r\n */\r\n this.skewX = 0;\r\n\r\n /**\r\n * The angle, in radians, by which to skew the DOM Element on the vertical axis.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/CSS/transform\r\n *\r\n * @name Phaser.GameObjects.DOMElement#skewY\r\n * @type {number}\r\n * @since 3.17.0\r\n */\r\n this.skewY = 0;\r\n\r\n /**\r\n * A Vector4 that contains the 3D rotation of this DOM Element around a fixed axis in 3D space.\r\n *\r\n * All values in the Vector4 are treated as degrees, unless the `rotate3dAngle` property is changed.\r\n *\r\n * For more details see the following MDN page:\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/rotate3d\r\n *\r\n * @name Phaser.GameObjects.DOMElement#rotate3d\r\n * @type {Phaser.Math.Vector4}\r\n * @since 3.17.0\r\n */\r\n this.rotate3d = new Vector4();\r\n\r\n /**\r\n * The unit that represents the 3D rotation values. By default this is `deg` for degrees, but can\r\n * be changed to any supported unit. See this page for further details:\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/rotate3d\r\n *\r\n * @name Phaser.GameObjects.DOMElement#rotate3dAngle\r\n * @type {string}\r\n * @since 3.17.0\r\n */\r\n this.rotate3dAngle = 'deg';\r\n\r\n /**\r\n * Sets the CSS `pointerEvents` attribute on the DOM Element during rendering.\r\n *\r\n * This is 'auto' by default. Changing it may have unintended side-effects with\r\n * internal Phaser input handling, such as dragging, so only change this if you\r\n * understand the implications.\r\n *\r\n * @name Phaser.GameObjects.DOMElement#pointerEvents\r\n * @type {string}\r\n * @since 3.55.0\r\n */\r\n this.pointerEvents = 'auto';\r\n\r\n /**\r\n * The native (un-scaled) width of this Game Object.\r\n *\r\n * For a DOM Element this property is read-only.\r\n *\r\n * The property `displayWidth` holds the computed bounds of this DOM Element, factoring in scaling.\r\n *\r\n * @name Phaser.GameObjects.DOMElement#width\r\n * @type {number}\r\n * @readonly\r\n * @since 3.17.0\r\n */\r\n this.width = 0;\r\n\r\n /**\r\n * The native (un-scaled) height of this Game Object.\r\n *\r\n * For a DOM Element this property is read-only.\r\n *\r\n * The property `displayHeight` holds the computed bounds of this DOM Element, factoring in scaling.\r\n *\r\n * @name Phaser.GameObjects.DOMElement#height\r\n * @type {number}\r\n * @readonly\r\n * @since 3.17.0\r\n */\r\n this.height = 0;\r\n\r\n /**\r\n * The computed display width of this Game Object, based on the `getBoundingClientRect` DOM call.\r\n *\r\n * The property `width` holds the un-scaled width of this DOM Element.\r\n *\r\n * @name Phaser.GameObjects.DOMElement#displayWidth\r\n * @type {number}\r\n * @readonly\r\n * @since 3.17.0\r\n */\r\n this.displayWidth = 0;\r\n\r\n /**\r\n * The computed display height of this Game Object, based on the `getBoundingClientRect` DOM call.\r\n *\r\n * The property `height` holds the un-scaled height of this DOM Element.\r\n *\r\n * @name Phaser.GameObjects.DOMElement#displayHeight\r\n * @type {number}\r\n * @readonly\r\n * @since 3.17.0\r\n */\r\n this.displayHeight = 0;\r\n\r\n /**\r\n * Internal native event handler.\r\n *\r\n * @name Phaser.GameObjects.DOMElement#handler\r\n * @type {number}\r\n * @private\r\n * @since 3.17.0\r\n */\r\n this.handler = this.dispatchNativeEvent.bind(this);\r\n\r\n this.setPosition(x, y);\r\n\r\n if (typeof element === 'string')\r\n {\r\n // hash?\r\n if (element[0] === '#')\r\n {\r\n this.setElement(element.substr(1), style, innerText);\r\n }\r\n else\r\n {\r\n this.createElement(element, style, innerText);\r\n }\r\n }\r\n else if (element)\r\n {\r\n this.setElement(element, style, innerText);\r\n }\r\n\r\n scene.sys.events.on(SCENE_EVENTS.SLEEP, this.handleSceneEvent, this);\r\n scene.sys.events.on(SCENE_EVENTS.WAKE, this.handleSceneEvent, this);\r\n scene.sys.events.on(SCENE_EVENTS.PRE_RENDER, this.preRender, this);\r\n },\r\n\r\n /**\r\n * Handles a Scene Sleep and Wake event.\r\n *\r\n * @method Phaser.GameObjects.DOMElement#handleSceneEvent\r\n * @private\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Scenes.Systems} sys - The Scene Systems.\r\n */\r\n handleSceneEvent: function (sys)\r\n {\r\n var node = this.node;\r\n var style = node.style;\r\n\r\n if (node)\r\n {\r\n style.display = (sys.settings.visible) ? 'block' : 'none';\r\n }\r\n },\r\n\r\n /**\r\n * Sets the horizontal and vertical skew values of this DOM Element.\r\n *\r\n * For more information see: https://developer.mozilla.org/en-US/docs/Web/CSS/transform\r\n *\r\n * @method Phaser.GameObjects.DOMElement#setSkew\r\n * @since 3.17.0\r\n *\r\n * @param {number} [x=0] - The angle, in radians, by which to skew the DOM Element on the horizontal axis.\r\n * @param {number} [y=x] - The angle, in radians, by which to skew the DOM Element on the vertical axis.\r\n *\r\n * @return {this} This DOM Element instance.\r\n */\r\n setSkew: function (x, y)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = x; }\r\n\r\n this.skewX = x;\r\n this.skewY = y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the perspective CSS property of the _parent DOM Container_. This determines the distance between the z=0\r\n * plane and the user in order to give a 3D-positioned element some perspective. Each 3D element with\r\n * z > 0 becomes larger; each 3D-element with z < 0 becomes smaller. The strength of the effect is determined\r\n * by the value of this property.\r\n *\r\n * For more information see: https://developer.mozilla.org/en-US/docs/Web/CSS/perspective\r\n *\r\n * **Changing this value changes it globally for all DOM Elements, as they all share the same parent container.**\r\n *\r\n * @method Phaser.GameObjects.DOMElement#setPerspective\r\n * @since 3.17.0\r\n *\r\n * @param {number} value - The perspective value, in pixels, that determines the distance between the z plane and the user.\r\n *\r\n * @return {this} This DOM Element instance.\r\n */\r\n setPerspective: function (value)\r\n {\r\n this.parent.style.perspective = value + 'px';\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The perspective CSS property value of the _parent DOM Container_. This determines the distance between the z=0\r\n * plane and the user in order to give a 3D-positioned element some perspective. Each 3D element with\r\n * z > 0 becomes larger; each 3D-element with z < 0 becomes smaller. The strength of the effect is determined\r\n * by the value of this property.\r\n *\r\n * For more information see: https://developer.mozilla.org/en-US/docs/Web/CSS/perspective\r\n *\r\n * **Changing this value changes it globally for all DOM Elements, as they all share the same parent container.**\r\n *\r\n * @name Phaser.GameObjects.DOMElement#perspective\r\n * @type {number}\r\n * @since 3.17.0\r\n */\r\n perspective: {\r\n\r\n get: function ()\r\n {\r\n return parseFloat(this.parent.style.perspective);\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.parent.style.perspective = value + 'px';\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Adds one or more native DOM event listeners onto the underlying Element of this Game Object.\r\n * The event is then dispatched via this Game Objects standard event emitter.\r\n *\r\n * For example:\r\n *\r\n * ```javascript\r\n * var div = this.add.dom(x, y, element);\r\n *\r\n * div.addListener('click');\r\n *\r\n * div.on('click', handler);\r\n * ```\r\n *\r\n * @method Phaser.GameObjects.DOMElement#addListener\r\n * @since 3.17.0\r\n *\r\n * @param {string} events - The DOM event/s to listen for. You can specify multiple events by separating them with spaces.\r\n *\r\n * @return {this} This DOM Element instance.\r\n */\r\n addListener: function (events)\r\n {\r\n if (this.node)\r\n {\r\n events = events.split(' ');\r\n\r\n for (var i = 0; i < events.length; i++)\r\n {\r\n this.node.addEventListener(events[i], this.handler, false);\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes one or more native DOM event listeners from the underlying Element of this Game Object.\r\n *\r\n * @method Phaser.GameObjects.DOMElement#removeListener\r\n * @since 3.17.0\r\n *\r\n * @param {string} events - The DOM event/s to stop listening for. You can specify multiple events by separating them with spaces.\r\n *\r\n * @return {this} This DOM Element instance.\r\n */\r\n removeListener: function (events)\r\n {\r\n if (this.node)\r\n {\r\n events = events.split(' ');\r\n\r\n for (var i = 0; i < events.length; i++)\r\n {\r\n this.node.removeEventListener(events[i], this.handler);\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal event proxy to dispatch native DOM Events via this Game Object.\r\n *\r\n * @method Phaser.GameObjects.DOMElement#dispatchNativeEvent\r\n * @private\r\n * @since 3.17.0\r\n *\r\n * @param {any} event - The native DOM event.\r\n */\r\n dispatchNativeEvent: function (event)\r\n {\r\n this.emit(event.type, event);\r\n },\r\n\r\n /**\r\n * Creates a native DOM Element, adds it to the parent DOM Container and then binds it to this Game Object,\r\n * so you can control it. The `tagName` should be a string and is passed to `document.createElement`:\r\n *\r\n * ```javascript\r\n * this.add.dom().createElement('div');\r\n * ```\r\n *\r\n * For more details on acceptable tag names see: https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement\r\n *\r\n * You can also pass in a DOMString or style object to set the CSS on the created element, and an optional `innerText`\r\n * value as well. Here is an example of a DOMString:\r\n *\r\n * ```javascript\r\n * this.add.dom().createElement('div', 'background-color: lime; width: 220px; height: 100px; font: 48px Arial', 'Phaser');\r\n * ```\r\n *\r\n * And using a style object:\r\n *\r\n * ```javascript\r\n * var style = {\r\n * 'background-color': 'lime';\r\n * 'width': '200px';\r\n * 'height': '100px';\r\n * 'font': '48px Arial';\r\n * };\r\n *\r\n * this.add.dom().createElement('div', style, 'Phaser');\r\n * ```\r\n *\r\n * If this Game Object already has an Element, it is removed from the DOM entirely first.\r\n * Any event listeners you may have previously created will need to be re-created after this call.\r\n *\r\n * @method Phaser.GameObjects.DOMElement#createElement\r\n * @since 3.17.0\r\n *\r\n * @param {string} tagName - A string that specifies the type of element to be created. The nodeName of the created element is initialized with the value of tagName. Don't use qualified names (like \"html:a\") with this method.\r\n * @param {(string|any)} [style] - Either a DOMString that holds the CSS styles to be applied to the created element, or an object the styles will be ready from.\r\n * @param {string} [innerText] - A DOMString that holds the text that will be set as the innerText of the created element.\r\n *\r\n * @return {this} This DOM Element instance.\r\n */\r\n createElement: function (tagName, style, innerText)\r\n {\r\n return this.setElement(document.createElement(tagName), style, innerText);\r\n },\r\n\r\n /**\r\n * Binds a new DOM Element to this Game Object. If this Game Object already has an Element it is removed from the DOM\r\n * entirely first. Any event listeners you may have previously created will need to be re-created on the new element.\r\n *\r\n * The `element` argument you pass to this method can be either a string tagName:\r\n *\r\n * ```javascript\r\n *

Phaser

\r\n *\r\n * this.add.dom().setElement('heading');\r\n * ```\r\n *\r\n * Or a reference to an Element instance:\r\n *\r\n * ```javascript\r\n *

Phaser

\r\n *\r\n * var h1 = document.getElementById('heading');\r\n *\r\n * this.add.dom().setElement(h1);\r\n * ```\r\n *\r\n * You can also pass in a DOMString or style object to set the CSS on the created element, and an optional `innerText`\r\n * value as well. Here is an example of a DOMString:\r\n *\r\n * ```javascript\r\n * this.add.dom().setElement(h1, 'background-color: lime; width: 220px; height: 100px; font: 48px Arial', 'Phaser');\r\n * ```\r\n *\r\n * And using a style object:\r\n *\r\n * ```javascript\r\n * var style = {\r\n * 'background-color': 'lime';\r\n * 'width': '200px';\r\n * 'height': '100px';\r\n * 'font': '48px Arial';\r\n * };\r\n *\r\n * this.add.dom().setElement(h1, style, 'Phaser');\r\n * ```\r\n *\r\n * @method Phaser.GameObjects.DOMElement#setElement\r\n * @since 3.17.0\r\n *\r\n * @param {(string|Element)} element - If a string it is passed to `getElementById()`, or it should be a reference to an existing Element.\r\n * @param {(string|any)} [style] - Either a DOMString that holds the CSS styles to be applied to the created element, or an object the styles will be ready from.\r\n * @param {string} [innerText] - A DOMString that holds the text that will be set as the innerText of the created element.\r\n *\r\n * @return {this} This DOM Element instance.\r\n */\r\n setElement: function (element, style, innerText)\r\n {\r\n // Already got an element? Remove it first\r\n this.removeElement();\r\n\r\n var target;\r\n\r\n if (typeof element === 'string')\r\n {\r\n // hash?\r\n if (element[0] === '#')\r\n {\r\n element = element.substr(1);\r\n }\r\n\r\n target = document.getElementById(element);\r\n }\r\n else if (typeof element === 'object' && element.nodeType === 1)\r\n {\r\n target = element;\r\n }\r\n\r\n if (!target)\r\n {\r\n return this;\r\n }\r\n\r\n this.node = target;\r\n\r\n // style can be empty, a string or a plain object\r\n if (style && IsPlainObject(style))\r\n {\r\n for (var key in style)\r\n {\r\n target.style[key] = style[key];\r\n }\r\n }\r\n else if (typeof style === 'string')\r\n {\r\n target.style = style;\r\n }\r\n\r\n // Add / Override the values we need\r\n\r\n target.style.zIndex = '0';\r\n target.style.display = 'inline';\r\n target.style.position = 'absolute';\r\n\r\n // Node handler\r\n\r\n target.phaser = this;\r\n\r\n if (this.parent)\r\n {\r\n this.parent.appendChild(target);\r\n }\r\n\r\n // InnerText\r\n\r\n if (innerText)\r\n {\r\n target.innerText = innerText;\r\n }\r\n\r\n return this.updateSize();\r\n },\r\n\r\n /**\r\n * Takes a block of html from the HTML Cache, that has previously been preloaded into the game, and then\r\n * creates a DOM Element from it. The loaded HTML is set as the `innerHTML` property of the created\r\n * element.\r\n *\r\n * Assume the following html is stored in a file called `loginform.html`:\r\n *\r\n * ```html\r\n * \r\n * \r\n * ```\r\n *\r\n * Which is loaded into your game using the cache key 'login':\r\n *\r\n * ```javascript\r\n * this.load.html('login', 'assets/loginform.html');\r\n * ```\r\n *\r\n * You can create a DOM Element from it using the cache key:\r\n *\r\n * ```javascript\r\n * this.add.dom().createFromCache('login');\r\n * ```\r\n *\r\n * The optional `elementType` argument controls the container that is created, into which the loaded html is inserted.\r\n * The default is a plain `div` object, but any valid tagName can be given.\r\n *\r\n * If this Game Object already has an Element, it is removed from the DOM entirely first.\r\n * Any event listeners you may have previously created will need to be re-created after this call.\r\n *\r\n * @method Phaser.GameObjects.DOMElement#createFromCache\r\n * @since 3.17.0\r\n *\r\n * @param {string} The key of the html cache entry to use for this DOM Element.\r\n * @param {string} [tagName='div'] - The tag name of the element into which all of the loaded html will be inserted. Defaults to a plain div tag.\r\n *\r\n * @return {this} This DOM Element instance.\r\n */\r\n createFromCache: function (key, tagName)\r\n {\r\n var html = this.cache.get(key);\r\n\r\n if (html)\r\n {\r\n this.createFromHTML(html, tagName);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes a string of html and then creates a DOM Element from it. The HTML is set as the `innerHTML`\r\n * property of the created element.\r\n *\r\n * ```javascript\r\n * let form = `\r\n * \r\n * \r\n * `;\r\n * ```\r\n *\r\n * You can create a DOM Element from it using the string:\r\n *\r\n * ```javascript\r\n * this.add.dom().createFromHTML(form);\r\n * ```\r\n *\r\n * The optional `elementType` argument controls the type of container that is created, into which the html is inserted.\r\n * The default is a plain `div` object, but any valid tagName can be given.\r\n *\r\n * If this Game Object already has an Element, it is removed from the DOM entirely first.\r\n * Any event listeners you may have previously created will need to be re-created after this call.\r\n *\r\n * @method Phaser.GameObjects.DOMElement#createFromHTML\r\n * @since 3.17.0\r\n *\r\n * @param {string} html - A string of html to be set as the `innerHTML` property of the created element.\r\n * @param {string} [tagName='div'] - The tag name of the element into which all of the html will be inserted. Defaults to a plain div tag.\r\n *\r\n * @return {this} This DOM Element instance.\r\n */\r\n createFromHTML: function (html, tagName)\r\n {\r\n if (tagName === undefined) { tagName = 'div'; }\r\n\r\n // Already got an element? Remove it first\r\n this.removeElement();\r\n\r\n var element = document.createElement(tagName);\r\n\r\n this.node = element;\r\n\r\n element.style.zIndex = '0';\r\n element.style.display = 'inline';\r\n element.style.position = 'absolute';\r\n\r\n // Node handler\r\n\r\n element.phaser = this;\r\n\r\n if (this.parent)\r\n {\r\n this.parent.appendChild(element);\r\n }\r\n\r\n element.innerHTML = html;\r\n\r\n return this.updateSize();\r\n },\r\n\r\n /**\r\n * Removes the current DOM Element bound to this Game Object from the DOM entirely and resets the\r\n * `node` property of this Game Object to be `null`.\r\n *\r\n * @method Phaser.GameObjects.DOMElement#removeElement\r\n * @since 3.17.0\r\n *\r\n * @return {this} This DOM Element instance.\r\n */\r\n removeElement: function ()\r\n {\r\n if (this.node)\r\n {\r\n RemoveFromDOM(this.node);\r\n\r\n this.node = null;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal method that calls `getBoundingClientRect` on the `node` and then sets the bounds width\r\n * and height into the `displayWidth` and `displayHeight` properties, and the `clientWidth` and `clientHeight`\r\n * values into the `width` and `height` properties respectively.\r\n *\r\n * This is called automatically whenever a new element is created or set.\r\n *\r\n * @method Phaser.GameObjects.DOMElement#updateSize\r\n * @since 3.17.0\r\n *\r\n * @return {this} This DOM Element instance.\r\n */\r\n updateSize: function ()\r\n {\r\n var node = this.node;\r\n\r\n var nodeBounds = node.getBoundingClientRect();\r\n\r\n this.width = node.clientWidth;\r\n this.height = node.clientHeight;\r\n\r\n this.displayWidth = nodeBounds.width || 0;\r\n this.displayHeight = nodeBounds.height || 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Gets all children from this DOM Elements node, using `querySelectorAll('*')` and then iterates through\r\n * them, looking for the first one that has a property matching the given key and value. It then returns this child\r\n * if found, or `null` if not.\r\n *\r\n * @method Phaser.GameObjects.DOMElement#getChildByProperty\r\n * @since 3.17.0\r\n *\r\n * @param {string} property - The property to search the children for.\r\n * @param {string} value - The value the property must strictly equal.\r\n *\r\n * @return {?Element} The first matching child DOM Element, or `null` if not found.\r\n */\r\n getChildByProperty: function (property, value)\r\n {\r\n if (this.node)\r\n {\r\n var children = this.node.querySelectorAll('*');\r\n\r\n for (var i = 0; i < children.length; i++)\r\n {\r\n if (children[i][property] === value)\r\n {\r\n return children[i];\r\n }\r\n }\r\n }\r\n\r\n return null;\r\n },\r\n\r\n /**\r\n * Gets all children from this DOM Elements node, using `querySelectorAll('*')` and then iterates through\r\n * them, looking for the first one that has a matching id. It then returns this child if found, or `null` if not.\r\n *\r\n * Be aware that class and id names are case-sensitive.\r\n *\r\n * @method Phaser.GameObjects.DOMElement#getChildByID\r\n * @since 3.17.0\r\n *\r\n * @param {string} id - The id to search the children for.\r\n *\r\n * @return {?Element} The first matching child DOM Element, or `null` if not found.\r\n */\r\n getChildByID: function (id)\r\n {\r\n return this.getChildByProperty('id', id);\r\n },\r\n\r\n /**\r\n * Gets all children from this DOM Elements node, using `querySelectorAll('*')` and then iterates through\r\n * them, looking for the first one that has a matching name. It then returns this child if found, or `null` if not.\r\n *\r\n * Be aware that class and id names are case-sensitive.\r\n *\r\n * @method Phaser.GameObjects.DOMElement#getChildByName\r\n * @since 3.17.0\r\n *\r\n * @param {string} name - The name to search the children for.\r\n *\r\n * @return {?Element} The first matching child DOM Element, or `null` if not found.\r\n */\r\n getChildByName: function (name)\r\n {\r\n return this.getChildByProperty('name', name);\r\n },\r\n\r\n /**\r\n * Sets the `className` property of the DOM Element node and updates the internal sizes.\r\n *\r\n * @method Phaser.GameObjects.DOMElement#setClassName\r\n * @since 3.17.0\r\n *\r\n * @param {string} className - A string representing the class or space-separated classes of the element.\r\n *\r\n * @return {this} This DOM Element instance.\r\n */\r\n setClassName: function (className)\r\n {\r\n if (this.node)\r\n {\r\n this.node.className = className;\r\n\r\n this.updateSize();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the `innerText` property of the DOM Element node and updates the internal sizes.\r\n *\r\n * Note that only certain types of Elements can have `innerText` set on them.\r\n *\r\n * @method Phaser.GameObjects.DOMElement#setText\r\n * @since 3.17.0\r\n *\r\n * @param {string} text - A DOMString representing the rendered text content of the element.\r\n *\r\n * @return {this} This DOM Element instance.\r\n */\r\n setText: function (text)\r\n {\r\n if (this.node)\r\n {\r\n this.node.innerText = text;\r\n\r\n this.updateSize();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the `innerHTML` property of the DOM Element node and updates the internal sizes.\r\n *\r\n * @method Phaser.GameObjects.DOMElement#setHTML\r\n * @since 3.17.0\r\n *\r\n * @param {string} html - A DOMString of html to be set as the `innerHTML` property of the element.\r\n *\r\n * @return {this} This DOM Element instance.\r\n */\r\n setHTML: function (html)\r\n {\r\n if (this.node)\r\n {\r\n this.node.innerHTML = html;\r\n\r\n this.updateSize();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Runs internal update tasks.\r\n *\r\n * @method Phaser.GameObjects.DOMElement#preRender\r\n * @private\r\n * @since 3.60.0\r\n */\r\n preRender: function ()\r\n {\r\n var parent = this.parentContainer;\r\n var node = this.node;\r\n\r\n if (node && parent && !parent.willRender())\r\n {\r\n node.style.display = 'none';\r\n }\r\n },\r\n\r\n /**\r\n * Compares the renderMask with the renderFlags to see if this Game Object will render or not.\r\n *\r\n * DOMElements always return `true` as they need to still set values during the render pass, even if not visible.\r\n *\r\n * @method Phaser.GameObjects.DOMElement#willRender\r\n * @since 3.17.0\r\n *\r\n * @return {boolean} `true` if the Game Object should be rendered, otherwise `false`.\r\n */\r\n willRender: function ()\r\n {\r\n return true;\r\n },\r\n\r\n /**\r\n * Handles the pre-destroy step for the DOM Element, which removes the underlying node from the DOM.\r\n *\r\n * @method Phaser.GameObjects.DOMElement#preDestroy\r\n * @private\r\n * @since 3.17.0\r\n */\r\n preDestroy: function ()\r\n {\r\n this.removeElement();\r\n\r\n this.scene.sys.events.off(SCENE_EVENTS.SLEEP, this.handleSceneEvent, this);\r\n this.scene.sys.events.off(SCENE_EVENTS.WAKE, this.handleSceneEvent, this);\r\n this.scene.sys.events.off(SCENE_EVENTS.PRE_RENDER, this.preRender, this);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = DOMElement;\r\n\n\n/***/ }),\n\n/***/ 49381:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CSSBlendModes = __webpack_require__(47407);\r\nvar GameObject = __webpack_require__(95643);\r\nvar TransformMatrix = __webpack_require__(61340);\r\n\r\nvar tempMatrix1 = new TransformMatrix();\r\nvar tempMatrix2 = new TransformMatrix();\r\nvar tempMatrix3 = new TransformMatrix();\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.DOMElement#renderWebGL\r\n * @since 3.17.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active renderer.\r\n * @param {Phaser.GameObjects.DOMElement} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar DOMElementCSSRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n if (!src.node)\r\n {\r\n return;\r\n }\r\n\r\n var style = src.node.style;\r\n var settings = src.scene.sys.settings;\r\n\r\n if (!style || !settings.visible || GameObject.RENDER_MASK !== src.renderFlags || (src.cameraFilter !== 0 && (src.cameraFilter & camera.id)) || (src.parentContainer && !src.parentContainer.willRender()))\r\n {\r\n style.display = 'none';\r\n\r\n return;\r\n }\r\n\r\n var parent = src.parentContainer;\r\n var alpha = camera.alpha * src.alpha;\r\n\r\n if (parent)\r\n {\r\n alpha *= parent.alpha;\r\n }\r\n\r\n var camMatrix = tempMatrix1;\r\n var srcMatrix = tempMatrix2;\r\n var calcMatrix = tempMatrix3;\r\n\r\n var dx = 0;\r\n var dy = 0;\r\n\r\n var tx = '0%';\r\n var ty = '0%';\r\n\r\n if (parentMatrix)\r\n {\r\n dx = (src.width * src.scaleX) * src.originX;\r\n dy = (src.height * src.scaleY) * src.originY;\r\n\r\n srcMatrix.applyITRS(src.x - dx, src.y - dy, src.rotation, src.scaleX, src.scaleY);\r\n\r\n camMatrix.copyFrom(camera.matrix);\r\n\r\n // Multiply the camera by the parent matrix\r\n camMatrix.multiplyWithOffset(parentMatrix, -camera.scrollX * src.scrollFactorX, -camera.scrollY * src.scrollFactorY);\r\n\r\n // Undo the camera scroll\r\n srcMatrix.e = src.x - dx;\r\n srcMatrix.f = src.y - dy;\r\n\r\n // Multiply by the src matrix, store result in calcMatrix\r\n camMatrix.multiply(srcMatrix, calcMatrix);\r\n }\r\n else\r\n {\r\n dx = (src.width) * src.originX;\r\n dy = (src.height) * src.originY;\r\n\r\n srcMatrix.applyITRS(src.x, src.y, src.rotation, src.scaleX, src.scaleY);\r\n\r\n camMatrix.copyFrom(camera.matrix);\r\n\r\n tx = (100 * src.originX) + '%';\r\n ty = (100 * src.originY) + '%';\r\n\r\n srcMatrix.e -= camera.scrollX * src.scrollFactorX;\r\n srcMatrix.f -= camera.scrollY * src.scrollFactorY;\r\n\r\n // Multiply by the src matrix, store result in calcMatrix\r\n camMatrix.multiply(srcMatrix, calcMatrix);\r\n\r\n calcMatrix.e -= dx;\r\n calcMatrix.f -= dy;\r\n }\r\n\r\n if (!src.transformOnly)\r\n {\r\n style.display = 'block';\r\n style.opacity = alpha;\r\n style.zIndex = src._depth;\r\n style.pointerEvents = src.pointerEvents;\r\n style.mixBlendMode = CSSBlendModes[src._blendMode];\r\n }\r\n\r\n // https://developer.mozilla.org/en-US/docs/Web/CSS/transform\r\n\r\n style.transform =\r\n calcMatrix.getCSSMatrix() +\r\n ' skew(' + src.skewX + 'rad, ' + src.skewY + 'rad)' +\r\n ' rotate3d(' + src.rotate3d.x + ',' + src.rotate3d.y + ',' + src.rotate3d.z + ',' + src.rotate3d.w + src.rotate3dAngle + ')';\r\n\r\n style.transformOrigin = tx + ' ' + ty;\r\n};\r\n\r\nmodule.exports = DOMElementCSSRenderer;\r\n\n\n/***/ }),\n\n/***/ 2611:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar DOMElement = __webpack_require__(3069);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * DOM Element Game Objects are a way to control and manipulate HTML Elements over the top of your game.\r\n *\r\n * In order for DOM Elements to display you have to enable them by adding the following to your game\r\n * configuration object:\r\n *\r\n * ```javascript\r\n * dom {\r\n * createContainer: true\r\n * }\r\n * ```\r\n *\r\n * When this is added, Phaser will automatically create a DOM Container div that is positioned over the top\r\n * of the game canvas. This div is sized to match the canvas, and if the canvas size changes, as a result of\r\n * settings within the Scale Manager, the dom container is resized accordingly.\r\n *\r\n * You can create a DOM Element by either passing in DOMStrings, or by passing in a reference to an existing\r\n * Element that you wish to be placed under the control of Phaser. For example:\r\n *\r\n * ```javascript\r\n * this.add.dom(x, y, 'div', 'background-color: lime; width: 220px; height: 100px; font: 48px Arial', 'Phaser');\r\n * ```\r\n *\r\n * The above code will insert a div element into the DOM Container at the given x/y coordinate. The DOMString in\r\n * the 4th argument sets the initial CSS style of the div and the final argument is the inner text. In this case,\r\n * it will create a lime colored div that is 220px by 100px in size with the text Phaser in it, in an Arial font.\r\n *\r\n * You should nearly always, without exception, use explicitly sized HTML Elements, in order to fully control\r\n * alignment and positioning of the elements next to regular game content.\r\n *\r\n * Rather than specify the CSS and HTML directly you can use the `load.html` File Loader to load it into the\r\n * cache and then use the `createFromCache` method instead. You can also use `createFromHTML` and various other\r\n * methods available in this class to help construct your elements.\r\n *\r\n * Once the element has been created you can then control it like you would any other Game Object. You can set its\r\n * position, scale, rotation, alpha and other properties. It will move as the main Scene Camera moves and be clipped\r\n * at the edge of the canvas. It's important to remember some limitations of DOM Elements: The obvious one is that\r\n * they appear above or below your game canvas. You cannot blend them into the display list, meaning you cannot have\r\n * a DOM Element, then a Sprite, then another DOM Element behind it.\r\n *\r\n * They also cannot be enabled for input. To do that, you have to use the `addListener` method to add native event\r\n * listeners directly. The final limitation is to do with cameras. The DOM Container is sized to match the game canvas\r\n * entirely and clipped accordingly. DOM Elements respect camera scrolling and scrollFactor settings, but if you\r\n * change the size of the camera so it no longer matches the size of the canvas, they won't be clipped accordingly.\r\n *\r\n * Also, all DOM Elements are inserted into the same DOM Container, regardless of which Scene they are created in.\r\n *\r\n * DOM Elements are a powerful way to align native HTML with your Phaser Game Objects. For example, you can insert\r\n * a login form for a multiplayer game directly into your title screen. Or a text input box for a highscore table.\r\n * Or a banner ad from a 3rd party service. Or perhaps you'd like to use them for high resolution text display and\r\n * UI. The choice is up to you, just remember that you're dealing with standard HTML and CSS floating over the top\r\n * of your game, and should treat it accordingly.\r\n *\r\n * Note: This method will only be available if the DOM Element Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#dom\r\n * @since 3.17.0\r\n *\r\n * @param {number} x - The horizontal position of this DOM Element in the world.\r\n * @param {number} y - The vertical position of this DOM Element in the world.\r\n * @param {(HTMLElement|string)} [element] - An existing DOM element, or a string. If a string starting with a # it will do a `getElementById` look-up on the string (minus the hash). Without a hash, it represents the type of element to create, i.e. 'div'.\r\n * @param {(string|any)} [style] - If a string, will be set directly as the elements `style` property value. If a plain object, will be iterated and the values transferred. In both cases the values replacing whatever CSS styles may have been previously set.\r\n * @param {string} [innerText] - If given, will be set directly as the elements `innerText` property value, replacing whatever was there before.\r\n *\r\n * @return {Phaser.GameObjects.DOMElement} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('dom', function (x, y, element, style, innerText)\r\n{\r\n var gameObject = new DOMElement(this.scene, x, y, element, style, innerText);\r\n\r\n this.displayList.add(gameObject);\r\n\r\n return gameObject;\r\n});\r\n\n\n/***/ }),\n\n/***/ 441:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(49381);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(49381);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 62980:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Added to Scene Event.\r\n *\r\n * This event is dispatched when a Game Object is added to a Scene.\r\n *\r\n * Listen for it on a Game Object instance using `GameObject.on('addedtoscene', listener)`.\r\n *\r\n * @event Phaser.GameObjects.Events#ADDED_TO_SCENE\r\n * @type {string}\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that was added to the Scene.\r\n * @param {Phaser.Scene} scene - The Scene to which the Game Object was added.\r\n */\r\nmodule.exports = 'addedtoscene';\r\n\n\n/***/ }),\n\n/***/ 41337:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Destroy Event.\r\n *\r\n * This event is dispatched when a Game Object instance is being destroyed.\r\n *\r\n * Listen for it on a Game Object instance using `GameObject.on('destroy', listener)`.\r\n *\r\n * @event Phaser.GameObjects.Events#DESTROY\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object which is being destroyed.\r\n * @param {boolean} fromScene - `True` if this Game Object is being destroyed by the Scene, `false` if not.\r\n */\r\nmodule.exports = 'destroy';\r\n\n\n/***/ }),\n\n/***/ 44947:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Removed from Scene Event.\r\n *\r\n * This event is dispatched when a Game Object is removed from a Scene.\r\n *\r\n * Listen for it on a Game Object instance using `GameObject.on('removedfromscene', listener)`.\r\n *\r\n * @event Phaser.GameObjects.Events#REMOVED_FROM_SCENE\r\n * @type {string}\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that was removed from the Scene.\r\n * @param {Phaser.Scene} scene - The Scene from which the Game Object was removed.\r\n */\r\nmodule.exports = 'removedfromscene';\r\n\n\n/***/ }),\n\n/***/ 49358:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Video Game Object Complete Event.\r\n *\r\n * This event is dispatched when a Video finishes playback by reaching the end of its duration. It\r\n * is also dispatched if a video marker sequence is being played and reaches the end.\r\n *\r\n * Note that not all videos can fire this event. Live streams, for example, have no fixed duration,\r\n * so never technically 'complete'.\r\n *\r\n * If a video is stopped from playback, via the `Video.stop` method, it will emit the\r\n * `VIDEO_STOP` event instead of this one.\r\n *\r\n * Listen for it from a Video Game Object instance using `Video.on('complete', listener)`.\r\n *\r\n * @event Phaser.GameObjects.Events#VIDEO_COMPLETE\r\n * @type {string}\r\n * @since 3.20.0\r\n *\r\n * @param {Phaser.GameObjects.Video} video - The Video Game Object which completed playback.\r\n */\r\nmodule.exports = 'complete';\r\n\n\n/***/ }),\n\n/***/ 35163:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Video Game Object Created Event.\r\n *\r\n * This event is dispatched when the texture for a Video has been created. This happens\r\n * when enough of the video source has been loaded that the browser is able to render a\r\n * frame from it.\r\n *\r\n * Listen for it from a Video Game Object instance using `Video.on('created', listener)`.\r\n *\r\n * @event Phaser.GameObjects.Events#VIDEO_CREATED\r\n * @type {string}\r\n * @since 3.20.0\r\n *\r\n * @param {Phaser.GameObjects.Video} video - The Video Game Object which raised the event.\r\n * @param {number} width - The width of the video.\r\n * @param {number} height - The height of the video.\r\n */\r\nmodule.exports = 'created';\r\n\n\n/***/ }),\n\n/***/ 97249:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Video Game Object Error Event.\r\n *\r\n * This event is dispatched when a Video tries to play a source that does not exist, or is the wrong file type.\r\n *\r\n * Listen for it from a Video Game Object instance using `Video.on('error', listener)`.\r\n *\r\n * @event Phaser.GameObjects.Events#VIDEO_ERROR\r\n * @type {string}\r\n * @since 3.20.0\r\n *\r\n * @param {Phaser.GameObjects.Video} video - The Video Game Object which threw the error.\r\n * @param {DOMException|string} event - The native DOM event the browser raised during playback.\r\n */\r\nmodule.exports = 'error';\r\n\n\n/***/ }),\n\n/***/ 19483:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Video Game Object Locked Event.\r\n *\r\n * This event is dispatched when a Video was attempted to be played, but the browser prevented it\r\n * from doing so due to the Media Engagement Interaction policy.\r\n *\r\n * If you get this event you will need to wait for the user to interact with the browser before\r\n * the video will play. This is a browser security measure to prevent autoplaying videos with\r\n * audio. An interaction includes a mouse click, a touch, or a key press.\r\n *\r\n * Listen for it from a Video Game Object instance using `Video.on('locked', listener)`.\r\n *\r\n * @event Phaser.GameObjects.Events#VIDEO_LOCKED\r\n * @type {string}\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.Video} video - The Video Game Object which raised the event.\r\n */\r\nmodule.exports = 'locked';\r\n\n\n/***/ }),\n\n/***/ 56059:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Video Game Object Loop Event.\r\n *\r\n * This event is dispatched when a Video that is currently playing has looped. This only\r\n * happens if the `loop` parameter was specified, or the `setLoop` method was called,\r\n * and if the video has a fixed duration. Video streams, for example, cannot loop, as\r\n * they have no duration.\r\n *\r\n * Looping is based on the result of the Video `timeupdate` event. This event is not\r\n * frame-accurate, due to the way browsers work, so please do not rely on this loop\r\n * event to be time or frame precise.\r\n *\r\n * Listen for it from a Video Game Object instance using `Video.on('loop', listener)`.\r\n *\r\n * @event Phaser.GameObjects.Events#VIDEO_LOOP\r\n * @type {string}\r\n * @since 3.20.0\r\n *\r\n * @param {Phaser.GameObjects.Video} video - The Video Game Object which has looped.\r\n */\r\nmodule.exports = 'loop';\r\n\n\n/***/ }),\n\n/***/ 26772:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Video Game Object Metadata Event.\r\n *\r\n * This event is dispatched when a Video has access to the metadata.\r\n *\r\n * Listen for it from a Video Game Object instance using `Video.on('metadata', listener)`.\r\n *\r\n * @event Phaser.GameObjects.Events#VIDEO_METADATA\r\n * @type {string}\r\n * @since 3.80.0\r\n *\r\n * @param {Phaser.GameObjects.Video} video - The Video Game Object which fired the event.\r\n * @param {DOMException|string} event - The native DOM event the browser raised during playback.\r\n */\r\nmodule.exports = 'metadata';\r\n\n\n/***/ }),\n\n/***/ 64437:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Video Game Object Playing Event.\r\n *\r\n * The playing event is fired after playback is first started,\r\n * and whenever it is restarted. For example it is fired when playback\r\n * resumes after having been paused or delayed due to lack of data.\r\n *\r\n * Listen for it from a Video Game Object instance using `Video.on('playing', listener)`.\r\n *\r\n * @event Phaser.GameObjects.Events#VIDEO_PLAYING\r\n * @type {string}\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.Video} video - The Video Game Object which started playback.\r\n */\r\nmodule.exports = 'playing';\r\n\n\n/***/ }),\n\n/***/ 83411:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Video Game Object Play Event.\r\n *\r\n * This event is dispatched when a Video begins playback. For videos that do not require\r\n * interaction unlocking, this is usually as soon as the `Video.play` method is called.\r\n * However, for videos that require unlocking, it is fired once playback begins after\r\n * they've been unlocked.\r\n *\r\n * Listen for it from a Video Game Object instance using `Video.on('play', listener)`.\r\n *\r\n * @event Phaser.GameObjects.Events#VIDEO_PLAY\r\n * @type {string}\r\n * @since 3.20.0\r\n *\r\n * @param {Phaser.GameObjects.Video} video - The Video Game Object which started playback.\r\n */\r\nmodule.exports = 'play';\r\n\n\n/***/ }),\n\n/***/ 75780:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Video Game Object Seeked Event.\r\n *\r\n * This event is dispatched when a Video completes seeking to a new point in its timeline.\r\n *\r\n * Listen for it from a Video Game Object instance using `Video.on('seeked', listener)`.\r\n *\r\n * @event Phaser.GameObjects.Events#VIDEO_SEEKED\r\n * @type {string}\r\n * @since 3.20.0\r\n *\r\n * @param {Phaser.GameObjects.Video} video - The Video Game Object which completed seeking.\r\n */\r\nmodule.exports = 'seeked';\r\n\n\n/***/ }),\n\n/***/ 67799:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Video Game Object Seeking Event.\r\n *\r\n * This event is dispatched when a Video _begins_ seeking to a new point in its timeline.\r\n * When the seek is complete, it will dispatch the `VIDEO_SEEKED` event to conclude.\r\n *\r\n * Listen for it from a Video Game Object instance using `Video.on('seeking', listener)`.\r\n *\r\n * @event Phaser.GameObjects.Events#VIDEO_SEEKING\r\n * @type {string}\r\n * @since 3.20.0\r\n *\r\n * @param {Phaser.GameObjects.Video} video - The Video Game Object which started seeking.\r\n */\r\nmodule.exports = 'seeking';\r\n\n\n/***/ }),\n\n/***/ 63500:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Video Game Object Stalled Event.\r\n *\r\n * This event is dispatched by a Video Game Object when the video playback stalls.\r\n *\r\n * This can happen if the video is buffering.\r\n *\r\n * If will fire for any of the following native DOM events:\r\n *\r\n * `stalled`\r\n * `suspend`\r\n * `waiting`\r\n *\r\n * Listen for it from a Video Game Object instance using `Video.on('stalled', listener)`.\r\n *\r\n * Note that being stalled isn't always a negative thing. A video can be stalled if it\r\n * has downloaded enough data in to its buffer to not need to download any more until\r\n * the current batch of frames have rendered.\r\n *\r\n * @event Phaser.GameObjects.Events#VIDEO_STALLED\r\n * @type {string}\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.Video} video - The Video Game Object which threw the error.\r\n * @param {Event} event - The native DOM event the browser raised during playback.\r\n */\r\nmodule.exports = 'stalled';\r\n\n\n/***/ }),\n\n/***/ 55541:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Video Game Object Stopped Event.\r\n *\r\n * This event is dispatched when a Video is stopped from playback via a call to the `Video.stop` method,\r\n * either directly via game code, or indirectly as the result of changing a video source or destroying it.\r\n *\r\n * Listen for it from a Video Game Object instance using `Video.on('stop', listener)`.\r\n *\r\n * @event Phaser.GameObjects.Events#VIDEO_STOP\r\n * @type {string}\r\n * @since 3.20.0\r\n *\r\n * @param {Phaser.GameObjects.Video} video - The Video Game Object which stopped playback.\r\n */\r\nmodule.exports = 'stop';\r\n\n\n/***/ }),\n\n/***/ 53208:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Video Game Object Texture Ready Event.\r\n *\r\n * This event is dispatched by a Video Game Object when it has finished creating its texture.\r\n *\r\n * This happens when the video has finished loading enough data for its first frame.\r\n *\r\n * If you wish to use the Video texture elsewhere in your game, such as as a Sprite texture,\r\n * then you should listen for this event first, before creating the Sprites that use it.\r\n *\r\n * Listen for it from a Video Game Object instance using `Video.on('textureready', listener)`.\r\n *\r\n * @event Phaser.GameObjects.Events#VIDEO_TEXTURE\r\n * @type {string}\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.Video} video - The Video Game Object that emitted the event.\r\n * @param {Phaser.Textures.Texture} texture - The Texture that was created.\r\n */\r\nmodule.exports = 'textureready';\r\n\n\n/***/ }),\n\n/***/ 4992:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Video Game Object Unlocked Event.\r\n *\r\n * This event is dispatched when a Video that was prevented from playback due to the browsers\r\n * Media Engagement Interaction policy, is unlocked by a user gesture.\r\n *\r\n * Listen for it from a Video Game Object instance using `Video.on('unlocked', listener)`.\r\n *\r\n * @event Phaser.GameObjects.Events#VIDEO_UNLOCKED\r\n * @type {string}\r\n * @since 3.20.0\r\n *\r\n * @param {Phaser.GameObjects.Video} video - The Video Game Object which raised the event.\r\n */\r\nmodule.exports = 'unlocked';\r\n\n\n/***/ }),\n\n/***/ 12:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Video Game Object Unsupported Event.\r\n *\r\n * This event is dispatched by a Video Game Object if the media source\r\n * (which may be specified as a MediaStream, MediaSource, Blob, or File,\r\n * for example) doesn't represent a supported media format.\r\n *\r\n * Listen for it from a Video Game Object instance using `Video.on('unsupported', listener)`.\r\n *\r\n * @event Phaser.GameObjects.Events#VIDEO_UNSUPPORTED\r\n * @type {string}\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.Video} video - The Video Game Object which started playback.\r\n * @param {DOMException|string} event - The native DOM event the browser raised during playback.\r\n */\r\nmodule.exports = 'unsupported';\r\n\n\n/***/ }),\n\n/***/ 51708:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.GameObjects.Events\r\n */\r\n\r\nmodule.exports = {\r\n\r\n ADDED_TO_SCENE: __webpack_require__(62980),\r\n DESTROY: __webpack_require__(41337),\r\n REMOVED_FROM_SCENE: __webpack_require__(44947),\r\n VIDEO_COMPLETE: __webpack_require__(49358),\r\n VIDEO_CREATED: __webpack_require__(35163),\r\n VIDEO_ERROR: __webpack_require__(97249),\r\n VIDEO_LOCKED: __webpack_require__(19483),\r\n VIDEO_LOOP: __webpack_require__(56059),\r\n VIDEO_METADATA: __webpack_require__(26772),\r\n VIDEO_PLAY: __webpack_require__(83411),\r\n VIDEO_PLAYING: __webpack_require__(64437),\r\n VIDEO_SEEKED: __webpack_require__(75780),\r\n VIDEO_SEEKING: __webpack_require__(67799),\r\n VIDEO_STALLED: __webpack_require__(63500),\r\n VIDEO_STOP: __webpack_require__(55541),\r\n VIDEO_TEXTURE: __webpack_require__(53208),\r\n VIDEO_UNLOCKED: __webpack_require__(4992),\r\n VIDEO_UNSUPPORTED: __webpack_require__(12)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 42421:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar GameObject = __webpack_require__(95643);\r\nvar ExternRender = __webpack_require__(64993);\r\n\r\n/**\r\n * @classdesc\r\n * An Extern Game Object is a special type of Game Object that allows you to pass\r\n * rendering off to a 3rd party.\r\n *\r\n * When you create an Extern and place it in the display list of a Scene, the renderer will\r\n * process the list as usual. When it finds an Extern it will flush the current batch,\r\n * clear down the pipeline and prepare a transform matrix which your render function can\r\n * take advantage of, if required.\r\n *\r\n * The WebGL context is then left in a 'clean' state, ready for you to bind your own shaders,\r\n * or draw to it, whatever you wish to do. This should all take place in the `render` method.\r\n * The correct way to deploy an Extern object is to create a class that extends it, then\r\n * override the `render` (and optionally `preUpdate`) methods and pass off control to your\r\n * 3rd party libraries or custom WebGL code there.\r\n *\r\n * Once you've finished, you should free-up any of your resources.\r\n * The Extern will then rebind the Phaser pipeline and carry on rendering the display list.\r\n *\r\n * Although this object has lots of properties such as Alpha, Blend Mode and Tint, none of\r\n * them are used during rendering unless you take advantage of them in your own render code.\r\n *\r\n * @class Extern\r\n * @extends Phaser.GameObjects.GameObject\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.16.0\r\n *\r\n * @extends Phaser.GameObjects.Components.Alpha\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.Flip\r\n * @extends Phaser.GameObjects.Components.Origin\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n * @extends Phaser.GameObjects.Components.Size\r\n * @extends Phaser.GameObjects.Components.Texture\r\n * @extends Phaser.GameObjects.Components.Tint\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n */\r\nvar Extern = new Class({\r\n\r\n Extends: GameObject,\r\n\r\n Mixins: [\r\n Components.Alpha,\r\n Components.BlendMode,\r\n Components.Depth,\r\n Components.Flip,\r\n Components.Origin,\r\n Components.ScrollFactor,\r\n Components.Size,\r\n Components.Texture,\r\n Components.Tint,\r\n Components.Transform,\r\n Components.Visible,\r\n ExternRender\r\n ],\r\n\r\n initialize:\r\n\r\n function Extern (scene)\r\n {\r\n GameObject.call(this, scene, 'Extern');\r\n },\r\n\r\n // Overrides Game Object method\r\n addedToScene: function ()\r\n {\r\n this.scene.sys.updateList.add(this);\r\n },\r\n\r\n // Overrides Game Object method\r\n removedFromScene: function ()\r\n {\r\n this.scene.sys.updateList.remove(this);\r\n },\r\n\r\n preUpdate: function ()\r\n {\r\n // override this!\r\n // Arguments: time, delta\r\n },\r\n\r\n render: function ()\r\n {\r\n // override this!\r\n // Arguments: renderer, camera, calcMatrix\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Extern;\r\n\n\n/***/ }),\n\n/***/ 70217:\n/***/ (() => {\n\n\n\n/***/ }),\n\n/***/ 56315:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Extern = __webpack_require__(42421);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * Creates a new Extern Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Extern Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#extern\r\n * @since 3.16.0\r\n *\r\n * @return {Phaser.GameObjects.Extern} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('extern', function ()\r\n{\r\n var extern = new Extern(this.scene);\r\n\r\n this.displayList.add(extern);\r\n\r\n return extern;\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectFactory context.\r\n//\r\n// There are several properties available to use:\r\n//\r\n// this.scene - a reference to the Scene that owns the GameObjectFactory\r\n// this.displayList - a reference to the Display List the Scene owns\r\n// this.updateList - a reference to the Update List the Scene owns\r\n\n\n/***/ }),\n\n/***/ 64993:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(80287);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(70217);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 80287:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetCalcMatrix = __webpack_require__(91296);\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Extern#renderWebGL\r\n * @since 3.16.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Extern} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar ExternWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n renderer.pipelines.clear();\r\n\r\n var calcMatrix = GetCalcMatrix(src, camera, parentMatrix).calc;\r\n\r\n src.render.call(src, renderer, camera, calcMatrix);\r\n\r\n renderer.pipelines.rebind();\r\n};\r\n\r\nmodule.exports = ExternWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 85592:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nmodule.exports = {\r\n\r\n ARC: 0,\r\n BEGIN_PATH: 1,\r\n CLOSE_PATH: 2,\r\n FILL_RECT: 3,\r\n LINE_TO: 4,\r\n MOVE_TO: 5,\r\n LINE_STYLE: 6,\r\n FILL_STYLE: 7,\r\n FILL_PATH: 8,\r\n STROKE_PATH: 9,\r\n FILL_TRIANGLE: 10,\r\n STROKE_TRIANGLE: 11,\r\n SAVE: 14,\r\n RESTORE: 15,\r\n TRANSLATE: 16,\r\n SCALE: 17,\r\n ROTATE: 18,\r\n GRADIENT_FILL_STYLE: 21,\r\n GRADIENT_LINE_STYLE: 22\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 43831:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BaseCamera = __webpack_require__(71911);\r\nvar Class = __webpack_require__(83419);\r\nvar Commands = __webpack_require__(85592);\r\nvar Components = __webpack_require__(31401);\r\nvar Ellipse = __webpack_require__(8497);\r\nvar GameObject = __webpack_require__(95643);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar GetValue = __webpack_require__(35154);\r\nvar MATH_CONST = __webpack_require__(36383);\r\nvar Render = __webpack_require__(84503);\r\n\r\n/**\r\n * @classdesc\r\n * A Graphics object is a way to draw primitive shapes to your game. Primitives include forms of geometry, such as\r\n * Rectangles, Circles, and Polygons. They also include lines, arcs and curves. When you initially create a Graphics\r\n * object it will be empty.\r\n *\r\n * To draw to it you must first specify a line style or fill style (or both), draw shapes using paths, and finally\r\n * fill or stroke them. For example:\r\n *\r\n * ```javascript\r\n * graphics.lineStyle(5, 0xFF00FF, 1.0);\r\n * graphics.beginPath();\r\n * graphics.moveTo(100, 100);\r\n * graphics.lineTo(200, 200);\r\n * graphics.closePath();\r\n * graphics.strokePath();\r\n * ```\r\n *\r\n * There are also many helpful methods that draw and fill/stroke common shapes for you.\r\n *\r\n * ```javascript\r\n * graphics.lineStyle(5, 0xFF00FF, 1.0);\r\n * graphics.fillStyle(0xFFFFFF, 1.0);\r\n * graphics.fillRect(50, 50, 400, 200);\r\n * graphics.strokeRect(50, 50, 400, 200);\r\n * ```\r\n *\r\n * When a Graphics object is rendered it will render differently based on if the game is running under Canvas or WebGL.\r\n * Under Canvas it will use the HTML Canvas context drawing operations to draw the path.\r\n * Under WebGL the graphics data is decomposed into polygons. Both of these are expensive processes, especially with\r\n * complex shapes.\r\n *\r\n * If your Graphics object doesn't change much (or at all) once you've drawn your shape to it, then you will help\r\n * performance by calling {@link Phaser.GameObjects.Graphics#generateTexture}. This will 'bake' the Graphics object into\r\n * a Texture, and return it. You can then use this Texture for Sprites or other display objects. If your Graphics object\r\n * updates frequently then you should avoid doing this, as it will constantly generate new textures, which will consume\r\n * memory.\r\n *\r\n * As you can tell, Graphics objects are a bit of a trade-off. While they are extremely useful, you need to be careful\r\n * in their complexity and quantity of them in your game.\r\n *\r\n * @class Graphics\r\n * @extends Phaser.GameObjects.GameObject\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @extends Phaser.GameObjects.Components.AlphaSingle\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.Mask\r\n * @extends Phaser.GameObjects.Components.Pipeline\r\n * @extends Phaser.GameObjects.Components.PostPipeline\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Graphics object belongs.\r\n * @param {Phaser.Types.GameObjects.Graphics.Options} [options] - Options that set the position and default style of this Graphics object.\r\n */\r\nvar Graphics = new Class({\r\n\r\n Extends: GameObject,\r\n\r\n Mixins: [\r\n Components.AlphaSingle,\r\n Components.BlendMode,\r\n Components.Depth,\r\n Components.Mask,\r\n Components.Pipeline,\r\n Components.PostPipeline,\r\n Components.Transform,\r\n Components.Visible,\r\n Components.ScrollFactor,\r\n Render\r\n ],\r\n\r\n initialize:\r\n\r\n function Graphics (scene, options)\r\n {\r\n var x = GetValue(options, 'x', 0);\r\n var y = GetValue(options, 'y', 0);\r\n\r\n GameObject.call(this, scene, 'Graphics');\r\n\r\n this.setPosition(x, y);\r\n this.initPipeline();\r\n this.initPostPipeline();\r\n\r\n /**\r\n * The horizontal display origin of the Graphics.\r\n *\r\n * @name Phaser.GameObjects.Graphics#displayOriginX\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.displayOriginX = 0;\r\n\r\n /**\r\n * The vertical display origin of the Graphics.\r\n *\r\n * @name Phaser.GameObjects.Graphics#displayOriginY\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.displayOriginY = 0;\r\n\r\n /**\r\n * The array of commands used to render the Graphics.\r\n *\r\n * @name Phaser.GameObjects.Graphics#commandBuffer\r\n * @type {array}\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this.commandBuffer = [];\r\n\r\n /**\r\n * The default fill color for shapes rendered by this Graphics object.\r\n * Set this value with `setDefaultStyles()`.\r\n *\r\n * @name Phaser.GameObjects.Graphics#defaultFillColor\r\n * @type {number}\r\n * @readonly\r\n * @default -1\r\n * @since 3.0.0\r\n */\r\n this.defaultFillColor = -1;\r\n\r\n /**\r\n * The default fill alpha for shapes rendered by this Graphics object.\r\n * Set this value with `setDefaultStyles()`.\r\n *\r\n * @name Phaser.GameObjects.Graphics#defaultFillAlpha\r\n * @type {number}\r\n * @readonly\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n this.defaultFillAlpha = 1;\r\n\r\n /**\r\n * The default stroke width for shapes rendered by this Graphics object.\r\n * Set this value with `setDefaultStyles()`.\r\n *\r\n * @name Phaser.GameObjects.Graphics#defaultStrokeWidth\r\n * @type {number}\r\n * @readonly\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n this.defaultStrokeWidth = 1;\r\n\r\n /**\r\n * The default stroke color for shapes rendered by this Graphics object.\r\n * Set this value with `setDefaultStyles()`.\r\n *\r\n * @name Phaser.GameObjects.Graphics#defaultStrokeColor\r\n * @type {number}\r\n * @readonly\r\n * @default -1\r\n * @since 3.0.0\r\n */\r\n this.defaultStrokeColor = -1;\r\n\r\n /**\r\n * The default stroke alpha for shapes rendered by this Graphics object.\r\n * Set this value with `setDefaultStyles()`.\r\n *\r\n * @name Phaser.GameObjects.Graphics#defaultStrokeAlpha\r\n * @type {number}\r\n * @readonly\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n this.defaultStrokeAlpha = 1;\r\n\r\n /**\r\n * Internal property that keeps track of the line width style setting.\r\n *\r\n * @name Phaser.GameObjects.Graphics#_lineWidth\r\n * @type {number}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._lineWidth = 1;\r\n\r\n this.lineStyle(1, 0, 0);\r\n this.fillStyle(0, 0);\r\n\r\n this.setDefaultStyles(options);\r\n },\r\n\r\n /**\r\n * Set the default style settings for this Graphics object.\r\n *\r\n * @method Phaser.GameObjects.Graphics#setDefaultStyles\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Graphics.Styles} options - The styles to set as defaults.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setDefaultStyles: function (options)\r\n {\r\n if (GetValue(options, 'lineStyle', null))\r\n {\r\n this.defaultStrokeWidth = GetValue(options, 'lineStyle.width', 1);\r\n this.defaultStrokeColor = GetValue(options, 'lineStyle.color', 0xffffff);\r\n this.defaultStrokeAlpha = GetValue(options, 'lineStyle.alpha', 1);\r\n\r\n this.lineStyle(this.defaultStrokeWidth, this.defaultStrokeColor, this.defaultStrokeAlpha);\r\n }\r\n\r\n if (GetValue(options, 'fillStyle', null))\r\n {\r\n this.defaultFillColor = GetValue(options, 'fillStyle.color', 0xffffff);\r\n this.defaultFillAlpha = GetValue(options, 'fillStyle.alpha', 1);\r\n\r\n this.fillStyle(this.defaultFillColor, this.defaultFillAlpha);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the current line style. Used for all 'stroke' related functions.\r\n *\r\n * @method Phaser.GameObjects.Graphics#lineStyle\r\n * @since 3.0.0\r\n *\r\n * @param {number} lineWidth - The stroke width.\r\n * @param {number} color - The stroke color.\r\n * @param {number} [alpha=1] - The stroke alpha.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n lineStyle: function (lineWidth, color, alpha)\r\n {\r\n if (alpha === undefined) { alpha = 1; }\r\n\r\n this.commandBuffer.push(\r\n Commands.LINE_STYLE,\r\n lineWidth, color, alpha\r\n );\r\n\r\n this._lineWidth = lineWidth;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the current fill style. Used for all 'fill' related functions.\r\n *\r\n * @method Phaser.GameObjects.Graphics#fillStyle\r\n * @since 3.0.0\r\n *\r\n * @param {number} color - The fill color.\r\n * @param {number} [alpha=1] - The fill alpha.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n fillStyle: function (color, alpha)\r\n {\r\n if (alpha === undefined) { alpha = 1; }\r\n\r\n this.commandBuffer.push(\r\n Commands.FILL_STYLE,\r\n color, alpha\r\n );\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a gradient fill style. This is a WebGL only feature.\r\n *\r\n * The gradient color values represent the 4 corners of an untransformed rectangle.\r\n * The gradient is used to color all filled shapes and paths drawn after calling this method.\r\n * If you wish to turn a gradient off, call `fillStyle` and provide a new single fill color.\r\n *\r\n * When filling a triangle only the first 3 color values provided are used for the 3 points of a triangle.\r\n *\r\n * This feature is best used only on rectangles and triangles. All other shapes will give strange results.\r\n *\r\n * Note that for objects such as arcs or ellipses, or anything which is made out of triangles, each triangle used\r\n * will be filled with a gradient on its own. There is no ability to gradient fill a shape or path as a single\r\n * entity at this time.\r\n *\r\n * @method Phaser.GameObjects.Graphics#fillGradientStyle\r\n * @webglOnly\r\n * @since 3.12.0\r\n *\r\n * @param {number} topLeft - The top left fill color.\r\n * @param {number} topRight - The top right fill color.\r\n * @param {number} bottomLeft - The bottom left fill color.\r\n * @param {number} bottomRight - The bottom right fill color. Not used when filling triangles.\r\n * @param {number} [alphaTopLeft=1] - The top left alpha value. If you give only this value, it's used for all corners.\r\n * @param {number} [alphaTopRight=1] - The top right alpha value.\r\n * @param {number} [alphaBottomLeft=1] - The bottom left alpha value.\r\n * @param {number} [alphaBottomRight=1] - The bottom right alpha value.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n fillGradientStyle: function (topLeft, topRight, bottomLeft, bottomRight, alphaTopLeft, alphaTopRight, alphaBottomLeft, alphaBottomRight)\r\n {\r\n if (alphaTopLeft === undefined) { alphaTopLeft = 1; }\r\n if (alphaTopRight === undefined) { alphaTopRight = alphaTopLeft; }\r\n if (alphaBottomLeft === undefined) { alphaBottomLeft = alphaTopLeft; }\r\n if (alphaBottomRight === undefined) { alphaBottomRight = alphaTopLeft; }\r\n\r\n this.commandBuffer.push(\r\n Commands.GRADIENT_FILL_STYLE,\r\n alphaTopLeft, alphaTopRight, alphaBottomLeft, alphaBottomRight,\r\n topLeft, topRight, bottomLeft, bottomRight\r\n );\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a gradient line style. This is a WebGL only feature.\r\n *\r\n * The gradient color values represent the 4 corners of an untransformed rectangle.\r\n * The gradient is used to color all stroked shapes and paths drawn after calling this method.\r\n * If you wish to turn a gradient off, call `lineStyle` and provide a new single line color.\r\n *\r\n * This feature is best used only on single lines. All other shapes will give strange results.\r\n *\r\n * Note that for objects such as arcs or ellipses, or anything which is made out of triangles, each triangle used\r\n * will be filled with a gradient on its own. There is no ability to gradient stroke a shape or path as a single\r\n * entity at this time.\r\n *\r\n * @method Phaser.GameObjects.Graphics#lineGradientStyle\r\n * @webglOnly\r\n * @since 3.12.0\r\n *\r\n * @param {number} lineWidth - The stroke width.\r\n * @param {number} topLeft - The tint being applied to the top-left of the Game Object.\r\n * @param {number} topRight - The tint being applied to the top-right of the Game Object.\r\n * @param {number} bottomLeft - The tint being applied to the bottom-left of the Game Object.\r\n * @param {number} bottomRight - The tint being applied to the bottom-right of the Game Object.\r\n * @param {number} [alpha=1] - The fill alpha.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n lineGradientStyle: function (lineWidth, topLeft, topRight, bottomLeft, bottomRight, alpha)\r\n {\r\n if (alpha === undefined) { alpha = 1; }\r\n\r\n this.commandBuffer.push(\r\n Commands.GRADIENT_LINE_STYLE,\r\n lineWidth, alpha, topLeft, topRight, bottomLeft, bottomRight\r\n );\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Start a new shape path.\r\n *\r\n * @method Phaser.GameObjects.Graphics#beginPath\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n beginPath: function ()\r\n {\r\n this.commandBuffer.push(\r\n Commands.BEGIN_PATH\r\n );\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Close the current path.\r\n *\r\n * @method Phaser.GameObjects.Graphics#closePath\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n closePath: function ()\r\n {\r\n this.commandBuffer.push(\r\n Commands.CLOSE_PATH\r\n );\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Fill the current path.\r\n *\r\n * @method Phaser.GameObjects.Graphics#fillPath\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n fillPath: function ()\r\n {\r\n this.commandBuffer.push(\r\n Commands.FILL_PATH\r\n );\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Fill the current path.\r\n *\r\n * This is an alias for `Graphics.fillPath` and does the same thing.\r\n * It was added to match the CanvasRenderingContext 2D API.\r\n *\r\n * @method Phaser.GameObjects.Graphics#fill\r\n * @since 3.16.0\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n fill: function ()\r\n {\r\n this.commandBuffer.push(\r\n Commands.FILL_PATH\r\n );\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Stroke the current path.\r\n *\r\n * @method Phaser.GameObjects.Graphics#strokePath\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n strokePath: function ()\r\n {\r\n this.commandBuffer.push(\r\n Commands.STROKE_PATH\r\n );\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Stroke the current path.\r\n *\r\n * This is an alias for `Graphics.strokePath` and does the same thing.\r\n * It was added to match the CanvasRenderingContext 2D API.\r\n *\r\n * @method Phaser.GameObjects.Graphics#stroke\r\n * @since 3.16.0\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n stroke: function ()\r\n {\r\n this.commandBuffer.push(\r\n Commands.STROKE_PATH\r\n );\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Fill the given circle.\r\n *\r\n * @method Phaser.GameObjects.Graphics#fillCircleShape\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Circle} circle - The circle to fill.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n fillCircleShape: function (circle)\r\n {\r\n return this.fillCircle(circle.x, circle.y, circle.radius);\r\n },\r\n\r\n /**\r\n * Stroke the given circle.\r\n *\r\n * @method Phaser.GameObjects.Graphics#strokeCircleShape\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Circle} circle - The circle to stroke.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n strokeCircleShape: function (circle)\r\n {\r\n return this.strokeCircle(circle.x, circle.y, circle.radius);\r\n },\r\n\r\n /**\r\n * Fill a circle with the given position and radius.\r\n *\r\n * @method Phaser.GameObjects.Graphics#fillCircle\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x coordinate of the center of the circle.\r\n * @param {number} y - The y coordinate of the center of the circle.\r\n * @param {number} radius - The radius of the circle.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n fillCircle: function (x, y, radius)\r\n {\r\n this.beginPath();\r\n this.arc(x, y, radius, 0, MATH_CONST.PI2);\r\n this.fillPath();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Stroke a circle with the given position and radius.\r\n *\r\n * @method Phaser.GameObjects.Graphics#strokeCircle\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x coordinate of the center of the circle.\r\n * @param {number} y - The y coordinate of the center of the circle.\r\n * @param {number} radius - The radius of the circle.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n strokeCircle: function (x, y, radius)\r\n {\r\n this.beginPath();\r\n this.arc(x, y, radius, 0, MATH_CONST.PI2);\r\n this.strokePath();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Fill the given rectangle.\r\n *\r\n * @method Phaser.GameObjects.Graphics#fillRectShape\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The rectangle to fill.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n fillRectShape: function (rect)\r\n {\r\n return this.fillRect(rect.x, rect.y, rect.width, rect.height);\r\n },\r\n\r\n /**\r\n * Stroke the given rectangle.\r\n *\r\n * @method Phaser.GameObjects.Graphics#strokeRectShape\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The rectangle to stroke.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n strokeRectShape: function (rect)\r\n {\r\n return this.strokeRect(rect.x, rect.y, rect.width, rect.height);\r\n },\r\n\r\n /**\r\n * Fill a rectangle with the given position and size.\r\n *\r\n * @method Phaser.GameObjects.Graphics#fillRect\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x coordinate of the top-left of the rectangle.\r\n * @param {number} y - The y coordinate of the top-left of the rectangle.\r\n * @param {number} width - The width of the rectangle.\r\n * @param {number} height - The height of the rectangle.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n fillRect: function (x, y, width, height)\r\n {\r\n this.commandBuffer.push(\r\n Commands.FILL_RECT,\r\n x, y, width, height\r\n );\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Stroke a rectangle with the given position and size.\r\n *\r\n * @method Phaser.GameObjects.Graphics#strokeRect\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x coordinate of the top-left of the rectangle.\r\n * @param {number} y - The y coordinate of the top-left of the rectangle.\r\n * @param {number} width - The width of the rectangle.\r\n * @param {number} height - The height of the rectangle.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n strokeRect: function (x, y, width, height)\r\n {\r\n var lineWidthHalf = this._lineWidth / 2;\r\n var minx = x - lineWidthHalf;\r\n var maxx = x + lineWidthHalf;\r\n\r\n this.beginPath();\r\n this.moveTo(x, y);\r\n this.lineTo(x, y + height);\r\n this.strokePath();\r\n\r\n this.beginPath();\r\n this.moveTo(x + width, y);\r\n this.lineTo(x + width, y + height);\r\n this.strokePath();\r\n\r\n this.beginPath();\r\n this.moveTo(minx, y);\r\n this.lineTo(maxx + width, y);\r\n this.strokePath();\r\n\r\n this.beginPath();\r\n this.moveTo(minx, y + height);\r\n this.lineTo(maxx + width, y + height);\r\n this.strokePath();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Fill a rounded rectangle with the given position, size and radius.\r\n *\r\n * @method Phaser.GameObjects.Graphics#fillRoundedRect\r\n * @since 3.11.0\r\n *\r\n * @param {number} x - The x coordinate of the top-left of the rectangle.\r\n * @param {number} y - The y coordinate of the top-left of the rectangle.\r\n * @param {number} width - The width of the rectangle.\r\n * @param {number} height - The height of the rectangle.\r\n * @param {(Phaser.Types.GameObjects.Graphics.RoundedRectRadius|number)} [radius=20] - The corner radius; It can also be an object to specify different radius for corners.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n fillRoundedRect: function (x, y, width, height, radius)\r\n {\r\n if (radius === undefined) { radius = 20; }\r\n\r\n var tl = radius;\r\n var tr = radius;\r\n var bl = radius;\r\n var br = radius;\r\n\r\n if (typeof radius !== 'number')\r\n {\r\n tl = GetFastValue(radius, 'tl', 20);\r\n tr = GetFastValue(radius, 'tr', 20);\r\n bl = GetFastValue(radius, 'bl', 20);\r\n br = GetFastValue(radius, 'br', 20);\r\n }\r\n\r\n var convexTL = (tl >= 0);\r\n var convexTR = (tr >= 0);\r\n var convexBL = (bl >= 0);\r\n var convexBR = (br >= 0);\r\n\r\n tl = Math.abs(tl);\r\n tr = Math.abs(tr);\r\n bl = Math.abs(bl);\r\n br = Math.abs(br);\r\n\r\n this.beginPath();\r\n this.moveTo(x + tl, y);\r\n this.lineTo(x + width - tr, y);\r\n\r\n if (convexTR)\r\n {\r\n this.arc(x + width - tr, y + tr, tr, -MATH_CONST.TAU, 0);\r\n }\r\n else\r\n {\r\n this.arc(x + width, y, tr, Math.PI, MATH_CONST.TAU, true);\r\n }\r\n\r\n this.lineTo(x + width, y + height - br);\r\n\r\n if (convexBR)\r\n {\r\n this.arc(x + width - br, y + height - br, br, 0, MATH_CONST.TAU);\r\n }\r\n else\r\n {\r\n this.arc(x + width, y + height, br, -MATH_CONST.TAU, Math.PI, true);\r\n }\r\n\r\n this.lineTo(x + bl, y + height);\r\n\r\n if (convexBL)\r\n {\r\n this.arc(x + bl, y + height - bl, bl, MATH_CONST.TAU, Math.PI);\r\n }\r\n else\r\n {\r\n this.arc(x, y + height, bl, 0, -MATH_CONST.TAU, true);\r\n }\r\n\r\n this.lineTo(x, y + tl);\r\n\r\n if (convexTL)\r\n {\r\n this.arc(x + tl, y + tl, tl, -Math.PI, -MATH_CONST.TAU);\r\n }\r\n else\r\n {\r\n this.arc(x, y, tl, MATH_CONST.TAU, 0, true);\r\n }\r\n\r\n this.fillPath();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Stroke a rounded rectangle with the given position, size and radius.\r\n *\r\n * @method Phaser.GameObjects.Graphics#strokeRoundedRect\r\n * @since 3.11.0\r\n *\r\n * @param {number} x - The x coordinate of the top-left of the rectangle.\r\n * @param {number} y - The y coordinate of the top-left of the rectangle.\r\n * @param {number} width - The width of the rectangle.\r\n * @param {number} height - The height of the rectangle.\r\n * @param {(Phaser.Types.GameObjects.Graphics.RoundedRectRadius|number)} [radius=20] - The corner radius; It can also be an object to specify different radii for corners.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n strokeRoundedRect: function (x, y, width, height, radius)\r\n {\r\n if (radius === undefined) { radius = 20; }\r\n\r\n var tl = radius;\r\n var tr = radius;\r\n var bl = radius;\r\n var br = radius;\r\n\r\n var maxRadius = Math.min(width, height) / 2;\r\n\r\n if (typeof radius !== 'number')\r\n {\r\n tl = GetFastValue(radius, 'tl', 20);\r\n tr = GetFastValue(radius, 'tr', 20);\r\n bl = GetFastValue(radius, 'bl', 20);\r\n br = GetFastValue(radius, 'br', 20);\r\n }\r\n\r\n var convexTL = (tl >= 0);\r\n var convexTR = (tr >= 0);\r\n var convexBL = (bl >= 0);\r\n var convexBR = (br >= 0);\r\n\r\n tl = Math.min(Math.abs(tl), maxRadius);\r\n tr = Math.min(Math.abs(tr), maxRadius);\r\n bl = Math.min(Math.abs(bl), maxRadius);\r\n br = Math.min(Math.abs(br), maxRadius);\r\n\r\n this.beginPath();\r\n this.moveTo(x + tl, y);\r\n this.lineTo(x + width - tr, y);\r\n this.moveTo(x + width - tr, y);\r\n\r\n if (convexTR)\r\n {\r\n this.arc(x + width - tr, y + tr, tr, -MATH_CONST.TAU, 0);\r\n }\r\n else\r\n {\r\n this.arc(x + width, y, tr, Math.PI, MATH_CONST.TAU, true);\r\n }\r\n\r\n this.lineTo(x + width, y + height - br);\r\n this.moveTo(x + width, y + height - br);\r\n\r\n if (convexBR)\r\n {\r\n this.arc(x + width - br, y + height - br, br, 0, MATH_CONST.TAU);\r\n }\r\n else\r\n {\r\n this.arc(x + width, y + height, br, -MATH_CONST.TAU, Math.PI, true);\r\n }\r\n\r\n this.lineTo(x + bl, y + height);\r\n this.moveTo(x + bl, y + height);\r\n\r\n if (convexBL)\r\n {\r\n this.arc(x + bl, y + height - bl, bl, MATH_CONST.TAU, Math.PI);\r\n }\r\n else\r\n {\r\n this.arc(x, y + height, bl, 0, -MATH_CONST.TAU, true);\r\n }\r\n\r\n this.lineTo(x, y + tl);\r\n this.moveTo(x, y + tl);\r\n\r\n if (convexTL)\r\n {\r\n this.arc(x + tl, y + tl, tl, -Math.PI, -MATH_CONST.TAU);\r\n }\r\n else\r\n {\r\n this.arc(x, y, tl, MATH_CONST.TAU, 0, true);\r\n }\r\n\r\n this.strokePath();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Fill the given point.\r\n *\r\n * Draws a square at the given position, 1 pixel in size by default.\r\n *\r\n * @method Phaser.GameObjects.Graphics#fillPointShape\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Geom.Point|Phaser.Math.Vector2|object)} point - The point to fill.\r\n * @param {number} [size=1] - The size of the square to draw.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n fillPointShape: function (point, size)\r\n {\r\n return this.fillPoint(point.x, point.y, size);\r\n },\r\n\r\n /**\r\n * Fill a point at the given position.\r\n *\r\n * Draws a square at the given position, 1 pixel in size by default.\r\n *\r\n * @method Phaser.GameObjects.Graphics#fillPoint\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x coordinate of the point.\r\n * @param {number} y - The y coordinate of the point.\r\n * @param {number} [size=1] - The size of the square to draw.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n fillPoint: function (x, y, size)\r\n {\r\n if (!size || size < 1)\r\n {\r\n size = 1;\r\n }\r\n else\r\n {\r\n x -= (size / 2);\r\n y -= (size / 2);\r\n }\r\n\r\n this.commandBuffer.push(\r\n Commands.FILL_RECT,\r\n x, y, size, size\r\n );\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Fill the given triangle.\r\n *\r\n * @method Phaser.GameObjects.Graphics#fillTriangleShape\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The triangle to fill.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n fillTriangleShape: function (triangle)\r\n {\r\n return this.fillTriangle(triangle.x1, triangle.y1, triangle.x2, triangle.y2, triangle.x3, triangle.y3);\r\n },\r\n\r\n /**\r\n * Stroke the given triangle.\r\n *\r\n * @method Phaser.GameObjects.Graphics#strokeTriangleShape\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The triangle to stroke.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n strokeTriangleShape: function (triangle)\r\n {\r\n return this.strokeTriangle(triangle.x1, triangle.y1, triangle.x2, triangle.y2, triangle.x3, triangle.y3);\r\n },\r\n\r\n /**\r\n * Fill a triangle with the given points.\r\n *\r\n * @method Phaser.GameObjects.Graphics#fillTriangle\r\n * @since 3.0.0\r\n *\r\n * @param {number} x0 - The x coordinate of the first point.\r\n * @param {number} y0 - The y coordinate of the first point.\r\n * @param {number} x1 - The x coordinate of the second point.\r\n * @param {number} y1 - The y coordinate of the second point.\r\n * @param {number} x2 - The x coordinate of the third point.\r\n * @param {number} y2 - The y coordinate of the third point.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n fillTriangle: function (x0, y0, x1, y1, x2, y2)\r\n {\r\n this.commandBuffer.push(\r\n Commands.FILL_TRIANGLE,\r\n x0, y0, x1, y1, x2, y2\r\n );\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Stroke a triangle with the given points.\r\n *\r\n * @method Phaser.GameObjects.Graphics#strokeTriangle\r\n * @since 3.0.0\r\n *\r\n * @param {number} x0 - The x coordinate of the first point.\r\n * @param {number} y0 - The y coordinate of the first point.\r\n * @param {number} x1 - The x coordinate of the second point.\r\n * @param {number} y1 - The y coordinate of the second point.\r\n * @param {number} x2 - The x coordinate of the third point.\r\n * @param {number} y2 - The y coordinate of the third point.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n strokeTriangle: function (x0, y0, x1, y1, x2, y2)\r\n {\r\n this.commandBuffer.push(\r\n Commands.STROKE_TRIANGLE,\r\n x0, y0, x1, y1, x2, y2\r\n );\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Draw the given line.\r\n *\r\n * @method Phaser.GameObjects.Graphics#strokeLineShape\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Line} line - The line to stroke.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n strokeLineShape: function (line)\r\n {\r\n return this.lineBetween(line.x1, line.y1, line.x2, line.y2);\r\n },\r\n\r\n /**\r\n * Draw a line between the given points.\r\n *\r\n * @method Phaser.GameObjects.Graphics#lineBetween\r\n * @since 3.0.0\r\n *\r\n * @param {number} x1 - The x coordinate of the start point of the line.\r\n * @param {number} y1 - The y coordinate of the start point of the line.\r\n * @param {number} x2 - The x coordinate of the end point of the line.\r\n * @param {number} y2 - The y coordinate of the end point of the line.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n lineBetween: function (x1, y1, x2, y2)\r\n {\r\n this.beginPath();\r\n this.moveTo(x1, y1);\r\n this.lineTo(x2, y2);\r\n this.strokePath();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Draw a line from the current drawing position to the given position.\r\n *\r\n * Moves the current drawing position to the given position.\r\n *\r\n * @method Phaser.GameObjects.Graphics#lineTo\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x coordinate to draw the line to.\r\n * @param {number} y - The y coordinate to draw the line to.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n lineTo: function (x, y)\r\n {\r\n this.commandBuffer.push(\r\n Commands.LINE_TO,\r\n x, y\r\n );\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Move the current drawing position to the given position.\r\n *\r\n * @method Phaser.GameObjects.Graphics#moveTo\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x coordinate to move to.\r\n * @param {number} y - The y coordinate to move to.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n moveTo: function (x, y)\r\n {\r\n this.commandBuffer.push(\r\n Commands.MOVE_TO,\r\n x, y\r\n );\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Stroke the shape represented by the given array of points.\r\n *\r\n * Pass `closeShape` to automatically close the shape by joining the last to the first point.\r\n *\r\n * Pass `closePath` to automatically close the path before it is stroked.\r\n *\r\n * @method Phaser.GameObjects.Graphics#strokePoints\r\n * @since 3.0.0\r\n *\r\n * @param {(array|Phaser.Geom.Point[])} points - The points to stroke.\r\n * @param {boolean} [closeShape=false] - When `true`, the shape is closed by joining the last point to the first point.\r\n * @param {boolean} [closePath=false] - When `true`, the path is closed before being stroked.\r\n * @param {number} [endIndex] - The index of `points` to stop drawing at. Defaults to `points.length`.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n strokePoints: function (points, closeShape, closePath, endIndex)\r\n {\r\n if (closeShape === undefined) { closeShape = false; }\r\n if (closePath === undefined) { closePath = false; }\r\n if (endIndex === undefined) { endIndex = points.length; }\r\n\r\n this.beginPath();\r\n\r\n this.moveTo(points[0].x, points[0].y);\r\n\r\n for (var i = 1; i < endIndex; i++)\r\n {\r\n this.lineTo(points[i].x, points[i].y);\r\n }\r\n\r\n if (closeShape)\r\n {\r\n this.lineTo(points[0].x, points[0].y);\r\n }\r\n\r\n if (closePath)\r\n {\r\n this.closePath();\r\n }\r\n\r\n this.strokePath();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Fill the shape represented by the given array of points.\r\n *\r\n * Pass `closeShape` to automatically close the shape by joining the last to the first point.\r\n *\r\n * Pass `closePath` to automatically close the path before it is filled.\r\n *\r\n * @method Phaser.GameObjects.Graphics#fillPoints\r\n * @since 3.0.0\r\n *\r\n * @param {(array|Phaser.Geom.Point[])} points - The points to fill.\r\n * @param {boolean} [closeShape=false] - When `true`, the shape is closed by joining the last point to the first point.\r\n * @param {boolean} [closePath=false] - When `true`, the path is closed before being stroked.\r\n * @param {number} [endIndex] - The index of `points` to stop at. Defaults to `points.length`.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n fillPoints: function (points, closeShape, closePath, endIndex)\r\n {\r\n if (closeShape === undefined) { closeShape = false; }\r\n if (closePath === undefined) { closePath = false; }\r\n if (endIndex === undefined) { endIndex = points.length; }\r\n\r\n this.beginPath();\r\n\r\n this.moveTo(points[0].x, points[0].y);\r\n\r\n for (var i = 1; i < endIndex; i++)\r\n {\r\n this.lineTo(points[i].x, points[i].y);\r\n }\r\n\r\n if (closeShape)\r\n {\r\n this.lineTo(points[0].x, points[0].y);\r\n }\r\n\r\n if (closePath)\r\n {\r\n this.closePath();\r\n }\r\n\r\n this.fillPath();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Stroke the given ellipse.\r\n *\r\n * @method Phaser.GameObjects.Graphics#strokeEllipseShape\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Ellipse} ellipse - The ellipse to stroke.\r\n * @param {number} [smoothness=32] - The number of points to draw the ellipse with.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n strokeEllipseShape: function (ellipse, smoothness)\r\n {\r\n if (smoothness === undefined) { smoothness = 32; }\r\n\r\n var points = ellipse.getPoints(smoothness);\r\n\r\n return this.strokePoints(points, true);\r\n },\r\n\r\n /**\r\n * Stroke an ellipse with the given position and size.\r\n *\r\n * @method Phaser.GameObjects.Graphics#strokeEllipse\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x coordinate of the center of the ellipse.\r\n * @param {number} y - The y coordinate of the center of the ellipse.\r\n * @param {number} width - The width of the ellipse.\r\n * @param {number} height - The height of the ellipse.\r\n * @param {number} [smoothness=32] - The number of points to draw the ellipse with.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n strokeEllipse: function (x, y, width, height, smoothness)\r\n {\r\n if (smoothness === undefined) { smoothness = 32; }\r\n\r\n var ellipse = new Ellipse(x, y, width, height);\r\n\r\n var points = ellipse.getPoints(smoothness);\r\n\r\n return this.strokePoints(points, true);\r\n },\r\n\r\n /**\r\n * Fill the given ellipse.\r\n *\r\n * @method Phaser.GameObjects.Graphics#fillEllipseShape\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Ellipse} ellipse - The ellipse to fill.\r\n * @param {number} [smoothness=32] - The number of points to draw the ellipse with.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n fillEllipseShape: function (ellipse, smoothness)\r\n {\r\n if (smoothness === undefined) { smoothness = 32; }\r\n\r\n var points = ellipse.getPoints(smoothness);\r\n\r\n return this.fillPoints(points, true);\r\n },\r\n\r\n /**\r\n * Fill an ellipse with the given position and size.\r\n *\r\n * @method Phaser.GameObjects.Graphics#fillEllipse\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x coordinate of the center of the ellipse.\r\n * @param {number} y - The y coordinate of the center of the ellipse.\r\n * @param {number} width - The width of the ellipse.\r\n * @param {number} height - The height of the ellipse.\r\n * @param {number} [smoothness=32] - The number of points to draw the ellipse with.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n fillEllipse: function (x, y, width, height, smoothness)\r\n {\r\n if (smoothness === undefined) { smoothness = 32; }\r\n\r\n var ellipse = new Ellipse(x, y, width, height);\r\n\r\n var points = ellipse.getPoints(smoothness);\r\n\r\n return this.fillPoints(points, true);\r\n },\r\n\r\n /**\r\n * Draw an arc.\r\n *\r\n * This method can be used to create circles, or parts of circles.\r\n *\r\n * Make sure you call `beginPath` before starting the arc unless you wish for the arc to automatically\r\n * close when filled or stroked.\r\n *\r\n * Use the optional `overshoot` argument increase the number of iterations that take place when\r\n * the arc is rendered in WebGL. This is useful if you're drawing an arc with an especially thick line,\r\n * as it will allow the arc to fully join-up. Try small values at first, i.e. 0.01.\r\n *\r\n * Call {@link Phaser.GameObjects.Graphics#fillPath} or {@link Phaser.GameObjects.Graphics#strokePath} after calling\r\n * this method to draw the arc.\r\n *\r\n * @method Phaser.GameObjects.Graphics#arc\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x coordinate of the center of the circle.\r\n * @param {number} y - The y coordinate of the center of the circle.\r\n * @param {number} radius - The radius of the circle.\r\n * @param {number} startAngle - The starting angle, in radians.\r\n * @param {number} endAngle - The ending angle, in radians.\r\n * @param {boolean} [anticlockwise=false] - Whether the drawing should be anticlockwise or clockwise.\r\n * @param {number} [overshoot=0] - This value allows you to increase the segment iterations in WebGL rendering. Useful if the arc has a thick stroke and needs to overshoot to join-up cleanly. Use small numbers such as 0.01 to start with and increase as needed.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n arc: function (x, y, radius, startAngle, endAngle, anticlockwise, overshoot)\r\n {\r\n if (anticlockwise === undefined) { anticlockwise = false; }\r\n if (overshoot === undefined) { overshoot = 0; }\r\n\r\n this.commandBuffer.push(\r\n Commands.ARC,\r\n x, y, radius, startAngle, endAngle, anticlockwise, overshoot\r\n );\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Creates a pie-chart slice shape centered at `x`, `y` with the given radius.\r\n * You must define the start and end angle of the slice.\r\n *\r\n * Setting the `anticlockwise` argument to `true` creates a shape similar to Pacman.\r\n * Setting it to `false` creates a shape like a slice of pie.\r\n *\r\n * This method will begin a new path and close the path at the end of it.\r\n * To display the actual slice you need to call either `strokePath` or `fillPath` after it.\r\n *\r\n * @method Phaser.GameObjects.Graphics#slice\r\n * @since 3.4.0\r\n *\r\n * @param {number} x - The horizontal center of the slice.\r\n * @param {number} y - The vertical center of the slice.\r\n * @param {number} radius - The radius of the slice.\r\n * @param {number} startAngle - The start angle of the slice, given in radians.\r\n * @param {number} endAngle - The end angle of the slice, given in radians.\r\n * @param {boolean} [anticlockwise=false] - Whether the drawing should be anticlockwise or clockwise.\r\n * @param {number} [overshoot=0] - This value allows you to overshoot the endAngle by this amount. Useful if the arc has a thick stroke and needs to overshoot to join-up cleanly.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n slice: function (x, y, radius, startAngle, endAngle, anticlockwise, overshoot)\r\n {\r\n if (anticlockwise === undefined) { anticlockwise = false; }\r\n if (overshoot === undefined) { overshoot = 0; }\r\n\r\n this.commandBuffer.push(Commands.BEGIN_PATH);\r\n\r\n this.commandBuffer.push(Commands.MOVE_TO, x, y);\r\n\r\n this.commandBuffer.push(Commands.ARC, x, y, radius, startAngle, endAngle, anticlockwise, overshoot);\r\n\r\n this.commandBuffer.push(Commands.CLOSE_PATH);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Saves the state of the Graphics by pushing the current state onto a stack.\r\n *\r\n * The most recently saved state can then be restored with {@link Phaser.GameObjects.Graphics#restore}.\r\n *\r\n * @method Phaser.GameObjects.Graphics#save\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n save: function ()\r\n {\r\n this.commandBuffer.push(\r\n Commands.SAVE\r\n );\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Restores the most recently saved state of the Graphics by popping from the state stack.\r\n *\r\n * Use {@link Phaser.GameObjects.Graphics#save} to save the current state, and call this afterwards to restore that state.\r\n *\r\n * If there is no saved state, this command does nothing.\r\n *\r\n * @method Phaser.GameObjects.Graphics#restore\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n restore: function ()\r\n {\r\n this.commandBuffer.push(\r\n Commands.RESTORE\r\n );\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Inserts a translation command into this Graphics objects command buffer.\r\n *\r\n * All objects drawn _after_ calling this method will be translated\r\n * by the given amount.\r\n *\r\n * This does not change the position of the Graphics object itself,\r\n * only of the objects drawn by it after calling this method.\r\n *\r\n * @method Phaser.GameObjects.Graphics#translateCanvas\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal translation to apply.\r\n * @param {number} y - The vertical translation to apply.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n translateCanvas: function (x, y)\r\n {\r\n this.commandBuffer.push(\r\n Commands.TRANSLATE,\r\n x, y\r\n );\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Inserts a scale command into this Graphics objects command buffer.\r\n *\r\n * All objects drawn _after_ calling this method will be scaled\r\n * by the given amount.\r\n *\r\n * This does not change the scale of the Graphics object itself,\r\n * only of the objects drawn by it after calling this method.\r\n *\r\n * @method Phaser.GameObjects.Graphics#scaleCanvas\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal scale to apply.\r\n * @param {number} y - The vertical scale to apply.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n scaleCanvas: function (x, y)\r\n {\r\n this.commandBuffer.push(\r\n Commands.SCALE,\r\n x, y\r\n );\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Inserts a rotation command into this Graphics objects command buffer.\r\n *\r\n * All objects drawn _after_ calling this method will be rotated\r\n * by the given amount.\r\n *\r\n * This does not change the rotation of the Graphics object itself,\r\n * only of the objects drawn by it after calling this method.\r\n *\r\n * @method Phaser.GameObjects.Graphics#rotateCanvas\r\n * @since 3.0.0\r\n *\r\n * @param {number} radians - The rotation angle, in radians.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n rotateCanvas: function (radians)\r\n {\r\n this.commandBuffer.push(\r\n Commands.ROTATE,\r\n radians\r\n );\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Clear the command buffer and reset the fill style and line style to their defaults.\r\n *\r\n * @method Phaser.GameObjects.Graphics#clear\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n clear: function ()\r\n {\r\n this.commandBuffer.length = 0;\r\n\r\n if (this.defaultFillColor > -1)\r\n {\r\n this.fillStyle(this.defaultFillColor, this.defaultFillAlpha);\r\n }\r\n\r\n if (this.defaultStrokeColor > -1)\r\n {\r\n this.lineStyle(this.defaultStrokeWidth, this.defaultStrokeColor, this.defaultStrokeAlpha);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Generate a texture from this Graphics object.\r\n *\r\n * If `key` is a string it'll generate a new texture using it and add it into the\r\n * Texture Manager (assuming no key conflict happens).\r\n *\r\n * If `key` is a Canvas it will draw the texture to that canvas context. Note that it will NOT\r\n * automatically upload it to the GPU in WebGL mode.\r\n *\r\n * Please understand that the texture is created via the Canvas API of the browser, therefore some\r\n * Graphics features, such as `fillGradientStyle`, will not appear on the resulting texture,\r\n * as they're unsupported by the Canvas API.\r\n *\r\n * @method Phaser.GameObjects.Graphics#generateTexture\r\n * @since 3.0.0\r\n *\r\n * @param {(string|HTMLCanvasElement)} key - The key to store the texture with in the Texture Manager, or a Canvas to draw to.\r\n * @param {number} [width] - The width of the graphics to generate.\r\n * @param {number} [height] - The height of the graphics to generate.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n generateTexture: function (key, width, height)\r\n {\r\n var sys = this.scene.sys;\r\n var renderer = sys.game.renderer;\r\n\r\n if (width === undefined) { width = sys.scale.width; }\r\n if (height === undefined) { height = sys.scale.height; }\r\n\r\n Graphics.TargetCamera.setScene(this.scene);\r\n Graphics.TargetCamera.setViewport(0, 0, width, height);\r\n Graphics.TargetCamera.scrollX = this.x;\r\n Graphics.TargetCamera.scrollY = this.y;\r\n\r\n var texture;\r\n var ctx;\r\n var willRead = { willReadFrequently: true };\r\n\r\n if (typeof key === 'string')\r\n {\r\n if (sys.textures.exists(key))\r\n {\r\n // Key is a string, it DOES exist in the Texture Manager AND is a canvas, so draw to it\r\n\r\n texture = sys.textures.get(key);\r\n\r\n var src = texture.getSourceImage();\r\n\r\n if (src instanceof HTMLCanvasElement)\r\n {\r\n ctx = src.getContext('2d', willRead);\r\n }\r\n }\r\n else\r\n {\r\n // Key is a string and doesn't exist in the Texture Manager, so generate and save it\r\n\r\n texture = sys.textures.createCanvas(key, width, height);\r\n\r\n ctx = texture.getSourceImage().getContext('2d', willRead);\r\n }\r\n }\r\n else if (key instanceof HTMLCanvasElement)\r\n {\r\n // Key is a Canvas, so draw to it\r\n\r\n ctx = key.getContext('2d', willRead);\r\n }\r\n\r\n if (ctx)\r\n {\r\n // var GraphicsCanvasRenderer = function (renderer, src, camera, parentMatrix, renderTargetCtx, allowClip)\r\n this.renderCanvas(renderer, this, Graphics.TargetCamera, null, ctx, false);\r\n\r\n if (texture)\r\n {\r\n texture.refresh();\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal destroy handler, called as part of the destroy process.\r\n *\r\n * @method Phaser.GameObjects.Graphics#preDestroy\r\n * @protected\r\n * @since 3.9.0\r\n */\r\n preDestroy: function ()\r\n {\r\n this.commandBuffer = [];\r\n }\r\n\r\n});\r\n\r\n/**\r\n * A Camera used specifically by the Graphics system for rendering to textures.\r\n *\r\n * @name Phaser.GameObjects.Graphics.TargetCamera\r\n * @type {Phaser.Cameras.Scene2D.Camera}\r\n * @since 3.1.0\r\n */\r\nGraphics.TargetCamera = new BaseCamera();\r\n\r\nmodule.exports = Graphics;\r\n\n\n/***/ }),\n\n/***/ 32768:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Commands = __webpack_require__(85592);\r\nvar SetTransform = __webpack_require__(20926);\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Graphics#renderCanvas\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.Graphics} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n * @param {CanvasRenderingContext2D} [renderTargetCtx] - The target rendering context.\r\n * @param {boolean} allowClip - If `true` then path operations will be used instead of fill operations.\r\n */\r\nvar GraphicsCanvasRenderer = function (renderer, src, camera, parentMatrix, renderTargetCtx, allowClip)\r\n{\r\n var commandBuffer = src.commandBuffer;\r\n var commandBufferLength = commandBuffer.length;\r\n\r\n var ctx = renderTargetCtx || renderer.currentContext;\r\n\r\n if (commandBufferLength === 0 || !SetTransform(renderer, ctx, src, camera, parentMatrix))\r\n {\r\n return;\r\n }\r\n\r\n camera.addToRenderList(src);\r\n\r\n var lineAlpha = 1;\r\n var fillAlpha = 1;\r\n var lineColor = 0;\r\n var fillColor = 0;\r\n var lineWidth = 1;\r\n var red = 0;\r\n var green = 0;\r\n var blue = 0;\r\n\r\n // Reset any currently active paths\r\n ctx.beginPath();\r\n\r\n for (var index = 0; index < commandBufferLength; ++index)\r\n {\r\n var commandID = commandBuffer[index];\r\n\r\n switch (commandID)\r\n {\r\n case Commands.ARC:\r\n ctx.arc(\r\n commandBuffer[index + 1],\r\n commandBuffer[index + 2],\r\n commandBuffer[index + 3],\r\n commandBuffer[index + 4],\r\n commandBuffer[index + 5],\r\n commandBuffer[index + 6]\r\n );\r\n\r\n // +7 because overshoot is the 7th value, not used in Canvas\r\n index += 7;\r\n break;\r\n\r\n case Commands.LINE_STYLE:\r\n lineWidth = commandBuffer[index + 1];\r\n lineColor = commandBuffer[index + 2];\r\n lineAlpha = commandBuffer[index + 3];\r\n red = ((lineColor & 0xFF0000) >>> 16);\r\n green = ((lineColor & 0xFF00) >>> 8);\r\n blue = (lineColor & 0xFF);\r\n ctx.strokeStyle = 'rgba(' + red + ',' + green + ',' + blue + ',' + lineAlpha + ')';\r\n ctx.lineWidth = lineWidth;\r\n index += 3;\r\n break;\r\n\r\n case Commands.FILL_STYLE:\r\n fillColor = commandBuffer[index + 1];\r\n fillAlpha = commandBuffer[index + 2];\r\n red = ((fillColor & 0xFF0000) >>> 16);\r\n green = ((fillColor & 0xFF00) >>> 8);\r\n blue = (fillColor & 0xFF);\r\n ctx.fillStyle = 'rgba(' + red + ',' + green + ',' + blue + ',' + fillAlpha + ')';\r\n index += 2;\r\n break;\r\n\r\n case Commands.BEGIN_PATH:\r\n ctx.beginPath();\r\n break;\r\n\r\n case Commands.CLOSE_PATH:\r\n ctx.closePath();\r\n break;\r\n\r\n case Commands.FILL_PATH:\r\n if (!allowClip)\r\n {\r\n ctx.fill();\r\n }\r\n break;\r\n\r\n case Commands.STROKE_PATH:\r\n if (!allowClip)\r\n {\r\n ctx.stroke();\r\n }\r\n break;\r\n\r\n case Commands.FILL_RECT:\r\n if (!allowClip)\r\n {\r\n ctx.fillRect(\r\n commandBuffer[index + 1],\r\n commandBuffer[index + 2],\r\n commandBuffer[index + 3],\r\n commandBuffer[index + 4]\r\n );\r\n }\r\n else\r\n {\r\n ctx.rect(\r\n commandBuffer[index + 1],\r\n commandBuffer[index + 2],\r\n commandBuffer[index + 3],\r\n commandBuffer[index + 4]\r\n );\r\n }\r\n index += 4;\r\n break;\r\n\r\n case Commands.FILL_TRIANGLE:\r\n ctx.beginPath();\r\n ctx.moveTo(commandBuffer[index + 1], commandBuffer[index + 2]);\r\n ctx.lineTo(commandBuffer[index + 3], commandBuffer[index + 4]);\r\n ctx.lineTo(commandBuffer[index + 5], commandBuffer[index + 6]);\r\n ctx.closePath();\r\n if (!allowClip)\r\n {\r\n ctx.fill();\r\n }\r\n index += 6;\r\n break;\r\n\r\n case Commands.STROKE_TRIANGLE:\r\n ctx.beginPath();\r\n ctx.moveTo(commandBuffer[index + 1], commandBuffer[index + 2]);\r\n ctx.lineTo(commandBuffer[index + 3], commandBuffer[index + 4]);\r\n ctx.lineTo(commandBuffer[index + 5], commandBuffer[index + 6]);\r\n ctx.closePath();\r\n if (!allowClip)\r\n {\r\n ctx.stroke();\r\n }\r\n index += 6;\r\n break;\r\n\r\n case Commands.LINE_TO:\r\n ctx.lineTo(\r\n commandBuffer[index + 1],\r\n commandBuffer[index + 2]\r\n );\r\n index += 2;\r\n break;\r\n\r\n case Commands.MOVE_TO:\r\n ctx.moveTo(\r\n commandBuffer[index + 1],\r\n commandBuffer[index + 2]\r\n );\r\n index += 2;\r\n break;\r\n\r\n case Commands.LINE_FX_TO:\r\n ctx.lineTo(\r\n commandBuffer[index + 1],\r\n commandBuffer[index + 2]\r\n );\r\n index += 5;\r\n break;\r\n\r\n case Commands.MOVE_FX_TO:\r\n ctx.moveTo(\r\n commandBuffer[index + 1],\r\n commandBuffer[index + 2]\r\n );\r\n index += 5;\r\n break;\r\n\r\n case Commands.SAVE:\r\n ctx.save();\r\n break;\r\n\r\n case Commands.RESTORE:\r\n ctx.restore();\r\n break;\r\n\r\n case Commands.TRANSLATE:\r\n ctx.translate(\r\n commandBuffer[index + 1],\r\n commandBuffer[index + 2]\r\n );\r\n index += 2;\r\n break;\r\n\r\n case Commands.SCALE:\r\n ctx.scale(\r\n commandBuffer[index + 1],\r\n commandBuffer[index + 2]\r\n );\r\n index += 2;\r\n break;\r\n\r\n case Commands.ROTATE:\r\n ctx.rotate(\r\n commandBuffer[index + 1]\r\n );\r\n index += 1;\r\n break;\r\n\r\n case Commands.GRADIENT_FILL_STYLE:\r\n index += 5;\r\n break;\r\n\r\n case Commands.GRADIENT_LINE_STYLE:\r\n index += 6;\r\n break;\r\n }\r\n }\r\n\r\n // Restore the context saved in SetTransform\r\n ctx.restore();\r\n};\r\n\r\nmodule.exports = GraphicsCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 87079:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar Graphics = __webpack_require__(43831);\r\n\r\n/**\r\n * Creates a new Graphics Game Object and returns it.\r\n *\r\n * Note: This method will only be available if the Graphics Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#graphics\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Graphics.Options} [config] - The configuration object this Game Object will use to create itself.\r\n * @param {boolean} [addToScene] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.\r\n *\r\n * @return {Phaser.GameObjects.Graphics} The Game Object that was created.\r\n */\r\nGameObjectCreator.register('graphics', function (config, addToScene)\r\n{\r\n if (config === undefined) { config = {}; }\r\n\r\n if (addToScene !== undefined)\r\n {\r\n config.add = addToScene;\r\n }\r\n\r\n var graphics = new Graphics(this.scene, config);\r\n\r\n if (config.add)\r\n {\r\n this.scene.sys.displayList.add(graphics);\r\n }\r\n\r\n return graphics;\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectCreator context.\r\n\n\n/***/ }),\n\n/***/ 1201:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Graphics = __webpack_require__(43831);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * Creates a new Graphics Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Graphics Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#graphics\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Graphics.Options} [config] - The Graphics configuration.\r\n *\r\n * @return {Phaser.GameObjects.Graphics} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('graphics', function (config)\r\n{\r\n return this.displayList.add(new Graphics(this.scene, config));\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectFactory context.\r\n//\r\n// There are several properties available to use:\r\n//\r\n// this.scene - a reference to the Scene that owns the GameObjectFactory\r\n// this.displayList - a reference to the Display List the Scene owns\r\n// this.updateList - a reference to the Update List the Scene owns\r\n\n\n/***/ }),\n\n/***/ 84503:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(77545);\r\n\r\n // Needed for Graphics.generateTexture\r\n renderCanvas = __webpack_require__(32768);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(32768);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 77545:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Commands = __webpack_require__(85592);\r\nvar GetCalcMatrix = __webpack_require__(91296);\r\nvar TransformMatrix = __webpack_require__(61340);\r\nvar Utils = __webpack_require__(70554);\r\n\r\nvar Point = function (x, y, width)\r\n{\r\n this.x = x;\r\n this.y = y;\r\n this.width = width;\r\n};\r\n\r\nvar Path = function (x, y, width)\r\n{\r\n this.points = [];\r\n this.pointsLength = 1;\r\n this.points[0] = new Point(x, y, width);\r\n};\r\n\r\nvar matrixStack = [];\r\nvar tempMatrix = new TransformMatrix();\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Graphics#renderWebGL\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Graphics} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar GraphicsWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n if (src.commandBuffer.length === 0)\r\n {\r\n return;\r\n }\r\n\r\n camera.addToRenderList(src);\r\n\r\n var pipeline = renderer.pipelines.set(src.pipeline, src);\r\n\r\n renderer.pipelines.preBatch(src);\r\n\r\n var calcMatrix = GetCalcMatrix(src, camera, parentMatrix).calc;\r\n\r\n var currentMatrix = tempMatrix.loadIdentity();\r\n\r\n var commands = src.commandBuffer;\r\n var alpha = camera.alpha * src.alpha;\r\n\r\n var lineWidth = 1;\r\n var fillTint = pipeline.fillTint;\r\n var strokeTint = pipeline.strokeTint;\r\n\r\n var tx = 0;\r\n var ty = 0;\r\n var ta = 0;\r\n var iterStep = 0.01;\r\n var PI2 = Math.PI * 2;\r\n\r\n var cmd;\r\n\r\n var path = [];\r\n var pathIndex = 0;\r\n var pathOpen = true;\r\n var lastPath = null;\r\n\r\n var getTint = Utils.getTintAppendFloatAlpha;\r\n\r\n for (var cmdIndex = 0; cmdIndex < commands.length; cmdIndex++)\r\n {\r\n cmd = commands[cmdIndex];\r\n\r\n switch (cmd)\r\n {\r\n case Commands.BEGIN_PATH:\r\n {\r\n path.length = 0;\r\n lastPath = null;\r\n pathOpen = true;\r\n break;\r\n }\r\n\r\n case Commands.CLOSE_PATH:\r\n {\r\n pathOpen = false;\r\n\r\n if (lastPath && lastPath.points.length)\r\n {\r\n lastPath.points.push(lastPath.points[0]);\r\n }\r\n break;\r\n }\r\n\r\n case Commands.FILL_PATH:\r\n {\r\n for (pathIndex = 0; pathIndex < path.length; pathIndex++)\r\n {\r\n pipeline.batchFillPath(\r\n path[pathIndex].points,\r\n currentMatrix,\r\n calcMatrix\r\n );\r\n }\r\n break;\r\n }\r\n\r\n case Commands.STROKE_PATH:\r\n {\r\n for (pathIndex = 0; pathIndex < path.length; pathIndex++)\r\n {\r\n pipeline.batchStrokePath(\r\n path[pathIndex].points,\r\n lineWidth,\r\n pathOpen,\r\n currentMatrix,\r\n calcMatrix\r\n );\r\n }\r\n break;\r\n }\r\n\r\n case Commands.LINE_STYLE:\r\n {\r\n lineWidth = commands[++cmdIndex];\r\n var strokeColor = commands[++cmdIndex];\r\n var strokeAlpha = commands[++cmdIndex] * alpha;\r\n var strokeTintColor = getTint(strokeColor, strokeAlpha);\r\n strokeTint.TL = strokeTintColor;\r\n strokeTint.TR = strokeTintColor;\r\n strokeTint.BL = strokeTintColor;\r\n strokeTint.BR = strokeTintColor;\r\n break;\r\n }\r\n\r\n case Commands.FILL_STYLE:\r\n {\r\n var fillColor = commands[++cmdIndex];\r\n var fillAlpha = commands[++cmdIndex] * alpha;\r\n var fillTintColor = getTint(fillColor, fillAlpha);\r\n fillTint.TL = fillTintColor;\r\n fillTint.TR = fillTintColor;\r\n fillTint.BL = fillTintColor;\r\n fillTint.BR = fillTintColor;\r\n break;\r\n }\r\n\r\n case Commands.GRADIENT_FILL_STYLE:\r\n {\r\n var alphaTL = commands[++cmdIndex] * alpha;\r\n var alphaTR = commands[++cmdIndex] * alpha;\r\n var alphaBL = commands[++cmdIndex] * alpha;\r\n var alphaBR = commands[++cmdIndex] * alpha;\r\n\r\n fillTint.TL = getTint(commands[++cmdIndex], alphaTL);\r\n fillTint.TR = getTint(commands[++cmdIndex], alphaTR);\r\n fillTint.BL = getTint(commands[++cmdIndex], alphaBL);\r\n fillTint.BR = getTint(commands[++cmdIndex], alphaBR);\r\n break;\r\n }\r\n\r\n case Commands.GRADIENT_LINE_STYLE:\r\n {\r\n lineWidth = commands[++cmdIndex];\r\n var gradientLineAlpha = commands[++cmdIndex] * alpha;\r\n strokeTint.TL = getTint(commands[++cmdIndex], gradientLineAlpha);\r\n strokeTint.TR = getTint(commands[++cmdIndex], gradientLineAlpha);\r\n strokeTint.BL = getTint(commands[++cmdIndex], gradientLineAlpha);\r\n strokeTint.BR = getTint(commands[++cmdIndex], gradientLineAlpha);\r\n break;\r\n }\r\n\r\n case Commands.ARC:\r\n {\r\n var iteration = 0;\r\n var x = commands[++cmdIndex];\r\n var y = commands[++cmdIndex];\r\n var radius = commands[++cmdIndex];\r\n var startAngle = commands[++cmdIndex];\r\n var endAngle = commands[++cmdIndex];\r\n var anticlockwise = commands[++cmdIndex];\r\n var overshoot = commands[++cmdIndex];\r\n\r\n endAngle -= startAngle;\r\n\r\n if (anticlockwise)\r\n {\r\n if (endAngle < -PI2)\r\n {\r\n endAngle = -PI2;\r\n }\r\n else if (endAngle > 0)\r\n {\r\n endAngle = -PI2 + endAngle % PI2;\r\n }\r\n }\r\n else if (endAngle > PI2)\r\n {\r\n endAngle = PI2;\r\n }\r\n else if (endAngle < 0)\r\n {\r\n endAngle = PI2 + endAngle % PI2;\r\n }\r\n\r\n if (lastPath === null)\r\n {\r\n lastPath = new Path(x + Math.cos(startAngle) * radius, y + Math.sin(startAngle) * radius, lineWidth);\r\n path.push(lastPath);\r\n iteration += iterStep;\r\n }\r\n\r\n while (iteration < 1 + overshoot)\r\n {\r\n ta = endAngle * iteration + startAngle;\r\n tx = x + Math.cos(ta) * radius;\r\n ty = y + Math.sin(ta) * radius;\r\n\r\n lastPath.points.push(new Point(tx, ty, lineWidth));\r\n\r\n iteration += iterStep;\r\n }\r\n\r\n ta = endAngle + startAngle;\r\n tx = x + Math.cos(ta) * radius;\r\n ty = y + Math.sin(ta) * radius;\r\n\r\n lastPath.points.push(new Point(tx, ty, lineWidth));\r\n\r\n break;\r\n }\r\n\r\n case Commands.FILL_RECT:\r\n {\r\n pipeline.batchFillRect(\r\n commands[++cmdIndex],\r\n commands[++cmdIndex],\r\n commands[++cmdIndex],\r\n commands[++cmdIndex],\r\n currentMatrix,\r\n calcMatrix\r\n );\r\n break;\r\n }\r\n\r\n case Commands.FILL_TRIANGLE:\r\n {\r\n pipeline.batchFillTriangle(\r\n commands[++cmdIndex],\r\n commands[++cmdIndex],\r\n commands[++cmdIndex],\r\n commands[++cmdIndex],\r\n commands[++cmdIndex],\r\n commands[++cmdIndex],\r\n currentMatrix,\r\n calcMatrix\r\n );\r\n break;\r\n }\r\n\r\n case Commands.STROKE_TRIANGLE:\r\n {\r\n pipeline.batchStrokeTriangle(\r\n commands[++cmdIndex],\r\n commands[++cmdIndex],\r\n commands[++cmdIndex],\r\n commands[++cmdIndex],\r\n commands[++cmdIndex],\r\n commands[++cmdIndex],\r\n lineWidth,\r\n currentMatrix,\r\n calcMatrix\r\n );\r\n break;\r\n }\r\n\r\n case Commands.LINE_TO:\r\n {\r\n if (lastPath !== null)\r\n {\r\n lastPath.points.push(new Point(commands[++cmdIndex], commands[++cmdIndex], lineWidth));\r\n }\r\n else\r\n {\r\n lastPath = new Path(commands[++cmdIndex], commands[++cmdIndex], lineWidth);\r\n path.push(lastPath);\r\n }\r\n break;\r\n }\r\n\r\n case Commands.MOVE_TO:\r\n {\r\n lastPath = new Path(commands[++cmdIndex], commands[++cmdIndex], lineWidth);\r\n path.push(lastPath);\r\n break;\r\n }\r\n\r\n case Commands.SAVE:\r\n {\r\n matrixStack.push(currentMatrix.copyToArray());\r\n break;\r\n }\r\n\r\n case Commands.RESTORE:\r\n {\r\n currentMatrix.copyFromArray(matrixStack.pop());\r\n break;\r\n }\r\n\r\n case Commands.TRANSLATE:\r\n {\r\n x = commands[++cmdIndex];\r\n y = commands[++cmdIndex];\r\n currentMatrix.translate(x, y);\r\n break;\r\n }\r\n\r\n case Commands.SCALE:\r\n {\r\n x = commands[++cmdIndex];\r\n y = commands[++cmdIndex];\r\n currentMatrix.scale(x, y);\r\n break;\r\n }\r\n\r\n case Commands.ROTATE:\r\n {\r\n currentMatrix.rotate(commands[++cmdIndex]);\r\n break;\r\n }\r\n }\r\n }\r\n\r\n renderer.pipelines.postBatch(src);\r\n};\r\n\r\nmodule.exports = GraphicsWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 26479:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Actions = __webpack_require__(61061);\r\nvar Class = __webpack_require__(83419);\r\nvar Events = __webpack_require__(51708);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar GetAll = __webpack_require__(46710);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar GetValue = __webpack_require__(35154);\r\nvar HasValue = __webpack_require__(97022);\r\nvar IsPlainObject = __webpack_require__(41212);\r\nvar Range = __webpack_require__(88492);\r\nvar Set = __webpack_require__(35072);\r\nvar Sprite = __webpack_require__(68287);\r\n\r\n/**\r\n * @classdesc\r\n * A Group is a way for you to create, manipulate, or recycle similar Game Objects.\r\n *\r\n * Group membership is non-exclusive. A Game Object can belong to several groups, one group, or none.\r\n *\r\n * Groups themselves aren't displayable, and can't be positioned, rotated, scaled, or hidden.\r\n *\r\n * @class Group\r\n * @memberof Phaser.GameObjects\r\n * @extends Phaser.Events.EventEmitter\r\n * @constructor\r\n * @since 3.0.0\r\n * @param {Phaser.Scene} scene - The scene this group belongs to.\r\n * @param {(Phaser.GameObjects.GameObject[]|Phaser.Types.GameObjects.Group.GroupConfig|Phaser.Types.GameObjects.Group.GroupCreateConfig)} [children] - Game Objects to add to this group; or the `config` argument.\r\n * @param {Phaser.Types.GameObjects.Group.GroupConfig|Phaser.Types.GameObjects.Group.GroupCreateConfig} [config] - Settings for this group. If `key` is set, Phaser.GameObjects.Group#createMultiple is also called with these settings.\r\n *\r\n * @see Phaser.Physics.Arcade.Group\r\n * @see Phaser.Physics.Arcade.StaticGroup\r\n */\r\nvar Group = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function Group (scene, children, config)\r\n {\r\n EventEmitter.call(this);\r\n\r\n // They can pass in any of the following as the first argument:\r\n\r\n // 1) A single child\r\n // 2) An array of children\r\n // 3) A config object\r\n // 4) An array of config objects\r\n\r\n // Or they can pass in a child, or array of children AND a config object\r\n\r\n if (config)\r\n {\r\n // config has been set, are the children an array?\r\n\r\n if (children && !Array.isArray(children))\r\n {\r\n children = [ children ];\r\n }\r\n }\r\n else if (Array.isArray(children))\r\n {\r\n // No config, so let's check the children argument\r\n\r\n if (IsPlainObject(children[0]))\r\n {\r\n // It's an array of plain config objects\r\n config = children;\r\n children = null;\r\n }\r\n }\r\n else if (IsPlainObject(children))\r\n {\r\n // Children isn't an array. Is it a config object though?\r\n config = children;\r\n children = null;\r\n }\r\n\r\n /**\r\n * This scene this group belongs to.\r\n *\r\n * @name Phaser.GameObjects.Group#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.0.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * Members of this group.\r\n *\r\n * @name Phaser.GameObjects.Group#children\r\n * @type {Phaser.Structs.Set.}\r\n * @since 3.0.0\r\n */\r\n this.children = new Set();\r\n\r\n /**\r\n * A flag identifying this object as a group.\r\n *\r\n * @name Phaser.GameObjects.Group#isParent\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.isParent = true;\r\n\r\n /**\r\n * A textual representation of this Game Object.\r\n * Used internally by Phaser but is available for your own custom classes to populate.\r\n *\r\n * @name Phaser.GameObjects.Group#type\r\n * @type {string}\r\n * @default 'Group'\r\n * @since 3.21.0\r\n */\r\n this.type = 'Group';\r\n\r\n /**\r\n * The class to create new group members from.\r\n *\r\n * @name Phaser.GameObjects.Group#classType\r\n * @type {function}\r\n * @since 3.0.0\r\n * @default Phaser.GameObjects.Sprite\r\n * @see Phaser.Types.GameObjects.Group.GroupClassTypeConstructor\r\n */\r\n this.classType = GetFastValue(config, 'classType', Sprite);\r\n\r\n /**\r\n * The name of this group.\r\n * Empty by default and never populated by Phaser, this is left for developers to use.\r\n *\r\n * @name Phaser.GameObjects.Group#name\r\n * @type {string}\r\n * @default ''\r\n * @since 3.18.0\r\n */\r\n this.name = GetFastValue(config, 'name', '');\r\n\r\n /**\r\n * Whether this group runs its {@link Phaser.GameObjects.Group#preUpdate} method (which may update any members).\r\n *\r\n * @name Phaser.GameObjects.Group#active\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.active = GetFastValue(config, 'active', true);\r\n\r\n /**\r\n * The maximum size of this group, if used as a pool. -1 is no limit.\r\n *\r\n * @name Phaser.GameObjects.Group#maxSize\r\n * @type {number}\r\n * @since 3.0.0\r\n * @default -1\r\n */\r\n this.maxSize = GetFastValue(config, 'maxSize', -1);\r\n\r\n /**\r\n * A default texture key to use when creating new group members.\r\n *\r\n * This is used in {@link Phaser.GameObjects.Group#create}\r\n * but not in {@link Phaser.GameObjects.Group#createMultiple}.\r\n *\r\n * @name Phaser.GameObjects.Group#defaultKey\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.defaultKey = GetFastValue(config, 'defaultKey', null);\r\n\r\n /**\r\n * A default texture frame to use when creating new group members.\r\n *\r\n * @name Phaser.GameObjects.Group#defaultFrame\r\n * @type {(string|number)}\r\n * @since 3.0.0\r\n */\r\n this.defaultFrame = GetFastValue(config, 'defaultFrame', null);\r\n\r\n /**\r\n * Whether to call the update method of any members.\r\n *\r\n * @name Phaser.GameObjects.Group#runChildUpdate\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n * @see Phaser.GameObjects.Group#preUpdate\r\n */\r\n this.runChildUpdate = GetFastValue(config, 'runChildUpdate', false);\r\n\r\n /**\r\n * A function to be called when adding or creating group members.\r\n *\r\n * @name Phaser.GameObjects.Group#createCallback\r\n * @type {?Phaser.Types.GameObjects.Group.GroupCallback}\r\n * @since 3.0.0\r\n */\r\n this.createCallback = GetFastValue(config, 'createCallback', null);\r\n\r\n /**\r\n * A function to be called when removing group members.\r\n *\r\n * @name Phaser.GameObjects.Group#removeCallback\r\n * @type {?Phaser.Types.GameObjects.Group.GroupCallback}\r\n * @since 3.0.0\r\n */\r\n this.removeCallback = GetFastValue(config, 'removeCallback', null);\r\n\r\n /**\r\n * A function to be called when creating several group members at once.\r\n *\r\n * @name Phaser.GameObjects.Group#createMultipleCallback\r\n * @type {?Phaser.Types.GameObjects.Group.GroupMultipleCreateCallback}\r\n * @since 3.0.0\r\n */\r\n this.createMultipleCallback = GetFastValue(config, 'createMultipleCallback', null);\r\n\r\n /**\r\n * A function to be called when adding or creating group members.\r\n * For internal use only by a Group, or any class that extends it.\r\n *\r\n * @name Phaser.GameObjects.Group#internalCreateCallback\r\n * @type {?Phaser.Types.GameObjects.Group.GroupCallback}\r\n * @private\r\n * @since 3.22.0\r\n */\r\n this.internalCreateCallback = GetFastValue(config, 'internalCreateCallback', null);\r\n\r\n /**\r\n * A function to be called when removing group members.\r\n * For internal use only by a Group, or any class that extends it.\r\n *\r\n * @name Phaser.GameObjects.Group#internalRemoveCallback\r\n * @type {?Phaser.Types.GameObjects.Group.GroupCallback}\r\n * @private\r\n * @since 3.22.0\r\n */\r\n this.internalRemoveCallback = GetFastValue(config, 'internalRemoveCallback', null);\r\n\r\n if (children)\r\n {\r\n this.addMultiple(children);\r\n }\r\n\r\n if (config)\r\n {\r\n this.createMultiple(config);\r\n }\r\n\r\n this.on(Events.ADDED_TO_SCENE, this.addedToScene, this);\r\n this.on(Events.REMOVED_FROM_SCENE, this.removedFromScene, this);\r\n },\r\n\r\n // Overrides Game Object method\r\n addedToScene: function ()\r\n {\r\n this.scene.sys.updateList.add(this);\r\n },\r\n\r\n // Overrides Game Object method\r\n removedFromScene: function ()\r\n {\r\n this.scene.sys.updateList.remove(this);\r\n },\r\n\r\n /**\r\n * Creates a new Game Object and adds it to this group, unless the group {@link Phaser.GameObjects.Group#isFull is full}.\r\n *\r\n * Calls {@link Phaser.GameObjects.Group#createCallback}.\r\n *\r\n * @method Phaser.GameObjects.Group#create\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=0] - The horizontal position of the new Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of the new Game Object in the world.\r\n * @param {string} [key=defaultKey] - The texture key of the new Game Object.\r\n * @param {(string|number)} [frame=defaultFrame] - The texture frame of the new Game Object.\r\n * @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of the new Game Object.\r\n * @param {boolean} [active=true] - The {@link Phaser.GameObjects.GameObject#active} state of the new Game Object.\r\n *\r\n * @return {any} The new Game Object (usually a Sprite, etc.).\r\n */\r\n create: function (x, y, key, frame, visible, active)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (key === undefined) { key = this.defaultKey; }\r\n if (frame === undefined) { frame = this.defaultFrame; }\r\n if (visible === undefined) { visible = true; }\r\n if (active === undefined) { active = true; }\r\n\r\n // Pool?\r\n if (this.isFull())\r\n {\r\n return null;\r\n }\r\n\r\n var child = new this.classType(this.scene, x, y, key, frame);\r\n\r\n child.addToDisplayList(this.scene.sys.displayList);\r\n child.addToUpdateList();\r\n\r\n child.visible = visible;\r\n child.setActive(active);\r\n\r\n this.add(child);\r\n\r\n return child;\r\n },\r\n\r\n /**\r\n * Creates several Game Objects and adds them to this group.\r\n *\r\n * If the group becomes {@link Phaser.GameObjects.Group#isFull}, no further Game Objects are created.\r\n *\r\n * Calls {@link Phaser.GameObjects.Group#createMultipleCallback} and {@link Phaser.GameObjects.Group#createCallback}.\r\n *\r\n * @method Phaser.GameObjects.Group#createMultiple\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Group.GroupCreateConfig|Phaser.Types.GameObjects.Group.GroupCreateConfig[]} config - Creation settings. This can be a single configuration object or an array of such objects, which will be applied in turn.\r\n *\r\n * @return {any[]} The newly created Game Objects.\r\n */\r\n createMultiple: function (config)\r\n {\r\n if (this.isFull())\r\n {\r\n return [];\r\n }\r\n\r\n if (!Array.isArray(config))\r\n {\r\n config = [ config ];\r\n }\r\n\r\n var output = [];\r\n\r\n if (config[0].key)\r\n {\r\n for (var i = 0; i < config.length; i++)\r\n {\r\n var entries = this.createFromConfig(config[i]);\r\n\r\n output = output.concat(entries);\r\n }\r\n }\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * A helper for {@link Phaser.GameObjects.Group#createMultiple}.\r\n *\r\n * @method Phaser.GameObjects.Group#createFromConfig\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Group.GroupCreateConfig} options - Creation settings.\r\n *\r\n * @return {any[]} The newly created Game Objects.\r\n */\r\n createFromConfig: function (options)\r\n {\r\n if (this.isFull())\r\n {\r\n return [];\r\n }\r\n\r\n this.classType = GetFastValue(options, 'classType', this.classType);\r\n\r\n var key = GetFastValue(options, 'key', undefined);\r\n var frame = GetFastValue(options, 'frame', null);\r\n var visible = GetFastValue(options, 'visible', true);\r\n var active = GetFastValue(options, 'active', true);\r\n\r\n var entries = [];\r\n\r\n // Can't do anything without at least a key\r\n if (key === undefined)\r\n {\r\n return entries;\r\n }\r\n else\r\n {\r\n if (!Array.isArray(key))\r\n {\r\n key = [ key ];\r\n }\r\n\r\n if (!Array.isArray(frame))\r\n {\r\n frame = [ frame ];\r\n }\r\n }\r\n\r\n // Build an array of key frame pairs to loop through\r\n\r\n var repeat = GetFastValue(options, 'repeat', 0);\r\n var randomKey = GetFastValue(options, 'randomKey', false);\r\n var randomFrame = GetFastValue(options, 'randomFrame', false);\r\n var yoyo = GetFastValue(options, 'yoyo', false);\r\n var quantity = GetFastValue(options, 'quantity', false);\r\n var frameQuantity = GetFastValue(options, 'frameQuantity', 1);\r\n var max = GetFastValue(options, 'max', 0);\r\n\r\n // If a quantity value is set we use that to override the frameQuantity\r\n\r\n var range = Range(key, frame, {\r\n max: max,\r\n qty: (quantity) ? quantity : frameQuantity,\r\n random: randomKey,\r\n randomB: randomFrame,\r\n repeat: repeat,\r\n yoyo: yoyo\r\n });\r\n\r\n if (options.createCallback)\r\n {\r\n this.createCallback = options.createCallback;\r\n }\r\n\r\n if (options.removeCallback)\r\n {\r\n this.removeCallback = options.removeCallback;\r\n }\r\n\r\n if (options.internalCreateCallback)\r\n {\r\n this.internalCreateCallback = options.internalCreateCallback;\r\n }\r\n\r\n if (options.internalRemoveCallback)\r\n {\r\n this.internalRemoveCallback = options.internalRemoveCallback;\r\n }\r\n\r\n for (var c = 0; c < range.length; c++)\r\n {\r\n var created = this.create(0, 0, range[c].a, range[c].b, visible, active);\r\n\r\n if (!created)\r\n {\r\n break;\r\n }\r\n\r\n entries.push(created);\r\n }\r\n\r\n // Post-creation options (applied only to those items created in this call):\r\n\r\n if (HasValue(options, 'setXY'))\r\n {\r\n var x = GetValue(options, 'setXY.x', 0);\r\n var y = GetValue(options, 'setXY.y', 0);\r\n var stepX = GetValue(options, 'setXY.stepX', 0);\r\n var stepY = GetValue(options, 'setXY.stepY', 0);\r\n\r\n Actions.SetXY(entries, x, y, stepX, stepY);\r\n }\r\n\r\n if (HasValue(options, 'setRotation'))\r\n {\r\n var rotation = GetValue(options, 'setRotation.value', 0);\r\n var stepRotation = GetValue(options, 'setRotation.step', 0);\r\n\r\n Actions.SetRotation(entries, rotation, stepRotation);\r\n }\r\n\r\n if (HasValue(options, 'setScale'))\r\n {\r\n var scaleX = GetValue(options, 'setScale.x', 1);\r\n var scaleY = GetValue(options, 'setScale.y', scaleX);\r\n var stepScaleX = GetValue(options, 'setScale.stepX', 0);\r\n var stepScaleY = GetValue(options, 'setScale.stepY', 0);\r\n\r\n Actions.SetScale(entries, scaleX, scaleY, stepScaleX, stepScaleY);\r\n }\r\n\r\n if (HasValue(options, 'setOrigin'))\r\n {\r\n var originX = GetValue(options, 'setOrigin.x', 0.5);\r\n var originY = GetValue(options, 'setOrigin.y', originX);\r\n var stepOriginX = GetValue(options, 'setOrigin.stepX', 0);\r\n var stepOriginY = GetValue(options, 'setOrigin.stepY', 0);\r\n\r\n Actions.SetOrigin(entries, originX, originY, stepOriginX, stepOriginY);\r\n }\r\n\r\n if (HasValue(options, 'setAlpha'))\r\n {\r\n var alpha = GetValue(options, 'setAlpha.value', 1);\r\n var stepAlpha = GetValue(options, 'setAlpha.step', 0);\r\n\r\n Actions.SetAlpha(entries, alpha, stepAlpha);\r\n }\r\n\r\n if (HasValue(options, 'setDepth'))\r\n {\r\n var depth = GetValue(options, 'setDepth.value', 0);\r\n var stepDepth = GetValue(options, 'setDepth.step', 0);\r\n\r\n Actions.SetDepth(entries, depth, stepDepth);\r\n }\r\n\r\n if (HasValue(options, 'setScrollFactor'))\r\n {\r\n var scrollFactorX = GetValue(options, 'setScrollFactor.x', 1);\r\n var scrollFactorY = GetValue(options, 'setScrollFactor.y', scrollFactorX);\r\n var stepScrollFactorX = GetValue(options, 'setScrollFactor.stepX', 0);\r\n var stepScrollFactorY = GetValue(options, 'setScrollFactor.stepY', 0);\r\n\r\n Actions.SetScrollFactor(entries, scrollFactorX, scrollFactorY, stepScrollFactorX, stepScrollFactorY);\r\n }\r\n\r\n var hitArea = GetFastValue(options, 'hitArea', null);\r\n var hitAreaCallback = GetFastValue(options, 'hitAreaCallback', null);\r\n\r\n if (hitArea)\r\n {\r\n Actions.SetHitArea(entries, hitArea, hitAreaCallback);\r\n }\r\n\r\n var grid = GetFastValue(options, 'gridAlign', false);\r\n\r\n if (grid)\r\n {\r\n Actions.GridAlign(entries, grid);\r\n }\r\n\r\n if (this.createMultipleCallback)\r\n {\r\n this.createMultipleCallback.call(this, entries);\r\n }\r\n\r\n return entries;\r\n },\r\n\r\n /**\r\n * Updates any group members, if {@link Phaser.GameObjects.Group#runChildUpdate} is enabled.\r\n *\r\n * @method Phaser.GameObjects.Group#preUpdate\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current timestamp.\r\n * @param {number} delta - The delta time elapsed since the last frame.\r\n */\r\n preUpdate: function (time, delta)\r\n {\r\n if (!this.runChildUpdate || this.children.size === 0)\r\n {\r\n return;\r\n }\r\n\r\n // Because a Group child may mess with the length of the Group during its update\r\n var temp = this.children.entries.slice();\r\n\r\n for (var i = 0; i < temp.length; i++)\r\n {\r\n var item = temp[i];\r\n\r\n if (item.active)\r\n {\r\n item.update(time, delta);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Adds a Game Object to this group.\r\n *\r\n * Calls {@link Phaser.GameObjects.Group#createCallback}.\r\n *\r\n * @method Phaser.GameObjects.Group#add\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} child - The Game Object to add.\r\n * @param {boolean} [addToScene=false] - Also add the Game Object to the scene.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n add: function (child, addToScene)\r\n {\r\n if (addToScene === undefined) { addToScene = false; }\r\n\r\n if (this.isFull())\r\n {\r\n return this;\r\n }\r\n\r\n this.children.set(child);\r\n\r\n if (this.internalCreateCallback)\r\n {\r\n this.internalCreateCallback.call(this, child);\r\n }\r\n\r\n if (this.createCallback)\r\n {\r\n this.createCallback.call(this, child);\r\n }\r\n\r\n if (addToScene)\r\n {\r\n child.addToDisplayList(this.scene.sys.displayList);\r\n child.addToUpdateList();\r\n }\r\n\r\n child.on(Events.DESTROY, this.remove, this);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds several Game Objects to this group.\r\n *\r\n * Calls {@link Phaser.GameObjects.Group#createCallback}.\r\n *\r\n * @method Phaser.GameObjects.Group#addMultiple\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject[]} children - The Game Objects to add.\r\n * @param {boolean} [addToScene=false] - Also add the Game Objects to the scene.\r\n *\r\n * @return {this} This group.\r\n */\r\n addMultiple: function (children, addToScene)\r\n {\r\n if (addToScene === undefined) { addToScene = false; }\r\n\r\n if (Array.isArray(children))\r\n {\r\n for (var i = 0; i < children.length; i++)\r\n {\r\n this.add(children[i], addToScene);\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes a member of this Group and optionally removes it from the Scene and / or destroys it.\r\n *\r\n * Calls {@link Phaser.GameObjects.Group#removeCallback}.\r\n *\r\n * @method Phaser.GameObjects.Group#remove\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} child - The Game Object to remove.\r\n * @param {boolean} [removeFromScene=false] - Optionally remove the Group member from the Scene it belongs to.\r\n * @param {boolean} [destroyChild=false] - Optionally call destroy on the removed Group member.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n remove: function (child, removeFromScene, destroyChild)\r\n {\r\n if (removeFromScene === undefined) { removeFromScene = false; }\r\n if (destroyChild === undefined) { destroyChild = false; }\r\n\r\n if (!this.children.contains(child))\r\n {\r\n return this;\r\n }\r\n\r\n this.children.delete(child);\r\n\r\n if (this.internalRemoveCallback)\r\n {\r\n this.internalRemoveCallback.call(this, child);\r\n }\r\n\r\n if (this.removeCallback)\r\n {\r\n this.removeCallback.call(this, child);\r\n }\r\n\r\n child.off(Events.DESTROY, this.remove, this);\r\n\r\n if (destroyChild)\r\n {\r\n child.destroy();\r\n }\r\n else if (removeFromScene)\r\n {\r\n child.removeFromDisplayList();\r\n child.removeFromUpdateList();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes all members of this Group and optionally removes them from the Scene and / or destroys them.\r\n *\r\n * Does not call {@link Phaser.GameObjects.Group#removeCallback}.\r\n *\r\n * @method Phaser.GameObjects.Group#clear\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [removeFromScene=false] - Optionally remove each Group member from the Scene.\r\n * @param {boolean} [destroyChild=false] - Optionally call destroy on the removed Group members.\r\n *\r\n * @return {this} This group.\r\n */\r\n clear: function (removeFromScene, destroyChild)\r\n {\r\n if (removeFromScene === undefined) { removeFromScene = false; }\r\n if (destroyChild === undefined) { destroyChild = false; }\r\n\r\n var children = this.children;\r\n\r\n for (var i = 0; i < children.size; i++)\r\n {\r\n var gameObject = children.entries[i];\r\n\r\n gameObject.off(Events.DESTROY, this.remove, this);\r\n\r\n if (destroyChild)\r\n {\r\n gameObject.destroy();\r\n }\r\n else if (removeFromScene)\r\n {\r\n gameObject.removeFromDisplayList();\r\n gameObject.removeFromUpdateList();\r\n }\r\n }\r\n\r\n this.children.clear();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Tests if a Game Object is a member of this group.\r\n *\r\n * @method Phaser.GameObjects.Group#contains\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} child - A Game Object.\r\n *\r\n * @return {boolean} True if the Game Object is a member of this group.\r\n */\r\n contains: function (child)\r\n {\r\n return this.children.contains(child);\r\n },\r\n\r\n /**\r\n * All members of the group.\r\n *\r\n * @method Phaser.GameObjects.Group#getChildren\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.GameObjects.GameObject[]} The group members.\r\n */\r\n getChildren: function ()\r\n {\r\n return this.children.entries;\r\n },\r\n\r\n /**\r\n * The number of members of the group.\r\n *\r\n * @method Phaser.GameObjects.Group#getLength\r\n * @since 3.0.0\r\n *\r\n * @return {number}\r\n */\r\n getLength: function ()\r\n {\r\n return this.children.size;\r\n },\r\n\r\n /**\r\n * Returns all children in this Group that match the given criteria based on the `property` and `value` arguments.\r\n *\r\n * For example: `getMatching('visible', true)` would return only children that have their `visible` property set.\r\n *\r\n * Optionally, you can specify a start and end index. For example if the Group has 100 elements,\r\n * and you set `startIndex` to 0 and `endIndex` to 50, it would return matches from only\r\n * the first 50.\r\n *\r\n * @method Phaser.GameObjects.Group#getMatching\r\n * @since 3.50.0\r\n *\r\n * @param {string} [property] - The property to test on each array element.\r\n * @param {*} [value] - The value to test the property against. Must pass a strict (`===`) comparison check.\r\n * @param {number} [startIndex] - An optional start index to search from.\r\n * @param {number} [endIndex] - An optional end index to search to.\r\n *\r\n * @return {any[]} An array of matching Group members. The array will be empty if nothing matched.\r\n */\r\n getMatching: function (property, value, startIndex, endIndex)\r\n {\r\n return GetAll(this.children.entries, property, value, startIndex, endIndex);\r\n },\r\n\r\n /**\r\n * Scans the Group, from top to bottom, for the first member that has an {@link Phaser.GameObjects.GameObject#active} state matching the argument,\r\n * assigns `x` and `y`, and returns the member.\r\n *\r\n * If no matching member is found and `createIfNull` is true and the group isn't full then it will create a new Game Object using `x`, `y`, `key`, `frame`, and `visible`.\r\n * Unless a new member is created, `key`, `frame`, and `visible` are ignored.\r\n *\r\n * @method Phaser.GameObjects.Group#getFirst\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [state=false] - The {@link Phaser.GameObjects.GameObject#active} value to match.\r\n * @param {boolean} [createIfNull=false] - Create a new Game Object if no matching members are found, using the following arguments.\r\n * @param {number} [x] - The horizontal position of the Game Object in the world.\r\n * @param {number} [y] - The vertical position of the Game Object in the world.\r\n * @param {string} [key=defaultKey] - The texture key assigned to a new Game Object (if one is created).\r\n * @param {(string|number)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).\r\n * @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).\r\n *\r\n * @return {?any} The first matching group member, or a newly created member, or null.\r\n */\r\n getFirst: function (state, createIfNull, x, y, key, frame, visible)\r\n {\r\n return this.getHandler(true, 1, state, createIfNull, x, y, key, frame, visible);\r\n },\r\n\r\n /**\r\n * Scans the Group, from top to bottom, for the nth member that has an {@link Phaser.GameObjects.GameObject#active} state matching the argument,\r\n * assigns `x` and `y`, and returns the member.\r\n *\r\n * If no matching member is found and `createIfNull` is true and the group isn't full then it will create a new Game Object using `x`, `y`, `key`, `frame`, and `visible`.\r\n * Unless a new member is created, `key`, `frame`, and `visible` are ignored.\r\n *\r\n * @method Phaser.GameObjects.Group#getFirstNth\r\n * @since 3.6.0\r\n *\r\n * @param {number} nth - The nth matching Group member to search for.\r\n * @param {boolean} [state=false] - The {@link Phaser.GameObjects.GameObject#active} value to match.\r\n * @param {boolean} [createIfNull=false] - Create a new Game Object if no matching members are found, using the following arguments.\r\n * @param {number} [x] - The horizontal position of the Game Object in the world.\r\n * @param {number} [y] - The vertical position of the Game Object in the world.\r\n * @param {string} [key=defaultKey] - The texture key assigned to a new Game Object (if one is created).\r\n * @param {(string|number)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).\r\n * @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).\r\n *\r\n * @return {?any} The first matching group member, or a newly created member, or null.\r\n */\r\n getFirstNth: function (nth, state, createIfNull, x, y, key, frame, visible)\r\n {\r\n return this.getHandler(true, nth, state, createIfNull, x, y, key, frame, visible);\r\n },\r\n\r\n /**\r\n * Scans the Group for the last member that has an {@link Phaser.GameObjects.GameObject#active} state matching the argument,\r\n * assigns `x` and `y`, and returns the member.\r\n *\r\n * If no matching member is found and `createIfNull` is true and the group isn't full then it will create a new Game Object using `x`, `y`, `key`, `frame`, and `visible`.\r\n * Unless a new member is created, `key`, `frame`, and `visible` are ignored.\r\n *\r\n * @method Phaser.GameObjects.Group#getLast\r\n * @since 3.6.0\r\n *\r\n * @param {boolean} [state=false] - The {@link Phaser.GameObjects.GameObject#active} value to match.\r\n * @param {boolean} [createIfNull=false] - Create a new Game Object if no matching members are found, using the following arguments.\r\n * @param {number} [x] - The horizontal position of the Game Object in the world.\r\n * @param {number} [y] - The vertical position of the Game Object in the world.\r\n * @param {string} [key=defaultKey] - The texture key assigned to a new Game Object (if one is created).\r\n * @param {(string|number)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).\r\n * @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).\r\n *\r\n * @return {?any} The first matching group member, or a newly created member, or null.\r\n */\r\n getLast: function (state, createIfNull, x, y, key, frame, visible)\r\n {\r\n return this.getHandler(false, 1, state, createIfNull, x, y, key, frame, visible);\r\n },\r\n\r\n /**\r\n * Scans the Group for the last nth member that has an {@link Phaser.GameObjects.GameObject#active} state matching the argument,\r\n * assigns `x` and `y`, and returns the member.\r\n *\r\n * If no matching member is found and `createIfNull` is true and the group isn't full then it will create a new Game Object using `x`, `y`, `key`, `frame`, and `visible`.\r\n * Unless a new member is created, `key`, `frame`, and `visible` are ignored.\r\n *\r\n * @method Phaser.GameObjects.Group#getLastNth\r\n * @since 3.6.0\r\n *\r\n * @param {number} nth - The nth matching Group member to search for.\r\n * @param {boolean} [state=false] - The {@link Phaser.GameObjects.GameObject#active} value to match.\r\n * @param {boolean} [createIfNull=false] - Create a new Game Object if no matching members are found, using the following arguments.\r\n * @param {number} [x] - The horizontal position of the Game Object in the world.\r\n * @param {number} [y] - The vertical position of the Game Object in the world.\r\n * @param {string} [key=defaultKey] - The texture key assigned to a new Game Object (if one is created).\r\n * @param {(string|number)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).\r\n * @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).\r\n *\r\n * @return {?any} The first matching group member, or a newly created member, or null.\r\n */\r\n getLastNth: function (nth, state, createIfNull, x, y, key, frame, visible)\r\n {\r\n return this.getHandler(false, nth, state, createIfNull, x, y, key, frame, visible);\r\n },\r\n\r\n /**\r\n * Scans the group for the last member that has an {@link Phaser.GameObjects.GameObject#active} state matching the argument,\r\n * assigns `x` and `y`, and returns the member.\r\n *\r\n * If no matching member is found and `createIfNull` is true and the group isn't full then it will create a new Game Object using `x`, `y`, `key`, `frame`, and `visible`.\r\n * Unless a new member is created, `key`, `frame`, and `visible` are ignored.\r\n *\r\n * @method Phaser.GameObjects.Group#getHandler\r\n * @private\r\n * @since 3.6.0\r\n *\r\n * @param {boolean} forwards - Search front to back or back to front?\r\n * @param {number} nth - Stop matching after nth successful matches.\r\n * @param {boolean} [state=false] - The {@link Phaser.GameObjects.GameObject#active} value to match.\r\n * @param {boolean} [createIfNull=false] - Create a new Game Object if no matching members are found, using the following arguments.\r\n * @param {number} [x] - The horizontal position of the Game Object in the world.\r\n * @param {number} [y] - The vertical position of the Game Object in the world.\r\n * @param {string} [key=defaultKey] - The texture key assigned to a new Game Object (if one is created).\r\n * @param {(string|number)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).\r\n * @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).\r\n *\r\n * @return {?any} The first matching group member, or a newly created member, or null.\r\n */\r\n getHandler: function (forwards, nth, state, createIfNull, x, y, key, frame, visible)\r\n {\r\n if (state === undefined) { state = false; }\r\n if (createIfNull === undefined) { createIfNull = false; }\r\n\r\n var gameObject;\r\n\r\n var i;\r\n var total = 0;\r\n var children = this.children.entries;\r\n\r\n if (forwards)\r\n {\r\n for (i = 0; i < children.length; i++)\r\n {\r\n gameObject = children[i];\r\n\r\n if (gameObject.active === state)\r\n {\r\n total++;\r\n\r\n if (total === nth)\r\n {\r\n break;\r\n }\r\n }\r\n else\r\n {\r\n gameObject = null;\r\n }\r\n }\r\n }\r\n else\r\n {\r\n for (i = children.length - 1; i >= 0; i--)\r\n {\r\n gameObject = children[i];\r\n\r\n if (gameObject.active === state)\r\n {\r\n total++;\r\n\r\n if (total === nth)\r\n {\r\n break;\r\n }\r\n }\r\n else\r\n {\r\n gameObject = null;\r\n }\r\n }\r\n }\r\n\r\n if (gameObject)\r\n {\r\n if (typeof(x) === 'number')\r\n {\r\n gameObject.x = x;\r\n }\r\n\r\n if (typeof(y) === 'number')\r\n {\r\n gameObject.y = y;\r\n }\r\n\r\n return gameObject;\r\n }\r\n\r\n // Got this far? We need to create or bail\r\n if (createIfNull)\r\n {\r\n return this.create(x, y, key, frame, visible);\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n },\r\n\r\n /**\r\n * Scans the group for the first member that has an {@link Phaser.GameObjects.GameObject#active} state set to `false`,\r\n * assigns `x` and `y`, and returns the member.\r\n *\r\n * If no inactive member is found and the group isn't full then it will create a new Game Object using `x`, `y`, `key`, `frame`, and `visible`.\r\n * The new Game Object will have its active state set to `true`.\r\n * Unless a new member is created, `key`, `frame`, and `visible` are ignored.\r\n *\r\n * @method Phaser.GameObjects.Group#get\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x] - The horizontal position of the Game Object in the world.\r\n * @param {number} [y] - The vertical position of the Game Object in the world.\r\n * @param {string} [key=defaultKey] - The texture key assigned to a new Game Object (if one is created).\r\n * @param {(string|number)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).\r\n * @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).\r\n *\r\n * @return {?any} The first inactive group member, or a newly created member, or null.\r\n */\r\n get: function (x, y, key, frame, visible)\r\n {\r\n return this.getFirst(false, true, x, y, key, frame, visible);\r\n },\r\n\r\n /**\r\n * Scans the group for the first member that has an {@link Phaser.GameObjects.GameObject#active} state set to `true`,\r\n * assigns `x` and `y`, and returns the member.\r\n *\r\n * If no active member is found and `createIfNull` is `true` and the group isn't full then it will create a new one using `x`, `y`, `key`, `frame`, and `visible`.\r\n * Unless a new member is created, `key`, `frame`, and `visible` are ignored.\r\n *\r\n * @method Phaser.GameObjects.Group#getFirstAlive\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [createIfNull=false] - Create a new Game Object if no matching members are found, using the following arguments.\r\n * @param {number} [x] - The horizontal position of the Game Object in the world.\r\n * @param {number} [y] - The vertical position of the Game Object in the world.\r\n * @param {string} [key=defaultKey] - The texture key assigned to a new Game Object (if one is created).\r\n * @param {(string|number)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).\r\n * @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).\r\n *\r\n * @return {any} The first active group member, or a newly created member, or null.\r\n */\r\n getFirstAlive: function (createIfNull, x, y, key, frame, visible)\r\n {\r\n return this.getFirst(true, createIfNull, x, y, key, frame, visible);\r\n },\r\n\r\n /**\r\n * Scans the group for the first member that has an {@link Phaser.GameObjects.GameObject#active} state set to `false`,\r\n * assigns `x` and `y`, and returns the member.\r\n *\r\n * If no inactive member is found and `createIfNull` is `true` and the group isn't full then it will create a new one using `x`, `y`, `key`, `frame`, and `visible`.\r\n * The new Game Object will have an active state set to `true`.\r\n * Unless a new member is created, `key`, `frame`, and `visible` are ignored.\r\n *\r\n * @method Phaser.GameObjects.Group#getFirstDead\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [createIfNull=false] - Create a new Game Object if no matching members are found, using the following arguments.\r\n * @param {number} [x] - The horizontal position of the Game Object in the world.\r\n * @param {number} [y] - The vertical position of the Game Object in the world.\r\n * @param {string} [key=defaultKey] - The texture key assigned to a new Game Object (if one is created).\r\n * @param {(string|number)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).\r\n * @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).\r\n *\r\n * @return {any} The first inactive group member, or a newly created member, or null.\r\n */\r\n getFirstDead: function (createIfNull, x, y, key, frame, visible)\r\n {\r\n return this.getFirst(false, createIfNull, x, y, key, frame, visible);\r\n },\r\n\r\n /**\r\n * {@link Phaser.Animations.AnimationState#play Plays} an animation for all members of this group.\r\n *\r\n * @method Phaser.GameObjects.Group#playAnimation\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The string-based key of the animation to play.\r\n * @param {string} [startFrame=0] - Optionally start the animation playing from this frame index.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n playAnimation: function (key, startFrame)\r\n {\r\n Actions.PlayAnimation(this.children.entries, key, startFrame);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Whether this group's size at its {@link Phaser.GameObjects.Group#maxSize maximum}.\r\n *\r\n * @method Phaser.GameObjects.Group#isFull\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} True if the number of members equals {@link Phaser.GameObjects.Group#maxSize}.\r\n */\r\n isFull: function ()\r\n {\r\n if (this.maxSize === -1)\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n return (this.children.size >= this.maxSize);\r\n }\r\n },\r\n\r\n /**\r\n * Counts the number of active (or inactive) group members.\r\n *\r\n * @method Phaser.GameObjects.Group#countActive\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [value=true] - Count active (true) or inactive (false) group members.\r\n *\r\n * @return {number} The number of group members with an active state matching the `active` argument.\r\n */\r\n countActive: function (value)\r\n {\r\n if (value === undefined) { value = true; }\r\n\r\n var total = 0;\r\n\r\n for (var i = 0; i < this.children.size; i++)\r\n {\r\n if (this.children.entries[i].active === value)\r\n {\r\n total++;\r\n }\r\n }\r\n\r\n return total;\r\n },\r\n\r\n /**\r\n * Counts the number of in-use (active) group members.\r\n *\r\n * @method Phaser.GameObjects.Group#getTotalUsed\r\n * @since 3.0.0\r\n *\r\n * @return {number} The number of group members with an active state of true.\r\n */\r\n getTotalUsed: function ()\r\n {\r\n return this.countActive();\r\n },\r\n\r\n /**\r\n * The difference of {@link Phaser.GameObjects.Group#maxSize} and the number of active group members.\r\n *\r\n * This represents the number of group members that could be created or reactivated before reaching the size limit.\r\n *\r\n * @method Phaser.GameObjects.Group#getTotalFree\r\n * @since 3.0.0\r\n *\r\n * @return {number} maxSize minus the number of active group numbers; or a large number (if maxSize is -1).\r\n */\r\n getTotalFree: function ()\r\n {\r\n var used = this.getTotalUsed();\r\n var capacity = (this.maxSize === -1) ? 999999999999 : this.maxSize;\r\n\r\n return (capacity - used);\r\n },\r\n\r\n /**\r\n * Sets the `active` property of this Group.\r\n * When active, this Group runs its `preUpdate` method.\r\n *\r\n * @method Phaser.GameObjects.Group#setActive\r\n * @since 3.24.0\r\n *\r\n * @param {boolean} value - True if this Group should be set as active, false if not.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n setActive: function (value)\r\n {\r\n this.active = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the `name` property of this Group.\r\n * The `name` property is not populated by Phaser and is presented for your own use.\r\n *\r\n * @method Phaser.GameObjects.Group#setName\r\n * @since 3.24.0\r\n *\r\n * @param {string} value - The name to be given to this Group.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n setName: function (value)\r\n {\r\n this.name = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the property as defined in `key` of each group member to the given value.\r\n *\r\n * @method Phaser.GameObjects.Group#propertyValueSet\r\n * @since 3.21.0\r\n *\r\n * @param {string} key - The property to be updated.\r\n * @param {number} value - The amount to set the property to.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n propertyValueSet: function (key, value, step, index, direction)\r\n {\r\n Actions.PropertyValueSet(this.children.entries, key, value, step, index, direction);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds the given value to the property as defined in `key` of each group member.\r\n *\r\n * @method Phaser.GameObjects.Group#propertyValueInc\r\n * @since 3.21.0\r\n *\r\n * @param {string} key - The property to be updated.\r\n * @param {number} value - The amount to set the property to.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n propertyValueInc: function (key, value, step, index, direction)\r\n {\r\n Actions.PropertyValueInc(this.children.entries, key, value, step, index, direction);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the x of each group member.\r\n *\r\n * @method Phaser.GameObjects.Group#setX\r\n * @since 3.21.0\r\n *\r\n * @param {number} value - The amount to set the property to.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n setX: function (value, step)\r\n {\r\n Actions.SetX(this.children.entries, value, step);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the y of each group member.\r\n *\r\n * @method Phaser.GameObjects.Group#setY\r\n * @since 3.21.0\r\n *\r\n * @param {number} value - The amount to set the property to.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n setY: function (value, step)\r\n {\r\n Actions.SetY(this.children.entries, value, step);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the x, y of each group member.\r\n *\r\n * @method Phaser.GameObjects.Group#setXY\r\n * @since 3.21.0\r\n *\r\n * @param {number} x - The amount to set the `x` property to.\r\n * @param {number} [y=x] - The amount to set the `y` property to. If `undefined` or `null` it uses the `x` value.\r\n * @param {number} [stepX=0] - This is added to the `x` amount, multiplied by the iteration counter.\r\n * @param {number} [stepY=0] - This is added to the `y` amount, multiplied by the iteration counter.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n setXY: function (x, y, stepX, stepY)\r\n {\r\n Actions.SetXY(this.children.entries, x, y, stepX, stepY);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds the given value to the x of each group member.\r\n *\r\n * @method Phaser.GameObjects.Group#incX\r\n * @since 3.21.0\r\n *\r\n * @param {number} value - The amount to be added to the `x` property.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n incX: function (value, step)\r\n {\r\n Actions.IncX(this.children.entries, value, step);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds the given value to the y of each group member.\r\n *\r\n * @method Phaser.GameObjects.Group#incY\r\n * @since 3.21.0\r\n *\r\n * @param {number} value - The amount to be added to the `y` property.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n incY: function (value, step)\r\n {\r\n Actions.IncY(this.children.entries, value, step);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds the given value to the x, y of each group member.\r\n *\r\n * @method Phaser.GameObjects.Group#incXY\r\n * @since 3.21.0\r\n *\r\n * @param {number} x - The amount to be added to the `x` property.\r\n * @param {number} [y=x] - The amount to be added to the `y` property. If `undefined` or `null` it uses the `x` value.\r\n * @param {number} [stepX=0] - This is added to the `x` amount, multiplied by the iteration counter.\r\n * @param {number} [stepY=0] - This is added to the `y` amount, multiplied by the iteration counter.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n incXY: function (x, y, stepX, stepY)\r\n {\r\n Actions.IncXY(this.children.entries, x, y, stepX, stepY);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Iterate through the group members changing the position of each element to be that of the element that came before\r\n * it in the array (or after it if direction = 1)\r\n *\r\n * The first group member position is set to x/y.\r\n *\r\n * @method Phaser.GameObjects.Group#shiftPosition\r\n * @since 3.21.0\r\n *\r\n * @param {number} x - The x coordinate to place the first item in the array at.\r\n * @param {number} y - The y coordinate to place the first item in the array at.\r\n * @param {number} [direction=0] - The iteration direction. 0 = first to last and 1 = last to first.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n shiftPosition: function (x, y, direction)\r\n {\r\n Actions.ShiftPosition(this.children.entries, x, y, direction);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the angle of each group member.\r\n *\r\n * @method Phaser.GameObjects.Group#angle\r\n * @since 3.21.0\r\n *\r\n * @param {number} value - The amount to set the angle to, in degrees.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n angle: function (value, step)\r\n {\r\n Actions.Angle(this.children.entries, value, step);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the rotation of each group member.\r\n *\r\n * @method Phaser.GameObjects.Group#rotate\r\n * @since 3.21.0\r\n *\r\n * @param {number} value - The amount to set the rotation to, in radians.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n rotate: function (value, step)\r\n {\r\n Actions.Rotate(this.children.entries, value, step);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Rotates each group member around the given point by the given angle.\r\n *\r\n * @method Phaser.GameObjects.Group#rotateAround\r\n * @since 3.21.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} point - Any object with public `x` and `y` properties.\r\n * @param {number} angle - The angle to rotate by, in radians.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n rotateAround: function (point, angle)\r\n {\r\n Actions.RotateAround(this.children.entries, point, angle);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Rotates each group member around the given point by the given angle and distance.\r\n *\r\n * @method Phaser.GameObjects.Group#rotateAroundDistance\r\n * @since 3.21.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} point - Any object with public `x` and `y` properties.\r\n * @param {number} angle - The angle to rotate by, in radians.\r\n * @param {number} distance - The distance from the point of rotation in pixels.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n rotateAroundDistance: function (point, angle, distance)\r\n {\r\n Actions.RotateAroundDistance(this.children.entries, point, angle, distance);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the alpha of each group member.\r\n *\r\n * @method Phaser.GameObjects.Group#setAlpha\r\n * @since 3.21.0\r\n *\r\n * @param {number} value - The amount to set the alpha to.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n setAlpha: function (value, step)\r\n {\r\n Actions.SetAlpha(this.children.entries, value, step);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the tint of each group member.\r\n *\r\n * @method Phaser.GameObjects.Group#setTint\r\n * @since 3.21.0\r\n *\r\n * @param {number} topLeft - The tint being applied to top-left corner of item. If other parameters are given no value, this tint will be applied to whole item.\r\n * @param {number} [topRight] - The tint to be applied to top-right corner of item.\r\n * @param {number} [bottomLeft] - The tint to be applied to the bottom-left corner of item.\r\n * @param {number} [bottomRight] - The tint to be applied to the bottom-right corner of item.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n setTint: function (topLeft, topRight, bottomLeft, bottomRight)\r\n {\r\n Actions.SetTint(this.children.entries, topLeft, topRight, bottomLeft, bottomRight);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the originX, originY of each group member.\r\n *\r\n * @method Phaser.GameObjects.Group#setOrigin\r\n * @since 3.21.0\r\n *\r\n * @param {number} originX - The amount to set the `originX` property to.\r\n * @param {number} [originY] - The amount to set the `originY` property to. If `undefined` or `null` it uses the `originX` value.\r\n * @param {number} [stepX=0] - This is added to the `originX` amount, multiplied by the iteration counter.\r\n * @param {number} [stepY=0] - This is added to the `originY` amount, multiplied by the iteration counter.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n setOrigin: function (originX, originY, stepX, stepY)\r\n {\r\n Actions.SetOrigin(this.children.entries, originX, originY, stepX, stepY);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the scaleX of each group member.\r\n *\r\n * @method Phaser.GameObjects.Group#scaleX\r\n * @since 3.21.0\r\n *\r\n * @param {number} value - The amount to set the property to.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n scaleX: function (value, step)\r\n {\r\n Actions.ScaleX(this.children.entries, value, step);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the scaleY of each group member.\r\n *\r\n * @method Phaser.GameObjects.Group#scaleY\r\n * @since 3.21.0\r\n *\r\n * @param {number} value - The amount to set the property to.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n scaleY: function (value, step)\r\n {\r\n Actions.ScaleY(this.children.entries, value, step);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the scaleX, scaleY of each group member.\r\n *\r\n * @method Phaser.GameObjects.Group#scaleXY\r\n * @since 3.21.0\r\n *\r\n * @param {number} scaleX - The amount to be added to the `scaleX` property.\r\n * @param {number} [scaleY] - The amount to be added to the `scaleY` property. If `undefined` or `null` it uses the `scaleX` value.\r\n * @param {number} [stepX=0] - This is added to the `scaleX` amount, multiplied by the iteration counter.\r\n * @param {number} [stepY=0] - This is added to the `scaleY` amount, multiplied by the iteration counter.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n scaleXY: function (scaleX, scaleY, stepX, stepY)\r\n {\r\n Actions.ScaleXY(this.children.entries, scaleX, scaleY, stepX, stepY);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the depth of each group member.\r\n *\r\n * @method Phaser.GameObjects.Group#setDepth\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The amount to set the property to.\r\n * @param {number} [step=0] - This is added to the `value` amount, multiplied by the iteration counter.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n setDepth: function (value, step)\r\n {\r\n Actions.SetDepth(this.children.entries, value, step);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the blendMode of each group member.\r\n *\r\n * @method Phaser.GameObjects.Group#setBlendMode\r\n * @since 3.21.0\r\n *\r\n * @param {number} value - The amount to set the property to.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n setBlendMode: function (value)\r\n {\r\n Actions.SetBlendMode(this.children.entries, value);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Passes all group members to the Input Manager to enable them for input with identical areas and callbacks.\r\n *\r\n * @method Phaser.GameObjects.Group#setHitArea\r\n * @since 3.21.0\r\n *\r\n * @param {*} hitArea - Either an input configuration object, or a geometric shape that defines the hit area for the Game Object. If not specified a Rectangle will be used.\r\n * @param {Phaser.Types.Input.HitAreaCallback} hitAreaCallback - A callback to be invoked when the Game Object is interacted with. If you provide a shape you must also provide a callback.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n setHitArea: function (hitArea, hitAreaCallback)\r\n {\r\n Actions.SetHitArea(this.children.entries, hitArea, hitAreaCallback);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Shuffles the group members in place.\r\n *\r\n * @method Phaser.GameObjects.Group#shuffle\r\n * @since 3.21.0\r\n *\r\n * @return {this} This Group object.\r\n */\r\n shuffle: function ()\r\n {\r\n Actions.Shuffle(this.children.entries);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Deactivates a member of this group.\r\n *\r\n * @method Phaser.GameObjects.Group#kill\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - A member of this group.\r\n */\r\n kill: function (gameObject)\r\n {\r\n if (this.children.contains(gameObject))\r\n {\r\n gameObject.setActive(false);\r\n }\r\n },\r\n\r\n /**\r\n * Deactivates and hides a member of this group.\r\n *\r\n * @method Phaser.GameObjects.Group#killAndHide\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - A member of this group.\r\n */\r\n killAndHide: function (gameObject)\r\n {\r\n if (this.children.contains(gameObject))\r\n {\r\n gameObject.setActive(false);\r\n gameObject.setVisible(false);\r\n }\r\n },\r\n\r\n /**\r\n * Sets the visible of each group member.\r\n *\r\n * @method Phaser.GameObjects.Group#setVisible\r\n * @since 3.21.0\r\n *\r\n * @param {boolean} value - The value to set the property to.\r\n * @param {number} [index=0] - An optional offset to start searching from within the items array.\r\n * @param {number} [direction=1] - The direction to iterate through the array. 1 is from beginning to end, -1 from end to beginning.\r\n *\r\n * @return {this} This Group object.\r\n */\r\n setVisible: function (value, index, direction)\r\n {\r\n Actions.SetVisible(this.children.entries, value, index, direction);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Toggles (flips) the visible state of each member of this group.\r\n *\r\n * @method Phaser.GameObjects.Group#toggleVisible\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Group object.\r\n */\r\n toggleVisible: function ()\r\n {\r\n Actions.ToggleVisible(this.children.entries);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Empties this Group of all children and removes it from the Scene.\r\n *\r\n * Does not call {@link Phaser.GameObjects.Group#removeCallback}.\r\n *\r\n * Children of this Group will _not_ be removed from the Scene by calling this method\r\n * unless you specify the `removeFromScene` parameter.\r\n *\r\n * Children of this Group will also _not_ be destroyed by calling this method\r\n * unless you specify the `destroyChildren` parameter.\r\n *\r\n * @method Phaser.GameObjects.Group#destroy\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [destroyChildren=false] - Also {@link Phaser.GameObjects.GameObject#destroy} each Group member.\r\n * @param {boolean} [removeFromScene=false] - Optionally remove each Group member from the Scene.\r\n */\r\n destroy: function (destroyChildren, removeFromScene)\r\n {\r\n if (destroyChildren === undefined) { destroyChildren = false; }\r\n if (removeFromScene === undefined) { removeFromScene = false; }\r\n\r\n // This Game Object had already been destroyed\r\n if (!this.scene || this.ignoreDestroy)\r\n {\r\n return;\r\n }\r\n\r\n this.emit(Events.DESTROY, this);\r\n\r\n this.removeAllListeners();\r\n\r\n this.scene.sys.updateList.remove(this);\r\n\r\n this.clear(removeFromScene, destroyChildren);\r\n\r\n this.scene = undefined;\r\n this.children = undefined;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Group;\r\n\n\n/***/ }),\n\n/***/ 94975:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar Group = __webpack_require__(26479);\r\n\r\n/**\r\n * Creates a new Group Game Object and returns it.\r\n *\r\n * Note: This method will only be available if the Group Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#group\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Group.GroupConfig|Phaser.Types.GameObjects.Group.GroupCreateConfig} config - The configuration object this Game Object will use to create itself.\r\n *\r\n * @return {Phaser.GameObjects.Group} The Game Object that was created.\r\n */\r\nGameObjectCreator.register('group', function (config)\r\n{\r\n return new Group(this.scene, null, config);\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectCreator context.\r\n\n\n/***/ }),\n\n/***/ 3385:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Group = __webpack_require__(26479);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * Creates a new Group Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Group Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#group\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.GameObjects.GameObject[]|Phaser.Types.GameObjects.Group.GroupConfig|Phaser.Types.GameObjects.Group.GroupConfig[]|Phaser.Types.GameObjects.Group.GroupCreateConfig)} [children] - Game Objects to add to this Group; or the `config` argument.\r\n * @param {Phaser.Types.GameObjects.Group.GroupConfig|Phaser.Types.GameObjects.Group.GroupCreateConfig} [config] - A Group Configuration object.\r\n *\r\n * @return {Phaser.GameObjects.Group} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('group', function (children, config)\r\n{\r\n return this.updateList.add(new Group(this.scene, children, config));\r\n});\r\n\n\n/***/ }),\n\n/***/ 88571:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar GameObject = __webpack_require__(95643);\r\nvar ImageRender = __webpack_require__(59819);\r\n\r\n/**\r\n * @classdesc\r\n * An Image Game Object.\r\n *\r\n * An Image is a light-weight Game Object useful for the display of static images in your game,\r\n * such as logos, backgrounds, scenery or other non-animated elements. Images can have input\r\n * events and physics bodies, or be tweened, tinted or scrolled. The main difference between an\r\n * Image and a Sprite is that you cannot animate an Image as they do not have the Animation component.\r\n *\r\n * @class Image\r\n * @extends Phaser.GameObjects.GameObject\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @extends Phaser.GameObjects.Components.Alpha\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.Flip\r\n * @extends Phaser.GameObjects.Components.GetBounds\r\n * @extends Phaser.GameObjects.Components.Mask\r\n * @extends Phaser.GameObjects.Components.Origin\r\n * @extends Phaser.GameObjects.Components.Pipeline\r\n * @extends Phaser.GameObjects.Components.PostPipeline\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n * @extends Phaser.GameObjects.Components.Size\r\n * @extends Phaser.GameObjects.Components.TextureCrop\r\n * @extends Phaser.GameObjects.Components.Tint\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {(string|Phaser.Textures.Texture)} texture - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - An optional frame from the Texture this Game Object is rendering with.\r\n */\r\nvar Image = new Class({\r\n\r\n Extends: GameObject,\r\n\r\n Mixins: [\r\n Components.Alpha,\r\n Components.BlendMode,\r\n Components.Depth,\r\n Components.Flip,\r\n Components.GetBounds,\r\n Components.Mask,\r\n Components.Origin,\r\n Components.Pipeline,\r\n Components.PostPipeline,\r\n Components.ScrollFactor,\r\n Components.Size,\r\n Components.TextureCrop,\r\n Components.Tint,\r\n Components.Transform,\r\n Components.Visible,\r\n ImageRender\r\n ],\r\n\r\n initialize:\r\n\r\n function Image (scene, x, y, texture, frame)\r\n {\r\n GameObject.call(this, scene, 'Image');\r\n\r\n /**\r\n * The internal crop data object, as used by `setCrop` and passed to the `Frame.setCropUVs` method.\r\n *\r\n * @name Phaser.GameObjects.Image#_crop\r\n * @type {object}\r\n * @private\r\n * @since 3.11.0\r\n */\r\n this._crop = this.resetCropObject();\r\n\r\n this.setTexture(texture, frame);\r\n this.setPosition(x, y);\r\n this.setSizeToFrame();\r\n this.setOriginFromFrame();\r\n this.initPipeline();\r\n this.initPostPipeline(true);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Image;\r\n\n\n/***/ }),\n\n/***/ 40652:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Image#renderCanvas\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.Image} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar ImageCanvasRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n renderer.batchSprite(src, src.frame, camera, parentMatrix);\r\n};\r\n\r\nmodule.exports = ImageCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 82459:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BuildGameObject = __webpack_require__(25305);\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\nvar Image = __webpack_require__(88571);\r\n\r\n/**\r\n * Creates a new Image Game Object and returns it.\r\n *\r\n * Note: This method will only be available if the Image Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#image\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Sprite.SpriteConfig} config - The configuration object this Game Object will use to create itself.\r\n * @param {boolean} [addToScene] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.\r\n *\r\n * @return {Phaser.GameObjects.Image} The Game Object that was created.\r\n */\r\nGameObjectCreator.register('image', function (config, addToScene)\r\n{\r\n if (config === undefined) { config = {}; }\r\n\r\n var key = GetAdvancedValue(config, 'key', null);\r\n var frame = GetAdvancedValue(config, 'frame', null);\r\n\r\n var image = new Image(this.scene, 0, 0, key, frame);\r\n\r\n if (addToScene !== undefined)\r\n {\r\n config.add = addToScene;\r\n }\r\n\r\n BuildGameObject(this.scene, image, config);\r\n\r\n return image;\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectCreator context.\r\n\n\n/***/ }),\n\n/***/ 2117:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Image = __webpack_require__(88571);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * Creates a new Image Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Image Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#image\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {(string|Phaser.Textures.Texture)} texture - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - An optional frame from the Texture this Game Object is rendering with.\r\n *\r\n * @return {Phaser.GameObjects.Image} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('image', function (x, y, texture, frame)\r\n{\r\n return this.displayList.add(new Image(this.scene, x, y, texture, frame));\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectFactory context.\r\n//\r\n// There are several properties available to use:\r\n//\r\n// this.scene - a reference to the Scene that owns the GameObjectFactory\r\n// this.displayList - a reference to the Display List the Scene owns\r\n// this.updateList - a reference to the Update List the Scene owns\r\n\n\n/***/ }),\n\n/***/ 59819:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(99517);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(40652);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 99517:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Image#renderWebGL\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Image} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar ImageWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n this.pipeline.batchSprite(src, camera, parentMatrix);\r\n};\r\n\r\nmodule.exports = ImageWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 77856:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.GameObjects\r\n */\r\n\r\nvar GameObjects = {\r\n\r\n Events: __webpack_require__(51708),\r\n\r\n DisplayList: __webpack_require__(8050),\r\n GameObjectCreator: __webpack_require__(44603),\r\n GameObjectFactory: __webpack_require__(39429),\r\n UpdateList: __webpack_require__(45027),\r\n\r\n Components: __webpack_require__(31401),\r\n GetCalcMatrix: __webpack_require__(91296),\r\n\r\n BuildGameObject: __webpack_require__(25305),\r\n BuildGameObjectAnimation: __webpack_require__(13059),\r\n GameObject: __webpack_require__(95643),\r\n BitmapText: __webpack_require__(22186),\r\n Blitter: __webpack_require__(6107),\r\n Bob: __webpack_require__(46590),\r\n Container: __webpack_require__(31559),\r\n DOMElement: __webpack_require__(3069),\r\n DynamicBitmapText: __webpack_require__(2638),\r\n Extern: __webpack_require__(42421),\r\n Graphics: __webpack_require__(43831),\r\n Group: __webpack_require__(26479),\r\n Image: __webpack_require__(88571),\r\n Layer: __webpack_require__(93595),\r\n Particles: __webpack_require__(18404),\r\n PathFollower: __webpack_require__(1159),\r\n RenderTexture: __webpack_require__(591),\r\n RetroFont: __webpack_require__(196),\r\n Rope: __webpack_require__(77757),\r\n Sprite: __webpack_require__(68287),\r\n\r\n Text: __webpack_require__(50171),\r\n GetTextSize: __webpack_require__(14220),\r\n MeasureText: __webpack_require__(79557),\r\n TextStyle: __webpack_require__(35762),\r\n\r\n TileSprite: __webpack_require__(20839),\r\n Zone: __webpack_require__(41481),\r\n Video: __webpack_require__(18471),\r\n\r\n // Shapes\r\n\r\n Shape: __webpack_require__(17803),\r\n Arc: __webpack_require__(23629),\r\n Curve: __webpack_require__(89),\r\n Ellipse: __webpack_require__(19921),\r\n Grid: __webpack_require__(30479),\r\n IsoBox: __webpack_require__(61475),\r\n IsoTriangle: __webpack_require__(16933),\r\n Line: __webpack_require__(57847),\r\n Polygon: __webpack_require__(24949),\r\n Rectangle: __webpack_require__(74561),\r\n Star: __webpack_require__(55911),\r\n Triangle: __webpack_require__(36931),\r\n\r\n // Game Object Factories\r\n\r\n Factories: {\r\n Blitter: __webpack_require__(12709),\r\n Container: __webpack_require__(24961),\r\n DOMElement: __webpack_require__(2611),\r\n DynamicBitmapText: __webpack_require__(72566),\r\n Extern: __webpack_require__(56315),\r\n Graphics: __webpack_require__(1201),\r\n Group: __webpack_require__(3385),\r\n Image: __webpack_require__(2117),\r\n Layer: __webpack_require__(20005),\r\n Particles: __webpack_require__(676),\r\n PathFollower: __webpack_require__(90145),\r\n RenderTexture: __webpack_require__(60505),\r\n Rope: __webpack_require__(96819),\r\n Sprite: __webpack_require__(46409),\r\n StaticBitmapText: __webpack_require__(34914),\r\n Text: __webpack_require__(68005),\r\n TileSprite: __webpack_require__(91681),\r\n Zone: __webpack_require__(84175),\r\n Video: __webpack_require__(89025),\r\n\r\n // Shapes\r\n Arc: __webpack_require__(42563),\r\n Curve: __webpack_require__(40511),\r\n Ellipse: __webpack_require__(1543),\r\n Grid: __webpack_require__(34137),\r\n IsoBox: __webpack_require__(3933),\r\n IsoTriangle: __webpack_require__(49803),\r\n Line: __webpack_require__(2481),\r\n Polygon: __webpack_require__(64827),\r\n Rectangle: __webpack_require__(87959),\r\n Star: __webpack_require__(93697),\r\n Triangle: __webpack_require__(45245)\r\n },\r\n\r\n Creators: {\r\n Blitter: __webpack_require__(9403),\r\n Container: __webpack_require__(77143),\r\n DynamicBitmapText: __webpack_require__(11164),\r\n Graphics: __webpack_require__(87079),\r\n Group: __webpack_require__(94975),\r\n Image: __webpack_require__(82459),\r\n Layer: __webpack_require__(25179),\r\n Particles: __webpack_require__(92730),\r\n RenderTexture: __webpack_require__(34495),\r\n Rope: __webpack_require__(26209),\r\n Sprite: __webpack_require__(15567),\r\n StaticBitmapText: __webpack_require__(57336),\r\n Text: __webpack_require__(71259),\r\n TileSprite: __webpack_require__(14167),\r\n Zone: __webpack_require__(95261),\r\n Video: __webpack_require__(11511)\r\n }\r\n\r\n};\r\n\r\n// WebGL only Game Objects\r\nif (true)\r\n{\r\n GameObjects.Shader = __webpack_require__(20071);\r\n GameObjects.Mesh = __webpack_require__(4703);\r\n GameObjects.NineSlice = __webpack_require__(28103);\r\n GameObjects.PointLight = __webpack_require__(80321);\r\n GameObjects.Plane = __webpack_require__(33663);\r\n\r\n GameObjects.Factories.Shader = __webpack_require__(74177);\r\n GameObjects.Factories.Mesh = __webpack_require__(9225);\r\n GameObjects.Factories.NineSlice = __webpack_require__(47521);\r\n GameObjects.Factories.PointLight = __webpack_require__(71255);\r\n GameObjects.Factories.Plane = __webpack_require__(30985);\r\n\r\n GameObjects.Creators.Shader = __webpack_require__(54935);\r\n GameObjects.Creators.Mesh = __webpack_require__(20527);\r\n GameObjects.Creators.NineSlice = __webpack_require__(28279);\r\n GameObjects.Creators.PointLight = __webpack_require__(39829);\r\n GameObjects.Creators.Plane = __webpack_require__(56015);\r\n\r\n GameObjects.Light = __webpack_require__(41432);\r\n GameObjects.LightsManager = __webpack_require__(61356);\r\n GameObjects.LightsPlugin = __webpack_require__(88992);\r\n}\r\n\r\nmodule.exports = GameObjects;\r\n\n\n/***/ }),\n\n/***/ 93595:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BlendModes = __webpack_require__(10312);\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar ComponentsToJSON = __webpack_require__(53774);\r\nvar DataManager = __webpack_require__(45893);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar GameObjectEvents = __webpack_require__(51708);\r\nvar List = __webpack_require__(73162);\r\nvar Render = __webpack_require__(33963);\r\nvar SceneEvents = __webpack_require__(44594);\r\nvar StableSort = __webpack_require__(19186);\r\n\r\n/**\r\n * @classdesc\r\n * A Layer Game Object.\r\n *\r\n * A Layer is a special type of Game Object that acts as a Display List. You can add any type of Game Object\r\n * to a Layer, just as you would to a Scene. Layers can be used to visually group together 'layers' of Game\r\n * Objects:\r\n *\r\n * ```javascript\r\n * const spaceman = this.add.sprite(150, 300, 'spaceman');\r\n * const bunny = this.add.sprite(400, 300, 'bunny');\r\n * const elephant = this.add.sprite(650, 300, 'elephant');\r\n *\r\n * const layer = this.add.layer();\r\n *\r\n * layer.add([ spaceman, bunny, elephant ]);\r\n * ```\r\n *\r\n * The 3 sprites in the example above will now be managed by the Layer they were added to. Therefore,\r\n * if you then set `layer.setVisible(false)` they would all vanish from the display.\r\n *\r\n * You can also control the depth of the Game Objects within the Layer. For example, calling the\r\n * `setDepth` method of a child of a Layer will allow you to adjust the depth of that child _within the\r\n * Layer itself_, rather than the whole Scene. The Layer, too, can have its depth set as well.\r\n *\r\n * The Layer class also offers many different methods for manipulating the list, such as the\r\n * methods `moveUp`, `moveDown`, `sendToBack`, `bringToTop` and so on. These allow you to change the\r\n * display list position of the Layers children, causing it to adjust the order in which they are\r\n * rendered. Using `setDepth` on a child allows you to override this.\r\n *\r\n * Layers can have Post FX Pipelines set, which allows you to easily enable a post pipeline across\r\n * a whole range of children, which, depending on the effect, can often be far more efficient that doing so\r\n * on a per-child basis.\r\n *\r\n * Layers have no position or size within the Scene. This means you cannot enable a Layer for\r\n * physics or input, or change the position, rotation or scale of a Layer. They also have no scroll\r\n * factor, texture, tint, origin, crop or bounds.\r\n *\r\n * If you need those kind of features then you should use a Container instead. Containers can be added\r\n * to Layers, but Layers cannot be added to Containers.\r\n *\r\n * However, you can set the Alpha, Blend Mode, Depth, Mask and Visible state of a Layer. These settings\r\n * will impact all children being rendered by the Layer.\r\n *\r\n * @class Layer\r\n * @extends Phaser.Structs.List.\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.50.0\r\n *\r\n * @extends Phaser.GameObjects.Components.AlphaSingle\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.Mask\r\n * @extends Phaser.GameObjects.Components.PostPipeline\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {Phaser.GameObjects.GameObject[]} [children] - An optional array of Game Objects to add to this Layer.\r\n */\r\nvar Layer = new Class({\r\n\r\n Extends: List,\r\n\r\n Mixins: [\r\n Components.AlphaSingle,\r\n Components.BlendMode,\r\n Components.Depth,\r\n Components.Mask,\r\n Components.PostPipeline,\r\n Components.Visible,\r\n EventEmitter,\r\n Render\r\n ],\r\n\r\n initialize:\r\n\r\n function Layer (scene, children)\r\n {\r\n List.call(this, scene);\r\n EventEmitter.call(this);\r\n\r\n /**\r\n * A reference to the Scene to which this Game Object belongs.\r\n *\r\n * Game Objects can only belong to one Scene.\r\n *\r\n * You should consider this property as being read-only. You cannot move a\r\n * Game Object to another Scene by simply changing it.\r\n *\r\n * @name Phaser.GameObjects.Layer#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.50.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * Holds a reference to the Display List that contains this Game Object.\r\n *\r\n * This is set automatically when this Game Object is added to a Scene or Layer.\r\n *\r\n * You should treat this property as being read-only.\r\n *\r\n * @name Phaser.GameObjects.Layer#displayList\r\n * @type {(Phaser.GameObjects.DisplayList|Phaser.GameObjects.Layer)}\r\n * @default null\r\n * @since 3.50.0\r\n */\r\n this.displayList = null;\r\n\r\n /**\r\n * A textual representation of this Game Object, i.e. `sprite`.\r\n * Used internally by Phaser but is available for your own custom classes to populate.\r\n *\r\n * @name Phaser.GameObjects.Layer#type\r\n * @type {string}\r\n * @since 3.50.0\r\n */\r\n this.type = 'Layer';\r\n\r\n /**\r\n * The current state of this Game Object.\r\n *\r\n * Phaser itself will never modify this value, although plugins may do so.\r\n *\r\n * Use this property to track the state of a Game Object during its lifetime. For example, it could change from\r\n * a state of 'moving', to 'attacking', to 'dead'. The state value should be an integer (ideally mapped to a constant\r\n * in your game code), or a string. These are recommended to keep it light and simple, with fast comparisons.\r\n * If you need to store complex data about your Game Object, look at using the Data Component instead.\r\n *\r\n * @name Phaser.GameObjects.Layer#state\r\n * @type {(number|string)}\r\n * @since 3.50.0\r\n */\r\n this.state = 0;\r\n\r\n /**\r\n * A Layer cannot be placed inside a Container.\r\n *\r\n * This property is kept purely so a Layer has the same\r\n * shape as a Game Object.\r\n *\r\n * @name Phaser.GameObjects.Layer#parentContainer\r\n * @type {Phaser.GameObjects.Container}\r\n * @since 3.51.0\r\n */\r\n this.parentContainer = null;\r\n\r\n /**\r\n * The name of this Game Object.\r\n * Empty by default and never populated by Phaser, this is left for developers to use.\r\n *\r\n * @name Phaser.GameObjects.Layer#name\r\n * @type {string}\r\n * @default ''\r\n * @since 3.50.0\r\n */\r\n this.name = '';\r\n\r\n /**\r\n * The active state of this Game Object.\r\n * A Game Object with an active state of `true` is processed by the Scenes UpdateList, if added to it.\r\n * An active object is one which is having its logic and internal systems updated.\r\n *\r\n * @name Phaser.GameObjects.Layer#active\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.50.0\r\n */\r\n this.active = true;\r\n\r\n /**\r\n * The Tab Index of the Game Object.\r\n * Reserved for future use by plugins and the Input Manager.\r\n *\r\n * @name Phaser.GameObjects.Layer#tabIndex\r\n * @type {number}\r\n * @default -1\r\n * @since 3.51.0\r\n */\r\n this.tabIndex = -1;\r\n\r\n /**\r\n * A Data Manager.\r\n * It allows you to store, query and get key/value paired information specific to this Game Object.\r\n * `null` by default. Automatically created if you use `getData` or `setData` or `setDataEnabled`.\r\n *\r\n * @name Phaser.GameObjects.Layer#data\r\n * @type {Phaser.Data.DataManager}\r\n * @default null\r\n * @since 3.50.0\r\n */\r\n this.data = null;\r\n\r\n /**\r\n * The flags that are compared against `RENDER_MASK` to determine if this Game Object will render or not.\r\n * The bits are 0001 | 0010 | 0100 | 1000 set by the components Visible, Alpha, Transform and Texture respectively.\r\n * If those components are not used by your custom class then you can use this bitmask as you wish.\r\n *\r\n * @name Phaser.GameObjects.Layer#renderFlags\r\n * @type {number}\r\n * @default 15\r\n * @since 3.50.0\r\n */\r\n this.renderFlags = 15;\r\n\r\n /**\r\n * A bitmask that controls if this Game Object is drawn by a Camera or not.\r\n * Not usually set directly, instead call `Camera.ignore`, however you can\r\n * set this property directly using the Camera.id property:\r\n *\r\n * @example\r\n * this.cameraFilter |= camera.id\r\n *\r\n * @name Phaser.GameObjects.Layer#cameraFilter\r\n * @type {number}\r\n * @default 0\r\n * @since 3.50.0\r\n */\r\n this.cameraFilter = 0;\r\n\r\n /**\r\n * This property is kept purely so a Layer has the same\r\n * shape as a Game Object. You cannot input enable a Layer.\r\n *\r\n * @name Phaser.GameObjects.Layer#input\r\n * @type {?Phaser.Types.Input.InteractiveObject}\r\n * @default null\r\n * @since 3.51.0\r\n */\r\n this.input = null;\r\n\r\n /**\r\n * This property is kept purely so a Layer has the same\r\n * shape as a Game Object. You cannot give a Layer a physics body.\r\n *\r\n * @name Phaser.GameObjects.Layer#body\r\n * @type {?(Phaser.Physics.Arcade.Body|Phaser.Physics.Arcade.StaticBody|MatterJS.BodyType)}\r\n * @default null\r\n * @since 3.51.0\r\n */\r\n this.body = null;\r\n\r\n /**\r\n * This Game Object will ignore all calls made to its destroy method if this flag is set to `true`.\r\n * This includes calls that may come from a Group, Container or the Scene itself.\r\n * While it allows you to persist a Game Object across Scenes, please understand you are entirely\r\n * responsible for managing references to and from this Game Object.\r\n *\r\n * @name Phaser.GameObjects.Layer#ignoreDestroy\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.50.0\r\n */\r\n this.ignoreDestroy = false;\r\n\r\n /**\r\n * A reference to the Scene Systems.\r\n *\r\n * @name Phaser.GameObjects.Layer#systems\r\n * @type {Phaser.Scenes.Systems}\r\n * @since 3.50.0\r\n */\r\n this.systems = scene.sys;\r\n\r\n /**\r\n * A reference to the Scene Event Emitter.\r\n *\r\n * @name Phaser.GameObjects.Layer#events\r\n * @type {Phaser.Events.EventEmitter}\r\n * @since 3.50.0\r\n */\r\n this.events = scene.sys.events;\r\n\r\n /**\r\n * The flag the determines whether Game Objects should be sorted when `depthSort()` is called.\r\n *\r\n * @name Phaser.GameObjects.Layer#sortChildrenFlag\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.50.0\r\n */\r\n this.sortChildrenFlag = false;\r\n\r\n // Set the List callbacks\r\n this.addCallback = this.addChildCallback;\r\n this.removeCallback = this.removeChildCallback;\r\n\r\n this.initPostPipeline();\r\n\r\n this.clearAlpha();\r\n\r\n this.setBlendMode(BlendModes.SKIP_CHECK);\r\n\r\n if (children)\r\n {\r\n this.add(children);\r\n }\r\n\r\n // Tell the Scene to re-sort the children\r\n scene.sys.queueDepthSort();\r\n },\r\n\r\n /**\r\n * Sets the `active` property of this Game Object and returns this Game Object for further chaining.\r\n * A Game Object with its `active` property set to `true` will be updated by the Scenes UpdateList.\r\n *\r\n * @method Phaser.GameObjects.Layer#setActive\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} value - True if this Game Object should be set as active, false if not.\r\n *\r\n * @return {this} This GameObject.\r\n */\r\n setActive: function (value)\r\n {\r\n this.active = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the `name` property of this Game Object and returns this Game Object for further chaining.\r\n * The `name` property is not populated by Phaser and is presented for your own use.\r\n *\r\n * @method Phaser.GameObjects.Layer#setName\r\n * @since 3.50.0\r\n *\r\n * @param {string} value - The name to be given to this Game Object.\r\n *\r\n * @return {this} This GameObject.\r\n */\r\n setName: function (value)\r\n {\r\n this.name = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the current state of this Game Object.\r\n *\r\n * Phaser itself will never modify the State of a Game Object, although plugins may do so.\r\n *\r\n * For example, a Game Object could change from a state of 'moving', to 'attacking', to 'dead'.\r\n * The state value should typically be an integer (ideally mapped to a constant\r\n * in your game code), but could also be a string. It is recommended to keep it light and simple.\r\n * If you need to store complex data about your Game Object, look at using the Data Component instead.\r\n *\r\n * @method Phaser.GameObjects.Layer#setState\r\n * @since 3.50.0\r\n *\r\n * @param {(number|string)} value - The state of the Game Object.\r\n *\r\n * @return {this} This GameObject.\r\n */\r\n setState: function (value)\r\n {\r\n this.state = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds a Data Manager component to this Game Object.\r\n *\r\n * @method Phaser.GameObjects.Layer#setDataEnabled\r\n * @since 3.50.0\r\n * @see Phaser.Data.DataManager\r\n *\r\n * @return {this} This GameObject.\r\n */\r\n setDataEnabled: function ()\r\n {\r\n if (!this.data)\r\n {\r\n this.data = new DataManager(this);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Allows you to store a key value pair within this Game Objects Data Manager.\r\n *\r\n * If the Game Object has not been enabled for data (via `setDataEnabled`) then it will be enabled\r\n * before setting the value.\r\n *\r\n * If the key doesn't already exist in the Data Manager then it is created.\r\n *\r\n * ```javascript\r\n * sprite.setData('name', 'Red Gem Stone');\r\n * ```\r\n *\r\n * You can also pass in an object of key value pairs as the first argument:\r\n *\r\n * ```javascript\r\n * sprite.setData({ name: 'Red Gem Stone', level: 2, owner: 'Link', gold: 50 });\r\n * ```\r\n *\r\n * To get a value back again you can call `getData`:\r\n *\r\n * ```javascript\r\n * sprite.getData('gold');\r\n * ```\r\n *\r\n * Or you can access the value directly via the `values` property, where it works like any other variable:\r\n *\r\n * ```javascript\r\n * sprite.data.values.gold += 50;\r\n * ```\r\n *\r\n * When the value is first set, a `setdata` event is emitted from this Game Object.\r\n *\r\n * If the key already exists, a `changedata` event is emitted instead, along an event named after the key.\r\n * For example, if you updated an existing key called `PlayerLives` then it would emit the event `changedata-PlayerLives`.\r\n * These events will be emitted regardless if you use this method to set the value, or the direct `values` setter.\r\n *\r\n * Please note that the data keys are case-sensitive and must be valid JavaScript Object property strings.\r\n * This means the keys `gold` and `Gold` are treated as two unique values within the Data Manager.\r\n *\r\n * @method Phaser.GameObjects.Layer#setData\r\n * @since 3.50.0\r\n *\r\n * @param {(string|object)} key - The key to set the value for. Or an object of key value pairs. If an object the `data` argument is ignored.\r\n * @param {*} [data] - The value to set for the given key. If an object is provided as the key this argument is ignored.\r\n *\r\n * @return {this} This GameObject.\r\n */\r\n setData: function (key, value)\r\n {\r\n if (!this.data)\r\n {\r\n this.data = new DataManager(this);\r\n }\r\n\r\n this.data.set(key, value);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Increase a value for the given key within this Game Objects Data Manager. If the key doesn't already exist in the Data Manager then it is increased from 0.\r\n *\r\n * If the Game Object has not been enabled for data (via `setDataEnabled`) then it will be enabled\r\n * before setting the value.\r\n *\r\n * If the key doesn't already exist in the Data Manager then it is created.\r\n *\r\n * When the value is first set, a `setdata` event is emitted from this Game Object.\r\n *\r\n * @method Phaser.GameObjects.Layer#incData\r\n * @since 3.50.0\r\n *\r\n * @param {(string|object)} key - The key to increase the value for.\r\n * @param {*} [data] - The value to increase for the given key.\r\n *\r\n * @return {this} This GameObject.\r\n */\r\n incData: function (key, value)\r\n {\r\n if (!this.data)\r\n {\r\n this.data = new DataManager(this);\r\n }\r\n\r\n this.data.inc(key, value);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Toggle a boolean value for the given key within this Game Objects Data Manager. If the key doesn't already exist in the Data Manager then it is toggled from false.\r\n *\r\n * If the Game Object has not been enabled for data (via `setDataEnabled`) then it will be enabled\r\n * before setting the value.\r\n *\r\n * If the key doesn't already exist in the Data Manager then it is created.\r\n *\r\n * When the value is first set, a `setdata` event is emitted from this Game Object.\r\n *\r\n * @method Phaser.GameObjects.Layer#toggleData\r\n * @since 3.50.0\r\n *\r\n * @param {(string|object)} key - The key to toggle the value for.\r\n *\r\n * @return {this} This GameObject.\r\n */\r\n toggleData: function (key)\r\n {\r\n if (!this.data)\r\n {\r\n this.data = new DataManager(this);\r\n }\r\n\r\n this.data.toggle(key);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Retrieves the value for the given key in this Game Objects Data Manager, or undefined if it doesn't exist.\r\n *\r\n * You can also access values via the `values` object. For example, if you had a key called `gold` you can do either:\r\n *\r\n * ```javascript\r\n * sprite.getData('gold');\r\n * ```\r\n *\r\n * Or access the value directly:\r\n *\r\n * ```javascript\r\n * sprite.data.values.gold;\r\n * ```\r\n *\r\n * You can also pass in an array of keys, in which case an array of values will be returned:\r\n *\r\n * ```javascript\r\n * sprite.getData([ 'gold', 'armor', 'health' ]);\r\n * ```\r\n *\r\n * This approach is useful for destructuring arrays in ES6.\r\n *\r\n * @method Phaser.GameObjects.Layer#getData\r\n * @since 3.50.0\r\n *\r\n * @param {(string|string[])} key - The key of the value to retrieve, or an array of keys.\r\n *\r\n * @return {*} The value belonging to the given key, or an array of values, the order of which will match the input array.\r\n */\r\n getData: function (key)\r\n {\r\n if (!this.data)\r\n {\r\n this.data = new DataManager(this);\r\n }\r\n\r\n return this.data.get(key);\r\n },\r\n\r\n /**\r\n * A Layer cannot be enabled for input.\r\n *\r\n * This method does nothing and is kept to ensure\r\n * the Layer has the same shape as a Game Object.\r\n *\r\n * @method Phaser.GameObjects.Layer#setInteractive\r\n * @since 3.51.0\r\n *\r\n * @return {this} This GameObject.\r\n */\r\n setInteractive: function ()\r\n {\r\n return this;\r\n },\r\n\r\n /**\r\n * A Layer cannot be enabled for input.\r\n *\r\n * This method does nothing and is kept to ensure\r\n * the Layer has the same shape as a Game Object.\r\n *\r\n * @method Phaser.GameObjects.Layer#disableInteractive\r\n * @since 3.51.0\r\n *\r\n * @return {this} This GameObject.\r\n */\r\n disableInteractive: function ()\r\n {\r\n return this;\r\n },\r\n\r\n /**\r\n * A Layer cannot be enabled for input.\r\n *\r\n * This method does nothing and is kept to ensure\r\n * the Layer has the same shape as a Game Object.\r\n *\r\n * @method Phaser.GameObjects.Layer#removeInteractive\r\n * @since 3.51.0\r\n *\r\n * @return {this} This GameObject.\r\n */\r\n removeInteractive: function ()\r\n {\r\n return this;\r\n },\r\n\r\n /**\r\n * This callback is invoked when this Game Object is added to a Scene.\r\n *\r\n * Can be overriden by custom Game Objects, but be aware of some Game Objects that\r\n * will use this, such as Sprites, to add themselves into the Update List.\r\n *\r\n * You can also listen for the `ADDED_TO_SCENE` event from this Game Object.\r\n *\r\n * @method Phaser.GameObjects.Layer#addedToScene\r\n * @since 3.50.0\r\n */\r\n addedToScene: function ()\r\n {\r\n },\r\n\r\n /**\r\n * This callback is invoked when this Game Object is removed from a Scene.\r\n *\r\n * Can be overriden by custom Game Objects, but be aware of some Game Objects that\r\n * will use this, such as Sprites, to removed themselves from the Update List.\r\n *\r\n * You can also listen for the `REMOVED_FROM_SCENE` event from this Game Object.\r\n *\r\n * @method Phaser.GameObjects.Layer#removedFromScene\r\n * @since 3.50.0\r\n */\r\n removedFromScene: function ()\r\n {\r\n },\r\n\r\n /**\r\n * To be overridden by custom GameObjects. Allows base objects to be used in a Pool.\r\n *\r\n * @method Phaser.GameObjects.Layer#update\r\n * @since 3.50.0\r\n *\r\n * @param {...*} [args] - args\r\n */\r\n update: function ()\r\n {\r\n },\r\n\r\n /**\r\n * Returns a JSON representation of the Game Object.\r\n *\r\n * @method Phaser.GameObjects.Layer#toJSON\r\n * @since 3.50.0\r\n *\r\n * @return {Phaser.Types.GameObjects.JSONGameObject} A JSON representation of the Game Object.\r\n */\r\n toJSON: function ()\r\n {\r\n return ComponentsToJSON(this);\r\n },\r\n\r\n /**\r\n * Compares the renderMask with the renderFlags to see if this Game Object will render or not.\r\n * Also checks the Game Object against the given Cameras exclusion list.\r\n *\r\n * @method Phaser.GameObjects.Layer#willRender\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to check against this Game Object.\r\n *\r\n * @return {boolean} True if the Game Object should be rendered, otherwise false.\r\n */\r\n willRender: function (camera)\r\n {\r\n return !(this.renderFlags !== 15 || this.list.length === 0 || (this.cameraFilter !== 0 && (this.cameraFilter & camera.id)));\r\n },\r\n\r\n /**\r\n * Returns an array containing the display list index of either this Game Object, or if it has one,\r\n * its parent Container. It then iterates up through all of the parent containers until it hits the\r\n * root of the display list (which is index 0 in the returned array).\r\n *\r\n * Used internally by the InputPlugin but also useful if you wish to find out the display depth of\r\n * this Game Object and all of its ancestors.\r\n *\r\n * @method Phaser.GameObjects.Layer#getIndexList\r\n * @since 3.51.0\r\n *\r\n * @return {number[]} An array of display list position indexes.\r\n */\r\n getIndexList: function ()\r\n {\r\n // eslint-disable-next-line consistent-this\r\n var child = this;\r\n var parent = this.parentContainer;\r\n\r\n var indexes = [];\r\n\r\n while (parent)\r\n {\r\n indexes.unshift(parent.getIndex(child));\r\n\r\n child = parent;\r\n\r\n if (!parent.parentContainer)\r\n {\r\n break;\r\n }\r\n else\r\n {\r\n parent = parent.parentContainer;\r\n }\r\n }\r\n\r\n indexes.unshift(this.displayList.getIndex(child));\r\n\r\n return indexes;\r\n },\r\n\r\n /**\r\n * Internal method called from `List.addCallback`.\r\n *\r\n * @method Phaser.GameObjects.Layer#addChildCallback\r\n * @private\r\n * @fires Phaser.Scenes.Events#ADDED_TO_SCENE\r\n * @fires Phaser.GameObjects.Events#ADDED_TO_SCENE\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that was added to the list.\r\n */\r\n addChildCallback: function (gameObject)\r\n {\r\n var displayList = gameObject.displayList;\r\n\r\n if (displayList && displayList !== this)\r\n {\r\n gameObject.removeFromDisplayList();\r\n }\r\n\r\n if (!gameObject.displayList)\r\n {\r\n this.queueDepthSort();\r\n\r\n gameObject.displayList = this;\r\n\r\n gameObject.emit(GameObjectEvents.ADDED_TO_SCENE, gameObject, this.scene);\r\n\r\n this.events.emit(SceneEvents.ADDED_TO_SCENE, gameObject, this.scene);\r\n }\r\n },\r\n\r\n /**\r\n * Internal method called from `List.removeCallback`.\r\n *\r\n * @method Phaser.GameObjects.Layer#removeChildCallback\r\n * @private\r\n * @fires Phaser.Scenes.Events#REMOVED_FROM_SCENE\r\n * @fires Phaser.GameObjects.Events#REMOVED_FROM_SCENE\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that was removed from the list.\r\n */\r\n removeChildCallback: function (gameObject)\r\n {\r\n this.queueDepthSort();\r\n\r\n gameObject.displayList = null;\r\n\r\n gameObject.emit(GameObjectEvents.REMOVED_FROM_SCENE, gameObject, this.scene);\r\n\r\n this.events.emit(SceneEvents.REMOVED_FROM_SCENE, gameObject, this.scene);\r\n },\r\n\r\n /**\r\n * Force a sort of the display list on the next call to depthSort.\r\n *\r\n * @method Phaser.GameObjects.Layer#queueDepthSort\r\n * @since 3.50.0\r\n */\r\n queueDepthSort: function ()\r\n {\r\n this.sortChildrenFlag = true;\r\n },\r\n\r\n /**\r\n * Immediately sorts the display list if the flag is set.\r\n *\r\n * @method Phaser.GameObjects.Layer#depthSort\r\n * @since 3.50.0\r\n */\r\n depthSort: function ()\r\n {\r\n if (this.sortChildrenFlag)\r\n {\r\n StableSort(this.list, this.sortByDepth);\r\n\r\n this.sortChildrenFlag = false;\r\n }\r\n },\r\n\r\n /**\r\n * Compare the depth of two Game Objects.\r\n *\r\n * @method Phaser.GameObjects.Layer#sortByDepth\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} childA - The first Game Object.\r\n * @param {Phaser.GameObjects.GameObject} childB - The second Game Object.\r\n *\r\n * @return {number} The difference between the depths of each Game Object.\r\n */\r\n sortByDepth: function (childA, childB)\r\n {\r\n return childA._depth - childB._depth;\r\n },\r\n\r\n /**\r\n * Returns a reference to the array which contains all Game Objects in this Layer.\r\n *\r\n * This is a reference, not a copy of it, so be very careful not to mutate it.\r\n *\r\n * @method Phaser.GameObjects.Layer#getChildren\r\n * @since 3.50.0\r\n *\r\n * @return {Phaser.GameObjects.GameObject[]} An array of Game Objects within this Layer.\r\n */\r\n getChildren: function ()\r\n {\r\n return this.list;\r\n },\r\n\r\n /**\r\n * Adds this Layer to the given Display List.\r\n *\r\n * If no Display List is specified, it will default to the Display List owned by the Scene to which\r\n * this Layer belongs.\r\n *\r\n * A Layer can only exist on one Display List at any given time, but may move freely between them.\r\n *\r\n * If this Layer is already on another Display List when this method is called, it will first\r\n * be removed from it, before being added to the new list.\r\n *\r\n * You can query which list it is on by looking at the `Phaser.GameObjects.Layer#displayList` property.\r\n *\r\n * If a Layer isn't on any display list, it will not be rendered. If you just wish to temporarily\r\n * disable it from rendering, consider using the `setVisible` method, instead.\r\n *\r\n * @method Phaser.GameObjects.Layer#addToDisplayList\r\n * @fires Phaser.Scenes.Events#ADDED_TO_SCENE\r\n * @fires Phaser.GameObjects.Events#ADDED_TO_SCENE\r\n * @since 3.60.0\r\n *\r\n * @param {(Phaser.GameObjects.DisplayList|Phaser.GameObjects.Layer)} [displayList] - The Display List to add to. Defaults to the Scene Display List.\r\n *\r\n * @return {this} This Layer instance.\r\n */\r\n addToDisplayList: function (displayList)\r\n {\r\n if (displayList === undefined) { displayList = this.scene.sys.displayList; }\r\n\r\n if (this.displayList && this.displayList !== displayList)\r\n {\r\n this.removeFromDisplayList();\r\n }\r\n\r\n // Don't repeat if it's already on this list\r\n if (!displayList.exists(this))\r\n {\r\n this.displayList = displayList;\r\n\r\n displayList.add(this, true);\r\n\r\n displayList.queueDepthSort();\r\n\r\n this.emit(GameObjectEvents.ADDED_TO_SCENE, this, this.scene);\r\n\r\n displayList.events.emit(SceneEvents.ADDED_TO_SCENE, this, this.scene);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes this Layer from the Display List it is currently on.\r\n *\r\n * A Layer can only exist on one Display List at any given time, but may move freely removed\r\n * and added back at a later stage.\r\n *\r\n * You can query which list it is on by looking at the `Phaser.GameObjects.GameObject#displayList` property.\r\n *\r\n * If a Layer isn't on any Display List, it will not be rendered. If you just wish to temporarily\r\n * disable it from rendering, consider using the `setVisible` method, instead.\r\n *\r\n * @method Phaser.GameObjects.Layer#removeFromDisplayList\r\n * @fires Phaser.Scenes.Events#REMOVED_FROM_SCENE\r\n * @fires Phaser.GameObjects.Events#REMOVED_FROM_SCENE\r\n * @since 3.60.0\r\n *\r\n * @return {this} This Layer instance.\r\n */\r\n removeFromDisplayList: function ()\r\n {\r\n var displayList = this.displayList || this.scene.sys.displayList;\r\n\r\n if (displayList.exists(this))\r\n {\r\n displayList.remove(this, true);\r\n\r\n displayList.queueDepthSort();\r\n\r\n this.displayList = null;\r\n\r\n this.emit(GameObjectEvents.REMOVED_FROM_SCENE, this, this.scene);\r\n\r\n displayList.events.emit(SceneEvents.REMOVED_FROM_SCENE, this, this.scene);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Destroys this Layer removing it from the Display List and Update List and\r\n * severing all ties to parent resources.\r\n *\r\n * Also destroys all children of this Layer. If you do not wish for the\r\n * children to be destroyed, you should move them from this Layer first.\r\n *\r\n * Use this to remove this Layer from your game if you don't ever plan to use it again.\r\n * As long as no reference to it exists within your own code it should become free for\r\n * garbage collection by the browser.\r\n *\r\n * If you just want to temporarily disable an object then look at using the\r\n * Game Object Pool instead of destroying it, as destroyed objects cannot be resurrected.\r\n *\r\n * @method Phaser.GameObjects.Layer#destroy\r\n * @fires Phaser.GameObjects.Events#DESTROY\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [fromScene=false] - `True` if this Game Object is being destroyed by the Scene, `false` if not.\r\n */\r\n destroy: function (fromScene)\r\n {\r\n // This Game Object has already been destroyed\r\n if (!this.scene || this.ignoreDestroy)\r\n {\r\n return;\r\n }\r\n\r\n this.emit(GameObjectEvents.DESTROY, this);\r\n\r\n var list = this.list;\r\n\r\n while (list.length)\r\n {\r\n list[0].destroy(fromScene);\r\n }\r\n\r\n this.removeAllListeners();\r\n\r\n this.resetPostPipeline(true);\r\n\r\n if (this.displayList)\r\n {\r\n this.displayList.remove(this, true, false);\r\n\r\n this.displayList.queueDepthSort();\r\n }\r\n\r\n if (this.data)\r\n {\r\n this.data.destroy();\r\n\r\n this.data = undefined;\r\n }\r\n\r\n this.active = false;\r\n this.visible = false;\r\n\r\n this.list = undefined;\r\n this.scene = undefined;\r\n this.displayList = undefined;\r\n this.systems = undefined;\r\n this.events = undefined;\r\n }\r\n\r\n /**\r\n * Return an array listing the events for which the emitter has registered listeners.\r\n *\r\n * @method Phaser.GameObjects.Layer#eventNames\r\n * @since 3.50.0\r\n *\r\n * @return {Array.}\r\n */\r\n\r\n /**\r\n * Return the listeners registered for a given event.\r\n *\r\n * @method Phaser.GameObjects.Layer#listeners\r\n * @since 3.50.0\r\n *\r\n * @param {(string|symbol)} event - The event name.\r\n *\r\n * @return {Function[]} The registered listeners.\r\n */\r\n\r\n /**\r\n * Return the number of listeners listening to a given event.\r\n *\r\n * @method Phaser.GameObjects.Layer#listenerCount\r\n * @since 3.50.0\r\n *\r\n * @param {(string|symbol)} event - The event name.\r\n *\r\n * @return {number} The number of listeners.\r\n */\r\n\r\n /**\r\n * Calls each of the listeners registered for a given event.\r\n *\r\n * @method Phaser.GameObjects.Layer#emit\r\n * @since 3.50.0\r\n *\r\n * @param {(string|symbol)} event - The event name.\r\n * @param {...*} [args] - Additional arguments that will be passed to the event handler.\r\n *\r\n * @return {boolean} `true` if the event had listeners, else `false`.\r\n */\r\n\r\n /**\r\n * Add a listener for a given event.\r\n *\r\n * @method Phaser.GameObjects.Layer#on\r\n * @since 3.50.0\r\n *\r\n * @param {(string|symbol)} event - The event name.\r\n * @param {function} fn - The listener function.\r\n * @param {*} [context=this] - The context to invoke the listener with.\r\n *\r\n * @return {this} This Layer instance.\r\n */\r\n\r\n /**\r\n * Add a listener for a given event.\r\n *\r\n * @method Phaser.GameObjects.Layer#addListener\r\n * @since 3.50.0\r\n *\r\n * @param {(string|symbol)} event - The event name.\r\n * @param {function} fn - The listener function.\r\n * @param {*} [context=this] - The context to invoke the listener with.\r\n *\r\n * @return {this} This Layer instance.\r\n */\r\n\r\n /**\r\n * Add a one-time listener for a given event.\r\n *\r\n * @method Phaser.GameObjects.Layer#once\r\n * @since 3.50.0\r\n *\r\n * @param {(string|symbol)} event - The event name.\r\n * @param {function} fn - The listener function.\r\n * @param {*} [context=this] - The context to invoke the listener with.\r\n *\r\n * @return {this} This Layer instance.\r\n */\r\n\r\n /**\r\n * Remove the listeners of a given event.\r\n *\r\n * @method Phaser.GameObjects.Layer#removeListener\r\n * @since 3.50.0\r\n *\r\n * @param {(string|symbol)} event - The event name.\r\n * @param {function} [fn] - Only remove the listeners that match this function.\r\n * @param {*} [context] - Only remove the listeners that have this context.\r\n * @param {boolean} [once] - Only remove one-time listeners.\r\n *\r\n * @return {this} This Layer instance.\r\n */\r\n\r\n /**\r\n * Remove the listeners of a given event.\r\n *\r\n * @method Phaser.GameObjects.Layer#off\r\n * @since 3.50.0\r\n *\r\n * @param {(string|symbol)} event - The event name.\r\n * @param {function} [fn] - Only remove the listeners that match this function.\r\n * @param {*} [context] - Only remove the listeners that have this context.\r\n * @param {boolean} [once] - Only remove one-time listeners.\r\n *\r\n * @return {this} This Layer instance.\r\n */\r\n\r\n /**\r\n * Remove all listeners, or those of the specified event.\r\n *\r\n * @method Phaser.GameObjects.Layer#removeAllListeners\r\n * @since 3.50.0\r\n *\r\n * @param {(string|symbol)} [event] - The event name.\r\n *\r\n * @return {this} This Layer instance.\r\n */\r\n\r\n});\r\n\r\nmodule.exports = Layer;\r\n\n\n/***/ }),\n\n/***/ 2956:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Layer#renderCanvas\r\n * @since 3.50.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.Layer} layer - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n */\r\nvar LayerCanvasRenderer = function (renderer, layer, camera)\r\n{\r\n var children = layer.list;\r\n\r\n if (children.length === 0)\r\n {\r\n return;\r\n }\r\n\r\n layer.depthSort();\r\n\r\n var layerHasBlendMode = (layer.blendMode !== -1);\r\n\r\n if (!layerHasBlendMode)\r\n {\r\n // If Layer is SKIP_TEST then set blend mode to be Normal\r\n renderer.setBlendMode(0);\r\n }\r\n\r\n var alpha = layer._alpha;\r\n\r\n if (layer.mask)\r\n {\r\n layer.mask.preRenderCanvas(renderer, null, camera);\r\n }\r\n\r\n for (var i = 0; i < children.length; i++)\r\n {\r\n var child = children[i];\r\n\r\n if (!child.willRender(camera))\r\n {\r\n continue;\r\n }\r\n\r\n var childAlpha = child.alpha;\r\n\r\n if (!layerHasBlendMode && child.blendMode !== renderer.currentBlendMode)\r\n {\r\n // If Layer doesn't have its own blend mode, then a child can have one\r\n renderer.setBlendMode(child.blendMode);\r\n }\r\n\r\n // Set parent values\r\n child.setAlpha(childAlpha * alpha);\r\n\r\n // Render\r\n child.renderCanvas(renderer, child, camera);\r\n\r\n // Restore original values\r\n child.setAlpha(childAlpha);\r\n }\r\n\r\n if (layer.mask)\r\n {\r\n layer.mask.postRenderCanvas(renderer);\r\n }\r\n};\r\n\r\nmodule.exports = LayerCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 25179:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BuildGameObject = __webpack_require__(25305);\r\nvar Layer = __webpack_require__(93595);\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\n\r\n/**\r\n * Creates a new Layer Game Object and returns it.\r\n *\r\n * Note: This method will only be available if the Layer Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#layer\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Sprite.SpriteConfig} config - The configuration object this Game Object will use to create itself.\r\n * @param {boolean} [addToScene] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.\r\n *\r\n * @return {Phaser.GameObjects.Layer} The Game Object that was created.\r\n */\r\nGameObjectCreator.register('layer', function (config, addToScene)\r\n{\r\n if (config === undefined) { config = {}; }\r\n\r\n var children = GetAdvancedValue(config, 'children', null);\r\n\r\n var layer = new Layer(this.scene, children);\r\n\r\n if (addToScene !== undefined)\r\n {\r\n config.add = addToScene;\r\n }\r\n\r\n BuildGameObject(this.scene, layer, config);\r\n\r\n return layer;\r\n});\r\n\n\n/***/ }),\n\n/***/ 20005:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Layer = __webpack_require__(93595);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * Creates a new Layer Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Layer Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#layer\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]} [children] - An optional array of Game Objects to add to this Layer.\r\n *\r\n * @return {Phaser.GameObjects.Layer} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('layer', function (children)\r\n{\r\n return this.displayList.add(new Layer(this.scene, children));\r\n});\r\n\n\n/***/ }),\n\n/***/ 33963:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(15869);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(2956);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 15869:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Layer#renderWebGL\r\n * @since 3.50.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Layer} layer - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n */\r\nvar LayerWebGLRenderer = function (renderer, layer, camera)\r\n{\r\n var children = layer.list;\r\n var childCount = children.length;\r\n\r\n if (childCount === 0)\r\n {\r\n return;\r\n }\r\n\r\n layer.depthSort();\r\n\r\n renderer.pipelines.preBatch(layer);\r\n\r\n var layerHasBlendMode = (layer.blendMode !== -1);\r\n\r\n if (!layerHasBlendMode)\r\n {\r\n // If Layer is SKIP_TEST then set blend mode to be Normal\r\n renderer.setBlendMode(0);\r\n }\r\n\r\n var alpha = layer.alpha;\r\n\r\n for (var i = 0; i < childCount; i++)\r\n {\r\n var child = children[i];\r\n\r\n if (!child.willRender(camera))\r\n {\r\n continue;\r\n }\r\n\r\n var childAlphaTopLeft;\r\n var childAlphaTopRight;\r\n var childAlphaBottomLeft;\r\n var childAlphaBottomRight;\r\n\r\n if (child.alphaTopLeft !== undefined)\r\n {\r\n childAlphaTopLeft = child.alphaTopLeft;\r\n childAlphaTopRight = child.alphaTopRight;\r\n childAlphaBottomLeft = child.alphaBottomLeft;\r\n childAlphaBottomRight = child.alphaBottomRight;\r\n }\r\n else\r\n {\r\n var childAlpha = child.alpha;\r\n\r\n childAlphaTopLeft = childAlpha;\r\n childAlphaTopRight = childAlpha;\r\n childAlphaBottomLeft = childAlpha;\r\n childAlphaBottomRight = childAlpha;\r\n }\r\n\r\n if (!layerHasBlendMode && child.blendMode !== renderer.currentBlendMode)\r\n {\r\n // If Layer doesn't have its own blend mode, then a child can have one\r\n renderer.setBlendMode(child.blendMode);\r\n }\r\n\r\n var mask = child.mask;\r\n\r\n if (mask)\r\n {\r\n mask.preRenderWebGL(renderer, child, camera);\r\n }\r\n\r\n var type = child.type;\r\n\r\n if (type !== renderer.currentType)\r\n {\r\n renderer.newType = true;\r\n renderer.currentType = type;\r\n }\r\n\r\n renderer.nextTypeMatch = (i < childCount - 1) ? (children[i + 1].type === renderer.currentType) : false;\r\n\r\n child.setAlpha(childAlphaTopLeft * alpha, childAlphaTopRight * alpha, childAlphaBottomLeft * alpha, childAlphaBottomRight * alpha);\r\n\r\n // Render\r\n child.renderWebGL(renderer, child, camera);\r\n\r\n // Restore original values\r\n child.setAlpha(childAlphaTopLeft, childAlphaTopRight, childAlphaBottomLeft, childAlphaBottomRight);\r\n\r\n if (mask)\r\n {\r\n mask.postRenderWebGL(renderer, camera);\r\n }\r\n\r\n renderer.newType = false;\r\n }\r\n\r\n renderer.pipelines.postBatch(layer);\r\n};\r\n\r\nmodule.exports = LayerWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 41432:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Circle = __webpack_require__(96503);\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar RGB = __webpack_require__(51767);\r\nvar Utils = __webpack_require__(70554);\r\n\r\n/**\r\n * @classdesc\r\n * A 2D Light.\r\n *\r\n * These are created by the {@link Phaser.GameObjects.LightsManager}, available from within a scene via `this.lights`.\r\n *\r\n * Any Game Objects using the Light2D pipeline will then be affected by these Lights as long as they have a normal map.\r\n *\r\n * They can also simply be used to represent a point light for your own purposes.\r\n *\r\n * Lights cannot be added to Containers. They are designed to exist in the root of a Scene.\r\n *\r\n * @class Light\r\n * @extends Phaser.Geom.Circle\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @extends Phaser.GameObjects.Components.Origin\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {number} x - The horizontal position of the light.\r\n * @param {number} y - The vertical position of the light.\r\n * @param {number} radius - The radius of the light.\r\n * @param {number} r - The red color of the light. A value between 0 and 1.\r\n * @param {number} g - The green color of the light. A value between 0 and 1.\r\n * @param {number} b - The blue color of the light. A value between 0 and 1.\r\n * @param {number} intensity - The intensity of the light.\r\n */\r\nvar Light = new Class({\r\n\r\n Extends: Circle,\r\n\r\n Mixins: [\r\n Components.Origin,\r\n Components.ScrollFactor,\r\n Components.Visible\r\n ],\r\n\r\n initialize:\r\n\r\n function Light (x, y, radius, r, g, b, intensity)\r\n {\r\n Circle.call(this, x, y, radius);\r\n\r\n /**\r\n * The color of the light.\r\n *\r\n * @name Phaser.GameObjects.Light#color\r\n * @type {Phaser.Display.RGB}\r\n * @since 3.50.0\r\n */\r\n this.color = new RGB(r, g, b);\r\n\r\n /**\r\n * The intensity of the light.\r\n *\r\n * @name Phaser.GameObjects.Light#intensity\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.intensity = intensity;\r\n\r\n /**\r\n * The flags that are compared against `RENDER_MASK` to determine if this Game Object will render or not.\r\n * The bits are 0001 | 0010 | 0100 | 1000 set by the components Visible, Alpha, Transform and Texture respectively.\r\n * If those components are not used by your custom class then you can use this bitmask as you wish.\r\n *\r\n * @name Phaser.GameObjects.Light#renderFlags\r\n * @type {number}\r\n * @default 15\r\n * @since 3.0.0\r\n */\r\n this.renderFlags = 15;\r\n\r\n /**\r\n * A bitmask that controls if this Game Object is drawn by a Camera or not.\r\n * Not usually set directly, instead call `Camera.ignore`, however you can\r\n * set this property directly using the Camera.id property:\r\n *\r\n * @example\r\n * this.cameraFilter |= camera.id\r\n *\r\n * @name Phaser.GameObjects.Light#cameraFilter\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.cameraFilter = 0;\r\n\r\n this.setScrollFactor(1, 1);\r\n this.setOrigin();\r\n this.setDisplayOrigin(radius);\r\n },\r\n\r\n /**\r\n * The width of this Light Game Object. This is the same as `Light.diameter`.\r\n *\r\n * @name Phaser.GameObjects.Light#displayWidth\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n displayWidth: {\r\n\r\n get: function ()\r\n {\r\n return this.diameter;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.diameter = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The height of this Light Game Object. This is the same as `Light.diameter`.\r\n *\r\n * @name Phaser.GameObjects.Light#displayHeight\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n displayHeight: {\r\n\r\n get: function ()\r\n {\r\n return this.diameter;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.diameter = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The width of this Light Game Object. This is the same as `Light.diameter`.\r\n *\r\n * @name Phaser.GameObjects.Light#width\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n width: {\r\n\r\n get: function ()\r\n {\r\n return this.diameter;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.diameter = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The height of this Light Game Object. This is the same as `Light.diameter`.\r\n *\r\n * @name Phaser.GameObjects.Light#height\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n height: {\r\n\r\n get: function ()\r\n {\r\n return this.diameter;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.diameter = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Compares the renderMask with the renderFlags to see if this Game Object will render or not.\r\n * Also checks the Game Object against the given Cameras exclusion list.\r\n *\r\n * @method Phaser.GameObjects.Light#willRender\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to check against this Game Object.\r\n *\r\n * @return {boolean} True if the Game Object should be rendered, otherwise false.\r\n */\r\n willRender: function (camera)\r\n {\r\n return !(Light.RENDER_MASK !== this.renderFlags || (this.cameraFilter !== 0 && (this.cameraFilter & camera.id)));\r\n },\r\n\r\n /**\r\n * Set the color of the light from a single integer RGB value.\r\n *\r\n * @method Phaser.GameObjects.Light#setColor\r\n * @since 3.0.0\r\n *\r\n * @param {number} rgb - The integer RGB color of the light.\r\n *\r\n * @return {this} This Light object.\r\n */\r\n setColor: function (rgb)\r\n {\r\n var color = Utils.getFloatsFromUintRGB(rgb);\r\n\r\n this.color.set(color[0], color[1], color[2]);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the intensity of the light.\r\n *\r\n * @method Phaser.GameObjects.Light#setIntensity\r\n * @since 3.0.0\r\n *\r\n * @param {number} intensity - The intensity of the light.\r\n *\r\n * @return {this} This Light object.\r\n */\r\n setIntensity: function (intensity)\r\n {\r\n this.intensity = intensity;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the radius of the light.\r\n *\r\n * @method Phaser.GameObjects.Light#setRadius\r\n * @since 3.0.0\r\n *\r\n * @param {number} radius - The radius of the light.\r\n *\r\n * @return {this} This Light object.\r\n */\r\n setRadius: function (radius)\r\n {\r\n this.radius = radius;\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\n/**\r\n * The bitmask that `GameObject.renderFlags` is compared against to determine if the Game Object will render or not.\r\n *\r\n * @constant {number} RENDER_MASK\r\n * @memberof Phaser.GameObjects.Light\r\n * @default\r\n */\r\nLight.RENDER_MASK = 15;\r\n\r\nmodule.exports = Light;\r\n\n\n/***/ }),\n\n/***/ 61356:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CircleToRectangle = __webpack_require__(81491);\r\nvar Class = __webpack_require__(83419);\r\nvar DistanceBetween = __webpack_require__(20339);\r\nvar Light = __webpack_require__(41432);\r\nvar PointLight = __webpack_require__(80321);\r\nvar RGB = __webpack_require__(51767);\r\nvar SpliceOne = __webpack_require__(19133);\r\nvar StableSort = __webpack_require__(19186);\r\nvar Utils = __webpack_require__(70554);\r\n\r\n/**\r\n * @callback LightForEach\r\n *\r\n * @param {Phaser.GameObjects.Light} light - The Light.\r\n */\r\n\r\n/**\r\n * @classdesc\r\n * Manages Lights for a Scene.\r\n *\r\n * Affects the rendering of Game Objects using the `Light2D` pipeline.\r\n *\r\n * @class LightsManager\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.0.0\r\n */\r\nvar LightsManager = new Class({\r\n\r\n initialize:\r\n\r\n function LightsManager ()\r\n {\r\n /**\r\n * The Lights in the Scene.\r\n *\r\n * @name Phaser.GameObjects.LightsManager#lights\r\n * @type {Phaser.GameObjects.Light[]}\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this.lights = [];\r\n\r\n /**\r\n * The ambient color.\r\n *\r\n * @name Phaser.GameObjects.LightsManager#ambientColor\r\n * @type {Phaser.Display.RGB}\r\n * @since 3.50.0\r\n */\r\n this.ambientColor = new RGB(0.1, 0.1, 0.1);\r\n\r\n /**\r\n * Whether the Lights Manager is enabled.\r\n *\r\n * @name Phaser.GameObjects.LightsManager#active\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.active = false;\r\n\r\n /**\r\n * The maximum number of lights that a single Camera and the lights shader can process.\r\n * Change this via the `maxLights` property in your game config, as it cannot be changed at runtime.\r\n *\r\n * @name Phaser.GameObjects.LightsManager#maxLights\r\n * @type {number}\r\n * @readonly\r\n * @since 3.15.0\r\n */\r\n this.maxLights = -1;\r\n\r\n /**\r\n * The number of lights that the LightPipeline processed in the _previous_ frame.\r\n *\r\n * @name Phaser.GameObjects.LightsManager#visibleLights\r\n * @type {number}\r\n * @readonly\r\n * @since 3.50.0\r\n */\r\n this.visibleLights = 0;\r\n },\r\n\r\n /**\r\n * Creates a new Point Light Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Point Light Game Object has been built into Phaser.\r\n *\r\n * The Point Light Game Object provides a way to add a point light effect into your game,\r\n * without the expensive shader processing requirements of the traditional Light Game Object.\r\n *\r\n * The difference is that the Point Light renders using a custom shader, designed to give the\r\n * impression of a point light source, of variable radius, intensity and color, in your game.\r\n * However, unlike the Light Game Object, it does not impact any other Game Objects, or use their\r\n * normal maps for calcuations. This makes them extremely fast to render compared to Lights\r\n * and perfect for special effects, such as flickering torches or muzzle flashes.\r\n *\r\n * For maximum performance you should batch Point Light Game Objects together. This means\r\n * ensuring they follow each other consecutively on the display list. Ideally, use a Layer\r\n * Game Object and then add just Point Lights to it, so that it can batch together the rendering\r\n * of the lights. You don't _have_ to do this, and if you've only a handful of Point Lights in\r\n * your game then it's perfectly safe to mix them into the dislay list as normal. However, if\r\n * you're using a large number of them, please consider how they are mixed into the display list.\r\n *\r\n * The renderer will automatically cull Point Lights. Those with a radius that does not intersect\r\n * with the Camera will be skipped in the rendering list. This happens automatically and the\r\n * culled state is refreshed every frame, for every camera.\r\n *\r\n * The origin of a Point Light is always 0.5 and it cannot be changed.\r\n *\r\n * Point Lights are a WebGL only feature and do not have a Canvas counterpart.\r\n *\r\n * @method Phaser.GameObjects.LightsManager#addPointLight\r\n * @since 3.50.0\r\n *\r\n * @param {number} x - The horizontal position of this Point Light in the world.\r\n * @param {number} y - The vertical position of this Point Light in the world.\r\n * @param {number} [color=0xffffff] - The color of the Point Light, given as a hex value.\r\n * @param {number} [radius=128] - The radius of the Point Light.\r\n * @param {number} [intensity=1] - The intensity, or color blend, of the Point Light.\r\n * @param {number} [attenuation=0.1] - The attenuation of the Point Light. This is the reduction of light from the center point.\r\n *\r\n * @return {Phaser.GameObjects.PointLight} The Game Object that was created.\r\n */\r\n addPointLight: function (x, y, color, radius, intensity, attenuation)\r\n {\r\n return this.systems.displayList.add(new PointLight(this.scene, x, y, color, radius, intensity, attenuation));\r\n },\r\n\r\n /**\r\n * Enable the Lights Manager.\r\n *\r\n * @method Phaser.GameObjects.LightsManager#enable\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Lights Manager instance.\r\n */\r\n enable: function ()\r\n {\r\n if (this.maxLights === -1)\r\n {\r\n this.maxLights = this.systems.renderer.config.maxLights;\r\n }\r\n\r\n this.active = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Disable the Lights Manager.\r\n *\r\n * @method Phaser.GameObjects.LightsManager#disable\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Lights Manager instance.\r\n */\r\n disable: function ()\r\n {\r\n this.active = false;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Get all lights that can be seen by the given Camera.\r\n *\r\n * It will automatically cull lights that are outside the world view of the Camera.\r\n *\r\n * If more lights are returned than supported by the pipeline, the lights are then culled\r\n * based on the distance from the center of the camera. Only those closest are rendered.\r\n *\r\n * @method Phaser.GameObjects.LightsManager#getLights\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to cull Lights for.\r\n *\r\n * @return {Phaser.GameObjects.Light[]} The culled Lights.\r\n */\r\n getLights: function (camera)\r\n {\r\n var lights = this.lights;\r\n var worldView = camera.worldView;\r\n\r\n var visibleLights = [];\r\n\r\n for (var i = 0; i < lights.length; i++)\r\n {\r\n var light = lights[i];\r\n\r\n if (light.willRender(camera) && CircleToRectangle(light, worldView))\r\n {\r\n visibleLights.push({\r\n light: light,\r\n distance: DistanceBetween(light.x, light.y, worldView.centerX, worldView.centerY)\r\n });\r\n }\r\n }\r\n\r\n if (visibleLights.length > this.maxLights)\r\n {\r\n // We've got too many lights, so sort by distance from camera and cull those far away\r\n // This isn't ideal because it doesn't factor in the radius of the lights, but it'll do for now\r\n // and is significantly better than we had before!\r\n\r\n StableSort(visibleLights, this.sortByDistance);\r\n\r\n visibleLights = visibleLights.slice(0, this.maxLights);\r\n }\r\n\r\n this.visibleLights = visibleLights.length;\r\n\r\n return visibleLights;\r\n },\r\n\r\n sortByDistance: function (a, b)\r\n {\r\n return (a.distance >= b.distance);\r\n },\r\n\r\n /**\r\n * Set the ambient light color.\r\n *\r\n * @method Phaser.GameObjects.LightsManager#setAmbientColor\r\n * @since 3.0.0\r\n *\r\n * @param {number} rgb - The integer RGB color of the ambient light.\r\n *\r\n * @return {this} This Lights Manager instance.\r\n */\r\n setAmbientColor: function (rgb)\r\n {\r\n var color = Utils.getFloatsFromUintRGB(rgb);\r\n\r\n this.ambientColor.set(color[0], color[1], color[2]);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns the maximum number of Lights allowed to appear at once.\r\n *\r\n * @method Phaser.GameObjects.LightsManager#getMaxVisibleLights\r\n * @since 3.0.0\r\n *\r\n * @return {number} The maximum number of Lights allowed to appear at once.\r\n */\r\n getMaxVisibleLights: function ()\r\n {\r\n return this.maxLights;\r\n },\r\n\r\n /**\r\n * Get the number of Lights managed by this Lights Manager.\r\n *\r\n * @method Phaser.GameObjects.LightsManager#getLightCount\r\n * @since 3.0.0\r\n *\r\n * @return {number} The number of Lights managed by this Lights Manager.\r\n */\r\n getLightCount: function ()\r\n {\r\n return this.lights.length;\r\n },\r\n\r\n /**\r\n * Add a Light.\r\n *\r\n * @method Phaser.GameObjects.LightsManager#addLight\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=0] - The horizontal position of the Light.\r\n * @param {number} [y=0] - The vertical position of the Light.\r\n * @param {number} [radius=128] - The radius of the Light.\r\n * @param {number} [rgb=0xffffff] - The integer RGB color of the light.\r\n * @param {number} [intensity=1] - The intensity of the Light.\r\n *\r\n * @return {Phaser.GameObjects.Light} The Light that was added.\r\n */\r\n addLight: function (x, y, radius, rgb, intensity)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (radius === undefined) { radius = 128; }\r\n if (rgb === undefined) { rgb = 0xffffff; }\r\n if (intensity === undefined) { intensity = 1; }\r\n\r\n var color = Utils.getFloatsFromUintRGB(rgb);\r\n\r\n var light = new Light(x, y, radius, color[0], color[1], color[2], intensity);\r\n\r\n this.lights.push(light);\r\n\r\n return light;\r\n },\r\n\r\n /**\r\n * Remove a Light.\r\n *\r\n * @method Phaser.GameObjects.LightsManager#removeLight\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Light} light - The Light to remove.\r\n *\r\n * @return {this} This Lights Manager instance.\r\n */\r\n removeLight: function (light)\r\n {\r\n var index = this.lights.indexOf(light);\r\n\r\n if (index >= 0)\r\n {\r\n SpliceOne(this.lights, index);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Shut down the Lights Manager.\r\n *\r\n * Recycles all active Lights into the Light pool, resets ambient light color and clears the lists of Lights and\r\n * culled Lights.\r\n *\r\n * @method Phaser.GameObjects.LightsManager#shutdown\r\n * @since 3.0.0\r\n */\r\n shutdown: function ()\r\n {\r\n this.lights.length = 0;\r\n },\r\n\r\n /**\r\n * Destroy the Lights Manager.\r\n *\r\n * Cleans up all references by calling {@link Phaser.GameObjects.LightsManager#shutdown}.\r\n *\r\n * @method Phaser.GameObjects.LightsManager#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.shutdown();\r\n }\r\n\r\n});\r\n\r\nmodule.exports = LightsManager;\r\n\n\n/***/ }),\n\n/***/ 88992:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar LightsManager = __webpack_require__(61356);\r\nvar PluginCache = __webpack_require__(37277);\r\nvar SceneEvents = __webpack_require__(44594);\r\n\r\n/**\r\n * @classdesc\r\n * A Scene plugin that provides a {@link Phaser.GameObjects.LightsManager} for the Light2D pipeline.\r\n *\r\n * Available from within a Scene via `this.lights`.\r\n *\r\n * Add Lights using the {@link Phaser.GameObjects.LightsManager#addLight} method:\r\n *\r\n * ```javascript\r\n * // Enable the Lights Manager because it is disabled by default\r\n * this.lights.enable();\r\n *\r\n * // Create a Light at [400, 300] with a radius of 200\r\n * this.lights.addLight(400, 300, 200);\r\n * ```\r\n *\r\n * For Game Objects to be affected by the Lights when rendered, you will need to set them to use the `Light2D` pipeline like so:\r\n *\r\n * ```javascript\r\n * sprite.setPipeline('Light2D');\r\n * ```\r\n *\r\n * Note that you cannot use this pipeline on Graphics Game Objects or Shape Game Objects.\r\n *\r\n * @class LightsPlugin\r\n * @extends Phaser.GameObjects.LightsManager\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene that this Lights Plugin belongs to.\r\n */\r\nvar LightsPlugin = new Class({\r\n\r\n Extends: LightsManager,\r\n\r\n initialize:\r\n\r\n function LightsPlugin (scene)\r\n {\r\n /**\r\n * A reference to the Scene that this Lights Plugin belongs to.\r\n *\r\n * @name Phaser.GameObjects.LightsPlugin#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.0.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * A reference to the Scene's systems.\r\n *\r\n * @name Phaser.GameObjects.LightsPlugin#systems\r\n * @type {Phaser.Scenes.Systems}\r\n * @since 3.0.0\r\n */\r\n this.systems = scene.sys;\r\n\r\n if (!scene.sys.settings.isBooted)\r\n {\r\n scene.sys.events.once(SceneEvents.BOOT, this.boot, this);\r\n }\r\n\r\n LightsManager.call(this);\r\n },\r\n\r\n /**\r\n * Boot the Lights Plugin.\r\n *\r\n * @method Phaser.GameObjects.LightsPlugin#boot\r\n * @since 3.0.0\r\n */\r\n boot: function ()\r\n {\r\n var eventEmitter = this.systems.events;\r\n\r\n eventEmitter.on(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n eventEmitter.on(SceneEvents.DESTROY, this.destroy, this);\r\n },\r\n\r\n /**\r\n * Destroy the Lights Plugin.\r\n *\r\n * Cleans up all references.\r\n *\r\n * @method Phaser.GameObjects.LightsPlugin#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.shutdown();\r\n\r\n this.scene = undefined;\r\n this.systems = undefined;\r\n }\r\n\r\n});\r\n\r\nPluginCache.register('LightsPlugin', LightsPlugin, 'lights');\r\n\r\nmodule.exports = LightsPlugin;\r\n\n\n/***/ }),\n\n/***/ 4703:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar DegToRad = __webpack_require__(39506);\r\nvar Face = __webpack_require__(83997);\r\nvar GameObject = __webpack_require__(95643);\r\nvar GenerateObjVerts = __webpack_require__(34684);\r\nvar GenerateVerts = __webpack_require__(92515);\r\nvar GetCalcMatrix = __webpack_require__(91296);\r\nvar Matrix4 = __webpack_require__(37867);\r\nvar MeshRender = __webpack_require__(29807);\r\nvar RadToDeg = __webpack_require__(43396);\r\nvar StableSort = __webpack_require__(19186);\r\nvar Vector3 = __webpack_require__(25836);\r\nvar Vertex = __webpack_require__(39318);\r\n\r\n/**\r\n * @classdesc\r\n * A Mesh Game Object.\r\n *\r\n * The Mesh Game Object allows you to render a group of textured vertices and manipulate\r\n * the view of those vertices, such as rotation, translation or scaling.\r\n *\r\n * Support for generating mesh data from grids, model data or Wavefront OBJ Files is included.\r\n *\r\n * Although you can use this to render 3D objects, its primary use is for displaying more complex\r\n * Sprites, or Sprites where you need fine-grained control over the vertex positions in order to\r\n * achieve special effects in your games. Note that rendering still takes place using Phaser's\r\n * orthographic camera (after being transformed via `projectionMesh`, see `setPerspective`,\r\n * `setOrtho`, and `panZ` methods). As a result, all depth and face tests are done in an eventually\r\n * orthographic space.\r\n *\r\n * The rendering process will iterate through the faces of this Mesh and render out each face\r\n * that is considered as being in view of the camera. No depth buffer is used, and because of this,\r\n * you should be careful not to use model data with too many vertices, or overlapping geometry,\r\n * or you'll probably encounter z-depth fighting. The Mesh was designed to allow for more advanced\r\n * 2D layouts, rather than displaying 3D objects, even though it can do this to a degree.\r\n *\r\n * In short, if you want to remake Crysis, use a 3D engine, not a Mesh. However, if you want\r\n * to easily add some small fun 3D elements into your game, or create some special effects involving\r\n * vertex warping, this is the right object for you. Mesh data becomes part of the WebGL batch,\r\n * just like standard Sprites, so doesn't introduce any additional shader overhead. Because\r\n * the Mesh just generates vertices into the WebGL batch, like any other Sprite, you can use all of\r\n * the common Game Object components on a Mesh too, such as a custom pipeline, mask, blend mode\r\n * or texture.\r\n *\r\n * Note that the Mesh object is WebGL only and does not have a Canvas counterpart.\r\n *\r\n * The Mesh origin is always 0.5 x 0.5 and cannot be changed.\r\n *\r\n * @class Mesh\r\n * @extends Phaser.GameObjects.GameObject\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @webglOnly\r\n * @since 3.0.0\r\n *\r\n * @extends Phaser.GameObjects.Components.AlphaSingle\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.Mask\r\n * @extends Phaser.GameObjects.Components.Pipeline\r\n * @extends Phaser.GameObjects.Components.PostPipeline\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n * @extends Phaser.GameObjects.Components.Size\r\n * @extends Phaser.GameObjects.Components.Texture\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} [x] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y] - The vertical position of this Game Object in the world.\r\n * @param {string|Phaser.Textures.Texture} [texture] - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {string|number} [frame] - An optional frame from the Texture this Game Object is rendering with.\r\n * @param {number[]} [vertices] - The vertices array. Either `xy` pairs, or `xyz` if the `containsZ` parameter is `true` (but see note).\r\n * @param {number[]} [uvs] - The UVs pairs array.\r\n * @param {number[]} [indicies] - Optional vertex indicies array. If you don't have one, pass `null` or an empty array.\r\n * @param {boolean} [containsZ=false] - Does the vertices data include a `z` component? Note: If not, it will be assumed `z=0`, see method `panZ` or `setOrtho`.\r\n * @param {number[]} [normals] - Optional vertex normals array. If you don't have one, pass `null` or an empty array.\r\n * @param {number|number[]} [colors=0xffffff] - An array of colors, one per vertex, or a single color value applied to all vertices.\r\n * @param {number|number[]} [alphas=1] - An array of alpha values, one per vertex, or a single alpha value applied to all vertices.\r\n */\r\nvar Mesh = new Class({\r\n\r\n Extends: GameObject,\r\n\r\n Mixins: [\r\n Components.AlphaSingle,\r\n Components.BlendMode,\r\n Components.Depth,\r\n Components.Mask,\r\n Components.Pipeline,\r\n Components.PostPipeline,\r\n Components.ScrollFactor,\r\n Components.Size,\r\n Components.Texture,\r\n Components.Transform,\r\n Components.Visible,\r\n MeshRender\r\n ],\r\n\r\n initialize:\r\n\r\n function Mesh (scene, x, y, texture, frame, vertices, uvs, indicies, containsZ, normals, colors, alphas)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (texture === undefined) { texture = '__WHITE'; }\r\n\r\n GameObject.call(this, scene, 'Mesh');\r\n\r\n /**\r\n * An array containing the Face instances belonging to this Mesh.\r\n *\r\n * A Face consists of 3 Vertex objects.\r\n *\r\n * This array is populated during calls such as `addVertices` or `addOBJ`.\r\n *\r\n * @name Phaser.GameObjects.Mesh#faces\r\n * @type {Phaser.Geom.Mesh.Face[]}\r\n * @since 3.50.0\r\n */\r\n this.faces = [];\r\n\r\n /**\r\n * An array containing Vertex instances. One instance per vertex in this Mesh.\r\n *\r\n * This array is populated during calls such as `addVertex` or `addOBJ`.\r\n *\r\n * @name Phaser.GameObjects.Mesh#vertices\r\n * @type {Phaser.Geom.Mesh.Vertex[]}\r\n * @since 3.50.0\r\n */\r\n this.vertices = [];\r\n\r\n /**\r\n * The tint fill mode.\r\n *\r\n * `false` = An additive tint (the default), where vertices colors are blended with the texture.\r\n * `true` = A fill tint, where the vertex colors replace the texture, but respects texture alpha.\r\n *\r\n * @name Phaser.GameObjects.Mesh#tintFill\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.50.0\r\n */\r\n this.tintFill = false;\r\n\r\n /**\r\n * You can optionally choose to render the vertices of this Mesh to a Graphics instance.\r\n *\r\n * Achieve this by setting the `debugCallback` and the `debugGraphic` properties.\r\n *\r\n * You can do this in a single call via the `Mesh.setDebug` method, which will use the\r\n * built-in debug function. You can also set it to your own callback. The callback\r\n * will be invoked _once per render_ and sent the following parameters:\r\n *\r\n * `debugCallback(src, meshLength, verts)`\r\n *\r\n * `src` is the Mesh instance being debugged.\r\n * `meshLength` is the number of mesh vertices in total.\r\n * `verts` is an array of the translated vertex coordinates.\r\n *\r\n * To disable rendering, set this property back to `null`.\r\n *\r\n * Please note that high vertex count Meshes will struggle to debug properly.\r\n *\r\n * @name Phaser.GameObjects.Mesh#debugCallback\r\n * @type {function}\r\n * @since 3.50.0\r\n */\r\n this.debugCallback = null;\r\n\r\n /**\r\n * The Graphics instance that the debug vertices will be drawn to, if `setDebug` has\r\n * been called.\r\n *\r\n * @name Phaser.GameObjects.Mesh#debugGraphic\r\n * @type {Phaser.GameObjects.Graphics}\r\n * @since 3.50.0\r\n */\r\n this.debugGraphic = null;\r\n\r\n /**\r\n * When rendering, skip any Face that isn't counter clockwise?\r\n *\r\n * Enable this to hide backward-facing Faces during rendering.\r\n *\r\n * Disable it to render all Faces.\r\n *\r\n * @name Phaser.GameObjects.Mesh#hideCCW\r\n * @type {boolean}\r\n * @since 3.50.0\r\n */\r\n this.hideCCW = true;\r\n\r\n /**\r\n * A Vector3 containing the 3D position of the vertices in this Mesh.\r\n *\r\n * Modifying the components of this property will allow you to reposition where\r\n * the vertices are rendered within the Mesh. This happens in the `preUpdate` phase,\r\n * where each vertex is transformed using the view and projection matrices.\r\n *\r\n * Changing this property will impact all vertices being rendered by this Mesh.\r\n *\r\n * You can also adjust the 'view' by using the `pan` methods.\r\n *\r\n * @name Phaser.GameObjects.Mesh#modelPosition\r\n * @type {Phaser.Math.Vector3}\r\n * @since 3.50.0\r\n */\r\n this.modelPosition = new Vector3();\r\n\r\n /**\r\n * A Vector3 containing the 3D scale of the vertices in this Mesh.\r\n *\r\n * Modifying the components of this property will allow you to scale\r\n * the vertices within the Mesh. This happens in the `preUpdate` phase,\r\n * where each vertex is transformed using the view and projection matrices.\r\n *\r\n * Changing this property will impact all vertices being rendered by this Mesh.\r\n *\r\n * @name Phaser.GameObjects.Mesh#modelScale\r\n * @type {Phaser.Math.Vector3}\r\n * @since 3.50.0\r\n */\r\n this.modelScale = new Vector3(1, 1, 1);\r\n\r\n /**\r\n * A Vector3 containing the 3D rotation of the vertices in this Mesh.\r\n *\r\n * The values should be given in radians, i.e. to rotate the vertices by 90\r\n * degrees you can use `modelRotation.x = Phaser.Math.DegToRad(90)`.\r\n *\r\n * Modifying the components of this property will allow you to rotate\r\n * the vertices within the Mesh. This happens in the `preUpdate` phase,\r\n * where each vertex is transformed using the view and projection matrices.\r\n *\r\n * Changing this property will impact all vertices being rendered by this Mesh.\r\n *\r\n * @name Phaser.GameObjects.Mesh#modelRotation\r\n * @type {Phaser.Math.Vector3}\r\n * @since 3.50.0\r\n */\r\n this.modelRotation = new Vector3();\r\n\r\n /**\r\n * An internal cache, used to compare position, rotation, scale and face data\r\n * each frame, to avoid math calculations in `preUpdate`.\r\n *\r\n * Cache structure = position xyz | rotation xyz | scale xyz | face count | view | ortho\r\n *\r\n * @name Phaser.GameObjects.Mesh#dirtyCache\r\n * @type {number[]}\r\n * @private\r\n * @since 3.50.0\r\n */\r\n this.dirtyCache = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ];\r\n\r\n /**\r\n * The transformation matrix for this Mesh.\r\n *\r\n * @name Phaser.GameObjects.Mesh#transformMatrix\r\n * @type {Phaser.Math.Matrix4}\r\n * @since 3.50.0\r\n */\r\n this.transformMatrix = new Matrix4();\r\n\r\n /**\r\n * The view position for this Mesh.\r\n *\r\n * Use the methods`panX`, `panY` and `panZ` to adjust the view.\r\n *\r\n * @name Phaser.GameObjects.Mesh#viewPosition\r\n * @type {Phaser.Math.Vector3}\r\n * @since 3.50.0\r\n */\r\n this.viewPosition = new Vector3();\r\n\r\n /**\r\n * The view matrix for this Mesh.\r\n *\r\n * @name Phaser.GameObjects.Mesh#viewMatrix\r\n * @type {Phaser.Math.Matrix4}\r\n * @since 3.50.0\r\n */\r\n this.viewMatrix = new Matrix4();\r\n\r\n /**\r\n * The projection matrix for this Mesh.\r\n *\r\n * Update it with the `setPerspective` or `setOrtho` methods.\r\n *\r\n * @name Phaser.GameObjects.Mesh#projectionMatrix\r\n * @type {Phaser.Math.Matrix4}\r\n * @since 3.50.0\r\n */\r\n this.projectionMatrix = new Matrix4();\r\n\r\n /**\r\n * How many faces were rendered by this Mesh Game Object in the last\r\n * draw? This is reset in the `preUpdate` method and then incremented\r\n * each time a face is drawn. Note that in multi-camera Scenes this\r\n * value may exceed that found in `Mesh.getFaceCount` due to\r\n * cameras drawing the same faces more than once.\r\n *\r\n * @name Phaser.GameObjects.Mesh#totalRendered\r\n * @type {number}\r\n * @readonly\r\n * @since 3.50.0\r\n */\r\n this.totalRendered = 0;\r\n\r\n /**\r\n * Internal cache var for the total number of faces rendered this frame.\r\n *\r\n * See `totalRendered` instead for the actual value.\r\n *\r\n * @name Phaser.GameObjects.Mesh#totalFrame\r\n * @type {number}\r\n * @private\r\n * @since 3.50.0\r\n */\r\n this.totalFrame = 0;\r\n\r\n /**\r\n * By default, the Mesh will check to see if its model or view transform has\r\n * changed each frame and only recalculate the vertex positions if they have.\r\n *\r\n * This avoids lots of additional math in the `preUpdate` step when not required.\r\n *\r\n * However, if you are performing per-Face or per-Vertex manipulation on this Mesh,\r\n * such as tweening a Face, or moving it without moving the rest of the Mesh,\r\n * then you may need to disable the dirty cache in order for the Mesh to re-render\r\n * correctly. You can toggle this property to do that. Please note that leaving\r\n * this set to `true` will cause the Mesh to recalculate the position of every single\r\n * vertex in it, every single frame. So only really do this if you know you\r\n * need it.\r\n *\r\n * @name Phaser.GameObjects.Mesh#ignoreDirtyCache\r\n * @type {boolean}\r\n * @since 3.50.0\r\n */\r\n this.ignoreDirtyCache = false;\r\n\r\n /**\r\n * The Camera fov (field of view) in degrees.\r\n *\r\n * This is set automatically as part of the `Mesh.setPerspective` call, but exposed\r\n * here for additional math.\r\n *\r\n * Do not modify this property directly, doing so will not change the fov. For that,\r\n * call the respective Mesh methods.\r\n *\r\n * @name Phaser.GameObjects.Mesh#fov\r\n * @type {number}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.fov;\r\n\r\n // Set these to allow setInteractive to work\r\n this.displayOriginX = 0;\r\n this.displayOriginY = 0;\r\n\r\n var renderer = scene.sys.renderer;\r\n\r\n this.setPosition(x, y);\r\n this.setTexture(texture, frame);\r\n this.setSize(renderer.width, renderer.height);\r\n this.initPipeline();\r\n this.initPostPipeline();\r\n\r\n this.setPerspective(renderer.width, renderer.height);\r\n\r\n if (vertices)\r\n {\r\n this.addVertices(vertices, uvs, indicies, containsZ, normals, colors, alphas);\r\n }\r\n },\r\n\r\n // Overrides Game Object method\r\n addedToScene: function ()\r\n {\r\n this.scene.sys.updateList.add(this);\r\n },\r\n\r\n // Overrides Game Object method\r\n removedFromScene: function ()\r\n {\r\n this.scene.sys.updateList.remove(this);\r\n },\r\n\r\n /**\r\n * Translates the view position of this Mesh on the x axis by the given amount.\r\n *\r\n * @method Phaser.GameObjects.Mesh#panX\r\n * @since 3.50.0\r\n *\r\n * @param {number} v - The amount to pan by.\r\n */\r\n panX: function (v)\r\n {\r\n this.viewPosition.addScale(Vector3.LEFT, v);\r\n\r\n this.dirtyCache[10] = 1;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Translates the view position of this Mesh on the y axis by the given amount.\r\n *\r\n * @method Phaser.GameObjects.Mesh#panY\r\n * @since 3.50.0\r\n *\r\n * @param {number} v - The amount to pan by.\r\n */\r\n panY: function (v)\r\n {\r\n this.viewPosition.y += Vector3.DOWN.y * v;\r\n\r\n this.dirtyCache[10] = 1;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Translates the view position of this Mesh on the z axis by the given amount.\r\n *\r\n * As the default `panZ` value is 0, vertices with `z=0` (the default) need special\r\n * care or else they will not display as they are \"behind\" the camera.\r\n *\r\n * Consider using `mesh.panZ(mesh.height / (2 * Math.tan(Math.PI / 16)))`,\r\n * which will interpret vertex geometry 1:1 with pixel geometry (or see `setOrtho`).\r\n *\r\n * @method Phaser.GameObjects.Mesh#panZ\r\n * @since 3.50.0\r\n *\r\n * @param {number} v - The amount to pan by.\r\n */\r\n panZ: function (amount)\r\n {\r\n this.viewPosition.z += amount;\r\n\r\n this.dirtyCache[10] = 1;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Builds a new perspective projection matrix from the given values.\r\n *\r\n * These are also the initial projection matrix and parameters for `Mesh` (see `Mesh.panZ` for more discussion).\r\n *\r\n * See also `setOrtho`.\r\n *\r\n * @method Phaser.GameObjects.Mesh#setPerspective\r\n * @since 3.50.0\r\n *\r\n * @param {number} width - The width of the projection matrix. Typically the same as the Mesh and/or Renderer.\r\n * @param {number} height - The height of the projection matrix. Typically the same as the Mesh and/or Renderer.\r\n * @param {number} [fov=45] - The field of view, in degrees.\r\n * @param {number} [near=0.01] - The near value of the view.\r\n * @param {number} [far=1000] - The far value of the view.\r\n */\r\n setPerspective: function (width, height, fov, near, far)\r\n {\r\n if (fov === undefined) { fov = 45; }\r\n if (near === undefined) { near = 0.01; }\r\n if (far === undefined) { far = 1000; }\r\n\r\n this.fov = fov;\r\n\r\n this.projectionMatrix.perspective(DegToRad(fov), width / height, near, far);\r\n\r\n this.dirtyCache[10] = 1;\r\n this.dirtyCache[11] = 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Builds a new orthographic projection matrix from the given values.\r\n *\r\n * If using this mode you will often need to set `Mesh.hideCCW` to `false` as well.\r\n *\r\n * By default, calling this method with no parameters will set the scaleX value to\r\n * match the renderer's aspect ratio. If you would like to render vertex positions 1:1\r\n * to pixel positions, consider calling as `mesh.setOrtho(mesh.width, mesh.height)`.\r\n *\r\n * See also `setPerspective`.\r\n *\r\n * @method Phaser.GameObjects.Mesh#setOrtho\r\n * @since 3.50.0\r\n *\r\n * @param {number} [scaleX=1] - The default horizontal scale in relation to the Mesh / Renderer dimensions.\r\n * @param {number} [scaleY=1] - The default vertical scale in relation to the Mesh / Renderer dimensions.\r\n * @param {number} [near=-1000] - The near value of the view.\r\n * @param {number} [far=1000] - The far value of the view.\r\n */\r\n setOrtho: function (scaleX, scaleY, near, far)\r\n {\r\n if (scaleX === undefined) { scaleX = this.scene.sys.renderer.getAspectRatio(); }\r\n if (scaleY === undefined) { scaleY = 1; }\r\n if (near === undefined) { near = -1000; }\r\n if (far === undefined) { far = 1000; }\r\n\r\n this.fov = 0;\r\n\r\n this.projectionMatrix.ortho(-scaleX, scaleX, -scaleY, scaleY, near, far);\r\n\r\n this.dirtyCache[10] = 1;\r\n this.dirtyCache[11] = 1;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Iterates and destroys all current Faces in this Mesh, then resets the\r\n * `faces` and `vertices` arrays.\r\n *\r\n * @method Phaser.GameObjects.Mesh#clear\r\n * @since 3.50.0\r\n *\r\n * @return {this} This Mesh Game Object.\r\n */\r\n clear: function ()\r\n {\r\n this.faces.forEach(function (face)\r\n {\r\n face.destroy();\r\n });\r\n\r\n this.faces = [];\r\n this.vertices = [];\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * This method will add the data from a triangulated Wavefront OBJ model file to this Mesh.\r\n *\r\n * The data should have been loaded via the OBJFile:\r\n *\r\n * ```javascript\r\n * this.load.obj(key, url);\r\n * ```\r\n *\r\n * Then use the same `key` as the first parameter to this method.\r\n *\r\n * Multiple Mesh Game Objects can use the same model data without impacting on each other.\r\n *\r\n * Make sure your 3D package has triangulated the model data prior to exporting it.\r\n *\r\n * You can add multiple models to a single Mesh, although they will act as one when\r\n * moved or rotated. You can scale the model data, should it be too small, or too large, to see.\r\n * You can also offset the vertices of the model via the `x`, `y` and `z` parameters.\r\n *\r\n * @method Phaser.GameObjects.Mesh#addVerticesFromObj\r\n * @since 3.50.0\r\n *\r\n * @param {string} key - The key of the model data in the OBJ Cache to add to this Mesh.\r\n * @param {number} [scale=1] - An amount to scale the model data by. Use this if the model has exported too small, or large, to see.\r\n * @param {number} [x=0] - Translate the model x position by this amount.\r\n * @param {number} [y=0] - Translate the model y position by this amount.\r\n * @param {number} [z=0] - Translate the model z position by this amount.\r\n * @param {number} [rotateX=0] - Rotate the model on the x axis by this amount, in radians.\r\n * @param {number} [rotateY=0] - Rotate the model on the y axis by this amount, in radians.\r\n * @param {number} [rotateZ=0] - Rotate the model on the z axis by this amount, in radians.\r\n * @param {boolean} [zIsUp=true] - Is the z axis up (true), or is y axis up (false)?\r\n *\r\n * @return {this} This Mesh Game Object.\r\n */\r\n addVerticesFromObj: function (key, scale, x, y, z, rotateX, rotateY, rotateZ, zIsUp)\r\n {\r\n var data = this.scene.sys.cache.obj.get(key);\r\n var parsedData;\r\n\r\n if (data)\r\n {\r\n parsedData = GenerateObjVerts(data, this, scale, x, y, z, rotateX, rotateY, rotateZ, zIsUp);\r\n }\r\n\r\n if (!parsedData || parsedData.verts.length === 0)\r\n {\r\n console.warn('Mesh.addVerticesFromObj data empty:', key);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Compare the depth of two Faces.\r\n *\r\n * @method Phaser.GameObjects.Mesh#sortByDepth\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Geom.Mesh.Face} faceA - The first Face.\r\n * @param {Phaser.Geom.Mesh.Face} faceB - The second Face.\r\n *\r\n * @return {number} The difference between the depths of each Face.\r\n */\r\n sortByDepth: function (faceA, faceB)\r\n {\r\n return faceA.depth - faceB.depth;\r\n },\r\n\r\n /**\r\n * Runs a depth sort across all Faces in this Mesh, comparing their averaged depth.\r\n *\r\n * This is called automatically if you use any of the `rotate` methods, but you can\r\n * also invoke it to sort the Faces should you manually position them.\r\n *\r\n * @method Phaser.GameObjects.Mesh#depthSort\r\n * @since 3.50.0\r\n *\r\n * @return {this} This Mesh Game Object.\r\n */\r\n depthSort: function ()\r\n {\r\n StableSort(this.faces, this.sortByDepth);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds a new Vertex into the vertices array of this Mesh.\r\n *\r\n * Just adding a vertex isn't enough to render it. You need to also\r\n * make it part of a Face, with 3 Vertex instances per Face.\r\n *\r\n * @method Phaser.GameObjects.Mesh#addVertex\r\n * @since 3.50.0\r\n *\r\n * @param {number} x - The x position of the vertex.\r\n * @param {number} y - The y position of the vertex.\r\n * @param {number} z - The z position of the vertex.\r\n * @param {number} u - The UV u coordinate of the vertex.\r\n * @param {number} v - The UV v coordinate of the vertex.\r\n * @param {number} [color=0xffffff] - The color value of the vertex.\r\n * @param {number} [alpha=1] - The alpha value of the vertex.\r\n *\r\n * @return {this} This Mesh Game Object.\r\n */\r\n addVertex: function (x, y, z, u, v, color, alpha)\r\n {\r\n var vert = new Vertex(x, y, z, u, v, color, alpha);\r\n\r\n this.vertices.push(vert);\r\n\r\n return vert;\r\n },\r\n\r\n /**\r\n * Adds a new Face into the faces array of this Mesh.\r\n *\r\n * A Face consists of references to 3 Vertex instances, which must be provided.\r\n *\r\n * @method Phaser.GameObjects.Mesh#addFace\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Geom.Mesh.Vertex} vertex1 - The first vertex of the Face.\r\n * @param {Phaser.Geom.Mesh.Vertex} vertex2 - The second vertex of the Face.\r\n * @param {Phaser.Geom.Mesh.Vertex} vertex3 - The third vertex of the Face.\r\n *\r\n * @return {this} This Mesh Game Object.\r\n */\r\n addFace: function (vertex1, vertex2, vertex3)\r\n {\r\n var face = new Face(vertex1, vertex2, vertex3);\r\n\r\n this.faces.push(face);\r\n\r\n this.dirtyCache[9] = -1;\r\n\r\n return face;\r\n },\r\n\r\n /**\r\n * Adds new vertices to this Mesh by parsing the given data.\r\n *\r\n * This method will take vertex data in one of two formats, based on the `containsZ` parameter.\r\n *\r\n * If your vertex data are `x`, `y` pairs, then `containsZ` should be `false` (this is the default, and will result in `z=0` for each vertex).\r\n *\r\n * If your vertex data is groups of `x`, `y` and `z` values, then the `containsZ` parameter must be true.\r\n *\r\n * The `uvs` parameter is a numeric array consisting of `u` and `v` pairs.\r\n *\r\n * The `normals` parameter is a numeric array consisting of `x`, `y` vertex normal values and, if `containsZ` is true, `z` values as well.\r\n *\r\n * The `indicies` parameter is an optional array that, if given, is an indexed list of vertices to be added.\r\n *\r\n * The `colors` parameter is an optional array, or single value, that if given sets the color of each vertex created.\r\n *\r\n * The `alphas` parameter is an optional array, or single value, that if given sets the alpha of each vertex created.\r\n *\r\n * When providing indexed data it is assumed that _all_ of the arrays are indexed, not just the vertices.\r\n *\r\n * The following example will create a 256 x 256 sized quad using an index array:\r\n *\r\n * ```javascript\r\n * let mesh = new Mesh(this); // Assuming `this` is a scene!\r\n * const vertices = [\r\n * -128, 128,\r\n * 128, 128,\r\n * -128, -128,\r\n * 128, -128\r\n * ];\r\n *\r\n * const uvs = [\r\n * 0, 1,\r\n * 1, 1,\r\n * 0, 0,\r\n * 1, 0\r\n * ];\r\n *\r\n * const indices = [ 0, 2, 1, 2, 3, 1 ];\r\n *\r\n * mesh.addVertices(vertices, uvs, indicies);\r\n * // Note: Otherwise the added points will be \"behind\" the camera! This value will project vertex `x` & `y` values 1:1 to pixel values.\r\n * mesh.hideCCW = false;\r\n * mesh.setOrtho(mesh.width, mesh.height);\r\n * ```\r\n *\r\n * If the data is not indexed, it's assumed that the arrays all contain sequential data.\r\n *\r\n * @method Phaser.GameObjects.Mesh#addVertices\r\n * @since 3.50.0\r\n *\r\n * @param {number[]} vertices - The vertices array. Either `xy` pairs, or `xyz` if the `containsZ` parameter is `true`.\r\n * @param {number[]} uvs - The UVs pairs array.\r\n * @param {number[]} [indicies] - Optional vertex indicies array. If you don't have one, pass `null` or an empty array.\r\n * @param {boolean} [containsZ=false] - Does the vertices data include a `z` component? If not, it will be assumed `z=0`, see methods `panZ` or `setOrtho`.\r\n * @param {number[]} [normals] - Optional vertex normals array. If you don't have one, pass `null` or an empty array.\r\n * @param {number|number[]} [colors=0xffffff] - An array of colors, one per vertex, or a single color value applied to all vertices.\r\n * @param {number|number[]} [alphas=1] - An array of alpha values, one per vertex, or a single alpha value applied to all vertices.\r\n *\r\n * @return {this} This Mesh Game Object.\r\n */\r\n addVertices: function (vertices, uvs, indicies, containsZ, normals, colors, alphas)\r\n {\r\n var result = GenerateVerts(vertices, uvs, indicies, containsZ, normals, colors, alphas);\r\n\r\n if (result)\r\n {\r\n this.faces = this.faces.concat(result.faces);\r\n this.vertices = this.vertices.concat(result.vertices);\r\n }\r\n else\r\n {\r\n console.warn('Mesh.addVertices data empty or invalid');\r\n }\r\n\r\n this.dirtyCache[9] = -1;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns the total number of Faces in this Mesh Game Object.\r\n *\r\n * @method Phaser.GameObjects.Mesh#getFaceCount\r\n * @since 3.50.0\r\n *\r\n * @return {number} The number of Faces in this Mesh Game Object.\r\n */\r\n getFaceCount: function ()\r\n {\r\n return this.faces.length;\r\n },\r\n\r\n /**\r\n * Returns the total number of Vertices in this Mesh Game Object.\r\n *\r\n * @method Phaser.GameObjects.Mesh#getVertexCount\r\n * @since 3.50.0\r\n *\r\n * @return {number} The number of Vertices in this Mesh Game Object.\r\n */\r\n getVertexCount: function ()\r\n {\r\n return this.vertices.length;\r\n },\r\n\r\n /**\r\n * Returns the Face at the given index in this Mesh Game Object.\r\n *\r\n * @method Phaser.GameObjects.Mesh#getFace\r\n * @since 3.50.0\r\n *\r\n * @param {number} index - The index of the Face to get.\r\n *\r\n * @return {Phaser.Geom.Mesh.Face} The Face at the given index, or `undefined` if index out of range.\r\n */\r\n getFace: function (index)\r\n {\r\n return this.faces[index];\r\n },\r\n\r\n /**\r\n * Tests to see if _any_ face in this Mesh intersects with the given coordinates.\r\n *\r\n * The given position is translated through the matrix of this Mesh and the given Camera,\r\n * before being compared against the vertices.\r\n *\r\n * @method Phaser.GameObjects.Mesh#hasFaceAt\r\n * @since 3.60.0\r\n *\r\n * @param {number} x - The x position to check against.\r\n * @param {number} y - The y position to check against.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The camera to pass the coordinates through. If not give, the default Scene Camera is used.\r\n *\r\n * @return {boolean} Returns `true` if _any_ face of this Mesh intersects with the given coordinate, otherwise `false`.\r\n */\r\n hasFaceAt: function (x, y, camera)\r\n {\r\n if (camera === undefined) { camera = this.scene.sys.cameras.main; }\r\n\r\n var calcMatrix = GetCalcMatrix(this, camera).calc;\r\n\r\n var faces = this.faces;\r\n\r\n for (var i = 0; i < faces.length; i++)\r\n {\r\n var face = faces[i];\r\n\r\n if (face.contains(x, y, calcMatrix))\r\n {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Return an array of Face objects from this Mesh that intersect with the given coordinates.\r\n *\r\n * The given position is translated through the matrix of this Mesh and the given Camera,\r\n * before being compared against the vertices.\r\n *\r\n * If more than one Face intersects, they will all be returned in the array, but the array will\r\n * be depth sorted first, so the first element will always be that closest to the camera.\r\n *\r\n * @method Phaser.GameObjects.Mesh#getFaceAt\r\n * @since 3.50.0\r\n *\r\n * @param {number} x - The x position to check against.\r\n * @param {number} y - The y position to check against.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The camera to pass the coordinates through. If not give, the default Scene Camera is used.\r\n *\r\n * @return {Phaser.Geom.Mesh.Face[]} An array of Face objects that intersect with the given point, ordered by depth.\r\n */\r\n getFaceAt: function (x, y, camera)\r\n {\r\n if (camera === undefined) { camera = this.scene.sys.cameras.main; }\r\n\r\n var calcMatrix = GetCalcMatrix(this, camera).calc;\r\n\r\n var faces = this.faces;\r\n var results = [];\r\n\r\n for (var i = 0; i < faces.length; i++)\r\n {\r\n var face = faces[i];\r\n\r\n if (face.contains(x, y, calcMatrix))\r\n {\r\n results.push(face);\r\n }\r\n }\r\n\r\n return StableSort(results, this.sortByDepth);\r\n },\r\n\r\n /**\r\n * This method enables rendering of the Mesh vertices to the given Graphics instance.\r\n *\r\n * If you enable this feature, you **must** call `Graphics.clear()` in your Scene `update`,\r\n * otherwise the Graphics instance you provide to debug will fill-up with draw calls,\r\n * eventually crashing the browser. This is not done automatically to allow you to debug\r\n * draw multiple Mesh objects to a single Graphics instance.\r\n *\r\n * The Mesh class has a built-in debug rendering callback `Mesh.renderDebug`, however\r\n * you can also provide your own callback to be used instead. Do this by setting the `callback` parameter.\r\n *\r\n * The callback is invoked _once per render_ and sent the following parameters:\r\n *\r\n * `callback(src, faces)`\r\n *\r\n * `src` is the Mesh instance being debugged.\r\n * `faces` is an array of the Faces that were rendered.\r\n *\r\n * You can get the final drawn vertex position from a Face object like this:\r\n *\r\n * ```javascript\r\n * let face = faces[i];\r\n *\r\n * let x0 = face.vertex1.tx;\r\n * let y0 = face.vertex1.ty;\r\n * let x1 = face.vertex2.tx;\r\n * let y1 = face.vertex2.ty;\r\n * let x2 = face.vertex3.tx;\r\n * let y2 = face.vertex3.ty;\r\n *\r\n * graphic.strokeTriangle(x0, y0, x1, y1, x2, y2);\r\n * ```\r\n *\r\n * If using your own callback you do not have to provide a Graphics instance to this method.\r\n *\r\n * To disable debug rendering, to either your own callback or the built-in one, call this method\r\n * with no arguments.\r\n *\r\n * @method Phaser.GameObjects.Mesh#setDebug\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.Graphics} [graphic] - The Graphic instance to render to if using the built-in callback.\r\n * @param {function} [callback] - The callback to invoke during debug render. Leave as undefined to use the built-in callback.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setDebug: function (graphic, callback)\r\n {\r\n this.debugGraphic = graphic;\r\n\r\n if (!graphic && !callback)\r\n {\r\n this.debugCallback = null;\r\n }\r\n else if (!callback)\r\n {\r\n this.debugCallback = this.renderDebug;\r\n }\r\n else\r\n {\r\n this.debugCallback = callback;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Checks if the transformation data in this mesh is dirty.\r\n *\r\n * This is used internally by the `preUpdate` step to determine if the vertices should\r\n * be recalculated or not.\r\n *\r\n * @method Phaser.GameObjects.Mesh#isDirty\r\n * @since 3.50.0\r\n *\r\n * @return {boolean} Returns `true` if the data of this mesh is dirty, otherwise `false`.\r\n */\r\n isDirty: function ()\r\n {\r\n var position = this.modelPosition;\r\n var rotation = this.modelRotation;\r\n var scale = this.modelScale;\r\n var dirtyCache = this.dirtyCache;\r\n\r\n var px = position.x;\r\n var py = position.y;\r\n var pz = position.z;\r\n\r\n var rx = rotation.x;\r\n var ry = rotation.y;\r\n var rz = rotation.z;\r\n\r\n var sx = scale.x;\r\n var sy = scale.y;\r\n var sz = scale.z;\r\n\r\n var faces = this.getFaceCount();\r\n\r\n var pxCached = dirtyCache[0];\r\n var pyCached = dirtyCache[1];\r\n var pzCached = dirtyCache[2];\r\n\r\n var rxCached = dirtyCache[3];\r\n var ryCached = dirtyCache[4];\r\n var rzCached = dirtyCache[5];\r\n\r\n var sxCached = dirtyCache[6];\r\n var syCached = dirtyCache[7];\r\n var szCached = dirtyCache[8];\r\n\r\n var fCached = dirtyCache[9];\r\n\r\n dirtyCache[0] = px;\r\n dirtyCache[1] = py;\r\n dirtyCache[2] = pz;\r\n\r\n dirtyCache[3] = rx;\r\n dirtyCache[4] = ry;\r\n dirtyCache[5] = rz;\r\n\r\n dirtyCache[6] = sx;\r\n dirtyCache[7] = sy;\r\n dirtyCache[8] = sz;\r\n\r\n dirtyCache[9] = faces;\r\n\r\n return (\r\n pxCached !== px || pyCached !== py || pzCached !== pz ||\r\n rxCached !== rx || ryCached !== ry || rzCached !== rz ||\r\n sxCached !== sx || syCached !== sy || szCached !== sz ||\r\n fCached !== faces\r\n );\r\n },\r\n\r\n /**\r\n * The Mesh update loop. The following takes place in this method:\r\n *\r\n * First, the `totalRendered` and `totalFrame` properties are set.\r\n *\r\n * If the view matrix of this Mesh isn't dirty, and the model position, rotate or scale properties are\r\n * all clean, then the method returns at this point.\r\n *\r\n * Otherwise, if the viewPosition is dirty (i.e. from calling a method like `panZ`), then it will\r\n * refresh the viewMatrix.\r\n *\r\n * After this, a new transformMatrix is built and it then iterates through all Faces in this\r\n * Mesh, calling `transformCoordinatesLocal` on all of them. Internally, this updates every\r\n * vertex, calculating its new transformed position, based on the new transform matrix.\r\n *\r\n * Finally, the faces are depth sorted.\r\n *\r\n * @method Phaser.GameObjects.Mesh#preUpdate\r\n * @protected\r\n * @since 3.50.0\r\n *\r\n * @param {number} time - The current timestamp.\r\n * @param {number} delta - The delta time, in ms, elapsed since the last frame.\r\n */\r\n preUpdate: function ()\r\n {\r\n this.totalRendered = this.totalFrame;\r\n this.totalFrame = 0;\r\n\r\n var dirty = this.dirtyCache;\r\n\r\n if (!this.ignoreDirtyCache && !dirty[10] && !this.isDirty())\r\n {\r\n // If neither the view or the mesh is dirty we can bail out and save lots of math\r\n return;\r\n }\r\n\r\n var width = this.width;\r\n var height = this.height;\r\n\r\n var viewMatrix = this.viewMatrix;\r\n var viewPosition = this.viewPosition;\r\n\r\n if (dirty[10])\r\n {\r\n viewMatrix.identity();\r\n viewMatrix.translate(viewPosition);\r\n viewMatrix.invert();\r\n\r\n dirty[10] = 0;\r\n }\r\n\r\n var transformMatrix = this.transformMatrix;\r\n\r\n transformMatrix.setWorldMatrix(\r\n this.modelRotation,\r\n this.modelPosition,\r\n this.modelScale,\r\n this.viewMatrix,\r\n this.projectionMatrix\r\n );\r\n\r\n var z = viewPosition.z;\r\n\r\n var faces = this.faces;\r\n\r\n for (var i = 0; i < faces.length; i++)\r\n {\r\n faces[i].transformCoordinatesLocal(transformMatrix, width, height, z);\r\n }\r\n\r\n this.depthSort();\r\n },\r\n\r\n /**\r\n * The built-in Mesh debug rendering method.\r\n *\r\n * See `Mesh.setDebug` for more details.\r\n *\r\n * @method Phaser.GameObjects.Mesh#renderDebug\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.Mesh} src - The Mesh object being rendered.\r\n * @param {Phaser.Geom.Mesh.Face[]} faces - An array of Faces.\r\n */\r\n renderDebug: function (src, faces)\r\n {\r\n var graphic = src.debugGraphic;\r\n\r\n for (var i = 0; i < faces.length; i++)\r\n {\r\n var face = faces[i];\r\n\r\n var x0 = face.vertex1.tx;\r\n var y0 = face.vertex1.ty;\r\n var x1 = face.vertex2.tx;\r\n var y1 = face.vertex2.ty;\r\n var x2 = face.vertex3.tx;\r\n var y2 = face.vertex3.ty;\r\n\r\n graphic.strokeTriangle(x0, y0, x1, y1, x2, y2);\r\n }\r\n },\r\n\r\n /**\r\n * Handles the pre-destroy step for the Mesh, which removes the vertices and debug callbacks.\r\n *\r\n * @method Phaser.GameObjects.Mesh#preDestroy\r\n * @private\r\n * @since 3.50.0\r\n */\r\n preDestroy: function ()\r\n {\r\n this.clear();\r\n\r\n this.debugCallback = null;\r\n this.debugGraphic = null;\r\n },\r\n\r\n /**\r\n * Clears all tint values associated with this Game Object.\r\n *\r\n * Immediately sets the color values back to 0xffffff on all vertices,\r\n * which results in no visible change to the texture.\r\n *\r\n * @method Phaser.GameObjects.Mesh#clearTint\r\n * @webglOnly\r\n * @since 3.60.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n clearTint: function ()\r\n {\r\n return this.setTint();\r\n },\r\n\r\n /**\r\n * Pass this Mesh Game Object to the Input Manager to enable it for Input.\r\n *\r\n * Unlike other Game Objects, the Mesh Game Object uses its own special hit area callback, which you cannot override.\r\n *\r\n * @example\r\n * mesh.setInteractive();\r\n * \r\n * @example\r\n * mesh.setInteractive({ useHandCursor: true });\r\n *\r\n * @method Phaser.GameObjects.Mesh#setInteractive\r\n * @since 3.60.0\r\n * \r\n * @param {(Phaser.Types.Input.InputConfiguration)} [config] - An input configuration object but it will ignore hitArea, hitAreaCallback and pixelPerfect with associated alphaTolerance properties.\r\n *\r\n * @return {this} This GameObject.\r\n */\r\n setInteractive: function (config)\r\n {\r\n if (config === undefined) { config = {}; }\r\n\r\n var hitAreaCallback = function (area, x, y)\r\n {\r\n var faces = this.faces;\r\n\r\n for (var i = 0; i < faces.length; i++)\r\n {\r\n var face = faces[i];\r\n\r\n // Don't pass a calcMatrix, as the x/y are already transformed\r\n if (face.contains(x, y))\r\n {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n }.bind(this);\r\n\r\n this.scene.sys.input.enable(this, config, hitAreaCallback);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets an additive tint on all vertices of this Mesh Game Object.\r\n *\r\n * The tint works by taking the pixel color values from the Game Objects texture, and then\r\n * multiplying it by the color value of the tint.\r\n *\r\n * To modify the tint color once set, either call this method again with new values or use the\r\n * `tint` property to set all colors at once.\r\n *\r\n * To remove a tint call `clearTint`.\r\n *\r\n * @method Phaser.GameObjects.Mesh#setTint\r\n * @webglOnly\r\n * @since 3.60.0\r\n *\r\n * @param {number} [tint=0xffffff] - The tint being applied to all vertices of this Mesh Game Object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setTint: function (tint)\r\n {\r\n if (tint === undefined) { tint = 0xffffff; }\r\n\r\n var vertices = this.vertices;\r\n\r\n for (var i = 0; i < vertices.length; i++)\r\n {\r\n vertices[i].color = tint;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Scrolls the UV texture coordinates of all faces in this Mesh by\r\n * adding the given x/y amounts to them.\r\n *\r\n * If you only wish to scroll one coordinate, pass a value of zero\r\n * to the other.\r\n *\r\n * Use small values for scrolling. UVs are set from the range 0\r\n * to 1, so you should increment (or decrement) them by suitably\r\n * small values, such as 0.01.\r\n *\r\n * Due to a limitation in WebGL1 you can only UV scroll textures\r\n * that are a power-of-two in size. Scrolling NPOT textures will\r\n * work but will result in clamping the pixels to the edges.\r\n *\r\n * Note that if this Mesh is using a _frame_ from a texture atlas\r\n * then you will be unable to UV scroll its texture.\r\n *\r\n * @method Phaser.GameObjects.Mesh#uvScroll\r\n * @webglOnly\r\n * @since 3.60.0\r\n *\r\n * @param {number} x - The amount to horizontally shift the UV coordinates by.\r\n * @param {number} y - The amount to vertically shift the UV coordinates by.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n uvScroll: function (x, y)\r\n {\r\n var faces = this.faces;\r\n\r\n for (var i = 0; i < faces.length; i++)\r\n {\r\n faces[i].scrollUV(x, y);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Scales the UV texture coordinates of all faces in this Mesh by\r\n * the exact given amounts.\r\n *\r\n * If you only wish to scale one coordinate, pass a value of one\r\n * to the other.\r\n *\r\n * Due to a limitation in WebGL1 you can only UV scale textures\r\n * that are a power-of-two in size. Scaling NPOT textures will\r\n * work but will result in clamping the pixels to the edges if\r\n * you scale beyond a value of 1. Scaling below 1 will work\r\n * regardless of texture size.\r\n *\r\n * Note that if this Mesh is using a _frame_ from a texture atlas\r\n * then you will be unable to UV scale its texture.\r\n *\r\n * @method Phaser.GameObjects.Mesh#uvScale\r\n * @webglOnly\r\n * @since 3.60.0\r\n *\r\n * @param {number} x - The amount to horizontally scale the UV coordinates by.\r\n * @param {number} y - The amount to vertically scale the UV coordinates by.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n uvScale: function (x, y)\r\n {\r\n var faces = this.faces;\r\n\r\n for (var i = 0; i < faces.length; i++)\r\n {\r\n faces[i].scaleUV(x, y);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The tint value being applied to the whole of the Game Object.\r\n * This property is a setter-only.\r\n *\r\n * @method Phaser.GameObjects.Mesh#tint\r\n * @type {number}\r\n * @webglOnly\r\n * @since 3.60.0\r\n */\r\n tint: {\r\n\r\n set: function (value)\r\n {\r\n this.setTint(value);\r\n }\r\n },\r\n\r\n /**\r\n * The x rotation of the Model in 3D space, as specified in degrees.\r\n *\r\n * If you need the value in radians use the `modelRotation.x` property directly.\r\n *\r\n * @method Phaser.GameObjects.Mesh#rotateX\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n rotateX: {\r\n\r\n get: function ()\r\n {\r\n return RadToDeg(this.modelRotation.x);\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.modelRotation.x = DegToRad(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The y rotation of the Model in 3D space, as specified in degrees.\r\n *\r\n * If you need the value in radians use the `modelRotation.y` property directly.\r\n *\r\n * @method Phaser.GameObjects.Mesh#rotateY\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n rotateY: {\r\n\r\n get: function ()\r\n {\r\n return RadToDeg(this.modelRotation.y);\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.modelRotation.y = DegToRad(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The z rotation of the Model in 3D space, as specified in degrees.\r\n *\r\n * If you need the value in radians use the `modelRotation.z` property directly.\r\n *\r\n * @method Phaser.GameObjects.Mesh#rotateZ\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n rotateZ: {\r\n\r\n get: function ()\r\n {\r\n return RadToDeg(this.modelRotation.z);\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.modelRotation.z = DegToRad(value);\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Mesh;\r\n\n\n/***/ }),\n\n/***/ 36488:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * This is a stub function for Mesh.Render. There is no Canvas renderer for Mesh objects.\r\n *\r\n * @method Phaser.GameObjects.Mesh#renderCanvas\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.Mesh} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n */\r\nvar MeshCanvasRenderer = function ()\r\n{\r\n};\r\n\r\nmodule.exports = MeshCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 20527:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BuildGameObject = __webpack_require__(25305);\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\nvar GetValue = __webpack_require__(35154);\r\nvar Mesh = __webpack_require__(4703);\r\n\r\n/**\r\n * Creates a new Mesh Game Object and returns it.\r\n *\r\n * Note: This method will only be available if the Mesh Game Object and WebGL support have been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#mesh\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Mesh.MeshConfig} config - The configuration object this Game Object will use to create itself.\r\n * @param {boolean} [addToScene] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.\r\n *\r\n * @return {Phaser.GameObjects.Mesh} The Game Object that was created.\r\n */\r\nGameObjectCreator.register('mesh', function (config, addToScene)\r\n{\r\n if (config === undefined) { config = {}; }\r\n\r\n var key = GetAdvancedValue(config, 'key', null);\r\n var frame = GetAdvancedValue(config, 'frame', null);\r\n var vertices = GetValue(config, 'vertices', []);\r\n var uvs = GetValue(config, 'uvs', []);\r\n var indicies = GetValue(config, 'indicies', []);\r\n var containsZ = GetValue(config, 'containsZ', false);\r\n var normals = GetValue(config, 'normals', []);\r\n var colors = GetValue(config, 'colors', 0xffffff);\r\n var alphas = GetValue(config, 'alphas', 1);\r\n\r\n var mesh = new Mesh(this.scene, 0, 0, key, frame, vertices, uvs, indicies, containsZ, normals, colors, alphas);\r\n\r\n if (addToScene !== undefined)\r\n {\r\n config.add = addToScene;\r\n }\r\n\r\n BuildGameObject(this.scene, mesh, config);\r\n\r\n return mesh;\r\n});\r\n\n\n/***/ }),\n\n/***/ 9225:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Mesh = __webpack_require__(4703);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * Creates a new Mesh Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Mesh Game Object and WebGL support have been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#mesh\r\n * @webglOnly\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y] - The vertical position of this Game Object in the world.\r\n * @param {string|Phaser.Textures.Texture} [texture] - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {string|number} [frame] - An optional frame from the Texture this Game Object is rendering with.\r\n * @param {number[]} [vertices] - The vertices array. Either `xy` pairs, or `xyz` if the `containsZ` parameter is `true`.\r\n * @param {number[]} [uvs] - The UVs pairs array.\r\n * @param {number[]} [indicies] - Optional vertex indicies array. If you don't have one, pass `null` or an empty array.\r\n * @param {boolean} [containsZ=false] - Does the vertices data include a `z` component?\r\n * @param {number[]} [normals] - Optional vertex normals array. If you don't have one, pass `null` or an empty array.\r\n * @param {number|number[]} [colors=0xffffff] - An array of colors, one per vertex, or a single color value applied to all vertices.\r\n * @param {number|number[]} [alphas=1] - An array of alpha values, one per vertex, or a single alpha value applied to all vertices.\r\n *\r\n * @return {Phaser.GameObjects.Mesh} The Game Object that was created.\r\n */\r\nif (true)\r\n{\r\n GameObjectFactory.register('mesh', function (x, y, texture, frame, vertices, uvs, indicies, containsZ, normals, colors, alphas)\r\n {\r\n return this.displayList.add(new Mesh(this.scene, x, y, texture, frame, vertices, uvs, indicies, containsZ, normals, colors, alphas));\r\n });\r\n}\r\n\n\n/***/ }),\n\n/***/ 29807:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(48833);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(36488);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 48833:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetCalcMatrix = __webpack_require__(91296);\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Mesh#renderWebGL\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Mesh} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar MeshWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n var faces = src.faces;\r\n var totalFaces = faces.length;\r\n\r\n if (totalFaces === 0)\r\n {\r\n return;\r\n }\r\n\r\n camera.addToRenderList(src);\r\n\r\n var pipeline = renderer.pipelines.set(src.pipeline, src);\r\n\r\n var calcMatrix = GetCalcMatrix(src, camera, parentMatrix).calc;\r\n\r\n // This causes a flush if the Mesh has a Post Pipeline\r\n renderer.pipelines.preBatch(src);\r\n\r\n var textureUnit = pipeline.setGameObject(src);\r\n\r\n var F32 = pipeline.vertexViewF32;\r\n var U32 = pipeline.vertexViewU32;\r\n\r\n var vertexOffset = (pipeline.vertexCount * pipeline.currentShader.vertexComponentCount) - 1;\r\n\r\n var tintEffect = src.tintFill;\r\n\r\n var debugFaces = [];\r\n var debugCallback = src.debugCallback;\r\n\r\n var a = calcMatrix.a;\r\n var b = calcMatrix.b;\r\n var c = calcMatrix.c;\r\n var d = calcMatrix.d;\r\n var e = calcMatrix.e;\r\n var f = calcMatrix.f;\r\n\r\n var z = src.viewPosition.z;\r\n\r\n var hideCCW = src.hideCCW;\r\n var roundPixels = camera.roundPixels;\r\n var alpha = camera.alpha * src.alpha;\r\n\r\n var totalFacesRendered = 0;\r\n\r\n for (var i = 0; i < totalFaces; i++)\r\n {\r\n var face = faces[i];\r\n\r\n // If face has alpha <= 0, or hideCCW + clockwise, or isn't in camera view, then don't draw it\r\n if (!face.isInView(camera, hideCCW, z, alpha, a, b, c, d, e, f, roundPixels))\r\n {\r\n continue;\r\n }\r\n\r\n if (pipeline.shouldFlush(3))\r\n {\r\n pipeline.flush();\r\n\r\n textureUnit = pipeline.setGameObject(src);\r\n\r\n vertexOffset = (pipeline.vertexCount * pipeline.currentShader.vertexComponentCount) - 1;\r\n }\r\n\r\n vertexOffset = face.load(F32, U32, vertexOffset, textureUnit, tintEffect);\r\n\r\n totalFacesRendered++;\r\n\r\n pipeline.vertexCount += 3;\r\n\r\n pipeline.currentBatch.count = (pipeline.vertexCount - pipeline.currentBatch.start);\r\n\r\n if (debugCallback)\r\n {\r\n debugFaces.push(face);\r\n }\r\n }\r\n\r\n src.totalFrame += totalFacesRendered;\r\n\r\n if (debugCallback)\r\n {\r\n debugCallback.call(src, src, debugFaces);\r\n }\r\n\r\n renderer.pipelines.postBatch(src);\r\n};\r\n\r\nmodule.exports = MeshWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 28103:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar GameObject = __webpack_require__(95643);\r\nvar NineSliceRender = __webpack_require__(78023);\r\nvar Vertex = __webpack_require__(39318);\r\n\r\n/**\r\n * @classdesc\r\n * A Nine Slice Game Object allows you to display a texture-based object that\r\n * can be stretched both horizontally and vertically, but that retains\r\n * fixed-sized corners. The dimensions of the corners are set via the\r\n * parameters to this class.\r\n *\r\n * This is extremely useful for UI and button like elements, where you need\r\n * them to expand to accommodate the content without distorting the texture.\r\n *\r\n * The texture you provide for this Game Object should be based on the\r\n * following layout structure:\r\n *\r\n * ```\r\n * A B\r\n * +---+----------------------+---+\r\n * C | 1 | 2 | 3 |\r\n * +---+----------------------+---+\r\n * | | | |\r\n * | 4 | 5 | 6 |\r\n * | | | |\r\n * +---+----------------------+---+\r\n * D | 7 | 8 | 9 |\r\n * +---+----------------------+---+\r\n * ```\r\n *\r\n * When changing this objects width and / or height:\r\n *\r\n * areas 1, 3, 7 and 9 (the corners) will remain unscaled\r\n * areas 2 and 8 will be stretched horizontally only\r\n * areas 4 and 6 will be stretched vertically only\r\n * area 5 will be stretched both horizontally and vertically\r\n *\r\n * You can also create a 3 slice Game Object:\r\n *\r\n * This works in a similar way, except you can only stretch it horizontally.\r\n * Therefore, it requires less configuration:\r\n *\r\n * ```\r\n * A B\r\n * +---+----------------------+---+\r\n * | | | |\r\n * C | 1 | 2 | 3 |\r\n * | | | |\r\n * +---+----------------------+---+\r\n * ```\r\n *\r\n * When changing this objects width (you cannot change its height)\r\n *\r\n * areas 1 and 3 will remain unscaled\r\n * area 2 will be stretched horizontally\r\n *\r\n * The above configuration concept is adapted from the Pixi NineSlicePlane.\r\n *\r\n * To specify a 3 slice object instead of a 9 slice you should only\r\n * provide the `leftWidth` and `rightWidth` parameters. To create a 9 slice\r\n * you must supply all parameters.\r\n *\r\n * The _minimum_ width this Game Object can be is the total of\r\n * `leftWidth` + `rightWidth`. The _minimum_ height this Game Object\r\n * can be is the total of `topHeight` + `bottomHeight`.\r\n * If you need to display this object at a smaller size, you can scale it.\r\n *\r\n * In terms of performance, using a 3 slice Game Object is the equivalent of\r\n * having 3 Sprites in a row. Using a 9 slice Game Object is the equivalent\r\n * of having 9 Sprites in a row. The vertices of this object are all batched\r\n * together and can co-exist with other Sprites and graphics on the display\r\n * list, without incurring any additional overhead.\r\n *\r\n * As of Phaser 3.60 this Game Object is WebGL only.\r\n *\r\n * As of Phaser 3.70 this Game Object can now populate its values automatically\r\n * if they have been set within Texture Packer 7.1.0 or above and exported with\r\n * the atlas json. If this is the case, you can just call this method without\r\n * specifying anything more than the texture key and frame and it will pull the\r\n * area data from the atlas.\r\n *\r\n * @class NineSlice\r\n * @extends Phaser.GameObjects.GameObject\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @extends Phaser.GameObjects.Components.AlphaSingle\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.GetBounds\r\n * @extends Phaser.GameObjects.Components.Mask\r\n * @extends Phaser.GameObjects.Components.Origin\r\n * @extends Phaser.GameObjects.Components.Pipeline\r\n * @extends Phaser.GameObjects.Components.PostPipeline\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n * @extends Phaser.GameObjects.Components.Texture\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} x - The horizontal position of the center of this Game Object in the world.\r\n * @param {number} y - The vertical position of the center of this Game Object in the world.\r\n * @param {(string|Phaser.Textures.Texture)} texture - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - An optional frame from the Texture this Game Object is rendering with.\r\n * @param {number} [width=256] - The width of the Nine Slice Game Object. You can adjust the width post-creation.\r\n * @param {number} [height=256] - The height of the Nine Slice Game Object. If this is a 3 slice object the height will be fixed to the height of the texture and cannot be changed.\r\n * @param {number} [leftWidth=10] - The size of the left vertical column (A).\r\n * @param {number} [rightWidth=10] - The size of the right vertical column (B).\r\n * @param {number} [topHeight=0] - The size of the top horizontal row (C). Set to zero or undefined to create a 3 slice object.\r\n * @param {number} [bottomHeight=0] - The size of the bottom horizontal row (D). Set to zero or undefined to create a 3 slice object.\r\n */\r\nvar NineSlice = new Class({\r\n\r\n Extends: GameObject,\r\n\r\n Mixins: [\r\n Components.AlphaSingle,\r\n Components.BlendMode,\r\n Components.Depth,\r\n Components.GetBounds,\r\n Components.Mask,\r\n Components.Origin,\r\n Components.Pipeline,\r\n Components.PostPipeline,\r\n Components.ScrollFactor,\r\n Components.Texture,\r\n Components.Transform,\r\n Components.Visible,\r\n NineSliceRender\r\n ],\r\n\r\n initialize:\r\n\r\n function NineSlice (scene, x, y, texture, frame, width, height, leftWidth, rightWidth, topHeight, bottomHeight)\r\n {\r\n // if (width === undefined) { width = 256; }\r\n // if (height === undefined) { height = 256; }\r\n\r\n // if (leftWidth === undefined) { leftWidth = 10; }\r\n // if (rightWidth === undefined) { rightWidth = 10; }\r\n // if (topHeight === undefined) { topHeight = 0; }\r\n // if (bottomHeight === undefined) { bottomHeight = 0; }\r\n\r\n GameObject.call(this, scene, 'NineSlice');\r\n\r\n /**\r\n * Internal width value. Do not modify this property directly.\r\n *\r\n * @name Phaser.GameObjects.NineSlice#_width\r\n * @private\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this._width;\r\n\r\n /**\r\n * Internal height value. Do not modify this property directly.\r\n *\r\n * @name Phaser.GameObjects.NineSlice#_height\r\n * @private\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this._height;\r\n\r\n /**\r\n * Internal originX value. Do not modify this property directly.\r\n *\r\n * @name Phaser.GameObjects.NineSlice#_originX\r\n * @private\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this._originX = 0.5;\r\n\r\n /**\r\n * Internal originY value. Do not modify this property directly.\r\n *\r\n * @name Phaser.GameObjects.NineSlice#_originY\r\n * @private\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this._originY = 0.5;\r\n\r\n /**\r\n * Internal component value. Do not modify this property directly.\r\n *\r\n * @name Phaser.GameObjects.NineSlice#_sizeComponent\r\n * @private\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this._sizeComponent = true;\r\n\r\n /**\r\n * An array of Vertex objects that correspond to the quads that make-up\r\n * this Nine Slice Game Object. They are stored in the following order:\r\n *\r\n * Top Left - Indexes 0 - 5\r\n * Top Center - Indexes 6 - 11\r\n * Top Right - Indexes 12 - 17\r\n * Center Left - Indexes 18 - 23\r\n * Center - Indexes 24 - 29\r\n * Center Right - Indexes 30 - 35\r\n * Bottom Left - Indexes 36 - 41\r\n * Bottom Center - Indexes 42 - 47\r\n * Bottom Right - Indexes 48 - 53\r\n *\r\n * Each quad is represented by 6 Vertex instances.\r\n *\r\n * This array will contain 18 elements for a 3 slice object\r\n * and 54 for a nine slice object.\r\n *\r\n * You should never modify this array once it has been populated.\r\n *\r\n * @name Phaser.GameObjects.NineSlice#vertices\r\n * @type {Phaser.Geom.Mesh.Vertex[]}\r\n * @since 3.60.0\r\n */\r\n this.vertices = [];\r\n\r\n /**\r\n * The size of the left vertical bar (A).\r\n *\r\n * @name Phaser.GameObjects.NineSlice#leftWidth\r\n * @type {number}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.leftWidth;\r\n\r\n /**\r\n * The size of the right vertical bar (B).\r\n *\r\n * @name Phaser.GameObjects.NineSlice#rightWidth\r\n * @type {number}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.rightWidth;\r\n\r\n /**\r\n * The size of the top horizontal bar (C).\r\n *\r\n * If this is a 3 slice object this property will be set to the\r\n * height of the texture being used.\r\n *\r\n * @name Phaser.GameObjects.NineSlice#topHeight\r\n * @type {number}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.topHeight;\r\n\r\n /**\r\n * The size of the bottom horizontal bar (D).\r\n *\r\n * If this is a 3 slice object this property will be set to zero.\r\n *\r\n * @name Phaser.GameObjects.NineSlice#bottomHeight\r\n * @type {number}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.bottomHeight;\r\n\r\n /**\r\n * The tint value being applied to the top-left vertice of the Game Object.\r\n * This value is interpolated from the corner to the center of the Game Object.\r\n * The value should be set as a hex number, i.e. 0xff0000 for red, or 0xff00ff for purple.\r\n *\r\n * @name Phaser.GameObjects.NineSlice#tint\r\n * @type {number}\r\n * @default 0xffffff\r\n * @since 3.60.0\r\n */\r\n this.tint = 0xffffff;\r\n\r\n /**\r\n * The tint fill mode.\r\n *\r\n * `false` = An additive tint (the default), where vertices colors are blended with the texture.\r\n * `true` = A fill tint, where the vertices colors replace the texture, but respects texture alpha.\r\n *\r\n * @name Phaser.GameObjects.NineSlice#tintFill\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.60.0\r\n */\r\n this.tintFill = false;\r\n\r\n var textureFrame = scene.textures.getFrame(texture, frame);\r\n\r\n /**\r\n * This property is `true` if this Nine Slice Game Object was configured\r\n * with just `leftWidth` and `rightWidth` values, making it a 3-slice\r\n * instead of a 9-slice object.\r\n *\r\n * @name Phaser.GameObjects.NineSlice#is3Slice\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.is3Slice = (!topHeight && !bottomHeight);\r\n\r\n if (textureFrame && textureFrame.scale9)\r\n {\r\n // If we're using the scale9 data from the frame, override the values from above\r\n this.is3Slice = textureFrame.is3Slice;\r\n }\r\n\r\n var size = this.is3Slice ? 18 : 54;\r\n\r\n for (var i = 0; i < size; i++)\r\n {\r\n this.vertices.push(new Vertex());\r\n }\r\n\r\n this.setPosition(x, y);\r\n\r\n this.setTexture(texture, frame);\r\n\r\n this.setSlices(width, height, leftWidth, rightWidth, topHeight, bottomHeight, false);\r\n\r\n this.updateDisplayOrigin();\r\n\r\n this.initPipeline();\r\n this.initPostPipeline();\r\n },\r\n\r\n /**\r\n * Resets the width, height and slices for this NineSlice Game Object.\r\n *\r\n * This allows you to modify the texture being used by this object and then reset the slice configuration,\r\n * to avoid having to destroy this Game Object in order to use it for a different game element.\r\n *\r\n * Please note that you cannot change a 9-slice to a 3-slice or vice versa.\r\n *\r\n * @method Phaser.GameObjects.NineSlice#setSlices\r\n * @since 3.60.0\r\n *\r\n * @param {number} [width=256] - The width of the Nine Slice Game Object. You can adjust the width post-creation.\r\n * @param {number} [height=256] - The height of the Nine Slice Game Object. If this is a 3 slice object the height will be fixed to the height of the texture and cannot be changed.\r\n * @param {number} [leftWidth=10] - The size of the left vertical column (A).\r\n * @param {number} [rightWidth=10] - The size of the right vertical column (B).\r\n * @param {number} [topHeight=0] - The size of the top horizontal row (C). Set to zero or undefined to create a 3 slice object.\r\n * @param {number} [bottomHeight=0] - The size of the bottom horizontal row (D). Set to zero or undefined to create a 3 slice object.\r\n * @param {boolean} [skipScale9=false] -If this Nine Slice was created from Texture Packer scale9 atlas data, set this property to use the given column sizes instead of those specified in the JSON.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setSlices: function (width, height, leftWidth, rightWidth, topHeight, bottomHeight, skipScale9)\r\n {\r\n if (leftWidth === undefined) { leftWidth = 10; }\r\n if (rightWidth === undefined) { rightWidth = 10; }\r\n if (topHeight === undefined) { topHeight = 0; }\r\n if (bottomHeight === undefined) { bottomHeight = 0; }\r\n\r\n if (skipScale9 === undefined) { skipScale9 = false; }\r\n\r\n var frame = this.frame;\r\n\r\n var sliceChange = false;\r\n\r\n if (this.is3Slice && skipScale9 && topHeight !== 0 && bottomHeight !== 0)\r\n {\r\n sliceChange = true;\r\n }\r\n\r\n if (sliceChange)\r\n {\r\n console.warn('Cannot change 9 slice to 3 slice');\r\n }\r\n else\r\n {\r\n if (frame && frame.scale9 && !skipScale9)\r\n {\r\n var data = frame.data.scale9Borders;\r\n\r\n var x = data.x;\r\n var y = data.y;\r\n\r\n leftWidth = x;\r\n rightWidth = frame.width - data.w - x;\r\n topHeight = y;\r\n bottomHeight = frame.height - data.h - y;\r\n\r\n if (width === undefined)\r\n {\r\n width = frame.width;\r\n }\r\n\r\n if (height === undefined)\r\n {\r\n height = frame.height;\r\n }\r\n }\r\n else\r\n {\r\n if (width === undefined) { width = 256; }\r\n if (height === undefined) { height = 256; }\r\n }\r\n\r\n this._width = width;\r\n this._height = height;\r\n\r\n this.leftWidth = leftWidth;\r\n this.rightWidth = rightWidth;\r\n this.topHeight = topHeight;\r\n this.bottomHeight = bottomHeight;\r\n\r\n if (this.is3Slice)\r\n {\r\n height = frame.height;\r\n\r\n this._height = height;\r\n this.topHeight = height;\r\n this.bottomHeight = 0;\r\n }\r\n\r\n this.updateVertices();\r\n this.updateUVs();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Updates all of the vertice UV coordinates. This is called automatically\r\n * when the NineSlice Game Object is created, or if the texture frame changes.\r\n *\r\n * Unlike with the `updateVertice` method, you do not need to call this\r\n * method if the Nine Slice changes size. Only if it changes texture frame.\r\n *\r\n * @method Phaser.GameObjects.NineSlice#updateUVs\r\n * @since 3.60.0\r\n */\r\n updateUVs: function ()\r\n {\r\n var left = this.leftWidth;\r\n var right = this.rightWidth;\r\n var top = this.topHeight;\r\n var bot = this.bottomHeight;\r\n\r\n var width = this.frame.width;\r\n var height = this.frame.height;\r\n\r\n this.updateQuadUVs(0, 0, 0, left / width, top / height);\r\n this.updateQuadUVs(6, left / width, 0, 1 - (right / width), top / height);\r\n this.updateQuadUVs(12, 1 - (right / width), 0, 1, top / height);\r\n\r\n if (!this.is3Slice)\r\n {\r\n this.updateQuadUVs(18, 0, top / height, left / width, 1 - (bot / height));\r\n this.updateQuadUVs(24, left / width, top / height, 1 - right / width, 1 - (bot / height));\r\n this.updateQuadUVs(30, 1 - right / width, top / height, 1, 1 - (bot / height));\r\n this.updateQuadUVs(36, 0, 1 - bot / height, left / width, 1);\r\n this.updateQuadUVs(42, left / width, 1 - bot / height, 1 - right / width, 1);\r\n this.updateQuadUVs(48, 1 - right / width, 1 - bot / height, 1, 1);\r\n }\r\n },\r\n\r\n /**\r\n * Recalculates all of the vertices in this Nine Slice Game Object\r\n * based on the `leftWidth`, `rightWidth`, `topHeight` and `bottomHeight`\r\n * properties, combined with the Game Object size.\r\n *\r\n * This method is called automatically when this object is created\r\n * or if it's origin is changed.\r\n *\r\n * You should not typically need to call this method directly, but it\r\n * is left public should you find a need to modify one of those properties\r\n * after creation.\r\n *\r\n * @method Phaser.GameObjects.NineSlice#updateVertices\r\n * @since 3.60.0\r\n */\r\n updateVertices: function ()\r\n {\r\n var left = this.leftWidth;\r\n var right = this.rightWidth;\r\n var top = this.topHeight;\r\n var bot = this.bottomHeight;\r\n\r\n var width = this.width;\r\n var height = this.height;\r\n\r\n this.updateQuad(0, -0.5, 0.5, -0.5 + (left / width), 0.5 - (top / height));\r\n this.updateQuad(6, -0.5 + (left / width), 0.5, 0.5 - (right / width), 0.5 - (top / height));\r\n this.updateQuad(12, 0.5 - (right / width), 0.5, 0.5, 0.5 - (top / height));\r\n\r\n if (!this.is3Slice)\r\n {\r\n this.updateQuad(18, -0.5, 0.5 - (top / height), -0.5 + (left / width), -0.5 + (bot / height));\r\n this.updateQuad(24, -0.5 + (left / width), 0.5 - (top / height), 0.5 - (right / width), -0.5 + (bot / height));\r\n this.updateQuad(30, 0.5 - (right / width), 0.5 - (top / height), 0.5, -0.5 + (bot / height));\r\n this.updateQuad(36, -0.5, -0.5 + (bot / height), -0.5 + (left / width), -0.5);\r\n this.updateQuad(42, -0.5 + (left / width), -0.5 + (bot / height), 0.5 - (right / width), -0.5);\r\n this.updateQuad(48, 0.5 - (right / width), -0.5 + (bot / height), 0.5, -0.5);\r\n }\r\n },\r\n\r\n /**\r\n * Internally updates the position coordinates across all vertices of the\r\n * given quad offset.\r\n *\r\n * You should not typically need to call this method directly, but it\r\n * is left public should an extended class require it.\r\n *\r\n * @method Phaser.GameObjects.NineSlice#updateQuad\r\n * @since 3.60.0\r\n *\r\n * @param {number} offset - The offset in the vertices array of the quad to update.\r\n * @param {number} x1 - The top-left quad coordinate.\r\n * @param {number} y1 - The top-left quad coordinate.\r\n * @param {number} x2 - The bottom-right quad coordinate.\r\n * @param {number} y2 - The bottom-right quad coordinate.\r\n */\r\n updateQuad: function (offset, x1, y1, x2, y2)\r\n {\r\n var width = this.width;\r\n var height = this.height;\r\n var originX = this.originX;\r\n var originY = this.originY;\r\n\r\n var verts = this.vertices;\r\n\r\n verts[offset + 0].resize(x1, y1, width, height, originX, originY);\r\n verts[offset + 1].resize(x1, y2, width, height, originX, originY);\r\n verts[offset + 2].resize(x2, y1, width, height, originX, originY);\r\n verts[offset + 3].resize(x1, y2, width, height, originX, originY);\r\n verts[offset + 4].resize(x2, y2, width, height, originX, originY);\r\n verts[offset + 5].resize(x2, y1, width, height, originX, originY);\r\n },\r\n\r\n /**\r\n * Internally updates the UV coordinates across all vertices of the\r\n * given quad offset, based on the frame size.\r\n *\r\n * You should not typically need to call this method directly, but it\r\n * is left public should an extended class require it.\r\n *\r\n * @method Phaser.GameObjects.NineSlice#updateQuadUVs\r\n * @since 3.60.0\r\n *\r\n * @param {number} offset - The offset in the vertices array of the quad to update.\r\n * @param {number} u1 - The top-left UV coordinate.\r\n * @param {number} v1 - The top-left UV coordinate.\r\n * @param {number} u2 - The bottom-right UV coordinate.\r\n * @param {number} v2 - The bottom-right UV coordinate.\r\n */\r\n updateQuadUVs: function (offset, u1, v1, u2, v2)\r\n {\r\n var verts = this.vertices;\r\n\r\n // Adjust for frame offset\r\n // Incoming values will always be in the range 0-1\r\n var frame = this.frame;\r\n\r\n var fu1 = frame.u0;\r\n var fv1 = frame.v0;\r\n var fu2 = frame.u1;\r\n var fv2 = frame.v1;\r\n\r\n if (fu1 !== 0 || fu2 !== 1)\r\n {\r\n // adjust horizontal\r\n var udiff = fu2 - fu1;\r\n u1 = fu1 + u1 * udiff;\r\n u2 = fu1 + u2 * udiff;\r\n }\r\n\r\n if (fv1 !== 0 || fv2 !== 1)\r\n {\r\n // adjust vertical\r\n var vdiff = fv2 - fv1;\r\n v1 = fv1 + v1 * vdiff;\r\n v2 = fv1 + v2 * vdiff;\r\n }\r\n\r\n verts[offset + 0].setUVs(u1, v1);\r\n verts[offset + 1].setUVs(u1, v2);\r\n verts[offset + 2].setUVs(u2, v1);\r\n verts[offset + 3].setUVs(u1, v2);\r\n verts[offset + 4].setUVs(u2, v2);\r\n verts[offset + 5].setUVs(u2, v1);\r\n },\r\n\r\n /**\r\n * Clears all tint values associated with this Game Object.\r\n *\r\n * Immediately sets the color values back to 0xffffff and the tint type to 'additive',\r\n * which results in no visible change to the texture.\r\n *\r\n * @method Phaser.GameObjects.NineSlice#clearTint\r\n * @webglOnly\r\n * @since 3.60.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n clearTint: function ()\r\n {\r\n this.setTint(0xffffff);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets an additive tint on this Game Object.\r\n *\r\n * The tint works by taking the pixel color values from the Game Objects texture, and then\r\n * multiplying it by the color value of the tint.\r\n *\r\n * To modify the tint color once set, either call this method again with new values or use the\r\n * `tint` property.\r\n *\r\n * To remove a tint call `clearTint`, or call this method with no parameters.\r\n *\r\n * To swap this from being an additive tint to a fill based tint set the property `tintFill` to `true`.\r\n *\r\n * @method Phaser.GameObjects.NineSlice#setTint\r\n * @webglOnly\r\n * @since 3.60.0\r\n *\r\n * @param {number} [color=0xffffff] - The tint being applied to the entire Game Object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setTint: function (color)\r\n {\r\n if (color === undefined) { color = 0xffffff; }\r\n\r\n this.tint = color;\r\n\r\n this.tintFill = false;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a fill-based tint on this Game Object.\r\n *\r\n * Unlike an additive tint, a fill-tint literally replaces the pixel colors from the texture\r\n * with those in the tint. You can use this for effects such as making a player flash 'white'\r\n * if hit by something. The whole Game Object will be rendered in the given color.\r\n *\r\n * To modify the tint color once set, either call this method again with new values or use the\r\n * `tint` property.\r\n *\r\n * To remove a tint call `clearTint`, or call this method with no parameters.\r\n *\r\n * To swap this from being a fill-tint to an additive tint set the property `tintFill` to `false`.\r\n *\r\n * @method Phaser.GameObjects.NineSlice#setTintFill\r\n * @webglOnly\r\n * @since 3.60.0\r\n *\r\n * @param {number} [color=0xffffff] - The tint being applied to the entire Game Object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setTintFill: function (color)\r\n {\r\n this.setTint(color);\r\n\r\n this.tintFill = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Does this Game Object have a tint applied?\r\n *\r\n * It checks to see if the tint property is set to a value other than 0xffffff.\r\n * This indicates that a Game Object is tinted.\r\n *\r\n * @name Phaser.GameObjects.NineSlice#isTinted\r\n * @type {boolean}\r\n * @webglOnly\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n isTinted: {\r\n\r\n get: function ()\r\n {\r\n return (this.tint !== 0xffffff);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The displayed width of this Game Object.\r\n *\r\n * Setting this value will adjust the way in which this Nine Slice\r\n * object scales horizontally, if configured to do so.\r\n *\r\n * The _minimum_ width this Game Object can be is the total of\r\n * `leftWidth` + `rightWidth`. If you need to display this object\r\n * at a smaller size, you can also scale it.\r\n *\r\n * @name Phaser.GameObjects.NineSlice#width\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n width: {\r\n\r\n get: function ()\r\n {\r\n return this._width;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._width = Math.max(value, this.leftWidth + this.rightWidth);\r\n\r\n this.updateVertices();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The displayed height of this Game Object.\r\n *\r\n * Setting this value will adjust the way in which this Nine Slice\r\n * object scales vertically, if configured to do so.\r\n *\r\n * The _minimum_ height this Game Object can be is the total of\r\n * `topHeight` + `bottomHeight`. If you need to display this object\r\n * at a smaller size, you can also scale it.\r\n *\r\n * If this is a 3-slice object, you can only stretch it horizontally\r\n * and changing the height will be ignored.\r\n *\r\n * @name Phaser.GameObjects.NineSlice#height\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n height: {\r\n\r\n get: function ()\r\n {\r\n return this._height;\r\n },\r\n\r\n set: function (value)\r\n {\r\n if (!this.is3Slice)\r\n {\r\n this._height = Math.max(value, this.topHeight + this.bottomHeight);\r\n\r\n this.updateVertices();\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The displayed width of this Game Object.\r\n *\r\n * This value takes into account the scale factor.\r\n *\r\n * Setting this value will adjust the Game Object's scale property.\r\n *\r\n * @name Phaser.GameObjects.NineSlice#displayWidth\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n displayWidth: {\r\n\r\n get: function ()\r\n {\r\n return this.scaleX * this.width;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.scaleX = value / this.width;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The displayed height of this Game Object.\r\n *\r\n * This value takes into account the scale factor.\r\n *\r\n * Setting this value will adjust the Game Object's scale property.\r\n *\r\n * @name Phaser.GameObjects.NineSlice#displayHeight\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n displayHeight: {\r\n\r\n get: function ()\r\n {\r\n return this.scaleY * this.height;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.scaleY = value / this.height;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Sets the size of this Game Object.\r\n *\r\n * For a Nine Slice Game Object this means it will be stretched (or shrunk) horizontally\r\n * and vertically depending on the dimensions given to this method, in accordance with\r\n * how it has been configured for the various corner sizes.\r\n *\r\n * If this is a 3-slice object, you can only stretch it horizontally\r\n * and changing the height will be ignored.\r\n *\r\n * If you have enabled this Game Object for input, changing the size will also change the\r\n * size of the hit area.\r\n *\r\n * @method Phaser.GameObjects.NineSlice#setSize\r\n * @since 3.60.0\r\n *\r\n * @param {number} width - The width of this Game Object.\r\n * @param {number} height - The height of this Game Object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setSize: function (width, height)\r\n {\r\n this.width = width;\r\n this.height = height;\r\n\r\n this.updateDisplayOrigin();\r\n\r\n var input = this.input;\r\n\r\n if (input && !input.customHitArea)\r\n {\r\n input.hitArea.width = this.width;\r\n input.hitArea.height = this.height;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the display size of this Game Object.\r\n *\r\n * Calling this will adjust the scale.\r\n *\r\n * @method Phaser.GameObjects.NineSlice#setDisplaySize\r\n * @since 3.60.0\r\n *\r\n * @param {number} width - The width of this Game Object.\r\n * @param {number} height - The height of this Game Object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setDisplaySize: function (width, height)\r\n {\r\n this.displayWidth = width;\r\n this.displayHeight = height;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The horizontal origin of this Game Object.\r\n * The origin maps the relationship between the size and position of the Game Object.\r\n * The default value is 0.5, meaning all Game Objects are positioned based on their center.\r\n * Setting the value to 0 means the position now relates to the left of the Game Object.\r\n *\r\n * @name Phaser.GameObjects.NineSlice#originX\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n originX: {\r\n\r\n get: function ()\r\n {\r\n return this._originX;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._originX = value;\r\n this.updateVertices();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The vertical origin of this Game Object.\r\n * The origin maps the relationship between the size and position of the Game Object.\r\n * The default value is 0.5, meaning all Game Objects are positioned based on their center.\r\n * Setting the value to 0 means the position now relates to the top of the Game Object.\r\n *\r\n * @name Phaser.GameObjects.NineSlice#originY\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n originY: {\r\n\r\n get: function ()\r\n {\r\n return this._originY;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._originY = value;\r\n this.updateVertices();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Sets the origin of this Game Object.\r\n *\r\n * The values are given in the range 0 to 1.\r\n *\r\n * @method Phaser.GameObjects.NineSlice#setOrigin\r\n * @since 3.60.0\r\n *\r\n * @param {number} [x=0.5] - The horizontal origin value.\r\n * @param {number} [y=x] - The vertical origin value. If not defined it will be set to the value of `x`.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setOrigin: function (x, y)\r\n {\r\n if (x === undefined) { x = 0.5; }\r\n if (y === undefined) { y = x; }\r\n\r\n this._originX = x;\r\n this._originY = y;\r\n\r\n this.updateVertices();\r\n\r\n return this.updateDisplayOrigin();\r\n },\r\n\r\n /**\r\n * This method is included but does nothing for the Nine Slice Game Object,\r\n * because the size of the object isn't based on the texture frame.\r\n *\r\n * You should not call this method.\r\n *\r\n * @method Phaser.GameObjects.NineSlice#setSizeToFrame\r\n * @since 3.60.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setSizeToFrame: function ()\r\n {\r\n if (this.is3Slice)\r\n {\r\n var height = this.frame.height;\r\n\r\n this._height = height;\r\n this.topHeight = height;\r\n this.bottomHeight = 0;\r\n }\r\n\r\n this.updateUVs();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Handles the pre-destroy step for the Nine Slice, which removes the vertices.\r\n *\r\n * @method Phaser.GameObjects.NineSlice#preDestroy\r\n * @private\r\n * @since 3.60.0\r\n */\r\n preDestroy: function ()\r\n {\r\n this.vertices = [];\r\n }\r\n\r\n});\r\n\r\nmodule.exports = NineSlice;\r\n\n\n/***/ }),\n\n/***/ 28279:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BuildGameObject = __webpack_require__(25305);\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\nvar GetValue = __webpack_require__(35154);\r\nvar NineSlice = __webpack_require__(28103);\r\n\r\n/**\r\n * Creates a new Nine Slice Game Object and returns it.\r\n *\r\n * Note: This method will only be available if the Nine Slice Game Object and WebGL support have been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#nineslice\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.GameObjects.NineSlice.NineSliceConfig} config - The configuration object this Game Object will use to create itself.\r\n * @param {boolean} [addToScene] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.\r\n *\r\n * @return {Phaser.GameObjects.NineSlice} The Game Object that was created.\r\n */\r\nGameObjectCreator.register('nineslice', function (config, addToScene)\r\n{\r\n if (config === undefined) { config = {}; }\r\n\r\n var key = GetAdvancedValue(config, 'key', null);\r\n var frame = GetAdvancedValue(config, 'frame', null);\r\n var width = GetValue(config, 'width', 256);\r\n var height = GetValue(config, 'height', 256);\r\n var leftWidth = GetValue(config, 'leftWidth', 10);\r\n var rightWidth = GetValue(config, 'rightWidth', 10);\r\n var topHeight = GetValue(config, 'topHeight', 0);\r\n var bottomHeight = GetValue(config, 'bottomHeight', 0);\r\n\r\n var nineslice = new NineSlice(this.scene, 0, 0, key, frame, width, height, leftWidth, rightWidth, topHeight, bottomHeight);\r\n\r\n if (addToScene !== undefined)\r\n {\r\n config.add = addToScene;\r\n }\r\n\r\n BuildGameObject(this.scene, nineslice, config);\r\n\r\n return nineslice;\r\n});\r\n\n\n/***/ }),\n\n/***/ 47521:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NineSlice = __webpack_require__(28103);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * A Nine Slice Game Object allows you to display a texture-based object that\r\n * can be stretched both horizontally and vertically, but that retains\r\n * fixed-sized corners. The dimensions of the corners are set via the\r\n * parameters to this class.\r\n *\r\n * This is extremely useful for UI and button like elements, where you need\r\n * them to expand to accommodate the content without distorting the texture.\r\n *\r\n * The texture you provide for this Game Object should be based on the\r\n * following layout structure:\r\n *\r\n * ```\r\n * A B\r\n * +---+----------------------+---+\r\n * C | 1 | 2 | 3 |\r\n * +---+----------------------+---+\r\n * | | | |\r\n * | 4 | 5 | 6 |\r\n * | | | |\r\n * +---+----------------------+---+\r\n * D | 7 | 8 | 9 |\r\n * +---+----------------------+---+\r\n * ```\r\n *\r\n * When changing this objects width and / or height:\r\n *\r\n * areas 1, 3, 7 and 9 (the corners) will remain unscaled\r\n * areas 2 and 8 will be stretched horizontally only\r\n * areas 4 and 6 will be stretched vertically only\r\n * area 5 will be stretched both horizontally and vertically\r\n *\r\n * You can also create a 3 slice Game Object:\r\n *\r\n * This works in a similar way, except you can only stretch it horizontally.\r\n * Therefore, it requires less configuration:\r\n *\r\n * ```\r\n * A B\r\n * +---+----------------------+---+\r\n * | | | |\r\n * C | 1 | 2 | 3 |\r\n * | | | |\r\n * +---+----------------------+---+\r\n * ```\r\n *\r\n * When changing this objects width (you cannot change its height)\r\n *\r\n * areas 1 and 3 will remain unscaled\r\n * area 2 will be stretched horizontally\r\n *\r\n * The above configuration concept is adapted from the Pixi NineSlicePlane.\r\n *\r\n * To specify a 3 slice object instead of a 9 slice you should only\r\n * provide the `leftWidth` and `rightWidth` parameters. To create a 9 slice\r\n * you must supply all parameters.\r\n *\r\n * The _minimum_ width this Game Object can be is the total of\r\n * `leftWidth` + `rightWidth`. The _minimum_ height this Game Object\r\n * can be is the total of `topHeight` + `bottomHeight`.\r\n * If you need to display this object at a smaller size, you can scale it.\r\n *\r\n * In terms of performance, using a 3 slice Game Object is the equivalent of\r\n * having 3 Sprites in a row. Using a 9 slice Game Object is the equivalent\r\n * of having 9 Sprites in a row. The vertices of this object are all batched\r\n * together and can co-exist with other Sprites and graphics on the display\r\n * list, without incurring any additional overhead.\r\n *\r\n * As of Phaser 3.60 this Game Object is WebGL only.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#nineslice\r\n * @webglOnly\r\n * @since 3.60.0\r\n *\r\n * @param {number} x - The horizontal position of the center of this Game Object in the world.\r\n * @param {number} y - The vertical position of the center of this Game Object in the world.\r\n * @param {(string|Phaser.Textures.Texture)} texture - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - An optional frame from the Texture this Game Object is rendering with.\r\n * @param {number} [width=256] - The width of the Nine Slice Game Object. You can adjust the width post-creation.\r\n * @param {number} [height=256] - The height of the Nine Slice Game Object. If this is a 3 slice object the height will be fixed to the height of the texture and cannot be changed.\r\n * @param {number} [leftWidth=10] - The size of the left vertical column (A).\r\n * @param {number} [rightWidth=10] - The size of the right vertical column (B).\r\n * @param {number} [topHeight=0] - The size of the top horiztonal row (C). Set to zero or undefined to create a 3 slice object.\r\n * @param {number} [bottomHeight=0] - The size of the bottom horiztonal row (D). Set to zero or undefined to create a 3 slice object.\r\n *\r\n * @return {Phaser.GameObjects.NineSlice} The Game Object that was created.\r\n */\r\nif (true)\r\n{\r\n GameObjectFactory.register('nineslice', function (x, y, texture, frame, width, height, leftWidth, rightWidth, topHeight, bottomHeight)\r\n {\r\n return this.displayList.add(new NineSlice(this.scene, x, y, texture, frame, width, height, leftWidth, rightWidth, topHeight, bottomHeight));\r\n });\r\n}\r\n\n\n/***/ }),\n\n/***/ 78023:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(52230);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 52230:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetCalcMatrix = __webpack_require__(91296);\r\nvar Utils = __webpack_require__(70554);\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Mesh#renderWebGL\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Mesh} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar NineSliceWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n var verts = src.vertices;\r\n var totalVerts = verts.length;\r\n\r\n if (totalVerts === 0)\r\n {\r\n return;\r\n }\r\n\r\n camera.addToRenderList(src);\r\n\r\n var pipeline = renderer.pipelines.set(src.pipeline, src);\r\n\r\n var calcMatrix = GetCalcMatrix(src, camera, parentMatrix, false).calc;\r\n\r\n // This causes a flush if the NineSlice has a Post Pipeline\r\n renderer.pipelines.preBatch(src);\r\n\r\n var textureUnit = pipeline.setGameObject(src);\r\n\r\n var F32 = pipeline.vertexViewF32;\r\n var U32 = pipeline.vertexViewU32;\r\n\r\n var vertexOffset = (pipeline.vertexCount * pipeline.currentShader.vertexComponentCount) - 1;\r\n\r\n var roundPixels = camera.roundPixels;\r\n\r\n var tintEffect = src.tintFill;\r\n var alpha = camera.alpha * src.alpha;\r\n var color = Utils.getTintAppendFloatAlpha(src.tint, alpha);\r\n\r\n var available = pipeline.vertexAvailable();\r\n var flushCount = -1;\r\n\r\n if (available < totalVerts)\r\n {\r\n flushCount = available;\r\n }\r\n\r\n for (var i = 0; i < totalVerts; i++)\r\n {\r\n var vert = verts[i];\r\n\r\n if (i === flushCount)\r\n {\r\n pipeline.flush();\r\n\r\n textureUnit = pipeline.setGameObject(src);\r\n\r\n vertexOffset = 0;\r\n }\r\n\r\n F32[++vertexOffset] = calcMatrix.getXRound(vert.vx, vert.vy, roundPixels);\r\n F32[++vertexOffset] = calcMatrix.getYRound(vert.vx, vert.vy, roundPixels);\r\n F32[++vertexOffset] = vert.u;\r\n F32[++vertexOffset] = vert.v;\r\n F32[++vertexOffset] = textureUnit;\r\n F32[++vertexOffset] = tintEffect;\r\n U32[++vertexOffset] = color;\r\n\r\n pipeline.vertexCount++;\r\n\r\n pipeline.currentBatch.count = (pipeline.vertexCount - pipeline.currentBatch.start);\r\n }\r\n\r\n renderer.pipelines.postBatch(src);\r\n};\r\n\r\nmodule.exports = NineSliceWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 76472:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar EmitterOp = __webpack_require__(44777);\r\nvar GetColor = __webpack_require__(37589);\r\nvar GetEaseFunction = __webpack_require__(6113);\r\nvar GetInterpolationFunction = __webpack_require__(91389);\r\nvar IntegerToRGB = __webpack_require__(90664);\r\n\r\n/**\r\n * @classdesc\r\n * This class is responsible for taking control over the color property\r\n * in the Particle class and managing its emission and updating functions.\r\n *\r\n * See the `ParticleEmitter` class for more details on emitter op configuration.\r\n *\r\n * @class EmitterColorOp\r\n * @extends Phaser.GameObjects.Particles.EmitterOp\r\n * @memberof Phaser.GameObjects.Particles\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {string} key - The name of the property.\r\n */\r\nvar EmitterColorOp = new Class({\r\n\r\n Extends: EmitterOp,\r\n\r\n initialize:\r\n\r\n function EmitterColorOp (key)\r\n {\r\n EmitterOp.call(this, key, null, false);\r\n\r\n this.active = false;\r\n\r\n this.easeName = 'Linear';\r\n\r\n /**\r\n * An array containing the red color values.\r\n *\r\n * Populated during the `setMethods` method.\r\n *\r\n * @name Phaser.GameObjects.Particles.EmitterColorOp#r\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\n this.r = [];\r\n\r\n /**\r\n * An array containing the green color values.\r\n *\r\n * Populated during the `setMethods` method.\r\n *\r\n * @name Phaser.GameObjects.Particles.EmitterColorOp#g\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\n this.g = [];\r\n\r\n /**\r\n * An array containing the blue color values.\r\n *\r\n * Populated during the `setMethods` method.\r\n *\r\n * @name Phaser.GameObjects.Particles.EmitterColorOp#b\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\n this.b = [];\r\n },\r\n\r\n /**\r\n * Checks the type of `EmitterOp.propertyValue` to determine which\r\n * method is required in order to return values from this op function.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterColorOp#getMethod\r\n * @since 3.60.0\r\n *\r\n * @return {number} A number between 0 and 9 which should be passed to `setMethods`.\r\n */\r\n getMethod: function ()\r\n {\r\n return (this.propertyValue === null) ? 0 : 9;\r\n },\r\n\r\n /**\r\n * Sets the EmitterColorOp method values, if in use.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterColorOp#setMethods\r\n * @since 3.60.0\r\n *\r\n * @return {this} This Emitter Op object.\r\n */\r\n setMethods: function ()\r\n {\r\n var value = this.propertyValue;\r\n var current = value;\r\n\r\n var onEmit = this.defaultEmit;\r\n var onUpdate = this.defaultUpdate;\r\n\r\n if (this.method === 9)\r\n {\r\n this.start = value[0];\r\n this.ease = GetEaseFunction('Linear');\r\n this.interpolation = GetInterpolationFunction('linear');\r\n\r\n onEmit = this.easedValueEmit;\r\n onUpdate = this.easeValueUpdate;\r\n current = value[0];\r\n\r\n this.active = true;\r\n\r\n // Populate the r,g,b arrays\r\n for (var i = 0; i < value.length; i++)\r\n {\r\n // in hex format 0xff0000\r\n var color = IntegerToRGB(value[i]);\r\n\r\n this.r.push(color.r);\r\n this.g.push(color.g);\r\n this.b.push(color.b);\r\n }\r\n }\r\n\r\n this.onEmit = onEmit;\r\n this.onUpdate = onUpdate;\r\n this.current = current;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Ease function to use for Color interpolation.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterColorOp#setEase\r\n * @since 3.60.0\r\n *\r\n * @param {string} ease - The string-based name of the Ease function to use.\r\n */\r\n setEase: function (value)\r\n {\r\n this.easeName = value;\r\n\r\n this.ease = GetEaseFunction(value);\r\n },\r\n\r\n /**\r\n * An `onEmit` callback for an eased property.\r\n *\r\n * It prepares the particle for easing by {@link Phaser.GameObjects.Particles.EmitterColorOp#easeValueUpdate}.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterColorOp#easedValueEmit\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.Particle} particle - The particle.\r\n * @param {string} key - The name of the property.\r\n *\r\n * @return {number} {@link Phaser.GameObjects.Particles.EmitterColorOp#start}, as the new value of the property.\r\n */\r\n easedValueEmit: function ()\r\n {\r\n this.current = this.start;\r\n\r\n return this.start;\r\n },\r\n\r\n /**\r\n * An `onUpdate` callback that returns an eased value between the\r\n * {@link Phaser.GameObjects.Particles.EmitterColorOp#start} and {@link Phaser.GameObjects.Particles.EmitterColorOp#end}\r\n * range.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterColorOp#easeValueUpdate\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.Particle} particle - The particle.\r\n * @param {string} key - The name of the property.\r\n * @param {number} t - The current normalized lifetime of the particle, between 0 (birth) and 1 (death).\r\n *\r\n * @return {number} The new value of the property.\r\n */\r\n easeValueUpdate: function (particle, key, t)\r\n {\r\n var v = this.ease(t);\r\n\r\n var r = this.interpolation(this.r, v);\r\n var g = this.interpolation(this.g, v);\r\n var b = this.interpolation(this.b, v);\r\n\r\n var current = GetColor(r, g, b);\r\n\r\n this.current = current;\r\n\r\n return current;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = EmitterColorOp;\r\n\n\n/***/ }),\n\n/***/ 44777:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Between = __webpack_require__(30976);\r\nvar Clamp = __webpack_require__(45319);\r\nvar Class = __webpack_require__(83419);\r\nvar FloatBetween = __webpack_require__(99472);\r\nvar GetEaseFunction = __webpack_require__(6113);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar GetInterpolationFunction = __webpack_require__(91389);\r\nvar SnapTo = __webpack_require__(77720);\r\nvar Wrap = __webpack_require__(15994);\r\n\r\n/**\r\n * @classdesc\r\n * This class is responsible for taking control over a single property\r\n * in the Particle class and managing its emission and updating functions.\r\n *\r\n * Particles properties such as `x`, `y`, `scaleX`, `lifespan` and others all use\r\n * EmitterOp instances to manage them, as they can be given in a variety of\r\n * formats: from simple values, to functions, to dynamic callbacks.\r\n *\r\n * See the `ParticleEmitter` class for more details on emitter op configuration.\r\n *\r\n * @class EmitterOp\r\n * @memberof Phaser.GameObjects.Particles\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The name of the property.\r\n * @param {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType|Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType} defaultValue - The default value of the property.\r\n * @param {boolean} [emitOnly=false] - Whether the property can only be modified when a Particle is emitted.\r\n */\r\nvar EmitterOp = new Class({\r\n\r\n initialize:\r\n\r\n function EmitterOp (key, defaultValue, emitOnly)\r\n {\r\n if (emitOnly === undefined) { emitOnly = false; }\r\n\r\n /**\r\n * The name of this property.\r\n *\r\n * @name Phaser.GameObjects.Particles.EmitterOp#propertyKey\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.propertyKey = key;\r\n\r\n /**\r\n * The current value of this property.\r\n *\r\n * This can be a simple value, an array, a function or an onEmit\r\n * configuration object.\r\n *\r\n * @name Phaser.GameObjects.Particles.EmitterOp#propertyValue\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType|Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType}\r\n * @since 3.0.0\r\n */\r\n this.propertyValue = defaultValue;\r\n\r\n /**\r\n * The default value of this property.\r\n *\r\n * This can be a simple value, an array, a function or an onEmit\r\n * configuration object.\r\n *\r\n * @name Phaser.GameObjects.Particles.EmitterOp#defaultValue\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType|Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType}\r\n * @since 3.0.0\r\n */\r\n this.defaultValue = defaultValue;\r\n\r\n /**\r\n * The number of steps for stepped easing between {@link Phaser.GameObjects.Particles.EmitterOp#start} and\r\n * {@link Phaser.GameObjects.Particles.EmitterOp#end} values, per emit.\r\n *\r\n * @name Phaser.GameObjects.Particles.EmitterOp#steps\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.steps = 0;\r\n\r\n /**\r\n * The step counter for stepped easing, per emit.\r\n *\r\n * @name Phaser.GameObjects.Particles.EmitterOp#counter\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.counter = 0;\r\n\r\n /**\r\n * When the step counter reaches it's maximum, should it then\r\n * yoyo back to the start again, or flip over to it?\r\n *\r\n * @name Phaser.GameObjects.Particles.EmitterOp#yoyo\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.60.0\r\n */\r\n this.yoyo = false;\r\n\r\n /**\r\n * The counter direction. 0 for up and 1 for down.\r\n *\r\n * @name Phaser.GameObjects.Particles.EmitterOp#direction\r\n * @type {number}\r\n * @default 0\r\n * @since 3.60.0\r\n */\r\n this.direction = 0;\r\n\r\n /**\r\n * The start value for this property to ease between.\r\n *\r\n * If an interpolation this holds a reference to the number data array.\r\n *\r\n * @name Phaser.GameObjects.Particles.EmitterOp#start\r\n * @type {number|number[]}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.start = 0;\r\n\r\n /**\r\n * The most recently calculated value. Updated every time an\r\n * emission or update method is called. Treat as read-only.\r\n *\r\n * @name Phaser.GameObjects.Particles.EmitterOp#current\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.current = 0;\r\n\r\n /**\r\n * The end value for this property to ease between.\r\n *\r\n * @name Phaser.GameObjects.Particles.EmitterOp#end\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.end = 0;\r\n\r\n /**\r\n * The easing function to use for updating this property, if any.\r\n *\r\n * @name Phaser.GameObjects.Particles.EmitterOp#ease\r\n * @type {?function}\r\n * @since 3.0.0\r\n */\r\n this.ease = null;\r\n\r\n /**\r\n * The interpolation function to use for updating this property, if any.\r\n *\r\n * @name Phaser.GameObjects.Particles.EmitterOp#interpolation\r\n * @type {?function}\r\n * @since 3.60.0\r\n */\r\n this.interpolation = null;\r\n\r\n /**\r\n * Whether this property can only be modified when a Particle is emitted.\r\n *\r\n * Set to `true` to allow only {@link Phaser.GameObjects.Particles.EmitterOp#onEmit} callbacks to be set and\r\n * affect this property.\r\n *\r\n * Set to `false` to allow both {@link Phaser.GameObjects.Particles.EmitterOp#onEmit} and\r\n * {@link Phaser.GameObjects.Particles.EmitterOp#onUpdate} callbacks to be set and affect this property.\r\n *\r\n * @name Phaser.GameObjects.Particles.EmitterOp#emitOnly\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.emitOnly = emitOnly;\r\n\r\n /**\r\n * The callback to run for Particles when they are emitted from the Particle Emitter.\r\n *\r\n * @name Phaser.GameObjects.Particles.EmitterOp#onEmit\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitCallback}\r\n * @since 3.0.0\r\n */\r\n this.onEmit = this.defaultEmit;\r\n\r\n /**\r\n * The callback to run for Particles when they are updated.\r\n *\r\n * @name Phaser.GameObjects.Particles.EmitterOp#onUpdate\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateCallback}\r\n * @since 3.0.0\r\n */\r\n this.onUpdate = this.defaultUpdate;\r\n\r\n /**\r\n * Set to `false` to disable this EmitterOp.\r\n *\r\n * @name Phaser.GameObjects.Particles.EmitterOp#active\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.active = true;\r\n\r\n /**\r\n * The onEmit method type of this EmitterOp.\r\n *\r\n * Set as part of `setMethod` and cached here to avoid\r\n * re-setting when only the value changes.\r\n *\r\n * @name Phaser.GameObjects.Particles.EmitterOp#method\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.method = 0;\r\n\r\n /**\r\n * The callback to run for Particles when they are emitted from the Particle Emitter.\r\n * This is set during `setMethods` and used by `proxyEmit`.\r\n *\r\n * @name Phaser.GameObjects.Particles.EmitterOp#_onEmit\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitCallback}\r\n * @private\r\n * @since 3.60.0\r\n */\r\n this._onEmit;\r\n\r\n /**\r\n * The callback to run for Particles when they are updated.\r\n * This is set during `setMethods` and used by `proxyUpdate`.\r\n *\r\n * @name Phaser.GameObjects.Particles.EmitterOp#_onUpdate\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateCallback}\r\n * @private\r\n * @since 3.60.0\r\n */\r\n this._onUpdate;\r\n },\r\n\r\n /**\r\n * Load the property from a Particle Emitter configuration object.\r\n *\r\n * Optionally accepts a new property key to use, replacing the current one.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterOp#loadConfig\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Particles.ParticleEmitterConfig} [config] - Settings for the Particle Emitter that owns this property.\r\n * @param {string} [newKey] - The new key to use for this property, if any.\r\n */\r\n loadConfig: function (config, newKey)\r\n {\r\n if (config === undefined)\r\n {\r\n config = {};\r\n }\r\n\r\n if (newKey)\r\n {\r\n this.propertyKey = newKey;\r\n }\r\n\r\n this.propertyValue = GetFastValue(\r\n config,\r\n this.propertyKey,\r\n this.defaultValue\r\n );\r\n\r\n this.method = this.getMethod();\r\n\r\n this.setMethods();\r\n\r\n if (this.emitOnly)\r\n {\r\n // Reset it back again\r\n this.onUpdate = this.defaultUpdate;\r\n }\r\n },\r\n\r\n /**\r\n * Build a JSON representation of this Particle Emitter property.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterOp#toJSON\r\n * @since 3.0.0\r\n *\r\n * @return {object} A JSON representation of this Particle Emitter property.\r\n */\r\n toJSON: function ()\r\n {\r\n return JSON.stringify(this.propertyValue);\r\n },\r\n\r\n /**\r\n * Change the current value of the property and update its callback methods.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterOp#onChange\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The new numeric value of this property.\r\n *\r\n * @return {this} This Emitter Op object.\r\n */\r\n onChange: function (value)\r\n {\r\n var current;\r\n\r\n switch (this.method)\r\n {\r\n // Number\r\n // Custom Callback (onEmit only)\r\n // Custom onEmit and/or onUpdate callbacks\r\n case 1:\r\n case 3:\r\n case 8:\r\n current = value;\r\n break;\r\n\r\n // Random Array\r\n case 2:\r\n if (this.propertyValue.indexOf(value) >= 0)\r\n {\r\n current = value;\r\n }\r\n break;\r\n\r\n // Stepped start/end\r\n case 4:\r\n var step = (this.end - this.start) / this.steps;\r\n current = SnapTo(value, step);\r\n this.counter = current;\r\n break;\r\n\r\n // Eased start/end\r\n // min/max (random float or int)\r\n // Random object (random integer)\r\n case 5:\r\n case 6:\r\n case 7:\r\n current = Clamp(value, this.start, this.end);\r\n break;\r\n\r\n // Interpolation\r\n case 9:\r\n current = this.start[0];\r\n break;\r\n }\r\n\r\n this.current = current;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Checks the type of `EmitterOp.propertyValue` to determine which\r\n * method is required in order to return values from this op function.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterOp#getMethod\r\n * @since 3.60.0\r\n *\r\n * @return {number} A number between 0 and 9 which should be passed to `setMethods`.\r\n */\r\n getMethod: function ()\r\n {\r\n var value = this.propertyValue;\r\n\r\n // `moveToX` and `moveToY` are null by default\r\n if (value === null)\r\n {\r\n return 0;\r\n }\r\n\r\n var t = typeof value;\r\n\r\n if (t === 'number')\r\n {\r\n // Number\r\n return 1;\r\n }\r\n else if (Array.isArray(value))\r\n {\r\n // Random Array\r\n return 2;\r\n }\r\n else if (t === 'function')\r\n {\r\n // Custom Callback\r\n return 3;\r\n }\r\n else if (t === 'object')\r\n {\r\n if (this.hasBoth(value, 'start', 'end'))\r\n {\r\n if (this.has(value, 'steps'))\r\n {\r\n // Stepped start/end\r\n return 4;\r\n }\r\n else\r\n {\r\n // Eased start/end\r\n return 5;\r\n }\r\n }\r\n else if (this.hasBoth(value, 'min', 'max'))\r\n {\r\n // min/max\r\n return 6;\r\n }\r\n else if (this.has(value, 'random'))\r\n {\r\n // Random object\r\n return 7;\r\n }\r\n else if (this.hasEither(value, 'onEmit', 'onUpdate'))\r\n {\r\n // Custom onEmit onUpdate\r\n return 8;\r\n }\r\n else if (this.hasEither(value, 'values', 'interpolation'))\r\n {\r\n // Interpolation\r\n return 9;\r\n }\r\n }\r\n\r\n return 0;\r\n },\r\n\r\n /**\r\n * Update the {@link Phaser.GameObjects.Particles.EmitterOp#onEmit} and\r\n * {@link Phaser.GameObjects.Particles.EmitterOp#onUpdate} callbacks based on the method returned\r\n * from `getMethod`. The method is stored in the `EmitterOp.method` property\r\n * and is a number between 0 and 9 inclusively.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterOp#setMethods\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Emitter Op object.\r\n */\r\n setMethods: function ()\r\n {\r\n var value = this.propertyValue;\r\n var current = value;\r\n\r\n var onEmit = this.defaultEmit;\r\n var onUpdate = this.defaultUpdate;\r\n\r\n switch (this.method)\r\n {\r\n // Number\r\n case 1:\r\n onEmit = this.staticValueEmit;\r\n break;\r\n\r\n // Random Array\r\n case 2:\r\n onEmit = this.randomStaticValueEmit;\r\n current = value[0];\r\n break;\r\n\r\n // Custom Callback (onEmit only)\r\n case 3:\r\n this._onEmit = value;\r\n onEmit = this.proxyEmit;\r\n break;\r\n\r\n // Stepped start/end\r\n case 4:\r\n this.start = value.start;\r\n this.end = value.end;\r\n this.steps = value.steps;\r\n this.counter = this.start;\r\n this.yoyo = this.has(value, 'yoyo') ? value.yoyo : false;\r\n this.direction = 0;\r\n onEmit = this.steppedEmit;\r\n current = this.start;\r\n break;\r\n\r\n // Eased start/end\r\n case 5:\r\n this.start = value.start;\r\n this.end = value.end;\r\n var easeType = this.has(value, 'ease') ? value.ease : 'Linear';\r\n this.ease = GetEaseFunction(easeType, value.easeParams);\r\n onEmit = (this.has(value, 'random') && value.random) ? this.randomRangedValueEmit : this.easedValueEmit;\r\n onUpdate = this.easeValueUpdate;\r\n current = this.start;\r\n break;\r\n\r\n // min/max (random float or int)\r\n case 6:\r\n this.start = value.min;\r\n this.end = value.max;\r\n onEmit = (this.has(value, 'int') && value.int) ? this.randomRangedIntEmit : this.randomRangedValueEmit;\r\n current = this.start;\r\n break;\r\n\r\n // Random object (random integer)\r\n case 7:\r\n var rnd = value.random;\r\n\r\n if (Array.isArray(rnd))\r\n {\r\n this.start = rnd[0];\r\n this.end = rnd[1];\r\n }\r\n\r\n onEmit = this.randomRangedIntEmit;\r\n current = this.start;\r\n break;\r\n\r\n // Custom onEmit and/or onUpdate callbacks\r\n case 8:\r\n this._onEmit = (this.has(value, 'onEmit')) ? value.onEmit : this.defaultEmit;\r\n this._onUpdate = (this.has(value, 'onUpdate')) ? value.onUpdate : this.defaultUpdate;\r\n onEmit = this.proxyEmit;\r\n onUpdate = this.proxyUpdate;\r\n break;\r\n\r\n // Interpolation\r\n case 9:\r\n this.start = value.values;\r\n var easeTypeI = this.has(value, 'ease') ? value.ease : 'Linear';\r\n this.ease = GetEaseFunction(easeTypeI, value.easeParams);\r\n this.interpolation = GetInterpolationFunction(value.interpolation);\r\n onEmit = this.easedValueEmit;\r\n onUpdate = this.easeValueUpdate;\r\n current = this.start[0];\r\n break;\r\n }\r\n\r\n this.onEmit = onEmit;\r\n this.onUpdate = onUpdate;\r\n this.current = current;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Check whether an object has the given property.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterOp#has\r\n * @since 3.0.0\r\n *\r\n * @param {object} object - The object to check.\r\n * @param {string} key - The key of the property to look for in the object.\r\n *\r\n * @return {boolean} `true` if the property exists in the object, `false` otherwise.\r\n */\r\n has: function (object, key)\r\n {\r\n return object.hasOwnProperty(key);\r\n },\r\n\r\n /**\r\n * Check whether an object has both of the given properties.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterOp#hasBoth\r\n * @since 3.0.0\r\n *\r\n * @param {object} object - The object to check.\r\n * @param {string} key1 - The key of the first property to check the object for.\r\n * @param {string} key2 - The key of the second property to check the object for.\r\n *\r\n * @return {boolean} `true` if both properties exist in the object, `false` otherwise.\r\n */\r\n hasBoth: function (object, key1, key2)\r\n {\r\n return object.hasOwnProperty(key1) && object.hasOwnProperty(key2);\r\n },\r\n\r\n /**\r\n * Check whether an object has at least one of the given properties.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterOp#hasEither\r\n * @since 3.0.0\r\n *\r\n * @param {object} object - The object to check.\r\n * @param {string} key1 - The key of the first property to check the object for.\r\n * @param {string} key2 - The key of the second property to check the object for.\r\n *\r\n * @return {boolean} `true` if at least one of the properties exists in the object, `false` if neither exist.\r\n */\r\n hasEither: function (object, key1, key2)\r\n {\r\n return object.hasOwnProperty(key1) || object.hasOwnProperty(key2);\r\n },\r\n\r\n /**\r\n * The returned value sets what the property will be at the START of the particles life, on emit.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterOp#defaultEmit\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.Particle} particle - The particle.\r\n * @param {string} key - The name of the property.\r\n * @param {number} [value] - The current value of the property.\r\n *\r\n * @return {number} The new value of the property.\r\n */\r\n defaultEmit: function (particle, key, value)\r\n {\r\n return value;\r\n },\r\n\r\n /**\r\n * The returned value updates the property for the duration of the particles life.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterOp#defaultUpdate\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.Particle} particle - The particle.\r\n * @param {string} key - The name of the property.\r\n * @param {number} t - The current normalized lifetime of the particle, between 0 (birth) and 1 (death).\r\n * @param {number} value - The current value of the property.\r\n *\r\n * @return {number} The new value of the property.\r\n */\r\n defaultUpdate: function (particle, key, t, value)\r\n {\r\n return value;\r\n },\r\n\r\n /**\r\n * The returned value sets what the property will be at the START of the particles life, on emit.\r\n *\r\n * This method is only used when you have provided a custom emit callback.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterOp#proxyEmit\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.Particle} particle - The particle.\r\n * @param {string} key - The name of the property.\r\n * @param {number} [value] - The current value of the property.\r\n *\r\n * @return {number} The new value of the property.\r\n */\r\n proxyEmit: function (particle, key, value)\r\n {\r\n var result = this._onEmit(particle, key, value);\r\n\r\n this.current = result;\r\n\r\n return result;\r\n },\r\n\r\n /**\r\n * The returned value updates the property for the duration of the particles life.\r\n *\r\n * This method is only used when you have provided a custom update callback.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterOp#proxyUpdate\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.Particle} particle - The particle.\r\n * @param {string} key - The name of the property.\r\n * @param {number} t - The current normalized lifetime of the particle, between 0 (birth) and 1 (death).\r\n * @param {number} value - The current value of the property.\r\n *\r\n * @return {number} The new value of the property.\r\n */\r\n proxyUpdate: function (particle, key, t, value)\r\n {\r\n var result = this._onUpdate(particle, key, t, value);\r\n\r\n this.current = result;\r\n\r\n return result;\r\n },\r\n\r\n /**\r\n * An `onEmit` callback that returns the current value of the property.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterOp#staticValueEmit\r\n * @since 3.0.0\r\n *\r\n * @return {number} The current value of the property.\r\n */\r\n staticValueEmit: function ()\r\n {\r\n return this.current;\r\n },\r\n\r\n /**\r\n * An `onUpdate` callback that returns the current value of the property.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterOp#staticValueUpdate\r\n * @since 3.0.0\r\n *\r\n * @return {number} The current value of the property.\r\n */\r\n staticValueUpdate: function ()\r\n {\r\n return this.current;\r\n },\r\n\r\n /**\r\n * An `onEmit` callback that returns a random value from the current value array.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterOp#randomStaticValueEmit\r\n * @since 3.0.0\r\n *\r\n * @return {number} The new value of the property.\r\n */\r\n randomStaticValueEmit: function ()\r\n {\r\n var randomIndex = Math.floor(Math.random() * this.propertyValue.length);\r\n\r\n this.current = this.propertyValue[randomIndex];\r\n\r\n return this.current;\r\n },\r\n\r\n /**\r\n * An `onEmit` callback that returns a value between the {@link Phaser.GameObjects.Particles.EmitterOp#start} and\r\n * {@link Phaser.GameObjects.Particles.EmitterOp#end} range.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterOp#randomRangedValueEmit\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.Particle} particle - The particle.\r\n * @param {string} key - The key of the property.\r\n *\r\n * @return {number} The new value of the property.\r\n */\r\n randomRangedValueEmit: function (particle, key)\r\n {\r\n var value = FloatBetween(this.start, this.end);\r\n\r\n if (particle && particle.data[key])\r\n {\r\n particle.data[key].min = value;\r\n particle.data[key].max = this.end;\r\n }\r\n\r\n this.current = value;\r\n\r\n return value;\r\n },\r\n\r\n /**\r\n * An `onEmit` callback that returns a value between the {@link Phaser.GameObjects.Particles.EmitterOp#start} and\r\n * {@link Phaser.GameObjects.Particles.EmitterOp#end} range.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterOp#randomRangedIntEmit\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.Particle} particle - The particle.\r\n * @param {string} key - The key of the property.\r\n *\r\n * @return {number} The new value of the property.\r\n */\r\n randomRangedIntEmit: function (particle, key)\r\n {\r\n var value = Between(this.start, this.end);\r\n\r\n if (particle && particle.data[key])\r\n {\r\n particle.data[key].min = value;\r\n particle.data[key].max = this.end;\r\n }\r\n\r\n this.current = value;\r\n\r\n return value;\r\n },\r\n\r\n /**\r\n * An `onEmit` callback that returns a stepped value between the\r\n * {@link Phaser.GameObjects.Particles.EmitterOp#start} and {@link Phaser.GameObjects.Particles.EmitterOp#end}\r\n * range.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterOp#steppedEmit\r\n * @since 3.0.0\r\n *\r\n * @return {number} The new value of the property.\r\n */\r\n steppedEmit: function ()\r\n {\r\n var current = this.counter;\r\n\r\n var next = current;\r\n\r\n var step = (this.end - this.start) / this.steps;\r\n\r\n if (this.yoyo)\r\n {\r\n var over;\r\n\r\n if (this.direction === 0)\r\n {\r\n // Add step to the current value\r\n next += step;\r\n\r\n if (next >= this.end)\r\n {\r\n over = next - this.end;\r\n\r\n next = this.end - over;\r\n\r\n this.direction = 1;\r\n }\r\n }\r\n else\r\n {\r\n // Down\r\n next -= step;\r\n\r\n if (next <= this.start)\r\n {\r\n over = this.start - next;\r\n\r\n next = this.start + over;\r\n\r\n this.direction = 0;\r\n }\r\n }\r\n\r\n this.counter = next;\r\n }\r\n else\r\n {\r\n this.counter = Wrap(next + step, this.start, this.end);\r\n }\r\n\r\n this.current = current;\r\n\r\n return current;\r\n },\r\n\r\n /**\r\n * An `onEmit` callback for an eased property.\r\n *\r\n * It prepares the particle for easing by {@link Phaser.GameObjects.Particles.EmitterOp#easeValueUpdate}.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterOp#easedValueEmit\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.Particle} particle - The particle.\r\n * @param {string} key - The name of the property.\r\n *\r\n * @return {number} {@link Phaser.GameObjects.Particles.EmitterOp#start}, as the new value of the property.\r\n */\r\n easedValueEmit: function (particle, key)\r\n {\r\n if (particle && particle.data[key])\r\n {\r\n var data = particle.data[key];\r\n\r\n data.min = this.start;\r\n data.max = this.end;\r\n }\r\n\r\n this.current = this.start;\r\n\r\n return this.start;\r\n },\r\n\r\n /**\r\n * An `onUpdate` callback that returns an eased value between the\r\n * {@link Phaser.GameObjects.Particles.EmitterOp#start} and {@link Phaser.GameObjects.Particles.EmitterOp#end}\r\n * range.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterOp#easeValueUpdate\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.Particle} particle - The particle.\r\n * @param {string} key - The name of the property.\r\n * @param {number} t - The current normalized lifetime of the particle, between 0 (birth) and 1 (death).\r\n *\r\n * @return {number} The new value of the property.\r\n */\r\n easeValueUpdate: function (particle, key, t)\r\n {\r\n var data = particle.data[key];\r\n\r\n var current;\r\n var v = this.ease(t);\r\n\r\n if (this.interpolation)\r\n {\r\n current = this.interpolation(this.start, v);\r\n }\r\n else\r\n {\r\n current = (data.max - data.min) * v + data.min;\r\n }\r\n\r\n this.current = current;\r\n\r\n return current;\r\n },\r\n\r\n /**\r\n * Destroys this EmitterOp instance and all of its references.\r\n *\r\n * Called automatically when the ParticleEmitter that owns this\r\n * EmitterOp is destroyed.\r\n *\r\n * @method Phaser.GameObjects.Particles.EmitterOp#destroy\r\n * @since 3.60.0\r\n */\r\n destroy: function ()\r\n {\r\n this.propertyValue = null;\r\n this.defaultValue = null;\r\n this.ease = null;\r\n this.interpolation = null;\r\n this._onEmit = null;\r\n this._onUpdate = null;\r\n }\r\n});\r\n\r\nmodule.exports = EmitterOp;\r\n\n\n/***/ }),\n\n/***/ 24502:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar ParticleProcessor = __webpack_require__(20286);\r\n\r\n/**\r\n * @classdesc\r\n * The Gravity Well Particle Processor applies a force on the particles to draw\r\n * them towards, or repel them from, a single point.\r\n *\r\n * The force applied is inversely proportional to the square of the distance\r\n * from the particle to the point, in accordance with Newton's law of gravity.\r\n *\r\n * This simulates the effect of gravity over large distances (as between planets, for example).\r\n *\r\n * @class GravityWell\r\n * @extends Phaser.GameObjects.Particles.ParticleProcessor\r\n * @memberof Phaser.GameObjects.Particles\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {(number|Phaser.Types.GameObjects.Particles.GravityWellConfig)} [x=0] - The x coordinate of the Gravity Well, in world space.\r\n * @param {number} [y=0] - The y coordinate of the Gravity Well, in world space.\r\n * @param {number} [power=0] - The strength of the gravity force - larger numbers produce a stronger force.\r\n * @param {number} [epsilon=100] - The minimum distance for which the gravity force is calculated.\r\n * @param {number} [gravity=50] - The gravitational force of this Gravity Well.\r\n */\r\nvar GravityWell = new Class({\r\n\r\n Extends: ParticleProcessor,\r\n\r\n initialize:\r\n\r\n function GravityWell (x, y, power, epsilon, gravity)\r\n {\r\n if (typeof x === 'object')\r\n {\r\n var config = x;\r\n\r\n x = GetFastValue(config, 'x', 0);\r\n y = GetFastValue(config, 'y', 0);\r\n power = GetFastValue(config, 'power', 0);\r\n epsilon = GetFastValue(config, 'epsilon', 100);\r\n gravity = GetFastValue(config, 'gravity', 50);\r\n }\r\n else\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (power === undefined) { power = 0; }\r\n if (epsilon === undefined) { epsilon = 100; }\r\n if (gravity === undefined) { gravity = 50; }\r\n }\r\n\r\n ParticleProcessor.call(this, x, y, true);\r\n\r\n /**\r\n * Internal gravity value.\r\n *\r\n * @name Phaser.GameObjects.Particles.GravityWell#_gravity\r\n * @type {number}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._gravity = gravity;\r\n\r\n /**\r\n * Internal power value.\r\n *\r\n * @name Phaser.GameObjects.Particles.GravityWell#_power\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this._power = power * gravity;\r\n\r\n /**\r\n * Internal epsilon value.\r\n *\r\n * @name Phaser.GameObjects.Particles.GravityWell#_epsilon\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this._epsilon = epsilon * epsilon;\r\n },\r\n\r\n /**\r\n * Takes a Particle and updates it based on the properties of this Gravity Well.\r\n *\r\n * @method Phaser.GameObjects.Particles.GravityWell#update\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.Particle} particle - The Particle to update.\r\n * @param {number} delta - The delta time in ms.\r\n * @param {number} step - The delta value divided by 1000.\r\n */\r\n update: function (particle, delta)\r\n {\r\n var x = this.x - particle.x;\r\n var y = this.y - particle.y;\r\n var dSq = x * x + y * y;\r\n\r\n if (dSq === 0)\r\n {\r\n return;\r\n }\r\n\r\n var d = Math.sqrt(dSq);\r\n\r\n if (dSq < this._epsilon)\r\n {\r\n dSq = this._epsilon;\r\n }\r\n\r\n var factor = ((this._power * delta) / (dSq * d)) * 100;\r\n\r\n particle.velocityX += x * factor;\r\n particle.velocityY += y * factor;\r\n },\r\n\r\n /**\r\n * The minimum distance for which the gravity force is calculated.\r\n *\r\n * Defaults to 100.\r\n *\r\n * @name Phaser.GameObjects.Particles.GravityWell#epsilon\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n epsilon: {\r\n\r\n get: function ()\r\n {\r\n return Math.sqrt(this._epsilon);\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._epsilon = value * value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The strength of the gravity force - larger numbers produce a stronger force.\r\n *\r\n * Defaults to 0.\r\n *\r\n * @name Phaser.GameObjects.Particles.GravityWell#power\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n power: {\r\n\r\n get: function ()\r\n {\r\n return this._power / this._gravity;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._power = value * this._gravity;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The gravitational force of this Gravity Well.\r\n *\r\n * Defaults to 50.\r\n *\r\n * @name Phaser.GameObjects.Particles.GravityWell#gravity\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n gravity: {\r\n\r\n get: function ()\r\n {\r\n return this._gravity;\r\n },\r\n\r\n set: function (value)\r\n {\r\n var pwr = this.power;\r\n this._gravity = value;\r\n this.power = pwr;\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = GravityWell;\r\n\n\n/***/ }),\n\n/***/ 56480:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar AnimationState = __webpack_require__(9674);\r\nvar Clamp = __webpack_require__(45319);\r\nvar Class = __webpack_require__(83419);\r\nvar DegToRad = __webpack_require__(39506);\r\nvar Rectangle = __webpack_require__(87841);\r\nvar RotateAround = __webpack_require__(11520);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * A Particle is a simple object owned and controlled by a Particle Emitter.\r\n *\r\n * It encapsulates all of the properties required to move and update according\r\n * to the Emitters operations.\r\n *\r\n * @class Particle\r\n * @memberof Phaser.GameObjects.Particles\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.ParticleEmitter} emitter - The Emitter to which this Particle belongs.\r\n */\r\nvar Particle = new Class({\r\n\r\n initialize:\r\n\r\n function Particle (emitter)\r\n {\r\n /**\r\n * The Emitter to which this Particle belongs.\r\n *\r\n * A Particle can only belong to a single Emitter and is created, updated and destroyed by it.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#emitter\r\n * @type {Phaser.GameObjects.Particles.ParticleEmitter}\r\n * @since 3.0.0\r\n */\r\n this.emitter = emitter;\r\n\r\n /**\r\n * The texture used by this Particle when it renders.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#texture\r\n * @type {Phaser.Textures.Texture}\r\n * @default null\r\n * @since 3.60.0\r\n */\r\n this.texture = null;\r\n\r\n /**\r\n * The texture frame used by this Particle when it renders.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#frame\r\n * @type {Phaser.Textures.Frame}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.frame = null;\r\n\r\n /**\r\n * The x coordinate of this Particle.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#x\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.x = 0;\r\n\r\n /**\r\n * The y coordinate of this Particle.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#y\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.y = 0;\r\n\r\n /**\r\n * The coordinates of this Particle in world space.\r\n *\r\n * Updated as part of `computeVelocity`.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#worldPosition\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.60.0\r\n */\r\n this.worldPosition = new Vector2();\r\n\r\n /**\r\n * The x velocity of this Particle.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#velocityX\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.velocityX = 0;\r\n\r\n /**\r\n * The y velocity of this Particle.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#velocityY\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.velocityY = 0;\r\n\r\n /**\r\n * The x acceleration of this Particle.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#accelerationX\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.accelerationX = 0;\r\n\r\n /**\r\n * The y acceleration of this Particle.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#accelerationY\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.accelerationY = 0;\r\n\r\n /**\r\n * The maximum horizontal velocity this Particle can travel at.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#maxVelocityX\r\n * @type {number}\r\n * @default 10000\r\n * @since 3.0.0\r\n */\r\n this.maxVelocityX = 10000;\r\n\r\n /**\r\n * The maximum vertical velocity this Particle can travel at.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#maxVelocityY\r\n * @type {number}\r\n * @default 10000\r\n * @since 3.0.0\r\n */\r\n this.maxVelocityY = 10000;\r\n\r\n /**\r\n * The bounciness, or restitution, of this Particle.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#bounce\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.bounce = 0;\r\n\r\n /**\r\n * The horizontal scale of this Particle.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#scaleX\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n this.scaleX = 1;\r\n\r\n /**\r\n * The vertical scale of this Particle.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#scaleY\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n this.scaleY = 1;\r\n\r\n /**\r\n * The alpha value of this Particle.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#alpha\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n this.alpha = 1;\r\n\r\n /**\r\n * The angle of this Particle in degrees.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#angle\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.angle = 0;\r\n\r\n /**\r\n * The angle of this Particle in radians.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#rotation\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.rotation = 0;\r\n\r\n /**\r\n * The tint applied to this Particle.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#tint\r\n * @type {number}\r\n * @webglOnly\r\n * @since 3.0.0\r\n */\r\n this.tint = 0xffffff;\r\n\r\n /**\r\n * The lifespan of this Particle in ms.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#life\r\n * @type {number}\r\n * @default 1000\r\n * @since 3.0.0\r\n */\r\n this.life = 1000;\r\n\r\n /**\r\n * The current life of this Particle in ms.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#lifeCurrent\r\n * @type {number}\r\n * @default 1000\r\n * @since 3.0.0\r\n */\r\n this.lifeCurrent = 1000;\r\n\r\n /**\r\n * The delay applied to this Particle upon emission, in ms.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#delayCurrent\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.delayCurrent = 0;\r\n\r\n /**\r\n * The hold applied to this Particle before it expires, in ms.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#holdCurrent\r\n * @type {number}\r\n * @default 0\r\n * @since 3.60.0\r\n */\r\n this.holdCurrent = 0;\r\n\r\n /**\r\n * The normalized lifespan T value, where 0 is the start and 1 is the end.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#lifeT\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.lifeT = 0;\r\n\r\n /**\r\n * The data used by the ease equation.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#data\r\n * @type {Phaser.Types.GameObjects.Particles.ParticleData}\r\n * @since 3.0.0\r\n */\r\n this.data = {\r\n tint: { min: 0xffffff, max: 0xffffff },\r\n alpha: { min: 1, max: 1 },\r\n rotate: { min: 0, max: 0 },\r\n scaleX: { min: 1, max: 1 },\r\n scaleY: { min: 1, max: 1 },\r\n x: { min: 0, max: 0 },\r\n y: { min: 0, max: 0 },\r\n accelerationX: { min: 0, max: 0 },\r\n accelerationY: { min: 0, max: 0 },\r\n maxVelocityX: { min: 0, max: 0 },\r\n maxVelocityY: { min: 0, max: 0 },\r\n moveToX: { min: 0, max: 0 },\r\n moveToY: { min: 0, max: 0 },\r\n bounce: { min: 0, max: 0 }\r\n };\r\n\r\n /**\r\n * Internal private value.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#isCropped\r\n * @type {boolean}\r\n * @private\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.isCropped = false;\r\n\r\n /**\r\n * A reference to the Scene to which this Game Object belongs.\r\n *\r\n * Game Objects can only belong to one Scene.\r\n *\r\n * You should consider this property as being read-only. You cannot move a\r\n * Game Object to another Scene by simply changing it.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.60.0\r\n */\r\n this.scene = emitter.scene;\r\n\r\n /**\r\n * The Animation State component of this Particle.\r\n *\r\n * This component provides features to apply animations to this Particle.\r\n * It is responsible for playing, loading, queuing animations for later playback,\r\n * mixing between animations and setting the current animation frame to this Particle.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#anims\r\n * @type {Phaser.Animations.AnimationState}\r\n * @since 3.60.0\r\n */\r\n this.anims = new AnimationState(this);\r\n\r\n /**\r\n * A rectangle that holds the bounds of this Particle after a call to\r\n * the `Particle.getBounds` method has been made.\r\n *\r\n * @name Phaser.GameObjects.Particles.Particle#bounds\r\n * @type {Phaser.Geom.Rectangle}\r\n * @since 3.60.0\r\n */\r\n this.bounds = new Rectangle();\r\n },\r\n\r\n /**\r\n * The Event Emitter proxy.\r\n *\r\n * Passes on all parameters to the `ParticleEmitter` to emit directly.\r\n *\r\n * @method Phaser.GameObjects.Particles.Particle#emit\r\n * @since 3.60.0\r\n *\r\n * @param {(string|Symbol)} event - The event name.\r\n * @param {any} [a1] - Optional argument 1.\r\n * @param {any} [a2] - Optional argument 2.\r\n * @param {any} [a3] - Optional argument 3.\r\n * @param {any} [a4] - Optional argument 4.\r\n * @param {any} [a5] - Optional argument 5.\r\n *\r\n * @return {boolean} `true` if the event had listeners, else `false`.\r\n */\r\n emit: function (event, a1, a2, a3, a4, a5)\r\n {\r\n return this.emitter.emit(event, a1, a2, a3, a4, a5);\r\n },\r\n\r\n /**\r\n * Checks to see if this Particle is alive and updating.\r\n *\r\n * @method Phaser.GameObjects.Particles.Particle#isAlive\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} `true` if this Particle is alive and updating, otherwise `false`.\r\n */\r\n isAlive: function ()\r\n {\r\n return (this.lifeCurrent > 0);\r\n },\r\n\r\n /**\r\n * Kills this particle. This sets the `lifeCurrent` value to 0, which forces\r\n * the Particle to be removed the next time its parent Emitter runs an update.\r\n *\r\n * @method Phaser.GameObjects.Particles.Particle#kill\r\n * @since 3.60.0\r\n */\r\n kill: function ()\r\n {\r\n this.lifeCurrent = 0;\r\n },\r\n\r\n /**\r\n * Sets the position of this particle to the given x/y coordinates.\r\n *\r\n * If the parameters are left undefined, it resets the particle back to 0x0.\r\n *\r\n * @method Phaser.GameObjects.Particles.Particle#setPosition\r\n * @since 3.60.0\r\n *\r\n * @param {number} [x=0] - The x coordinate to set this Particle to.\r\n * @param {number} [y=0] - The y coordinate to set this Particle to.\r\n */\r\n setPosition: function (x, y)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n\r\n this.x = x;\r\n this.y = y;\r\n },\r\n\r\n /**\r\n * Starts this Particle from the given coordinates.\r\n *\r\n * @method Phaser.GameObjects.Particles.Particle#fire\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x] - The x coordinate to launch this Particle from.\r\n * @param {number} [y] - The y coordinate to launch this Particle from.\r\n *\r\n * @return {boolean} `true` if the Particle is alive, or `false` if it was spawned inside a DeathZone.\r\n */\r\n fire: function (x, y)\r\n {\r\n var emitter = this.emitter;\r\n var ops = emitter.ops;\r\n\r\n var anim = emitter.getAnim();\r\n\r\n if (anim)\r\n {\r\n this.anims.play(anim);\r\n }\r\n else\r\n {\r\n this.frame = emitter.getFrame();\r\n this.texture = this.frame.texture;\r\n }\r\n\r\n if (!this.frame)\r\n {\r\n throw new Error('Particle has no texture frame');\r\n }\r\n\r\n // Updates particle.x and particle.y during this call\r\n emitter.getEmitZone(this);\r\n\r\n if (x === undefined)\r\n {\r\n this.x += ops.x.onEmit(this, 'x');\r\n }\r\n else if (ops.x.steps > 0)\r\n {\r\n // EmitterOp is stepped but x was forced (follower?) so use it\r\n this.x += x + ops.x.onEmit(this, 'x');\r\n }\r\n else\r\n {\r\n this.x += x;\r\n }\r\n\r\n if (y === undefined)\r\n {\r\n this.y += ops.y.onEmit(this, 'y');\r\n }\r\n else if (ops.y.steps > 0)\r\n {\r\n // EmitterOp is stepped but y was forced (follower?) so use it\r\n this.y += y + ops.y.onEmit(this, 'y');\r\n }\r\n else\r\n {\r\n this.y += y;\r\n }\r\n\r\n this.life = ops.lifespan.onEmit(this, 'lifespan');\r\n this.lifeCurrent = this.life;\r\n this.lifeT = 0;\r\n\r\n this.delayCurrent = ops.delay.onEmit(this, 'delay');\r\n this.holdCurrent = ops.hold.onEmit(this, 'hold');\r\n\r\n this.scaleX = ops.scaleX.onEmit(this, 'scaleX');\r\n this.scaleY = (ops.scaleY.active) ? ops.scaleY.onEmit(this, 'scaleY') : this.scaleX;\r\n\r\n this.angle = ops.rotate.onEmit(this, 'rotate');\r\n\r\n this.rotation = DegToRad(this.angle);\r\n\r\n emitter.worldMatrix.transformPoint(this.x, this.y, this.worldPosition);\r\n\r\n // Check we didn't spawn in the middle of a DeathZone\r\n if (this.delayCurrent === 0 && emitter.getDeathZone(this))\r\n {\r\n this.lifeCurrent = 0;\r\n\r\n return false;\r\n }\r\n\r\n var sx = ops.speedX.onEmit(this, 'speedX');\r\n var sy = (ops.speedY.active) ? ops.speedY.onEmit(this, 'speedY') : sx;\r\n\r\n if (emitter.radial)\r\n {\r\n var rad = DegToRad(ops.angle.onEmit(this, 'angle'));\r\n\r\n this.velocityX = Math.cos(rad) * Math.abs(sx);\r\n this.velocityY = Math.sin(rad) * Math.abs(sy);\r\n }\r\n else if (emitter.moveTo)\r\n {\r\n var mx = ops.moveToX.onEmit(this, 'moveToX');\r\n var my = ops.moveToY.onEmit(this, 'moveToY');\r\n var lifeS = this.life / 1000;\r\n\r\n this.velocityX = (mx - this.x) / lifeS;\r\n this.velocityY = (my - this.y) / lifeS;\r\n }\r\n else\r\n {\r\n this.velocityX = sx;\r\n this.velocityY = sy;\r\n }\r\n\r\n if (emitter.acceleration)\r\n {\r\n this.accelerationX = ops.accelerationX.onEmit(this, 'accelerationX');\r\n this.accelerationY = ops.accelerationY.onEmit(this, 'accelerationY');\r\n }\r\n\r\n this.maxVelocityX = ops.maxVelocityX.onEmit(this, 'maxVelocityX');\r\n this.maxVelocityY = ops.maxVelocityY.onEmit(this, 'maxVelocityY');\r\n\r\n this.bounce = ops.bounce.onEmit(this, 'bounce');\r\n\r\n this.alpha = ops.alpha.onEmit(this, 'alpha');\r\n\r\n if (ops.color.active)\r\n {\r\n this.tint = ops.color.onEmit(this, 'tint');\r\n }\r\n else\r\n {\r\n this.tint = ops.tint.onEmit(this, 'tint');\r\n }\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * The main update method for this Particle.\r\n *\r\n * Updates its life values, computes the velocity and repositions the Particle.\r\n *\r\n * @method Phaser.GameObjects.Particles.Particle#update\r\n * @since 3.0.0\r\n *\r\n * @param {number} delta - The delta time in ms.\r\n * @param {number} step - The delta value divided by 1000.\r\n * @param {Phaser.GameObjects.Particles.ParticleProcessor[]} processors - An array of all active Particle Processors.\r\n *\r\n * @return {boolean} Returns `true` if this Particle has now expired and should be removed, otherwise `false` if still active.\r\n */\r\n update: function (delta, step, processors)\r\n {\r\n if (this.lifeCurrent <= 0)\r\n {\r\n // Particle is dead via `Particle.kill` method, or being held\r\n if (this.holdCurrent > 0)\r\n {\r\n this.holdCurrent -= delta;\r\n\r\n return (this.holdCurrent <= 0);\r\n }\r\n else\r\n {\r\n return true;\r\n }\r\n }\r\n\r\n if (this.delayCurrent > 0)\r\n {\r\n this.delayCurrent -= delta;\r\n\r\n return false;\r\n }\r\n\r\n this.anims.update(0, delta);\r\n\r\n var emitter = this.emitter;\r\n var ops = emitter.ops;\r\n\r\n // How far along in life is this particle? (t = 0 to 1)\r\n var t = 1 - (this.lifeCurrent / this.life);\r\n\r\n this.lifeT = t;\r\n\r\n this.x = ops.x.onUpdate(this, 'x', t, this.x);\r\n this.y = ops.y.onUpdate(this, 'y', t, this.y);\r\n\r\n if (emitter.moveTo)\r\n {\r\n var mx = ops.moveToX.onUpdate(this, 'moveToX', t, emitter.moveToX);\r\n var my = ops.moveToY.onUpdate(this, 'moveToY', t, emitter.moveToY);\r\n var lifeS = this.lifeCurrent / 1000;\r\n\r\n this.velocityX = (mx - this.x) / lifeS;\r\n this.velocityY = (my - this.y) / lifeS;\r\n }\r\n\r\n this.computeVelocity(emitter, delta, step, processors, t);\r\n\r\n this.scaleX = ops.scaleX.onUpdate(this, 'scaleX', t, this.scaleX);\r\n\r\n if (ops.scaleY.active)\r\n {\r\n this.scaleY = ops.scaleY.onUpdate(this, 'scaleY', t, this.scaleY);\r\n }\r\n else\r\n {\r\n this.scaleY = this.scaleX;\r\n }\r\n\r\n this.angle = ops.rotate.onUpdate(this, 'rotate', t, this.angle);\r\n\r\n this.rotation = DegToRad(this.angle);\r\n\r\n if (emitter.getDeathZone(this))\r\n {\r\n this.lifeCurrent = 0;\r\n\r\n // No need to go any further, particle has been killed\r\n return true;\r\n }\r\n\r\n this.alpha = Clamp(ops.alpha.onUpdate(this, 'alpha', t, this.alpha), 0, 1);\r\n\r\n if (ops.color.active)\r\n {\r\n this.tint = ops.color.onUpdate(this, 'color', t, this.tint);\r\n }\r\n else\r\n {\r\n this.tint = ops.tint.onUpdate(this, 'tint', t, this.tint);\r\n }\r\n\r\n this.lifeCurrent -= delta;\r\n\r\n return (this.lifeCurrent <= 0 && this.holdCurrent <= 0);\r\n },\r\n\r\n /**\r\n * An internal method that calculates the velocity of the Particle and\r\n * its world position. It also runs it against any active Processors\r\n * that are set on the Emitter.\r\n *\r\n * @method Phaser.GameObjects.Particles.Particle#computeVelocity\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.ParticleEmitter} emitter - The Emitter that is updating this Particle.\r\n * @param {number} delta - The delta time in ms.\r\n * @param {number} step - The delta value divided by 1000.\r\n * @param {Phaser.GameObjects.Particles.ParticleProcessor[]} processors - An array of all active Particle Processors.\r\n * @param {number} t - The current normalized lifetime of the particle, between 0 (birth) and 1 (death).\r\n */\r\n computeVelocity: function (emitter, delta, step, processors, t)\r\n {\r\n var ops = emitter.ops;\r\n\r\n var vx = this.velocityX;\r\n var vy = this.velocityY;\r\n\r\n var ax = ops.accelerationX.onUpdate(this, 'accelerationX', t, this.accelerationX);\r\n var ay = ops.accelerationY.onUpdate(this, 'accelerationY', t, this.accelerationY);\r\n\r\n var mx = ops.maxVelocityX.onUpdate(this, 'maxVelocityX', t, this.maxVelocityX);\r\n var my = ops.maxVelocityY.onUpdate(this, 'maxVelocityY', t, this.maxVelocityY);\r\n\r\n this.bounce = ops.bounce.onUpdate(this, 'bounce', t, this.bounce);\r\n\r\n vx += (emitter.gravityX * step) + (ax * step);\r\n vy += (emitter.gravityY * step) + (ay * step);\r\n\r\n vx = Clamp(vx, -mx, mx);\r\n vy = Clamp(vy, -my, my);\r\n\r\n this.velocityX = vx;\r\n this.velocityY = vy;\r\n\r\n // Integrate back in to the position\r\n this.x += vx * step;\r\n this.y += vy * step;\r\n\r\n emitter.worldMatrix.transformPoint(this.x, this.y, this.worldPosition);\r\n\r\n // Apply any additional processors (these can update velocity and/or position)\r\n for (var i = 0; i < processors.length; i++)\r\n {\r\n var processor = processors[i];\r\n\r\n if (processor.active)\r\n {\r\n processor.update(this, delta, step, t);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * This is a NOOP method and does nothing when called.\r\n *\r\n * @method Phaser.GameObjects.Particles.Particle#setSizeToFrame\r\n * @since 3.60.0\r\n */\r\n setSizeToFrame: function ()\r\n {\r\n // NOOP\r\n },\r\n\r\n /**\r\n * Gets the bounds of this particle as a Geometry Rectangle, factoring in any\r\n * transforms of the parent emitter and anything else above it in the display list.\r\n *\r\n * Once calculated the bounds can be accessed via the `Particle.bounds` property.\r\n *\r\n * @method Phaser.GameObjects.Particles.Particle#getBounds\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} [matrix] - Optional transform matrix to apply to this particle.\r\n *\r\n * @return {Phaser.Geom.Rectangle} A Rectangle containing the transformed bounds of this particle.\r\n */\r\n getBounds: function (matrix)\r\n {\r\n if (matrix === undefined) { matrix = this.emitter.getWorldTransformMatrix(); }\r\n\r\n var sx = Math.abs(matrix.scaleX) * this.scaleX;\r\n var sy = Math.abs(matrix.scaleY) * this.scaleY;\r\n\r\n var x = this.x;\r\n var y = this.y;\r\n var rotation = this.rotation;\r\n var width = (this.frame.width * sx) / 2;\r\n var height = (this.frame.height * sy) / 2;\r\n\r\n var bounds = this.bounds;\r\n\r\n var topLeft = new Vector2(x - width, y - height);\r\n var topRight = new Vector2(x + width, y - height);\r\n var bottomLeft = new Vector2(x - width, y + height);\r\n var bottomRight = new Vector2(x + width, y + height);\r\n\r\n if (rotation !== 0)\r\n {\r\n RotateAround(topLeft, x, y, rotation);\r\n RotateAround(topRight, x, y, rotation);\r\n RotateAround(bottomLeft, x, y, rotation);\r\n RotateAround(bottomRight, x, y, rotation);\r\n }\r\n\r\n matrix.transformPoint(topLeft.x, topLeft.y, topLeft);\r\n matrix.transformPoint(topRight.x, topRight.y, topRight);\r\n matrix.transformPoint(bottomLeft.x, bottomLeft.y, bottomLeft);\r\n matrix.transformPoint(bottomRight.x, bottomRight.y, bottomRight);\r\n\r\n bounds.x = Math.min(topLeft.x, topRight.x, bottomLeft.x, bottomRight.x);\r\n bounds.y = Math.min(topLeft.y, topRight.y, bottomLeft.y, bottomRight.y);\r\n bounds.width = Math.max(topLeft.x, topRight.x, bottomLeft.x, bottomRight.x) - bounds.x;\r\n bounds.height = Math.max(topLeft.y, topRight.y, bottomLeft.y, bottomRight.y) - bounds.y;\r\n\r\n return bounds;\r\n },\r\n\r\n /**\r\n * Destroys this Particle.\r\n *\r\n * @method Phaser.GameObjects.Particles.Particle#destroy\r\n * @since 3.60.0\r\n */\r\n destroy: function ()\r\n {\r\n this.anims.destroy();\r\n\r\n this.anims = null;\r\n this.emitter = null;\r\n this.texture = null;\r\n this.frame = null;\r\n this.scene = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Particle;\r\n\n\n/***/ }),\n\n/***/ 69601:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar ParticleProcessor = __webpack_require__(20286);\r\nvar Rectangle = __webpack_require__(87841);\r\n\r\n/**\r\n * @classdesc\r\n * The Particle Bounds Processor.\r\n *\r\n * Defines a rectangular region, in world space, within which particle movement\r\n * is restrained.\r\n *\r\n * Use the properties `collideLeft`, `collideRight`, `collideTop` and\r\n * `collideBottom` to control if a particle will rebound off the sides\r\n * of this boundary, or not.\r\n *\r\n * This happens when the particles worldPosition x/y coordinate hits the boundary.\r\n *\r\n * The strength of the rebound is determined by the `Particle.bounce` property.\r\n *\r\n * @class ParticleBounds\r\n * @extends Phaser.GameObjects.Particles.ParticleProcessor\r\n * @memberof Phaser.GameObjects.Particles\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {number} x - The x position (top-left) of the bounds, in world space.\r\n * @param {number} y - The y position (top-left) of the bounds, in world space.\r\n * @param {number} width - The width of the bounds.\r\n * @param {number} height - The height of the bounds.\r\n * @param {boolean} [collideLeft=true] - Whether particles interact with the left edge of the bounds.\r\n * @param {boolean} [collideRight=true] - Whether particles interact with the right edge of the bounds.\r\n * @param {boolean} [collideTop=true] - Whether particles interact with the top edge of the bounds.\r\n * @param {boolean} [collideBottom=true] - Whether particles interact with the bottom edge of the bounds.\r\n */\r\nvar ParticleBounds = new Class({\r\n\r\n Extends: ParticleProcessor,\r\n\r\n initialize:\r\n\r\n function ParticleBounds (x, y, width, height, collideLeft, collideRight, collideTop, collideBottom)\r\n {\r\n if (collideLeft === undefined) { collideLeft = true; }\r\n if (collideRight === undefined) { collideRight = true; }\r\n if (collideTop === undefined) { collideTop = true; }\r\n if (collideBottom === undefined) { collideBottom = true; }\r\n\r\n ParticleProcessor.call(this, x, y, true);\r\n\r\n /**\r\n * A rectangular boundary constraining particle movement. Use the Emitter properties `collideLeft`,\r\n * `collideRight`, `collideTop` and `collideBottom` to control if a particle will rebound off\r\n * the sides of this boundary, or not. This happens when the particles x/y coordinate hits\r\n * the boundary.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleBounds#bounds\r\n * @type {Phaser.Geom.Rectangle}\r\n * @since 3.60.0\r\n */\r\n this.bounds = new Rectangle(x, y, width, height);\r\n\r\n /**\r\n * Whether particles interact with the left edge of the emitter {@link Phaser.GameObjects.Particles.ParticleEmitter#bounds}.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleBounds#collideLeft\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.60.0\r\n */\r\n this.collideLeft = collideLeft;\r\n\r\n /**\r\n * Whether particles interact with the right edge of the emitter {@link Phaser.GameObjects.Particles.ParticleBounds#bounds}.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleBounds#collideRight\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.60.0\r\n */\r\n this.collideRight = collideRight;\r\n\r\n /**\r\n * Whether particles interact with the top edge of the emitter {@link Phaser.GameObjects.Particles.ParticleBounds#bounds}.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleBounds#collideTop\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.60.0\r\n */\r\n this.collideTop = collideTop;\r\n\r\n /**\r\n * Whether particles interact with the bottom edge of the emitter {@link Phaser.GameObjects.Particles.ParticleBounds#bounds}.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleBounds#collideBottom\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.60.0\r\n */\r\n this.collideBottom = collideBottom;\r\n },\r\n\r\n /**\r\n * Takes a Particle and updates it against the bounds.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleBounds#update\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.Particle} particle - The Particle to update.\r\n */\r\n update: function (particle)\r\n {\r\n var bounds = this.bounds;\r\n var bounce = -particle.bounce;\r\n var pos = particle.worldPosition;\r\n\r\n if (pos.x < bounds.x && this.collideLeft)\r\n {\r\n particle.x += bounds.x - pos.x;\r\n particle.velocityX *= bounce;\r\n }\r\n else if (pos.x > bounds.right && this.collideRight)\r\n {\r\n particle.x -= pos.x - bounds.right;\r\n particle.velocityX *= bounce;\r\n }\r\n\r\n if (pos.y < bounds.y && this.collideTop)\r\n {\r\n particle.y += bounds.y - pos.y;\r\n particle.velocityY *= bounce;\r\n }\r\n else if (pos.y > bounds.bottom && this.collideBottom)\r\n {\r\n particle.y -= pos.y - bounds.bottom;\r\n particle.velocityY *= bounce;\r\n }\r\n }\r\n\r\n});\r\n\r\nmodule.exports = ParticleBounds;\r\n\n\n/***/ }),\n\n/***/ 31600:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar ComponentsToJSON = __webpack_require__(53774);\r\nvar CopyFrom = __webpack_require__(43459);\r\nvar DeathZone = __webpack_require__(26388);\r\nvar EdgeZone = __webpack_require__(19909);\r\nvar EmitterColorOp = __webpack_require__(76472);\r\nvar EmitterOp = __webpack_require__(44777);\r\nvar Events = __webpack_require__(20696);\r\nvar GameObject = __webpack_require__(95643);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar GetRandom = __webpack_require__(26546);\r\nvar GravityWell = __webpack_require__(24502);\r\nvar HasAny = __webpack_require__(1985);\r\nvar HasValue = __webpack_require__(97022);\r\nvar Inflate = __webpack_require__(86091);\r\nvar List = __webpack_require__(73162);\r\nvar MergeRect = __webpack_require__(20074);\r\nvar MergeRight = __webpack_require__(269);\r\nvar Particle = __webpack_require__(56480);\r\nvar ParticleBounds = __webpack_require__(69601);\r\nvar RandomZone = __webpack_require__(68875);\r\nvar Rectangle = __webpack_require__(87841);\r\nvar RectangleToRectangle = __webpack_require__(59996);\r\nvar Remove = __webpack_require__(72905);\r\nvar Render = __webpack_require__(90668);\r\nvar StableSort = __webpack_require__(19186);\r\nvar TransformMatrix = __webpack_require__(61340);\r\nvar Vector2 = __webpack_require__(26099);\r\nvar Wrap = __webpack_require__(15994);\r\n\r\n/**\r\n * Names of simple configuration properties.\r\n *\r\n * @ignore\r\n */\r\nvar configFastMap = [\r\n 'active',\r\n 'advance',\r\n 'blendMode',\r\n 'colorEase',\r\n 'deathCallback',\r\n 'deathCallbackScope',\r\n 'duration',\r\n 'emitCallback',\r\n 'emitCallbackScope',\r\n 'follow',\r\n 'frequency',\r\n 'gravityX',\r\n 'gravityY',\r\n 'maxAliveParticles',\r\n 'maxParticles',\r\n 'name',\r\n 'emitting',\r\n 'particleBringToTop',\r\n 'particleClass',\r\n 'radial',\r\n 'sortCallback',\r\n 'sortOrderAsc',\r\n 'sortProperty',\r\n 'stopAfter',\r\n 'tintFill',\r\n 'timeScale',\r\n 'trackVisible',\r\n 'visible'\r\n];\r\n\r\n/**\r\n * Names of complex configuration properties.\r\n *\r\n * @ignore\r\n */\r\nvar configOpMap = [\r\n 'accelerationX',\r\n 'accelerationY',\r\n 'alpha',\r\n 'angle',\r\n 'bounce',\r\n 'color',\r\n 'delay',\r\n 'hold',\r\n 'lifespan',\r\n 'maxVelocityX',\r\n 'maxVelocityY',\r\n 'moveToX',\r\n 'moveToY',\r\n 'quantity',\r\n 'rotate',\r\n 'scaleX',\r\n 'scaleY',\r\n 'speedX',\r\n 'speedY',\r\n 'tint',\r\n 'x',\r\n 'y'\r\n];\r\n\r\n/**\r\n * @classdesc\r\n * A Particle Emitter is a special kind of Game Object that controls a pool of {@link Phaser.GameObjects.Particles.Particle Particles}.\r\n *\r\n * Particle Emitters are created via a configuration object. The properties of this object\r\n * can be specified in a variety of formats, given you plenty of scope over the values they\r\n * return, leading to complex visual effects. Here are the different forms of configuration\r\n * value you can give:\r\n *\r\n * ## An explicit static value:\r\n *\r\n * ```js\r\n * x: 400\r\n * ```\r\n *\r\n * The x value will always be 400 when the particle is spawned.\r\n *\r\n * ## A random value:\r\n *\r\n * ```js\r\n * x: [ 100, 200, 300, 400 ]\r\n * ```\r\n *\r\n * The x value will be one of the 4 elements in the given array, picked at random on emission.\r\n *\r\n * ## A custom callback:\r\n *\r\n * ```js\r\n * x: (particle, key, t, value) => {\r\n * return value + 50;\r\n * }\r\n * ```\r\n *\r\n * The x value is the result of calling this function. This is only used when the\r\n * particle is emitted, so it provides it's initial starting value. It is not used\r\n * when the particle is updated (see the onUpdate callback for that)\r\n *\r\n * ## A start / end object:\r\n *\r\n * This allows you to control the change in value between the given start and\r\n * end parameters over the course of the particles lifetime:\r\n *\r\n * ```js\r\n * scale: { start: 0, end: 1 }\r\n * ```\r\n *\r\n * The particle scale will start at 0 when emitted and ease to a scale of 1\r\n * over the course of its lifetime. You can also specify the ease function\r\n * used for this change (the default is Linear):\r\n *\r\n * ```js\r\n * scale: { start: 0, end: 1, ease: 'bounce.out' }\r\n * ```\r\n *\r\n * ## A start / end random object:\r\n *\r\n * The start and end object can have an optional `random` parameter.\r\n * This forces it to pick a random value between the two values and use\r\n * this as the starting value, then easing to the 'end' parameter over\r\n * its lifetime.\r\n *\r\n * ```js\r\n * scale: { start: 4, end: 0.5, random: true }\r\n * ```\r\n *\r\n * The particle will start with a random scale between 0.5 and 4 and then\r\n * scale to the end value over its lifetime. You can combine the above\r\n * with the `ease` parameter as well to control the value easing.\r\n *\r\n * ## An interpolation object:\r\n *\r\n * You can provide an array of values which will be used for interpolation\r\n * during the particles lifetime. You can also define the interpolation\r\n * function to be used. There are three provided: `linear` (the default),\r\n * `bezier` and `catmull`, or you can provide your own function.\r\n *\r\n * ```js\r\n * x: { values: [ 50, 500, 200, 800 ], interpolation: 'catmull' }\r\n * ```\r\n *\r\n * The particle scale will interpolate from 50 when emitted to 800 via the other\r\n * points over the course of its lifetime. You can also specify an ease function\r\n * used to control the rate of change through the values (the default is Linear):\r\n *\r\n * ```js\r\n * x: { values: [ 50, 500, 200, 800 ], interpolation: 'catmull', ease: 'bounce.out }\r\n * ```\r\n *\r\n * ## A stepped emitter object:\r\n *\r\n * The `steps` parameter allows you to control the placement of sequential\r\n * particles across the start-end range:\r\n *\r\n * ```js\r\n * x: { steps: 32, start: 0, end: 576 }\r\n * ```\r\n *\r\n * Here we have a range of 576 (start to end). This is divided into 32 steps.\r\n *\r\n * The first particle will emit at the x position of 0. The next will emit\r\n * at the next 'step' along, which would be 18. The following particle will emit\r\n * at the next step, which is 36, and so on. Because the range of 576 has been\r\n * divided by 32, creating 18 pixels steps. When a particle reaches the 'end'\r\n * value the next one will start from the beginning again.\r\n *\r\n * ## A stepped emitter object with yoyo:\r\n *\r\n * You can add the optional `yoyo` property to a stepped object:\r\n *\r\n * ```js\r\n * x: { steps: 32, start: 0, end: 576, yoyo: true }\r\n * ```\r\n *\r\n * As with the stepped emitter, particles are emitted in sequence, from 'start'\r\n * to 'end' in step sized jumps. Normally, when a stepped emitter reaches the\r\n * end it snaps around to the start value again. However, if you provide the 'yoyo'\r\n * parameter then when it reaches the end it will reverse direction and start\r\n * emitting back down to 'start' again. Depending on the effect you require this\r\n * can often look better.\r\n *\r\n * ## A min / max object:\r\n *\r\n * This allows you to pick a random float value between the min and max properties:\r\n *\r\n * ```js\r\n * x: { min: 100, max: 700 }\r\n * ```\r\n *\r\n * The x value will be a random float between min and max.\r\n *\r\n * You can force it select an integer by setting the 'int' flag:\r\n *\r\n * ```js\r\n * x: { min: 100, max: 700, int: true }\r\n * ```\r\n *\r\n * Or, you could use the 'random' array approach (see below)\r\n *\r\n * ## A random object:\r\n *\r\n * This allows you to pick a random integer value between the first and second array elements:\r\n *\r\n * ```js\r\n * x: { random: [ 100, 700 ] }\r\n * ```\r\n *\r\n * The x value will be a random integer between 100 and 700 as it takes the first\r\n * element in the 'random' array as the 'min' value and the 2nd element as the 'max' value.\r\n *\r\n * ## Custom onEmit and onUpdate callbacks:\r\n *\r\n * If the above won't give you the effect you're after, you can provide your own\r\n * callbacks that will be used when the particle is both emitted and updated:\r\n *\r\n * ```js\r\n * x: {\r\n * onEmit: (particle, key, t, value) => {\r\n * return value;\r\n * },\r\n * onUpdate: (particle, key, t, value) => {\r\n * return value;\r\n * }\r\n * }\r\n * ```\r\n *\r\n * You can provide either one or both functions. The `onEmit` is called at the\r\n * start of the particles life and defines the value of the property on birth.\r\n *\r\n * The `onUpdate` function is called every time the Particle Emitter updates\r\n * until the particle dies. Both must return a value.\r\n *\r\n * The properties are:\r\n *\r\n * particle - A reference to the Particle instance.\r\n * key - The string based key of the property, i.e. 'x' or 'lifespan'.\r\n * t - The current normalized lifetime of the particle, between 0 (birth) and 1 (death).\r\n * value - The current property value. At a minimum you should return this.\r\n *\r\n * By using the above configuration options you have an unlimited about of\r\n * control over how your particles behave.\r\n *\r\n * ## v3.55 Differences\r\n *\r\n * Prior to v3.60 Phaser used a `ParticleEmitterManager`. This was removed in v3.60\r\n * and now calling `this.add.particles` returns a `ParticleEmitter` instance instead.\r\n *\r\n * In order to streamline memory and the display list we have removed the\r\n * `ParticleEmitterManager` entirely. When you call `this.add.particles` you're now\r\n * creating a `ParticleEmitter` instance, which is being added directly to the\r\n * display list and can be manipulated just like any other Game Object, i.e.\r\n * scaled, rotated, positioned, added to a Container, etc. It now extends the\r\n * `GameObject` base class, meaning it's also an event emitter, which allowed us\r\n * to create some handy new events for particles.\r\n *\r\n * So, to create an emitter, you now give it an xy coordinate, a texture and an\r\n * emitter configuration object (you can also set this later, but most commonly\r\n * you'd do it on creation). I.e.:\r\n *\r\n * ```js\r\n * const emitter = this.add.particles(100, 300, 'flares', {\r\n * frame: 'red',\r\n * angle: { min: -30, max: 30 },\r\n * speed: 150\r\n * });\r\n * ```\r\n *\r\n * This will create a 'red flare' emitter at 100 x 300.\r\n *\r\n * Please update your code to ensure it adheres to the new function signatures.\r\n *\r\n * @class ParticleEmitter\r\n * @extends Phaser.GameObjects.GameObject\r\n * @memberof Phaser.GameObjects.Particles\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @extends Phaser.GameObjects.Components.AlphaSingle\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.Mask\r\n * @extends Phaser.GameObjects.Components.Pipeline\r\n * @extends Phaser.GameObjects.Components.PostPipeline\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n * @extends Phaser.GameObjects.Components.Texture\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} [x] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y] - The vertical position of this Game Object in the world.\r\n * @param {(string|Phaser.Textures.Texture)} [texture] - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {Phaser.Types.GameObjects.Particles.ParticleEmitterConfig} [config] - Settings for this emitter.\r\n */\r\nvar ParticleEmitter = new Class({\r\n\r\n Extends: GameObject,\r\n\r\n Mixins: [\r\n Components.AlphaSingle,\r\n Components.BlendMode,\r\n Components.Depth,\r\n Components.Mask,\r\n Components.Pipeline,\r\n Components.PostPipeline,\r\n Components.ScrollFactor,\r\n Components.Texture,\r\n Components.Transform,\r\n Components.Visible,\r\n Render\r\n ],\r\n\r\n initialize:\r\n\r\n function ParticleEmitter (scene, x, y, texture, config)\r\n {\r\n GameObject.call(this, scene, 'ParticleEmitter');\r\n\r\n /**\r\n * The Particle Class which will be emitted by this Emitter.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#particleClass\r\n * @type {function}\r\n * @default Phaser.GameObjects.Particles.Particle\r\n * @since 3.0.0\r\n * @see Phaser.Types.GameObjects.Particles.ParticleClassConstructor\r\n */\r\n this.particleClass = Particle;\r\n\r\n /**\r\n * An internal object holding the configuration for the Emitter.\r\n *\r\n * These are populated as part of the Emitter configuration parsing.\r\n *\r\n * You typically do not access them directly, but instead use the\r\n * `ParticleEmitter.setConfig` or `ParticleEmitter.updateConfig` methods.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#config\r\n * @type {Phaser.Types.GameObjects.Particles.ParticleEmitterConfig}\r\n * @since 3.85.0\r\n */\r\n this.config = null;\r\n \r\n /**\r\n * An internal object holding all of the EmitterOp instances.\r\n *\r\n * These are populated as part of the Emitter configuration parsing.\r\n *\r\n * You typically do not access them directly, but instead use the\r\n * provided getters and setters on this class, such as `ParticleEmitter.speedX` etc.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#ops\r\n * @type {Phaser.Types.GameObjects.Particles.ParticleEmitterOps}\r\n * @since 3.60.0\r\n */\r\n this.ops = {\r\n accelerationX: new EmitterOp('accelerationX', 0),\r\n accelerationY: new EmitterOp('accelerationY', 0),\r\n alpha: new EmitterOp('alpha', 1),\r\n angle: new EmitterOp('angle', { min: 0, max: 360 }, true),\r\n bounce: new EmitterOp('bounce', 0),\r\n color: new EmitterColorOp('color'),\r\n delay: new EmitterOp('delay', 0, true),\r\n hold: new EmitterOp('hold', 0, true),\r\n lifespan: new EmitterOp('lifespan', 1000, true),\r\n maxVelocityX: new EmitterOp('maxVelocityX', 10000),\r\n maxVelocityY: new EmitterOp('maxVelocityY', 10000),\r\n moveToX: new EmitterOp('moveToX', 0),\r\n moveToY: new EmitterOp('moveToY', 0),\r\n quantity: new EmitterOp('quantity', 1, true),\r\n rotate: new EmitterOp('rotate', 0),\r\n scaleX: new EmitterOp('scaleX', 1),\r\n scaleY: new EmitterOp('scaleY', 1),\r\n speedX: new EmitterOp('speedX', 0, true),\r\n speedY: new EmitterOp('speedY', 0, true),\r\n tint: new EmitterOp('tint', 0xffffff),\r\n x: new EmitterOp('x', 0),\r\n y: new EmitterOp('y', 0)\r\n };\r\n\r\n /**\r\n * A radial emitter will emit particles in all directions between angle min and max,\r\n * using {@link Phaser.GameObjects.Particles.ParticleEmitter#speed} as the value. If set to false then this acts as a point Emitter.\r\n * A point emitter will emit particles only in the direction derived from the speedX and speedY values.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#radial\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n * @see Phaser.GameObjects.Particles.ParticleEmitter#setRadial\r\n */\r\n this.radial = true;\r\n\r\n /**\r\n * Horizontal acceleration applied to emitted particles, in pixels per second squared.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#gravityX\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n * @see Phaser.GameObjects.Particles.ParticleEmitter#setGravity\r\n */\r\n this.gravityX = 0;\r\n\r\n /**\r\n * Vertical acceleration applied to emitted particles, in pixels per second squared.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#gravityY\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n * @see Phaser.GameObjects.Particles.ParticleEmitter#setGravity\r\n */\r\n this.gravityY = 0;\r\n\r\n /**\r\n * Whether accelerationX and accelerationY are non-zero. Set automatically during configuration.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#acceleration\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.acceleration = false;\r\n\r\n /**\r\n * Whether moveToX and moveToY are set. Set automatically during configuration.\r\n *\r\n * When true the particles move toward the moveToX and moveToY coordinates and arrive at the end of their life.\r\n * Emitter angle, speedX, and speedY are ignored.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#moveTo\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.moveTo = false;\r\n\r\n /**\r\n * A function to call when a particle is emitted.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#emitCallback\r\n * @type {?Phaser.Types.GameObjects.Particles.ParticleEmitterCallback}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.emitCallback = null;\r\n\r\n /**\r\n * The calling context for {@link Phaser.GameObjects.Particles.ParticleEmitter#emitCallback}.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#emitCallbackScope\r\n * @type {?*}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.emitCallbackScope = null;\r\n\r\n /**\r\n * A function to call when a particle dies.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#deathCallback\r\n * @type {?Phaser.Types.GameObjects.Particles.ParticleDeathCallback}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.deathCallback = null;\r\n\r\n /**\r\n * The calling context for {@link Phaser.GameObjects.Particles.ParticleEmitter#deathCallback}.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#deathCallbackScope\r\n * @type {?*}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.deathCallbackScope = null;\r\n\r\n /**\r\n * Set to hard limit the amount of particle objects this emitter is allowed to create\r\n * in total. This is the number of `Particle` instances it can create, not the number\r\n * of 'alive' particles.\r\n *\r\n * 0 means unlimited.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#maxParticles\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.maxParticles = 0;\r\n\r\n /**\r\n * The maximum number of alive and rendering particles this emitter will update.\r\n * When this limit is reached, a particle needs to die before another can be emitted.\r\n *\r\n * 0 means no limits.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#maxAliveParticles\r\n * @type {number}\r\n * @default 0\r\n * @since 3.60.0\r\n */\r\n this.maxAliveParticles = 0;\r\n\r\n /**\r\n * If set, either via the Emitter config, or by directly setting this property,\r\n * the Particle Emitter will stop emitting particles once this total has been\r\n * reached. It will then enter a 'stopped' state, firing the `STOP`\r\n * event. Note that entering a stopped state doesn't mean all the particles\r\n * have finished, just that it's not emitting any further ones.\r\n *\r\n * To know when the final particle expires, listen for the COMPLETE event.\r\n *\r\n * Use this if you wish to launch an exact number of particles and then stop\r\n * your emitter afterwards.\r\n *\r\n * The counter is reset each time the `ParticleEmitter.start` method is called.\r\n *\r\n * 0 means the emitter will not stop based on total emitted particles.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#stopAfter\r\n * @type {number}\r\n * @default 0\r\n * @since 3.60.0\r\n */\r\n this.stopAfter = 0;\r\n\r\n /**\r\n * The number of milliseconds this emitter will emit particles for when in flow mode,\r\n * before it stops emission. A value of 0 (the default) means there is no duration.\r\n *\r\n * When the duration expires the `STOP` event is emitted. Note that entering a\r\n * stopped state doesn't mean all the particles have finished, just that it's\r\n * not emitting any further ones.\r\n *\r\n * To know when the final particle expires, listen for the COMPLETE event.\r\n *\r\n * The counter is reset each time the `ParticleEmitter.start` method is called.\r\n *\r\n * 0 means the emitter will not stop based on duration.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#duration\r\n * @type {number}\r\n * @default 0\r\n * @since 3.60.0\r\n */\r\n this.duration = 0;\r\n\r\n /**\r\n * For a flow emitter, the time interval (>= 0) between particle flow cycles in ms.\r\n * A value of 0 means there is one particle flow cycle for each logic update (the maximum flow frequency). This is the default setting.\r\n * For an exploding emitter, this value will be -1.\r\n * Calling {@link Phaser.GameObjects.Particles.ParticleEmitter#flow} also puts the emitter in flow mode (frequency >= 0).\r\n * Calling {@link Phaser.GameObjects.Particles.ParticleEmitter#explode} also puts the emitter in explode mode (frequency = -1).\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#frequency\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n * @see Phaser.GameObjects.Particles.ParticleEmitter#setFrequency\r\n */\r\n this.frequency = 0;\r\n\r\n /**\r\n * Controls if the emitter is currently emitting a particle flow (when frequency >= 0).\r\n *\r\n * Already alive particles will continue to update until they expire.\r\n *\r\n * Controlled by {@link Phaser.GameObjects.Particles.ParticleEmitter#start} and {@link Phaser.GameObjects.Particles.ParticleEmitter#stop}.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#emitting\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.emitting = true;\r\n\r\n /**\r\n * Newly emitted particles are added to the top of the particle list, i.e. rendered above those already alive.\r\n *\r\n * Set to false to send them to the back.\r\n *\r\n * Also see the `sortOrder` property for more complex particle sorting.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#particleBringToTop\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.particleBringToTop = true;\r\n\r\n /**\r\n * The time rate applied to active particles, affecting lifespan, movement, and tweens. Values larger than 1 are faster than normal.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#timeScale\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n this.timeScale = 1;\r\n\r\n /**\r\n * An array containing Particle Emission Zones. These can be either EdgeZones or RandomZones.\r\n *\r\n * Particles are emitted from a randomly selected zone from this array.\r\n *\r\n * Prior to Phaser v3.60 an Emitter could only have one single Emission Zone.\r\n * In 3.60 they can now have an array of Emission Zones.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#emitZones\r\n * @type {Phaser.Types.GameObjects.Particles.EmitZoneObject[]}\r\n * @since 3.60.0\r\n * @see Phaser.GameObjects.Particles.ParticleEmitter#setEmitZone\r\n */\r\n this.emitZones = [];\r\n\r\n /**\r\n * An array containing Particle Death Zone objects. A particle is immediately killed as soon as its x/y coordinates\r\n * intersect with any of the configured Death Zones.\r\n *\r\n * Prior to Phaser v3.60 an Emitter could only have one single Death Zone.\r\n * In 3.60 they can now have an array of Death Zones.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#deathZones\r\n * @type {Phaser.GameObjects.Particles.Zones.DeathZone[]}\r\n * @since 3.60.0\r\n * @see Phaser.GameObjects.Particles.ParticleEmitter#setDeathZone\r\n */\r\n this.deathZones = [];\r\n\r\n /**\r\n * An optional Rectangle object that is used during rendering to cull Particles from\r\n * display. For example, if your particles are limited to only move within a 300x300\r\n * sized area from their origin, then you can set this Rectangle to those dimensions.\r\n *\r\n * The renderer will check to see if the `viewBounds` Rectangle intersects with the\r\n * Camera bounds during the render step and if not it will skip rendering the Emitter\r\n * entirely.\r\n *\r\n * This allows you to create many emitters in a Scene without the cost of\r\n * rendering if the contents aren't visible.\r\n *\r\n * Note that the Emitter will not perform any checks to see if the Particles themselves\r\n * are outside of these bounds, or not. It will simply check the bounds against the\r\n * camera. Use the `getBounds` method with the `advance` parameter to help define\r\n * the location and placement of the view bounds.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#viewBounds\r\n * @type {?Phaser.Geom.Rectangle}\r\n * @default null\r\n * @since 3.60.0\r\n * @see Phaser.GameObjects.Particles.ParticleEmitter#setViewBounds\r\n */\r\n this.viewBounds = null;\r\n\r\n /**\r\n * A Game Object whose position is used as the particle origin.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#follow\r\n * @type {?Phaser.Types.Math.Vector2Like}\r\n * @default null\r\n * @since 3.0.0\r\n * @see Phaser.GameObjects.Particles.ParticleEmitter#startFollow\r\n * @see Phaser.GameObjects.Particles.ParticleEmitter#stopFollow\r\n */\r\n this.follow = null;\r\n\r\n /**\r\n * The offset of the particle origin from the {@link Phaser.GameObjects.Particles.ParticleEmitter#follow} target.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#followOffset\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n * @see Phaser.GameObjects.Particles.ParticleEmitter#startFollow\r\n */\r\n this.followOffset = new Vector2();\r\n\r\n /**\r\n * Whether the emitter's {@link Phaser.GameObjects.Particles.ParticleEmitter#visible} state will track\r\n * the {@link Phaser.GameObjects.Particles.ParticleEmitter#follow} target's visibility state.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#trackVisible\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n * @see Phaser.GameObjects.Particles.ParticleEmitter#startFollow\r\n */\r\n this.trackVisible = false;\r\n\r\n /**\r\n * The texture frames assigned to particles.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#frames\r\n * @type {Phaser.Textures.Frame[]}\r\n * @since 3.0.0\r\n */\r\n this.frames = [];\r\n\r\n /**\r\n * Whether texture {@link Phaser.GameObjects.Particles.ParticleEmitter#frames} are selected at random.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#randomFrame\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n * @see Phaser.GameObjects.Particles.ParticleEmitter#setEmitterFrame\r\n */\r\n this.randomFrame = true;\r\n\r\n /**\r\n * The number of consecutive particles that receive a single texture frame (per frame cycle).\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#frameQuantity\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n * @see Phaser.GameObjects.Particles.ParticleEmitter#setEmitterFrame\r\n */\r\n this.frameQuantity = 1;\r\n\r\n /**\r\n * The animations assigned to particles.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#anims\r\n * @type {string[]}\r\n * @since 3.60.0\r\n */\r\n this.anims = [];\r\n\r\n /**\r\n * Whether animations {@link Phaser.GameObjects.Particles.ParticleEmitter#anims} are selected at random.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#randomAnim\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.60.0\r\n * @see Phaser.GameObjects.Particles.ParticleEmitter#setAnim\r\n */\r\n this.randomAnim = true;\r\n\r\n /**\r\n * The number of consecutive particles that receive a single animation (per frame cycle).\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#animQuantity\r\n * @type {number}\r\n * @default 1\r\n * @since 3.60.0\r\n * @see Phaser.GameObjects.Particles.ParticleEmitter#setAnim\r\n */\r\n this.animQuantity = 1;\r\n\r\n /**\r\n * An array containing all currently inactive Particle instances.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#dead\r\n * @type {Phaser.GameObjects.Particles.Particle[]}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this.dead = [];\r\n\r\n /**\r\n * An array containing all currently live and rendering Particle instances.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#alive\r\n * @type {Phaser.GameObjects.Particles.Particle[]}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this.alive = [];\r\n\r\n /**\r\n * Internal array that holds counter data:\r\n *\r\n * 0 - flowCounter - The time until next flow cycle.\r\n * 1 - frameCounter - Counts up to {@link Phaser.GameObjects.Particles.ParticleEmitter#frameQuantity}.\r\n * 2 - animCounter - Counts up to animQuantity.\r\n * 3 - elapsed - The time remaining until the `duration` limit is reached.\r\n * 4 - stopCounter - The number of particles remaining until `stopAfter` limit is reached.\r\n * 5 - completeFlag - Has the COMPLETE event been emitted?\r\n * 6 - zoneIndex - The emit zone index counter.\r\n * 7 - zoneTotal - The emit zone total counter.\r\n * 8 - currentFrame - The current texture frame, as an index of {@link Phaser.GameObjects.Particles.ParticleEmitter#frames}.\r\n * 9 - currentAnim - The current animation, as an index of {@link Phaser.GameObjects.Particles.ParticleEmitter#anims}.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#counters\r\n * @type {Float32Array}\r\n * @private\r\n * @since 3.60.0\r\n */\r\n this.counters = new Float32Array(10);\r\n\r\n /**\r\n * An internal property used to tell when the emitter is in fast-forwarc mode.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#skipping\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.60.0\r\n */\r\n this.skipping = false;\r\n\r\n /**\r\n * An internal Transform Matrix used to cache this emitters world matrix.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#worldMatrix\r\n * @type {Phaser.GameObjects.Components.TransformMatrix}\r\n * @since 3.60.0\r\n */\r\n this.worldMatrix = new TransformMatrix();\r\n\r\n /**\r\n * Optionally sort the particles before they render based on this\r\n * property. The property must exist on the `Particle` class, such\r\n * as `y`, `lifeT`, `scaleX`, etc.\r\n *\r\n * When set this overrides the `particleBringToTop` setting.\r\n *\r\n * To reset this and disable sorting, so this property to an empty string.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#sortProperty\r\n * @type {string}\r\n * @since 3.60.0\r\n */\r\n this.sortProperty = '';\r\n\r\n /**\r\n * When `sortProperty` is defined this controls the sorting order,\r\n * either ascending or descending. Toggle to control the visual effect.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#sortOrderAsc\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.sortOrderAsc = true;\r\n\r\n /**\r\n * The callback used to sort the particles. Only used if `sortProperty`\r\n * has been set. Set this via the `setSortCallback` method.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#sortCallback\r\n * @type {?Phaser.Types.GameObjects.Particles.ParticleSortCallback}\r\n * @since 3.60.0\r\n */\r\n this.sortCallback = this.depthSortCallback;\r\n\r\n /**\r\n * A list of Particle Processors being managed by this Emitter.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#processors\r\n * @type {Phaser.Structs.List.}\r\n * @since 3.60.0\r\n */\r\n this.processors = new List(this);\r\n\r\n /**\r\n * The tint fill mode used by the Particles in this Emitter.\r\n *\r\n * `false` = An additive tint (the default), where vertices colors are blended with the texture.\r\n * `true` = A fill tint, where the vertices colors replace the texture, but respects texture alpha.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#tintFill\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.60.0\r\n */\r\n this.tintFill = false;\r\n\r\n this.initPipeline();\r\n this.initPostPipeline();\r\n\r\n this.setPosition(x, y);\r\n this.setTexture(texture);\r\n\r\n if (config)\r\n {\r\n this.setConfig(config);\r\n }\r\n },\r\n\r\n // Overrides Game Object method\r\n addedToScene: function ()\r\n {\r\n this.scene.sys.updateList.add(this);\r\n },\r\n\r\n // Overrides Game Object method\r\n removedFromScene: function ()\r\n {\r\n this.scene.sys.updateList.remove(this);\r\n },\r\n\r\n /**\r\n * Takes an Emitter Configuration file and resets this Emitter, using any\r\n * properties defined in the config to then set it up again.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#setConfig\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Particles.ParticleEmitterConfig} config - Settings for this emitter.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n setConfig: function (config)\r\n {\r\n if (!config)\r\n {\r\n return this;\r\n }\r\n\r\n this.config = config;\r\n\r\n var i = 0;\r\n var key = '';\r\n\r\n var ops = this.ops;\r\n\r\n for (i = 0; i < configOpMap.length; i++)\r\n {\r\n key = configOpMap[i];\r\n\r\n ops[key].loadConfig(config);\r\n }\r\n\r\n for (i = 0; i < configFastMap.length; i++)\r\n {\r\n key = configFastMap[i];\r\n\r\n // Only update properties from their current state if they exist in the given config\r\n if (HasValue(config, key))\r\n {\r\n this[key] = GetFastValue(config, key);\r\n }\r\n }\r\n\r\n this.acceleration = (this.accelerationX !== 0 || this.accelerationY !== 0);\r\n\r\n this.moveTo = (this.moveToX !== 0 && this.moveToY !== 0);\r\n\r\n // Special 'speed' override\r\n\r\n if (HasValue(config, 'speed'))\r\n {\r\n ops.speedX.loadConfig(config, 'speed');\r\n ops.speedY.active = false;\r\n }\r\n\r\n // If you specify speedX, speedY or moveTo then it changes the emitter from radial to a point emitter\r\n if (HasAny(config, [ 'speedX', 'speedY' ]) || this.moveTo)\r\n {\r\n this.radial = false;\r\n }\r\n\r\n // Special 'scale' override\r\n\r\n if (HasValue(config, 'scale'))\r\n {\r\n ops.scaleX.loadConfig(config, 'scale');\r\n ops.scaleY.active = false;\r\n }\r\n\r\n if (HasValue(config, 'callbackScope'))\r\n {\r\n var callbackScope = GetFastValue(config, 'callbackScope', null);\r\n\r\n this.emitCallbackScope = callbackScope;\r\n this.deathCallbackScope = callbackScope;\r\n }\r\n\r\n if (HasValue(config, 'emitZone'))\r\n {\r\n this.addEmitZone(config.emitZone);\r\n }\r\n\r\n if (HasValue(config, 'deathZone'))\r\n {\r\n this.addDeathZone(config.deathZone);\r\n }\r\n\r\n if (HasValue(config, 'bounds'))\r\n {\r\n var bounds = this.addParticleBounds(config.bounds);\r\n\r\n bounds.collideLeft = GetFastValue(config, 'collideLeft', true);\r\n bounds.collideRight = GetFastValue(config, 'collideRight', true);\r\n bounds.collideTop = GetFastValue(config, 'collideTop', true);\r\n bounds.collideBottom = GetFastValue(config, 'collideBottom', true);\r\n }\r\n\r\n if (HasValue(config, 'followOffset'))\r\n {\r\n this.followOffset.setFromObject(GetFastValue(config, 'followOffset', 0));\r\n }\r\n\r\n if (HasValue(config, 'texture'))\r\n {\r\n this.setTexture(config.texture);\r\n }\r\n\r\n if (HasValue(config, 'frame'))\r\n {\r\n this.setEmitterFrame(config.frame);\r\n }\r\n else if (HasValue(config, 'anim'))\r\n {\r\n this.setAnim(config.anim);\r\n }\r\n\r\n if (HasValue(config, 'reserve'))\r\n {\r\n this.reserve(config.reserve);\r\n }\r\n\r\n if (HasValue(config, 'advance'))\r\n {\r\n this.fastForward(config.advance);\r\n }\r\n\r\n this.resetCounters(this.frequency, this.emitting);\r\n\r\n if (this.emitting)\r\n {\r\n this.emit(Events.START, this);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes an existing Emitter Configuration file and updates this Emitter.\r\n * Existing properties are overriden while new properties are added. The\r\n * updated configuration is then passed to the `setConfig` method to reset\r\n * the Emitter with the updated configuration.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#updateConfig\r\n * @since 3.85.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Particles.ParticleEmitterConfig} config - Settings for this emitter.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n updateConfig: function (config)\r\n {\r\n if (config)\r\n {\r\n if (!this.config)\r\n {\r\n this.setConfig(config);\r\n }\r\n else\r\n {\r\n this.setConfig(MergeRight(this.config, config));\r\n }\r\n }\r\n \r\n return this;\r\n },\r\n\r\n /**\r\n * Creates a description of this emitter suitable for JSON serialization.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#toJSON\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Types.GameObjects.JSONGameObject} A JSON representation of the Game Object.\r\n */\r\n toJSON: function ()\r\n {\r\n var output = ComponentsToJSON(this);\r\n\r\n var i = 0;\r\n var key = '';\r\n\r\n for (i = 0; i < configFastMap.length; i++)\r\n {\r\n key = configFastMap[i];\r\n\r\n output[key] = this[key];\r\n }\r\n\r\n var ops = this.ops;\r\n\r\n for (i = 0; i < configOpMap.length; i++)\r\n {\r\n key = configOpMap[i];\r\n\r\n if (ops[key])\r\n {\r\n output[key] = ops[key].toJSON();\r\n }\r\n }\r\n\r\n // special handlers\r\n if (!ops.speedY.active)\r\n {\r\n delete output.speedX;\r\n output.speed = ops.speedX.toJSON();\r\n }\r\n\r\n if (this.scaleX === this.scaleY)\r\n {\r\n delete output.scaleX;\r\n delete output.scaleY;\r\n output.scale = ops.scaleX.toJSON();\r\n }\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Resets the internal counter trackers.\r\n *\r\n * You shouldn't ever need to call this directly.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#resetCounters\r\n * @since 3.60.0\r\n *\r\n * @param {number} frequency - The frequency counter.\r\n * @param {boolean} on - Set the complete flag.\r\n */\r\n resetCounters: function (frequency, on)\r\n {\r\n var counters = this.counters;\r\n\r\n counters.fill(0);\r\n\r\n counters[0] = frequency;\r\n\r\n if (on)\r\n {\r\n counters[5] = 1;\r\n }\r\n },\r\n\r\n /**\r\n * Continuously moves the particle origin to follow a Game Object's position.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#startFollow\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} target - The Object to follow.\r\n * @param {number} [offsetX=0] - Horizontal offset of the particle origin from the Game Object.\r\n * @param {number} [offsetY=0] - Vertical offset of the particle origin from the Game Object.\r\n * @param {boolean} [trackVisible=false] - Whether the emitter's visible state will track the target's visible state.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n startFollow: function (target, offsetX, offsetY, trackVisible)\r\n {\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n if (trackVisible === undefined) { trackVisible = false; }\r\n\r\n this.follow = target;\r\n this.followOffset.set(offsetX, offsetY);\r\n this.trackVisible = trackVisible;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Stops following a Game Object.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#stopFollow\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n stopFollow: function ()\r\n {\r\n this.follow = null;\r\n this.followOffset.set(0, 0);\r\n this.trackVisible = false;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Chooses a texture frame from {@link Phaser.GameObjects.Particles.ParticleEmitter#frames}.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#getFrame\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Textures.Frame} The texture frame.\r\n */\r\n getFrame: function ()\r\n {\r\n var frames = this.frames;\r\n var len = frames.length;\r\n var current;\r\n\r\n if (len === 1)\r\n {\r\n current = frames[0];\r\n }\r\n else if (this.randomFrame)\r\n {\r\n current = GetRandom(frames);\r\n }\r\n else\r\n {\r\n current = frames[this.currentFrame];\r\n\r\n this.frameCounter++;\r\n\r\n if (this.frameCounter === this.frameQuantity)\r\n {\r\n this.frameCounter = 0;\r\n\r\n this.currentFrame++;\r\n\r\n if (this.currentFrame === len)\r\n {\r\n this.currentFrame = 0;\r\n }\r\n }\r\n }\r\n\r\n return this.texture.get(current);\r\n },\r\n\r\n /**\r\n * Sets a pattern for assigning texture frames to emitted particles. The `frames` configuration can be any of:\r\n *\r\n * frame: 0\r\n * frame: 'red'\r\n * frame: [ 0, 1, 2, 3 ]\r\n * frame: [ 'red', 'green', 'blue', 'pink', 'white' ]\r\n * frame: { frames: [ 'red', 'green', 'blue', 'pink', 'white' ], [cycle: bool], [quantity: int] }\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#setEmitterFrame\r\n * @since 3.0.0\r\n *\r\n * @param {(array|string|number|Phaser.Types.GameObjects.Particles.ParticleEmitterFrameConfig)} frames - One or more texture frames, or a configuration object.\r\n * @param {boolean} [pickRandom=true] - Whether frames should be assigned at random from `frames`.\r\n * @param {number} [quantity=1] - The number of consecutive particles that will receive each frame.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n setEmitterFrame: function (frames, pickRandom, quantity)\r\n {\r\n if (pickRandom === undefined) { pickRandom = true; }\r\n if (quantity === undefined) { quantity = 1; }\r\n\r\n this.randomFrame = pickRandom;\r\n this.frameQuantity = quantity;\r\n\r\n this.currentFrame = 0;\r\n\r\n var t = typeof (frames);\r\n\r\n this.frames.length = 0;\r\n\r\n if (Array.isArray(frames))\r\n {\r\n this.frames = this.frames.concat(frames);\r\n }\r\n else if (t === 'string' || t === 'number')\r\n {\r\n this.frames.push(frames);\r\n }\r\n else if (t === 'object')\r\n {\r\n var frameConfig = frames;\r\n\r\n frames = GetFastValue(frameConfig, 'frames', null);\r\n\r\n if (frames)\r\n {\r\n this.frames = this.frames.concat(frames);\r\n }\r\n\r\n var isCycle = GetFastValue(frameConfig, 'cycle', false);\r\n\r\n this.randomFrame = (isCycle) ? false : true;\r\n\r\n this.frameQuantity = GetFastValue(frameConfig, 'quantity', quantity);\r\n }\r\n\r\n if (this.frames.length === 1)\r\n {\r\n this.frameQuantity = 1;\r\n this.randomFrame = false;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Chooses an animation from {@link Phaser.GameObjects.Particles.ParticleEmitter#anims}, if populated.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#getAnim\r\n * @since 3.60.0\r\n *\r\n * @return {string} The animation to play, or `null` if there aren't any.\r\n */\r\n getAnim: function ()\r\n {\r\n var anims = this.anims;\r\n var len = anims.length;\r\n\r\n if (len === 0)\r\n {\r\n return null;\r\n }\r\n else if (len === 1)\r\n {\r\n return anims[0];\r\n }\r\n else if (this.randomAnim)\r\n {\r\n return GetRandom(anims);\r\n }\r\n else\r\n {\r\n var anim = anims[this.currentAnim];\r\n\r\n this.animCounter++;\r\n\r\n if (this.animCounter >= this.animQuantity)\r\n {\r\n this.animCounter = 0;\r\n this.currentAnim = Wrap(this.currentAnim + 1, 0, len);\r\n }\r\n\r\n return anim;\r\n }\r\n },\r\n\r\n /**\r\n * Sets a pattern for assigning animations to emitted particles. The `anims` configuration can be any of:\r\n *\r\n * anim: 'red'\r\n * anim: [ 'red', 'green', 'blue', 'pink', 'white' ]\r\n * anim: { anims: [ 'red', 'green', 'blue', 'pink', 'white' ], [cycle: bool], [quantity: int] }\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#setAnim\r\n * @since 3.60.0\r\n *\r\n * @param {(string|string[]|Phaser.Types.GameObjects.Particles.ParticleEmitterAnimConfig)} anims - One or more animations, or a configuration object.\r\n * @param {boolean} [pickRandom=true] - Whether animations should be assigned at random from `anims`. If a config object is given, this parameter is ignored.\r\n * @param {number} [quantity=1] - The number of consecutive particles that will receive each animation. If a config object is given, this parameter is ignored.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n setAnim: function (anims, pickRandom, quantity)\r\n {\r\n if (pickRandom === undefined) { pickRandom = true; }\r\n if (quantity === undefined) { quantity = 1; }\r\n\r\n this.randomAnim = pickRandom;\r\n this.animQuantity = quantity;\r\n\r\n this.currentAnim = 0;\r\n\r\n var t = typeof (anims);\r\n\r\n this.anims.length = 0;\r\n\r\n if (Array.isArray(anims))\r\n {\r\n this.anims = this.anims.concat(anims);\r\n }\r\n else if (t === 'string')\r\n {\r\n this.anims.push(anims);\r\n }\r\n else if (t === 'object')\r\n {\r\n var animConfig = anims;\r\n\r\n anims = GetFastValue(animConfig, 'anims', null);\r\n\r\n if (anims)\r\n {\r\n this.anims = this.anims.concat(anims);\r\n }\r\n\r\n var isCycle = GetFastValue(animConfig, 'cycle', false);\r\n\r\n this.randomAnim = (isCycle) ? false : true;\r\n\r\n this.animQuantity = GetFastValue(animConfig, 'quantity', quantity);\r\n }\r\n\r\n if (this.anims.length === 1)\r\n {\r\n this.animQuantity = 1;\r\n this.randomAnim = false;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Turns {@link Phaser.GameObjects.Particles.ParticleEmitter#radial} particle movement on or off.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#setRadial\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [value=true] - Radial mode (true) or point mode (true).\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n setRadial: function (value)\r\n {\r\n if (value === undefined) { value = true; }\r\n\r\n this.radial = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Creates a Particle Bounds processor and adds it to this Emitter.\r\n *\r\n * This processor will check to see if any of the active Particles hit\r\n * the defined boundary, as specified by a Rectangle shape in world-space.\r\n *\r\n * If so, they are 'rebounded' back again by having their velocity adjusted.\r\n *\r\n * The strength of the rebound is controlled by the `Particle.bounce`\r\n * property.\r\n *\r\n * You should be careful to ensure that you emit particles within a bounds,\r\n * if set, otherwise it will lead to unpredictable visual results as the\r\n * particles are hastily repositioned.\r\n *\r\n * The Particle Bounds processor is returned from this method. If you wish\r\n * to modify the area you can directly change its `bounds` property, along\r\n * with the `collideLeft` etc values.\r\n *\r\n * To disable the bounds you can either set its `active` property to `false`,\r\n * or if you no longer require it, call `ParticleEmitter.removeParticleProcessor`.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#addParticleBounds\r\n * @since 3.60.0\r\n *\r\n * @param {(number|Phaser.Types.GameObjects.Particles.ParticleEmitterBounds|Phaser.Types.GameObjects.Particles.ParticleEmitterBoundsAlt)} x - The x-coordinate of the left edge of the boundary, or an object representing a rectangle.\r\n * @param {number} [y] - The y-coordinate of the top edge of the boundary.\r\n * @param {number} [width] - The width of the boundary.\r\n * @param {number} [height] - The height of the boundary.\r\n * @param {boolean} [collideLeft=true] - Whether particles interact with the left edge of the bounds.\r\n * @param {boolean} [collideRight=true] - Whether particles interact with the right edge of the bounds.\r\n * @param {boolean} [collideTop=true] - Whether particles interact with the top edge of the bounds.\r\n * @param {boolean} [collideBottom=true] - Whether particles interact with the bottom edge of the bounds.\r\n *\r\n * @return {Phaser.GameObjects.Particles.ParticleBounds} The Particle Bounds processor.\r\n */\r\n addParticleBounds: function (x, y, width, height, collideLeft, collideRight, collideTop, collideBottom)\r\n {\r\n if (typeof x === 'object')\r\n {\r\n var obj = x;\r\n\r\n x = obj.x;\r\n y = obj.y;\r\n width = (HasValue(obj, 'w')) ? obj.w : obj.width;\r\n height = (HasValue(obj, 'h')) ? obj.h : obj.height;\r\n }\r\n\r\n return this.addParticleProcessor(new ParticleBounds(x, y, width, height, collideLeft, collideRight, collideTop, collideBottom));\r\n },\r\n\r\n /**\r\n * Sets the initial radial speed of emitted particles.\r\n *\r\n * Changes the emitter to radial mode.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#setParticleSpeed\r\n * @since 3.60.0\r\n *\r\n * @param {number} x - The horizontal speed of the emitted Particles.\r\n * @param {number} [y=x] - The vertical speed of emitted Particles. If not set it will use the `x` value.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n setParticleSpeed: function (x, y)\r\n {\r\n if (y === undefined) { y = x; }\r\n\r\n this.ops.speedX.onChange(x);\r\n\r\n if (x === y)\r\n {\r\n this.ops.speedY.active = false;\r\n }\r\n else\r\n {\r\n this.ops.speedY.onChange(y);\r\n }\r\n\r\n // If you specify speedX and Y then it changes the emitter from radial to a point emitter\r\n this.radial = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the vertical and horizontal scale of the emitted particles.\r\n *\r\n * You can also set the scale of the entire emitter via `setScale`.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#setParticleScale\r\n * @since 3.60.0\r\n *\r\n * @param {number} [x=1] - The horizontal scale of the emitted Particles.\r\n * @param {number} [y=x] - The vertical scale of emitted Particles. If not set it will use the `x` value.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n setParticleScale: function (x, y)\r\n {\r\n if (x === undefined) { x = 1; }\r\n if (y === undefined) { y = x; }\r\n\r\n this.ops.scaleX.onChange(x);\r\n this.ops.scaleY.onChange(y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the gravity applied to emitted particles.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#setParticleGravity\r\n * @since 3.60.0\r\n *\r\n * @param {number} x - Horizontal acceleration due to gravity, in pixels per second squared. Set to zero for no gravity.\r\n * @param {number} y - Vertical acceleration due to gravity, in pixels per second squared. Set to zero for no gravity.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n setParticleGravity: function (x, y)\r\n {\r\n this.gravityX = x;\r\n this.gravityY = y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the opacity (alpha) of emitted particles.\r\n *\r\n * You can also set the alpha of the entire emitter via `setAlpha`.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#setParticleAlpha\r\n * @since 3.60.0\r\n *\r\n * @param {(Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType|Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType)} value - A value between 0 (transparent) and 1 (opaque).\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n setParticleAlpha: function (value)\r\n {\r\n this.ops.alpha.onChange(value);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the color tint of emitted particles.\r\n *\r\n * This is a WebGL only feature.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#setParticleTint\r\n * @since 3.60.0\r\n * @webglOnly\r\n *\r\n * @param {(Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType|Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType)} value - A value between 0 and 0xffffff.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n setParticleTint: function (value)\r\n {\r\n this.ops.tint.onChange(value);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the angle of a {@link Phaser.GameObjects.Particles.ParticleEmitter#radial} particle stream.\r\n *\r\n * The value is given in degrees using Phaser's right-handed coordinate system.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#setEmitterAngle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType} value - The angle of the initial velocity of emitted particles, in degrees.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n setEmitterAngle: function (value)\r\n {\r\n this.ops.angle.onChange(value);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the lifespan of newly emitted particles in milliseconds.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#setParticleLifespan\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType} value - The lifespan of a particle, in ms.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n setParticleLifespan: function (value)\r\n {\r\n this.ops.lifespan.onChange(value);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the number of particles released at each flow cycle or explosion.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#setQuantity\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType} quantity - The number of particles to release at each flow cycle or explosion.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n setQuantity: function (quantity)\r\n {\r\n this.quantity = quantity;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the emitter's {@link Phaser.GameObjects.Particles.ParticleEmitter#frequency}\r\n * and {@link Phaser.GameObjects.Particles.ParticleEmitter#quantity}.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#setFrequency\r\n * @since 3.0.0\r\n *\r\n * @param {number} frequency - The time interval (>= 0) of each flow cycle, in ms; or -1 to put the emitter in explosion mode.\r\n * @param {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType} [quantity] - The number of particles to release at each flow cycle or explosion.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n setFrequency: function (frequency, quantity)\r\n {\r\n this.frequency = frequency;\r\n\r\n this.flowCounter = (frequency > 0) ? frequency : 0;\r\n\r\n if (quantity)\r\n {\r\n this.quantity = quantity;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds a new Particle Death Zone to this Emitter.\r\n *\r\n * A particle is immediately killed as soon as its x/y coordinates intersect\r\n * with any of the configured Death Zones.\r\n *\r\n * The `source` can be a Geometry Shape, such as a Circle, Rectangle or Triangle.\r\n * Any valid object from the `Phaser.Geometry` namespace is allowed, as long as\r\n * it supports a `contains` function. You can set the `type` to be either `onEnter`\r\n * or `onLeave`.\r\n *\r\n * A single Death Zone instance can only exist once within this Emitter, but can belong\r\n * to multiple Emitters.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#addDeathZone\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Particles.DeathZoneObject|Phaser.Types.GameObjects.Particles.DeathZoneObject[]} config - A Death Zone configuration object, a Death Zone instance, a valid Geometry object or an array of them.\r\n *\r\n * @return {Phaser.GameObjects.Particles.Zones.DeathZone[]} An array of the Death Zones that were added to this Emitter.\r\n */\r\n addDeathZone: function (config)\r\n {\r\n if (!Array.isArray(config))\r\n {\r\n config = [ config ];\r\n }\r\n\r\n var zone;\r\n var output = [];\r\n\r\n for (var i = 0; i < config.length; i++)\r\n {\r\n zone = config[i];\r\n\r\n if (zone instanceof DeathZone)\r\n {\r\n output.push(zone);\r\n }\r\n else if (typeof zone.contains === 'function')\r\n {\r\n zone = new DeathZone(zone, true);\r\n\r\n output.push(zone);\r\n }\r\n else\r\n {\r\n var type = GetFastValue(zone, 'type', 'onEnter');\r\n var source = GetFastValue(zone, 'source', null);\r\n\r\n if (source && typeof source.contains === 'function')\r\n {\r\n var killOnEnter = (type === 'onEnter') ? true : false;\r\n\r\n zone = new DeathZone(source, killOnEnter);\r\n\r\n output.push(zone);\r\n }\r\n }\r\n }\r\n\r\n this.deathZones = this.deathZones.concat(output);\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Removes the given Particle Death Zone from this Emitter.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#removeDeathZone\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.Zones.DeathZone} zone - The Death Zone that should be removed from this Emitter.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n removeDeathZone: function (zone)\r\n {\r\n Remove(this.deathZones, zone);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Clear all Death Zones from this Particle Emitter.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#clearDeathZones\r\n * @since 3.70.0\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n clearDeathZones: function ()\r\n {\r\n this.deathZones.length = 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds a new Particle Emission Zone to this Emitter.\r\n *\r\n * An {@link Phaser.Types.GameObjects.Particles.ParticleEmitterEdgeZoneConfig EdgeZone} places particles on its edges.\r\n * Its {@link Phaser.Types.GameObjects.Particles.EdgeZoneSource source} can be a Curve, Path, Circle, Ellipse, Line, Polygon, Rectangle, or Triangle;\r\n * or any object with a suitable {@link Phaser.Types.GameObjects.Particles.EdgeZoneSourceCallback getPoints} method.\r\n *\r\n * A {@link Phaser.Types.GameObjects.Particles.ParticleEmitterRandomZoneConfig RandomZone} places the particles randomly within its interior.\r\n * Its {@link Phaser.GameObjects.Particles.Zones.RandomZone#source source} can be a Circle, Ellipse, Line, Polygon, Rectangle, or Triangle; or any object with a suitable {@link Phaser.Types.GameObjects.Particles.RandomZoneSourceCallback getRandomPoint} method.\r\n *\r\n * An Emission Zone can only exist once within this Emitter.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#addEmitZone\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Particles.EmitZoneData|Phaser.Types.GameObjects.Particles.EmitZoneData[]} zone - An Emission Zone configuration object, a RandomZone or EdgeZone instance, or an array of them.\r\n *\r\n * @return {Phaser.Types.GameObjects.Particles.EmitZoneObject[]} An array of the Emission Zones that were added to this Emitter.\r\n */\r\n addEmitZone: function (config)\r\n {\r\n if (!Array.isArray(config))\r\n {\r\n config = [ config ];\r\n }\r\n\r\n var zone;\r\n var output = [];\r\n\r\n for (var i = 0; i < config.length; i++)\r\n {\r\n zone = config[i];\r\n\r\n if (zone instanceof RandomZone || zone instanceof EdgeZone)\r\n {\r\n output.push(zone);\r\n }\r\n else\r\n {\r\n // Where source = Geom like Circle, or a Path or Curve\r\n // emitZone: { type: 'random', source: X }\r\n // emitZone: { type: 'edge', source: X, quantity: 32, [stepRate=0], [yoyo=false], [seamless=true], [total=1] }\r\n\r\n var source = GetFastValue(zone, 'source', null);\r\n\r\n if (source)\r\n {\r\n var type = GetFastValue(zone, 'type', 'random');\r\n\r\n if (type === 'random' && typeof source.getRandomPoint === 'function')\r\n {\r\n zone = new RandomZone(source);\r\n\r\n output.push(zone);\r\n }\r\n else if (type === 'edge' && typeof source.getPoints === 'function')\r\n {\r\n var quantity = GetFastValue(zone, 'quantity', 1);\r\n var stepRate = GetFastValue(zone, 'stepRate', 0);\r\n var yoyo = GetFastValue(zone, 'yoyo', false);\r\n var seamless = GetFastValue(zone, 'seamless', true);\r\n var total = GetFastValue(zone, 'total', -1);\r\n\r\n zone = new EdgeZone(source, quantity, stepRate, yoyo, seamless, total);\r\n\r\n output.push(zone);\r\n }\r\n }\r\n }\r\n }\r\n\r\n this.emitZones = this.emitZones.concat(output);\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Removes the given Particle Emission Zone from this Emitter.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#removeEmitZone\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.Zones.EdgeZone|Phaser.GameObjects.Particles.Zones.RandomZone} zone - The Emission Zone that should be removed from this Emitter.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n removeEmitZone: function (zone)\r\n {\r\n Remove(this.emitZones, zone);\r\n\r\n this.zoneIndex = 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Clear all Emission Zones from this Particle Emitter.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#clearEmitZones\r\n * @since 3.70.0\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n clearEmitZones: function ()\r\n {\r\n this.emitZones.length = 0;\r\n\r\n this.zoneIndex = 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes the given particle and sets its x/y coordinates to match the next available\r\n * emission zone, if any have been configured. This method is called automatically\r\n * as part of the `Particle.fire` process.\r\n *\r\n * The Emit Zones are iterated in sequence. Once a zone has had a particle emitted\r\n * from it, then the next zone is used and so on, in a loop.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#getEmitZone\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.Particle} particle - The particle to set the emission zone for.\r\n */\r\n getEmitZone: function (particle)\r\n {\r\n var zones = this.emitZones;\r\n var len = zones.length;\r\n\r\n if (len === 0)\r\n {\r\n return;\r\n }\r\n else\r\n {\r\n var zone = zones[this.zoneIndex];\r\n\r\n zone.getPoint(particle);\r\n\r\n if (zone.total > -1)\r\n {\r\n this.zoneTotal++;\r\n\r\n if (this.zoneTotal === zone.total)\r\n {\r\n this.zoneTotal = 0;\r\n\r\n this.zoneIndex++;\r\n\r\n if (this.zoneIndex === len)\r\n {\r\n this.zoneIndex = 0;\r\n }\r\n }\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Takes the given particle and checks to see if any of the configured Death Zones\r\n * will kill it and returns the result. This method is called automatically as part\r\n * of the `Particle.update` process.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#getDeathZone\r\n * @fires Phaser.GameObjects.Particles.Events#DEATH_ZONE\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.Particle} particle - The particle to test against the Death Zones.\r\n *\r\n * @return {boolean} `true` if the particle should be killed, otherwise `false`.\r\n */\r\n getDeathZone: function (particle)\r\n {\r\n var zones = this.deathZones;\r\n\r\n for (var i = 0; i < zones.length; i++)\r\n {\r\n var zone = zones[i];\r\n\r\n if (zone.willKill(particle))\r\n {\r\n this.emit(Events.DEATH_ZONE, this, particle, zone);\r\n\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Changes the currently active Emission Zone. The zones should have already\r\n * been added to this Emitter either via the emitter config, or the\r\n * `addEmitZone` method.\r\n *\r\n * Call this method by passing either a numeric zone index value, or\r\n * the zone instance itself.\r\n *\r\n * Prior to v3.60 an Emitter could only have a single Emit Zone and this\r\n * method was how you set it. From 3.60 and up it now performs a different\r\n * function and swaps between all available active zones.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#setEmitZone\r\n * @since 3.0.0\r\n *\r\n * @param {number|Phaser.GameObjects.Particles.Zones.EdgeZone|Phaser.GameObjects.Particles.Zones.RandomZone} zone - The Emit Zone to set as the active zone.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n setEmitZone: function (zone)\r\n {\r\n var index;\r\n\r\n if (isFinite(zone))\r\n {\r\n index = zone;\r\n }\r\n else\r\n {\r\n index = this.emitZones.indexOf(zone);\r\n }\r\n\r\n if (index >= 0)\r\n {\r\n this.zoneIndex = index;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds a Particle Processor, such as a Gravity Well, to this Emitter.\r\n *\r\n * It will start processing particles from the next update as long as its `active`\r\n * property is set.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#addParticleProcessor\r\n * @since 3.60.0\r\n *\r\n * @generic {Phaser.GameObjects.Particles.ParticleProcessor} T\r\n * @param {T} processor - The Particle Processor to add to this Emitter Manager.\r\n *\r\n * @return {T} The Particle Processor that was added to this Emitter Manager.\r\n */\r\n addParticleProcessor: function (processor)\r\n {\r\n if (!this.processors.exists(processor))\r\n {\r\n if (processor.emitter)\r\n {\r\n processor.emitter.removeParticleProcessor(processor);\r\n }\r\n\r\n this.processors.add(processor);\r\n\r\n processor.emitter = this;\r\n }\r\n\r\n return processor;\r\n },\r\n\r\n /**\r\n * Removes a Particle Processor from this Emitter.\r\n *\r\n * The Processor must belong to this Emitter to be removed.\r\n *\r\n * It is not destroyed when removed, allowing you to move it to another Emitter Manager,\r\n * so if you no longer require it you should call its `destroy` method directly.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#removeParticleProcessor\r\n * @since 3.60.0\r\n *\r\n * @generic {Phaser.GameObjects.Particles.ParticleProcessor} T\r\n * @param {T} processor - The Particle Processor to remove from this Emitter Manager.\r\n *\r\n * @return {?T} The Particle Processor that was removed, or null if it could not be found.\r\n */\r\n removeParticleProcessor: function (processor)\r\n {\r\n if (this.processors.exists(processor))\r\n {\r\n this.processors.remove(processor, true);\r\n\r\n processor.emitter = null;\r\n }\r\n\r\n return processor;\r\n },\r\n\r\n /**\r\n * Gets all active Particle Processors.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#getProcessors\r\n * @since 3.60.0\r\n *\r\n * @return {Phaser.GameObjects.Particles.ParticleProcessor[]} - An array of active Particle Processors.\r\n */\r\n getProcessors: function ()\r\n {\r\n return this.processors.getAll('active', true);\r\n },\r\n\r\n /**\r\n * Creates a new Gravity Well, adds it to this Emitter and returns a reference to it.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#createGravityWell\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Particles.GravityWellConfig} config - Configuration settings for the Gravity Well to create.\r\n *\r\n * @return {Phaser.GameObjects.Particles.GravityWell} The Gravity Well that was created.\r\n */\r\n createGravityWell: function (config)\r\n {\r\n return this.addParticleProcessor(new GravityWell(config));\r\n },\r\n\r\n /**\r\n * Creates inactive particles and adds them to this emitter's pool.\r\n *\r\n * If `ParticleEmitter.maxParticles` is set it will limit the\r\n * value passed to this method to make sure it's not exceeded.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#reserve\r\n * @since 3.0.0\r\n *\r\n * @param {number} count - The number of particles to create.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n reserve: function (count)\r\n {\r\n var dead = this.dead;\r\n\r\n if (this.maxParticles > 0)\r\n {\r\n var total = this.getParticleCount();\r\n\r\n if (total + count > this.maxParticles)\r\n {\r\n count = this.maxParticles - (total + count);\r\n }\r\n }\r\n\r\n for (var i = 0; i < count; i++)\r\n {\r\n dead.push(new this.particleClass(this));\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Gets the number of active (in-use) particles in this emitter.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#getAliveParticleCount\r\n * @since 3.0.0\r\n *\r\n * @return {number} The number of particles with `active=true`.\r\n */\r\n getAliveParticleCount: function ()\r\n {\r\n return this.alive.length;\r\n },\r\n\r\n /**\r\n * Gets the number of inactive (available) particles in this emitter.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#getDeadParticleCount\r\n * @since 3.0.0\r\n *\r\n * @return {number} The number of particles with `active=false`.\r\n */\r\n getDeadParticleCount: function ()\r\n {\r\n return this.dead.length;\r\n },\r\n\r\n /**\r\n * Gets the total number of particles in this emitter.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#getParticleCount\r\n * @since 3.0.0\r\n *\r\n * @return {number} The number of particles, including both alive and dead.\r\n */\r\n getParticleCount: function ()\r\n {\r\n return this.getAliveParticleCount() + this.getDeadParticleCount();\r\n },\r\n\r\n /**\r\n * Whether this emitter is at either its hard-cap limit (maxParticles), if set, or\r\n * the max allowed number of 'alive' particles (maxAliveParticles).\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#atLimit\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} Returns `true` if this Emitter is at its limit, or `false` if no limit, or below the `maxParticles` level.\r\n */\r\n atLimit: function ()\r\n {\r\n if (this.maxParticles > 0 && this.getParticleCount() >= this.maxParticles)\r\n {\r\n return true;\r\n }\r\n\r\n return (this.maxAliveParticles > 0 && this.getAliveParticleCount() >= this.maxAliveParticles);\r\n },\r\n\r\n /**\r\n * Sets a function to call for each newly emitted particle.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#onParticleEmit\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Particles.ParticleEmitterCallback} callback - The function.\r\n * @param {*} [context] - The calling context.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n onParticleEmit: function (callback, context)\r\n {\r\n if (callback === undefined)\r\n {\r\n // Clear any previously set callback\r\n this.emitCallback = null;\r\n this.emitCallbackScope = null;\r\n }\r\n else if (typeof callback === 'function')\r\n {\r\n this.emitCallback = callback;\r\n\r\n if (context)\r\n {\r\n this.emitCallbackScope = context;\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a function to call for each particle death.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#onParticleDeath\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Particles.ParticleDeathCallback} callback - The function.\r\n * @param {*} [context] - The function's calling context.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n onParticleDeath: function (callback, context)\r\n {\r\n if (callback === undefined)\r\n {\r\n // Clear any previously set callback\r\n this.deathCallback = null;\r\n this.deathCallbackScope = null;\r\n }\r\n else if (typeof callback === 'function')\r\n {\r\n this.deathCallback = callback;\r\n\r\n if (context)\r\n {\r\n this.deathCallbackScope = context;\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Deactivates every particle in this emitter immediately.\r\n *\r\n * This particles are killed but do not emit an event or callback.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#killAll\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n killAll: function ()\r\n {\r\n var dead = this.dead;\r\n var alive = this.alive;\r\n\r\n while (alive.length > 0)\r\n {\r\n dead.push(alive.pop());\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calls a function for each active particle in this emitter. The function is\r\n * sent two parameters: a reference to the Particle instance and to this Emitter.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#forEachAlive\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Particles.ParticleEmitterCallback} callback - The function.\r\n * @param {*} context - The functions calling context.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n forEachAlive: function (callback, context)\r\n {\r\n var alive = this.alive;\r\n var length = alive.length;\r\n\r\n for (var i = 0; i < length; i++)\r\n {\r\n // Sends the Particle and the Emitter\r\n callback.call(context, alive[i], this);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calls a function for each inactive particle in this emitter.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#forEachDead\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Particles.ParticleEmitterCallback} callback - The function.\r\n * @param {*} context - The functions calling context.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n forEachDead: function (callback, context)\r\n {\r\n var dead = this.dead;\r\n var length = dead.length;\r\n\r\n for (var i = 0; i < length; i++)\r\n {\r\n callback.call(context, dead[i], this);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Turns {@link Phaser.GameObjects.Particles.ParticleEmitter#on} the emitter and resets the flow counter.\r\n *\r\n * If this emitter is in flow mode (frequency >= 0; the default), the particle flow will start (or restart).\r\n *\r\n * If this emitter is in explode mode (frequency = -1), nothing will happen.\r\n * Use {@link Phaser.GameObjects.Particles.ParticleEmitter#explode} or {@link Phaser.GameObjects.Particles.ParticleEmitter#flow} instead.\r\n *\r\n * Calling this method will emit the `START` event.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#start\r\n * @fires Phaser.GameObjects.Particles.Events#START\r\n * @since 3.0.0\r\n *\r\n * @param {number} [advance=0] - Advance this number of ms in time through the emitter.\r\n * @param {number} [duration=0] - Limit this emitter to only emit particles for the given number of ms. Setting this parameter will override any duration already set in the Emitter configuration object.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n start: function (advance, duration)\r\n {\r\n if (advance === undefined) { advance = 0; }\r\n\r\n if (!this.emitting)\r\n {\r\n if (advance > 0)\r\n {\r\n this.fastForward(advance);\r\n }\r\n\r\n this.emitting = true;\r\n\r\n this.resetCounters(this.frequency, true);\r\n\r\n if (duration !== undefined)\r\n {\r\n this.duration = Math.abs(duration);\r\n }\r\n\r\n this.emit(Events.START, this);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Turns {@link Phaser.GameObjects.Particles.ParticleEmitter#emitting off} the emitter and\r\n * stops it from emitting further particles. Currently alive particles will remain\r\n * active until they naturally expire unless you set the `kill` parameter to `true`.\r\n *\r\n * Calling this method will emit the `STOP` event. When the final particle has\r\n * expired the `COMPLETE` event will be emitted.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#stop\r\n * @fires Phaser.GameObjects.Particles.Events#STOP\r\n * @since 3.11.0\r\n *\r\n * @param {boolean} [kill=false] - Kill all particles immediately (true), or leave them to die after their lifespan expires? (false, the default)\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n stop: function (kill)\r\n {\r\n if (kill === undefined) { kill = false; }\r\n\r\n if (this.emitting)\r\n {\r\n this.emitting = false;\r\n\r\n if (kill)\r\n {\r\n this.killAll();\r\n }\r\n\r\n this.emit(Events.STOP, this);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * {@link Phaser.GameObjects.Particles.ParticleEmitter#active Deactivates} the emitter.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#pause\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n pause: function ()\r\n {\r\n this.active = false;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * {@link Phaser.GameObjects.Particles.ParticleEmitter#active Activates} the emitter.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#resume\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n resume: function ()\r\n {\r\n this.active = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the property by which active particles are sorted prior to be rendered.\r\n *\r\n * It allows you to control the rendering order of the particles.\r\n *\r\n * This can be any valid property of the `Particle` class, such as `y`, `alpha`\r\n * or `lifeT`.\r\n *\r\n * The 'alive' particles array is sorted in place each game frame. Setting a\r\n * sort property will override the `particleBringToTop` setting.\r\n *\r\n * If you wish to use your own sorting function, see `setSortCallback` instead.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#setSortProperty\r\n * @since 3.60.0\r\n *\r\n * @param {string} [property] - The property on the `Particle` class to sort by.\r\n * @param {boolean} [ascending=true] - Should the particles be sorted in ascending or descending order?\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n setSortProperty: function (property, ascending)\r\n {\r\n if (property === undefined) { property = ''; }\r\n if (ascending === undefined) { ascending = this.true; }\r\n\r\n this.sortProperty = property;\r\n this.sortOrderAsc = ascending;\r\n this.sortCallback = this.depthSortCallback;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a callback to be used to sort the particles before rendering each frame.\r\n *\r\n * This allows you to define your own logic and behavior in the callback.\r\n *\r\n * The callback will be sent two parameters: the two Particles being compared,\r\n * and must adhere to the criteria of the `compareFn` in `Array.sort`:\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#description\r\n *\r\n * Call this method with no parameters to reset the sort callback.\r\n *\r\n * Setting your own callback will override both the `particleBringToTop` and\r\n * `sortProperty` settings of this Emitter.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#setSortCallback\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Particles.ParticleSortCallback} [callback] - The callback to invoke when the particles are sorted. Leave undefined to reset to the default.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n setSortCallback: function (callback)\r\n {\r\n if (this.sortProperty !== '')\r\n {\r\n callback = this.depthSortCallback;\r\n }\r\n else\r\n {\r\n callback = null;\r\n }\r\n\r\n this.sortCallback = callback;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sorts active particles with {@link Phaser.GameObjects.Particles.ParticleEmitter#depthSortCallback}.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#depthSort\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n depthSort: function ()\r\n {\r\n StableSort(this.alive, this.sortCallback.bind(this));\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calculates the difference of two particles, for sorting them by depth.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#depthSortCallback\r\n * @since 3.0.0\r\n *\r\n * @param {object} a - The first particle.\r\n * @param {object} b - The second particle.\r\n *\r\n * @return {number} The difference of a and b's y coordinates.\r\n */\r\n depthSortCallback: function (a, b)\r\n {\r\n var key = this.sortProperty;\r\n\r\n if (this.sortOrderAsc)\r\n {\r\n return a[key] - b[key];\r\n }\r\n else\r\n {\r\n return b[key] - a[key];\r\n }\r\n },\r\n\r\n /**\r\n * Puts the emitter in flow mode (frequency >= 0) and starts (or restarts) a particle flow.\r\n *\r\n * To resume a flow at the current frequency and quantity, use {@link Phaser.GameObjects.Particles.ParticleEmitter#start} instead.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#flow\r\n * @fires Phaser.GameObjects.Particles.Events#START\r\n * @since 3.0.0\r\n *\r\n * @param {number} frequency - The time interval (>= 0) of each flow cycle, in ms.\r\n * @param {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType} [count=1] - The number of particles to emit at each flow cycle.\r\n * @param {number} [stopAfter] - Stop this emitter from firing any more particles once this value is reached. Set to zero for unlimited. Setting this parameter will override any `stopAfter` value already set in the Emitter configuration object.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n flow: function (frequency, count, stopAfter)\r\n {\r\n if (count === undefined) { count = 1; }\r\n\r\n this.emitting = false;\r\n\r\n this.frequency = frequency;\r\n this.quantity = count;\r\n\r\n if (stopAfter !== undefined)\r\n {\r\n this.stopAfter = stopAfter;\r\n }\r\n\r\n return this.start();\r\n },\r\n\r\n /**\r\n * Puts the emitter in explode mode (frequency = -1), stopping any current particle flow, and emits several particles all at once.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#explode\r\n * @fires Phaser.GameObjects.Particles.Events#EXPLODE\r\n * @since 3.0.0\r\n *\r\n * @param {number} [count=this.quantity] - The number of Particles to emit.\r\n * @param {number} [x=this.x] - The x coordinate to emit the Particles from.\r\n * @param {number} [y=this.x] - The y coordinate to emit the Particles from.\r\n *\r\n * @return {(Phaser.GameObjects.Particles.Particle|undefined)} The most recently emitted Particle, or `undefined` if the emitter is at its limit.\r\n */\r\n explode: function (count, x, y)\r\n {\r\n this.frequency = -1;\r\n\r\n this.resetCounters(-1, true);\r\n\r\n var particle = this.emitParticle(count, x, y);\r\n\r\n this.emit(Events.EXPLODE, this, particle);\r\n\r\n return particle;\r\n },\r\n\r\n /**\r\n * Emits particles at the given position. If no position is given, it will\r\n * emit from this Emitters current location.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#emitParticleAt\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=this.x] - The x coordinate to emit the Particles from.\r\n * @param {number} [y=this.x] - The y coordinate to emit the Particles from.\r\n * @param {number} [count=this.quantity] - The number of Particles to emit.\r\n *\r\n * @return {(Phaser.GameObjects.Particles.Particle|undefined)} The most recently emitted Particle, or `undefined` if the emitter is at its limit.\r\n */\r\n emitParticleAt: function (x, y, count)\r\n {\r\n return this.emitParticle(count, x, y);\r\n },\r\n\r\n /**\r\n * Emits particles at a given position (or the emitters current position).\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#emitParticle\r\n * @since 3.0.0\r\n *\r\n * @param {number} [count=this.quantity] - The number of Particles to emit.\r\n * @param {number} [x=this.x] - The x coordinate to emit the Particles from.\r\n * @param {number} [y=this.x] - The y coordinate to emit the Particles from.\r\n *\r\n * @return {(Phaser.GameObjects.Particles.Particle|undefined)} The most recently emitted Particle, or `undefined` if the emitter is at its limit.\r\n *\r\n * @see Phaser.GameObjects.Particles.Particle#fire\r\n */\r\n emitParticle: function (count, x, y)\r\n {\r\n if (this.atLimit())\r\n {\r\n return;\r\n }\r\n\r\n if (count === undefined)\r\n {\r\n count = this.ops.quantity.onEmit();\r\n }\r\n\r\n var dead = this.dead;\r\n var stopAfter = this.stopAfter;\r\n\r\n var followX = (this.follow) ? this.follow.x + this.followOffset.x : x;\r\n var followY = (this.follow) ? this.follow.y + this.followOffset.y : y;\r\n\r\n for (var i = 0; i < count; i++)\r\n {\r\n var particle = dead.pop();\r\n\r\n if (!particle)\r\n {\r\n particle = new this.particleClass(this);\r\n }\r\n\r\n if (particle.fire(followX, followY))\r\n {\r\n if (this.particleBringToTop)\r\n {\r\n this.alive.push(particle);\r\n }\r\n else\r\n {\r\n this.alive.unshift(particle);\r\n }\r\n\r\n if (this.emitCallback)\r\n {\r\n this.emitCallback.call(this.emitCallbackScope, particle, this);\r\n }\r\n }\r\n else\r\n {\r\n this.dead.push(particle);\r\n }\r\n\r\n if (stopAfter > 0)\r\n {\r\n this.stopCounter++;\r\n\r\n if (this.stopCounter >= stopAfter)\r\n {\r\n break;\r\n }\r\n }\r\n\r\n if (this.atLimit())\r\n {\r\n break;\r\n }\r\n }\r\n\r\n return particle;\r\n },\r\n\r\n /**\r\n * Fast forwards this Particle Emitter and all of its particles.\r\n *\r\n * Works by running the Emitter `preUpdate` handler in a loop until the `time`\r\n * has been reached at `delta` steps per loop.\r\n *\r\n * All callbacks and emitter related events that would normally be fired\r\n * will still be invoked.\r\n *\r\n * You can make an emitter 'fast forward' via the emitter config using the\r\n * `advance` property. Set this value to the number of ms you wish the\r\n * emitter to be fast-forwarded by. Or, call this method post-creation.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#fastForward\r\n * @since 3.60.0\r\n *\r\n * @param {number} time - The number of ms to advance the Particle Emitter by.\r\n * @param {number} [delta] - The amount of delta to use for each step. Defaults to 1000 / 60.\r\n *\r\n * @return {this} This Particle Emitter.\r\n */\r\n fastForward: function (time, delta)\r\n {\r\n if (delta === undefined) { delta = 1000 / 60; }\r\n\r\n var total = 0;\r\n\r\n this.skipping = true;\r\n\r\n while (total < Math.abs(time))\r\n {\r\n this.preUpdate(0, delta);\r\n\r\n total += delta;\r\n }\r\n\r\n this.skipping = false;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Updates this emitter and its particles.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#preUpdate\r\n * @fires Phaser.GameObjects.Particles.Events#COMPLETE\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current timestamp as generated by the Request Animation Frame or SetTimeout.\r\n * @param {number} delta - The delta time, in ms, elapsed since the last frame.\r\n */\r\n preUpdate: function (time, delta)\r\n {\r\n // Scale the delta\r\n delta *= this.timeScale;\r\n\r\n var step = (delta / 1000);\r\n\r\n if (this.trackVisible)\r\n {\r\n this.visible = this.follow.visible;\r\n }\r\n\r\n this.getWorldTransformMatrix(this.worldMatrix);\r\n\r\n // Any particle processors?\r\n var processors = this.getProcessors();\r\n\r\n var particles = this.alive;\r\n var dead = this.dead;\r\n\r\n var i = 0;\r\n var rip = [];\r\n var length = particles.length;\r\n\r\n for (i = 0; i < length; i++)\r\n {\r\n var particle = particles[i];\r\n\r\n // update returns `true` if the particle is now dead (lifeCurrent <= 0)\r\n if (particle.update(delta, step, processors))\r\n {\r\n rip.push({ index: i, particle: particle });\r\n }\r\n }\r\n\r\n // Move dead particles to the dead array\r\n length = rip.length;\r\n\r\n if (length > 0)\r\n {\r\n var deathCallback = this.deathCallback;\r\n var deathCallbackScope = this.deathCallbackScope;\r\n\r\n for (i = length - 1; i >= 0; i--)\r\n {\r\n var entry = rip[i];\r\n\r\n // Remove from particles array\r\n particles.splice(entry.index, 1);\r\n\r\n // Add to dead array\r\n dead.push(entry.particle);\r\n\r\n // Callback\r\n if (deathCallback)\r\n {\r\n deathCallback.call(deathCallbackScope, entry.particle);\r\n }\r\n\r\n entry.particle.setPosition();\r\n }\r\n }\r\n\r\n if (!this.emitting && !this.skipping)\r\n {\r\n if (this.completeFlag === 1 && particles.length === 0)\r\n {\r\n this.completeFlag = 0;\r\n\r\n this.emit(Events.COMPLETE, this);\r\n }\r\n\r\n return;\r\n }\r\n\r\n if (this.frequency === 0)\r\n {\r\n this.emitParticle();\r\n }\r\n else if (this.frequency > 0)\r\n {\r\n this.flowCounter -= delta;\r\n\r\n while (this.flowCounter <= 0)\r\n {\r\n // Emits the 'quantity' number of particles\r\n this.emitParticle();\r\n\r\n // counter = frequency - remainder from previous delta\r\n this.flowCounter += this.frequency;\r\n }\r\n }\r\n\r\n // Duration or stopAfter set?\r\n if (!this.skipping)\r\n {\r\n if (this.duration > 0)\r\n {\r\n // elapsed\r\n this.elapsed += delta;\r\n\r\n if (this.elapsed >= this.duration)\r\n {\r\n this.stop();\r\n }\r\n }\r\n\r\n if (this.stopAfter > 0 && this.stopCounter >= this.stopAfter)\r\n {\r\n this.stop();\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Takes either a Rectangle Geometry object or an Arcade Physics Body and tests\r\n * to see if it intersects with any currently alive Particle in this Emitter.\r\n *\r\n * Overlapping particles are returned in an array, where you can perform further\r\n * processing on them. If nothing overlaps then the array will be empty.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#overlap\r\n * @since 3.60.0\r\n *\r\n * @param {(Phaser.Geom.Rectangle|Phaser.Physics.Arcade.Body)} target - A Rectangle or Arcade Physics Body to check for intersection against all alive particles.\r\n *\r\n * @return {Phaser.GameObjects.Particles.Particle[]} An array of Particles that overlap with the given target.\r\n */\r\n overlap: function (target)\r\n {\r\n var matrix = this.getWorldTransformMatrix();\r\n\r\n var alive = this.alive;\r\n var length = alive.length;\r\n\r\n var output = [];\r\n\r\n for (var i = 0; i < length; i++)\r\n {\r\n var particle = alive[i];\r\n\r\n if (RectangleToRectangle(target, particle.getBounds(matrix)))\r\n {\r\n output.push(particle);\r\n }\r\n }\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Returns a bounds Rectangle calculated from the bounds of all currently\r\n * _active_ Particles in this Emitter. If this Emitter has only just been\r\n * created and not yet rendered, then calling this method will return a Rectangle\r\n * with a max safe integer for dimensions. Use the `advance` parameter to\r\n * avoid this.\r\n *\r\n * Typically it takes a few seconds for a flow Emitter to 'warm up'. You can\r\n * use the `advance` and `delta` parameters to force the Emitter to\r\n * 'fast forward' in time to try and allow the bounds to be more accurate,\r\n * as it will calculate the bounds based on the particle bounds across all\r\n * timesteps, giving a better result.\r\n *\r\n * You can also use the `padding` parameter to increase the size of the\r\n * bounds. Emitters with a lot of randomness in terms of direction or lifespan\r\n * can often return a bounds smaller than their possible maximum. By using\r\n * the `padding` (and `advance` if needed) you can help limit this.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#getBounds\r\n * @since 3.60.0\r\n *\r\n * @param {number} [padding] - The amount of padding, in pixels, to add to the bounds Rectangle.\r\n * @param {number} [advance] - The number of ms to advance the Particle Emitter by. Defaults to 0, i.e. not used.\r\n * @param {number} [delta] - The amount of delta to use for each step. Defaults to 1000 / 60.\r\n * @param {Phaser.Geom.Rectangle} [output] - The Rectangle to store the results in. If not given a new one will be created.\r\n *\r\n * @return {Phaser.Geom.Rectangle} A Rectangle containing the calculated bounds of this Emitter.\r\n */\r\n getBounds: function (padding, advance, delta, output)\r\n {\r\n if (padding === undefined) { padding = 0; }\r\n if (advance === undefined) { advance = 0; }\r\n if (delta === undefined) { delta = 1000 / 60; }\r\n if (output === undefined) { output = new Rectangle(); }\r\n\r\n var matrix = this.getWorldTransformMatrix();\r\n\r\n var i;\r\n var bounds;\r\n var alive = this.alive;\r\n var setFirst = false;\r\n\r\n output.setTo(0, 0, 0, 0);\r\n\r\n if (advance > 0)\r\n {\r\n var total = 0;\r\n\r\n this.skipping = true;\r\n\r\n while (total < Math.abs(advance))\r\n {\r\n this.preUpdate(0, delta);\r\n\r\n for (i = 0; i < alive.length; i++)\r\n {\r\n bounds = alive[i].getBounds(matrix);\r\n\r\n if (!setFirst)\r\n {\r\n setFirst = true;\r\n\r\n CopyFrom(bounds, output);\r\n }\r\n else\r\n {\r\n MergeRect(output, bounds);\r\n }\r\n }\r\n\r\n total += delta;\r\n }\r\n\r\n this.skipping = false;\r\n }\r\n else\r\n {\r\n for (i = 0; i < alive.length; i++)\r\n {\r\n bounds = alive[i].getBounds(matrix);\r\n\r\n if (!setFirst)\r\n {\r\n setFirst = true;\r\n\r\n CopyFrom(bounds, output);\r\n }\r\n else\r\n {\r\n MergeRect(output, bounds);\r\n }\r\n }\r\n }\r\n\r\n if (padding > 0)\r\n {\r\n Inflate(output, padding, padding);\r\n }\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Prints a warning to the console if you mistakenly call this function\r\n * thinking it works the same way as Phaser v3.55.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#createEmitter\r\n * @since 3.60.0\r\n */\r\n createEmitter: function ()\r\n {\r\n throw new Error('createEmitter removed. See ParticleEmitter docs for info');\r\n },\r\n\r\n /**\r\n * The x coordinate the particles are emitted from.\r\n *\r\n * This is relative to the Emitters x coordinate and that of any parent.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#particleX\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType|Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType}\r\n * @since 3.60.0\r\n */\r\n particleX: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.x.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.x.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The y coordinate the particles are emitted from.\r\n *\r\n * This is relative to the Emitters x coordinate and that of any parent.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#particleY\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType|Phaser.Types.GameObjects.Particles.EmitterOpOnUpdateType}\r\n * @since 3.60.0\r\n */\r\n particleY: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.y.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.y.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The horizontal acceleration applied to emitted particles, in pixels per second squared.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#accelerationX\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType}\r\n * @since 3.60.0\r\n */\r\n accelerationX: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.accelerationX.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.accelerationX.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The vertical acceleration applied to emitted particles, in pixels per second squared.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#accelerationY\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType}\r\n * @since 3.60.0\r\n */\r\n accelerationY: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.accelerationY.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.accelerationY.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The maximum horizontal velocity emitted particles can reach, in pixels per second squared.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#maxVelocityX\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType}\r\n * @since 3.60.0\r\n * @default 10000\r\n */\r\n maxVelocityX: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.maxVelocityX.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.maxVelocityX.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The maximum vertical velocity emitted particles can reach, in pixels per second squared.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#maxVelocityY\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType}\r\n * @since 3.60.0\r\n * @default 10000\r\n */\r\n maxVelocityY: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.maxVelocityY.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.maxVelocityY.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The initial speed of emitted particles, in pixels per second.\r\n *\r\n * If using this as a getter it will return the `speedX` value.\r\n *\r\n * If using it as a setter it will update both `speedX` and `speedY` to the\r\n * given value.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#speed\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType}\r\n * @since 3.60.0\r\n */\r\n speed: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.speedX.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.speedX.onChange(value);\r\n this.ops.speedY.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The initial horizontal speed of emitted particles, in pixels per second.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#speedX\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType}\r\n * @since 3.60.0\r\n */\r\n speedX: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.speedX.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.speedX.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The initial vertical speed of emitted particles, in pixels per second.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#speedY\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType}\r\n * @since 3.60.0\r\n */\r\n speedY: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.speedY.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.speedY.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The x coordinate emitted particles move toward, when {@link Phaser.GameObjects.Particles.ParticleEmitter#moveTo} is true.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#moveToX\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType}\r\n * @since 3.60.0\r\n */\r\n moveToX: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.moveToX.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.moveToX.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The y coordinate emitted particles move toward, when {@link Phaser.GameObjects.Particles.ParticleEmitter#moveTo} is true.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#moveToY\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType}\r\n * @since 3.60.0\r\n */\r\n moveToY: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.moveToY.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.moveToY.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The amount of velocity particles will use when rebounding off the\r\n * emitter bounds, if set. A value of 0 means no bounce. A value of 1\r\n * means a full rebound.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#bounce\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType}\r\n * @since 3.60.0\r\n */\r\n bounce: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.bounce.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.bounce.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The horizontal scale of emitted particles.\r\n *\r\n * This is relative to the Emitters scale and that of any parent.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#particleScaleX\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType}\r\n * @since 3.60.0\r\n */\r\n particleScaleX: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.scaleX.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.scaleX.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The vertical scale of emitted particles.\r\n *\r\n * This is relative to the Emitters scale and that of any parent.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#particleScaleY\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType}\r\n * @since 3.60.0\r\n */\r\n particleScaleY: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.scaleY.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.scaleY.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * A color tint value that is applied to the texture of the emitted\r\n * particle. The value should be given in hex format, i.e. 0xff0000\r\n * for a red tint, and should not include the alpha channel.\r\n *\r\n * Tints are additive, meaning a tint value of white (0xffffff) will\r\n * effectively reset the tint to nothing.\r\n *\r\n * Modify the `ParticleEmitter.tintFill` property to change between\r\n * an additive and replacement tint mode.\r\n *\r\n * When you define the color via the Emitter config you should give\r\n * it as an array of color values. The Particle will then interpolate\r\n * through these colors over the course of its lifespan. Setting this\r\n * will override any `tint` value that may also be given.\r\n *\r\n * This is a WebGL only feature.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#particleColor\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType}\r\n * @since 3.60.0\r\n */\r\n particleColor: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.color.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.color.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Controls the easing function used when you have created an\r\n * Emitter that uses the `color` property to interpolate the\r\n * tint of Particles over their lifetime.\r\n *\r\n * Setting this has no effect if you haven't also applied a\r\n * `particleColor` to this Emitter.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#colorEase\r\n * @type {string}\r\n * @since 3.60.0\r\n */\r\n colorEase: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.color.easeName;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.color.setEase(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * A color tint value that is applied to the texture of the emitted\r\n * particle. The value should be given in hex format, i.e. 0xff0000\r\n * for a red tint, and should not include the alpha channel.\r\n *\r\n * Tints are additive, meaning a tint value of white (0xffffff) will\r\n * effectively reset the tint to nothing.\r\n *\r\n * Modify the `ParticleEmitter.tintFill` property to change between\r\n * an additive and replacement tint mode.\r\n *\r\n * The `tint` value will be overriden if a `color` array is provided.\r\n *\r\n * This is a WebGL only feature.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#particleTint\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType}\r\n * @since 3.60.0\r\n */\r\n particleTint: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.tint.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.tint.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The alpha value of the emitted particles. This is a value\r\n * between 0 and 1. Particles with alpha zero are invisible\r\n * and are therefore not rendered, but are still processed\r\n * by the Emitter.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#particleAlpha\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType}\r\n * @since 3.60.0\r\n */\r\n particleAlpha: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.alpha.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.alpha.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The lifespan of the emitted particles. This value is given\r\n * in milliseconds and defaults to 1000ms (1 second). When a\r\n * particle reaches this amount it is killed.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#lifespan\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType}\r\n * @since 3.60.0\r\n */\r\n lifespan: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.lifespan.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.lifespan.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The angle at which the particles are emitted. The values are\r\n * given in degrees. This allows you to control the direction\r\n * of the emitter. If you wish instead to change the rotation\r\n * of the particles themselves, see the `particleRotate` property.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#particleAngle\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType}\r\n * @since 3.60.0\r\n */\r\n particleAngle: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.angle.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.angle.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The rotation (or angle) of each particle when it is emitted.\r\n * The value is given in degrees and uses a right-handed\r\n * coordinate system, where 0 degrees points to the right, 90 degrees\r\n * points down and -90 degrees points up.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#particleRotate\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType}\r\n * @since 3.60.0\r\n */\r\n particleRotate: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.rotate.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.rotate.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The number of particles that are emitted each time an emission\r\n * occurs, i.e. from one 'explosion' or each frame in a 'flow' cycle.\r\n *\r\n * The default is 1.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#quantity\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType}\r\n * @see Phaser.GameObjects.Particles.ParticleEmitter#setFrequency\r\n * @see Phaser.GameObjects.Particles.ParticleEmitter#setQuantity\r\n * @since 3.60.0\r\n */\r\n quantity: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.quantity.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.quantity.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The number of milliseconds to wait after emission before\r\n * the particles start updating. This allows you to emit particles\r\n * that appear 'static' or still on-screen and then, after this value,\r\n * begin to move.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#delay\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType}\r\n * @since 3.60.0\r\n */\r\n delay: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.delay.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.delay.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The number of milliseconds to wait after a particle has finished\r\n * its life before it will be removed. This allows you to 'hold' a\r\n * particle on the screen once it has reached its final state\r\n * before it then vanishes.\r\n *\r\n * Note that all particle updates will cease, including changing\r\n * alpha, scale, movement or animation.\r\n *\r\n * Accessing this property should typically return a number.\r\n * However, it can be set to any valid EmitterOp onEmit type.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#hold\r\n * @type {Phaser.Types.GameObjects.Particles.EmitterOpOnEmitType}\r\n * @since 3.60.0\r\n */\r\n hold: {\r\n\r\n get: function ()\r\n {\r\n return this.ops.hold.current;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.ops.hold.onChange(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The internal flow counter.\r\n *\r\n * Treat this property as read-only.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#flowCounter\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n flowCounter: {\r\n\r\n get: function ()\r\n {\r\n return this.counters[0];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.counters[0] = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The internal frame counter.\r\n *\r\n * Treat this property as read-only.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#frameCounter\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n frameCounter: {\r\n\r\n get: function ()\r\n {\r\n return this.counters[1];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.counters[1] = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The internal animation counter.\r\n *\r\n * Treat this property as read-only.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#animCounter\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n animCounter: {\r\n\r\n get: function ()\r\n {\r\n return this.counters[2];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.counters[2] = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The internal elasped counter.\r\n *\r\n * Treat this property as read-only.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#elapsed\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n elapsed: {\r\n\r\n get: function ()\r\n {\r\n return this.counters[3];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.counters[3] = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The internal stop counter.\r\n *\r\n * Treat this property as read-only.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#stopCounter\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n stopCounter: {\r\n\r\n get: function ()\r\n {\r\n return this.counters[4];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.counters[4] = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The internal complete flag.\r\n *\r\n * Treat this property as read-only.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#completeFlag\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n completeFlag: {\r\n\r\n get: function ()\r\n {\r\n return this.counters[5];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.counters[5] = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The internal zone index.\r\n *\r\n * Treat this property as read-only.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#zoneIndex\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n zoneIndex: {\r\n\r\n get: function ()\r\n {\r\n return this.counters[6];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.counters[6] = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The internal zone total.\r\n *\r\n * Treat this property as read-only.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#zoneTotal\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n zoneTotal: {\r\n\r\n get: function ()\r\n {\r\n return this.counters[7];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.counters[7] = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The current frame index.\r\n *\r\n * Treat this property as read-only.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#currentFrame\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n currentFrame: {\r\n\r\n get: function ()\r\n {\r\n return this.counters[8];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.counters[8] = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The current animation index.\r\n *\r\n * Treat this property as read-only.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleEmitter#currentAnim\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n currentAnim: {\r\n\r\n get: function ()\r\n {\r\n return this.counters[9];\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.counters[9] = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Destroys this Particle Emitter and all Particles it owns.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleEmitter#preDestroy\r\n * @since 3.60.0\r\n */\r\n preDestroy: function ()\r\n {\r\n this.texture = null;\r\n this.frames = null;\r\n this.anims = null;\r\n this.emitCallback = null;\r\n this.emitCallbackScope = null;\r\n this.deathCallback = null;\r\n this.deathCallbackScope = null;\r\n this.emitZones = null;\r\n this.deathZones = null;\r\n this.bounds = null;\r\n this.follow = null;\r\n this.counters = null;\r\n\r\n var i;\r\n\r\n var ops = this.ops;\r\n\r\n for (i = 0; i < configOpMap.length; i++)\r\n {\r\n var key = configOpMap[i];\r\n\r\n ops[key].destroy();\r\n }\r\n\r\n for (i = 0; i < this.alive.length; i++)\r\n {\r\n this.alive[i].destroy();\r\n }\r\n\r\n for (i = 0; i < this.dead.length; i++)\r\n {\r\n this.dead[i].destroy();\r\n }\r\n\r\n this.ops = null;\r\n this.alive = [];\r\n this.dead = [];\r\n this.worldMatrix.destroy();\r\n }\r\n\r\n});\r\n\r\nmodule.exports = ParticleEmitter;\r\n\n\n/***/ }),\n\n/***/ 9871:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar RectangleToRectangle = __webpack_require__(59996);\r\nvar TransformMatrix = __webpack_require__(61340);\r\n\r\nvar tempMatrix1 = new TransformMatrix();\r\nvar tempMatrix2 = new TransformMatrix();\r\nvar tempMatrix3 = new TransformMatrix();\r\nvar tempMatrix4 = new TransformMatrix();\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Particles.Emitter#renderCanvas\r\n * @since 3.60.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.Particles.ParticleEmitter} emitter - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar ParticleEmitterCanvasRenderer = function (renderer, emitter, camera, parentMatrix)\r\n{\r\n var camMatrix = tempMatrix1;\r\n var calcMatrix = tempMatrix2;\r\n var particleMatrix = tempMatrix3;\r\n var managerMatrix = tempMatrix4;\r\n\r\n if (parentMatrix)\r\n {\r\n managerMatrix.loadIdentity();\r\n managerMatrix.multiply(parentMatrix);\r\n managerMatrix.translate(emitter.x, emitter.y);\r\n managerMatrix.rotate(emitter.rotation);\r\n managerMatrix.scale(emitter.scaleX, emitter.scaleY);\r\n }\r\n else\r\n {\r\n managerMatrix.applyITRS(emitter.x, emitter.y, emitter.rotation, emitter.scaleX, emitter.scaleY);\r\n }\r\n\r\n var ctx = renderer.currentContext;\r\n var roundPixels = camera.roundPixels;\r\n var camerAlpha = camera.alpha;\r\n var emitterAlpha = emitter.alpha;\r\n\r\n var particles = emitter.alive;\r\n var particleCount = particles.length;\r\n var viewBounds = emitter.viewBounds;\r\n\r\n if (!emitter.visible || particleCount === 0 || (viewBounds && !RectangleToRectangle(viewBounds, camera.worldView)))\r\n {\r\n return;\r\n }\r\n\r\n if (emitter.sortCallback)\r\n {\r\n emitter.depthSort();\r\n }\r\n\r\n camera.addToRenderList(emitter);\r\n\r\n var scrollFactorX = emitter.scrollFactorX;\r\n var scrollFactorY = emitter.scrollFactorY;\r\n\r\n ctx.save();\r\n\r\n ctx.globalCompositeOperation = renderer.blendModes[emitter.blendMode];\r\n\r\n for (var i = 0; i < particleCount; i++)\r\n {\r\n var particle = particles[i];\r\n\r\n var alpha = particle.alpha * emitterAlpha * camerAlpha;\r\n\r\n if (alpha <= 0 || particle.scaleX === 0 || particle.scaleY === 0)\r\n {\r\n continue;\r\n }\r\n\r\n particleMatrix.applyITRS(particle.x, particle.y, particle.rotation, particle.scaleX, particle.scaleY);\r\n\r\n camMatrix.copyFrom(camera.matrix);\r\n\r\n camMatrix.multiplyWithOffset(managerMatrix, -camera.scrollX * scrollFactorX, -camera.scrollY * scrollFactorY);\r\n\r\n // Undo the camera scroll\r\n particleMatrix.e = particle.x;\r\n particleMatrix.f = particle.y;\r\n\r\n // Multiply by the particle matrix, store result in calcMatrix\r\n camMatrix.multiply(particleMatrix, calcMatrix);\r\n\r\n var frame = particle.frame;\r\n var cd = frame.canvasData;\r\n\r\n if (cd.width > 0 && cd.height > 0)\r\n {\r\n var x = -(frame.halfWidth);\r\n var y = -(frame.halfHeight);\r\n\r\n ctx.globalAlpha = alpha;\r\n\r\n ctx.save();\r\n\r\n calcMatrix.setToContext(ctx);\r\n\r\n if (roundPixels)\r\n {\r\n x = Math.round(x);\r\n y = Math.round(y);\r\n }\r\n\r\n ctx.imageSmoothingEnabled = !frame.source.scaleMode;\r\n\r\n ctx.drawImage(frame.source.image, cd.x, cd.y, cd.width, cd.height, x, y, cd.width, cd.height);\r\n\r\n ctx.restore();\r\n }\r\n }\r\n\r\n ctx.restore();\r\n};\r\n\r\nmodule.exports = ParticleEmitterCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 92730:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BuildGameObject = __webpack_require__(25305);\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar ParticleEmitter = __webpack_require__(31600);\r\n\r\n/**\r\n * Creates a new Particle Emitter Game Object and returns it.\r\n *\r\n * Prior to Phaser v3.60 this function would create a `ParticleEmitterManager`. These were removed\r\n * in v3.60 and replaced with creating a `ParticleEmitter` instance directly. Please see the\r\n * updated function parameters and class documentation for more details.\r\n *\r\n * Note: This method will only be available if the Particles Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#particles\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Particles.ParticleEmitterCreatorConfig} config - The configuration object this Game Object will use to create itself.\r\n * @param {boolean} [addToScene] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.\r\n *\r\n * @return {Phaser.GameObjects.Particles.ParticleEmitter} The Game Object that was created.\r\n */\r\nGameObjectCreator.register('particles', function (config, addToScene)\r\n{\r\n if (config === undefined) { config = {}; }\r\n\r\n var key = GetAdvancedValue(config, 'key', null);\r\n var emitterConfig = GetFastValue(config, 'config', null);\r\n\r\n var emitter = new ParticleEmitter(this.scene, 0, 0, key);\r\n\r\n if (addToScene !== undefined)\r\n {\r\n config.add = addToScene;\r\n }\r\n\r\n BuildGameObject(this.scene, emitter, config);\r\n\r\n if (emitterConfig)\r\n {\r\n emitter.setConfig(emitterConfig);\r\n }\r\n\r\n return emitter;\r\n});\r\n\n\n/***/ }),\n\n/***/ 676:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GameObjectFactory = __webpack_require__(39429);\r\nvar ParticleEmitter = __webpack_require__(31600);\r\n\r\n/**\r\n * Creates a new Particle Emitter Game Object and adds it to the Scene.\r\n *\r\n * If you wish to configure the Emitter after creating it, use the `ParticleEmitter.setConfig` method.\r\n *\r\n * Prior to Phaser v3.60 this function would create a `ParticleEmitterManager`. These were removed\r\n * in v3.60 and replaced with creating a `ParticleEmitter` instance directly. Please see the\r\n * updated function parameters and class documentation for more details.\r\n *\r\n * Note: This method will only be available if the Particles Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#particles\r\n * @since 3.60.0\r\n *\r\n * @param {number} [x] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y] - The vertical position of this Game Object in the world.\r\n * @param {(string|Phaser.Textures.Texture)} [texture] - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {Phaser.Types.GameObjects.Particles.ParticleEmitterConfig} [config] - Configuration settings for the Particle Emitter.\r\n *\r\n * @return {Phaser.GameObjects.Particles.ParticleEmitter} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('particles', function (x, y, texture, config)\r\n{\r\n if (x !== undefined && typeof x === 'string')\r\n {\r\n console.warn('ParticleEmitterManager was removed in Phaser 3.60. See documentation for details');\r\n }\r\n\r\n return this.displayList.add(new ParticleEmitter(this.scene, x, y, texture, config));\r\n});\r\n\n\n/***/ }),\n\n/***/ 90668:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(21188);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(9871);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 21188:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar RectangleToRectangle = __webpack_require__(59996);\r\nvar TransformMatrix = __webpack_require__(61340);\r\nvar Utils = __webpack_require__(70554);\r\n\r\nvar tempMatrix1 = new TransformMatrix();\r\nvar tempMatrix2 = new TransformMatrix();\r\nvar tempMatrix3 = new TransformMatrix();\r\nvar tempMatrix4 = new TransformMatrix();\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Particles.Emitter#renderWebGL\r\n * @since 3.60.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Particles.ParticleEmitter} emitter - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar ParticleEmitterWebGLRenderer = function (renderer, emitter, camera, parentMatrix)\r\n{\r\n var pipeline = renderer.pipelines.set(emitter.pipeline);\r\n\r\n var camMatrix = tempMatrix1;\r\n var calcMatrix = tempMatrix2;\r\n var particleMatrix = tempMatrix3;\r\n var managerMatrix = tempMatrix4;\r\n\r\n if (parentMatrix)\r\n {\r\n managerMatrix.loadIdentity();\r\n managerMatrix.multiply(parentMatrix);\r\n managerMatrix.translate(emitter.x, emitter.y);\r\n managerMatrix.rotate(emitter.rotation);\r\n managerMatrix.scale(emitter.scaleX, emitter.scaleY);\r\n }\r\n else\r\n {\r\n managerMatrix.applyITRS(emitter.x, emitter.y, emitter.rotation, emitter.scaleX, emitter.scaleY);\r\n }\r\n\r\n var getTint = Utils.getTintAppendFloatAlpha;\r\n var camerAlpha = camera.alpha;\r\n var emitterAlpha = emitter.alpha;\r\n\r\n renderer.pipelines.preBatch(emitter);\r\n\r\n var particles = emitter.alive;\r\n var particleCount = particles.length;\r\n var viewBounds = emitter.viewBounds;\r\n\r\n if (particleCount === 0 || (viewBounds && !RectangleToRectangle(viewBounds, camera.worldView)))\r\n {\r\n return;\r\n }\r\n\r\n if (emitter.sortCallback)\r\n {\r\n emitter.depthSort();\r\n }\r\n\r\n camera.addToRenderList(emitter);\r\n\r\n camMatrix.copyFrom(camera.matrix);\r\n\r\n camMatrix.multiplyWithOffset(managerMatrix, -camera.scrollX * emitter.scrollFactorX, -camera.scrollY * emitter.scrollFactorY);\r\n\r\n renderer.setBlendMode(emitter.blendMode);\r\n\r\n if (emitter.mask)\r\n {\r\n emitter.mask.preRenderWebGL(renderer, emitter, camera);\r\n\r\n renderer.pipelines.set(emitter.pipeline);\r\n }\r\n\r\n var tintEffect = emitter.tintFill;\r\n var textureUnit;\r\n var glTexture;\r\n\r\n for (var i = 0; i < particleCount; i++)\r\n {\r\n var particle = particles[i];\r\n\r\n var alpha = particle.alpha * emitterAlpha * camerAlpha;\r\n\r\n if (alpha <= 0 || particle.scaleX === 0 || particle.scaleY === 0)\r\n {\r\n continue;\r\n }\r\n\r\n particleMatrix.applyITRS(particle.x, particle.y, particle.rotation, particle.scaleX, particle.scaleY);\r\n\r\n // Undo the camera scroll\r\n particleMatrix.e = particle.x;\r\n particleMatrix.f = particle.y;\r\n\r\n // Multiply by the particle matrix, store result in calcMatrix\r\n camMatrix.multiply(particleMatrix, calcMatrix);\r\n\r\n var frame = particle.frame;\r\n\r\n if (frame.glTexture !== glTexture)\r\n {\r\n glTexture = frame.glTexture;\r\n\r\n textureUnit = pipeline.setGameObject(emitter, frame);\r\n }\r\n\r\n var x = -frame.halfWidth;\r\n var y = -frame.halfHeight;\r\n\r\n var quad = calcMatrix.setQuad(x, y, x + frame.width, y + frame.height);\r\n\r\n var tint = getTint(particle.tint, alpha);\r\n\r\n if (pipeline.shouldFlush(6))\r\n {\r\n pipeline.flush();\r\n\r\n textureUnit = pipeline.setGameObject(emitter, frame);\r\n }\r\n\r\n pipeline.batchQuad(\r\n emitter,\r\n quad[0], quad[1], quad[2], quad[3], quad[4], quad[5], quad[6], quad[7],\r\n frame.u0, frame.v0, frame.u1, frame.v1,\r\n tint, tint, tint, tint,\r\n tintEffect,\r\n glTexture,\r\n textureUnit\r\n );\r\n }\r\n\r\n if (emitter.mask)\r\n {\r\n emitter.mask.postRenderWebGL(renderer, camera);\r\n }\r\n\r\n renderer.pipelines.postBatch(emitter);\r\n};\r\n\r\nmodule.exports = ParticleEmitterWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 20286:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n/**\r\n * @classdesc\r\n * This class provides the structured required for all Particle Processors.\r\n *\r\n * You should extend it and add the functionality required for your processor,\r\n * including tidying up any resources this may create in the `destroy` method.\r\n *\r\n * See the GravityWell for an example of a processor.\r\n *\r\n * @class ParticleProcessor\r\n * @memberof Phaser.GameObjects.Particles\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {number} [x=0] - The x coordinate of the Particle Processor, in world space.\r\n * @param {number} [y=0] - The y coordinate of the Particle Processor, in world space.\r\n * @param {boolean} [active=true] - The active state of this Particle Processor.\r\n */\r\nvar ParticleProcessor = new Class({\r\n\r\n initialize:\r\n\r\n function ParticleProcessor (x, y, active)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (active === undefined) { active = true; }\r\n\r\n /**\r\n * A reference to the Particle Emitter that owns this Processor.\r\n * This is set automatically when the Processor is added to an Emitter\r\n * and nulled when removed or destroyed.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleProcessor#manager\r\n * @type {Phaser.GameObjects.Particles.ParticleEmitter}\r\n * @since 3.60.0\r\n */\r\n this.emitter;\r\n\r\n /**\r\n * The x coordinate of the Particle Processor, in world space.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleProcessor#x\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.x = x;\r\n\r\n /**\r\n * The y coordinate of the Particle Processor, in world space.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleProcessor#y\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.y = y;\r\n\r\n /**\r\n * The active state of the Particle Processor.\r\n *\r\n * An inactive Particle Processor will be skipped for processing by\r\n * its parent Emitter.\r\n *\r\n * @name Phaser.GameObjects.Particles.ParticleProcessor#active\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.active = active;\r\n },\r\n\r\n /**\r\n * The Particle Processor update method should be overriden by your own\r\n * method and handle the processing of the particles, typically modifying\r\n * their velocityX/Y values based on the criteria of this processor.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleProcessor#update\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.Particle} particle - The Particle to update.\r\n * @param {number} delta - The delta time in ms.\r\n * @param {number} step - The delta value divided by 1000.\r\n * @param {number} t - The current normalized lifetime of the particle, between 0 (birth) and 1 (death).\r\n */\r\n update: function ()\r\n {\r\n },\r\n\r\n /**\r\n * Destroys this Particle Processor by removing all external references.\r\n *\r\n * This is called automatically when the owning Particle Emitter is destroyed.\r\n *\r\n * @method Phaser.GameObjects.Particles.ParticleProcessor#destroy\r\n * @since 3.60.0\r\n */\r\n destroy: function ()\r\n {\r\n this.emitter = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = ParticleProcessor;\r\n\n\n/***/ }),\n\n/***/ 9774:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Particle Emitter Complete Event.\r\n *\r\n * This event is dispatched when the final particle, emitted from a Particle Emitter that\r\n * has been stopped, dies. Upon receipt of this event you know that no particles are\r\n * still rendering at this point in time.\r\n *\r\n * Listen for it on a Particle Emitter instance using `ParticleEmitter.on('complete', listener)`.\r\n *\r\n * @event Phaser.GameObjects.Particles.Events#COMPLETE\r\n * @type {string}\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.ParticleEmitter} emitter - A reference to the Particle Emitter that just completed.\r\n */\r\nmodule.exports = 'complete';\r\n\n\n/***/ }),\n\n/***/ 812:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Particle Emitter Death Zone Event.\r\n *\r\n * This event is dispatched when a Death Zone kills a Particle instance.\r\n *\r\n * Listen for it on a Particle Emitter instance using `ParticleEmitter.on('deathzone', listener)`.\r\n *\r\n * If you wish to know when the final particle is killed, see the `COMPLETE` event.\r\n *\r\n * @event Phaser.GameObjects.Particles.Events#DEATH_ZONE\r\n * @type {string}\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.ParticleEmitter} emitter - A reference to the Particle Emitter that owns the Particle and Death Zone.\r\n * @param {Phaser.GameObjects.Particles.Particle} particle - The Particle that has been killed.\r\n * @param {Phaser.GameObjects.Particles.Zones.DeathZone} zone - The Death Zone that killed the particle.\r\n */\r\nmodule.exports = 'deathzone';\r\n\n\n/***/ }),\n\n/***/ 30522:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Particle Emitter Explode Event.\r\n *\r\n * This event is dispatched when a Particle Emitter explodes a set of particles.\r\n *\r\n * Listen for it on a Particle Emitter instance using `ParticleEmitter.on('explode', listener)`.\r\n *\r\n * @event Phaser.GameObjects.Particles.Events#EXPLODE\r\n * @type {string}\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.ParticleEmitter} emitter - A reference to the Particle Emitter that just completed.\r\n * @param {Phaser.GameObjects.Particles.Particle} particle - The most recently emitted Particle.\r\n */\r\nmodule.exports = 'explode';\r\n\n\n/***/ }),\n\n/***/ 96695:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Particle Emitter Start Event.\r\n *\r\n * This event is dispatched when a Particle Emitter starts emission of particles.\r\n *\r\n * Listen for it on a Particle Emitter instance using `ParticleEmitter.on('start', listener)`.\r\n *\r\n * @event Phaser.GameObjects.Particles.Events#START\r\n * @type {string}\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.ParticleEmitter} emitter - A reference to the Particle Emitter that just completed.\r\n */\r\nmodule.exports = 'start';\r\n\n\n/***/ }),\n\n/***/ 18677:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Particle Emitter Stop Event.\r\n *\r\n * This event is dispatched when a Particle Emitter is stopped. This can happen either\r\n * when you directly call the `ParticleEmitter.stop` method, or if the emitter has\r\n * been configured to stop after a set time via the `duration` property, or after a\r\n * set number of particles via the `stopAfter` property.\r\n *\r\n * Listen for it on a Particle Emitter instance using `ParticleEmitter.on('stop', listener)`.\r\n *\r\n * Note that just because the emitter has stopped, that doesn't mean there aren't still\r\n * particles alive and rendering. It just means the emitter has stopped emitting particles.\r\n *\r\n * If you wish to know when the final particle is killed, see the `COMPLETE` event.\r\n *\r\n * @event Phaser.GameObjects.Particles.Events#STOP\r\n * @type {string}\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.ParticleEmitter} emitter - A reference to the Particle Emitter that just completed.\r\n */\r\nmodule.exports = 'stop';\r\n\n\n/***/ }),\n\n/***/ 20696:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.GameObjects.Particles.Events\r\n */\r\n\r\nmodule.exports = {\r\n\r\n COMPLETE: __webpack_require__(9774),\r\n DEATH_ZONE: __webpack_require__(812),\r\n EXPLODE: __webpack_require__(30522),\r\n START: __webpack_require__(96695),\r\n STOP: __webpack_require__(18677)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 18404:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.GameObjects.Particles\r\n */\r\n\r\nmodule.exports = {\r\n\r\n EmitterColorOp: __webpack_require__(76472),\r\n EmitterOp: __webpack_require__(44777),\r\n Events: __webpack_require__(20696),\r\n GravityWell: __webpack_require__(24502),\r\n Particle: __webpack_require__(56480),\r\n ParticleBounds: __webpack_require__(69601),\r\n ParticleEmitter: __webpack_require__(31600),\r\n ParticleProcessor: __webpack_require__(20286),\r\n Zones: __webpack_require__(21024)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 26388:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n/**\r\n * @classdesc\r\n * A Death Zone.\r\n *\r\n * A Death Zone is a special type of zone that will kill a Particle as soon as it either enters, or leaves, the zone.\r\n *\r\n * The zone consists of a `source` which could be a Geometric shape, such as a Rectangle or Ellipse, or your own\r\n * object as long as it includes a `contains` method for which the Particles can be tested against.\r\n *\r\n * @class DeathZone\r\n * @memberof Phaser.GameObjects.Particles.Zones\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Particles.DeathZoneSource} source - An object instance that has a `contains` method that returns a boolean when given `x` and `y` arguments.\r\n * @param {boolean} killOnEnter - Should the Particle be killed when it enters the zone? `true` or leaves it? `false`\r\n */\r\nvar DeathZone = new Class({\r\n\r\n initialize:\r\n\r\n function DeathZone (source, killOnEnter)\r\n {\r\n /**\r\n * An object instance that has a `contains` method that returns a boolean when given `x` and `y` arguments.\r\n * This could be a Geometry shape, such as `Phaser.Geom.Circle`, or your own custom object.\r\n *\r\n * @name Phaser.GameObjects.Particles.Zones.DeathZone#source\r\n * @type {Phaser.Types.GameObjects.Particles.DeathZoneSource}\r\n * @since 3.0.0\r\n */\r\n this.source = source;\r\n\r\n /**\r\n * Set to `true` if the Particle should be killed if it enters this zone.\r\n * Set to `false` to kill the Particle if it leaves this zone.\r\n *\r\n * @name Phaser.GameObjects.Particles.Zones.DeathZone#killOnEnter\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.killOnEnter = killOnEnter;\r\n },\r\n\r\n /**\r\n * Checks if the given Particle will be killed or not by this zone.\r\n *\r\n * @method Phaser.GameObjects.Particles.Zones.DeathZone#willKill\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.Particle} particle - The particle to test against this Death Zones.\r\n *\r\n * @return {boolean} Return `true` if the Particle is to be killed, otherwise return `false`.\r\n */\r\n willKill: function (particle)\r\n {\r\n var withinZone = this.source.contains(particle.x, particle.y);\r\n\r\n return (withinZone && this.killOnEnter || !withinZone && !this.killOnEnter);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = DeathZone;\r\n\n\n/***/ }),\n\n/***/ 19909:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n/**\r\n * @classdesc\r\n * A zone that places particles on a shape's edges.\r\n *\r\n * @class EdgeZone\r\n * @memberof Phaser.GameObjects.Particles.Zones\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Particles.EdgeZoneSource} source - An object instance with a `getPoints(quantity, stepRate)` method returning an array of points.\r\n * @param {number} quantity - The number of particles to place on the source edge. Set to 0 to use `stepRate` instead.\r\n * @param {number} [stepRate] - The distance between each particle. When set, `quantity` is implied and should be set to 0.\r\n * @param {boolean} [yoyo=false] - Whether particles are placed from start to end and then end to start.\r\n * @param {boolean} [seamless=true] - Whether one endpoint will be removed if it's identical to the other.\r\n * @param {number} [total=-1] - The total number of particles this zone will emit before passing over to the next emission zone in the Emitter. -1 means it will never pass over and you must use `setEmitZone` to change it.\r\n */\r\nvar EdgeZone = new Class({\r\n\r\n initialize:\r\n\r\n function EdgeZone (source, quantity, stepRate, yoyo, seamless, total)\r\n {\r\n if (yoyo === undefined) { yoyo = false; }\r\n if (seamless === undefined) { seamless = true; }\r\n if (total === undefined) { total = -1; }\r\n\r\n /**\r\n * An object instance with a `getPoints(quantity, stepRate)` method returning an array of points.\r\n *\r\n * @name Phaser.GameObjects.Particles.Zones.EdgeZone#source\r\n * @type {Phaser.Types.GameObjects.Particles.EdgeZoneSource|Phaser.Types.GameObjects.Particles.RandomZoneSource}\r\n * @since 3.0.0\r\n */\r\n this.source = source;\r\n\r\n /**\r\n * The points placed on the source edge.\r\n *\r\n * @name Phaser.GameObjects.Particles.Zones.EdgeZone#points\r\n * @type {Phaser.Geom.Point[]}\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this.points = [];\r\n\r\n /**\r\n * The number of particles to place on the source edge. Set to 0 to use `stepRate` instead.\r\n *\r\n * @name Phaser.GameObjects.Particles.Zones.EdgeZone#quantity\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.quantity = quantity;\r\n\r\n /**\r\n * The distance between each particle. When set, `quantity` is implied and should be set to 0.\r\n *\r\n * @name Phaser.GameObjects.Particles.Zones.EdgeZone#stepRate\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.stepRate = stepRate;\r\n\r\n /**\r\n * Whether particles are placed from start to end and then end to start.\r\n *\r\n * @name Phaser.GameObjects.Particles.Zones.EdgeZone#yoyo\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.yoyo = yoyo;\r\n\r\n /**\r\n * The counter used for iterating the EdgeZone's points.\r\n *\r\n * @name Phaser.GameObjects.Particles.Zones.EdgeZone#counter\r\n * @type {number}\r\n * @default -1\r\n * @since 3.0.0\r\n */\r\n this.counter = -1;\r\n\r\n /**\r\n * Whether one endpoint will be removed if it's identical to the other.\r\n *\r\n * @name Phaser.GameObjects.Particles.Zones.EdgeZone#seamless\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.seamless = seamless;\r\n\r\n /**\r\n * An internal count of the points belonging to this EdgeZone.\r\n *\r\n * @name Phaser.GameObjects.Particles.Zones.EdgeZone#_length\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this._length = 0;\r\n\r\n /**\r\n * An internal value used to keep track of the current iteration direction for the EdgeZone's points.\r\n *\r\n * 0 = forwards, 1 = backwards\r\n *\r\n * @name Phaser.GameObjects.Particles.Zones.EdgeZone#_direction\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this._direction = 0;\r\n\r\n /**\r\n * The total number of particles this zone will emit before the Emitter\r\n * transfers control over to the next zone in its emission zone list.\r\n *\r\n * By default this is -1, meaning it will never pass over from this\r\n * zone to another one. You can call the `ParticleEmitter.setEmitZone`\r\n * method to change it, or set this value to something else via the\r\n * config, or directly at runtime.\r\n *\r\n * A value of 1 would mean the zones rotate in order, but it can\r\n * be set to any integer value.\r\n *\r\n * @name Phaser.GameObjects.Particles.Zones.EdgeZone#total\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.total = total;\r\n\r\n this.updateSource();\r\n },\r\n\r\n /**\r\n * Update the {@link Phaser.GameObjects.Particles.Zones.EdgeZone#points} from the EdgeZone's\r\n * {@link Phaser.GameObjects.Particles.Zones.EdgeZone#source}.\r\n *\r\n * Also updates internal properties.\r\n *\r\n * @method Phaser.GameObjects.Particles.Zones.EdgeZone#updateSource\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Edge Zone.\r\n */\r\n updateSource: function ()\r\n {\r\n this.points = this.source.getPoints(this.quantity, this.stepRate);\r\n\r\n // Remove ends?\r\n if (this.seamless)\r\n {\r\n var a = this.points[0];\r\n var b = this.points[this.points.length - 1];\r\n\r\n if (a.x === b.x && a.y === b.y)\r\n {\r\n this.points.pop();\r\n }\r\n }\r\n\r\n var oldLength = this._length;\r\n\r\n this._length = this.points.length;\r\n\r\n // Adjust counter if we now have less points than before\r\n if (this._length < oldLength && this.counter > this._length)\r\n {\r\n this.counter = this._length - 1;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Change the source of the EdgeZone.\r\n *\r\n * @method Phaser.GameObjects.Particles.Zones.EdgeZone#changeSource\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Particles.EdgeZoneSource} source - An object instance with a `getPoints(quantity, stepRate)` method returning an array of points.\r\n *\r\n * @return {this} This Edge Zone.\r\n */\r\n changeSource: function (source)\r\n {\r\n this.source = source;\r\n\r\n return this.updateSource();\r\n },\r\n\r\n /**\r\n * Get the next point in the Zone and set its coordinates on the given Particle.\r\n *\r\n * @method Phaser.GameObjects.Particles.Zones.EdgeZone#getPoint\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.Particle} particle - The Particle.\r\n */\r\n getPoint: function (particle)\r\n {\r\n if (this._direction === 0)\r\n {\r\n this.counter++;\r\n\r\n if (this.counter >= this._length)\r\n {\r\n if (this.yoyo)\r\n {\r\n this._direction = 1;\r\n this.counter = this._length - 1;\r\n }\r\n else\r\n {\r\n this.counter = 0;\r\n }\r\n }\r\n }\r\n else\r\n {\r\n this.counter--;\r\n\r\n if (this.counter === -1)\r\n {\r\n if (this.yoyo)\r\n {\r\n this._direction = 0;\r\n this.counter = 0;\r\n }\r\n else\r\n {\r\n this.counter = this._length - 1;\r\n }\r\n }\r\n }\r\n\r\n var point = this.points[this.counter];\r\n\r\n if (point)\r\n {\r\n particle.x = point.x;\r\n particle.y = point.y;\r\n }\r\n }\r\n\r\n});\r\n\r\nmodule.exports = EdgeZone;\r\n\n\n/***/ }),\n\n/***/ 68875:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * A zone that places particles randomly within a shapes area.\r\n *\r\n * @class RandomZone\r\n * @memberof Phaser.GameObjects.Particles.Zones\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Particles.RandomZoneSource} source - An object instance with a `getRandomPoint(point)` method.\r\n */\r\nvar RandomZone = new Class({\r\n\r\n initialize:\r\n\r\n function RandomZone (source)\r\n {\r\n /**\r\n * An object instance with a `getRandomPoint(point)` method.\r\n *\r\n * @name Phaser.GameObjects.Particles.Zones.RandomZone#source\r\n * @type {Phaser.Types.GameObjects.Particles.RandomZoneSource}\r\n * @since 3.0.0\r\n */\r\n this.source = source;\r\n\r\n /**\r\n * Internal calculation vector.\r\n *\r\n * @name Phaser.GameObjects.Particles.Zones.RandomZone#_tempVec\r\n * @type {Phaser.Math.Vector2}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._tempVec = new Vector2();\r\n\r\n /**\r\n * The total number of particles this zone will emit before the Emitter\r\n * transfers control over to the next zone in its emission zone list.\r\n *\r\n * By default this is -1, meaning it will never pass over from this\r\n * zone to another one. You can call the `ParticleEmitter.setEmitZone`\r\n * method to change it, or set this value to something else via the\r\n * config, or directly at runtime.\r\n *\r\n * A value of 1 would mean the zones rotate in order, but it can\r\n * be set to any integer value.\r\n *\r\n * @name Phaser.GameObjects.Particles.Zones.RandomZone#total\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.total = -1;\r\n },\r\n\r\n /**\r\n * Get the next point in the Zone and set its coordinates on the given Particle.\r\n *\r\n * @method Phaser.GameObjects.Particles.Zones.RandomZone#getPoint\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Particles.Particle} particle - The Particle.\r\n */\r\n getPoint: function (particle)\r\n {\r\n var vec = this._tempVec;\r\n\r\n this.source.getRandomPoint(vec);\r\n\r\n particle.x = vec.x;\r\n particle.y = vec.y;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = RandomZone;\r\n\n\n/***/ }),\n\n/***/ 21024:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.GameObjects.Particles.Zones\r\n */\r\n\r\nmodule.exports = {\r\n\r\n DeathZone: __webpack_require__(26388),\r\n EdgeZone: __webpack_require__(19909),\r\n RandomZone: __webpack_require__(68875)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 1159:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar Sprite = __webpack_require__(68287);\r\n\r\n/**\r\n * @classdesc\r\n * A PathFollower Game Object.\r\n *\r\n * A PathFollower is a Sprite Game Object with some extra helpers to allow it to follow a Path automatically.\r\n *\r\n * Anything you can do with a standard Sprite can be done with this PathFollower, such as animate it, tint it,\r\n * scale it and so on.\r\n *\r\n * PathFollowers are bound to a single Path at any one time and can traverse the length of the Path, from start\r\n * to finish, forwards or backwards, or from any given point on the Path to its end. They can optionally rotate\r\n * to face the direction of the path, be offset from the path coordinates or rotate independently of the Path.\r\n *\r\n * @class PathFollower\r\n * @extends Phaser.GameObjects.Sprite\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @extends Phaser.GameObjects.Components.PathFollower\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this PathFollower belongs.\r\n * @param {Phaser.Curves.Path} path - The Path this PathFollower is following. It can only follow one Path at a time.\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {(string|Phaser.Textures.Texture)} texture - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - An optional frame from the Texture this Game Object is rendering with.\r\n */\r\nvar PathFollower = new Class({\r\n\r\n Extends: Sprite,\r\n\r\n Mixins: [\r\n Components.PathFollower\r\n ],\r\n\r\n initialize:\r\n\r\n function PathFollower (scene, path, x, y, texture, frame)\r\n {\r\n Sprite.call(this, scene, x, y, texture, frame);\r\n\r\n this.path = path;\r\n },\r\n\r\n /**\r\n * Internal update handler that advances this PathFollower along the path.\r\n *\r\n * Called automatically by the Scene step, should not typically be called directly.\r\n *\r\n * @method Phaser.GameObjects.PathFollower#preUpdate\r\n * @protected\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current timestamp as generated by the Request Animation Frame or SetTimeout.\r\n * @param {number} delta - The delta time, in ms, elapsed since the last frame.\r\n */\r\n preUpdate: function (time, delta)\r\n {\r\n this.anims.update(time, delta);\r\n this.pathUpdate(time);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = PathFollower;\r\n\n\n/***/ }),\n\n/***/ 90145:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GameObjectFactory = __webpack_require__(39429);\r\nvar PathFollower = __webpack_require__(1159);\r\n\r\n/**\r\n * Creates a new PathFollower Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the PathFollower Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#follower\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Curves.Path} path - The Path this PathFollower is connected to.\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {(string|Phaser.Textures.Texture)} texture - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - An optional frame from the Texture this Game Object is rendering with.\r\n *\r\n * @return {Phaser.GameObjects.PathFollower} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('follower', function (path, x, y, key, frame)\r\n{\r\n var sprite = new PathFollower(this.scene, path, x, y, key, frame);\r\n\r\n this.displayList.add(sprite);\r\n this.updateList.add(sprite);\r\n\r\n return sprite;\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectFactory context.\r\n//\r\n// There are several properties available to use:\r\n//\r\n// this.scene - a reference to the Scene that owns the GameObjectFactory\r\n// this.displayList - a reference to the Display List the Scene owns\r\n// this.updateList - a reference to the Update List the Scene owns\r\n\n\n/***/ }),\n\n/***/ 33663:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar AnimationState = __webpack_require__(9674);\r\nvar Class = __webpack_require__(83419);\r\nvar GenerateGridVerts = __webpack_require__(48803);\r\nvar IntegerToRGB = __webpack_require__(90664);\r\nvar Mesh = __webpack_require__(4703);\r\nvar UUID = __webpack_require__(45650);\r\n\r\n/**\r\n * @classdesc\r\n * A Plane Game Object.\r\n *\r\n * The Plane Game Object is a helper class that takes the Mesh Game Object and extends it,\r\n * allowing for fast and easy creation of Planes. A Plane is a one-sided grid of cells,\r\n * where you specify the number of cells in each dimension. The Plane can have a texture\r\n * that is either repeated (tiled) across each cell, or applied to the full Plane.\r\n *\r\n * The Plane can then be manipulated in 3D space, with rotation across all 3 axis.\r\n *\r\n * This allows you to create effects not possible with regular Sprites, such as perspective\r\n * distortion. You can also adjust the vertices on a per-vertex basis. Plane data becomes\r\n * part of the WebGL batch, just like standard Sprites, so doesn't introduce any additional\r\n * shader overhead. Because the Plane just generates vertices into the WebGL batch, like any\r\n * other Sprite, you can use all of the common Game Object components on a Plane too,\r\n * such as a custom pipeline, mask, blend mode or texture.\r\n *\r\n * You can use the `uvScroll` and `uvScale` methods to adjust the placement and scaling\r\n * of the texture if this Plane is using a single texture, and not a frame from a texture\r\n * atlas or sprite sheet.\r\n *\r\n * The Plane Game Object also has the Animation component, allowing you to play animations\r\n * across the Plane just as you would with a Sprite. The animation frame size must be fixed\r\n * as the first frame will be the size of the entire animation, for example use a `SpriteSheet`.\r\n *\r\n * Note that the Plane object is WebGL only and does not have a Canvas counterpart.\r\n *\r\n * The Plane origin is always 0.5 x 0.5 and cannot be changed.\r\n *\r\n * @class Plane\r\n * @extends Phaser.GameObjects.Mesh\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Plane belongs. A Plane can only belong to one Scene at a time.\r\n * @param {number} [x] - The horizontal position of this Plane in the world.\r\n * @param {number} [y] - The vertical position of this Plane in the world.\r\n * @param {string|Phaser.Textures.Texture} [texture] - The key, or instance of the Texture this Plane will use to render with, as stored in the Texture Manager.\r\n * @param {string|number} [frame] - An optional frame from the Texture this Plane is rendering with.\r\n * @param {number} [width=8] - The width of this Plane, in cells, not pixels.\r\n * @param {number} [height=8] - The height of this Plane, in cells, not pixels.\r\n * @param {boolean} [tile=false] - Is the texture tiled? I.e. repeated across each cell.\r\n */\r\nvar Plane = new Class({\r\n\r\n Extends: Mesh,\r\n\r\n initialize:\r\n\r\n function Plane (scene, x, y, texture, frame, width, height, tile)\r\n {\r\n if (!texture) { texture = '__DEFAULT'; }\r\n\r\n Mesh.call(this, scene, x, y, texture, frame);\r\n\r\n this.type = 'Plane';\r\n\r\n /**\r\n * The Animation State component of this Sprite.\r\n *\r\n * This component provides features to apply animations to this Sprite.\r\n * It is responsible for playing, loading, queuing animations for later playback,\r\n * mixing between animations and setting the current animation frame to this Sprite.\r\n *\r\n * @name Phaser.GameObjects.Plane#anims\r\n * @type {Phaser.Animations.AnimationState}\r\n * @since 3.60.0\r\n */\r\n this.anims = new AnimationState(this);\r\n\r\n /**\r\n * The width of this Plane in cells, not pixels.\r\n *\r\n * This value is read-only. To adjust it, see the `setGridSize` method.\r\n *\r\n * @name Phaser.GameObjects.Plane#gridWidth\r\n * @type {number}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.gridWidth;\r\n\r\n /**\r\n * The height of this Plane in cells, not pixels.\r\n *\r\n * This value is read-only. To adjust it, see the `setGridSize` method.\r\n *\r\n * @name Phaser.GameObjects.Plane#gridHeight\r\n * @type {number}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.gridHeight;\r\n\r\n /**\r\n * Is the texture of this Plane tiled across all cells, or not?\r\n *\r\n * This value is read-only. To adjust it, see the `setGridSize` method.\r\n *\r\n * @name Phaser.GameObjects.Plane#isTiled\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.isTiled;\r\n\r\n /**\r\n * If this Plane has a checkboard texture, this is a reference to\r\n * the WebGLTexture being used. Otherwise, it's null.\r\n *\r\n * @name Phaser.GameObjects.Plane#_checkerboard\r\n * @type {?WebGLTexture}\r\n * @private\r\n * @since 3.60.0\r\n */\r\n this._checkerboard = null;\r\n\r\n this.hideCCW = false;\r\n\r\n this.setGridSize(width, height, tile);\r\n this.setSizeToFrame(false);\r\n this.setViewHeight();\r\n },\r\n\r\n /**\r\n * Do not change this value. It has no effect other than to break things.\r\n *\r\n * @name Phaser.GameObjects.Plane#originX\r\n * @type {number}\r\n * @readonly\r\n * @override\r\n * @since 3.70.0\r\n */\r\n originX: {\r\n\r\n get: function ()\r\n {\r\n return 0.5;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Do not change this value. It has no effect other than to break things.\r\n *\r\n * @name Phaser.GameObjects.Plane#originY\r\n * @type {number}\r\n * @readonly\r\n * @override\r\n * @since 3.70.0\r\n */\r\n originY: {\r\n\r\n get: function ()\r\n {\r\n return 0.5;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Modifies the layout of this Plane by adjusting the grid dimensions to the\r\n * given width and height. The values are given in cells, not pixels.\r\n *\r\n * The `tile` parameter allows you to control if the texture is tiled, or\r\n * applied across the entire Plane? A tiled texture will repeat with one\r\n * iteration per cell. A non-tiled texture will be applied across the whole\r\n * Plane.\r\n *\r\n * Note that if this Plane is using a single texture, not from a texture atlas\r\n * or sprite sheet, then you can use the `Plane.uvScale` method to have much\r\n * more fine-grained control over the texture tiling.\r\n *\r\n * @method Phaser.GameObjects.Plane#preDestroy\r\n * @since 3.60.0\r\n *\r\n * @param {number} [width=8] - The width of this Plane, in cells, not pixels.\r\n * @param {number} [height=8] - The height of this Plane, in cells, not pixels.\r\n * @param {boolean} [tile=false] - Is the texture tiled? I.e. repeated across each cell.\r\n */\r\n setGridSize: function (width, height, tile)\r\n {\r\n if (width === undefined) { width = 8; }\r\n if (height === undefined) { height = 8; }\r\n if (tile === undefined) { tile = false; }\r\n\r\n var flipY = false;\r\n\r\n if (tile)\r\n {\r\n flipY = true;\r\n }\r\n\r\n this.gridWidth = width;\r\n this.gridHeight = height;\r\n this.isTiled = tile;\r\n\r\n this.clear();\r\n\r\n GenerateGridVerts({\r\n mesh: this,\r\n widthSegments: width,\r\n heightSegments: height,\r\n isOrtho: false,\r\n tile: tile,\r\n flipY: flipY\r\n });\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * An internal method that resets the perspective projection for this Plane\r\n * when it changes texture or frame, and also resets the cell UV coordinates,\r\n * if required.\r\n *\r\n * @method Phaser.GameObjects.Plane#setSizeToFrame\r\n * @since 3.60.0\r\n * @override\r\n *\r\n * @param {boolean} [resetUV=true] - Reset all of the cell UV coordinates?\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setSizeToFrame: function (resetUV)\r\n {\r\n if (resetUV === undefined) { resetUV = true; }\r\n\r\n var frame = this.frame;\r\n\r\n this.setPerspective(this.width / frame.width, this.height / frame.height);\r\n\r\n if (this._checkerboard && this._checkerboard !== this.texture)\r\n {\r\n this.removeCheckerboard();\r\n }\r\n\r\n if (!resetUV)\r\n {\r\n return this;\r\n }\r\n\r\n // Reset UV coordinates if frame has changed\r\n\r\n var gridX = this.gridWidth;\r\n var gridY = this.gridHeight;\r\n\r\n var verts = this.vertices;\r\n\r\n var frameU0 = frame.u0;\r\n var frameU1 = frame.u1;\r\n var frameV0 = frame.v0;\r\n var frameV1 = frame.v1;\r\n\r\n var x;\r\n var y;\r\n var i = 0;\r\n\r\n if (this.isTiled)\r\n {\r\n // flipY\r\n frameV0 = frame.v1;\r\n frameV1 = frame.v0;\r\n\r\n for (y = 0; y < gridY; y++)\r\n {\r\n for (x = 0; x < gridX; x++)\r\n {\r\n verts[i++].setUVs(frameU0, frameV1);\r\n verts[i++].setUVs(frameU0, frameV0);\r\n verts[i++].setUVs(frameU1, frameV1);\r\n verts[i++].setUVs(frameU0, frameV0);\r\n verts[i++].setUVs(frameU1, frameV0);\r\n verts[i++].setUVs(frameU1, frameV1);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n var gridX1 = gridX + 1;\r\n var gridY1 = gridY + 1;\r\n\r\n var frameU = frameU1 - frameU0;\r\n var frameV = frameV1 - frameV0;\r\n\r\n var uvs = [];\r\n\r\n for (y = 0; y < gridY1; y++)\r\n {\r\n for (x = 0; x < gridX1; x++)\r\n {\r\n var tu = frameU0 + frameU * (x / gridX);\r\n var tv = frameV0 + frameV * (y / gridY);\r\n\r\n uvs.push(tu, tv);\r\n }\r\n }\r\n\r\n for (y = 0; y < gridY; y++)\r\n {\r\n for (x = 0; x < gridX; x++)\r\n {\r\n var a = (x + gridX1 * y) * 2;\r\n var b = (x + gridX1 * (y + 1)) * 2;\r\n var c = ((x + 1) + gridX1 * (y + 1)) * 2;\r\n var d = ((x + 1) + gridX1 * y) * 2;\r\n\r\n verts[i++].setUVs(uvs[a], uvs[a + 1]);\r\n verts[i++].setUVs(uvs[b], uvs[b + 1]);\r\n verts[i++].setUVs(uvs[d], uvs[d + 1]);\r\n verts[i++].setUVs(uvs[b], uvs[b + 1]);\r\n verts[i++].setUVs(uvs[c], uvs[c + 1]);\r\n verts[i++].setUVs(uvs[d], uvs[d + 1]);\r\n }\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the height of this Plane to match the given value, in pixels.\r\n *\r\n * This adjusts the `Plane.viewPosition.z` value to achieve this.\r\n *\r\n * If no `value` parameter is given, it will set the view height to match\r\n * that of the current texture frame the Plane is using.\r\n *\r\n * @method Phaser.GameObjects.Plane#setViewHeight\r\n * @since 3.60.0\r\n *\r\n * @param {number} [value] - The height, in pixels, to set this Plane view height to.\r\n */\r\n setViewHeight: function (value)\r\n {\r\n if (value === undefined) { value = this.frame.height; }\r\n\r\n var vFOV = this.fov * (Math.PI / 180);\r\n\r\n this.viewPosition.z = (this.height / value) / (Math.tan(vFOV / 2));\r\n\r\n this.dirtyCache[10] = 1;\r\n },\r\n\r\n /**\r\n * Creates a checkerboard style texture, based on the given colors and alpha\r\n * values and applies it to this Plane, replacing any current texture it may\r\n * have.\r\n *\r\n * The colors are used in an alternating pattern, like a chess board.\r\n *\r\n * Calling this method generates a brand new 16x16 pixel WebGLTexture internally\r\n * and applies it to this Plane. While quite fast to do, you should still be\r\n * mindful of calling this method either extensively, or in tight parts of\r\n * your game.\r\n *\r\n * @method Phaser.GameObjects.Plane#createCheckerboard\r\n * @since 3.60.0\r\n *\r\n * @param {number} [color1=0xffffff] - The odd cell color, specified as a hex value.\r\n * @param {number} [color2=0x0000ff] - The even cell color, specified as a hex value.\r\n * @param {number} [alpha1=255] - The odd cell alpha value, specified as a number between 0 and 255.\r\n * @param {number} [alpha2=255] - The even cell alpha value, specified as a number between 0 and 255.\r\n * @param {number} [height=128] - The view height of the Plane after creation, in pixels.\r\n */\r\n createCheckerboard: function (color1, color2, alpha1, alpha2, height)\r\n {\r\n if (color1 === undefined) { color1 = 0xffffff; }\r\n if (color2 === undefined) { color2 = 0x0000ff; }\r\n if (alpha1 === undefined) { alpha1 = 255; }\r\n if (alpha2 === undefined) { alpha2 = 255; }\r\n if (height === undefined) { height = 128; }\r\n\r\n // Let's assume 16x16 for our texture size and 8x8 cell size\r\n\r\n var c1 = IntegerToRGB(color1);\r\n var c2 = IntegerToRGB(color2);\r\n\r\n var colors = [];\r\n\r\n for (var h = 0; h < 16; h++)\r\n {\r\n for (var w = 0; w < 16; w++)\r\n {\r\n if ((h < 8 && w < 8) || (h > 7 && w > 7))\r\n {\r\n colors.push(c1.r, c1.g, c1.b, alpha1);\r\n }\r\n else\r\n {\r\n colors.push(c2.r, c2.g, c2.b, alpha2);\r\n }\r\n }\r\n }\r\n\r\n var texture = this.scene.sys.textures.addUint8Array(UUID(), new Uint8Array(colors), 16, 16);\r\n\r\n this.removeCheckerboard();\r\n\r\n this.setTexture(texture);\r\n\r\n this.setSizeToFrame();\r\n\r\n this.setViewHeight(height);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * If this Plane has a Checkerboard Texture, this method will destroy it\r\n * and reset the internal flag for it.\r\n *\r\n * @method Phaser.GameObjects.Plane#removeCheckerboard\r\n * @since 3.60.0\r\n */\r\n removeCheckerboard: function ()\r\n {\r\n if (this._checkerboard)\r\n {\r\n this._checkerboard.destroy();\r\n\r\n this._checkerboard = null;\r\n }\r\n },\r\n\r\n /**\r\n * Start playing the given animation on this Plane.\r\n *\r\n * Animations in Phaser can either belong to the global Animation Manager, or specifically to this Plane.\r\n *\r\n * The benefit of a global animation is that multiple Game Objects can all play the same animation, without\r\n * having to duplicate the data. You can just create it once and then play it on any animating Game Object.\r\n *\r\n * The following code shows how to create a global repeating animation. The animation will be created\r\n * from all of the frames within the sprite sheet that was loaded with the key 'muybridge':\r\n *\r\n * ```javascript\r\n * var config = {\r\n * key: 'run',\r\n * frames: 'muybridge',\r\n * frameRate: 15,\r\n * repeat: -1\r\n * };\r\n *\r\n * // This code should be run from within a Scene:\r\n * this.anims.create(config);\r\n * ```\r\n *\r\n * However, if you wish to create an animation that is unique to this Plane, and this Plane alone,\r\n * you can call the `Animation.create` method instead. It accepts the exact same parameters as when\r\n * creating a global animation, however the resulting data is kept locally in this Plane.\r\n *\r\n * With the animation created, either globally or locally, you can now play it on this Plane:\r\n *\r\n * ```javascript\r\n * const plane = this.add.plane(...);\r\n * plane.play('run');\r\n * ```\r\n *\r\n * Alternatively, if you wish to run it at a different frame rate for example, you can pass a config\r\n * object instead:\r\n *\r\n * ```javascript\r\n * const plane = this.add.plane(...);\r\n * plane.play({ key: 'run', frameRate: 24 });\r\n * ```\r\n *\r\n * When playing an animation on a Plane it will first check to see if it can find a matching key\r\n * locally within the Plane. If it can, it will play the local animation. If not, it will then\r\n * search the global Animation Manager and look for it there.\r\n *\r\n * If you need a Plane to be able to play both local and global animations, make sure they don't\r\n * have conflicting keys.\r\n *\r\n * See the documentation for the `PlayAnimationConfig` config object for more details about this.\r\n *\r\n * Also, see the documentation in the Animation Manager for further details on creating animations.\r\n *\r\n * @method Phaser.GameObjects.Plane#play\r\n * @fires Phaser.Animations.Events#ANIMATION_START\r\n * @since 3.60.0\r\n *\r\n * @param {(string|Phaser.Animations.Animation|Phaser.Types.Animations.PlayAnimationConfig)} key - The string-based key of the animation to play, or an Animation instance, or a `PlayAnimationConfig` object.\r\n * @param {boolean} [ignoreIfPlaying=false] - If an animation is already playing then ignore this call.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n play: function (key, ignoreIfPlaying)\r\n {\r\n return this.anims.play(key, ignoreIfPlaying);\r\n },\r\n\r\n /**\r\n * Start playing the given animation on this Plane, in reverse.\r\n *\r\n * Animations in Phaser can either belong to the global Animation Manager, or specifically to a Game Object.\r\n *\r\n * The benefit of a global animation is that multiple Game Objects can all play the same animation, without\r\n * having to duplicate the data. You can just create it once and then play it on any animating Game Object.\r\n *\r\n * The following code shows how to create a global repeating animation. The animation will be created\r\n * from all of the frames within the sprite sheet that was loaded with the key 'muybridge':\r\n *\r\n * ```javascript\r\n * var config = {\r\n * key: 'run',\r\n * frames: 'muybridge',\r\n * frameRate: 15,\r\n * repeat: -1\r\n * };\r\n *\r\n * // This code should be run from within a Scene:\r\n * this.anims.create(config);\r\n * ```\r\n *\r\n * However, if you wish to create an animation that is unique to this Game Object, and this Game Object alone,\r\n * you can call the `Animation.create` method instead. It accepts the exact same parameters as when\r\n * creating a global animation, however the resulting data is kept locally in this Game Object.\r\n *\r\n * With the animation created, either globally or locally, you can now play it on this Game Object:\r\n *\r\n * ```javascript\r\n * const plane = this.add.plane(...);\r\n * plane.playReverse('run');\r\n * ```\r\n *\r\n * Alternatively, if you wish to run it at a different frame rate, for example, you can pass a config\r\n * object instead:\r\n *\r\n * ```javascript\r\n * const plane = this.add.plane(...);\r\n * plane.playReverse({ key: 'run', frameRate: 24 });\r\n * ```\r\n *\r\n * When playing an animation on a Game Object it will first check to see if it can find a matching key\r\n * locally within the Game Object. If it can, it will play the local animation. If not, it will then\r\n * search the global Animation Manager and look for it there.\r\n *\r\n * If you need a Game Object to be able to play both local and global animations, make sure they don't\r\n * have conflicting keys.\r\n *\r\n * See the documentation for the `PlayAnimationConfig` config object for more details about this.\r\n *\r\n * Also, see the documentation in the Animation Manager for further details on creating animations.\r\n *\r\n * @method Phaser.GameObjects.Plane#playReverse\r\n * @fires Phaser.Animations.Events#ANIMATION_START\r\n * @since 3.60.0\r\n *\r\n * @param {(string|Phaser.Animations.Animation|Phaser.Types.Animations.PlayAnimationConfig)} key - The string-based key of the animation to play, or an Animation instance, or a `PlayAnimationConfig` object.\r\n * @param {boolean} [ignoreIfPlaying=false] - If an animation is already playing then ignore this call.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n playReverse: function (key, ignoreIfPlaying)\r\n {\r\n return this.anims.playReverse(key, ignoreIfPlaying);\r\n },\r\n\r\n /**\r\n * Waits for the specified delay, in milliseconds, then starts playback of the given animation.\r\n *\r\n * If the animation _also_ has a delay value set in its config, it will be **added** to the delay given here.\r\n *\r\n * If an animation is already running and a new animation is given to this method, it will wait for\r\n * the given delay before starting the new animation.\r\n *\r\n * If no animation is currently running, the given one begins after the delay.\r\n *\r\n * When playing an animation on a Game Object it will first check to see if it can find a matching key\r\n * locally within the Game Object. If it can, it will play the local animation. If not, it will then\r\n * search the global Animation Manager and look for it there.\r\n *\r\n * @method Phaser.GameObjects.Plane#playAfterDelay\r\n * @fires Phaser.Animations.Events#ANIMATION_START\r\n * @since 3.60.0\r\n *\r\n * @param {(string|Phaser.Animations.Animation|Phaser.Types.Animations.PlayAnimationConfig)} key - The string-based key of the animation to play, or an Animation instance, or a `PlayAnimationConfig` object.\r\n * @param {number} delay - The delay, in milliseconds, to wait before starting the animation playing.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n playAfterDelay: function (key, delay)\r\n {\r\n return this.anims.playAfterDelay(key, delay);\r\n },\r\n\r\n /**\r\n * Waits for the current animation to complete the `repeatCount` number of repeat cycles, then starts playback\r\n * of the given animation.\r\n *\r\n * You can use this to ensure there are no harsh jumps between two sets of animations, i.e. going from an\r\n * idle animation to a walking animation, by making them blend smoothly into each other.\r\n *\r\n * If no animation is currently running, the given one will start immediately.\r\n *\r\n * When playing an animation on a Game Object it will first check to see if it can find a matching key\r\n * locally within the Game Object. If it can, it will play the local animation. If not, it will then\r\n * search the global Animation Manager and look for it there.\r\n *\r\n * @method Phaser.GameObjects.Plane#playAfterRepeat\r\n * @fires Phaser.Animations.Events#ANIMATION_START\r\n * @since 3.60.0\r\n *\r\n * @param {(string|Phaser.Animations.Animation|Phaser.Types.Animations.PlayAnimationConfig)} key - The string-based key of the animation to play, or an Animation instance, or a `PlayAnimationConfig` object.\r\n * @param {number} [repeatCount=1] - How many times should the animation repeat before the next one starts?\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n playAfterRepeat: function (key, repeatCount)\r\n {\r\n return this.anims.playAfterRepeat(key, repeatCount);\r\n },\r\n\r\n /**\r\n * Immediately stops the current animation from playing and dispatches the `ANIMATION_STOP` events.\r\n *\r\n * If no animation is playing, no event will be dispatched.\r\n *\r\n * If there is another animation queued (via the `chain` method) then it will start playing immediately.\r\n *\r\n * @method Phaser.GameObjects.Plane#stop\r\n * @fires Phaser.Animations.Events#ANIMATION_STOP\r\n * @since 3.60.0\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n stop: function ()\r\n {\r\n return this.anims.stop();\r\n },\r\n\r\n /**\r\n * Stops the current animation from playing after the specified time delay, given in milliseconds.\r\n *\r\n * It then dispatches the `ANIMATION_STOP` event.\r\n *\r\n * If no animation is running, no events will be dispatched.\r\n *\r\n * If there is another animation in the queue (set via the `chain` method) then it will start playing,\r\n * when the current one stops.\r\n *\r\n * @method Phaser.GameObjects.Plane#stopAfterDelay\r\n * @fires Phaser.Animations.Events#ANIMATION_STOP\r\n * @since 3.60.0\r\n *\r\n * @param {number} delay - The number of milliseconds to wait before stopping this animation.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n stopAfterDelay: function (delay)\r\n {\r\n return this.anims.stopAfterDelay(delay);\r\n },\r\n\r\n /**\r\n * Stops the current animation from playing after the given number of repeats.\r\n *\r\n * It then dispatches the `ANIMATION_STOP` event.\r\n *\r\n * If no animation is running, no events will be dispatched.\r\n *\r\n * If there is another animation in the queue (set via the `chain` method) then it will start playing,\r\n * when the current one stops.\r\n *\r\n * @method Phaser.GameObjects.Plane#stopAfterRepeat\r\n * @fires Phaser.Animations.Events#ANIMATION_STOP\r\n * @since 3.60.0\r\n *\r\n * @param {number} [repeatCount=1] - How many times should the animation repeat before stopping?\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n stopAfterRepeat: function (repeatCount)\r\n {\r\n return this.anims.stopAfterRepeat(repeatCount);\r\n },\r\n\r\n /**\r\n * Stops the current animation from playing when it next sets the given frame.\r\n * If this frame doesn't exist within the animation it will not stop it from playing.\r\n *\r\n * It then dispatches the `ANIMATION_STOP` event.\r\n *\r\n * If no animation is running, no events will be dispatched.\r\n *\r\n * If there is another animation in the queue (set via the `chain` method) then it will start playing,\r\n * when the current one stops.\r\n *\r\n * @method Phaser.GameObjects.Plane#stopOnFrame\r\n * @fires Phaser.Animations.Events#ANIMATION_STOP\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Animations.AnimationFrame} frame - The frame to check before stopping this animation.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n stopOnFrame: function (frame)\r\n {\r\n return this.anims.stopOnFrame(frame);\r\n },\r\n\r\n /**\r\n * Runs the preUpdate for this Plane, which will check its Animation State,\r\n * if one is playing, and refresh view / model matrices, if updated.\r\n *\r\n * @method Phaser.GameObjects.Plane#preUpdate\r\n * @protected\r\n * @since 3.60.0\r\n *\r\n * @param {number} time - The current timestamp.\r\n * @param {number} delta - The delta time, in ms, elapsed since the last frame.\r\n */\r\n preUpdate: function (time, delta)\r\n {\r\n Mesh.prototype.preUpdate.call(this, time, delta);\r\n\r\n this.anims.update(time, delta);\r\n },\r\n\r\n /**\r\n * Handles the pre-destroy step for the Plane, which removes the vertices and debug callbacks.\r\n *\r\n * @method Phaser.GameObjects.Plane#preDestroy\r\n * @private\r\n * @since 3.60.0\r\n */\r\n preDestroy: function ()\r\n {\r\n this.clear();\r\n this.removeCheckerboard();\r\n\r\n this.anims.destroy();\r\n\r\n this.anims = undefined;\r\n\r\n this.debugCallback = null;\r\n this.debugGraphic = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Plane;\r\n\n\n/***/ }),\n\n/***/ 56015:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BuildGameObject = __webpack_require__(25305);\r\nvar BuildGameObjectAnimation = __webpack_require__(13059);\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\nvar GetValue = __webpack_require__(35154);\r\nvar Plane = __webpack_require__(33663);\r\n\r\n/**\r\n * Creates a new Plane Game Object and returns it.\r\n *\r\n * Note: This method will only be available if the Plane Game Object and WebGL support have been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#plane\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Plane.PlaneConfig} config - The configuration object this Game Object will use to create itself.\r\n * @param {boolean} [addToScene] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.\r\n *\r\n * @return {Phaser.GameObjects.Plane} The Game Object that was created.\r\n */\r\nGameObjectCreator.register('plane', function (config, addToScene)\r\n{\r\n if (config === undefined) { config = {}; }\r\n\r\n var key = GetAdvancedValue(config, 'key', null);\r\n var frame = GetAdvancedValue(config, 'frame', null);\r\n var width = GetValue(config, 'width', 8);\r\n var height = GetValue(config, 'height', 8);\r\n var tile = GetValue(config, 'tile', false);\r\n\r\n var plane = new Plane(this.scene, 0, 0, key, frame, width, height, tile);\r\n\r\n if (addToScene !== undefined)\r\n {\r\n config.add = addToScene;\r\n }\r\n\r\n var checkerboard = GetValue(config, 'checkerboard', null);\r\n\r\n if (checkerboard)\r\n {\r\n var color1 = GetValue(checkerboard, 'color1', 0xffffff);\r\n var color2 = GetValue(checkerboard, 'color2', 0x0000ff);\r\n var alpha1 = GetValue(checkerboard, 'alpha1', 255);\r\n var alpha2 = GetValue(checkerboard, 'alpha2', 255);\r\n var checkheight = GetValue(checkerboard, 'height', 128);\r\n\r\n plane.createCheckerboard(color1, color2, alpha1, alpha2, checkheight);\r\n }\r\n\r\n BuildGameObject(this.scene, plane, config);\r\n\r\n BuildGameObjectAnimation(plane, config);\r\n\r\n return plane;\r\n});\r\n\n\n/***/ }),\n\n/***/ 30985:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Plane = __webpack_require__(33663);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * Creates a new Plane Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Plane Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#plane\r\n * @since 3.60.0\r\n *\r\n * @param {number} [x] - The horizontal position of this Plane in the world.\r\n * @param {number} [y] - The vertical position of this Plane in the world.\r\n * @param {string|Phaser.Textures.Texture} [texture] - The key, or instance of the Texture this Plane will use to render with, as stored in the Texture Manager.\r\n * @param {string|number} [frame] - An optional frame from the Texture this Plane is rendering with.\r\n * @param {number} [width=8] - The width of this Plane, in cells, not pixels.\r\n * @param {number} [height=8] - The height of this Plane, in cells, not pixels.\r\n * @param {boolean} [tile=false] - Is the texture tiled? I.e. repeated across each cell.\r\n *\r\n * @return {Phaser.GameObjects.Plane} The Plane Game Object that was created.\r\n */\r\nGameObjectFactory.register('plane', function (x, y, texture, frame, width, height, tile)\r\n{\r\n return this.displayList.add(new Plane(this.scene, x, y, texture, frame, width, height, tile));\r\n});\r\n\n\n/***/ }),\n\n/***/ 80321:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar GameObject = __webpack_require__(95643);\r\nvar IntegerToColor = __webpack_require__(30100);\r\nvar PIPELINES_CONST = __webpack_require__(36060);\r\nvar Render = __webpack_require__(67277);\r\n\r\n/**\r\n * @classdesc\r\n * The Point Light Game Object provides a way to add a point light effect into your game,\r\n * without the expensive shader processing requirements of the traditional Light Game Object.\r\n *\r\n * The difference is that the Point Light renders using a custom shader, designed to give the\r\n * impression of a point light source, of variable radius, intensity and color, in your game.\r\n * However, unlike the Light Game Object, it does not impact any other Game Objects, or use their\r\n * normal maps for calcuations. This makes them extremely fast to render compared to Lights\r\n * and perfect for special effects, such as flickering torches or muzzle flashes.\r\n *\r\n * For maximum performance you should batch Point Light Game Objects together. This means\r\n * ensuring they follow each other consecutively on the display list. Ideally, use a Layer\r\n * Game Object and then add just Point Lights to it, so that it can batch together the rendering\r\n * of the lights. You don't _have_ to do this, and if you've only a handful of Point Lights in\r\n * your game then it's perfectly safe to mix them into the dislay list as normal. However, if\r\n * you're using a large number of them, please consider how they are mixed into the display list.\r\n *\r\n * The renderer will automatically cull Point Lights. Those with a radius that does not intersect\r\n * with the Camera will be skipped in the rendering list. This happens automatically and the\r\n * culled state is refreshed every frame, for every camera.\r\n *\r\n * The origin of a Point Light is always 0.5 and it cannot be changed.\r\n *\r\n * Point Lights are a WebGL only feature and do not have a Canvas counterpart.\r\n *\r\n * @class PointLight\r\n * @extends Phaser.GameObjects.GameObject\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.50.0\r\n *\r\n * @extends Phaser.GameObjects.Components.AlphaSingle\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.GetBounds\r\n * @extends Phaser.GameObjects.Components.Mask\r\n * @extends Phaser.GameObjects.Components.Pipeline\r\n * @extends Phaser.GameObjects.Components.PostPipeline\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Point Light belongs. A Point Light can only belong to one Scene at a time.\r\n * @param {number} x - The horizontal position of this Point Light in the world.\r\n * @param {number} y - The vertical position of this Point Light in the world.\r\n * @param {number} [color=0xffffff] - The color of the Point Light, given as a hex value.\r\n * @param {number} [radius=128] - The radius of the Point Light.\r\n * @param {number} [intensity=1] - The intensity, or color blend, of the Point Light.\r\n * @param {number} [attenuation=0.1] - The attenuation of the Point Light. This is the reduction of light from the center point.\r\n */\r\nvar PointLight = new Class({\r\n\r\n Extends: GameObject,\r\n\r\n Mixins: [\r\n Components.AlphaSingle,\r\n Components.BlendMode,\r\n Components.Depth,\r\n Components.Mask,\r\n Components.Pipeline,\r\n Components.PostPipeline,\r\n Components.ScrollFactor,\r\n Components.Transform,\r\n Components.Visible,\r\n Render\r\n ],\r\n\r\n initialize:\r\n\r\n function PointLight (scene, x, y, color, radius, intensity, attenuation)\r\n {\r\n if (color === undefined) { color = 0xffffff; }\r\n if (radius === undefined) { radius = 128; }\r\n if (intensity === undefined) { intensity = 1; }\r\n if (attenuation === undefined) { attenuation = 0.1; }\r\n\r\n GameObject.call(this, scene, 'PointLight');\r\n\r\n this.initPipeline(PIPELINES_CONST.POINTLIGHT_PIPELINE);\r\n this.initPostPipeline();\r\n\r\n this.setPosition(x, y);\r\n\r\n /**\r\n * The color of this Point Light. This property is an instance of a\r\n * Color object, so you can use the methods within it, such as `setTo(r, g, b)`\r\n * to change the color value.\r\n *\r\n * @name Phaser.GameObjects.PointLight#color\r\n * @type {Phaser.Display.Color}\r\n * @since 3.50.0\r\n */\r\n this.color = IntegerToColor(color);\r\n\r\n /**\r\n * The intensity of the Point Light.\r\n *\r\n * The colors of the light are multiplied by this value during rendering.\r\n *\r\n * @name Phaser.GameObjects.PointLight#intensity\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.intensity = intensity;\r\n\r\n /**\r\n * The attenuation of the Point Light.\r\n *\r\n * This value controls the force with which the light falls-off from the center of the light.\r\n *\r\n * Use small float-based values, i.e. 0.1.\r\n *\r\n * @name Phaser.GameObjects.PointLight#attenuation\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.attenuation = attenuation;\r\n\r\n // read only:\r\n this.width = radius * 2;\r\n this.height = radius * 2;\r\n\r\n this._radius = radius;\r\n },\r\n\r\n /**\r\n * The radius of the Point Light.\r\n *\r\n * @name Phaser.GameObjects.PointLight#radius\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n radius: {\r\n\r\n get: function ()\r\n {\r\n return this._radius;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._radius = value;\r\n this.width = value * 2;\r\n this.height = value * 2;\r\n }\r\n\r\n },\r\n\r\n originX: {\r\n\r\n get: function ()\r\n {\r\n return 0.5;\r\n }\r\n\r\n },\r\n\r\n originY: {\r\n\r\n get: function ()\r\n {\r\n return 0.5;\r\n }\r\n\r\n },\r\n\r\n displayOriginX: {\r\n\r\n get: function ()\r\n {\r\n return this._radius;\r\n }\r\n\r\n },\r\n\r\n displayOriginY: {\r\n\r\n get: function ()\r\n {\r\n return this._radius;\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = PointLight;\r\n\n\n/***/ }),\n\n/***/ 39829:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BuildGameObject = __webpack_require__(25305);\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\nvar PointLight = __webpack_require__(80321);\r\n\r\n/**\r\n * Creates a new Point Light Game Object and returns it.\r\n *\r\n * Note: This method will only be available if the Point Light Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#pointlight\r\n * @since 3.50.0\r\n *\r\n * @param {object} config - The configuration object this Game Object will use to create itself.\r\n * @param {boolean} [addToScene] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.\r\n *\r\n * @return {Phaser.GameObjects.PointLight} The Game Object that was created.\r\n */\r\nGameObjectCreator.register('pointlight', function (config, addToScene)\r\n{\r\n if (config === undefined) { config = {}; }\r\n\r\n var color = GetAdvancedValue(config, 'color', 0xffffff);\r\n var radius = GetAdvancedValue(config, 'radius', 128);\r\n var intensity = GetAdvancedValue(config, 'intensity', 1);\r\n var attenuation = GetAdvancedValue(config, 'attenuation', 0.1);\r\n\r\n var layer = new PointLight(this.scene, 0, 0, color, radius, intensity, attenuation);\r\n\r\n if (addToScene !== undefined)\r\n {\r\n config.add = addToScene;\r\n }\r\n\r\n BuildGameObject(this.scene, layer, config);\r\n\r\n return layer;\r\n});\r\n\n\n/***/ }),\n\n/***/ 71255:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GameObjectFactory = __webpack_require__(39429);\r\nvar PointLight = __webpack_require__(80321);\r\n\r\n/**\r\n * Creates a new Point Light Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Point Light Game Object has been built into Phaser.\r\n *\r\n * The Point Light Game Object provides a way to add a point light effect into your game,\r\n * without the expensive shader processing requirements of the traditional Light Game Object.\r\n *\r\n * The difference is that the Point Light renders using a custom shader, designed to give the\r\n * impression of a point light source, of variable radius, intensity and color, in your game.\r\n * However, unlike the Light Game Object, it does not impact any other Game Objects, or use their\r\n * normal maps for calcuations. This makes them extremely fast to render compared to Lights\r\n * and perfect for special effects, such as flickering torches or muzzle flashes.\r\n *\r\n * For maximum performance you should batch Point Light Game Objects together. This means\r\n * ensuring they follow each other consecutively on the display list. Ideally, use a Layer\r\n * Game Object and then add just Point Lights to it, so that it can batch together the rendering\r\n * of the lights. You don't _have_ to do this, and if you've only a handful of Point Lights in\r\n * your game then it's perfectly safe to mix them into the dislay list as normal. However, if\r\n * you're using a large number of them, please consider how they are mixed into the display list.\r\n *\r\n * The renderer will automatically cull Point Lights. Those with a radius that does not intersect\r\n * with the Camera will be skipped in the rendering list. This happens automatically and the\r\n * culled state is refreshed every frame, for every camera.\r\n *\r\n * The origin of a Point Light is always 0.5 and it cannot be changed.\r\n *\r\n * Point Lights are a WebGL only feature and do not have a Canvas counterpart.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#pointlight\r\n * @since 3.50.0\r\n *\r\n * @param {number} x - The horizontal position of this Point Light in the world.\r\n * @param {number} y - The vertical position of this Point Light in the world.\r\n * @param {number} [color=0xffffff] - The color of the Point Light, given as a hex value.\r\n * @param {number} [radius=128] - The radius of the Point Light.\r\n * @param {number} [intensity=1] - The intensity, or color blend, of the Point Light.\r\n * @param {number} [attenuation=0.1] - The attenuation of the Point Light. This is the reduction of light from the center point.\r\n *\r\n * @return {Phaser.GameObjects.PointLight} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('pointlight', function (x, y, color, radius, intensity, attenuation)\r\n{\r\n return this.displayList.add(new PointLight(this.scene, x, y, color, radius, intensity, attenuation));\r\n});\r\n\n\n/***/ }),\n\n/***/ 67277:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(57787);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 57787:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetCalcMatrix = __webpack_require__(91296);\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.PointLight#renderWebGL\r\n * @since 3.50.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.PointLight} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar PointLightWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var pipeline = renderer.pipelines.set(src.pipeline);\r\n\r\n var calcMatrix = GetCalcMatrix(src, camera, parentMatrix).calc;\r\n\r\n var width = src.width;\r\n var height = src.height;\r\n\r\n var x = -src._radius;\r\n var y = -src._radius;\r\n\r\n var xw = x + width;\r\n var yh = y + height;\r\n\r\n var lightX = calcMatrix.getX(0, 0);\r\n var lightY = calcMatrix.getY(0, 0);\r\n\r\n var tx0 = calcMatrix.getX(x, y);\r\n var ty0 = calcMatrix.getY(x, y);\r\n\r\n var tx1 = calcMatrix.getX(x, yh);\r\n var ty1 = calcMatrix.getY(x, yh);\r\n\r\n var tx2 = calcMatrix.getX(xw, yh);\r\n var ty2 = calcMatrix.getY(xw, yh);\r\n\r\n var tx3 = calcMatrix.getX(xw, y);\r\n var ty3 = calcMatrix.getY(xw, y);\r\n\r\n renderer.pipelines.preBatch(src);\r\n\r\n pipeline.batchPointLight(src, camera, tx0, ty0, tx1, ty1, tx2, ty2, tx3, ty3, lightX, lightY);\r\n\r\n renderer.pipelines.postBatch(src);\r\n};\r\n\r\nmodule.exports = PointLightWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 591:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar DynamicTexture = __webpack_require__(81320);\r\nvar Image = __webpack_require__(88571);\r\n\r\n/**\r\n * @classdesc\r\n * A Render Texture is a combination of Dynamic Texture and an Image Game Object, that uses the\r\n * Dynamic Texture to display itself with.\r\n *\r\n * A Dynamic Texture is a special texture that allows you to draw textures, frames and most kind of\r\n * Game Objects directly to it.\r\n *\r\n * You can take many complex objects and draw them to this one texture, which can then be used as the\r\n * base texture for other Game Objects, such as Sprites. Should you then update this texture, all\r\n * Game Objects using it will instantly be updated as well, reflecting the changes immediately.\r\n *\r\n * It's a powerful way to generate dynamic textures at run-time that are WebGL friendly and don't invoke\r\n * expensive GPU uploads on each change.\r\n *\r\n * In versions of Phaser before 3.60 a Render Texture was the only way you could create a texture\r\n * like this, that had the ability to be drawn on. But in 3.60 we split the core functions out to\r\n * the Dynamic Texture class as it made a lot more sense for them to reside in there. As a result,\r\n * the Render Texture is now a light-weight shim that sits on-top of an Image Game Object and offers\r\n * proxy methods to the features available from a Dynamic Texture.\r\n *\r\n * **When should you use a Render Texture vs. a Dynamic Texture?**\r\n *\r\n * You should use a Dynamic Texture if the texture is going to be used by multiple Game Objects,\r\n * or you want to use it across multiple Scenes, because textures are globally stored.\r\n *\r\n * You should use a Dynamic Texture if the texture isn't going to be displayed in-game, but is\r\n * instead going to be used for something like a mask or shader.\r\n *\r\n * You should use a Render Texture if you need to display the texture in-game on a single Game Object,\r\n * as it provides the convenience of wrapping an Image and Dynamic Texture together for you.\r\n *\r\n * Under WebGL1, a FrameBuffer, which is what this Dynamic Texture uses internally, cannot be anti-aliased.\r\n * This means that when drawing objects such as Shapes or Graphics instances to this texture, they may appear\r\n * to be drawn with no aliasing around the edges. This is a technical limitation of WebGL1. To get around it,\r\n * create your shape as a texture in an art package, then draw that to this texture.\r\n *\r\n * @class RenderTexture\r\n * @extends Phaser.GameObjects.Image\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.2.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {number} [width=32] - The width of the Render Texture.\r\n * @param {number} [height=32] - The height of the Render Texture.\r\n */\r\nvar RenderTexture = new Class({\r\n\r\n Extends: Image,\r\n\r\n initialize:\r\n\r\n function RenderTexture (scene, x, y, width, height)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (width === undefined) { width = 32; }\r\n if (height === undefined) { height = 32; }\r\n\r\n var dynamicTexture = new DynamicTexture(scene.sys.textures, '', width, height);\r\n\r\n Image.call(this, scene, x, y, dynamicTexture);\r\n\r\n this.type = 'RenderTexture';\r\n\r\n /**\r\n * An internal Camera that can be used to move around this Render Texture.\r\n *\r\n * Control it just like you would any Scene Camera. The difference is that it only impacts\r\n * the placement of Game Objects that you then draw to this texture.\r\n *\r\n * You can scroll, zoom and rotate this Camera.\r\n *\r\n * This property is a reference to `RenderTexture.texture.camera`.\r\n *\r\n * @name Phaser.GameObjects.RenderTexture#camera\r\n * @type {Phaser.Cameras.Scene2D.BaseCamera}\r\n * @since 3.12.0\r\n */\r\n this.camera = this.texture.camera;\r\n\r\n /**\r\n * Internal saved texture flag.\r\n *\r\n * @name Phaser.GameObjects.RenderTexture#_saved\r\n * @type {boolean}\r\n * @private\r\n * @since 3.12.0\r\n */\r\n this._saved = false;\r\n },\r\n\r\n /**\r\n * Sets the internal size of this Render Texture, as used for frame or physics body creation.\r\n *\r\n * This will not change the size that the Game Object is rendered in-game.\r\n * For that you need to either set the scale of the Game Object (`setScale`) or call the\r\n * `setDisplaySize` method, which is the same thing as changing the scale but allows you\r\n * to do so by giving pixel values.\r\n *\r\n * If you have enabled this Game Object for input, changing the size will _not_ change the\r\n * size of the hit area. To do this you should adjust the `input.hitArea` object directly.\r\n *\r\n * @method Phaser.GameObjects.RenderTexture#setSize\r\n * @since 3.0.0\r\n *\r\n * @param {number} width - The width of this Game Object.\r\n * @param {number} height - The height of this Game Object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setSize: function (width, height)\r\n {\r\n this.width = width;\r\n this.height = height;\r\n\r\n this.texture.setSize(width, height);\r\n\r\n this.updateDisplayOrigin();\r\n\r\n var input = this.input;\r\n\r\n if (input && !input.customHitArea)\r\n {\r\n input.hitArea.width = width;\r\n input.hitArea.height = height;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resizes the Render Texture to the new dimensions given.\r\n *\r\n * In WebGL it will destroy and then re-create the frame buffer being used by the Render Texture.\r\n * In Canvas it will resize the underlying canvas element.\r\n *\r\n * Both approaches will erase everything currently drawn to the Render Texture.\r\n *\r\n * If the dimensions given are the same as those already being used, calling this method will do nothing.\r\n *\r\n * @method Phaser.GameObjects.RenderTexture#resize\r\n * @since 3.10.0\r\n *\r\n * @param {number} width - The new width of the Render Texture.\r\n * @param {number} [height=width] - The new height of the Render Texture. If not specified, will be set the same as the `width`.\r\n *\r\n * @return {this} This Render Texture.\r\n */\r\n resize: function (width, height)\r\n {\r\n this.setSize(width, height);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Stores a copy of this Render Texture in the Texture Manager using the given key.\r\n *\r\n * After doing this, any texture based Game Object, such as a Sprite, can use the contents of this\r\n * Render Texture by using the texture key:\r\n *\r\n * ```javascript\r\n * var rt = this.add.renderTexture(0, 0, 128, 128);\r\n *\r\n * // Draw something to the Render Texture\r\n *\r\n * rt.saveTexture('doodle');\r\n *\r\n * this.add.image(400, 300, 'doodle');\r\n * ```\r\n *\r\n * Updating the contents of this Render Texture will automatically update _any_ Game Object\r\n * that is using it as a texture. Calling `saveTexture` again will not save another copy\r\n * of the same texture, it will just rename the key of the existing copy.\r\n *\r\n * By default it will create a single base texture. You can add frames to the texture\r\n * by using the `Texture.add` method. After doing this, you can then allow Game Objects\r\n * to use a specific frame from a Render Texture.\r\n *\r\n * If you destroy this Render Texture, any Game Object using it via the Texture Manager will\r\n * stop rendering. Ensure you remove the texture from the Texture Manager and any Game Objects\r\n * using it first, before destroying this Render Texture.\r\n *\r\n * @method Phaser.GameObjects.RenderTexture#saveTexture\r\n * @since 3.12.0\r\n *\r\n * @param {string} key - The unique key to store the texture as within the global Texture Manager.\r\n *\r\n * @return {Phaser.Textures.DynamicTexture} The Texture that was saved.\r\n */\r\n saveTexture: function (key)\r\n {\r\n var texture = this.texture;\r\n\r\n texture.key = key;\r\n\r\n if (texture.manager.addDynamicTexture(texture))\r\n {\r\n this._saved = true;\r\n }\r\n\r\n return texture;\r\n },\r\n\r\n /**\r\n * Fills this Render Texture with the given color.\r\n *\r\n * By default it will fill the entire texture, however you can set it to fill a specific\r\n * rectangular area by using the x, y, width and height arguments.\r\n *\r\n * The color should be given in hex format, i.e. 0xff0000 for red, 0x00ff00 for green, etc.\r\n *\r\n * @method Phaser.GameObjects.RenderTexture#fill\r\n * @since 3.2.0\r\n *\r\n * @param {number} rgb - The color to fill this Render Texture with, such as 0xff0000 for red.\r\n * @param {number} [alpha=1] - The alpha value used by the fill.\r\n * @param {number} [x=0] - The left coordinate of the fill rectangle.\r\n * @param {number} [y=0] - The top coordinate of the fill rectangle.\r\n * @param {number} [width=this.width] - The width of the fill rectangle.\r\n * @param {number} [height=this.height] - The height of the fill rectangle.\r\n *\r\n * @return {this} This Render Texture instance.\r\n */\r\n fill: function (rgb, alpha, x, y, width, height)\r\n {\r\n this.texture.fill(rgb, alpha, x, y, width, height);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Fully clears this Render Texture, erasing everything from it and resetting it back to\r\n * a blank, transparent, texture.\r\n *\r\n * @method Phaser.GameObjects.RenderTexture#clear\r\n * @since 3.2.0\r\n *\r\n * @return {this} This Render Texture instance.\r\n */\r\n clear: function ()\r\n {\r\n this.texture.clear();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes the given texture key and frame and then stamps it at the given\r\n * x and y coordinates. You can use the optional 'config' argument to provide\r\n * lots more options about how the stamp is applied, including the alpha,\r\n * tint, angle, scale and origin.\r\n *\r\n * By default, the frame will stamp on the x/y coordinates based on its center.\r\n *\r\n * If you wish to stamp from the top-left, set the config `originX` and\r\n * `originY` properties both to zero.\r\n *\r\n * @method Phaser.GameObjects.RenderTexture#stamp\r\n * @since 3.60.0\r\n *\r\n * @param {string} key - The key of the texture to be used, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - The name or index of the frame within the Texture. Set to `null` to skip this argument if not required.\r\n * @param {number} [x=0] - The x position to draw the frame at.\r\n * @param {number} [y=0] - The y position to draw the frame at.\r\n * @param {Phaser.Types.Textures.StampConfig} [config] - The stamp configuration object, allowing you to set the alpha, tint, angle, scale and origin of the stamp.\r\n *\r\n * @return {this} This Render Texture instance.\r\n */\r\n stamp: function (key, frame, x, y, config)\r\n {\r\n this.texture.stamp(key, frame, x, y, config);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Draws the given object, or an array of objects, to this Render Texture using a blend mode of ERASE.\r\n * This has the effect of erasing any filled pixels present in the objects from this texture.\r\n *\r\n * It can accept any of the following:\r\n *\r\n * * Any renderable Game Object, such as a Sprite, Text, Graphics or TileSprite.\r\n * * Tilemap Layers.\r\n * * A Group. The contents of which will be iterated and drawn in turn.\r\n * * A Container. The contents of which will be iterated fully, and drawn in turn.\r\n * * A Scene Display List. Pass in `Scene.children` to draw the whole list.\r\n * * Another Dynamic Texture, or a Render Texture.\r\n * * A Texture Frame instance.\r\n * * A string. This is used to look-up the texture from the Texture Manager.\r\n *\r\n * Note: You cannot erase a Render Texture from itself.\r\n *\r\n * If passing in a Group or Container it will only draw children that return `true`\r\n * when their `willRender()` method is called. I.e. a Container with 10 children,\r\n * 5 of which have `visible=false` will only draw the 5 visible ones.\r\n *\r\n * If passing in an array of Game Objects it will draw them all, regardless if\r\n * they pass a `willRender` check or not.\r\n *\r\n * You can pass in a string in which case it will look for a texture in the Texture\r\n * Manager matching that string, and draw the base frame.\r\n *\r\n * You can pass in the `x` and `y` coordinates to draw the objects at. The use of\r\n * the coordinates differ based on what objects are being drawn. If the object is\r\n * a Group, Container or Display List, the coordinates are _added_ to the positions\r\n * of the children. For all other types of object, the coordinates are exact.\r\n *\r\n * Calling this method causes the WebGL batch to flush, so it can write the texture\r\n * data to the framebuffer being used internally. The batch is flushed at the end,\r\n * after the entries have been iterated. So if you've a bunch of objects to draw,\r\n * try and pass them in an array in one single call, rather than making lots of\r\n * separate calls.\r\n *\r\n * @method Phaser.GameObjects.RenderTexture#erase\r\n * @since 3.16.0\r\n *\r\n * @param {any} entries - Any renderable Game Object, or Group, Container, Display List, Render Texture, Texture Frame, or an array of any of these.\r\n * @param {number} [x=0] - The x position to draw the Frame at, or the offset applied to the object.\r\n * @param {number} [y=0] - The y position to draw the Frame at, or the offset applied to the object.\r\n *\r\n * @return {this} This Render Texture instance.\r\n */\r\n erase: function (entries, x, y)\r\n {\r\n this.texture.erase(entries, x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Draws the given object, or an array of objects, to this Render Texture.\r\n *\r\n * It can accept any of the following:\r\n *\r\n * * Any renderable Game Object, such as a Sprite, Text, Graphics or TileSprite.\r\n * * Tilemap Layers.\r\n * * A Group. The contents of which will be iterated and drawn in turn.\r\n * * A Container. The contents of which will be iterated fully, and drawn in turn.\r\n * * A Scene Display List. Pass in `Scene.children` to draw the whole list.\r\n * * Another Dynamic Texture, or a Render Texture.\r\n * * A Texture Frame instance.\r\n * * A string. This is used to look-up the texture from the Texture Manager.\r\n *\r\n * Note 1: You cannot draw a Render Texture to itself.\r\n *\r\n * Note 2: For Game Objects that have Post FX Pipelines, the pipeline _cannot_ be\r\n * used when drawn to this texture.\r\n *\r\n * If passing in a Group or Container it will only draw children that return `true`\r\n * when their `willRender()` method is called. I.e. a Container with 10 children,\r\n * 5 of which have `visible=false` will only draw the 5 visible ones.\r\n *\r\n * If passing in an array of Game Objects it will draw them all, regardless if\r\n * they pass a `willRender` check or not.\r\n *\r\n * You can pass in a string in which case it will look for a texture in the Texture\r\n * Manager matching that string, and draw the base frame. If you need to specify\r\n * exactly which frame to draw then use the method `drawFrame` instead.\r\n *\r\n * You can pass in the `x` and `y` coordinates to draw the objects at. The use of\r\n * the coordinates differ based on what objects are being drawn. If the object is\r\n * a Group, Container or Display List, the coordinates are _added_ to the positions\r\n * of the children. For all other types of object, the coordinates are exact.\r\n *\r\n * The `alpha` and `tint` values are only used by Texture Frames.\r\n * Game Objects use their own alpha and tint values when being drawn.\r\n *\r\n * Calling this method causes the WebGL batch to flush, so it can write the texture\r\n * data to the framebuffer being used internally. The batch is flushed at the end,\r\n * after the entries have been iterated. So if you've a bunch of objects to draw,\r\n * try and pass them in an array in one single call, rather than making lots of\r\n * separate calls.\r\n *\r\n * @method Phaser.GameObjects.RenderTexture#draw\r\n * @since 3.2.0\r\n *\r\n * @param {any} entries - Any renderable Game Object, or Group, Container, Display List, other Render Texture, Texture Frame or an array of any of these.\r\n * @param {number} [x=0] - The x position to draw the Frame at, or the offset applied to the object.\r\n * @param {number} [y=0] - The y position to draw the Frame at, or the offset applied to the object.\r\n * @param {number} [alpha=1] - The alpha value. Only used when drawing Texture Frames to this texture. Game Objects use their own alpha.\r\n * @param {number} [tint=0xffffff] - The tint color value. Only used when drawing Texture Frames to this texture. Game Objects use their own tint. WebGL only.\r\n *\r\n * @return {this} This Render Texture instance.\r\n */\r\n draw: function (entries, x, y, alpha, tint)\r\n {\r\n this.texture.draw(entries, x, y, alpha, tint);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Draws the Texture Frame to the Render Texture at the given position.\r\n *\r\n * Textures are referenced by their string-based keys, as stored in the Texture Manager.\r\n *\r\n * ```javascript\r\n * var rt = this.add.renderTexture(0, 0, 800, 600);\r\n * rt.drawFrame(key, frame);\r\n * ```\r\n *\r\n * You can optionally provide a position, alpha and tint value to apply to the frame\r\n * before it is drawn.\r\n *\r\n * Calling this method will cause a batch flush, so if you've got a stack of things to draw\r\n * in a tight loop, try using the `draw` method instead.\r\n *\r\n * If you need to draw a Sprite to this Render Texture, use the `draw` method instead.\r\n *\r\n * @method Phaser.GameObjects.RenderTexture#drawFrame\r\n * @since 3.12.0\r\n *\r\n * @param {string} key - The key of the texture to be used, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - The name or index of the frame within the Texture. Set to `null` to skip this argument if not required.\r\n * @param {number} [x=0] - The x position to draw the frame at.\r\n * @param {number} [y=0] - The y position to draw the frame at.\r\n * @param {number} [alpha=1] - The alpha value. Only used when drawing Texture Frames to this texture.\r\n * @param {number} [tint=0xffffff] - The tint color value. Only used when drawing Texture Frames to this texture. WebGL only.\r\n *\r\n * @return {this} This Render Texture instance.\r\n */\r\n drawFrame: function (key, frame, x, y, alpha, tint)\r\n {\r\n this.texture.drawFrame(key, frame, x, y, alpha, tint);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes the given Texture Frame and draws it to this Render Texture as a fill pattern,\r\n * i.e. in a grid-layout based on the frame dimensions.\r\n *\r\n * Textures are referenced by their string-based keys, as stored in the Texture Manager.\r\n *\r\n * You can optionally provide a position, width, height, alpha and tint value to apply to\r\n * the frames before they are drawn. The position controls the top-left where the repeating\r\n * fill will start from. The width and height control the size of the filled area.\r\n *\r\n * The position can be negative if required, but the dimensions cannot.\r\n *\r\n * Calling this method will cause a batch flush by default. Use the `skipBatch` argument\r\n * to disable this if this call is part of a larger batch draw.\r\n *\r\n * @method Phaser.GameObjects.RenderTexture#repeat\r\n * @since 3.60.0\r\n *\r\n * @param {string} key - The key of the texture to be used, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - The name or index of the frame within the Texture. Set to `null` to skip this argument if not required.\r\n * @param {number} [x=0] - The x position to start drawing the frames from (can be negative to offset).\r\n * @param {number} [y=0] - The y position to start drawing the frames from (can be negative to offset).\r\n * @param {number} [width=this.width] - The width of the area to repeat the frame within. Defaults to the width of this Dynamic Texture.\r\n * @param {number} [height=this.height] - The height of the area to repeat the frame within. Defaults to the height of this Dynamic Texture.\r\n * @param {number} [alpha=1] - The alpha to use. Defaults to 1, no alpha.\r\n * @param {number} [tint=0xffffff] - WebGL only. The tint color to use. Leave as undefined, or 0xffffff to have no tint.\r\n * @param {boolean} [skipBatch=false] - Skip beginning and ending a batch with this call. Use if this is part of a bigger batched draw.\r\n *\r\n * @return {this} This Render Texture instance.\r\n */\r\n repeat: function (key, frame, x, y, width, height, alpha, tint, skipBatch)\r\n {\r\n this.texture.repeat(key, frame, x, y, width, height, alpha, tint, skipBatch);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Use this method if you need to batch draw a large number of Game Objects to\r\n * this Render Texture in a single pass, or on a frequent basis. This is especially\r\n * useful under WebGL, however, if your game is using Canvas only, it will not make\r\n * any speed difference in that situation.\r\n *\r\n * This method starts the beginning of a batched draw, unless one is already open.\r\n *\r\n * Batched drawing is faster than calling `draw` in loop, but you must be careful\r\n * to manage the flow of code and remember to call `endDraw()` when you're finished.\r\n *\r\n * If you don't need to draw large numbers of objects it's much safer and easier\r\n * to use the `draw` method instead.\r\n *\r\n * The flow should be:\r\n *\r\n * ```javascript\r\n * // Call once:\r\n * RenderTexture.beginDraw();\r\n *\r\n * // repeat n times:\r\n * RenderTexture.batchDraw();\r\n * // or\r\n * RenderTexture.batchDrawFrame();\r\n *\r\n * // Call once:\r\n * RenderTexture.endDraw();\r\n * ```\r\n *\r\n * Do not call any methods other than `batchDraw`, `batchDrawFrame`, or `endDraw` once you\r\n * have started a batch. Also, be very careful not to destroy this Render Texture while the\r\n * batch is still open. Doing so will cause a run-time error in the WebGL Renderer.\r\n *\r\n * You can use the `RenderTexture.texture.isDrawing` boolean property to tell if a batch is\r\n * currently open, or not.\r\n *\r\n * @method Phaser.GameObjects.RenderTexture#beginDraw\r\n * @since 3.50.0\r\n *\r\n * @return {this} This Render Texture instance.\r\n */\r\n beginDraw: function ()\r\n {\r\n this.texture.beginDraw();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Use this method if you have already called `beginDraw` and need to batch\r\n * draw a large number of objects to this Render Texture.\r\n *\r\n * This method batches the drawing of the given objects to this texture,\r\n * without causing a WebGL bind or batch flush for each one.\r\n *\r\n * It is faster than calling `draw`, but you must be careful to manage the\r\n * flow of code and remember to call `endDraw()`. If you don't need to draw large\r\n * numbers of objects it's much safer and easier to use the `draw` method instead.\r\n *\r\n * The flow should be:\r\n *\r\n * ```javascript\r\n * // Call once:\r\n * RenderTexture.beginDraw();\r\n *\r\n * // repeat n times:\r\n * RenderTexture.batchDraw();\r\n * // or\r\n * RenderTexture.batchDrawFrame();\r\n *\r\n * // Call once:\r\n * RenderTexture.endDraw();\r\n * ```\r\n *\r\n * Do not call any methods other than `batchDraw`, `batchDrawFrame`, or `endDraw` once you\r\n * have started a batch. Also, be very careful not to destroy this Render Texture while the\r\n * batch is still open. Doing so will cause a run-time error in the WebGL Renderer.\r\n *\r\n * You can use the `RenderTexture.texture.isDrawing` boolean property to tell if a batch is\r\n * currently open, or not.\r\n *\r\n * This method can accept any of the following:\r\n *\r\n * * Any renderable Game Object, such as a Sprite, Text, Graphics or TileSprite.\r\n * * Tilemap Layers.\r\n * * A Group. The contents of which will be iterated and drawn in turn.\r\n * * A Container. The contents of which will be iterated fully, and drawn in turn.\r\n * * A Scene's Display List. Pass in `Scene.children` to draw the whole list.\r\n * * Another Dynamic Texture or Render Texture.\r\n * * A Texture Frame instance.\r\n * * A string. This is used to look-up a texture from the Texture Manager.\r\n *\r\n * Note: You cannot draw a Render Texture to itself.\r\n *\r\n * If passing in a Group or Container it will only draw children that return `true`\r\n * when their `willRender()` method is called. I.e. a Container with 10 children,\r\n * 5 of which have `visible=false` will only draw the 5 visible ones.\r\n *\r\n * If passing in an array of Game Objects it will draw them all, regardless if\r\n * they pass a `willRender` check or not.\r\n *\r\n * You can pass in a string in which case it will look for a texture in the Texture\r\n * Manager matching that string, and draw the base frame. If you need to specify\r\n * exactly which frame to draw then use the method `drawFrame` instead.\r\n *\r\n * You can pass in the `x` and `y` coordinates to draw the objects at. The use of\r\n * the coordinates differ based on what objects are being drawn. If the object is\r\n * a Group, Container or Display List, the coordinates are _added_ to the positions\r\n * of the children. For all other types of object, the coordinates are exact.\r\n *\r\n * The `alpha` and `tint` values are only used by Texture Frames.\r\n * Game Objects use their own alpha and tint values when being drawn.\r\n *\r\n * @method Phaser.GameObjects.RenderTexture#batchDraw\r\n * @since 3.50.0\r\n *\r\n * @param {any} entries - Any renderable Game Object, or Group, Container, Display List, other Dynamic or Texture, Texture Frame or an array of any of these.\r\n * @param {number} [x=0] - The x position to draw the Frame at, or the offset applied to the object.\r\n * @param {number} [y=0] - The y position to draw the Frame at, or the offset applied to the object.\r\n * @param {number} [alpha=1] - The alpha value. Only used when drawing Texture Frames to this texture. Game Objects use their own alpha.\r\n * @param {number} [tint=0xffffff] - The tint color value. Only used when drawing Texture Frames to this texture. Game Objects use their own tint. WebGL only.\r\n *\r\n * @return {this} This Render Texture instance.\r\n */\r\n batchDraw: function (entries, x, y, alpha, tint)\r\n {\r\n this.texture.batchDraw(entries, x, y, alpha, tint);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Use this method if you have already called `beginDraw` and need to batch\r\n * draw a large number of texture frames to this Render Texture.\r\n *\r\n * This method batches the drawing of the given frames to this Render Texture,\r\n * without causing a WebGL bind or batch flush for each one.\r\n *\r\n * It is faster than calling `drawFrame`, but you must be careful to manage the\r\n * flow of code and remember to call `endDraw()`. If you don't need to draw large\r\n * numbers of frames it's much safer and easier to use the `drawFrame` method instead.\r\n *\r\n * The flow should be:\r\n *\r\n * ```javascript\r\n * // Call once:\r\n * RenderTexture.beginDraw();\r\n *\r\n * // repeat n times:\r\n * RenderTexture.batchDraw();\r\n * // or\r\n * RenderTexture.batchDrawFrame();\r\n *\r\n * // Call once:\r\n * RenderTexture.endDraw();\r\n * ```\r\n *\r\n * Do not call any methods other than `batchDraw`, `batchDrawFrame`, or `endDraw` once you\r\n * have started a batch. Also, be very careful not to destroy this Render Texture while the\r\n * batch is still open. Doing so will cause a run-time error in the WebGL Renderer.\r\n *\r\n * You can use the `RenderTexture.texture.isDrawing` boolean property to tell if a batch is\r\n * currently open, or not.\r\n *\r\n * Textures are referenced by their string-based keys, as stored in the Texture Manager.\r\n *\r\n * You can optionally provide a position, alpha and tint value to apply to the frame\r\n * before it is drawn.\r\n *\r\n * @method Phaser.GameObjects.RenderTexture#batchDrawFrame\r\n * @since 3.50.0\r\n *\r\n * @param {string} key - The key of the texture to be used, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - The name or index of the frame within the Texture.\r\n * @param {number} [x=0] - The x position to draw the frame at.\r\n * @param {number} [y=0] - The y position to draw the frame at.\r\n * @param {number} [alpha=1] - The alpha value. Only used when drawing Texture Frames to this texture. Game Objects use their own alpha.\r\n * @param {number} [tint=0xffffff] - The tint color value. Only used when drawing Texture Frames to this texture. Game Objects use their own tint. WebGL only.\r\n *\r\n * @return {this} This Render Texture instance.\r\n */\r\n batchDrawFrame: function (key, frame, x, y, alpha, tint)\r\n {\r\n this.texture.batchDrawFrame(key, frame, x, y, alpha, tint);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Use this method to finish batch drawing to this Render Texture.\r\n *\r\n * Doing so will stop the WebGL Renderer from capturing draws and then blit the\r\n * framebuffer to the Render Target owned by this texture.\r\n *\r\n * Calling this method without first calling `beginDraw` will have no effect.\r\n *\r\n * Batch drawing is faster than calling `draw`, but you must be careful to manage the\r\n * flow of code and remember to call `endDraw()` when you're finished.\r\n *\r\n * If you don't need to draw large numbers of objects it's much safer and easier\r\n * to use the `draw` method instead.\r\n *\r\n * The flow should be:\r\n *\r\n * ```javascript\r\n * // Call once:\r\n * RenderTexture.beginDraw();\r\n *\r\n * // repeat n times:\r\n * RenderTexture.batchDraw();\r\n * // or\r\n * RenderTexture.batchDrawFrame();\r\n *\r\n * // Call once:\r\n * RenderTexture.endDraw();\r\n * ```\r\n *\r\n * Do not call any methods other than `batchDraw`, `batchDrawFrame`, or `endDraw` once you\r\n * have started a batch. Also, be very careful not to destroy this Render Texture while the\r\n * batch is still open. Doing so will cause a run-time error in the WebGL Renderer.\r\n *\r\n * You can use the `RenderTexture.texture.isDrawing` boolean property to tell if a batch is\r\n * currently open, or not.\r\n *\r\n * @method Phaser.GameObjects.RenderTexture#endDraw\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [erase=false] - Draws all objects in this batch using a blend mode of ERASE. This has the effect of erasing any filled pixels in the objects being drawn.\r\n *\r\n * @return {this} This Render Texture instance.\r\n */\r\n endDraw: function (erase)\r\n {\r\n this.texture.endDraw(erase);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes a snapshot of the given area of this Render Texture.\r\n *\r\n * The snapshot is taken immediately, but the results are returned via the given callback.\r\n *\r\n * To capture the whole Render Texture see the `snapshot` method.\r\n * To capture just a specific pixel, see the `snapshotPixel` method.\r\n *\r\n * Snapshots work by using the WebGL `readPixels` feature to grab every pixel from the frame buffer\r\n * into an ArrayBufferView. It then parses this, copying the contents to a temporary Canvas and finally\r\n * creating an Image object from it, which is the image returned to the callback provided.\r\n *\r\n * All in all, this is a computationally expensive and blocking process, which gets more expensive\r\n * the larger the resolution this Render Texture has, so please be careful how you employ this in your game.\r\n *\r\n * @method Phaser.GameObjects.RenderTexture#snapshotArea\r\n * @since 3.19.0\r\n *\r\n * @param {number} x - The x coordinate to grab from.\r\n * @param {number} y - The y coordinate to grab from.\r\n * @param {number} width - The width of the area to grab.\r\n * @param {number} height - The height of the area to grab.\r\n * @param {Phaser.Types.Renderer.Snapshot.SnapshotCallback} callback - The Function to invoke after the snapshot image is created.\r\n * @param {string} [type='image/png'] - The format of the image to create, usually `image/png` or `image/jpeg`.\r\n * @param {number} [encoderOptions=0.92] - The image quality, between 0 and 1. Used for image formats with lossy compression, such as `image/jpeg`.\r\n *\r\n * @return {this} This Render Texture instance.\r\n */\r\n snapshotArea: function (x, y, width, height, callback, type, encoderOptions)\r\n {\r\n this.texture.snapshotArea(x, y, width, height, callback, type, encoderOptions);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes a snapshot of the whole of this Render Texture.\r\n *\r\n * The snapshot is taken immediately, but the results are returned via the given callback.\r\n *\r\n * To capture a portion of this Render Texture see the `snapshotArea` method.\r\n * To capture just a specific pixel, see the `snapshotPixel` method.\r\n *\r\n * Snapshots work by using the WebGL `readPixels` feature to grab every pixel from the frame buffer\r\n * into an ArrayBufferView. It then parses this, copying the contents to a temporary Canvas and finally\r\n * creating an Image object from it, which is the image returned to the callback provided.\r\n *\r\n * All in all, this is a computationally expensive and blocking process, which gets more expensive\r\n * the larger the resolution this Render Texture has, so please be careful how you employ this in your game.\r\n *\r\n * @method Phaser.GameObjects.RenderTexture#snapshot\r\n * @since 3.19.0\r\n *\r\n * @param {Phaser.Types.Renderer.Snapshot.SnapshotCallback} callback - The Function to invoke after the snapshot image is created.\r\n * @param {string} [type='image/png'] - The format of the image to create, usually `image/png` or `image/jpeg`.\r\n * @param {number} [encoderOptions=0.92] - The image quality, between 0 and 1. Used for image formats with lossy compression, such as `image/jpeg`.\r\n *\r\n * @return {this} This Render Texture instance.\r\n */\r\n snapshot: function (callback, type, encoderOptions)\r\n {\r\n return this.snapshotArea(0, 0, this.width, this.height, callback, type, encoderOptions);\r\n },\r\n\r\n /**\r\n * Takes a snapshot of the given pixel from this Render Texture.\r\n *\r\n * The snapshot is taken immediately, but the results are returned via the given callback.\r\n *\r\n * To capture the whole Render Texture see the `snapshot` method.\r\n * To capture a portion of this Render Texture see the `snapshotArea` method.\r\n *\r\n * Unlike the two other snapshot methods, this one will send your callback a `Color` object\r\n * containing the color data for the requested pixel. It doesn't need to create an internal\r\n * Canvas or Image object, so is a lot faster to execute, using less memory than the other snapshot methods.\r\n *\r\n * @method Phaser.GameObjects.RenderTexture#snapshotPixel\r\n * @since 3.19.0\r\n *\r\n * @param {number} x - The x coordinate of the pixel to get.\r\n * @param {number} y - The y coordinate of the pixel to get.\r\n * @param {Phaser.Types.Renderer.Snapshot.SnapshotCallback} callback - The Function to invoke after the snapshot pixel data is extracted.\r\n *\r\n * @return {this} This Render Texture instance.\r\n */\r\n snapshotPixel: function (x, y, callback)\r\n {\r\n return this.snapshotArea(x, y, 1, 1, callback, 'pixel');\r\n },\r\n\r\n /**\r\n * Internal destroy handler, called as part of the destroy process.\r\n *\r\n * @method Phaser.GameObjects.RenderTexture#preDestroy\r\n * @protected\r\n * @since 3.9.0\r\n */\r\n preDestroy: function ()\r\n {\r\n this.camera = null;\r\n\r\n if (!this._saved)\r\n {\r\n this.texture.destroy();\r\n }\r\n }\r\n\r\n});\r\n\r\nmodule.exports = RenderTexture;\r\n\n\n/***/ }),\n\n/***/ 34495:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BuildGameObject = __webpack_require__(25305);\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\nvar RenderTexture = __webpack_require__(591);\r\n\r\n/**\r\n * Creates a new Render Texture Game Object and returns it.\r\n *\r\n * Note: This method will only be available if the Render Texture Game Object has been built into Phaser.\r\n *\r\n * A Render Texture is a combination of Dynamic Texture and an Image Game Object, that uses the\r\n * Dynamic Texture to display itself with.\r\n *\r\n * A Dynamic Texture is a special texture that allows you to draw textures, frames and most kind of\r\n * Game Objects directly to it.\r\n *\r\n * You can take many complex objects and draw them to this one texture, which can then be used as the\r\n * base texture for other Game Objects, such as Sprites. Should you then update this texture, all\r\n * Game Objects using it will instantly be updated as well, reflecting the changes immediately.\r\n *\r\n * It's a powerful way to generate dynamic textures at run-time that are WebGL friendly and don't invoke\r\n * expensive GPU uploads on each change.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#renderTexture\r\n * @since 3.2.0\r\n *\r\n * @param {Phaser.Types.GameObjects.RenderTexture.RenderTextureConfig} config - The configuration object this Game Object will use to create itself.\r\n * @param {boolean} [addToScene] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.\r\n *\r\n * @return {Phaser.GameObjects.RenderTexture} The Game Object that was created.\r\n */\r\nGameObjectCreator.register('renderTexture', function (config, addToScene)\r\n{\r\n if (config === undefined) { config = {}; }\r\n\r\n var x = GetAdvancedValue(config, 'x', 0);\r\n var y = GetAdvancedValue(config, 'y', 0);\r\n var width = GetAdvancedValue(config, 'width', 32);\r\n var height = GetAdvancedValue(config, 'height', 32);\r\n\r\n var renderTexture = new RenderTexture(this.scene, x, y, width, height);\r\n\r\n if (addToScene !== undefined)\r\n {\r\n config.add = addToScene;\r\n }\r\n\r\n BuildGameObject(this.scene, renderTexture, config);\r\n\r\n return renderTexture;\r\n});\r\n\n\n/***/ }),\n\n/***/ 60505:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GameObjectFactory = __webpack_require__(39429);\r\nvar RenderTexture = __webpack_require__(591);\r\n\r\n/**\r\n * Creates a new Render Texture Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Render Texture Game Object has been built into Phaser.\r\n *\r\n * A Render Texture is a combination of Dynamic Texture and an Image Game Object, that uses the\r\n * Dynamic Texture to display itself with.\r\n *\r\n * A Dynamic Texture is a special texture that allows you to draw textures, frames and most kind of\r\n * Game Objects directly to it.\r\n *\r\n * You can take many complex objects and draw them to this one texture, which can then be used as the\r\n * base texture for other Game Objects, such as Sprites. Should you then update this texture, all\r\n * Game Objects using it will instantly be updated as well, reflecting the changes immediately.\r\n *\r\n * It's a powerful way to generate dynamic textures at run-time that are WebGL friendly and don't invoke\r\n * expensive GPU uploads on each change.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#renderTexture\r\n * @since 3.2.0\r\n *\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {number} [width=32] - The width of the Render Texture.\r\n * @param {number} [height=32] - The height of the Render Texture.\r\n *\r\n * @return {Phaser.GameObjects.RenderTexture} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('renderTexture', function (x, y, width, height)\r\n{\r\n return this.displayList.add(new RenderTexture(this.scene, x, y, width, height));\r\n});\r\n\n\n/***/ }),\n\n/***/ 77757:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar AnimationState = __webpack_require__(9674);\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar GameObject = __webpack_require__(95643);\r\nvar PIPELINE_CONST = __webpack_require__(36060);\r\nvar RopeRender = __webpack_require__(38745);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * A Rope Game Object.\r\n *\r\n * The Rope object is WebGL only and does not have a Canvas counterpart.\r\n *\r\n * A Rope is a special kind of Game Object that has a texture is stretched along its entire length.\r\n *\r\n * Unlike a Sprite, it isn't restricted to using just a quad and can have as many vertices as you define\r\n * when creating it. The vertices can be arranged in a horizontal or vertical strip and have their own\r\n * color and alpha values as well.\r\n *\r\n * A Ropes origin is always 0.5 x 0.5 and cannot be changed.\r\n *\r\n * @class Rope\r\n * @extends Phaser.GameObjects.GameObject\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @webglOnly\r\n * @since 3.23.0\r\n *\r\n * @extends Phaser.GameObjects.Components.AlphaSingle\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.Flip\r\n * @extends Phaser.GameObjects.Components.Mask\r\n * @extends Phaser.GameObjects.Components.Pipeline\r\n * @extends Phaser.GameObjects.Components.PostPipeline\r\n * @extends Phaser.GameObjects.Components.Size\r\n * @extends Phaser.GameObjects.Components.Texture\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {string} [texture] - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager. If not given, `__DEFAULT` is used.\r\n * @param {(string|number|null)} [frame] - An optional frame from the Texture this Game Object is rendering with.\r\n * @param {(number|Phaser.Types.Math.Vector2Like[])} [points=2] - An array containing the vertices data for this Rope, or a number that indicates how many segments to split the texture frame into. If none is provided a simple quad is created. See `setPoints` to set this post-creation.\r\n * @param {boolean} [horizontal=true] - Should the vertices of this Rope be aligned horizontally (`true`), or vertically (`false`)?\r\n * @param {number[]} [colors] - An optional array containing the color data for this Rope. You should provide one color value per pair of vertices.\r\n * @param {number[]} [alphas] - An optional array containing the alpha data for this Rope. You should provide one alpha value per pair of vertices.\r\n */\r\nvar Rope = new Class({\r\n\r\n Extends: GameObject,\r\n\r\n Mixins: [\r\n Components.AlphaSingle,\r\n Components.BlendMode,\r\n Components.Depth,\r\n Components.Flip,\r\n Components.Mask,\r\n Components.Pipeline,\r\n Components.PostPipeline,\r\n Components.Size,\r\n Components.Texture,\r\n Components.Transform,\r\n Components.Visible,\r\n Components.ScrollFactor,\r\n RopeRender\r\n ],\r\n\r\n initialize:\r\n\r\n function Rope (scene, x, y, texture, frame, points, horizontal, colors, alphas)\r\n {\r\n if (texture === undefined) { texture = '__DEFAULT'; }\r\n if (points === undefined) { points = 2; }\r\n if (horizontal === undefined) { horizontal = true; }\r\n\r\n GameObject.call(this, scene, 'Rope');\r\n\r\n /**\r\n * The Animation State of this Rope.\r\n *\r\n * @name Phaser.GameObjects.Rope#anims\r\n * @type {Phaser.Animations.AnimationState}\r\n * @since 3.23.0\r\n */\r\n this.anims = new AnimationState(this);\r\n\r\n /**\r\n * An array containing the points data for this Rope.\r\n *\r\n * Each point should be given as a Vector2Like object (i.e. a Vector2, Geom.Point or object with public x/y properties).\r\n *\r\n * The point coordinates are given in local space, where 0 x 0 is the start of the Rope strip.\r\n *\r\n * You can modify the contents of this array directly in real-time to create interesting effects.\r\n * If you do so, be sure to call `setDirty` _after_ modifying this array, so that the vertices data is\r\n * updated before the next render. Alternatively, you can use the `setPoints` method instead.\r\n *\r\n * Should you need to change the _size_ of this array, then you should always use the `setPoints` method.\r\n *\r\n * @name Phaser.GameObjects.Rope#points\r\n * @type {Phaser.Types.Math.Vector2Like[]}\r\n * @since 3.23.0\r\n */\r\n this.points = points;\r\n\r\n /**\r\n * An array containing the vertices data for this Rope.\r\n *\r\n * This data is calculated automatically in the `updateVertices` method, based on the points provided.\r\n *\r\n * @name Phaser.GameObjects.Rope#vertices\r\n * @type {Float32Array}\r\n * @since 3.23.0\r\n */\r\n this.vertices;\r\n\r\n /**\r\n * An array containing the uv data for this Rope.\r\n *\r\n * This data is calculated automatically in the `setPoints` method, based on the points provided.\r\n *\r\n * @name Phaser.GameObjects.Rope#uv\r\n * @type {Float32Array}\r\n * @since 3.23.0\r\n */\r\n this.uv;\r\n\r\n /**\r\n * An array containing the color data for this Rope.\r\n *\r\n * Colors should be given as numeric RGB values, such as 0xff0000.\r\n * You should provide _two_ color values for every point in the Rope, one for the top and one for the bottom of each quad.\r\n *\r\n * You can modify the contents of this array directly in real-time, however, should you need to change the _size_\r\n * of the array, then you should use the `setColors` method instead.\r\n *\r\n * @name Phaser.GameObjects.Rope#colors\r\n * @type {Uint32Array}\r\n * @since 3.23.0\r\n */\r\n this.colors;\r\n\r\n /**\r\n * An array containing the alpha data for this Rope.\r\n *\r\n * Alphas should be given as float values, such as 0.5.\r\n * You should provide _two_ alpha values for every point in the Rope, one for the top and one for the bottom of each quad.\r\n *\r\n * You can modify the contents of this array directly in real-time, however, should you need to change the _size_\r\n * of the array, then you should use the `setAlphas` method instead.\r\n *\r\n * @name Phaser.GameObjects.Rope#alphas\r\n * @type {Float32Array}\r\n * @since 3.23.0\r\n */\r\n this.alphas;\r\n\r\n /**\r\n * The tint fill mode.\r\n *\r\n * `false` = An additive tint (the default), where vertices colors are blended with the texture.\r\n * `true` = A fill tint, where the vertices colors replace the texture, but respects texture alpha.\r\n *\r\n * @name Phaser.GameObjects.Rope#tintFill\r\n * @type {boolean}\r\n * @since 3.23.0\r\n */\r\n this.tintFill = (texture === '__DEFAULT') ? true : false;\r\n\r\n /**\r\n * If the Rope is marked as `dirty` it will automatically recalculate its vertices\r\n * the next time it renders. You can also force this by calling `updateVertices`.\r\n *\r\n * @name Phaser.GameObjects.Rope#dirty\r\n * @type {boolean}\r\n * @since 3.23.0\r\n */\r\n this.dirty = false;\r\n\r\n /**\r\n * Are the Rope vertices aligned horizontally, in a strip, or vertically, in a column?\r\n *\r\n * This property is set during instantiation and cannot be changed directly.\r\n * See the `setVertical` and `setHorizontal` methods.\r\n *\r\n * @name Phaser.GameObjects.Rope#horizontal\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.23.0\r\n */\r\n this.horizontal = horizontal;\r\n\r\n /**\r\n * The horizontally flipped state of the Game Object.\r\n *\r\n * A Game Object that is flipped horizontally will render inversed on the horizontal axis.\r\n * Flipping always takes place from the middle of the texture and does not impact the scale value.\r\n * If this Game Object has a physics body, it will not change the body. This is a rendering toggle only.\r\n *\r\n * @name Phaser.GameObjects.Rope#_flipX\r\n * @type {boolean}\r\n * @default false\r\n * @private\r\n * @since 3.23.0\r\n */\r\n this._flipX = false;\r\n\r\n /**\r\n * The vertically flipped state of the Game Object.\r\n *\r\n * A Game Object that is flipped vertically will render inversed on the vertical axis (i.e. upside down)\r\n * Flipping always takes place from the middle of the texture and does not impact the scale value.\r\n * If this Game Object has a physics body, it will not change the body. This is a rendering toggle only.\r\n *\r\n * @name Phaser.GameObjects.Rope#_flipY\r\n * @type {boolean}\r\n * @default false\r\n * @private\r\n * @since 3.23.0\r\n */\r\n this._flipY = false;\r\n\r\n /**\r\n * Internal Vector2 used for vertices updates.\r\n *\r\n * @name Phaser.GameObjects.Rope#_perp\r\n * @type {Phaser.Math.Vector2}\r\n * @private\r\n * @since 3.23.0\r\n */\r\n this._perp = new Vector2();\r\n\r\n /**\r\n * You can optionally choose to render the vertices of this Rope to a Graphics instance.\r\n *\r\n * Achieve this by setting the `debugCallback` and the `debugGraphic` properties.\r\n *\r\n * You can do this in a single call via the `Rope.setDebug` method, which will use the\r\n * built-in debug function. You can also set it to your own callback. The callback\r\n * will be invoked _once per render_ and sent the following parameters:\r\n *\r\n * `debugCallback(src, meshLength, verts)`\r\n *\r\n * `src` is the Rope instance being debugged.\r\n * `meshLength` is the number of mesh vertices in total.\r\n * `verts` is an array of the translated vertex coordinates.\r\n *\r\n * To disable rendering, set this property back to `null`.\r\n *\r\n * @name Phaser.GameObjects.Rope#debugCallback\r\n * @type {function}\r\n * @since 3.23.0\r\n */\r\n this.debugCallback = null;\r\n\r\n /**\r\n * The Graphics instance that the debug vertices will be drawn to, if `setDebug` has\r\n * been called.\r\n *\r\n * @name Phaser.GameObjects.Rope#debugGraphic\r\n * @type {Phaser.GameObjects.Graphics}\r\n * @since 3.23.0\r\n */\r\n this.debugGraphic = null;\r\n\r\n this.setTexture(texture, frame);\r\n this.setPosition(x, y);\r\n this.setSizeToFrame();\r\n this.initPipeline(PIPELINE_CONST.ROPE_PIPELINE);\r\n this.initPostPipeline();\r\n\r\n if (Array.isArray(points))\r\n {\r\n this.resizeArrays(points.length);\r\n }\r\n\r\n this.setPoints(points, colors, alphas);\r\n\r\n this.updateVertices();\r\n },\r\n\r\n // Overrides Game Object method\r\n addedToScene: function ()\r\n {\r\n this.scene.sys.updateList.add(this);\r\n },\r\n\r\n // Overrides Game Object method\r\n removedFromScene: function ()\r\n {\r\n this.scene.sys.updateList.remove(this);\r\n },\r\n\r\n /**\r\n * The Rope update loop.\r\n *\r\n * @method Phaser.GameObjects.Rope#preUpdate\r\n * @protected\r\n * @since 3.23.0\r\n *\r\n * @param {number} time - The current timestamp.\r\n * @param {number} delta - The delta time, in ms, elapsed since the last frame.\r\n */\r\n preUpdate: function (time, delta)\r\n {\r\n var prevFrame = this.anims.currentFrame;\r\n\r\n this.anims.update(time, delta);\r\n\r\n if (this.anims.currentFrame !== prevFrame)\r\n {\r\n this.updateUVs();\r\n this.updateVertices();\r\n }\r\n },\r\n\r\n /**\r\n * Start playing the given animation.\r\n *\r\n * @method Phaser.GameObjects.Rope#play\r\n * @since 3.23.0\r\n *\r\n * @param {string} key - The string-based key of the animation to play.\r\n * @param {boolean} [ignoreIfPlaying=false] - If an animation is already playing then ignore this call.\r\n * @param {number} [startFrame=0] - Optionally start the animation playing from this frame index.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n play: function (key, ignoreIfPlaying, startFrame)\r\n {\r\n this.anims.play(key, ignoreIfPlaying, startFrame);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Flags this Rope as being dirty. A dirty rope will recalculate all of its vertices data\r\n * the _next_ time it renders. You should set this rope as dirty if you update the points\r\n * array directly.\r\n *\r\n * @method Phaser.GameObjects.Rope#setDirty\r\n * @since 3.23.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setDirty: function ()\r\n {\r\n this.dirty = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the alignment of the points in this Rope to be horizontal, in a strip format.\r\n *\r\n * Calling this method will reset this Rope. The current points, vertices, colors and alpha\r\n * values will be reset to thoes values given as parameters.\r\n *\r\n * @method Phaser.GameObjects.Rope#setHorizontal\r\n * @since 3.23.0\r\n *\r\n * @param {(number|Phaser.Types.Math.Vector2Like[])} [points] - An array containing the vertices data for this Rope, or a number that indicates how many segments to split the texture frame into. If none is provided the current points length is used.\r\n * @param {(number|number[])} [colors] - Either a single color value, or an array of values.\r\n * @param {(number|number[])} [alphas] - Either a single alpha value, or an array of values.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setHorizontal: function (points, colors, alphas)\r\n {\r\n if (points === undefined) { points = this.points.length; }\r\n\r\n if (this.horizontal)\r\n {\r\n return this;\r\n }\r\n\r\n this.horizontal = true;\r\n\r\n return this.setPoints(points, colors, alphas);\r\n },\r\n\r\n /**\r\n * Sets the alignment of the points in this Rope to be vertical, in a column format.\r\n *\r\n * Calling this method will reset this Rope. The current points, vertices, colors and alpha\r\n * values will be reset to thoes values given as parameters.\r\n *\r\n * @method Phaser.GameObjects.Rope#setVertical\r\n * @since 3.23.0\r\n *\r\n * @param {(number|Phaser.Types.Math.Vector2Like[])} [points] - An array containing the vertices data for this Rope, or a number that indicates how many segments to split the texture frame into. If none is provided the current points length is used.\r\n * @param {(number|number[])} [colors] - Either a single color value, or an array of values.\r\n * @param {(number|number[])} [alphas] - Either a single alpha value, or an array of values.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setVertical: function (points, colors, alphas)\r\n {\r\n if (points === undefined) { points = this.points.length; }\r\n\r\n if (!this.horizontal)\r\n {\r\n return this;\r\n }\r\n\r\n this.horizontal = false;\r\n\r\n return this.setPoints(points, colors, alphas);\r\n },\r\n\r\n /**\r\n * Sets the tint fill mode.\r\n *\r\n * Mode 0 (`false`) is an additive tint, the default, which blends the vertices colors with the texture.\r\n * This mode respects the texture alpha.\r\n *\r\n * Mode 1 (`true`) is a fill tint. Unlike an additive tint, a fill-tint literally replaces the pixel colors\r\n * from the texture with those in the tint. You can use this for effects such as making a player flash 'white'\r\n * if hit by something. This mode respects the texture alpha.\r\n *\r\n * See the `setColors` method for details of how to color each of the vertices.\r\n *\r\n * @method Phaser.GameObjects.Rope#setTintFill\r\n * @webglOnly\r\n * @since 3.23.0\r\n *\r\n * @param {boolean} [value=false] - Set to `false` for an Additive tint or `true` fill tint with alpha.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setTintFill: function (value)\r\n {\r\n if (value === undefined) { value = false; }\r\n\r\n this.tintFill = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the alpha values used by the Rope during rendering.\r\n *\r\n * You can provide the values in a number of ways:\r\n *\r\n * 1) One single numeric value: `setAlphas(0.5)` - This will set a single alpha for the whole Rope.\r\n * 2) Two numeric value: `setAlphas(1, 0.5)` - This will set a 'top' and 'bottom' alpha value across the whole Rope.\r\n * 3) An array of values: `setAlphas([ 1, 0.5, 0.2 ])`\r\n *\r\n * If you provide an array of values and the array has exactly the same number of values as `points` in the Rope, it\r\n * will use each alpha value per rope segment.\r\n *\r\n * If the provided array has a different number of values than `points` then it will use the values in order, from\r\n * the first Rope segment and on, until it runs out of values. This allows you to control the alpha values at all\r\n * vertices in the Rope.\r\n *\r\n * Note this method is called `setAlphas` (plural) and not `setAlpha`.\r\n *\r\n * @method Phaser.GameObjects.Rope#setAlphas\r\n * @since 3.23.0\r\n *\r\n * @param {(number|number[])} [alphas] - Either a single alpha value, or an array of values. If nothing is provided alpha is reset to 1.\r\n * @param {number} [bottomAlpha] - An optional bottom alpha value. See the method description for details.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setAlphas: function (alphas, bottomAlpha)\r\n {\r\n var total = this.points.length;\r\n\r\n if (total < 1)\r\n {\r\n return this;\r\n }\r\n\r\n var currentAlphas = this.alphas;\r\n\r\n if (alphas === undefined)\r\n {\r\n alphas = [ 1 ];\r\n }\r\n else if (!Array.isArray(alphas) && bottomAlpha === undefined)\r\n {\r\n alphas = [ alphas ];\r\n }\r\n\r\n var i;\r\n var index = 0;\r\n\r\n if (bottomAlpha !== undefined)\r\n {\r\n // Top / Bottom alpha pair\r\n for (i = 0; i < total; i++)\r\n {\r\n index = i * 2;\r\n\r\n currentAlphas[index] = alphas;\r\n currentAlphas[index + 1] = bottomAlpha;\r\n }\r\n }\r\n else if (alphas.length === total)\r\n {\r\n // If there are exactly the same number of alphas as points, we'll combine the alphas\r\n for (i = 0; i < total; i++)\r\n {\r\n index = i * 2;\r\n\r\n currentAlphas[index] = alphas[i];\r\n currentAlphas[index + 1] = alphas[i];\r\n }\r\n }\r\n else\r\n {\r\n var prevAlpha = alphas[0];\r\n\r\n for (i = 0; i < total; i++)\r\n {\r\n index = i * 2;\r\n\r\n if (alphas.length > index)\r\n {\r\n prevAlpha = alphas[index];\r\n }\r\n\r\n currentAlphas[index] = prevAlpha;\r\n\r\n if (alphas.length > index + 1)\r\n {\r\n prevAlpha = alphas[index + 1];\r\n }\r\n\r\n currentAlphas[index + 1] = prevAlpha;\r\n }\r\n }\r\n\r\n return this;\r\n\r\n },\r\n\r\n /**\r\n * Set the color values used by the Rope during rendering.\r\n *\r\n * Colors are used to control the level of tint applied across the Rope texture.\r\n *\r\n * You can provide the values in a number of ways:\r\n *\r\n * * One single numeric value: `setColors(0xff0000)` - This will set a single color tint for the whole Rope.\r\n * * An array of values: `setColors([ 0xff0000, 0x00ff00, 0x0000ff ])`\r\n *\r\n * If you provide an array of values and the array has exactly the same number of values as `points` in the Rope, it\r\n * will use each color per rope segment.\r\n *\r\n * If the provided array has a different number of values than `points` then it will use the values in order, from\r\n * the first Rope segment and on, until it runs out of values. This allows you to control the color values at all\r\n * vertices in the Rope.\r\n *\r\n * @method Phaser.GameObjects.Rope#setColors\r\n * @since 3.23.0\r\n *\r\n * @param {(number|number[])} [colors] - Either a single color value, or an array of values. If nothing is provided color is reset to 0xffffff.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setColors: function (colors)\r\n {\r\n var total = this.points.length;\r\n\r\n if (total < 1)\r\n {\r\n return this;\r\n }\r\n\r\n var currentColors = this.colors;\r\n\r\n if (colors === undefined)\r\n {\r\n colors = [ 0xffffff ];\r\n }\r\n else if (!Array.isArray(colors))\r\n {\r\n colors = [ colors ];\r\n }\r\n\r\n var i;\r\n var index = 0;\r\n\r\n if (colors.length === total)\r\n {\r\n // If there are exactly the same number of colors as points, we'll combine the colors\r\n for (i = 0; i < total; i++)\r\n {\r\n index = i * 2;\r\n\r\n currentColors[index] = colors[i];\r\n currentColors[index + 1] = colors[i];\r\n }\r\n }\r\n else\r\n {\r\n var prevColor = colors[0];\r\n\r\n for (i = 0; i < total; i++)\r\n {\r\n index = i * 2;\r\n\r\n if (colors.length > index)\r\n {\r\n prevColor = colors[index];\r\n }\r\n\r\n currentColors[index] = prevColor;\r\n\r\n if (colors.length > index + 1)\r\n {\r\n prevColor = colors[index + 1];\r\n }\r\n\r\n currentColors[index + 1] = prevColor;\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the points used by this Rope.\r\n *\r\n * The points should be provided as an array of Vector2, or vector2-like objects (i.e. those with public x/y properties).\r\n *\r\n * Each point corresponds to one segment of the Rope. The more points in the array, the more segments the rope has.\r\n *\r\n * Point coordinates are given in local-space, not world-space, and are directly related to the size of the texture\r\n * this Rope object is using.\r\n *\r\n * For example, a Rope using a 512 px wide texture, split into 4 segments (128px each) would use the following points:\r\n *\r\n * ```javascript\r\n * rope.setPoints([\r\n * { x: 0, y: 0 },\r\n * { x: 128, y: 0 },\r\n * { x: 256, y: 0 },\r\n * { x: 384, y: 0 }\r\n * ]);\r\n * ```\r\n *\r\n * Or, you can provide an integer to do the same thing:\r\n *\r\n * ```javascript\r\n * rope.setPoints(4);\r\n * ```\r\n *\r\n * Which will divide the Rope into 4 equally sized segments based on the frame width.\r\n *\r\n * Note that calling this method with a different number of points than the Rope has currently will\r\n * _reset_ the color and alpha values, unless you provide them as arguments to this method.\r\n *\r\n * @method Phaser.GameObjects.Rope#setPoints\r\n * @since 3.23.0\r\n *\r\n * @param {(number|Phaser.Types.Math.Vector2Like[])} [points=2] - An array containing the vertices data for this Rope, or a number that indicates how many segments to split the texture frame into. If none is provided a simple quad is created.\r\n * @param {(number|number[])} [colors] - Either a single color value, or an array of values.\r\n * @param {(number|number[])} [alphas] - Either a single alpha value, or an array of values.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setPoints: function (points, colors, alphas)\r\n {\r\n if (points === undefined) { points = 2; }\r\n\r\n if (typeof points === 'number')\r\n {\r\n // Generate an array based on the points\r\n var segments = points;\r\n\r\n if (segments < 2)\r\n {\r\n segments = 2;\r\n }\r\n\r\n points = [];\r\n\r\n var s;\r\n var frameSegment;\r\n var offset;\r\n\r\n if (this.horizontal)\r\n {\r\n offset = -(this.frame.halfWidth);\r\n frameSegment = this.frame.width / (segments - 1);\r\n\r\n for (s = 0; s < segments; s++)\r\n {\r\n points.push({ x: offset + s * frameSegment, y: 0 });\r\n }\r\n }\r\n else\r\n {\r\n offset = -(this.frame.halfHeight);\r\n frameSegment = this.frame.height / (segments - 1);\r\n\r\n for (s = 0; s < segments; s++)\r\n {\r\n points.push({ x: 0, y: offset + s * frameSegment });\r\n }\r\n }\r\n }\r\n\r\n var total = points.length;\r\n var currentTotal = this.points.length;\r\n\r\n if (total < 1)\r\n {\r\n console.warn('Rope: Not enough points given');\r\n\r\n return this;\r\n }\r\n else if (total === 1)\r\n {\r\n points.unshift({ x: 0, y: 0 });\r\n total++;\r\n }\r\n\r\n if (currentTotal !== total)\r\n {\r\n this.resizeArrays(total);\r\n }\r\n\r\n this.dirty = true;\r\n\r\n this.points = points;\r\n\r\n this.updateUVs();\r\n\r\n if (colors !== undefined && colors !== null)\r\n {\r\n this.setColors(colors);\r\n }\r\n\r\n if (alphas !== undefined && alphas !== null)\r\n {\r\n this.setAlphas(alphas);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Updates all of the UVs based on the Rope.points and `flipX` and `flipY` settings.\r\n *\r\n * @method Phaser.GameObjects.Rope#updateUVs\r\n * @since 3.23.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n updateUVs: function ()\r\n {\r\n var currentUVs = this.uv;\r\n var total = this.points.length;\r\n\r\n var u0 = this.frame.u0;\r\n var v0 = this.frame.v0;\r\n var u1 = this.frame.u1;\r\n var v1 = this.frame.v1;\r\n\r\n var partH = (u1 - u0) / (total - 1);\r\n var partV = (v1 - v0) / (total - 1);\r\n\r\n for (var i = 0; i < total; i++)\r\n {\r\n var index = i * 4;\r\n\r\n var uv0;\r\n var uv1;\r\n var uv2;\r\n var uv3;\r\n\r\n if (this.horizontal)\r\n {\r\n if (this._flipX)\r\n {\r\n uv0 = u1 - (i * partH);\r\n uv2 = u1 - (i * partH);\r\n }\r\n else\r\n {\r\n uv0 = u0 + (i * partH);\r\n uv2 = u0 + (i * partH);\r\n }\r\n\r\n if (this._flipY)\r\n {\r\n uv1 = v1;\r\n uv3 = v0;\r\n }\r\n else\r\n {\r\n uv1 = v0;\r\n uv3 = v1;\r\n }\r\n }\r\n else\r\n {\r\n if (this._flipX)\r\n {\r\n uv0 = u0;\r\n uv2 = u1;\r\n }\r\n else\r\n {\r\n uv0 = u1;\r\n uv2 = u0;\r\n }\r\n\r\n if (this._flipY)\r\n {\r\n uv1 = v1 - (i * partV);\r\n uv3 = v1 - (i * partV);\r\n }\r\n else\r\n {\r\n uv1 = v0 + (i * partV);\r\n uv3 = v0 + (i * partV);\r\n }\r\n }\r\n\r\n currentUVs[index + 0] = uv0;\r\n currentUVs[index + 1] = uv1;\r\n currentUVs[index + 2] = uv2;\r\n currentUVs[index + 3] = uv3;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resizes all of the internal arrays: `vertices`, `uv`, `colors` and `alphas` to the new\r\n * given Rope segment total.\r\n *\r\n * @method Phaser.GameObjects.Rope#resizeArrays\r\n * @since 3.23.0\r\n *\r\n * @param {number} newSize - The amount of segments to split the Rope in to.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n resizeArrays: function (newSize)\r\n {\r\n var colors = this.colors;\r\n var alphas = this.alphas;\r\n\r\n this.vertices = new Float32Array(newSize * 4);\r\n this.uv = new Float32Array(newSize * 4);\r\n\r\n colors = new Uint32Array(newSize * 2);\r\n alphas = new Float32Array(newSize * 2);\r\n\r\n for (var i = 0; i < newSize * 2; i++)\r\n {\r\n colors[i] = 0xffffff;\r\n alphas[i] = 1;\r\n }\r\n\r\n this.colors = colors;\r\n this.alphas = alphas;\r\n\r\n // updateVertices during next render\r\n this.dirty = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Updates the vertices based on the Rope points.\r\n *\r\n * This method is called automatically during rendering if `Rope.dirty` is `true`, which is set\r\n * by the `setPoints` and `setDirty` methods. You should flag the Rope as being dirty if you modify\r\n * the Rope points directly.\r\n *\r\n * @method Phaser.GameObjects.Rope#updateVertices\r\n * @since 3.23.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n updateVertices: function ()\r\n {\r\n var perp = this._perp;\r\n var points = this.points;\r\n var vertices = this.vertices;\r\n\r\n var total = points.length;\r\n\r\n this.dirty = false;\r\n\r\n if (total < 1)\r\n {\r\n return;\r\n }\r\n\r\n var nextPoint;\r\n var lastPoint = points[0];\r\n\r\n var frameSize = (this.horizontal) ? this.frame.halfHeight : this.frame.halfWidth;\r\n\r\n for (var i = 0; i < total; i++)\r\n {\r\n var point = points[i];\r\n var index = i * 4;\r\n\r\n if (i < total - 1)\r\n {\r\n nextPoint = points[i + 1];\r\n }\r\n else\r\n {\r\n nextPoint = point;\r\n }\r\n\r\n perp.x = nextPoint.y - lastPoint.y;\r\n perp.y = -(nextPoint.x - lastPoint.x);\r\n\r\n var perpLength = perp.length();\r\n\r\n perp.x /= perpLength;\r\n perp.y /= perpLength;\r\n\r\n perp.x *= frameSize;\r\n perp.y *= frameSize;\r\n\r\n vertices[index] = point.x + perp.x;\r\n vertices[index + 1] = point.y + perp.y;\r\n vertices[index + 2] = point.x - perp.x;\r\n vertices[index + 3] = point.y - perp.y;\r\n\r\n lastPoint = point;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * This method enables rendering of the Rope vertices to the given Graphics instance.\r\n *\r\n * If you enable this feature, you **must** call `Graphics.clear()` in your Scene `update`,\r\n * otherwise the Graphics instance you provide to debug will fill-up with draw calls,\r\n * eventually crashing the browser. This is not done automatically to allow you to debug\r\n * draw multiple Rope objects to a single Graphics instance.\r\n *\r\n * The Rope class has a built-in debug rendering callback `Rope.renderDebugVerts`, however\r\n * you can also provide your own callback to be used instead. Do this by setting the `callback` parameter.\r\n *\r\n * The callback is invoked _once per render_ and sent the following parameters:\r\n *\r\n * `callback(src, meshLength, verts)`\r\n *\r\n * `src` is the Rope instance being debugged.\r\n * `meshLength` is the number of mesh vertices in total.\r\n * `verts` is an array of the translated vertex coordinates.\r\n *\r\n * If using your own callback you do not have to provide a Graphics instance to this method.\r\n *\r\n * To disable debug rendering, to either your own callback or the built-in one, call this method\r\n * with no arguments.\r\n *\r\n * @method Phaser.GameObjects.Rope#setDebug\r\n * @since 3.23.0\r\n *\r\n * @param {Phaser.GameObjects.Graphics} [graphic] - The Graphic instance to render to if using the built-in callback.\r\n * @param {function} [callback] - The callback to invoke during debug render. Leave as undefined to use the built-in callback.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setDebug: function (graphic, callback)\r\n {\r\n this.debugGraphic = graphic;\r\n\r\n if (!graphic && !callback)\r\n {\r\n this.debugCallback = null;\r\n }\r\n else if (!callback)\r\n {\r\n this.debugCallback = this.renderDebugVerts;\r\n }\r\n else\r\n {\r\n this.debugCallback = callback;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The built-in Rope vertices debug rendering method.\r\n *\r\n * See `Rope.setDebug` for more details.\r\n *\r\n * @method Phaser.GameObjects.Rope#renderDebugVerts\r\n * @since 3.23.0\r\n *\r\n * @param {Phaser.GameObjects.Rope} src - The Rope object being rendered.\r\n * @param {number} meshLength - The number of vertices in the mesh.\r\n * @param {number[]} verts - An array of translated vertex coordinates.\r\n */\r\n renderDebugVerts: function (src, meshLength, verts)\r\n {\r\n var graphic = src.debugGraphic;\r\n\r\n var px0 = verts[0];\r\n var py0 = verts[1];\r\n var px1 = verts[2];\r\n var py1 = verts[3];\r\n\r\n graphic.lineBetween(px0, py0, px1, py1);\r\n\r\n for (var i = 4; i < meshLength; i += 4)\r\n {\r\n var x0 = verts[i + 0];\r\n var y0 = verts[i + 1];\r\n var x1 = verts[i + 2];\r\n var y1 = verts[i + 3];\r\n\r\n graphic.lineBetween(px0, py0, x0, y0);\r\n graphic.lineBetween(px1, py1, x1, y1);\r\n graphic.lineBetween(px1, py1, x0, y0);\r\n graphic.lineBetween(x0, y0, x1, y1);\r\n\r\n px0 = x0;\r\n py0 = y0;\r\n px1 = x1;\r\n py1 = y1;\r\n }\r\n },\r\n\r\n /**\r\n * Handles the pre-destroy step for the Rope, which removes the Animation component and typed arrays.\r\n *\r\n * @method Phaser.GameObjects.Rope#preDestroy\r\n * @private\r\n * @since 3.23.0\r\n */\r\n preDestroy: function ()\r\n {\r\n this.anims.destroy();\r\n\r\n this.anims = undefined;\r\n\r\n this.points = null;\r\n this.vertices = null;\r\n this.uv = null;\r\n this.colors = null;\r\n this.alphas = null;\r\n\r\n this.debugCallback = null;\r\n this.debugGraphic = null;\r\n },\r\n\r\n /**\r\n * The horizontally flipped state of the Game Object.\r\n *\r\n * A Game Object that is flipped horizontally will render inversed on the horizontal axis.\r\n * Flipping always takes place from the middle of the texture and does not impact the scale value.\r\n * If this Game Object has a physics body, it will not change the body. This is a rendering toggle only.\r\n *\r\n * @name Phaser.GameObjects.Rope#flipX\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.23.0\r\n */\r\n flipX: {\r\n\r\n get: function ()\r\n {\r\n return this._flipX;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._flipX = value;\r\n\r\n return this.updateUVs();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The vertically flipped state of the Game Object.\r\n *\r\n * A Game Object that is flipped vertically will render inversed on the vertical axis (i.e. upside down)\r\n * Flipping always takes place from the middle of the texture and does not impact the scale value.\r\n * If this Game Object has a physics body, it will not change the body. This is a rendering toggle only.\r\n *\r\n * @name Phaser.GameObjects.Rope#flipY\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.23.0\r\n */\r\n flipY: {\r\n\r\n get: function ()\r\n {\r\n return this._flipY;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._flipY = value;\r\n\r\n return this.updateUVs();\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Rope;\r\n\n\n/***/ }),\n\n/***/ 95262:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * This is a stub function for Rope.Render. There is no Canvas renderer for Rope objects.\r\n *\r\n * @method Phaser.GameObjects.Rope#renderCanvas\r\n * @since 3.23.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.Rope} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n */\r\nvar RopeCanvasRenderer = function ()\r\n{\r\n};\r\n\r\nmodule.exports = RopeCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 26209:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BuildGameObject = __webpack_require__(25305);\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\nvar GetValue = __webpack_require__(35154);\r\nvar Rope = __webpack_require__(77757);\r\n\r\n/**\r\n * Creates a new Rope Game Object and returns it.\r\n *\r\n * Note: This method will only be available if the Rope Game Object and WebGL support have been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#rope\r\n * @since 3.23.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Rope.RopeConfig} config - The configuration object this Game Object will use to create itself.\r\n * @param {boolean} [addToScene] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.\r\n *\r\n * @return {Phaser.GameObjects.Rope} The Game Object that was created.\r\n */\r\nGameObjectCreator.register('rope', function (config, addToScene)\r\n{\r\n if (config === undefined) { config = {}; }\r\n\r\n var key = GetAdvancedValue(config, 'key', null);\r\n var frame = GetAdvancedValue(config, 'frame', null);\r\n var horizontal = GetAdvancedValue(config, 'horizontal', true);\r\n var points = GetValue(config, 'points', undefined);\r\n var colors = GetValue(config, 'colors', undefined);\r\n var alphas = GetValue(config, 'alphas', undefined);\r\n\r\n var rope = new Rope(this.scene, 0, 0, key, frame, points, horizontal, colors, alphas);\r\n\r\n if (addToScene !== undefined)\r\n {\r\n config.add = addToScene;\r\n }\r\n\r\n BuildGameObject(this.scene, rope, config);\r\n\r\n return rope;\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectCreator context.\r\n\n\n/***/ }),\n\n/***/ 96819:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Rope = __webpack_require__(77757);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * Creates a new Rope Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Rope Game Object and WebGL support have been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#rope\r\n * @webglOnly\r\n * @since 3.23.0\r\n *\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {(string|Phaser.Textures.Texture)} texture - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - An optional frame from the Texture this Game Object is rendering with.\r\n * @param {Phaser.Types.Math.Vector2Like[]} [points] - An array containing the vertices data for this Rope. If none is provided a simple quad is created. See `setPoints` to set this post-creation.\r\n * @param {boolean} [horizontal=true] - Should the vertices of this Rope be aligned horizontally (`true`), or vertically (`false`)?\r\n * @param {number[]} [colors] - An optional array containing the color data for this Rope. You should provide one color value per pair of vertices.\r\n * @param {number[]} [alphas] - An optional array containing the alpha data for this Rope. You should provide one alpha value per pair of vertices.\r\n *\r\n * @return {Phaser.GameObjects.Rope} The Game Object that was created.\r\n */\r\nif (true)\r\n{\r\n GameObjectFactory.register('rope', function (x, y, texture, frame, points, horizontal, colors, alphas)\r\n {\r\n return this.displayList.add(new Rope(this.scene, x, y, texture, frame, points, horizontal, colors, alphas));\r\n });\r\n}\r\n\n\n/***/ }),\n\n/***/ 38745:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(20439);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(95262);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 20439:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetCalcMatrix = __webpack_require__(91296);\r\nvar Utils = __webpack_require__(70554);\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Rope#renderWebGL\r\n * @since 3.23.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Rope} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar RopeWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var pipeline = renderer.pipelines.set(src.pipeline, src);\r\n\r\n var calcMatrix = GetCalcMatrix(src, camera, parentMatrix).calc;\r\n\r\n var vertices = src.vertices;\r\n var uvs = src.uv;\r\n var colors = src.colors;\r\n var alphas = src.alphas;\r\n var alpha = src.alpha;\r\n var getTint = Utils.getTintAppendFloatAlpha;\r\n var roundPixels = camera.roundPixels;\r\n\r\n var meshVerticesLength = vertices.length;\r\n var vertexCount = Math.floor(meshVerticesLength * 0.5);\r\n\r\n // Because it's a triangle strip and we don't want lots of degenerate triangles joining things up\r\n pipeline.flush();\r\n\r\n renderer.pipelines.preBatch(src);\r\n\r\n var textureUnit = pipeline.setGameObject(src);\r\n\r\n var vertexViewF32 = pipeline.vertexViewF32;\r\n var vertexViewU32 = pipeline.vertexViewU32;\r\n\r\n var vertexOffset = (pipeline.vertexCount * pipeline.currentShader.vertexComponentCount) - 1;\r\n\r\n var colorIndex = 0;\r\n\r\n var tintEffect = src.tintFill;\r\n\r\n if (src.dirty)\r\n {\r\n src.updateVertices();\r\n }\r\n\r\n var debugCallback = src.debugCallback;\r\n var debugVerts = [];\r\n\r\n for (var i = 0; i < meshVerticesLength; i += 2)\r\n {\r\n var x = vertices[i + 0];\r\n var y = vertices[i + 1];\r\n\r\n var tx = x * calcMatrix.a + y * calcMatrix.c + calcMatrix.e;\r\n var ty = x * calcMatrix.b + y * calcMatrix.d + calcMatrix.f;\r\n\r\n if (roundPixels)\r\n {\r\n tx = Math.round(tx);\r\n ty = Math.round(ty);\r\n }\r\n\r\n vertexViewF32[++vertexOffset] = tx;\r\n vertexViewF32[++vertexOffset] = ty;\r\n vertexViewF32[++vertexOffset] = uvs[i + 0];\r\n vertexViewF32[++vertexOffset] = uvs[i + 1];\r\n vertexViewF32[++vertexOffset] = textureUnit;\r\n vertexViewF32[++vertexOffset] = tintEffect;\r\n vertexViewU32[++vertexOffset] = getTint(colors[colorIndex], camera.alpha * (alphas[colorIndex] * alpha));\r\n\r\n colorIndex++;\r\n\r\n if (debugCallback)\r\n {\r\n debugVerts[i + 0] = tx;\r\n debugVerts[i + 1] = ty;\r\n }\r\n }\r\n\r\n if (debugCallback)\r\n {\r\n debugCallback.call(src, src, meshVerticesLength, debugVerts);\r\n }\r\n\r\n pipeline.vertexCount += vertexCount;\r\n\r\n pipeline.currentBatch.count = (pipeline.vertexCount - pipeline.currentBatch.start);\r\n\r\n renderer.pipelines.postBatch(src);\r\n};\r\n\r\nmodule.exports = RopeWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 20071:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar GameObject = __webpack_require__(95643);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar Extend = __webpack_require__(79291);\r\nvar SetValue = __webpack_require__(61622);\r\nvar ShaderRender = __webpack_require__(25479);\r\nvar TransformMatrix = __webpack_require__(61340);\r\nvar ArrayEach = __webpack_require__(95428);\r\nvar RenderEvents = __webpack_require__(92503);\r\n\r\n/**\r\n * @classdesc\r\n * A Shader Game Object.\r\n *\r\n * This Game Object allows you to easily add a quad with its own shader into the display list, and manipulate it\r\n * as you would any other Game Object, including scaling, rotating, positioning and adding to Containers. Shaders\r\n * can be masked with either Bitmap or Geometry masks and can also be used as a Bitmap Mask for a Camera or other\r\n * Game Object. They can also be made interactive and used for input events.\r\n *\r\n * It works by taking a reference to a `Phaser.Display.BaseShader` instance, as found in the Shader Cache. These can\r\n * be created dynamically at runtime, or loaded in via the GLSL File Loader:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.glsl('fire', 'shaders/fire.glsl.js');\r\n * }\r\n *\r\n * function create ()\r\n * {\r\n * this.add.shader('fire', 400, 300, 512, 512);\r\n * }\r\n * ```\r\n *\r\n * Please see the Phaser 3 Examples GitHub repo for examples of loading and creating shaders dynamically.\r\n *\r\n * Due to the way in which they work, you cannot directly change the alpha or blend mode of a Shader. This should\r\n * be handled via exposed uniforms in the shader code itself.\r\n *\r\n * By default a Shader will be created with a standard set of uniforms. These were added to match those\r\n * found on sites such as ShaderToy or GLSLSandbox, and provide common functionality a shader may need,\r\n * such as the timestamp, resolution or pointer position. You can replace them by specifying your own uniforms\r\n * in the Base Shader.\r\n *\r\n * These Shaders work by halting the current pipeline during rendering, creating a viewport matched to the\r\n * size of this Game Object and then renders a quad using the bound shader. At the end, the pipeline is restored.\r\n *\r\n * Because it blocks the pipeline it means it will interrupt any batching that is currently going on, so you should\r\n * use these Game Objects sparingly. If you need to have a fully batched custom shader, then please look at using\r\n * a custom pipeline instead. However, for background or special masking effects, they are extremely effective.\r\n *\r\n * @class Shader\r\n * @extends Phaser.GameObjects.GameObject\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @webglOnly\r\n * @since 3.17.0\r\n *\r\n * @extends Phaser.GameObjects.Components.ComputedSize\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.GetBounds\r\n * @extends Phaser.GameObjects.Components.Mask\r\n * @extends Phaser.GameObjects.Components.Origin\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {(string|Phaser.Display.BaseShader)} key - The key of the shader to use from the shader cache, or a BaseShader instance.\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {number} [width=128] - The width of the Game Object.\r\n * @param {number} [height=128] - The height of the Game Object.\r\n * @param {string[]} [textures] - Optional array of texture keys to bind to the iChannel0...3 uniforms. The textures must already exist in the Texture Manager.\r\n * @param {any} [textureData] - Additional texture data if you want to create shader with none NPOT textures.\r\n */\r\nvar Shader = new Class({\r\n\r\n Extends: GameObject,\r\n\r\n Mixins: [\r\n Components.ComputedSize,\r\n Components.Depth,\r\n Components.GetBounds,\r\n Components.Mask,\r\n Components.Origin,\r\n Components.ScrollFactor,\r\n Components.Transform,\r\n Components.Visible,\r\n ShaderRender\r\n ],\r\n\r\n initialize:\r\n\r\n function Shader (scene, key, x, y, width, height, textures, textureData)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (width === undefined) { width = 128; }\r\n if (height === undefined) { height = 128; }\r\n\r\n GameObject.call(this, scene, 'Shader');\r\n\r\n /**\r\n * This Game Object cannot have a blend mode, so skip all checks.\r\n *\r\n * @name Phaser.GameObjects.Shader#blendMode\r\n * @type {number}\r\n * @private\r\n * @since 3.17.0\r\n */\r\n this.blendMode = -1;\r\n\r\n /**\r\n * The underlying shader object being used.\r\n * Empty by default and set during a call to the `setShader` method.\r\n *\r\n * @name Phaser.GameObjects.Shader#shader\r\n * @type {Phaser.Display.BaseShader}\r\n * @since 3.17.0\r\n */\r\n this.shader;\r\n\r\n var renderer = scene.sys.renderer;\r\n\r\n /**\r\n * A reference to the current renderer.\r\n * Shaders only work with the WebGL Renderer.\r\n *\r\n * @name Phaser.GameObjects.Shader#renderer\r\n * @type {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)}\r\n * @since 3.17.0\r\n */\r\n this.renderer = renderer;\r\n\r\n /**\r\n * The WebGL context belonging to the renderer.\r\n *\r\n * @name Phaser.GameObjects.Shader#gl\r\n * @type {WebGLRenderingContext}\r\n * @since 3.17.0\r\n */\r\n this.gl = renderer.gl;\r\n\r\n /**\r\n * Raw byte buffer of vertices this Shader uses.\r\n *\r\n * @name Phaser.GameObjects.Shader#vertexData\r\n * @type {ArrayBuffer}\r\n * @since 3.17.0\r\n */\r\n this.vertexData = new ArrayBuffer(6 * (Float32Array.BYTES_PER_ELEMENT * 2));\r\n\r\n /**\r\n * The WebGL vertex buffer object this shader uses.\r\n *\r\n * @name Phaser.GameObjects.Shader#vertexBuffer\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLBufferWrapper}\r\n * @since 3.17.0\r\n */\r\n this.vertexBuffer = renderer.createVertexBuffer(this.vertexData.byteLength, this.gl.STREAM_DRAW);\r\n\r\n /**\r\n * Internal property: whether the shader needs to be created,\r\n * and if so, the key and textures to use for the shader.\r\n *\r\n * @name Phaser.GameObjects.Shader#_deferSetShader\r\n * @type {?{ key: string, textures: string[]|undefined, textureData: any|undefined }}\r\n * @private\r\n * @since 3.80.0\r\n */\r\n this._deferSetShader = null;\r\n\r\n /**\r\n * Internal property: whether the projection matrix needs to be set,\r\n * and if so, the data to use for the orthographic projection.\r\n *\r\n * @name Phaser.GameObjects.Shader#_deferProjOrtho\r\n * @type {?{ left: number, right: number, bottom: number, top: number }}\r\n * @private\r\n * @since 3.80.0\r\n */\r\n this._deferProjOrtho = null;\r\n\r\n /**\r\n * The WebGL shader program this shader uses.\r\n *\r\n * @name Phaser.GameObjects.Shader#program\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLProgramWrapper}\r\n * @since 3.17.0\r\n */\r\n this.program = null;\r\n\r\n /**\r\n * Uint8 view to the vertex raw buffer. Used for uploading vertex buffer resources to the GPU.\r\n *\r\n * @name Phaser.GameObjects.Shader#bytes\r\n * @type {Uint8Array}\r\n * @since 3.17.0\r\n */\r\n this.bytes = new Uint8Array(this.vertexData);\r\n\r\n /**\r\n * Float32 view of the array buffer containing the shaders vertices.\r\n *\r\n * @name Phaser.GameObjects.Shader#vertexViewF32\r\n * @type {Float32Array}\r\n * @since 3.17.0\r\n */\r\n this.vertexViewF32 = new Float32Array(this.vertexData);\r\n\r\n /**\r\n * A temporary Transform Matrix, re-used internally during batching.\r\n *\r\n * @name Phaser.GameObjects.Shader#_tempMatrix1\r\n * @private\r\n * @type {Phaser.GameObjects.Components.TransformMatrix}\r\n * @since 3.17.0\r\n */\r\n this._tempMatrix1 = new TransformMatrix();\r\n\r\n /**\r\n * A temporary Transform Matrix, re-used internally during batching.\r\n *\r\n * @name Phaser.GameObjects.Shader#_tempMatrix2\r\n * @private\r\n * @type {Phaser.GameObjects.Components.TransformMatrix}\r\n * @since 3.17.0\r\n */\r\n this._tempMatrix2 = new TransformMatrix();\r\n\r\n /**\r\n * A temporary Transform Matrix, re-used internally during batching.\r\n *\r\n * @name Phaser.GameObjects.Shader#_tempMatrix3\r\n * @private\r\n * @type {Phaser.GameObjects.Components.TransformMatrix}\r\n * @since 3.17.0\r\n */\r\n this._tempMatrix3 = new TransformMatrix();\r\n\r\n /**\r\n * The view matrix the shader uses during rendering.\r\n *\r\n * @name Phaser.GameObjects.Shader#viewMatrix\r\n * @type {Float32Array}\r\n * @readonly\r\n * @since 3.17.0\r\n */\r\n this.viewMatrix = new Float32Array([ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ]);\r\n\r\n /**\r\n * The projection matrix the shader uses during rendering.\r\n *\r\n * @name Phaser.GameObjects.Shader#projectionMatrix\r\n * @type {Float32Array}\r\n * @readonly\r\n * @since 3.17.0\r\n */\r\n this.projectionMatrix = new Float32Array([ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ]);\r\n\r\n /**\r\n * The default uniform mappings. These can be added to (or replaced) by specifying your own uniforms when\r\n * creating this shader game object. The uniforms are updated automatically during the render step.\r\n *\r\n * The defaults are:\r\n *\r\n * `resolution` (2f) - Set to the size of this shader.\r\n * `time` (1f) - The elapsed game time, in seconds.\r\n * `mouse` (2f) - If a pointer has been bound (with `setPointer`), this uniform contains its position each frame.\r\n * `date` (4fv) - A vec4 containing the year, month, day and time in seconds.\r\n * `sampleRate` (1f) - Sound sample rate. 44100 by default.\r\n * `iChannel0...3` (sampler2D) - Input channels 0 to 3. `null` by default.\r\n *\r\n * @name Phaser.GameObjects.Shader#uniforms\r\n * @type {any}\r\n * @since 3.17.0\r\n */\r\n this.uniforms = {};\r\n\r\n /**\r\n * The pointer bound to this shader, if any.\r\n * Set via the chainable `setPointer` method, or by modifying this property directly.\r\n *\r\n * @name Phaser.GameObjects.Shader#pointer\r\n * @type {Phaser.Input.Pointer}\r\n * @since 3.17.0\r\n */\r\n this.pointer = null;\r\n\r\n /**\r\n * The cached width of the renderer.\r\n *\r\n * @name Phaser.GameObjects.Shader#_rendererWidth\r\n * @type {number}\r\n * @private\r\n * @since 3.17.0\r\n */\r\n this._rendererWidth = renderer.width;\r\n\r\n /**\r\n * The cached height of the renderer.\r\n *\r\n * @name Phaser.GameObjects.Shader#_rendererHeight\r\n * @type {number}\r\n * @private\r\n * @since 3.17.0\r\n */\r\n this._rendererHeight = renderer.height;\r\n\r\n /**\r\n * Internal texture count tracker.\r\n *\r\n * @name Phaser.GameObjects.Shader#_textureCount\r\n * @type {number}\r\n * @private\r\n * @since 3.17.0\r\n */\r\n this._textureCount = 0;\r\n\r\n /**\r\n * A reference to the GL Frame Buffer this Shader is drawing to.\r\n * This property is only set if you have called `Shader.setRenderToTexture`.\r\n *\r\n * @name Phaser.GameObjects.Shader#framebuffer\r\n * @type {?Phaser.Renderer.WebGL.Wrappers.WebGLFramebufferWrapper}\r\n * @since 3.19.0\r\n */\r\n this.framebuffer = null;\r\n\r\n /**\r\n * A reference to the WebGLTextureWrapper this Shader is rendering to.\r\n * This property is only set if you have called `Shader.setRenderToTexture`.\r\n *\r\n * @name Phaser.GameObjects.Shader#glTexture\r\n * @type {?Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper}\r\n * @since 3.19.0\r\n */\r\n this.glTexture = null;\r\n\r\n /**\r\n * A flag that indicates if this Shader has been set to render to a texture instead of the display list.\r\n *\r\n * This property is `true` if you have called `Shader.setRenderToTexture`, otherwise it's `false`.\r\n *\r\n * A Shader that is rendering to a texture _does not_ appear on the display list.\r\n *\r\n * @name Phaser.GameObjects.Shader#renderToTexture\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.19.0\r\n */\r\n this.renderToTexture = false;\r\n\r\n /**\r\n * A reference to the Phaser.Textures.Texture that has been stored in the Texture Manager for this Shader.\r\n *\r\n * This property is only set if you have called `Shader.setRenderToTexture` with a key, otherwise it is `null`.\r\n *\r\n * @name Phaser.GameObjects.Shader#texture\r\n * @type {Phaser.Textures.Texture}\r\n * @since 3.19.0\r\n */\r\n this.texture = null;\r\n\r\n this.setPosition(x, y);\r\n this.setSize(width, height);\r\n this.setOrigin(0.5, 0.5);\r\n this.setShader(key, textures, textureData);\r\n\r\n this.renderer.on(RenderEvents.RESTORE_WEBGL, this.onContextRestored, this);\r\n },\r\n\r\n /**\r\n * Compares the renderMask with the renderFlags to see if this Game Object will render or not.\r\n * Also checks the Game Object against the given Cameras exclusion list.\r\n *\r\n * @method Phaser.GameObjects.Shader#willRender\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to check against this Game Object.\r\n *\r\n * @return {boolean} True if the Game Object should be rendered, otherwise false.\r\n */\r\n willRender: function (camera)\r\n {\r\n if (this.renderToTexture)\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n return !(GameObject.RENDER_MASK !== this.renderFlags || (this.cameraFilter !== 0 && (this.cameraFilter & camera.id)));\r\n }\r\n },\r\n\r\n /**\r\n * Changes this Shader so instead of rendering to the display list it renders to a\r\n * WebGL Framebuffer and WebGL Texture instead. This allows you to use the output\r\n * of this shader as an input for another shader, by mapping a sampler2D uniform\r\n * to it.\r\n *\r\n * After calling this method the `Shader.framebuffer` and `Shader.glTexture` properties\r\n * are populated.\r\n *\r\n * Additionally, you can provide a key to this method. Doing so will create a Phaser Texture\r\n * from this Shader and save it into the Texture Manager, allowing you to then use it for\r\n * any texture-based Game Object, such as a Sprite or Image:\r\n *\r\n * ```javascript\r\n * var shader = this.add.shader('myShader', x, y, width, height);\r\n *\r\n * shader.setRenderToTexture('doodle');\r\n *\r\n * this.add.image(400, 300, 'doodle');\r\n * ```\r\n *\r\n * Note that it stores an active reference to this Shader. That means as this shader updates,\r\n * so does the texture and any object using it to render with. Also, if you destroy this\r\n * shader, be sure to clear any objects that may have been using it as a texture too.\r\n *\r\n * You can access the Phaser Texture that is created via the `Shader.texture` property.\r\n *\r\n * By default it will create a single base texture. You can add frames to the texture\r\n * by using the `Texture.add` method. After doing this, you can then allow Game Objects\r\n * to use a specific frame from a Render Texture.\r\n *\r\n * @method Phaser.GameObjects.Shader#setRenderToTexture\r\n * @since 3.19.0\r\n *\r\n * @param {string} [key] - The unique key to store the texture as within the global Texture Manager.\r\n * @param {boolean} [flipY=false] - Does this texture need vertically flipping before rendering? This should usually be set to `true` if being fed from a buffer.\r\n *\r\n * @return {this} This Shader instance.\r\n */\r\n setRenderToTexture: function (key, flipY)\r\n {\r\n if (flipY === undefined) { flipY = false; }\r\n\r\n if (!this.renderToTexture)\r\n {\r\n var width = this.width;\r\n var height = this.height;\r\n var renderer = this.renderer;\r\n\r\n this.glTexture = renderer.createTextureFromSource(null, width, height, 0);\r\n\r\n this.framebuffer = renderer.createFramebuffer(width, height, this.glTexture, false);\r\n\r\n this._rendererWidth = width;\r\n this._rendererHeight = height;\r\n\r\n this.renderToTexture = true;\r\n\r\n this.projOrtho(0, this.width, this.height, 0);\r\n\r\n if (key)\r\n {\r\n this.texture = this.scene.sys.textures.addGLTexture(key, this.glTexture);\r\n }\r\n }\r\n\r\n // And now render at least once, so our texture isn't blank on the first update\r\n\r\n if (this.shader)\r\n {\r\n renderer.pipelines.clear();\r\n\r\n this.load();\r\n this.flush();\r\n\r\n renderer.pipelines.rebind();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the fragment and, optionally, the vertex shader source code that this Shader will use.\r\n * This will immediately delete the active shader program, if set, and then create a new one\r\n * with the given source. Finally, the shader uniforms are initialized.\r\n *\r\n * @method Phaser.GameObjects.Shader#setShader\r\n * @since 3.17.0\r\n *\r\n * @param {(string|Phaser.Display.BaseShader)} key - The key of the shader to use from the shader cache, or a BaseShader instance.\r\n * @param {string[]} [textures] - Optional array of texture keys to bind to the iChannel0...3 uniforms. The textures must already exist in the Texture Manager.\r\n * @param {any} [textureData] - Additional texture data.\r\n *\r\n * @return {this} This Shader instance.\r\n */\r\n setShader: function (key, textures, textureData)\r\n {\r\n if (this.renderer.contextLost)\r\n {\r\n this._deferSetShader = { key: key, textures: textures, textureData: textureData };\r\n return this;\r\n }\r\n\r\n if (textures === undefined) { textures = []; }\r\n\r\n if (typeof key === 'string')\r\n {\r\n var cache = this.scene.sys.cache.shader;\r\n\r\n if (!cache.has(key))\r\n {\r\n console.warn('Shader missing: ' + key);\r\n return this;\r\n }\r\n\r\n this.shader = cache.get(key);\r\n }\r\n else\r\n {\r\n this.shader = key;\r\n }\r\n\r\n var gl = this.gl;\r\n var renderer = this.renderer;\r\n\r\n if (this.program)\r\n {\r\n renderer.deleteProgram(this.program);\r\n }\r\n\r\n var program = renderer.createProgram(this.shader.vertexSrc, this.shader.fragmentSrc);\r\n\r\n // The default uniforms available within the vertex shader\r\n gl.uniformMatrix4fv(gl.getUniformLocation(program.webGLProgram, 'uViewMatrix'), false, this.viewMatrix);\r\n gl.uniformMatrix4fv(gl.getUniformLocation(program.webGLProgram, 'uProjectionMatrix'), false, this.projectionMatrix);\r\n gl.uniform2f(gl.getUniformLocation(program.webGLProgram, 'uResolution'), this.width, this.height);\r\n\r\n this.program = program;\r\n\r\n var d = new Date();\r\n\r\n // The default uniforms available within the fragment shader\r\n var defaultUniforms = {\r\n resolution: { type: '2f', value: { x: this.width, y: this.height } },\r\n time: { type: '1f', value: 0 },\r\n mouse: { type: '2f', value: { x: this.width / 2, y: this.height / 2 } },\r\n date: { type: '4fv', value: [ d.getFullYear(), d.getMonth(), d.getDate(), d.getHours() * 60 * 60 + d.getMinutes() * 60 + d.getSeconds() ] },\r\n sampleRate: { type: '1f', value: 44100.0 },\r\n iChannel0: { type: 'sampler2D', value: null, textureData: { repeat: true } },\r\n iChannel1: { type: 'sampler2D', value: null, textureData: { repeat: true } },\r\n iChannel2: { type: 'sampler2D', value: null, textureData: { repeat: true } },\r\n iChannel3: { type: 'sampler2D', value: null, textureData: { repeat: true } }\r\n };\r\n\r\n if (this.shader.uniforms)\r\n {\r\n this.uniforms = Extend(true, {}, this.shader.uniforms, defaultUniforms);\r\n }\r\n else\r\n {\r\n this.uniforms = defaultUniforms;\r\n }\r\n\r\n for (var i = 0; i < 4; i++)\r\n {\r\n if (textures[i])\r\n {\r\n this.setSampler2D('iChannel' + i, textures[i], i, textureData);\r\n }\r\n }\r\n\r\n this.initUniforms();\r\n\r\n this.projOrtho(0, this._rendererWidth, this._rendererHeight, 0);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Binds a Phaser Pointer object to this Shader.\r\n *\r\n * The screen position of the pointer will be set in to the shaders `mouse` uniform\r\n * automatically every frame. Call this method with no arguments to unbind the pointer.\r\n *\r\n * @method Phaser.GameObjects.Shader#setPointer\r\n * @since 3.17.0\r\n *\r\n * @param {Phaser.Input.Pointer} [pointer] - The Pointer to bind to this shader.\r\n *\r\n * @return {this} This Shader instance.\r\n */\r\n setPointer: function (pointer)\r\n {\r\n this.pointer = pointer;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets this shader to use an orthographic projection matrix.\r\n * This matrix is stored locally in the `projectionMatrix` property,\r\n * as well as being bound to the `uProjectionMatrix` uniform.\r\n *\r\n * @method Phaser.GameObjects.Shader#projOrtho\r\n * @since 3.17.0\r\n *\r\n * @param {number} left - The left value.\r\n * @param {number} right - The right value.\r\n * @param {number} bottom - The bottom value.\r\n * @param {number} top - The top value.\r\n */\r\n projOrtho: function (left, right, bottom, top)\r\n {\r\n if (this.renderer.contextLost)\r\n {\r\n this._deferProjOrtho = { left: left, right: right, bottom: bottom, top: top };\r\n return;\r\n }\r\n\r\n var near = -1000;\r\n var far = 1000;\r\n\r\n var leftRight = 1 / (left - right);\r\n var bottomTop = 1 / (bottom - top);\r\n var nearFar = 1 / (near - far);\r\n\r\n var pm = this.projectionMatrix;\r\n\r\n pm[0] = -2 * leftRight;\r\n pm[5] = -2 * bottomTop;\r\n pm[10] = 2 * nearFar;\r\n pm[12] = (left + right) * leftRight;\r\n pm[13] = (top + bottom) * bottomTop;\r\n pm[14] = (far + near) * nearFar;\r\n\r\n var program = this.program;\r\n\r\n var gl = this.gl;\r\n var renderer = this.renderer;\r\n\r\n renderer.setProgram(program);\r\n\r\n gl.uniformMatrix4fv(gl.getUniformLocation(program.webGLProgram, 'uProjectionMatrix'), false, this.projectionMatrix);\r\n\r\n this._rendererWidth = right;\r\n this._rendererHeight = bottom;\r\n },\r\n\r\n // Uniforms are specified in the GLSL_ES Specification: http://www.khronos.org/registry/webgl/specs/latest/1.0/\r\n // http://www.khronos.org/registry/gles/specs/2.0/GLSL_ES_Specification_1.0.17.pdf\r\n\r\n /**\r\n * Initializes all of the uniforms this shader uses.\r\n *\r\n * @method Phaser.GameObjects.Shader#initUniforms\r\n * @private\r\n * @since 3.17.0\r\n */\r\n initUniforms: function ()\r\n {\r\n var map = this.renderer.glFuncMap;\r\n var program = this.program;\r\n\r\n this._textureCount = 0;\r\n\r\n for (var key in this.uniforms)\r\n {\r\n var uniform = this.uniforms[key];\r\n\r\n var type = uniform.type;\r\n var data = map[type];\r\n\r\n uniform.uniformLocation = this.renderer.createUniformLocation(program, key);\r\n\r\n if (type !== 'sampler2D')\r\n {\r\n uniform.glMatrix = data.matrix;\r\n uniform.glValueLength = data.length;\r\n uniform.glFunc = data.func;\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Sets a sampler2D uniform on this shader where the source texture is a WebGLTextureBuffer.\r\n *\r\n * This allows you to feed the output from one Shader into another:\r\n *\r\n * ```javascript\r\n * let shader1 = this.add.shader(baseShader1, 0, 0, 512, 512).setRenderToTexture();\r\n * let shader2 = this.add.shader(baseShader2, 0, 0, 512, 512).setRenderToTexture('output');\r\n *\r\n * shader1.setSampler2DBuffer('iChannel0', shader2.glTexture, 512, 512);\r\n * shader2.setSampler2DBuffer('iChannel0', shader1.glTexture, 512, 512);\r\n * ```\r\n *\r\n * In the above code, the result of baseShader1 is fed into Shader2 as the `iChannel0` sampler2D uniform.\r\n * The result of baseShader2 is then fed back into shader1 again, creating a feedback loop.\r\n *\r\n * If you wish to use an image from the Texture Manager as a sampler2D input for this shader,\r\n * see the `Shader.setSampler2D` method.\r\n *\r\n * @method Phaser.GameObjects.Shader#setSampler2DBuffer\r\n * @since 3.19.0\r\n *\r\n * @param {string} uniformKey - The key of the sampler2D uniform to be updated, i.e. `iChannel0`.\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} texture - A texture reference.\r\n * @param {number} width - The width of the texture.\r\n * @param {number} height - The height of the texture.\r\n * @param {number} [textureIndex=0] - The texture index.\r\n * @param {any} [textureData] - Additional texture data.\r\n *\r\n * @return {this} This Shader instance.\r\n */\r\n setSampler2DBuffer: function (uniformKey, texture, width, height, textureIndex, textureData)\r\n {\r\n if (textureIndex === undefined) { textureIndex = 0; }\r\n if (textureData === undefined) { textureData = {}; }\r\n\r\n var uniform = this.uniforms[uniformKey];\r\n\r\n uniform.value = texture;\r\n\r\n textureData.width = width;\r\n textureData.height = height;\r\n\r\n uniform.textureData = textureData;\r\n\r\n this._textureCount = textureIndex;\r\n\r\n this.initSampler2D(uniform);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a sampler2D uniform on this shader.\r\n *\r\n * The textureKey given is the key from the Texture Manager cache. You cannot use a single frame\r\n * from a texture, only the full image. Also, lots of shaders expect textures to be power-of-two sized.\r\n *\r\n * If you wish to use another Shader as a sampler2D input for this shader, see the `Shader.setSampler2DBuffer` method.\r\n *\r\n * @method Phaser.GameObjects.Shader#setSampler2D\r\n * @since 3.17.0\r\n *\r\n * @param {string} uniformKey - The key of the sampler2D uniform to be updated, i.e. `iChannel0`.\r\n * @param {string} textureKey - The key of the texture, as stored in the Texture Manager. Must already be loaded.\r\n * @param {number} [textureIndex=0] - The texture index.\r\n * @param {any} [textureData] - Additional texture data.\r\n *\r\n * @return {this} This Shader instance.\r\n */\r\n setSampler2D: function (uniformKey, textureKey, textureIndex, textureData)\r\n {\r\n if (textureIndex === undefined) { textureIndex = 0; }\r\n\r\n var textureManager = this.scene.sys.textures;\r\n\r\n if (textureManager.exists(textureKey))\r\n {\r\n var frame = textureManager.getFrame(textureKey);\r\n\r\n if (frame.glTexture && frame.glTexture.isRenderTexture)\r\n {\r\n return this.setSampler2DBuffer(uniformKey, frame.glTexture, frame.width, frame.height, textureIndex, textureData);\r\n }\r\n\r\n var uniform = this.uniforms[uniformKey];\r\n var source = frame.source;\r\n\r\n uniform.textureKey = textureKey;\r\n uniform.source = source.image;\r\n uniform.value = frame.glTexture;\r\n\r\n if (source.isGLTexture)\r\n {\r\n if (!textureData)\r\n {\r\n textureData = {};\r\n }\r\n\r\n textureData.width = source.width;\r\n textureData.height = source.height;\r\n }\r\n\r\n if (textureData)\r\n {\r\n uniform.textureData = textureData;\r\n }\r\n\r\n this._textureCount = textureIndex;\r\n\r\n this.initSampler2D(uniform);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a property of a uniform already present on this shader.\r\n *\r\n * To modify the value of a uniform such as a 1f or 1i use the `value` property directly:\r\n *\r\n * ```javascript\r\n * shader.setUniform('size.value', 16);\r\n * ```\r\n *\r\n * You can use dot notation to access deeper values, for example:\r\n *\r\n * ```javascript\r\n * shader.setUniform('resolution.value.x', 512);\r\n * ```\r\n *\r\n * The change to the uniform will take effect the next time the shader is rendered.\r\n *\r\n * @method Phaser.GameObjects.Shader#setUniform\r\n * @since 3.17.0\r\n *\r\n * @param {string} key - The key of the uniform to modify. Use dots for deep properties, i.e. `resolution.value.x`.\r\n * @param {any} value - The value to set into the uniform.\r\n *\r\n * @return {this} This Shader instance.\r\n */\r\n setUniform: function (key, value)\r\n {\r\n SetValue(this.uniforms, key, value);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns the uniform object for the given key, or `null` if the uniform couldn't be found.\r\n *\r\n * @method Phaser.GameObjects.Shader#getUniform\r\n * @since 3.17.0\r\n *\r\n * @param {string} key - The key of the uniform to return the value for.\r\n *\r\n * @return {any} A reference to the uniform object. This is not a copy, so modifying it will update the original object also.\r\n */\r\n getUniform: function (key)\r\n {\r\n return GetFastValue(this.uniforms, key, null);\r\n },\r\n\r\n /**\r\n * A short-cut method that will directly set the texture being used by the `iChannel0` sampler2D uniform.\r\n *\r\n * The textureKey given is the key from the Texture Manager cache. You cannot use a single frame\r\n * from a texture, only the full image. Also, lots of shaders expect textures to be power-of-two sized.\r\n *\r\n * @method Phaser.GameObjects.Shader#setChannel0\r\n * @since 3.17.0\r\n *\r\n * @param {string} textureKey - The key of the texture, as stored in the Texture Manager. Must already be loaded.\r\n * @param {any} [textureData] - Additional texture data.\r\n *\r\n * @return {this} This Shader instance.\r\n */\r\n setChannel0: function (textureKey, textureData)\r\n {\r\n return this.setSampler2D('iChannel0', textureKey, 0, textureData);\r\n },\r\n\r\n /**\r\n * A short-cut method that will directly set the texture being used by the `iChannel1` sampler2D uniform.\r\n *\r\n * The textureKey given is the key from the Texture Manager cache. You cannot use a single frame\r\n * from a texture, only the full image. Also, lots of shaders expect textures to be power-of-two sized.\r\n *\r\n * @method Phaser.GameObjects.Shader#setChannel1\r\n * @since 3.17.0\r\n *\r\n * @param {string} textureKey - The key of the texture, as stored in the Texture Manager. Must already be loaded.\r\n * @param {any} [textureData] - Additional texture data.\r\n *\r\n * @return {this} This Shader instance.\r\n */\r\n setChannel1: function (textureKey, textureData)\r\n {\r\n return this.setSampler2D('iChannel1', textureKey, 1, textureData);\r\n },\r\n\r\n /**\r\n * A short-cut method that will directly set the texture being used by the `iChannel2` sampler2D uniform.\r\n *\r\n * The textureKey given is the key from the Texture Manager cache. You cannot use a single frame\r\n * from a texture, only the full image. Also, lots of shaders expect textures to be power-of-two sized.\r\n *\r\n * @method Phaser.GameObjects.Shader#setChannel2\r\n * @since 3.17.0\r\n *\r\n * @param {string} textureKey - The key of the texture, as stored in the Texture Manager. Must already be loaded.\r\n * @param {any} [textureData] - Additional texture data.\r\n *\r\n * @return {this} This Shader instance.\r\n */\r\n setChannel2: function (textureKey, textureData)\r\n {\r\n return this.setSampler2D('iChannel2', textureKey, 2, textureData);\r\n },\r\n\r\n /**\r\n * A short-cut method that will directly set the texture being used by the `iChannel3` sampler2D uniform.\r\n *\r\n * The textureKey given is the key from the Texture Manager cache. You cannot use a single frame\r\n * from a texture, only the full image. Also, lots of shaders expect textures to be power-of-two sized.\r\n *\r\n * @method Phaser.GameObjects.Shader#setChannel3\r\n * @since 3.17.0\r\n *\r\n * @param {string} textureKey - The key of the texture, as stored in the Texture Manager. Must already be loaded.\r\n * @param {any} [textureData] - Additional texture data.\r\n *\r\n * @return {this} This Shader instance.\r\n */\r\n setChannel3: function (textureKey, textureData)\r\n {\r\n return this.setSampler2D('iChannel3', textureKey, 3, textureData);\r\n },\r\n\r\n /**\r\n * Internal method that takes a sampler2D uniform and prepares it for use by setting the\r\n * gl texture parameters.\r\n *\r\n * @method Phaser.GameObjects.Shader#initSampler2D\r\n * @private\r\n * @since 3.17.0\r\n *\r\n * @param {any} uniform - The sampler2D uniform to process.\r\n */\r\n initSampler2D: function (uniform)\r\n {\r\n if (!uniform.value)\r\n {\r\n return;\r\n }\r\n\r\n // Extended texture data\r\n\r\n var data = uniform.textureData;\r\n\r\n if (data && !uniform.value.isRenderTexture)\r\n {\r\n var gl = this.gl;\r\n var wrapper = uniform.value;\r\n \r\n // https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D\r\n\r\n // mag / minFilter can be: gl.LINEAR, gl.LINEAR_MIPMAP_LINEAR or gl.NEAREST\r\n // wrapS/T can be: gl.CLAMP_TO_EDGE or gl.REPEAT\r\n // format can be: gl.LUMINANCE or gl.RGBA\r\n\r\n var magFilter = gl[GetFastValue(data, 'magFilter', 'linear').toUpperCase()];\r\n var minFilter = gl[GetFastValue(data, 'minFilter', 'linear').toUpperCase()];\r\n var wrapS = gl[GetFastValue(data, 'wrapS', 'repeat').toUpperCase()];\r\n var wrapT = gl[GetFastValue(data, 'wrapT', 'repeat').toUpperCase()];\r\n var format = gl[GetFastValue(data, 'format', 'rgba').toUpperCase()];\r\n var flipY = GetFastValue(data, 'flipY', false);\r\n var width = GetFastValue(data, 'width', wrapper.width);\r\n var height = GetFastValue(data, 'height', wrapper.height);\r\n var source = GetFastValue(data, 'source', wrapper.pixels);\r\n\r\n if (data.repeat)\r\n {\r\n wrapS = gl.REPEAT;\r\n wrapT = gl.REPEAT;\r\n }\r\n\r\n if (data.width)\r\n {\r\n // If the uniform has resolution, use a blank texture.\r\n source = null;\r\n }\r\n\r\n wrapper.update(source, width, height, flipY, wrapS, wrapT, minFilter, magFilter, format);\r\n }\r\n\r\n this.renderer.setProgram(this.program);\r\n\r\n this._textureCount++;\r\n },\r\n\r\n /**\r\n * Synchronizes all of the uniforms this shader uses.\r\n * Each uniforms gl function is called in turn.\r\n *\r\n * @method Phaser.GameObjects.Shader#syncUniforms\r\n * @private\r\n * @since 3.17.0\r\n */\r\n syncUniforms: function ()\r\n {\r\n var gl = this.gl;\r\n\r\n var uniforms = this.uniforms;\r\n var uniform;\r\n var length;\r\n var glFunc;\r\n var location;\r\n var value;\r\n var textureCount = 0;\r\n\r\n for (var key in uniforms)\r\n {\r\n uniform = uniforms[key];\r\n\r\n glFunc = uniform.glFunc;\r\n length = uniform.glValueLength;\r\n location = uniform.uniformLocation;\r\n value = uniform.value;\r\n\r\n if (value === null)\r\n {\r\n continue;\r\n }\r\n\r\n if (length === 1)\r\n {\r\n if (uniform.glMatrix)\r\n {\r\n glFunc.call(gl, location.webGLUniformLocation, uniform.transpose, value);\r\n }\r\n else\r\n {\r\n glFunc.call(gl, location.webGLUniformLocation, value);\r\n }\r\n }\r\n else if (length === 2)\r\n {\r\n glFunc.call(gl, location.webGLUniformLocation, value.x, value.y);\r\n }\r\n else if (length === 3)\r\n {\r\n glFunc.call(gl, location.webGLUniformLocation, value.x, value.y, value.z);\r\n }\r\n else if (length === 4)\r\n {\r\n glFunc.call(gl, location.webGLUniformLocation, value.x, value.y, value.z, value.w);\r\n }\r\n else if (uniform.type === 'sampler2D')\r\n {\r\n gl.activeTexture(gl.TEXTURE0 + textureCount);\r\n\r\n gl.bindTexture(gl.TEXTURE_2D, value.webGLTexture);\r\n\r\n gl.uniform1i(location.webGLUniformLocation, textureCount);\r\n\r\n textureCount++;\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Called automatically during render.\r\n *\r\n * This method performs matrix ITRS and then stores the resulting value in the `uViewMatrix` uniform.\r\n * It then sets up the vertex buffer and shader, updates and syncs the uniforms ready\r\n * for flush to be called.\r\n *\r\n * @method Phaser.GameObjects.Shader#load\r\n * @since 3.17.0\r\n *\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} [matrix2D] - The transform matrix to use during rendering.\r\n */\r\n load: function (matrix2D)\r\n {\r\n // ITRS\r\n\r\n var gl = this.gl;\r\n var width = this.width;\r\n var height = this.height;\r\n var renderer = this.renderer;\r\n var program = this.program;\r\n var vm = this.viewMatrix;\r\n\r\n if (!this.renderToTexture)\r\n {\r\n var x = -this._displayOriginX;\r\n var y = -this._displayOriginY;\r\n\r\n vm[0] = matrix2D[0];\r\n vm[1] = matrix2D[1];\r\n vm[4] = matrix2D[2];\r\n vm[5] = matrix2D[3];\r\n vm[8] = matrix2D[4];\r\n vm[9] = matrix2D[5];\r\n vm[12] = vm[0] * x + vm[4] * y;\r\n vm[13] = vm[1] * x + vm[5] * y;\r\n }\r\n\r\n // Update vertex shader uniforms\r\n\r\n gl.useProgram(program.webGLProgram);\r\n\r\n gl.uniformMatrix4fv(gl.getUniformLocation(program.webGLProgram, 'uViewMatrix'), false, vm);\r\n gl.uniformMatrix4fv(gl.getUniformLocation(program.webGLProgram, 'uProjectionMatrix'), false, this.projectionMatrix);\r\n gl.uniform2f(gl.getUniformLocation(program.webGLProgram, 'uResolution'), this.width, this.height);\r\n\r\n // Update fragment shader uniforms\r\n\r\n var uniforms = this.uniforms;\r\n var res = uniforms.resolution;\r\n\r\n res.value.x = width;\r\n res.value.y = height;\r\n\r\n uniforms.time.value = renderer.game.loop.getDuration();\r\n\r\n var pointer = this.pointer;\r\n\r\n if (pointer)\r\n {\r\n var mouse = uniforms.mouse;\r\n\r\n var px = pointer.x / width;\r\n var py = 1 - pointer.y / height;\r\n\r\n mouse.value.x = px.toFixed(2);\r\n mouse.value.y = py.toFixed(2);\r\n }\r\n\r\n this.syncUniforms();\r\n },\r\n\r\n /**\r\n * Called automatically during render.\r\n *\r\n * Sets the active shader, loads the vertex buffer and then draws.\r\n *\r\n * @method Phaser.GameObjects.Shader#flush\r\n * @since 3.17.0\r\n */\r\n flush: function ()\r\n {\r\n // Bind\r\n\r\n var width = this.width;\r\n var height = this.height;\r\n var program = this.program;\r\n\r\n var gl = this.gl;\r\n var vertexBuffer = this.vertexBuffer;\r\n var renderer = this.renderer;\r\n var vertexSize = Float32Array.BYTES_PER_ELEMENT * 2;\r\n\r\n if (this.renderToTexture)\r\n {\r\n renderer.setFramebuffer(this.framebuffer);\r\n\r\n gl.clearColor(0, 0, 0, 0);\r\n\r\n gl.clear(gl.COLOR_BUFFER_BIT);\r\n }\r\n\r\n gl.bindBuffer(gl.ARRAY_BUFFER, vertexBuffer.webGLBuffer);\r\n\r\n var location = gl.getAttribLocation(program.webGLProgram, 'inPosition');\r\n\r\n if (location !== -1)\r\n {\r\n gl.enableVertexAttribArray(location);\r\n\r\n gl.vertexAttribPointer(location, 2, gl.FLOAT, false, vertexSize, 0);\r\n }\r\n\r\n // Draw\r\n\r\n var vf = this.vertexViewF32;\r\n\r\n vf[3] = height;\r\n vf[4] = width;\r\n vf[5] = height;\r\n vf[8] = width;\r\n vf[9] = height;\r\n vf[10] = width;\r\n\r\n // Flush\r\n\r\n var vertexCount = 6;\r\n\r\n gl.bufferSubData(gl.ARRAY_BUFFER, 0, this.bytes.subarray(0, vertexCount * vertexSize));\r\n\r\n gl.drawArrays(gl.TRIANGLES, 0, vertexCount);\r\n\r\n if (this.renderToTexture)\r\n {\r\n renderer.setFramebuffer(null, false);\r\n }\r\n },\r\n\r\n /**\r\n * A NOOP method so you can pass a Shader to a Container.\r\n * Calling this method will do nothing. It is intentionally empty.\r\n *\r\n * @method Phaser.GameObjects.Shader#setAlpha\r\n * @private\r\n * @since 3.17.0\r\n */\r\n setAlpha: function ()\r\n {\r\n },\r\n\r\n /**\r\n * A NOOP method so you can pass a Shader to a Container.\r\n * Calling this method will do nothing. It is intentionally empty.\r\n *\r\n * @method Phaser.GameObjects.Shader#setBlendMode\r\n * @private\r\n * @since 3.17.0\r\n */\r\n setBlendMode: function ()\r\n {\r\n },\r\n\r\n /**\r\n * Run any logic that was deferred during context loss.\r\n * \r\n * @method Phaser.GameObjects.Shader#onContextRestored\r\n * @since 3.80.0\r\n */\r\n onContextRestored: function ()\r\n {\r\n if (this._deferSetShader !== null)\r\n {\r\n var key = this._deferSetShader.key;\r\n var textures = this._deferSetShader.textures;\r\n var textureData = this._deferSetShader.textureData;\r\n this._deferSetShader = null;\r\n this.setShader(key, textures, textureData);\r\n }\r\n\r\n if (this._deferProjOrtho !== null)\r\n {\r\n var left = this._deferProjOrtho.left;\r\n var right = this._deferProjOrtho.right;\r\n var bottom = this._deferProjOrtho.bottom;\r\n var top = this._deferProjOrtho.top;\r\n this._deferProjOrtho = null;\r\n this.projOrtho(left, right, bottom, top);\r\n }\r\n },\r\n\r\n /**\r\n * Internal destroy handler, called as part of the destroy process.\r\n *\r\n * @method Phaser.GameObjects.Shader#preDestroy\r\n * @protected\r\n * @since 3.17.0\r\n */\r\n preDestroy: function ()\r\n {\r\n var renderer = this.renderer;\r\n\r\n renderer.off(RenderEvents.RESTORE_WEBGL, this.onContextRestored, this);\r\n renderer.deleteProgram(this.program);\r\n renderer.deleteBuffer(this.vertexBuffer);\r\n\r\n if (this.renderToTexture)\r\n {\r\n renderer.deleteFramebuffer(this.framebuffer);\r\n\r\n this.texture.destroy();\r\n\r\n this.framebuffer = null;\r\n this.glTexture = null;\r\n this.texture = null;\r\n }\r\n\r\n ArrayEach(this.uniforms, function (uniform)\r\n {\r\n renderer.deleteUniformLocation(uniform.uniformLocation);\r\n uniform.uniformLocation = null;\r\n });\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Shader;\r\n\n\n/***/ }),\n\n/***/ 80464:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * This is a stub function for Shader.Render. There is no Canvas renderer for Shader objects.\r\n *\r\n * @method Phaser.GameObjects.Shader#renderCanvas\r\n * @since 3.17.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.Shader} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n */\r\nvar ShaderCanvasRenderer = function ()\r\n{\r\n};\r\n\r\nmodule.exports = ShaderCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 54935:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BuildGameObject = __webpack_require__(25305);\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\nvar Shader = __webpack_require__(20071);\r\n\r\n/**\r\n * Creates a new Shader Game Object and returns it.\r\n *\r\n * Note: This method will only be available if the Shader Game Object and WebGL support have been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#shader\r\n * @since 3.17.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Shader.ShaderConfig} config - The configuration object this Game Object will use to create itself.\r\n * @param {boolean} [addToScene] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.\r\n *\r\n * @return {Phaser.GameObjects.Shader} The Game Object that was created.\r\n */\r\nGameObjectCreator.register('shader', function (config, addToScene)\r\n{\r\n if (config === undefined) { config = {}; }\r\n\r\n var key = GetAdvancedValue(config, 'key', null);\r\n var x = GetAdvancedValue(config, 'x', 0);\r\n var y = GetAdvancedValue(config, 'y', 0);\r\n var width = GetAdvancedValue(config, 'width', 128);\r\n var height = GetAdvancedValue(config, 'height', 128);\r\n\r\n var shader = new Shader(this.scene, key, x, y, width, height);\r\n\r\n if (addToScene !== undefined)\r\n {\r\n config.add = addToScene;\r\n }\r\n\r\n BuildGameObject(this.scene, shader, config);\r\n\r\n return shader;\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectCreator context.\r\n\n\n/***/ }),\n\n/***/ 74177:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Shader = __webpack_require__(20071);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * Creates a new Shader Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Shader Game Object and WebGL support have been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#shader\r\n * @webglOnly\r\n * @since 3.17.0\r\n *\r\n * @param {(string|Phaser.Display.BaseShader)} key - The key of the shader to use from the shader cache, or a BaseShader instance.\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {number} [width=128] - The width of the Game Object.\r\n * @param {number} [height=128] - The height of the Game Object.\r\n * @param {string[]} [textures] - Optional array of texture keys to bind to the iChannel0...3 uniforms. The textures must already exist in the Texture Manager.\r\n * @param {object} [textureData] - Optional additional texture data.\r\n *\r\n * @return {Phaser.GameObjects.Shader} The Game Object that was created.\r\n */\r\nif (true)\r\n{\r\n GameObjectFactory.register('shader', function (key, x, y, width, height, textures, textureData)\r\n {\r\n return this.displayList.add(new Shader(this.scene, key, x, y, width, height, textures, textureData));\r\n });\r\n}\r\n\n\n/***/ }),\n\n/***/ 25479:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(19257);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(80464);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 19257:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetCalcMatrix = __webpack_require__(91296);\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Shader#renderWebGL\r\n * @since 3.17.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Shader} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar ShaderWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n if (!src.shader)\r\n {\r\n return;\r\n }\r\n\r\n camera.addToRenderList(src);\r\n\r\n renderer.pipelines.clear();\r\n\r\n if (src.renderToTexture)\r\n {\r\n src.load();\r\n src.flush();\r\n }\r\n else\r\n {\r\n var calcMatrix = GetCalcMatrix(src, camera, parentMatrix).calc;\r\n\r\n // Renderer size changed?\r\n if (renderer.width !== src._rendererWidth || renderer.height !== src._rendererHeight)\r\n {\r\n src.projOrtho(0, renderer.width, renderer.height, 0);\r\n }\r\n\r\n src.load(calcMatrix.matrix);\r\n src.flush();\r\n }\r\n\r\n renderer.pipelines.rebind();\r\n};\r\n\r\nmodule.exports = ShaderWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 10441:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Utils = __webpack_require__(70554);\r\n\r\n/**\r\n * Renders a filled path for the given Shape.\r\n *\r\n * @method Phaser.GameObjects.Shape#FillPathWebGL\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLPipeline} pipeline - The WebGL Pipeline used to render this Shape.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} calcMatrix - The transform matrix used to get the position values.\r\n * @param {Phaser.GameObjects.Shape} src - The Game Object shape being rendered in this call.\r\n * @param {number} alpha - The base alpha value.\r\n * @param {number} dx - The source displayOriginX.\r\n * @param {number} dy - The source displayOriginY.\r\n */\r\nvar FillPathWebGL = function (pipeline, calcMatrix, src, alpha, dx, dy)\r\n{\r\n var fillTintColor = Utils.getTintAppendFloatAlpha(src.fillColor, src.fillAlpha * alpha);\r\n\r\n var path = src.pathData;\r\n var pathIndexes = src.pathIndexes;\r\n\r\n for (var i = 0; i < pathIndexes.length; i += 3)\r\n {\r\n var p0 = pathIndexes[i] * 2;\r\n var p1 = pathIndexes[i + 1] * 2;\r\n var p2 = pathIndexes[i + 2] * 2;\r\n\r\n var x0 = path[p0 + 0] - dx;\r\n var y0 = path[p0 + 1] - dy;\r\n var x1 = path[p1 + 0] - dx;\r\n var y1 = path[p1 + 1] - dy;\r\n var x2 = path[p2 + 0] - dx;\r\n var y2 = path[p2 + 1] - dy;\r\n\r\n var tx0 = calcMatrix.getX(x0, y0);\r\n var ty0 = calcMatrix.getY(x0, y0);\r\n\r\n var tx1 = calcMatrix.getX(x1, y1);\r\n var ty1 = calcMatrix.getY(x1, y1);\r\n\r\n var tx2 = calcMatrix.getX(x2, y2);\r\n var ty2 = calcMatrix.getY(x2, y2);\r\n\r\n pipeline.batchTri(src, tx0, ty0, tx1, ty1, tx2, ty2, 0, 0, 1, 1, fillTintColor, fillTintColor, fillTintColor, 2);\r\n }\r\n};\r\n\r\nmodule.exports = FillPathWebGL;\r\n\n\n/***/ }),\n\n/***/ 65960:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Sets the fillStyle on the target context based on the given Shape.\r\n *\r\n * @method Phaser.GameObjects.Shape#FillStyleCanvas\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {CanvasRenderingContext2D} ctx - The context to set the fill style on.\r\n * @param {Phaser.GameObjects.Shape} src - The Game Object to set the fill style from.\r\n * @param {number} [altColor] - An alternative color to render with.\r\n * @param {number} [altAlpha] - An alternative alpha to render with.\r\n */\r\nvar FillStyleCanvas = function (ctx, src, altColor, altAlpha)\r\n{\r\n var fillColor = (altColor) ? altColor : src.fillColor;\r\n var fillAlpha = (altAlpha) ? altAlpha : src.fillAlpha;\r\n\r\n var red = ((fillColor & 0xFF0000) >>> 16);\r\n var green = ((fillColor & 0xFF00) >>> 8);\r\n var blue = (fillColor & 0xFF);\r\n\r\n ctx.fillStyle = 'rgba(' + red + ',' + green + ',' + blue + ',' + fillAlpha + ')';\r\n};\r\n\r\nmodule.exports = FillStyleCanvas;\r\n\n\n/***/ }),\n\n/***/ 75177:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Sets the strokeStyle and lineWidth on the target context based on the given Shape.\r\n *\r\n * @method Phaser.GameObjects.Shape#LineStyleCanvas\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {CanvasRenderingContext2D} ctx - The context to set the stroke style on.\r\n * @param {Phaser.GameObjects.Shape} src - The Game Object to set the stroke style from.\r\n * @param {number} [altColor] - An alternative color to render with.\r\n * @param {number} [altAlpha] - An alternative alpha to render with.\r\n */\r\nvar LineStyleCanvas = function (ctx, src, altColor, altAlpha)\r\n{\r\n var strokeColor = (altColor) ? altColor : src.strokeColor;\r\n var strokeAlpha = (altAlpha) ? altAlpha : src.strokeAlpha;\r\n\r\n var red = ((strokeColor & 0xFF0000) >>> 16);\r\n var green = ((strokeColor & 0xFF00) >>> 8);\r\n var blue = (strokeColor & 0xFF);\r\n\r\n ctx.strokeStyle = 'rgba(' + red + ',' + green + ',' + blue + ',' + strokeAlpha + ')';\r\n ctx.lineWidth = src.lineWidth;\r\n};\r\n\r\nmodule.exports = LineStyleCanvas;\r\n\n\n/***/ }),\n\n/***/ 17803:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar GameObject = __webpack_require__(95643);\r\nvar Line = __webpack_require__(23031);\r\n\r\n/**\r\n * @classdesc\r\n * The Shape Game Object is a base class for the various different shapes, such as the Arc, Star or Polygon.\r\n * You cannot add a Shape directly to your Scene, it is meant as a base for your own custom Shape classes.\r\n *\r\n * @class Shape\r\n * @extends Phaser.GameObjects.GameObject\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.13.0\r\n *\r\n * @extends Phaser.GameObjects.Components.AlphaSingle\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.GetBounds\r\n * @extends Phaser.GameObjects.Components.Mask\r\n * @extends Phaser.GameObjects.Components.Origin\r\n * @extends Phaser.GameObjects.Components.Pipeline\r\n * @extends Phaser.GameObjects.Components.PostPipeline\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {string} [type] - The internal type of the Shape.\r\n * @param {any} [data] - The data of the source shape geometry, if any.\r\n */\r\nvar Shape = new Class({\r\n\r\n Extends: GameObject,\r\n\r\n Mixins: [\r\n Components.AlphaSingle,\r\n Components.BlendMode,\r\n Components.Depth,\r\n Components.GetBounds,\r\n Components.Mask,\r\n Components.Origin,\r\n Components.Pipeline,\r\n Components.PostPipeline,\r\n Components.ScrollFactor,\r\n Components.Transform,\r\n Components.Visible\r\n ],\r\n\r\n initialize:\r\n\r\n function Shape (scene, type, data)\r\n {\r\n if (type === undefined) { type = 'Shape'; }\r\n\r\n GameObject.call(this, scene, type);\r\n\r\n /**\r\n * The source Shape data. Typically a geometry object.\r\n * You should not manipulate this directly.\r\n *\r\n * @name Phaser.GameObjects.Shape#geom\r\n * @type {any}\r\n * @readonly\r\n * @since 3.13.0\r\n */\r\n this.geom = data;\r\n\r\n /**\r\n * Holds the polygon path data for filled rendering.\r\n *\r\n * @name Phaser.GameObjects.Shape#pathData\r\n * @type {number[]}\r\n * @readonly\r\n * @since 3.13.0\r\n */\r\n this.pathData = [];\r\n\r\n /**\r\n * Holds the earcut polygon path index data for filled rendering.\r\n *\r\n * @name Phaser.GameObjects.Shape#pathIndexes\r\n * @type {number[]}\r\n * @readonly\r\n * @since 3.13.0\r\n */\r\n this.pathIndexes = [];\r\n\r\n /**\r\n * The fill color used by this Shape.\r\n *\r\n * @name Phaser.GameObjects.Shape#fillColor\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n this.fillColor = 0xffffff;\r\n\r\n /**\r\n * The fill alpha value used by this Shape.\r\n *\r\n * @name Phaser.GameObjects.Shape#fillAlpha\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n this.fillAlpha = 1;\r\n\r\n /**\r\n * The stroke color used by this Shape.\r\n *\r\n * @name Phaser.GameObjects.Shape#strokeColor\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n this.strokeColor = 0xffffff;\r\n\r\n /**\r\n * The stroke alpha value used by this Shape.\r\n *\r\n * @name Phaser.GameObjects.Shape#strokeAlpha\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n this.strokeAlpha = 1;\r\n\r\n /**\r\n * The stroke line width used by this Shape.\r\n *\r\n * @name Phaser.GameObjects.Shape#lineWidth\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n this.lineWidth = 1;\r\n\r\n /**\r\n * Controls if this Shape is filled or not.\r\n * Note that some Shapes do not support being filled (such as Line shapes)\r\n *\r\n * @name Phaser.GameObjects.Shape#isFilled\r\n * @type {boolean}\r\n * @since 3.13.0\r\n */\r\n this.isFilled = false;\r\n\r\n /**\r\n * Controls if this Shape is stroked or not.\r\n * Note that some Shapes do not support being stroked (such as Iso Box shapes)\r\n *\r\n * @name Phaser.GameObjects.Shape#isStroked\r\n * @type {boolean}\r\n * @since 3.13.0\r\n */\r\n this.isStroked = false;\r\n\r\n /**\r\n * Controls if this Shape path is closed during rendering when stroked.\r\n * Note that some Shapes are always closed when stroked (such as Ellipse shapes)\r\n *\r\n * @name Phaser.GameObjects.Shape#closePath\r\n * @type {boolean}\r\n * @since 3.13.0\r\n */\r\n this.closePath = true;\r\n\r\n /**\r\n * Private internal value.\r\n * A Line used when parsing internal path data to avoid constant object re-creation.\r\n *\r\n * @name Phaser.GameObjects.Shape#_tempLine\r\n * @type {Phaser.Geom.Line}\r\n * @private\r\n * @since 3.13.0\r\n */\r\n this._tempLine = new Line();\r\n\r\n /**\r\n * The native (un-scaled) width of this Game Object.\r\n *\r\n * Changing this value will not change the size that the Game Object is rendered in-game.\r\n * For that you need to either set the scale of the Game Object (`setScale`) or use\r\n * the `displayWidth` property.\r\n *\r\n * @name Phaser.GameObjects.Shape#width\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n this.width = 0;\r\n\r\n /**\r\n * The native (un-scaled) height of this Game Object.\r\n *\r\n * Changing this value will not change the size that the Game Object is rendered in-game.\r\n * For that you need to either set the scale of the Game Object (`setScale`) or use\r\n * the `displayHeight` property.\r\n *\r\n * @name Phaser.GameObjects.Shape#height\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.height = 0;\r\n\r\n this.initPipeline();\r\n this.initPostPipeline();\r\n },\r\n\r\n /**\r\n * Sets the fill color and alpha for this Shape.\r\n *\r\n * If you wish for the Shape to not be filled then call this method with no arguments, or just set `isFilled` to `false`.\r\n *\r\n * Note that some Shapes do not support fill colors, such as the Line shape.\r\n *\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.Shape#setFillStyle\r\n * @since 3.13.0\r\n *\r\n * @param {number} [color] - The color used to fill this shape. If not provided the Shape will not be filled.\r\n * @param {number} [alpha=1] - The alpha value used when filling this shape, if a fill color is given.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setFillStyle: function (color, alpha)\r\n {\r\n if (alpha === undefined) { alpha = 1; }\r\n\r\n if (color === undefined)\r\n {\r\n this.isFilled = false;\r\n }\r\n else\r\n {\r\n this.fillColor = color;\r\n this.fillAlpha = alpha;\r\n this.isFilled = true;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the stroke color and alpha for this Shape.\r\n *\r\n * If you wish for the Shape to not be stroked then call this method with no arguments, or just set `isStroked` to `false`.\r\n *\r\n * Note that some Shapes do not support being stroked, such as the Iso Box shape.\r\n *\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.Shape#setStrokeStyle\r\n * @since 3.13.0\r\n *\r\n * @param {number} [lineWidth] - The width of line to stroke with. If not provided or undefined the Shape will not be stroked.\r\n * @param {number} [color] - The color used to stroke this shape. If not provided the Shape will not be stroked.\r\n * @param {number} [alpha=1] - The alpha value used when stroking this shape, if a stroke color is given.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setStrokeStyle: function (lineWidth, color, alpha)\r\n {\r\n if (alpha === undefined) { alpha = 1; }\r\n\r\n if (lineWidth === undefined)\r\n {\r\n this.isStroked = false;\r\n }\r\n else\r\n {\r\n this.lineWidth = lineWidth;\r\n this.strokeColor = color;\r\n this.strokeAlpha = alpha;\r\n this.isStroked = true;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets if this Shape path is closed during rendering when stroked.\r\n * Note that some Shapes are always closed when stroked (such as Ellipse shapes)\r\n *\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.Shape#setClosePath\r\n * @since 3.13.0\r\n *\r\n * @param {boolean} value - Set to `true` if the Shape should be closed when stroked, otherwise `false`.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setClosePath: function (value)\r\n {\r\n this.closePath = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the internal size of this Game Object, as used for frame or physics body creation.\r\n *\r\n * This will not change the size that the Game Object is rendered in-game.\r\n * For that you need to either set the scale of the Game Object (`setScale`) or call the\r\n * `setDisplaySize` method, which is the same thing as changing the scale but allows you\r\n * to do so by giving pixel values.\r\n *\r\n * If you have enabled this Game Object for input, changing the size will _not_ change the\r\n * size of the hit area. To do this you should adjust the `input.hitArea` object directly.\r\n *\r\n * @method Phaser.GameObjects.Shape#setSize\r\n * @private\r\n * @since 3.13.0\r\n *\r\n * @param {number} width - The width of this Game Object.\r\n * @param {number} height - The height of this Game Object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setSize: function (width, height)\r\n {\r\n this.width = width;\r\n this.height = height;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the display size of this Shape.\r\n *\r\n * Calling this will adjust the scale.\r\n *\r\n * @method Phaser.GameObjects.Shape#setDisplaySize\r\n * @since 3.53.0\r\n *\r\n * @param {number} width - The display width of this Shape.\r\n * @param {number} height - The display height of this Shape.\r\n *\r\n * @return {this} This Shape instance.\r\n */\r\n setDisplaySize: function (width, height)\r\n {\r\n this.displayWidth = width;\r\n this.displayHeight = height;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal destroy handler, called as part of the destroy process.\r\n *\r\n * @method Phaser.GameObjects.Shape#preDestroy\r\n * @protected\r\n * @since 3.13.0\r\n */\r\n preDestroy: function ()\r\n {\r\n this.geom = null;\r\n this._tempLine = null;\r\n this.pathData = [];\r\n this.pathIndexes = [];\r\n },\r\n\r\n /**\r\n * The displayed width of this Game Object.\r\n *\r\n * This value takes into account the scale factor.\r\n *\r\n * Setting this value will adjust the Game Object's scale property.\r\n *\r\n * @name Phaser.GameObjects.Shape#displayWidth\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n displayWidth: {\r\n\r\n get: function ()\r\n {\r\n return this.scaleX * this.width;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.scaleX = value / this.width;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The displayed height of this Game Object.\r\n *\r\n * This value takes into account the scale factor.\r\n *\r\n * Setting this value will adjust the Game Object's scale property.\r\n *\r\n * @name Phaser.GameObjects.Shape#displayHeight\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n displayHeight: {\r\n\r\n get: function ()\r\n {\r\n return this.scaleY * this.height;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.scaleY = value / this.height;\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Shape;\r\n\n\n/***/ }),\n\n/***/ 34682:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Utils = __webpack_require__(70554);\r\n\r\n/**\r\n * Renders a stroke outline around the given Shape.\r\n *\r\n * @method Phaser.GameObjects.Shape#StrokePathWebGL\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLPipeline} pipeline - The WebGL Pipeline used to render this Shape.\r\n * @param {Phaser.GameObjects.Shape} src - The Game Object shape being rendered in this call.\r\n * @param {number} alpha - The base alpha value.\r\n * @param {number} dx - The source displayOriginX.\r\n * @param {number} dy - The source displayOriginY.\r\n */\r\nvar StrokePathWebGL = function (pipeline, src, alpha, dx, dy)\r\n{\r\n var strokeTint = pipeline.strokeTint;\r\n var strokeTintColor = Utils.getTintAppendFloatAlpha(src.strokeColor, src.strokeAlpha * alpha);\r\n\r\n strokeTint.TL = strokeTintColor;\r\n strokeTint.TR = strokeTintColor;\r\n strokeTint.BL = strokeTintColor;\r\n strokeTint.BR = strokeTintColor;\r\n\r\n var path = src.pathData;\r\n var pathLength = path.length - 1;\r\n var lineWidth = src.lineWidth;\r\n var halfLineWidth = lineWidth / 2;\r\n\r\n var px1 = path[0] - dx;\r\n var py1 = path[1] - dy;\r\n\r\n if (!src.closePath)\r\n {\r\n pathLength -= 2;\r\n }\r\n\r\n for (var i = 2; i < pathLength; i += 2)\r\n {\r\n var px2 = path[i] - dx;\r\n var py2 = path[i + 1] - dy;\r\n\r\n pipeline.batchLine(\r\n px1,\r\n py1,\r\n px2,\r\n py2,\r\n halfLineWidth,\r\n halfLineWidth,\r\n lineWidth,\r\n i - 2,\r\n (src.closePath) ? (i === pathLength - 1) : false\r\n );\r\n\r\n px1 = px2;\r\n py1 = py2;\r\n }\r\n};\r\n\r\nmodule.exports = StrokePathWebGL;\r\n\n\n/***/ }),\n\n/***/ 23629:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar ArcRender = __webpack_require__(13609);\r\nvar Class = __webpack_require__(83419);\r\nvar DegToRad = __webpack_require__(39506);\r\nvar Earcut = __webpack_require__(94811);\r\nvar GeomCircle = __webpack_require__(96503);\r\nvar MATH_CONST = __webpack_require__(36383);\r\nvar Shape = __webpack_require__(17803);\r\n\r\n/**\r\n * @classdesc\r\n * The Arc Shape is a Game Object that can be added to a Scene, Group or Container. You can\r\n * treat it like any other Game Object in your game, such as tweening it, scaling it, or enabling\r\n * it for input or physics. It provides a quick and easy way for you to render this shape in your\r\n * game without using a texture, while still taking advantage of being fully batched in WebGL.\r\n *\r\n * This shape supports both fill and stroke colors.\r\n *\r\n * When it renders it displays an arc shape. You can control the start and end angles of the arc,\r\n * as well as if the angles are winding clockwise or anti-clockwise. With the default settings\r\n * it renders as a complete circle. By changing the angles you can create other arc shapes,\r\n * such as half-circles.\r\n *\r\n * Arcs also have an `iterations` property and corresponding `setIterations` method. This allows\r\n * you to control how smooth the shape renders in WebGL, by controlling the number of iterations\r\n * that take place during construction.\r\n *\r\n * @class Arc\r\n * @extends Phaser.GameObjects.Shape\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.13.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {number} [radius=128] - The radius of the arc.\r\n * @param {number} [startAngle=0] - The start angle of the arc, in degrees.\r\n * @param {number} [endAngle=360] - The end angle of the arc, in degrees.\r\n * @param {boolean} [anticlockwise=false] - The winding order of the start and end angles.\r\n * @param {number} [fillColor] - The color the arc will be filled with, i.e. 0xff0000 for red.\r\n * @param {number} [fillAlpha] - The alpha the arc will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.\r\n */\r\nvar Arc = new Class({\r\n\r\n Extends: Shape,\r\n\r\n Mixins: [\r\n ArcRender\r\n ],\r\n\r\n initialize:\r\n\r\n function Arc (scene, x, y, radius, startAngle, endAngle, anticlockwise, fillColor, fillAlpha)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (radius === undefined) { radius = 128; }\r\n if (startAngle === undefined) { startAngle = 0; }\r\n if (endAngle === undefined) { endAngle = 360; }\r\n if (anticlockwise === undefined) { anticlockwise = false; }\r\n\r\n Shape.call(this, scene, 'Arc', new GeomCircle(0, 0, radius));\r\n\r\n /**\r\n * Private internal value. Holds the start angle in degrees.\r\n *\r\n * @name Phaser.GameObjects.Arc#_startAngle\r\n * @type {number}\r\n * @private\r\n * @since 3.13.0\r\n */\r\n this._startAngle = startAngle;\r\n\r\n /**\r\n * Private internal value. Holds the end angle in degrees.\r\n *\r\n * @name Phaser.GameObjects.Arc#_endAngle\r\n * @type {number}\r\n * @private\r\n * @since 3.13.0\r\n */\r\n this._endAngle = endAngle;\r\n\r\n /**\r\n * Private internal value. Holds the winding order of the start and end angles.\r\n *\r\n * @name Phaser.GameObjects.Arc#_anticlockwise\r\n * @type {boolean}\r\n * @private\r\n * @since 3.13.0\r\n */\r\n this._anticlockwise = anticlockwise;\r\n\r\n /**\r\n * Private internal value. Holds the number of iterations used when drawing the arc.\r\n *\r\n * @name Phaser.GameObjects.Arc#_iterations\r\n * @type {number}\r\n * @default 0.01\r\n * @private\r\n * @since 3.13.0\r\n */\r\n this._iterations = 0.01;\r\n\r\n this.setPosition(x, y);\r\n\r\n var diameter = this.geom.radius * 2;\r\n this.setSize(diameter, diameter);\r\n\r\n if (fillColor !== undefined)\r\n {\r\n this.setFillStyle(fillColor, fillAlpha);\r\n }\r\n\r\n this.updateDisplayOrigin();\r\n this.updateData();\r\n },\r\n\r\n /**\r\n * The number of iterations used when drawing the arc.\r\n * Increase this value for smoother arcs, at the cost of more polygons being rendered.\r\n * Modify this value by small amounts, such as 0.01.\r\n *\r\n * @name Phaser.GameObjects.Arc#iterations\r\n * @type {number}\r\n * @default 0.01\r\n * @since 3.13.0\r\n */\r\n iterations: {\r\n\r\n get: function ()\r\n {\r\n return this._iterations;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._iterations = value;\r\n\r\n this.updateData();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The radius of the arc.\r\n *\r\n * @name Phaser.GameObjects.Arc#radius\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n radius: {\r\n\r\n get: function ()\r\n {\r\n return this.geom.radius;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.geom.radius = value;\r\n\r\n var diameter = value * 2;\r\n this.setSize(diameter, diameter);\r\n this.updateDisplayOrigin();\r\n this.updateData();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The start angle of the arc, in degrees.\r\n *\r\n * @name Phaser.GameObjects.Arc#startAngle\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n startAngle: {\r\n\r\n get: function ()\r\n {\r\n return this._startAngle;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._startAngle = value;\r\n\r\n this.updateData();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The end angle of the arc, in degrees.\r\n *\r\n * @name Phaser.GameObjects.Arc#endAngle\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n endAngle: {\r\n\r\n get: function ()\r\n {\r\n return this._endAngle;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._endAngle = value;\r\n\r\n this.updateData();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The winding order of the start and end angles.\r\n *\r\n * @name Phaser.GameObjects.Arc#anticlockwise\r\n * @type {boolean}\r\n * @since 3.13.0\r\n */\r\n anticlockwise: {\r\n\r\n get: function ()\r\n {\r\n return this._anticlockwise;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._anticlockwise = value;\r\n\r\n this.updateData();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Sets the radius of the arc.\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.Arc#setRadius\r\n * @since 3.13.0\r\n *\r\n * @param {number} value - The value to set the radius to.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setRadius: function (value)\r\n {\r\n this.radius = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the number of iterations used when drawing the arc.\r\n * Increase this value for smoother arcs, at the cost of more polygons being rendered.\r\n * Modify this value by small amounts, such as 0.01.\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.Arc#setIterations\r\n * @since 3.13.0\r\n *\r\n * @param {number} value - The value to set the iterations to.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setIterations: function (value)\r\n {\r\n if (value === undefined) { value = 0.01; }\r\n\r\n this.iterations = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the starting angle of the arc, in degrees.\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.Arc#setStartAngle\r\n * @since 3.13.0\r\n *\r\n * @param {number} value - The value to set the starting angle to.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setStartAngle: function (angle, anticlockwise)\r\n {\r\n this._startAngle = angle;\r\n\r\n if (anticlockwise !== undefined)\r\n {\r\n this._anticlockwise = anticlockwise;\r\n }\r\n\r\n return this.updateData();\r\n },\r\n\r\n /**\r\n * Sets the ending angle of the arc, in degrees.\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.Arc#setEndAngle\r\n * @since 3.13.0\r\n *\r\n * @param {number} value - The value to set the ending angle to.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setEndAngle: function (angle, anticlockwise)\r\n {\r\n this._endAngle = angle;\r\n\r\n if (anticlockwise !== undefined)\r\n {\r\n this._anticlockwise = anticlockwise;\r\n }\r\n\r\n return this.updateData();\r\n },\r\n\r\n /**\r\n * Internal method that updates the data and path values.\r\n *\r\n * @method Phaser.GameObjects.Arc#updateData\r\n * @private\r\n * @since 3.13.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n updateData: function ()\r\n {\r\n var step = this._iterations;\r\n var iteration = step;\r\n\r\n var radius = this.geom.radius;\r\n var startAngle = DegToRad(this._startAngle);\r\n var endAngle = DegToRad(this._endAngle);\r\n var anticlockwise = this._anticlockwise;\r\n\r\n var x = radius;\r\n var y = radius;\r\n\r\n endAngle -= startAngle;\r\n\r\n if (anticlockwise)\r\n {\r\n if (endAngle < -MATH_CONST.PI2)\r\n {\r\n endAngle = -MATH_CONST.PI2;\r\n }\r\n else if (endAngle > 0)\r\n {\r\n endAngle = -MATH_CONST.PI2 + endAngle % MATH_CONST.PI2;\r\n }\r\n }\r\n else if (endAngle > MATH_CONST.PI2)\r\n {\r\n endAngle = MATH_CONST.PI2;\r\n }\r\n else if (endAngle < 0)\r\n {\r\n endAngle = MATH_CONST.PI2 + endAngle % MATH_CONST.PI2;\r\n }\r\n\r\n var path = [ x + Math.cos(startAngle) * radius, y + Math.sin(startAngle) * radius ];\r\n\r\n var ta;\r\n\r\n while (iteration < 1)\r\n {\r\n ta = endAngle * iteration + startAngle;\r\n\r\n path.push(x + Math.cos(ta) * radius, y + Math.sin(ta) * radius);\r\n\r\n iteration += step;\r\n }\r\n\r\n ta = endAngle + startAngle;\r\n\r\n path.push(x + Math.cos(ta) * radius, y + Math.sin(ta) * radius);\r\n\r\n path.push(x + Math.cos(startAngle) * radius, y + Math.sin(startAngle) * radius);\r\n\r\n this.pathIndexes = Earcut(path);\r\n this.pathData = path;\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Arc;\r\n\n\n/***/ }),\n\n/***/ 42542:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar DegToRad = __webpack_require__(39506);\r\nvar FillStyleCanvas = __webpack_require__(65960);\r\nvar LineStyleCanvas = __webpack_require__(75177);\r\nvar SetTransform = __webpack_require__(20926);\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Arc#renderCanvas\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.Arc} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar ArcCanvasRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var ctx = renderer.currentContext;\r\n\r\n if (SetTransform(renderer, ctx, src, camera, parentMatrix))\r\n {\r\n var radius = src.radius;\r\n\r\n ctx.beginPath();\r\n\r\n ctx.arc(\r\n (radius) - src.originX * (radius * 2),\r\n (radius) - src.originY * (radius * 2),\r\n radius,\r\n DegToRad(src._startAngle),\r\n DegToRad(src._endAngle),\r\n src.anticlockwise\r\n );\r\n\r\n if (src.closePath)\r\n {\r\n ctx.closePath();\r\n }\r\n\r\n if (src.isFilled)\r\n {\r\n FillStyleCanvas(ctx, src);\r\n\r\n ctx.fill();\r\n }\r\n\r\n if (src.isStroked)\r\n {\r\n LineStyleCanvas(ctx, src);\r\n\r\n ctx.stroke();\r\n }\r\n\r\n // Restore the context saved in SetTransform\r\n ctx.restore();\r\n }\r\n};\r\n\r\nmodule.exports = ArcCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 42563:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Arc = __webpack_require__(23629);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * Creates a new Arc Shape Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Arc Game Object has been built into Phaser.\r\n *\r\n * The Arc Shape is a Game Object that can be added to a Scene, Group or Container. You can\r\n * treat it like any other Game Object in your game, such as tweening it, scaling it, or enabling\r\n * it for input or physics. It provides a quick and easy way for you to render this shape in your\r\n * game without using a texture, while still taking advantage of being fully batched in WebGL.\r\n *\r\n * This shape supports both fill and stroke colors.\r\n *\r\n * When it renders it displays an arc shape. You can control the start and end angles of the arc,\r\n * as well as if the angles are winding clockwise or anti-clockwise. With the default settings\r\n * it renders as a complete circle. By changing the angles you can create other arc shapes,\r\n * such as half-circles.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#arc\r\n * @since 3.13.0\r\n *\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {number} [radius=128] - The radius of the arc.\r\n * @param {number} [startAngle=0] - The start angle of the arc, in degrees.\r\n * @param {number} [endAngle=360] - The end angle of the arc, in degrees.\r\n * @param {boolean} [anticlockwise=false] - The winding order of the start and end angles.\r\n * @param {number} [fillColor] - The color the arc will be filled with, i.e. 0xff0000 for red.\r\n * @param {number} [fillAlpha] - The alpha the arc will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.\r\n *\r\n * @return {Phaser.GameObjects.Arc} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('arc', function (x, y, radius, startAngle, endAngle, anticlockwise, fillColor, fillAlpha)\r\n{\r\n return this.displayList.add(new Arc(this.scene, x, y, radius, startAngle, endAngle, anticlockwise, fillColor, fillAlpha));\r\n});\r\n\r\n/**\r\n * Creates a new Circle Shape Game Object and adds it to the Scene.\r\n *\r\n * A Circle is an Arc with no defined start and end angle, making it render as a complete circle.\r\n *\r\n * Note: This method will only be available if the Arc Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#circle\r\n * @since 3.13.0\r\n *\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {number} [radius=128] - The radius of the circle.\r\n * @param {number} [fillColor] - The color the circle will be filled with, i.e. 0xff0000 for red.\r\n * @param {number} [fillAlpha] - The alpha the circle will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.\r\n *\r\n * @return {Phaser.GameObjects.Arc} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('circle', function (x, y, radius, fillColor, fillAlpha)\r\n{\r\n return this.displayList.add(new Arc(this.scene, x, y, radius, 0, 360, false, fillColor, fillAlpha));\r\n});\r\n\n\n/***/ }),\n\n/***/ 13609:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(41447);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(42542);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 41447:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetCalcMatrix = __webpack_require__(91296);\r\nvar FillPathWebGL = __webpack_require__(10441);\r\nvar StrokePathWebGL = __webpack_require__(34682);\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Arc#renderWebGL\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Arc} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar ArcWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var pipeline = renderer.pipelines.set(src.pipeline);\r\n\r\n var result = GetCalcMatrix(src, camera, parentMatrix);\r\n\r\n var calcMatrix = pipeline.calcMatrix.copyFrom(result.calc);\r\n\r\n var dx = src._displayOriginX;\r\n var dy = src._displayOriginY;\r\n\r\n var alpha = camera.alpha * src.alpha;\r\n\r\n renderer.pipelines.preBatch(src);\r\n\r\n if (src.isFilled)\r\n {\r\n FillPathWebGL(pipeline, calcMatrix, src, alpha, dx, dy);\r\n }\r\n\r\n if (src.isStroked)\r\n {\r\n StrokePathWebGL(pipeline, src, alpha, dx, dy);\r\n }\r\n\r\n renderer.pipelines.postBatch(src);\r\n};\r\n\r\nmodule.exports = ArcWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 89:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CurveRender = __webpack_require__(33141);\r\nvar Earcut = __webpack_require__(94811);\r\nvar Rectangle = __webpack_require__(87841);\r\nvar Shape = __webpack_require__(17803);\r\n\r\n/**\r\n * @classdesc\r\n * The Curve Shape is a Game Object that can be added to a Scene, Group or Container. You can\r\n * treat it like any other Game Object in your game, such as tweening it, scaling it, or enabling\r\n * it for input or physics. It provides a quick and easy way for you to render this shape in your\r\n * game without using a texture, while still taking advantage of being fully batched in WebGL.\r\n *\r\n * This shape supports both fill and stroke colors.\r\n *\r\n * To render a Curve Shape you must first create a `Phaser.Curves.Curve` object, then pass it to\r\n * the Curve Shape in the constructor.\r\n *\r\n * The Curve shape also has a `smoothness` property and corresponding `setSmoothness` method.\r\n * This allows you to control how smooth the shape renders in WebGL, by controlling the number of iterations\r\n * that take place during construction. Increase and decrease the default value for smoother, or more\r\n * jagged, shapes.\r\n *\r\n * @class Curve\r\n * @extends Phaser.GameObjects.Shape\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.13.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {Phaser.Curves.Curve} [curve] - The Curve object to use to create the Shape.\r\n * @param {number} [fillColor] - The color the curve will be filled with, i.e. 0xff0000 for red.\r\n * @param {number} [fillAlpha] - The alpha the curve will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.\r\n */\r\nvar Curve = new Class({\r\n\r\n Extends: Shape,\r\n\r\n Mixins: [\r\n CurveRender\r\n ],\r\n\r\n initialize:\r\n\r\n function Curve (scene, x, y, curve, fillColor, fillAlpha)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n\r\n Shape.call(this, scene, 'Curve', curve);\r\n\r\n /**\r\n * Private internal value.\r\n * The number of points used to draw the curve. Higher values create smoother renders at the cost of more triangles being drawn.\r\n *\r\n * @name Phaser.GameObjects.Curve#_smoothness\r\n * @type {number}\r\n * @private\r\n * @since 3.13.0\r\n */\r\n this._smoothness = 32;\r\n\r\n /**\r\n * Private internal value.\r\n * The Curve bounds rectangle.\r\n *\r\n * @name Phaser.GameObjects.Curve#_curveBounds\r\n * @type {Phaser.Geom.Rectangle}\r\n * @private\r\n * @since 3.13.0\r\n */\r\n this._curveBounds = new Rectangle();\r\n\r\n this.closePath = false;\r\n\r\n this.setPosition(x, y);\r\n\r\n if (fillColor !== undefined)\r\n {\r\n this.setFillStyle(fillColor, fillAlpha);\r\n }\r\n\r\n this.updateData();\r\n },\r\n\r\n /**\r\n * The smoothness of the curve. The number of points used when rendering it.\r\n * Increase this value for smoother curves, at the cost of more polygons being rendered.\r\n *\r\n * @name Phaser.GameObjects.Curve#smoothness\r\n * @type {number}\r\n * @default 32\r\n * @since 3.13.0\r\n */\r\n smoothness: {\r\n\r\n get: function ()\r\n {\r\n return this._smoothness;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._smoothness = value;\r\n\r\n this.updateData();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Sets the smoothness of the curve. The number of points used when rendering it.\r\n * Increase this value for smoother curves, at the cost of more polygons being rendered.\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.Curve#setSmoothness\r\n * @since 3.13.0\r\n *\r\n * @param {number} value - The value to set the smoothness to.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setSmoothness: function (value)\r\n {\r\n this._smoothness = value;\r\n\r\n return this.updateData();\r\n },\r\n\r\n /**\r\n * Internal method that updates the data and path values.\r\n *\r\n * @method Phaser.GameObjects.Curve#updateData\r\n * @private\r\n * @since 3.13.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n updateData: function ()\r\n {\r\n var bounds = this._curveBounds;\r\n var smoothness = this._smoothness;\r\n\r\n // Update the bounds in case the underlying data has changed\r\n this.geom.getBounds(bounds, smoothness);\r\n\r\n this.setSize(bounds.width, bounds.height);\r\n this.updateDisplayOrigin();\r\n\r\n var path = [];\r\n var points = this.geom.getPoints(smoothness);\r\n\r\n for (var i = 0; i < points.length; i++)\r\n {\r\n path.push(points[i].x, points[i].y);\r\n }\r\n\r\n path.push(points[0].x, points[0].y);\r\n\r\n this.pathIndexes = Earcut(path);\r\n this.pathData = path;\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Curve;\r\n\n\n/***/ }),\n\n/***/ 3170:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar FillStyleCanvas = __webpack_require__(65960);\r\nvar LineStyleCanvas = __webpack_require__(75177);\r\nvar SetTransform = __webpack_require__(20926);\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Curve#renderCanvas\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.Curve} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar CurveCanvasRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var ctx = renderer.currentContext;\r\n\r\n if (SetTransform(renderer, ctx, src, camera, parentMatrix))\r\n {\r\n var dx = src._displayOriginX + src._curveBounds.x;\r\n var dy = src._displayOriginY + src._curveBounds.y;\r\n\r\n var path = src.pathData;\r\n var pathLength = path.length - 1;\r\n\r\n var px1 = path[0] - dx;\r\n var py1 = path[1] - dy;\r\n\r\n ctx.beginPath();\r\n\r\n ctx.moveTo(px1, py1);\r\n\r\n if (!src.closePath)\r\n {\r\n pathLength -= 2;\r\n }\r\n\r\n for (var i = 2; i < pathLength; i += 2)\r\n {\r\n var px2 = path[i] - dx;\r\n var py2 = path[i + 1] - dy;\r\n\r\n ctx.lineTo(px2, py2);\r\n }\r\n\r\n if (src.closePath)\r\n {\r\n ctx.closePath();\r\n }\r\n\r\n if (src.isFilled)\r\n {\r\n FillStyleCanvas(ctx, src);\r\n\r\n ctx.fill();\r\n }\r\n\r\n if (src.isStroked)\r\n {\r\n LineStyleCanvas(ctx, src);\r\n\r\n ctx.stroke();\r\n }\r\n\r\n // Restore the context saved in SetTransform\r\n ctx.restore();\r\n }\r\n};\r\n\r\nmodule.exports = CurveCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 40511:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GameObjectFactory = __webpack_require__(39429);\r\nvar Curve = __webpack_require__(89);\r\n\r\n/**\r\n * Creates a new Curve Shape Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Curve Game Object has been built into Phaser.\r\n *\r\n * The Curve Shape is a Game Object that can be added to a Scene, Group or Container. You can\r\n * treat it like any other Game Object in your game, such as tweening it, scaling it, or enabling\r\n * it for input or physics. It provides a quick and easy way for you to render this shape in your\r\n * game without using a texture, while still taking advantage of being fully batched in WebGL.\r\n *\r\n * This shape supports both fill and stroke colors.\r\n *\r\n * To render a Curve Shape you must first create a `Phaser.Curves.Curve` object, then pass it to\r\n * the Curve Shape in the constructor.\r\n *\r\n * The Curve shape also has a `smoothness` property and corresponding `setSmoothness` method.\r\n * This allows you to control how smooth the shape renders in WebGL, by controlling the number of iterations\r\n * that take place during construction. Increase and decrease the default value for smoother, or more\r\n * jagged, shapes.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#curve\r\n * @since 3.13.0\r\n *\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {Phaser.Curves.Curve} [curve] - The Curve object to use to create the Shape.\r\n * @param {number} [fillColor] - The color the curve will be filled with, i.e. 0xff0000 for red.\r\n * @param {number} [fillAlpha] - The alpha the curve will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.\r\n *\r\n * @return {Phaser.GameObjects.Curve} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('curve', function (x, y, curve, fillColor, fillAlpha)\r\n{\r\n return this.displayList.add(new Curve(this.scene, x, y, curve, fillColor, fillAlpha));\r\n});\r\n\n\n/***/ }),\n\n/***/ 33141:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(53987);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(3170);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 53987:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar FillPathWebGL = __webpack_require__(10441);\r\nvar GetCalcMatrix = __webpack_require__(91296);\r\nvar StrokePathWebGL = __webpack_require__(34682);\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Curve#renderWebGL\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Curve} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar CurveWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var pipeline = renderer.pipelines.set(src.pipeline);\r\n\r\n var result = GetCalcMatrix(src, camera, parentMatrix);\r\n\r\n var calcMatrix = pipeline.calcMatrix.copyFrom(result.calc);\r\n\r\n var dx = src._displayOriginX + src._curveBounds.x;\r\n var dy = src._displayOriginY + src._curveBounds.y;\r\n\r\n var alpha = camera.alpha * src.alpha;\r\n\r\n renderer.pipelines.preBatch(src);\r\n\r\n if (src.isFilled)\r\n {\r\n FillPathWebGL(pipeline, calcMatrix, src, alpha, dx, dy);\r\n }\r\n\r\n if (src.isStroked)\r\n {\r\n StrokePathWebGL(pipeline, src, alpha, dx, dy);\r\n }\r\n\r\n renderer.pipelines.postBatch(src);\r\n};\r\n\r\nmodule.exports = CurveWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 19921:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Earcut = __webpack_require__(94811);\r\nvar EllipseRender = __webpack_require__(54205);\r\nvar GeomEllipse = __webpack_require__(8497);\r\nvar Shape = __webpack_require__(17803);\r\n\r\n/**\r\n * @classdesc\r\n * The Ellipse Shape is a Game Object that can be added to a Scene, Group or Container. You can\r\n * treat it like any other Game Object in your game, such as tweening it, scaling it, or enabling\r\n * it for input or physics. It provides a quick and easy way for you to render this shape in your\r\n * game without using a texture, while still taking advantage of being fully batched in WebGL.\r\n *\r\n * This shape supports both fill and stroke colors.\r\n *\r\n * When it renders it displays an ellipse shape. You can control the width and height of the ellipse.\r\n * If the width and height match it will render as a circle. If the width is less than the height,\r\n * it will look more like an egg shape.\r\n *\r\n * The Ellipse shape also has a `smoothness` property and corresponding `setSmoothness` method.\r\n * This allows you to control how smooth the shape renders in WebGL, by controlling the number of iterations\r\n * that take place during construction. Increase and decrease the default value for smoother, or more\r\n * jagged, shapes.\r\n *\r\n * @class Ellipse\r\n * @extends Phaser.GameObjects.Shape\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.13.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {number} [width=128] - The width of the ellipse. An ellipse with equal width and height renders as a circle.\r\n * @param {number} [height=128] - The height of the ellipse. An ellipse with equal width and height renders as a circle.\r\n * @param {number} [fillColor] - The color the ellipse will be filled with, i.e. 0xff0000 for red.\r\n * @param {number} [fillAlpha] - The alpha the ellipse will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.\r\n */\r\nvar Ellipse = new Class({\r\n\r\n Extends: Shape,\r\n\r\n Mixins: [\r\n EllipseRender\r\n ],\r\n\r\n initialize:\r\n\r\n function Ellipse (scene, x, y, width, height, fillColor, fillAlpha)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (width === undefined) { width = 128; }\r\n if (height === undefined) { height = 128; }\r\n\r\n Shape.call(this, scene, 'Ellipse', new GeomEllipse(width / 2, height / 2, width, height));\r\n\r\n /**\r\n * Private internal value.\r\n * The number of points used to draw the curve. Higher values create smoother renders at the cost of more triangles being drawn.\r\n *\r\n * @name Phaser.GameObjects.Ellipse#_smoothness\r\n * @type {number}\r\n * @private\r\n * @since 3.13.0\r\n */\r\n this._smoothness = 64;\r\n\r\n this.setPosition(x, y);\r\n\r\n this.width = width;\r\n this.height = height;\r\n\r\n if (fillColor !== undefined)\r\n {\r\n this.setFillStyle(fillColor, fillAlpha);\r\n }\r\n\r\n this.updateDisplayOrigin();\r\n this.updateData();\r\n },\r\n\r\n /**\r\n * The smoothness of the ellipse. The number of points used when rendering it.\r\n * Increase this value for a smoother ellipse, at the cost of more polygons being rendered.\r\n *\r\n * @name Phaser.GameObjects.Ellipse#smoothness\r\n * @type {number}\r\n * @default 64\r\n * @since 3.13.0\r\n */\r\n smoothness: {\r\n\r\n get: function ()\r\n {\r\n return this._smoothness;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._smoothness = value;\r\n\r\n this.updateData();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Sets the size of the ellipse by changing the underlying geometry data, rather than scaling the object.\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.Ellipse#setSize\r\n * @since 3.13.0\r\n *\r\n * @param {number} width - The width of the ellipse.\r\n * @param {number} height - The height of the ellipse.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setSize: function (width, height)\r\n {\r\n this.width = width;\r\n this.height = height;\r\n this.geom.setPosition(width / 2, height / 2);\r\n this.geom.setSize(width, height);\r\n\r\n this.updateDisplayOrigin();\r\n\r\n return this.updateData();\r\n },\r\n\r\n /**\r\n * Sets the smoothness of the ellipse. The number of points used when rendering it.\r\n * Increase this value for a smoother ellipse, at the cost of more polygons being rendered.\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.Ellipse#setSmoothness\r\n * @since 3.13.0\r\n *\r\n * @param {number} value - The value to set the smoothness to.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setSmoothness: function (value)\r\n {\r\n this._smoothness = value;\r\n\r\n return this.updateData();\r\n },\r\n\r\n /**\r\n * Internal method that updates the data and path values.\r\n *\r\n * @method Phaser.GameObjects.Ellipse#updateData\r\n * @private\r\n * @since 3.13.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n updateData: function ()\r\n {\r\n var path = [];\r\n var points = this.geom.getPoints(this._smoothness);\r\n\r\n for (var i = 0; i < points.length; i++)\r\n {\r\n path.push(points[i].x, points[i].y);\r\n }\r\n\r\n path.push(points[0].x, points[0].y);\r\n\r\n this.pathIndexes = Earcut(path);\r\n this.pathData = path;\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Ellipse;\r\n\n\n/***/ }),\n\n/***/ 7930:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar FillStyleCanvas = __webpack_require__(65960);\r\nvar LineStyleCanvas = __webpack_require__(75177);\r\nvar SetTransform = __webpack_require__(20926);\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Ellipse#renderCanvas\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.Ellipse} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar EllipseCanvasRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var ctx = renderer.currentContext;\r\n\r\n if (SetTransform(renderer, ctx, src, camera, parentMatrix))\r\n {\r\n var dx = src._displayOriginX;\r\n var dy = src._displayOriginY;\r\n\r\n var path = src.pathData;\r\n var pathLength = path.length - 1;\r\n\r\n var px1 = path[0] - dx;\r\n var py1 = path[1] - dy;\r\n\r\n ctx.beginPath();\r\n\r\n ctx.moveTo(px1, py1);\r\n\r\n if (!src.closePath)\r\n {\r\n pathLength -= 2;\r\n }\r\n\r\n for (var i = 2; i < pathLength; i += 2)\r\n {\r\n var px2 = path[i] - dx;\r\n var py2 = path[i + 1] - dy;\r\n\r\n ctx.lineTo(px2, py2);\r\n }\r\n\r\n ctx.closePath();\r\n\r\n if (src.isFilled)\r\n {\r\n FillStyleCanvas(ctx, src);\r\n\r\n ctx.fill();\r\n }\r\n\r\n if (src.isStroked)\r\n {\r\n LineStyleCanvas(ctx, src);\r\n\r\n ctx.stroke();\r\n }\r\n\r\n // Restore the context saved in SetTransform\r\n ctx.restore();\r\n }\r\n};\r\n\r\nmodule.exports = EllipseCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 1543:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Ellipse = __webpack_require__(19921);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * Creates a new Ellipse Shape Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Ellipse Game Object has been built into Phaser.\r\n *\r\n * The Ellipse Shape is a Game Object that can be added to a Scene, Group or Container. You can\r\n * treat it like any other Game Object in your game, such as tweening it, scaling it, or enabling\r\n * it for input or physics. It provides a quick and easy way for you to render this shape in your\r\n * game without using a texture, while still taking advantage of being fully batched in WebGL.\r\n *\r\n * This shape supports both fill and stroke colors.\r\n *\r\n * When it renders it displays an ellipse shape. You can control the width and height of the ellipse.\r\n * If the width and height match it will render as a circle. If the width is less than the height,\r\n * it will look more like an egg shape.\r\n *\r\n * The Ellipse shape also has a `smoothness` property and corresponding `setSmoothness` method.\r\n * This allows you to control how smooth the shape renders in WebGL, by controlling the number of iterations\r\n * that take place during construction. Increase and decrease the default value for smoother, or more\r\n * jagged, shapes.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#ellipse\r\n * @since 3.13.0\r\n *\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {number} [width=128] - The width of the ellipse. An ellipse with equal width and height renders as a circle.\r\n * @param {number} [height=128] - The height of the ellipse. An ellipse with equal width and height renders as a circle.\r\n * @param {number} [fillColor] - The color the ellipse will be filled with, i.e. 0xff0000 for red.\r\n * @param {number} [fillAlpha] - The alpha the ellipse will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.\r\n *\r\n * @return {Phaser.GameObjects.Ellipse} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('ellipse', function (x, y, width, height, fillColor, fillAlpha)\r\n{\r\n return this.displayList.add(new Ellipse(this.scene, x, y, width, height, fillColor, fillAlpha));\r\n});\r\n\n\n/***/ }),\n\n/***/ 54205:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(19467);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(7930);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 19467:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar FillPathWebGL = __webpack_require__(10441);\r\nvar GetCalcMatrix = __webpack_require__(91296);\r\nvar StrokePathWebGL = __webpack_require__(34682);\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Ellipse#renderWebGL\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Ellipse} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar EllipseWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var pipeline = renderer.pipelines.set(src.pipeline);\r\n\r\n var result = GetCalcMatrix(src, camera, parentMatrix);\r\n\r\n var calcMatrix = pipeline.calcMatrix.copyFrom(result.calc);\r\n\r\n var dx = src._displayOriginX;\r\n var dy = src._displayOriginY;\r\n\r\n var alpha = camera.alpha * src.alpha;\r\n\r\n renderer.pipelines.preBatch(src);\r\n\r\n if (src.isFilled)\r\n {\r\n FillPathWebGL(pipeline, calcMatrix, src, alpha, dx, dy);\r\n }\r\n\r\n if (src.isStroked)\r\n {\r\n StrokePathWebGL(pipeline, src, alpha, dx, dy);\r\n }\r\n\r\n renderer.pipelines.postBatch(src);\r\n};\r\n\r\nmodule.exports = EllipseWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 30479:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Shape = __webpack_require__(17803);\r\nvar GridRender = __webpack_require__(26015);\r\n\r\n/**\r\n * @classdesc\r\n * The Grid Shape is a Game Object that can be added to a Scene, Group or Container. You can\r\n * treat it like any other Game Object in your game, such as tweening it, scaling it, or enabling\r\n * it for input or physics. It provides a quick and easy way for you to render this shape in your\r\n * game without using a texture, while still taking advantage of being fully batched in WebGL.\r\n *\r\n * This shape supports only fill colors and cannot be stroked.\r\n *\r\n * A Grid Shape allows you to display a grid in your game, where you can control the size of the\r\n * grid as well as the width and height of the grid cells. You can set a fill color for each grid\r\n * cell as well as an alternate fill color. When the alternate fill color is set then the grid\r\n * cells will alternate the fill colors as they render, creating a chess-board effect. You can\r\n * also optionally have an outline fill color. If set, this draws lines between the grid cells\r\n * in the given color. If you specify an outline color with an alpha of zero, then it will draw\r\n * the cells spaced out, but without the lines between them.\r\n *\r\n * @class Grid\r\n * @extends Phaser.GameObjects.Shape\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.13.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {number} [width=128] - The width of the grid.\r\n * @param {number} [height=128] - The height of the grid.\r\n * @param {number} [cellWidth=32] - The width of one cell in the grid.\r\n * @param {number} [cellHeight=32] - The height of one cell in the grid.\r\n * @param {number} [fillColor] - The color the grid cells will be filled with, i.e. 0xff0000 for red.\r\n * @param {number} [fillAlpha] - The alpha the grid cells will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.\r\n * @param {number} [outlineFillColor] - The color of the lines between the grid cells. See the `setOutline` method.\r\n * @param {number} [outlineFillAlpha] - The alpha of the lines between the grid cells.\r\n */\r\nvar Grid = new Class({\r\n\r\n Extends: Shape,\r\n\r\n Mixins: [\r\n GridRender\r\n ],\r\n\r\n initialize:\r\n\r\n function Grid (scene, x, y, width, height, cellWidth, cellHeight, fillColor, fillAlpha, outlineFillColor, outlineFillAlpha)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (width === undefined) { width = 128; }\r\n if (height === undefined) { height = 128; }\r\n if (cellWidth === undefined) { cellWidth = 32; }\r\n if (cellHeight === undefined) { cellHeight = 32; }\r\n\r\n Shape.call(this, scene, 'Grid', null);\r\n\r\n /**\r\n * The width of each grid cell.\r\n * Must be a positive value.\r\n *\r\n * @name Phaser.GameObjects.Grid#cellWidth\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n this.cellWidth = cellWidth;\r\n\r\n /**\r\n * The height of each grid cell.\r\n * Must be a positive value.\r\n *\r\n * @name Phaser.GameObjects.Grid#cellHeight\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n this.cellHeight = cellHeight;\r\n\r\n /**\r\n * Will the grid render its cells in the `fillColor`?\r\n *\r\n * @name Phaser.GameObjects.Grid#showCells\r\n * @type {boolean}\r\n * @since 3.13.0\r\n */\r\n this.showCells = true;\r\n\r\n /**\r\n * The color of the lines between each grid cell.\r\n *\r\n * @name Phaser.GameObjects.Grid#outlineFillColor\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n this.outlineFillColor = 0;\r\n\r\n /**\r\n * The alpha value for the color of the lines between each grid cell.\r\n *\r\n * @name Phaser.GameObjects.Grid#outlineFillAlpha\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n this.outlineFillAlpha = 0;\r\n\r\n /**\r\n * Will the grid display the lines between each cell when it renders?\r\n *\r\n * @name Phaser.GameObjects.Grid#showOutline\r\n * @type {boolean}\r\n * @since 3.13.0\r\n */\r\n this.showOutline = true;\r\n\r\n /**\r\n * Will the grid render the alternating cells in the `altFillColor`?\r\n *\r\n * @name Phaser.GameObjects.Grid#showAltCells\r\n * @type {boolean}\r\n * @since 3.13.0\r\n */\r\n this.showAltCells = false;\r\n\r\n /**\r\n * The color the alternating grid cells will be filled with, i.e. 0xff0000 for red.\r\n *\r\n * @name Phaser.GameObjects.Grid#altFillColor\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n this.altFillColor;\r\n\r\n /**\r\n * The alpha the alternating grid cells will be filled with.\r\n * You can also set the alpha of the overall Shape using its `alpha` property.\r\n *\r\n * @name Phaser.GameObjects.Grid#altFillAlpha\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n this.altFillAlpha;\r\n\r\n this.setPosition(x, y);\r\n this.setSize(width, height);\r\n\r\n this.setFillStyle(fillColor, fillAlpha);\r\n\r\n if (outlineFillColor !== undefined)\r\n {\r\n this.setOutlineStyle(outlineFillColor, outlineFillAlpha);\r\n }\r\n\r\n this.updateDisplayOrigin();\r\n },\r\n\r\n /**\r\n * Sets the fill color and alpha level the grid cells will use when rendering.\r\n *\r\n * If this method is called with no values then the grid cells will not be rendered,\r\n * however the grid lines and alternating cells may still be.\r\n *\r\n * Also see the `setOutlineStyle` and `setAltFillStyle` methods.\r\n *\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.Grid#setFillStyle\r\n * @since 3.13.0\r\n *\r\n * @param {number} [fillColor] - The color the grid cells will be filled with, i.e. 0xff0000 for red.\r\n * @param {number} [fillAlpha=1] - The alpha the grid cells will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setFillStyle: function (fillColor, fillAlpha)\r\n {\r\n if (fillAlpha === undefined) { fillAlpha = 1; }\r\n\r\n if (fillColor === undefined)\r\n {\r\n this.showCells = false;\r\n }\r\n else\r\n {\r\n this.fillColor = fillColor;\r\n this.fillAlpha = fillAlpha;\r\n this.showCells = true;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the fill color and alpha level that the alternating grid cells will use.\r\n *\r\n * If this method is called with no values then alternating grid cells will not be rendered in a different color.\r\n *\r\n * Also see the `setOutlineStyle` and `setFillStyle` methods.\r\n *\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.Grid#setAltFillStyle\r\n * @since 3.13.0\r\n *\r\n * @param {number} [fillColor] - The color the alternating grid cells will be filled with, i.e. 0xff0000 for red.\r\n * @param {number} [fillAlpha=1] - The alpha the alternating grid cells will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setAltFillStyle: function (fillColor, fillAlpha)\r\n {\r\n if (fillAlpha === undefined) { fillAlpha = 1; }\r\n\r\n if (fillColor === undefined)\r\n {\r\n this.showAltCells = false;\r\n }\r\n else\r\n {\r\n this.altFillColor = fillColor;\r\n this.altFillAlpha = fillAlpha;\r\n this.showAltCells = true;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the fill color and alpha level that the lines between each grid cell will use.\r\n *\r\n * If this method is called with no values then the grid lines will not be rendered at all, however\r\n * the cells themselves may still be if they have colors set.\r\n *\r\n * Also see the `setFillStyle` and `setAltFillStyle` methods.\r\n *\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.Grid#setOutlineStyle\r\n * @since 3.13.0\r\n *\r\n * @param {number} [fillColor] - The color the lines between the grid cells will be filled with, i.e. 0xff0000 for red.\r\n * @param {number} [fillAlpha=1] - The alpha the lines between the grid cells will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setOutlineStyle: function (fillColor, fillAlpha)\r\n {\r\n if (fillAlpha === undefined) { fillAlpha = 1; }\r\n\r\n if (fillColor === undefined)\r\n {\r\n this.showOutline = false;\r\n }\r\n else\r\n {\r\n this.outlineFillColor = fillColor;\r\n this.outlineFillAlpha = fillAlpha;\r\n this.showOutline = true;\r\n }\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Grid;\r\n\n\n/***/ }),\n\n/***/ 49912:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar FillStyleCanvas = __webpack_require__(65960);\r\nvar LineStyleCanvas = __webpack_require__(75177);\r\nvar SetTransform = __webpack_require__(20926);\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Grid#renderCanvas\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.Grid} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar GridCanvasRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var ctx = renderer.currentContext;\r\n\r\n if (SetTransform(renderer, ctx, src, camera, parentMatrix))\r\n {\r\n var dx = -src._displayOriginX;\r\n var dy = -src._displayOriginY;\r\n\r\n var alpha = camera.alpha * src.alpha;\r\n\r\n // Work out the grid size\r\n\r\n var width = src.width;\r\n var height = src.height;\r\n\r\n var cellWidth = src.cellWidth;\r\n var cellHeight = src.cellHeight;\r\n\r\n var gridWidth = Math.ceil(width / cellWidth);\r\n var gridHeight = Math.ceil(height / cellHeight);\r\n\r\n var cellWidthA = cellWidth;\r\n var cellHeightA = cellHeight;\r\n\r\n var cellWidthB = cellWidth - ((gridWidth * cellWidth) - width);\r\n var cellHeightB = cellHeight - ((gridHeight * cellHeight) - height);\r\n\r\n var showCells = src.showCells;\r\n var showAltCells = src.showAltCells;\r\n var showOutline = src.showOutline;\r\n\r\n var x = 0;\r\n var y = 0;\r\n var r = 0;\r\n var cw = 0;\r\n var ch = 0;\r\n\r\n if (showOutline)\r\n {\r\n // To make room for the grid lines (in case alpha < 1)\r\n cellWidthA--;\r\n cellHeightA--;\r\n\r\n if (cellWidthB === cellWidth)\r\n {\r\n cellWidthB--;\r\n }\r\n\r\n if (cellHeightB === cellHeight)\r\n {\r\n cellHeightB--;\r\n }\r\n }\r\n\r\n if (showCells && src.fillAlpha > 0)\r\n {\r\n FillStyleCanvas(ctx, src);\r\n\r\n for (y = 0; y < gridHeight; y++)\r\n {\r\n if (showAltCells)\r\n {\r\n r = y % 2;\r\n }\r\n\r\n for (x = 0; x < gridWidth; x++)\r\n {\r\n if (showAltCells && r)\r\n {\r\n r = 0;\r\n continue;\r\n }\r\n\r\n r++;\r\n\r\n cw = (x < gridWidth - 1) ? cellWidthA : cellWidthB;\r\n ch = (y < gridHeight - 1) ? cellHeightA : cellHeightB;\r\n\r\n ctx.fillRect(\r\n dx + x * cellWidth,\r\n dy + y * cellHeight,\r\n cw,\r\n ch\r\n );\r\n }\r\n }\r\n }\r\n\r\n if (showAltCells && src.altFillAlpha > 0)\r\n {\r\n FillStyleCanvas(ctx, src, src.altFillColor, src.altFillAlpha * alpha);\r\n\r\n for (y = 0; y < gridHeight; y++)\r\n {\r\n if (showAltCells)\r\n {\r\n r = y % 2;\r\n }\r\n\r\n for (x = 0; x < gridWidth; x++)\r\n {\r\n if (showAltCells && !r)\r\n {\r\n r = 1;\r\n continue;\r\n }\r\n\r\n r = 0;\r\n\r\n cw = (x < gridWidth - 1) ? cellWidthA : cellWidthB;\r\n ch = (y < gridHeight - 1) ? cellHeightA : cellHeightB;\r\n\r\n ctx.fillRect(\r\n dx + x * cellWidth,\r\n dy + y * cellHeight,\r\n cw,\r\n ch\r\n );\r\n }\r\n }\r\n }\r\n\r\n if (showOutline && src.outlineFillAlpha > 0)\r\n {\r\n LineStyleCanvas(ctx, src, src.outlineFillColor, src.outlineFillAlpha * alpha);\r\n\r\n for (x = 1; x < gridWidth; x++)\r\n {\r\n var x1 = x * cellWidth;\r\n\r\n ctx.beginPath();\r\n\r\n ctx.moveTo(x1 + dx, dy);\r\n ctx.lineTo(x1 + dx, height + dy);\r\n\r\n ctx.stroke();\r\n }\r\n\r\n for (y = 1; y < gridHeight; y++)\r\n {\r\n var y1 = y * cellHeight;\r\n\r\n ctx.beginPath();\r\n\r\n ctx.moveTo(dx, y1 + dy);\r\n ctx.lineTo(dx + width, y1 + dy);\r\n\r\n ctx.stroke();\r\n }\r\n }\r\n\r\n // Restore the context saved in SetTransform\r\n ctx.restore();\r\n }\r\n};\r\n\r\nmodule.exports = GridCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 34137:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GameObjectFactory = __webpack_require__(39429);\r\nvar Grid = __webpack_require__(30479);\r\n\r\n/**\r\n * Creates a new Grid Shape Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Grid Game Object has been built into Phaser.\r\n *\r\n * The Grid Shape is a Game Object that can be added to a Scene, Group or Container. You can\r\n * treat it like any other Game Object in your game, such as tweening it, scaling it, or enabling\r\n * it for input or physics. It provides a quick and easy way for you to render this shape in your\r\n * game without using a texture, while still taking advantage of being fully batched in WebGL.\r\n *\r\n * This shape supports only fill colors and cannot be stroked.\r\n *\r\n * A Grid Shape allows you to display a grid in your game, where you can control the size of the\r\n * grid as well as the width and height of the grid cells. You can set a fill color for each grid\r\n * cell as well as an alternate fill color. When the alternate fill color is set then the grid\r\n * cells will alternate the fill colors as they render, creating a chess-board effect. You can\r\n * also optionally have an outline fill color. If set, this draws lines between the grid cells\r\n * in the given color. If you specify an outline color with an alpha of zero, then it will draw\r\n * the cells spaced out, but without the lines between them.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#grid\r\n * @since 3.13.0\r\n *\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {number} [width=128] - The width of the grid.\r\n * @param {number} [height=128] - The height of the grid.\r\n * @param {number} [cellWidth=32] - The width of one cell in the grid.\r\n * @param {number} [cellHeight=32] - The height of one cell in the grid.\r\n * @param {number} [fillColor] - The color the grid cells will be filled with, i.e. 0xff0000 for red.\r\n * @param {number} [fillAlpha] - The alpha the grid cells will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.\r\n * @param {number} [outlineFillColor] - The color of the lines between the grid cells.\r\n * @param {number} [outlineFillAlpha] - The alpha of the lines between the grid cells.\r\n *\r\n * @return {Phaser.GameObjects.Grid} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('grid', function (x, y, width, height, cellWidth, cellHeight, fillColor, fillAlpha, outlineFillColor, outlineFillAlpha)\r\n{\r\n return this.displayList.add(new Grid(this.scene, x, y, width, height, cellWidth, cellHeight, fillColor, fillAlpha, outlineFillColor, outlineFillAlpha));\r\n});\r\n\n\n/***/ }),\n\n/***/ 26015:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(46161);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(49912);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 46161:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetCalcMatrix = __webpack_require__(91296);\r\nvar Utils = __webpack_require__(70554);\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Grid#renderWebGL\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Grid} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar GridWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var pipeline = renderer.pipelines.set(src.pipeline);\r\n\r\n var result = GetCalcMatrix(src, camera, parentMatrix);\r\n\r\n var calcMatrix = pipeline.calcMatrix.copyFrom(result.calc);\r\n\r\n calcMatrix.translate(-src._displayOriginX, -src._displayOriginY);\r\n\r\n var alpha = camera.alpha * src.alpha;\r\n\r\n // Work out the grid size\r\n\r\n var width = src.width;\r\n var height = src.height;\r\n\r\n var cellWidth = src.cellWidth;\r\n var cellHeight = src.cellHeight;\r\n\r\n var gridWidth = Math.ceil(width / cellWidth);\r\n var gridHeight = Math.ceil(height / cellHeight);\r\n\r\n var cellWidthA = cellWidth;\r\n var cellHeightA = cellHeight;\r\n\r\n var cellWidthB = cellWidth - ((gridWidth * cellWidth) - width);\r\n var cellHeightB = cellHeight - ((gridHeight * cellHeight) - height);\r\n\r\n var fillTint;\r\n var fillTintColor;\r\n\r\n var showCells = src.showCells;\r\n var showAltCells = src.showAltCells;\r\n var showOutline = src.showOutline;\r\n\r\n var x = 0;\r\n var y = 0;\r\n var r = 0;\r\n var cw = 0;\r\n var ch = 0;\r\n\r\n if (showOutline)\r\n {\r\n // To make room for the grid lines (in case alpha < 1)\r\n cellWidthA--;\r\n cellHeightA--;\r\n\r\n if (cellWidthB === cellWidth)\r\n {\r\n cellWidthB--;\r\n }\r\n\r\n if (cellHeightB === cellHeight)\r\n {\r\n cellHeightB--;\r\n }\r\n }\r\n\r\n renderer.pipelines.preBatch(src);\r\n\r\n if (showCells && src.fillAlpha > 0)\r\n {\r\n fillTint = pipeline.fillTint;\r\n fillTintColor = Utils.getTintAppendFloatAlpha(src.fillColor, src.fillAlpha * alpha);\r\n\r\n fillTint.TL = fillTintColor;\r\n fillTint.TR = fillTintColor;\r\n fillTint.BL = fillTintColor;\r\n fillTint.BR = fillTintColor;\r\n\r\n for (y = 0; y < gridHeight; y++)\r\n {\r\n if (showAltCells)\r\n {\r\n r = y % 2;\r\n }\r\n\r\n for (x = 0; x < gridWidth; x++)\r\n {\r\n if (showAltCells && r)\r\n {\r\n r = 0;\r\n continue;\r\n }\r\n\r\n r++;\r\n\r\n cw = (x < gridWidth - 1) ? cellWidthA : cellWidthB;\r\n ch = (y < gridHeight - 1) ? cellHeightA : cellHeightB;\r\n\r\n pipeline.batchFillRect(\r\n x * cellWidth,\r\n y * cellHeight,\r\n cw,\r\n ch\r\n );\r\n }\r\n }\r\n }\r\n\r\n if (showAltCells && src.altFillAlpha > 0)\r\n {\r\n fillTint = pipeline.fillTint;\r\n fillTintColor = Utils.getTintAppendFloatAlpha(src.altFillColor, src.altFillAlpha * alpha);\r\n\r\n fillTint.TL = fillTintColor;\r\n fillTint.TR = fillTintColor;\r\n fillTint.BL = fillTintColor;\r\n fillTint.BR = fillTintColor;\r\n\r\n for (y = 0; y < gridHeight; y++)\r\n {\r\n if (showAltCells)\r\n {\r\n r = y % 2;\r\n }\r\n\r\n for (x = 0; x < gridWidth; x++)\r\n {\r\n if (showAltCells && !r)\r\n {\r\n r = 1;\r\n continue;\r\n }\r\n\r\n r = 0;\r\n\r\n cw = (x < gridWidth - 1) ? cellWidthA : cellWidthB;\r\n ch = (y < gridHeight - 1) ? cellHeightA : cellHeightB;\r\n\r\n pipeline.batchFillRect(\r\n x * cellWidth,\r\n y * cellHeight,\r\n cw,\r\n ch\r\n );\r\n }\r\n }\r\n }\r\n\r\n if (showOutline && src.outlineFillAlpha > 0)\r\n {\r\n var strokeTint = pipeline.strokeTint;\r\n var color = Utils.getTintAppendFloatAlpha(src.outlineFillColor, src.outlineFillAlpha * alpha);\r\n\r\n strokeTint.TL = color;\r\n strokeTint.TR = color;\r\n strokeTint.BL = color;\r\n strokeTint.BR = color;\r\n\r\n for (x = 1; x < gridWidth; x++)\r\n {\r\n var x1 = x * cellWidth;\r\n\r\n pipeline.batchLine(x1, 0, x1, height, 1, 1, 1, 0, false);\r\n }\r\n\r\n for (y = 1; y < gridHeight; y++)\r\n {\r\n var y1 = y * cellHeight;\r\n\r\n pipeline.batchLine(0, y1, width, y1, 1, 1, 1, 0, false);\r\n }\r\n }\r\n\r\n renderer.pipelines.postBatch(src);\r\n};\r\n\r\nmodule.exports = GridWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 61475:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar IsoBoxRender = __webpack_require__(99651);\r\nvar Class = __webpack_require__(83419);\r\nvar Shape = __webpack_require__(17803);\r\n\r\n/**\r\n * @classdesc\r\n * The IsoBox Shape is a Game Object that can be added to a Scene, Group or Container. You can\r\n * treat it like any other Game Object in your game, such as tweening it, scaling it, or enabling\r\n * it for input or physics. It provides a quick and easy way for you to render this shape in your\r\n * game without using a texture, while still taking advantage of being fully batched in WebGL.\r\n *\r\n * This shape supports only fill colors and cannot be stroked.\r\n *\r\n * An IsoBox is an 'isometric' rectangle. Each face of it has a different fill color. You can set\r\n * the color of the top, left and right faces of the rectangle respectively. You can also choose\r\n * which of the faces are rendered via the `showTop`, `showLeft` and `showRight` properties.\r\n *\r\n * You cannot view an IsoBox from under-neath, however you can change the 'angle' by setting\r\n * the `projection` property.\r\n *\r\n * @class IsoBox\r\n * @extends Phaser.GameObjects.Shape\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.13.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {number} [size=48] - The width of the iso box in pixels. The left and right faces will be exactly half this value.\r\n * @param {number} [height=32] - The height of the iso box. The left and right faces will be this tall. The overall height of the isobox will be this value plus half the `size` value.\r\n * @param {number} [fillTop=0xeeeeee] - The fill color of the top face of the iso box.\r\n * @param {number} [fillLeft=0x999999] - The fill color of the left face of the iso box.\r\n * @param {number} [fillRight=0xcccccc] - The fill color of the right face of the iso box.\r\n */\r\nvar IsoBox = new Class({\r\n\r\n Extends: Shape,\r\n\r\n Mixins: [\r\n IsoBoxRender\r\n ],\r\n\r\n initialize:\r\n\r\n function IsoBox (scene, x, y, size, height, fillTop, fillLeft, fillRight)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (size === undefined) { size = 48; }\r\n if (height === undefined) { height = 32; }\r\n if (fillTop === undefined) { fillTop = 0xeeeeee; }\r\n if (fillLeft === undefined) { fillLeft = 0x999999; }\r\n if (fillRight === undefined) { fillRight = 0xcccccc; }\r\n\r\n Shape.call(this, scene, 'IsoBox', null);\r\n\r\n /**\r\n * The projection level of the iso box. Change this to change the 'angle' at which you are looking at the box.\r\n *\r\n * @name Phaser.GameObjects.IsoBox#projection\r\n * @type {number}\r\n * @default 4\r\n * @since 3.13.0\r\n */\r\n this.projection = 4;\r\n\r\n /**\r\n * The color used to fill in the top of the iso box.\r\n *\r\n * @name Phaser.GameObjects.IsoBox#fillTop\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n this.fillTop = fillTop;\r\n\r\n /**\r\n * The color used to fill in the left-facing side of the iso box.\r\n *\r\n * @name Phaser.GameObjects.IsoBox#fillLeft\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n this.fillLeft = fillLeft;\r\n\r\n /**\r\n * The color used to fill in the right-facing side of the iso box.\r\n *\r\n * @name Phaser.GameObjects.IsoBox#fillRight\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n this.fillRight = fillRight;\r\n\r\n /**\r\n * Controls if the top-face of the iso box be rendered.\r\n *\r\n * @name Phaser.GameObjects.IsoBox#showTop\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.13.0\r\n */\r\n this.showTop = true;\r\n\r\n /**\r\n * Controls if the left-face of the iso box be rendered.\r\n *\r\n * @name Phaser.GameObjects.IsoBox#showLeft\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.13.0\r\n */\r\n this.showLeft = true;\r\n\r\n /**\r\n * Controls if the right-face of the iso box be rendered.\r\n *\r\n * @name Phaser.GameObjects.IsoBox#showRight\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.13.0\r\n */\r\n this.showRight = true;\r\n\r\n this.isFilled = true;\r\n\r\n this.setPosition(x, y);\r\n this.setSize(size, height);\r\n\r\n this.updateDisplayOrigin();\r\n },\r\n\r\n /**\r\n * Sets the projection level of the iso box. Change this to change the 'angle' at which you are looking at the box.\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.IsoBox#setProjection\r\n * @since 3.13.0\r\n *\r\n * @param {number} value - The value to set the projection to.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setProjection: function (value)\r\n {\r\n this.projection = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets which faces of the iso box will be rendered.\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.IsoBox#setFaces\r\n * @since 3.13.0\r\n *\r\n * @param {boolean} [showTop=true] - Show the top-face of the iso box.\r\n * @param {boolean} [showLeft=true] - Show the left-face of the iso box.\r\n * @param {boolean} [showRight=true] - Show the right-face of the iso box.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setFaces: function (showTop, showLeft, showRight)\r\n {\r\n if (showTop === undefined) { showTop = true; }\r\n if (showLeft === undefined) { showLeft = true; }\r\n if (showRight === undefined) { showRight = true; }\r\n\r\n this.showTop = showTop;\r\n this.showLeft = showLeft;\r\n this.showRight = showRight;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the fill colors for each face of the iso box.\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.IsoBox#setFillStyle\r\n * @since 3.13.0\r\n *\r\n * @param {number} [fillTop] - The color used to fill the top of the iso box.\r\n * @param {number} [fillLeft] - The color used to fill in the left-facing side of the iso box.\r\n * @param {number} [fillRight] - The color used to fill in the right-facing side of the iso box.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setFillStyle: function (fillTop, fillLeft, fillRight)\r\n {\r\n this.fillTop = fillTop;\r\n this.fillLeft = fillLeft;\r\n this.fillRight = fillRight;\r\n\r\n this.isFilled = true;\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = IsoBox;\r\n\n\n/***/ }),\n\n/***/ 11508:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar FillStyleCanvas = __webpack_require__(65960);\r\nvar SetTransform = __webpack_require__(20926);\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.IsoBox#renderCanvas\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.IsoBox} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar IsoBoxCanvasRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var ctx = renderer.currentContext;\r\n\r\n if (SetTransform(renderer, ctx, src, camera, parentMatrix) && src.isFilled)\r\n {\r\n var size = src.width;\r\n var height = src.height;\r\n\r\n var sizeA = size / 2;\r\n var sizeB = size / src.projection;\r\n\r\n // Top Face\r\n\r\n if (src.showTop)\r\n {\r\n FillStyleCanvas(ctx, src, src.fillTop);\r\n\r\n ctx.beginPath();\r\n\r\n ctx.moveTo(-sizeA, -height);\r\n ctx.lineTo(0, -sizeB - height);\r\n ctx.lineTo(sizeA, -height);\r\n ctx.lineTo(sizeA, -1);\r\n ctx.lineTo(0, sizeB - 1);\r\n ctx.lineTo(-sizeA, -1);\r\n ctx.lineTo(-sizeA, -height);\r\n\r\n ctx.fill();\r\n }\r\n\r\n // Left Face\r\n\r\n if (src.showLeft)\r\n {\r\n FillStyleCanvas(ctx, src, src.fillLeft);\r\n\r\n ctx.beginPath();\r\n\r\n ctx.moveTo(-sizeA, 0);\r\n ctx.lineTo(0, sizeB);\r\n ctx.lineTo(0, sizeB - height);\r\n ctx.lineTo(-sizeA, -height);\r\n ctx.lineTo(-sizeA, 0);\r\n\r\n ctx.fill();\r\n }\r\n\r\n // Right Face\r\n\r\n if (src.showRight)\r\n {\r\n FillStyleCanvas(ctx, src, src.fillRight);\r\n\r\n ctx.beginPath();\r\n\r\n ctx.moveTo(sizeA, 0);\r\n ctx.lineTo(0, sizeB);\r\n ctx.lineTo(0, sizeB - height);\r\n ctx.lineTo(sizeA, -height);\r\n ctx.lineTo(sizeA, 0);\r\n\r\n ctx.fill();\r\n }\r\n\r\n // Restore the context saved in SetTransform\r\n ctx.restore();\r\n }\r\n};\r\n\r\nmodule.exports = IsoBoxCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 3933:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GameObjectFactory = __webpack_require__(39429);\r\nvar IsoBox = __webpack_require__(61475);\r\n\r\n/**\r\n * Creates a new IsoBox Shape Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the IsoBox Game Object has been built into Phaser.\r\n *\r\n * The IsoBox Shape is a Game Object that can be added to a Scene, Group or Container. You can\r\n * treat it like any other Game Object in your game, such as tweening it, scaling it, or enabling\r\n * it for input or physics. It provides a quick and easy way for you to render this shape in your\r\n * game without using a texture, while still taking advantage of being fully batched in WebGL.\r\n *\r\n * This shape supports only fill colors and cannot be stroked.\r\n *\r\n * An IsoBox is an 'isometric' rectangle. Each face of it has a different fill color. You can set\r\n * the color of the top, left and right faces of the rectangle respectively. You can also choose\r\n * which of the faces are rendered via the `showTop`, `showLeft` and `showRight` properties.\r\n *\r\n * You cannot view an IsoBox from under-neath, however you can change the 'angle' by setting\r\n * the `projection` property.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#isobox\r\n * @since 3.13.0\r\n *\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {number} [size=48] - The width of the iso box in pixels. The left and right faces will be exactly half this value.\r\n * @param {number} [height=32] - The height of the iso box. The left and right faces will be this tall. The overall height of the isobox will be this value plus half the `size` value.\r\n * @param {number} [fillTop=0xeeeeee] - The fill color of the top face of the iso box.\r\n * @param {number} [fillLeft=0x999999] - The fill color of the left face of the iso box.\r\n * @param {number} [fillRight=0xcccccc] - The fill color of the right face of the iso box.\r\n *\r\n * @return {Phaser.GameObjects.IsoBox} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('isobox', function (x, y, size, height, fillTop, fillLeft, fillRight)\r\n{\r\n return this.displayList.add(new IsoBox(this.scene, x, y, size, height, fillTop, fillLeft, fillRight));\r\n});\r\n\n\n/***/ }),\n\n/***/ 99651:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(68149);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(11508);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 68149:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetCalcMatrix = __webpack_require__(91296);\r\nvar Utils = __webpack_require__(70554);\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.IsoBox#renderWebGL\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.IsoBox} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar IsoBoxWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var pipeline = renderer.pipelines.set(src.pipeline);\r\n\r\n var result = GetCalcMatrix(src, camera, parentMatrix);\r\n\r\n var calcMatrix = pipeline.calcMatrix.copyFrom(result.calc);\r\n\r\n var size = src.width;\r\n var height = src.height;\r\n\r\n var sizeA = size / 2;\r\n var sizeB = size / src.projection;\r\n\r\n var alpha = camera.alpha * src.alpha;\r\n\r\n if (!src.isFilled)\r\n {\r\n return;\r\n }\r\n\r\n var tint;\r\n\r\n var x0;\r\n var y0;\r\n\r\n var x1;\r\n var y1;\r\n\r\n var x2;\r\n var y2;\r\n\r\n var x3;\r\n var y3;\r\n\r\n\r\n renderer.pipelines.preBatch(src);\r\n\r\n // Top Face\r\n\r\n if (src.showTop)\r\n {\r\n tint = Utils.getTintAppendFloatAlpha(src.fillTop, alpha);\r\n\r\n x0 = calcMatrix.getX(-sizeA, -height);\r\n y0 = calcMatrix.getY(-sizeA, -height);\r\n\r\n x1 = calcMatrix.getX(0, -sizeB - height);\r\n y1 = calcMatrix.getY(0, -sizeB - height);\r\n\r\n x2 = calcMatrix.getX(sizeA, -height);\r\n y2 = calcMatrix.getY(sizeA, -height);\r\n\r\n x3 = calcMatrix.getX(0, sizeB - height);\r\n y3 = calcMatrix.getY(0, sizeB - height);\r\n\r\n pipeline.batchQuad(src, x0, y0, x1, y1, x2, y2, x3, y3, 0, 0, 1, 1, tint, tint, tint, tint, 2);\r\n }\r\n\r\n // Left Face\r\n\r\n if (src.showLeft)\r\n {\r\n tint = Utils.getTintAppendFloatAlpha(src.fillLeft, alpha);\r\n\r\n x0 = calcMatrix.getX(-sizeA, 0);\r\n y0 = calcMatrix.getY(-sizeA, 0);\r\n\r\n x1 = calcMatrix.getX(0, sizeB);\r\n y1 = calcMatrix.getY(0, sizeB);\r\n\r\n x2 = calcMatrix.getX(0, sizeB - height);\r\n y2 = calcMatrix.getY(0, sizeB - height);\r\n\r\n x3 = calcMatrix.getX(-sizeA, -height);\r\n y3 = calcMatrix.getY(-sizeA, -height);\r\n\r\n pipeline.batchQuad(src, x0, y0, x1, y1, x2, y2, x3, y3, 0, 0, 1, 1, tint, tint, tint, tint, 2);\r\n }\r\n\r\n // Right Face\r\n\r\n if (src.showRight)\r\n {\r\n tint = Utils.getTintAppendFloatAlpha(src.fillRight, alpha);\r\n\r\n x0 = calcMatrix.getX(sizeA, 0);\r\n y0 = calcMatrix.getY(sizeA, 0);\r\n\r\n x1 = calcMatrix.getX(0, sizeB);\r\n y1 = calcMatrix.getY(0, sizeB);\r\n\r\n x2 = calcMatrix.getX(0, sizeB - height);\r\n y2 = calcMatrix.getY(0, sizeB - height);\r\n\r\n x3 = calcMatrix.getX(sizeA, -height);\r\n y3 = calcMatrix.getY(sizeA, -height);\r\n\r\n pipeline.batchQuad(src, x0, y0, x1, y1, x2, y2, x3, y3, 0, 0, 1, 1, tint, tint, tint, tint, 2);\r\n }\r\n\r\n renderer.pipelines.postBatch(src);\r\n};\r\n\r\nmodule.exports = IsoBoxWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 16933:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar IsoTriangleRender = __webpack_require__(60561);\r\nvar Shape = __webpack_require__(17803);\r\n\r\n/**\r\n * @classdesc\r\n * The IsoTriangle Shape is a Game Object that can be added to a Scene, Group or Container. You can\r\n * treat it like any other Game Object in your game, such as tweening it, scaling it, or enabling\r\n * it for input or physics. It provides a quick and easy way for you to render this shape in your\r\n * game without using a texture, while still taking advantage of being fully batched in WebGL.\r\n *\r\n * This shape supports only fill colors and cannot be stroked.\r\n *\r\n * An IsoTriangle is an 'isometric' triangle. Think of it like a pyramid. Each face has a different\r\n * fill color. You can set the color of the top, left and right faces of the triangle respectively\r\n * You can also choose which of the faces are rendered via the `showTop`, `showLeft` and `showRight` properties.\r\n *\r\n * You cannot view an IsoTriangle from under-neath, however you can change the 'angle' by setting\r\n * the `projection` property. The `reversed` property controls if the IsoTriangle is rendered upside\r\n * down or not.\r\n *\r\n * @class IsoTriangle\r\n * @extends Phaser.GameObjects.Shape\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.13.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {number} [size=48] - The width of the iso triangle in pixels. The left and right faces will be exactly half this value.\r\n * @param {number} [height=32] - The height of the iso triangle. The left and right faces will be this tall. The overall height of the iso triangle will be this value plus half the `size` value.\r\n * @param {boolean} [reversed=false] - Is the iso triangle upside down?\r\n * @param {number} [fillTop=0xeeeeee] - The fill color of the top face of the iso triangle.\r\n * @param {number} [fillLeft=0x999999] - The fill color of the left face of the iso triangle.\r\n * @param {number} [fillRight=0xcccccc] - The fill color of the right face of the iso triangle.\r\n */\r\nvar IsoTriangle = new Class({\r\n\r\n Extends: Shape,\r\n\r\n Mixins: [\r\n IsoTriangleRender\r\n ],\r\n\r\n initialize:\r\n\r\n function IsoTriangle (scene, x, y, size, height, reversed, fillTop, fillLeft, fillRight)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (size === undefined) { size = 48; }\r\n if (height === undefined) { height = 32; }\r\n if (reversed === undefined) { reversed = false; }\r\n if (fillTop === undefined) { fillTop = 0xeeeeee; }\r\n if (fillLeft === undefined) { fillLeft = 0x999999; }\r\n if (fillRight === undefined) { fillRight = 0xcccccc; }\r\n\r\n Shape.call(this, scene, 'IsoTriangle', null);\r\n\r\n /**\r\n * The projection level of the iso box. Change this to change the 'angle' at which you are looking at the box.\r\n *\r\n * @name Phaser.GameObjects.IsoTriangle#projection\r\n * @type {number}\r\n * @default 4\r\n * @since 3.13.0\r\n */\r\n this.projection = 4;\r\n\r\n /**\r\n * The color used to fill in the top of the iso triangle. This is only used if the triangle is reversed.\r\n *\r\n * @name Phaser.GameObjects.IsoTriangle#fillTop\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n this.fillTop = fillTop;\r\n\r\n /**\r\n * The color used to fill in the left-facing side of the iso triangle.\r\n *\r\n * @name Phaser.GameObjects.IsoTriangle#fillLeft\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n this.fillLeft = fillLeft;\r\n\r\n /**\r\n * The color used to fill in the right-facing side of the iso triangle.\r\n *\r\n * @name Phaser.GameObjects.IsoTriangle#fillRight\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n this.fillRight = fillRight;\r\n\r\n /**\r\n * Controls if the top-face of the iso triangle be rendered.\r\n *\r\n * @name Phaser.GameObjects.IsoTriangle#showTop\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.13.0\r\n */\r\n this.showTop = true;\r\n\r\n /**\r\n * Controls if the left-face of the iso triangle be rendered.\r\n *\r\n * @name Phaser.GameObjects.IsoTriangle#showLeft\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.13.0\r\n */\r\n this.showLeft = true;\r\n\r\n /**\r\n * Controls if the right-face of the iso triangle be rendered.\r\n *\r\n * @name Phaser.GameObjects.IsoTriangle#showRight\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.13.0\r\n */\r\n this.showRight = true;\r\n\r\n /**\r\n * Sets if the iso triangle will be rendered upside down or not.\r\n *\r\n * @name Phaser.GameObjects.IsoTriangle#isReversed\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.13.0\r\n */\r\n this.isReversed = reversed;\r\n\r\n this.isFilled = true;\r\n\r\n this.setPosition(x, y);\r\n this.setSize(size, height);\r\n\r\n this.updateDisplayOrigin();\r\n },\r\n\r\n /**\r\n * Sets the projection level of the iso triangle. Change this to change the 'angle' at which you are looking at the pyramid.\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.IsoTriangle#setProjection\r\n * @since 3.13.0\r\n *\r\n * @param {number} value - The value to set the projection to.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setProjection: function (value)\r\n {\r\n this.projection = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets if the iso triangle will be rendered upside down or not.\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.IsoTriangle#setReversed\r\n * @since 3.13.0\r\n *\r\n * @param {boolean} reversed - Sets if the iso triangle will be rendered upside down or not.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setReversed: function (reversed)\r\n {\r\n this.isReversed = reversed;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets which faces of the iso triangle will be rendered.\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.IsoTriangle#setFaces\r\n * @since 3.13.0\r\n *\r\n * @param {boolean} [showTop=true] - Show the top-face of the iso triangle (only if `reversed` is true)\r\n * @param {boolean} [showLeft=true] - Show the left-face of the iso triangle.\r\n * @param {boolean} [showRight=true] - Show the right-face of the iso triangle.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setFaces: function (showTop, showLeft, showRight)\r\n {\r\n if (showTop === undefined) { showTop = true; }\r\n if (showLeft === undefined) { showLeft = true; }\r\n if (showRight === undefined) { showRight = true; }\r\n\r\n this.showTop = showTop;\r\n this.showLeft = showLeft;\r\n this.showRight = showRight;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the fill colors for each face of the iso triangle.\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.IsoTriangle#setFillStyle\r\n * @since 3.13.0\r\n *\r\n * @param {number} [fillTop] - The color used to fill the top of the iso triangle.\r\n * @param {number} [fillLeft] - The color used to fill in the left-facing side of the iso triangle.\r\n * @param {number} [fillRight] - The color used to fill in the right-facing side of the iso triangle.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setFillStyle: function (fillTop, fillLeft, fillRight)\r\n {\r\n this.fillTop = fillTop;\r\n this.fillLeft = fillLeft;\r\n this.fillRight = fillRight;\r\n\r\n this.isFilled = true;\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = IsoTriangle;\r\n\n\n/***/ }),\n\n/***/ 79590:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar FillStyleCanvas = __webpack_require__(65960);\r\nvar SetTransform = __webpack_require__(20926);\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.IsoTriangle#renderCanvas\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.IsoTriangle} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar IsoTriangleCanvasRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var ctx = renderer.currentContext;\r\n\r\n if (SetTransform(renderer, ctx, src, camera, parentMatrix) && src.isFilled)\r\n {\r\n var size = src.width;\r\n var height = src.height;\r\n\r\n var sizeA = size / 2;\r\n var sizeB = size / src.projection;\r\n\r\n var reversed = src.isReversed;\r\n\r\n // Top Face\r\n\r\n if (src.showTop && reversed)\r\n {\r\n FillStyleCanvas(ctx, src, src.fillTop);\r\n\r\n ctx.beginPath();\r\n\r\n ctx.moveTo(-sizeA, -height);\r\n ctx.lineTo(0, -sizeB - height);\r\n ctx.lineTo(sizeA, -height);\r\n ctx.lineTo(0, sizeB - height);\r\n\r\n ctx.fill();\r\n }\r\n\r\n // Left Face\r\n\r\n if (src.showLeft)\r\n {\r\n FillStyleCanvas(ctx, src, src.fillLeft);\r\n\r\n ctx.beginPath();\r\n\r\n if (reversed)\r\n {\r\n ctx.moveTo(-sizeA, -height);\r\n ctx.lineTo(0, sizeB);\r\n ctx.lineTo(0, sizeB - height);\r\n }\r\n else\r\n {\r\n ctx.moveTo(-sizeA, 0);\r\n ctx.lineTo(0, sizeB);\r\n ctx.lineTo(0, sizeB - height);\r\n }\r\n\r\n ctx.fill();\r\n }\r\n\r\n // Right Face\r\n\r\n if (src.showRight)\r\n {\r\n FillStyleCanvas(ctx, src, src.fillRight);\r\n\r\n ctx.beginPath();\r\n\r\n if (reversed)\r\n {\r\n ctx.moveTo(sizeA, -height);\r\n ctx.lineTo(0, sizeB);\r\n ctx.lineTo(0, sizeB - height);\r\n }\r\n else\r\n {\r\n ctx.moveTo(sizeA, 0);\r\n ctx.lineTo(0, sizeB);\r\n ctx.lineTo(0, sizeB - height);\r\n }\r\n\r\n ctx.fill();\r\n }\r\n\r\n // Restore the context saved in SetTransform\r\n ctx.restore();\r\n }\r\n};\r\n\r\nmodule.exports = IsoTriangleCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 49803:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GameObjectFactory = __webpack_require__(39429);\r\nvar IsoTriangle = __webpack_require__(16933);\r\n\r\n/**\r\n * Creates a new IsoTriangle Shape Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the IsoTriangle Game Object has been built into Phaser.\r\n *\r\n * The IsoTriangle Shape is a Game Object that can be added to a Scene, Group or Container. You can\r\n * treat it like any other Game Object in your game, such as tweening it, scaling it, or enabling\r\n * it for input or physics. It provides a quick and easy way for you to render this shape in your\r\n * game without using a texture, while still taking advantage of being fully batched in WebGL.\r\n *\r\n * This shape supports only fill colors and cannot be stroked.\r\n *\r\n * An IsoTriangle is an 'isometric' triangle. Think of it like a pyramid. Each face has a different\r\n * fill color. You can set the color of the top, left and right faces of the triangle respectively\r\n * You can also choose which of the faces are rendered via the `showTop`, `showLeft` and `showRight` properties.\r\n *\r\n * You cannot view an IsoTriangle from under-neath, however you can change the 'angle' by setting\r\n * the `projection` property. The `reversed` property controls if the IsoTriangle is rendered upside\r\n * down or not.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#isotriangle\r\n * @since 3.13.0\r\n *\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {number} [size=48] - The width of the iso triangle in pixels. The left and right faces will be exactly half this value.\r\n * @param {number} [height=32] - The height of the iso triangle. The left and right faces will be this tall. The overall height of the iso triangle will be this value plus half the `size` value.\r\n * @param {boolean} [reversed=false] - Is the iso triangle upside down?\r\n * @param {number} [fillTop=0xeeeeee] - The fill color of the top face of the iso triangle.\r\n * @param {number} [fillLeft=0x999999] - The fill color of the left face of the iso triangle.\r\n * @param {number} [fillRight=0xcccccc] - The fill color of the right face of the iso triangle.\r\n *\r\n * @return {Phaser.GameObjects.IsoTriangle} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('isotriangle', function (x, y, size, height, reversed, fillTop, fillLeft, fillRight)\r\n{\r\n return this.displayList.add(new IsoTriangle(this.scene, x, y, size, height, reversed, fillTop, fillLeft, fillRight));\r\n});\r\n\n\n/***/ }),\n\n/***/ 60561:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(51503);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(79590);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 51503:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetCalcMatrix = __webpack_require__(91296);\r\nvar Utils = __webpack_require__(70554);\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.IsoTriangle#renderWebGL\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.IsoTriangle} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar IsoTriangleWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var pipeline = renderer.pipelines.set(src.pipeline);\r\n\r\n var result = GetCalcMatrix(src, camera, parentMatrix);\r\n\r\n var calcMatrix = pipeline.calcMatrix.copyFrom(result.calc);\r\n\r\n var size = src.width;\r\n var height = src.height;\r\n\r\n var sizeA = size / 2;\r\n var sizeB = size / src.projection;\r\n\r\n var reversed = src.isReversed;\r\n\r\n var alpha = camera.alpha * src.alpha;\r\n\r\n if (!src.isFilled)\r\n {\r\n return;\r\n }\r\n\r\n renderer.pipelines.preBatch(src);\r\n\r\n var tint;\r\n\r\n var x0;\r\n var y0;\r\n\r\n var x1;\r\n var y1;\r\n\r\n var x2;\r\n var y2;\r\n\r\n // Top Face\r\n\r\n if (src.showTop && reversed)\r\n {\r\n tint = Utils.getTintAppendFloatAlpha(src.fillTop, alpha);\r\n\r\n x0 = calcMatrix.getX(-sizeA, -height);\r\n y0 = calcMatrix.getY(-sizeA, -height);\r\n\r\n x1 = calcMatrix.getX(0, -sizeB - height);\r\n y1 = calcMatrix.getY(0, -sizeB - height);\r\n\r\n x2 = calcMatrix.getX(sizeA, -height);\r\n y2 = calcMatrix.getY(sizeA, -height);\r\n\r\n var x3 = calcMatrix.getX(0, sizeB - height);\r\n var y3 = calcMatrix.getY(0, sizeB - height);\r\n\r\n pipeline.batchQuad(src, x0, y0, x1, y1, x2, y2, x3, y3, 0, 0, 1, 1, tint, tint, tint, tint, 2);\r\n }\r\n\r\n // Left Face\r\n\r\n if (src.showLeft)\r\n {\r\n tint = Utils.getTintAppendFloatAlpha(src.fillLeft, alpha);\r\n\r\n if (reversed)\r\n {\r\n x0 = calcMatrix.getX(-sizeA, -height);\r\n y0 = calcMatrix.getY(-sizeA, -height);\r\n\r\n x1 = calcMatrix.getX(0, sizeB);\r\n y1 = calcMatrix.getY(0, sizeB);\r\n\r\n x2 = calcMatrix.getX(0, sizeB - height);\r\n y2 = calcMatrix.getY(0, sizeB - height);\r\n }\r\n else\r\n {\r\n x0 = calcMatrix.getX(-sizeA, 0);\r\n y0 = calcMatrix.getY(-sizeA, 0);\r\n\r\n x1 = calcMatrix.getX(0, sizeB);\r\n y1 = calcMatrix.getY(0, sizeB);\r\n\r\n x2 = calcMatrix.getX(0, sizeB - height);\r\n y2 = calcMatrix.getY(0, sizeB - height);\r\n }\r\n\r\n pipeline.batchTri(src, x0, y0, x1, y1, x2, y2, 0, 0, 1, 1, tint, tint, tint, 2);\r\n }\r\n\r\n // Right Face\r\n\r\n if (src.showRight)\r\n {\r\n tint = Utils.getTintAppendFloatAlpha(src.fillRight, alpha);\r\n\r\n if (reversed)\r\n {\r\n x0 = calcMatrix.getX(sizeA, -height);\r\n y0 = calcMatrix.getY(sizeA, -height);\r\n\r\n x1 = calcMatrix.getX(0, sizeB);\r\n y1 = calcMatrix.getY(0, sizeB);\r\n\r\n x2 = calcMatrix.getX(0, sizeB - height);\r\n y2 = calcMatrix.getY(0, sizeB - height);\r\n }\r\n else\r\n {\r\n x0 = calcMatrix.getX(sizeA, 0);\r\n y0 = calcMatrix.getY(sizeA, 0);\r\n\r\n x1 = calcMatrix.getX(0, sizeB);\r\n y1 = calcMatrix.getY(0, sizeB);\r\n\r\n x2 = calcMatrix.getX(0, sizeB - height);\r\n y2 = calcMatrix.getY(0, sizeB - height);\r\n }\r\n\r\n pipeline.batchTri(src, x0, y0, x1, y1, x2, y2, 0, 0, 1, 1, tint, tint, tint, 2);\r\n }\r\n\r\n renderer.pipelines.postBatch(src);\r\n};\r\n\r\nmodule.exports = IsoTriangleWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 57847:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Shape = __webpack_require__(17803);\r\nvar GeomLine = __webpack_require__(23031);\r\nvar LineRender = __webpack_require__(36823);\r\n\r\n/**\r\n * @classdesc\r\n * The Line Shape is a Game Object that can be added to a Scene, Group or Container. You can\r\n * treat it like any other Game Object in your game, such as tweening it, scaling it, or enabling\r\n * it for input or physics. It provides a quick and easy way for you to render this shape in your\r\n * game without using a texture, while still taking advantage of being fully batched in WebGL.\r\n *\r\n * This shape supports only stroke colors and cannot be filled.\r\n *\r\n * A Line Shape allows you to draw a line between two points in your game. You can control the\r\n * stroke color and thickness of the line. In WebGL only you can also specify a different\r\n * thickness for the start and end of the line, allowing you to render lines that taper-off.\r\n *\r\n * If you need to draw multiple lines in a sequence you may wish to use the Polygon Shape instead.\r\n *\r\n * Be aware that as with all Game Objects the default origin is 0.5. If you need to draw a Line\r\n * between two points and want the x1/y1 values to match the x/y values, then set the origin to 0.\r\n *\r\n * @class Line\r\n * @extends Phaser.GameObjects.Shape\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.13.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {number} [x1=0] - The horizontal position of the start of the line.\r\n * @param {number} [y1=0] - The vertical position of the start of the line.\r\n * @param {number} [x2=128] - The horizontal position of the end of the line.\r\n * @param {number} [y2=0] - The vertical position of the end of the line.\r\n * @param {number} [strokeColor] - The color the line will be drawn in, i.e. 0xff0000 for red.\r\n * @param {number} [strokeAlpha] - The alpha the line will be drawn in. You can also set the alpha of the overall Shape using its `alpha` property.\r\n */\r\nvar Line = new Class({\r\n\r\n Extends: Shape,\r\n\r\n Mixins: [\r\n LineRender\r\n ],\r\n\r\n initialize:\r\n\r\n function Line (scene, x, y, x1, y1, x2, y2, strokeColor, strokeAlpha)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (x1 === undefined) { x1 = 0; }\r\n if (y1 === undefined) { y1 = 0; }\r\n if (x2 === undefined) { x2 = 128; }\r\n if (y2 === undefined) { y2 = 0; }\r\n\r\n Shape.call(this, scene, 'Line', new GeomLine(x1, y1, x2, y2));\r\n\r\n var width = Math.max(1, this.geom.right - this.geom.left);\r\n var height = Math.max(1, this.geom.bottom - this.geom.top);\r\n\r\n /**\r\n * The width (or thickness) of the line.\r\n * See the setLineWidth method for extra details on changing this on WebGL.\r\n *\r\n * @name Phaser.GameObjects.Line#lineWidth\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n this.lineWidth = 1;\r\n\r\n /**\r\n * Private internal value. Holds the start width of the line.\r\n *\r\n * @name Phaser.GameObjects.Line#_startWidth\r\n * @type {number}\r\n * @private\r\n * @since 3.13.0\r\n */\r\n this._startWidth = 1;\r\n\r\n /**\r\n * Private internal value. Holds the end width of the line.\r\n *\r\n * @name Phaser.GameObjects.Line#_endWidth\r\n * @type {number}\r\n * @private\r\n * @since 3.13.0\r\n */\r\n this._endWidth = 1;\r\n\r\n this.setPosition(x, y);\r\n this.setSize(width, height);\r\n\r\n if (strokeColor !== undefined)\r\n {\r\n this.setStrokeStyle(1, strokeColor, strokeAlpha);\r\n }\r\n\r\n this.updateDisplayOrigin();\r\n },\r\n\r\n /**\r\n * Sets the width of the line.\r\n *\r\n * When using the WebGL renderer you can have different start and end widths.\r\n * When using the Canvas renderer only the `startWidth` value is used. The `endWidth` is ignored.\r\n *\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.Line#setLineWidth\r\n * @since 3.13.0\r\n *\r\n * @param {number} startWidth - The start width of the line.\r\n * @param {number} [endWidth] - The end width of the line. Only used in WebGL.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setLineWidth: function (startWidth, endWidth)\r\n {\r\n if (endWidth === undefined) { endWidth = startWidth; }\r\n\r\n this._startWidth = startWidth;\r\n this._endWidth = endWidth;\r\n\r\n this.lineWidth = startWidth;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the start and end coordinates of this Line.\r\n *\r\n * @method Phaser.GameObjects.Line#setTo\r\n * @since 3.13.0\r\n *\r\n * @param {number} [x1=0] - The horizontal position of the start of the line.\r\n * @param {number} [y1=0] - The vertical position of the start of the line.\r\n * @param {number} [x2=0] - The horizontal position of the end of the line.\r\n * @param {number} [y2=0] - The vertical position of the end of the line.\r\n *\r\n * @return {this} This Line object.\r\n */\r\n setTo: function (x1, y1, x2, y2)\r\n {\r\n this.geom.setTo(x1, y1, x2, y2);\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Line;\r\n\n\n/***/ }),\n\n/***/ 17440:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar LineStyleCanvas = __webpack_require__(75177);\r\nvar SetTransform = __webpack_require__(20926);\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Line#renderCanvas\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.Line} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar LineCanvasRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var ctx = renderer.currentContext;\r\n\r\n if (SetTransform(renderer, ctx, src, camera, parentMatrix))\r\n {\r\n var dx = src._displayOriginX;\r\n var dy = src._displayOriginY;\r\n\r\n if (src.isStroked)\r\n {\r\n LineStyleCanvas(ctx, src);\r\n\r\n ctx.beginPath();\r\n\r\n ctx.moveTo(src.geom.x1 - dx, src.geom.y1 - dy);\r\n ctx.lineTo(src.geom.x2 - dx, src.geom.y2 - dy);\r\n\r\n ctx.stroke();\r\n }\r\n\r\n // Restore the context saved in SetTransform\r\n ctx.restore();\r\n }\r\n};\r\n\r\nmodule.exports = LineCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 2481:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GameObjectFactory = __webpack_require__(39429);\r\nvar Line = __webpack_require__(57847);\r\n\r\n/**\r\n * Creates a new Line Shape Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Line Game Object has been built into Phaser.\r\n *\r\n * The Line Shape is a Game Object that can be added to a Scene, Group or Container. You can\r\n * treat it like any other Game Object in your game, such as tweening it, scaling it, or enabling\r\n * it for input or physics. It provides a quick and easy way for you to render this shape in your\r\n * game without using a texture, while still taking advantage of being fully batched in WebGL.\r\n *\r\n * This shape supports only stroke colors and cannot be filled.\r\n *\r\n * A Line Shape allows you to draw a line between two points in your game. You can control the\r\n * stroke color and thickness of the line. In WebGL only you can also specify a different\r\n * thickness for the start and end of the line, allowing you to render lines that taper-off.\r\n *\r\n * If you need to draw multiple lines in a sequence you may wish to use the Polygon Shape instead.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#line\r\n * @since 3.13.0\r\n *\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {number} [x1=0] - The horizontal position of the start of the line.\r\n * @param {number} [y1=0] - The vertical position of the start of the line.\r\n * @param {number} [x2=128] - The horizontal position of the end of the line.\r\n * @param {number} [y2=0] - The vertical position of the end of the line.\r\n * @param {number} [strokeColor] - The color the line will be drawn in, i.e. 0xff0000 for red.\r\n * @param {number} [strokeAlpha] - The alpha the line will be drawn in. You can also set the alpha of the overall Shape using its `alpha` property.\r\n *\r\n * @return {Phaser.GameObjects.Line} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('line', function (x, y, x1, y1, x2, y2, strokeColor, strokeAlpha)\r\n{\r\n return this.displayList.add(new Line(this.scene, x, y, x1, y1, x2, y2, strokeColor, strokeAlpha));\r\n});\r\n\n\n/***/ }),\n\n/***/ 36823:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(77385);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(17440);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 77385:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetCalcMatrix = __webpack_require__(91296);\r\nvar Utils = __webpack_require__(70554);\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Line#renderWebGL\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Line} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar LineWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var pipeline = renderer.pipelines.set(src.pipeline);\r\n\r\n var result = GetCalcMatrix(src, camera, parentMatrix);\r\n\r\n pipeline.calcMatrix.copyFrom(result.calc);\r\n\r\n var dx = src._displayOriginX;\r\n var dy = src._displayOriginY;\r\n var alpha = camera.alpha * src.alpha;\r\n\r\n renderer.pipelines.preBatch(src);\r\n\r\n if (src.isStroked)\r\n {\r\n var strokeTint = pipeline.strokeTint;\r\n var color = Utils.getTintAppendFloatAlpha(src.strokeColor, src.strokeAlpha * alpha);\r\n\r\n strokeTint.TL = color;\r\n strokeTint.TR = color;\r\n strokeTint.BL = color;\r\n strokeTint.BR = color;\r\n\r\n pipeline.batchLine(\r\n src.geom.x1 - dx,\r\n src.geom.y1 - dy,\r\n src.geom.x2 - dx,\r\n src.geom.y2 - dy,\r\n src._startWidth / 2,\r\n src._endWidth / 2,\r\n 1,\r\n 0,\r\n false,\r\n result.sprite,\r\n result.camera\r\n );\r\n }\r\n\r\n renderer.pipelines.postBatch(src);\r\n};\r\n\r\nmodule.exports = LineWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 24949:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PolygonRender = __webpack_require__(90273);\r\nvar Class = __webpack_require__(83419);\r\nvar Earcut = __webpack_require__(94811);\r\nvar GetAABB = __webpack_require__(13829);\r\nvar GeomPolygon = __webpack_require__(25717);\r\nvar Shape = __webpack_require__(17803);\r\nvar Smooth = __webpack_require__(5469);\r\n\r\n/**\r\n * @classdesc\r\n * The Polygon Shape is a Game Object that can be added to a Scene, Group or Container. You can\r\n * treat it like any other Game Object in your game, such as tweening it, scaling it, or enabling\r\n * it for input or physics. It provides a quick and easy way for you to render this shape in your\r\n * game without using a texture, while still taking advantage of being fully batched in WebGL.\r\n *\r\n * This shape supports both fill and stroke colors.\r\n *\r\n * The Polygon Shape is created by providing a list of points, which are then used to create an\r\n * internal Polygon geometry object. The points can be set from a variety of formats:\r\n *\r\n * - A string containing paired values separated by a single space: `'40 0 40 20 100 20 100 80 40 80 40 100 0 50'`\r\n * - An array of Point or Vector2 objects: `[new Phaser.Math.Vector2(x1, y1), ...]`\r\n * - An array of objects with public x/y properties: `[obj1, obj2, ...]`\r\n * - An array of paired numbers that represent point coordinates: `[x1,y1, x2,y2, ...]`\r\n * - An array of arrays with two elements representing x/y coordinates: `[[x1, y1], [x2, y2], ...]`\r\n *\r\n * By default the `x` and `y` coordinates of this Shape refer to the center of it. However, depending\r\n * on the coordinates of the points provided, the final shape may be rendered offset from its origin.\r\n *\r\n * Note: The method `getBounds` will return incorrect bounds if any of the points in the Polygon are negative.\r\n * If this is the case, please use the function `Phaser.Geom.Polygon.GetAABB(polygon.geom)` instead and then\r\n * adjust the returned Rectangle position accordingly.\r\n *\r\n * @class Polygon\r\n * @extends Phaser.GameObjects.Shape\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.13.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {any} [points] - The points that make up the polygon.\r\n * @param {number} [fillColor] - The color the polygon will be filled with, i.e. 0xff0000 for red.\r\n * @param {number} [fillAlpha] - The alpha the polygon will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.\r\n */\r\nvar Polygon = new Class({\r\n\r\n Extends: Shape,\r\n\r\n Mixins: [\r\n PolygonRender\r\n ],\r\n\r\n initialize:\r\n\r\n function Polygon (scene, x, y, points, fillColor, fillAlpha)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n\r\n Shape.call(this, scene, 'Polygon', new GeomPolygon(points));\r\n\r\n var bounds = GetAABB(this.geom);\r\n\r\n this.setPosition(x, y);\r\n this.setSize(bounds.width, bounds.height);\r\n\r\n if (fillColor !== undefined)\r\n {\r\n this.setFillStyle(fillColor, fillAlpha);\r\n }\r\n\r\n this.updateDisplayOrigin();\r\n this.updateData();\r\n },\r\n\r\n /**\r\n * Smooths the polygon over the number of iterations specified.\r\n * The base polygon data will be updated and replaced with the smoothed values.\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.Polygon#smooth\r\n * @since 3.13.0\r\n *\r\n * @param {number} [iterations=1] - The number of times to apply the polygon smoothing.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n smooth: function (iterations)\r\n {\r\n if (iterations === undefined) { iterations = 1; }\r\n\r\n for (var i = 0; i < iterations; i++)\r\n {\r\n Smooth(this.geom);\r\n }\r\n\r\n return this.updateData();\r\n },\r\n\r\n /**\r\n * Sets this Polygon to the given points.\r\n *\r\n * The points can be set from a variety of formats:\r\n *\r\n * - A string containing paired values separated by a single space: `'40 0 40 20 100 20 100 80 40 80 40 100 0 50'`\r\n * - An array of Point objects: `[new Phaser.Point(x1, y1), ...]`\r\n * - An array of objects with public x/y properties: `[obj1, obj2, ...]`\r\n * - An array of paired numbers that represent point coordinates: `[x1,y1, x2,y2, ...]`\r\n * - An array of arrays with two elements representing x/y coordinates: `[[x1, y1], [x2, y2], ...]`\r\n *\r\n * Calling this method will reset the size (width, height) and display origin of this Shape.\r\n *\r\n * It also runs both GetAABB and EarCut on the given points, so please be careful not to do this\r\n * at a high frequency, or with too many points.\r\n *\r\n * @method Phaser.GameObjects.Polygon#setTo\r\n * @since 3.60.0\r\n *\r\n * @param {(string|number[]|Phaser.Types.Math.Vector2Like[])} [points] - Points defining the perimeter of this polygon. Please check function description above for the different supported formats.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setTo: function (points)\r\n {\r\n this.geom.setTo(points);\r\n\r\n var bounds = GetAABB(this.geom);\r\n\r\n this.setSize(bounds.width, bounds.height);\r\n\r\n this.updateDisplayOrigin();\r\n\r\n return this.updateData();\r\n },\r\n\r\n /**\r\n * Internal method that updates the data and path values.\r\n *\r\n * @method Phaser.GameObjects.Polygon#updateData\r\n * @private\r\n * @since 3.13.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n updateData: function ()\r\n {\r\n var path = [];\r\n var points = this.geom.points;\r\n\r\n for (var i = 0; i < points.length; i++)\r\n {\r\n path.push(points[i].x, points[i].y);\r\n }\r\n\r\n path.push(points[0].x, points[0].y);\r\n\r\n this.pathIndexes = Earcut(path);\r\n this.pathData = path;\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Polygon;\r\n\n\n/***/ }),\n\n/***/ 38710:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar FillStyleCanvas = __webpack_require__(65960);\r\nvar LineStyleCanvas = __webpack_require__(75177);\r\nvar SetTransform = __webpack_require__(20926);\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Polygon#renderCanvas\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.Polygon} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar PolygonCanvasRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var ctx = renderer.currentContext;\r\n\r\n if (SetTransform(renderer, ctx, src, camera, parentMatrix))\r\n {\r\n var dx = src._displayOriginX;\r\n var dy = src._displayOriginY;\r\n\r\n var path = src.pathData;\r\n var pathLength = path.length - 1;\r\n\r\n var px1 = path[0] - dx;\r\n var py1 = path[1] - dy;\r\n\r\n ctx.beginPath();\r\n\r\n ctx.moveTo(px1, py1);\r\n\r\n if (!src.closePath)\r\n {\r\n pathLength -= 2;\r\n }\r\n\r\n for (var i = 2; i < pathLength; i += 2)\r\n {\r\n var px2 = path[i] - dx;\r\n var py2 = path[i + 1] - dy;\r\n\r\n ctx.lineTo(px2, py2);\r\n }\r\n\r\n if (src.closePath)\r\n {\r\n ctx.closePath();\r\n }\r\n\r\n if (src.isFilled)\r\n {\r\n FillStyleCanvas(ctx, src);\r\n\r\n ctx.fill();\r\n }\r\n\r\n if (src.isStroked)\r\n {\r\n LineStyleCanvas(ctx, src);\r\n\r\n ctx.stroke();\r\n }\r\n\r\n // Restore the context saved in SetTransform\r\n ctx.restore();\r\n }\r\n};\r\n\r\nmodule.exports = PolygonCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 64827:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GameObjectFactory = __webpack_require__(39429);\r\nvar Polygon = __webpack_require__(24949);\r\n\r\n/**\r\n * Creates a new Polygon Shape Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Polygon Game Object has been built into Phaser.\r\n *\r\n * The Polygon Shape is a Game Object that can be added to a Scene, Group or Container. You can\r\n * treat it like any other Game Object in your game, such as tweening it, scaling it, or enabling\r\n * it for input or physics. It provides a quick and easy way for you to render this shape in your\r\n * game without using a texture, while still taking advantage of being fully batched in WebGL.\r\n *\r\n * This shape supports both fill and stroke colors.\r\n *\r\n * The Polygon Shape is created by providing a list of points, which are then used to create an\r\n * internal Polygon geometry object. The points can be set from a variety of formats:\r\n *\r\n * - An array of Point or Vector2 objects: `[new Phaser.Math.Vector2(x1, y1), ...]`\r\n * - An array of objects with public x/y properties: `[obj1, obj2, ...]`\r\n * - An array of paired numbers that represent point coordinates: `[x1,y1, x2,y2, ...]`\r\n * - An array of arrays with two elements representing x/y coordinates: `[[x1, y1], [x2, y2], ...]`\r\n *\r\n * By default the `x` and `y` coordinates of this Shape refer to the center of it. However, depending\r\n * on the coordinates of the points provided, the final shape may be rendered offset from its origin.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#polygon\r\n * @since 3.13.0\r\n *\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {any} [points] - The points that make up the polygon.\r\n * @param {number} [fillColor] - The color the polygon will be filled with, i.e. 0xff0000 for red.\r\n * @param {number} [fillAlpha] - The alpha the polygon will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.\r\n *\r\n * @return {Phaser.GameObjects.Polygon} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('polygon', function (x, y, points, fillColor, fillAlpha)\r\n{\r\n return this.displayList.add(new Polygon(this.scene, x, y, points, fillColor, fillAlpha));\r\n});\r\n\n\n/***/ }),\n\n/***/ 90273:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(73695);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(38710);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 73695:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar FillPathWebGL = __webpack_require__(10441);\r\nvar GetCalcMatrix = __webpack_require__(91296);\r\nvar StrokePathWebGL = __webpack_require__(34682);\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Polygon#renderWebGL\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Polygon} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar PolygonWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var pipeline = renderer.pipelines.set(src.pipeline);\r\n\r\n var result = GetCalcMatrix(src, camera, parentMatrix);\r\n\r\n var calcMatrix = pipeline.calcMatrix.copyFrom(result.calc);\r\n\r\n var dx = src._displayOriginX;\r\n var dy = src._displayOriginY;\r\n\r\n var alpha = camera.alpha * src.alpha;\r\n\r\n renderer.pipelines.preBatch(src);\r\n\r\n if (src.isFilled)\r\n {\r\n FillPathWebGL(pipeline, calcMatrix, src, alpha, dx, dy);\r\n }\r\n\r\n if (src.isStroked)\r\n {\r\n StrokePathWebGL(pipeline, src, alpha, dx, dy);\r\n }\r\n\r\n renderer.pipelines.postBatch(src);\r\n};\r\n\r\nmodule.exports = PolygonWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 74561:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar GeomRectangle = __webpack_require__(87841);\r\nvar Shape = __webpack_require__(17803);\r\nvar RectangleRender = __webpack_require__(95597);\r\n\r\n/**\r\n * @classdesc\r\n * The Rectangle Shape is a Game Object that can be added to a Scene, Group or Container. You can\r\n * treat it like any other Game Object in your game, such as tweening it, scaling it, or enabling\r\n * it for input or physics. It provides a quick and easy way for you to render this shape in your\r\n * game without using a texture, while still taking advantage of being fully batched in WebGL.\r\n *\r\n * This shape supports both fill and stroke colors.\r\n *\r\n * You can change the size of the rectangle by changing the `width` and `height` properties.\r\n *\r\n * @class Rectangle\r\n * @extends Phaser.GameObjects.Shape\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.13.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {number} [width=128] - The width of the rectangle.\r\n * @param {number} [height=128] - The height of the rectangle.\r\n * @param {number} [fillColor] - The color the rectangle will be filled with, i.e. 0xff0000 for red.\r\n * @param {number} [fillAlpha] - The alpha the rectangle will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.\r\n */\r\nvar Rectangle = new Class({\r\n\r\n Extends: Shape,\r\n\r\n Mixins: [\r\n RectangleRender\r\n ],\r\n\r\n initialize:\r\n\r\n function Rectangle (scene, x, y, width, height, fillColor, fillAlpha)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (width === undefined) { width = 128; }\r\n if (height === undefined) { height = 128; }\r\n\r\n Shape.call(this, scene, 'Rectangle', new GeomRectangle(0, 0, width, height));\r\n\r\n this.setPosition(x, y);\r\n this.setSize(width, height);\r\n\r\n if (fillColor !== undefined)\r\n {\r\n this.setFillStyle(fillColor, fillAlpha);\r\n }\r\n\r\n this.updateDisplayOrigin();\r\n this.updateData();\r\n },\r\n\r\n /**\r\n * Sets the internal size of this Rectangle, as used for frame or physics body creation.\r\n *\r\n * If you have assigned a custom input hit area for this Rectangle, changing the Rectangle size will _not_ change the\r\n * size of the hit area. To do this you should adjust the `input.hitArea` object directly.\r\n *\r\n * @method Phaser.GameObjects.Rectangle#setSize\r\n * @since 3.13.0\r\n *\r\n * @param {number} width - The width of this Game Object.\r\n * @param {number} height - The height of this Game Object.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setSize: function (width, height)\r\n {\r\n this.width = width;\r\n this.height = height;\r\n\r\n this.geom.setSize(width, height);\r\n\r\n this.updateData();\r\n\r\n this.updateDisplayOrigin();\r\n\r\n var input = this.input;\r\n\r\n if (input && !input.customHitArea)\r\n {\r\n input.hitArea.width = width;\r\n input.hitArea.height = height;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal method that updates the data and path values.\r\n *\r\n * @method Phaser.GameObjects.Rectangle#updateData\r\n * @private\r\n * @since 3.13.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n updateData: function ()\r\n {\r\n var path = [];\r\n var rect = this.geom;\r\n var line = this._tempLine;\r\n\r\n rect.getLineA(line);\r\n\r\n path.push(line.x1, line.y1, line.x2, line.y2);\r\n\r\n rect.getLineB(line);\r\n\r\n path.push(line.x2, line.y2);\r\n\r\n rect.getLineC(line);\r\n\r\n path.push(line.x2, line.y2);\r\n\r\n rect.getLineD(line);\r\n\r\n path.push(line.x2, line.y2);\r\n\r\n this.pathData = path;\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Rectangle;\r\n\n\n/***/ }),\n\n/***/ 48682:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar FillStyleCanvas = __webpack_require__(65960);\r\nvar LineStyleCanvas = __webpack_require__(75177);\r\nvar SetTransform = __webpack_require__(20926);\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Rectangle#renderCanvas\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.Rectangle} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar RectangleCanvasRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var ctx = renderer.currentContext;\r\n\r\n if (SetTransform(renderer, ctx, src, camera, parentMatrix))\r\n {\r\n var dx = src._displayOriginX;\r\n var dy = src._displayOriginY;\r\n\r\n if (src.isFilled)\r\n {\r\n FillStyleCanvas(ctx, src);\r\n\r\n ctx.fillRect(\r\n -dx,\r\n -dy,\r\n src.width,\r\n src.height\r\n );\r\n }\r\n\r\n if (src.isStroked)\r\n {\r\n LineStyleCanvas(ctx, src);\r\n\r\n ctx.beginPath();\r\n\r\n ctx.rect(\r\n -dx,\r\n -dy,\r\n src.width,\r\n src.height\r\n );\r\n\r\n ctx.stroke();\r\n }\r\n\r\n // Restore the context saved in SetTransform\r\n ctx.restore();\r\n }\r\n};\r\n\r\nmodule.exports = RectangleCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 87959:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GameObjectFactory = __webpack_require__(39429);\r\nvar Rectangle = __webpack_require__(74561);\r\n\r\n/**\r\n * Creates a new Rectangle Shape Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Rectangle Game Object has been built into Phaser.\r\n *\r\n * The Rectangle Shape is a Game Object that can be added to a Scene, Group or Container. You can\r\n * treat it like any other Game Object in your game, such as tweening it, scaling it, or enabling\r\n * it for input or physics. It provides a quick and easy way for you to render this shape in your\r\n * game without using a texture, while still taking advantage of being fully batched in WebGL.\r\n *\r\n * This shape supports both fill and stroke colors.\r\n *\r\n * You can change the size of the rectangle by changing the `width` and `height` properties.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#rectangle\r\n * @since 3.13.0\r\n *\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {number} [width=128] - The width of the rectangle.\r\n * @param {number} [height=128] - The height of the rectangle.\r\n * @param {number} [fillColor] - The color the rectangle will be filled with, i.e. 0xff0000 for red.\r\n * @param {number} [fillAlpha] - The alpha the rectangle will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.\r\n *\r\n * @return {Phaser.GameObjects.Rectangle} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('rectangle', function (x, y, width, height, fillColor, fillAlpha)\r\n{\r\n return this.displayList.add(new Rectangle(this.scene, x, y, width, height, fillColor, fillAlpha));\r\n});\r\n\n\n/***/ }),\n\n/***/ 95597:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(52059);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(48682);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 52059:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetCalcMatrix = __webpack_require__(91296);\r\nvar StrokePathWebGL = __webpack_require__(34682);\r\nvar Utils = __webpack_require__(70554);\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Rectangle#renderWebGL\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Rectangle} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar RectangleWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var pipeline = renderer.pipelines.set(src.pipeline);\r\n\r\n var result = GetCalcMatrix(src, camera, parentMatrix);\r\n\r\n pipeline.calcMatrix.copyFrom(result.calc);\r\n\r\n var dx = src._displayOriginX;\r\n var dy = src._displayOriginY;\r\n var alpha = camera.alpha * src.alpha;\r\n\r\n renderer.pipelines.preBatch(src);\r\n\r\n if (src.isFilled)\r\n {\r\n var fillTint = pipeline.fillTint;\r\n var fillTintColor = Utils.getTintAppendFloatAlpha(src.fillColor, src.fillAlpha * alpha);\r\n\r\n fillTint.TL = fillTintColor;\r\n fillTint.TR = fillTintColor;\r\n fillTint.BL = fillTintColor;\r\n fillTint.BR = fillTintColor;\r\n\r\n pipeline.batchFillRect(\r\n -dx,\r\n -dy,\r\n src.width,\r\n src.height\r\n );\r\n }\r\n\r\n if (src.isStroked)\r\n {\r\n StrokePathWebGL(pipeline, src, alpha, dx, dy);\r\n }\r\n\r\n renderer.pipelines.postBatch(src);\r\n};\r\n\r\nmodule.exports = RectangleWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 55911:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar StarRender = __webpack_require__(81991);\r\nvar Class = __webpack_require__(83419);\r\nvar Earcut = __webpack_require__(94811);\r\nvar Shape = __webpack_require__(17803);\r\n\r\n/**\r\n * @classdesc\r\n * The Star Shape is a Game Object that can be added to a Scene, Group or Container. You can\r\n * treat it like any other Game Object in your game, such as tweening it, scaling it, or enabling\r\n * it for input or physics. It provides a quick and easy way for you to render this shape in your\r\n * game without using a texture, while still taking advantage of being fully batched in WebGL.\r\n *\r\n * This shape supports both fill and stroke colors.\r\n *\r\n * As the name implies, the Star shape will display a star in your game. You can control several\r\n * aspects of it including the number of points that constitute the star. The default is 5. If\r\n * you change it to 4 it will render as a diamond. If you increase them, you'll get a more spiky\r\n * star shape.\r\n *\r\n * You can also control the inner and outer radius, which is how 'long' each point of the star is.\r\n * Modify these values to create more interesting shapes.\r\n *\r\n * @class Star\r\n * @extends Phaser.GameObjects.Shape\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.13.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {number} [points=5] - The number of points on the star.\r\n * @param {number} [innerRadius=32] - The inner radius of the star.\r\n * @param {number} [outerRadius=64] - The outer radius of the star.\r\n * @param {number} [fillColor] - The color the star will be filled with, i.e. 0xff0000 for red.\r\n * @param {number} [fillAlpha] - The alpha the star will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.\r\n */\r\nvar Star = new Class({\r\n\r\n Extends: Shape,\r\n\r\n Mixins: [\r\n StarRender\r\n ],\r\n\r\n initialize:\r\n\r\n function Star (scene, x, y, points, innerRadius, outerRadius, fillColor, fillAlpha)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (points === undefined) { points = 5; }\r\n if (innerRadius === undefined) { innerRadius = 32; }\r\n if (outerRadius === undefined) { outerRadius = 64; }\r\n\r\n Shape.call(this, scene, 'Star', null);\r\n\r\n /**\r\n * Private internal value.\r\n * The number of points in the star.\r\n *\r\n * @name Phaser.GameObjects.Star#_points\r\n * @type {number}\r\n * @private\r\n * @since 3.13.0\r\n */\r\n this._points = points;\r\n\r\n /**\r\n * Private internal value.\r\n * The inner radius of the star.\r\n *\r\n * @name Phaser.GameObjects.Star#_innerRadius\r\n * @type {number}\r\n * @private\r\n * @since 3.13.0\r\n */\r\n this._innerRadius = innerRadius;\r\n\r\n /**\r\n * Private internal value.\r\n * The outer radius of the star.\r\n *\r\n * @name Phaser.GameObjects.Star#_outerRadius\r\n * @type {number}\r\n * @private\r\n * @since 3.13.0\r\n */\r\n this._outerRadius = outerRadius;\r\n\r\n this.setPosition(x, y);\r\n this.setSize(outerRadius * 2, outerRadius * 2);\r\n\r\n if (fillColor !== undefined)\r\n {\r\n this.setFillStyle(fillColor, fillAlpha);\r\n }\r\n\r\n this.updateDisplayOrigin();\r\n this.updateData();\r\n },\r\n\r\n /**\r\n * Sets the number of points that make up the Star shape.\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.Star#setPoints\r\n * @since 3.13.0\r\n *\r\n * @param {number} value - The amount of points the Star will have.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setPoints: function (value)\r\n {\r\n this._points = value;\r\n\r\n return this.updateData();\r\n },\r\n\r\n /**\r\n * Sets the inner radius of the Star shape.\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.Star#setInnerRadius\r\n * @since 3.13.0\r\n *\r\n * @param {number} value - The amount to set the inner radius to.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setInnerRadius: function (value)\r\n {\r\n this._innerRadius = value;\r\n\r\n return this.updateData();\r\n },\r\n\r\n /**\r\n * Sets the outer radius of the Star shape.\r\n * This call can be chained.\r\n *\r\n * @method Phaser.GameObjects.Star#setOuterRadius\r\n * @since 3.13.0\r\n *\r\n * @param {number} value - The amount to set the outer radius to.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setOuterRadius: function (value)\r\n {\r\n this._outerRadius = value;\r\n\r\n return this.updateData();\r\n },\r\n\r\n /**\r\n * The number of points that make up the Star shape.\r\n *\r\n * @name Phaser.GameObjects.Star#points\r\n * @type {number}\r\n * @default 5\r\n * @since 3.13.0\r\n */\r\n points: {\r\n\r\n get: function ()\r\n {\r\n return this._points;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._points = value;\r\n\r\n this.updateData();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The inner radius of the Star shape.\r\n *\r\n * @name Phaser.GameObjects.Star#innerRadius\r\n * @type {number}\r\n * @default 32\r\n * @since 3.13.0\r\n */\r\n innerRadius: {\r\n\r\n get: function ()\r\n {\r\n return this._innerRadius;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._innerRadius = value;\r\n\r\n this.updateData();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The outer radius of the Star shape.\r\n *\r\n * @name Phaser.GameObjects.Star#outerRadius\r\n * @type {number}\r\n * @default 64\r\n * @since 3.13.0\r\n */\r\n outerRadius: {\r\n\r\n get: function ()\r\n {\r\n return this._outerRadius;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._outerRadius = value;\r\n\r\n this.updateData();\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Internal method that updates the data and path values.\r\n *\r\n * @method Phaser.GameObjects.Star#updateData\r\n * @private\r\n * @since 3.13.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n updateData: function ()\r\n {\r\n var path = [];\r\n\r\n var points = this._points;\r\n var innerRadius = this._innerRadius;\r\n var outerRadius = this._outerRadius;\r\n\r\n var rot = Math.PI / 2 * 3;\r\n var step = Math.PI / points;\r\n\r\n // So origin 0.5 = the center of the star\r\n var x = outerRadius;\r\n var y = outerRadius;\r\n\r\n path.push(x, y + -outerRadius);\r\n\r\n for (var i = 0; i < points; i++)\r\n {\r\n path.push(x + Math.cos(rot) * outerRadius, y + Math.sin(rot) * outerRadius);\r\n\r\n rot += step;\r\n\r\n path.push(x + Math.cos(rot) * innerRadius, y + Math.sin(rot) * innerRadius);\r\n\r\n rot += step;\r\n }\r\n\r\n path.push(x, y + -outerRadius);\r\n\r\n this.pathIndexes = Earcut(path);\r\n this.pathData = path;\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Star;\r\n\n\n/***/ }),\n\n/***/ 64272:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar FillStyleCanvas = __webpack_require__(65960);\r\nvar LineStyleCanvas = __webpack_require__(75177);\r\nvar SetTransform = __webpack_require__(20926);\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Star#renderCanvas\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.Star} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar StarCanvasRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var ctx = renderer.currentContext;\r\n\r\n if (SetTransform(renderer, ctx, src, camera, parentMatrix))\r\n {\r\n var dx = src._displayOriginX;\r\n var dy = src._displayOriginY;\r\n\r\n var path = src.pathData;\r\n var pathLength = path.length - 1;\r\n\r\n var px1 = path[0] - dx;\r\n var py1 = path[1] - dy;\r\n\r\n ctx.beginPath();\r\n\r\n ctx.moveTo(px1, py1);\r\n\r\n if (!src.closePath)\r\n {\r\n pathLength -= 2;\r\n }\r\n\r\n for (var i = 2; i < pathLength; i += 2)\r\n {\r\n var px2 = path[i] - dx;\r\n var py2 = path[i + 1] - dy;\r\n\r\n ctx.lineTo(px2, py2);\r\n }\r\n\r\n ctx.closePath();\r\n\r\n if (src.isFilled)\r\n {\r\n FillStyleCanvas(ctx, src);\r\n\r\n ctx.fill();\r\n }\r\n\r\n if (src.isStroked)\r\n {\r\n LineStyleCanvas(ctx, src);\r\n\r\n ctx.stroke();\r\n }\r\n\r\n // Restore the context saved in SetTransform\r\n ctx.restore();\r\n }\r\n};\r\n\r\nmodule.exports = StarCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 93697:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Star = __webpack_require__(55911);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * Creates a new Star Shape Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Star Game Object has been built into Phaser.\r\n *\r\n * The Star Shape is a Game Object that can be added to a Scene, Group or Container. You can\r\n * treat it like any other Game Object in your game, such as tweening it, scaling it, or enabling\r\n * it for input or physics. It provides a quick and easy way for you to render this shape in your\r\n * game without using a texture, while still taking advantage of being fully batched in WebGL.\r\n *\r\n * This shape supports both fill and stroke colors.\r\n *\r\n * As the name implies, the Star shape will display a star in your game. You can control several\r\n * aspects of it including the number of points that constitute the star. The default is 5. If\r\n * you change it to 4 it will render as a diamond. If you increase them, you'll get a more spiky\r\n * star shape.\r\n *\r\n * You can also control the inner and outer radius, which is how 'long' each point of the star is.\r\n * Modify these values to create more interesting shapes.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#star\r\n * @since 3.13.0\r\n *\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {number} [points=5] - The number of points on the star.\r\n * @param {number} [innerRadius=32] - The inner radius of the star.\r\n * @param {number} [outerRadius=64] - The outer radius of the star.\r\n * @param {number} [fillColor] - The color the star will be filled with, i.e. 0xff0000 for red.\r\n * @param {number} [fillAlpha] - The alpha the star will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.\r\n *\r\n * @return {Phaser.GameObjects.Star} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('star', function (x, y, points, innerRadius, outerRadius, fillColor, fillAlpha)\r\n{\r\n return this.displayList.add(new Star(this.scene, x, y, points, innerRadius, outerRadius, fillColor, fillAlpha));\r\n});\r\n\n\n/***/ }),\n\n/***/ 81991:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(57017);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(64272);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 57017:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar FillPathWebGL = __webpack_require__(10441);\r\nvar GetCalcMatrix = __webpack_require__(91296);\r\nvar StrokePathWebGL = __webpack_require__(34682);\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Star#renderWebGL\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Star} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar StarWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var pipeline = renderer.pipelines.set(src.pipeline);\r\n\r\n var result = GetCalcMatrix(src, camera, parentMatrix);\r\n\r\n var calcMatrix = pipeline.calcMatrix.copyFrom(result.calc);\r\n\r\n var dx = src._displayOriginX;\r\n var dy = src._displayOriginY;\r\n\r\n var alpha = camera.alpha * src.alpha;\r\n\r\n renderer.pipelines.preBatch(src);\r\n\r\n if (src.isFilled)\r\n {\r\n FillPathWebGL(pipeline, calcMatrix, src, alpha, dx, dy);\r\n }\r\n\r\n if (src.isStroked)\r\n {\r\n StrokePathWebGL(pipeline, src, alpha, dx, dy);\r\n }\r\n\r\n renderer.pipelines.postBatch(src);\r\n};\r\n\r\nmodule.exports = StarWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 36931:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Shape = __webpack_require__(17803);\r\nvar GeomTriangle = __webpack_require__(16483);\r\nvar TriangleRender = __webpack_require__(96195);\r\n\r\n/**\r\n * @classdesc\r\n * The Triangle Shape is a Game Object that can be added to a Scene, Group or Container. You can\r\n * treat it like any other Game Object in your game, such as tweening it, scaling it, or enabling\r\n * it for input or physics. It provides a quick and easy way for you to render this shape in your\r\n * game without using a texture, while still taking advantage of being fully batched in WebGL.\r\n *\r\n * This shape supports both fill and stroke colors.\r\n *\r\n * The Triangle consists of 3 lines, joining up to form a triangular shape. You can control the\r\n * position of each point of these lines. The triangle is always closed and cannot have an open\r\n * face. If you require that, consider using a Polygon instead.\r\n *\r\n * @class Triangle\r\n * @extends Phaser.GameObjects.Shape\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.13.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {number} [x1=0] - The horizontal position of the first point in the triangle.\r\n * @param {number} [y1=128] - The vertical position of the first point in the triangle.\r\n * @param {number} [x2=64] - The horizontal position of the second point in the triangle.\r\n * @param {number} [y2=0] - The vertical position of the second point in the triangle.\r\n * @param {number} [x3=128] - The horizontal position of the third point in the triangle.\r\n * @param {number} [y3=128] - The vertical position of the third point in the triangle.\r\n * @param {number} [fillColor] - The color the triangle will be filled with, i.e. 0xff0000 for red.\r\n * @param {number} [fillAlpha] - The alpha the triangle will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.\r\n */\r\nvar Triangle = new Class({\r\n\r\n Extends: Shape,\r\n\r\n Mixins: [\r\n TriangleRender\r\n ],\r\n\r\n initialize:\r\n\r\n function Triangle (scene, x, y, x1, y1, x2, y2, x3, y3, fillColor, fillAlpha)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (x1 === undefined) { x1 = 0; }\r\n if (y1 === undefined) { y1 = 128; }\r\n if (x2 === undefined) { x2 = 64; }\r\n if (y2 === undefined) { y2 = 0; }\r\n if (x3 === undefined) { x3 = 128; }\r\n if (y3 === undefined) { y3 = 128; }\r\n\r\n Shape.call(this, scene, 'Triangle', new GeomTriangle(x1, y1, x2, y2, x3, y3));\r\n\r\n var width = this.geom.right - this.geom.left;\r\n var height = this.geom.bottom - this.geom.top;\r\n\r\n this.setPosition(x, y);\r\n this.setSize(width, height);\r\n\r\n if (fillColor !== undefined)\r\n {\r\n this.setFillStyle(fillColor, fillAlpha);\r\n }\r\n\r\n this.updateDisplayOrigin();\r\n this.updateData();\r\n },\r\n\r\n /**\r\n * Sets the data for the lines that make up this Triangle shape.\r\n *\r\n * @method Phaser.GameObjects.Triangle#setTo\r\n * @since 3.13.0\r\n *\r\n * @param {number} [x1=0] - The horizontal position of the first point in the triangle.\r\n * @param {number} [y1=0] - The vertical position of the first point in the triangle.\r\n * @param {number} [x2=0] - The horizontal position of the second point in the triangle.\r\n * @param {number} [y2=0] - The vertical position of the second point in the triangle.\r\n * @param {number} [x3=0] - The horizontal position of the third point in the triangle.\r\n * @param {number} [y3=0] - The vertical position of the third point in the triangle.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setTo: function (x1, y1, x2, y2, x3, y3)\r\n {\r\n this.geom.setTo(x1, y1, x2, y2, x3, y3);\r\n\r\n return this.updateData();\r\n },\r\n\r\n /**\r\n * Internal method that updates the data and path values.\r\n *\r\n * @method Phaser.GameObjects.Triangle#updateData\r\n * @private\r\n * @since 3.13.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n updateData: function ()\r\n {\r\n var path = [];\r\n var tri = this.geom;\r\n var line = this._tempLine;\r\n\r\n tri.getLineA(line);\r\n\r\n path.push(line.x1, line.y1, line.x2, line.y2);\r\n\r\n tri.getLineB(line);\r\n\r\n path.push(line.x2, line.y2);\r\n\r\n tri.getLineC(line);\r\n\r\n path.push(line.x2, line.y2);\r\n\r\n this.pathData = path;\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Triangle;\r\n\n\n/***/ }),\n\n/***/ 85172:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar FillStyleCanvas = __webpack_require__(65960);\r\nvar LineStyleCanvas = __webpack_require__(75177);\r\nvar SetTransform = __webpack_require__(20926);\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Triangle#renderCanvas\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.Triangle} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar TriangleCanvasRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var ctx = renderer.currentContext;\r\n\r\n if (SetTransform(renderer, ctx, src, camera, parentMatrix))\r\n {\r\n var dx = src._displayOriginX;\r\n var dy = src._displayOriginY;\r\n\r\n var x1 = src.geom.x1 - dx;\r\n var y1 = src.geom.y1 - dy;\r\n var x2 = src.geom.x2 - dx;\r\n var y2 = src.geom.y2 - dy;\r\n var x3 = src.geom.x3 - dx;\r\n var y3 = src.geom.y3 - dy;\r\n\r\n ctx.beginPath();\r\n\r\n ctx.moveTo(x1, y1);\r\n ctx.lineTo(x2, y2);\r\n ctx.lineTo(x3, y3);\r\n\r\n ctx.closePath();\r\n\r\n if (src.isFilled)\r\n {\r\n FillStyleCanvas(ctx, src);\r\n\r\n ctx.fill();\r\n }\r\n\r\n if (src.isStroked)\r\n {\r\n LineStyleCanvas(ctx, src);\r\n\r\n ctx.stroke();\r\n }\r\n\r\n // Restore the context saved in SetTransform\r\n ctx.restore();\r\n }\r\n};\r\n\r\nmodule.exports = TriangleCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 45245:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GameObjectFactory = __webpack_require__(39429);\r\nvar Triangle = __webpack_require__(36931);\r\n\r\n/**\r\n * Creates a new Triangle Shape Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Triangle Game Object has been built into Phaser.\r\n *\r\n * The Triangle Shape is a Game Object that can be added to a Scene, Group or Container. You can\r\n * treat it like any other Game Object in your game, such as tweening it, scaling it, or enabling\r\n * it for input or physics. It provides a quick and easy way for you to render this shape in your\r\n * game without using a texture, while still taking advantage of being fully batched in WebGL.\r\n *\r\n * This shape supports both fill and stroke colors.\r\n *\r\n * The Triangle consists of 3 lines, joining up to form a triangular shape. You can control the\r\n * position of each point of these lines. The triangle is always closed and cannot have an open\r\n * face. If you require that, consider using a Polygon instead.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#triangle\r\n * @since 3.13.0\r\n *\r\n * @param {number} [x=0] - The horizontal position of this Game Object in the world.\r\n * @param {number} [y=0] - The vertical position of this Game Object in the world.\r\n * @param {number} [x1=0] - The horizontal position of the first point in the triangle.\r\n * @param {number} [y1=128] - The vertical position of the first point in the triangle.\r\n * @param {number} [x2=64] - The horizontal position of the second point in the triangle.\r\n * @param {number} [y2=0] - The vertical position of the second point in the triangle.\r\n * @param {number} [x3=128] - The horizontal position of the third point in the triangle.\r\n * @param {number} [y3=128] - The vertical position of the third point in the triangle.\r\n * @param {number} [fillColor] - The color the triangle will be filled with, i.e. 0xff0000 for red.\r\n * @param {number} [fillAlpha] - The alpha the triangle will be filled with. You can also set the alpha of the overall Shape using its `alpha` property.\r\n *\r\n * @return {Phaser.GameObjects.Triangle} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('triangle', function (x, y, x1, y1, x2, y2, x3, y3, fillColor, fillAlpha)\r\n{\r\n return this.displayList.add(new Triangle(this.scene, x, y, x1, y1, x2, y2, x3, y3, fillColor, fillAlpha));\r\n});\r\n\n\n/***/ }),\n\n/***/ 96195:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(83253);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(85172);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 83253:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetCalcMatrix = __webpack_require__(91296);\r\nvar StrokePathWebGL = __webpack_require__(34682);\r\nvar Utils = __webpack_require__(70554);\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Triangle#renderWebGL\r\n * @since 3.13.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Triangle} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar TriangleWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n var pipeline = renderer.pipelines.set(src.pipeline);\r\n\r\n var result = GetCalcMatrix(src, camera, parentMatrix);\r\n\r\n pipeline.calcMatrix.copyFrom(result.calc);\r\n\r\n var dx = src._displayOriginX;\r\n var dy = src._displayOriginY;\r\n var alpha = camera.alpha * src.alpha;\r\n\r\n renderer.pipelines.preBatch(src);\r\n\r\n if (src.isFilled)\r\n {\r\n var fillTint = pipeline.fillTint;\r\n var fillTintColor = Utils.getTintAppendFloatAlpha(src.fillColor, src.fillAlpha * alpha);\r\n\r\n fillTint.TL = fillTintColor;\r\n fillTint.TR = fillTintColor;\r\n fillTint.BL = fillTintColor;\r\n fillTint.BR = fillTintColor;\r\n\r\n var x1 = src.geom.x1 - dx;\r\n var y1 = src.geom.y1 - dy;\r\n var x2 = src.geom.x2 - dx;\r\n var y2 = src.geom.y2 - dy;\r\n var x3 = src.geom.x3 - dx;\r\n var y3 = src.geom.y3 - dy;\r\n\r\n pipeline.batchFillTriangle(\r\n x1,\r\n y1,\r\n x2,\r\n y2,\r\n x3,\r\n y3,\r\n result.sprite,\r\n result.camera\r\n );\r\n }\r\n\r\n if (src.isStroked)\r\n {\r\n StrokePathWebGL(pipeline, src, alpha, dx, dy);\r\n }\r\n\r\n renderer.pipelines.postBatch(src);\r\n};\r\n\r\nmodule.exports = TriangleWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 68287:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar AnimationState = __webpack_require__(9674);\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar GameObject = __webpack_require__(95643);\r\nvar SpriteRender = __webpack_require__(92751);\r\n\r\n/**\r\n * @classdesc\r\n * A Sprite Game Object.\r\n *\r\n * A Sprite Game Object is used for the display of both static and animated images in your game.\r\n * Sprites can have input events and physics bodies. They can also be tweened, tinted, scrolled\r\n * and animated.\r\n *\r\n * The main difference between a Sprite and an Image Game Object is that you cannot animate Images.\r\n * As such, Sprites take a fraction longer to process and have a larger API footprint due to the Animation\r\n * Component. If you do not require animation then you can safely use Images to replace Sprites in all cases.\r\n *\r\n * @class Sprite\r\n * @extends Phaser.GameObjects.GameObject\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @extends Phaser.GameObjects.Components.Alpha\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.Flip\r\n * @extends Phaser.GameObjects.Components.GetBounds\r\n * @extends Phaser.GameObjects.Components.Mask\r\n * @extends Phaser.GameObjects.Components.Origin\r\n * @extends Phaser.GameObjects.Components.Pipeline\r\n * @extends Phaser.GameObjects.Components.PostPipeline\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n * @extends Phaser.GameObjects.Components.Size\r\n * @extends Phaser.GameObjects.Components.TextureCrop\r\n * @extends Phaser.GameObjects.Components.Tint\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {(string|Phaser.Textures.Texture)} texture - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - An optional frame from the Texture this Game Object is rendering with.\r\n */\r\nvar Sprite = new Class({\r\n\r\n Extends: GameObject,\r\n\r\n Mixins: [\r\n Components.Alpha,\r\n Components.BlendMode,\r\n Components.Depth,\r\n Components.Flip,\r\n Components.GetBounds,\r\n Components.Mask,\r\n Components.Origin,\r\n Components.Pipeline,\r\n Components.PostPipeline,\r\n Components.ScrollFactor,\r\n Components.Size,\r\n Components.TextureCrop,\r\n Components.Tint,\r\n Components.Transform,\r\n Components.Visible,\r\n SpriteRender\r\n ],\r\n\r\n initialize:\r\n\r\n function Sprite (scene, x, y, texture, frame)\r\n {\r\n GameObject.call(this, scene, 'Sprite');\r\n\r\n /**\r\n * The internal crop data object, as used by `setCrop` and passed to the `Frame.setCropUVs` method.\r\n *\r\n * @name Phaser.GameObjects.Sprite#_crop\r\n * @type {object}\r\n * @private\r\n * @since 3.11.0\r\n */\r\n this._crop = this.resetCropObject();\r\n\r\n /**\r\n * The Animation State component of this Sprite.\r\n *\r\n * This component provides features to apply animations to this Sprite.\r\n * It is responsible for playing, loading, queuing animations for later playback,\r\n * mixing between animations and setting the current animation frame to this Sprite.\r\n *\r\n * @name Phaser.GameObjects.Sprite#anims\r\n * @type {Phaser.Animations.AnimationState}\r\n * @since 3.0.0\r\n */\r\n this.anims = new AnimationState(this);\r\n\r\n this.setTexture(texture, frame);\r\n this.setPosition(x, y);\r\n this.setSizeToFrame();\r\n this.setOriginFromFrame();\r\n this.initPipeline();\r\n this.initPostPipeline(true);\r\n },\r\n\r\n // Overrides Game Object method\r\n addedToScene: function ()\r\n {\r\n this.scene.sys.updateList.add(this);\r\n },\r\n\r\n // Overrides Game Object method\r\n removedFromScene: function ()\r\n {\r\n this.scene.sys.updateList.remove(this);\r\n },\r\n\r\n /**\r\n * Update this Sprite's animations.\r\n *\r\n * @method Phaser.GameObjects.Sprite#preUpdate\r\n * @protected\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current timestamp.\r\n * @param {number} delta - The delta time, in ms, elapsed since the last frame.\r\n */\r\n preUpdate: function (time, delta)\r\n {\r\n this.anims.update(time, delta);\r\n },\r\n\r\n /**\r\n * Start playing the given animation on this Sprite.\r\n *\r\n * Animations in Phaser can either belong to the global Animation Manager, or specifically to this Sprite.\r\n *\r\n * The benefit of a global animation is that multiple Sprites can all play the same animation, without\r\n * having to duplicate the data. You can just create it once and then play it on any Sprite.\r\n *\r\n * The following code shows how to create a global repeating animation. The animation will be created\r\n * from all of the frames within the sprite sheet that was loaded with the key 'muybridge':\r\n *\r\n * ```javascript\r\n * var config = {\r\n * key: 'run',\r\n * frames: 'muybridge',\r\n * frameRate: 15,\r\n * repeat: -1\r\n * };\r\n *\r\n * // This code should be run from within a Scene:\r\n * this.anims.create(config);\r\n * ```\r\n *\r\n * However, if you wish to create an animation that is unique to this Sprite, and this Sprite alone,\r\n * you can call the `Animation.create` method instead. It accepts the exact same parameters as when\r\n * creating a global animation, however the resulting data is kept locally in this Sprite.\r\n *\r\n * With the animation created, either globally or locally, you can now play it on this Sprite:\r\n *\r\n * ```javascript\r\n * this.add.sprite(x, y).play('run');\r\n * ```\r\n *\r\n * Alternatively, if you wish to run it at a different frame rate, for example, you can pass a config\r\n * object instead:\r\n *\r\n * ```javascript\r\n * this.add.sprite(x, y).play({ key: 'run', frameRate: 24 });\r\n * ```\r\n *\r\n * When playing an animation on a Sprite it will first check to see if it can find a matching key\r\n * locally within the Sprite. If it can, it will play the local animation. If not, it will then\r\n * search the global Animation Manager and look for it there.\r\n *\r\n * If you need a Sprite to be able to play both local and global animations, make sure they don't\r\n * have conflicting keys.\r\n *\r\n * See the documentation for the `PlayAnimationConfig` config object for more details about this.\r\n *\r\n * Also, see the documentation in the Animation Manager for further details on creating animations.\r\n *\r\n * @method Phaser.GameObjects.Sprite#play\r\n * @fires Phaser.Animations.Events#ANIMATION_START\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Animations.Animation|Phaser.Types.Animations.PlayAnimationConfig)} key - The string-based key of the animation to play, or an Animation instance, or a `PlayAnimationConfig` object.\r\n * @param {boolean} [ignoreIfPlaying=false] - If an animation is already playing then ignore this call.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n play: function (key, ignoreIfPlaying)\r\n {\r\n return this.anims.play(key, ignoreIfPlaying);\r\n },\r\n\r\n /**\r\n * Start playing the given animation on this Sprite, in reverse.\r\n *\r\n * Animations in Phaser can either belong to the global Animation Manager, or specifically to this Sprite.\r\n *\r\n * The benefit of a global animation is that multiple Sprites can all play the same animation, without\r\n * having to duplicate the data. You can just create it once and then play it on any Sprite.\r\n *\r\n * The following code shows how to create a global repeating animation. The animation will be created\r\n * from all of the frames within the sprite sheet that was loaded with the key 'muybridge':\r\n *\r\n * ```javascript\r\n * var config = {\r\n * key: 'run',\r\n * frames: 'muybridge',\r\n * frameRate: 15,\r\n * repeat: -1\r\n * };\r\n *\r\n * // This code should be run from within a Scene:\r\n * this.anims.create(config);\r\n * ```\r\n *\r\n * However, if you wish to create an animation that is unique to this Sprite, and this Sprite alone,\r\n * you can call the `Animation.create` method instead. It accepts the exact same parameters as when\r\n * creating a global animation, however the resulting data is kept locally in this Sprite.\r\n *\r\n * With the animation created, either globally or locally, you can now play it on this Sprite:\r\n *\r\n * ```javascript\r\n * this.add.sprite(x, y).playReverse('run');\r\n * ```\r\n *\r\n * Alternatively, if you wish to run it at a different frame rate, for example, you can pass a config\r\n * object instead:\r\n *\r\n * ```javascript\r\n * this.add.sprite(x, y).playReverse({ key: 'run', frameRate: 24 });\r\n * ```\r\n *\r\n * When playing an animation on a Sprite it will first check to see if it can find a matching key\r\n * locally within the Sprite. If it can, it will play the local animation. If not, it will then\r\n * search the global Animation Manager and look for it there.\r\n *\r\n * If you need a Sprite to be able to play both local and global animations, make sure they don't\r\n * have conflicting keys.\r\n *\r\n * See the documentation for the `PlayAnimationConfig` config object for more details about this.\r\n *\r\n * Also, see the documentation in the Animation Manager for further details on creating animations.\r\n *\r\n * @method Phaser.GameObjects.Sprite#playReverse\r\n * @fires Phaser.Animations.Events#ANIMATION_START\r\n * @since 3.50.0\r\n *\r\n * @param {(string|Phaser.Animations.Animation|Phaser.Types.Animations.PlayAnimationConfig)} key - The string-based key of the animation to play, or an Animation instance, or a `PlayAnimationConfig` object.\r\n * @param {boolean} [ignoreIfPlaying=false] - If an animation is already playing then ignore this call.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n playReverse: function (key, ignoreIfPlaying)\r\n {\r\n return this.anims.playReverse(key, ignoreIfPlaying);\r\n },\r\n\r\n /**\r\n * Waits for the specified delay, in milliseconds, then starts playback of the given animation.\r\n *\r\n * If the animation _also_ has a delay value set in its config, it will be **added** to the delay given here.\r\n *\r\n * If an animation is already running and a new animation is given to this method, it will wait for\r\n * the given delay before starting the new animation.\r\n *\r\n * If no animation is currently running, the given one begins after the delay.\r\n *\r\n * When playing an animation on a Sprite it will first check to see if it can find a matching key\r\n * locally within the Sprite. If it can, it will play the local animation. If not, it will then\r\n * search the global Animation Manager and look for it there.\r\n *\r\n * Prior to Phaser 3.50 this method was called 'delayedPlay'.\r\n *\r\n * @method Phaser.GameObjects.Sprite#playAfterDelay\r\n * @fires Phaser.Animations.Events#ANIMATION_START\r\n * @since 3.50.0\r\n *\r\n * @param {(string|Phaser.Animations.Animation|Phaser.Types.Animations.PlayAnimationConfig)} key - The string-based key of the animation to play, or an Animation instance, or a `PlayAnimationConfig` object.\r\n * @param {number} delay - The delay, in milliseconds, to wait before starting the animation playing.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n playAfterDelay: function (key, delay)\r\n {\r\n return this.anims.playAfterDelay(key, delay);\r\n },\r\n\r\n /**\r\n * Waits for the current animation to complete the `repeatCount` number of repeat cycles, then starts playback\r\n * of the given animation.\r\n *\r\n * You can use this to ensure there are no harsh jumps between two sets of animations, i.e. going from an\r\n * idle animation to a walking animation, by making them blend smoothly into each other.\r\n *\r\n * If no animation is currently running, the given one will start immediately.\r\n *\r\n * When playing an animation on a Sprite it will first check to see if it can find a matching key\r\n * locally within the Sprite. If it can, it will play the local animation. If not, it will then\r\n * search the global Animation Manager and look for it there.\r\n *\r\n * @method Phaser.GameObjects.Sprite#playAfterRepeat\r\n * @fires Phaser.Animations.Events#ANIMATION_START\r\n * @since 3.50.0\r\n *\r\n * @param {(string|Phaser.Animations.Animation|Phaser.Types.Animations.PlayAnimationConfig)} key - The string-based key of the animation to play, or an Animation instance, or a `PlayAnimationConfig` object.\r\n * @param {number} [repeatCount=1] - How many times should the animation repeat before the next one starts?\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n playAfterRepeat: function (key, repeatCount)\r\n {\r\n return this.anims.playAfterRepeat(key, repeatCount);\r\n },\r\n\r\n /**\r\n * Sets an animation, or an array of animations, to be played immediately after the current one completes or stops.\r\n *\r\n * The current animation must enter a 'completed' state for this to happen, i.e. finish all of its repeats, delays, etc,\r\n * or have the `stop` method called directly on it.\r\n *\r\n * An animation set to repeat forever will never enter a completed state.\r\n *\r\n * You can chain a new animation at any point, including before the current one starts playing, during it,\r\n * or when it ends (via its `animationcomplete` event).\r\n *\r\n * Chained animations are specific to a Game Object, meaning different Game Objects can have different chained\r\n * animations without impacting the animation they're playing.\r\n *\r\n * Call this method with no arguments to reset all currently chained animations.\r\n *\r\n * When playing an animation on a Sprite it will first check to see if it can find a matching key\r\n * locally within the Sprite. If it can, it will play the local animation. If not, it will then\r\n * search the global Animation Manager and look for it there.\r\n *\r\n * @method Phaser.GameObjects.Sprite#chain\r\n * @since 3.50.0\r\n *\r\n * @param {(string|Phaser.Animations.Animation|Phaser.Types.Animations.PlayAnimationConfig|string[]|Phaser.Animations.Animation[]|Phaser.Types.Animations.PlayAnimationConfig[])} [key] - The string-based key of the animation to play, or an Animation instance, or a `PlayAnimationConfig` object, or an array of them.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n chain: function (key)\r\n {\r\n return this.anims.chain(key);\r\n },\r\n\r\n /**\r\n * Immediately stops the current animation from playing and dispatches the `ANIMATION_STOP` events.\r\n *\r\n * If no animation is playing, no event will be dispatched.\r\n *\r\n * If there is another animation queued (via the `chain` method) then it will start playing immediately.\r\n *\r\n * @method Phaser.GameObjects.Sprite#stop\r\n * @fires Phaser.Animations.Events#ANIMATION_STOP\r\n * @since 3.50.0\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n stop: function ()\r\n {\r\n return this.anims.stop();\r\n },\r\n\r\n /**\r\n * Stops the current animation from playing after the specified time delay, given in milliseconds.\r\n *\r\n * It then dispatches the `ANIMATION_STOP` event.\r\n *\r\n * If no animation is running, no events will be dispatched.\r\n *\r\n * If there is another animation in the queue (set via the `chain` method) then it will start playing,\r\n * when the current one stops.\r\n *\r\n * @method Phaser.GameObjects.Sprite#stopAfterDelay\r\n * @fires Phaser.Animations.Events#ANIMATION_STOP\r\n * @since 3.50.0\r\n *\r\n * @param {number} delay - The number of milliseconds to wait before stopping this animation.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n stopAfterDelay: function (delay)\r\n {\r\n return this.anims.stopAfterDelay(delay);\r\n },\r\n\r\n /**\r\n * Stops the current animation from playing after the given number of repeats.\r\n *\r\n * It then dispatches the `ANIMATION_STOP` event.\r\n *\r\n * If no animation is running, no events will be dispatched.\r\n *\r\n * If there is another animation in the queue (set via the `chain` method) then it will start playing,\r\n * when the current one stops.\r\n *\r\n * @method Phaser.GameObjects.Sprite#stopAfterRepeat\r\n * @fires Phaser.Animations.Events#ANIMATION_STOP\r\n * @since 3.50.0\r\n *\r\n * @param {number} [repeatCount=1] - How many times should the animation repeat before stopping?\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n stopAfterRepeat: function (repeatCount)\r\n {\r\n return this.anims.stopAfterRepeat(repeatCount);\r\n },\r\n\r\n /**\r\n * Stops the current animation from playing when it next sets the given frame.\r\n * If this frame doesn't exist within the animation it will not stop it from playing.\r\n *\r\n * It then dispatches the `ANIMATION_STOP` event.\r\n *\r\n * If no animation is running, no events will be dispatched.\r\n *\r\n * If there is another animation in the queue (set via the `chain` method) then it will start playing,\r\n * when the current one stops.\r\n *\r\n * @method Phaser.GameObjects.Sprite#stopOnFrame\r\n * @fires Phaser.Animations.Events#ANIMATION_STOP\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Animations.AnimationFrame} frame - The frame to check before stopping this animation.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n stopOnFrame: function (frame)\r\n {\r\n return this.anims.stopOnFrame(frame);\r\n },\r\n\r\n /**\r\n * Build a JSON representation of this Sprite.\r\n *\r\n * @method Phaser.GameObjects.Sprite#toJSON\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Types.GameObjects.JSONGameObject} A JSON representation of the Game Object.\r\n */\r\n toJSON: function ()\r\n {\r\n return Components.ToJSON(this);\r\n },\r\n\r\n /**\r\n * Handles the pre-destroy step for the Sprite, which removes the Animation component.\r\n *\r\n * @method Phaser.GameObjects.Sprite#preDestroy\r\n * @private\r\n * @since 3.14.0\r\n */\r\n preDestroy: function ()\r\n {\r\n this.anims.destroy();\r\n\r\n this.anims = undefined;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Sprite;\r\n\n\n/***/ }),\n\n/***/ 76552:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Sprite#renderCanvas\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.Sprite} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar SpriteCanvasRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n renderer.batchSprite(src, src.frame, camera, parentMatrix);\r\n};\r\n\r\nmodule.exports = SpriteCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 15567:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BuildGameObject = __webpack_require__(25305);\r\nvar BuildGameObjectAnimation = __webpack_require__(13059);\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\nvar Sprite = __webpack_require__(68287);\r\n\r\n/**\r\n * Creates a new Sprite Game Object and returns it.\r\n *\r\n * Note: This method will only be available if the Sprite Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#sprite\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Sprite.SpriteConfig} config - The configuration object this Game Object will use to create itself.\r\n * @param {boolean} [addToScene=true] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.\r\n *\r\n * @return {Phaser.GameObjects.Sprite} The Game Object that was created.\r\n */\r\nGameObjectCreator.register('sprite', function (config, addToScene)\r\n{\r\n if (config === undefined) { config = {}; }\r\n\r\n var key = GetAdvancedValue(config, 'key', null);\r\n var frame = GetAdvancedValue(config, 'frame', null);\r\n\r\n var sprite = new Sprite(this.scene, 0, 0, key, frame);\r\n\r\n if (addToScene !== undefined)\r\n {\r\n config.add = addToScene;\r\n }\r\n\r\n BuildGameObject(this.scene, sprite, config);\r\n\r\n // Sprite specific config options:\r\n\r\n BuildGameObjectAnimation(sprite, config);\r\n\r\n return sprite;\r\n});\r\n\n\n/***/ }),\n\n/***/ 46409:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GameObjectFactory = __webpack_require__(39429);\r\nvar Sprite = __webpack_require__(68287);\r\n\r\n/**\r\n * Creates a new Sprite Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Sprite Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#sprite\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {(string|Phaser.Textures.Texture)} texture - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - An optional frame from the Texture this Game Object is rendering with.\r\n *\r\n * @return {Phaser.GameObjects.Sprite} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('sprite', function (x, y, texture, frame)\r\n{\r\n return this.displayList.add(new Sprite(this.scene, x, y, texture, frame));\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectFactory context.\r\n//\r\n// There are several properties available to use:\r\n//\r\n// this.scene - a reference to the Scene that owns the GameObjectFactory\r\n// this.displayList - a reference to the Display List the Scene owns\r\n// this.updateList - a reference to the Update List the Scene owns\r\n\n\n/***/ }),\n\n/***/ 92751:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(9409);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(76552);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 9409:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Sprite#renderWebGL\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Sprite} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar SpriteWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n camera.addToRenderList(src);\r\n\r\n src.pipeline.batchSprite(src, camera, parentMatrix);\r\n};\r\n\r\nmodule.exports = SpriteWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 14220:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Returns an object containing dimensions of the Text object.\r\n *\r\n * @function Phaser.GameObjects.GetTextSize\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Text} text - The Text object to calculate the size from.\r\n * @param {Phaser.Types.GameObjects.Text.TextMetrics} size - The Text metrics to use when calculating the size.\r\n * @param {string[]} lines - The lines of text to calculate the size from.\r\n *\r\n * @return {Phaser.Types.GameObjects.Text.GetTextSizeObject} An object containing dimensions of the Text object.\r\n */\r\nvar GetTextSize = function (text, size, lines)\r\n{\r\n var canvas = text.canvas;\r\n var context = text.context;\r\n var style = text.style;\r\n\r\n var lineWidths = [];\r\n var maxLineWidth = 0;\r\n var drawnLines = lines.length;\r\n\r\n if (style.maxLines > 0 && style.maxLines < lines.length)\r\n {\r\n drawnLines = style.maxLines;\r\n }\r\n\r\n style.syncFont(canvas, context);\r\n\r\n // Text Width\r\n var letterSpacing = text.letterSpacing;\r\n\r\n for (var i = 0; i < drawnLines; i++)\r\n {\r\n var lineWidth = style.strokeThickness;\r\n\r\n if (letterSpacing === 0)\r\n {\r\n lineWidth += context.measureText(lines[i]).width;\r\n }\r\n else\r\n {\r\n var line = lines[i];\r\n \r\n for (var j = 0; j < line.length; j++)\r\n {\r\n lineWidth += context.measureText(line[j]).width;\r\n }\r\n\r\n if (line.length > 1)\r\n {\r\n lineWidth += letterSpacing * (line.length - 1);\r\n }\r\n }\r\n\r\n // Adjust for wrapped text\r\n if (style.wordWrap)\r\n {\r\n lineWidth -= context.measureText(' ').width;\r\n }\r\n\r\n lineWidths[i] = Math.ceil(lineWidth);\r\n maxLineWidth = Math.max(maxLineWidth, lineWidths[i]);\r\n }\r\n\r\n // Text Height\r\n\r\n var lineHeight = size.fontSize + style.strokeThickness;\r\n var height = lineHeight * drawnLines;\r\n var lineSpacing = text.lineSpacing;\r\n\r\n // Adjust for line spacing\r\n if (drawnLines > 1)\r\n {\r\n height += lineSpacing * (drawnLines - 1);\r\n }\r\n\r\n return {\r\n width: maxLineWidth,\r\n height: height,\r\n lines: drawnLines,\r\n lineWidths: lineWidths,\r\n lineSpacing: lineSpacing,\r\n lineHeight: lineHeight\r\n };\r\n};\r\n\r\nmodule.exports = GetTextSize;\r\n\n\n/***/ }),\n\n/***/ 79557:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CanvasPool = __webpack_require__(27919);\r\n\r\n/**\r\n * Calculates the ascent, descent and fontSize of a given font style.\r\n *\r\n * @function Phaser.GameObjects.MeasureText\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.TextStyle} textStyle - The TextStyle object to measure.\r\n *\r\n * @return {Phaser.Types.GameObjects.Text.TextMetrics} An object containing the ascent, descent and fontSize of the TextStyle.\r\n */\r\nvar MeasureText = function (textStyle)\r\n{\r\n var canvas = CanvasPool.create(this);\r\n var context = canvas.getContext('2d', { willReadFrequently: true });\r\n\r\n textStyle.syncFont(canvas, context);\r\n\r\n var metrics = context.measureText(textStyle.testString);\r\n\r\n if ('actualBoundingBoxAscent' in metrics)\r\n {\r\n var ascent = metrics.actualBoundingBoxAscent;\r\n var descent = metrics.actualBoundingBoxDescent;\r\n\r\n CanvasPool.remove(canvas);\r\n\r\n return {\r\n ascent: ascent,\r\n descent: descent,\r\n fontSize: ascent + descent\r\n };\r\n }\r\n\r\n var width = Math.ceil(metrics.width * textStyle.baselineX);\r\n var baseline = width;\r\n var height = 2 * baseline;\r\n\r\n baseline = baseline * textStyle.baselineY | 0;\r\n\r\n canvas.width = width;\r\n canvas.height = height;\r\n\r\n context.fillStyle = '#f00';\r\n context.fillRect(0, 0, width, height);\r\n\r\n context.font = textStyle._font;\r\n\r\n context.textBaseline = 'alphabetic';\r\n context.fillStyle = '#000';\r\n context.fillText(textStyle.testString, 0, baseline);\r\n\r\n var output = {\r\n ascent: 0,\r\n descent: 0,\r\n fontSize: 0\r\n };\r\n\r\n var imagedata = context.getImageData(0, 0, width, height);\r\n\r\n if (!imagedata)\r\n {\r\n output.ascent = baseline;\r\n output.descent = baseline + 6;\r\n output.fontSize = output.ascent + output.descent;\r\n\r\n CanvasPool.remove(canvas);\r\n\r\n return output;\r\n }\r\n\r\n var pixels = imagedata.data;\r\n var numPixels = pixels.length;\r\n var line = width * 4;\r\n var i;\r\n var j;\r\n var idx = 0;\r\n var stop = false;\r\n\r\n // ascent. scan from top to bottom until we find a non red pixel\r\n for (i = 0; i < baseline; i++)\r\n {\r\n for (j = 0; j < line; j += 4)\r\n {\r\n if (pixels[idx + j] !== 255)\r\n {\r\n stop = true;\r\n break;\r\n }\r\n }\r\n\r\n if (!stop)\r\n {\r\n idx += line;\r\n }\r\n else\r\n {\r\n break;\r\n }\r\n }\r\n\r\n output.ascent = baseline - i;\r\n\r\n idx = numPixels - line;\r\n stop = false;\r\n\r\n // descent. scan from bottom to top until we find a non red pixel\r\n for (i = height; i > baseline; i--)\r\n {\r\n for (j = 0; j < line; j += 4)\r\n {\r\n if (pixels[idx + j] !== 255)\r\n {\r\n stop = true;\r\n break;\r\n }\r\n }\r\n\r\n if (!stop)\r\n {\r\n idx -= line;\r\n }\r\n else\r\n {\r\n break;\r\n }\r\n }\r\n\r\n output.descent = (i - baseline);\r\n output.fontSize = output.ascent + output.descent;\r\n\r\n CanvasPool.remove(canvas);\r\n\r\n return output;\r\n};\r\n\r\nmodule.exports = MeasureText;\r\n\n\n/***/ }),\n\n/***/ 50171:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar AddToDOM = __webpack_require__(40366);\r\nvar CanvasPool = __webpack_require__(27919);\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar GameObject = __webpack_require__(95643);\r\nvar GetTextSize = __webpack_require__(14220);\r\nvar GetValue = __webpack_require__(35154);\r\nvar RemoveFromDOM = __webpack_require__(35846);\r\nvar TextRender = __webpack_require__(61771);\r\nvar TextStyle = __webpack_require__(35762);\r\nvar UUID = __webpack_require__(45650);\r\n\r\n/**\r\n * @classdesc\r\n * A Text Game Object.\r\n *\r\n * Text objects work by creating their own internal hidden Canvas and then renders text to it using\r\n * the standard Canvas `fillText` API. It then creates a texture from this canvas which is rendered\r\n * to your game during the render pass.\r\n *\r\n * Because it uses the Canvas API you can take advantage of all the features this offers, such as\r\n * applying gradient fills to the text, or strokes, shadows and more. You can also use custom fonts\r\n * loaded externally, such as Google or TypeKit Web fonts.\r\n *\r\n * **Important:** The font name must be quoted if it contains certain combinations of digits or\r\n * special characters, either when creating the Text object, or when setting the font via `setFont`\r\n * or `setFontFamily`, e.g.:\r\n *\r\n * ```javascript\r\n * this.add.text(0, 0, 'Hello World', { fontFamily: 'Georgia, \"Goudy Bookletter 1911\", Times, serif' });\r\n * ```\r\n *\r\n * ```javascript\r\n * this.add.text(0, 0, 'Hello World', { font: '\"Press Start 2P\"' });\r\n * ```\r\n *\r\n * You can only display fonts that are currently loaded and available to the browser: therefore fonts must\r\n * be pre-loaded. Phaser does not do this for you, so you will require the use of a 3rd party font loader,\r\n * or have the fonts ready available in the CSS on the page in which your Phaser game resides.\r\n *\r\n * See {@link http://www.jordanm.co.uk/tinytype this compatibility table} for the available default fonts\r\n * across mobile browsers.\r\n *\r\n * A note on performance: Every time the contents of a Text object changes, i.e. changing the text being\r\n * displayed, or the style of the text, it needs to remake the Text canvas, and if on WebGL, re-upload the\r\n * new texture to the GPU. This can be an expensive operation if used often, or with large quantities of\r\n * Text objects in your game. If you run into performance issues you would be better off using Bitmap Text\r\n * instead, as it benefits from batching and avoids expensive Canvas API calls.\r\n *\r\n * @class Text\r\n * @extends Phaser.GameObjects.GameObject\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @extends Phaser.GameObjects.Components.Alpha\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.ComputedSize\r\n * @extends Phaser.GameObjects.Components.Crop\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.Flip\r\n * @extends Phaser.GameObjects.Components.GetBounds\r\n * @extends Phaser.GameObjects.Components.Mask\r\n * @extends Phaser.GameObjects.Components.Origin\r\n * @extends Phaser.GameObjects.Components.Pipeline\r\n * @extends Phaser.GameObjects.Components.PostPipeline\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n * @extends Phaser.GameObjects.Components.Tint\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {(string|string[])} text - The text this Text object will display.\r\n * @param {Phaser.Types.GameObjects.Text.TextStyle} style - The text style configuration object.\r\n *\r\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/font-family#Valid_family_names\r\n */\r\nvar Text = new Class({\r\n\r\n Extends: GameObject,\r\n\r\n Mixins: [\r\n Components.Alpha,\r\n Components.BlendMode,\r\n Components.ComputedSize,\r\n Components.Crop,\r\n Components.Depth,\r\n Components.Flip,\r\n Components.GetBounds,\r\n Components.Mask,\r\n Components.Origin,\r\n Components.Pipeline,\r\n Components.PostPipeline,\r\n Components.ScrollFactor,\r\n Components.Tint,\r\n Components.Transform,\r\n Components.Visible,\r\n TextRender\r\n ],\r\n\r\n initialize:\r\n\r\n function Text (scene, x, y, text, style)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n\r\n GameObject.call(this, scene, 'Text');\r\n\r\n /**\r\n * The renderer in use by this Text object.\r\n *\r\n * @name Phaser.GameObjects.Text#renderer\r\n * @type {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)}\r\n * @since 3.12.0\r\n */\r\n this.renderer = scene.sys.renderer;\r\n\r\n this.setPosition(x, y);\r\n this.setOrigin(0, 0);\r\n this.initPipeline();\r\n this.initPostPipeline(true);\r\n\r\n /**\r\n * The canvas element that the text is rendered to.\r\n *\r\n * @name Phaser.GameObjects.Text#canvas\r\n * @type {HTMLCanvasElement}\r\n * @since 3.0.0\r\n */\r\n this.canvas = CanvasPool.create(this);\r\n\r\n /**\r\n * The context of the canvas element that the text is rendered to.\r\n *\r\n * @name Phaser.GameObjects.Text#context\r\n * @type {CanvasRenderingContext2D}\r\n * @since 3.0.0\r\n */\r\n this.context;\r\n\r\n /**\r\n * The Text Style object.\r\n *\r\n * Manages the style of this Text object.\r\n *\r\n * @name Phaser.GameObjects.Text#style\r\n * @type {Phaser.GameObjects.TextStyle}\r\n * @since 3.0.0\r\n */\r\n this.style = new TextStyle(this, style);\r\n\r\n /**\r\n * Whether to automatically round line positions.\r\n *\r\n * @name Phaser.GameObjects.Text#autoRound\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.autoRound = true;\r\n\r\n /**\r\n * The Regular Expression that is used to split the text up into lines, in\r\n * multi-line text. By default this is `/(?:\\r\\n|\\r|\\n)/`.\r\n * You can change this RegExp to be anything else that you may need.\r\n *\r\n * @name Phaser.GameObjects.Text#splitRegExp\r\n * @type {object}\r\n * @since 3.0.0\r\n */\r\n this.splitRegExp = /(?:\\r\\n|\\r|\\n)/;\r\n\r\n /**\r\n * The text to display.\r\n *\r\n * @name Phaser.GameObjects.Text#_text\r\n * @type {string}\r\n * @private\r\n * @since 3.12.0\r\n */\r\n this._text = undefined;\r\n\r\n /**\r\n * Specify a padding value which is added to the line width and height when calculating the Text size.\r\n * Allows you to add extra spacing if the browser is unable to accurately determine the true font dimensions.\r\n *\r\n * @name Phaser.GameObjects.Text#padding\r\n * @type {Phaser.Types.GameObjects.Text.TextPadding}\r\n * @since 3.0.0\r\n */\r\n this.padding = { left: 0, right: 0, top: 0, bottom: 0 };\r\n\r\n /**\r\n * The width of this Text object.\r\n *\r\n * @name Phaser.GameObjects.Text#width\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n this.width = 1;\r\n\r\n /**\r\n * The height of this Text object.\r\n *\r\n * @name Phaser.GameObjects.Text#height\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n this.height = 1;\r\n\r\n /**\r\n * The line spacing value.\r\n * This value is added to the font height to calculate the overall line height.\r\n * Only has an effect if this Text object contains multiple lines of text.\r\n *\r\n * If you update this property directly, instead of using the `setLineSpacing` method, then\r\n * be sure to call `updateText` after, or you won't see the change reflected in the Text object.\r\n *\r\n * @name Phaser.GameObjects.Text#lineSpacing\r\n * @type {number}\r\n * @since 3.13.0\r\n */\r\n this.lineSpacing = 0;\r\n\r\n /**\r\n * Adds / Removes spacing between characters.\r\n * Can be a negative or positive number.\r\n *\r\n * If you update this property directly, instead of using the `setLetterSpacing` method, then\r\n * be sure to call `updateText` after, or you won't see the change reflected in the Text object.\r\n *\r\n * @name Phaser.GameObjects.Text#letterSpacing\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.letterSpacing = 0;\r\n\r\n // If resolution wasn't set, force it to 1\r\n if (this.style.resolution === 0)\r\n {\r\n this.style.resolution = 1;\r\n }\r\n\r\n /**\r\n * The internal crop data object, as used by `setCrop` and passed to the `Frame.setCropUVs` method.\r\n *\r\n * @name Phaser.GameObjects.Text#_crop\r\n * @type {object}\r\n * @private\r\n * @since 3.12.0\r\n */\r\n this._crop = this.resetCropObject();\r\n\r\n /**\r\n * The internal unique key to refer to the texture in the TextureManager.\r\n *\r\n * @name Phaser.GameObjects.Text#_textureKey\r\n * @type {string}\r\n * @private\r\n * @since 3.80.0\r\n */\r\n this._textureKey = UUID();\r\n\r\n // Create a Texture for this Text object\r\n this.texture = scene.sys.textures.addCanvas(this._textureKey, this.canvas);\r\n\r\n // Set the context to be the CanvasTexture context\r\n this.context = this.texture.context;\r\n\r\n // Get the frame\r\n this.frame = this.texture.get();\r\n\r\n // Set the resolution\r\n this.frame.source.resolution = this.style.resolution;\r\n\r\n if (this.renderer && this.renderer.gl)\r\n {\r\n // Clear the default 1x1 glTexture, as we override it later\r\n this.renderer.deleteTexture(this.frame.source.glTexture);\r\n\r\n this.frame.source.glTexture = null;\r\n }\r\n\r\n this.initRTL();\r\n\r\n this.setText(text);\r\n\r\n if (style && style.padding)\r\n {\r\n this.setPadding(style.padding);\r\n }\r\n\r\n if (style && style.lineSpacing)\r\n {\r\n this.setLineSpacing(style.lineSpacing);\r\n }\r\n },\r\n\r\n /**\r\n * Initialize right to left text.\r\n *\r\n * @method Phaser.GameObjects.Text#initRTL\r\n * @since 3.0.0\r\n */\r\n initRTL: function ()\r\n {\r\n if (!this.style.rtl)\r\n {\r\n return;\r\n }\r\n\r\n // Here is where the crazy starts.\r\n //\r\n // Due to browser implementation issues, you cannot fillText BiDi text to a canvas\r\n // that is not part of the DOM. It just completely ignores the direction property.\r\n\r\n this.canvas.dir = 'rtl';\r\n\r\n // Experimental atm, but one day ...\r\n this.context.direction = 'rtl';\r\n\r\n // Add it to the DOM, but hidden within the parent canvas.\r\n this.canvas.style.display = 'none';\r\n\r\n AddToDOM(this.canvas, this.scene.sys.canvas);\r\n\r\n // And finally we set the x origin\r\n this.originX = 1;\r\n },\r\n\r\n /**\r\n * Greedy wrapping algorithm that will wrap words as the line grows longer than its horizontal\r\n * bounds.\r\n *\r\n * @method Phaser.GameObjects.Text#runWordWrap\r\n * @since 3.0.0\r\n *\r\n * @param {string} text - The text to perform word wrap detection against.\r\n *\r\n * @return {string} The text after wrapping has been applied.\r\n */\r\n runWordWrap: function (text)\r\n {\r\n var style = this.style;\r\n\r\n if (style.wordWrapCallback)\r\n {\r\n var wrappedLines = style.wordWrapCallback.call(style.wordWrapCallbackScope, text, this);\r\n\r\n if (Array.isArray(wrappedLines))\r\n {\r\n wrappedLines = wrappedLines.join('\\n');\r\n }\r\n\r\n return wrappedLines;\r\n }\r\n else if (style.wordWrapWidth)\r\n {\r\n if (style.wordWrapUseAdvanced)\r\n {\r\n return this.advancedWordWrap(text, this.context, this.style.wordWrapWidth);\r\n }\r\n else\r\n {\r\n return this.basicWordWrap(text, this.context, this.style.wordWrapWidth);\r\n }\r\n }\r\n else\r\n {\r\n return text;\r\n }\r\n },\r\n\r\n /**\r\n * Advanced wrapping algorithm that will wrap words as the line grows longer than its horizontal\r\n * bounds. Consecutive spaces will be collapsed and replaced with a single space. Lines will be\r\n * trimmed of white space before processing. Throws an error if wordWrapWidth is less than a\r\n * single character.\r\n *\r\n * @method Phaser.GameObjects.Text#advancedWordWrap\r\n * @since 3.0.0\r\n *\r\n * @param {string} text - The text to perform word wrap detection against.\r\n * @param {CanvasRenderingContext2D} context - The Canvas Rendering Context.\r\n * @param {number} wordWrapWidth - The word wrap width.\r\n *\r\n * @return {string} The wrapped text.\r\n */\r\n advancedWordWrap: function (text, context, wordWrapWidth)\r\n {\r\n var output = '';\r\n\r\n // Condense consecutive spaces and split into lines\r\n var lines = text\r\n .replace(/ +/gi, ' ')\r\n .split(this.splitRegExp);\r\n\r\n var linesCount = lines.length;\r\n\r\n for (var i = 0; i < linesCount; i++)\r\n {\r\n var line = lines[i];\r\n var out = '';\r\n\r\n // Trim whitespace\r\n line = line.replace(/^ *|\\s*$/gi, '');\r\n\r\n // If entire line is less than wordWrapWidth append the entire line and exit early\r\n var lineWidth = context.measureText(line).width;\r\n\r\n if (lineWidth < wordWrapWidth)\r\n {\r\n output += line + '\\n';\r\n continue;\r\n }\r\n\r\n // Otherwise, calculate new lines\r\n var currentLineWidth = wordWrapWidth;\r\n\r\n // Split into words\r\n var words = line.split(' ');\r\n\r\n for (var j = 0; j < words.length; j++)\r\n {\r\n var word = words[j];\r\n var wordWithSpace = word + ' ';\r\n var wordWidth = context.measureText(wordWithSpace).width;\r\n\r\n if (wordWidth > currentLineWidth)\r\n {\r\n // Break word\r\n if (j === 0)\r\n {\r\n // Shave off letters from word until it's small enough\r\n var newWord = wordWithSpace;\r\n\r\n while (newWord.length)\r\n {\r\n newWord = newWord.slice(0, -1);\r\n wordWidth = context.measureText(newWord).width;\r\n\r\n if (wordWidth <= currentLineWidth)\r\n {\r\n break;\r\n }\r\n }\r\n\r\n // If wordWrapWidth is too small for even a single letter, shame user\r\n // failure with a fatal error\r\n if (!newWord.length)\r\n {\r\n throw new Error('wordWrapWidth < a single character');\r\n }\r\n\r\n // Replace current word in array with remainder\r\n var secondPart = word.substr(newWord.length);\r\n\r\n words[j] = secondPart;\r\n\r\n // Append first piece to output\r\n out += newWord;\r\n }\r\n\r\n // If existing word length is 0, don't include it\r\n var offset = (words[j].length) ? j : j + 1;\r\n\r\n // Collapse rest of sentence and remove any trailing white space\r\n var remainder = words.slice(offset).join(' ').replace(/[ \\n]*$/gi, '');\r\n\r\n // Prepend remainder to next line\r\n lines.splice(i + 1, 0, remainder);\r\n\r\n linesCount = lines.length;\r\n\r\n break; // Processing on this line\r\n\r\n // Append word with space to output\r\n }\r\n else\r\n {\r\n out += wordWithSpace;\r\n currentLineWidth -= wordWidth;\r\n }\r\n }\r\n\r\n // Append processed line to output\r\n output += out.replace(/[ \\n]*$/gi, '') + '\\n';\r\n }\r\n\r\n // Trim the end of the string\r\n output = output.replace(/[\\s|\\n]*$/gi, '');\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Greedy wrapping algorithm that will wrap words as the line grows longer than its horizontal\r\n * bounds. Spaces are not collapsed and whitespace is not trimmed.\r\n *\r\n * @method Phaser.GameObjects.Text#basicWordWrap\r\n * @since 3.0.0\r\n *\r\n * @param {string} text - The text to perform word wrap detection against.\r\n * @param {CanvasRenderingContext2D} context - The Canvas Rendering Context.\r\n * @param {number} wordWrapWidth - The word wrap width.\r\n *\r\n * @return {string} The wrapped text.\r\n */\r\n basicWordWrap: function (text, context, wordWrapWidth)\r\n {\r\n var result = '';\r\n var lines = text.split(this.splitRegExp);\r\n var lastLineIndex = lines.length - 1;\r\n var whiteSpaceWidth = context.measureText(' ').width;\r\n\r\n for (var i = 0; i <= lastLineIndex; i++)\r\n {\r\n var spaceLeft = wordWrapWidth;\r\n var words = lines[i].split(' ');\r\n var lastWordIndex = words.length - 1;\r\n\r\n for (var j = 0; j <= lastWordIndex; j++)\r\n {\r\n var word = words[j];\r\n var wordWidth = context.measureText(word).width;\r\n var wordWidthWithSpace = wordWidth;\r\n\r\n if (j < lastWordIndex)\r\n {\r\n wordWidthWithSpace += whiteSpaceWidth;\r\n }\r\n\r\n if (wordWidthWithSpace > spaceLeft)\r\n {\r\n // Skip printing the newline if it's the first word of the line that is greater\r\n // than the word wrap width.\r\n if (j > 0)\r\n {\r\n result += '\\n';\r\n spaceLeft = wordWrapWidth;\r\n }\r\n }\r\n\r\n result += word;\r\n\r\n if (j < lastWordIndex)\r\n {\r\n result += ' ';\r\n spaceLeft -= wordWidthWithSpace;\r\n }\r\n else\r\n {\r\n spaceLeft -= wordWidth;\r\n }\r\n }\r\n\r\n if (i < lastLineIndex)\r\n {\r\n result += '\\n';\r\n }\r\n }\r\n\r\n return result;\r\n },\r\n\r\n /**\r\n * Runs the given text through this Text objects word wrapping and returns the results as an\r\n * array, where each element of the array corresponds to a wrapped line of text.\r\n *\r\n * @method Phaser.GameObjects.Text#getWrappedText\r\n * @since 3.0.0\r\n *\r\n * @param {string} [text] - The text for which the wrapping will be calculated. If unspecified, the Text objects current text will be used.\r\n *\r\n * @return {string[]} An array of strings with the pieces of wrapped text.\r\n */\r\n getWrappedText: function (text)\r\n {\r\n if (text === undefined) { text = this._text; }\r\n\r\n this.style.syncFont(this.canvas, this.context);\r\n\r\n var wrappedLines = this.runWordWrap(text);\r\n\r\n return wrappedLines.split(this.splitRegExp);\r\n },\r\n\r\n /**\r\n * Set the text to display.\r\n *\r\n * An array of strings will be joined with `\\n` line breaks.\r\n *\r\n * @method Phaser.GameObjects.Text#setText\r\n * @since 3.0.0\r\n *\r\n * @param {(string|string[])} value - The string, or array of strings, to be set as the content of this Text object.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setText: function (value)\r\n {\r\n if (!value && value !== 0)\r\n {\r\n value = '';\r\n }\r\n\r\n if (Array.isArray(value))\r\n {\r\n value = value.join('\\n');\r\n }\r\n\r\n if (value !== this._text)\r\n {\r\n this._text = value.toString();\r\n\r\n this.updateText();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Appends the given text to the content already being displayed by this Text object.\r\n *\r\n * An array of strings will be joined with `\\n` line breaks.\r\n *\r\n * @method Phaser.GameObjects.Text#appendText\r\n * @since 3.60.0\r\n *\r\n * @param {(string|string[])} value - The string, or array of strings, to be appended to the existing content of this Text object.\r\n * @param {boolean} [addCR=true] - Insert a carriage-return before the string value.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n appendText: function (value, addCR)\r\n {\r\n if (addCR === undefined) { addCR = true; }\r\n\r\n if (!value && value !== 0)\r\n {\r\n value = '';\r\n }\r\n\r\n if (Array.isArray(value))\r\n {\r\n value = value.join('\\n');\r\n }\r\n\r\n value = value.toString();\r\n\r\n var newText = this._text.concat((addCR) ? '\\n' + value : value);\r\n\r\n if (newText !== this._text)\r\n {\r\n this._text = newText;\r\n\r\n this.updateText();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the text style.\r\n *\r\n * @example\r\n * text.setStyle({\r\n * fontSize: '64px',\r\n * fontFamily: 'Arial',\r\n * color: '#ffffff',\r\n * align: 'center',\r\n * backgroundColor: '#ff00ff'\r\n * });\r\n *\r\n * @method Phaser.GameObjects.Text#setStyle\r\n * @since 3.0.0\r\n *\r\n * @param {object} style - The style settings to set.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setStyle: function (style)\r\n {\r\n return this.style.setStyle(style);\r\n },\r\n\r\n /**\r\n * Set the font.\r\n *\r\n * If a string is given, the font family is set.\r\n *\r\n * If an object is given, the `fontFamily`, `fontSize` and `fontStyle`\r\n * properties of that object are set.\r\n *\r\n * **Important:** The font name must be quoted if it contains certain combinations of digits or\r\n * special characters:\r\n *\r\n * ```javascript\r\n * Text.setFont('\"Press Start 2P\"');\r\n * ```\r\n *\r\n * Equally, if you wish to provide a list of fallback fonts, then you should ensure they are all\r\n * quoted properly, too:\r\n *\r\n * ```javascript\r\n * Text.setFont('Georgia, \"Goudy Bookletter 1911\", Times, serif');\r\n * ```\r\n *\r\n * @method Phaser.GameObjects.Text#setFont\r\n * @since 3.0.0\r\n *\r\n * @param {string} font - The font family or font settings to set.\r\n *\r\n * @return {this} This Text object.\r\n *\r\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/font-family#Valid_family_names\r\n */\r\n setFont: function (font)\r\n {\r\n return this.style.setFont(font);\r\n },\r\n\r\n /**\r\n * Set the font family.\r\n *\r\n * **Important:** The font name must be quoted if it contains certain combinations of digits or\r\n * special characters:\r\n *\r\n * ```javascript\r\n * Text.setFont('\"Press Start 2P\"');\r\n * ```\r\n *\r\n * Equally, if you wish to provide a list of fallback fonts, then you should ensure they are all\r\n * quoted properly, too:\r\n *\r\n * ```javascript\r\n * Text.setFont('Georgia, \"Goudy Bookletter 1911\", Times, serif');\r\n * ```\r\n *\r\n * @method Phaser.GameObjects.Text#setFontFamily\r\n * @since 3.0.0\r\n *\r\n * @param {string} family - The font family.\r\n *\r\n * @return {this} This Text object.\r\n *\r\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/font-family#Valid_family_names\r\n */\r\n setFontFamily: function (family)\r\n {\r\n return this.style.setFontFamily(family);\r\n },\r\n\r\n /**\r\n * Set the font size. Can be a string with a valid CSS unit, i.e. `16px`, or a number.\r\n *\r\n * @method Phaser.GameObjects.Text#setFontSize\r\n * @since 3.0.0\r\n *\r\n * @param {(string|number)} size - The font size.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setFontSize: function (size)\r\n {\r\n return this.style.setFontSize(size);\r\n },\r\n\r\n /**\r\n * Set the font style.\r\n *\r\n * @method Phaser.GameObjects.Text#setFontStyle\r\n * @since 3.0.0\r\n *\r\n * @param {string} style - The font style.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setFontStyle: function (style)\r\n {\r\n return this.style.setFontStyle(style);\r\n },\r\n\r\n /**\r\n * Set a fixed width and height for the text.\r\n *\r\n * Pass in `0` for either of these parameters to disable fixed width or height respectively.\r\n *\r\n * @method Phaser.GameObjects.Text#setFixedSize\r\n * @since 3.0.0\r\n *\r\n * @param {number} width - The fixed width to set. `0` disables fixed width.\r\n * @param {number} height - The fixed height to set. `0` disables fixed height.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setFixedSize: function (width, height)\r\n {\r\n return this.style.setFixedSize(width, height);\r\n },\r\n\r\n /**\r\n * Set the background color.\r\n *\r\n * @method Phaser.GameObjects.Text#setBackgroundColor\r\n * @since 3.0.0\r\n *\r\n * @param {string} color - The background color.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setBackgroundColor: function (color)\r\n {\r\n return this.style.setBackgroundColor(color);\r\n },\r\n\r\n /**\r\n * Set the fill style to be used by the Text object.\r\n *\r\n * This can be any valid CanvasRenderingContext2D fillStyle value, such as\r\n * a color (in hex, rgb, rgba, hsl or named values), a gradient or a pattern.\r\n *\r\n * See the [MDN fillStyle docs](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/fillStyle) for more details.\r\n *\r\n * @method Phaser.GameObjects.Text#setFill\r\n * @since 3.0.0\r\n *\r\n * @param {(string|CanvasGradient|CanvasPattern)} color - The text fill style. Can be any valid CanvasRenderingContext `fillStyle` value.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setFill: function (fillStyle)\r\n {\r\n return this.style.setFill(fillStyle);\r\n },\r\n\r\n /**\r\n * Set the text fill color.\r\n *\r\n * @method Phaser.GameObjects.Text#setColor\r\n * @since 3.0.0\r\n *\r\n * @param {(string|CanvasGradient|CanvasPattern)} color - The text fill color.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setColor: function (color)\r\n {\r\n return this.style.setColor(color);\r\n },\r\n\r\n /**\r\n * Set the stroke settings.\r\n *\r\n * @method Phaser.GameObjects.Text#setStroke\r\n * @since 3.0.0\r\n *\r\n * @param {(string|CanvasGradient|CanvasPattern)} color - The stroke color.\r\n * @param {number} thickness - The stroke thickness.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setStroke: function (color, thickness)\r\n {\r\n return this.style.setStroke(color, thickness);\r\n },\r\n\r\n /**\r\n * Set the shadow settings.\r\n *\r\n * @method Phaser.GameObjects.Text#setShadow\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=0] - The horizontal shadow offset.\r\n * @param {number} [y=0] - The vertical shadow offset.\r\n * @param {string} [color='#000'] - The shadow color.\r\n * @param {number} [blur=0] - The shadow blur radius.\r\n * @param {boolean} [shadowStroke=false] - Whether to stroke the shadow.\r\n * @param {boolean} [shadowFill=true] - Whether to fill the shadow.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setShadow: function (x, y, color, blur, shadowStroke, shadowFill)\r\n {\r\n return this.style.setShadow(x, y, color, blur, shadowStroke, shadowFill);\r\n },\r\n\r\n /**\r\n * Set the shadow offset.\r\n *\r\n * @method Phaser.GameObjects.Text#setShadowOffset\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal shadow offset.\r\n * @param {number} y - The vertical shadow offset.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setShadowOffset: function (x, y)\r\n {\r\n return this.style.setShadowOffset(x, y);\r\n },\r\n\r\n /**\r\n * Set the shadow color.\r\n *\r\n * @method Phaser.GameObjects.Text#setShadowColor\r\n * @since 3.0.0\r\n *\r\n * @param {string} color - The shadow color.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setShadowColor: function (color)\r\n {\r\n return this.style.setShadowColor(color);\r\n },\r\n\r\n /**\r\n * Set the shadow blur radius.\r\n *\r\n * @method Phaser.GameObjects.Text#setShadowBlur\r\n * @since 3.0.0\r\n *\r\n * @param {number} blur - The shadow blur radius.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setShadowBlur: function (blur)\r\n {\r\n return this.style.setShadowBlur(blur);\r\n },\r\n\r\n /**\r\n * Enable or disable shadow stroke.\r\n *\r\n * @method Phaser.GameObjects.Text#setShadowStroke\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} enabled - Whether shadow stroke is enabled or not.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setShadowStroke: function (enabled)\r\n {\r\n return this.style.setShadowStroke(enabled);\r\n },\r\n\r\n /**\r\n * Enable or disable shadow fill.\r\n *\r\n * @method Phaser.GameObjects.Text#setShadowFill\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} enabled - Whether shadow fill is enabled or not.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setShadowFill: function (enabled)\r\n {\r\n return this.style.setShadowFill(enabled);\r\n },\r\n\r\n /**\r\n * Set the width (in pixels) to use for wrapping lines. Pass in null to remove wrapping by width.\r\n *\r\n * @method Phaser.GameObjects.Text#setWordWrapWidth\r\n * @since 3.0.0\r\n *\r\n * @param {number | null} width - The maximum width of a line in pixels. Set to null to remove wrapping.\r\n * @param {boolean} [useAdvancedWrap=false] - Whether or not to use the advanced wrapping\r\n * algorithm. If true, spaces are collapsed and whitespace is trimmed from lines. If false,\r\n * spaces and whitespace are left as is.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setWordWrapWidth: function (width, useAdvancedWrap)\r\n {\r\n return this.style.setWordWrapWidth(width, useAdvancedWrap);\r\n },\r\n\r\n /**\r\n * Set a custom callback for wrapping lines. Pass in null to remove wrapping by callback.\r\n *\r\n * @method Phaser.GameObjects.Text#setWordWrapCallback\r\n * @since 3.0.0\r\n *\r\n * @param {TextStyleWordWrapCallback} callback - A custom function that will be responsible for wrapping the\r\n * text. It will receive two arguments: text (the string to wrap), textObject (this Text\r\n * instance). It should return the wrapped lines either as an array of lines or as a string with\r\n * newline characters in place to indicate where breaks should happen.\r\n * @param {object} [scope=null] - The scope that will be applied when the callback is invoked.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setWordWrapCallback: function (callback, scope)\r\n {\r\n return this.style.setWordWrapCallback(callback, scope);\r\n },\r\n\r\n /**\r\n * Set the alignment of the text in this Text object.\r\n *\r\n * The argument can be one of: `left`, `right`, `center` or `justify`.\r\n *\r\n * Alignment only works if the Text object has more than one line of text.\r\n *\r\n * @method Phaser.GameObjects.Text#setAlign\r\n * @since 3.0.0\r\n *\r\n * @param {string} [align='left'] - The text alignment for multi-line text.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setAlign: function (align)\r\n {\r\n return this.style.setAlign(align);\r\n },\r\n\r\n /**\r\n * Set the resolution used by this Text object.\r\n *\r\n * It allows for much clearer text on High DPI devices, at the cost of memory because it uses larger\r\n * internal Canvas textures for the Text.\r\n *\r\n * Therefore, please use with caution, as the more high res Text you have, the more memory it uses.\r\n *\r\n * @method Phaser.GameObjects.Text#setResolution\r\n * @since 3.12.0\r\n *\r\n * @param {number} value - The resolution for this Text object to use.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setResolution: function (value)\r\n {\r\n return this.style.setResolution(value);\r\n },\r\n\r\n /**\r\n * Sets the line spacing value.\r\n *\r\n * This value is _added_ to the height of the font when calculating the overall line height.\r\n * This only has an effect if this Text object consists of multiple lines of text.\r\n *\r\n * @method Phaser.GameObjects.Text#setLineSpacing\r\n * @since 3.13.0\r\n *\r\n * @param {number} value - The amount to add to the font height to achieve the overall line height.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setLineSpacing: function (value)\r\n {\r\n this.lineSpacing = value;\r\n\r\n return this.updateText();\r\n },\r\n\r\n /**\r\n * Sets the letter spacing value.\r\n *\r\n * This will add, or remove spacing between each character of this Text Game Object. The value can be\r\n * either positive or negative. Positive values increase the space between each character, whilst negative\r\n * values decrease it. Note that some fonts are spaced naturally closer together than others.\r\n *\r\n * Please understand that enabling this feature will cause Phaser to render each character in this Text object\r\n * one by one, rather than use a draw for the whole string. This makes it extremely expensive when used with\r\n * either long strings, or lots of strings in total. You will be better off creating bitmap font text if you\r\n * need to display large quantities of characters with fine control over the letter spacing.\r\n *\r\n * @method Phaser.GameObjects.Text#setLetterSpacing\r\n * @since 3.70.0\r\n *\r\n * @param {number} value - The amount to add to the letter width. Set to zero to disable.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setLetterSpacing: function (value)\r\n {\r\n this.letterSpacing = value;\r\n\r\n return this.updateText();\r\n },\r\n\r\n /**\r\n * Set the text padding.\r\n *\r\n * 'left' can be an object.\r\n *\r\n * If only 'left' and 'top' are given they are treated as 'x' and 'y'.\r\n *\r\n * @method Phaser.GameObjects.Text#setPadding\r\n * @since 3.0.0\r\n *\r\n * @param {(number|Phaser.Types.GameObjects.Text.TextPadding)} left - The left padding value, or a padding config object.\r\n * @param {number} [top] - The top padding value.\r\n * @param {number} [right] - The right padding value.\r\n * @param {number} [bottom] - The bottom padding value.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setPadding: function (left, top, right, bottom)\r\n {\r\n if (typeof left === 'object')\r\n {\r\n var config = left;\r\n\r\n // If they specify x and/or y this applies to all\r\n var x = GetValue(config, 'x', null);\r\n\r\n if (x !== null)\r\n {\r\n left = x;\r\n right = x;\r\n }\r\n else\r\n {\r\n left = GetValue(config, 'left', 0);\r\n right = GetValue(config, 'right', left);\r\n }\r\n\r\n var y = GetValue(config, 'y', null);\r\n\r\n if (y !== null)\r\n {\r\n top = y;\r\n bottom = y;\r\n }\r\n else\r\n {\r\n top = GetValue(config, 'top', 0);\r\n bottom = GetValue(config, 'bottom', top);\r\n }\r\n }\r\n else\r\n {\r\n if (left === undefined) { left = 0; }\r\n if (top === undefined) { top = left; }\r\n if (right === undefined) { right = left; }\r\n if (bottom === undefined) { bottom = top; }\r\n }\r\n\r\n this.padding.left = left;\r\n this.padding.top = top;\r\n this.padding.right = right;\r\n this.padding.bottom = bottom;\r\n\r\n return this.updateText();\r\n },\r\n\r\n /**\r\n * Set the maximum number of lines to draw.\r\n *\r\n * @method Phaser.GameObjects.Text#setMaxLines\r\n * @since 3.0.0\r\n *\r\n * @param {number} [max=0] - The maximum number of lines to draw.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setMaxLines: function (max)\r\n {\r\n return this.style.setMaxLines(max);\r\n },\r\n\r\n /**\r\n * Render text from right-to-left or left-to-right.\r\n *\r\n * @method Phaser.GameObjects.Text#setRTL\r\n * @since 3.70.0\r\n *\r\n * @param {boolean} [rtl=true] - Set to `true` to render from right-to-left.\r\n *\r\n * @return {this} This Text object.\r\n */\r\n setRTL: function (rtl)\r\n {\r\n if (rtl === undefined) { rtl = true; }\r\n\r\n var style = this.style;\r\n\r\n if (style.rtl === rtl)\r\n {\r\n return this;\r\n }\r\n\r\n style.rtl = rtl;\r\n\r\n if (rtl)\r\n {\r\n this.canvas.dir = 'rtl';\r\n this.context.direction = 'rtl';\r\n this.canvas.style.display = 'none';\r\n\r\n AddToDOM(this.canvas, this.scene.sys.canvas);\r\n }\r\n else\r\n {\r\n this.canvas.dir = 'ltr';\r\n this.context.direction = 'ltr';\r\n }\r\n\r\n if (style.align === 'left')\r\n {\r\n style.align = 'right';\r\n }\r\n else if (style.align === 'right')\r\n {\r\n style.align = 'left';\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Update the displayed text.\r\n *\r\n * @method Phaser.GameObjects.Text#updateText\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Text object.\r\n */\r\n updateText: function ()\r\n {\r\n var canvas = this.canvas;\r\n var context = this.context;\r\n var style = this.style;\r\n var resolution = style.resolution;\r\n var size = style.metrics;\r\n\r\n style.syncFont(canvas, context);\r\n\r\n var outputText = this._text;\r\n\r\n if (style.wordWrapWidth || style.wordWrapCallback)\r\n {\r\n outputText = this.runWordWrap(this._text);\r\n }\r\n\r\n // Split text into lines\r\n var lines = outputText.split(this.splitRegExp);\r\n\r\n var textSize = GetTextSize(this, size, lines);\r\n\r\n var padding = this.padding;\r\n\r\n var textWidth;\r\n\r\n if (style.fixedWidth === 0)\r\n {\r\n this.width = textSize.width + padding.left + padding.right;\r\n\r\n textWidth = textSize.width;\r\n }\r\n else\r\n {\r\n this.width = style.fixedWidth;\r\n\r\n textWidth = this.width - padding.left - padding.right;\r\n\r\n if (textWidth < textSize.width)\r\n {\r\n textWidth = textSize.width;\r\n }\r\n }\r\n\r\n if (style.fixedHeight === 0)\r\n {\r\n this.height = textSize.height + padding.top + padding.bottom;\r\n }\r\n else\r\n {\r\n this.height = style.fixedHeight;\r\n }\r\n\r\n var w = this.width;\r\n var h = this.height;\r\n\r\n this.updateDisplayOrigin();\r\n\r\n w *= resolution;\r\n h *= resolution;\r\n\r\n w = Math.max(w, 1);\r\n h = Math.max(h, 1);\r\n\r\n if (canvas.width !== w || canvas.height !== h)\r\n {\r\n canvas.width = w;\r\n canvas.height = h;\r\n\r\n this.frame.setSize(w, h);\r\n\r\n // Because resizing the canvas resets the context\r\n style.syncFont(canvas, context);\r\n\r\n if (style.rtl)\r\n {\r\n context.direction = 'rtl';\r\n }\r\n }\r\n else\r\n {\r\n context.clearRect(0, 0, w, h);\r\n }\r\n\r\n context.save();\r\n\r\n context.scale(resolution, resolution);\r\n\r\n if (style.backgroundColor)\r\n {\r\n context.fillStyle = style.backgroundColor;\r\n context.fillRect(0, 0, w, h);\r\n }\r\n\r\n style.syncStyle(canvas, context);\r\n\r\n // Apply padding\r\n context.translate(padding.left, padding.top);\r\n\r\n var linePositionX;\r\n var linePositionY;\r\n\r\n // Draw text line by line\r\n for (var i = 0; i < textSize.lines; i++)\r\n {\r\n linePositionX = style.strokeThickness / 2;\r\n linePositionY = (style.strokeThickness / 2 + i * textSize.lineHeight) + size.ascent;\r\n\r\n if (i > 0)\r\n {\r\n linePositionY += (textSize.lineSpacing * i);\r\n }\r\n\r\n if (style.rtl)\r\n {\r\n linePositionX = w - linePositionX - padding.left - padding.right;\r\n }\r\n else if (style.align === 'right')\r\n {\r\n linePositionX += textWidth - textSize.lineWidths[i];\r\n }\r\n else if (style.align === 'center')\r\n {\r\n linePositionX += (textWidth - textSize.lineWidths[i]) / 2;\r\n }\r\n else if (style.align === 'justify')\r\n {\r\n // To justify text line its width must be no less than 85% of defined width\r\n var minimumLengthToApplyJustification = 0.85;\r\n\r\n if (textSize.lineWidths[i] / textSize.width >= minimumLengthToApplyJustification)\r\n {\r\n var extraSpace = textSize.width - textSize.lineWidths[i];\r\n var spaceSize = context.measureText(' ').width;\r\n var trimmedLine = lines[i].trim();\r\n var array = trimmedLine.split(' ');\r\n\r\n extraSpace += (lines[i].length - trimmedLine.length) * spaceSize;\r\n\r\n var extraSpaceCharacters = Math.floor(extraSpace / spaceSize);\r\n var idx = 0;\r\n\r\n while (extraSpaceCharacters > 0)\r\n {\r\n array[idx] += ' ';\r\n idx = (idx + 1) % (array.length - 1 || 1);\r\n --extraSpaceCharacters;\r\n }\r\n\r\n lines[i] = array.join(' ');\r\n }\r\n }\r\n\r\n if (this.autoRound)\r\n {\r\n linePositionX = Math.round(linePositionX);\r\n linePositionY = Math.round(linePositionY);\r\n }\r\n\r\n var letterSpacing = this.letterSpacing;\r\n\r\n // Apply stroke to the whole line only if there's no custom letter spacing\r\n\r\n if (style.strokeThickness && letterSpacing === 0)\r\n {\r\n style.syncShadow(context, style.shadowStroke);\r\n\r\n context.strokeText(lines[i], linePositionX, linePositionY);\r\n }\r\n\r\n if (style.color)\r\n {\r\n style.syncShadow(context, style.shadowFill);\r\n\r\n // Looping fillText could be an expensive operation, we should ignore it if it is not needed\r\n\r\n if (letterSpacing !== 0)\r\n {\r\n var charPositionX = 0;\r\n\r\n var line = lines[i].split('');\r\n\r\n // Draw text letter by letter\r\n for (var l = 0; l < line.length; l++)\r\n {\r\n if (style.strokeThickness)\r\n {\r\n style.syncShadow(context, style.shadowStroke);\r\n\r\n context.strokeText(line[l], linePositionX + charPositionX, linePositionY);\r\n\r\n style.syncShadow(context, style.shadowFill);\r\n }\r\n\r\n context.fillText(line[l], linePositionX + charPositionX, linePositionY);\r\n\r\n charPositionX += context.measureText(line[l]).width + letterSpacing;\r\n }\r\n }\r\n else\r\n {\r\n context.fillText(lines[i], linePositionX, linePositionY);\r\n }\r\n }\r\n }\r\n\r\n context.restore();\r\n\r\n if (this.renderer && this.renderer.gl)\r\n {\r\n this.frame.source.glTexture = this.renderer.canvasToTexture(canvas, this.frame.source.glTexture, true);\r\n\r\n if (false)\r\n {}\r\n }\r\n\r\n var input = this.input;\r\n\r\n if (input && !input.customHitArea)\r\n {\r\n input.hitArea.width = this.width;\r\n input.hitArea.height = this.height;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Get the current text metrics.\r\n *\r\n * @method Phaser.GameObjects.Text#getTextMetrics\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Types.GameObjects.Text.TextMetrics} The text metrics.\r\n */\r\n getTextMetrics: function ()\r\n {\r\n return this.style.getTextMetrics();\r\n },\r\n\r\n /**\r\n * The text string being rendered by this Text Game Object.\r\n *\r\n * @name Phaser.GameObjects.Text#text\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n text: {\r\n\r\n get: function ()\r\n {\r\n return this._text;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.setText(value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Build a JSON representation of the Text object.\r\n *\r\n * @method Phaser.GameObjects.Text#toJSON\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Types.GameObjects.JSONGameObject} A JSON representation of the Text object.\r\n */\r\n toJSON: function ()\r\n {\r\n var out = Components.ToJSON(this);\r\n\r\n // Extra Text data is added here\r\n\r\n var data = {\r\n autoRound: this.autoRound,\r\n text: this._text,\r\n style: this.style.toJSON(),\r\n padding: {\r\n left: this.padding.left,\r\n right: this.padding.right,\r\n top: this.padding.top,\r\n bottom: this.padding.bottom\r\n }\r\n };\r\n\r\n out.data = data;\r\n\r\n return out;\r\n },\r\n\r\n /**\r\n * Internal destroy handler, called as part of the destroy process.\r\n *\r\n * @method Phaser.GameObjects.Text#preDestroy\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n preDestroy: function ()\r\n {\r\n RemoveFromDOM(this.canvas);\r\n\r\n CanvasPool.remove(this.canvas);\r\n\r\n var texture = this.texture;\r\n\r\n if (texture)\r\n {\r\n texture.destroy();\r\n }\r\n }\r\n\r\n /**\r\n * The horizontal origin of this Game Object.\r\n * The origin maps the relationship between the size and position of the Game Object.\r\n * The default value is 0.5, meaning all Game Objects are positioned based on their center.\r\n * Setting the value to 0 means the position now relates to the left of the Game Object.\r\n *\r\n * @name Phaser.GameObjects.Text#originX\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n\r\n /**\r\n * The vertical origin of this Game Object.\r\n * The origin maps the relationship between the size and position of the Game Object.\r\n * The default value is 0.5, meaning all Game Objects are positioned based on their center.\r\n * Setting the value to 0 means the position now relates to the top of the Game Object.\r\n *\r\n * @name Phaser.GameObjects.Text#originY\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n\r\n});\r\n\r\nmodule.exports = Text;\r\n\n\n/***/ }),\n\n/***/ 79724:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Text#renderCanvas\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.Text} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar TextCanvasRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n if (src.width === 0 || src.height === 0)\r\n {\r\n return;\r\n }\r\n\r\n camera.addToRenderList(src);\r\n\r\n renderer.batchSprite(src, src.frame, camera, parentMatrix);\r\n};\r\n\r\nmodule.exports = TextCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 71259:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BuildGameObject = __webpack_require__(25305);\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\nvar Text = __webpack_require__(50171);\r\n\r\n/**\r\n * Creates a new Text Game Object and returns it.\r\n *\r\n * Note: This method will only be available if the Text Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#text\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Text.TextConfig} config - The configuration object this Game Object will use to create itself.\r\n * @param {boolean} [addToScene] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.\r\n *\r\n * @return {Phaser.GameObjects.Text} The Game Object that was created.\r\n */\r\nGameObjectCreator.register('text', function (config, addToScene)\r\n{\r\n if (config === undefined) { config = {}; }\r\n\r\n // style Object = {\r\n // font: [ 'font', '16px Courier' ],\r\n // backgroundColor: [ 'backgroundColor', null ],\r\n // fill: [ 'fill', '#fff' ],\r\n // stroke: [ 'stroke', '#fff' ],\r\n // strokeThickness: [ 'strokeThickness', 0 ],\r\n // shadowOffsetX: [ 'shadow.offsetX', 0 ],\r\n // shadowOffsetY: [ 'shadow.offsetY', 0 ],\r\n // shadowColor: [ 'shadow.color', '#000' ],\r\n // shadowBlur: [ 'shadow.blur', 0 ],\r\n // shadowStroke: [ 'shadow.stroke', false ],\r\n // shadowFill: [ 'shadow.fill', false ],\r\n // align: [ 'align', 'left' ],\r\n // maxLines: [ 'maxLines', 0 ],\r\n // fixedWidth: [ 'fixedWidth', false ],\r\n // fixedHeight: [ 'fixedHeight', false ],\r\n // rtl: [ 'rtl', false ]\r\n // }\r\n\r\n var content = GetAdvancedValue(config, 'text', '');\r\n var style = GetAdvancedValue(config, 'style', null);\r\n\r\n // Padding\r\n // { padding: 2 }\r\n // { padding: { x: , y: }}\r\n // { padding: { left: , top: }}\r\n // { padding: { left: , right: , top: , bottom: }}\r\n\r\n var padding = GetAdvancedValue(config, 'padding', null);\r\n\r\n if (padding !== null)\r\n {\r\n style.padding = padding;\r\n }\r\n\r\n var text = new Text(this.scene, 0, 0, content, style);\r\n\r\n if (addToScene !== undefined)\r\n {\r\n config.add = addToScene;\r\n }\r\n\r\n BuildGameObject(this.scene, text, config);\r\n\r\n // Text specific config options:\r\n\r\n text.autoRound = GetAdvancedValue(config, 'autoRound', true);\r\n text.resolution = GetAdvancedValue(config, 'resolution', 1);\r\n\r\n return text;\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectCreator context.\r\n\n\n/***/ }),\n\n/***/ 68005:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Text = __webpack_require__(50171);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * Creates a new Text Game Object and adds it to the Scene.\r\n *\r\n * A Text Game Object.\r\n *\r\n * Text objects work by creating their own internal hidden Canvas and then renders text to it using\r\n * the standard Canvas `fillText` API. It then creates a texture from this canvas which is rendered\r\n * to your game during the render pass.\r\n *\r\n * Because it uses the Canvas API you can take advantage of all the features this offers, such as\r\n * applying gradient fills to the text, or strokes, shadows and more. You can also use custom fonts\r\n * loaded externally, such as Google or TypeKit Web fonts.\r\n *\r\n * You can only display fonts that are currently loaded and available to the browser: therefore fonts must\r\n * be pre-loaded. Phaser does not do this for you, so you will require the use of a 3rd party font loader,\r\n * or have the fonts ready available in the CSS on the page in which your Phaser game resides.\r\n *\r\n * See {@link http://www.jordanm.co.uk/tinytype this compatibility table} for the available default fonts\r\n * across mobile browsers.\r\n *\r\n * A note on performance: Every time the contents of a Text object changes, i.e. changing the text being\r\n * displayed, or the style of the text, it needs to remake the Text canvas, and if on WebGL, re-upload the\r\n * new texture to the GPU. This can be an expensive operation if used often, or with large quantities of\r\n * Text objects in your game. If you run into performance issues you would be better off using Bitmap Text\r\n * instead, as it benefits from batching and avoids expensive Canvas API calls.\r\n *\r\n * Note: This method will only be available if the Text Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#text\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {(string|string[])} text - The text this Text object will display.\r\n * @param {Phaser.Types.GameObjects.Text.TextStyle} [style] - The Text style configuration object.\r\n *\r\n * @return {Phaser.GameObjects.Text} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('text', function (x, y, text, style)\r\n{\r\n return this.displayList.add(new Text(this.scene, x, y, text, style));\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectFactory context.\r\n//\r\n// There are several properties available to use:\r\n//\r\n// this.scene - a reference to the Scene that owns the GameObjectFactory\r\n// this.displayList - a reference to the Display List the Scene owns\r\n// this.updateList - a reference to the Update List the Scene owns\r\n\n\n/***/ }),\n\n/***/ 61771:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(34397);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(79724);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 35762:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\nvar GetValue = __webpack_require__(35154);\r\nvar MeasureText = __webpack_require__(79557);\r\n\r\n// Key: [ Object Key, Default Value ]\r\n\r\nvar propertyMap = {\r\n fontFamily: [ 'fontFamily', 'Courier' ],\r\n fontSize: [ 'fontSize', '16px' ],\r\n fontStyle: [ 'fontStyle', '' ],\r\n backgroundColor: [ 'backgroundColor', null ],\r\n color: [ 'color', '#fff' ],\r\n stroke: [ 'stroke', '#fff' ],\r\n strokeThickness: [ 'strokeThickness', 0 ],\r\n shadowOffsetX: [ 'shadow.offsetX', 0 ],\r\n shadowOffsetY: [ 'shadow.offsetY', 0 ],\r\n shadowColor: [ 'shadow.color', '#000' ],\r\n shadowBlur: [ 'shadow.blur', 0 ],\r\n shadowStroke: [ 'shadow.stroke', false ],\r\n shadowFill: [ 'shadow.fill', false ],\r\n align: [ 'align', 'left' ],\r\n maxLines: [ 'maxLines', 0 ],\r\n fixedWidth: [ 'fixedWidth', 0 ],\r\n fixedHeight: [ 'fixedHeight', 0 ],\r\n resolution: [ 'resolution', 0 ],\r\n rtl: [ 'rtl', false ],\r\n testString: [ 'testString', '|MÉqgy' ],\r\n baselineX: [ 'baselineX', 1.2 ],\r\n baselineY: [ 'baselineY', 1.4 ],\r\n wordWrapWidth: [ 'wordWrap.width', null ],\r\n wordWrapCallback: [ 'wordWrap.callback', null ],\r\n wordWrapCallbackScope: [ 'wordWrap.callbackScope', null ],\r\n wordWrapUseAdvanced: [ 'wordWrap.useAdvancedWrap', false ]\r\n};\r\n\r\n/**\r\n * @classdesc\r\n * A TextStyle class manages all of the style settings for a Text object.\r\n *\r\n * Text Game Objects create a TextStyle instance automatically, which is\r\n * accessed via the `Text.style` property. You do not normally need to\r\n * instantiate one yourself.\r\n *\r\n * @class TextStyle\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Text} text - The Text object that this TextStyle is styling.\r\n * @param {Phaser.Types.GameObjects.Text.TextStyle} style - The style settings to set.\r\n */\r\nvar TextStyle = new Class({\r\n\r\n initialize:\r\n\r\n function TextStyle (text, style)\r\n {\r\n /**\r\n * The Text object that this TextStyle is styling.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#parent\r\n * @type {Phaser.GameObjects.Text}\r\n * @since 3.0.0\r\n */\r\n this.parent = text;\r\n\r\n /**\r\n * The font family.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#fontFamily\r\n * @type {string}\r\n * @default 'Courier'\r\n * @since 3.0.0\r\n */\r\n this.fontFamily;\r\n\r\n /**\r\n * The font size.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#fontSize\r\n * @type {(string|number)}\r\n * @default '16px'\r\n * @since 3.0.0\r\n */\r\n this.fontSize;\r\n\r\n /**\r\n * The font style.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#fontStyle\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.fontStyle;\r\n\r\n /**\r\n * The background color.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#backgroundColor\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.backgroundColor;\r\n\r\n /**\r\n * The text fill color.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#color\r\n * @type {(string|CanvasGradient|CanvasPattern)}\r\n * @default '#fff'\r\n * @since 3.0.0\r\n */\r\n this.color;\r\n\r\n /**\r\n * The text stroke color.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#stroke\r\n * @type {(string|CanvasGradient|CanvasPattern)}\r\n * @default '#fff'\r\n * @since 3.0.0\r\n */\r\n this.stroke;\r\n\r\n /**\r\n * The text stroke thickness.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#strokeThickness\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.strokeThickness;\r\n\r\n /**\r\n * The horizontal shadow offset.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#shadowOffsetX\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.shadowOffsetX;\r\n\r\n /**\r\n * The vertical shadow offset.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#shadowOffsetY\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.shadowOffsetY;\r\n\r\n /**\r\n * The shadow color.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#shadowColor\r\n * @type {string}\r\n * @default '#000'\r\n * @since 3.0.0\r\n */\r\n this.shadowColor;\r\n\r\n /**\r\n * The shadow blur radius.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#shadowBlur\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.shadowBlur;\r\n\r\n /**\r\n * Whether shadow stroke is enabled or not.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#shadowStroke\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.shadowStroke;\r\n\r\n /**\r\n * Whether shadow fill is enabled or not.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#shadowFill\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.shadowFill;\r\n\r\n /**\r\n * The text alignment.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#align\r\n * @type {string}\r\n * @default 'left'\r\n * @since 3.0.0\r\n */\r\n this.align;\r\n\r\n /**\r\n * The maximum number of lines to draw.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#maxLines\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.maxLines;\r\n\r\n /**\r\n * The fixed width of the text.\r\n *\r\n * `0` means no fixed with.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#fixedWidth\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.fixedWidth;\r\n\r\n /**\r\n * The fixed height of the text.\r\n *\r\n * `0` means no fixed height.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#fixedHeight\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.fixedHeight;\r\n\r\n /**\r\n * The resolution the text is rendered to its internal canvas at.\r\n * The default is 0, which means it will use the resolution set in the Game Config.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#resolution\r\n * @type {number}\r\n * @default 0\r\n * @since 3.12.0\r\n */\r\n this.resolution;\r\n\r\n /**\r\n * Whether the text should render right to left.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#rtl\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.rtl;\r\n\r\n /**\r\n * The test string to use when measuring the font.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#testString\r\n * @type {string}\r\n * @default '|MÉqgy'\r\n * @since 3.0.0\r\n */\r\n this.testString;\r\n\r\n /**\r\n * The amount of horizontal padding added to the width of the text when calculating the font metrics.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#baselineX\r\n * @type {number}\r\n * @default 1.2\r\n * @since 3.3.0\r\n */\r\n this.baselineX;\r\n\r\n /**\r\n * The amount of vertical padding added to the height of the text when calculating the font metrics.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#baselineY\r\n * @type {number}\r\n * @default 1.4\r\n * @since 3.3.0\r\n */\r\n this.baselineY;\r\n\r\n /**\r\n * The maximum width of a line of text in pixels. Null means no line wrapping. Setting this\r\n * property directly will not re-run the word wrapping algorithm. To change the width and\r\n * re-wrap, use {@link Phaser.GameObjects.TextStyle#setWordWrapWidth}.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#wordWrapWidth\r\n * @type {number | null}\r\n * @default null\r\n * @since 3.24.0\r\n */\r\n this.wordWrapWidth;\r\n\r\n /**\r\n * A custom function that will be responsible for wrapping the text. It will receive two\r\n * arguments: text (the string to wrap), textObject (this Text instance). It should return\r\n * the wrapped lines either as an array of lines or as a string with newline characters in\r\n * place to indicate where breaks should happen. Setting this directly will not re-run the\r\n * word wrapping algorithm. To change the callback and re-wrap, use\r\n * {@link Phaser.GameObjects.TextStyle#setWordWrapCallback}.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#wordWrapCallback\r\n * @type {TextStyleWordWrapCallback | null}\r\n * @default null\r\n * @since 3.24.0\r\n */\r\n this.wordWrapCallback;\r\n\r\n /**\r\n * The scope that will be applied when the wordWrapCallback is invoked. Setting this directly will not re-run the\r\n * word wrapping algorithm. To change the callback and re-wrap, use\r\n * {@link Phaser.GameObjects.TextStyle#setWordWrapCallback}.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#wordWrapCallbackScope\r\n * @type {object | null}\r\n * @default null\r\n * @since 3.24.0\r\n */\r\n this.wordWrapCallbackScope;\r\n\r\n /**\r\n * Whether or not to use the advanced wrapping algorithm. If true, spaces are collapsed and\r\n * whitespace is trimmed from lines. If false, spaces and whitespace are left as is. Setting\r\n * this property directly will not re-run the word wrapping algorithm. To change the\r\n * advanced setting and re-wrap, use {@link Phaser.GameObjects.TextStyle#setWordWrapWidth}.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#wordWrapUseAdvanced\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.24.0\r\n */\r\n this.wordWrapUseAdvanced;\r\n\r\n /**\r\n * The font style, size and family.\r\n *\r\n * @name Phaser.GameObjects.TextStyle#_font\r\n * @type {string}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._font;\r\n\r\n // Set to defaults + user style\r\n this.setStyle(style, false, true);\r\n },\r\n\r\n /**\r\n * Set the text style.\r\n *\r\n * @example\r\n * text.setStyle({\r\n * fontSize: '64px',\r\n * fontFamily: 'Arial',\r\n * color: '#ffffff',\r\n * align: 'center',\r\n * backgroundColor: '#ff00ff'\r\n * });\r\n *\r\n * @method Phaser.GameObjects.TextStyle#setStyle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Text.TextStyle} style - The style settings to set.\r\n * @param {boolean} [updateText=true] - Whether to update the text immediately.\r\n * @param {boolean} [setDefaults=false] - Use the default values if not set, or the local values.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n setStyle: function (style, updateText, setDefaults)\r\n {\r\n if (updateText === undefined) { updateText = true; }\r\n if (setDefaults === undefined) { setDefaults = false; }\r\n\r\n for (var key in propertyMap)\r\n {\r\n var value = (setDefaults) ? propertyMap[key][1] : this[key];\r\n\r\n if (key === 'wordWrapCallback' || key === 'wordWrapCallbackScope')\r\n {\r\n // Callback & scope should be set without processing the values\r\n this[key] = GetValue(style, propertyMap[key][0], value);\r\n }\r\n else if (style && key === 'fontSize' && typeof style.fontSize === 'number')\r\n {\r\n this[key] = style.fontSize.toString() + 'px';\r\n }\r\n else\r\n {\r\n this[key] = GetAdvancedValue(style, propertyMap[key][0], value);\r\n }\r\n }\r\n\r\n // Allow for 'font' override\r\n var font = GetValue(style, 'font', null);\r\n\r\n if (font !== null)\r\n {\r\n this.setFont(font, false);\r\n }\r\n\r\n this._font = [ this.fontStyle, this.fontSize, this.fontFamily ].join(' ').trim();\r\n\r\n // Allow for 'fill' to be used in place of 'color'\r\n var fill = GetValue(style, 'fill', null);\r\n\r\n if (fill !== null)\r\n {\r\n this.color = fill;\r\n }\r\n\r\n var metrics = GetValue(style, 'metrics', false);\r\n\r\n // Provide optional TextMetrics in the style object to avoid the canvas look-up / scanning\r\n // Doing this is reset if you then change the font of this TextStyle after creation\r\n if (metrics)\r\n {\r\n this.metrics = {\r\n ascent: GetValue(metrics, 'ascent', 0),\r\n descent: GetValue(metrics, 'descent', 0),\r\n fontSize: GetValue(metrics, 'fontSize', 0)\r\n };\r\n }\r\n else if (updateText || !this.metrics)\r\n {\r\n this.metrics = MeasureText(this);\r\n }\r\n\r\n if (updateText)\r\n {\r\n return this.parent.updateText();\r\n }\r\n else\r\n {\r\n return this.parent;\r\n }\r\n },\r\n\r\n /**\r\n * Synchronize the font settings to the given Canvas Rendering Context.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#syncFont\r\n * @since 3.0.0\r\n *\r\n * @param {HTMLCanvasElement} canvas - The Canvas Element.\r\n * @param {CanvasRenderingContext2D} context - The Canvas Rendering Context.\r\n */\r\n syncFont: function (canvas, context)\r\n {\r\n context.font = this._font;\r\n },\r\n\r\n /**\r\n * Synchronize the text style settings to the given Canvas Rendering Context.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#syncStyle\r\n * @since 3.0.0\r\n *\r\n * @param {HTMLCanvasElement} canvas - The Canvas Element.\r\n * @param {CanvasRenderingContext2D} context - The Canvas Rendering Context.\r\n */\r\n syncStyle: function (canvas, context)\r\n {\r\n context.textBaseline = 'alphabetic';\r\n\r\n context.fillStyle = this.color;\r\n context.strokeStyle = this.stroke;\r\n\r\n context.lineWidth = this.strokeThickness;\r\n context.lineCap = 'round';\r\n context.lineJoin = 'round';\r\n },\r\n\r\n /**\r\n * Synchronize the shadow settings to the given Canvas Rendering Context.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#syncShadow\r\n * @since 3.0.0\r\n *\r\n * @param {CanvasRenderingContext2D} context - The Canvas Rendering Context.\r\n * @param {boolean} enabled - Whether shadows are enabled or not.\r\n */\r\n syncShadow: function (context, enabled)\r\n {\r\n if (enabled)\r\n {\r\n context.shadowOffsetX = this.shadowOffsetX;\r\n context.shadowOffsetY = this.shadowOffsetY;\r\n context.shadowColor = this.shadowColor;\r\n context.shadowBlur = this.shadowBlur;\r\n }\r\n else\r\n {\r\n context.shadowOffsetX = 0;\r\n context.shadowOffsetY = 0;\r\n context.shadowColor = 0;\r\n context.shadowBlur = 0;\r\n }\r\n },\r\n\r\n /**\r\n * Update the style settings for the parent Text object.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#update\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} recalculateMetrics - Whether to recalculate font and text metrics.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n update: function (recalculateMetrics)\r\n {\r\n if (recalculateMetrics)\r\n {\r\n this._font = [ this.fontStyle, this.fontSize, this.fontFamily ].join(' ').trim();\r\n\r\n this.metrics = MeasureText(this);\r\n }\r\n\r\n return this.parent.updateText();\r\n },\r\n\r\n /**\r\n * Set the font.\r\n *\r\n * If a string is given, the font family is set.\r\n *\r\n * If an object is given, the `fontFamily`, `fontSize` and `fontStyle`\r\n * properties of that object are set.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#setFont\r\n * @since 3.0.0\r\n *\r\n * @param {(string|object)} font - The font family or font settings to set.\r\n * @param {boolean} [updateText=true] - Whether to update the text immediately.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n setFont: function (font, updateText)\r\n {\r\n if (updateText === undefined) { updateText = true; }\r\n\r\n var fontFamily = font;\r\n var fontSize = '';\r\n var fontStyle = '';\r\n\r\n if (typeof font !== 'string')\r\n {\r\n fontFamily = GetValue(font, 'fontFamily', 'Courier');\r\n fontSize = GetValue(font, 'fontSize', '16px');\r\n fontStyle = GetValue(font, 'fontStyle', '');\r\n }\r\n else\r\n {\r\n var fontSplit = font.split(' ');\r\n\r\n var i = 0;\r\n\r\n fontStyle = (fontSplit.length > 2) ? fontSplit[i++] : '';\r\n fontSize = fontSplit[i++] || '16px';\r\n fontFamily = fontSplit[i++] || 'Courier';\r\n }\r\n\r\n if (fontFamily !== this.fontFamily || fontSize !== this.fontSize || fontStyle !== this.fontStyle)\r\n {\r\n this.fontFamily = fontFamily;\r\n this.fontSize = fontSize;\r\n this.fontStyle = fontStyle;\r\n\r\n if (updateText)\r\n {\r\n this.update(true);\r\n }\r\n }\r\n\r\n return this.parent;\r\n },\r\n\r\n /**\r\n * Set the font family.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#setFontFamily\r\n * @since 3.0.0\r\n *\r\n * @param {string} family - The font family.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n setFontFamily: function (family)\r\n {\r\n if (this.fontFamily !== family)\r\n {\r\n this.fontFamily = family;\r\n\r\n this.update(true);\r\n }\r\n\r\n return this.parent;\r\n },\r\n\r\n /**\r\n * Set the font style.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#setFontStyle\r\n * @since 3.0.0\r\n *\r\n * @param {string} style - The font style.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n setFontStyle: function (style)\r\n {\r\n if (this.fontStyle !== style)\r\n {\r\n this.fontStyle = style;\r\n\r\n this.update(true);\r\n }\r\n\r\n return this.parent;\r\n },\r\n\r\n /**\r\n * Set the font size. Can be a string with a valid CSS unit, i.e. `16px`, or a number.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#setFontSize\r\n * @since 3.0.0\r\n *\r\n * @param {(number|string)} size - The font size.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n setFontSize: function (size)\r\n {\r\n if (typeof size === 'number')\r\n {\r\n size = size.toString() + 'px';\r\n }\r\n\r\n if (this.fontSize !== size)\r\n {\r\n this.fontSize = size;\r\n\r\n this.update(true);\r\n }\r\n\r\n return this.parent;\r\n },\r\n\r\n /**\r\n * Set the test string to use when measuring the font.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#setTestString\r\n * @since 3.0.0\r\n *\r\n * @param {string} string - The test string to use when measuring the font.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n setTestString: function (string)\r\n {\r\n this.testString = string;\r\n\r\n return this.update(true);\r\n },\r\n\r\n /**\r\n * Set a fixed width and height for the text.\r\n *\r\n * Pass in `0` for either of these parameters to disable fixed width or height respectively.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#setFixedSize\r\n * @since 3.0.0\r\n *\r\n * @param {number} width - The fixed width to set.\r\n * @param {number} height - The fixed height to set.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n setFixedSize: function (width, height)\r\n {\r\n this.fixedWidth = width;\r\n this.fixedHeight = height;\r\n\r\n if (width)\r\n {\r\n this.parent.width = width;\r\n }\r\n\r\n if (height)\r\n {\r\n this.parent.height = height;\r\n }\r\n\r\n return this.update(false);\r\n },\r\n\r\n /**\r\n * Set the background color.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#setBackgroundColor\r\n * @since 3.0.0\r\n *\r\n * @param {string} color - The background color.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n setBackgroundColor: function (color)\r\n {\r\n this.backgroundColor = color;\r\n\r\n return this.update(false);\r\n },\r\n\r\n /**\r\n * Set the text fill color.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#setFill\r\n * @since 3.0.0\r\n *\r\n * @param {(string|CanvasGradient|CanvasPattern)} color - The text fill color.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n setFill: function (color)\r\n {\r\n this.color = color;\r\n\r\n return this.update(false);\r\n },\r\n\r\n /**\r\n * Set the text fill color.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#setColor\r\n * @since 3.0.0\r\n *\r\n * @param {(string|CanvasGradient|CanvasPattern)} color - The text fill color.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n setColor: function (color)\r\n {\r\n this.color = color;\r\n\r\n return this.update(false);\r\n },\r\n\r\n /**\r\n * Set the resolution used by the Text object.\r\n *\r\n * It allows for much clearer text on High DPI devices, at the cost of memory because\r\n * it uses larger internal Canvas textures for the Text.\r\n *\r\n * Please use with caution, as the more high res Text you have, the more memory it uses up.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#setResolution\r\n * @since 3.12.0\r\n *\r\n * @param {number} value - The resolution for this Text object to use.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n setResolution: function (value)\r\n {\r\n this.resolution = value;\r\n\r\n return this.update(false);\r\n },\r\n\r\n /**\r\n * Set the stroke settings.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#setStroke\r\n * @since 3.0.0\r\n *\r\n * @param {(string|CanvasGradient|CanvasPattern)} color - The stroke color.\r\n * @param {number} thickness - The stroke thickness.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n setStroke: function (color, thickness)\r\n {\r\n if (thickness === undefined) { thickness = this.strokeThickness; }\r\n\r\n if (color === undefined && this.strokeThickness !== 0)\r\n {\r\n // Reset the stroke to zero (disabling it)\r\n this.strokeThickness = 0;\r\n\r\n this.update(true);\r\n }\r\n else if (this.stroke !== color || this.strokeThickness !== thickness)\r\n {\r\n this.stroke = color;\r\n this.strokeThickness = thickness;\r\n\r\n this.update(true);\r\n }\r\n\r\n return this.parent;\r\n },\r\n\r\n /**\r\n * Set the shadow settings.\r\n *\r\n * Calling this method always re-measures the parent Text object,\r\n * so only call it when you actually change the shadow settings.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#setShadow\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=0] - The horizontal shadow offset.\r\n * @param {number} [y=0] - The vertical shadow offset.\r\n * @param {string} [color='#000'] - The shadow color.\r\n * @param {number} [blur=0] - The shadow blur radius.\r\n * @param {boolean} [shadowStroke=false] - Whether to stroke the shadow.\r\n * @param {boolean} [shadowFill=true] - Whether to fill the shadow.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n setShadow: function (x, y, color, blur, shadowStroke, shadowFill)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (color === undefined) { color = '#000'; }\r\n if (blur === undefined) { blur = 0; }\r\n if (shadowStroke === undefined) { shadowStroke = false; }\r\n if (shadowFill === undefined) { shadowFill = true; }\r\n\r\n this.shadowOffsetX = x;\r\n this.shadowOffsetY = y;\r\n this.shadowColor = color;\r\n this.shadowBlur = blur;\r\n this.shadowStroke = shadowStroke;\r\n this.shadowFill = shadowFill;\r\n\r\n return this.update(false);\r\n },\r\n\r\n /**\r\n * Set the shadow offset.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#setShadowOffset\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=0] - The horizontal shadow offset.\r\n * @param {number} [y=0] - The vertical shadow offset.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n setShadowOffset: function (x, y)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = x; }\r\n\r\n this.shadowOffsetX = x;\r\n this.shadowOffsetY = y;\r\n\r\n return this.update(false);\r\n },\r\n\r\n /**\r\n * Set the shadow color.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#setShadowColor\r\n * @since 3.0.0\r\n *\r\n * @param {string} [color='#000'] - The shadow color.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n setShadowColor: function (color)\r\n {\r\n if (color === undefined) { color = '#000'; }\r\n\r\n this.shadowColor = color;\r\n\r\n return this.update(false);\r\n },\r\n\r\n /**\r\n * Set the shadow blur radius.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#setShadowBlur\r\n * @since 3.0.0\r\n *\r\n * @param {number} [blur=0] - The shadow blur radius.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n setShadowBlur: function (blur)\r\n {\r\n if (blur === undefined) { blur = 0; }\r\n\r\n this.shadowBlur = blur;\r\n\r\n return this.update(false);\r\n },\r\n\r\n /**\r\n * Enable or disable shadow stroke.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#setShadowStroke\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} enabled - Whether shadow stroke is enabled or not.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n setShadowStroke: function (enabled)\r\n {\r\n this.shadowStroke = enabled;\r\n\r\n return this.update(false);\r\n },\r\n\r\n /**\r\n * Enable or disable shadow fill.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#setShadowFill\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} enabled - Whether shadow fill is enabled or not.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n setShadowFill: function (enabled)\r\n {\r\n this.shadowFill = enabled;\r\n\r\n return this.update(false);\r\n },\r\n\r\n /**\r\n * Set the width (in pixels) to use for wrapping lines.\r\n *\r\n * Pass in null to remove wrapping by width.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#setWordWrapWidth\r\n * @since 3.0.0\r\n *\r\n * @param {number | null} width - The maximum width of a line in pixels. Set to null to remove wrapping.\r\n * @param {boolean} [useAdvancedWrap=false] - Whether or not to use the advanced wrapping\r\n * algorithm. If true, spaces are collapsed and whitespace is trimmed from lines. If false,\r\n * spaces and whitespace are left as is.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n setWordWrapWidth: function (width, useAdvancedWrap)\r\n {\r\n if (useAdvancedWrap === undefined) { useAdvancedWrap = false; }\r\n\r\n this.wordWrapWidth = width;\r\n this.wordWrapUseAdvanced = useAdvancedWrap;\r\n\r\n return this.update(false);\r\n },\r\n\r\n /**\r\n * Set a custom callback for wrapping lines.\r\n *\r\n * Pass in null to remove wrapping by callback.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#setWordWrapCallback\r\n * @since 3.0.0\r\n *\r\n * @param {TextStyleWordWrapCallback} callback - A custom function that will be responsible for wrapping the\r\n * text. It will receive two arguments: text (the string to wrap), textObject (this Text\r\n * instance). It should return the wrapped lines either as an array of lines or as a string with\r\n * newline characters in place to indicate where breaks should happen.\r\n * @param {object} [scope=null] - The scope that will be applied when the callback is invoked.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n setWordWrapCallback: function (callback, scope)\r\n {\r\n if (scope === undefined) { scope = null; }\r\n\r\n this.wordWrapCallback = callback;\r\n this.wordWrapCallbackScope = scope;\r\n\r\n return this.update(false);\r\n },\r\n\r\n /**\r\n * Set the alignment of the text in this Text object.\r\n *\r\n * The argument can be one of: `left`, `right`, `center` or `justify`.\r\n *\r\n * Alignment only works if the Text object has more than one line of text.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#setAlign\r\n * @since 3.0.0\r\n *\r\n * @param {string} [align='left'] - The text alignment for multi-line text.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n setAlign: function (align)\r\n {\r\n if (align === undefined) { align = 'left'; }\r\n\r\n this.align = align;\r\n\r\n return this.update(false);\r\n },\r\n\r\n /**\r\n * Set the maximum number of lines to draw.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#setMaxLines\r\n * @since 3.0.0\r\n *\r\n * @param {number} [max=0] - The maximum number of lines to draw.\r\n *\r\n * @return {Phaser.GameObjects.Text} The parent Text object.\r\n */\r\n setMaxLines: function (max)\r\n {\r\n if (max === undefined) { max = 0; }\r\n\r\n this.maxLines = max;\r\n\r\n return this.update(false);\r\n },\r\n\r\n /**\r\n * Get the current text metrics.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#getTextMetrics\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Types.GameObjects.Text.TextMetrics} The text metrics.\r\n */\r\n getTextMetrics: function ()\r\n {\r\n var metrics = this.metrics;\r\n\r\n return {\r\n ascent: metrics.ascent,\r\n descent: metrics.descent,\r\n fontSize: metrics.fontSize\r\n };\r\n },\r\n\r\n /**\r\n * Build a JSON representation of this Text Style.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#toJSON\r\n * @since 3.0.0\r\n *\r\n * @return {object} A JSON representation of this Text Style.\r\n */\r\n toJSON: function ()\r\n {\r\n var output = {};\r\n\r\n for (var key in propertyMap)\r\n {\r\n output[key] = this[key];\r\n }\r\n\r\n output.metrics = this.getTextMetrics();\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Destroy this Text Style.\r\n *\r\n * @method Phaser.GameObjects.TextStyle#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.parent = undefined;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = TextStyle;\r\n\n\n/***/ }),\n\n/***/ 34397:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Utils = __webpack_require__(70554);\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Text#renderWebGL\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Text} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar TextWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n if (src.width === 0 || src.height === 0)\r\n {\r\n return;\r\n }\r\n\r\n camera.addToRenderList(src);\r\n\r\n var frame = src.frame;\r\n var width = frame.width;\r\n var height = frame.height;\r\n var getTint = Utils.getTintAppendFloatAlpha;\r\n var pipeline = renderer.pipelines.set(src.pipeline, src);\r\n\r\n var textureUnit = pipeline.setTexture2D(frame.glTexture, src);\r\n\r\n pipeline.batchTexture(\r\n src,\r\n frame.glTexture,\r\n width, height,\r\n src.x, src.y,\r\n width / src.style.resolution, height / src.style.resolution,\r\n src.scaleX, src.scaleY,\r\n src.rotation,\r\n src.flipX, src.flipY,\r\n src.scrollFactorX, src.scrollFactorY,\r\n src.displayOriginX, src.displayOriginY,\r\n 0, 0, width, height,\r\n getTint(src.tintTopLeft, camera.alpha * src._alphaTL),\r\n getTint(src.tintTopRight, camera.alpha * src._alphaTR),\r\n getTint(src.tintBottomLeft, camera.alpha * src._alphaBL),\r\n getTint(src.tintBottomRight, camera.alpha * src._alphaBR),\r\n src.tintFill,\r\n 0, 0,\r\n camera,\r\n parentMatrix,\r\n false,\r\n textureUnit\r\n );\r\n};\r\n\r\nmodule.exports = TextWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 20839:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CanvasPool = __webpack_require__(27919);\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar GameObject = __webpack_require__(95643);\r\nvar GetPowerOfTwo = __webpack_require__(98439);\r\nvar Smoothing = __webpack_require__(68703);\r\nvar TileSpriteRender = __webpack_require__(56295);\r\nvar UUID = __webpack_require__(45650);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n// bitmask flag for GameObject.renderMask\r\nvar _FLAG = 8; // 1000\r\n\r\n/**\r\n * @classdesc\r\n * A TileSprite is a Sprite that has a repeating texture.\r\n *\r\n * The texture can be scrolled and scaled independently of the TileSprite itself. Textures will automatically wrap and\r\n * are designed so that you can create game backdrops using seamless textures as a source.\r\n *\r\n * You shouldn't ever create a TileSprite any larger than your actual canvas size. If you want to create a large repeating background\r\n * that scrolls across the whole map of your game, then you create a TileSprite that fits the canvas size and then use the `tilePosition`\r\n * property to scroll the texture as the player moves. If you create a TileSprite that is thousands of pixels in size then it will\r\n * consume huge amounts of memory and cause performance issues. Remember: use `tilePosition` to scroll your texture and `tileScale` to\r\n * adjust the scale of the texture - don't resize the sprite itself or make it larger than it needs.\r\n *\r\n * An important note about Tile Sprites and NPOT textures: Internally, TileSprite textures use GL_REPEAT to provide\r\n * seamless repeating of the textures. This, combined with the way in which the textures are handled in WebGL, means\r\n * they need to be POT (power-of-two) sizes in order to wrap. If you provide a NPOT (non power-of-two) texture to a\r\n * TileSprite it will generate a POT sized canvas and draw your texture to it, scaled up to the POT size. It's then\r\n * scaled back down again during rendering to the original dimensions. While this works, in that it allows you to use\r\n * any size texture for a Tile Sprite, it does mean that NPOT textures are going to appear anti-aliased when rendered,\r\n * due to the interpolation that took place when it was resized into a POT texture. This is especially visible in\r\n * pixel art graphics. If you notice it and it becomes an issue, the only way to avoid it is to ensure that you\r\n * provide POT textures for Tile Sprites.\r\n *\r\n * @class TileSprite\r\n * @extends Phaser.GameObjects.GameObject\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @extends Phaser.GameObjects.Components.Alpha\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.ComputedSize\r\n * @extends Phaser.GameObjects.Components.Crop\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.Flip\r\n * @extends Phaser.GameObjects.Components.GetBounds\r\n * @extends Phaser.GameObjects.Components.Mask\r\n * @extends Phaser.GameObjects.Components.Origin\r\n * @extends Phaser.GameObjects.Components.Pipeline\r\n * @extends Phaser.GameObjects.Components.PostPipeline\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n * @extends Phaser.GameObjects.Components.Tint\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {number} width - The width of the Game Object. If zero it will use the size of the texture frame.\r\n * @param {number} height - The height of the Game Object. If zero it will use the size of the texture frame.\r\n * @param {string} textureKey - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager. Cannot be a DynamicTexture.\r\n * @param {(string|number)} [frameKey] - An optional frame from the Texture this Game Object is rendering with.\r\n */\r\nvar TileSprite = new Class({\r\n\r\n Extends: GameObject,\r\n\r\n Mixins: [\r\n Components.Alpha,\r\n Components.BlendMode,\r\n Components.ComputedSize,\r\n Components.Crop,\r\n Components.Depth,\r\n Components.Flip,\r\n Components.GetBounds,\r\n Components.Mask,\r\n Components.Origin,\r\n Components.Pipeline,\r\n Components.PostPipeline,\r\n Components.ScrollFactor,\r\n Components.Tint,\r\n Components.Transform,\r\n Components.Visible,\r\n TileSpriteRender\r\n ],\r\n\r\n initialize:\r\n\r\n function TileSprite (scene, x, y, width, height, textureKey, frameKey)\r\n {\r\n var renderer = scene.sys.renderer;\r\n\r\n GameObject.call(this, scene, 'TileSprite');\r\n\r\n var displayTexture = scene.sys.textures.get(textureKey);\r\n var displayFrame = displayTexture.get(frameKey);\r\n\r\n if (displayFrame.source.compressionAlgorithm)\r\n {\r\n console.warn('TileSprite cannot use compressed texture');\r\n displayTexture = scene.sys.textures.get('__MISSING');\r\n displayFrame = displayTexture.get();\r\n }\r\n\r\n if (displayTexture.type === 'DynamicTexture')\r\n {\r\n console.warn('TileSprite cannot use Dynamic Texture');\r\n displayTexture = scene.sys.textures.get('__MISSING');\r\n displayFrame = displayTexture.get();\r\n }\r\n\r\n if (!width || !height)\r\n {\r\n width = width ? width : displayFrame.width;\r\n height = height ? height : displayFrame.height;\r\n }\r\n else\r\n {\r\n width = Math.floor(width);\r\n height = Math.floor(height);\r\n }\r\n\r\n /**\r\n * Internal tile position vector.\r\n *\r\n * @name Phaser.GameObjects.TileSprite#_tilePosition\r\n * @type {Phaser.Math.Vector2}\r\n * @private\r\n * @since 3.12.0\r\n */\r\n this._tilePosition = new Vector2();\r\n\r\n /**\r\n * Internal tile scale vector.\r\n *\r\n * @name Phaser.GameObjects.TileSprite#_tileScale\r\n * @type {Phaser.Math.Vector2}\r\n * @private\r\n * @since 3.12.0\r\n */\r\n this._tileScale = new Vector2(1, 1);\r\n\r\n /**\r\n * Whether the Tile Sprite has changed in some way, requiring an re-render of its tile texture.\r\n *\r\n * Such changes include the texture frame and scroll position of the Tile Sprite.\r\n *\r\n * @name Phaser.GameObjects.TileSprite#dirty\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.dirty = false;\r\n\r\n /**\r\n * The renderer in use by this Tile Sprite.\r\n *\r\n * @name Phaser.GameObjects.TileSprite#renderer\r\n * @type {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)}\r\n * @since 3.0.0\r\n */\r\n this.renderer = renderer;\r\n\r\n /**\r\n * The Canvas element that the TileSprite renders its fill pattern in to.\r\n * Only used in Canvas mode.\r\n *\r\n * @name Phaser.GameObjects.TileSprite#canvas\r\n * @type {?HTMLCanvasElement}\r\n * @since 3.12.0\r\n */\r\n this.canvas = CanvasPool.create(this, width, height);\r\n\r\n /**\r\n * The Context of the Canvas element that the TileSprite renders its fill pattern in to.\r\n * Only used in Canvas mode.\r\n *\r\n * @name Phaser.GameObjects.TileSprite#context\r\n * @type {CanvasRenderingContext2D}\r\n * @since 3.12.0\r\n */\r\n this.context = this.canvas.getContext('2d', { willReadFrequently: false });\r\n\r\n /**\r\n * The Texture the TileSprite is using as its fill pattern.\r\n *\r\n * @name Phaser.GameObjects.TileSprite#displayTexture\r\n * @type {Phaser.Textures.Texture|Phaser.Textures.CanvasTexture}\r\n * @private\r\n * @since 3.12.0\r\n */\r\n this.displayTexture = displayTexture;\r\n\r\n /**\r\n * The Frame the TileSprite is using as its fill pattern.\r\n *\r\n * @name Phaser.GameObjects.TileSprite#displayFrame\r\n * @type {Phaser.Textures.Frame}\r\n * @private\r\n * @since 3.12.0\r\n */\r\n this.displayFrame = displayFrame;\r\n\r\n /**\r\n * The internal crop data object, as used by `setCrop` and passed to the `Frame.setCropUVs` method.\r\n *\r\n * @name Phaser.GameObjects.TileSprite#_crop\r\n * @type {object}\r\n * @private\r\n * @since 3.12.0\r\n */\r\n this._crop = this.resetCropObject();\r\n\r\n /**\r\n * The internal unique key to refer to the texture in the TextureManager.\r\n *\r\n * @name Phaser.GameObjects.TileSprite#_textureKey\r\n * @type {string}\r\n * @private\r\n * @since 3.80.0\r\n */\r\n this._textureKey = UUID();\r\n\r\n /**\r\n * The Texture this Game Object is using to render with.\r\n *\r\n * @name Phaser.GameObjects.TileSprite#texture\r\n * @type {Phaser.Textures.Texture|Phaser.Textures.CanvasTexture}\r\n * @since 3.0.0\r\n */\r\n this.texture = scene.sys.textures.addCanvas(this._textureKey, this.canvas);\r\n\r\n /**\r\n * The Texture Frame this Game Object is using to render with.\r\n *\r\n * @name Phaser.GameObjects.TileSprite#frame\r\n * @type {Phaser.Textures.Frame}\r\n * @since 3.0.0\r\n */\r\n this.frame = this.texture.get();\r\n\r\n /**\r\n * The next power of two value from the width of the Fill Pattern frame.\r\n *\r\n * @name Phaser.GameObjects.TileSprite#potWidth\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.potWidth = GetPowerOfTwo(displayFrame.width);\r\n\r\n /**\r\n * The next power of two value from the height of the Fill Pattern frame.\r\n *\r\n * @name Phaser.GameObjects.TileSprite#potHeight\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.potHeight = GetPowerOfTwo(displayFrame.height);\r\n\r\n /**\r\n * The Canvas that the TileSprites texture is rendered to.\r\n * This is used to create a WebGL texture from.\r\n *\r\n * @name Phaser.GameObjects.TileSprite#fillCanvas\r\n * @type {HTMLCanvasElement}\r\n * @since 3.12.0\r\n */\r\n this.fillCanvas = CanvasPool.create2D(this, this.potWidth, this.potHeight);\r\n\r\n /**\r\n * The Canvas Context used to render the TileSprites texture.\r\n *\r\n * @name Phaser.GameObjects.TileSprite#fillContext\r\n * @type {CanvasRenderingContext2D}\r\n * @since 3.12.0\r\n */\r\n this.fillContext = this.fillCanvas.getContext('2d', { willReadFrequently: false });\r\n\r\n /**\r\n * The texture that the Tile Sprite is rendered to, which is then rendered to a Scene.\r\n * In WebGL this is a WebGLTextureWrapper. In Canvas it's a Canvas Fill Pattern.\r\n *\r\n * @name Phaser.GameObjects.TileSprite#fillPattern\r\n * @type {?(Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper|CanvasPattern)}\r\n * @since 3.12.0\r\n */\r\n this.fillPattern = null;\r\n\r\n this.setPosition(x, y);\r\n this.setSize(width, height);\r\n this.setFrame(frameKey);\r\n this.setOriginFromFrame();\r\n this.initPipeline();\r\n this.initPostPipeline(true);\r\n },\r\n\r\n /**\r\n * Sets the texture and frame this Game Object will use to render with.\r\n *\r\n * Textures are referenced by their string-based keys, as stored in the Texture Manager.\r\n *\r\n * @method Phaser.GameObjects.TileSprite#setTexture\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key of the texture to be used, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - The name or index of the frame within the Texture.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setTexture: function (key, frame)\r\n {\r\n this.displayTexture = this.scene.sys.textures.get(key);\r\n\r\n return this.setFrame(frame);\r\n },\r\n\r\n /**\r\n * Sets the frame this Game Object will use to render with.\r\n *\r\n * The Frame has to belong to the current Texture being used.\r\n *\r\n * It can be either a string or an index.\r\n *\r\n * @method Phaser.GameObjects.TileSprite#setFrame\r\n * @since 3.0.0\r\n *\r\n * @param {(string|number)} frame - The name or index of the frame within the Texture.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setFrame: function (frame)\r\n {\r\n var newFrame = this.displayTexture.get(frame);\r\n\r\n this.potWidth = GetPowerOfTwo(newFrame.width);\r\n this.potHeight = GetPowerOfTwo(newFrame.height);\r\n\r\n // So updateCanvas is triggered\r\n this.canvas.width = 0;\r\n\r\n if (!newFrame.cutWidth || !newFrame.cutHeight)\r\n {\r\n this.renderFlags &= ~_FLAG;\r\n }\r\n else\r\n {\r\n this.renderFlags |= _FLAG;\r\n }\r\n\r\n this.displayFrame = newFrame;\r\n\r\n this.dirty = true;\r\n\r\n this.updateTileTexture();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets {@link Phaser.GameObjects.TileSprite#tilePositionX} and {@link Phaser.GameObjects.TileSprite#tilePositionY}.\r\n *\r\n * @method Phaser.GameObjects.TileSprite#setTilePosition\r\n * @since 3.3.0\r\n *\r\n * @param {number} [x] - The x position of this sprite's tiling texture.\r\n * @param {number} [y] - The y position of this sprite's tiling texture.\r\n *\r\n * @return {this} This Tile Sprite instance.\r\n */\r\n setTilePosition: function (x, y)\r\n {\r\n if (x !== undefined)\r\n {\r\n this.tilePositionX = x;\r\n }\r\n\r\n if (y !== undefined)\r\n {\r\n this.tilePositionY = y;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets {@link Phaser.GameObjects.TileSprite#tileScaleX} and {@link Phaser.GameObjects.TileSprite#tileScaleY}.\r\n *\r\n * @method Phaser.GameObjects.TileSprite#setTileScale\r\n * @since 3.12.0\r\n *\r\n * @param {number} [x] - The horizontal scale of the tiling texture. If not given it will use the current `tileScaleX` value.\r\n * @param {number} [y=x] - The vertical scale of the tiling texture. If not given it will use the `x` value.\r\n *\r\n * @return {this} This Tile Sprite instance.\r\n */\r\n setTileScale: function (x, y)\r\n {\r\n if (x === undefined) { x = this.tileScaleX; }\r\n if (y === undefined) { y = x; }\r\n\r\n this.tileScaleX = x;\r\n this.tileScaleY = y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Render the tile texture if it is dirty, or if the frame has changed.\r\n *\r\n * @method Phaser.GameObjects.TileSprite#updateTileTexture\r\n * @private\r\n * @since 3.0.0\r\n */\r\n updateTileTexture: function ()\r\n {\r\n if (!this.dirty || !this.renderer)\r\n {\r\n return;\r\n }\r\n\r\n // Draw the displayTexture to our fillCanvas\r\n\r\n var frame = this.displayFrame;\r\n\r\n if (frame.source.isRenderTexture || frame.source.isGLTexture)\r\n {\r\n console.warn('TileSprites can only use Image or Canvas based textures');\r\n\r\n this.dirty = false;\r\n\r\n return;\r\n }\r\n\r\n var ctx = this.fillContext;\r\n var canvas = this.fillCanvas;\r\n\r\n var fw = this.potWidth;\r\n var fh = this.potHeight;\r\n\r\n if (!this.renderer || !this.renderer.gl)\r\n {\r\n fw = frame.cutWidth;\r\n fh = frame.cutHeight;\r\n }\r\n\r\n ctx.clearRect(0, 0, fw, fh);\r\n\r\n canvas.width = fw;\r\n canvas.height = fh;\r\n\r\n ctx.drawImage(\r\n frame.source.image,\r\n frame.cutX, frame.cutY,\r\n frame.cutWidth, frame.cutHeight,\r\n 0, 0,\r\n fw, fh\r\n );\r\n\r\n if (this.renderer && this.renderer.gl)\r\n {\r\n this.fillPattern = this.renderer.canvasToTexture(canvas, this.fillPattern);\r\n\r\n if (false)\r\n {}\r\n }\r\n else\r\n {\r\n this.fillPattern = ctx.createPattern(canvas, 'repeat');\r\n }\r\n\r\n this.updateCanvas();\r\n\r\n this.dirty = false;\r\n },\r\n\r\n /**\r\n * Draw the fill pattern to the internal canvas.\r\n *\r\n * @method Phaser.GameObjects.TileSprite#updateCanvas\r\n * @private\r\n * @since 3.12.0\r\n */\r\n updateCanvas: function ()\r\n {\r\n var canvas = this.canvas;\r\n\r\n if (canvas.width !== this.width || canvas.height !== this.height)\r\n {\r\n canvas.width = this.width;\r\n canvas.height = this.height;\r\n\r\n this.frame.setSize(this.width, this.height);\r\n this.updateDisplayOrigin();\r\n\r\n this.dirty = true;\r\n }\r\n\r\n if (!this.dirty || this.renderer && this.renderer.gl)\r\n {\r\n this.dirty = false;\r\n return;\r\n }\r\n\r\n var ctx = this.context;\r\n\r\n if (!this.scene.sys.game.config.antialias)\r\n {\r\n Smoothing.disable(ctx);\r\n }\r\n\r\n var scaleX = this._tileScale.x;\r\n var scaleY = this._tileScale.y;\r\n\r\n var positionX = this._tilePosition.x;\r\n var positionY = this._tilePosition.y;\r\n\r\n ctx.clearRect(0, 0, this.width, this.height);\r\n\r\n ctx.save();\r\n\r\n ctx.scale(scaleX, scaleY);\r\n\r\n ctx.translate(-positionX, -positionY);\r\n\r\n ctx.fillStyle = this.fillPattern;\r\n\r\n ctx.fillRect(positionX, positionY, this.width / scaleX, this.height / scaleY);\r\n\r\n ctx.restore();\r\n\r\n this.dirty = false;\r\n },\r\n\r\n /**\r\n * Internal destroy handler, called as part of the destroy process.\r\n *\r\n * @method Phaser.GameObjects.TileSprite#preDestroy\r\n * @protected\r\n * @since 3.9.0\r\n */\r\n preDestroy: function ()\r\n {\r\n if (this.renderer && this.renderer.gl)\r\n {\r\n this.renderer.deleteTexture(this.fillPattern);\r\n }\r\n\r\n CanvasPool.remove(this.canvas);\r\n CanvasPool.remove(this.fillCanvas);\r\n\r\n this.fillPattern = null;\r\n this.fillContext = null;\r\n this.fillCanvas = null;\r\n\r\n this.displayTexture = null;\r\n this.displayFrame = null;\r\n\r\n var texture = this.texture;\r\n\r\n if (texture)\r\n {\r\n texture.destroy();\r\n }\r\n\r\n this.renderer = null;\r\n },\r\n\r\n /**\r\n * The horizontal scroll position of the Tile Sprite.\r\n *\r\n * @name Phaser.GameObjects.TileSprite#tilePositionX\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n tilePositionX: {\r\n\r\n get: function ()\r\n {\r\n return this._tilePosition.x;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._tilePosition.x = value;\r\n this.dirty = true;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The vertical scroll position of the Tile Sprite.\r\n *\r\n * @name Phaser.GameObjects.TileSprite#tilePositionY\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n tilePositionY: {\r\n\r\n get: function ()\r\n {\r\n return this._tilePosition.y;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._tilePosition.y = value;\r\n this.dirty = true;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The horizontal scale of the Tile Sprite texture.\r\n *\r\n * @name Phaser.GameObjects.TileSprite#tileScaleX\r\n * @type {number}\r\n * @default 1\r\n * @since 3.11.0\r\n */\r\n tileScaleX: {\r\n\r\n get: function ()\r\n {\r\n return this._tileScale.x;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._tileScale.x = value;\r\n this.dirty = true;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The vertical scale of the Tile Sprite texture.\r\n *\r\n * @name Phaser.GameObjects.TileSprite#tileScaleY\r\n * @type {number}\r\n * @default 1\r\n * @since 3.11.0\r\n */\r\n tileScaleY: {\r\n\r\n get: function ()\r\n {\r\n return this._tileScale.y;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._tileScale.y = value;\r\n this.dirty = true;\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = TileSprite;\r\n\n\n/***/ }),\n\n/***/ 46992:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.TileSprite#renderCanvas\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.TileSprite} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar TileSpriteCanvasRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n src.updateCanvas();\r\n\r\n camera.addToRenderList(src);\r\n\r\n renderer.batchSprite(src, src.frame, camera, parentMatrix);\r\n};\r\n\r\nmodule.exports = TileSpriteCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 14167:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BuildGameObject = __webpack_require__(25305);\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\nvar TileSprite = __webpack_require__(20839);\r\n\r\n/**\r\n * Creates a new TileSprite Game Object and returns it.\r\n *\r\n * Note: This method will only be available if the TileSprite Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#tileSprite\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.TileSprite.TileSpriteConfig} config - The configuration object this Game Object will use to create itself.\r\n * @param {boolean} [addToScene] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.\r\n *\r\n * @return {Phaser.GameObjects.TileSprite} The Game Object that was created.\r\n */\r\nGameObjectCreator.register('tileSprite', function (config, addToScene)\r\n{\r\n if (config === undefined) { config = {}; }\r\n\r\n var x = GetAdvancedValue(config, 'x', 0);\r\n var y = GetAdvancedValue(config, 'y', 0);\r\n var width = GetAdvancedValue(config, 'width', 512);\r\n var height = GetAdvancedValue(config, 'height', 512);\r\n var key = GetAdvancedValue(config, 'key', '');\r\n var frame = GetAdvancedValue(config, 'frame', '');\r\n\r\n var tile = new TileSprite(this.scene, x, y, width, height, key, frame);\r\n\r\n if (addToScene !== undefined)\r\n {\r\n config.add = addToScene;\r\n }\r\n\r\n BuildGameObject(this.scene, tile, config);\r\n\r\n return tile;\r\n});\r\n\n\n/***/ }),\n\n/***/ 91681:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar TileSprite = __webpack_require__(20839);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * Creates a new TileSprite Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the TileSprite Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#tileSprite\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {number} width - The width of the Game Object. If zero it will use the size of the texture frame.\r\n * @param {number} height - The height of the Game Object. If zero it will use the size of the texture frame.\r\n * @param {(string|Phaser.Textures.Texture)} texture - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager. Cannot be a DynamicTexture.\r\n * @param {(string|number)} [frame] - An optional frame from the Texture this Game Object is rendering with.\r\n *\r\n * @return {Phaser.GameObjects.TileSprite} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('tileSprite', function (x, y, width, height, texture, frame)\r\n{\r\n return this.displayList.add(new TileSprite(this.scene, x, y, width, height, texture, frame));\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectFactory context.\r\n//\r\n// There are several properties available to use:\r\n//\r\n// this.scene - a reference to the Scene that owns the GameObjectFactory\r\n// this.displayList - a reference to the Display List the Scene owns\r\n// this.updateList - a reference to the Update List the Scene owns\r\n\n\n/***/ }),\n\n/***/ 56295:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(18553);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(46992);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 18553:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Utils = __webpack_require__(70554);\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.TileSprite#renderWebGL\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.TileSprite} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar TileSpriteWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n src.updateCanvas();\r\n\r\n var width = src.width;\r\n var height = src.height;\r\n\r\n if (width === 0 || height === 0)\r\n {\r\n return;\r\n }\r\n\r\n camera.addToRenderList(src);\r\n\r\n var getTint = Utils.getTintAppendFloatAlpha;\r\n\r\n var pipeline = renderer.pipelines.set(src.pipeline, src);\r\n\r\n var textureUnit = pipeline.setTexture2D(src.fillPattern, src);\r\n\r\n pipeline.batchTexture(\r\n src,\r\n src.fillPattern,\r\n src.displayFrame.width * src.tileScaleX, src.displayFrame.height * src.tileScaleY,\r\n src.x, src.y,\r\n width, height,\r\n src.scaleX, src.scaleY,\r\n src.rotation,\r\n src.flipX, src.flipY,\r\n src.scrollFactorX, src.scrollFactorY,\r\n src.originX * width, src.originY * height,\r\n 0, 0, width, height,\r\n getTint(src.tintTopLeft, camera.alpha * src._alphaTL),\r\n getTint(src.tintTopRight, camera.alpha * src._alphaTR),\r\n getTint(src.tintBottomLeft, camera.alpha * src._alphaBL),\r\n getTint(src.tintBottomRight, camera.alpha * src._alphaBR),\r\n src.tintFill,\r\n (src.tilePositionX % src.displayFrame.width) / src.displayFrame.width,\r\n (src.tilePositionY % src.displayFrame.height) / src.displayFrame.height,\r\n camera,\r\n parentMatrix,\r\n false,\r\n textureUnit\r\n );\r\n};\r\n\r\nmodule.exports = TileSpriteWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 18471:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Clamp = __webpack_require__(45319);\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar Events = __webpack_require__(51708);\r\nvar GameEvents = __webpack_require__(8443);\r\nvar GameObject = __webpack_require__(95643);\r\nvar MATH_CONST = __webpack_require__(36383);\r\nvar SoundEvents = __webpack_require__(14463);\r\nvar UUID = __webpack_require__(45650);\r\nvar VideoRender = __webpack_require__(10247);\r\n\r\n/**\r\n * @classdesc\r\n * A Video Game Object.\r\n *\r\n * This Game Object is capable of handling playback of a video file, video stream or media stream.\r\n *\r\n * You can optionally 'preload' the video into the Phaser Video Cache:\r\n *\r\n * ```javascript\r\n * preload () {\r\n * this.load.video('ripley', 'assets/aliens.mp4');\r\n * }\r\n *\r\n * create () {\r\n * this.add.video(400, 300, 'ripley');\r\n * }\r\n * ```\r\n *\r\n * You don't have to 'preload' the video. You can also play it directly from a URL:\r\n *\r\n * ```javascript\r\n * create () {\r\n * this.add.video(400, 300).loadURL('assets/aliens.mp4');\r\n * }\r\n * ```\r\n *\r\n * To all intents and purposes, a video is a standard Game Object, just like a Sprite. And as such, you can do\r\n * all the usual things to it, such as scaling, rotating, cropping, tinting, making interactive, giving a\r\n * physics body, etc.\r\n *\r\n * Transparent videos are also possible via the WebM file format. Providing the video file has was encoded with\r\n * an alpha channel, and providing the browser supports WebM playback (not all of them do), then it will render\r\n * in-game with full transparency.\r\n *\r\n * Playback is handled entirely via the Request Video Frame API, which is supported by most modern browsers.\r\n * A polyfill is provided for older browsers.\r\n *\r\n * ### Autoplaying Videos\r\n *\r\n * Videos can only autoplay if the browser has been unlocked with an interaction, or satisfies the MEI settings.\r\n * The policies that control autoplaying are vast and vary between browser. You can, and should, read more about\r\n * it here: https://developer.mozilla.org/en-US/docs/Web/Media/Autoplay_guide\r\n *\r\n * If your video doesn't contain any audio, then set the `noAudio` parameter to `true` when the video is _loaded_,\r\n * and it will often allow the video to play immediately:\r\n *\r\n * ```javascript\r\n * preload () {\r\n * this.load.video('pixar', 'nemo.mp4', true);\r\n * }\r\n * ```\r\n *\r\n * The 3rd parameter in the load call tells Phaser that the video doesn't contain any audio tracks. Video without\r\n * audio can autoplay without requiring a user interaction. Video with audio cannot do this unless it satisfies\r\n * the browsers MEI settings. See the MDN Autoplay Guide for further details.\r\n *\r\n * Or:\r\n *\r\n * ```javascript\r\n * create () {\r\n * this.add.video(400, 300).loadURL('assets/aliens.mp4', true);\r\n * }\r\n * ```\r\n *\r\n * You can set the `noAudio` parameter to `true` even if the video does contain audio. It will still allow the video\r\n * to play immediately, but the audio will not start.\r\n *\r\n * Note that due to a bug in IE11 you cannot play a video texture to a Sprite in WebGL. For IE11 force Canvas mode.\r\n *\r\n * More details about video playback and the supported media formats can be found on MDN:\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement\r\n * https://developer.mozilla.org/en-US/docs/Web/Media/Formats\r\n *\r\n * @class Video\r\n * @extends Phaser.GameObjects.GameObject\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.20.0\r\n *\r\n * @extends Phaser.GameObjects.Components.Alpha\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.ComputedSize\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.Flip\r\n * @extends Phaser.GameObjects.Components.GetBounds\r\n * @extends Phaser.GameObjects.Components.Mask\r\n * @extends Phaser.GameObjects.Components.Origin\r\n * @extends Phaser.GameObjects.Components.Pipeline\r\n * @extends Phaser.GameObjects.Components.PostPipeline\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n * @extends Phaser.GameObjects.Components.TextureCrop\r\n * @extends Phaser.GameObjects.Components.Tint\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {string} [key] - Optional key of the Video this Game Object will play, as stored in the Video Cache.\r\n */\r\nvar Video = new Class({\r\n\r\n Extends: GameObject,\r\n\r\n Mixins: [\r\n Components.Alpha,\r\n Components.BlendMode,\r\n Components.ComputedSize,\r\n Components.Depth,\r\n Components.Flip,\r\n Components.GetBounds,\r\n Components.Mask,\r\n Components.Origin,\r\n Components.Pipeline,\r\n Components.PostPipeline,\r\n Components.ScrollFactor,\r\n Components.TextureCrop,\r\n Components.Tint,\r\n Components.Transform,\r\n Components.Visible,\r\n VideoRender\r\n ],\r\n\r\n initialize:\r\n\r\n function Video (scene, x, y, key)\r\n {\r\n GameObject.call(this, scene, 'Video');\r\n\r\n /**\r\n * A reference to the HTML Video Element this Video Game Object is playing.\r\n *\r\n * Will be `undefined` until a video is loaded for playback.\r\n *\r\n * @name Phaser.GameObjects.Video#video\r\n * @type {?HTMLVideoElement}\r\n * @since 3.20.0\r\n */\r\n this.video;\r\n\r\n /**\r\n * The Phaser Texture this Game Object is using to render the video to.\r\n *\r\n * Will be `undefined` until a video is loaded for playback.\r\n *\r\n * @name Phaser.GameObjects.Video#videoTexture\r\n * @type {?Phaser.Textures.Texture}\r\n * @since 3.20.0\r\n */\r\n this.videoTexture;\r\n\r\n /**\r\n * A reference to the TextureSource backing the `videoTexture` Texture object.\r\n *\r\n * Will be `undefined` until a video is loaded for playback.\r\n *\r\n * @name Phaser.GameObjects.Video#videoTextureSource\r\n * @type {?Phaser.Textures.TextureSource}\r\n * @since 3.20.0\r\n */\r\n this.videoTextureSource;\r\n\r\n /**\r\n * A Phaser `CanvasTexture` instance that holds the most recent snapshot taken from the video.\r\n *\r\n * This will only be set if the `snapshot` or `snapshotArea` methods have been called.\r\n *\r\n * Until those methods are called, this property will be `undefined`.\r\n *\r\n * @name Phaser.GameObjects.Video#snapshotTexture\r\n * @type {?Phaser.Textures.CanvasTexture}\r\n * @since 3.20.0\r\n */\r\n this.snapshotTexture;\r\n\r\n /**\r\n * If you have saved this video to a texture via the `saveTexture` method, this controls if the video\r\n * is rendered with `flipY` in WebGL or not. You often need to set this if you wish to use the video texture\r\n * as the input source for a shader. If you find your video is appearing upside down within a shader or\r\n * custom pipeline, flip this property.\r\n *\r\n * @name Phaser.GameObjects.Video#flipY\r\n * @type {boolean}\r\n * @since 3.20.0\r\n */\r\n this.flipY = false;\r\n\r\n /**\r\n * The key used by the texture as stored in the Texture Manager.\r\n *\r\n * @name Phaser.GameObjects.Video#_key\r\n * @type {string}\r\n * @private\r\n * @since 3.20.0\r\n */\r\n this._key = UUID();\r\n\r\n /**\r\n * An internal flag holding the current state of the video lock, should document interaction be required\r\n * before playback can begin.\r\n *\r\n * @name Phaser.GameObjects.Video#touchLocked\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.20.0\r\n */\r\n this.touchLocked = false;\r\n\r\n /**\r\n * Should the video auto play when document interaction is required and happens?\r\n *\r\n * @name Phaser.GameObjects.Video#playWhenUnlocked\r\n * @type {boolean}\r\n * @since 3.20.0\r\n */\r\n this.playWhenUnlocked = false;\r\n\r\n /**\r\n * Has the video created its texture and populated it with the first frame of video?\r\n *\r\n * @name Phaser.GameObjects.Video#frameReady\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.frameReady = false;\r\n\r\n /**\r\n * This read-only property returns `true` if the video is currently stalled, i.e. it has stopped\r\n * playing due to a lack of data, or too much data, but hasn't yet reached the end of the video.\r\n *\r\n * This is set if the Video DOM element emits any of the following events:\r\n *\r\n * `stalled`\r\n * `suspend`\r\n * `waiting`\r\n *\r\n * And is cleared if the Video DOM element emits the `playing` event, or handles\r\n * a requestVideoFrame call.\r\n *\r\n * Listen for the Phaser Event `VIDEO_STALLED` to be notified and inspect the event\r\n * to see which DOM event caused it.\r\n *\r\n * Note that being stalled isn't always a negative thing. A video can be stalled if it\r\n * has downloaded enough data in to its buffer to not need to download any more until\r\n * the current batch of frames have rendered.\r\n *\r\n * @name Phaser.GameObjects.Video#isStalled\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.isStalled = false;\r\n\r\n /**\r\n * Records the number of times the video has failed to play,\r\n * typically because the user hasn't interacted with the page yet.\r\n *\r\n * @name Phaser.GameObjects.Video#failedPlayAttempts\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.failedPlayAttempts = 0;\r\n\r\n /**\r\n * If the browser supports the Request Video Frame API then this\r\n * property will hold the metadata that is returned from\r\n * the callback each time it is invoked.\r\n *\r\n * See https://wicg.github.io/video-rvfc/#video-frame-metadata-callback\r\n * for a complete list of all properties that will be in this object.\r\n * Likely of most interest is the `mediaTime` property:\r\n *\r\n * The media presentation timestamp (PTS) in seconds of the frame presented\r\n * (e.g. its timestamp on the video.currentTime timeline). MAY have a zero\r\n * value for live-streams or WebRTC applications.\r\n *\r\n * If the browser doesn't support the API then this property will be undefined.\r\n *\r\n * @name Phaser.GameObjects.Video#metadata\r\n * @type {VideoFrameCallbackMetadata}\r\n * @since 3.60.0\r\n */\r\n this.metadata;\r\n\r\n /**\r\n * The current retry elapsed time.\r\n *\r\n * @name Phaser.GameObjects.Video#retry\r\n * @type {number}\r\n * @since 3.20.0\r\n */\r\n this.retry = 0;\r\n\r\n /**\r\n * If a video fails to play due to a lack of user interaction, this is the\r\n * amount of time, in ms, that the video will wait before trying again to\r\n * play. The default is 500ms.\r\n *\r\n * @name Phaser.GameObjects.Video#retryInterval\r\n * @type {number}\r\n * @since 3.20.0\r\n */\r\n this.retryInterval = 500;\r\n\r\n /**\r\n * The video was muted due to a system event, such as the game losing focus.\r\n *\r\n * @name Phaser.GameObjects.Video#_systemMuted\r\n * @type {boolean}\r\n * @private\r\n * @since 3.20.0\r\n */\r\n this._systemMuted = false;\r\n\r\n /**\r\n * The video was muted due to game code, not a system event.\r\n *\r\n * @name Phaser.GameObjects.Video#_codeMuted\r\n * @type {boolean}\r\n * @private\r\n * @since 3.20.0\r\n */\r\n this._codeMuted = false;\r\n\r\n /**\r\n * The video was paused due to a system event, such as the game losing focus.\r\n *\r\n * @name Phaser.GameObjects.Video#_systemPaused\r\n * @type {boolean}\r\n * @private\r\n * @since 3.20.0\r\n */\r\n this._systemPaused = false;\r\n\r\n /**\r\n * The video was paused due to game code, not a system event.\r\n *\r\n * @name Phaser.GameObjects.Video#_codePaused\r\n * @type {boolean}\r\n * @private\r\n * @since 3.20.0\r\n */\r\n this._codePaused = false;\r\n\r\n /**\r\n * The locally bound event callback handlers.\r\n *\r\n * @name Phaser.GameObjects.Video#_callbacks\r\n * @type {any}\r\n * @private\r\n * @since 3.20.0\r\n */\r\n this._callbacks = {\r\n ended: this.completeHandler.bind(this),\r\n legacy: this.legacyPlayHandler.bind(this),\r\n playing: this.playingHandler.bind(this),\r\n seeked: this.seekedHandler.bind(this),\r\n seeking: this.seekingHandler.bind(this),\r\n stalled: this.stalledHandler.bind(this),\r\n suspend: this.stalledHandler.bind(this),\r\n waiting: this.stalledHandler.bind(this)\r\n };\r\n\r\n /**\r\n * The locally bound callback handler specifically for load and load error events.\r\n *\r\n * @name Phaser.GameObjects.Video#_loadCallbackHandler\r\n * @type {function}\r\n * @private\r\n * @since 3.60.0\r\n */\r\n this._loadCallbackHandler = this.loadErrorHandler.bind(this);\r\n\r\n /**\r\n * The locally bound callback handler specifically for the loadedmetadata event.\r\n *\r\n * @name Phaser.GameObjects.Video#_metadataCallbackHandler\r\n * @type {function}\r\n * @private\r\n * @since 3.80.0\r\n */\r\n this._metadataCallbackHandler = this.metadataHandler.bind(this);\r\n\r\n /**\r\n * The internal crop data object, as used by `setCrop` and passed to the `Frame.setCropUVs` method.\r\n *\r\n * @name Phaser.GameObjects.Video#_crop\r\n * @type {object}\r\n * @private\r\n * @since 3.20.0\r\n */\r\n this._crop = this.resetCropObject();\r\n\r\n /**\r\n * An object containing in and out markers for sequence playback.\r\n *\r\n * @name Phaser.GameObjects.Video#markers\r\n * @type {any}\r\n * @since 3.20.0\r\n */\r\n this.markers = {};\r\n\r\n /**\r\n * The in marker.\r\n *\r\n * @name Phaser.GameObjects.Video#_markerIn\r\n * @type {number}\r\n * @private\r\n * @since 3.20.0\r\n */\r\n this._markerIn = 0;\r\n\r\n /**\r\n * The out marker.\r\n *\r\n * @name Phaser.GameObjects.Video#_markerOut\r\n * @type {number}\r\n * @private\r\n * @since 3.20.0\r\n */\r\n this._markerOut = 0;\r\n\r\n /**\r\n * Are we playing a marked segment of the video?\r\n *\r\n * @name Phaser.GameObjects.Video#_playingMarker\r\n * @type {boolean}\r\n * @private\r\n * @since 3.60.0\r\n */\r\n this._playingMarker = false;\r\n\r\n /**\r\n * The previous frames mediaTime.\r\n *\r\n * @name Phaser.GameObjects.Video#_lastUpdate\r\n * @type {number}\r\n * @private\r\n * @since 3.60.0\r\n */\r\n this._lastUpdate = 0;\r\n\r\n /**\r\n * The key of the current video as stored in the Video cache.\r\n *\r\n * If the video did not come from the cache this will be an empty string.\r\n *\r\n * @name Phaser.GameObjects.Video#cacheKey\r\n * @type {string}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.cacheKey = '';\r\n\r\n /**\r\n * Is the video currently seeking?\r\n *\r\n * This is set to `true` when the `seeking` event is fired,\r\n * and set to `false` when the `seeked` event is fired.\r\n *\r\n * @name Phaser.GameObjects.Video#isSeeking\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.isSeeking = false;\r\n\r\n /**\r\n * Has Video.play been called? This is reset if a new Video is loaded.\r\n *\r\n * @name Phaser.GameObjects.Video#_playCalled\r\n * @type {boolean}\r\n * @private\r\n * @since 3.60.0\r\n */\r\n this._playCalled = false;\r\n\r\n /**\r\n * Has Video.getFirstFrame been called? This is reset if a new Video is loaded or played.\r\n *\r\n * @name Phaser.GameObjects.Video#_getFrame\r\n * @type {boolean}\r\n * @private\r\n * @since 3.85.0\r\n */\r\n this._getFrame = false;\r\n\r\n /**\r\n * The Callback ID returned by Request Video Frame.\r\n *\r\n * @name Phaser.GameObjects.Video#_rfvCallbackId\r\n * @type {number}\r\n * @private\r\n * @since 3.60.0\r\n */\r\n this._rfvCallbackId = 0;\r\n\r\n var game = scene.sys.game;\r\n\r\n /**\r\n * A reference to Device.Video.\r\n *\r\n * @name Phaser.GameObjects.Video#_device\r\n * @type {string[]}\r\n * @private\r\n * @since 3.60.0\r\n */\r\n this._device = game.device.video;\r\n\r\n this.setPosition(x, y);\r\n this.setSize(256, 256);\r\n this.initPipeline();\r\n this.initPostPipeline(true);\r\n\r\n game.events.on(GameEvents.PAUSE, this.globalPause, this);\r\n game.events.on(GameEvents.RESUME, this.globalResume, this);\r\n\r\n var sound = scene.sys.sound;\r\n\r\n if (sound)\r\n {\r\n sound.on(SoundEvents.GLOBAL_MUTE, this.globalMute, this);\r\n }\r\n\r\n if (key)\r\n {\r\n this.load(key);\r\n }\r\n },\r\n\r\n // Overrides Game Object method\r\n addedToScene: function ()\r\n {\r\n this.scene.sys.updateList.add(this);\r\n },\r\n\r\n // Overrides Game Object method\r\n removedFromScene: function ()\r\n {\r\n this.scene.sys.updateList.remove(this);\r\n },\r\n\r\n /**\r\n * Loads a Video from the Video Cache, ready for playback with the `Video.play` method.\r\n *\r\n * If a video is already playing, this method allows you to change the source of the current video element.\r\n * It works by first stopping the current video and then starts playback of the new source through the existing video element.\r\n *\r\n * The reason you may wish to do this is because videos that require interaction to unlock, remain in an unlocked\r\n * state, even if you change the source of the video. By changing the source to a new video you avoid having to\r\n * go through the unlock process again.\r\n *\r\n * @method Phaser.GameObjects.Video#load\r\n * @since 3.60.0\r\n *\r\n * @param {string} key - The key of the Video this Game Object will play, as stored in the Video Cache.\r\n *\r\n * @return {this} This Video Game Object for method chaining.\r\n */\r\n load: function (key)\r\n {\r\n var video = this.scene.sys.cache.video.get(key);\r\n\r\n if (video)\r\n {\r\n this.cacheKey = key;\r\n\r\n this.loadHandler(video.url, video.noAudio, video.crossOrigin);\r\n }\r\n else\r\n {\r\n console.warn('No video in cache for key: ' + key);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * This method allows you to change the source of the current video element. It works by first stopping the\r\n * current video, if playing. Then deleting the video texture, if one has been created. Finally, it makes a\r\n * new video texture and starts playback of the new source through the existing video element.\r\n *\r\n * The reason you may wish to do this is because videos that require interaction to unlock, remain in an unlocked\r\n * state, even if you change the source of the video. By changing the source to a new video you avoid having to\r\n * go through the unlock process again.\r\n *\r\n * @method Phaser.GameObjects.Video#changeSource\r\n * @since 3.20.0\r\n *\r\n * @param {string} key - The key of the Video this Game Object will swap to playing, as stored in the Video Cache.\r\n * @param {boolean} [autoplay=true] - Should the video start playing immediately, once the swap is complete?\r\n * @param {boolean} [loop=false] - Should the video loop automatically when it reaches the end? Please note that not all browsers support _seamless_ video looping for all encoding formats.\r\n * @param {number} [markerIn] - Optional in marker time, in seconds, for playback of a sequence of the video.\r\n * @param {number} [markerOut] - Optional out marker time, in seconds, for playback of a sequence of the video.\r\n *\r\n * @return {this} This Video Game Object for method chaining.\r\n */\r\n changeSource: function (key, autoplay, loop, markerIn, markerOut)\r\n {\r\n if (autoplay === undefined) { autoplay = true; }\r\n if (loop === undefined) { loop = false; }\r\n\r\n if (this.cacheKey !== key)\r\n {\r\n this.load(key);\r\n\r\n if (autoplay)\r\n {\r\n this.play(loop, markerIn, markerOut);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Returns the key of the currently played video, as stored in the Video Cache.\r\n *\r\n * If the video did not come from the cache this will return an empty string.\r\n *\r\n * @method Phaser.GameObjects.Video#getVideoKey\r\n * @since 3.20.0\r\n *\r\n * @return {string} The key of the video being played from the Video Cache, if any.\r\n */\r\n getVideoKey: function ()\r\n {\r\n return this.cacheKey;\r\n },\r\n\r\n /**\r\n * Loads a Video from the given URL, ready for playback with the `Video.play` method.\r\n *\r\n * If a video is already playing, this method allows you to change the source of the current video element.\r\n * It works by first stopping the current video and then starts playback of the new source through the existing video element.\r\n *\r\n * The reason you may wish to do this is because videos that require interaction to unlock, remain in an unlocked\r\n * state, even if you change the source of the video. By changing the source to a new video you avoid having to\r\n * go through the unlock process again.\r\n *\r\n * @method Phaser.GameObjects.Video#loadURL\r\n * @since 3.60.0\r\n *\r\n * @param {(string|string[]|Phaser.Types.Loader.FileTypes.VideoFileURLConfig|Phaser.Types.Loader.FileTypes.VideoFileURLConfig[])} [urls] - The absolute or relative URL to load the video files from.\r\n * @param {boolean} [noAudio=false] - Does the video have an audio track? If not you can enable auto-playing on it.\r\n * @param {string} [crossOrigin] - The value to use for the `crossOrigin` property in the video load request. Either undefined, `anonymous` or `use-credentials`. If no value is given, `crossorigin` will not be set in the request.\r\n *\r\n * @return {this} This Video Game Object for method chaining.\r\n */\r\n loadURL: function (urls, noAudio, crossOrigin)\r\n {\r\n if (noAudio === undefined) { noAudio = false; }\r\n\r\n var urlConfig = this._device.getVideoURL(urls);\r\n\r\n if (!urlConfig)\r\n {\r\n console.warn('No supported video format found for ' + urls);\r\n }\r\n else\r\n {\r\n this.cacheKey = '';\r\n\r\n this.loadHandler(urlConfig.url, noAudio, crossOrigin);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Loads a Video from the given MediaStream object, ready for playback with the `Video.play` method.\r\n *\r\n * @method Phaser.GameObjects.Video#loadMediaStream\r\n * @since 3.50.0\r\n *\r\n * @param {string} stream - The MediaStream object.\r\n * @param {boolean} [noAudio=false] - Does the video have an audio track? If not you can enable auto-playing on it.\r\n * @param {string} [crossOrigin] - The value to use for the `crossOrigin` property in the video load request. Either undefined, `anonymous` or `use-credentials`. If no value is given, `crossorigin` will not be set in the request.\r\n *\r\n * @return {this} This Video Game Object for method chaining.\r\n */\r\n loadMediaStream: function (stream, noAudio, crossOrigin)\r\n {\r\n return this.loadHandler(null, noAudio, crossOrigin, stream);\r\n },\r\n\r\n /**\r\n * Internal method that loads a Video from the given URL, ready for playback with the\r\n * `Video.play` method.\r\n *\r\n * Normally you don't call this method directly, but instead use the `Video.loadURL` method,\r\n * or the `Video.load` method if you have preloaded the video.\r\n *\r\n * Calling this method will skip checking if the browser supports the given format in\r\n * the URL, where-as the other two methods enforce these checks.\r\n *\r\n * @method Phaser.GameObjects.Video#loadHandler\r\n * @since 3.60.0\r\n *\r\n * @param {string} [url] - The absolute or relative URL to load the video file from. Set to `null` if passing in a MediaStream object.\r\n * @param {boolean} [noAudio] - Does the video have an audio track? If not you can enable auto-playing on it.\r\n * @param {string} [crossOrigin] - The value to use for the `crossOrigin` property in the video load request. Either undefined, `anonymous` or `use-credentials`. If no value is given, `crossorigin` will not be set in the request.\r\n * @param {string} [stream] - A MediaStream object if this is playing a stream instead of a file.\r\n *\r\n * @return {this} This Video Game Object for method chaining.\r\n */\r\n loadHandler: function (url, noAudio, crossOrigin, stream)\r\n {\r\n if (!noAudio) { noAudio = false; }\r\n\r\n var video = this.video;\r\n\r\n if (video)\r\n {\r\n // Re-use the existing video element\r\n\r\n this.removeLoadEventHandlers();\r\n\r\n this.stop();\r\n }\r\n else\r\n {\r\n video = document.createElement('video');\r\n\r\n video.controls = false;\r\n\r\n video.setAttribute('playsinline', 'playsinline');\r\n video.setAttribute('preload', 'auto');\r\n video.setAttribute('disablePictureInPicture', 'true');\r\n }\r\n\r\n if (noAudio)\r\n {\r\n video.muted = true;\r\n video.defaultMuted = true;\r\n\r\n video.setAttribute('autoplay', 'autoplay');\r\n }\r\n else\r\n {\r\n video.muted = false;\r\n video.defaultMuted = false;\r\n\r\n video.removeAttribute('autoplay');\r\n }\r\n\r\n if (!crossOrigin)\r\n {\r\n video.removeAttribute('crossorigin');\r\n }\r\n else\r\n {\r\n video.setAttribute('crossorigin', crossOrigin);\r\n }\r\n\r\n if (stream)\r\n {\r\n if ('srcObject' in video)\r\n {\r\n try\r\n {\r\n video.srcObject = stream;\r\n }\r\n catch (err)\r\n {\r\n if (err.name !== 'TypeError')\r\n {\r\n throw err;\r\n }\r\n\r\n video.src = URL.createObjectURL(stream);\r\n }\r\n }\r\n else\r\n {\r\n video.src = URL.createObjectURL(stream);\r\n }\r\n }\r\n else\r\n {\r\n video.src = url;\r\n }\r\n\r\n this.retry = 0;\r\n this.video = video;\r\n\r\n this._playCalled = false;\r\n\r\n video.load();\r\n\r\n this.addLoadEventHandlers();\r\n\r\n var texture = this.scene.sys.textures.get(this._key);\r\n\r\n this.setTexture(texture);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * This method handles the Request Video Frame callback.\r\n *\r\n * It is called by the browser when a new video frame is ready to be displayed.\r\n *\r\n * It's also responsible for the creation of the video texture, if it doesn't\r\n * already exist. If it does, it updates the texture as required.\r\n *\r\n * For more details about the Request Video Frame callback, see:\r\n * https://web.dev/requestvideoframecallback-rvfc\r\n *\r\n * @method Phaser.GameObjects.Video#requestVideoFrame\r\n * @fires Phaser.GameObjects.Events#VIDEO_CREATED\r\n * @fires Phaser.GameObjects.Events#VIDEO_LOOP\r\n * @fires Phaser.GameObjects.Events#VIDEO_COMPLETE\r\n * @fires Phaser.GameObjects.Events#VIDEO_PLAY\r\n * @fires Phaser.GameObjects.Events#VIDEO_TEXTURE\r\n * @since 3.60.0\r\n *\r\n * @param {DOMHighResTimeStamp} now - The current time in milliseconds.\r\n * @param {VideoFrameCallbackMetadata} metadata - Useful metadata about the video frame that was most recently presented for composition. See https://wicg.github.io/video-rvfc/#video-frame-metadata-callback\r\n */\r\n requestVideoFrame: function (now, metadata)\r\n {\r\n var video = this.video;\r\n\r\n if (!video)\r\n {\r\n return;\r\n }\r\n\r\n var width = metadata.width;\r\n var height = metadata.height;\r\n\r\n var texture = this.videoTexture;\r\n var textureSource = this.videoTextureSource;\r\n var newVideo = (!texture || textureSource.source !== video);\r\n\r\n if (newVideo)\r\n {\r\n // First frame of a new video\r\n this._codePaused = video.paused;\r\n this._codeMuted = video.muted;\r\n\r\n if (!texture)\r\n {\r\n texture = this.scene.sys.textures.create(this._key, video, width, height);\r\n\r\n texture.add('__BASE', 0, 0, 0, width, height);\r\n\r\n this.setTexture(texture);\r\n\r\n this.videoTexture = texture;\r\n this.videoTextureSource = texture.source[0];\r\n\r\n this.videoTextureSource.setFlipY(this.flipY);\r\n\r\n this.emit(Events.VIDEO_TEXTURE, this, texture);\r\n }\r\n else\r\n {\r\n // Re-use the existing texture\r\n textureSource.source = video;\r\n textureSource.width = width;\r\n textureSource.height = height;\r\n\r\n // Resize base frame\r\n texture.get().setSize(width, height);\r\n }\r\n\r\n this.setSizeToFrame();\r\n this.updateDisplayOrigin();\r\n }\r\n else\r\n {\r\n textureSource.update();\r\n }\r\n\r\n this.isStalled = false;\r\n\r\n this.metadata = metadata;\r\n\r\n var currentTime = metadata.mediaTime;\r\n\r\n if (newVideo)\r\n {\r\n this._lastUpdate = currentTime;\r\n\r\n this.emit(Events.VIDEO_CREATED, this, width, height);\r\n\r\n if (!this.frameReady)\r\n {\r\n this.frameReady = true;\r\n\r\n this.emit(Events.VIDEO_PLAY, this);\r\n }\r\n }\r\n\r\n if (this._playingMarker)\r\n {\r\n if (currentTime >= this._markerOut)\r\n {\r\n if (video.loop)\r\n {\r\n video.currentTime = this._markerIn;\r\n\r\n this.emit(Events.VIDEO_LOOP, this);\r\n }\r\n else\r\n {\r\n this.stop(false);\r\n\r\n this.emit(Events.VIDEO_COMPLETE, this);\r\n }\r\n }\r\n }\r\n else if (currentTime < this._lastUpdate)\r\n {\r\n this.emit(Events.VIDEO_LOOP, this);\r\n }\r\n\r\n this._lastUpdate = currentTime;\r\n\r\n if (this._getFrame)\r\n {\r\n this.removeEventHandlers();\r\n\r\n video.pause();\r\n\r\n this._getFrame = false;\r\n }\r\n else\r\n {\r\n this._rfvCallbackId = this.video.requestVideoFrameCallback(this.requestVideoFrame.bind(this));\r\n }\r\n },\r\n\r\n /**\r\n * Starts this video playing.\r\n *\r\n * If the video is already playing, or has been queued to play with `changeSource` then this method just returns.\r\n *\r\n * Videos can only autoplay if the browser has been unlocked. This happens if you have interacted with the browser, i.e.\r\n * by clicking on it or pressing a key, or due to server settings. The policies that control autoplaying are vast and\r\n * vary between browser. You can read more here: https://developer.mozilla.org/en-US/docs/Web/Media/Autoplay_guide\r\n *\r\n * If your video doesn't contain any audio, then set the `noAudio` parameter to `true` when the video is loaded,\r\n * and it will often allow the video to play immediately:\r\n *\r\n * ```javascript\r\n * preload () {\r\n * this.load.video('pixar', 'nemo.mp4', true);\r\n * }\r\n * ```\r\n *\r\n * The 3rd parameter in the load call tells Phaser that the video doesn't contain any audio tracks. Video without\r\n * audio can autoplay without requiring a user interaction. Video with audio cannot do this unless it satisfies\r\n * the browsers MEI settings. See the MDN Autoplay Guide for details.\r\n *\r\n * If you need audio in your videos, then you'll have to consider the fact that the video cannot start playing until the\r\n * user has interacted with the browser, into your game flow.\r\n *\r\n * @method Phaser.GameObjects.Video#play\r\n * @since 3.20.0\r\n *\r\n * @param {boolean} [loop=false] - Should the video loop automatically when it reaches the end? Please note that not all browsers support _seamless_ video looping for all encoding formats.\r\n * @param {number} [markerIn] - Optional in marker time, in seconds, for playback of a sequence of the video.\r\n * @param {number} [markerOut] - Optional out marker time, in seconds, for playback of a sequence of the video.\r\n *\r\n * @return {this} This Video Game Object for method chaining.\r\n */\r\n play: function (loop, markerIn, markerOut)\r\n {\r\n if (markerIn === undefined) { markerIn = -1; }\r\n if (markerOut === undefined) { markerOut = MATH_CONST.MAX_SAFE_INTEGER; }\r\n\r\n var video = this.video;\r\n\r\n if (!video || this.isPlaying())\r\n {\r\n if (!video)\r\n {\r\n console.warn('Video not loaded');\r\n }\r\n\r\n return this;\r\n }\r\n\r\n // We can reset these each time play is called, even if the video hasn't started yet\r\n\r\n if (loop === undefined) { loop = video.loop; }\r\n\r\n video.loop = loop;\r\n\r\n this._markerIn = markerIn;\r\n this._markerOut = markerOut;\r\n this._playingMarker = (markerIn > -1 && markerOut > markerIn && markerOut < MATH_CONST.MAX_SAFE_INTEGER);\r\n\r\n // But we go no further if play has already been called\r\n\r\n if (!this._playCalled)\r\n {\r\n this._getFrame = false;\r\n\r\n this._rfvCallbackId = video.requestVideoFrameCallback(this.requestVideoFrame.bind(this));\r\n\r\n this._playCalled = true;\r\n\r\n this.createPlayPromise();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Attempts to get the first frame of the video by running the `requestVideoFrame` callback once,\r\n * then stopping. This is useful if you need to grab the first frame of the video to display behind\r\n * a 'play' button, without actually calling the 'play' method.\r\n *\r\n * If the video is already playing, or has been queued to play with `changeSource` then this method just returns.\r\n *\r\n * @method Phaser.GameObjects.Video#getFirstFrame\r\n * @since 3.85.0\r\n *\r\n * @return {this} This Video Game Object for method chaining.\r\n */\r\n getFirstFrame: function ()\r\n {\r\n var video = this.video;\r\n\r\n if (!video || this.isPlaying())\r\n {\r\n if (!video)\r\n {\r\n console.warn('Video not loaded');\r\n }\r\n\r\n return this;\r\n }\r\n\r\n if (!this._playCalled)\r\n {\r\n this._getFrame = true;\r\n\r\n this._rfvCallbackId = video.requestVideoFrameCallback(this.requestVideoFrame.bind(this));\r\n\r\n this.createPlayPromise();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds the loading specific event handlers to the video element.\r\n *\r\n * @method Phaser.GameObjects.Video#addLoadEventHandlers\r\n * @since 3.60.0\r\n */\r\n addLoadEventHandlers: function ()\r\n {\r\n var video = this.video;\r\n\r\n if (video)\r\n {\r\n video.addEventListener('error', this._loadCallbackHandler);\r\n video.addEventListener('abort', this._loadCallbackHandler);\r\n video.addEventListener('loadedmetadata', this._metadataCallbackHandler);\r\n }\r\n },\r\n\r\n /**\r\n * Removes the loading specific event handlers from the video element.\r\n *\r\n * @method Phaser.GameObjects.Video#removeLoadEventHandlers\r\n * @since 3.60.0\r\n */\r\n removeLoadEventHandlers: function ()\r\n {\r\n var video = this.video;\r\n\r\n if (video)\r\n {\r\n video.removeEventListener('error', this._loadCallbackHandler);\r\n video.removeEventListener('abort', this._loadCallbackHandler);\r\n }\r\n },\r\n\r\n /**\r\n * Adds the playback specific event handlers to the video element.\r\n *\r\n * @method Phaser.GameObjects.Video#addEventHandlers\r\n * @since 3.60.0\r\n */\r\n addEventHandlers: function ()\r\n {\r\n var video = this.video;\r\n\r\n // Set these _after_ calling `video.play` or they don't fire\r\n // (really useful, thanks browsers!)\r\n\r\n if (video)\r\n {\r\n var callbacks = this._callbacks;\r\n\r\n for (var callback in callbacks)\r\n {\r\n video.addEventListener(callback, callbacks[callback]);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Removes the playback specific event handlers from the video element.\r\n *\r\n * @method Phaser.GameObjects.Video#removeEventHandlers\r\n * @since 3.60.0\r\n */\r\n removeEventHandlers: function ()\r\n {\r\n var video = this.video;\r\n\r\n if (video)\r\n {\r\n var callbacks = this._callbacks;\r\n\r\n for (var callback in callbacks)\r\n {\r\n video.removeEventListener(callback, callbacks[callback]);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Creates the video.play promise and adds the success and error handlers to it.\r\n *\r\n * Not all browsers support the video.play promise, so this method will fall back to\r\n * the old-school way of handling the video.play call.\r\n *\r\n * See https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/play#browser_compatibility for details.\r\n *\r\n * @method Phaser.GameObjects.Video#createPlayPromise\r\n * @since 3.60.0\r\n *\r\n * @param {boolean} [catchError=true] - Should the error be caught and the video marked as failed to play?\r\n */\r\n createPlayPromise: function (catchError)\r\n {\r\n if (catchError === undefined) { catchError = true; }\r\n\r\n var video = this.video;\r\n\r\n var playPromise = video.play();\r\n\r\n if (playPromise !== undefined)\r\n {\r\n var success = this.playSuccess.bind(this);\r\n var error = this.playError.bind(this);\r\n\r\n if (!catchError)\r\n {\r\n var _this = this;\r\n\r\n error = function ()\r\n {\r\n _this.failedPlayAttempts++;\r\n };\r\n }\r\n\r\n playPromise.then(success).catch(error);\r\n }\r\n else\r\n {\r\n // Old-school fallback here for pre-2019 browsers\r\n video.addEventListener('playing', this._callbacks.legacy);\r\n\r\n if (!catchError)\r\n {\r\n this.failedPlayAttempts++;\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Adds a sequence marker to this video.\r\n *\r\n * Markers allow you to split a video up into sequences, delineated by a start and end time, given in seconds.\r\n *\r\n * You can then play back specific markers via the `playMarker` method.\r\n *\r\n * Note that marker timing is _not_ frame-perfect. You should construct your videos in such a way that you allow for\r\n * plenty of extra padding before and after each sequence to allow for discrepancies in browser seek and currentTime accuracy.\r\n *\r\n * See https://github.com/w3c/media-and-entertainment/issues/4 for more details about this issue.\r\n *\r\n * @method Phaser.GameObjects.Video#addMarker\r\n * @since 3.20.0\r\n *\r\n * @param {string} key - A unique name to give this marker.\r\n * @param {number} markerIn - The time, in seconds, representing the start of this marker.\r\n * @param {number} markerOut - The time, in seconds, representing the end of this marker.\r\n *\r\n * @return {this} This Video Game Object for method chaining.\r\n */\r\n addMarker: function (key, markerIn, markerOut)\r\n {\r\n if (!isNaN(markerIn) && markerIn >= 0 && !isNaN(markerOut) && markerOut > markerIn)\r\n {\r\n this.markers[key] = [ markerIn, markerOut ];\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Plays a pre-defined sequence in this video.\r\n *\r\n * Markers allow you to split a video up into sequences, delineated by a start and end time, given in seconds and\r\n * specified via the `addMarker` method.\r\n *\r\n * Note that marker timing is _not_ frame-perfect. You should construct your videos in such a way that you allow for\r\n * plenty of extra padding before and after each sequence to allow for discrepancies in browser seek and currentTime accuracy.\r\n *\r\n * See https://github.com/w3c/media-and-entertainment/issues/4 for more details about this issue.\r\n *\r\n * @method Phaser.GameObjects.Video#playMarker\r\n * @since 3.20.0\r\n *\r\n * @param {string} key - The name of the marker sequence to play.\r\n * @param {boolean} [loop=false] - Should the video loop automatically when it reaches the end? Please note that not all browsers support _seamless_ video looping for all encoding formats.\r\n *\r\n * @return {this} This Video Game Object for method chaining.\r\n */\r\n playMarker: function (key, loop)\r\n {\r\n var marker = this.markers[key];\r\n\r\n if (marker)\r\n {\r\n this.play(loop, marker[0], marker[1]);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes a previously set marker from this video.\r\n *\r\n * If the marker is currently playing it will _not_ stop playback.\r\n *\r\n * @method Phaser.GameObjects.Video#removeMarker\r\n * @since 3.20.0\r\n *\r\n * @param {string} key - The name of the marker to remove.\r\n *\r\n * @return {this} This Video Game Object for method chaining.\r\n */\r\n removeMarker: function (key)\r\n {\r\n delete this.markers[key];\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes a snapshot of the current frame of the video and renders it to a CanvasTexture object,\r\n * which is then returned. You can optionally resize the grab by passing a width and height.\r\n *\r\n * This method returns a reference to the `Video.snapshotTexture` object. Calling this method\r\n * multiple times will overwrite the previous snapshot with the most recent one.\r\n *\r\n * @method Phaser.GameObjects.Video#snapshot\r\n * @since 3.20.0\r\n *\r\n * @param {number} [width] - The width of the resulting CanvasTexture.\r\n * @param {number} [height] - The height of the resulting CanvasTexture.\r\n *\r\n * @return {Phaser.Textures.CanvasTexture}\r\n */\r\n snapshot: function (width, height)\r\n {\r\n if (width === undefined) { width = this.width; }\r\n if (height === undefined) { height = this.height; }\r\n\r\n return this.snapshotArea(0, 0, this.width, this.height, width, height);\r\n },\r\n\r\n /**\r\n * Takes a snapshot of the specified area of the current frame of the video and renders it to a CanvasTexture object,\r\n * which is then returned. You can optionally resize the grab by passing a different `destWidth` and `destHeight`.\r\n *\r\n * This method returns a reference to the `Video.snapshotTexture` object. Calling this method\r\n * multiple times will overwrite the previous snapshot with the most recent one.\r\n *\r\n * @method Phaser.GameObjects.Video#snapshotArea\r\n * @since 3.20.0\r\n *\r\n * @param {number} [x=0] - The horizontal location of the top-left of the area to grab from.\r\n * @param {number} [y=0] - The vertical location of the top-left of the area to grab from.\r\n * @param {number} [srcWidth] - The width of area to grab from the video. If not given it will grab the full video dimensions.\r\n * @param {number} [srcHeight] - The height of area to grab from the video. If not given it will grab the full video dimensions.\r\n * @param {number} [destWidth] - The destination width of the grab, allowing you to resize it.\r\n * @param {number} [destHeight] - The destination height of the grab, allowing you to resize it.\r\n *\r\n * @return {Phaser.Textures.CanvasTexture}\r\n */\r\n snapshotArea: function (x, y, srcWidth, srcHeight, destWidth, destHeight)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (srcWidth === undefined) { srcWidth = this.width; }\r\n if (srcHeight === undefined) { srcHeight = this.height; }\r\n if (destWidth === undefined) { destWidth = srcWidth; }\r\n if (destHeight === undefined) { destHeight = srcHeight; }\r\n\r\n var video = this.video;\r\n var snap = this.snapshotTexture;\r\n\r\n if (!snap)\r\n {\r\n snap = this.scene.sys.textures.createCanvas(UUID(), destWidth, destHeight);\r\n\r\n this.snapshotTexture = snap;\r\n\r\n if (video)\r\n {\r\n snap.context.drawImage(video, x, y, srcWidth, srcHeight, 0, 0, destWidth, destHeight);\r\n }\r\n }\r\n else\r\n {\r\n snap.setSize(destWidth, destHeight);\r\n\r\n if (video)\r\n {\r\n snap.context.drawImage(video, x, y, srcWidth, srcHeight, 0, 0, destWidth, destHeight);\r\n }\r\n }\r\n\r\n return snap.update();\r\n },\r\n\r\n /**\r\n * Stores a copy of this Videos `snapshotTexture` in the Texture Manager using the given key.\r\n *\r\n * This texture is created when the `snapshot` or `snapshotArea` methods are called.\r\n *\r\n * After doing this, any texture based Game Object, such as a Sprite, can use the contents of the\r\n * snapshot by using the texture key:\r\n *\r\n * ```javascript\r\n * var vid = this.add.video(0, 0, 'intro');\r\n *\r\n * vid.snapshot();\r\n *\r\n * vid.saveSnapshotTexture('doodle');\r\n *\r\n * this.add.image(400, 300, 'doodle');\r\n * ```\r\n *\r\n * Updating the contents of the `snapshotTexture`, for example by calling `snapshot` again,\r\n * will automatically update _any_ Game Object that is using it as a texture.\r\n * Calling `saveSnapshotTexture` again will not save another copy of the same texture,\r\n * it will just rename the existing one.\r\n *\r\n * By default it will create a single base texture. You can add frames to the texture\r\n * by using the `Texture.add` method. After doing this, you can then allow Game Objects\r\n * to use a specific frame.\r\n *\r\n * @method Phaser.GameObjects.Video#saveSnapshotTexture\r\n * @since 3.20.0\r\n *\r\n * @param {string} key - The unique key to store the texture as within the global Texture Manager.\r\n *\r\n * @return {Phaser.Textures.CanvasTexture} The Texture that was saved.\r\n */\r\n saveSnapshotTexture: function (key)\r\n {\r\n if (this.snapshotTexture)\r\n {\r\n this.scene.sys.textures.renameTexture(this.snapshotTexture.key, key);\r\n }\r\n else\r\n {\r\n this.snapshotTexture = this.scene.sys.textures.createCanvas(key, this.width, this.height);\r\n }\r\n\r\n return this.snapshotTexture;\r\n },\r\n\r\n /**\r\n * This internal method is called automatically if the playback Promise resolves successfully.\r\n *\r\n * @method Phaser.GameObjects.Video#playSuccess\r\n * @fires Phaser.GameObjects.Events#VIDEO_UNLOCKED\r\n * @since 3.60.0\r\n */\r\n playSuccess: function ()\r\n {\r\n if (!this._playCalled)\r\n {\r\n // The stop method has been called but the Promise has resolved\r\n // after this, so we need to just abort.\r\n return;\r\n }\r\n\r\n this.addEventHandlers();\r\n\r\n this._codePaused = false;\r\n\r\n if (this.touchLocked)\r\n {\r\n this.touchLocked = false;\r\n\r\n this.emit(Events.VIDEO_UNLOCKED, this);\r\n }\r\n\r\n var sound = this.scene.sys.sound;\r\n\r\n if (sound && sound.mute)\r\n {\r\n // Mute will be set based on the global mute state of the Sound Manager (if there is one)\r\n this.setMute(true);\r\n }\r\n\r\n if (this._markerIn > -1)\r\n {\r\n this.video.currentTime = this._markerIn;\r\n }\r\n },\r\n\r\n /**\r\n * This internal method is called automatically if the playback Promise fails to resolve.\r\n *\r\n * @method Phaser.GameObjects.Video#playError\r\n * @fires Phaser.GameObjects.Events#VIDEO_ERROR\r\n * @fires Phaser.GameObjects.Events#VIDEO_UNSUPPORTED\r\n * @fires Phaser.GameObjects.Events#VIDEO_LOCKED\r\n * @since 3.60.0\r\n *\r\n * @param {DOMException} error - The Promise DOM Exception error.\r\n */\r\n playError: function (error)\r\n {\r\n var name = error.name;\r\n\r\n if (name === 'NotAllowedError')\r\n {\r\n this.touchLocked = true;\r\n this.playWhenUnlocked = true;\r\n this.failedPlayAttempts = 1;\r\n\r\n this.emit(Events.VIDEO_LOCKED, this);\r\n }\r\n else if (name === 'NotSupportedError')\r\n {\r\n this.stop(false);\r\n\r\n this.emit(Events.VIDEO_UNSUPPORTED, this, error);\r\n }\r\n else\r\n {\r\n this.stop(false);\r\n\r\n this.emit(Events.VIDEO_ERROR, this, error);\r\n }\r\n },\r\n\r\n /**\r\n * Called when the video emits a `playing` event.\r\n *\r\n * This is the legacy handler for browsers that don't support Promise based playback.\r\n *\r\n * @method Phaser.GameObjects.Video#legacyPlayHandler\r\n * @since 3.60.0\r\n */\r\n legacyPlayHandler: function ()\r\n {\r\n var video = this.video;\r\n\r\n if (video)\r\n {\r\n this.playSuccess();\r\n\r\n video.removeEventListener('playing', this._callbacks.legacy);\r\n }\r\n },\r\n\r\n /**\r\n * Called when the video emits a `playing` event.\r\n *\r\n * @method Phaser.GameObjects.Video#playingHandler\r\n * @fires Phaser.GameObjects.Events#VIDEO_PLAYING\r\n * @since 3.60.0\r\n */\r\n playingHandler: function ()\r\n {\r\n this.isStalled = false;\r\n\r\n this.emit(Events.VIDEO_PLAYING, this);\r\n },\r\n\r\n /**\r\n * This internal method is called automatically if the video fails to load.\r\n *\r\n * @method Phaser.GameObjects.Video#loadErrorHandler\r\n * @fires Phaser.GameObjects.Events#VIDEO_ERROR\r\n * @since 3.20.0\r\n *\r\n * @param {Event} event - The error Event.\r\n */\r\n loadErrorHandler: function (event)\r\n {\r\n this.stop(false);\r\n\r\n this.emit(Events.VIDEO_ERROR, this, event);\r\n },\r\n\r\n /**\r\n * This internal method is called automatically when the video metadata is available.\r\n *\r\n * @method Phaser.GameObjects.Video#metadataHandler\r\n * @fires Phaser.GameObjects.Events#VIDEO_METADATA\r\n * @since 3.80.0\r\n *\r\n * @param {Event} event - The loadedmetadata Event.\r\n */\r\n metadataHandler: function (event)\r\n {\r\n this.emit(Events.VIDEO_METADATA, this, event);\r\n },\r\n\r\n /**\r\n * Sets the size of this Game Object to be that of the given Frame.\r\n *\r\n * This will not change the size that the Game Object is rendered in-game.\r\n * For that you need to either set the scale of the Game Object (`setScale`) or call the\r\n * `setDisplaySize` method, which is the same thing as changing the scale but allows you\r\n * to do so by giving pixel values.\r\n *\r\n * If you have enabled this Game Object for input, changing the size will _not_ change the\r\n * size of the hit area. To do this you should adjust the `input.hitArea` object directly.\r\n *\r\n * @method Phaser.GameObjects.Video#setSizeToFrame\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Textures.Frame|boolean} [frame] - The frame to base the size of this Game Object on.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setSizeToFrame: function (frame)\r\n {\r\n if (!frame) { frame = this.frame; }\r\n\r\n this.width = frame.realWidth;\r\n this.height = frame.realHeight;\r\n\r\n if (this.scaleX !== 1)\r\n {\r\n this.scaleX = this.displayWidth / this.width;\r\n }\r\n\r\n if (this.scaleY !== 1)\r\n {\r\n this.scaleY = this.displayHeight / this.height;\r\n }\r\n\r\n var input = this.input;\r\n\r\n if (input && !input.customHitArea)\r\n {\r\n input.hitArea.width = this.width;\r\n input.hitArea.height = this.height;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * This internal method is called automatically if the video stalls, for whatever reason.\r\n *\r\n * @method Phaser.GameObjects.Video#stalledHandler\r\n * @fires Phaser.GameObjects.Events#VIDEO_STALLED\r\n * @since 3.60.0\r\n *\r\n * @param {Event} event - The error Event.\r\n */\r\n stalledHandler: function (event)\r\n {\r\n this.isStalled = true;\r\n\r\n this.emit(Events.VIDEO_STALLED, this, event);\r\n },\r\n\r\n /**\r\n * Called when the video completes playback, i.e. reaches an `ended` state.\r\n *\r\n * This will never happen if the video is coming from a live stream, where the duration is `Infinity`.\r\n *\r\n * @method Phaser.GameObjects.Video#completeHandler\r\n * @fires Phaser.GameObjects.Events#VIDEO_COMPLETE\r\n * @since 3.20.0\r\n */\r\n completeHandler: function ()\r\n {\r\n this._playCalled = false;\r\n\r\n this.emit(Events.VIDEO_COMPLETE, this);\r\n },\r\n\r\n /**\r\n * The internal update step.\r\n *\r\n * @method Phaser.GameObjects.Video#preUpdate\r\n * @private\r\n * @since 3.20.0\r\n *\r\n * @param {number} time - The current timestamp.\r\n * @param {number} delta - The delta time in ms since the last frame.\r\n */\r\n preUpdate: function (time, delta)\r\n {\r\n var video = this.video;\r\n\r\n if (!video || !this._playCalled)\r\n {\r\n return;\r\n }\r\n\r\n if (this.touchLocked && this.playWhenUnlocked)\r\n {\r\n this.retry += delta;\r\n\r\n if (this.retry >= this.retryInterval)\r\n {\r\n this.createPlayPromise(false);\r\n\r\n this.retry = 0;\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Seeks to a given point in the video. The value is given as a float between 0 and 1,\r\n * where 0 represents the start of the video and 1 represents the end.\r\n *\r\n * Seeking only works if the video has a duration, so will not work for live streams.\r\n *\r\n * When seeking begins, this video will emit a `seeking` event. When the video completes\r\n * seeking (i.e. reaches its designated timestamp) it will emit a `seeked` event.\r\n *\r\n * If you wish to seek based on time instead, use the `Video.setCurrentTime` method.\r\n *\r\n * Unfortunately, the DOM video element does not guarantee frame-accurate seeking.\r\n * This has been an ongoing subject of discussion: https://github.com/w3c/media-and-entertainment/issues/4\r\n *\r\n * @method Phaser.GameObjects.Video#seekTo\r\n * @since 3.20.0\r\n *\r\n * @param {number} value - The point in the video to seek to. A value between 0 and 1.\r\n *\r\n * @return {this} This Video Game Object for method chaining.\r\n */\r\n seekTo: function (value)\r\n {\r\n var video = this.video;\r\n\r\n if (video)\r\n {\r\n var duration = video.duration;\r\n\r\n if (duration !== Infinity && !isNaN(duration))\r\n {\r\n var seekTime = duration * value;\r\n\r\n this.setCurrentTime(seekTime);\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * A double-precision floating-point value indicating the current playback time in seconds.\r\n *\r\n * If the media has not started to play and has not been seeked, this value is the media's initial playback time.\r\n *\r\n * For a more accurate value, use the `Video.metadata.mediaTime` property instead.\r\n *\r\n * @method Phaser.GameObjects.Video#getCurrentTime\r\n * @since 3.20.0\r\n *\r\n * @return {number} A double-precision floating-point value indicating the current playback time in seconds.\r\n */\r\n getCurrentTime: function ()\r\n {\r\n return (this.video) ? this.video.currentTime : 0;\r\n },\r\n\r\n /**\r\n * Seeks to a given playback time in the video. The value is given in _seconds_ or as a string.\r\n *\r\n * Seeking only works if the video has a duration, so will not work for live streams.\r\n *\r\n * When seeking begins, this video will emit a `seeking` event. When the video completes\r\n * seeking (i.e. reaches its designated timestamp) it will emit a `seeked` event.\r\n *\r\n * You can provide a string prefixed with either a `+` or a `-`, such as `+2.5` or `-2.5`.\r\n * In this case it will seek to +/- the value given, relative to the _current time_.\r\n *\r\n * If you wish to seek based on a duration percentage instead, use the `Video.seekTo` method.\r\n *\r\n * @method Phaser.GameObjects.Video#setCurrentTime\r\n * @since 3.20.0\r\n *\r\n * @param {(string|number)} value - The playback time to seek to in seconds. Can be expressed as a string, such as `+2` to seek 2 seconds ahead from the current time.\r\n *\r\n * @return {this} This Video Game Object for method chaining.\r\n */\r\n setCurrentTime: function (value)\r\n {\r\n var video = this.video;\r\n\r\n if (video)\r\n {\r\n if (typeof value === 'string')\r\n {\r\n var op = value[0];\r\n var num = parseFloat(value.substr(1));\r\n\r\n if (op === '+')\r\n {\r\n value = video.currentTime + num;\r\n }\r\n else if (op === '-')\r\n {\r\n value = video.currentTime - num;\r\n }\r\n }\r\n\r\n video.currentTime = value;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal seeking handler.\r\n *\r\n * @method Phaser.GameObjects.Video#seekingHandler\r\n * @fires Phaser.GameObjects.Events#VIDEO_SEEKING\r\n * @private\r\n * @since 3.20.0\r\n */\r\n seekingHandler: function ()\r\n {\r\n this.isSeeking = true;\r\n\r\n this.emit(Events.VIDEO_SEEKING, this);\r\n },\r\n\r\n /**\r\n * Internal seeked handler.\r\n *\r\n * @method Phaser.GameObjects.Video#seekedHandler\r\n * @fires Phaser.GameObjects.Events#VIDEO_SEEKED\r\n * @private\r\n * @since 3.20.0\r\n */\r\n seekedHandler: function ()\r\n {\r\n this.isSeeking = false;\r\n\r\n this.emit(Events.VIDEO_SEEKED, this);\r\n },\r\n\r\n /**\r\n * Returns the current progress of the video as a float.\r\n *\r\n * Progress is defined as a value between 0 (the start) and 1 (the end).\r\n *\r\n * Progress can only be returned if the video has a duration. Some videos,\r\n * such as those coming from a live stream, do not have a duration. In this\r\n * case the method will return -1.\r\n *\r\n * @method Phaser.GameObjects.Video#getProgress\r\n * @since 3.20.0\r\n *\r\n * @return {number} The current progress of playback. If the video has no duration, will always return -1.\r\n */\r\n getProgress: function ()\r\n {\r\n var video = this.video;\r\n\r\n if (video)\r\n {\r\n var duration = video.duration;\r\n\r\n if (duration !== Infinity && !isNaN(duration))\r\n {\r\n return video.currentTime / duration;\r\n }\r\n }\r\n\r\n return -1;\r\n },\r\n\r\n /**\r\n * A double-precision floating-point value which indicates the duration (total length) of the media in seconds,\r\n * on the media's timeline. If no media is present on the element, or the media is not valid, the returned value is NaN.\r\n *\r\n * If the media has no known end (such as for live streams of unknown duration, web radio, media incoming from WebRTC,\r\n * and so forth), this value is +Infinity.\r\n *\r\n * If no video has been loaded, this method will return 0.\r\n *\r\n * @method Phaser.GameObjects.Video#getDuration\r\n * @since 3.20.0\r\n *\r\n * @return {number} A double-precision floating-point value indicating the duration of the media in seconds.\r\n */\r\n getDuration: function ()\r\n {\r\n return (this.video) ? this.video.duration : 0;\r\n },\r\n\r\n /**\r\n * Sets the muted state of the currently playing video, if one is loaded.\r\n *\r\n * @method Phaser.GameObjects.Video#setMute\r\n * @since 3.20.0\r\n *\r\n * @param {boolean} [value=true] - The mute value. `true` if the video should be muted, otherwise `false`.\r\n *\r\n * @return {this} This Video Game Object for method chaining.\r\n */\r\n setMute: function (value)\r\n {\r\n if (value === undefined) { value = true; }\r\n\r\n this._codeMuted = value;\r\n\r\n var video = this.video;\r\n\r\n if (video)\r\n {\r\n video.muted = (this._systemMuted) ? true : value;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns a boolean indicating if this Video is currently muted.\r\n *\r\n * @method Phaser.GameObjects.Video#isMuted\r\n * @since 3.20.0\r\n *\r\n * @return {boolean} A boolean indicating if this Video is currently muted, or not.\r\n */\r\n isMuted: function ()\r\n {\r\n return this._codeMuted;\r\n },\r\n\r\n /**\r\n * Internal global mute handler. Will mute the video, if playing, if the global sound system mutes.\r\n *\r\n * @method Phaser.GameObjects.Video#globalMute\r\n * @private\r\n * @since 3.20.0\r\n *\r\n * @param {(Phaser.Sound.WebAudioSoundManager|Phaser.Sound.HTML5AudioSoundManager)} soundManager - A reference to the Sound Manager that emitted the event.\r\n * @param {boolean} mute - The mute value. `true` if the Sound Manager is now muted, otherwise `false`.\r\n */\r\n globalMute: function (soundManager, value)\r\n {\r\n this._systemMuted = value;\r\n\r\n var video = this.video;\r\n\r\n if (video)\r\n {\r\n video.muted = (this._codeMuted) ? true : value;\r\n }\r\n },\r\n\r\n /**\r\n * Internal global pause handler. Will pause the video if the Game itself pauses.\r\n *\r\n * @method Phaser.GameObjects.Video#globalPause\r\n * @private\r\n * @since 3.20.0\r\n */\r\n globalPause: function ()\r\n {\r\n this._systemPaused = true;\r\n\r\n if (this.video && !this.video.ended)\r\n {\r\n this.removeEventHandlers();\r\n\r\n this.video.pause();\r\n }\r\n },\r\n\r\n /**\r\n * Internal global resume handler. Will resume a paused video if the Game itself resumes.\r\n *\r\n * @method Phaser.GameObjects.Video#globalResume\r\n * @private\r\n * @since 3.20.0\r\n */\r\n globalResume: function ()\r\n {\r\n this._systemPaused = false;\r\n\r\n if (this.video && !this._codePaused && !this.video.ended)\r\n {\r\n this.createPlayPromise();\r\n }\r\n },\r\n\r\n /**\r\n * Sets the paused state of the currently loaded video.\r\n *\r\n * If the video is playing, calling this method with `true` will pause playback.\r\n * If the video is paused, calling this method with `false` will resume playback.\r\n *\r\n * If no video is loaded, this method does nothing.\r\n *\r\n * If the video has not yet been played, `Video.play` will be called with no parameters.\r\n *\r\n * If the video has ended, this method will do nothing.\r\n *\r\n * @method Phaser.GameObjects.Video#setPaused\r\n * @since 3.20.0\r\n *\r\n * @param {boolean} [value=true] - The paused value. `true` if the video should be paused, `false` to resume it.\r\n *\r\n * @return {this} This Video Game Object for method chaining.\r\n */\r\n setPaused: function (value)\r\n {\r\n if (value === undefined) { value = true; }\r\n\r\n var video = this.video;\r\n\r\n this._codePaused = value;\r\n\r\n if (video && !video.ended)\r\n {\r\n if (value)\r\n {\r\n if (!video.paused)\r\n {\r\n this.removeEventHandlers();\r\n\r\n video.pause();\r\n }\r\n }\r\n else if (!value)\r\n {\r\n if (!this._playCalled)\r\n {\r\n this.play();\r\n }\r\n else if (video.paused && !this._systemPaused)\r\n {\r\n this.createPlayPromise();\r\n }\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Pauses the current Video, if one is playing.\r\n *\r\n * If no video is loaded, this method does nothing.\r\n *\r\n * Call `Video.resume` to resume playback.\r\n *\r\n * @method Phaser.GameObjects.Video#pause\r\n * @since 3.60.0\r\n *\r\n * @return {this} This Video Game Object for method chaining.\r\n */\r\n pause: function ()\r\n {\r\n return this.setPaused(true);\r\n },\r\n\r\n /**\r\n * Resumes the current Video, if one was previously playing and has been paused.\r\n *\r\n * If no video is loaded, this method does nothing.\r\n *\r\n * Call `Video.pause` to pause playback.\r\n *\r\n * @method Phaser.GameObjects.Video#resume\r\n * @since 3.60.0\r\n *\r\n * @return {this} This Video Game Object for method chaining.\r\n */\r\n resume: function ()\r\n {\r\n return this.setPaused(false);\r\n },\r\n\r\n /**\r\n * Returns a double indicating the audio volume, from 0.0 (silent) to 1.0 (loudest).\r\n *\r\n * @method Phaser.GameObjects.Video#getVolume\r\n * @since 3.20.0\r\n *\r\n * @return {number} A double indicating the audio volume, from 0.0 (silent) to 1.0 (loudest).\r\n */\r\n getVolume: function ()\r\n {\r\n return (this.video) ? this.video.volume : 1;\r\n },\r\n\r\n /**\r\n * Sets the volume of the currently playing video.\r\n *\r\n * The value given is a double indicating the audio volume, from 0.0 (silent) to 1.0 (loudest).\r\n *\r\n * @method Phaser.GameObjects.Video#setVolume\r\n * @since 3.20.0\r\n *\r\n * @param {number} [value=1] - A double indicating the audio volume, from 0.0 (silent) to 1.0 (loudest).\r\n *\r\n * @return {this} This Video Game Object for method chaining.\r\n */\r\n setVolume: function (value)\r\n {\r\n if (value === undefined) { value = 1; }\r\n\r\n if (this.video)\r\n {\r\n this.video.volume = Clamp(value, 0, 1);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns a double that indicates the rate at which the media is being played back.\r\n *\r\n * @method Phaser.GameObjects.Video#getPlaybackRate\r\n * @since 3.20.0\r\n *\r\n * @return {number} A double that indicates the rate at which the media is being played back.\r\n */\r\n getPlaybackRate: function ()\r\n {\r\n return (this.video) ? this.video.playbackRate : 1;\r\n },\r\n\r\n /**\r\n * Sets the playback rate of the current video.\r\n *\r\n * The value given is a double that indicates the rate at which the media is being played back.\r\n *\r\n * @method Phaser.GameObjects.Video#setPlaybackRate\r\n * @since 3.20.0\r\n *\r\n * @param {number} [rate] - A double that indicates the rate at which the media is being played back.\r\n *\r\n * @return {this} This Video Game Object for method chaining.\r\n */\r\n setPlaybackRate: function (rate)\r\n {\r\n if (this.video)\r\n {\r\n this.video.playbackRate = rate;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns a boolean which indicates whether the media element should start over when it reaches the end.\r\n *\r\n * @method Phaser.GameObjects.Video#getLoop\r\n * @since 3.20.0\r\n *\r\n * @return {boolean} A boolean which indicates whether the media element will start over when it reaches the end.\r\n */\r\n getLoop: function ()\r\n {\r\n return (this.video) ? this.video.loop : false;\r\n },\r\n\r\n /**\r\n * Sets the loop state of the current video.\r\n *\r\n * The value given is a boolean which indicates whether the media element will start over when it reaches the end.\r\n *\r\n * Not all videos can loop, for example live streams.\r\n *\r\n * Please note that not all browsers support _seamless_ video looping for all encoding formats.\r\n *\r\n * @method Phaser.GameObjects.Video#setLoop\r\n * @since 3.20.0\r\n *\r\n * @param {boolean} [value=true] - A boolean which indicates whether the media element will start over when it reaches the end.\r\n *\r\n * @return {this} This Video Game Object for method chaining.\r\n */\r\n setLoop: function (value)\r\n {\r\n if (value === undefined) { value = true; }\r\n\r\n if (this.video)\r\n {\r\n this.video.loop = value;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns a boolean which indicates whether the video is currently playing.\r\n *\r\n * @method Phaser.GameObjects.Video#isPlaying\r\n * @since 3.20.0\r\n *\r\n * @return {boolean} A boolean which indicates whether the video is playing, or not.\r\n */\r\n isPlaying: function ()\r\n {\r\n return (this.video) ? !(this.video.paused || this.video.ended) : false;\r\n },\r\n\r\n /**\r\n * Returns a boolean which indicates whether the video is currently paused.\r\n *\r\n * @method Phaser.GameObjects.Video#isPaused\r\n * @since 3.20.0\r\n *\r\n * @return {boolean} A boolean which indicates whether the video is paused, or not.\r\n */\r\n isPaused: function ()\r\n {\r\n return ((this.video && this._playCalled && this.video.paused) || this._codePaused || this._systemPaused);\r\n },\r\n\r\n /**\r\n * Stores this Video in the Texture Manager using the given key as a dynamic texture,\r\n * which any texture-based Game Object, such as a Sprite, can use as its source:\r\n *\r\n * ```javascript\r\n * const vid = this.add.video(0, 0, 'intro');\r\n *\r\n * vid.play();\r\n *\r\n * vid.saveTexture('doodle');\r\n *\r\n * this.add.image(400, 300, 'doodle');\r\n * ```\r\n *\r\n * If the video is not yet playing then you need to listen for the `TEXTURE_READY` event before\r\n * you can use this texture on a Game Object:\r\n *\r\n * ```javascript\r\n * const vid = this.add.video(0, 0, 'intro');\r\n *\r\n * vid.play();\r\n *\r\n * vid.once('textureready', (video, texture, key) => {\r\n *\r\n * this.add.image(400, 300, key);\r\n *\r\n * });\r\n *\r\n * vid.saveTexture('doodle');\r\n * ```\r\n *\r\n * The saved texture is automatically updated as the video plays. If you pause this video,\r\n * or change its source, then the saved texture updates instantly.\r\n *\r\n * Calling `saveTexture` again will not save another copy of the same texture, it will just rename the existing one.\r\n *\r\n * By default it will create a single base texture. You can add frames to the texture\r\n * by using the `Texture.add` method. After doing this, you can then allow Game Objects\r\n * to use a specific frame.\r\n *\r\n * If you intend to save the texture so you can use it as the input for a Shader, you may need to set the\r\n * `flipY` parameter to `true` if you find the video renders upside down in your shader.\r\n *\r\n * @method Phaser.GameObjects.Video#saveTexture\r\n * @since 3.20.0\r\n *\r\n * @param {string} key - The unique key to store the texture as within the global Texture Manager.\r\n * @param {boolean} [flipY=false] - Should the WebGL Texture set `UNPACK_MULTIPLY_FLIP_Y` during upload?\r\n *\r\n * @return {boolean} Returns `true` if the texture is available immediately, otherwise returns `false` and you should listen for the `TEXTURE_READY` event.\r\n */\r\n saveTexture: function (key, flipY)\r\n {\r\n if (flipY === undefined) { flipY = false; }\r\n\r\n if (this.videoTexture)\r\n {\r\n this.scene.sys.textures.renameTexture(this._key, key);\r\n this.videoTextureSource.setFlipY(flipY);\r\n }\r\n\r\n this._key = key;\r\n this.flipY = flipY;\r\n\r\n return (this.videoTexture) ? true : false;\r\n },\r\n\r\n /**\r\n * Stops the video playing and clears all internal event listeners.\r\n *\r\n * If you only wish to pause playback of the video, and resume it a later time, use the `Video.pause` method instead.\r\n *\r\n * If the video hasn't finished downloading, calling this method will not abort the download. To do that you need to\r\n * call `destroy` instead.\r\n *\r\n * @method Phaser.GameObjects.Video#stop\r\n * @fires Phaser.GameObjects.Events#VIDEO_STOP\r\n * @since 3.20.0\r\n *\r\n * @param {boolean} [emitStopEvent=true] - Should the `VIDEO_STOP` event be emitted?\r\n *\r\n * @return {this} This Video Game Object for method chaining.\r\n */\r\n stop: function (emitStopEvent)\r\n {\r\n if (emitStopEvent === undefined) { emitStopEvent = true; }\r\n\r\n var video = this.video;\r\n\r\n if (video)\r\n {\r\n this.removeEventHandlers();\r\n\r\n video.cancelVideoFrameCallback(this._rfvCallbackId);\r\n\r\n video.pause();\r\n }\r\n\r\n this.retry = 0;\r\n this._playCalled = false;\r\n\r\n if (emitStopEvent)\r\n {\r\n this.emit(Events.VIDEO_STOP, this);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes the Video element from the DOM by calling parentNode.removeChild on itself.\r\n *\r\n * Also removes the autoplay and src attributes and nulls the `Video.video` reference.\r\n *\r\n * If you loaded an external video via `Video.loadURL` then you should call this function\r\n * to clear up once you are done with the instance, but don't want to destroy this\r\n * Video Game Object.\r\n *\r\n * This method is called automatically by `Video.destroy`.\r\n *\r\n * @method Phaser.GameObjects.Video#removeVideoElement\r\n * @since 3.20.0\r\n */\r\n removeVideoElement: function ()\r\n {\r\n var video = this.video;\r\n\r\n if (!video)\r\n {\r\n return;\r\n }\r\n\r\n if (video.parentNode)\r\n {\r\n video.parentNode.removeChild(video);\r\n }\r\n\r\n while (video.hasChildNodes())\r\n {\r\n video.removeChild(video.firstChild);\r\n }\r\n\r\n video.removeAttribute('autoplay');\r\n video.removeAttribute('src');\r\n\r\n this.video = null;\r\n },\r\n\r\n /**\r\n * Handles the pre-destroy step for the Video object.\r\n *\r\n * This calls `Video.stop` and optionally `Video.removeVideoElement`.\r\n *\r\n * If any Sprites are using this Video as their texture it is up to you to manage those.\r\n *\r\n * @method Phaser.GameObjects.Video#preDestroy\r\n * @private\r\n * @since 3.21.0\r\n */\r\n preDestroy: function ()\r\n {\r\n this.stop(false);\r\n\r\n this.removeLoadEventHandlers();\r\n\r\n this.removeVideoElement();\r\n\r\n var game = this.scene.sys.game.events;\r\n\r\n game.off(GameEvents.PAUSE, this.globalPause, this);\r\n game.off(GameEvents.RESUME, this.globalResume, this);\r\n\r\n var sound = this.scene.sys.sound;\r\n\r\n if (sound)\r\n {\r\n sound.off(SoundEvents.GLOBAL_MUTE, this.globalMute, this);\r\n }\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Video;\r\n\n\n/***/ }),\n\n/***/ 58352:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Video#renderCanvas\r\n * @since 3.20.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.Video} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar VideoCanvasRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n if (src.videoTexture)\r\n {\r\n camera.addToRenderList(src);\r\n\r\n renderer.batchSprite(src, src.frame, camera, parentMatrix);\r\n }\r\n};\r\n\r\nmodule.exports = VideoCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 11511:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BuildGameObject = __webpack_require__(25305);\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\nvar Video = __webpack_require__(18471);\r\n\r\n/**\r\n * Creates a new Video Game Object and returns it.\r\n *\r\n * Note: This method will only be available if the Video Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#video\r\n * @since 3.20.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Video.VideoConfig} config - The configuration object this Game Object will use to create itself.\r\n * @param {boolean} [addToScene] - Add this Game Object to the Scene after creating it? If set this argument overrides the `add` property in the config object.\r\n *\r\n * @return {Phaser.GameObjects.Video} The Game Object that was created.\r\n */\r\nGameObjectCreator.register('video', function (config, addToScene)\r\n{\r\n if (config === undefined) { config = {}; }\r\n\r\n var key = GetAdvancedValue(config, 'key', null);\r\n\r\n var video = new Video(this.scene, 0, 0, key);\r\n\r\n if (addToScene !== undefined)\r\n {\r\n config.add = addToScene;\r\n }\r\n\r\n BuildGameObject(this.scene, video, config);\r\n\r\n return video;\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectCreator context.\r\n\n\n/***/ }),\n\n/***/ 89025:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Video = __webpack_require__(18471);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * Creates a new Video Game Object and adds it to the Scene.\r\n *\r\n * This Game Object is capable of handling playback of a video file, video stream or media stream.\r\n *\r\n * You can optionally 'preload' the video into the Phaser Video Cache:\r\n *\r\n * ```javascript\r\n * preload () {\r\n * this.load.video('ripley', 'assets/aliens.mp4');\r\n * }\r\n *\r\n * create () {\r\n * this.add.video(400, 300, 'ripley');\r\n * }\r\n * ```\r\n *\r\n * You don't have to 'preload' the video. You can also play it directly from a URL:\r\n *\r\n * ```javascript\r\n * create () {\r\n * this.add.video(400, 300).loadURL('assets/aliens.mp4');\r\n * }\r\n * ```\r\n *\r\n * To all intents and purposes, a video is a standard Game Object, just like a Sprite. And as such, you can do\r\n * all the usual things to it, such as scaling, rotating, cropping, tinting, making interactive, giving a\r\n * physics body, etc.\r\n *\r\n * Transparent videos are also possible via the WebM file format. Providing the video file has was encoded with\r\n * an alpha channel, and providing the browser supports WebM playback (not all of them do), then it will render\r\n * in-game with full transparency.\r\n *\r\n * ### Autoplaying Videos\r\n *\r\n * Videos can only autoplay if the browser has been unlocked with an interaction, or satisfies the MEI settings.\r\n * The policies that control autoplaying are vast and vary between browser. You can, and should, read more about\r\n * it here: https://developer.mozilla.org/en-US/docs/Web/Media/Autoplay_guide\r\n *\r\n * If your video doesn't contain any audio, then set the `noAudio` parameter to `true` when the video is _loaded_,\r\n * and it will often allow the video to play immediately:\r\n *\r\n * ```javascript\r\n * preload () {\r\n * this.load.video('pixar', 'nemo.mp4', true);\r\n * }\r\n * ```\r\n *\r\n * The 3rd parameter in the load call tells Phaser that the video doesn't contain any audio tracks. Video without\r\n * audio can autoplay without requiring a user interaction. Video with audio cannot do this unless it satisfies\r\n * the browsers MEI settings. See the MDN Autoplay Guide for further details.\r\n *\r\n * Or:\r\n *\r\n * ```javascript\r\n * create () {\r\n * this.add.video(400, 300).loadURL('assets/aliens.mp4', true);\r\n * }\r\n * ```\r\n *\r\n * You can set the `noAudio` parameter to `true` even if the video does contain audio. It will still allow the video\r\n * to play immediately, but the audio will not start.\r\n *\r\n * Note that due to a bug in IE11 you cannot play a video texture to a Sprite in WebGL. For IE11 force Canvas mode.\r\n *\r\n * More details about video playback and the supported media formats can be found on MDN:\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLVideoElement\r\n * https://developer.mozilla.org/en-US/docs/Web/Media/Formats\r\n *\r\n * Note: This method will only be available if the Video Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#video\r\n * @since 3.20.0\r\n *\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {string} [key] - Optional key of the Video this Game Object will play, as stored in the Video Cache.\r\n *\r\n * @return {Phaser.GameObjects.Video} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('video', function (x, y, key)\r\n{\r\n return this.displayList.add(new Video(this.scene, x, y, key));\r\n});\r\n\n\n/***/ }),\n\n/***/ 10247:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(29849);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(58352);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 29849:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.GameObjects.Video#renderWebGL\r\n * @since 3.20.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Video} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar VideoWebGLRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n if (src.videoTexture)\r\n {\r\n camera.addToRenderList(src);\r\n\r\n src.pipeline.batchSprite(src, camera, parentMatrix);\r\n }\r\n};\r\n\r\nmodule.exports = VideoWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 41481:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BlendModes = __webpack_require__(10312);\r\nvar Circle = __webpack_require__(96503);\r\nvar CircleContains = __webpack_require__(87902);\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar GameObject = __webpack_require__(95643);\r\nvar Rectangle = __webpack_require__(87841);\r\nvar RectangleContains = __webpack_require__(37303);\r\n\r\n/**\r\n * @classdesc\r\n * A Zone Game Object.\r\n *\r\n * A Zone is a non-rendering rectangular Game Object that has a position and size.\r\n * It has no texture and never displays, but does live on the display list and\r\n * can be moved, scaled and rotated like any other Game Object.\r\n *\r\n * Its primary use is for creating Drop Zones and Input Hit Areas and it has a couple of helper methods\r\n * specifically for this. It is also useful for object overlap checks, or as a base for your own\r\n * non-displaying Game Objects.\r\n\r\n * The default origin is 0.5, the center of the Zone, the same as with Game Objects.\r\n *\r\n * @class Zone\r\n * @extends Phaser.GameObjects.GameObject\r\n * @memberof Phaser.GameObjects\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.GetBounds\r\n * @extends Phaser.GameObjects.Components.Origin\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs.\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {number} [width=1] - The width of the Game Object.\r\n * @param {number} [height=1] - The height of the Game Object.\r\n */\r\nvar Zone = new Class({\r\n\r\n Extends: GameObject,\r\n\r\n Mixins: [\r\n Components.Depth,\r\n Components.GetBounds,\r\n Components.Origin,\r\n Components.Transform,\r\n Components.ScrollFactor,\r\n Components.Visible\r\n ],\r\n\r\n initialize:\r\n\r\n function Zone (scene, x, y, width, height)\r\n {\r\n if (width === undefined) { width = 1; }\r\n if (height === undefined) { height = width; }\r\n\r\n GameObject.call(this, scene, 'Zone');\r\n\r\n this.setPosition(x, y);\r\n\r\n /**\r\n * The native (un-scaled) width of this Game Object.\r\n *\r\n * @name Phaser.GameObjects.Zone#width\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.width = width;\r\n\r\n /**\r\n * The native (un-scaled) height of this Game Object.\r\n *\r\n * @name Phaser.GameObjects.Zone#height\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.height = height;\r\n\r\n /**\r\n * The Blend Mode of the Game Object.\r\n * Although a Zone never renders, it still has a blend mode to allow it to fit seamlessly into\r\n * display lists without causing a batch flush.\r\n *\r\n * @name Phaser.GameObjects.Zone#blendMode\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.blendMode = BlendModes.NORMAL;\r\n\r\n this.updateDisplayOrigin();\r\n },\r\n\r\n /**\r\n * The displayed width of this Game Object.\r\n * This value takes into account the scale factor.\r\n *\r\n * @name Phaser.GameObjects.Zone#displayWidth\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n displayWidth: {\r\n\r\n get: function ()\r\n {\r\n return this.scaleX * this.width;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.scaleX = value / this.width;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The displayed height of this Game Object.\r\n * This value takes into account the scale factor.\r\n *\r\n * @name Phaser.GameObjects.Zone#displayHeight\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n displayHeight: {\r\n\r\n get: function ()\r\n {\r\n return this.scaleY * this.height;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.scaleY = value / this.height;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Sets the size of this Game Object.\r\n *\r\n * @method Phaser.GameObjects.Zone#setSize\r\n * @since 3.0.0\r\n *\r\n * @param {number} width - The width of this Game Object.\r\n * @param {number} height - The height of this Game Object.\r\n * @param {boolean} [resizeInput=true] - If this Zone has a Rectangle for a hit area this argument will resize the hit area as well.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setSize: function (width, height, resizeInput)\r\n {\r\n if (resizeInput === undefined) { resizeInput = true; }\r\n\r\n this.width = width;\r\n this.height = height;\r\n\r\n this.updateDisplayOrigin();\r\n\r\n var input = this.input;\r\n\r\n if (resizeInput && input && !input.customHitArea)\r\n {\r\n input.hitArea.width = width;\r\n input.hitArea.height = height;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the display size of this Game Object.\r\n * Calling this will adjust the scale.\r\n *\r\n * @method Phaser.GameObjects.Zone#setDisplaySize\r\n * @since 3.0.0\r\n *\r\n * @param {number} width - The width of this Game Object.\r\n * @param {number} height - The height of this Game Object.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setDisplaySize: function (width, height)\r\n {\r\n this.displayWidth = width;\r\n this.displayHeight = height;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets this Zone to be a Circular Drop Zone.\r\n * The circle is centered on this Zones `x` and `y` coordinates.\r\n *\r\n * @method Phaser.GameObjects.Zone#setCircleDropZone\r\n * @since 3.0.0\r\n *\r\n * @param {number} radius - The radius of the Circle that will form the Drop Zone.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setCircleDropZone: function (radius)\r\n {\r\n return this.setDropZone(new Circle(0, 0, radius), CircleContains);\r\n },\r\n\r\n /**\r\n * Sets this Zone to be a Rectangle Drop Zone.\r\n * The rectangle is centered on this Zones `x` and `y` coordinates.\r\n *\r\n * @method Phaser.GameObjects.Zone#setRectangleDropZone\r\n * @since 3.0.0\r\n *\r\n * @param {number} width - The width of the rectangle drop zone.\r\n * @param {number} height - The height of the rectangle drop zone.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setRectangleDropZone: function (width, height)\r\n {\r\n return this.setDropZone(new Rectangle(0, 0, width, height), RectangleContains);\r\n },\r\n\r\n /**\r\n * Allows you to define your own Geometry shape to be used as a Drop Zone.\r\n *\r\n * @method Phaser.GameObjects.Zone#setDropZone\r\n * @since 3.0.0\r\n *\r\n * @param {object} [hitArea] - A Geometry shape instance, such as Phaser.Geom.Ellipse, or your own custom shape. If not given it will try to create a Rectangle based on the size of this zone.\r\n * @param {Phaser.Types.Input.HitAreaCallback} [hitAreaCallback] - A function that will return `true` if the given x/y coords it is sent are within the shape. If you provide a shape you must also provide a callback.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setDropZone: function (hitArea, hitAreaCallback)\r\n {\r\n if (!this.input)\r\n {\r\n this.setInteractive(hitArea, hitAreaCallback, true);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * A NOOP method so you can pass a Zone to a Container.\r\n * Calling this method will do nothing. It is intentionally empty.\r\n *\r\n * @method Phaser.GameObjects.Zone#setAlpha\r\n * @private\r\n * @since 3.11.0\r\n */\r\n setAlpha: function ()\r\n {\r\n },\r\n\r\n /**\r\n * A NOOP method so you can pass a Zone to a Container in Canvas.\r\n * Calling this method will do nothing. It is intentionally empty.\r\n *\r\n * @method Phaser.GameObjects.Zone#setBlendMode\r\n * @private\r\n * @since 3.16.2\r\n */\r\n setBlendMode: function ()\r\n {\r\n },\r\n\r\n /**\r\n * A Zone does not render.\r\n *\r\n * @method Phaser.GameObjects.Zone#renderCanvas\r\n * @private\r\n * @since 3.53.0\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.GameObjects.Image} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\n renderCanvas: function (renderer, src, camera)\r\n {\r\n camera.addToRenderList(src);\r\n },\r\n\r\n /**\r\n * A Zone does not render.\r\n *\r\n * @method Phaser.GameObjects.Zone#renderWebGL\r\n * @private\r\n * @since 3.53.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Image} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\n renderWebGL: function (renderer, src, camera)\r\n {\r\n camera.addToRenderList(src);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Zone;\r\n\n\n/***/ }),\n\n/***/ 95261:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\nvar Zone = __webpack_require__(41481);\r\n\r\n/**\r\n * Creates a new Zone Game Object and returns it.\r\n *\r\n * Note: This method will only be available if the Zone Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#zone\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.GameObjects.Zone.ZoneConfig} config - The configuration object this Game Object will use to create itself.\r\n *\r\n * @return {Phaser.GameObjects.Zone} The Game Object that was created.\r\n */\r\nGameObjectCreator.register('zone', function (config)\r\n{\r\n var x = GetAdvancedValue(config, 'x', 0);\r\n var y = GetAdvancedValue(config, 'y', 0);\r\n var width = GetAdvancedValue(config, 'width', 1);\r\n var height = GetAdvancedValue(config, 'height', width);\r\n\r\n return new Zone(this.scene, x, y, width, height);\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectCreator context.\r\n\n\n/***/ }),\n\n/***/ 84175:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Zone = __webpack_require__(41481);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\n\r\n/**\r\n * Creates a new Zone Game Object and adds it to the Scene.\r\n *\r\n * Note: This method will only be available if the Zone Game Object has been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#zone\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {number} width - The width of the Game Object.\r\n * @param {number} height - The height of the Game Object.\r\n *\r\n * @return {Phaser.GameObjects.Zone} The Game Object that was created.\r\n */\r\nGameObjectFactory.register('zone', function (x, y, width, height)\r\n{\r\n return this.displayList.add(new Zone(this.scene, x, y, width, height));\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectFactory context.\r\n//\r\n// There are several properties available to use:\r\n//\r\n// this.scene - a reference to the Scene that owns the GameObjectFactory\r\n// this.displayList - a reference to the Display List the Scene owns\r\n// this.updateList - a reference to the Update List the Scene owns\r\n\n\n/***/ }),\n\n/***/ 95166:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculates the area of the circle.\r\n *\r\n * @function Phaser.Geom.Circle.Area\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Circle} circle - The Circle to get the area of.\r\n *\r\n * @return {number} The area of the Circle.\r\n */\r\nvar Area = function (circle)\r\n{\r\n return (circle.radius > 0) ? Math.PI * circle.radius * circle.radius : 0;\r\n};\r\n\r\nmodule.exports = Area;\r\n\n\n/***/ }),\n\n/***/ 96503:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Contains = __webpack_require__(87902);\r\nvar GetPoint = __webpack_require__(26241);\r\nvar GetPoints = __webpack_require__(79124);\r\nvar GEOM_CONST = __webpack_require__(23777);\r\nvar Random = __webpack_require__(28176);\r\n\r\n/**\r\n * @classdesc\r\n * A Circle object.\r\n *\r\n * This is a geometry object, containing numerical values and related methods to inspect and modify them.\r\n * It is not a Game Object, in that you cannot add it to the display list, and it has no texture.\r\n * To render a Circle you should look at the capabilities of the Graphics class.\r\n *\r\n * @class Circle\r\n * @memberof Phaser.Geom\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=0] - The x position of the center of the circle.\r\n * @param {number} [y=0] - The y position of the center of the circle.\r\n * @param {number} [radius=0] - The radius of the circle.\r\n */\r\nvar Circle = new Class({\r\n\r\n initialize:\r\n\r\n function Circle (x, y, radius)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (radius === undefined) { radius = 0; }\r\n\r\n /**\r\n * The geometry constant type of this object: `GEOM_CONST.CIRCLE`.\r\n * Used for fast type comparisons.\r\n *\r\n * @name Phaser.Geom.Circle#type\r\n * @type {number}\r\n * @readonly\r\n * @since 3.19.0\r\n */\r\n this.type = GEOM_CONST.CIRCLE;\r\n\r\n /**\r\n * The x position of the center of the circle.\r\n *\r\n * @name Phaser.Geom.Circle#x\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.x = x;\r\n\r\n /**\r\n * The y position of the center of the circle.\r\n *\r\n * @name Phaser.Geom.Circle#y\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.y = y;\r\n\r\n /**\r\n * The internal radius of the circle.\r\n *\r\n * @name Phaser.Geom.Circle#_radius\r\n * @type {number}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._radius = radius;\r\n\r\n /**\r\n * The internal diameter of the circle.\r\n *\r\n * @name Phaser.Geom.Circle#_diameter\r\n * @type {number}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._diameter = radius * 2;\r\n },\r\n\r\n /**\r\n * Check to see if the Circle contains the given x / y coordinates.\r\n *\r\n * @method Phaser.Geom.Circle#contains\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x coordinate to check within the circle.\r\n * @param {number} y - The y coordinate to check within the circle.\r\n *\r\n * @return {boolean} True if the coordinates are within the circle, otherwise false.\r\n */\r\n contains: function (x, y)\r\n {\r\n return Contains(this, x, y);\r\n },\r\n\r\n /**\r\n * Returns a Point object containing the coordinates of a point on the circumference of the Circle\r\n * based on the given angle normalized to the range 0 to 1. I.e. a value of 0.5 will give the point\r\n * at 180 degrees around the circle.\r\n *\r\n * @method Phaser.Geom.Circle#getPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {number} position - A value between 0 and 1, where 0 equals 0 degrees, 0.5 equals 180 degrees and 1 equals 360 around the circle.\r\n * @param {(Phaser.Geom.Point|object)} [out] - An object to store the return values in. If not given a Point object will be created.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} A Point, or point-like object, containing the coordinates of the point around the circle.\r\n */\r\n getPoint: function (position, point)\r\n {\r\n return GetPoint(this, position, point);\r\n },\r\n\r\n /**\r\n * Returns an array of Point objects containing the coordinates of the points around the circumference of the Circle,\r\n * based on the given quantity or stepRate values.\r\n *\r\n * @method Phaser.Geom.Circle#getPoints\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point[]} O - [output,$return]\r\n *\r\n * @param {number} quantity - The amount of points to return. If a falsey value the quantity will be derived from the `stepRate` instead.\r\n * @param {number} [stepRate] - Sets the quantity by getting the circumference of the circle and dividing it by the stepRate.\r\n * @param {(array|Phaser.Geom.Point[])} [output] - An array to insert the points in to. If not provided a new array will be created.\r\n *\r\n * @return {(array|Phaser.Geom.Point[])} An array of Point objects pertaining to the points around the circumference of the circle.\r\n */\r\n getPoints: function (quantity, stepRate, output)\r\n {\r\n return GetPoints(this, quantity, stepRate, output);\r\n },\r\n\r\n /**\r\n * Returns a uniformly distributed random point from anywhere within the Circle.\r\n *\r\n * @method Phaser.Geom.Circle#getRandomPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [point,$return]\r\n *\r\n * @param {(Phaser.Geom.Point|object)} [point] - A Point or point-like object to set the random `x` and `y` values in.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} A Point object with the random values set in the `x` and `y` properties.\r\n */\r\n getRandomPoint: function (point)\r\n {\r\n return Random(this, point);\r\n },\r\n\r\n /**\r\n * Sets the x, y and radius of this circle.\r\n *\r\n * @method Phaser.Geom.Circle#setTo\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=0] - The x position of the center of the circle.\r\n * @param {number} [y=0] - The y position of the center of the circle.\r\n * @param {number} [radius=0] - The radius of the circle.\r\n *\r\n * @return {this} This Circle object.\r\n */\r\n setTo: function (x, y, radius)\r\n {\r\n this.x = x;\r\n this.y = y;\r\n this._radius = radius;\r\n this._diameter = radius * 2;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets this Circle to be empty with a radius of zero.\r\n * Does not change its position.\r\n *\r\n * @method Phaser.Geom.Circle#setEmpty\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Circle object.\r\n */\r\n setEmpty: function ()\r\n {\r\n this._radius = 0;\r\n this._diameter = 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the position of this Circle.\r\n *\r\n * @method Phaser.Geom.Circle#setPosition\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=0] - The x position of the center of the circle.\r\n * @param {number} [y=0] - The y position of the center of the circle.\r\n *\r\n * @return {this} This Circle object.\r\n */\r\n setPosition: function (x, y)\r\n {\r\n if (y === undefined) { y = x; }\r\n\r\n this.x = x;\r\n this.y = y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Checks to see if the Circle is empty: has a radius of zero.\r\n *\r\n * @method Phaser.Geom.Circle#isEmpty\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} True if the Circle is empty, otherwise false.\r\n */\r\n isEmpty: function ()\r\n {\r\n return (this._radius <= 0);\r\n },\r\n\r\n /**\r\n * The radius of the Circle.\r\n *\r\n * @name Phaser.Geom.Circle#radius\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n radius: {\r\n\r\n get: function ()\r\n {\r\n return this._radius;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._radius = value;\r\n this._diameter = value * 2;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The diameter of the Circle.\r\n *\r\n * @name Phaser.Geom.Circle#diameter\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n diameter: {\r\n\r\n get: function ()\r\n {\r\n return this._diameter;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._diameter = value;\r\n this._radius = value * 0.5;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The left position of the Circle.\r\n *\r\n * @name Phaser.Geom.Circle#left\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n left: {\r\n\r\n get: function ()\r\n {\r\n return this.x - this._radius;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.x = value + this._radius;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The right position of the Circle.\r\n *\r\n * @name Phaser.Geom.Circle#right\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n right: {\r\n\r\n get: function ()\r\n {\r\n return this.x + this._radius;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.x = value - this._radius;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The top position of the Circle.\r\n *\r\n * @name Phaser.Geom.Circle#top\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n top: {\r\n\r\n get: function ()\r\n {\r\n return this.y - this._radius;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.y = value + this._radius;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The bottom position of the Circle.\r\n *\r\n * @name Phaser.Geom.Circle#bottom\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n bottom: {\r\n\r\n get: function ()\r\n {\r\n return this.y + this._radius;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.y = value - this._radius;\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Circle;\r\n\n\n/***/ }),\n\n/***/ 71562:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Returns the circumference of the given Circle.\r\n *\r\n * @function Phaser.Geom.Circle.Circumference\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Circle} circle - The Circle to get the circumference of.\r\n *\r\n * @return {number} The circumference of the Circle.\r\n */\r\nvar Circumference = function (circle)\r\n{\r\n return 2 * (Math.PI * circle.radius);\r\n};\r\n\r\nmodule.exports = Circumference;\r\n\n\n/***/ }),\n\n/***/ 92110:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Returns a Point object containing the coordinates of a point on the circumference of the Circle based on the given angle.\r\n *\r\n * @function Phaser.Geom.Circle.CircumferencePoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Circle} circle - The Circle to get the circumference point on.\r\n * @param {number} angle - The angle from the center of the Circle to the circumference to return the point from. Given in radians.\r\n * @param {(Phaser.Geom.Point|object)} [out] - A Point, or point-like object, to store the results in. If not given a Point will be created.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} A Point object where the `x` and `y` properties are the point on the circumference.\r\n */\r\nvar CircumferencePoint = function (circle, angle, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n out.x = circle.x + (circle.radius * Math.cos(angle));\r\n out.y = circle.y + (circle.radius * Math.sin(angle));\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = CircumferencePoint;\r\n\n\n/***/ }),\n\n/***/ 42250:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Circle = __webpack_require__(96503);\r\n\r\n/**\r\n * Creates a new Circle instance based on the values contained in the given source.\r\n *\r\n * @function Phaser.Geom.Circle.Clone\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Geom.Circle|object)} source - The Circle to be cloned. Can be an instance of a Circle or a circle-like object, with x, y and radius properties.\r\n *\r\n * @return {Phaser.Geom.Circle} A clone of the source Circle.\r\n */\r\nvar Clone = function (source)\r\n{\r\n return new Circle(source.x, source.y, source.radius);\r\n};\r\n\r\nmodule.exports = Clone;\r\n\n\n/***/ }),\n\n/***/ 87902:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Check to see if the Circle contains the given x / y coordinates.\r\n *\r\n * @function Phaser.Geom.Circle.Contains\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Circle} circle - The Circle to check.\r\n * @param {number} x - The x coordinate to check within the circle.\r\n * @param {number} y - The y coordinate to check within the circle.\r\n *\r\n * @return {boolean} True if the coordinates are within the circle, otherwise false.\r\n */\r\nvar Contains = function (circle, x, y)\r\n{\r\n // Check if x/y are within the bounds first\r\n if (circle.radius > 0 && x >= circle.left && x <= circle.right && y >= circle.top && y <= circle.bottom)\r\n {\r\n var dx = (circle.x - x) * (circle.x - x);\r\n var dy = (circle.y - y) * (circle.y - y);\r\n\r\n return (dx + dy) <= (circle.radius * circle.radius);\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n};\r\n\r\nmodule.exports = Contains;\r\n\n\n/***/ }),\n\n/***/ 5698:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Contains = __webpack_require__(87902);\r\n\r\n/**\r\n * Check to see if the Circle contains the given Point object.\r\n *\r\n * @function Phaser.Geom.Circle.ContainsPoint\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Circle} circle - The Circle to check.\r\n * @param {(Phaser.Geom.Point|object)} point - The Point object to check if it's within the Circle or not.\r\n *\r\n * @return {boolean} True if the Point coordinates are within the circle, otherwise false.\r\n */\r\nvar ContainsPoint = function (circle, point)\r\n{\r\n return Contains(circle, point.x, point.y);\r\n};\r\n\r\nmodule.exports = ContainsPoint;\r\n\n\n/***/ }),\n\n/***/ 70588:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Contains = __webpack_require__(87902);\r\n\r\n/**\r\n * Check to see if the Circle contains all four points of the given Rectangle object.\r\n *\r\n * @function Phaser.Geom.Circle.ContainsRect\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Circle} circle - The Circle to check.\r\n * @param {(Phaser.Geom.Rectangle|object)} rect - The Rectangle object to check if it's within the Circle or not.\r\n *\r\n * @return {boolean} True if all of the Rectangle coordinates are within the circle, otherwise false.\r\n */\r\nvar ContainsRect = function (circle, rect)\r\n{\r\n return (\r\n Contains(circle, rect.x, rect.y) &&\r\n Contains(circle, rect.right, rect.y) &&\r\n Contains(circle, rect.x, rect.bottom) &&\r\n Contains(circle, rect.right, rect.bottom)\r\n );\r\n};\r\n\r\nmodule.exports = ContainsRect;\r\n\n\n/***/ }),\n\n/***/ 26394:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Copies the `x`, `y` and `radius` properties from the `source` Circle\r\n * into the given `dest` Circle, then returns the `dest` Circle.\r\n *\r\n * @function Phaser.Geom.Circle.CopyFrom\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Circle} O - [dest,$return]\r\n *\r\n * @param {Phaser.Geom.Circle} source - The source Circle to copy the values from.\r\n * @param {Phaser.Geom.Circle} dest - The destination Circle to copy the values to.\r\n *\r\n * @return {Phaser.Geom.Circle} The destination Circle.\r\n */\r\nvar CopyFrom = function (source, dest)\r\n{\r\n return dest.setTo(source.x, source.y, source.radius);\r\n};\r\n\r\nmodule.exports = CopyFrom;\r\n\n\n/***/ }),\n\n/***/ 76278:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Compares the `x`, `y` and `radius` properties of the two given Circles.\r\n * Returns `true` if they all match, otherwise returns `false`.\r\n *\r\n * @function Phaser.Geom.Circle.Equals\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Circle} circle - The first Circle to compare.\r\n * @param {Phaser.Geom.Circle} toCompare - The second Circle to compare.\r\n *\r\n * @return {boolean} `true` if the two Circles equal each other, otherwise `false`.\r\n */\r\nvar Equals = function (circle, toCompare)\r\n{\r\n return (\r\n circle.x === toCompare.x &&\r\n circle.y === toCompare.y &&\r\n circle.radius === toCompare.radius\r\n );\r\n};\r\n\r\nmodule.exports = Equals;\r\n\n\n/***/ }),\n\n/***/ 2074:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Rectangle = __webpack_require__(87841);\r\n\r\n/**\r\n * Returns the bounds of the Circle object.\r\n *\r\n * @function Phaser.Geom.Circle.GetBounds\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Circle} circle - The Circle to get the bounds from.\r\n * @param {(Phaser.Geom.Rectangle|object)} [out] - A Rectangle, or rectangle-like object, to store the circle bounds in. If not given a new Rectangle will be created.\r\n *\r\n * @return {(Phaser.Geom.Rectangle|object)} The Rectangle object containing the Circles bounds.\r\n */\r\nvar GetBounds = function (circle, out)\r\n{\r\n if (out === undefined) { out = new Rectangle(); }\r\n\r\n out.x = circle.left;\r\n out.y = circle.top;\r\n out.width = circle.diameter;\r\n out.height = circle.diameter;\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetBounds;\r\n\n\n/***/ }),\n\n/***/ 26241:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CircumferencePoint = __webpack_require__(92110);\r\nvar FromPercent = __webpack_require__(62945);\r\nvar MATH_CONST = __webpack_require__(36383);\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Returns a Point object containing the coordinates of a point on the circumference of the Circle\r\n * based on the given angle normalized to the range 0 to 1. I.e. a value of 0.5 will give the point\r\n * at 180 degrees around the circle.\r\n *\r\n * @function Phaser.Geom.Circle.GetPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Circle} circle - The Circle to get the circumference point on.\r\n * @param {number} position - A value between 0 and 1, where 0 equals 0 degrees, 0.5 equals 180 degrees and 1 equals 360 around the circle.\r\n * @param {(Phaser.Geom.Point|object)} [out] - An object to store the return values in. If not given a Point object will be created.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} A Point, or point-like object, containing the coordinates of the point around the circle.\r\n */\r\nvar GetPoint = function (circle, position, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n var angle = FromPercent(position, 0, MATH_CONST.PI2);\r\n\r\n return CircumferencePoint(circle, angle, out);\r\n};\r\n\r\nmodule.exports = GetPoint;\r\n\n\n/***/ }),\n\n/***/ 79124:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Circumference = __webpack_require__(71562);\r\nvar CircumferencePoint = __webpack_require__(92110);\r\nvar FromPercent = __webpack_require__(62945);\r\nvar MATH_CONST = __webpack_require__(36383);\r\n\r\n/**\r\n * Returns an array of Point objects containing the coordinates of the points around the circumference of the Circle,\r\n * based on the given quantity or stepRate values.\r\n *\r\n * @function Phaser.Geom.Circle.GetPoints\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Circle} circle - The Circle to get the points from.\r\n * @param {number} quantity - The amount of points to return. If a falsey value the quantity will be derived from the `stepRate` instead.\r\n * @param {number} [stepRate] - Sets the quantity by getting the circumference of the circle and dividing it by the stepRate.\r\n * @param {array} [output] - An array to insert the points in to. If not provided a new array will be created.\r\n *\r\n * @return {Phaser.Geom.Point[]} An array of Point objects pertaining to the points around the circumference of the circle.\r\n */\r\nvar GetPoints = function (circle, quantity, stepRate, out)\r\n{\r\n if (out === undefined) { out = []; }\r\n\r\n // If quantity is a falsey value (false, null, 0, undefined, etc) then we calculate it based on the stepRate instead.\r\n if (!quantity && stepRate > 0)\r\n {\r\n quantity = Circumference(circle) / stepRate;\r\n }\r\n\r\n for (var i = 0; i < quantity; i++)\r\n {\r\n var angle = FromPercent(i / quantity, 0, MATH_CONST.PI2);\r\n\r\n out.push(CircumferencePoint(circle, angle));\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetPoints;\r\n\n\n/***/ }),\n\n/***/ 50884:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Offsets the Circle by the values given.\r\n *\r\n * @function Phaser.Geom.Circle.Offset\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Circle} O - [circle,$return]\r\n *\r\n * @param {Phaser.Geom.Circle} circle - The Circle to be offset (translated.)\r\n * @param {number} x - The amount to horizontally offset the Circle by.\r\n * @param {number} y - The amount to vertically offset the Circle by.\r\n *\r\n * @return {Phaser.Geom.Circle} The Circle that was offset.\r\n */\r\nvar Offset = function (circle, x, y)\r\n{\r\n circle.x += x;\r\n circle.y += y;\r\n\r\n return circle;\r\n};\r\n\r\nmodule.exports = Offset;\r\n\n\n/***/ }),\n\n/***/ 39212:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Offsets the Circle by the values given in the `x` and `y` properties of the Point object.\r\n *\r\n * @function Phaser.Geom.Circle.OffsetPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Circle} O - [circle,$return]\r\n *\r\n * @param {Phaser.Geom.Circle} circle - The Circle to be offset (translated.)\r\n * @param {(Phaser.Geom.Point|object)} point - The Point object containing the values to offset the Circle by.\r\n *\r\n * @return {Phaser.Geom.Circle} The Circle that was offset.\r\n */\r\nvar OffsetPoint = function (circle, point)\r\n{\r\n circle.x += point.x;\r\n circle.y += point.y;\r\n\r\n return circle;\r\n};\r\n\r\nmodule.exports = OffsetPoint;\r\n\n\n/***/ }),\n\n/***/ 28176:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Returns a uniformly distributed random point from anywhere within the given Circle.\r\n *\r\n * @function Phaser.Geom.Circle.Random\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Circle} circle - The Circle to get a random point from.\r\n * @param {(Phaser.Geom.Point|object)} [out] - A Point or point-like object to set the random `x` and `y` values in.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} A Point object with the random values set in the `x` and `y` properties.\r\n */\r\nvar Random = function (circle, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n var t = 2 * Math.PI * Math.random();\r\n var u = Math.random() + Math.random();\r\n var r = (u > 1) ? 2 - u : u;\r\n var x = r * Math.cos(t);\r\n var y = r * Math.sin(t);\r\n\r\n out.x = circle.x + (x * circle.radius);\r\n out.y = circle.y + (y * circle.radius);\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = Random;\r\n\n\n/***/ }),\n\n/***/ 88911:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Circle = __webpack_require__(96503);\r\n\r\nCircle.Area = __webpack_require__(95166);\r\nCircle.Circumference = __webpack_require__(71562);\r\nCircle.CircumferencePoint = __webpack_require__(92110);\r\nCircle.Clone = __webpack_require__(42250);\r\nCircle.Contains = __webpack_require__(87902);\r\nCircle.ContainsPoint = __webpack_require__(5698);\r\nCircle.ContainsRect = __webpack_require__(70588);\r\nCircle.CopyFrom = __webpack_require__(26394);\r\nCircle.Equals = __webpack_require__(76278);\r\nCircle.GetBounds = __webpack_require__(2074);\r\nCircle.GetPoint = __webpack_require__(26241);\r\nCircle.GetPoints = __webpack_require__(79124);\r\nCircle.Offset = __webpack_require__(50884);\r\nCircle.OffsetPoint = __webpack_require__(39212);\r\nCircle.Random = __webpack_require__(28176);\r\n\r\nmodule.exports = Circle;\r\n\n\n/***/ }),\n\n/***/ 23777:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GEOM_CONST = {\r\n\r\n /**\r\n * A Circle Geometry object type.\r\n *\r\n * @name Phaser.Geom.CIRCLE\r\n * @type {number}\r\n * @since 3.19.0\r\n */\r\n CIRCLE: 0,\r\n\r\n /**\r\n * An Ellipse Geometry object type.\r\n *\r\n * @name Phaser.Geom.ELLIPSE\r\n * @type {number}\r\n * @since 3.19.0\r\n */\r\n ELLIPSE: 1,\r\n\r\n /**\r\n * A Line Geometry object type.\r\n *\r\n * @name Phaser.Geom.LINE\r\n * @type {number}\r\n * @since 3.19.0\r\n */\r\n LINE: 2,\r\n\r\n /**\r\n * A Point Geometry object type.\r\n *\r\n * @name Phaser.Geom.POINT\r\n * @type {number}\r\n * @since 3.19.0\r\n */\r\n POINT: 3,\r\n\r\n /**\r\n * A Polygon Geometry object type.\r\n *\r\n * @name Phaser.Geom.POLYGON\r\n * @type {number}\r\n * @since 3.19.0\r\n */\r\n POLYGON: 4,\r\n\r\n /**\r\n * A Rectangle Geometry object type.\r\n *\r\n * @name Phaser.Geom.RECTANGLE\r\n * @type {number}\r\n * @since 3.19.0\r\n */\r\n RECTANGLE: 5,\r\n\r\n /**\r\n * A Triangle Geometry object type.\r\n *\r\n * @name Phaser.Geom.TRIANGLE\r\n * @type {number}\r\n * @since 3.19.0\r\n */\r\n TRIANGLE: 6\r\n\r\n};\r\n\r\nmodule.exports = GEOM_CONST;\r\n\n\n/***/ }),\n\n/***/ 78874:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculates the area of the Ellipse.\r\n *\r\n * @function Phaser.Geom.Ellipse.Area\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Ellipse} ellipse - The Ellipse to get the area of.\r\n *\r\n * @return {number} The area of the Ellipse.\r\n */\r\nvar Area = function (ellipse)\r\n{\r\n if (ellipse.isEmpty())\r\n {\r\n return 0;\r\n }\r\n\r\n // units squared\r\n return (ellipse.getMajorRadius() * ellipse.getMinorRadius() * Math.PI);\r\n};\r\n\r\nmodule.exports = Area;\r\n\n\n/***/ }),\n\n/***/ 92990:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Returns the circumference of the given Ellipse.\r\n *\r\n * @function Phaser.Geom.Ellipse.Circumference\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Ellipse} ellipse - The Ellipse to get the circumference of.\r\n *\r\n * @return {number} The circumference of th Ellipse.\r\n */\r\nvar Circumference = function (ellipse)\r\n{\r\n var rx = ellipse.width / 2;\r\n var ry = ellipse.height / 2;\r\n var h = Math.pow((rx - ry), 2) / Math.pow((rx + ry), 2);\r\n\r\n return (Math.PI * (rx + ry)) * (1 + ((3 * h) / (10 + Math.sqrt(4 - (3 * h)))));\r\n};\r\n\r\nmodule.exports = Circumference;\r\n\n\n/***/ }),\n\n/***/ 79522:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Returns a Point object containing the coordinates of a point on the circumference of the Ellipse based on the given angle.\r\n *\r\n * @function Phaser.Geom.Ellipse.CircumferencePoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Ellipse} ellipse - The Ellipse to get the circumference point on.\r\n * @param {number} angle - The angle from the center of the Ellipse to the circumference to return the point from. Given in radians.\r\n * @param {(Phaser.Geom.Point|object)} [out] - A Point, or point-like object, to store the results in. If not given a Point will be created.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} A Point object where the `x` and `y` properties are the point on the circumference.\r\n */\r\nvar CircumferencePoint = function (ellipse, angle, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n var halfWidth = ellipse.width / 2;\r\n var halfHeight = ellipse.height / 2;\r\n\r\n out.x = ellipse.x + halfWidth * Math.cos(angle);\r\n out.y = ellipse.y + halfHeight * Math.sin(angle);\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = CircumferencePoint;\r\n\n\n/***/ }),\n\n/***/ 58102:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Ellipse = __webpack_require__(8497);\r\n\r\n/**\r\n * Creates a new Ellipse instance based on the values contained in the given source.\r\n *\r\n * @function Phaser.Geom.Ellipse.Clone\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Ellipse} source - The Ellipse to be cloned. Can be an instance of an Ellipse or a ellipse-like object, with x, y, width and height properties.\r\n *\r\n * @return {Phaser.Geom.Ellipse} A clone of the source Ellipse.\r\n */\r\nvar Clone = function (source)\r\n{\r\n return new Ellipse(source.x, source.y, source.width, source.height);\r\n};\r\n\r\nmodule.exports = Clone;\r\n\n\n/***/ }),\n\n/***/ 81154:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Check to see if the Ellipse contains the given x / y coordinates.\r\n *\r\n * @function Phaser.Geom.Ellipse.Contains\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Ellipse} ellipse - The Ellipse to check.\r\n * @param {number} x - The x coordinate to check within the ellipse.\r\n * @param {number} y - The y coordinate to check within the ellipse.\r\n *\r\n * @return {boolean} True if the coordinates are within the ellipse, otherwise false.\r\n */\r\nvar Contains = function (ellipse, x, y)\r\n{\r\n if (ellipse.width <= 0 || ellipse.height <= 0)\r\n {\r\n return false;\r\n }\r\n\r\n // Normalize the coords to an ellipse with center 0,0 and a radius of 0.5\r\n var normx = ((x - ellipse.x) / ellipse.width);\r\n var normy = ((y - ellipse.y) / ellipse.height);\r\n\r\n normx *= normx;\r\n normy *= normy;\r\n\r\n return (normx + normy < 0.25);\r\n};\r\n\r\nmodule.exports = Contains;\r\n\n\n/***/ }),\n\n/***/ 46662:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Contains = __webpack_require__(81154);\r\n\r\n/**\r\n * Check to see if the Ellipse contains the given Point object.\r\n *\r\n * @function Phaser.Geom.Ellipse.ContainsPoint\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Ellipse} ellipse - The Ellipse to check.\r\n * @param {(Phaser.Geom.Point|object)} point - The Point object to check if it's within the Circle or not.\r\n *\r\n * @return {boolean} True if the Point coordinates are within the circle, otherwise false.\r\n */\r\nvar ContainsPoint = function (ellipse, point)\r\n{\r\n return Contains(ellipse, point.x, point.y);\r\n};\r\n\r\nmodule.exports = ContainsPoint;\r\n\n\n/***/ }),\n\n/***/ 1632:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Contains = __webpack_require__(81154);\r\n\r\n/**\r\n * Check to see if the Ellipse contains all four points of the given Rectangle object.\r\n *\r\n * @function Phaser.Geom.Ellipse.ContainsRect\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Ellipse} ellipse - The Ellipse to check.\r\n * @param {(Phaser.Geom.Rectangle|object)} rect - The Rectangle object to check if it's within the Ellipse or not.\r\n *\r\n * @return {boolean} True if all of the Rectangle coordinates are within the ellipse, otherwise false.\r\n */\r\nvar ContainsRect = function (ellipse, rect)\r\n{\r\n return (\r\n Contains(ellipse, rect.x, rect.y) &&\r\n Contains(ellipse, rect.right, rect.y) &&\r\n Contains(ellipse, rect.x, rect.bottom) &&\r\n Contains(ellipse, rect.right, rect.bottom)\r\n );\r\n};\r\n\r\nmodule.exports = ContainsRect;\r\n\n\n/***/ }),\n\n/***/ 65534:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Copies the `x`, `y`, `width` and `height` properties from the `source` Ellipse\r\n * into the given `dest` Ellipse, then returns the `dest` Ellipse.\r\n *\r\n * @function Phaser.Geom.Ellipse.CopyFrom\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Ellipse} O - [dest,$return]\r\n *\r\n * @param {Phaser.Geom.Ellipse} source - The source Ellipse to copy the values from.\r\n * @param {Phaser.Geom.Ellipse} dest - The destination Ellipse to copy the values to.\r\n *\r\n * @return {Phaser.Geom.Ellipse} The destination Ellipse.\r\n */\r\nvar CopyFrom = function (source, dest)\r\n{\r\n return dest.setTo(source.x, source.y, source.width, source.height);\r\n};\r\n\r\nmodule.exports = CopyFrom;\r\n\n\n/***/ }),\n\n/***/ 8497:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Contains = __webpack_require__(81154);\r\nvar GetPoint = __webpack_require__(90549);\r\nvar GetPoints = __webpack_require__(48320);\r\nvar GEOM_CONST = __webpack_require__(23777);\r\nvar Random = __webpack_require__(24820);\r\n\r\n/**\r\n * @classdesc\r\n * An Ellipse object.\r\n *\r\n * This is a geometry object, containing numerical values and related methods to inspect and modify them.\r\n * It is not a Game Object, in that you cannot add it to the display list, and it has no texture.\r\n * To render an Ellipse you should look at the capabilities of the Graphics class.\r\n *\r\n * @class Ellipse\r\n * @memberof Phaser.Geom\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=0] - The x position of the center of the ellipse.\r\n * @param {number} [y=0] - The y position of the center of the ellipse.\r\n * @param {number} [width=0] - The width of the ellipse.\r\n * @param {number} [height=0] - The height of the ellipse.\r\n */\r\nvar Ellipse = new Class({\r\n\r\n initialize:\r\n\r\n function Ellipse (x, y, width, height)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (width === undefined) { width = 0; }\r\n if (height === undefined) { height = 0; }\r\n\r\n /**\r\n * The geometry constant type of this object: `GEOM_CONST.ELLIPSE`.\r\n * Used for fast type comparisons.\r\n *\r\n * @name Phaser.Geom.Ellipse#type\r\n * @type {number}\r\n * @readonly\r\n * @since 3.19.0\r\n */\r\n this.type = GEOM_CONST.ELLIPSE;\r\n\r\n /**\r\n * The x position of the center of the ellipse.\r\n *\r\n * @name Phaser.Geom.Ellipse#x\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.x = x;\r\n\r\n /**\r\n * The y position of the center of the ellipse.\r\n *\r\n * @name Phaser.Geom.Ellipse#y\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.y = y;\r\n\r\n /**\r\n * The width of the ellipse.\r\n *\r\n * @name Phaser.Geom.Ellipse#width\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.width = width;\r\n\r\n /**\r\n * The height of the ellipse.\r\n *\r\n * @name Phaser.Geom.Ellipse#height\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.height = height;\r\n },\r\n\r\n /**\r\n * Check to see if the Ellipse contains the given x / y coordinates.\r\n *\r\n * @method Phaser.Geom.Ellipse#contains\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x coordinate to check within the ellipse.\r\n * @param {number} y - The y coordinate to check within the ellipse.\r\n *\r\n * @return {boolean} True if the coordinates are within the ellipse, otherwise false.\r\n */\r\n contains: function (x, y)\r\n {\r\n return Contains(this, x, y);\r\n },\r\n\r\n /**\r\n * Returns a Point object containing the coordinates of a point on the circumference of the Ellipse\r\n * based on the given angle normalized to the range 0 to 1. I.e. a value of 0.5 will give the point\r\n * at 180 degrees around the circle.\r\n *\r\n * @method Phaser.Geom.Ellipse#getPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {number} position - A value between 0 and 1, where 0 equals 0 degrees, 0.5 equals 180 degrees and 1 equals 360 around the ellipse.\r\n * @param {(Phaser.Geom.Point|object)} [out] - An object to store the return values in. If not given a Point object will be created.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} A Point, or point-like object, containing the coordinates of the point around the ellipse.\r\n */\r\n getPoint: function (position, point)\r\n {\r\n return GetPoint(this, position, point);\r\n },\r\n\r\n /**\r\n * Returns an array of Point objects containing the coordinates of the points around the circumference of the Ellipse,\r\n * based on the given quantity or stepRate values.\r\n *\r\n * @method Phaser.Geom.Ellipse#getPoints\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point[]} O - [output,$return]\r\n *\r\n * @param {number} quantity - The amount of points to return. If a falsey value the quantity will be derived from the `stepRate` instead.\r\n * @param {number} [stepRate] - Sets the quantity by getting the circumference of the ellipse and dividing it by the stepRate.\r\n * @param {(array|Phaser.Geom.Point[])} [output] - An array to insert the points in to. If not provided a new array will be created.\r\n *\r\n * @return {(array|Phaser.Geom.Point[])} An array of Point objects pertaining to the points around the circumference of the ellipse.\r\n */\r\n getPoints: function (quantity, stepRate, output)\r\n {\r\n return GetPoints(this, quantity, stepRate, output);\r\n },\r\n\r\n /**\r\n * Returns a uniformly distributed random point from anywhere within the given Ellipse.\r\n *\r\n * @method Phaser.Geom.Ellipse#getRandomPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [point,$return]\r\n *\r\n * @param {(Phaser.Geom.Point|object)} [point] - A Point or point-like object to set the random `x` and `y` values in.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} A Point object with the random values set in the `x` and `y` properties.\r\n */\r\n getRandomPoint: function (point)\r\n {\r\n return Random(this, point);\r\n },\r\n\r\n /**\r\n * Sets the x, y, width and height of this ellipse.\r\n *\r\n * @method Phaser.Geom.Ellipse#setTo\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x position of the center of the ellipse.\r\n * @param {number} y - The y position of the center of the ellipse.\r\n * @param {number} width - The width of the ellipse.\r\n * @param {number} height - The height of the ellipse.\r\n *\r\n * @return {this} This Ellipse object.\r\n */\r\n setTo: function (x, y, width, height)\r\n {\r\n this.x = x;\r\n this.y = y;\r\n this.width = width;\r\n this.height = height;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets this Ellipse to be empty with a width and height of zero.\r\n * Does not change its position.\r\n *\r\n * @method Phaser.Geom.Ellipse#setEmpty\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Ellipse object.\r\n */\r\n setEmpty: function ()\r\n {\r\n this.width = 0;\r\n this.height = 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the position of this Ellipse.\r\n *\r\n * @method Phaser.Geom.Ellipse#setPosition\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x position of the center of the ellipse.\r\n * @param {number} y - The y position of the center of the ellipse.\r\n *\r\n * @return {this} This Ellipse object.\r\n */\r\n setPosition: function (x, y)\r\n {\r\n if (y === undefined) { y = x; }\r\n\r\n this.x = x;\r\n this.y = y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the size of this Ellipse.\r\n * Does not change its position.\r\n *\r\n * @method Phaser.Geom.Ellipse#setSize\r\n * @since 3.0.0\r\n *\r\n * @param {number} width - The width of the ellipse.\r\n * @param {number} [height=width] - The height of the ellipse.\r\n *\r\n * @return {this} This Ellipse object.\r\n */\r\n setSize: function (width, height)\r\n {\r\n if (height === undefined) { height = width; }\r\n\r\n this.width = width;\r\n this.height = height;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Checks to see if the Ellipse is empty: has a width or height equal to zero.\r\n *\r\n * @method Phaser.Geom.Ellipse#isEmpty\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} True if the Ellipse is empty, otherwise false.\r\n */\r\n isEmpty: function ()\r\n {\r\n return (this.width <= 0 || this.height <= 0);\r\n },\r\n\r\n /**\r\n * Returns the minor radius of the ellipse. Also known as the Semi Minor Axis.\r\n *\r\n * @method Phaser.Geom.Ellipse#getMinorRadius\r\n * @since 3.0.0\r\n *\r\n * @return {number} The minor radius.\r\n */\r\n getMinorRadius: function ()\r\n {\r\n return Math.min(this.width, this.height) / 2;\r\n },\r\n\r\n /**\r\n * Returns the major radius of the ellipse. Also known as the Semi Major Axis.\r\n *\r\n * @method Phaser.Geom.Ellipse#getMajorRadius\r\n * @since 3.0.0\r\n *\r\n * @return {number} The major radius.\r\n */\r\n getMajorRadius: function ()\r\n {\r\n return Math.max(this.width, this.height) / 2;\r\n },\r\n\r\n /**\r\n * The left position of the Ellipse.\r\n *\r\n * @name Phaser.Geom.Ellipse#left\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n left: {\r\n\r\n get: function ()\r\n {\r\n return this.x - (this.width / 2);\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.x = value + (this.width / 2);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The right position of the Ellipse.\r\n *\r\n * @name Phaser.Geom.Ellipse#right\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n right: {\r\n\r\n get: function ()\r\n {\r\n return this.x + (this.width / 2);\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.x = value - (this.width / 2);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The top position of the Ellipse.\r\n *\r\n * @name Phaser.Geom.Ellipse#top\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n top: {\r\n\r\n get: function ()\r\n {\r\n return this.y - (this.height / 2);\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.y = value + (this.height / 2);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The bottom position of the Ellipse.\r\n *\r\n * @name Phaser.Geom.Ellipse#bottom\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n bottom: {\r\n\r\n get: function ()\r\n {\r\n return this.y + (this.height / 2);\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.y = value - (this.height / 2);\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Ellipse;\r\n\n\n/***/ }),\n\n/***/ 36146:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Compares the `x`, `y`, `width` and `height` properties of the two given Ellipses.\r\n * Returns `true` if they all match, otherwise returns `false`.\r\n *\r\n * @function Phaser.Geom.Ellipse.Equals\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Ellipse} ellipse - The first Ellipse to compare.\r\n * @param {Phaser.Geom.Ellipse} toCompare - The second Ellipse to compare.\r\n *\r\n * @return {boolean} `true` if the two Ellipse equal each other, otherwise `false`.\r\n */\r\nvar Equals = function (ellipse, toCompare)\r\n{\r\n return (\r\n ellipse.x === toCompare.x &&\r\n ellipse.y === toCompare.y &&\r\n ellipse.width === toCompare.width &&\r\n ellipse.height === toCompare.height\r\n );\r\n};\r\n\r\nmodule.exports = Equals;\r\n\n\n/***/ }),\n\n/***/ 23694:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Rectangle = __webpack_require__(87841);\r\n\r\n/**\r\n * Returns the bounds of the Ellipse object.\r\n *\r\n * @function Phaser.Geom.Ellipse.GetBounds\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Ellipse} ellipse - The Ellipse to get the bounds from.\r\n * @param {(Phaser.Geom.Rectangle|object)} [out] - A Rectangle, or rectangle-like object, to store the ellipse bounds in. If not given a new Rectangle will be created.\r\n *\r\n * @return {(Phaser.Geom.Rectangle|object)} The Rectangle object containing the Ellipse bounds.\r\n */\r\nvar GetBounds = function (ellipse, out)\r\n{\r\n if (out === undefined) { out = new Rectangle(); }\r\n\r\n out.x = ellipse.left;\r\n out.y = ellipse.top;\r\n out.width = ellipse.width;\r\n out.height = ellipse.height;\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetBounds;\r\n\n\n/***/ }),\n\n/***/ 90549:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CircumferencePoint = __webpack_require__(79522);\r\nvar FromPercent = __webpack_require__(62945);\r\nvar MATH_CONST = __webpack_require__(36383);\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Returns a Point object containing the coordinates of a point on the circumference of the Ellipse\r\n * based on the given angle normalized to the range 0 to 1. I.e. a value of 0.5 will give the point\r\n * at 180 degrees around the circle.\r\n *\r\n * @function Phaser.Geom.Ellipse.GetPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Ellipse} ellipse - The Ellipse to get the circumference point on.\r\n * @param {number} position - A value between 0 and 1, where 0 equals 0 degrees, 0.5 equals 180 degrees and 1 equals 360 around the ellipse.\r\n * @param {(Phaser.Geom.Point|object)} [out] - An object to store the return values in. If not given a Point object will be created.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} A Point, or point-like object, containing the coordinates of the point around the ellipse.\r\n */\r\nvar GetPoint = function (ellipse, position, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n var angle = FromPercent(position, 0, MATH_CONST.PI2);\r\n\r\n return CircumferencePoint(ellipse, angle, out);\r\n};\r\n\r\nmodule.exports = GetPoint;\r\n\n\n/***/ }),\n\n/***/ 48320:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Circumference = __webpack_require__(92990);\r\nvar CircumferencePoint = __webpack_require__(79522);\r\nvar FromPercent = __webpack_require__(62945);\r\nvar MATH_CONST = __webpack_require__(36383);\r\n\r\n/**\r\n * Returns an array of Point objects containing the coordinates of the points around the circumference of the Ellipse,\r\n * based on the given quantity or stepRate values.\r\n *\r\n * @function Phaser.Geom.Ellipse.GetPoints\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point[]} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Ellipse} ellipse - The Ellipse to get the points from.\r\n * @param {number} quantity - The amount of points to return. If a falsey value the quantity will be derived from the `stepRate` instead.\r\n * @param {number} [stepRate] - Sets the quantity by getting the circumference of the ellipse and dividing it by the stepRate.\r\n * @param {(array|Phaser.Geom.Point[])} [out] - An array to insert the points in to. If not provided a new array will be created.\r\n *\r\n * @return {(array|Phaser.Geom.Point[])} An array of Point objects pertaining to the points around the circumference of the ellipse.\r\n */\r\nvar GetPoints = function (ellipse, quantity, stepRate, out)\r\n{\r\n if (out === undefined) { out = []; }\r\n\r\n // If quantity is a falsey value (false, null, 0, undefined, etc) then we calculate it based on the stepRate instead.\r\n if (!quantity && stepRate > 0)\r\n {\r\n quantity = Circumference(ellipse) / stepRate;\r\n }\r\n\r\n for (var i = 0; i < quantity; i++)\r\n {\r\n var angle = FromPercent(i / quantity, 0, MATH_CONST.PI2);\r\n\r\n out.push(CircumferencePoint(ellipse, angle));\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetPoints;\r\n\n\n/***/ }),\n\n/***/ 73424:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Offsets the Ellipse by the values given.\r\n *\r\n * @function Phaser.Geom.Ellipse.Offset\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Ellipse} O - [ellipse,$return]\r\n *\r\n * @param {Phaser.Geom.Ellipse} ellipse - The Ellipse to be offset (translated.)\r\n * @param {number} x - The amount to horizontally offset the Ellipse by.\r\n * @param {number} y - The amount to vertically offset the Ellipse by.\r\n *\r\n * @return {Phaser.Geom.Ellipse} The Ellipse that was offset.\r\n */\r\nvar Offset = function (ellipse, x, y)\r\n{\r\n ellipse.x += x;\r\n ellipse.y += y;\r\n\r\n return ellipse;\r\n};\r\n\r\nmodule.exports = Offset;\r\n\n\n/***/ }),\n\n/***/ 44808:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Offsets the Ellipse by the values given in the `x` and `y` properties of the Point object.\r\n *\r\n * @function Phaser.Geom.Ellipse.OffsetPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Ellipse} O - [ellipse,$return]\r\n *\r\n * @param {Phaser.Geom.Ellipse} ellipse - The Ellipse to be offset (translated.)\r\n * @param {(Phaser.Geom.Point|object)} point - The Point object containing the values to offset the Ellipse by.\r\n *\r\n * @return {Phaser.Geom.Ellipse} The Ellipse that was offset.\r\n */\r\nvar OffsetPoint = function (ellipse, point)\r\n{\r\n ellipse.x += point.x;\r\n ellipse.y += point.y;\r\n\r\n return ellipse;\r\n};\r\n\r\nmodule.exports = OffsetPoint;\r\n\n\n/***/ }),\n\n/***/ 24820:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Returns a uniformly distributed random point from anywhere within the given Ellipse.\r\n *\r\n * @function Phaser.Geom.Ellipse.Random\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Ellipse} ellipse - The Ellipse to get a random point from.\r\n * @param {(Phaser.Geom.Point|object)} [out] - A Point or point-like object to set the random `x` and `y` values in.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} A Point object with the random values set in the `x` and `y` properties.\r\n */\r\nvar Random = function (ellipse, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n var p = Math.random() * Math.PI * 2;\r\n var s = Math.sqrt(Math.random());\r\n\r\n out.x = ellipse.x + ((s * Math.cos(p)) * ellipse.width / 2);\r\n out.y = ellipse.y + ((s * Math.sin(p)) * ellipse.height / 2);\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = Random;\r\n\n\n/***/ }),\n\n/***/ 49203:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Ellipse = __webpack_require__(8497);\r\n\r\nEllipse.Area = __webpack_require__(78874);\r\nEllipse.Circumference = __webpack_require__(92990);\r\nEllipse.CircumferencePoint = __webpack_require__(79522);\r\nEllipse.Clone = __webpack_require__(58102);\r\nEllipse.Contains = __webpack_require__(81154);\r\nEllipse.ContainsPoint = __webpack_require__(46662);\r\nEllipse.ContainsRect = __webpack_require__(1632);\r\nEllipse.CopyFrom = __webpack_require__(65534);\r\nEllipse.Equals = __webpack_require__(36146);\r\nEllipse.GetBounds = __webpack_require__(23694);\r\nEllipse.GetPoint = __webpack_require__(90549);\r\nEllipse.GetPoints = __webpack_require__(48320);\r\nEllipse.Offset = __webpack_require__(73424);\r\nEllipse.OffsetPoint = __webpack_require__(44808);\r\nEllipse.Random = __webpack_require__(24820);\r\n\r\nmodule.exports = Ellipse;\r\n\n\n/***/ }),\n\n/***/ 55738:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(23777);\r\nvar Extend = __webpack_require__(79291);\r\n\r\n/**\r\n * @namespace Phaser.Geom\r\n */\r\n\r\nvar Geom = {\r\n\r\n Circle: __webpack_require__(88911),\r\n Ellipse: __webpack_require__(49203),\r\n Intersects: __webpack_require__(91865),\r\n Line: __webpack_require__(2529),\r\n Mesh: __webpack_require__(73090),\r\n Point: __webpack_require__(43711),\r\n Polygon: __webpack_require__(58423),\r\n Rectangle: __webpack_require__(93232),\r\n Triangle: __webpack_require__(84435)\r\n\r\n};\r\n\r\n// Merge in the consts\r\nGeom = Extend(false, Geom, CONST);\r\n\r\nmodule.exports = Geom;\r\n\n\n/***/ }),\n\n/***/ 2044:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar DistanceBetween = __webpack_require__(20339);\r\n\r\n/**\r\n * Checks if two Circles intersect.\r\n *\r\n * @function Phaser.Geom.Intersects.CircleToCircle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Circle} circleA - The first Circle to check for intersection.\r\n * @param {Phaser.Geom.Circle} circleB - The second Circle to check for intersection.\r\n *\r\n * @return {boolean} `true` if the two Circles intersect, otherwise `false`.\r\n */\r\nvar CircleToCircle = function (circleA, circleB)\r\n{\r\n return (DistanceBetween(circleA.x, circleA.y, circleB.x, circleB.y) <= (circleA.radius + circleB.radius));\r\n};\r\n\r\nmodule.exports = CircleToCircle;\r\n\n\n/***/ }),\n\n/***/ 81491:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Checks for intersection between a circle and a rectangle.\r\n *\r\n * @function Phaser.Geom.Intersects.CircleToRectangle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Circle} circle - The circle to be checked.\r\n * @param {Phaser.Geom.Rectangle} rect - The rectangle to be checked.\r\n *\r\n * @return {boolean} `true` if the two objects intersect, otherwise `false`.\r\n */\r\nvar CircleToRectangle = function (circle, rect)\r\n{\r\n var halfWidth = rect.width / 2;\r\n var halfHeight = rect.height / 2;\r\n\r\n var cx = Math.abs(circle.x - rect.x - halfWidth);\r\n var cy = Math.abs(circle.y - rect.y - halfHeight);\r\n var xDist = halfWidth + circle.radius;\r\n var yDist = halfHeight + circle.radius;\r\n\r\n if (cx > xDist || cy > yDist)\r\n {\r\n return false;\r\n }\r\n else if (cx <= halfWidth || cy <= halfHeight)\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n var xCornerDist = cx - halfWidth;\r\n var yCornerDist = cy - halfHeight;\r\n var xCornerDistSq = xCornerDist * xCornerDist;\r\n var yCornerDistSq = yCornerDist * yCornerDist;\r\n var maxCornerDistSq = circle.radius * circle.radius;\r\n\r\n return (xCornerDistSq + yCornerDistSq <= maxCornerDistSq);\r\n }\r\n};\r\n\r\nmodule.exports = CircleToRectangle;\r\n\n\n/***/ }),\n\n/***/ 63376:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Florian Vazelle\r\n * @author Geoffrey Glaive\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\nvar CircleToCircle = __webpack_require__(2044);\r\n\r\n/**\r\n * Checks if two Circles intersect and returns the intersection points as a Point object array.\r\n *\r\n * @function Phaser.Geom.Intersects.GetCircleToCircle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Circle} circleA - The first Circle to check for intersection.\r\n * @param {Phaser.Geom.Circle} circleB - The second Circle to check for intersection.\r\n * @param {array} [out] - An optional array in which to store the points of intersection.\r\n *\r\n * @return {array} An array with the points of intersection if objects intersect, otherwise an empty array.\r\n */\r\nvar GetCircleToCircle = function (circleA, circleB, out)\r\n{\r\n if (out === undefined) { out = []; }\r\n\r\n if (CircleToCircle(circleA, circleB))\r\n {\r\n var x0 = circleA.x;\r\n var y0 = circleA.y;\r\n var r0 = circleA.radius;\r\n\r\n var x1 = circleB.x;\r\n var y1 = circleB.y;\r\n var r1 = circleB.radius;\r\n\r\n var coefficientA, coefficientB, coefficientC, lambda, x;\r\n\r\n if (y0 === y1)\r\n {\r\n x = ((r1 * r1) - (r0 * r0) - (x1 * x1) + (x0 * x0)) / (2 * (x0 - x1));\r\n\r\n coefficientA = 1;\r\n coefficientB = -2 * y1;\r\n coefficientC = (x1 * x1) + (x * x) - (2 * x1 * x) + (y1 * y1) - (r1 * r1);\r\n\r\n lambda = (coefficientB * coefficientB) - (4 * coefficientA * coefficientC);\r\n\r\n if (lambda === 0)\r\n {\r\n out.push(new Point(x, (-coefficientB / (2 * coefficientA))));\r\n }\r\n else if (lambda > 0)\r\n {\r\n out.push(new Point(x, (-coefficientB + Math.sqrt(lambda)) / (2 * coefficientA)));\r\n out.push(new Point(x, (-coefficientB - Math.sqrt(lambda)) / (2 * coefficientA)));\r\n }\r\n }\r\n else\r\n {\r\n var v1 = (x0 - x1) / (y0 - y1);\r\n var n = (r1 * r1 - r0 * r0 - x1 * x1 + x0 * x0 - y1 * y1 + y0 * y0) / (2 * (y0 - y1));\r\n\r\n coefficientA = (v1 * v1) + 1;\r\n coefficientB = (2 * y0 * v1) - (2 * n * v1) - (2 * x0);\r\n coefficientC = (x0 * x0) + (y0 * y0) + (n * n) - (r0 * r0) - (2 * y0 * n);\r\n\r\n lambda = (coefficientB * coefficientB) - (4 * coefficientA * coefficientC);\r\n\r\n if (lambda === 0)\r\n {\r\n x = (-coefficientB / (2 * coefficientA));\r\n out.push(new Point(x, (n - (x * v1))));\r\n }\r\n else if (lambda > 0)\r\n {\r\n x = (-coefficientB + Math.sqrt(lambda)) / (2 * coefficientA);\r\n out.push(new Point(x, (n - (x * v1))));\r\n x = (-coefficientB - Math.sqrt(lambda)) / (2 * coefficientA);\r\n out.push(new Point(x, (n - (x * v1))));\r\n }\r\n }\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetCircleToCircle;\r\n\n\n/***/ }),\n\n/***/ 97439:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Florian Vazelle\r\n * @author Geoffrey Glaive\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetLineToCircle = __webpack_require__(4042);\r\nvar CircleToRectangle = __webpack_require__(81491);\r\n\r\n/**\r\n * Checks for intersection between a circle and a rectangle,\r\n * and returns the intersection points as a Point object array.\r\n *\r\n * @function Phaser.Geom.Intersects.GetCircleToRectangle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Circle} circle - The circle to be checked.\r\n * @param {Phaser.Geom.Rectangle} rect - The rectangle to be checked.\r\n * @param {array} [out] - An optional array in which to store the points of intersection.\r\n *\r\n * @return {array} An array with the points of intersection if objects intersect, otherwise an empty array.\r\n */\r\nvar GetCircleToRectangle = function (circle, rect, out)\r\n{\r\n if (out === undefined) { out = []; }\r\n\r\n if (CircleToRectangle(circle, rect))\r\n {\r\n var lineA = rect.getLineA();\r\n var lineB = rect.getLineB();\r\n var lineC = rect.getLineC();\r\n var lineD = rect.getLineD();\r\n\r\n GetLineToCircle(lineA, circle, out);\r\n GetLineToCircle(lineB, circle, out);\r\n GetLineToCircle(lineC, circle, out);\r\n GetLineToCircle(lineD, circle, out);\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetCircleToRectangle;\r\n\n\n/***/ }),\n\n/***/ 4042:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Florian Vazelle\r\n * @author Geoffrey Glaive\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\nvar LineToCircle = __webpack_require__(80462);\r\n\r\n/**\r\n * Checks for intersection between the line segment and circle,\r\n * and returns the intersection points as a Point object array.\r\n *\r\n * @function Phaser.Geom.Intersects.GetLineToCircle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Line} line - The line segment to check.\r\n * @param {Phaser.Geom.Circle} circle - The circle to check against the line.\r\n * @param {array} [out] - An optional array in which to store the points of intersection.\r\n *\r\n * @return {array} An array with the points of intersection if objects intersect, otherwise an empty array.\r\n */\r\nvar GetLineToCircle = function (line, circle, out)\r\n{\r\n if (out === undefined) { out = []; }\r\n\r\n if (LineToCircle(line, circle))\r\n {\r\n var lx1 = line.x1;\r\n var ly1 = line.y1;\r\n\r\n var lx2 = line.x2;\r\n var ly2 = line.y2;\r\n\r\n var cx = circle.x;\r\n var cy = circle.y;\r\n var cr = circle.radius;\r\n\r\n var lDirX = lx2 - lx1;\r\n var lDirY = ly2 - ly1;\r\n var oDirX = lx1 - cx;\r\n var oDirY = ly1 - cy;\r\n\r\n var coefficientA = lDirX * lDirX + lDirY * lDirY;\r\n var coefficientB = 2 * (lDirX * oDirX + lDirY * oDirY);\r\n var coefficientC = oDirX * oDirX + oDirY * oDirY - cr * cr;\r\n\r\n var lambda = (coefficientB * coefficientB) - (4 * coefficientA * coefficientC);\r\n\r\n var x, y;\r\n\r\n if (lambda === 0)\r\n {\r\n var root = -coefficientB / (2 * coefficientA);\r\n x = lx1 + root * lDirX;\r\n y = ly1 + root * lDirY;\r\n if (root >= 0 && root <= 1)\r\n {\r\n out.push(new Point(x, y));\r\n }\r\n }\r\n else if (lambda > 0)\r\n {\r\n var root1 = (-coefficientB - Math.sqrt(lambda)) / (2 * coefficientA);\r\n x = lx1 + root1 * lDirX;\r\n y = ly1 + root1 * lDirY;\r\n if (root1 >= 0 && root1 <= 1)\r\n {\r\n out.push(new Point(x, y));\r\n }\r\n\r\n var root2 = (-coefficientB + Math.sqrt(lambda)) / (2 * coefficientA);\r\n x = lx1 + root2 * lDirX;\r\n y = ly1 + root2 * lDirY;\r\n if (root2 >= 0 && root2 <= 1)\r\n {\r\n out.push(new Point(x, y));\r\n }\r\n }\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetLineToCircle;\r\n\n\n/***/ }),\n\n/***/ 36100:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Vector3 = __webpack_require__(25836);\r\n\r\n/**\r\n * Checks for intersection between the two line segments, or a ray and a line segment,\r\n * and returns the intersection point as a Vector3, or `null` if the lines are parallel, or do not intersect.\r\n *\r\n * The `z` property of the Vector3 contains the intersection distance, which can be used to find\r\n * the closest intersecting point from a group of line segments.\r\n *\r\n * @function Phaser.Geom.Intersects.GetLineToLine\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Geom.Line} line1 - The first line segment, or a ray, to check.\r\n * @param {Phaser.Geom.Line} line2 - The second line segment to check.\r\n * @param {boolean} [isRay=false] - Is `line1` a ray or a line segment?\r\n * @param {Phaser.Math.Vector3} [out] - A Vector3 to store the intersection results in.\r\n *\r\n * @return {Phaser.Math.Vector3} A Vector3 containing the intersection results, or `null`.\r\n */\r\nvar GetLineToLine = function (line1, line2, isRay, out)\r\n{\r\n if (isRay === undefined) { isRay = false; }\r\n\r\n var x1 = line1.x1;\r\n var y1 = line1.y1;\r\n var x2 = line1.x2;\r\n var y2 = line1.y2;\r\n\r\n var x3 = line2.x1;\r\n var y3 = line2.y1;\r\n var x4 = line2.x2;\r\n var y4 = line2.y2;\r\n\r\n var dx1 = x2 - x1;\r\n var dy1 = y2 - y1;\r\n\r\n var dx2 = x4 - x3;\r\n var dy2 = y4 - y3;\r\n\r\n var denom = (dx1 * dy2 - dy1 * dx2);\r\n\r\n // Add co-linear check\r\n\r\n // Make sure there is not a division by zero - this also indicates that the lines are parallel.\r\n // If numA and numB were both equal to zero the lines would be on top of each other (coincidental).\r\n // This check is not done because it is not necessary for this implementation (the parallel check accounts for this).\r\n\r\n if (denom === 0)\r\n {\r\n return null;\r\n }\r\n\r\n var t;\r\n var u;\r\n var s;\r\n\r\n if (isRay)\r\n {\r\n t = (dx1 * (y3 - y1) + dy1 * (x1 - x3)) / (dx2 * dy1 - dy2 * dx1);\r\n \r\n if (dx1 !== 0)\r\n {\r\n u = (x3 + dx2 * t - x1) / dx1;\r\n }\r\n else if (dy1 !== 0)\r\n {\r\n u = (y3 + dy2 * t - y1) / dy1;\r\n }\r\n else\r\n {\r\n return null; // degenerate line segment\r\n }\r\n\r\n // Intersects?\r\n if (u < 0 || t < 0 || t > 1)\r\n {\r\n return null;\r\n }\r\n\r\n s = u;\r\n }\r\n else\r\n {\r\n t = ((x3 - x1) * dy2 - (y3 - y1) * dx2) / denom;\r\n u = ((y1 - y3) * dx1 - (x1 - x3) * dy1) / denom;\r\n\r\n // Intersects?\r\n if (t < 0 || t > 1 || u < 0 || u > 1)\r\n {\r\n return null;\r\n }\r\n\r\n s = t;\r\n }\r\n\r\n if (out === undefined)\r\n {\r\n out = new Vector3();\r\n }\r\n\r\n return out.set(\r\n x1 + dx1 * s,\r\n y1 + dy1 * s,\r\n s\r\n );\r\n};\r\n\r\nmodule.exports = GetLineToLine;\r\n\n\n/***/ }),\n\n/***/ 3073:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetLineToLine = __webpack_require__(36100);\r\nvar Line = __webpack_require__(23031);\r\nvar Vector3 = __webpack_require__(25836);\r\n\r\n// Temp calculation segment\r\nvar segment = new Line();\r\n\r\n// Temp vec3\r\nvar tempIntersect = new Vector3();\r\n\r\n/**\r\n * Checks for the closest point of intersection between a line segment and an array of points, where each pair\r\n * of points are converted to line segments for the intersection tests.\r\n *\r\n * If no intersection is found, this function returns `null`.\r\n *\r\n * If intersection was found, a Vector3 is returned with the following properties:\r\n *\r\n * The `x` and `y` components contain the point of the intersection.\r\n * The `z` component contains the closest distance.\r\n *\r\n * @function Phaser.Geom.Intersects.GetLineToPoints\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Geom.Line} line - The line segment, or ray, to check. If a ray, set the `isRay` parameter to `true`.\r\n * @param {Phaser.Math.Vector2[] | Phaser.Geom.Point[]} points - An array of points to check.\r\n * @param {boolean} [isRay=false] - Is `line` a ray or a line segment?\r\n * @param {Phaser.Math.Vector3} [out] - A Vector3 to store the intersection results in.\r\n *\r\n * @return {Phaser.Math.Vector3} A Vector3 containing the intersection results, or `null`.\r\n */\r\nvar GetLineToPoints = function (line, points, isRay, out)\r\n{\r\n if (isRay === undefined) { isRay = false; }\r\n if (out === undefined) { out = new Vector3(); }\r\n\r\n var closestIntersect = false;\r\n\r\n // Reset our vec3s\r\n out.set();\r\n tempIntersect.set();\r\n\r\n var prev = points[points.length - 1];\r\n\r\n for (var i = 0; i < points.length; i++)\r\n {\r\n var current = points[i];\r\n\r\n segment.setTo(prev.x, prev.y, current.x, current.y);\r\n\r\n prev = current;\r\n\r\n if (GetLineToLine(line, segment, isRay, tempIntersect))\r\n {\r\n if (!closestIntersect || tempIntersect.z < out.z)\r\n {\r\n out.copy(tempIntersect);\r\n\r\n closestIntersect = true;\r\n }\r\n }\r\n }\r\n\r\n return (closestIntersect) ? out : null;\r\n};\r\n\r\nmodule.exports = GetLineToPoints;\r\n\n\n/***/ }),\n\n/***/ 56362:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Vector3 = __webpack_require__(25836);\r\nvar Vector4 = __webpack_require__(61369);\r\nvar GetLineToPoints = __webpack_require__(3073);\r\n\r\n// Temp vec3\r\nvar tempIntersect = new Vector3();\r\n\r\n/**\r\n * Checks for the closest point of intersection between a line segment and an array of polygons.\r\n *\r\n * If no intersection is found, this function returns `null`.\r\n *\r\n * If intersection was found, a Vector4 is returned with the following properties:\r\n *\r\n * The `x` and `y` components contain the point of the intersection.\r\n * The `z` component contains the closest distance.\r\n * The `w` component contains the index of the polygon, in the given array, that triggered the intersection.\r\n *\r\n * @function Phaser.Geom.Intersects.GetLineToPolygon\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Geom.Line} line - The line segment, or ray, to check. If a ray, set the `isRay` parameter to `true`.\r\n * @param {Phaser.Geom.Polygon | Phaser.Geom.Polygon[]} polygons - A single polygon, or array of polygons, to check.\r\n * @param {boolean} [isRay=false] - Is `line` a ray or a line segment?\r\n * @param {Phaser.Math.Vector4} [out] - A Vector4 to store the intersection results in.\r\n *\r\n * @return {Phaser.Math.Vector4} A Vector4 containing the intersection results, or `null`.\r\n */\r\nvar GetLineToPolygon = function (line, polygons, isRay, out)\r\n{\r\n if (out === undefined) { out = new Vector4(); }\r\n\r\n if (!Array.isArray(polygons))\r\n {\r\n polygons = [ polygons ];\r\n }\r\n\r\n var closestIntersect = false;\r\n\r\n // Reset our vec4s\r\n out.set();\r\n tempIntersect.set();\r\n\r\n for (var i = 0; i < polygons.length; i++)\r\n {\r\n if (GetLineToPoints(line, polygons[i].points, isRay, tempIntersect))\r\n {\r\n if (!closestIntersect || tempIntersect.z < out.z)\r\n {\r\n out.set(tempIntersect.x, tempIntersect.y, tempIntersect.z, i);\r\n\r\n closestIntersect = true;\r\n }\r\n }\r\n }\r\n\r\n return (closestIntersect) ? out : null;\r\n};\r\n\r\nmodule.exports = GetLineToPolygon;\r\n\n\n/***/ }),\n\n/***/ 60646:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Florian Vazelle\r\n * @author Geoffrey Glaive\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\nvar LineToLine = __webpack_require__(76112);\r\nvar LineToRectangle = __webpack_require__(92773);\r\n\r\n/**\r\n * Checks for intersection between the Line and a Rectangle shape,\r\n * and returns the intersection points as a Point object array.\r\n *\r\n * @function Phaser.Geom.Intersects.GetLineToRectangle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Line} line - The Line to check for intersection.\r\n * @param {(Phaser.Geom.Rectangle|object)} rect - The Rectangle to check for intersection.\r\n * @param {array} [out] - An optional array in which to store the points of intersection.\r\n *\r\n * @return {array} An array with the points of intersection if objects intersect, otherwise an empty array.\r\n */\r\nvar GetLineToRectangle = function (line, rect, out)\r\n{\r\n if (out === undefined) { out = []; }\r\n\r\n if (LineToRectangle(line, rect))\r\n {\r\n var lineA = rect.getLineA();\r\n var lineB = rect.getLineB();\r\n var lineC = rect.getLineC();\r\n var lineD = rect.getLineD();\r\n\r\n var output = [ new Point(), new Point(), new Point(), new Point() ];\r\n\r\n var result = [\r\n LineToLine(lineA, line, output[0]),\r\n LineToLine(lineB, line, output[1]),\r\n LineToLine(lineC, line, output[2]),\r\n LineToLine(lineD, line, output[3])\r\n ];\r\n\r\n for (var i = 0; i < 4; i++)\r\n {\r\n if (result[i]) { out.push(output[i]); }\r\n }\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetLineToRectangle;\r\n\n\n/***/ }),\n\n/***/ 71147:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Vector4 = __webpack_require__(61369);\r\nvar GetLineToPolygon = __webpack_require__(56362);\r\nvar Line = __webpack_require__(23031);\r\n\r\n// Temp calculation segment\r\nvar segment = new Line();\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction CheckIntersects (angle, x, y, polygons, intersects)\r\n{\r\n var dx = Math.cos(angle);\r\n var dy = Math.sin(angle);\r\n\r\n segment.setTo(x, y, x + dx, y + dy);\r\n\r\n var closestIntersect = GetLineToPolygon(segment, polygons, true);\r\n\r\n if (closestIntersect)\r\n {\r\n intersects.push(new Vector4(closestIntersect.x, closestIntersect.y, angle, closestIntersect.w));\r\n }\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction SortIntersects (a, b)\r\n{\r\n return a.z - b.z;\r\n}\r\n\r\n/**\r\n * Projects rays out from the given point to each line segment of the polygons.\r\n *\r\n * If the rays intersect with the polygons, the points of intersection are returned in an array.\r\n *\r\n * If no intersections are found, the returned array will be empty.\r\n *\r\n * Each Vector4 intersection result has the following properties:\r\n *\r\n * The `x` and `y` components contain the point of the intersection.\r\n * The `z` component contains the angle of intersection.\r\n * The `w` component contains the index of the polygon, in the given array, that triggered the intersection.\r\n *\r\n * @function Phaser.Geom.Intersects.GetRaysFromPointToPolygon\r\n * @since 3.50.0\r\n *\r\n * @param {number} x - The x coordinate to project the rays from.\r\n * @param {number} y - The y coordinate to project the rays from.\r\n * @param {Phaser.Geom.Polygon | Phaser.Geom.Polygon[]} polygons - A single polygon, or array of polygons, to check against the rays.\r\n *\r\n * @return {Phaser.Math.Vector4[]} An array containing all intersections in Vector4s.\r\n */\r\nvar GetRaysFromPointToPolygon = function (x, y, polygons)\r\n{\r\n if (!Array.isArray(polygons))\r\n {\r\n polygons = [ polygons ];\r\n }\r\n\r\n var intersects = [];\r\n var angles = [];\r\n\r\n for (var i = 0; i < polygons.length; i++)\r\n {\r\n var points = polygons[i].points;\r\n\r\n for (var p = 0; p < points.length; p++)\r\n {\r\n var angle = Math.atan2(points[p].y - y, points[p].x - x);\r\n\r\n if (angles.indexOf(angle) === -1)\r\n {\r\n // +- 0.00001 rads to catch lines behind segment corners\r\n\r\n CheckIntersects(angle, x, y, polygons, intersects);\r\n CheckIntersects(angle - 0.00001, x, y, polygons, intersects);\r\n CheckIntersects(angle + 0.00001, x, y, polygons, intersects);\r\n\r\n angles.push(angle);\r\n }\r\n }\r\n }\r\n\r\n return intersects.sort(SortIntersects);\r\n};\r\n\r\nmodule.exports = GetRaysFromPointToPolygon;\r\n\n\n/***/ }),\n\n/***/ 68389:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Rectangle = __webpack_require__(87841);\r\nvar RectangleToRectangle = __webpack_require__(59996);\r\n\r\n/**\r\n * Checks if two Rectangle shapes intersect and returns the area of this intersection as Rectangle object.\r\n *\r\n * If optional `output` parameter is omitted, new Rectangle object is created and returned. If there is intersection, it will contain intersection area. If there is no intersection, it wil be empty Rectangle (all values set to zero).\r\n *\r\n * If Rectangle object is passed as `output` and there is intersection, then intersection area data will be loaded into it and it will be returned. If there is no intersection, it will be returned without any change.\r\n *\r\n * @function Phaser.Geom.Intersects.GetRectangleIntersection\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [output,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} rectA - The first Rectangle object.\r\n * @param {Phaser.Geom.Rectangle} rectB - The second Rectangle object.\r\n * @param {Phaser.Geom.Rectangle} [output] - Optional Rectangle object. If given, the intersection data will be loaded into it (in case of no intersection, it will be left unchanged). Otherwise, new Rectangle object will be created and returned with either intersection data or empty (all values set to zero), if there is no intersection.\r\n *\r\n * @return {Phaser.Geom.Rectangle} A rectangle object with intersection data.\r\n */\r\nvar GetRectangleIntersection = function (rectA, rectB, output)\r\n{\r\n if (output === undefined) { output = new Rectangle(); }\r\n\r\n if (RectangleToRectangle(rectA, rectB))\r\n {\r\n output.x = Math.max(rectA.x, rectB.x);\r\n output.y = Math.max(rectA.y, rectB.y);\r\n output.width = Math.min(rectA.right, rectB.right) - output.x;\r\n output.height = Math.min(rectA.bottom, rectB.bottom) - output.y;\r\n }\r\n\r\n return output;\r\n};\r\n\r\nmodule.exports = GetRectangleIntersection;\r\n\n\n/***/ }),\n\n/***/ 52784:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Florian Vazelle\r\n * @author Geoffrey Glaive\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetLineToRectangle = __webpack_require__(60646);\r\nvar RectangleToRectangle = __webpack_require__(59996);\r\n\r\n/**\r\n * Checks if two Rectangles intersect and returns the intersection points as a Point object array.\r\n *\r\n * A Rectangle intersects another Rectangle if any part of its bounds is within the other Rectangle's bounds. As such, the two Rectangles are considered \"solid\". A Rectangle with no width or no height will never intersect another Rectangle.\r\n *\r\n * @function Phaser.Geom.Intersects.GetRectangleToRectangle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Rectangle} rectA - The first Rectangle to check for intersection.\r\n * @param {Phaser.Geom.Rectangle} rectB - The second Rectangle to check for intersection.\r\n * @param {array} [out] - An optional array in which to store the points of intersection.\r\n *\r\n * @return {array} An array with the points of intersection if objects intersect, otherwise an empty array.\r\n */\r\nvar GetRectangleToRectangle = function (rectA, rectB, out)\r\n{\r\n if (out === undefined) { out = []; }\r\n\r\n if (RectangleToRectangle(rectA, rectB))\r\n {\r\n var lineA = rectA.getLineA();\r\n var lineB = rectA.getLineB();\r\n var lineC = rectA.getLineC();\r\n var lineD = rectA.getLineD();\r\n\r\n GetLineToRectangle(lineA, rectB, out);\r\n GetLineToRectangle(lineB, rectB, out);\r\n GetLineToRectangle(lineC, rectB, out);\r\n GetLineToRectangle(lineD, rectB, out);\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetRectangleToRectangle;\r\n\n\n/***/ }),\n\n/***/ 26341:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Florian Vazelle\r\n * @author Geoffrey Glaive\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar RectangleToTriangle = __webpack_require__(89265);\r\nvar GetLineToRectangle = __webpack_require__(60646);\r\n\r\n/**\r\n * Checks for intersection between Rectangle shape and Triangle shape,\r\n * and returns the intersection points as a Point object array.\r\n *\r\n * @function Phaser.Geom.Intersects.GetRectangleToTriangle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - Rectangle object to test.\r\n * @param {Phaser.Geom.Triangle} triangle - Triangle object to test.\r\n * @param {array} [out] - An optional array in which to store the points of intersection.\r\n *\r\n * @return {array} An array with the points of intersection if objects intersect, otherwise an empty array.\r\n */\r\nvar GetRectangleToTriangle = function (rect, triangle, out)\r\n{\r\n if (out === undefined) { out = []; }\r\n\r\n if (RectangleToTriangle(rect, triangle))\r\n {\r\n var lineA = triangle.getLineA();\r\n var lineB = triangle.getLineB();\r\n var lineC = triangle.getLineC();\r\n\r\n GetLineToRectangle(lineA, rect, out);\r\n GetLineToRectangle(lineB, rect, out);\r\n GetLineToRectangle(lineC, rect, out);\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetRectangleToTriangle;\r\n\n\n/***/ }),\n\n/***/ 38720:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Florian Vazelle\r\n * @author Geoffrey Glaive\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetLineToCircle = __webpack_require__(4042);\r\nvar TriangleToCircle = __webpack_require__(67636);\r\n\r\n/**\r\n * Checks if a Triangle and a Circle intersect, and returns the intersection points as a Point object array.\r\n *\r\n * A Circle intersects a Triangle if its center is located within it or if any of the Triangle's sides intersect the Circle. As such, the Triangle and the Circle are considered \"solid\" for the intersection.\r\n *\r\n * @function Phaser.Geom.Intersects.GetTriangleToCircle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The Triangle to check for intersection.\r\n * @param {Phaser.Geom.Circle} circle - The Circle to check for intersection.\r\n * @param {array} [out] - An optional array in which to store the points of intersection.\r\n *\r\n * @return {array} An array with the points of intersection if objects intersect, otherwise an empty array.\r\n */\r\nvar GetTriangleToCircle = function (triangle, circle, out)\r\n{\r\n if (out === undefined) { out = []; }\r\n\r\n if (TriangleToCircle(triangle, circle))\r\n {\r\n var lineA = triangle.getLineA();\r\n var lineB = triangle.getLineB();\r\n var lineC = triangle.getLineC();\r\n\r\n GetLineToCircle(lineA, circle, out);\r\n GetLineToCircle(lineB, circle, out);\r\n GetLineToCircle(lineC, circle, out);\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetTriangleToCircle;\r\n\n\n/***/ }),\n\n/***/ 13882:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Florian Vazelle\r\n * @author Geoffrey Glaive\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\nvar TriangleToLine = __webpack_require__(2822);\r\nvar LineToLine = __webpack_require__(76112);\r\n\r\n/**\r\n * Checks if a Triangle and a Line intersect, and returns the intersection points as a Point object array.\r\n *\r\n * The Line intersects the Triangle if it starts inside of it, ends inside of it, or crosses any of the Triangle's sides. Thus, the Triangle is considered \"solid\".\r\n *\r\n * @function Phaser.Geom.Intersects.GetTriangleToLine\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The Triangle to check with.\r\n * @param {Phaser.Geom.Line} line - The Line to check with.\r\n * @param {array} [out] - An optional array in which to store the points of intersection.\r\n *\r\n * @return {array} An array with the points of intersection if objects intersect, otherwise an empty array.\r\n */\r\nvar GetTriangleToLine = function (triangle, line, out)\r\n{\r\n if (out === undefined) { out = []; }\r\n\r\n if (TriangleToLine(triangle, line))\r\n {\r\n var lineA = triangle.getLineA();\r\n var lineB = triangle.getLineB();\r\n var lineC = triangle.getLineC();\r\n\r\n var output = [ new Point(), new Point(), new Point() ];\r\n\r\n var result = [\r\n LineToLine(lineA, line, output[0]),\r\n LineToLine(lineB, line, output[1]),\r\n LineToLine(lineC, line, output[2])\r\n ];\r\n\r\n for (var i = 0; i < 3; i++)\r\n {\r\n if (result[i]) { out.push(output[i]); }\r\n }\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetTriangleToLine;\r\n\n\n/***/ }),\n\n/***/ 75636:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Florian Vazelle\r\n * @author Geoffrey Glaive\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar TriangleToTriangle = __webpack_require__(82944);\r\nvar GetTriangleToLine = __webpack_require__(13882);\r\n\r\n/**\r\n * Checks if two Triangles intersect, and returns the intersection points as a Point object array.\r\n *\r\n * A Triangle intersects another Triangle if any pair of their lines intersects or if any point of one Triangle is within the other Triangle. Thus, the Triangles are considered \"solid\".\r\n *\r\n * @function Phaser.Geom.Intersects.GetTriangleToTriangle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Triangle} triangleA - The first Triangle to check for intersection.\r\n * @param {Phaser.Geom.Triangle} triangleB - The second Triangle to check for intersection.\r\n * @param {array} [out] - An optional array in which to store the points of intersection.\r\n *\r\n * @return {array} An array with the points of intersection if objects intersect, otherwise an empty array.\r\n */\r\nvar GetTriangleToTriangle = function (triangleA, triangleB, out)\r\n{\r\n if (out === undefined) { out = []; }\r\n\r\n if (TriangleToTriangle(triangleA, triangleB))\r\n {\r\n var lineA = triangleB.getLineA();\r\n var lineB = triangleB.getLineB();\r\n var lineC = triangleB.getLineC();\r\n\r\n GetTriangleToLine(triangleA, lineA, out);\r\n GetTriangleToLine(triangleA, lineB, out);\r\n GetTriangleToLine(triangleA, lineC, out);\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetTriangleToTriangle;\r\n\n\n/***/ }),\n\n/***/ 80462:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Contains = __webpack_require__(87902);\r\nvar Point = __webpack_require__(2141);\r\n\r\nvar tmp = new Point();\r\n\r\n/**\r\n * Checks for intersection between the line segment and circle.\r\n *\r\n * Based on code by [Matt DesLauriers](https://github.com/mattdesl/line-circle-collision/blob/master/LICENSE.md).\r\n *\r\n * @function Phaser.Geom.Intersects.LineToCircle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Line} line - The line segment to check.\r\n * @param {Phaser.Geom.Circle} circle - The circle to check against the line.\r\n * @param {(Phaser.Geom.Point|any)} [nearest] - An optional Point-like object. If given the closest point on the Line where the circle intersects will be stored in this object.\r\n *\r\n * @return {boolean} `true` if the two objects intersect, otherwise `false`.\r\n */\r\nvar LineToCircle = function (line, circle, nearest)\r\n{\r\n if (nearest === undefined) { nearest = tmp; }\r\n\r\n if (Contains(circle, line.x1, line.y1))\r\n {\r\n nearest.x = line.x1;\r\n nearest.y = line.y1;\r\n\r\n return true;\r\n }\r\n\r\n if (Contains(circle, line.x2, line.y2))\r\n {\r\n nearest.x = line.x2;\r\n nearest.y = line.y2;\r\n\r\n return true;\r\n }\r\n\r\n var dx = line.x2 - line.x1;\r\n var dy = line.y2 - line.y1;\r\n\r\n var lcx = circle.x - line.x1;\r\n var lcy = circle.y - line.y1;\r\n\r\n // project lc onto d, resulting in vector p\r\n var dLen2 = (dx * dx) + (dy * dy);\r\n var px = dx;\r\n var py = dy;\r\n\r\n if (dLen2 > 0)\r\n {\r\n var dp = ((lcx * dx) + (lcy * dy)) / dLen2;\r\n\r\n px *= dp;\r\n py *= dp;\r\n }\r\n\r\n nearest.x = line.x1 + px;\r\n nearest.y = line.y1 + py;\r\n\r\n // len2 of p\r\n var pLen2 = (px * px) + (py * py);\r\n\r\n return (\r\n pLen2 <= dLen2 &&\r\n ((px * dx) + (py * dy)) >= 0 &&\r\n Contains(circle, nearest.x, nearest.y)\r\n );\r\n};\r\n\r\nmodule.exports = LineToCircle;\r\n\n\n/***/ }),\n\n/***/ 76112:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// This is based off an explanation and expanded math presented by Paul Bourke:\r\n// See http://paulbourke.net/geometry/pointlineplane/\r\n\r\n/**\r\n * Checks if two Lines intersect. If the Lines are identical, they will be treated as parallel and thus non-intersecting.\r\n *\r\n * @function Phaser.Geom.Intersects.LineToLine\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Line} line1 - The first Line to check.\r\n * @param {Phaser.Geom.Line} line2 - The second Line to check.\r\n * @param {Phaser.Types.Math.Vector2Like} [out] - An optional point-like object in which to store the coordinates of intersection, if needed.\r\n *\r\n * @return {boolean} `true` if the two Lines intersect, and the `out` object will be populated, if given. Otherwise, `false`.\r\n */\r\nvar LineToLine = function (line1, line2, out)\r\n{\r\n var x1 = line1.x1;\r\n var y1 = line1.y1;\r\n var x2 = line1.x2;\r\n var y2 = line1.y2;\r\n\r\n var x3 = line2.x1;\r\n var y3 = line2.y1;\r\n var x4 = line2.x2;\r\n var y4 = line2.y2;\r\n\r\n // Check that none of the lines are length zero\r\n if ((x1 === x2 && y1 === y2) || (x3 === x4 && y3 === y4))\r\n {\r\n return false;\r\n }\r\n\r\n var denom = ((y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1));\r\n\r\n // Make sure there is not a division by zero - this also indicates that the lines are parallel.\r\n // If numA and numB were both equal to zero the lines would be on top of each other (coincidental).\r\n // This check is not done because it is not necessary for this implementation (the parallel check accounts for this).\r\n\r\n if (denom === 0)\r\n {\r\n // Lines are parallel\r\n return false;\r\n }\r\n\r\n // Calculate the intermediate fractional point that the lines potentially intersect.\r\n\r\n var ua = ((x4 - x3) * (y1 - y3) - (y4 - y3) * (x1 - x3)) / denom;\r\n var ub = ((x2 - x1) * (y1 - y3) - (y2 - y1) * (x1 - x3)) / denom;\r\n\r\n // The fractional point will be between 0 and 1 inclusive if the lines intersect.\r\n // If the fractional calculation is larger than 1 or smaller than 0 the lines would need to be longer to intersect.\r\n\r\n if (ua < 0 || ua > 1 || ub < 0 || ub > 1)\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n if (out)\r\n {\r\n out.x = x1 + ua * (x2 - x1);\r\n out.y = y1 + ua * (y2 - y1);\r\n }\r\n\r\n return true;\r\n }\r\n};\r\n\r\nmodule.exports = LineToLine;\r\n\n\n/***/ }),\n\n/***/ 92773:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Checks for intersection between the Line and a Rectangle shape, or a rectangle-like\r\n * object, with public `x`, `y`, `right` and `bottom` properties, such as a Sprite or Body.\r\n *\r\n * An intersection is considered valid if:\r\n *\r\n * The line starts within, or ends within, the Rectangle.\r\n * The line segment intersects one of the 4 rectangle edges.\r\n *\r\n * The for the purposes of this function rectangles are considered 'solid'.\r\n *\r\n * @function Phaser.Geom.Intersects.LineToRectangle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Line} line - The Line to check for intersection.\r\n * @param {(Phaser.Geom.Rectangle|object)} rect - The Rectangle to check for intersection.\r\n *\r\n * @return {boolean} `true` if the Line and the Rectangle intersect, `false` otherwise.\r\n */\r\nvar LineToRectangle = function (line, rect)\r\n{\r\n var x1 = line.x1;\r\n var y1 = line.y1;\r\n\r\n var x2 = line.x2;\r\n var y2 = line.y2;\r\n\r\n var bx1 = rect.x;\r\n var by1 = rect.y;\r\n var bx2 = rect.right;\r\n var by2 = rect.bottom;\r\n\r\n var t = 0;\r\n\r\n // If the start or end of the line is inside the rect then we assume\r\n // collision, as rects are solid for our use-case.\r\n\r\n if ((x1 >= bx1 && x1 <= bx2 && y1 >= by1 && y1 <= by2) ||\r\n (x2 >= bx1 && x2 <= bx2 && y2 >= by1 && y2 <= by2))\r\n {\r\n return true;\r\n }\r\n\r\n if (x1 < bx1 && x2 >= bx1)\r\n {\r\n // Left edge\r\n t = y1 + (y2 - y1) * (bx1 - x1) / (x2 - x1);\r\n\r\n if (t > by1 && t <= by2)\r\n {\r\n return true;\r\n }\r\n }\r\n else if (x1 > bx2 && x2 <= bx2)\r\n {\r\n // Right edge\r\n t = y1 + (y2 - y1) * (bx2 - x1) / (x2 - x1);\r\n\r\n if (t >= by1 && t <= by2)\r\n {\r\n return true;\r\n }\r\n }\r\n\r\n if (y1 < by1 && y2 >= by1)\r\n {\r\n // Top edge\r\n t = x1 + (x2 - x1) * (by1 - y1) / (y2 - y1);\r\n\r\n if (t >= bx1 && t <= bx2)\r\n {\r\n return true;\r\n }\r\n }\r\n else if (y1 > by2 && y2 <= by2)\r\n {\r\n // Bottom edge\r\n t = x1 + (x2 - x1) * (by2 - y1) / (y2 - y1);\r\n\r\n if (t >= bx1 && t <= bx2)\r\n {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n};\r\n\r\nmodule.exports = LineToRectangle;\r\n\n\n/***/ }),\n\n/***/ 16204:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Florian Mertens\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Checks if the a Point falls between the two end-points of a Line, based on the given line thickness.\r\n *\r\n * Assumes that the line end points are circular, not square.\r\n *\r\n * @function Phaser.Geom.Intersects.PointToLine\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Geom.Point|any)} point - The point, or point-like object to check.\r\n * @param {Phaser.Geom.Line} line - The line segment to test for intersection on.\r\n * @param {number} [lineThickness=1] - The line thickness. Assumes that the line end points are circular.\r\n *\r\n * @return {boolean} `true` if the Point falls on the Line, otherwise `false`.\r\n */\r\nvar PointToLine = function (point, line, lineThickness)\r\n{\r\n if (lineThickness === undefined) { lineThickness = 1; }\r\n\r\n var x1 = line.x1;\r\n var y1 = line.y1;\r\n\r\n var x2 = line.x2;\r\n var y2 = line.y2;\r\n\r\n var px = point.x;\r\n var py = point.y;\r\n\r\n var L2 = (((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));\r\n\r\n if (L2 === 0)\r\n {\r\n return false;\r\n }\r\n\r\n var r = (((px - x1) * (x2 - x1)) + ((py - y1) * (y2 - y1))) / L2;\r\n\r\n // Assume line thickness is circular\r\n if (r < 0)\r\n {\r\n // Outside line1\r\n return (Math.sqrt(((x1 - px) * (x1 - px)) + ((y1 - py) * (y1 - py))) <= lineThickness);\r\n }\r\n else if ((r >= 0) && (r <= 1))\r\n {\r\n // On the line segment\r\n var s = (((y1 - py) * (x2 - x1)) - ((x1 - px) * (y2 - y1))) / L2;\r\n\r\n return (Math.abs(s) * Math.sqrt(L2) <= lineThickness);\r\n }\r\n else\r\n {\r\n // Outside line2\r\n return (Math.sqrt(((x2 - px) * (x2 - px)) + ((y2 - py) * (y2 - py))) <= lineThickness);\r\n }\r\n};\r\n\r\nmodule.exports = PointToLine;\r\n\n\n/***/ }),\n\n/***/ 14199:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PointToLine = __webpack_require__(16204);\r\n\r\n/**\r\n * Checks if a Point is located on the given line segment.\r\n *\r\n * @function Phaser.Geom.Intersects.PointToLineSegment\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Point} point - The Point to check for intersection.\r\n * @param {Phaser.Geom.Line} line - The line segment to check for intersection.\r\n *\r\n * @return {boolean} `true` if the Point is on the given line segment, otherwise `false`.\r\n */\r\nvar PointToLineSegment = function (point, line)\r\n{\r\n if (!PointToLine(point, line))\r\n {\r\n return false;\r\n }\r\n\r\n var xMin = Math.min(line.x1, line.x2);\r\n var xMax = Math.max(line.x1, line.x2);\r\n var yMin = Math.min(line.y1, line.y2);\r\n var yMax = Math.max(line.y1, line.y2);\r\n\r\n return ((point.x >= xMin && point.x <= xMax) && (point.y >= yMin && point.y <= yMax));\r\n};\r\n\r\nmodule.exports = PointToLineSegment;\r\n\n\n/***/ }),\n\n/***/ 59996:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Checks if two Rectangles intersect.\r\n *\r\n * A Rectangle intersects another Rectangle if any part of its bounds is within the other Rectangle's bounds.\r\n * As such, the two Rectangles are considered \"solid\".\r\n * A Rectangle with no width or no height will never intersect another Rectangle.\r\n *\r\n * @function Phaser.Geom.Intersects.RectangleToRectangle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Rectangle} rectA - The first Rectangle to check for intersection.\r\n * @param {Phaser.Geom.Rectangle} rectB - The second Rectangle to check for intersection.\r\n *\r\n * @return {boolean} `true` if the two Rectangles intersect, otherwise `false`.\r\n */\r\nvar RectangleToRectangle = function (rectA, rectB)\r\n{\r\n if (rectA.width <= 0 || rectA.height <= 0 || rectB.width <= 0 || rectB.height <= 0)\r\n {\r\n return false;\r\n }\r\n\r\n return !(rectA.right < rectB.x || rectA.bottom < rectB.y || rectA.x > rectB.right || rectA.y > rectB.bottom);\r\n};\r\n\r\nmodule.exports = RectangleToRectangle;\r\n\n\n/***/ }),\n\n/***/ 89265:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar LineToLine = __webpack_require__(76112);\r\nvar Contains = __webpack_require__(37303);\r\nvar ContainsArray = __webpack_require__(48653);\r\nvar Decompose = __webpack_require__(77493);\r\n\r\n/**\r\n * Checks for intersection between Rectangle shape and Triangle shape.\r\n *\r\n * @function Phaser.Geom.Intersects.RectangleToTriangle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - Rectangle object to test.\r\n * @param {Phaser.Geom.Triangle} triangle - Triangle object to test.\r\n *\r\n * @return {boolean} A value of `true` if objects intersect; otherwise `false`.\r\n */\r\nvar RectangleToTriangle = function (rect, triangle)\r\n{\r\n // First the cheapest ones:\r\n\r\n if (\r\n triangle.left > rect.right ||\r\n triangle.right < rect.left ||\r\n triangle.top > rect.bottom ||\r\n triangle.bottom < rect.top)\r\n {\r\n return false;\r\n }\r\n\r\n var triA = triangle.getLineA();\r\n var triB = triangle.getLineB();\r\n var triC = triangle.getLineC();\r\n\r\n // Are any of the triangle points within the rectangle?\r\n\r\n if (Contains(rect, triA.x1, triA.y1) || Contains(rect, triA.x2, triA.y2))\r\n {\r\n return true;\r\n }\r\n\r\n if (Contains(rect, triB.x1, triB.y1) || Contains(rect, triB.x2, triB.y2))\r\n {\r\n return true;\r\n }\r\n\r\n if (Contains(rect, triC.x1, triC.y1) || Contains(rect, triC.x2, triC.y2))\r\n {\r\n return true;\r\n }\r\n\r\n // Cheap tests over, now to see if any of the lines intersect ...\r\n\r\n var rectA = rect.getLineA();\r\n var rectB = rect.getLineB();\r\n var rectC = rect.getLineC();\r\n var rectD = rect.getLineD();\r\n\r\n if (LineToLine(triA, rectA) || LineToLine(triA, rectB) || LineToLine(triA, rectC) || LineToLine(triA, rectD))\r\n {\r\n return true;\r\n }\r\n\r\n if (LineToLine(triB, rectA) || LineToLine(triB, rectB) || LineToLine(triB, rectC) || LineToLine(triB, rectD))\r\n {\r\n return true;\r\n }\r\n\r\n if (LineToLine(triC, rectA) || LineToLine(triC, rectB) || LineToLine(triC, rectC) || LineToLine(triC, rectD))\r\n {\r\n return true;\r\n }\r\n\r\n // None of the lines intersect, so are any rectangle points within the triangle?\r\n\r\n var points = Decompose(rect);\r\n var within = ContainsArray(triangle, points, true);\r\n\r\n return (within.length > 0);\r\n};\r\n\r\nmodule.exports = RectangleToTriangle;\r\n\n\n/***/ }),\n\n/***/ 84411:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Check if rectangle intersects with values.\r\n *\r\n * @function Phaser.Geom.Intersects.RectangleToValues\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The rectangle object\r\n * @param {number} left - The x coordinate of the left of the Rectangle.\r\n * @param {number} right - The x coordinate of the right of the Rectangle.\r\n * @param {number} top - The y coordinate of the top of the Rectangle.\r\n * @param {number} bottom - The y coordinate of the bottom of the Rectangle.\r\n * @param {number} [tolerance=0] - Tolerance allowed in the calculation, expressed in pixels.\r\n *\r\n * @return {boolean} Returns true if there is an intersection.\r\n */\r\nvar RectangleToValues = function (rect, left, right, top, bottom, tolerance)\r\n{\r\n if (tolerance === undefined) { tolerance = 0; }\r\n\r\n return !(\r\n left > rect.right + tolerance ||\r\n right < rect.left - tolerance ||\r\n top > rect.bottom + tolerance ||\r\n bottom < rect.top - tolerance\r\n );\r\n};\r\n\r\nmodule.exports = RectangleToValues;\r\n\n\n/***/ }),\n\n/***/ 67636:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar LineToCircle = __webpack_require__(80462);\r\nvar Contains = __webpack_require__(10690);\r\n\r\n/**\r\n * Checks if a Triangle and a Circle intersect.\r\n *\r\n * A Circle intersects a Triangle if its center is located within it or if any of the Triangle's sides intersect the Circle. As such, the Triangle and the Circle are considered \"solid\" for the intersection.\r\n *\r\n * @function Phaser.Geom.Intersects.TriangleToCircle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The Triangle to check for intersection.\r\n * @param {Phaser.Geom.Circle} circle - The Circle to check for intersection.\r\n *\r\n * @return {boolean} `true` if the Triangle and the `Circle` intersect, otherwise `false`.\r\n */\r\nvar TriangleToCircle = function (triangle, circle)\r\n{\r\n // First the cheapest ones:\r\n\r\n if (\r\n triangle.left > circle.right ||\r\n triangle.right < circle.left ||\r\n triangle.top > circle.bottom ||\r\n triangle.bottom < circle.top)\r\n {\r\n return false;\r\n }\r\n\r\n if (Contains(triangle, circle.x, circle.y))\r\n {\r\n return true;\r\n }\r\n\r\n if (LineToCircle(triangle.getLineA(), circle))\r\n {\r\n return true;\r\n }\r\n\r\n if (LineToCircle(triangle.getLineB(), circle))\r\n {\r\n return true;\r\n }\r\n\r\n if (LineToCircle(triangle.getLineC(), circle))\r\n {\r\n return true;\r\n }\r\n\r\n return false;\r\n};\r\n\r\nmodule.exports = TriangleToCircle;\r\n\n\n/***/ }),\n\n/***/ 2822:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar LineToLine = __webpack_require__(76112);\r\n\r\n/**\r\n * Checks if a Triangle and a Line intersect.\r\n *\r\n * The Line intersects the Triangle if it starts inside of it, ends inside of it, or crosses any of the Triangle's sides. Thus, the Triangle is considered \"solid\".\r\n *\r\n * @function Phaser.Geom.Intersects.TriangleToLine\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The Triangle to check with.\r\n * @param {Phaser.Geom.Line} line - The Line to check with.\r\n *\r\n * @return {boolean} `true` if the Triangle and the Line intersect, otherwise `false`.\r\n */\r\nvar TriangleToLine = function (triangle, line)\r\n{\r\n // If the Triangle contains either the start or end point of the line, it intersects\r\n if (triangle.contains(line.x1, line.y1) || triangle.contains(line.x2, line.y2))\r\n {\r\n return true;\r\n }\r\n\r\n // Now check the line against each line of the Triangle\r\n if (LineToLine(triangle.getLineA(), line))\r\n {\r\n return true;\r\n }\r\n\r\n if (LineToLine(triangle.getLineB(), line))\r\n {\r\n return true;\r\n }\r\n\r\n if (LineToLine(triangle.getLineC(), line))\r\n {\r\n return true;\r\n }\r\n\r\n return false;\r\n};\r\n\r\nmodule.exports = TriangleToLine;\r\n\n\n/***/ }),\n\n/***/ 82944:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar ContainsArray = __webpack_require__(48653);\r\nvar Decompose = __webpack_require__(71694);\r\nvar LineToLine = __webpack_require__(76112);\r\n\r\n/**\r\n * Checks if two Triangles intersect.\r\n *\r\n * A Triangle intersects another Triangle if any pair of their lines intersects or if any point of one Triangle is within the other Triangle. Thus, the Triangles are considered \"solid\".\r\n *\r\n * @function Phaser.Geom.Intersects.TriangleToTriangle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Triangle} triangleA - The first Triangle to check for intersection.\r\n * @param {Phaser.Geom.Triangle} triangleB - The second Triangle to check for intersection.\r\n *\r\n * @return {boolean} `true` if the Triangles intersect, otherwise `false`.\r\n */\r\nvar TriangleToTriangle = function (triangleA, triangleB)\r\n{\r\n // First the cheapest ones:\r\n\r\n if (\r\n triangleA.left > triangleB.right ||\r\n triangleA.right < triangleB.left ||\r\n triangleA.top > triangleB.bottom ||\r\n triangleA.bottom < triangleB.top)\r\n {\r\n return false;\r\n }\r\n\r\n var lineAA = triangleA.getLineA();\r\n var lineAB = triangleA.getLineB();\r\n var lineAC = triangleA.getLineC();\r\n\r\n var lineBA = triangleB.getLineA();\r\n var lineBB = triangleB.getLineB();\r\n var lineBC = triangleB.getLineC();\r\n\r\n // Now check the lines against each line of TriangleB\r\n if (LineToLine(lineAA, lineBA) || LineToLine(lineAA, lineBB) || LineToLine(lineAA, lineBC))\r\n {\r\n return true;\r\n }\r\n\r\n if (LineToLine(lineAB, lineBA) || LineToLine(lineAB, lineBB) || LineToLine(lineAB, lineBC))\r\n {\r\n return true;\r\n }\r\n\r\n if (LineToLine(lineAC, lineBA) || LineToLine(lineAC, lineBB) || LineToLine(lineAC, lineBC))\r\n {\r\n return true;\r\n }\r\n\r\n // Nope, so check to see if any of the points of triangleA are within triangleB\r\n\r\n var points = Decompose(triangleA);\r\n var within = ContainsArray(triangleB, points, true);\r\n\r\n if (within.length > 0)\r\n {\r\n return true;\r\n }\r\n\r\n // Finally check to see if any of the points of triangleB are within triangleA\r\n\r\n points = Decompose(triangleB);\r\n within = ContainsArray(triangleA, points, true);\r\n\r\n if (within.length > 0)\r\n {\r\n return true;\r\n }\r\n\r\n return false;\r\n};\r\n\r\nmodule.exports = TriangleToTriangle;\r\n\n\n/***/ }),\n\n/***/ 91865:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Geom.Intersects\r\n */\r\n\r\nmodule.exports = {\r\n\r\n CircleToCircle: __webpack_require__(2044),\r\n CircleToRectangle: __webpack_require__(81491),\r\n GetCircleToCircle: __webpack_require__(63376),\r\n GetCircleToRectangle: __webpack_require__(97439),\r\n GetLineToCircle: __webpack_require__(4042),\r\n GetLineToLine: __webpack_require__(36100),\r\n GetLineToPoints: __webpack_require__(3073),\r\n GetLineToPolygon: __webpack_require__(56362),\r\n GetLineToRectangle: __webpack_require__(60646),\r\n GetRaysFromPointToPolygon: __webpack_require__(71147),\r\n GetRectangleIntersection: __webpack_require__(68389),\r\n GetRectangleToRectangle: __webpack_require__(52784),\r\n GetRectangleToTriangle: __webpack_require__(26341),\r\n GetTriangleToCircle: __webpack_require__(38720),\r\n GetTriangleToLine: __webpack_require__(13882),\r\n GetTriangleToTriangle: __webpack_require__(75636),\r\n LineToCircle: __webpack_require__(80462),\r\n LineToLine: __webpack_require__(76112),\r\n LineToRectangle: __webpack_require__(92773),\r\n PointToLine: __webpack_require__(16204),\r\n PointToLineSegment: __webpack_require__(14199),\r\n RectangleToRectangle: __webpack_require__(59996),\r\n RectangleToTriangle: __webpack_require__(89265),\r\n RectangleToValues: __webpack_require__(84411),\r\n TriangleToCircle: __webpack_require__(67636),\r\n TriangleToLine: __webpack_require__(2822),\r\n TriangleToTriangle: __webpack_require__(82944)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 91938:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculate the angle of the line in radians.\r\n *\r\n * @function Phaser.Geom.Line.Angle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Line} line - The line to calculate the angle of.\r\n *\r\n * @return {number} The angle of the line, in radians.\r\n */\r\nvar Angle = function (line)\r\n{\r\n return Math.atan2(line.y2 - line.y1, line.x2 - line.x1);\r\n};\r\n\r\nmodule.exports = Angle;\r\n\n\n/***/ }),\n\n/***/ 84993:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Using Bresenham's line algorithm this will return an array of all coordinates on this line.\r\n *\r\n * The `start` and `end` points are rounded before this runs as the algorithm works on integers.\r\n *\r\n * @function Phaser.Geom.Line.BresenhamPoints\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Line} line - The line.\r\n * @param {number} [stepRate=1] - The optional step rate for the points on the line.\r\n * @param {Phaser.Types.Math.Vector2Like[]} [results] - An optional array to push the resulting coordinates into.\r\n *\r\n * @return {Phaser.Types.Math.Vector2Like[]} The array of coordinates on the line.\r\n */\r\nvar BresenhamPoints = function (line, stepRate, results)\r\n{\r\n if (stepRate === undefined) { stepRate = 1; }\r\n if (results === undefined) { results = []; }\r\n\r\n var x1 = Math.round(line.x1);\r\n var y1 = Math.round(line.y1);\r\n var x2 = Math.round(line.x2);\r\n var y2 = Math.round(line.y2);\r\n\r\n var dx = Math.abs(x2 - x1);\r\n var dy = Math.abs(y2 - y1);\r\n var sx = (x1 < x2) ? 1 : -1;\r\n var sy = (y1 < y2) ? 1 : -1;\r\n var err = dx - dy;\r\n\r\n results.push({ x: x1, y: y1 });\r\n\r\n var i = 1;\r\n\r\n while (!((x1 === x2) && (y1 === y2)))\r\n {\r\n var e2 = err << 1;\r\n\r\n if (e2 > -dy)\r\n {\r\n err -= dy;\r\n x1 += sx;\r\n }\r\n\r\n if (e2 < dx)\r\n {\r\n err += dx;\r\n y1 += sy;\r\n }\r\n\r\n if (i % stepRate === 0)\r\n {\r\n results.push({ x: x1, y: y1 });\r\n }\r\n\r\n i++;\r\n }\r\n\r\n return results;\r\n};\r\n\r\nmodule.exports = BresenhamPoints;\r\n\n\n/***/ }),\n\n/***/ 36469:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n\r\n/**\r\n * Center a line on the given coordinates.\r\n *\r\n * @function Phaser.Geom.Line.CenterOn\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Line} line - The line to center.\r\n * @param {number} x - The horizontal coordinate to center the line on.\r\n * @param {number} y - The vertical coordinate to center the line on.\r\n *\r\n * @return {Phaser.Geom.Line} The centered line.\r\n */\r\nvar CenterOn = function (line, x, y)\r\n{\r\n var tx = x - ((line.x1 + line.x2) / 2);\r\n var ty = y - ((line.y1 + line.y2) / 2);\r\n\r\n line.x1 += tx;\r\n line.y1 += ty;\r\n\r\n line.x2 += tx;\r\n line.y2 += ty;\r\n\r\n return line;\r\n};\r\n\r\nmodule.exports = CenterOn;\r\n\n\n/***/ }),\n\n/***/ 31116:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Line = __webpack_require__(23031);\r\n\r\n/**\r\n * Clone the given line.\r\n *\r\n * @function Phaser.Geom.Line.Clone\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Line} source - The source line to clone.\r\n *\r\n * @return {Phaser.Geom.Line} The cloned line.\r\n */\r\nvar Clone = function (source)\r\n{\r\n return new Line(source.x1, source.y1, source.x2, source.y2);\r\n};\r\n\r\nmodule.exports = Clone;\r\n\n\n/***/ }),\n\n/***/ 59944:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Copy the values of one line to a destination line.\r\n *\r\n * @function Phaser.Geom.Line.CopyFrom\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Line} O - [dest,$return]\r\n *\r\n * @param {Phaser.Geom.Line} source - The source line to copy the values from.\r\n * @param {Phaser.Geom.Line} dest - The destination line to copy the values to.\r\n *\r\n * @return {Phaser.Geom.Line} The destination line.\r\n */\r\nvar CopyFrom = function (source, dest)\r\n{\r\n return dest.setTo(source.x1, source.y1, source.x2, source.y2);\r\n};\r\n\r\nmodule.exports = CopyFrom;\r\n\n\n/***/ }),\n\n/***/ 59220:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Compare two lines for strict equality.\r\n *\r\n * @function Phaser.Geom.Line.Equals\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Line} line - The first line to compare.\r\n * @param {Phaser.Geom.Line} toCompare - The second line to compare.\r\n *\r\n * @return {boolean} Whether the two lines are equal.\r\n */\r\nvar Equals = function (line, toCompare)\r\n{\r\n return (\r\n line.x1 === toCompare.x1 &&\r\n line.y1 === toCompare.y1 &&\r\n line.x2 === toCompare.x2 &&\r\n line.y2 === toCompare.y2\r\n );\r\n};\r\n\r\nmodule.exports = Equals;\r\n\n\n/***/ }),\n\n/***/ 78177:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Length = __webpack_require__(35001);\r\n\r\n/**\r\n * Extends the start and end points of a Line by the given amounts.\r\n *\r\n * The amounts can be positive or negative. Positive points will increase the length of the line,\r\n * while negative ones will decrease it.\r\n *\r\n * If no `right` value is provided it will extend the length of the line equally in both directions.\r\n *\r\n * Pass a value of zero to leave the start or end point unchanged.\r\n *\r\n * @function Phaser.Geom.Line.Extend\r\n * @since 3.16.0\r\n *\r\n * @param {Phaser.Geom.Line} line - The line instance to extend.\r\n * @param {number} left - The amount to extend the start of the line by.\r\n * @param {number} [right] - The amount to extend the end of the line by. If not given it will be set to the `left` value.\r\n *\r\n * @return {Phaser.Geom.Line} The modified Line instance.\r\n */\r\nvar Extend = function (line, left, right)\r\n{\r\n if (right === undefined) { right = left; }\r\n\r\n var length = Length(line);\r\n\r\n var slopX = line.x2 - line.x1;\r\n var slopY = line.y2 - line.y1;\r\n\r\n if (left)\r\n {\r\n line.x1 = line.x1 - slopX / length * left;\r\n line.y1 = line.y1 - slopY / length * left;\r\n }\r\n\r\n if (right)\r\n {\r\n line.x2 = line.x2 + slopX / length * right;\r\n line.y2 = line.y2 + slopY / length * right;\r\n }\r\n\r\n return line;\r\n};\r\n\r\nmodule.exports = Extend;\r\n\n\n/***/ }),\n\n/***/ 26708:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar DistanceBetweenPoints = __webpack_require__(52816);\r\nvar GetEaseFunction = __webpack_require__(6113);\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Returns an array of `quantity` Points where each point is taken from the given Line,\r\n * spaced out according to the ease function specified.\r\n * \r\n * ```javascript\r\n * const line = new Phaser.Geom.Line(100, 300, 700, 300);\r\n * const points = Phaser.Geom.Line.GetEasedPoints(line, 'sine.out', 32)\r\n * ```\r\n * \r\n * In the above example, the `points` array will contain 32 points spread-out across\r\n * the length of `line`, where the position of each point is determined by the `Sine.out`\r\n * ease function.\r\n * \r\n * You can optionally provide a collinear threshold. In this case, the resulting points\r\n * are checked against each other, and if they are `< collinearThreshold` distance apart,\r\n * they are dropped from the results. This can help avoid lots of clustered points at\r\n * far ends of the line with tightly-packed eases such as Quartic. Leave the value set\r\n * to zero to skip this check.\r\n * \r\n * Note that if you provide a collinear threshold, the resulting array may not always\r\n * contain `quantity` points.\r\n *\r\n * @function Phaser.Geom.Line.GetEasedPoints\r\n * @since 3.23.0\r\n *\r\n * @generic {Phaser.Geom.Point[]} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Line} line - The Line object.\r\n * @param {(string|function)} ease - The ease to use. This can be either a string from the EaseMap, or a custom function.\r\n * @param {number} quantity - The number of points to return. Note that if you provide a `collinearThreshold`, the resulting array may not always contain this number of points.\r\n * @param {number} [collinearThreshold=0] - An optional threshold. The final array is reduced so that each point is spaced out at least this distance apart. This helps reduce clustering in noisey eases.\r\n * @param {number[]} [easeParams] - An optional array of ease parameters to go with the ease.\r\n *\r\n * @return {Phaser.Geom.Point[]} An array of Geom.Points containing the coordinates of the points on the line.\r\n */\r\nvar GetEasedPoints = function (line, ease, quantity, collinearThreshold, easeParams)\r\n{\r\n if (collinearThreshold === undefined) { collinearThreshold = 0; }\r\n if (easeParams === undefined) { easeParams = []; }\r\n\r\n var results = [];\r\n\r\n var x1 = line.x1;\r\n var y1 = line.y1;\r\n\r\n var spaceX = line.x2 - x1;\r\n var spaceY = line.y2 - y1;\r\n\r\n var easeFunc = GetEaseFunction(ease, easeParams);\r\n\r\n var i;\r\n var v;\r\n var q = quantity - 1;\r\n\r\n for (i = 0; i < q; i++)\r\n {\r\n v = easeFunc(i / q);\r\n\r\n results.push(new Point(x1 + (spaceX * v), y1 + (spaceY * v)));\r\n }\r\n\r\n // Always include the end of the line\r\n v = easeFunc(1);\r\n\r\n results.push(new Point(x1 + (spaceX * v), y1 + (spaceY * v)));\r\n\r\n // Remove collinear parts\r\n if (collinearThreshold > 0)\r\n {\r\n var prevPoint = results[0];\r\n\r\n // Store the new results here\r\n var sortedResults = [ prevPoint ];\r\n\r\n for (i = 1; i < results.length - 1; i++)\r\n {\r\n var point = results[i];\r\n\r\n if (DistanceBetweenPoints(prevPoint, point) >= collinearThreshold)\r\n {\r\n sortedResults.push(point);\r\n prevPoint = point;\r\n }\r\n }\r\n\r\n // Top and tail\r\n var endPoint = results[results.length - 1];\r\n\r\n if (DistanceBetweenPoints(prevPoint, endPoint) < collinearThreshold)\r\n {\r\n sortedResults.pop();\r\n }\r\n\r\n sortedResults.push(endPoint);\r\n\r\n return sortedResults;\r\n }\r\n else\r\n {\r\n return results;\r\n }\r\n};\r\n\r\nmodule.exports = GetEasedPoints;\r\n\n\n/***/ }),\n\n/***/ 32125:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Get the midpoint of the given line.\r\n *\r\n * @function Phaser.Geom.Line.GetMidPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Line} line - The line to get the midpoint of.\r\n * @param {(Phaser.Geom.Point|object)} [out] - An optional point object to store the midpoint in.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} The midpoint of the Line.\r\n */\r\nvar GetMidPoint = function (line, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n out.x = (line.x1 + line.x2) / 2;\r\n out.y = (line.y1 + line.y2) / 2;\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetMidPoint;\r\n\n\n/***/ }),\n\n/***/ 99569:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Florian Mertens\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Get the nearest point on a line perpendicular to the given point.\r\n *\r\n * @function Phaser.Geom.Line.GetNearestPoint\r\n * @since 3.16.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Line} line - The line to get the nearest point on.\r\n * @param {(Phaser.Geom.Point|object)} point - The point to get the nearest point to.\r\n * @param {(Phaser.Geom.Point|object)} [out] - An optional point, or point-like object, to store the coordinates of the nearest point on the line.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} The nearest point on the line.\r\n */\r\nvar GetNearestPoint = function (line, point, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n var x1 = line.x1;\r\n var y1 = line.y1;\r\n\r\n var x2 = line.x2;\r\n var y2 = line.y2;\r\n\r\n var L2 = (((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));\r\n\r\n if (L2 === 0)\r\n {\r\n return out;\r\n }\r\n\r\n var r = (((point.x - x1) * (x2 - x1)) + ((point.y - y1) * (y2 - y1))) / L2;\r\n\r\n out.x = x1 + (r * (x2 - x1));\r\n out.y = y1 + (r * (y2 - y1));\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetNearestPoint;\r\n\n\n/***/ }),\n\n/***/ 34638:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar MATH_CONST = __webpack_require__(36383);\r\nvar Angle = __webpack_require__(91938);\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Calculate the normal of the given line.\r\n *\r\n * The normal of a line is a vector that points perpendicular from it.\r\n *\r\n * @function Phaser.Geom.Line.GetNormal\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Line} line - The line to calculate the normal of.\r\n * @param {(Phaser.Geom.Point|object)} [out] - An optional point object to store the normal in.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} The normal of the Line.\r\n */\r\nvar GetNormal = function (line, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n var a = Angle(line) - MATH_CONST.TAU;\r\n\r\n out.x = Math.cos(a);\r\n out.y = Math.sin(a);\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetNormal;\r\n\n\n/***/ }),\n\n/***/ 13151:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Get a point on a line that's a given percentage along its length.\r\n *\r\n * @function Phaser.Geom.Line.GetPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Line} line - The line.\r\n * @param {number} position - A value between 0 and 1, where 0 is the start, 0.5 is the middle and 1 is the end of the line.\r\n * @param {(Phaser.Geom.Point|object)} [out] - An optional point, or point-like object, to store the coordinates of the point on the line.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} The point on the line.\r\n */\r\nvar GetPoint = function (line, position, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n out.x = line.x1 + (line.x2 - line.x1) * position;\r\n out.y = line.y1 + (line.y2 - line.y1) * position;\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetPoint;\r\n\n\n/***/ }),\n\n/***/ 15258:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Length = __webpack_require__(35001);\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Get a number of points along a line's length.\r\n *\r\n * Provide a `quantity` to get an exact number of points along the line.\r\n *\r\n * Provide a `stepRate` to ensure a specific distance between each point on the line. Set `quantity` to `0` when\r\n * providing a `stepRate`.\r\n *\r\n * See also `GetEasedPoints` for a way to distribute the points across the line according to an ease type or input function.\r\n *\r\n * @function Phaser.Geom.Line.GetPoints\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point[]} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Line} line - The line.\r\n * @param {number} quantity - The number of points to place on the line. Set to `0` to use `stepRate` instead.\r\n * @param {number} [stepRate] - The distance between each point on the line. When set, `quantity` is implied and should be set to `0`.\r\n * @param {(array|Phaser.Geom.Point[])} [out] - An optional array of Points, or point-like objects, to store the coordinates of the points on the line.\r\n *\r\n * @return {(array|Phaser.Geom.Point[])} An array of Points, or point-like objects, containing the coordinates of the points on the line.\r\n */\r\nvar GetPoints = function (line, quantity, stepRate, out)\r\n{\r\n if (out === undefined) { out = []; }\r\n\r\n // If quantity is a falsey value (false, null, 0, undefined, etc) then we calculate it based on the stepRate instead.\r\n if (!quantity && stepRate > 0)\r\n {\r\n quantity = Length(line) / stepRate;\r\n }\r\n\r\n var x1 = line.x1;\r\n var y1 = line.y1;\r\n\r\n var x2 = line.x2;\r\n var y2 = line.y2;\r\n\r\n for (var i = 0; i < quantity; i++)\r\n {\r\n var position = i / quantity;\r\n\r\n var x = x1 + (x2 - x1) * position;\r\n var y = y1 + (y2 - y1) * position;\r\n\r\n out.push(new Point(x, y));\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetPoints;\r\n\n\n/***/ }),\n\n/***/ 26408:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Florian Mertens\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Get the shortest distance from a Line to the given Point.\r\n *\r\n * @function Phaser.Geom.Line.GetShortestDistance\r\n * @since 3.16.0\r\n *\r\n * @param {Phaser.Geom.Line} line - The line to get the distance from.\r\n * @param {Phaser.Types.Math.Vector2Like} point - The point to get the shortest distance to.\r\n *\r\n * @return {(boolean|number)} The shortest distance from the line to the point, or `false`.\r\n */\r\nvar GetShortestDistance = function (line, point)\r\n{\r\n var x1 = line.x1;\r\n var y1 = line.y1;\r\n\r\n var x2 = line.x2;\r\n var y2 = line.y2;\r\n\r\n var L2 = (((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1)));\r\n\r\n if (L2 === 0)\r\n {\r\n return false;\r\n }\r\n\r\n var s = (((y1 - point.y) * (x2 - x1)) - ((x1 - point.x) * (y2 - y1))) / L2;\r\n\r\n return Math.abs(s) * Math.sqrt(L2);\r\n};\r\n\r\nmodule.exports = GetShortestDistance;\r\n\n\n/***/ }),\n\n/***/ 98770:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculate the height of the given line.\r\n *\r\n * @function Phaser.Geom.Line.Height\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Line} line - The line to calculate the height of.\r\n *\r\n * @return {number} The height of the line.\r\n */\r\nvar Height = function (line)\r\n{\r\n return Math.abs(line.y1 - line.y2);\r\n};\r\n\r\nmodule.exports = Height;\r\n\n\n/***/ }),\n\n/***/ 35001:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculate the length of the given line.\r\n *\r\n * @function Phaser.Geom.Line.Length\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Line} line - The line to calculate the length of.\r\n *\r\n * @return {number} The length of the line.\r\n */\r\nvar Length = function (line)\r\n{\r\n return Math.sqrt((line.x2 - line.x1) * (line.x2 - line.x1) + (line.y2 - line.y1) * (line.y2 - line.y1));\r\n};\r\n\r\nmodule.exports = Length;\r\n\n\n/***/ }),\n\n/***/ 23031:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar GetPoint = __webpack_require__(13151);\r\nvar GetPoints = __webpack_require__(15258);\r\nvar GEOM_CONST = __webpack_require__(23777);\r\nvar Random = __webpack_require__(65822);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * Defines a Line segment, a part of a line between two endpoints.\r\n *\r\n * @class Line\r\n * @memberof Phaser.Geom\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x1=0] - The x coordinate of the lines starting point.\r\n * @param {number} [y1=0] - The y coordinate of the lines starting point.\r\n * @param {number} [x2=0] - The x coordinate of the lines ending point.\r\n * @param {number} [y2=0] - The y coordinate of the lines ending point.\r\n */\r\nvar Line = new Class({\r\n\r\n initialize:\r\n\r\n function Line (x1, y1, x2, y2)\r\n {\r\n if (x1 === undefined) { x1 = 0; }\r\n if (y1 === undefined) { y1 = 0; }\r\n if (x2 === undefined) { x2 = 0; }\r\n if (y2 === undefined) { y2 = 0; }\r\n\r\n /**\r\n * The geometry constant type of this object: `GEOM_CONST.LINE`.\r\n * Used for fast type comparisons.\r\n *\r\n * @name Phaser.Geom.Line#type\r\n * @type {number}\r\n * @readonly\r\n * @since 3.19.0\r\n */\r\n this.type = GEOM_CONST.LINE;\r\n\r\n /**\r\n * The x coordinate of the lines starting point.\r\n *\r\n * @name Phaser.Geom.Line#x1\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.x1 = x1;\r\n\r\n /**\r\n * The y coordinate of the lines starting point.\r\n *\r\n * @name Phaser.Geom.Line#y1\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.y1 = y1;\r\n\r\n /**\r\n * The x coordinate of the lines ending point.\r\n *\r\n * @name Phaser.Geom.Line#x2\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.x2 = x2;\r\n\r\n /**\r\n * The y coordinate of the lines ending point.\r\n *\r\n * @name Phaser.Geom.Line#y2\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.y2 = y2;\r\n },\r\n\r\n /**\r\n * Get a point on a line that's a given percentage along its length.\r\n *\r\n * @method Phaser.Geom.Line#getPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [output,$return]\r\n *\r\n * @param {number} position - A value between 0 and 1, where 0 is the start, 0.5 is the middle and 1 is the end of the line.\r\n * @param {(Phaser.Geom.Point|object)} [output] - An optional point, or point-like object, to store the coordinates of the point on the line.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} A Point, or point-like object, containing the coordinates of the point on the line.\r\n */\r\n getPoint: function (position, output)\r\n {\r\n return GetPoint(this, position, output);\r\n },\r\n\r\n /**\r\n * Get a number of points along a line's length.\r\n *\r\n * Provide a `quantity` to get an exact number of points along the line.\r\n *\r\n * Provide a `stepRate` to ensure a specific distance between each point on the line. Set `quantity` to `0` when\r\n * providing a `stepRate`.\r\n *\r\n * @method Phaser.Geom.Line#getPoints\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point[]} O - [output,$return]\r\n *\r\n * @param {number} quantity - The number of points to place on the line. Set to `0` to use `stepRate` instead.\r\n * @param {number} [stepRate] - The distance between each point on the line. When set, `quantity` is implied and should be set to `0`.\r\n * @param {(array|Phaser.Geom.Point[])} [output] - An optional array of Points, or point-like objects, to store the coordinates of the points on the line.\r\n *\r\n * @return {(array|Phaser.Geom.Point[])} An array of Points, or point-like objects, containing the coordinates of the points on the line.\r\n */\r\n getPoints: function (quantity, stepRate, output)\r\n {\r\n return GetPoints(this, quantity, stepRate, output);\r\n },\r\n\r\n /**\r\n * Get a random Point on the Line.\r\n *\r\n * @method Phaser.Geom.Line#getRandomPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [point,$return]\r\n *\r\n * @param {(Phaser.Geom.Point|object)} [point] - An instance of a Point to be modified.\r\n *\r\n * @return {Phaser.Geom.Point} A random Point on the Line.\r\n */\r\n getRandomPoint: function (point)\r\n {\r\n return Random(this, point);\r\n },\r\n\r\n /**\r\n * Set new coordinates for the line endpoints.\r\n *\r\n * @method Phaser.Geom.Line#setTo\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x1=0] - The x coordinate of the lines starting point.\r\n * @param {number} [y1=0] - The y coordinate of the lines starting point.\r\n * @param {number} [x2=0] - The x coordinate of the lines ending point.\r\n * @param {number} [y2=0] - The y coordinate of the lines ending point.\r\n *\r\n * @return {this} This Line object.\r\n */\r\n setTo: function (x1, y1, x2, y2)\r\n {\r\n if (x1 === undefined) { x1 = 0; }\r\n if (y1 === undefined) { y1 = 0; }\r\n if (x2 === undefined) { x2 = 0; }\r\n if (y2 === undefined) { y2 = 0; }\r\n\r\n this.x1 = x1;\r\n this.y1 = y1;\r\n\r\n this.x2 = x2;\r\n this.y2 = y2;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets this Line to match the x/y coordinates of the two given Vector2Like objects.\r\n *\r\n * @method Phaser.Geom.Line#setFromObjects\r\n * @since 3.70.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} start - Any object with public `x` and `y` properties, whose values will be assigned to the x1/y1 components of this Line.\r\n * @param {Phaser.Types.Math.Vector2Like} end - Any object with public `x` and `y` properties, whose values will be assigned to the x2/y2 components of this Line.\r\n *\r\n * @return {this} This Line object.\r\n */\r\n setFromObjects: function (start, end)\r\n {\r\n this.x1 = start.x;\r\n this.y1 = start.y;\r\n\r\n this.x2 = end.x;\r\n this.y2 = end.y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns a Vector2 object that corresponds to the start of this Line.\r\n *\r\n * @method Phaser.Geom.Line#getPointA\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [vec2,$return]\r\n *\r\n * @param {Phaser.Math.Vector2} [vec2] - A Vector2 object to set the results in. If `undefined` a new Vector2 will be created.\r\n *\r\n * @return {Phaser.Math.Vector2} A Vector2 object that corresponds to the start of this Line.\r\n */\r\n getPointA: function (vec2)\r\n {\r\n if (vec2 === undefined) { vec2 = new Vector2(); }\r\n\r\n vec2.set(this.x1, this.y1);\r\n\r\n return vec2;\r\n },\r\n\r\n /**\r\n * Returns a Vector2 object that corresponds to the end of this Line.\r\n *\r\n * @method Phaser.Geom.Line#getPointB\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [vec2,$return]\r\n *\r\n * @param {Phaser.Math.Vector2} [vec2] - A Vector2 object to set the results in. If `undefined` a new Vector2 will be created.\r\n *\r\n * @return {Phaser.Math.Vector2} A Vector2 object that corresponds to the end of this Line.\r\n */\r\n getPointB: function (vec2)\r\n {\r\n if (vec2 === undefined) { vec2 = new Vector2(); }\r\n\r\n vec2.set(this.x2, this.y2);\r\n\r\n return vec2;\r\n },\r\n\r\n /**\r\n * The left position of the Line.\r\n *\r\n * @name Phaser.Geom.Line#left\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n left: {\r\n\r\n get: function ()\r\n {\r\n return Math.min(this.x1, this.x2);\r\n },\r\n\r\n set: function (value)\r\n {\r\n if (this.x1 <= this.x2)\r\n {\r\n this.x1 = value;\r\n }\r\n else\r\n {\r\n this.x2 = value;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The right position of the Line.\r\n *\r\n * @name Phaser.Geom.Line#right\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n right: {\r\n\r\n get: function ()\r\n {\r\n return Math.max(this.x1, this.x2);\r\n },\r\n\r\n set: function (value)\r\n {\r\n if (this.x1 > this.x2)\r\n {\r\n this.x1 = value;\r\n }\r\n else\r\n {\r\n this.x2 = value;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The top position of the Line.\r\n *\r\n * @name Phaser.Geom.Line#top\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n top: {\r\n\r\n get: function ()\r\n {\r\n return Math.min(this.y1, this.y2);\r\n },\r\n\r\n set: function (value)\r\n {\r\n if (this.y1 <= this.y2)\r\n {\r\n this.y1 = value;\r\n }\r\n else\r\n {\r\n this.y2 = value;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The bottom position of the Line.\r\n *\r\n * @name Phaser.Geom.Line#bottom\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n bottom: {\r\n\r\n get: function ()\r\n {\r\n return Math.max(this.y1, this.y2);\r\n },\r\n\r\n set: function (value)\r\n {\r\n if (this.y1 > this.y2)\r\n {\r\n this.y1 = value;\r\n }\r\n else\r\n {\r\n this.y2 = value;\r\n }\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Line;\r\n\n\n/***/ }),\n\n/***/ 64795:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar MATH_CONST = __webpack_require__(36383);\r\nvar Wrap = __webpack_require__(15994);\r\nvar Angle = __webpack_require__(91938);\r\n\r\n/**\r\n * Get the angle of the normal of the given line in radians.\r\n *\r\n * @function Phaser.Geom.Line.NormalAngle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Line} line - The line to calculate the angle of the normal of.\r\n *\r\n * @return {number} The angle of the normal of the line in radians.\r\n */\r\nvar NormalAngle = function (line)\r\n{\r\n var angle = Angle(line) - MATH_CONST.TAU;\r\n\r\n return Wrap(angle, -Math.PI, Math.PI);\r\n};\r\n\r\nmodule.exports = NormalAngle;\r\n\n\n/***/ }),\n\n/***/ 52616:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar MATH_CONST = __webpack_require__(36383);\r\nvar Angle = __webpack_require__(91938);\r\n\r\n/**\r\n * Returns the x component of the normal vector of the given line.\r\n *\r\n * @function Phaser.Geom.Line.NormalX\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Line} line - The Line object to get the normal value from.\r\n *\r\n * @return {number} The x component of the normal vector of the line.\r\n */\r\nvar NormalX = function (line)\r\n{\r\n return Math.cos(Angle(line) - MATH_CONST.TAU);\r\n};\r\n\r\nmodule.exports = NormalX;\r\n\n\n/***/ }),\n\n/***/ 87231:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar MATH_CONST = __webpack_require__(36383);\r\nvar Angle = __webpack_require__(91938);\r\n\r\n/**\r\n * The Y value of the normal of the given line.\r\n * The normal of a line is a vector that points perpendicular from it.\r\n *\r\n * @function Phaser.Geom.Line.NormalY\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Line} line - The line to calculate the normal of.\r\n *\r\n * @return {number} The Y value of the normal of the Line.\r\n */\r\nvar NormalY = function (line)\r\n{\r\n return Math.sin(Angle(line) - MATH_CONST.TAU);\r\n};\r\n\r\nmodule.exports = NormalY;\r\n\n\n/***/ }),\n\n/***/ 89662:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Offset a line by the given amount.\r\n *\r\n * @function Phaser.Geom.Line.Offset\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Line} O - [line,$return]\r\n *\r\n * @param {Phaser.Geom.Line} line - The line to offset.\r\n * @param {number} x - The horizontal offset to add to the line.\r\n * @param {number} y - The vertical offset to add to the line.\r\n *\r\n * @return {Phaser.Geom.Line} The offset line.\r\n */\r\nvar Offset = function (line, x, y)\r\n{\r\n line.x1 += x;\r\n line.y1 += y;\r\n\r\n line.x2 += x;\r\n line.y2 += y;\r\n\r\n return line;\r\n};\r\n\r\nmodule.exports = Offset;\r\n\n\n/***/ }),\n\n/***/ 71165:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculate the perpendicular slope of the given line.\r\n *\r\n * @function Phaser.Geom.Line.PerpSlope\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Line} line - The line to calculate the perpendicular slope of.\r\n *\r\n * @return {number} The perpendicular slope of the line.\r\n */\r\nvar PerpSlope = function (line)\r\n{\r\n return -((line.x2 - line.x1) / (line.y2 - line.y1));\r\n};\r\n\r\nmodule.exports = PerpSlope;\r\n\n\n/***/ }),\n\n/***/ 65822:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Returns a random point on a given Line.\r\n *\r\n * @function Phaser.Geom.Line.Random\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Line} line - The Line to calculate the random Point on.\r\n * @param {(Phaser.Geom.Point|object)} [out] - An instance of a Point to be modified.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} A random Point on the Line.\r\n */\r\nvar Random = function (line, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n var t = Math.random();\r\n\r\n out.x = line.x1 + t * (line.x2 - line.x1);\r\n out.y = line.y1 + t * (line.y2 - line.y1);\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = Random;\r\n\n\n/***/ }),\n\n/***/ 69777:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Angle = __webpack_require__(91938);\r\nvar NormalAngle = __webpack_require__(64795);\r\n\r\n/**\r\n * Calculate the reflected angle between two lines.\r\n *\r\n * This is the outgoing angle based on the angle of Line 1 and the normalAngle of Line 2.\r\n *\r\n * @function Phaser.Geom.Line.ReflectAngle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Line} lineA - The first line.\r\n * @param {Phaser.Geom.Line} lineB - The second line.\r\n *\r\n * @return {number} The reflected angle between each line.\r\n */\r\nvar ReflectAngle = function (lineA, lineB)\r\n{\r\n return (2 * NormalAngle(lineB) - Math.PI - Angle(lineA));\r\n};\r\n\r\nmodule.exports = ReflectAngle;\r\n\n\n/***/ }),\n\n/***/ 39706:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar RotateAroundXY = __webpack_require__(64400);\r\n\r\n/**\r\n * Rotate a line around its midpoint by the given angle in radians.\r\n *\r\n * @function Phaser.Geom.Line.Rotate\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Line} O - [line,$return]\r\n *\r\n * @param {Phaser.Geom.Line} line - The line to rotate.\r\n * @param {number} angle - The angle of rotation in radians.\r\n *\r\n * @return {Phaser.Geom.Line} The rotated line.\r\n */\r\nvar Rotate = function (line, angle)\r\n{\r\n var x = (line.x1 + line.x2) / 2;\r\n var y = (line.y1 + line.y2) / 2;\r\n\r\n return RotateAroundXY(line, x, y, angle);\r\n};\r\n\r\nmodule.exports = Rotate;\r\n\n\n/***/ }),\n\n/***/ 82585:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar RotateAroundXY = __webpack_require__(64400);\r\n\r\n/**\r\n * Rotate a line around a point by the given angle in radians.\r\n *\r\n * @function Phaser.Geom.Line.RotateAroundPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Line} O - [line,$return]\r\n *\r\n * @param {Phaser.Geom.Line} line - The line to rotate.\r\n * @param {(Phaser.Geom.Point|object)} point - The point to rotate the line around.\r\n * @param {number} angle - The angle of rotation in radians.\r\n *\r\n * @return {Phaser.Geom.Line} The rotated line.\r\n */\r\nvar RotateAroundPoint = function (line, point, angle)\r\n{\r\n return RotateAroundXY(line, point.x, point.y, angle);\r\n};\r\n\r\nmodule.exports = RotateAroundPoint;\r\n\n\n/***/ }),\n\n/***/ 64400:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Rotate a line around the given coordinates by the given angle in radians.\r\n *\r\n * @function Phaser.Geom.Line.RotateAroundXY\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Line} O - [line,$return]\r\n *\r\n * @param {Phaser.Geom.Line} line - The line to rotate.\r\n * @param {number} x - The horizontal coordinate to rotate the line around.\r\n * @param {number} y - The vertical coordinate to rotate the line around.\r\n * @param {number} angle - The angle of rotation in radians.\r\n *\r\n * @return {Phaser.Geom.Line} The rotated line.\r\n */\r\nvar RotateAroundXY = function (line, x, y, angle)\r\n{\r\n var c = Math.cos(angle);\r\n var s = Math.sin(angle);\r\n\r\n var tx = line.x1 - x;\r\n var ty = line.y1 - y;\r\n\r\n line.x1 = tx * c - ty * s + x;\r\n line.y1 = tx * s + ty * c + y;\r\n\r\n tx = line.x2 - x;\r\n ty = line.y2 - y;\r\n\r\n line.x2 = tx * c - ty * s + x;\r\n line.y2 = tx * s + ty * c + y;\r\n\r\n return line;\r\n};\r\n\r\nmodule.exports = RotateAroundXY;\r\n\n\n/***/ }),\n\n/***/ 62377:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Set a line to a given position, angle and length.\r\n *\r\n * @function Phaser.Geom.Line.SetToAngle\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Line} O - [line,$return]\r\n *\r\n * @param {Phaser.Geom.Line} line - The line to set.\r\n * @param {number} x - The horizontal start position of the line.\r\n * @param {number} y - The vertical start position of the line.\r\n * @param {number} angle - The angle of the line in radians.\r\n * @param {number} length - The length of the line.\r\n *\r\n * @return {Phaser.Geom.Line} The updated line.\r\n */\r\nvar SetToAngle = function (line, x, y, angle, length)\r\n{\r\n line.x1 = x;\r\n line.y1 = y;\r\n\r\n line.x2 = x + (Math.cos(angle) * length);\r\n line.y2 = y + (Math.sin(angle) * length);\r\n\r\n return line;\r\n};\r\n\r\nmodule.exports = SetToAngle;\r\n\n\n/***/ }),\n\n/***/ 71366:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculate the slope of the given line.\r\n *\r\n * @function Phaser.Geom.Line.Slope\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Line} line - The line to calculate the slope of.\r\n *\r\n * @return {number} The slope of the line.\r\n */\r\nvar Slope = function (line)\r\n{\r\n return (line.y2 - line.y1) / (line.x2 - line.x1);\r\n};\r\n\r\nmodule.exports = Slope;\r\n\n\n/***/ }),\n\n/***/ 10809:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculate the width of the given line.\r\n *\r\n * @function Phaser.Geom.Line.Width\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Line} line - The line to calculate the width of.\r\n *\r\n * @return {number} The width of the line.\r\n */\r\nvar Width = function (line)\r\n{\r\n return Math.abs(line.x1 - line.x2);\r\n};\r\n\r\nmodule.exports = Width;\r\n\n\n/***/ }),\n\n/***/ 2529:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Line = __webpack_require__(23031);\r\n\r\nLine.Angle = __webpack_require__(91938);\r\nLine.BresenhamPoints = __webpack_require__(84993);\r\nLine.CenterOn = __webpack_require__(36469);\r\nLine.Clone = __webpack_require__(31116);\r\nLine.CopyFrom = __webpack_require__(59944);\r\nLine.Equals = __webpack_require__(59220);\r\nLine.Extend = __webpack_require__(78177);\r\nLine.GetEasedPoints = __webpack_require__(26708);\r\nLine.GetMidPoint = __webpack_require__(32125);\r\nLine.GetNearestPoint = __webpack_require__(99569);\r\nLine.GetNormal = __webpack_require__(34638);\r\nLine.GetPoint = __webpack_require__(13151);\r\nLine.GetPoints = __webpack_require__(15258);\r\nLine.GetShortestDistance = __webpack_require__(26408);\r\nLine.Height = __webpack_require__(98770);\r\nLine.Length = __webpack_require__(35001);\r\nLine.NormalAngle = __webpack_require__(64795);\r\nLine.NormalX = __webpack_require__(52616);\r\nLine.NormalY = __webpack_require__(87231);\r\nLine.Offset = __webpack_require__(89662);\r\nLine.PerpSlope = __webpack_require__(71165);\r\nLine.Random = __webpack_require__(65822);\r\nLine.ReflectAngle = __webpack_require__(69777);\r\nLine.Rotate = __webpack_require__(39706);\r\nLine.RotateAroundPoint = __webpack_require__(82585);\r\nLine.RotateAroundXY = __webpack_require__(64400);\r\nLine.SetToAngle = __webpack_require__(62377);\r\nLine.Slope = __webpack_require__(71366);\r\nLine.Width = __webpack_require__(10809);\r\n\r\nmodule.exports = Line;\r\n\n\n/***/ }),\n\n/***/ 83997:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Rectangle = __webpack_require__(87841);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * Returns the length of the line.\r\n *\r\n * @ignore\r\n * @private\r\n *\r\n * @param {number} x1 - The x1 coordinate.\r\n * @param {number} y1 - The y1 coordinate.\r\n * @param {number} x2 - The x2 coordinate.\r\n * @param {number} y2 - The y2 coordinate.\r\n *\r\n * @return {number} The length of the line.\r\n */\r\nfunction GetLength (x1, y1, x2, y2)\r\n{\r\n var x = x1 - x2;\r\n var y = y1 - y2;\r\n var magnitude = (x * x) + (y * y);\r\n\r\n return Math.sqrt(magnitude);\r\n}\r\n\r\n/**\r\n * @classdesc\r\n * A Face Geometry Object.\r\n *\r\n * A Face is used by the Mesh Game Object. A Mesh consists of one, or more, faces that are\r\n * used to render the Mesh Game Objects in WebGL.\r\n *\r\n * A Face consists of 3 Vertex instances, for the 3 corners of the face and methods to help\r\n * you modify and test them.\r\n *\r\n * @class Face\r\n * @memberof Phaser.Geom.Mesh\r\n * @constructor\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Geom.Mesh.Vertex} vertex1 - The first vertex of the Face.\r\n * @param {Phaser.Geom.Mesh.Vertex} vertex2 - The second vertex of the Face.\r\n * @param {Phaser.Geom.Mesh.Vertex} vertex3 - The third vertex of the Face.\r\n */\r\nvar Face = new Class({\r\n\r\n initialize:\r\n\r\n function Face (vertex1, vertex2, vertex3)\r\n {\r\n /**\r\n * The first vertex in this Face.\r\n *\r\n * @name Phaser.Geom.Mesh.Face#vertex1\r\n * @type {Phaser.Geom.Mesh.Vertex}\r\n * @since 3.50.0\r\n */\r\n this.vertex1 = vertex1;\r\n\r\n /**\r\n * The second vertex in this Face.\r\n *\r\n * @name Phaser.Geom.Mesh.Face#vertex2\r\n * @type {Phaser.Geom.Mesh.Vertex}\r\n * @since 3.50.0\r\n */\r\n this.vertex2 = vertex2;\r\n\r\n /**\r\n * The third vertex in this Face.\r\n *\r\n * @name Phaser.Geom.Mesh.Face#vertex3\r\n * @type {Phaser.Geom.Mesh.Vertex}\r\n * @since 3.50.0\r\n */\r\n this.vertex3 = vertex3;\r\n\r\n /**\r\n * The bounds of this Face.\r\n *\r\n * Be sure to call the `Face.updateBounds` method _before_ using this property.\r\n *\r\n * @name Phaser.Geom.Mesh.Face#bounds\r\n * @type {Phaser.Geom.Rectangle}\r\n * @since 3.50.0\r\n */\r\n this.bounds = new Rectangle();\r\n\r\n /**\r\n * The face inCenter. Do not access directly, instead use the `getInCenter` method.\r\n *\r\n * @name Phaser.Geom.Mesh.Face#_inCenter\r\n * @type {Phaser.Math.Vector2}\r\n * @private\r\n * @since 3.50.0\r\n */\r\n this._inCenter = new Vector2();\r\n },\r\n\r\n /**\r\n * Calculates and returns the in-center position of this Face.\r\n *\r\n * @method Phaser.Geom.Mesh.Face#getInCenter\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [local=true] Return the in center from the un-transformed vertex positions (`true`), or transformed? (`false`)\r\n *\r\n * @return {Phaser.Math.Vector2} A Vector2 containing the in center position of this Face.\r\n */\r\n getInCenter: function (local)\r\n {\r\n if (local === undefined) { local = true; }\r\n\r\n var v1 = this.vertex1;\r\n var v2 = this.vertex2;\r\n var v3 = this.vertex3;\r\n\r\n var v1x;\r\n var v1y;\r\n\r\n var v2x;\r\n var v2y;\r\n\r\n var v3x;\r\n var v3y;\r\n\r\n if (local)\r\n {\r\n v1x = v1.x;\r\n v1y = v1.y;\r\n\r\n v2x = v2.x;\r\n v2y = v2.y;\r\n\r\n v3x = v3.x;\r\n v3y = v3.y;\r\n }\r\n else\r\n {\r\n v1x = v1.vx;\r\n v1y = v1.vy;\r\n\r\n v2x = v2.vx;\r\n v2y = v2.vy;\r\n\r\n v3x = v3.vx;\r\n v3y = v3.vy;\r\n }\r\n\r\n var d1 = GetLength(v3x, v3y, v2x, v2y);\r\n var d2 = GetLength(v1x, v1y, v3x, v3y);\r\n var d3 = GetLength(v2x, v2y, v1x, v1y);\r\n\r\n var p = d1 + d2 + d3;\r\n\r\n return this._inCenter.set(\r\n (v1x * d1 + v2x * d2 + v3x * d3) / p,\r\n (v1y * d1 + v2y * d2 + v3y * d3) / p\r\n );\r\n },\r\n\r\n /**\r\n * Checks if the given coordinates are within this Face.\r\n *\r\n * You can optionally provide a transform matrix. If given, the Face vertices\r\n * will be transformed first, before being checked against the coordinates.\r\n *\r\n * @method Phaser.Geom.Mesh.Face#contains\r\n * @since 3.50.0\r\n *\r\n * @param {number} x - The horizontal position to check.\r\n * @param {number} y - The vertical position to check.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} [calcMatrix] - Optional transform matrix to apply to the vertices before comparison.\r\n *\r\n * @return {boolean} `true` if the coordinates lay within this Face, otherwise `false`.\r\n */\r\n contains: function (x, y, calcMatrix)\r\n {\r\n var vertex1 = this.vertex1;\r\n var vertex2 = this.vertex2;\r\n var vertex3 = this.vertex3;\r\n\r\n var v1x = vertex1.vx;\r\n var v1y = vertex1.vy;\r\n\r\n var v2x = vertex2.vx;\r\n var v2y = vertex2.vy;\r\n\r\n var v3x = vertex3.vx;\r\n var v3y = vertex3.vy;\r\n\r\n if (calcMatrix)\r\n {\r\n var a = calcMatrix.a;\r\n var b = calcMatrix.b;\r\n var c = calcMatrix.c;\r\n var d = calcMatrix.d;\r\n var e = calcMatrix.e;\r\n var f = calcMatrix.f;\r\n\r\n v1x = vertex1.vx * a + vertex1.vy * c + e;\r\n v1y = vertex1.vx * b + vertex1.vy * d + f;\r\n\r\n v2x = vertex2.vx * a + vertex2.vy * c + e;\r\n v2y = vertex2.vx * b + vertex2.vy * d + f;\r\n\r\n v3x = vertex3.vx * a + vertex3.vy * c + e;\r\n v3y = vertex3.vx * b + vertex3.vy * d + f;\r\n }\r\n\r\n var t0x = v3x - v1x;\r\n var t0y = v3y - v1y;\r\n\r\n var t1x = v2x - v1x;\r\n var t1y = v2y - v1y;\r\n\r\n var t2x = x - v1x;\r\n var t2y = y - v1y;\r\n\r\n var dot00 = (t0x * t0x) + (t0y * t0y);\r\n var dot01 = (t0x * t1x) + (t0y * t1y);\r\n var dot02 = (t0x * t2x) + (t0y * t2y);\r\n var dot11 = (t1x * t1x) + (t1y * t1y);\r\n var dot12 = (t1x * t2x) + (t1y * t2y);\r\n\r\n // Compute barycentric coordinates\r\n var bc = ((dot00 * dot11) - (dot01 * dot01));\r\n var inv = (bc === 0) ? 0 : (1 / bc);\r\n var u = ((dot11 * dot02) - (dot01 * dot12)) * inv;\r\n var v = ((dot00 * dot12) - (dot01 * dot02)) * inv;\r\n\r\n return (u >= 0 && v >= 0 && (u + v < 1));\r\n },\r\n\r\n /**\r\n * Checks if the vertices in this Face are orientated counter-clockwise, or not.\r\n *\r\n * It checks the transformed position of the vertices, not the local one.\r\n *\r\n * @method Phaser.Geom.Mesh.Face#isCounterClockwise\r\n * @since 3.50.0\r\n *\r\n * @param {number} z - The z-axis value to test against. Typically the `Mesh.modelPosition.z`.\r\n *\r\n * @return {boolean} `true` if the vertices in this Face run counter-clockwise, otherwise `false`.\r\n */\r\n isCounterClockwise: function (z)\r\n {\r\n var v1 = this.vertex1;\r\n var v2 = this.vertex2;\r\n var v3 = this.vertex3;\r\n\r\n var d = (v2.vx - v1.vx) * (v3.vy - v1.vy) - (v2.vy - v1.vy) * (v3.vx - v1.vx);\r\n\r\n return (z <= 0) ? d >= 0 : d < 0;\r\n },\r\n\r\n /**\r\n * Loads the data from this Vertex into the given Typed Arrays.\r\n *\r\n * @method Phaser.Geom.Mesh.Face#load\r\n * @since 3.50.0\r\n *\r\n * @param {Float32Array} F32 - A Float32 Array to insert the position, UV and unit data in to.\r\n * @param {Uint32Array} U32 - A Uint32 Array to insert the color and alpha data in to.\r\n * @param {number} offset - The index of the array to insert this Vertex to.\r\n * @param {number} textureUnit - The texture unit currently in use.\r\n * @param {number} tintEffect - The tint effect to use.\r\n *\r\n * @return {number} The new vertex index array offset.\r\n */\r\n load: function (F32, U32, offset, textureUnit, tintEffect)\r\n {\r\n offset = this.vertex1.load(F32, U32, offset, textureUnit, tintEffect);\r\n offset = this.vertex2.load(F32, U32, offset, textureUnit, tintEffect);\r\n offset = this.vertex3.load(F32, U32, offset, textureUnit, tintEffect);\r\n\r\n return offset;\r\n },\r\n\r\n /**\r\n * Transforms all Face vertices by the given matrix, storing the results in their `vx`, `vy` and `vz` properties.\r\n *\r\n * @method Phaser.Geom.Mesh.Face#transformCoordinatesLocal\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Math.Matrix4} transformMatrix - The transform matrix to apply to this vertex.\r\n * @param {number} width - The width of the parent Mesh.\r\n * @param {number} height - The height of the parent Mesh.\r\n * @param {number} cameraZ - The z position of the MeshCamera.\r\n *\r\n * @return {this} This Face instance.\r\n */\r\n transformCoordinatesLocal: function (transformMatrix, width, height, cameraZ)\r\n {\r\n this.vertex1.transformCoordinatesLocal(transformMatrix, width, height, cameraZ);\r\n this.vertex2.transformCoordinatesLocal(transformMatrix, width, height, cameraZ);\r\n this.vertex3.transformCoordinatesLocal(transformMatrix, width, height, cameraZ);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Updates the bounds of this Face, based on the translated values of the vertices.\r\n *\r\n * Call this method prior to accessing the `Face.bounds` property.\r\n *\r\n * @method Phaser.Geom.Mesh.Face#updateBounds\r\n * @since 3.50.0\r\n *\r\n * @return {this} This Face instance.\r\n */\r\n updateBounds: function ()\r\n {\r\n var v1 = this.vertex1;\r\n var v2 = this.vertex2;\r\n var v3 = this.vertex3;\r\n\r\n var bounds = this.bounds;\r\n\r\n bounds.x = Math.min(v1.vx, v2.vx, v3.vx);\r\n bounds.y = Math.min(v1.vy, v2.vy, v3.vy);\r\n bounds.width = Math.max(v1.vx, v2.vx, v3.vx) - bounds.x;\r\n bounds.height = Math.max(v1.vy, v2.vy, v3.vy) - bounds.y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Checks if this Face is within the view of the given Camera.\r\n *\r\n * This method is called in the `MeshWebGLRenderer` function. It performs the following tasks:\r\n *\r\n * First, the `Vertex.update` method is called on each of the vertices. This populates them\r\n * with the new translated values, updating their `tx`, `ty` and `ta` properties.\r\n *\r\n * Then it tests to see if this face is visible due to the alpha values, if not, it returns.\r\n *\r\n * After this, if `hideCCW` is set, it calls `isCounterClockwise` and returns if not.\r\n *\r\n * Finally, it will update the `Face.bounds` based on the newly translated vertex values\r\n * and return the results of an intersection test between the bounds and the camera world view\r\n * rectangle.\r\n *\r\n * @method Phaser.Geom.Mesh.Face#isInView\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to check against.\r\n * @param {boolean} hideCCW - Test the counter-clockwise orientation of the verts?\r\n * @param {number} z - The Cameras z position, used in the CCW test.\r\n * @param {number} alpha - The alpha of the parent object.\r\n * @param {number} a - The parent transform matrix data a component.\r\n * @param {number} b - The parent transform matrix data b component.\r\n * @param {number} c - The parent transform matrix data c component.\r\n * @param {number} d - The parent transform matrix data d component.\r\n * @param {number} e - The parent transform matrix data e component.\r\n * @param {number} f - The parent transform matrix data f component.\r\n * @param {boolean} roundPixels - Round the vertex position or not?\r\n *\r\n * @return {boolean} `true` if this Face can be seen by the Camera.\r\n */\r\n isInView: function (camera, hideCCW, z, alpha, a, b, c, d, e, f, roundPixels)\r\n {\r\n this.update(alpha, a, b, c, d, e, f, roundPixels);\r\n\r\n var v1 = this.vertex1;\r\n var v2 = this.vertex2;\r\n var v3 = this.vertex3;\r\n\r\n // Alpha check first\r\n if (v1.ta <= 0 && v2.ta <= 0 && v3.ta <= 0)\r\n {\r\n return false;\r\n }\r\n\r\n // CCW check\r\n if (hideCCW && !this.isCounterClockwise(z))\r\n {\r\n return false;\r\n }\r\n\r\n // Bounds check\r\n var bounds = this.bounds;\r\n\r\n bounds.x = Math.min(v1.tx, v2.tx, v3.tx);\r\n bounds.y = Math.min(v1.ty, v2.ty, v3.ty);\r\n bounds.width = Math.max(v1.tx, v2.tx, v3.tx) - bounds.x;\r\n bounds.height = Math.max(v1.ty, v2.ty, v3.ty) - bounds.y;\r\n\r\n var cr = camera.x + camera.width;\r\n var cb = camera.y + camera.height;\r\n\r\n if (bounds.width <= 0 || bounds.height <= 0 || camera.width <= 0 || camera.height <= 0)\r\n {\r\n return false;\r\n }\r\n\r\n return !(bounds.right < camera.x || bounds.bottom < camera.y || bounds.x > cr || bounds.y > cb);\r\n },\r\n\r\n /**\r\n * Translates the original UV positions of each vertex by the given amounts.\r\n *\r\n * The original properties `Vertex.u` and `Vertex.v`\r\n * remain unchanged, only the translated properties\r\n * `Vertex.tu` and `Vertex.tv`, as used in rendering,\r\n * are updated.\r\n *\r\n * @method Phaser.Geom.Mesh.Face#scrollUV\r\n * @since 3.60.0\r\n *\r\n * @param {number} x - The amount to scroll the UV u coordinate by.\r\n * @param {number} y - The amount to scroll the UV v coordinate by.\r\n *\r\n * @return {this} This Face instance.\r\n */\r\n scrollUV: function (x, y)\r\n {\r\n this.vertex1.scrollUV(x, y);\r\n this.vertex2.scrollUV(x, y);\r\n this.vertex3.scrollUV(x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Scales the original UV values of each vertex by the given amounts.\r\n *\r\n * The original properties `Vertex.u` and `Vertex.v`\r\n * remain unchanged, only the translated properties\r\n * `Vertex.tu` and `Vertex.tv`, as used in rendering,\r\n * are updated.\r\n *\r\n * @method Phaser.Geom.Mesh.Face#scaleUV\r\n * @since 3.60.0\r\n *\r\n * @param {number} x - The amount to scale the UV u coordinate by.\r\n * @param {number} y - The amount to scale the UV v coordinate by.\r\n *\r\n * @return {this} This Face instance.\r\n */\r\n scaleUV: function (x, y)\r\n {\r\n this.vertex1.scaleUV(x, y);\r\n this.vertex2.scaleUV(x, y);\r\n this.vertex3.scaleUV(x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the color value for each Vertex in this Face.\r\n *\r\n * @method Phaser.Geom.Mesh.Face#setColor\r\n * @since 3.60.0\r\n *\r\n * @param {number} color - The color value for each vertex.\r\n *\r\n * @return {this} This Face instance.\r\n */\r\n setColor: function (color)\r\n {\r\n this.vertex1.color = color;\r\n this.vertex2.color = color;\r\n this.vertex3.color = color;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calls the `Vertex.update` method on each of the vertices. This populates them\r\n * with the new translated values, updating their `tx`, `ty` and `ta` properties.\r\n *\r\n * @method Phaser.Geom.Mesh.Face#update\r\n * @since 3.60.0\r\n *\r\n * @param {number} alpha - The alpha of the parent object.\r\n * @param {number} a - The parent transform matrix data a component.\r\n * @param {number} b - The parent transform matrix data b component.\r\n * @param {number} c - The parent transform matrix data c component.\r\n * @param {number} d - The parent transform matrix data d component.\r\n * @param {number} e - The parent transform matrix data e component.\r\n * @param {number} f - The parent transform matrix data f component.\r\n * @param {boolean} roundPixels - Round the vertex position or not?\r\n *\r\n * @return {this} This Face instance.\r\n */\r\n update: function (alpha, a, b, c, d, e, f, roundPixels)\r\n {\r\n this.vertex1.update(a, b, c, d, e, f, roundPixels, alpha);\r\n this.vertex2.update(a, b, c, d, e, f, roundPixels, alpha);\r\n this.vertex3.update(a, b, c, d, e, f, roundPixels, alpha);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Translates the vertices of this Face by the given amounts.\r\n *\r\n * The actual vertex positions are adjusted, not their transformed position.\r\n *\r\n * Therefore, this updates the vertex data directly.\r\n *\r\n * @method Phaser.Geom.Mesh.Face#translate\r\n * @since 3.50.0\r\n *\r\n * @param {number} x - The amount to horizontally translate by.\r\n * @param {number} [y=0] - The amount to vertically translate by.\r\n *\r\n * @return {this} This Face instance.\r\n */\r\n translate: function (x, y)\r\n {\r\n if (y === undefined) { y = 0; }\r\n\r\n var v1 = this.vertex1;\r\n var v2 = this.vertex2;\r\n var v3 = this.vertex3;\r\n\r\n v1.x += x;\r\n v1.y += y;\r\n\r\n v2.x += x;\r\n v2.y += y;\r\n\r\n v3.x += x;\r\n v3.y += y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The x coordinate of this Face, based on the in center position of the Face.\r\n *\r\n * @name Phaser.Geom.Mesh.Face#x\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n x: {\r\n\r\n get: function ()\r\n {\r\n return this.getInCenter().x;\r\n },\r\n\r\n set: function (value)\r\n {\r\n var current = this.getInCenter();\r\n\r\n this.translate(value - current.x, 0);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The y coordinate of this Face, based on the in center position of the Face.\r\n *\r\n * @name Phaser.Geom.Mesh.Face#y\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n y: {\r\n\r\n get: function ()\r\n {\r\n return this.getInCenter().y;\r\n },\r\n\r\n set: function (value)\r\n {\r\n var current = this.getInCenter();\r\n\r\n this.translate(0, value - current.y);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Set the alpha value of this Face.\r\n *\r\n * Each vertex is given the same value. If you need to adjust the alpha on a per-vertex basis\r\n * then use the `Vertex.alpha` property instead.\r\n *\r\n * When getting the alpha of this Face, it will return an average of the alpha\r\n * component of all three vertices.\r\n *\r\n * @name Phaser.Geom.Mesh.Face#alpha\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n alpha: {\r\n\r\n get: function ()\r\n {\r\n var v1 = this.vertex1;\r\n var v2 = this.vertex2;\r\n var v3 = this.vertex3;\r\n\r\n return (v1.alpha + v2.alpha + v3.alpha) / 3;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.vertex1.alpha = value;\r\n this.vertex2.alpha = value;\r\n this.vertex3.alpha = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The depth of this Face, which is an average of the z component of all three vertices.\r\n *\r\n * The depth is calculated based on the transformed z value, not the local one.\r\n *\r\n * @name Phaser.Geom.Mesh.Face#depth\r\n * @type {number}\r\n * @readonly\r\n * @since 3.50.0\r\n */\r\n depth: {\r\n\r\n get: function ()\r\n {\r\n var v1 = this.vertex1;\r\n var v2 = this.vertex2;\r\n var v3 = this.vertex3;\r\n\r\n return (v1.vz + v2.vz + v3.vz) / 3;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Destroys this Face and nulls the references to the vertices.\r\n *\r\n * @method Phaser.Geom.Mesh.Face#destroy\r\n * @since 3.50.0\r\n */\r\n destroy: function ()\r\n {\r\n this.vertex1 = null;\r\n this.vertex2 = null;\r\n this.vertex3 = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Face;\r\n\n\n/***/ }),\n\n/***/ 48803:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Face = __webpack_require__(83997);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar Matrix4 = __webpack_require__(37867);\r\nvar Vector3 = __webpack_require__(25836);\r\nvar Vertex = __webpack_require__(39318);\r\n\r\nvar tempPosition = new Vector3();\r\nvar tempRotation = new Vector3();\r\nvar tempMatrix = new Matrix4();\r\n\r\n/**\r\n * Creates a grid of vertices based on the given configuration object and optionally adds it to a Mesh.\r\n *\r\n * The size of the grid is given in pixels. An example configuration may be:\r\n *\r\n * `{ width: 256, height: 256, widthSegments: 2, heightSegments: 2, tile: true }`\r\n *\r\n * This will create a grid 256 x 256 pixels in size, split into 2 x 2 segments, with\r\n * the texture tiling across the cells.\r\n *\r\n * You can split the grid into segments both vertically and horizontally. This will\r\n * generate two faces per grid segment as a result.\r\n *\r\n * The `tile` parameter allows you to control if the tile will repeat across the grid\r\n * segments, or be displayed in full.\r\n *\r\n * If adding this grid to a Mesh you can offset the grid via the `x` and `y` properties.\r\n *\r\n * UV coordinates are generated based on the given texture and frame in the config. For\r\n * example, no frame is given, the UVs will be in the range 0 to 1. If a frame is given,\r\n * such as from a texture atlas, the UVs will be generated within the range of that frame.\r\n *\r\n * @function Phaser.Geom.Mesh.GenerateGridVerts\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Types.Geom.Mesh.GenerateGridConfig} config - A Grid configuration object.\r\n *\r\n * @return {Phaser.Types.Geom.Mesh.GenerateGridVertsResult} A Grid Result object, containing the generated vertices and indicies.\r\n */\r\nvar GenerateGridVerts = function (config)\r\n{\r\n var mesh = GetFastValue(config, 'mesh');\r\n var texture = GetFastValue(config, 'texture', null);\r\n var frame = GetFastValue(config, 'frame');\r\n var width = GetFastValue(config, 'width', 1);\r\n var height = GetFastValue(config, 'height', width);\r\n var widthSegments = GetFastValue(config, 'widthSegments', 1);\r\n var heightSegments = GetFastValue(config, 'heightSegments', widthSegments);\r\n var posX = GetFastValue(config, 'x', 0);\r\n var posY = GetFastValue(config, 'y', 0);\r\n var posZ = GetFastValue(config, 'z', 0);\r\n var rotateX = GetFastValue(config, 'rotateX', 0);\r\n var rotateY = GetFastValue(config, 'rotateY', 0);\r\n var rotateZ = GetFastValue(config, 'rotateZ', 0);\r\n var zIsUp = GetFastValue(config, 'zIsUp', true);\r\n var isOrtho = GetFastValue(config, 'isOrtho', (mesh) ? mesh.dirtyCache[11] : false);\r\n var colors = GetFastValue(config, 'colors', [ 0xffffff ]);\r\n var alphas = GetFastValue(config, 'alphas', [ 1 ]);\r\n var tile = GetFastValue(config, 'tile', false);\r\n var flipY = GetFastValue(config, 'flipY', false);\r\n\r\n var widthSet = GetFastValue(config, 'width', null);\r\n\r\n var result = {\r\n faces: [],\r\n verts: []\r\n };\r\n\r\n tempPosition.set(posX, posY, posZ);\r\n tempRotation.set(rotateX, rotateY, rotateZ);\r\n tempMatrix.fromRotationXYTranslation(tempRotation, tempPosition, zIsUp);\r\n\r\n var textureFrame;\r\n\r\n if (!texture && mesh)\r\n {\r\n texture = mesh.texture;\r\n\r\n if (!frame)\r\n {\r\n textureFrame = mesh.frame;\r\n }\r\n }\r\n else if (mesh && typeof(texture) === 'string')\r\n {\r\n texture = mesh.scene.sys.textures.get(texture);\r\n }\r\n else if (!texture)\r\n {\r\n // There's nothing more we can do without a texture\r\n return result;\r\n }\r\n\r\n if (!textureFrame)\r\n {\r\n textureFrame = texture.get(frame);\r\n }\r\n\r\n // If the Mesh is ortho and no width / height is given, we'll default to texture sizes (if set!)\r\n if (!widthSet && isOrtho && texture && mesh)\r\n {\r\n width = textureFrame.width / mesh.height;\r\n height = textureFrame.height / mesh.height;\r\n }\r\n\r\n var halfWidth = width / 2;\r\n var halfHeight = height / 2;\r\n\r\n var gridX = Math.floor(widthSegments);\r\n var gridY = Math.floor(heightSegments);\r\n\r\n var gridX1 = gridX + 1;\r\n var gridY1 = gridY + 1;\r\n\r\n var segmentWidth = width / gridX;\r\n var segmentHeight = height / gridY;\r\n\r\n var uvs = [];\r\n var vertices = [];\r\n\r\n var ix;\r\n var iy;\r\n\r\n var frameU0 = 0;\r\n var frameU1 = 1;\r\n var frameV0 = 0;\r\n var frameV1 = 1;\r\n\r\n if (textureFrame)\r\n {\r\n frameU0 = textureFrame.u0;\r\n frameU1 = textureFrame.u1;\r\n\r\n if (!flipY)\r\n {\r\n frameV0 = textureFrame.v0;\r\n frameV1 = textureFrame.v1;\r\n }\r\n else\r\n {\r\n frameV0 = textureFrame.v1;\r\n frameV1 = textureFrame.v0;\r\n }\r\n }\r\n\r\n var frameU = frameU1 - frameU0;\r\n var frameV = frameV1 - frameV0;\r\n\r\n for (iy = 0; iy < gridY1; iy++)\r\n {\r\n var y = iy * segmentHeight - halfHeight;\r\n\r\n for (ix = 0; ix < gridX1; ix++)\r\n {\r\n var x = ix * segmentWidth - halfWidth;\r\n\r\n vertices.push(x, -y);\r\n\r\n var tu = frameU0 + frameU * (ix / gridX);\r\n var tv = frameV0 + frameV * (iy / gridY);\r\n\r\n uvs.push(tu, tv);\r\n }\r\n }\r\n\r\n if (!Array.isArray(colors))\r\n {\r\n colors = [ colors ];\r\n }\r\n\r\n if (!Array.isArray(alphas))\r\n {\r\n alphas = [ alphas ];\r\n }\r\n\r\n var alphaIndex = 0;\r\n var colorIndex = 0;\r\n\r\n for (iy = 0; iy < gridY; iy++)\r\n {\r\n for (ix = 0; ix < gridX; ix++)\r\n {\r\n var a = (ix + gridX1 * iy) * 2;\r\n var b = (ix + gridX1 * (iy + 1)) * 2;\r\n var c = ((ix + 1) + gridX1 * (iy + 1)) * 2;\r\n var d = ((ix + 1) + gridX1 * iy) * 2;\r\n\r\n var color = colors[colorIndex];\r\n var alpha = alphas[alphaIndex];\r\n\r\n var vert1 = new Vertex(vertices[a], vertices[a + 1], 0, uvs[a], uvs[a + 1], color, alpha).transformMat4(tempMatrix);\r\n var vert2 = new Vertex(vertices[b], vertices[b + 1], 0, uvs[b], uvs[b + 1], color, alpha).transformMat4(tempMatrix);\r\n var vert3 = new Vertex(vertices[d], vertices[d + 1], 0, uvs[d], uvs[d + 1], color, alpha).transformMat4(tempMatrix);\r\n var vert4 = new Vertex(vertices[b], vertices[b + 1], 0, uvs[b], uvs[b + 1], color, alpha).transformMat4(tempMatrix);\r\n var vert5 = new Vertex(vertices[c], vertices[c + 1], 0, uvs[c], uvs[c + 1], color, alpha).transformMat4(tempMatrix);\r\n var vert6 = new Vertex(vertices[d], vertices[d + 1], 0, uvs[d], uvs[d + 1], color, alpha).transformMat4(tempMatrix);\r\n\r\n if (tile)\r\n {\r\n vert1.setUVs(frameU0, frameV1);\r\n vert2.setUVs(frameU0, frameV0);\r\n vert3.setUVs(frameU1, frameV1);\r\n vert4.setUVs(frameU0, frameV0);\r\n vert5.setUVs(frameU1, frameV0);\r\n vert6.setUVs(frameU1, frameV1);\r\n }\r\n\r\n colorIndex++;\r\n\r\n if (colorIndex === colors.length)\r\n {\r\n colorIndex = 0;\r\n }\r\n\r\n alphaIndex++;\r\n\r\n if (alphaIndex === alphas.length)\r\n {\r\n alphaIndex = 0;\r\n }\r\n\r\n result.verts.push(vert1, vert2, vert3, vert4, vert5, vert6);\r\n\r\n result.faces.push(\r\n new Face(vert1, vert2, vert3),\r\n new Face(vert4, vert5, vert6)\r\n );\r\n }\r\n }\r\n\r\n if (mesh)\r\n {\r\n mesh.faces = mesh.faces.concat(result.faces);\r\n mesh.vertices = mesh.vertices.concat(result.verts);\r\n }\r\n\r\n return result;\r\n};\r\n\r\nmodule.exports = GenerateGridVerts;\r\n\n\n/***/ }),\n\n/***/ 34684:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Face = __webpack_require__(83997);\r\nvar Matrix4 = __webpack_require__(37867);\r\nvar Vector3 = __webpack_require__(25836);\r\nvar Vertex = __webpack_require__(39318);\r\n\r\nvar tempPosition = new Vector3();\r\nvar tempRotation = new Vector3();\r\nvar tempMatrix = new Matrix4();\r\n\r\n/**\r\n * This method will return an object containing Face and Vertex instances, generated\r\n * from the parsed triangulated OBJ Model data given to this function.\r\n *\r\n * The obj data should have been parsed in advance via the ParseObj function:\r\n *\r\n * ```javascript\r\n * var data = Phaser.Geom.Mesh.ParseObj(rawData, flipUV);\r\n *\r\n * var results = GenerateObjVerts(data);\r\n * ```\r\n *\r\n * Alternatively, you can parse obj files loaded via the OBJFile loader:\r\n *\r\n * ```javascript\r\n * preload ()\r\n * {\r\n * this.load.obj('alien', 'assets/3d/alien.obj);\r\n * }\r\n *\r\n * var results = GenerateObjVerts(this.cache.obj.get('alien));\r\n * ```\r\n *\r\n * Make sure your 3D package has triangulated the model data prior to exporting it.\r\n *\r\n * You can use the data returned by this function to populate the vertices of a Mesh Game Object.\r\n *\r\n * You may add multiple models to a single Mesh, although they will act as one when\r\n * moved or rotated. You can scale the model data, should it be too small (or large) to visualize.\r\n * You can also offset the model via the `x`, `y` and `z` parameters.\r\n *\r\n * @function Phaser.Geom.Mesh.GenerateObjVerts\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Types.Geom.Mesh.OBJData} data - The parsed OBJ model data.\r\n * @param {Phaser.GameObjects.Mesh} [mesh] - An optional Mesh Game Object. If given, the generated Faces will be automatically added to this Mesh. Set to `null` to skip.\r\n * @param {number} [scale=1] - An amount to scale the model data by. Use this if the model has exported too small, or large, to see.\r\n * @param {number} [x=0] - Translate the model x position by this amount.\r\n * @param {number} [y=0] - Translate the model y position by this amount.\r\n * @param {number} [z=0] - Translate the model z position by this amount.\r\n * @param {number} [rotateX=0] - Rotate the model on the x axis by this amount, in radians.\r\n * @param {number} [rotateY=0] - Rotate the model on the y axis by this amount, in radians.\r\n * @param {number} [rotateZ=0] - Rotate the model on the z axis by this amount, in radians.\r\n * @param {boolean} [zIsUp=true] - Is the z axis up (true), or is y axis up (false)?\r\n *\r\n * @return {Phaser.Types.Geom.Mesh.GenerateVertsResult} The parsed Face and Vertex objects.\r\n */\r\nvar GenerateObjVerts = function (data, mesh, scale, x, y, z, rotateX, rotateY, rotateZ, zIsUp)\r\n{\r\n if (scale === undefined) { scale = 1; }\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (z === undefined) { z = 0; }\r\n if (rotateX === undefined) { rotateX = 0; }\r\n if (rotateY === undefined) { rotateY = 0; }\r\n if (rotateZ === undefined) { rotateZ = 0; }\r\n if (zIsUp === undefined) { zIsUp = true; }\r\n\r\n var result = {\r\n faces: [],\r\n verts: []\r\n };\r\n\r\n var materials = data.materials;\r\n\r\n tempPosition.set(x, y, z);\r\n tempRotation.set(rotateX, rotateY, rotateZ);\r\n tempMatrix.fromRotationXYTranslation(tempRotation, tempPosition, zIsUp);\r\n\r\n for (var m = 0; m < data.models.length; m++)\r\n {\r\n var model = data.models[m];\r\n\r\n var vertices = model.vertices;\r\n var textureCoords = model.textureCoords;\r\n var faces = model.faces;\r\n\r\n for (var i = 0; i < faces.length; i++)\r\n {\r\n var face = faces[i];\r\n\r\n var v1 = face.vertices[0];\r\n var v2 = face.vertices[1];\r\n var v3 = face.vertices[2];\r\n\r\n var m1 = vertices[v1.vertexIndex];\r\n var m2 = vertices[v2.vertexIndex];\r\n var m3 = vertices[v3.vertexIndex];\r\n\r\n var t1 = v1.textureCoordsIndex;\r\n var t2 = v2.textureCoordsIndex;\r\n var t3 = v3.textureCoordsIndex;\r\n\r\n var uv1 = (t1 === -1) ? { u: 0, v: 1 } : textureCoords[t1];\r\n var uv2 = (t2 === -1) ? { u: 0, v: 0 } : textureCoords[t2];\r\n var uv3 = (t3 === -1) ? { u: 1, v: 1 } : textureCoords[t3];\r\n\r\n var color = 0xffffff;\r\n\r\n if (face.material !== '' && materials[face.material])\r\n {\r\n color = materials[face.material];\r\n }\r\n\r\n var vert1 = new Vertex(m1.x * scale, m1.y * scale, m1.z * scale, uv1.u, uv1.v, color).transformMat4(tempMatrix);\r\n var vert2 = new Vertex(m2.x * scale, m2.y * scale, m2.z * scale, uv2.u, uv2.v, color).transformMat4(tempMatrix);\r\n var vert3 = new Vertex(m3.x * scale, m3.y * scale, m3.z * scale, uv3.u, uv3.v, color).transformMat4(tempMatrix);\r\n\r\n result.verts.push(vert1, vert2, vert3);\r\n result.faces.push(new Face(vert1, vert2, vert3));\r\n }\r\n }\r\n\r\n if (mesh)\r\n {\r\n mesh.faces = mesh.faces.concat(result.faces);\r\n mesh.vertices = mesh.vertices.concat(result.verts);\r\n }\r\n\r\n return result;\r\n};\r\n\r\nmodule.exports = GenerateObjVerts;\r\n\n\n/***/ }),\n\n/***/ 92515:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Face = __webpack_require__(83997);\r\nvar Vertex = __webpack_require__(39318);\r\n\r\n/**\r\n * Generates a set of Face and Vertex objects by parsing the given data.\r\n *\r\n * This method will take vertex data in one of two formats, based on the `containsZ` parameter.\r\n *\r\n * If your vertex data are `x`, `y` pairs, then `containsZ` should be `false` (this is the default)\r\n *\r\n * If your vertex data is groups of `x`, `y` and `z` values, then the `containsZ` parameter must be true.\r\n *\r\n * The `uvs` parameter is a numeric array consisting of `u` and `v` pairs.\r\n *\r\n * The `normals` parameter is a numeric array consisting of `x`, `y` vertex normal values and, if `containsZ` is true, `z` values as well.\r\n *\r\n * The `indicies` parameter is an optional array that, if given, is an indexed list of vertices to be added.\r\n *\r\n * The `colors` parameter is an optional array, or single value, that if given sets the color of each vertex created.\r\n *\r\n * The `alphas` parameter is an optional array, or single value, that if given sets the alpha of each vertex created.\r\n *\r\n * When providing indexed data it is assumed that _all_ of the arrays are indexed, not just the vertices.\r\n *\r\n * The following example will create a 256 x 256 sized quad using an index array:\r\n *\r\n * ```javascript\r\n * const vertices = [\r\n * -128, 128,\r\n * 128, 128,\r\n * -128, -128,\r\n * 128, -128\r\n * ];\r\n *\r\n * const uvs = [\r\n * 0, 1,\r\n * 1, 1,\r\n * 0, 0,\r\n * 1, 0\r\n * ];\r\n *\r\n * const indices = [ 0, 2, 1, 2, 3, 1 ];\r\n *\r\n * GenerateVerts(vertices, uvs, indicies);\r\n * ```\r\n *\r\n * If the data is not indexed, it's assumed that the arrays all contain sequential data.\r\n *\r\n * @function Phaser.Geom.Mesh.GenerateVerts\r\n * @since 3.50.0\r\n *\r\n * @param {number[]} vertices - The vertices array. Either `xy` pairs, or `xyz` if the `containsZ` parameter is `true`.\r\n * @param {number[]} uvs - The UVs pairs array.\r\n * @param {number[]} [indicies] - Optional vertex indicies array. If you don't have one, pass `null` or an empty array.\r\n * @param {boolean} [containsZ=false] - Does the vertices data include a `z` component?\r\n * @param {number[]} [normals] - Optional vertex normals array. If you don't have one, pass `null` or an empty array.\r\n * @param {number|number[]} [colors=0xffffff] - An array of colors, one per vertex, or a single color value applied to all vertices.\r\n * @param {number|number[]} [alphas=1] - An array of alpha values, one per vertex, or a single alpha value applied to all vertices.\r\n * @param {boolean} [flipUV=false] - Flip the UV coordinates?\r\n *\r\n * @return {Phaser.Types.Geom.Mesh.GenerateVertsResult} The parsed Face and Vertex objects.\r\n */\r\nvar GenerateVerts = function (vertices, uvs, indicies, containsZ, normals, colors, alphas, flipUV)\r\n{\r\n if (containsZ === undefined) { containsZ = false; }\r\n if (colors === undefined) { colors = 0xffffff; }\r\n if (alphas === undefined) { alphas = 1; }\r\n if (flipUV === undefined) { flipUV = false; }\r\n\r\n if (vertices.length !== uvs.length && !containsZ)\r\n {\r\n console.warn('GenerateVerts: vertices and uvs count not equal');\r\n return;\r\n }\r\n\r\n var result = {\r\n faces: [],\r\n vertices: []\r\n };\r\n\r\n var i;\r\n\r\n var x;\r\n var y;\r\n var z;\r\n\r\n var u;\r\n var v;\r\n\r\n var color;\r\n var alpha;\r\n\r\n var normalX;\r\n var normalY;\r\n var normalZ;\r\n\r\n var iInc = (containsZ) ? 3 : 2;\r\n\r\n var isColorArray = Array.isArray(colors);\r\n var isAlphaArray = Array.isArray(alphas);\r\n\r\n if (Array.isArray(indicies) && indicies.length > 0)\r\n {\r\n for (i = 0; i < indicies.length; i++)\r\n {\r\n var index1 = indicies[i];\r\n var index2 = indicies[i] * 2;\r\n var index3 = indicies[i] * iInc;\r\n\r\n x = vertices[index3];\r\n y = vertices[index3 + 1];\r\n z = (containsZ) ? vertices[index3 + 2] : 0;\r\n\r\n u = uvs[index2];\r\n v = uvs[index2 + 1];\r\n\r\n if (flipUV)\r\n {\r\n v = 1 - v;\r\n }\r\n\r\n color = (isColorArray) ? colors[index1] : colors;\r\n alpha = (isAlphaArray) ? alphas[index1] : alphas;\r\n\r\n normalX = 0;\r\n normalY = 0;\r\n normalZ = 0;\r\n\r\n if (normals)\r\n {\r\n normalX = normals[index3];\r\n normalY = normals[index3 + 1];\r\n normalZ = (containsZ) ? normals[index3 + 2] : 0;\r\n }\r\n\r\n result.vertices.push(new Vertex(x, y, z, u, v, color, alpha, normalX, normalY, normalZ));\r\n }\r\n }\r\n else\r\n {\r\n var uvIndex = 0;\r\n var colorIndex = 0;\r\n\r\n for (i = 0; i < vertices.length; i += iInc)\r\n {\r\n x = vertices[i];\r\n y = vertices[i + 1];\r\n z = (containsZ) ? vertices[i + 2] : 0;\r\n\r\n u = uvs[uvIndex];\r\n v = uvs[uvIndex + 1];\r\n\r\n color = (isColorArray) ? colors[colorIndex] : colors;\r\n alpha = (isAlphaArray) ? alphas[colorIndex] : alphas;\r\n\r\n normalX = 0;\r\n normalY = 0;\r\n normalZ = 0;\r\n\r\n if (normals)\r\n {\r\n normalX = normals[i];\r\n normalY = normals[i + 1];\r\n normalZ = (containsZ) ? normals[i + 2] : 0;\r\n }\r\n\r\n result.vertices.push(new Vertex(x, y, z, u, v, color, alpha, normalX, normalY, normalZ));\r\n\r\n uvIndex += 2;\r\n colorIndex++;\r\n }\r\n }\r\n\r\n for (i = 0; i < result.vertices.length; i += 3)\r\n {\r\n var vert1 = result.vertices[i];\r\n var vert2 = result.vertices[i + 1];\r\n var vert3 = result.vertices[i + 2];\r\n\r\n result.faces.push(new Face(vert1, vert2, vert3));\r\n }\r\n\r\n return result;\r\n};\r\n\r\nmodule.exports = GenerateVerts;\r\n\n\n/***/ }),\n\n/***/ 85048:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar flip = true;\r\n\r\nvar defaultModelName = 'untitled';\r\nvar currentGroup = '';\r\nvar currentMaterial = '';\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction stripComments (line)\r\n{\r\n var idx = line.indexOf('#');\r\n\r\n return (idx > -1) ? line.substring(0, idx) : line;\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction currentModel (result)\r\n{\r\n if (result.models.length === 0)\r\n {\r\n result.models.push({\r\n faces: [],\r\n name: defaultModelName,\r\n textureCoords: [],\r\n vertexNormals: [],\r\n vertices: []\r\n });\r\n }\r\n\r\n currentGroup = '';\r\n\r\n return result.models[result.models.length - 1];\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction parseObject (lineItems, result)\r\n{\r\n var modelName = lineItems.length >= 2 ? lineItems[1] : defaultModelName;\r\n\r\n result.models.push({\r\n faces: [],\r\n name: modelName,\r\n textureCoords: [],\r\n vertexNormals: [],\r\n vertices: []\r\n });\r\n\r\n currentGroup = '';\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction parseGroup (lineItems)\r\n{\r\n if (lineItems.length === 2)\r\n {\r\n currentGroup = lineItems[1];\r\n }\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction parseVertexCoords (lineItems, result)\r\n{\r\n var len = lineItems.length;\r\n\r\n var x = (len >= 2) ? parseFloat(lineItems[1]) : 0;\r\n var y = (len >= 3) ? parseFloat(lineItems[2]) : 0;\r\n var z = (len >= 4) ? parseFloat(lineItems[3]) : 0;\r\n\r\n currentModel(result).vertices.push({ x: x, y: y, z: z });\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction parseTextureCoords (lineItems, result)\r\n{\r\n var len = lineItems.length;\r\n\r\n var u = (len >= 2) ? parseFloat(lineItems[1]) : 0;\r\n var v = (len >= 3) ? parseFloat(lineItems[2]) : 0;\r\n var w = (len >= 4) ? parseFloat(lineItems[3]) : 0;\r\n\r\n if (isNaN(u))\r\n {\r\n u = 0;\r\n }\r\n\r\n if (isNaN(v))\r\n {\r\n v = 0;\r\n }\r\n\r\n if (isNaN(w))\r\n {\r\n w = 0;\r\n }\r\n\r\n if (flip)\r\n {\r\n v = 1 - v;\r\n }\r\n\r\n currentModel(result).textureCoords.push({ u: u, v: v, w: w });\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction parseVertexNormal (lineItems, result)\r\n{\r\n var len = lineItems.length;\r\n\r\n var x = (len >= 2) ? parseFloat(lineItems[1]) : 0;\r\n var y = (len >= 3) ? parseFloat(lineItems[2]) : 0;\r\n var z = (len >= 4) ? parseFloat(lineItems[3]) : 0;\r\n\r\n currentModel(result).vertexNormals.push({ x: x, y: y, z: z });\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction parsePolygon (lineItems, result)\r\n{\r\n var totalVertices = lineItems.length - 1;\r\n\r\n if (totalVertices < 3)\r\n {\r\n return;\r\n }\r\n\r\n var face = {\r\n group: currentGroup,\r\n material: currentMaterial,\r\n vertices: []\r\n };\r\n\r\n for (var i = 0; i < totalVertices; i++)\r\n {\r\n var vertexString = lineItems[i + 1];\r\n var vertexValues = vertexString.split('/');\r\n var vvLen = vertexValues.length;\r\n\r\n if (vvLen < 1 || vvLen > 3)\r\n {\r\n continue;\r\n }\r\n\r\n var vertexIndex = 0;\r\n var textureCoordsIndex = 0;\r\n var vertexNormalIndex = 0;\r\n\r\n vertexIndex = parseInt(vertexValues[0], 10);\r\n\r\n if (vvLen > 1 && vertexValues[1] !== '')\r\n {\r\n textureCoordsIndex = parseInt(vertexValues[1], 10);\r\n }\r\n\r\n if (vvLen > 2)\r\n {\r\n vertexNormalIndex = parseInt(vertexValues[2], 10);\r\n }\r\n\r\n if (vertexIndex !== 0)\r\n {\r\n // Negative vertex indices refer to the nth last defined vertex\r\n // convert these to postive indices for simplicity\r\n if (vertexIndex < 0)\r\n {\r\n vertexIndex = currentModel(result).vertices.length + 1 + vertexIndex;\r\n }\r\n\r\n textureCoordsIndex -= 1;\r\n vertexIndex -= 1;\r\n vertexNormalIndex -= 1;\r\n\r\n face.vertices.push({\r\n textureCoordsIndex: textureCoordsIndex,\r\n vertexIndex: vertexIndex,\r\n vertexNormalIndex: vertexNormalIndex\r\n });\r\n }\r\n }\r\n\r\n currentModel(result).faces.push(face);\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction parseMtlLib (lineItems, result)\r\n{\r\n if (lineItems.length >= 2)\r\n {\r\n result.materialLibraries.push(lineItems[1]);\r\n }\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction parseUseMtl (lineItems)\r\n{\r\n if (lineItems.length >= 2)\r\n {\r\n currentMaterial = lineItems[1];\r\n }\r\n}\r\n\r\n/**\r\n * Parses a Wavefront OBJ File, extracting the models from it and returning them in an array.\r\n *\r\n * The model data *must* be triangulated for a Mesh Game Object to be able to render it.\r\n *\r\n * @function Phaser.Geom.Mesh.ParseObj\r\n * @since 3.50.0\r\n *\r\n * @param {string} data - The OBJ File data as a raw string.\r\n * @param {boolean} [flipUV=true] - Flip the UV coordinates?\r\n *\r\n * @return {Phaser.Types.Geom.Mesh.OBJData} The parsed model and material data.\r\n */\r\nvar ParseObj = function (data, flipUV)\r\n{\r\n if (flipUV === undefined) { flipUV = true; }\r\n\r\n flip = flipUV;\r\n\r\n // Store results in here\r\n var result = {\r\n materials: {},\r\n materialLibraries: [],\r\n models: []\r\n };\r\n\r\n currentGroup = '';\r\n currentMaterial = '';\r\n\r\n var lines = data.split('\\n');\r\n\r\n for (var i = 0; i < lines.length; i++)\r\n {\r\n var line = stripComments(lines[i]);\r\n\r\n var lineItems = line.replace(/\\s\\s+/g, ' ').trim().split(' ');\r\n\r\n switch (lineItems[0].toLowerCase())\r\n {\r\n case 'o':\r\n // Start A New Model\r\n parseObject(lineItems, result);\r\n break;\r\n\r\n case 'g':\r\n // Start a new polygon group\r\n parseGroup(lineItems);\r\n break;\r\n\r\n case 'v':\r\n // Define a vertex for the current model\r\n parseVertexCoords(lineItems, result);\r\n break;\r\n\r\n case 'vt':\r\n // Texture Coords\r\n parseTextureCoords(lineItems, result);\r\n break;\r\n\r\n case 'vn':\r\n // Define a vertex normal for the current model\r\n parseVertexNormal(lineItems, result);\r\n break;\r\n\r\n case 'f':\r\n // Define a Face/Polygon\r\n parsePolygon(lineItems, result);\r\n break;\r\n\r\n case 'mtllib':\r\n // Reference to a material library file (.mtl)\r\n parseMtlLib(lineItems, result);\r\n break;\r\n\r\n case 'usemtl':\r\n // Sets the current material to be applied to polygons defined from this point forward\r\n parseUseMtl(lineItems);\r\n break;\r\n }\r\n }\r\n\r\n return result;\r\n};\r\n\r\nmodule.exports = ParseObj;\r\n\n\n/***/ }),\n\n/***/ 61485:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetColor = __webpack_require__(37589);\r\n\r\n/**\r\n * Takes a Wavefront Material file and extracts the diffuse reflectivity of the named\r\n * materials, converts them to integer color values and returns them.\r\n *\r\n * This is used internally by the `addOBJ` and `addModel` methods, but is exposed for\r\n * public consumption as well.\r\n *\r\n * Note this only works with diffuse values, specified in the `Kd r g b` format, where\r\n * `g` and `b` are optional, but `r` is required. It does not support spectral rfl files,\r\n * or any other material statement (such as `Ka` or `Ks`)\r\n *\r\n * @method Phaser.Geom.Mesh.ParseObjMaterial\r\n * @since 3.50.0\r\n *\r\n * @param {string} mtl - The OBJ MTL file as a raw string, i.e. loaded via `this.load.text`.\r\n *\r\n * @return {object} The parsed material colors, where each property of the object matches the material name.\r\n */\r\nvar ParseObjMaterial = function (mtl)\r\n{\r\n var output = {};\r\n\r\n var lines = mtl.split('\\n');\r\n\r\n var currentMaterial = '';\r\n\r\n for (var i = 0; i < lines.length; i++)\r\n {\r\n var line = lines[i].trim();\r\n\r\n if (line.indexOf('#') === 0 || line === '')\r\n {\r\n continue;\r\n }\r\n\r\n var lineItems = line.replace(/\\s\\s+/g, ' ').trim().split(' ');\r\n\r\n switch (lineItems[0].toLowerCase())\r\n {\r\n case 'newmtl':\r\n {\r\n currentMaterial = lineItems[1];\r\n break;\r\n }\r\n\r\n // The diffuse reflectivity of the current material\r\n // Support r, [g], [b] format, where g and b are optional\r\n case 'kd':\r\n {\r\n var r = Math.floor(lineItems[1] * 255);\r\n var g = (lineItems.length >= 2) ? Math.floor(lineItems[2] * 255) : r;\r\n var b = (lineItems.length >= 3) ? Math.floor(lineItems[3] * 255) : r;\r\n\r\n output[currentMaterial] = GetColor(r, g, b);\r\n\r\n break;\r\n }\r\n }\r\n }\r\n\r\n return output;\r\n};\r\n\r\nmodule.exports = ParseObjMaterial;\r\n\n\n/***/ }),\n\n/***/ 92570:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Rotates the vertices of a Face to the given angle.\r\n *\r\n * The actual vertex positions are adjusted, not their transformed positions.\r\n *\r\n * Therefore, this updates the vertex data directly.\r\n *\r\n * @function Phaser.Geom.Mesh.RotateFace\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Geom.Mesh.Face} face - The Face to rotate.\r\n * @param {number} angle - The angle to rotate to, in radians.\r\n * @param {number} [cx] - An optional center of rotation. If not given, the Face in-center is used.\r\n * @param {number} [cy] - An optional center of rotation. If not given, the Face in-center is used.\r\n */\r\nvar RotateFace = function (face, angle, cx, cy)\r\n{\r\n var x;\r\n var y;\r\n\r\n // No point of rotation? Use the inCenter instead, then.\r\n if (cx === undefined && cy === undefined)\r\n {\r\n var inCenter = face.getInCenter();\r\n\r\n x = inCenter.x;\r\n y = inCenter.y;\r\n }\r\n\r\n var c = Math.cos(angle);\r\n var s = Math.sin(angle);\r\n\r\n var v1 = face.vertex1;\r\n var v2 = face.vertex2;\r\n var v3 = face.vertex3;\r\n\r\n var tx = v1.x - x;\r\n var ty = v1.y - y;\r\n\r\n v1.set(tx * c - ty * s + x, tx * s + ty * c + y);\r\n\r\n tx = v2.x - x;\r\n ty = v2.y - y;\r\n\r\n v2.set(tx * c - ty * s + x, tx * s + ty * c + y);\r\n\r\n tx = v3.x - x;\r\n ty = v3.y - y;\r\n\r\n v3.set(tx * c - ty * s + x, tx * s + ty * c + y);\r\n};\r\n\r\nmodule.exports = RotateFace;\r\n\n\n/***/ }),\n\n/***/ 39318:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Utils = __webpack_require__(70554);\r\nvar Vector3 = __webpack_require__(25836);\r\n\r\n/**\r\n * @classdesc\r\n * A Vertex Geometry Object.\r\n *\r\n * This class consists of all the information required for a single vertex within a Face Geometry Object.\r\n *\r\n * Faces, and thus Vertex objects, are used by the Mesh Game Object in order to render objects in WebGL.\r\n *\r\n * @class Vertex\r\n * @memberof Phaser.Geom.Mesh\r\n * @constructor\r\n * @extends Phaser.Math.Vector3\r\n * @since 3.50.0\r\n *\r\n * @param {number} x - The x position of the vertex.\r\n * @param {number} y - The y position of the vertex.\r\n * @param {number} z - The z position of the vertex.\r\n * @param {number} u - The UV u coordinate of the vertex.\r\n * @param {number} v - The UV v coordinate of the vertex.\r\n * @param {number} [color=0xffffff] - The color value of the vertex.\r\n * @param {number} [alpha=1] - The alpha value of the vertex.\r\n * @param {number} [nx=0] - The x normal value of the vertex.\r\n * @param {number} [ny=0] - The y normal value of the vertex.\r\n * @param {number} [nz=0] - The z normal value of the vertex.\r\n */\r\nvar Vertex = new Class({\r\n\r\n Extends: Vector3,\r\n\r\n initialize:\r\n\r\n function Vertex (x, y, z, u, v, color, alpha, nx, ny, nz)\r\n {\r\n if (color === undefined) { color = 0xffffff; }\r\n if (alpha === undefined) { alpha = 1; }\r\n if (nx === undefined) { nx = 0; }\r\n if (ny === undefined) { ny = 0; }\r\n if (nz === undefined) { nz = 0; }\r\n\r\n Vector3.call(this, x, y, z);\r\n\r\n /**\r\n * The projected x coordinate of this vertex.\r\n *\r\n * @name Phaser.Geom.Mesh.Vertex#vx\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.vx = 0;\r\n\r\n /**\r\n * The projected y coordinate of this vertex.\r\n *\r\n * @name Phaser.Geom.Mesh.Vertex#vy\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.vy = 0;\r\n\r\n /**\r\n * The projected z coordinate of this vertex.\r\n *\r\n * @name Phaser.Geom.Mesh.Vertex#vz\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.vz = 0;\r\n\r\n /**\r\n * The normalized projected x coordinate of this vertex.\r\n *\r\n * @name Phaser.Geom.Mesh.Vertex#nx\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.nx = nx;\r\n\r\n /**\r\n * The normalized projected y coordinate of this vertex.\r\n *\r\n * @name Phaser.Geom.Mesh.Vertex#ny\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.ny = ny;\r\n\r\n /**\r\n * The normalized projected z coordinate of this vertex.\r\n *\r\n * @name Phaser.Geom.Mesh.Vertex#nz\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.nz = nz;\r\n\r\n /**\r\n * UV u coordinate of this vertex.\r\n *\r\n * @name Phaser.Geom.Mesh.Vertex#u\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.u = u;\r\n\r\n /**\r\n * UV v coordinate of this vertex.\r\n *\r\n * @name Phaser.Geom.Mesh.Vertex#v\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.v = v;\r\n\r\n /**\r\n * The color value of this vertex.\r\n *\r\n * @name Phaser.Geom.Mesh.Vertex#color\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.color = color;\r\n\r\n /**\r\n * The alpha value of this vertex.\r\n *\r\n * @name Phaser.Geom.Mesh.Vertex#alpha\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.alpha = alpha;\r\n\r\n /**\r\n * The translated x coordinate of this vertex.\r\n *\r\n * @name Phaser.Geom.Mesh.Vertex#tx\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.tx = 0;\r\n\r\n /**\r\n * The translated y coordinate of this vertex.\r\n *\r\n * @name Phaser.Geom.Mesh.Vertex#ty\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.ty = 0;\r\n\r\n /**\r\n * The translated alpha value of this vertex.\r\n *\r\n * @name Phaser.Geom.Mesh.Vertex#ta\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.ta = 0;\r\n\r\n /**\r\n * The translated uv u coordinate of this vertex.\r\n *\r\n * @name Phaser.Geom.Mesh.Vertex#tu\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.tu = u;\r\n\r\n /**\r\n * The translated uv v coordinate of this vertex.\r\n *\r\n * @name Phaser.Geom.Mesh.Vertex#tv\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.tv = v;\r\n },\r\n\r\n /**\r\n * Sets the U and V properties.\r\n *\r\n * Also resets the translated uv properties, undoing any scale\r\n * or shift they may have had.\r\n *\r\n * @method Phaser.Geom.Mesh.Vertex#setUVs\r\n * @since 3.50.0\r\n *\r\n * @param {number} u - The UV u coordinate of the vertex.\r\n * @param {number} v - The UV v coordinate of the vertex.\r\n *\r\n * @return {this} This Vertex.\r\n */\r\n setUVs: function (u, v)\r\n {\r\n this.u = u;\r\n this.v = v;\r\n\r\n this.tu = u;\r\n this.tv = v;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Translates the original UV positions by the given amounts.\r\n *\r\n * The original properties `Vertex.u` and `Vertex.v`\r\n * remain unchanged, only the translated properties\r\n * `Vertex.tu` and `Vertex.tv`, as used in rendering,\r\n * are updated.\r\n *\r\n * @method Phaser.Geom.Mesh.Vertex#scrollUV\r\n * @since 3.60.0\r\n *\r\n * @param {number} x - The amount to scroll the UV u coordinate by.\r\n * @param {number} y - The amount to scroll the UV v coordinate by.\r\n *\r\n * @return {this} This Vertex.\r\n */\r\n scrollUV: function (x, y)\r\n {\r\n this.tu += x;\r\n this.tv += y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Scales the original UV values by the given amounts.\r\n *\r\n * The original properties `Vertex.u` and `Vertex.v`\r\n * remain unchanged, only the translated properties\r\n * `Vertex.tu` and `Vertex.tv`, as used in rendering,\r\n * are updated.\r\n *\r\n * @method Phaser.Geom.Mesh.Vertex#scaleUV\r\n * @since 3.60.0\r\n *\r\n * @param {number} x - The amount to scale the UV u coordinate by.\r\n * @param {number} y - The amount to scale the UV v coordinate by.\r\n *\r\n * @return {this} This Vertex.\r\n */\r\n scaleUV: function (x, y)\r\n {\r\n this.tu = this.u * x;\r\n this.tv = this.v * y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Transforms this vertex by the given matrix, storing the results in `vx`, `vy` and `vz`.\r\n *\r\n * @method Phaser.Geom.Mesh.Vertex#transformCoordinatesLocal\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Math.Matrix4} transformMatrix - The transform matrix to apply to this vertex.\r\n * @param {number} width - The width of the parent Mesh.\r\n * @param {number} height - The height of the parent Mesh.\r\n * @param {number} cameraZ - The z position of the MeshCamera.\r\n */\r\n transformCoordinatesLocal: function (transformMatrix, width, height, cameraZ)\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n var z = this.z;\r\n\r\n var m = transformMatrix.val;\r\n\r\n var tx = (x * m[0]) + (y * m[4]) + (z * m[8]) + m[12];\r\n var ty = (x * m[1]) + (y * m[5]) + (z * m[9]) + m[13];\r\n var tz = (x * m[2]) + (y * m[6]) + (z * m[10]) + m[14];\r\n var tw = (x * m[3]) + (y * m[7]) + (z * m[11]) + m[15];\r\n\r\n this.vx = (tx / tw) * width;\r\n this.vy = -(ty / tw) * height;\r\n\r\n if (cameraZ <= 0)\r\n {\r\n this.vz = (tz / tw);\r\n }\r\n else\r\n {\r\n this.vz = -(tz / tw);\r\n }\r\n },\r\n\r\n /**\r\n * Resizes this Vertex by setting the x and y coordinates, then transforms this vertex\r\n * by an identity matrix and dimensions, storing the results in `vx`, `vy` and `vz`.\r\n *\r\n * @method Phaser.Geom.Mesh.Vertex#resize\r\n * @since 3.60.0\r\n *\r\n * @param {number} x - The x position of the vertex.\r\n * @param {number} y - The y position of the vertex.\r\n * @param {number} width - The width of the parent Mesh.\r\n * @param {number} height - The height of the parent Mesh.\r\n * @param {number} originX - The originX of the parent Mesh.\r\n * @param {number} originY - The originY of the parent Mesh.\r\n *\r\n * @return {this} This Vertex.\r\n */\r\n resize: function (x, y, width, height, originX, originY)\r\n {\r\n this.x = x;\r\n this.y = y;\r\n\r\n this.vx = this.x * width;\r\n this.vy = -this.y * height;\r\n this.vz = 0;\r\n\r\n if (originX < 0.5)\r\n {\r\n this.vx += width * (0.5 - originX);\r\n }\r\n else if (originX > 0.5)\r\n {\r\n this.vx -= width * (originX - 0.5);\r\n }\r\n\r\n if (originY < 0.5)\r\n {\r\n this.vy += height * (0.5 - originY);\r\n }\r\n else if (originY > 0.5)\r\n {\r\n this.vy -= height * (originY - 0.5);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Updates this Vertex based on the given transform.\r\n *\r\n * @method Phaser.Geom.Mesh.Vertex#update\r\n * @since 3.50.0\r\n *\r\n * @param {number} a - The parent transform matrix data a component.\r\n * @param {number} b - The parent transform matrix data b component.\r\n * @param {number} c - The parent transform matrix data c component.\r\n * @param {number} d - The parent transform matrix data d component.\r\n * @param {number} e - The parent transform matrix data e component.\r\n * @param {number} f - The parent transform matrix data f component.\r\n * @param {boolean} roundPixels - Round the vertex position or not?\r\n * @param {number} alpha - The alpha of the parent object.\r\n *\r\n * @return {this} This Vertex.\r\n */\r\n update: function (a, b, c, d, e, f, roundPixels, alpha)\r\n {\r\n var tx = this.vx * a + this.vy * c + e;\r\n var ty = this.vx * b + this.vy * d + f;\r\n\r\n if (roundPixels)\r\n {\r\n tx = Math.round(tx);\r\n ty = Math.round(ty);\r\n }\r\n\r\n this.tx = tx;\r\n this.ty = ty;\r\n this.ta = this.alpha * alpha;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Loads the data from this Vertex into the given Typed Arrays.\r\n *\r\n * @method Phaser.Geom.Mesh.Vertex#load\r\n * @since 3.50.0\r\n *\r\n * @param {Float32Array} F32 - A Float32 Array to insert the position, UV and unit data in to.\r\n * @param {Uint32Array} U32 - A Uint32 Array to insert the color and alpha data in to.\r\n * @param {number} offset - The index of the array to insert this Vertex to.\r\n * @param {number} textureUnit - The texture unit currently in use.\r\n * @param {number} tintEffect - The tint effect to use.\r\n *\r\n * @return {number} The new array offset.\r\n */\r\n load: function (F32, U32, offset, textureUnit, tintEffect)\r\n {\r\n F32[++offset] = this.tx;\r\n F32[++offset] = this.ty;\r\n F32[++offset] = this.tu;\r\n F32[++offset] = this.tv;\r\n F32[++offset] = textureUnit;\r\n F32[++offset] = tintEffect;\r\n U32[++offset] = Utils.getTintAppendFloatAlpha(this.color, this.ta);\r\n\r\n return offset;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Vertex;\r\n\n\n/***/ }),\n\n/***/ 73090:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Geom.Mesh\r\n */\r\n\r\nvar Mesh = {\r\n\r\n Face: __webpack_require__(83997),\r\n GenerateGridVerts: __webpack_require__(48803),\r\n GenerateObjVerts: __webpack_require__(34684),\r\n GenerateVerts: __webpack_require__(92515),\r\n ParseObj: __webpack_require__(85048),\r\n ParseObjMaterial: __webpack_require__(61485),\r\n RotateFace: __webpack_require__(92570),\r\n Vertex: __webpack_require__(39318)\r\n\r\n};\r\n\r\nmodule.exports = Mesh;\r\n\n\n/***/ }),\n\n/***/ 96550:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Apply `Math.ceil()` to each coordinate of the given Point.\r\n *\r\n * @function Phaser.Geom.Point.Ceil\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [point,$return]\r\n *\r\n * @param {Phaser.Geom.Point} point - The Point to ceil.\r\n *\r\n * @return {Phaser.Geom.Point} The Point with `Math.ceil()` applied to its coordinates.\r\n */\r\nvar Ceil = function (point)\r\n{\r\n return point.setTo(Math.ceil(point.x), Math.ceil(point.y));\r\n};\r\n\r\nmodule.exports = Ceil;\r\n\n\n/***/ }),\n\n/***/ 99706:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Clone the given Point.\r\n *\r\n * @function Phaser.Geom.Point.Clone\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Point} source - The source Point to clone.\r\n *\r\n * @return {Phaser.Geom.Point} The cloned Point.\r\n */\r\nvar Clone = function (source)\r\n{\r\n return new Point(source.x, source.y);\r\n};\r\n\r\nmodule.exports = Clone;\r\n\n\n/***/ }),\n\n/***/ 68010:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Copy the values of one Point to a destination Point.\r\n *\r\n * @function Phaser.Geom.Point.CopyFrom\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [dest,$return]\r\n *\r\n * @param {Phaser.Geom.Point} source - The source Point to copy the values from.\r\n * @param {Phaser.Geom.Point} dest - The destination Point to copy the values to.\r\n *\r\n * @return {Phaser.Geom.Point} The destination Point.\r\n */\r\nvar CopyFrom = function (source, dest)\r\n{\r\n return dest.setTo(source.x, source.y);\r\n};\r\n\r\nmodule.exports = CopyFrom;\r\n\n\n/***/ }),\n\n/***/ 27814:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * A comparison of two `Point` objects to see if they are equal.\r\n *\r\n * @function Phaser.Geom.Point.Equals\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Point} point - The original `Point` to compare against.\r\n * @param {Phaser.Geom.Point} toCompare - The second `Point` to compare.\r\n *\r\n * @return {boolean} Returns true if the both `Point` objects are equal.\r\n */\r\nvar Equals = function (point, toCompare)\r\n{\r\n return (point.x === toCompare.x && point.y === toCompare.y);\r\n};\r\n\r\nmodule.exports = Equals;\r\n\n\n/***/ }),\n\n/***/ 73565:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Apply `Math.ceil()` to each coordinate of the given Point.\r\n *\r\n * @function Phaser.Geom.Point.Floor\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [point,$return]\r\n *\r\n * @param {Phaser.Geom.Point} point - The Point to floor.\r\n *\r\n * @return {Phaser.Geom.Point} The Point with `Math.floor()` applied to its coordinates.\r\n */\r\nvar Floor = function (point)\r\n{\r\n return point.setTo(Math.floor(point.x), Math.floor(point.y));\r\n};\r\n\r\nmodule.exports = Floor;\r\n\n\n/***/ }),\n\n/***/ 87555:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Get the centroid or geometric center of a plane figure (the arithmetic mean position of all the points in the figure).\r\n * Informally, it is the point at which a cutout of the shape could be perfectly balanced on the tip of a pin.\r\n *\r\n * @function Phaser.Geom.Point.GetCentroid\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like[]} points - An array of Vector2Like objects to get the geometric center of.\r\n * @param {Phaser.Geom.Point} [out] - A Point object to store the output coordinates in. If not given, a new Point instance is created.\r\n *\r\n * @return {Phaser.Geom.Point} A Point object representing the geometric center of the given points.\r\n */\r\nvar GetCentroid = function (points, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n if (!Array.isArray(points))\r\n {\r\n throw new Error('GetCentroid points argument must be an array');\r\n }\r\n\r\n var len = points.length;\r\n\r\n if (len < 1)\r\n {\r\n throw new Error('GetCentroid points array must not be empty');\r\n }\r\n else if (len === 1)\r\n {\r\n out.x = points[0].x;\r\n out.y = points[0].y;\r\n }\r\n else\r\n {\r\n for (var i = 0; i < len; i++)\r\n {\r\n out.x += points[i].x;\r\n out.y += points[i].y;\r\n }\r\n\r\n out.x /= len;\r\n out.y /= len;\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetCentroid;\r\n\n\n/***/ }),\n\n/***/ 28793:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculate the magnitude of the point, which equivalent to the length of the line from the origin to this point.\r\n *\r\n * @function Phaser.Geom.Point.GetMagnitude\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Point} point - The point to calculate the magnitude for\r\n *\r\n * @return {number} The resulting magnitude\r\n */\r\nvar GetMagnitude = function (point)\r\n{\r\n return Math.sqrt((point.x * point.x) + (point.y * point.y));\r\n};\r\n\r\nmodule.exports = GetMagnitude;\r\n\n\n/***/ }),\n\n/***/ 44405:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculates the square of magnitude of given point.(Can be used for fast magnitude calculation of point)\r\n *\r\n * @function Phaser.Geom.Point.GetMagnitudeSq\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Point} point - Returns square of the magnitude/length of given point.\r\n *\r\n * @return {number} Returns square of the magnitude of given point.\r\n */\r\nvar GetMagnitudeSq = function (point)\r\n{\r\n return (point.x * point.x) + (point.y * point.y);\r\n};\r\n\r\nmodule.exports = GetMagnitudeSq;\r\n\n\n/***/ }),\n\n/***/ 20873:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Rectangle = __webpack_require__(87841);\r\n\r\n/**\r\n * Calculates the Axis Aligned Bounding Box (or aabb) from an array of points.\r\n *\r\n * @function Phaser.Geom.Point.GetRectangleFromPoints\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [out,$return]\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like[]} points - An array of Vector2Like objects to get the AABB from.\r\n * @param {Phaser.Geom.Rectangle} [out] - A Rectangle object to store the results in. If not given, a new Rectangle instance is created.\r\n *\r\n * @return {Phaser.Geom.Rectangle} A Rectangle object holding the AABB values for the given points.\r\n */\r\nvar GetRectangleFromPoints = function (points, out)\r\n{\r\n if (out === undefined) { out = new Rectangle(); }\r\n\r\n var xMax = Number.NEGATIVE_INFINITY;\r\n var xMin = Number.POSITIVE_INFINITY;\r\n var yMax = Number.NEGATIVE_INFINITY;\r\n var yMin = Number.POSITIVE_INFINITY;\r\n\r\n for (var i = 0; i < points.length; i++)\r\n {\r\n var point = points[i];\r\n\r\n if (point.x > xMax)\r\n {\r\n xMax = point.x;\r\n }\r\n\r\n if (point.x < xMin)\r\n {\r\n xMin = point.x;\r\n }\r\n\r\n if (point.y > yMax)\r\n {\r\n yMax = point.y;\r\n }\r\n\r\n if (point.y < yMin)\r\n {\r\n yMin = point.y;\r\n }\r\n }\r\n\r\n out.x = xMin;\r\n out.y = yMin;\r\n out.width = xMax - xMin;\r\n out.height = yMax - yMin;\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetRectangleFromPoints;\r\n\n\n/***/ }),\n\n/***/ 26152:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Returns the linear interpolation point between the two given points, based on `t`.\r\n *\r\n * @function Phaser.Geom.Point.Interpolate\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Point} pointA - The starting `Point` for the interpolation.\r\n * @param {Phaser.Geom.Point} pointB - The target `Point` for the interpolation.\r\n * @param {number} [t=0] - The amount to interpolate between the two points. Generally, a value between 0 (returns the starting `Point`) and 1 (returns the target `Point`). If omitted, 0 is used.\r\n * @param {(Phaser.Geom.Point|object)} [out] - An optional `Point` object whose `x` and `y` values will be set to the result of the interpolation (can also be any object with `x` and `y` properties). If omitted, a new `Point` created and returned.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} Either the object from the `out` argument with the properties `x` and `y` set to the result of the interpolation or a newly created `Point` object.\r\n */\r\nvar Interpolate = function (pointA, pointB, t, out)\r\n{\r\n if (t === undefined) { t = 0; }\r\n if (out === undefined) { out = new Point(); }\r\n\r\n out.x = pointA.x + ((pointB.x - pointA.x) * t);\r\n out.y = pointA.y + ((pointB.y - pointA.y) * t);\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = Interpolate;\r\n\n\n/***/ }),\n\n/***/ 55767:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Swaps the X and the Y coordinate of a point.\r\n *\r\n * @function Phaser.Geom.Point.Invert\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [point,$return]\r\n *\r\n * @param {Phaser.Geom.Point} point - The Point to modify.\r\n *\r\n * @return {Phaser.Geom.Point} The modified `point`.\r\n */\r\nvar Invert = function (point)\r\n{\r\n return point.setTo(point.y, point.x);\r\n};\r\n\r\nmodule.exports = Invert;\r\n\n\n/***/ }),\n\n/***/ 79432:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Inverts a Point's coordinates.\r\n *\r\n * @function Phaser.Geom.Point.Negative\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Point} point - The Point to invert.\r\n * @param {Phaser.Geom.Point} [out] - The Point to return the inverted coordinates in.\r\n *\r\n * @return {Phaser.Geom.Point} The modified `out` Point, or a new Point if none was provided.\r\n */\r\nvar Negative = function (point, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n return out.setTo(-point.x, -point.y);\r\n};\r\n\r\nmodule.exports = Negative;\r\n\n\n/***/ }),\n\n/***/ 2141:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar GEOM_CONST = __webpack_require__(23777);\r\n\r\n/**\r\n * @classdesc\r\n * Defines a Point in 2D space, with an x and y component.\r\n *\r\n * @class Point\r\n * @memberof Phaser.Geom\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=0] - The x coordinate of this Point.\r\n * @param {number} [y=x] - The y coordinate of this Point.\r\n */\r\nvar Point = new Class({\r\n\r\n initialize:\r\n\r\n function Point (x, y)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = x; }\r\n\r\n /**\r\n * The geometry constant type of this object: `GEOM_CONST.POINT`.\r\n * Used for fast type comparisons.\r\n *\r\n * @name Phaser.Geom.Point#type\r\n * @type {number}\r\n * @readonly\r\n * @since 3.19.0\r\n */\r\n this.type = GEOM_CONST.POINT;\r\n\r\n /**\r\n * The x coordinate of this Point.\r\n *\r\n * @name Phaser.Geom.Point#x\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.x = x;\r\n\r\n /**\r\n * The y coordinate of this Point.\r\n *\r\n * @name Phaser.Geom.Point#y\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.y = y;\r\n },\r\n\r\n /**\r\n * Set the x and y coordinates of the point to the given values.\r\n *\r\n * @method Phaser.Geom.Point#setTo\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=0] - The x coordinate of this Point.\r\n * @param {number} [y=x] - The y coordinate of this Point.\r\n *\r\n * @return {this} This Point object.\r\n */\r\n setTo: function (x, y)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = x; }\r\n\r\n this.x = x;\r\n this.y = y;\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Point;\r\n\n\n/***/ }),\n\n/***/ 72930:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\nvar GetMagnitudeSq = __webpack_require__(44405);\r\n\r\n/**\r\n * Calculates the vector projection of `pointA` onto the nonzero `pointB`. This is the\r\n * orthogonal projection of `pointA` onto a straight line parallel to `pointB`.\r\n *\r\n * @function Phaser.Geom.Point.Project\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Point} pointA - Point A, to be projected onto Point B.\r\n * @param {Phaser.Geom.Point} pointB - Point B, to have Point A projected upon it.\r\n * @param {Phaser.Geom.Point} [out] - The Point object to store the position in. If not given, a new Point instance is created.\r\n *\r\n * @return {Phaser.Geom.Point} A Point object holding the coordinates of the vector projection of `pointA` onto `pointB`.\r\n */\r\nvar Project = function (pointA, pointB, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n var dot = ((pointA.x * pointB.x) + (pointA.y * pointB.y));\r\n var amt = dot / GetMagnitudeSq(pointB);\r\n\r\n if (amt !== 0)\r\n {\r\n out.x = amt * pointB.x;\r\n out.y = amt * pointB.y;\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = Project;\r\n\n\n/***/ }),\n\n/***/ 62880:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Calculates the vector projection of `pointA` onto the nonzero `pointB`. This is the\r\n * orthogonal projection of `pointA` onto a straight line paralle to `pointB`.\r\n *\r\n * @function Phaser.Geom.Point.ProjectUnit\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Point} pointA - Point A, to be projected onto Point B. Must be a normalized point with a magnitude of 1.\r\n * @param {Phaser.Geom.Point} pointB - Point B, to have Point A projected upon it.\r\n * @param {Phaser.Geom.Point} [out] - The Point object to store the position in. If not given, a new Point instance is created.\r\n *\r\n * @return {Phaser.Geom.Point} A unit Point object holding the coordinates of the vector projection of `pointA` onto `pointB`.\r\n */\r\nvar ProjectUnit = function (pointA, pointB, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n var amt = ((pointA.x * pointB.x) + (pointA.y * pointB.y));\r\n\r\n if (amt !== 0)\r\n {\r\n out.x = amt * pointB.x;\r\n out.y = amt * pointB.y;\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = ProjectUnit;\r\n\n\n/***/ }),\n\n/***/ 15093:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetMagnitude = __webpack_require__(28793);\r\n\r\n/**\r\n * Changes the magnitude (length) of a two-dimensional vector without changing its direction.\r\n *\r\n * @function Phaser.Geom.Point.SetMagnitude\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [point,$return]\r\n *\r\n * @param {Phaser.Geom.Point} point - The Point to treat as the end point of the vector.\r\n * @param {number} magnitude - The new magnitude of the vector.\r\n *\r\n * @return {Phaser.Geom.Point} The modified Point.\r\n */\r\nvar SetMagnitude = function (point, magnitude)\r\n{\r\n if (point.x !== 0 || point.y !== 0)\r\n {\r\n var m = GetMagnitude(point);\r\n\r\n point.x /= m;\r\n point.y /= m;\r\n }\r\n\r\n point.x *= magnitude;\r\n point.y *= magnitude;\r\n\r\n return point;\r\n};\r\n\r\nmodule.exports = SetMagnitude;\r\n\n\n/***/ }),\n\n/***/ 43711:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\n\r\nPoint.Ceil = __webpack_require__(96550);\r\nPoint.Clone = __webpack_require__(99706);\r\nPoint.CopyFrom = __webpack_require__(68010);\r\nPoint.Equals = __webpack_require__(27814);\r\nPoint.Floor = __webpack_require__(73565);\r\nPoint.GetCentroid = __webpack_require__(87555);\r\nPoint.GetMagnitude = __webpack_require__(28793);\r\nPoint.GetMagnitudeSq = __webpack_require__(44405);\r\nPoint.GetRectangleFromPoints = __webpack_require__(20873);\r\nPoint.Interpolate = __webpack_require__(26152);\r\nPoint.Invert = __webpack_require__(55767);\r\nPoint.Negative = __webpack_require__(79432);\r\nPoint.Project = __webpack_require__(72930);\r\nPoint.ProjectUnit = __webpack_require__(62880);\r\nPoint.SetMagnitude = __webpack_require__(15093);\r\n\r\nmodule.exports = Point;\r\n\n\n/***/ }),\n\n/***/ 12306:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Polygon = __webpack_require__(25717);\r\n\r\n/**\r\n * Create a new polygon which is a copy of the specified polygon\r\n *\r\n * @function Phaser.Geom.Polygon.Clone\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Polygon} polygon - The polygon to create a clone of\r\n *\r\n * @return {Phaser.Geom.Polygon} A new separate Polygon cloned from the specified polygon, based on the same points.\r\n */\r\nvar Clone = function (polygon)\r\n{\r\n return new Polygon(polygon.points);\r\n};\r\n\r\nmodule.exports = Clone;\r\n\n\n/***/ }),\n\n/***/ 63814:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// Checks whether the x and y coordinates are contained within this polygon.\r\n// Adapted from http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html by Jonas Raoni Soares Silva\r\n\r\n/**\r\n * Checks if a point is within the bounds of a Polygon.\r\n *\r\n * @function Phaser.Geom.Polygon.Contains\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Polygon} polygon - The Polygon to check against.\r\n * @param {number} x - The X coordinate of the point to check.\r\n * @param {number} y - The Y coordinate of the point to check.\r\n *\r\n * @return {boolean} `true` if the point is within the bounds of the Polygon, otherwise `false`.\r\n */\r\nvar Contains = function (polygon, x, y)\r\n{\r\n var inside = false;\r\n\r\n for (var i = -1, j = polygon.points.length - 1; ++i < polygon.points.length; j = i)\r\n {\r\n var ix = polygon.points[i].x;\r\n var iy = polygon.points[i].y;\r\n\r\n var jx = polygon.points[j].x;\r\n var jy = polygon.points[j].y;\r\n\r\n if (((iy <= y && y < jy) || (jy <= y && y < iy)) && (x < (jx - ix) * (y - iy) / (jy - iy) + ix))\r\n {\r\n inside = !inside;\r\n }\r\n }\r\n\r\n return inside;\r\n};\r\n\r\nmodule.exports = Contains;\r\n\n\n/***/ }),\n\n/***/ 99338:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Contains = __webpack_require__(63814);\r\n\r\n/**\r\n * Checks the given Point again the Polygon to see if the Point lays within its vertices.\r\n *\r\n * @function Phaser.Geom.Polygon.ContainsPoint\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Polygon} polygon - The Polygon to check.\r\n * @param {Phaser.Geom.Point} point - The Point to check if it's within the Polygon.\r\n *\r\n * @return {boolean} `true` if the Point is within the Polygon, otherwise `false`.\r\n */\r\nvar ContainsPoint = function (polygon, point)\r\n{\r\n return Contains(polygon, point.x, point.y);\r\n};\r\n\r\nmodule.exports = ContainsPoint;\r\n\n\n/***/ }),\n\n/***/ 94811:\n/***/ ((module) => {\n\n\"use strict\";\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * This module implements a modified ear slicing algorithm, optimized by z-order curve hashing and extended to\r\n * handle holes, twisted polygons, degeneracies and self-intersections in a way that doesn't guarantee correctness\r\n * of triangulation, but attempts to always produce acceptable results for practical data.\r\n *\r\n * Example:\r\n *\r\n * ```javascript\r\n * const triangles = Phaser.Geom.Polygon.Earcut([10,0, 0,50, 60,60, 70,10]); // returns [1,0,3, 3,2,1]\r\n * ```\r\n *\r\n * Each group of three vertex indices in the resulting array forms a triangle.\r\n *\r\n * ```javascript\r\n * // triangulating a polygon with a hole\r\n * earcut([0,0, 100,0, 100,100, 0,100, 20,20, 80,20, 80,80, 20,80], [4]);\r\n * // [3,0,4, 5,4,0, 3,4,7, 5,0,1, 2,3,7, 6,5,1, 2,7,6, 6,1,2]\r\n *\r\n * // triangulating a polygon with 3d coords\r\n * earcut([10,0,1, 0,50,2, 60,60,3, 70,10,4], null, 3);\r\n * // [1,0,3, 3,2,1]\r\n * ```\r\n *\r\n * If you pass a single vertex as a hole, Earcut treats it as a Steiner point.\r\n *\r\n * If your input is a multi-dimensional array (e.g. GeoJSON Polygon), you can convert it to the format\r\n * expected by Earcut with `Phaser.Geom.Polygon.Earcut.flatten`:\r\n *\r\n * ```javascript\r\n * var data = earcut.flatten(geojson.geometry.coordinates);\r\n * var triangles = earcut(data.vertices, data.holes, data.dimensions);\r\n * ```\r\n *\r\n * After getting a triangulation, you can verify its correctness with `Phaser.Geom.Polygon.Earcut.deviation`:\r\n *\r\n * ```javascript\r\n * var deviation = earcut.deviation(vertices, holes, dimensions, triangles);\r\n * ```\r\n * Returns the relative difference between the total area of triangles and the area of the input polygon.\r\n * 0 means the triangulation is fully correct.\r\n *\r\n * For more information see https://github.com/mapbox/earcut\r\n *\r\n * @function Phaser.Geom.Polygon.Earcut\r\n * @since 3.50.0\r\n *\r\n * @param {number[]} data - A flat array of vertex coordinate, like [x0,y0, x1,y1, x2,y2, ...]\r\n * @param {number[]} [holeIndices] - An array of hole indices if any (e.g. [5, 8] for a 12-vertex input would mean one hole with vertices 5–7 and another with 8–11).\r\n * @param {number} [dimensions=2] - The number of coordinates per vertex in the input array (2 by default).\r\n *\r\n * @return {number[]} An array of triangulated data.\r\n */\r\n\r\n // Earcut 2.2.4 (July 5th 2022)\r\n\r\n/*\r\n * ISC License\r\n *\r\n * Copyright (c) 2016, Mapbox\r\n *\r\n * Permission to use, copy, modify, and/or distribute this software for any purpose\r\n * with or without fee is hereby granted, provided that the above copyright notice\r\n * and this permission notice appear in all copies.\r\n *\r\n * THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\n * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND\r\n * FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\n * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS\r\n * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER\r\n * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF\r\n * THIS SOFTWARE.\r\n */\r\n\r\n\r\n\r\nfunction earcut(data, holeIndices, dim) {\r\n\r\n dim = dim || 2;\r\n\r\n var hasHoles = holeIndices && holeIndices.length,\r\n outerLen = hasHoles ? holeIndices[0] * dim : data.length,\r\n outerNode = linkedList(data, 0, outerLen, dim, true),\r\n triangles = [];\r\n\r\n if (!outerNode || outerNode.next === outerNode.prev) return triangles;\r\n\r\n var minX, minY, maxX, maxY, x, y, invSize;\r\n\r\n if (hasHoles) outerNode = eliminateHoles(data, holeIndices, outerNode, dim);\r\n\r\n // if the shape is not too simple, we'll use z-order curve hash later; calculate polygon bbox\r\n if (data.length > 80 * dim) {\r\n minX = maxX = data[0];\r\n minY = maxY = data[1];\r\n\r\n for (var i = dim; i < outerLen; i += dim) {\r\n x = data[i];\r\n y = data[i + 1];\r\n if (x < minX) minX = x;\r\n if (y < minY) minY = y;\r\n if (x > maxX) maxX = x;\r\n if (y > maxY) maxY = y;\r\n }\r\n\r\n // minX, minY and invSize are later used to transform coords into integers for z-order calculation\r\n invSize = Math.max(maxX - minX, maxY - minY);\r\n invSize = invSize !== 0 ? 32767 / invSize : 0;\r\n }\r\n\r\n earcutLinked(outerNode, triangles, dim, minX, minY, invSize, 0);\r\n\r\n return triangles;\r\n}\r\n\r\n// create a circular doubly linked list from polygon points in the specified winding order\r\nfunction linkedList(data, start, end, dim, clockwise) {\r\n var i, last;\r\n\r\n if (clockwise === (signedArea(data, start, end, dim) > 0)) {\r\n for (i = start; i < end; i += dim) last = insertNode(i, data[i], data[i + 1], last);\r\n } else {\r\n for (i = end - dim; i >= start; i -= dim) last = insertNode(i, data[i], data[i + 1], last);\r\n }\r\n\r\n if (last && equals(last, last.next)) {\r\n removeNode(last);\r\n last = last.next;\r\n }\r\n\r\n return last;\r\n}\r\n\r\n// eliminate colinear or duplicate points\r\nfunction filterPoints(start, end) {\r\n if (!start) return start;\r\n if (!end) end = start;\r\n\r\n var p = start,\r\n again;\r\n do {\r\n again = false;\r\n\r\n if (!p.steiner && (equals(p, p.next) || area(p.prev, p, p.next) === 0)) {\r\n removeNode(p);\r\n p = end = p.prev;\r\n if (p === p.next) break;\r\n again = true;\r\n\r\n } else {\r\n p = p.next;\r\n }\r\n } while (again || p !== end);\r\n\r\n return end;\r\n}\r\n\r\n// main ear slicing loop which triangulates a polygon (given as a linked list)\r\nfunction earcutLinked(ear, triangles, dim, minX, minY, invSize, pass) {\r\n if (!ear) return;\r\n\r\n // interlink polygon nodes in z-order\r\n if (!pass && invSize) indexCurve(ear, minX, minY, invSize);\r\n\r\n var stop = ear,\r\n prev, next;\r\n\r\n // iterate through ears, slicing them one by one\r\n while (ear.prev !== ear.next) {\r\n prev = ear.prev;\r\n next = ear.next;\r\n\r\n if (invSize ? isEarHashed(ear, minX, minY, invSize) : isEar(ear)) {\r\n // cut off the triangle\r\n triangles.push(prev.i / dim | 0);\r\n triangles.push(ear.i / dim | 0);\r\n triangles.push(next.i / dim | 0);\r\n\r\n removeNode(ear);\r\n\r\n // skipping the next vertex leads to less sliver triangles\r\n ear = next.next;\r\n stop = next.next;\r\n\r\n continue;\r\n }\r\n\r\n ear = next;\r\n\r\n // if we looped through the whole remaining polygon and can't find any more ears\r\n if (ear === stop) {\r\n // try filtering points and slicing again\r\n if (!pass) {\r\n earcutLinked(filterPoints(ear), triangles, dim, minX, minY, invSize, 1);\r\n\r\n // if this didn't work, try curing all small self-intersections locally\r\n } else if (pass === 1) {\r\n ear = cureLocalIntersections(filterPoints(ear), triangles, dim);\r\n earcutLinked(ear, triangles, dim, minX, minY, invSize, 2);\r\n\r\n // as a last resort, try splitting the remaining polygon into two\r\n } else if (pass === 2) {\r\n splitEarcut(ear, triangles, dim, minX, minY, invSize);\r\n }\r\n\r\n break;\r\n }\r\n }\r\n}\r\n\r\n// check whether a polygon node forms a valid ear with adjacent nodes\r\nfunction isEar(ear) {\r\n var a = ear.prev,\r\n b = ear,\r\n c = ear.next;\r\n\r\n if (area(a, b, c) >= 0) return false; // reflex, can't be an ear\r\n\r\n // now make sure we don't have other points inside the potential ear\r\n var ax = a.x, bx = b.x, cx = c.x, ay = a.y, by = b.y, cy = c.y;\r\n\r\n // triangle bbox; min & max are calculated like this for speed\r\n var x0 = ax < bx ? (ax < cx ? ax : cx) : (bx < cx ? bx : cx),\r\n y0 = ay < by ? (ay < cy ? ay : cy) : (by < cy ? by : cy),\r\n x1 = ax > bx ? (ax > cx ? ax : cx) : (bx > cx ? bx : cx),\r\n y1 = ay > by ? (ay > cy ? ay : cy) : (by > cy ? by : cy);\r\n\r\n var p = c.next;\r\n while (p !== a) {\r\n if (p.x >= x0 && p.x <= x1 && p.y >= y0 && p.y <= y1 &&\r\n pointInTriangle(ax, ay, bx, by, cx, cy, p.x, p.y) &&\r\n area(p.prev, p, p.next) >= 0) return false;\r\n p = p.next;\r\n }\r\n\r\n return true;\r\n}\r\n\r\nfunction isEarHashed(ear, minX, minY, invSize) {\r\n var a = ear.prev,\r\n b = ear,\r\n c = ear.next;\r\n\r\n if (area(a, b, c) >= 0) return false; // reflex, can't be an ear\r\n\r\n var ax = a.x, bx = b.x, cx = c.x, ay = a.y, by = b.y, cy = c.y;\r\n\r\n // triangle bbox; min & max are calculated like this for speed\r\n var x0 = ax < bx ? (ax < cx ? ax : cx) : (bx < cx ? bx : cx),\r\n y0 = ay < by ? (ay < cy ? ay : cy) : (by < cy ? by : cy),\r\n x1 = ax > bx ? (ax > cx ? ax : cx) : (bx > cx ? bx : cx),\r\n y1 = ay > by ? (ay > cy ? ay : cy) : (by > cy ? by : cy);\r\n\r\n // z-order range for the current triangle bbox;\r\n var minZ = zOrder(x0, y0, minX, minY, invSize),\r\n maxZ = zOrder(x1, y1, minX, minY, invSize);\r\n\r\n var p = ear.prevZ,\r\n n = ear.nextZ;\r\n\r\n // look for points inside the triangle in both directions\r\n while (p && p.z >= minZ && n && n.z <= maxZ) {\r\n if (p.x >= x0 && p.x <= x1 && p.y >= y0 && p.y <= y1 && p !== a && p !== c &&\r\n pointInTriangle(ax, ay, bx, by, cx, cy, p.x, p.y) && area(p.prev, p, p.next) >= 0) return false;\r\n p = p.prevZ;\r\n\r\n if (n.x >= x0 && n.x <= x1 && n.y >= y0 && n.y <= y1 && n !== a && n !== c &&\r\n pointInTriangle(ax, ay, bx, by, cx, cy, n.x, n.y) && area(n.prev, n, n.next) >= 0) return false;\r\n n = n.nextZ;\r\n }\r\n\r\n // look for remaining points in decreasing z-order\r\n while (p && p.z >= minZ) {\r\n if (p.x >= x0 && p.x <= x1 && p.y >= y0 && p.y <= y1 && p !== a && p !== c &&\r\n pointInTriangle(ax, ay, bx, by, cx, cy, p.x, p.y) && area(p.prev, p, p.next) >= 0) return false;\r\n p = p.prevZ;\r\n }\r\n\r\n // look for remaining points in increasing z-order\r\n while (n && n.z <= maxZ) {\r\n if (n.x >= x0 && n.x <= x1 && n.y >= y0 && n.y <= y1 && n !== a && n !== c &&\r\n pointInTriangle(ax, ay, bx, by, cx, cy, n.x, n.y) && area(n.prev, n, n.next) >= 0) return false;\r\n n = n.nextZ;\r\n }\r\n\r\n return true;\r\n}\r\n\r\n// go through all polygon nodes and cure small local self-intersections\r\nfunction cureLocalIntersections(start, triangles, dim) {\r\n var p = start;\r\n do {\r\n var a = p.prev,\r\n b = p.next.next;\r\n\r\n if (!equals(a, b) && intersects(a, p, p.next, b) && locallyInside(a, b) && locallyInside(b, a)) {\r\n\r\n triangles.push(a.i / dim | 0);\r\n triangles.push(p.i / dim | 0);\r\n triangles.push(b.i / dim | 0);\r\n\r\n // remove two nodes involved\r\n removeNode(p);\r\n removeNode(p.next);\r\n\r\n p = start = b;\r\n }\r\n p = p.next;\r\n } while (p !== start);\r\n\r\n return filterPoints(p);\r\n}\r\n\r\n// try splitting polygon into two and triangulate them independently\r\nfunction splitEarcut(start, triangles, dim, minX, minY, invSize) {\r\n // look for a valid diagonal that divides the polygon into two\r\n var a = start;\r\n do {\r\n var b = a.next.next;\r\n while (b !== a.prev) {\r\n if (a.i !== b.i && isValidDiagonal(a, b)) {\r\n // split the polygon in two by the diagonal\r\n var c = splitPolygon(a, b);\r\n\r\n // filter colinear points around the cuts\r\n a = filterPoints(a, a.next);\r\n c = filterPoints(c, c.next);\r\n\r\n // run earcut on each half\r\n earcutLinked(a, triangles, dim, minX, minY, invSize, 0);\r\n earcutLinked(c, triangles, dim, minX, minY, invSize, 0);\r\n return;\r\n }\r\n b = b.next;\r\n }\r\n a = a.next;\r\n } while (a !== start);\r\n}\r\n\r\n// link every hole into the outer loop, producing a single-ring polygon without holes\r\nfunction eliminateHoles(data, holeIndices, outerNode, dim) {\r\n var queue = [],\r\n i, len, start, end, list;\r\n\r\n for (i = 0, len = holeIndices.length; i < len; i++) {\r\n start = holeIndices[i] * dim;\r\n end = i < len - 1 ? holeIndices[i + 1] * dim : data.length;\r\n list = linkedList(data, start, end, dim, false);\r\n if (list === list.next) list.steiner = true;\r\n queue.push(getLeftmost(list));\r\n }\r\n\r\n queue.sort(compareX);\r\n\r\n // process holes from left to right\r\n for (i = 0; i < queue.length; i++) {\r\n outerNode = eliminateHole(queue[i], outerNode);\r\n }\r\n\r\n return outerNode;\r\n}\r\n\r\nfunction compareX(a, b) {\r\n return a.x - b.x;\r\n}\r\n\r\n// find a bridge between vertices that connects hole with an outer ring and and link it\r\nfunction eliminateHole(hole, outerNode) {\r\n var bridge = findHoleBridge(hole, outerNode);\r\n if (!bridge) {\r\n return outerNode;\r\n }\r\n\r\n var bridgeReverse = splitPolygon(bridge, hole);\r\n\r\n // filter collinear points around the cuts\r\n filterPoints(bridgeReverse, bridgeReverse.next);\r\n return filterPoints(bridge, bridge.next);\r\n}\r\n\r\n// David Eberly's algorithm for finding a bridge between hole and outer polygon\r\nfunction findHoleBridge(hole, outerNode) {\r\n var p = outerNode,\r\n hx = hole.x,\r\n hy = hole.y,\r\n qx = -Infinity,\r\n m;\r\n\r\n // find a segment intersected by a ray from the hole's leftmost point to the left;\r\n // segment's endpoint with lesser x will be potential connection point\r\n do {\r\n if (hy <= p.y && hy >= p.next.y && p.next.y !== p.y) {\r\n var x = p.x + (hy - p.y) * (p.next.x - p.x) / (p.next.y - p.y);\r\n if (x <= hx && x > qx) {\r\n qx = x;\r\n m = p.x < p.next.x ? p : p.next;\r\n if (x === hx) return m; // hole touches outer segment; pick leftmost endpoint\r\n }\r\n }\r\n p = p.next;\r\n } while (p !== outerNode);\r\n\r\n if (!m) return null;\r\n\r\n // look for points inside the triangle of hole point, segment intersection and endpoint;\r\n // if there are no points found, we have a valid connection;\r\n // otherwise choose the point of the minimum angle with the ray as connection point\r\n\r\n var stop = m,\r\n mx = m.x,\r\n my = m.y,\r\n tanMin = Infinity,\r\n tan;\r\n\r\n p = m;\r\n\r\n do {\r\n if (hx >= p.x && p.x >= mx && hx !== p.x &&\r\n pointInTriangle(hy < my ? hx : qx, hy, mx, my, hy < my ? qx : hx, hy, p.x, p.y)) {\r\n\r\n tan = Math.abs(hy - p.y) / (hx - p.x); // tangential\r\n\r\n if (locallyInside(p, hole) &&\r\n (tan < tanMin || (tan === tanMin && (p.x > m.x || (p.x === m.x && sectorContainsSector(m, p)))))) {\r\n m = p;\r\n tanMin = tan;\r\n }\r\n }\r\n\r\n p = p.next;\r\n } while (p !== stop);\r\n\r\n return m;\r\n}\r\n\r\n// whether sector in vertex m contains sector in vertex p in the same coordinates\r\nfunction sectorContainsSector(m, p) {\r\n return area(m.prev, m, p.prev) < 0 && area(p.next, m, m.next) < 0;\r\n}\r\n\r\n// interlink polygon nodes in z-order\r\nfunction indexCurve(start, minX, minY, invSize) {\r\n var p = start;\r\n do {\r\n if (p.z === 0) p.z = zOrder(p.x, p.y, minX, minY, invSize);\r\n p.prevZ = p.prev;\r\n p.nextZ = p.next;\r\n p = p.next;\r\n } while (p !== start);\r\n\r\n p.prevZ.nextZ = null;\r\n p.prevZ = null;\r\n\r\n sortLinked(p);\r\n}\r\n\r\n// Simon Tatham's linked list merge sort algorithm\r\n// http://www.chiark.greenend.org.uk/~sgtatham/algorithms/listsort.html\r\nfunction sortLinked(list) {\r\n var i, p, q, e, tail, numMerges, pSize, qSize,\r\n inSize = 1;\r\n\r\n do {\r\n p = list;\r\n list = null;\r\n tail = null;\r\n numMerges = 0;\r\n\r\n while (p) {\r\n numMerges++;\r\n q = p;\r\n pSize = 0;\r\n for (i = 0; i < inSize; i++) {\r\n pSize++;\r\n q = q.nextZ;\r\n if (!q) break;\r\n }\r\n qSize = inSize;\r\n\r\n while (pSize > 0 || (qSize > 0 && q)) {\r\n\r\n if (pSize !== 0 && (qSize === 0 || !q || p.z <= q.z)) {\r\n e = p;\r\n p = p.nextZ;\r\n pSize--;\r\n } else {\r\n e = q;\r\n q = q.nextZ;\r\n qSize--;\r\n }\r\n\r\n if (tail) tail.nextZ = e;\r\n else list = e;\r\n\r\n e.prevZ = tail;\r\n tail = e;\r\n }\r\n\r\n p = q;\r\n }\r\n\r\n tail.nextZ = null;\r\n inSize *= 2;\r\n\r\n } while (numMerges > 1);\r\n\r\n return list;\r\n}\r\n\r\n// z-order of a point given coords and inverse of the longer side of data bbox\r\nfunction zOrder(x, y, minX, minY, invSize) {\r\n // coords are transformed into non-negative 15-bit integer range\r\n x = (x - minX) * invSize | 0;\r\n y = (y - minY) * invSize | 0;\r\n\r\n x = (x | (x << 8)) & 0x00FF00FF;\r\n x = (x | (x << 4)) & 0x0F0F0F0F;\r\n x = (x | (x << 2)) & 0x33333333;\r\n x = (x | (x << 1)) & 0x55555555;\r\n\r\n y = (y | (y << 8)) & 0x00FF00FF;\r\n y = (y | (y << 4)) & 0x0F0F0F0F;\r\n y = (y | (y << 2)) & 0x33333333;\r\n y = (y | (y << 1)) & 0x55555555;\r\n\r\n return x | (y << 1);\r\n}\r\n\r\n// find the leftmost node of a polygon ring\r\nfunction getLeftmost(start) {\r\n var p = start,\r\n leftmost = start;\r\n do {\r\n if (p.x < leftmost.x || (p.x === leftmost.x && p.y < leftmost.y)) leftmost = p;\r\n p = p.next;\r\n } while (p !== start);\r\n\r\n return leftmost;\r\n}\r\n\r\n// check if a point lies within a convex triangle\r\nfunction pointInTriangle(ax, ay, bx, by, cx, cy, px, py) {\r\n return (cx - px) * (ay - py) >= (ax - px) * (cy - py) &&\r\n (ax - px) * (by - py) >= (bx - px) * (ay - py) &&\r\n (bx - px) * (cy - py) >= (cx - px) * (by - py);\r\n}\r\n\r\n// check if a diagonal between two polygon nodes is valid (lies in polygon interior)\r\nfunction isValidDiagonal(a, b) {\r\n return a.next.i !== b.i && a.prev.i !== b.i && !intersectsPolygon(a, b) && // dones't intersect other edges\r\n (locallyInside(a, b) && locallyInside(b, a) && middleInside(a, b) && // locally visible\r\n (area(a.prev, a, b.prev) || area(a, b.prev, b)) || // does not create opposite-facing sectors\r\n equals(a, b) && area(a.prev, a, a.next) > 0 && area(b.prev, b, b.next) > 0); // special zero-length case\r\n}\r\n\r\n// signed area of a triangle\r\nfunction area(p, q, r) {\r\n return (q.y - p.y) * (r.x - q.x) - (q.x - p.x) * (r.y - q.y);\r\n}\r\n\r\n// check if two points are equal\r\nfunction equals(p1, p2) {\r\n return p1.x === p2.x && p1.y === p2.y;\r\n}\r\n\r\n// check if two segments intersect\r\nfunction intersects(p1, q1, p2, q2) {\r\n var o1 = sign(area(p1, q1, p2));\r\n var o2 = sign(area(p1, q1, q2));\r\n var o3 = sign(area(p2, q2, p1));\r\n var o4 = sign(area(p2, q2, q1));\r\n\r\n if (o1 !== o2 && o3 !== o4) return true; // general case\r\n\r\n if (o1 === 0 && onSegment(p1, p2, q1)) return true; // p1, q1 and p2 are collinear and p2 lies on p1q1\r\n if (o2 === 0 && onSegment(p1, q2, q1)) return true; // p1, q1 and q2 are collinear and q2 lies on p1q1\r\n if (o3 === 0 && onSegment(p2, p1, q2)) return true; // p2, q2 and p1 are collinear and p1 lies on p2q2\r\n if (o4 === 0 && onSegment(p2, q1, q2)) return true; // p2, q2 and q1 are collinear and q1 lies on p2q2\r\n\r\n return false;\r\n}\r\n\r\n// for collinear points p, q, r, check if point q lies on segment pr\r\nfunction onSegment(p, q, r) {\r\n return q.x <= Math.max(p.x, r.x) && q.x >= Math.min(p.x, r.x) && q.y <= Math.max(p.y, r.y) && q.y >= Math.min(p.y, r.y);\r\n}\r\n\r\nfunction sign(num) {\r\n return num > 0 ? 1 : num < 0 ? -1 : 0;\r\n}\r\n\r\n// check if a polygon diagonal intersects any polygon segments\r\nfunction intersectsPolygon(a, b) {\r\n var p = a;\r\n do {\r\n if (p.i !== a.i && p.next.i !== a.i && p.i !== b.i && p.next.i !== b.i &&\r\n intersects(p, p.next, a, b)) return true;\r\n p = p.next;\r\n } while (p !== a);\r\n\r\n return false;\r\n}\r\n\r\n// check if a polygon diagonal is locally inside the polygon\r\nfunction locallyInside(a, b) {\r\n return area(a.prev, a, a.next) < 0 ?\r\n area(a, b, a.next) >= 0 && area(a, a.prev, b) >= 0 :\r\n area(a, b, a.prev) < 0 || area(a, a.next, b) < 0;\r\n}\r\n\r\n// check if the middle point of a polygon diagonal is inside the polygon\r\nfunction middleInside(a, b) {\r\n var p = a,\r\n inside = false,\r\n px = (a.x + b.x) / 2,\r\n py = (a.y + b.y) / 2;\r\n do {\r\n if (((p.y > py) !== (p.next.y > py)) && p.next.y !== p.y &&\r\n (px < (p.next.x - p.x) * (py - p.y) / (p.next.y - p.y) + p.x))\r\n inside = !inside;\r\n p = p.next;\r\n } while (p !== a);\r\n\r\n return inside;\r\n}\r\n\r\n// link two polygon vertices with a bridge; if the vertices belong to the same ring, it splits polygon into two;\r\n// if one belongs to the outer ring and another to a hole, it merges it into a single ring\r\nfunction splitPolygon(a, b) {\r\n var a2 = new Node(a.i, a.x, a.y),\r\n b2 = new Node(b.i, b.x, b.y),\r\n an = a.next,\r\n bp = b.prev;\r\n\r\n a.next = b;\r\n b.prev = a;\r\n\r\n a2.next = an;\r\n an.prev = a2;\r\n\r\n b2.next = a2;\r\n a2.prev = b2;\r\n\r\n bp.next = b2;\r\n b2.prev = bp;\r\n\r\n return b2;\r\n}\r\n\r\n// create a node and optionally link it with previous one (in a circular doubly linked list)\r\nfunction insertNode(i, x, y, last) {\r\n var p = new Node(i, x, y);\r\n\r\n if (!last) {\r\n p.prev = p;\r\n p.next = p;\r\n\r\n } else {\r\n p.next = last.next;\r\n p.prev = last;\r\n last.next.prev = p;\r\n last.next = p;\r\n }\r\n return p;\r\n}\r\n\r\nfunction removeNode(p) {\r\n p.next.prev = p.prev;\r\n p.prev.next = p.next;\r\n\r\n if (p.prevZ) p.prevZ.nextZ = p.nextZ;\r\n if (p.nextZ) p.nextZ.prevZ = p.prevZ;\r\n}\r\n\r\nfunction Node(i, x, y) {\r\n // vertex index in coordinates array\r\n this.i = i;\r\n\r\n // vertex coordinates\r\n this.x = x;\r\n this.y = y;\r\n\r\n // previous and next vertex nodes in a polygon ring\r\n this.prev = null;\r\n this.next = null;\r\n\r\n // z-order curve value\r\n this.z = 0;\r\n\r\n // previous and next nodes in z-order\r\n this.prevZ = null;\r\n this.nextZ = null;\r\n\r\n // indicates whether this is a steiner point\r\n this.steiner = false;\r\n}\r\n\r\n// return a percentage difference between the polygon area and its triangulation area;\r\n// used to verify correctness of triangulation\r\nearcut.deviation = function (data, holeIndices, dim, triangles) {\r\n var hasHoles = holeIndices && holeIndices.length;\r\n var outerLen = hasHoles ? holeIndices[0] * dim : data.length;\r\n\r\n var polygonArea = Math.abs(signedArea(data, 0, outerLen, dim));\r\n if (hasHoles) {\r\n for (var i = 0, len = holeIndices.length; i < len; i++) {\r\n var start = holeIndices[i] * dim;\r\n var end = i < len - 1 ? holeIndices[i + 1] * dim : data.length;\r\n polygonArea -= Math.abs(signedArea(data, start, end, dim));\r\n }\r\n }\r\n\r\n var trianglesArea = 0;\r\n for (i = 0; i < triangles.length; i += 3) {\r\n var a = triangles[i] * dim;\r\n var b = triangles[i + 1] * dim;\r\n var c = triangles[i + 2] * dim;\r\n trianglesArea += Math.abs(\r\n (data[a] - data[c]) * (data[b + 1] - data[a + 1]) -\r\n (data[a] - data[b]) * (data[c + 1] - data[a + 1]));\r\n }\r\n\r\n return polygonArea === 0 && trianglesArea === 0 ? 0 :\r\n Math.abs((trianglesArea - polygonArea) / polygonArea);\r\n};\r\n\r\nfunction signedArea(data, start, end, dim) {\r\n var sum = 0;\r\n for (var i = start, j = end - dim; i < end; i += dim) {\r\n sum += (data[j] - data[i]) * (data[i + 1] + data[j + 1]);\r\n j = i;\r\n }\r\n return sum;\r\n}\r\n\r\n// turn a polygon in a multi-dimensional array form (e.g. as in GeoJSON) into a form Earcut accepts\r\nearcut.flatten = function (data) {\r\n var dim = data[0][0].length,\r\n result = {vertices: [], holes: [], dimensions: dim},\r\n holeIndex = 0;\r\n\r\n for (var i = 0; i < data.length; i++) {\r\n for (var j = 0; j < data[i].length; j++) {\r\n for (var d = 0; d < dim; d++) result.vertices.push(data[i][j][d]);\r\n }\r\n if (i > 0) {\r\n holeIndex += data[i - 1].length;\r\n result.holes.push(holeIndex);\r\n }\r\n }\r\n return result;\r\n};\r\n\r\nmodule.exports = earcut;\r\n\n\n/***/ }),\n\n/***/ 13829:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Rectangle = __webpack_require__(87841);\r\n\r\n/**\r\n * Calculates the bounding AABB rectangle of a polygon.\r\n *\r\n * @function Phaser.Geom.Polygon.GetAABB\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Polygon} polygon - The polygon that should be calculated.\r\n * @param {(Phaser.Geom.Rectangle|object)} [out] - The rectangle or object that has x, y, width, and height properties to store the result. Optional.\r\n *\r\n * @return {(Phaser.Geom.Rectangle|object)} The resulting rectangle or object that is passed in with position and dimensions of the polygon's AABB.\r\n */\r\nvar GetAABB = function (polygon, out)\r\n{\r\n if (out === undefined) { out = new Rectangle(); }\r\n\r\n var minX = Infinity;\r\n var minY = Infinity;\r\n var maxX = -minX;\r\n var maxY = -minY;\r\n var p;\r\n\r\n for (var i = 0; i < polygon.points.length; i++)\r\n {\r\n p = polygon.points[i];\r\n\r\n minX = Math.min(minX, p.x);\r\n minY = Math.min(minY, p.y);\r\n maxX = Math.max(maxX, p.x);\r\n maxY = Math.max(maxY, p.y);\r\n }\r\n\r\n out.x = minX;\r\n out.y = minY;\r\n out.width = maxX - minX;\r\n out.height = maxY - minY;\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetAABB;\r\n\n\n/***/ }),\n\n/***/ 26173:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// Export the points as an array of flat numbers, following the sequence [ x,y, x,y, x,y ]\r\n\r\n/**\r\n * Stores all of the points of a Polygon into a flat array of numbers following the sequence [ x,y, x,y, x,y ],\r\n * i.e. each point of the Polygon, in the order it's defined, corresponds to two elements of the resultant\r\n * array for the point's X and Y coordinate.\r\n *\r\n * @function Phaser.Geom.Polygon.GetNumberArray\r\n * @since 3.0.0\r\n *\r\n * @generic {number[]} O - [output,$return]\r\n *\r\n * @param {Phaser.Geom.Polygon} polygon - The Polygon whose points to export.\r\n * @param {(array|number[])} [output] - An array to which the points' coordinates should be appended.\r\n *\r\n * @return {(array|number[])} The modified `output` array, or a new array if none was given.\r\n */\r\nvar GetNumberArray = function (polygon, output)\r\n{\r\n if (output === undefined) { output = []; }\r\n\r\n for (var i = 0; i < polygon.points.length; i++)\r\n {\r\n output.push(polygon.points[i].x);\r\n output.push(polygon.points[i].y);\r\n }\r\n\r\n return output;\r\n};\r\n\r\nmodule.exports = GetNumberArray;\r\n\n\n/***/ }),\n\n/***/ 9564:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Length = __webpack_require__(35001);\r\nvar Line = __webpack_require__(23031);\r\nvar Perimeter = __webpack_require__(30052);\r\n\r\n/**\r\n * Returns an array of Point objects containing the coordinates of the points around the perimeter of the Polygon,\r\n * based on the given quantity or stepRate values.\r\n *\r\n * @function Phaser.Geom.Polygon.GetPoints\r\n * @since 3.12.0\r\n *\r\n * @param {Phaser.Geom.Polygon} polygon - The Polygon to get the points from.\r\n * @param {number} quantity - The amount of points to return. If a falsey value the quantity will be derived from the `stepRate` instead.\r\n * @param {number} [stepRate] - Sets the quantity by getting the perimeter of the Polygon and dividing it by the stepRate.\r\n * @param {array} [output] - An array to insert the points in to. If not provided a new array will be created.\r\n *\r\n * @return {Phaser.Geom.Point[]} An array of Point objects pertaining to the points around the perimeter of the Polygon.\r\n */\r\nvar GetPoints = function (polygon, quantity, stepRate, out)\r\n{\r\n if (out === undefined) { out = []; }\r\n\r\n var points = polygon.points;\r\n var perimeter = Perimeter(polygon);\r\n\r\n // If quantity is a falsey value (false, null, 0, undefined, etc) then we calculate it based on the stepRate instead.\r\n if (!quantity && stepRate > 0)\r\n {\r\n quantity = perimeter / stepRate;\r\n }\r\n\r\n for (var i = 0; i < quantity; i++)\r\n {\r\n var position = perimeter * (i / quantity);\r\n var accumulatedPerimeter = 0;\r\n\r\n for (var j = 0; j < points.length; j++)\r\n {\r\n var pointA = points[j];\r\n var pointB = points[(j + 1) % points.length];\r\n var line = new Line(\r\n pointA.x,\r\n pointA.y,\r\n pointB.x,\r\n pointB.y\r\n );\r\n var length = Length(line);\r\n\r\n if (position < accumulatedPerimeter || position > accumulatedPerimeter + length)\r\n {\r\n accumulatedPerimeter += length;\r\n continue;\r\n }\r\n\r\n var point = line.getPoint((position - accumulatedPerimeter) / length);\r\n out.push(point);\r\n\r\n break;\r\n }\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetPoints;\r\n\n\n/***/ }),\n\n/***/ 30052:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Length = __webpack_require__(35001);\r\nvar Line = __webpack_require__(23031);\r\n\r\n/**\r\n * Returns the perimeter of the given Polygon.\r\n *\r\n * @function Phaser.Geom.Polygon.Perimeter\r\n * @since 3.12.0\r\n *\r\n * @param {Phaser.Geom.Polygon} polygon - The Polygon to get the perimeter of.\r\n *\r\n * @return {number} The perimeter of the Polygon.\r\n */\r\nvar Perimeter = function (polygon)\r\n{\r\n var points = polygon.points;\r\n var perimeter = 0;\r\n\r\n for (var i = 0; i < points.length; i++)\r\n {\r\n var pointA = points[i];\r\n var pointB = points[(i + 1) % points.length];\r\n var line = new Line(\r\n pointA.x,\r\n pointA.y,\r\n pointB.x,\r\n pointB.y\r\n );\r\n\r\n perimeter += Length(line);\r\n }\r\n\r\n return perimeter;\r\n};\r\n\r\nmodule.exports = Perimeter;\r\n\n\n/***/ }),\n\n/***/ 25717:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Contains = __webpack_require__(63814);\r\nvar GetPoints = __webpack_require__(9564);\r\nvar GEOM_CONST = __webpack_require__(23777);\r\n\r\n/**\r\n * @classdesc\r\n * A Polygon object\r\n *\r\n * The polygon is a closed shape consists of a series of connected straight lines defined by list of ordered points.\r\n * Several formats are supported to define the list of points, check the setTo method for details.\r\n * This is a geometry object allowing you to define and inspect the shape.\r\n * It is not a Game Object, in that you cannot add it to the display list, and it has no texture.\r\n * To render a Polygon you should look at the capabilities of the Graphics class.\r\n *\r\n * @class Polygon\r\n * @memberof Phaser.Geom\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {(string|number[]|Phaser.Types.Math.Vector2Like[])} [points] - List of points defining the perimeter of this Polygon. Several formats are supported:\r\n * - A string containing paired x y values separated by a single space: `'40 0 40 20 100 20 100 80 40 80 40 100 0 50'`\r\n * - An array of Point objects: `[new Phaser.Point(x1, y1), ...]`\r\n * - An array of objects with public x y properties: `[obj1, obj2, ...]`\r\n * - An array of paired numbers that represent point coordinates: `[x1,y1, x2,y2, ...]`\r\n * - An array of arrays with two elements representing x/y coordinates: `[[x1, y1], [x2, y2], ...]`\r\n */\r\nvar Polygon = new Class({\r\n\r\n initialize:\r\n\r\n function Polygon (points)\r\n {\r\n /**\r\n * The geometry constant type of this object: `GEOM_CONST.POLYGON`.\r\n * Used for fast type comparisons.\r\n *\r\n * @name Phaser.Geom.Polygon#type\r\n * @type {number}\r\n * @readonly\r\n * @since 3.19.0\r\n */\r\n this.type = GEOM_CONST.POLYGON;\r\n\r\n /**\r\n * The area of this Polygon.\r\n *\r\n * @name Phaser.Geom.Polygon#area\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.area = 0;\r\n\r\n /**\r\n * An array of number pair objects that make up this polygon. I.e. [ {x,y}, {x,y}, {x,y} ]\r\n *\r\n * @name Phaser.Geom.Polygon#points\r\n * @type {Phaser.Geom.Point[]}\r\n * @since 3.0.0\r\n */\r\n this.points = [];\r\n\r\n if (points)\r\n {\r\n this.setTo(points);\r\n }\r\n },\r\n\r\n /**\r\n * Check to see if the Polygon contains the given x / y coordinates.\r\n *\r\n * @method Phaser.Geom.Polygon#contains\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x coordinate to check within the polygon.\r\n * @param {number} y - The y coordinate to check within the polygon.\r\n *\r\n * @return {boolean} `true` if the coordinates are within the polygon, otherwise `false`.\r\n */\r\n contains: function (x, y)\r\n {\r\n return Contains(this, x, y);\r\n },\r\n\r\n /**\r\n * Sets this Polygon to the given points.\r\n *\r\n * The points can be set from a variety of formats:\r\n *\r\n * - A string containing paired values separated by a single space: `'40 0 40 20 100 20 100 80 40 80 40 100 0 50'`\r\n * - An array of Point objects: `[new Phaser.Point(x1, y1), ...]`\r\n * - An array of objects with public x/y properties: `[obj1, obj2, ...]`\r\n * - An array of paired numbers that represent point coordinates: `[x1,y1, x2,y2, ...]`\r\n * - An array of arrays with two elements representing x/y coordinates: `[[x1, y1], [x2, y2], ...]`\r\n *\r\n * `setTo` may also be called without any arguments to remove all points.\r\n *\r\n * @method Phaser.Geom.Polygon#setTo\r\n * @since 3.0.0\r\n *\r\n * @param {(string|number[]|Phaser.Types.Math.Vector2Like[])} [points] - Points defining the perimeter of this polygon. Please check function description above for the different supported formats.\r\n *\r\n * @return {this} This Polygon object.\r\n */\r\n setTo: function (points)\r\n {\r\n this.area = 0;\r\n this.points = [];\r\n\r\n if (typeof points === 'string')\r\n {\r\n points = points.split(' ');\r\n }\r\n\r\n if (!Array.isArray(points))\r\n {\r\n return this;\r\n }\r\n\r\n var p;\r\n\r\n // The points argument is an array, so iterate through it\r\n for (var i = 0; i < points.length; i++)\r\n {\r\n p = { x: 0, y: 0 };\r\n\r\n if (typeof points[i] === 'number' || typeof points[i] === 'string')\r\n {\r\n p.x = parseFloat(points[i]);\r\n p.y = parseFloat(points[i + 1]);\r\n i++;\r\n }\r\n else if (Array.isArray(points[i]))\r\n {\r\n // An array of arrays?\r\n p.x = points[i][0];\r\n p.y = points[i][1];\r\n }\r\n else\r\n {\r\n p.x = points[i].x;\r\n p.y = points[i].y;\r\n }\r\n\r\n this.points.push(p);\r\n }\r\n\r\n this.calculateArea();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calculates the area of the Polygon. This is available in the property Polygon.area\r\n *\r\n * @method Phaser.Geom.Polygon#calculateArea\r\n * @since 3.0.0\r\n *\r\n * @return {number} The area of the polygon.\r\n */\r\n calculateArea: function ()\r\n {\r\n if (this.points.length < 3)\r\n {\r\n this.area = 0;\r\n\r\n return this.area;\r\n }\r\n\r\n var sum = 0;\r\n var p1;\r\n var p2;\r\n\r\n for (var i = 0; i < this.points.length - 1; i++)\r\n {\r\n p1 = this.points[i];\r\n p2 = this.points[i + 1];\r\n\r\n sum += (p2.x - p1.x) * (p1.y + p2.y);\r\n }\r\n\r\n p1 = this.points[0];\r\n p2 = this.points[this.points.length - 1];\r\n\r\n sum += (p1.x - p2.x) * (p2.y + p1.y);\r\n\r\n this.area = -sum * 0.5;\r\n\r\n return this.area;\r\n },\r\n\r\n /**\r\n * Returns an array of Point objects containing the coordinates of the points around the perimeter of the Polygon,\r\n * based on the given quantity or stepRate values.\r\n *\r\n * @method Phaser.Geom.Polygon#getPoints\r\n * @since 3.12.0\r\n *\r\n * @generic {Phaser.Geom.Point[]} O - [output,$return]\r\n *\r\n * @param {number} quantity - The amount of points to return. If a falsey value the quantity will be derived from the `stepRate` instead.\r\n * @param {number} [stepRate] - Sets the quantity by getting the perimeter of the Polygon and dividing it by the stepRate.\r\n * @param {(array|Phaser.Geom.Point[])} [output] - An array to insert the points in to. If not provided a new array will be created.\r\n *\r\n * @return {(array|Phaser.Geom.Point[])} An array of Point objects pertaining to the points around the perimeter of the Polygon.\r\n */\r\n getPoints: function (quantity, step, output)\r\n {\r\n return GetPoints(this, quantity, step, output);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Polygon;\r\n\n\n/***/ }),\n\n/***/ 8133:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Reverses the order of the points of a Polygon.\r\n *\r\n * @function Phaser.Geom.Polygon.Reverse\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Polygon} O - [polygon,$return]\r\n *\r\n * @param {Phaser.Geom.Polygon} polygon - The Polygon to modify.\r\n *\r\n * @return {Phaser.Geom.Polygon} The modified Polygon.\r\n */\r\nvar Reverse = function (polygon)\r\n{\r\n polygon.points.reverse();\r\n\r\n return polygon;\r\n};\r\n\r\nmodule.exports = Reverse;\r\n\n\n/***/ }),\n\n/***/ 29524:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Vladimir Agafonkin\r\n * @see Based on Simplify.js mourner.github.io/simplify-js\r\n */\r\n\r\n/**\r\n * Copyright (c) 2017, Vladimir Agafonkin\r\n * All rights reserved.\r\n *\r\n * Redistribution and use in source and binary forms, with or without modification, are\r\n * permitted provided that the following conditions are met:\r\n *\r\n * 1. Redistributions of source code must retain the above copyright notice, this list of\r\n * conditions and the following disclaimer.\r\n *\r\n * 2. Redistributions in binary form must reproduce the above copyright notice, this list\r\n * of conditions and the following disclaimer in the documentation and/or other materials\r\n * provided with the distribution.\r\n *\r\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY\r\n * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\r\n * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\r\n * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\r\n * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\r\n * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)\r\n * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR\r\n * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\r\n * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r\n */\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction getSqDist (p1, p2)\r\n{\r\n var dx = p1.x - p2.x,\r\n dy = p1.y - p2.y;\r\n\r\n return dx * dx + dy * dy;\r\n}\r\n\r\n/**\r\n * Square distance from a point to a segment\r\n *\r\n * @ignore\r\n */\r\nfunction getSqSegDist (p, p1, p2)\r\n{\r\n var x = p1.x,\r\n y = p1.y,\r\n dx = p2.x - x,\r\n dy = p2.y - y;\r\n\r\n if (dx !== 0 || dy !== 0)\r\n {\r\n var t = ((p.x - x) * dx + (p.y - y) * dy) / (dx * dx + dy * dy);\r\n\r\n if (t > 1)\r\n {\r\n x = p2.x;\r\n y = p2.y;\r\n }\r\n else if (t > 0)\r\n {\r\n x += dx * t;\r\n y += dy * t;\r\n }\r\n }\r\n\r\n dx = p.x - x;\r\n dy = p.y - y;\r\n\r\n return dx * dx + dy * dy;\r\n}\r\n\r\n/**\r\n * Basic distance-based simplification\r\n *\r\n * @ignore\r\n */\r\nfunction simplifyRadialDist (points, sqTolerance)\r\n{\r\n var prevPoint = points[0],\r\n newPoints = [ prevPoint ],\r\n point;\r\n\r\n for (var i = 1, len = points.length; i < len; i++)\r\n {\r\n point = points[i];\r\n\r\n if (getSqDist(point, prevPoint) > sqTolerance)\r\n {\r\n newPoints.push(point);\r\n prevPoint = point;\r\n }\r\n }\r\n\r\n if (prevPoint !== point)\r\n {\r\n newPoints.push(point);\r\n }\r\n\r\n return newPoints;\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction simplifyDPStep (points, first, last, sqTolerance, simplified)\r\n{\r\n var maxSqDist = sqTolerance,\r\n index;\r\n\r\n for (var i = first + 1; i < last; i++)\r\n {\r\n var sqDist = getSqSegDist(points[i], points[first], points[last]);\r\n\r\n if (sqDist > maxSqDist)\r\n {\r\n index = i;\r\n maxSqDist = sqDist;\r\n }\r\n }\r\n\r\n if (maxSqDist > sqTolerance)\r\n {\r\n if (index - first > 1)\r\n {\r\n simplifyDPStep(points, first, index, sqTolerance, simplified);\r\n }\r\n\r\n simplified.push(points[index]);\r\n\r\n if (last - index > 1)\r\n {\r\n simplifyDPStep(points, index, last, sqTolerance, simplified);\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * Simplification using Ramer-Douglas-Peucker algorithm\r\n *\r\n * @ignore\r\n */\r\nfunction simplifyDouglasPeucker (points, sqTolerance)\r\n{\r\n var last = points.length - 1;\r\n\r\n var simplified = [ points[0] ];\r\n\r\n simplifyDPStep(points, 0, last, sqTolerance, simplified);\r\n\r\n simplified.push(points[last]);\r\n\r\n return simplified;\r\n}\r\n\r\n/**\r\n * Takes a Polygon object and simplifies the points by running them through a combination of\r\n * Douglas-Peucker and Radial Distance algorithms. Simplification dramatically reduces the number of\r\n * points in a polygon while retaining its shape, giving a huge performance boost when processing\r\n * it and also reducing visual noise.\r\n *\r\n * @function Phaser.Geom.Polygon.Simplify\r\n * @since 3.50.0\r\n *\r\n * @generic {Phaser.Geom.Polygon} O - [polygon,$return]\r\n *\r\n * @param {Phaser.Geom.Polygon} polygon - The polygon to be simplified. The polygon will be modified in-place and returned.\r\n * @param {number} [tolerance=1] - Affects the amount of simplification (in the same metric as the point coordinates).\r\n * @param {boolean} [highestQuality=false] - Excludes distance-based preprocessing step which leads to highest quality simplification but runs ~10-20 times slower.\r\n *\r\n * @return {Phaser.Geom.Polygon} The input polygon.\r\n */\r\nvar Simplify = function (polygon, tolerance, highestQuality)\r\n{\r\n if (tolerance === undefined) { tolerance = 1; }\r\n if (highestQuality === undefined) { highestQuality = false; }\r\n\r\n var points = polygon.points;\r\n\r\n if (points.length > 2)\r\n {\r\n var sqTolerance = tolerance * tolerance;\r\n\r\n if (!highestQuality)\r\n {\r\n points = simplifyRadialDist(points, sqTolerance);\r\n }\r\n\r\n polygon.setTo(simplifyDouglasPeucker(points, sqTolerance));\r\n }\r\n\r\n return polygon;\r\n};\r\n\r\nmodule.exports = Simplify;\r\n\n\n/***/ }),\n\n/***/ 5469:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Igor Ognichenko \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @ignore\r\n */\r\nvar copy = function (out, a)\r\n{\r\n out[0] = a[0];\r\n out[1] = a[1];\r\n\r\n return out;\r\n};\r\n\r\n/**\r\n * Takes a Polygon object and applies Chaikin's smoothing algorithm on its points.\r\n *\r\n * @function Phaser.Geom.Polygon.Smooth\r\n * @since 3.13.0\r\n *\r\n * @generic {Phaser.Geom.Polygon} O - [polygon,$return]\r\n *\r\n * @param {Phaser.Geom.Polygon} polygon - The polygon to be smoothed. The polygon will be modified in-place and returned.\r\n *\r\n * @return {Phaser.Geom.Polygon} The input polygon.\r\n */\r\nvar Smooth = function (polygon)\r\n{\r\n var i;\r\n var points = [];\r\n var data = polygon.points;\r\n\r\n for (i = 0; i < data.length; i++)\r\n {\r\n points.push([ data[i].x, data[i].y ]);\r\n }\r\n\r\n var output = [];\r\n\r\n if (points.length > 0)\r\n {\r\n output.push(copy([ 0, 0 ], points[0]));\r\n }\r\n\r\n for (i = 0; i < points.length - 1; i++)\r\n {\r\n var p0 = points[i];\r\n var p1 = points[i + 1];\r\n var p0x = p0[0];\r\n var p0y = p0[1];\r\n var p1x = p1[0];\r\n var p1y = p1[1];\r\n\r\n output.push([ 0.85 * p0x + 0.15 * p1x, 0.85 * p0y + 0.15 * p1y ]);\r\n output.push([ 0.15 * p0x + 0.85 * p1x, 0.15 * p0y + 0.85 * p1y ]);\r\n }\r\n\r\n if (points.length > 1)\r\n {\r\n output.push(copy([ 0, 0 ], points[points.length - 1]));\r\n }\r\n\r\n return polygon.setTo(output);\r\n};\r\n\r\nmodule.exports = Smooth;\r\n\n\n/***/ }),\n\n/***/ 24709:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Tranlates the points of the given Polygon.\r\n *\r\n * @function Phaser.Geom.Polygon.Translate\r\n * @since 3.50.0\r\n *\r\n * @generic {Phaser.Geom.Polygon} O - [polygon,$return]\r\n *\r\n * @param {Phaser.Geom.Polygon} polygon - The Polygon to modify.\r\n * @param {number} x - The amount to horizontally translate the points by.\r\n * @param {number} y - The amount to vertically translate the points by.\r\n *\r\n * @return {Phaser.Geom.Polygon} The modified Polygon.\r\n */\r\nvar Translate = function (polygon, x, y)\r\n{\r\n var points = polygon.points;\r\n\r\n for (var i = 0; i < points.length; i++)\r\n {\r\n points[i].x += x;\r\n points[i].y += y;\r\n }\r\n\r\n return polygon;\r\n};\r\n\r\nmodule.exports = Translate;\r\n\n\n/***/ }),\n\n/***/ 58423:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Polygon = __webpack_require__(25717);\r\n\r\nPolygon.Clone = __webpack_require__(12306);\r\nPolygon.Contains = __webpack_require__(63814);\r\nPolygon.ContainsPoint = __webpack_require__(99338);\r\nPolygon.Earcut = __webpack_require__(94811);\r\nPolygon.GetAABB = __webpack_require__(13829);\r\nPolygon.GetNumberArray = __webpack_require__(26173);\r\nPolygon.GetPoints = __webpack_require__(9564);\r\nPolygon.Perimeter = __webpack_require__(30052);\r\nPolygon.Reverse = __webpack_require__(8133);\r\nPolygon.Simplify = __webpack_require__(29524);\r\nPolygon.Smooth = __webpack_require__(5469);\r\nPolygon.Translate = __webpack_require__(24709);\r\n\r\nmodule.exports = Polygon;\r\n\n\n/***/ }),\n\n/***/ 62224:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculates the area of the given Rectangle object.\r\n *\r\n * @function Phaser.Geom.Rectangle.Area\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The rectangle to calculate the area of.\r\n *\r\n * @return {number} The area of the Rectangle object.\r\n */\r\nvar Area = function (rect)\r\n{\r\n return rect.width * rect.height;\r\n};\r\n\r\nmodule.exports = Area;\r\n\n\n/***/ }),\n\n/***/ 98615:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Rounds a Rectangle's position up to the smallest integer greater than or equal to each current coordinate.\r\n *\r\n * @function Phaser.Geom.Rectangle.Ceil\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [rect,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The Rectangle to adjust.\r\n *\r\n * @return {Phaser.Geom.Rectangle} The adjusted Rectangle.\r\n */\r\nvar Ceil = function (rect)\r\n{\r\n rect.x = Math.ceil(rect.x);\r\n rect.y = Math.ceil(rect.y);\r\n\r\n return rect;\r\n};\r\n\r\nmodule.exports = Ceil;\r\n\n\n/***/ }),\n\n/***/ 31688:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Rounds a Rectangle's position and size up to the smallest integer greater than or equal to each respective value.\r\n *\r\n * @function Phaser.Geom.Rectangle.CeilAll\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [rect,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The Rectangle to modify.\r\n *\r\n * @return {Phaser.Geom.Rectangle} The modified Rectangle.\r\n */\r\nvar CeilAll = function (rect)\r\n{\r\n rect.x = Math.ceil(rect.x);\r\n rect.y = Math.ceil(rect.y);\r\n rect.width = Math.ceil(rect.width);\r\n rect.height = Math.ceil(rect.height);\r\n\r\n return rect;\r\n};\r\n\r\nmodule.exports = CeilAll;\r\n\n\n/***/ }),\n\n/***/ 67502:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Moves the top-left corner of a Rectangle so that its center is at the given coordinates.\r\n *\r\n * @function Phaser.Geom.Rectangle.CenterOn\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [rect,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The Rectangle to be centered.\r\n * @param {number} x - The X coordinate of the Rectangle's center.\r\n * @param {number} y - The Y coordinate of the Rectangle's center.\r\n *\r\n * @return {Phaser.Geom.Rectangle} The centered rectangle.\r\n */\r\nvar CenterOn = function (rect, x, y)\r\n{\r\n rect.x = x - (rect.width / 2);\r\n rect.y = y - (rect.height / 2);\r\n\r\n return rect;\r\n};\r\n\r\nmodule.exports = CenterOn;\r\n\n\n/***/ }),\n\n/***/ 65085:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Rectangle = __webpack_require__(87841);\r\n\r\n/**\r\n * Creates a new Rectangle which is identical to the given one.\r\n *\r\n * @function Phaser.Geom.Rectangle.Clone\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Rectangle} source - The Rectangle to clone.\r\n *\r\n * @return {Phaser.Geom.Rectangle} The newly created Rectangle, which is separate from the given one.\r\n */\r\nvar Clone = function (source)\r\n{\r\n return new Rectangle(source.x, source.y, source.width, source.height);\r\n};\r\n\r\nmodule.exports = Clone;\r\n\n\n/***/ }),\n\n/***/ 37303:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Checks if a given point is inside a Rectangle's bounds.\r\n *\r\n * @function Phaser.Geom.Rectangle.Contains\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The Rectangle to check.\r\n * @param {number} x - The X coordinate of the point to check.\r\n * @param {number} y - The Y coordinate of the point to check.\r\n *\r\n * @return {boolean} `true` if the point is within the Rectangle's bounds, otherwise `false`.\r\n */\r\nvar Contains = function (rect, x, y)\r\n{\r\n if (rect.width <= 0 || rect.height <= 0)\r\n {\r\n return false;\r\n }\r\n\r\n return (rect.x <= x && rect.x + rect.width >= x && rect.y <= y && rect.y + rect.height >= y);\r\n};\r\n\r\nmodule.exports = Contains;\r\n\n\n/***/ }),\n\n/***/ 96553:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Contains = __webpack_require__(37303);\r\n\r\n/**\r\n * Determines whether the specified point is contained within the rectangular region defined by this Rectangle object.\r\n *\r\n * @function Phaser.Geom.Rectangle.ContainsPoint\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The Rectangle object.\r\n * @param {Phaser.Geom.Point} point - The point object to be checked. Can be a Phaser Point object or any object with x and y values.\r\n *\r\n * @return {boolean} A value of true if the Rectangle object contains the specified point, otherwise false.\r\n */\r\nvar ContainsPoint = function (rect, point)\r\n{\r\n return Contains(rect, point.x, point.y);\r\n};\r\n\r\nmodule.exports = ContainsPoint;\r\n\n\n/***/ }),\n\n/***/ 70273:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Tests if one rectangle fully contains another.\r\n *\r\n * @function Phaser.Geom.Rectangle.ContainsRect\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Rectangle} rectA - The first rectangle.\r\n * @param {Phaser.Geom.Rectangle} rectB - The second rectangle.\r\n *\r\n * @return {boolean} True only if rectA fully contains rectB.\r\n */\r\nvar ContainsRect = function (rectA, rectB)\r\n{\r\n // Volume check (if rectB volume > rectA then rectA cannot contain it)\r\n if ((rectB.width * rectB.height) > (rectA.width * rectA.height))\r\n {\r\n return false;\r\n }\r\n\r\n return (\r\n (rectB.x > rectA.x && rectB.x < rectA.right) &&\r\n (rectB.right > rectA.x && rectB.right < rectA.right) &&\r\n (rectB.y > rectA.y && rectB.y < rectA.bottom) &&\r\n (rectB.bottom > rectA.y && rectB.bottom < rectA.bottom)\r\n );\r\n};\r\n\r\nmodule.exports = ContainsRect;\r\n\n\n/***/ }),\n\n/***/ 43459:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Copy the values of one Rectangle to a destination Rectangle.\r\n *\r\n * @function Phaser.Geom.Rectangle.CopyFrom\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [dest,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} source - The source Rectangle to copy the values from.\r\n * @param {Phaser.Geom.Rectangle} dest - The destination Rectangle to copy the values to.\r\n *\r\n * @return {Phaser.Geom.Rectangle} The destination Rectangle.\r\n */\r\nvar CopyFrom = function (source, dest)\r\n{\r\n return dest.setTo(source.x, source.y, source.width, source.height);\r\n};\r\n\r\nmodule.exports = CopyFrom;\r\n\n\n/***/ }),\n\n/***/ 77493:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Create an array of points for each corner of a Rectangle\r\n * If an array is specified, each point object will be added to the end of the array, otherwise a new array will be created.\r\n *\r\n * @function Phaser.Geom.Rectangle.Decompose\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The Rectangle object to be decomposed.\r\n * @param {array} [out] - If provided, each point will be added to this array.\r\n *\r\n * @return {array} Will return the array you specified or a new array containing the points of the Rectangle.\r\n */\r\nvar Decompose = function (rect, out)\r\n{\r\n if (out === undefined) { out = []; }\r\n\r\n out.push({ x: rect.x, y: rect.y });\r\n out.push({ x: rect.right, y: rect.y });\r\n out.push({ x: rect.right, y: rect.bottom });\r\n out.push({ x: rect.x, y: rect.bottom });\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = Decompose;\r\n\n\n/***/ }),\n\n/***/ 9219:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Compares the `x`, `y`, `width` and `height` properties of two rectangles.\r\n *\r\n * @function Phaser.Geom.Rectangle.Equals\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - Rectangle A\r\n * @param {Phaser.Geom.Rectangle} toCompare - Rectangle B\r\n *\r\n * @return {boolean} `true` if the rectangles' properties are an exact match, otherwise `false`.\r\n */\r\nvar Equals = function (rect, toCompare)\r\n{\r\n return (\r\n rect.x === toCompare.x &&\r\n rect.y === toCompare.y &&\r\n rect.width === toCompare.width &&\r\n rect.height === toCompare.height\r\n );\r\n};\r\n\r\nmodule.exports = Equals;\r\n\n\n/***/ }),\n\n/***/ 53751:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetAspectRatio = __webpack_require__(8249);\r\n\r\n/**\r\n * Adjusts the target rectangle, changing its width, height and position,\r\n * so that it fits inside the area of the source rectangle, while maintaining its original\r\n * aspect ratio.\r\n *\r\n * Unlike the `FitOutside` function, there may be some space inside the source area not covered.\r\n *\r\n * @function Phaser.Geom.Rectangle.FitInside\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [target,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} target - The target rectangle to adjust.\r\n * @param {Phaser.Geom.Rectangle} source - The source rectangle to envelop the target in.\r\n *\r\n * @return {Phaser.Geom.Rectangle} The modified target rectangle instance.\r\n */\r\nvar FitInside = function (target, source)\r\n{\r\n var ratio = GetAspectRatio(target);\r\n\r\n if (ratio < GetAspectRatio(source))\r\n {\r\n // Taller than Wide\r\n target.setSize(source.height * ratio, source.height);\r\n }\r\n else\r\n {\r\n // Wider than Tall\r\n target.setSize(source.width, source.width / ratio);\r\n }\r\n\r\n return target.setPosition(\r\n source.centerX - (target.width / 2),\r\n source.centerY - (target.height / 2)\r\n );\r\n};\r\n\r\nmodule.exports = FitInside;\r\n\n\n/***/ }),\n\n/***/ 16088:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetAspectRatio = __webpack_require__(8249);\r\n\r\n/**\r\n * Adjusts the target rectangle, changing its width, height and position,\r\n * so that it fully covers the area of the source rectangle, while maintaining its original\r\n * aspect ratio.\r\n *\r\n * Unlike the `FitInside` function, the target rectangle may extend further out than the source.\r\n *\r\n * @function Phaser.Geom.Rectangle.FitOutside\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [target,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} target - The target rectangle to adjust.\r\n * @param {Phaser.Geom.Rectangle} source - The source rectangle to envelope the target in.\r\n *\r\n * @return {Phaser.Geom.Rectangle} The modified target rectangle instance.\r\n */\r\nvar FitOutside = function (target, source)\r\n{\r\n var ratio = GetAspectRatio(target);\r\n\r\n if (ratio > GetAspectRatio(source))\r\n {\r\n // Wider than Tall\r\n target.setSize(source.height * ratio, source.height);\r\n }\r\n else\r\n {\r\n // Taller than Wide\r\n target.setSize(source.width, source.width / ratio);\r\n }\r\n\r\n return target.setPosition(\r\n source.centerX - target.width / 2,\r\n source.centerY - target.height / 2\r\n );\r\n};\r\n\r\nmodule.exports = FitOutside;\r\n\n\n/***/ }),\n\n/***/ 80774:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Rounds down (floors) the top left X and Y coordinates of the given Rectangle to the largest integer less than or equal to them\r\n *\r\n * @function Phaser.Geom.Rectangle.Floor\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [rect,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The rectangle to floor the top left X and Y coordinates of\r\n *\r\n * @return {Phaser.Geom.Rectangle} The rectangle that was passed to this function with its coordinates floored.\r\n */\r\nvar Floor = function (rect)\r\n{\r\n rect.x = Math.floor(rect.x);\r\n rect.y = Math.floor(rect.y);\r\n\r\n return rect;\r\n};\r\n\r\nmodule.exports = Floor;\r\n\n\n/***/ }),\n\n/***/ 83859:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Rounds a Rectangle's position and size down to the largest integer less than or equal to each current coordinate or dimension.\r\n *\r\n * @function Phaser.Geom.Rectangle.FloorAll\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [rect,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The Rectangle to adjust.\r\n *\r\n * @return {Phaser.Geom.Rectangle} The adjusted Rectangle.\r\n */\r\nvar FloorAll = function (rect)\r\n{\r\n rect.x = Math.floor(rect.x);\r\n rect.y = Math.floor(rect.y);\r\n rect.width = Math.floor(rect.width);\r\n rect.height = Math.floor(rect.height);\r\n\r\n return rect;\r\n};\r\n\r\nmodule.exports = FloorAll;\r\n\n\n/***/ }),\n\n/***/ 19217:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Rectangle = __webpack_require__(87841);\r\nvar MATH_CONST = __webpack_require__(36383);\r\n\r\n/**\r\n * Constructs new Rectangle or repositions and resizes an existing Rectangle so that all of the given points are on or within its bounds.\r\n *\r\n * The `points` parameter is an array of Point-like objects:\r\n *\r\n * ```js\r\n * const points = [\r\n * [100, 200],\r\n * [200, 400],\r\n * { x: 30, y: 60 }\r\n * ]\r\n * ```\r\n *\r\n * @function Phaser.Geom.Rectangle.FromPoints\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [out,$return]\r\n *\r\n * @param {array} points - An array of points (either arrays with two elements corresponding to the X and Y coordinate or an object with public `x` and `y` properties) which should be surrounded by the Rectangle.\r\n * @param {Phaser.Geom.Rectangle} [out] - Optional Rectangle to adjust.\r\n *\r\n * @return {Phaser.Geom.Rectangle} The adjusted `out` Rectangle, or a new Rectangle if none was provided.\r\n */\r\nvar FromPoints = function (points, out)\r\n{\r\n if (out === undefined) { out = new Rectangle(); }\r\n\r\n if (points.length === 0)\r\n {\r\n return out;\r\n }\r\n\r\n var minX = Number.MAX_VALUE;\r\n var minY = Number.MAX_VALUE;\r\n\r\n var maxX = MATH_CONST.MIN_SAFE_INTEGER;\r\n var maxY = MATH_CONST.MIN_SAFE_INTEGER;\r\n\r\n var p;\r\n var px;\r\n var py;\r\n\r\n for (var i = 0; i < points.length; i++)\r\n {\r\n p = points[i];\r\n\r\n if (Array.isArray(p))\r\n {\r\n px = p[0];\r\n py = p[1];\r\n }\r\n else\r\n {\r\n px = p.x;\r\n py = p.y;\r\n }\r\n\r\n minX = Math.min(minX, px);\r\n minY = Math.min(minY, py);\r\n\r\n maxX = Math.max(maxX, px);\r\n maxY = Math.max(maxY, py);\r\n }\r\n\r\n out.x = minX;\r\n out.y = minY;\r\n out.width = maxX - minX;\r\n out.height = maxY - minY;\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = FromPoints;\r\n\n\n/***/ }),\n\n/***/ 9477:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author samme\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Rectangle = __webpack_require__(87841);\r\n\r\n/**\r\n * Create the smallest Rectangle containing two coordinate pairs.\r\n *\r\n * @function Phaser.Geom.Rectangle.FromXY\r\n * @since 3.23.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [out,$return]\r\n *\r\n * @param {number} x1 - The X coordinate of the first point.\r\n * @param {number} y1 - The Y coordinate of the first point.\r\n * @param {number} x2 - The X coordinate of the second point.\r\n * @param {number} y2 - The Y coordinate of the second point.\r\n * @param {Phaser.Geom.Rectangle} [out] - Optional Rectangle to adjust.\r\n *\r\n * @return {Phaser.Geom.Rectangle} The adjusted `out` Rectangle, or a new Rectangle if none was provided.\r\n */\r\nvar FromXY = function (x1, y1, x2, y2, out)\r\n{\r\n if (out === undefined) { out = new Rectangle(); }\r\n\r\n return out.setTo(\r\n Math.min(x1, x2),\r\n Math.min(y1, y2),\r\n Math.abs(x1 - x2),\r\n Math.abs(y1 - y2)\r\n );\r\n};\r\n\r\nmodule.exports = FromXY;\r\n\n\n/***/ }),\n\n/***/ 8249:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculates the width/height ratio of a rectangle.\r\n *\r\n * @function Phaser.Geom.Rectangle.GetAspectRatio\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The rectangle.\r\n *\r\n * @return {number} The width/height ratio of the rectangle.\r\n */\r\nvar GetAspectRatio = function (rect)\r\n{\r\n return (rect.height === 0) ? NaN : rect.width / rect.height;\r\n};\r\n\r\nmodule.exports = GetAspectRatio;\r\n\n\n/***/ }),\n\n/***/ 27165:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Returns the center of a Rectangle as a Point.\r\n *\r\n * @function Phaser.Geom.Rectangle.GetCenter\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The Rectangle to get the center of.\r\n * @param {(Phaser.Geom.Point|object)} [out] - Optional point-like object to update with the center coordinates.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} The modified `out` object, or a new Point if none was provided.\r\n */\r\nvar GetCenter = function (rect, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n out.x = rect.centerX;\r\n out.y = rect.centerY;\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetCenter;\r\n\n\n/***/ }),\n\n/***/ 20812:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Perimeter = __webpack_require__(13019);\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Calculates the coordinates of a point at a certain `position` on the Rectangle's perimeter.\r\n *\r\n * The `position` is a fraction between 0 and 1 which defines how far into the perimeter the point is.\r\n *\r\n * A value of 0 or 1 returns the point at the top left corner of the rectangle, while a value of 0.5 returns the point at the bottom right corner of the rectangle. Values between 0 and 0.5 are on the top or the right side and values between 0.5 and 1 are on the bottom or the left side.\r\n *\r\n * @function Phaser.Geom.Rectangle.GetPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} rectangle - The Rectangle to get the perimeter point from.\r\n * @param {number} position - The normalized distance into the Rectangle's perimeter to return.\r\n * @param {(Phaser.Geom.Point|object)} [out] - An object to update with the `x` and `y` coordinates of the point.\r\n *\r\n * @return {Phaser.Geom.Point} The updated `output` object, or a new Point if no `output` object was given.\r\n */\r\nvar GetPoint = function (rectangle, position, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n if (position <= 0 || position >= 1)\r\n {\r\n out.x = rectangle.x;\r\n out.y = rectangle.y;\r\n\r\n return out;\r\n }\r\n\r\n var p = Perimeter(rectangle) * position;\r\n\r\n if (position > 0.5)\r\n {\r\n p -= (rectangle.width + rectangle.height);\r\n\r\n if (p <= rectangle.width)\r\n {\r\n // Face 3\r\n out.x = rectangle.right - p;\r\n out.y = rectangle.bottom;\r\n }\r\n else\r\n {\r\n // Face 4\r\n out.x = rectangle.x;\r\n out.y = rectangle.bottom - (p - rectangle.width);\r\n }\r\n }\r\n else if (p <= rectangle.width)\r\n {\r\n // Face 1\r\n out.x = rectangle.x + p;\r\n out.y = rectangle.y;\r\n }\r\n else\r\n {\r\n // Face 2\r\n out.x = rectangle.right;\r\n out.y = rectangle.y + (p - rectangle.width);\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetPoint;\r\n\n\n/***/ }),\n\n/***/ 34819:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetPoint = __webpack_require__(20812);\r\nvar Perimeter = __webpack_require__(13019);\r\n\r\n/**\r\n * Return an array of points from the perimeter of the rectangle, each spaced out based on the quantity or step required.\r\n *\r\n * @function Phaser.Geom.Rectangle.GetPoints\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point[]} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} rectangle - The Rectangle object to get the points from.\r\n * @param {number} step - Step between points. Used to calculate the number of points to return when quantity is falsey. Ignored if quantity is positive.\r\n * @param {number} quantity - The number of evenly spaced points from the rectangles perimeter to return. If falsey, step param will be used to calculate the number of points.\r\n * @param {(array|Phaser.Geom.Point[])} [out] - An optional array to store the points in.\r\n *\r\n * @return {(array|Phaser.Geom.Point[])} An array of Points from the perimeter of the rectangle.\r\n */\r\nvar GetPoints = function (rectangle, quantity, stepRate, out)\r\n{\r\n if (out === undefined) { out = []; }\r\n\r\n // If quantity is a falsey value (false, null, 0, undefined, etc) then we calculate it based on the stepRate instead.\r\n if (!quantity && stepRate > 0)\r\n {\r\n quantity = Perimeter(rectangle) / stepRate;\r\n }\r\n\r\n for (var i = 0; i < quantity; i++)\r\n {\r\n var position = i / quantity;\r\n\r\n out.push(GetPoint(rectangle, position));\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetPoints;\r\n\n\n/***/ }),\n\n/***/ 51313:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Returns the size of the Rectangle, expressed as a Point object.\r\n * With the value of the `width` as the `x` property and the `height` as the `y` property.\r\n *\r\n * @function Phaser.Geom.Rectangle.GetSize\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The Rectangle to get the size from.\r\n * @param {(Phaser.Geom.Point|object)} [out] - The Point object to store the size in. If not given, a new Point instance is created.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} A Point object where `x` holds the width and `y` holds the height of the Rectangle.\r\n */\r\nvar GetSize = function (rect, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n out.x = rect.width;\r\n out.y = rect.height;\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetSize;\r\n\n\n/***/ }),\n\n/***/ 86091:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CenterOn = __webpack_require__(67502);\r\n\r\n/**\r\n * Increases the size of a Rectangle by a specified amount.\r\n *\r\n * The center of the Rectangle stays the same. The amounts are added to each side, so the actual increase in width or height is two times bigger than the respective argument.\r\n *\r\n * @function Phaser.Geom.Rectangle.Inflate\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [rect,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The Rectangle to inflate.\r\n * @param {number} x - How many pixels the left and the right side should be moved by horizontally.\r\n * @param {number} y - How many pixels the top and the bottom side should be moved by vertically.\r\n *\r\n * @return {Phaser.Geom.Rectangle} The inflated Rectangle.\r\n */\r\nvar Inflate = function (rect, x, y)\r\n{\r\n var cx = rect.centerX;\r\n var cy = rect.centerY;\r\n\r\n rect.setSize(rect.width + (x * 2), rect.height + (y * 2));\r\n\r\n return CenterOn(rect, cx, cy);\r\n};\r\n\r\nmodule.exports = Inflate;\r\n\n\n/***/ }),\n\n/***/ 53951:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Rectangle = __webpack_require__(87841);\r\nvar Intersects = __webpack_require__(59996);\r\n\r\n/**\r\n * Takes two Rectangles and first checks to see if they intersect.\r\n * If they intersect it will return the area of intersection in the `out` Rectangle.\r\n * If they do not intersect, the `out` Rectangle will have a width and height of zero.\r\n *\r\n * @function Phaser.Geom.Rectangle.Intersection\r\n * @since 3.11.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [rect,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} rectA - The first Rectangle to get the intersection from.\r\n * @param {Phaser.Geom.Rectangle} rectB - The second Rectangle to get the intersection from.\r\n * @param {Phaser.Geom.Rectangle} [out] - A Rectangle to store the intersection results in.\r\n *\r\n * @return {Phaser.Geom.Rectangle} The intersection result. If the width and height are zero, no intersection occurred.\r\n */\r\nvar Intersection = function (rectA, rectB, out)\r\n{\r\n if (out === undefined) { out = new Rectangle(); }\r\n\r\n if (Intersects(rectA, rectB))\r\n {\r\n out.x = Math.max(rectA.x, rectB.x);\r\n out.y = Math.max(rectA.y, rectB.y);\r\n out.width = Math.min(rectA.right, rectB.right) - out.x;\r\n out.height = Math.min(rectA.bottom, rectB.bottom) - out.y;\r\n }\r\n else\r\n {\r\n out.setEmpty();\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = Intersection;\r\n\n\n/***/ }),\n\n/***/ 14649:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Perimeter = __webpack_require__(13019);\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Returns an array of points from the perimeter of the Rectangle, where each point is spaced out based\r\n * on either the `step` value, or the `quantity`.\r\n *\r\n * @function Phaser.Geom.Rectangle.MarchingAnts\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point[]} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The Rectangle to get the perimeter points from.\r\n * @param {number} [step] - The distance between each point of the perimeter. Set to `null` if you wish to use the `quantity` parameter instead.\r\n * @param {number} [quantity] - The total number of points to return. The step is then calculated based on the length of the Rectangle, divided by this value.\r\n * @param {(array|Phaser.Geom.Point[])} [out] - An array in which the perimeter points will be stored. If not given, a new array instance is created.\r\n *\r\n * @return {(array|Phaser.Geom.Point[])} An array containing the perimeter points from the Rectangle.\r\n */\r\nvar MarchingAnts = function (rect, step, quantity, out)\r\n{\r\n if (out === undefined) { out = []; }\r\n\r\n if (!step && !quantity)\r\n {\r\n // Bail out\r\n return out;\r\n }\r\n\r\n // If step is a falsey value (false, null, 0, undefined, etc) then we calculate\r\n // it based on the quantity instead, otherwise we always use the step value\r\n if (!step)\r\n {\r\n step = Perimeter(rect) / quantity;\r\n }\r\n else\r\n {\r\n quantity = Math.round(Perimeter(rect) / step);\r\n }\r\n\r\n var x = rect.x;\r\n var y = rect.y;\r\n var face = 0;\r\n\r\n // Loop across each face of the rectangle\r\n\r\n for (var i = 0; i < quantity; i++)\r\n {\r\n out.push(new Point(x, y));\r\n\r\n switch (face)\r\n {\r\n\r\n // Top face\r\n case 0:\r\n x += step;\r\n\r\n if (x >= rect.right)\r\n {\r\n face = 1;\r\n y += (x - rect.right);\r\n x = rect.right;\r\n }\r\n break;\r\n\r\n // Right face\r\n case 1:\r\n y += step;\r\n\r\n if (y >= rect.bottom)\r\n {\r\n face = 2;\r\n x -= (y - rect.bottom);\r\n y = rect.bottom;\r\n }\r\n break;\r\n\r\n // Bottom face\r\n case 2:\r\n x -= step;\r\n\r\n if (x <= rect.left)\r\n {\r\n face = 3;\r\n y -= (rect.left - x);\r\n x = rect.left;\r\n }\r\n break;\r\n\r\n // Left face\r\n case 3:\r\n y -= step;\r\n\r\n if (y <= rect.top)\r\n {\r\n face = 0;\r\n y = rect.top;\r\n }\r\n break;\r\n }\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = MarchingAnts;\r\n\n\n/***/ }),\n\n/***/ 33595:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Merges a Rectangle with a list of points by repositioning and/or resizing it such that all points are located on or within its bounds.\r\n *\r\n * @function Phaser.Geom.Rectangle.MergePoints\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [target,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} target - The Rectangle which should be merged.\r\n * @param {Phaser.Geom.Point[]} points - An array of Points (or any object with public `x` and `y` properties) which should be merged with the Rectangle.\r\n *\r\n * @return {Phaser.Geom.Rectangle} The modified Rectangle.\r\n */\r\nvar MergePoints = function (target, points)\r\n{\r\n var minX = target.x;\r\n var maxX = target.right;\r\n var minY = target.y;\r\n var maxY = target.bottom;\r\n\r\n for (var i = 0; i < points.length; i++)\r\n {\r\n minX = Math.min(minX, points[i].x);\r\n maxX = Math.max(maxX, points[i].x);\r\n minY = Math.min(minY, points[i].y);\r\n maxY = Math.max(maxY, points[i].y);\r\n }\r\n\r\n target.x = minX;\r\n target.y = minY;\r\n target.width = maxX - minX;\r\n target.height = maxY - minY;\r\n\r\n return target;\r\n};\r\n\r\nmodule.exports = MergePoints;\r\n\n\n/***/ }),\n\n/***/ 20074:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Merges the source rectangle into the target rectangle and returns the target.\r\n * Neither rectangle should have a negative width or height.\r\n *\r\n * @function Phaser.Geom.Rectangle.MergeRect\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [target,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} target - Target rectangle. Will be modified to include source rectangle.\r\n * @param {Phaser.Geom.Rectangle} source - Rectangle that will be merged into target rectangle.\r\n *\r\n * @return {Phaser.Geom.Rectangle} Modified target rectangle that contains source rectangle.\r\n */\r\nvar MergeRect = function (target, source)\r\n{\r\n var minX = Math.min(target.x, source.x);\r\n var maxX = Math.max(target.right, source.right);\r\n\r\n target.x = minX;\r\n target.width = maxX - minX;\r\n\r\n var minY = Math.min(target.y, source.y);\r\n var maxY = Math.max(target.bottom, source.bottom);\r\n\r\n target.y = minY;\r\n target.height = maxY - minY;\r\n\r\n return target;\r\n};\r\n\r\nmodule.exports = MergeRect;\r\n\n\n/***/ }),\n\n/***/ 92171:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Merges a Rectangle with a point by repositioning and/or resizing it so that the point is on or within its bounds.\r\n *\r\n * @function Phaser.Geom.Rectangle.MergeXY\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [target,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} target - The Rectangle which should be merged and modified.\r\n * @param {number} x - The X coordinate of the point which should be merged.\r\n * @param {number} y - The Y coordinate of the point which should be merged.\r\n *\r\n * @return {Phaser.Geom.Rectangle} The modified `target` Rectangle.\r\n */\r\nvar MergeXY = function (target, x, y)\r\n{\r\n var minX = Math.min(target.x, x);\r\n var maxX = Math.max(target.right, x);\r\n\r\n target.x = minX;\r\n target.width = maxX - minX;\r\n\r\n var minY = Math.min(target.y, y);\r\n var maxY = Math.max(target.bottom, y);\r\n\r\n target.y = minY;\r\n target.height = maxY - minY;\r\n\r\n return target;\r\n};\r\n\r\nmodule.exports = MergeXY;\r\n\n\n/***/ }),\n\n/***/ 42981:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Nudges (translates) the top left corner of a Rectangle by a given offset.\r\n *\r\n * @function Phaser.Geom.Rectangle.Offset\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [rect,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The Rectangle to adjust.\r\n * @param {number} x - The distance to move the Rectangle horizontally.\r\n * @param {number} y - The distance to move the Rectangle vertically.\r\n *\r\n * @return {Phaser.Geom.Rectangle} The adjusted Rectangle.\r\n */\r\nvar Offset = function (rect, x, y)\r\n{\r\n rect.x += x;\r\n rect.y += y;\r\n\r\n return rect;\r\n};\r\n\r\nmodule.exports = Offset;\r\n\n\n/***/ }),\n\n/***/ 46907:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Nudges (translates) the top-left corner of a Rectangle by the coordinates of a point (translation vector).\r\n *\r\n * @function Phaser.Geom.Rectangle.OffsetPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [rect,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The Rectangle to adjust.\r\n * @param {(Phaser.Geom.Point|Phaser.Math.Vector2)} point - The point whose coordinates should be used as an offset.\r\n *\r\n * @return {Phaser.Geom.Rectangle} The adjusted Rectangle.\r\n */\r\nvar OffsetPoint = function (rect, point)\r\n{\r\n rect.x += point.x;\r\n rect.y += point.y;\r\n\r\n return rect;\r\n};\r\n\r\nmodule.exports = OffsetPoint;\r\n\n\n/***/ }),\n\n/***/ 60170:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Checks if two Rectangles overlap. If a Rectangle is within another Rectangle, the two will be considered overlapping. Thus, the Rectangles are treated as \"solid\".\r\n *\r\n * @function Phaser.Geom.Rectangle.Overlaps\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Rectangle} rectA - The first Rectangle to check.\r\n * @param {Phaser.Geom.Rectangle} rectB - The second Rectangle to check.\r\n *\r\n * @return {boolean} `true` if the two Rectangles overlap, `false` otherwise.\r\n */\r\nvar Overlaps = function (rectA, rectB)\r\n{\r\n return (\r\n rectA.x < rectB.right &&\r\n rectA.right > rectB.x &&\r\n rectA.y < rectB.bottom &&\r\n rectA.bottom > rectB.y\r\n );\r\n};\r\n\r\nmodule.exports = Overlaps;\r\n\n\n/***/ }),\n\n/***/ 13019:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculates the perimeter of a Rectangle.\r\n *\r\n * @function Phaser.Geom.Rectangle.Perimeter\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The Rectangle to use.\r\n *\r\n * @return {number} The perimeter of the Rectangle, equal to `(width * 2) + (height * 2)`.\r\n */\r\nvar Perimeter = function (rect)\r\n{\r\n return 2 * (rect.width + rect.height);\r\n};\r\n\r\nmodule.exports = Perimeter;\r\n\n\n/***/ }),\n\n/***/ 85133:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\nvar DegToRad = __webpack_require__(39506);\r\n\r\n/**\r\n * Returns a Point from the perimeter of a Rectangle based on the given angle.\r\n *\r\n * @function Phaser.Geom.Rectangle.PerimeterPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} rectangle - The Rectangle to get the perimeter point from.\r\n * @param {number} angle - The angle of the point, in degrees.\r\n * @param {Phaser.Geom.Point} [out] - The Point object to store the position in. If not given, a new Point instance is created.\r\n *\r\n * @return {Phaser.Geom.Point} A Point object holding the coordinates of the Rectangle perimeter.\r\n */\r\nvar PerimeterPoint = function (rectangle, angle, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n angle = DegToRad(angle);\r\n\r\n var s = Math.sin(angle);\r\n var c = Math.cos(angle);\r\n\r\n var dx = (c > 0) ? rectangle.width / 2 : rectangle.width / -2;\r\n var dy = (s > 0) ? rectangle.height / 2 : rectangle.height / -2;\r\n\r\n if (Math.abs(dx * s) < Math.abs(dy * c))\r\n {\r\n dy = (dx * s) / c;\r\n }\r\n else\r\n {\r\n dx = (dy * c) / s;\r\n }\r\n\r\n out.x = dx + rectangle.centerX;\r\n out.y = dy + rectangle.centerY;\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = PerimeterPoint;\r\n\n\n/***/ }),\n\n/***/ 26597:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Returns a random point within a Rectangle.\r\n *\r\n * @function Phaser.Geom.Rectangle.Random\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The Rectangle to return a point from.\r\n * @param {Phaser.Geom.Point} out - The object to update with the point's coordinates.\r\n *\r\n * @return {Phaser.Geom.Point} The modified `out` object, or a new Point if none was provided.\r\n */\r\nvar Random = function (rect, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n out.x = rect.x + (Math.random() * rect.width);\r\n out.y = rect.y + (Math.random() * rect.height);\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = Random;\r\n\n\n/***/ }),\n\n/***/ 86470:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Between = __webpack_require__(30976);\r\nvar ContainsRect = __webpack_require__(70273);\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Calculates a random point that lies within the `outer` Rectangle, but outside of the `inner` Rectangle.\r\n * The inner Rectangle must be fully contained within the outer rectangle.\r\n *\r\n * @function Phaser.Geom.Rectangle.RandomOutside\r\n * @since 3.10.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} outer - The outer Rectangle to get the random point within.\r\n * @param {Phaser.Geom.Rectangle} inner - The inner Rectangle to exclude from the returned point.\r\n * @param {Phaser.Geom.Point} [out] - A Point, or Point-like object to store the result in. If not specified, a new Point will be created.\r\n *\r\n * @return {Phaser.Geom.Point} A Point object containing the random values in its `x` and `y` properties.\r\n */\r\nvar RandomOutside = function (outer, inner, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n if (ContainsRect(outer, inner))\r\n {\r\n // Pick a random quadrant\r\n //\r\n // The quadrants don't extend the full widths / heights of the outer rect to give\r\n // us a better uniformed distribution, otherwise you get clumping in the corners where\r\n // the 4 quads would overlap\r\n\r\n switch (Between(0, 3))\r\n {\r\n case 0: // Top\r\n out.x = outer.x + (Math.random() * (inner.right - outer.x));\r\n out.y = outer.y + (Math.random() * (inner.top - outer.y));\r\n break;\r\n\r\n case 1: // Bottom\r\n out.x = inner.x + (Math.random() * (outer.right - inner.x));\r\n out.y = inner.bottom + (Math.random() * (outer.bottom - inner.bottom));\r\n break;\r\n\r\n case 2: // Left\r\n out.x = outer.x + (Math.random() * (inner.x - outer.x));\r\n out.y = inner.y + (Math.random() * (outer.bottom - inner.y));\r\n break;\r\n\r\n case 3: // Right\r\n out.x = inner.right + (Math.random() * (outer.right - inner.right));\r\n out.y = outer.y + (Math.random() * (inner.bottom - outer.y));\r\n break;\r\n }\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = RandomOutside;\r\n\n\n/***/ }),\n\n/***/ 87841:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Contains = __webpack_require__(37303);\r\nvar GetPoint = __webpack_require__(20812);\r\nvar GetPoints = __webpack_require__(34819);\r\nvar GEOM_CONST = __webpack_require__(23777);\r\nvar Line = __webpack_require__(23031);\r\nvar Random = __webpack_require__(26597);\r\n\r\n/**\r\n * @classdesc\r\n * Encapsulates a 2D rectangle defined by its corner point in the top-left and its extends in x (width) and y (height)\r\n *\r\n * @class Rectangle\r\n * @memberof Phaser.Geom\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=0] - The X coordinate of the top left corner of the Rectangle.\r\n * @param {number} [y=0] - The Y coordinate of the top left corner of the Rectangle.\r\n * @param {number} [width=0] - The width of the Rectangle.\r\n * @param {number} [height=0] - The height of the Rectangle.\r\n */\r\nvar Rectangle = new Class({\r\n\r\n initialize:\r\n\r\n function Rectangle (x, y, width, height)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (width === undefined) { width = 0; }\r\n if (height === undefined) { height = 0; }\r\n\r\n /**\r\n * The geometry constant type of this object: `GEOM_CONST.RECTANGLE`.\r\n * Used for fast type comparisons.\r\n *\r\n * @name Phaser.Geom.Rectangle#type\r\n * @type {number}\r\n * @readonly\r\n * @since 3.19.0\r\n */\r\n this.type = GEOM_CONST.RECTANGLE;\r\n\r\n /**\r\n * The X coordinate of the top left corner of the Rectangle.\r\n *\r\n * @name Phaser.Geom.Rectangle#x\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.x = x;\r\n\r\n /**\r\n * The Y coordinate of the top left corner of the Rectangle.\r\n *\r\n * @name Phaser.Geom.Rectangle#y\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.y = y;\r\n\r\n /**\r\n * The width of the Rectangle, i.e. the distance between its left side (defined by `x`) and its right side.\r\n *\r\n * @name Phaser.Geom.Rectangle#width\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.width = width;\r\n\r\n /**\r\n * The height of the Rectangle, i.e. the distance between its top side (defined by `y`) and its bottom side.\r\n *\r\n * @name Phaser.Geom.Rectangle#height\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.height = height;\r\n },\r\n\r\n /**\r\n * Checks if the given point is inside the Rectangle's bounds.\r\n *\r\n * @method Phaser.Geom.Rectangle#contains\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The X coordinate of the point to check.\r\n * @param {number} y - The Y coordinate of the point to check.\r\n *\r\n * @return {boolean} `true` if the point is within the Rectangle's bounds, otherwise `false`.\r\n */\r\n contains: function (x, y)\r\n {\r\n return Contains(this, x, y);\r\n },\r\n\r\n /**\r\n * Calculates the coordinates of a point at a certain `position` on the Rectangle's perimeter.\r\n *\r\n * The `position` is a fraction between 0 and 1 which defines how far into the perimeter the point is.\r\n *\r\n * A value of 0 or 1 returns the point at the top left corner of the rectangle, while a value of 0.5 returns the point at the bottom right corner of the rectangle. Values between 0 and 0.5 are on the top or the right side and values between 0.5 and 1 are on the bottom or the left side.\r\n *\r\n * @method Phaser.Geom.Rectangle#getPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [output,$return]\r\n *\r\n * @param {number} position - The normalized distance into the Rectangle's perimeter to return.\r\n * @param {(Phaser.Geom.Point|object)} [output] - An object to update with the `x` and `y` coordinates of the point.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} The updated `output` object, or a new Point if no `output` object was given.\r\n */\r\n getPoint: function (position, output)\r\n {\r\n return GetPoint(this, position, output);\r\n },\r\n\r\n /**\r\n * Returns an array of points from the perimeter of the Rectangle, each spaced out based on the quantity or step required.\r\n *\r\n * @method Phaser.Geom.Rectangle#getPoints\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point[]} O - [output,$return]\r\n *\r\n * @param {number} quantity - The number of points to return. Set to `false` or 0 to return an arbitrary number of points (`perimeter / stepRate`) evenly spaced around the Rectangle based on the `stepRate`.\r\n * @param {number} [stepRate] - If `quantity` is 0, determines the normalized distance between each returned point.\r\n * @param {(array|Phaser.Geom.Point[])} [output] - An array to which to append the points.\r\n *\r\n * @return {(array|Phaser.Geom.Point[])} The modified `output` array, or a new array if none was provided.\r\n */\r\n getPoints: function (quantity, stepRate, output)\r\n {\r\n return GetPoints(this, quantity, stepRate, output);\r\n },\r\n\r\n /**\r\n * Returns a random point within the Rectangle's bounds.\r\n *\r\n * @method Phaser.Geom.Rectangle#getRandomPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [point,$return]\r\n *\r\n * @param {Phaser.Geom.Point} [point] - The object in which to store the `x` and `y` coordinates of the point.\r\n *\r\n * @return {Phaser.Geom.Point} The updated `point`, or a new Point if none was provided.\r\n */\r\n getRandomPoint: function (point)\r\n {\r\n return Random(this, point);\r\n },\r\n\r\n /**\r\n * Sets the position, width, and height of the Rectangle.\r\n *\r\n * @method Phaser.Geom.Rectangle#setTo\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The X coordinate of the top left corner of the Rectangle.\r\n * @param {number} y - The Y coordinate of the top left corner of the Rectangle.\r\n * @param {number} width - The width of the Rectangle.\r\n * @param {number} height - The height of the Rectangle.\r\n *\r\n * @return {this} This Rectangle object.\r\n */\r\n setTo: function (x, y, width, height)\r\n {\r\n this.x = x;\r\n this.y = y;\r\n this.width = width;\r\n this.height = height;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resets the position, width, and height of the Rectangle to 0.\r\n *\r\n * @method Phaser.Geom.Rectangle#setEmpty\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Rectangle object.\r\n */\r\n setEmpty: function ()\r\n {\r\n return this.setTo(0, 0, 0, 0);\r\n },\r\n\r\n /**\r\n * Sets the position of the Rectangle.\r\n *\r\n * @method Phaser.Geom.Rectangle#setPosition\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The X coordinate of the top left corner of the Rectangle.\r\n * @param {number} [y=x] - The Y coordinate of the top left corner of the Rectangle.\r\n *\r\n * @return {this} This Rectangle object.\r\n */\r\n setPosition: function (x, y)\r\n {\r\n if (y === undefined) { y = x; }\r\n\r\n this.x = x;\r\n this.y = y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the width and height of the Rectangle.\r\n *\r\n * @method Phaser.Geom.Rectangle#setSize\r\n * @since 3.0.0\r\n *\r\n * @param {number} width - The width to set the Rectangle to.\r\n * @param {number} [height=width] - The height to set the Rectangle to.\r\n *\r\n * @return {this} This Rectangle object.\r\n */\r\n setSize: function (width, height)\r\n {\r\n if (height === undefined) { height = width; }\r\n\r\n this.width = width;\r\n this.height = height;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Determines if the Rectangle is empty. A Rectangle is empty if its width or height is less than or equal to 0.\r\n *\r\n * @method Phaser.Geom.Rectangle#isEmpty\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} `true` if the Rectangle is empty. A Rectangle object is empty if its width or height is less than or equal to 0.\r\n */\r\n isEmpty: function ()\r\n {\r\n return (this.width <= 0 || this.height <= 0);\r\n },\r\n\r\n /**\r\n * Returns a Line object that corresponds to the top of this Rectangle.\r\n *\r\n * @method Phaser.Geom.Rectangle#getLineA\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Line} O - [line,$return]\r\n *\r\n * @param {Phaser.Geom.Line} [line] - A Line object to set the results in. If `undefined` a new Line will be created.\r\n *\r\n * @return {Phaser.Geom.Line} A Line object that corresponds to the top of this Rectangle.\r\n */\r\n getLineA: function (line)\r\n {\r\n if (line === undefined) { line = new Line(); }\r\n\r\n line.setTo(this.x, this.y, this.right, this.y);\r\n\r\n return line;\r\n },\r\n\r\n /**\r\n * Returns a Line object that corresponds to the right of this Rectangle.\r\n *\r\n * @method Phaser.Geom.Rectangle#getLineB\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Line} O - [line,$return]\r\n *\r\n * @param {Phaser.Geom.Line} [line] - A Line object to set the results in. If `undefined` a new Line will be created.\r\n *\r\n * @return {Phaser.Geom.Line} A Line object that corresponds to the right of this Rectangle.\r\n */\r\n getLineB: function (line)\r\n {\r\n if (line === undefined) { line = new Line(); }\r\n\r\n line.setTo(this.right, this.y, this.right, this.bottom);\r\n\r\n return line;\r\n },\r\n\r\n /**\r\n * Returns a Line object that corresponds to the bottom of this Rectangle.\r\n *\r\n * @method Phaser.Geom.Rectangle#getLineC\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Line} O - [line,$return]\r\n *\r\n * @param {Phaser.Geom.Line} [line] - A Line object to set the results in. If `undefined` a new Line will be created.\r\n *\r\n * @return {Phaser.Geom.Line} A Line object that corresponds to the bottom of this Rectangle.\r\n */\r\n getLineC: function (line)\r\n {\r\n if (line === undefined) { line = new Line(); }\r\n\r\n line.setTo(this.right, this.bottom, this.x, this.bottom);\r\n\r\n return line;\r\n },\r\n\r\n /**\r\n * Returns a Line object that corresponds to the left of this Rectangle.\r\n *\r\n * @method Phaser.Geom.Rectangle#getLineD\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Line} O - [line,$return]\r\n *\r\n * @param {Phaser.Geom.Line} [line] - A Line object to set the results in. If `undefined` a new Line will be created.\r\n *\r\n * @return {Phaser.Geom.Line} A Line object that corresponds to the left of this Rectangle.\r\n */\r\n getLineD: function (line)\r\n {\r\n if (line === undefined) { line = new Line(); }\r\n\r\n line.setTo(this.x, this.bottom, this.x, this.y);\r\n\r\n return line;\r\n },\r\n\r\n /**\r\n * The x coordinate of the left of the Rectangle.\r\n * Changing the left property of a Rectangle object has no effect on the y and height properties. However it does affect the width property, whereas changing the x value does not affect the width property.\r\n *\r\n * @name Phaser.Geom.Rectangle#left\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n left: {\r\n\r\n get: function ()\r\n {\r\n return this.x;\r\n },\r\n\r\n set: function (value)\r\n {\r\n if (value >= this.right)\r\n {\r\n this.width = 0;\r\n }\r\n else\r\n {\r\n this.width = this.right - value;\r\n }\r\n\r\n this.x = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The sum of the x and width properties.\r\n * Changing the right property of a Rectangle object has no effect on the x, y and height properties, however it does affect the width property.\r\n *\r\n * @name Phaser.Geom.Rectangle#right\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n right: {\r\n\r\n get: function ()\r\n {\r\n return this.x + this.width;\r\n },\r\n\r\n set: function (value)\r\n {\r\n if (value <= this.x)\r\n {\r\n this.width = 0;\r\n }\r\n else\r\n {\r\n this.width = value - this.x;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The y coordinate of the top of the Rectangle. Changing the top property of a Rectangle object has no effect on the x and width properties.\r\n * However it does affect the height property, whereas changing the y value does not affect the height property.\r\n *\r\n * @name Phaser.Geom.Rectangle#top\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n top: {\r\n\r\n get: function ()\r\n {\r\n return this.y;\r\n },\r\n\r\n set: function (value)\r\n {\r\n if (value >= this.bottom)\r\n {\r\n this.height = 0;\r\n }\r\n else\r\n {\r\n this.height = (this.bottom - value);\r\n }\r\n\r\n this.y = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The sum of the y and height properties.\r\n * Changing the bottom property of a Rectangle object has no effect on the x, y and width properties, but does change the height property.\r\n *\r\n * @name Phaser.Geom.Rectangle#bottom\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n bottom: {\r\n\r\n get: function ()\r\n {\r\n return this.y + this.height;\r\n },\r\n\r\n set: function (value)\r\n {\r\n if (value <= this.y)\r\n {\r\n this.height = 0;\r\n }\r\n else\r\n {\r\n this.height = value - this.y;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The x coordinate of the center of the Rectangle.\r\n *\r\n * @name Phaser.Geom.Rectangle#centerX\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n centerX: {\r\n\r\n get: function ()\r\n {\r\n return this.x + (this.width / 2);\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.x = value - (this.width / 2);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The y coordinate of the center of the Rectangle.\r\n *\r\n * @name Phaser.Geom.Rectangle#centerY\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n centerY: {\r\n\r\n get: function ()\r\n {\r\n return this.y + (this.height / 2);\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.y = value - (this.height / 2);\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Rectangle;\r\n\n\n/***/ }),\n\n/***/ 94845:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Determines if the two objects (either Rectangles or Rectangle-like) have the same width and height values under strict equality.\r\n *\r\n * @function Phaser.Geom.Rectangle.SameDimensions\r\n * @since 3.15.0\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The first Rectangle object.\r\n * @param {Phaser.Geom.Rectangle} toCompare - The second Rectangle object.\r\n *\r\n * @return {boolean} `true` if the objects have equivalent values for the `width` and `height` properties, otherwise `false`.\r\n */\r\nvar SameDimensions = function (rect, toCompare)\r\n{\r\n return (rect.width === toCompare.width && rect.height === toCompare.height);\r\n};\r\n\r\nmodule.exports = SameDimensions;\r\n\n\n/***/ }),\n\n/***/ 31730:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Scales the width and height of this Rectangle by the given amounts.\r\n *\r\n * @function Phaser.Geom.Rectangle.Scale\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [rect,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} rect - The `Rectangle` object that will be scaled by the specified amount(s).\r\n * @param {number} x - The factor by which to scale the rectangle horizontally.\r\n * @param {number} y - The amount by which to scale the rectangle vertically. If this is not specified, the rectangle will be scaled by the factor `x` in both directions.\r\n *\r\n * @return {Phaser.Geom.Rectangle} The rectangle object with updated `width` and `height` properties as calculated from the scaling factor(s).\r\n */\r\nvar Scale = function (rect, x, y)\r\n{\r\n if (y === undefined) { y = x; }\r\n\r\n rect.width *= x;\r\n rect.height *= y;\r\n\r\n return rect;\r\n};\r\n\r\nmodule.exports = Scale;\r\n\n\n/***/ }),\n\n/***/ 36899:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Rectangle = __webpack_require__(87841);\r\n\r\n/**\r\n * Creates a new Rectangle or repositions and/or resizes an existing Rectangle so that it encompasses the two given Rectangles, i.e. calculates their union.\r\n *\r\n * @function Phaser.Geom.Rectangle.Union\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Rectangle} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Rectangle} rectA - The first Rectangle to use.\r\n * @param {Phaser.Geom.Rectangle} rectB - The second Rectangle to use.\r\n * @param {Phaser.Geom.Rectangle} [out] - The Rectangle to store the union in.\r\n *\r\n * @return {Phaser.Geom.Rectangle} The modified `out` Rectangle, or a new Rectangle if none was provided.\r\n */\r\nvar Union = function (rectA, rectB, out)\r\n{\r\n if (out === undefined) { out = new Rectangle(); }\r\n\r\n // Cache vars so we can use one of the input rects as the output rect\r\n var x = Math.min(rectA.x, rectB.x);\r\n var y = Math.min(rectA.y, rectB.y);\r\n var w = Math.max(rectA.right, rectB.right) - x;\r\n var h = Math.max(rectA.bottom, rectB.bottom) - y;\r\n\r\n return out.setTo(x, y, w, h);\r\n};\r\n\r\nmodule.exports = Union;\r\n\n\n/***/ }),\n\n/***/ 93232:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Rectangle = __webpack_require__(87841);\r\n\r\nRectangle.Area = __webpack_require__(62224);\r\nRectangle.Ceil = __webpack_require__(98615);\r\nRectangle.CeilAll = __webpack_require__(31688);\r\nRectangle.CenterOn = __webpack_require__(67502);\r\nRectangle.Clone = __webpack_require__(65085);\r\nRectangle.Contains = __webpack_require__(37303);\r\nRectangle.ContainsPoint = __webpack_require__(96553);\r\nRectangle.ContainsRect = __webpack_require__(70273);\r\nRectangle.CopyFrom = __webpack_require__(43459);\r\nRectangle.Decompose = __webpack_require__(77493);\r\nRectangle.Equals = __webpack_require__(9219);\r\nRectangle.FitInside = __webpack_require__(53751);\r\nRectangle.FitOutside = __webpack_require__(16088);\r\nRectangle.Floor = __webpack_require__(80774);\r\nRectangle.FloorAll = __webpack_require__(83859);\r\nRectangle.FromPoints = __webpack_require__(19217);\r\nRectangle.FromXY = __webpack_require__(9477);\r\nRectangle.GetAspectRatio = __webpack_require__(8249);\r\nRectangle.GetCenter = __webpack_require__(27165);\r\nRectangle.GetPoint = __webpack_require__(20812);\r\nRectangle.GetPoints = __webpack_require__(34819);\r\nRectangle.GetSize = __webpack_require__(51313);\r\nRectangle.Inflate = __webpack_require__(86091);\r\nRectangle.Intersection = __webpack_require__(53951);\r\nRectangle.MarchingAnts = __webpack_require__(14649);\r\nRectangle.MergePoints = __webpack_require__(33595);\r\nRectangle.MergeRect = __webpack_require__(20074);\r\nRectangle.MergeXY = __webpack_require__(92171);\r\nRectangle.Offset = __webpack_require__(42981);\r\nRectangle.OffsetPoint = __webpack_require__(46907);\r\nRectangle.Overlaps = __webpack_require__(60170);\r\nRectangle.Perimeter = __webpack_require__(13019);\r\nRectangle.PerimeterPoint = __webpack_require__(85133);\r\nRectangle.Random = __webpack_require__(26597);\r\nRectangle.RandomOutside = __webpack_require__(86470);\r\nRectangle.SameDimensions = __webpack_require__(94845);\r\nRectangle.Scale = __webpack_require__(31730);\r\nRectangle.Union = __webpack_require__(36899);\r\n\r\nmodule.exports = Rectangle;\r\n\n\n/***/ }),\n\n/***/ 41658:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// The 2D area of a triangle. The area value is always non-negative.\r\n\r\n/**\r\n * Returns the area of a Triangle.\r\n *\r\n * @function Phaser.Geom.Triangle.Area\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The Triangle to use.\r\n *\r\n * @return {number} The area of the Triangle, always non-negative.\r\n */\r\nvar Area = function (triangle)\r\n{\r\n var x1 = triangle.x1;\r\n var y1 = triangle.y1;\r\n\r\n var x2 = triangle.x2;\r\n var y2 = triangle.y2;\r\n\r\n var x3 = triangle.x3;\r\n var y3 = triangle.y3;\r\n\r\n return Math.abs(((x3 - x1) * (y2 - y1) - (x2 - x1) * (y3 - y1)) / 2);\r\n};\r\n\r\nmodule.exports = Area;\r\n\n\n/***/ }),\n\n/***/ 39208:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Triangle = __webpack_require__(16483);\r\n\r\n/**\r\n * Builds an equilateral triangle. In the equilateral triangle, all the sides are the same length (congruent) and all the angles are the same size (congruent).\r\n * The x/y specifies the top-middle of the triangle (x1/y1) and length is the length of each side.\r\n *\r\n * @function Phaser.Geom.Triangle.BuildEquilateral\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - x coordinate of the top point of the triangle.\r\n * @param {number} y - y coordinate of the top point of the triangle.\r\n * @param {number} length - Length of each side of the triangle.\r\n *\r\n * @return {Phaser.Geom.Triangle} The Triangle object of the given size.\r\n */\r\nvar BuildEquilateral = function (x, y, length)\r\n{\r\n var height = length * (Math.sqrt(3) / 2);\r\n\r\n var x1 = x;\r\n var y1 = y;\r\n\r\n var x2 = x + (length / 2);\r\n var y2 = y + height;\r\n\r\n var x3 = x - (length / 2);\r\n var y3 = y + height;\r\n\r\n return new Triangle(x1, y1, x2, y2, x3, y3);\r\n};\r\n\r\nmodule.exports = BuildEquilateral;\r\n\n\n/***/ }),\n\n/***/ 39545:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar EarCut = __webpack_require__(94811);\r\nvar Triangle = __webpack_require__(16483);\r\n\r\n/**\r\n * Takes an array of vertex coordinates, and optionally an array of hole indices, then returns an array\r\n * of Triangle instances, where the given vertices have been decomposed into a series of triangles.\r\n *\r\n * @function Phaser.Geom.Triangle.BuildFromPolygon\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Triangle[]} O - [out,$return]\r\n *\r\n * @param {array} data - A flat array of vertex coordinates like [x0,y0, x1,y1, x2,y2, ...]\r\n * @param {array} [holes=null] - An array of hole indices if any (e.g. [5, 8] for a 12-vertex input would mean one hole with vertices 5–7 and another with 8–11).\r\n * @param {number} [scaleX=1] - Horizontal scale factor to multiply the resulting points by.\r\n * @param {number} [scaleY=1] - Vertical scale factor to multiply the resulting points by.\r\n * @param {(array|Phaser.Geom.Triangle[])} [out] - An array to store the resulting Triangle instances in. If not provided, a new array is created.\r\n *\r\n * @return {(array|Phaser.Geom.Triangle[])} An array of Triangle instances, where each triangle is based on the decomposed vertices data.\r\n */\r\nvar BuildFromPolygon = function (data, holes, scaleX, scaleY, out)\r\n{\r\n if (holes === undefined) { holes = null; }\r\n if (scaleX === undefined) { scaleX = 1; }\r\n if (scaleY === undefined) { scaleY = 1; }\r\n if (out === undefined) { out = []; }\r\n\r\n var tris = EarCut(data, holes);\r\n\r\n var a;\r\n var b;\r\n var c;\r\n\r\n var x1;\r\n var y1;\r\n\r\n var x2;\r\n var y2;\r\n\r\n var x3;\r\n var y3;\r\n\r\n for (var i = 0; i < tris.length; i += 3)\r\n {\r\n a = tris[i];\r\n b = tris[i + 1];\r\n c = tris[i + 2];\r\n\r\n x1 = data[a * 2] * scaleX;\r\n y1 = data[(a * 2) + 1] * scaleY;\r\n\r\n x2 = data[b * 2] * scaleX;\r\n y2 = data[(b * 2) + 1] * scaleY;\r\n\r\n x3 = data[c * 2] * scaleX;\r\n y3 = data[(c * 2) + 1] * scaleY;\r\n\r\n out.push(new Triangle(x1, y1, x2, y2, x3, y3));\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = BuildFromPolygon;\r\n\n\n/***/ }),\n\n/***/ 90301:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Triangle = __webpack_require__(16483);\r\n\r\n// Builds a right triangle, with one 90 degree angle and two acute angles\r\n// The x/y is the coordinate of the 90 degree angle (and will map to x1/y1 in the resulting Triangle)\r\n// w/h can be positive or negative and represent the length of each side\r\n\r\n/**\r\n * Builds a right triangle, i.e. one which has a 90-degree angle and two acute angles.\r\n *\r\n * @function Phaser.Geom.Triangle.BuildRight\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The X coordinate of the right angle, which will also be the first X coordinate of the constructed Triangle.\r\n * @param {number} y - The Y coordinate of the right angle, which will also be the first Y coordinate of the constructed Triangle.\r\n * @param {number} width - The length of the side which is to the left or to the right of the right angle.\r\n * @param {number} height - The length of the side which is above or below the right angle.\r\n *\r\n * @return {Phaser.Geom.Triangle} The constructed right Triangle.\r\n */\r\nvar BuildRight = function (x, y, width, height)\r\n{\r\n if (height === undefined) { height = width; }\r\n\r\n // 90 degree angle\r\n var x1 = x;\r\n var y1 = y;\r\n\r\n var x2 = x;\r\n var y2 = y - height;\r\n\r\n var x3 = x + width;\r\n var y3 = y;\r\n\r\n return new Triangle(x1, y1, x2, y2, x3, y3);\r\n};\r\n\r\nmodule.exports = BuildRight;\r\n\n\n/***/ }),\n\n/***/ 23707:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Centroid = __webpack_require__(97523);\r\nvar Offset = __webpack_require__(13584);\r\n\r\n/**\r\n * @callback CenterFunction\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The Triangle to return the center coordinates of.\r\n *\r\n * @return {Phaser.Math.Vector2} The center point of the Triangle according to the function.\r\n */\r\n\r\n/**\r\n * Positions the Triangle so that it is centered on the given coordinates.\r\n *\r\n * @function Phaser.Geom.Triangle.CenterOn\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Triangle} O - [triangle,$return]\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The triangle to be positioned.\r\n * @param {number} x - The horizontal coordinate to center on.\r\n * @param {number} y - The vertical coordinate to center on.\r\n * @param {CenterFunction} [centerFunc] - The function used to center the triangle. Defaults to Centroid centering.\r\n *\r\n * @return {Phaser.Geom.Triangle} The Triangle that was centered.\r\n */\r\nvar CenterOn = function (triangle, x, y, centerFunc)\r\n{\r\n if (centerFunc === undefined) { centerFunc = Centroid; }\r\n\r\n // Get the center of the triangle\r\n var center = centerFunc(triangle);\r\n\r\n // Difference\r\n var diffX = x - center.x;\r\n var diffY = y - center.y;\r\n\r\n return Offset(triangle, diffX, diffY);\r\n};\r\n\r\nmodule.exports = CenterOn;\r\n\n\n/***/ }),\n\n/***/ 97523:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\n\r\n// The three medians (the lines drawn from the vertices to the bisectors of the opposite sides)\r\n// meet in the centroid or center of mass (center of gravity).\r\n// The centroid divides each median in a ratio of 2:1\r\n\r\n/**\r\n * Calculates the position of a Triangle's centroid, which is also its center of mass (center of gravity).\r\n *\r\n * The centroid is the point in a Triangle at which its three medians (the lines drawn from the vertices to the bisectors of the opposite sides) meet. It divides each one in a 2:1 ratio.\r\n *\r\n * @function Phaser.Geom.Triangle.Centroid\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The Triangle to use.\r\n * @param {(Phaser.Geom.Point|object)} [out] - An object to store the coordinates in.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} The `out` object with modified `x` and `y` properties, or a new Point if none was provided.\r\n */\r\nvar Centroid = function (triangle, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n out.x = (triangle.x1 + triangle.x2 + triangle.x3) / 3;\r\n out.y = (triangle.y1 + triangle.y2 + triangle.y3) / 3;\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = Centroid;\r\n\n\n/***/ }),\n\n/***/ 24951:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n// Adapted from http://bjornharrtell.github.io/jsts/doc/api/jsts_geom_Triangle.js.html\r\n\r\n/**\r\n * Computes the determinant of a 2x2 matrix. Uses standard double-precision arithmetic, so is susceptible to round-off error.\r\n *\r\n * @function det\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {number} m00 - The [0,0] entry of the matrix.\r\n * @param {number} m01 - The [0,1] entry of the matrix.\r\n * @param {number} m10 - The [1,0] entry of the matrix.\r\n * @param {number} m11 - The [1,1] entry of the matrix.\r\n *\r\n * @return {number} the determinant.\r\n */\r\nfunction det (m00, m01, m10, m11)\r\n{\r\n return (m00 * m11) - (m01 * m10);\r\n}\r\n\r\n/**\r\n * Computes the circumcentre of a triangle. The circumcentre is the centre of\r\n * the circumcircle, the smallest circle which encloses the triangle. It is also\r\n * the common intersection point of the perpendicular bisectors of the sides of\r\n * the triangle, and is the only point which has equal distance to all three\r\n * vertices of the triangle.\r\n *\r\n * @function Phaser.Geom.Triangle.CircumCenter\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Math.Vector2} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The Triangle to get the circumcenter of.\r\n * @param {Phaser.Math.Vector2} [out] - The Vector2 object to store the position in. If not given, a new Vector2 instance is created.\r\n *\r\n * @return {Phaser.Math.Vector2} A Vector2 object holding the coordinates of the circumcenter of the Triangle.\r\n */\r\nvar CircumCenter = function (triangle, out)\r\n{\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n var cx = triangle.x3;\r\n var cy = triangle.y3;\r\n\r\n var ax = triangle.x1 - cx;\r\n var ay = triangle.y1 - cy;\r\n\r\n var bx = triangle.x2 - cx;\r\n var by = triangle.y2 - cy;\r\n\r\n var denom = 2 * det(ax, ay, bx, by);\r\n var numx = det(ay, ax * ax + ay * ay, by, bx * bx + by * by);\r\n var numy = det(ax, ax * ax + ay * ay, bx, bx * bx + by * by);\r\n\r\n out.x = cx - numx / denom;\r\n out.y = cy + numy / denom;\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = CircumCenter;\r\n\n\n/***/ }),\n\n/***/ 85614:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Circle = __webpack_require__(96503);\r\n\r\n// Adapted from https://gist.github.com/mutoo/5617691\r\n\r\n/**\r\n * Finds the circumscribed circle (circumcircle) of a Triangle object. The circumcircle is the circle which touches all of the triangle's vertices.\r\n *\r\n * @function Phaser.Geom.Triangle.CircumCircle\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Circle} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The Triangle to use as input.\r\n * @param {Phaser.Geom.Circle} [out] - An optional Circle to store the result in.\r\n *\r\n * @return {Phaser.Geom.Circle} The updated `out` Circle, or a new Circle if none was provided.\r\n */\r\nvar CircumCircle = function (triangle, out)\r\n{\r\n if (out === undefined) { out = new Circle(); }\r\n\r\n // A\r\n var x1 = triangle.x1;\r\n var y1 = triangle.y1;\r\n\r\n // B\r\n var x2 = triangle.x2;\r\n var y2 = triangle.y2;\r\n\r\n // C\r\n var x3 = triangle.x3;\r\n var y3 = triangle.y3;\r\n\r\n var A = x2 - x1;\r\n var B = y2 - y1;\r\n var C = x3 - x1;\r\n var D = y3 - y1;\r\n var E = A * (x1 + x2) + B * (y1 + y2);\r\n var F = C * (x1 + x3) + D * (y1 + y3);\r\n var G = 2 * (A * (y3 - y2) - B * (x3 - x2));\r\n\r\n var dx;\r\n var dy;\r\n\r\n // If the points of the triangle are collinear, then just find the\r\n // extremes and use the midpoint as the center of the circumcircle.\r\n\r\n if (Math.abs(G) < 0.000001)\r\n {\r\n var minX = Math.min(x1, x2, x3);\r\n var minY = Math.min(y1, y2, y3);\r\n dx = (Math.max(x1, x2, x3) - minX) * 0.5;\r\n dy = (Math.max(y1, y2, y3) - minY) * 0.5;\r\n\r\n out.x = minX + dx;\r\n out.y = minY + dy;\r\n out.radius = Math.sqrt(dx * dx + dy * dy);\r\n }\r\n else\r\n {\r\n out.x = (D * E - B * F) / G;\r\n out.y = (A * F - C * E) / G;\r\n dx = out.x - x1;\r\n dy = out.y - y1;\r\n out.radius = Math.sqrt(dx * dx + dy * dy);\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = CircumCircle;\r\n\n\n/***/ }),\n\n/***/ 74422:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Triangle = __webpack_require__(16483);\r\n\r\n/**\r\n * Clones a Triangle object.\r\n *\r\n * @function Phaser.Geom.Triangle.Clone\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Triangle} source - The Triangle to clone.\r\n *\r\n * @return {Phaser.Geom.Triangle} A new Triangle identical to the given one but separate from it.\r\n */\r\nvar Clone = function (source)\r\n{\r\n return new Triangle(source.x1, source.y1, source.x2, source.y2, source.x3, source.y3);\r\n};\r\n\r\nmodule.exports = Clone;\r\n\n\n/***/ }),\n\n/***/ 10690:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// http://www.blackpawn.com/texts/pointinpoly/\r\n\r\n/**\r\n * Checks if a point (as a pair of coordinates) is inside a Triangle's bounds.\r\n *\r\n * @function Phaser.Geom.Triangle.Contains\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The Triangle to check.\r\n * @param {number} x - The X coordinate of the point to check.\r\n * @param {number} y - The Y coordinate of the point to check.\r\n *\r\n * @return {boolean} `true` if the point is inside the Triangle, otherwise `false`.\r\n */\r\nvar Contains = function (triangle, x, y)\r\n{\r\n var v0x = triangle.x3 - triangle.x1;\r\n var v0y = triangle.y3 - triangle.y1;\r\n\r\n var v1x = triangle.x2 - triangle.x1;\r\n var v1y = triangle.y2 - triangle.y1;\r\n\r\n var v2x = x - triangle.x1;\r\n var v2y = y - triangle.y1;\r\n\r\n var dot00 = (v0x * v0x) + (v0y * v0y);\r\n var dot01 = (v0x * v1x) + (v0y * v1y);\r\n var dot02 = (v0x * v2x) + (v0y * v2y);\r\n var dot11 = (v1x * v1x) + (v1y * v1y);\r\n var dot12 = (v1x * v2x) + (v1y * v2y);\r\n\r\n // Compute barycentric coordinates\r\n var b = ((dot00 * dot11) - (dot01 * dot01));\r\n var inv = (b === 0) ? 0 : (1 / b);\r\n var u = ((dot11 * dot02) - (dot01 * dot12)) * inv;\r\n var v = ((dot00 * dot12) - (dot01 * dot02)) * inv;\r\n\r\n return (u >= 0 && v >= 0 && (u + v < 1));\r\n};\r\n\r\nmodule.exports = Contains;\r\n\n\n/***/ }),\n\n/***/ 48653:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// http://www.blackpawn.com/texts/pointinpoly/\r\n\r\n// points is an array of Point-like objects with public x/y properties\r\n// returns an array containing all points that are within the triangle, or an empty array if none\r\n// if 'returnFirst' is true it will return after the first point within the triangle is found\r\n\r\n/**\r\n * Filters an array of point-like objects to only those contained within a triangle.\r\n * If `returnFirst` is true, will return an array containing only the first point in the provided array that is within the triangle (or an empty array if there are no such points).\r\n *\r\n * @function Phaser.Geom.Triangle.ContainsArray\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The triangle that the points are being checked in.\r\n * @param {Phaser.Geom.Point[]} points - An array of point-like objects (objects that have an `x` and `y` property)\r\n * @param {boolean} [returnFirst=false] - If `true`, return an array containing only the first point found that is within the triangle.\r\n * @param {array} [out] - If provided, the points that are within the triangle will be appended to this array instead of being added to a new array. If `returnFirst` is true, only the first point found within the triangle will be appended. This array will also be returned by this function.\r\n *\r\n * @return {Phaser.Geom.Point[]} An array containing all the points from `points` that are within the triangle, if an array was provided as `out`, points will be appended to that array and it will also be returned here.\r\n */\r\nvar ContainsArray = function (triangle, points, returnFirst, out)\r\n{\r\n if (returnFirst === undefined) { returnFirst = false; }\r\n if (out === undefined) { out = []; }\r\n\r\n var v0x = triangle.x3 - triangle.x1;\r\n var v0y = triangle.y3 - triangle.y1;\r\n\r\n var v1x = triangle.x2 - triangle.x1;\r\n var v1y = triangle.y2 - triangle.y1;\r\n\r\n var dot00 = (v0x * v0x) + (v0y * v0y);\r\n var dot01 = (v0x * v1x) + (v0y * v1y);\r\n var dot11 = (v1x * v1x) + (v1y * v1y);\r\n\r\n // Compute barycentric coordinates\r\n var b = ((dot00 * dot11) - (dot01 * dot01));\r\n var inv = (b === 0) ? 0 : (1 / b);\r\n\r\n var u;\r\n var v;\r\n var v2x;\r\n var v2y;\r\n var dot02;\r\n var dot12;\r\n\r\n var x1 = triangle.x1;\r\n var y1 = triangle.y1;\r\n\r\n for (var i = 0; i < points.length; i++)\r\n {\r\n v2x = points[i].x - x1;\r\n v2y = points[i].y - y1;\r\n\r\n dot02 = (v0x * v2x) + (v0y * v2y);\r\n dot12 = (v1x * v2x) + (v1y * v2y);\r\n\r\n u = ((dot11 * dot02) - (dot01 * dot12)) * inv;\r\n v = ((dot00 * dot12) - (dot01 * dot02)) * inv;\r\n\r\n if (u >= 0 && v >= 0 && (u + v < 1))\r\n {\r\n out.push({ x: points[i].x, y: points[i].y });\r\n\r\n if (returnFirst)\r\n {\r\n break;\r\n }\r\n }\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = ContainsArray;\r\n\n\n/***/ }),\n\n/***/ 96006:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Contains = __webpack_require__(10690);\r\n\r\n/**\r\n * Tests if a triangle contains a point.\r\n *\r\n * @function Phaser.Geom.Triangle.ContainsPoint\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The triangle.\r\n * @param {(Phaser.Geom.Point|Phaser.Math.Vector2|any)} point - The point to test, or any point-like object with public `x` and `y` properties.\r\n *\r\n * @return {boolean} `true` if the point is within the triangle, otherwise `false`.\r\n */\r\nvar ContainsPoint = function (triangle, point)\r\n{\r\n return Contains(triangle, point.x, point.y);\r\n};\r\n\r\nmodule.exports = ContainsPoint;\r\n\n\n/***/ }),\n\n/***/ 71326:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Copy the values of one Triangle to a destination Triangle.\r\n *\r\n * @function Phaser.Geom.Triangle.CopyFrom\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Triangle} O - [dest,$return]\r\n *\r\n * @param {Phaser.Geom.Triangle} source - The source Triangle to copy the values from.\r\n * @param {Phaser.Geom.Triangle} dest - The destination Triangle to copy the values to.\r\n *\r\n * @return {Phaser.Geom.Triangle} The destination Triangle.\r\n */\r\nvar CopyFrom = function (source, dest)\r\n{\r\n return dest.setTo(source.x1, source.y1, source.x2, source.y2, source.x3, source.y3);\r\n};\r\n\r\nmodule.exports = CopyFrom;\r\n\n\n/***/ }),\n\n/***/ 71694:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Decomposes a Triangle into an array of its points.\r\n *\r\n * @function Phaser.Geom.Triangle.Decompose\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The Triangle to decompose.\r\n * @param {array} [out] - An array to store the points into.\r\n *\r\n * @return {array} The provided `out` array, or a new array if none was provided, with three objects with `x` and `y` properties representing each point of the Triangle appended to it.\r\n */\r\nvar Decompose = function (triangle, out)\r\n{\r\n if (out === undefined) { out = []; }\r\n\r\n out.push({ x: triangle.x1, y: triangle.y1 });\r\n out.push({ x: triangle.x2, y: triangle.y2 });\r\n out.push({ x: triangle.x3, y: triangle.y3 });\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = Decompose;\r\n\n\n/***/ }),\n\n/***/ 33522:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Returns true if two triangles have the same coordinates.\r\n *\r\n * @function Phaser.Geom.Triangle.Equals\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The first triangle to check.\r\n * @param {Phaser.Geom.Triangle} toCompare - The second triangle to check.\r\n *\r\n * @return {boolean} `true` if the two given triangles have the exact same coordinates, otherwise `false`.\r\n */\r\nvar Equals = function (triangle, toCompare)\r\n{\r\n return (\r\n triangle.x1 === toCompare.x1 &&\r\n triangle.y1 === toCompare.y1 &&\r\n triangle.x2 === toCompare.x2 &&\r\n triangle.y2 === toCompare.y2 &&\r\n triangle.x3 === toCompare.x3 &&\r\n triangle.y3 === toCompare.y3\r\n );\r\n};\r\n\r\nmodule.exports = Equals;\r\n\n\n/***/ }),\n\n/***/ 20437:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\nvar Length = __webpack_require__(35001);\r\n\r\n/**\r\n * Returns a Point from around the perimeter of a Triangle.\r\n *\r\n * @function Phaser.Geom.Triangle.GetPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The Triangle to get the point on its perimeter from.\r\n * @param {number} position - The position along the perimeter of the triangle. A value between 0 and 1.\r\n * @param {(Phaser.Geom.Point|object)} [out] - An option Point, or Point-like object to store the value in. If not given a new Point will be created.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} A Point object containing the given position from the perimeter of the triangle.\r\n */\r\nvar GetPoint = function (triangle, position, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n var line1 = triangle.getLineA();\r\n var line2 = triangle.getLineB();\r\n var line3 = triangle.getLineC();\r\n\r\n if (position <= 0 || position >= 1)\r\n {\r\n out.x = line1.x1;\r\n out.y = line1.y1;\r\n\r\n return out;\r\n }\r\n\r\n var length1 = Length(line1);\r\n var length2 = Length(line2);\r\n var length3 = Length(line3);\r\n\r\n var perimeter = length1 + length2 + length3;\r\n\r\n var p = perimeter * position;\r\n var localPosition = 0;\r\n\r\n // Which line is it on?\r\n\r\n if (p < length1)\r\n {\r\n // Line 1\r\n localPosition = p / length1;\r\n\r\n out.x = line1.x1 + (line1.x2 - line1.x1) * localPosition;\r\n out.y = line1.y1 + (line1.y2 - line1.y1) * localPosition;\r\n }\r\n else if (p > length1 + length2)\r\n {\r\n // Line 3\r\n p -= length1 + length2;\r\n localPosition = p / length3;\r\n\r\n out.x = line3.x1 + (line3.x2 - line3.x1) * localPosition;\r\n out.y = line3.y1 + (line3.y2 - line3.y1) * localPosition;\r\n }\r\n else\r\n {\r\n // Line 2\r\n p -= length1;\r\n localPosition = p / length2;\r\n\r\n out.x = line2.x1 + (line2.x2 - line2.x1) * localPosition;\r\n out.y = line2.y1 + (line2.y2 - line2.y1) * localPosition;\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetPoint;\r\n\n\n/***/ }),\n\n/***/ 80672:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Length = __webpack_require__(35001);\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Returns an array of evenly spaced points on the perimeter of a Triangle.\r\n *\r\n * @function Phaser.Geom.Triangle.GetPoints\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The Triangle to get the points from.\r\n * @param {number} quantity - The number of evenly spaced points to return. Set to 0 to return an arbitrary number of points based on the `stepRate`.\r\n * @param {number} stepRate - If `quantity` is 0, the distance between each returned point.\r\n * @param {(array|Phaser.Geom.Point[])} [out] - An array to which the points should be appended.\r\n *\r\n * @return {(array|Phaser.Geom.Point[])} The modified `out` array, or a new array if none was provided.\r\n */\r\nvar GetPoints = function (triangle, quantity, stepRate, out)\r\n{\r\n if (out === undefined) { out = []; }\r\n\r\n var line1 = triangle.getLineA();\r\n var line2 = triangle.getLineB();\r\n var line3 = triangle.getLineC();\r\n\r\n var length1 = Length(line1);\r\n var length2 = Length(line2);\r\n var length3 = Length(line3);\r\n\r\n var perimeter = length1 + length2 + length3;\r\n\r\n // If quantity is a falsey value (false, null, 0, undefined, etc) then we calculate it based on the stepRate instead.\r\n if (!quantity && stepRate > 0)\r\n {\r\n quantity = perimeter / stepRate;\r\n }\r\n\r\n for (var i = 0; i < quantity; i++)\r\n {\r\n var p = perimeter * (i / quantity);\r\n var localPosition = 0;\r\n\r\n var point = new Point();\r\n\r\n // Which line is it on?\r\n\r\n if (p < length1)\r\n {\r\n // Line 1\r\n localPosition = p / length1;\r\n\r\n point.x = line1.x1 + (line1.x2 - line1.x1) * localPosition;\r\n point.y = line1.y1 + (line1.y2 - line1.y1) * localPosition;\r\n }\r\n else if (p > length1 + length2)\r\n {\r\n // Line 3\r\n p -= length1 + length2;\r\n localPosition = p / length3;\r\n\r\n point.x = line3.x1 + (line3.x2 - line3.x1) * localPosition;\r\n point.y = line3.y1 + (line3.y2 - line3.y1) * localPosition;\r\n }\r\n else\r\n {\r\n // Line 2\r\n p -= length1;\r\n localPosition = p / length2;\r\n\r\n point.x = line2.x1 + (line2.x2 - line2.x1) * localPosition;\r\n point.y = line2.y1 + (line2.y2 - line2.y1) * localPosition;\r\n }\r\n\r\n out.push(point);\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = GetPoints;\r\n\n\n/***/ }),\n\n/***/ 39757:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\n\r\n// The three angle bisectors of a triangle meet in one point called the incenter.\r\n// It is the center of the incircle, the circle inscribed in the triangle.\r\n\r\nfunction getLength (x1, y1, x2, y2)\r\n{\r\n var x = x1 - x2;\r\n var y = y1 - y2;\r\n var magnitude = (x * x) + (y * y);\r\n\r\n return Math.sqrt(magnitude);\r\n}\r\n\r\n/**\r\n * Calculates the position of the incenter of a Triangle object. This is the point where its three angle bisectors meet and it's also the center of the incircle, which is the circle inscribed in the triangle.\r\n *\r\n * @function Phaser.Geom.Triangle.InCenter\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The Triangle to find the incenter of.\r\n * @param {Phaser.Geom.Point} [out] - An optional Point in which to store the coordinates.\r\n *\r\n * @return {Phaser.Geom.Point} Point (x, y) of the center pixel of the triangle.\r\n */\r\nvar InCenter = function (triangle, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n var x1 = triangle.x1;\r\n var y1 = triangle.y1;\r\n\r\n var x2 = triangle.x2;\r\n var y2 = triangle.y2;\r\n\r\n var x3 = triangle.x3;\r\n var y3 = triangle.y3;\r\n\r\n var d1 = getLength(x3, y3, x2, y2);\r\n var d2 = getLength(x1, y1, x3, y3);\r\n var d3 = getLength(x2, y2, x1, y1);\r\n\r\n var p = d1 + d2 + d3;\r\n\r\n out.x = (x1 * d1 + x2 * d2 + x3 * d3) / p;\r\n out.y = (y1 * d1 + y2 * d2 + y3 * d3) / p;\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = InCenter;\r\n\n\n/***/ }),\n\n/***/ 13584:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Moves each point (vertex) of a Triangle by a given offset, thus moving the entire Triangle by that offset.\r\n *\r\n * @function Phaser.Geom.Triangle.Offset\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Triangle} O - [triangle,$return]\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The Triangle to move.\r\n * @param {number} x - The horizontal offset (distance) by which to move each point. Can be positive or negative.\r\n * @param {number} y - The vertical offset (distance) by which to move each point. Can be positive or negative.\r\n *\r\n * @return {Phaser.Geom.Triangle} The modified Triangle.\r\n */\r\nvar Offset = function (triangle, x, y)\r\n{\r\n triangle.x1 += x;\r\n triangle.y1 += y;\r\n\r\n triangle.x2 += x;\r\n triangle.y2 += y;\r\n\r\n triangle.x3 += x;\r\n triangle.y3 += y;\r\n\r\n return triangle;\r\n};\r\n\r\nmodule.exports = Offset;\r\n\n\n/***/ }),\n\n/***/ 1376:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Length = __webpack_require__(35001);\r\n\r\n/**\r\n * Gets the length of the perimeter of the given triangle.\r\n * Calculated by adding together the length of each of the three sides.\r\n *\r\n * @function Phaser.Geom.Triangle.Perimeter\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The Triangle to get the length from.\r\n *\r\n * @return {number} The length of the Triangle.\r\n */\r\nvar Perimeter = function (triangle)\r\n{\r\n var line1 = triangle.getLineA();\r\n var line2 = triangle.getLineB();\r\n var line3 = triangle.getLineC();\r\n\r\n return (Length(line1) + Length(line2) + Length(line3));\r\n};\r\n\r\nmodule.exports = Perimeter;\r\n\n\n/***/ }),\n\n/***/ 90260:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Point = __webpack_require__(2141);\r\n\r\n/**\r\n * Returns a random Point from within the area of the given Triangle.\r\n *\r\n * @function Phaser.Geom.Triangle.Random\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [out,$return]\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The Triangle to get a random point from.\r\n * @param {Phaser.Geom.Point} [out] - The Point object to store the position in. If not given, a new Point instance is created.\r\n *\r\n * @return {Phaser.Geom.Point} A Point object holding the coordinates of a random position within the Triangle.\r\n */\r\nvar Random = function (triangle, out)\r\n{\r\n if (out === undefined) { out = new Point(); }\r\n\r\n // Basis vectors\r\n var ux = triangle.x2 - triangle.x1;\r\n var uy = triangle.y2 - triangle.y1;\r\n\r\n var vx = triangle.x3 - triangle.x1;\r\n var vy = triangle.y3 - triangle.y1;\r\n\r\n // Random point within the unit square\r\n var r = Math.random();\r\n var s = Math.random();\r\n\r\n // Point outside the triangle? Remap it.\r\n if (r + s >= 1)\r\n {\r\n r = 1 - r;\r\n s = 1 - s;\r\n }\r\n\r\n out.x = triangle.x1 + ((ux * r) + (vx * s));\r\n out.y = triangle.y1 + ((uy * r) + (vy * s));\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = Random;\r\n\n\n/***/ }),\n\n/***/ 52172:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar RotateAroundXY = __webpack_require__(99614);\r\nvar InCenter = __webpack_require__(39757);\r\n\r\n/**\r\n * Rotates a Triangle about its incenter, which is the point at which its three angle bisectors meet.\r\n *\r\n * @function Phaser.Geom.Triangle.Rotate\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Triangle} O - [triangle,$return]\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The Triangle to rotate.\r\n * @param {number} angle - The angle by which to rotate the Triangle, in radians.\r\n *\r\n * @return {Phaser.Geom.Triangle} The rotated Triangle.\r\n */\r\nvar Rotate = function (triangle, angle)\r\n{\r\n var point = InCenter(triangle);\r\n\r\n return RotateAroundXY(triangle, point.x, point.y, angle);\r\n};\r\n\r\nmodule.exports = Rotate;\r\n\n\n/***/ }),\n\n/***/ 49907:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar RotateAroundXY = __webpack_require__(99614);\r\n\r\n/**\r\n * Rotates a Triangle at a certain angle about a given Point or object with public `x` and `y` properties.\r\n *\r\n * @function Phaser.Geom.Triangle.RotateAroundPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Triangle} O - [triangle,$return]\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The Triangle to rotate.\r\n * @param {Phaser.Geom.Point} point - The Point to rotate the Triangle about.\r\n * @param {number} angle - The angle by which to rotate the Triangle, in radians.\r\n *\r\n * @return {Phaser.Geom.Triangle} The rotated Triangle.\r\n */\r\nvar RotateAroundPoint = function (triangle, point, angle)\r\n{\r\n return RotateAroundXY(triangle, point.x, point.y, angle);\r\n};\r\n\r\nmodule.exports = RotateAroundPoint;\r\n\n\n/***/ }),\n\n/***/ 99614:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Rotates an entire Triangle at a given angle about a specific point.\r\n *\r\n * @function Phaser.Geom.Triangle.RotateAroundXY\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Triangle} O - [triangle,$return]\r\n *\r\n * @param {Phaser.Geom.Triangle} triangle - The Triangle to rotate.\r\n * @param {number} x - The X coordinate of the point to rotate the Triangle about.\r\n * @param {number} y - The Y coordinate of the point to rotate the Triangle about.\r\n * @param {number} angle - The angle by which to rotate the Triangle, in radians.\r\n *\r\n * @return {Phaser.Geom.Triangle} The rotated Triangle.\r\n */\r\nvar RotateAroundXY = function (triangle, x, y, angle)\r\n{\r\n var c = Math.cos(angle);\r\n var s = Math.sin(angle);\r\n\r\n var tx = triangle.x1 - x;\r\n var ty = triangle.y1 - y;\r\n\r\n triangle.x1 = tx * c - ty * s + x;\r\n triangle.y1 = tx * s + ty * c + y;\r\n\r\n tx = triangle.x2 - x;\r\n ty = triangle.y2 - y;\r\n\r\n triangle.x2 = tx * c - ty * s + x;\r\n triangle.y2 = tx * s + ty * c + y;\r\n\r\n tx = triangle.x3 - x;\r\n ty = triangle.y3 - y;\r\n\r\n triangle.x3 = tx * c - ty * s + x;\r\n triangle.y3 = tx * s + ty * c + y;\r\n\r\n return triangle;\r\n};\r\n\r\nmodule.exports = RotateAroundXY;\r\n\n\n/***/ }),\n\n/***/ 16483:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Contains = __webpack_require__(10690);\r\nvar GetPoint = __webpack_require__(20437);\r\nvar GetPoints = __webpack_require__(80672);\r\nvar GEOM_CONST = __webpack_require__(23777);\r\nvar Line = __webpack_require__(23031);\r\nvar Random = __webpack_require__(90260);\r\n\r\n/**\r\n * @classdesc\r\n * A triangle is a plane created by connecting three points.\r\n * The first two arguments specify the first point, the middle two arguments\r\n * specify the second point, and the last two arguments specify the third point.\r\n *\r\n * @class Triangle\r\n * @memberof Phaser.Geom\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x1=0] - `x` coordinate of the first point.\r\n * @param {number} [y1=0] - `y` coordinate of the first point.\r\n * @param {number} [x2=0] - `x` coordinate of the second point.\r\n * @param {number} [y2=0] - `y` coordinate of the second point.\r\n * @param {number} [x3=0] - `x` coordinate of the third point.\r\n * @param {number} [y3=0] - `y` coordinate of the third point.\r\n */\r\nvar Triangle = new Class({\r\n\r\n initialize:\r\n\r\n function Triangle (x1, y1, x2, y2, x3, y3)\r\n {\r\n if (x1 === undefined) { x1 = 0; }\r\n if (y1 === undefined) { y1 = 0; }\r\n if (x2 === undefined) { x2 = 0; }\r\n if (y2 === undefined) { y2 = 0; }\r\n if (x3 === undefined) { x3 = 0; }\r\n if (y3 === undefined) { y3 = 0; }\r\n\r\n /**\r\n * The geometry constant type of this object: `GEOM_CONST.TRIANGLE`.\r\n * Used for fast type comparisons.\r\n *\r\n * @name Phaser.Geom.Triangle#type\r\n * @type {number}\r\n * @readonly\r\n * @since 3.19.0\r\n */\r\n this.type = GEOM_CONST.TRIANGLE;\r\n\r\n /**\r\n * `x` coordinate of the first point.\r\n *\r\n * @name Phaser.Geom.Triangle#x1\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.x1 = x1;\r\n\r\n /**\r\n * `y` coordinate of the first point.\r\n *\r\n * @name Phaser.Geom.Triangle#y1\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.y1 = y1;\r\n\r\n /**\r\n * `x` coordinate of the second point.\r\n *\r\n * @name Phaser.Geom.Triangle#x2\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.x2 = x2;\r\n\r\n /**\r\n * `y` coordinate of the second point.\r\n *\r\n * @name Phaser.Geom.Triangle#y2\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.y2 = y2;\r\n\r\n /**\r\n * `x` coordinate of the third point.\r\n *\r\n * @name Phaser.Geom.Triangle#x3\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.x3 = x3;\r\n\r\n /**\r\n * `y` coordinate of the third point.\r\n *\r\n * @name Phaser.Geom.Triangle#y3\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.y3 = y3;\r\n },\r\n\r\n /**\r\n * Checks whether a given points lies within the triangle.\r\n *\r\n * @method Phaser.Geom.Triangle#contains\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x coordinate of the point to check.\r\n * @param {number} y - The y coordinate of the point to check.\r\n *\r\n * @return {boolean} `true` if the coordinate pair is within the triangle, otherwise `false`.\r\n */\r\n contains: function (x, y)\r\n {\r\n return Contains(this, x, y);\r\n },\r\n\r\n /**\r\n * Returns a specific point on the triangle.\r\n *\r\n * @method Phaser.Geom.Triangle#getPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [output,$return]\r\n *\r\n * @param {number} position - Position as float within `0` and `1`. `0` equals the first point.\r\n * @param {(Phaser.Geom.Point|object)} [output] - Optional Point, or point-like object, that the calculated point will be written to.\r\n *\r\n * @return {(Phaser.Geom.Point|object)} Calculated `Point` that represents the requested position. It is the same as `output` when this parameter has been given.\r\n */\r\n getPoint: function (position, output)\r\n {\r\n return GetPoint(this, position, output);\r\n },\r\n\r\n /**\r\n * Calculates a list of evenly distributed points on the triangle. It is either possible to pass an amount of points to be generated (`quantity`) or the distance between two points (`stepRate`).\r\n *\r\n * @method Phaser.Geom.Triangle#getPoints\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point[]} O - [output,$return]\r\n *\r\n * @param {number} quantity - Number of points to be generated. Can be falsey when `stepRate` should be used. All points have the same distance along the triangle.\r\n * @param {number} [stepRate] - Distance between two points. Will only be used when `quantity` is falsey.\r\n * @param {(array|Phaser.Geom.Point[])} [output] - Optional Array for writing the calculated points into. Otherwise a new array will be created.\r\n *\r\n * @return {(array|Phaser.Geom.Point[])} Returns a list of calculated `Point` instances or the filled array passed as parameter `output`.\r\n */\r\n getPoints: function (quantity, stepRate, output)\r\n {\r\n return GetPoints(this, quantity, stepRate, output);\r\n },\r\n\r\n /**\r\n * Returns a random point along the triangle.\r\n *\r\n * @method Phaser.Geom.Triangle#getRandomPoint\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Point} O - [point,$return]\r\n *\r\n * @param {Phaser.Geom.Point} [point] - Optional `Point` that should be modified. Otherwise a new one will be created.\r\n *\r\n * @return {Phaser.Geom.Point} Random `Point`. When parameter `point` has been provided it will be returned.\r\n */\r\n getRandomPoint: function (point)\r\n {\r\n return Random(this, point);\r\n },\r\n\r\n /**\r\n * Sets all three points of the triangle. Leaving out any coordinate sets it to be `0`.\r\n *\r\n * @method Phaser.Geom.Triangle#setTo\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x1=0] - `x` coordinate of the first point.\r\n * @param {number} [y1=0] - `y` coordinate of the first point.\r\n * @param {number} [x2=0] - `x` coordinate of the second point.\r\n * @param {number} [y2=0] - `y` coordinate of the second point.\r\n * @param {number} [x3=0] - `x` coordinate of the third point.\r\n * @param {number} [y3=0] - `y` coordinate of the third point.\r\n *\r\n * @return {this} This Triangle object.\r\n */\r\n setTo: function (x1, y1, x2, y2, x3, y3)\r\n {\r\n if (x1 === undefined) { x1 = 0; }\r\n if (y1 === undefined) { y1 = 0; }\r\n if (x2 === undefined) { x2 = 0; }\r\n if (y2 === undefined) { y2 = 0; }\r\n if (x3 === undefined) { x3 = 0; }\r\n if (y3 === undefined) { y3 = 0; }\r\n\r\n this.x1 = x1;\r\n this.y1 = y1;\r\n\r\n this.x2 = x2;\r\n this.y2 = y2;\r\n\r\n this.x3 = x3;\r\n this.y3 = y3;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns a Line object that corresponds to Line A of this Triangle.\r\n *\r\n * @method Phaser.Geom.Triangle#getLineA\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Line} O - [line,$return]\r\n *\r\n * @param {Phaser.Geom.Line} [line] - A Line object to set the results in. If `undefined` a new Line will be created.\r\n *\r\n * @return {Phaser.Geom.Line} A Line object that corresponds to line A of this Triangle.\r\n */\r\n getLineA: function (line)\r\n {\r\n if (line === undefined) { line = new Line(); }\r\n\r\n line.setTo(this.x1, this.y1, this.x2, this.y2);\r\n\r\n return line;\r\n },\r\n\r\n /**\r\n * Returns a Line object that corresponds to Line B of this Triangle.\r\n *\r\n * @method Phaser.Geom.Triangle#getLineB\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Line} O - [line,$return]\r\n *\r\n * @param {Phaser.Geom.Line} [line] - A Line object to set the results in. If `undefined` a new Line will be created.\r\n *\r\n * @return {Phaser.Geom.Line} A Line object that corresponds to line B of this Triangle.\r\n */\r\n getLineB: function (line)\r\n {\r\n if (line === undefined) { line = new Line(); }\r\n\r\n line.setTo(this.x2, this.y2, this.x3, this.y3);\r\n\r\n return line;\r\n },\r\n\r\n /**\r\n * Returns a Line object that corresponds to Line C of this Triangle.\r\n *\r\n * @method Phaser.Geom.Triangle#getLineC\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Geom.Line} O - [line,$return]\r\n *\r\n * @param {Phaser.Geom.Line} [line] - A Line object to set the results in. If `undefined` a new Line will be created.\r\n *\r\n * @return {Phaser.Geom.Line} A Line object that corresponds to line C of this Triangle.\r\n */\r\n getLineC: function (line)\r\n {\r\n if (line === undefined) { line = new Line(); }\r\n\r\n line.setTo(this.x3, this.y3, this.x1, this.y1);\r\n\r\n return line;\r\n },\r\n\r\n /**\r\n * Left most X coordinate of the triangle. Setting it moves the triangle on the X axis accordingly.\r\n *\r\n * @name Phaser.Geom.Triangle#left\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n left: {\r\n\r\n get: function ()\r\n {\r\n return Math.min(this.x1, this.x2, this.x3);\r\n },\r\n\r\n set: function (value)\r\n {\r\n var diff = 0;\r\n\r\n if (this.x1 <= this.x2 && this.x1 <= this.x3)\r\n {\r\n diff = this.x1 - value;\r\n }\r\n else if (this.x2 <= this.x1 && this.x2 <= this.x3)\r\n {\r\n diff = this.x2 - value;\r\n }\r\n else\r\n {\r\n diff = this.x3 - value;\r\n }\r\n\r\n this.x1 -= diff;\r\n this.x2 -= diff;\r\n this.x3 -= diff;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Right most X coordinate of the triangle. Setting it moves the triangle on the X axis accordingly.\r\n *\r\n * @name Phaser.Geom.Triangle#right\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n right: {\r\n\r\n get: function ()\r\n {\r\n return Math.max(this.x1, this.x2, this.x3);\r\n },\r\n\r\n set: function (value)\r\n {\r\n var diff = 0;\r\n\r\n if (this.x1 >= this.x2 && this.x1 >= this.x3)\r\n {\r\n diff = this.x1 - value;\r\n }\r\n else if (this.x2 >= this.x1 && this.x2 >= this.x3)\r\n {\r\n diff = this.x2 - value;\r\n }\r\n else\r\n {\r\n diff = this.x3 - value;\r\n }\r\n\r\n this.x1 -= diff;\r\n this.x2 -= diff;\r\n this.x3 -= diff;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Top most Y coordinate of the triangle. Setting it moves the triangle on the Y axis accordingly.\r\n *\r\n * @name Phaser.Geom.Triangle#top\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n top: {\r\n\r\n get: function ()\r\n {\r\n return Math.min(this.y1, this.y2, this.y3);\r\n },\r\n\r\n set: function (value)\r\n {\r\n var diff = 0;\r\n\r\n if (this.y1 <= this.y2 && this.y1 <= this.y3)\r\n {\r\n diff = this.y1 - value;\r\n }\r\n else if (this.y2 <= this.y1 && this.y2 <= this.y3)\r\n {\r\n diff = this.y2 - value;\r\n }\r\n else\r\n {\r\n diff = this.y3 - value;\r\n }\r\n\r\n this.y1 -= diff;\r\n this.y2 -= diff;\r\n this.y3 -= diff;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Bottom most Y coordinate of the triangle. Setting it moves the triangle on the Y axis accordingly.\r\n *\r\n * @name Phaser.Geom.Triangle#bottom\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n bottom: {\r\n\r\n get: function ()\r\n {\r\n return Math.max(this.y1, this.y2, this.y3);\r\n },\r\n\r\n set: function (value)\r\n {\r\n var diff = 0;\r\n\r\n if (this.y1 >= this.y2 && this.y1 >= this.y3)\r\n {\r\n diff = this.y1 - value;\r\n }\r\n else if (this.y2 >= this.y1 && this.y2 >= this.y3)\r\n {\r\n diff = this.y2 - value;\r\n }\r\n else\r\n {\r\n diff = this.y3 - value;\r\n }\r\n\r\n this.y1 -= diff;\r\n this.y2 -= diff;\r\n this.y3 -= diff;\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Triangle;\r\n\n\n/***/ }),\n\n/***/ 84435:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Triangle = __webpack_require__(16483);\r\n\r\nTriangle.Area = __webpack_require__(41658);\r\nTriangle.BuildEquilateral = __webpack_require__(39208);\r\nTriangle.BuildFromPolygon = __webpack_require__(39545);\r\nTriangle.BuildRight = __webpack_require__(90301);\r\nTriangle.CenterOn = __webpack_require__(23707);\r\nTriangle.Centroid = __webpack_require__(97523);\r\nTriangle.CircumCenter = __webpack_require__(24951);\r\nTriangle.CircumCircle = __webpack_require__(85614);\r\nTriangle.Clone = __webpack_require__(74422);\r\nTriangle.Contains = __webpack_require__(10690);\r\nTriangle.ContainsArray = __webpack_require__(48653);\r\nTriangle.ContainsPoint = __webpack_require__(96006);\r\nTriangle.CopyFrom = __webpack_require__(71326);\r\nTriangle.Decompose = __webpack_require__(71694);\r\nTriangle.Equals = __webpack_require__(33522);\r\nTriangle.GetPoint = __webpack_require__(20437);\r\nTriangle.GetPoints = __webpack_require__(80672);\r\nTriangle.InCenter = __webpack_require__(39757);\r\nTriangle.Perimeter = __webpack_require__(1376);\r\nTriangle.Offset = __webpack_require__(13584);\r\nTriangle.Random = __webpack_require__(90260);\r\nTriangle.Rotate = __webpack_require__(52172);\r\nTriangle.RotateAroundPoint = __webpack_require__(49907);\r\nTriangle.RotateAroundXY = __webpack_require__(99614);\r\n\r\nmodule.exports = Triangle;\r\n\n\n/***/ }),\n\n/***/ 74457:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Creates a new Interactive Object.\r\n *\r\n * This is called automatically by the Input Manager when you enable a Game Object for input.\r\n *\r\n * The resulting Interactive Object is mapped to the Game Object's `input` property.\r\n *\r\n * @function Phaser.Input.CreateInteractiveObject\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to which this Interactive Object is bound.\r\n * @param {any} hitArea - The hit area for this Interactive Object. Typically a geometry shape, like a Rectangle or Circle.\r\n * @param {Phaser.Types.Input.HitAreaCallback} hitAreaCallback - The 'contains' check callback that the hit area shape will use for all hit tests.\r\n *\r\n * @return {Phaser.Types.Input.InteractiveObject} The new Interactive Object.\r\n */\r\nvar CreateInteractiveObject = function (gameObject, hitArea, hitAreaCallback)\r\n{\r\n return {\r\n\r\n gameObject: gameObject,\r\n\r\n enabled: true,\r\n draggable: false,\r\n dropZone: false,\r\n cursor: false,\r\n\r\n target: null,\r\n\r\n camera: null,\r\n\r\n hitArea: hitArea,\r\n hitAreaCallback: hitAreaCallback,\r\n hitAreaDebug: null,\r\n\r\n // Has the dev specified their own shape, or is this bound to the texture size?\r\n customHitArea: false,\r\n\r\n localX: 0,\r\n localY: 0,\r\n\r\n // 0 = Not being dragged\r\n // 1 = Being checked for dragging\r\n // 2 = Being dragged\r\n dragState: 0,\r\n\r\n dragStartX: 0,\r\n dragStartY: 0,\r\n dragStartXGlobal: 0,\r\n dragStartYGlobal: 0,\r\n dragStartCamera: null,\r\n\r\n dragX: 0,\r\n dragY: 0\r\n\r\n };\r\n};\r\n\r\nmodule.exports = CreateInteractiveObject;\r\n\n\n/***/ }),\n\n/***/ 84409:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Creates a new Pixel Perfect Handler function.\r\n *\r\n * Access via `InputPlugin.makePixelPerfect` rather than calling it directly.\r\n *\r\n * @function Phaser.Input.CreatePixelPerfectHandler\r\n * @since 3.10.0\r\n *\r\n * @param {Phaser.Textures.TextureManager} textureManager - A reference to the Texture Manager.\r\n * @param {number} alphaTolerance - The alpha level that the pixel should be above to be included as a successful interaction.\r\n *\r\n * @return {function} The new Pixel Perfect Handler function.\r\n */\r\nvar CreatePixelPerfectHandler = function (textureManager, alphaTolerance)\r\n{\r\n return function (hitArea, x, y, gameObject)\r\n {\r\n var alpha = textureManager.getPixelAlpha(x, y, gameObject.texture.key, gameObject.frame.name);\r\n\r\n return (alpha && alpha >= alphaTolerance);\r\n };\r\n};\r\n\r\nmodule.exports = CreatePixelPerfectHandler;\r\n\n\n/***/ }),\n\n/***/ 7003:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(93301);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Events = __webpack_require__(8214);\r\nvar GameEvents = __webpack_require__(8443);\r\nvar Keyboard = __webpack_require__(78970);\r\nvar Mouse = __webpack_require__(85098);\r\nvar Pointer = __webpack_require__(42515);\r\nvar Touch = __webpack_require__(36210);\r\nvar TransformMatrix = __webpack_require__(61340);\r\nvar TransformXY = __webpack_require__(85955);\r\n\r\n/**\r\n * @classdesc\r\n * The Input Manager is responsible for handling the pointer related systems in a single Phaser Game instance.\r\n *\r\n * Based on the Game Config it will create handlers for mouse and touch support.\r\n *\r\n * Keyboard and Gamepad are plugins, handled directly by the InputPlugin class.\r\n *\r\n * It then manages the events, pointer creation and general hit test related operations.\r\n *\r\n * You rarely need to interact with the Input Manager directly, and as such, all of its properties and methods\r\n * should be considered private. Instead, you should use the Input Plugin, which is a Scene level system, responsible\r\n * for dealing with all input events for a Scene.\r\n *\r\n * @class InputManager\r\n * @memberof Phaser.Input\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Game} game - The Game instance that owns the Input Manager.\r\n * @param {object} config - The Input Configuration object, as set in the Game Config.\r\n */\r\nvar InputManager = new Class({\r\n\r\n initialize:\r\n\r\n function InputManager (game, config)\r\n {\r\n /**\r\n * The Game instance that owns the Input Manager.\r\n * A Game only maintains on instance of the Input Manager at any time.\r\n *\r\n * @name Phaser.Input.InputManager#game\r\n * @type {Phaser.Game}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.game = game;\r\n\r\n /**\r\n * A reference to the global Game Scale Manager.\r\n * Used for all bounds checks and pointer scaling.\r\n *\r\n * @name Phaser.Input.InputManager#scaleManager\r\n * @type {Phaser.Scale.ScaleManager}\r\n * @since 3.16.0\r\n */\r\n this.scaleManager;\r\n\r\n /**\r\n * The Canvas that is used for all DOM event input listeners.\r\n *\r\n * @name Phaser.Input.InputManager#canvas\r\n * @type {HTMLCanvasElement}\r\n * @since 3.0.0\r\n */\r\n this.canvas;\r\n\r\n /**\r\n * The Game Configuration object, as set during the game boot.\r\n *\r\n * @name Phaser.Input.InputManager#config\r\n * @type {Phaser.Core.Config}\r\n * @since 3.0.0\r\n */\r\n this.config = config;\r\n\r\n /**\r\n * If set, the Input Manager will run its update loop every frame.\r\n *\r\n * @name Phaser.Input.InputManager#enabled\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.enabled = true;\r\n\r\n /**\r\n * The Event Emitter instance that the Input Manager uses to emit events from.\r\n *\r\n * @name Phaser.Input.InputManager#events\r\n * @type {Phaser.Events.EventEmitter}\r\n * @since 3.0.0\r\n */\r\n this.events = new EventEmitter();\r\n\r\n /**\r\n * Are any mouse or touch pointers currently over the game canvas?\r\n * This is updated automatically by the canvas over and out handlers.\r\n *\r\n * @name Phaser.Input.InputManager#isOver\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.16.0\r\n */\r\n this.isOver = true;\r\n\r\n /**\r\n * The default CSS cursor to be used when interacting with your game.\r\n *\r\n * See the `setDefaultCursor` method for more details.\r\n *\r\n * @name Phaser.Input.InputManager#defaultCursor\r\n * @type {string}\r\n * @since 3.10.0\r\n */\r\n this.defaultCursor = '';\r\n\r\n /**\r\n * A reference to the Keyboard Manager class, if enabled via the `input.keyboard` Game Config property.\r\n *\r\n * @name Phaser.Input.InputManager#keyboard\r\n * @type {?Phaser.Input.Keyboard.KeyboardManager}\r\n * @since 3.16.0\r\n */\r\n this.keyboard = (config.inputKeyboard) ? new Keyboard(this) : null;\r\n\r\n /**\r\n * A reference to the Mouse Manager class, if enabled via the `input.mouse` Game Config property.\r\n *\r\n * @name Phaser.Input.InputManager#mouse\r\n * @type {?Phaser.Input.Mouse.MouseManager}\r\n * @since 3.0.0\r\n */\r\n this.mouse = (config.inputMouse) ? new Mouse(this) : null;\r\n\r\n /**\r\n * A reference to the Touch Manager class, if enabled via the `input.touch` Game Config property.\r\n *\r\n * @name Phaser.Input.InputManager#touch\r\n * @type {Phaser.Input.Touch.TouchManager}\r\n * @since 3.0.0\r\n */\r\n this.touch = (config.inputTouch) ? new Touch(this) : null;\r\n\r\n /**\r\n * An array of Pointers that have been added to the game.\r\n * The first entry is reserved for the Mouse Pointer, the rest are Touch Pointers.\r\n *\r\n * By default there is 1 touch pointer enabled. If you need more use the `addPointer` method to start them,\r\n * or set the `input.activePointers` property in the Game Config.\r\n *\r\n * @name Phaser.Input.InputManager#pointers\r\n * @type {Phaser.Input.Pointer[]}\r\n * @since 3.10.0\r\n */\r\n this.pointers = [];\r\n\r\n /**\r\n * The number of touch objects activated and being processed each update.\r\n *\r\n * You can change this by either calling `addPointer` at run-time, or by\r\n * setting the `input.activePointers` property in the Game Config.\r\n *\r\n * @name Phaser.Input.InputManager#pointersTotal\r\n * @type {number}\r\n * @readonly\r\n * @since 3.10.0\r\n */\r\n this.pointersTotal = config.inputActivePointers;\r\n\r\n for (var i = 0; i <= this.pointersTotal; i++)\r\n {\r\n var pointer = new Pointer(this, i);\r\n\r\n pointer.smoothFactor = config.inputSmoothFactor;\r\n\r\n this.pointers.push(pointer);\r\n }\r\n\r\n /**\r\n * The mouse has its own unique Pointer object, which you can reference directly if making a _desktop specific game_.\r\n * If you are supporting both desktop and touch devices then do not use this property, instead use `activePointer`\r\n * which will always map to the most recently interacted pointer.\r\n *\r\n * @name Phaser.Input.InputManager#mousePointer\r\n * @type {?Phaser.Input.Pointer}\r\n * @since 3.10.0\r\n */\r\n this.mousePointer = (config.inputMouse) ? this.pointers[0] : null;\r\n\r\n /**\r\n * The most recently active Pointer object.\r\n *\r\n * If you've only 1 Pointer in your game then this will accurately be either the first finger touched, or the mouse.\r\n *\r\n * If your game doesn't need to support multi-touch then you can safely use this property in all of your game\r\n * code and it will adapt to be either the mouse or the touch, based on device.\r\n *\r\n * @name Phaser.Input.InputManager#activePointer\r\n * @type {Phaser.Input.Pointer}\r\n * @since 3.0.0\r\n */\r\n this.activePointer = this.pointers[0];\r\n\r\n /**\r\n * If the top-most Scene in the Scene List receives an input it will stop input from\r\n * propagating any lower down the scene list, i.e. if you have a UI Scene at the top\r\n * and click something on it, that click will not then be passed down to any other\r\n * Scene below. Disable this to have input events passed through all Scenes, all the time.\r\n *\r\n * @name Phaser.Input.InputManager#globalTopOnly\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.globalTopOnly = true;\r\n\r\n /**\r\n * The time this Input Manager was last updated.\r\n * This value is populated by the Game Step each frame.\r\n *\r\n * @name Phaser.Input.InputManager#time\r\n * @type {number}\r\n * @readonly\r\n * @since 3.16.2\r\n */\r\n this.time = 0;\r\n\r\n /**\r\n * A re-cycled point-like object to store hit test values in.\r\n *\r\n * @name Phaser.Input.InputManager#_tempPoint\r\n * @type {{x:number, y:number}}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._tempPoint = { x: 0, y: 0 };\r\n\r\n /**\r\n * A re-cycled array to store hit results in.\r\n *\r\n * @name Phaser.Input.InputManager#_tempHitTest\r\n * @type {array}\r\n * @private\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this._tempHitTest = [];\r\n\r\n /**\r\n * A re-cycled matrix used in hit test calculations.\r\n *\r\n * @name Phaser.Input.InputManager#_tempMatrix\r\n * @type {Phaser.GameObjects.Components.TransformMatrix}\r\n * @private\r\n * @since 3.4.0\r\n */\r\n this._tempMatrix = new TransformMatrix();\r\n\r\n /**\r\n * A re-cycled matrix used in hit test calculations.\r\n *\r\n * @name Phaser.Input.InputManager#_tempMatrix2\r\n * @type {Phaser.GameObjects.Components.TransformMatrix}\r\n * @private\r\n * @since 3.12.0\r\n */\r\n this._tempMatrix2 = new TransformMatrix();\r\n\r\n /**\r\n * An internal private var that records Scenes aborting event processing.\r\n *\r\n * @name Phaser.Input.InputManager#_tempSkip\r\n * @type {boolean}\r\n * @private\r\n * @since 3.18.0\r\n */\r\n this._tempSkip = false;\r\n\r\n /**\r\n * An internal private array that avoids needing to create a new array on every DOM mouse event.\r\n *\r\n * @name Phaser.Input.InputManager#mousePointerContainer\r\n * @type {Phaser.Input.Pointer[]}\r\n * @private\r\n * @since 3.18.0\r\n */\r\n this.mousePointerContainer = [ this.mousePointer ];\r\n\r\n game.events.once(GameEvents.BOOT, this.boot, this);\r\n },\r\n\r\n /**\r\n * The Boot handler is called by Phaser.Game when it first starts up.\r\n * The renderer is available by now.\r\n *\r\n * @method Phaser.Input.InputManager#boot\r\n * @protected\r\n * @fires Phaser.Input.Events#MANAGER_BOOT\r\n * @since 3.0.0\r\n */\r\n boot: function ()\r\n {\r\n var game = this.game;\r\n var events = game.events;\r\n\r\n this.canvas = game.canvas;\r\n\r\n this.scaleManager = game.scale;\r\n\r\n this.events.emit(Events.MANAGER_BOOT);\r\n\r\n events.on(GameEvents.PRE_RENDER, this.preRender, this);\r\n\r\n events.once(GameEvents.DESTROY, this.destroy, this);\r\n },\r\n\r\n /**\r\n * Internal canvas state change, called automatically by the Mouse Manager.\r\n *\r\n * @method Phaser.Input.InputManager#setCanvasOver\r\n * @fires Phaser.Input.Events#GAME_OVER\r\n * @private\r\n * @since 3.16.0\r\n *\r\n * @param {(MouseEvent|TouchEvent)} event - The DOM Event.\r\n */\r\n setCanvasOver: function (event)\r\n {\r\n this.isOver = true;\r\n\r\n this.events.emit(Events.GAME_OVER, event);\r\n },\r\n\r\n /**\r\n * Internal canvas state change, called automatically by the Mouse Manager.\r\n *\r\n * @method Phaser.Input.InputManager#setCanvasOut\r\n * @fires Phaser.Input.Events#GAME_OUT\r\n * @private\r\n * @since 3.16.0\r\n *\r\n * @param {(MouseEvent|TouchEvent)} event - The DOM Event.\r\n */\r\n setCanvasOut: function (event)\r\n {\r\n this.isOver = false;\r\n\r\n this.events.emit(Events.GAME_OUT, event);\r\n },\r\n\r\n /**\r\n * Internal update, called automatically by the Game Step right at the start.\r\n *\r\n * @method Phaser.Input.InputManager#preRender\r\n * @private\r\n * @since 3.18.0\r\n */\r\n preRender: function ()\r\n {\r\n var time = this.game.loop.now;\r\n var delta = this.game.loop.delta;\r\n var scenes = this.game.scene.getScenes(true, true);\r\n\r\n this.time = time;\r\n\r\n this.events.emit(Events.MANAGER_UPDATE);\r\n\r\n for (var i = 0; i < scenes.length; i++)\r\n {\r\n var scene = scenes[i];\r\n\r\n if (scene.sys.input && scene.sys.input.updatePoll(time, delta) && this.globalTopOnly)\r\n {\r\n // If the Scene returns true, it means it captured some input that no other Scene should get, so we bail out\r\n return;\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Tells the Input system to set a custom cursor.\r\n *\r\n * This cursor will be the default cursor used when interacting with the game canvas.\r\n *\r\n * If an Interactive Object also sets a custom cursor, this is the cursor that is reset after its use.\r\n *\r\n * Any valid CSS cursor value is allowed, including paths to image files, i.e.:\r\n *\r\n * ```javascript\r\n * this.input.setDefaultCursor('url(assets/cursors/sword.cur), pointer');\r\n * ```\r\n *\r\n * Please read about the differences between browsers when it comes to the file formats and sizes they support:\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/CSS/cursor\r\n * https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_User_Interface/Using_URL_values_for_the_cursor_property\r\n *\r\n * It's up to you to pick a suitable cursor format that works across the range of browsers you need to support.\r\n *\r\n * @method Phaser.Input.InputManager#setDefaultCursor\r\n * @since 3.10.0\r\n *\r\n * @param {string} cursor - The CSS to be used when setting the default cursor.\r\n */\r\n setDefaultCursor: function (cursor)\r\n {\r\n this.defaultCursor = cursor;\r\n\r\n if (this.canvas.style.cursor !== cursor)\r\n {\r\n this.canvas.style.cursor = cursor;\r\n }\r\n },\r\n\r\n /**\r\n * Called by the InputPlugin when processing over and out events.\r\n *\r\n * Tells the Input Manager to set a custom cursor during its postUpdate step.\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/CSS/cursor\r\n *\r\n * @method Phaser.Input.InputManager#setCursor\r\n * @private\r\n * @since 3.10.0\r\n *\r\n * @param {Phaser.Types.Input.InteractiveObject} interactiveObject - The Interactive Object that called this method.\r\n */\r\n setCursor: function (interactiveObject)\r\n {\r\n if (interactiveObject.cursor)\r\n {\r\n this.canvas.style.cursor = interactiveObject.cursor;\r\n }\r\n },\r\n\r\n /**\r\n * Called by the InputPlugin when processing over and out events.\r\n *\r\n * Tells the Input Manager to clear the hand cursor, if set, during its postUpdate step.\r\n *\r\n * @method Phaser.Input.InputManager#resetCursor\r\n * @private\r\n * @since 3.10.0\r\n *\r\n * @param {Phaser.Types.Input.InteractiveObject} interactiveObject - The Interactive Object that called this method. Pass `null` if you just want to set the force value.\r\n * @param {boolean} [forceReset=false] - Should the reset happen regardless of the object's cursor state? Default false.\r\n */\r\n resetCursor: function (interactiveObject, forceReset)\r\n {\r\n if ((forceReset || (interactiveObject && interactiveObject.cursor)) && this.canvas)\r\n {\r\n this.canvas.style.cursor = this.defaultCursor;\r\n }\r\n },\r\n\r\n /**\r\n * Adds new Pointer objects to the Input Manager.\r\n *\r\n * By default Phaser creates 2 pointer objects: `mousePointer` and `pointer1`.\r\n *\r\n * You can create more either by calling this method, or by setting the `input.activePointers` property\r\n * in the Game Config, up to a maximum of 10 pointers.\r\n *\r\n * The first 10 pointers are available via the `InputPlugin.pointerX` properties, once they have been added\r\n * via this method.\r\n *\r\n * @method Phaser.Input.InputManager#addPointer\r\n * @since 3.10.0\r\n *\r\n * @param {number} [quantity=1] The number of new Pointers to create. A maximum of 10 is allowed in total.\r\n *\r\n * @return {Phaser.Input.Pointer[]} An array containing all of the new Pointer objects that were created.\r\n */\r\n addPointer: function (quantity)\r\n {\r\n if (quantity === undefined) { quantity = 1; }\r\n\r\n var output = [];\r\n\r\n if (this.pointersTotal + quantity > 10)\r\n {\r\n quantity = 10 - this.pointersTotal;\r\n }\r\n\r\n for (var i = 0; i < quantity; i++)\r\n {\r\n var id = this.pointers.length;\r\n\r\n var pointer = new Pointer(this, id);\r\n\r\n pointer.smoothFactor = this.config.inputSmoothFactor;\r\n\r\n this.pointers.push(pointer);\r\n\r\n this.pointersTotal++;\r\n\r\n output.push(pointer);\r\n }\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Internal method that gets a list of all the active Input Plugins in the game\r\n * and updates each of them in turn, in reverse order (top to bottom), to allow\r\n * for DOM top-level event handling simulation.\r\n *\r\n * @method Phaser.Input.InputManager#updateInputPlugins\r\n * @since 3.16.0\r\n *\r\n * @param {number} type - The type of event to process.\r\n * @param {Phaser.Input.Pointer[]} pointers - An array of Pointers on which the event occurred.\r\n */\r\n updateInputPlugins: function (type, pointers)\r\n {\r\n var scenes = this.game.scene.getScenes(false, true);\r\n\r\n this._tempSkip = false;\r\n\r\n for (var i = 0; i < scenes.length; i++)\r\n {\r\n var scene = scenes[i];\r\n\r\n if (scene.sys.input)\r\n {\r\n var capture = scene.sys.input.update(type, pointers);\r\n\r\n if ((capture && this.globalTopOnly) || this._tempSkip)\r\n {\r\n // If the Scene returns true, or called stopPropagation, it means it captured some input that no other Scene should get, so we bail out\r\n return;\r\n }\r\n }\r\n }\r\n },\r\n\r\n // event.targetTouches = list of all touches on the TARGET ELEMENT (i.e. game dom element)\r\n // event.touches = list of all touches on the ENTIRE DOCUMENT, not just the target element\r\n // event.changedTouches = the touches that CHANGED in this event, not the total number of them\r\n\r\n /**\r\n * Processes a touch start event, as passed in by the TouchManager.\r\n *\r\n * @method Phaser.Input.InputManager#onTouchStart\r\n * @private\r\n * @since 3.18.0\r\n *\r\n * @param {TouchEvent} event - The native DOM Touch event.\r\n */\r\n onTouchStart: function (event)\r\n {\r\n var pointers = this.pointers;\r\n var changed = [];\r\n\r\n for (var c = 0; c < event.changedTouches.length; c++)\r\n {\r\n var changedTouch = event.changedTouches[c];\r\n\r\n for (var i = 1; i < pointers.length; i++)\r\n {\r\n var pointer = pointers[i];\r\n\r\n if (!pointer.active)\r\n {\r\n pointer.touchstart(changedTouch, event);\r\n\r\n this.activePointer = pointer;\r\n\r\n changed.push(pointer);\r\n\r\n break;\r\n }\r\n }\r\n }\r\n\r\n this.updateInputPlugins(CONST.TOUCH_START, changed);\r\n },\r\n\r\n /**\r\n * Processes a touch move event, as passed in by the TouchManager.\r\n *\r\n * @method Phaser.Input.InputManager#onTouchMove\r\n * @private\r\n * @since 3.18.0\r\n *\r\n * @param {TouchEvent} event - The native DOM Touch event.\r\n */\r\n onTouchMove: function (event)\r\n {\r\n var pointers = this.pointers;\r\n var changed = [];\r\n\r\n for (var c = 0; c < event.changedTouches.length; c++)\r\n {\r\n var changedTouch = event.changedTouches[c];\r\n\r\n for (var i = 1; i < pointers.length; i++)\r\n {\r\n var pointer = pointers[i];\r\n\r\n if (pointer.active && pointer.identifier === changedTouch.identifier)\r\n {\r\n var element = document.elementFromPoint(changedTouch.clientX, changedTouch.clientY);\r\n var overCanvas = element === this.canvas;\r\n\r\n if (!this.isOver && overCanvas)\r\n {\r\n this.setCanvasOver(event);\r\n }\r\n else if (this.isOver && !overCanvas)\r\n {\r\n this.setCanvasOut(event);\r\n }\r\n\r\n if (this.isOver)\r\n {\r\n pointer.touchmove(changedTouch, event);\r\n\r\n this.activePointer = pointer;\r\n\r\n changed.push(pointer);\r\n }\r\n\r\n break;\r\n }\r\n }\r\n }\r\n\r\n this.updateInputPlugins(CONST.TOUCH_MOVE, changed);\r\n },\r\n\r\n // For touch end its a list of the touch points that have been removed from the surface\r\n // https://developer.mozilla.org/en-US/docs/DOM/TouchList\r\n // event.changedTouches = the touches that CHANGED in this event, not the total number of them\r\n\r\n /**\r\n * Processes a touch end event, as passed in by the TouchManager.\r\n *\r\n * @method Phaser.Input.InputManager#onTouchEnd\r\n * @private\r\n * @since 3.18.0\r\n *\r\n * @param {TouchEvent} event - The native DOM Touch event.\r\n */\r\n onTouchEnd: function (event)\r\n {\r\n var pointers = this.pointers;\r\n var changed = [];\r\n\r\n for (var c = 0; c < event.changedTouches.length; c++)\r\n {\r\n var changedTouch = event.changedTouches[c];\r\n\r\n for (var i = 1; i < pointers.length; i++)\r\n {\r\n var pointer = pointers[i];\r\n\r\n if (pointer.active && pointer.identifier === changedTouch.identifier)\r\n {\r\n pointer.touchend(changedTouch, event);\r\n\r\n changed.push(pointer);\r\n\r\n break;\r\n }\r\n }\r\n }\r\n\r\n this.updateInputPlugins(CONST.TOUCH_END, changed);\r\n },\r\n\r\n /**\r\n * Processes a touch cancel event, as passed in by the TouchManager.\r\n *\r\n * @method Phaser.Input.InputManager#onTouchCancel\r\n * @private\r\n * @since 3.18.0\r\n *\r\n * @param {TouchEvent} event - The native DOM Touch event.\r\n */\r\n onTouchCancel: function (event)\r\n {\r\n var pointers = this.pointers;\r\n var changed = [];\r\n\r\n for (var c = 0; c < event.changedTouches.length; c++)\r\n {\r\n var changedTouch = event.changedTouches[c];\r\n\r\n for (var i = 1; i < pointers.length; i++)\r\n {\r\n var pointer = pointers[i];\r\n\r\n if (pointer.active && pointer.identifier === changedTouch.identifier)\r\n {\r\n pointer.touchcancel(changedTouch, event);\r\n\r\n changed.push(pointer);\r\n\r\n break;\r\n }\r\n }\r\n }\r\n\r\n this.updateInputPlugins(CONST.TOUCH_CANCEL, changed);\r\n },\r\n\r\n /**\r\n * Processes a mouse down event, as passed in by the MouseManager.\r\n *\r\n * @method Phaser.Input.InputManager#onMouseDown\r\n * @private\r\n * @since 3.18.0\r\n *\r\n * @param {MouseEvent} event - The native DOM Mouse event.\r\n */\r\n onMouseDown: function (event)\r\n {\r\n var mousePointer = this.mousePointer;\r\n\r\n mousePointer.down(event);\r\n\r\n mousePointer.updateMotion();\r\n\r\n this.activePointer = mousePointer;\r\n\r\n this.updateInputPlugins(CONST.MOUSE_DOWN, this.mousePointerContainer);\r\n },\r\n\r\n /**\r\n * Processes a mouse move event, as passed in by the MouseManager.\r\n *\r\n * @method Phaser.Input.InputManager#onMouseMove\r\n * @private\r\n * @since 3.18.0\r\n *\r\n * @param {MouseEvent} event - The native DOM Mouse event.\r\n */\r\n onMouseMove: function (event)\r\n {\r\n var mousePointer = this.mousePointer;\r\n\r\n mousePointer.move(event);\r\n\r\n mousePointer.updateMotion();\r\n\r\n this.activePointer = mousePointer;\r\n\r\n this.updateInputPlugins(CONST.MOUSE_MOVE, this.mousePointerContainer);\r\n },\r\n\r\n /**\r\n * Processes a mouse up event, as passed in by the MouseManager.\r\n *\r\n * @method Phaser.Input.InputManager#onMouseUp\r\n * @private\r\n * @since 3.18.0\r\n *\r\n * @param {MouseEvent} event - The native DOM Mouse event.\r\n */\r\n onMouseUp: function (event)\r\n {\r\n var mousePointer = this.mousePointer;\r\n\r\n mousePointer.up(event);\r\n\r\n mousePointer.updateMotion();\r\n\r\n this.activePointer = mousePointer;\r\n\r\n this.updateInputPlugins(CONST.MOUSE_UP, this.mousePointerContainer);\r\n },\r\n\r\n /**\r\n * Processes a mouse wheel event, as passed in by the MouseManager.\r\n *\r\n * @method Phaser.Input.InputManager#onMouseWheel\r\n * @private\r\n * @since 3.18.0\r\n *\r\n * @param {WheelEvent} event - The native DOM Wheel event.\r\n */\r\n onMouseWheel: function (event)\r\n {\r\n var mousePointer = this.mousePointer;\r\n\r\n mousePointer.wheel(event);\r\n\r\n this.activePointer = mousePointer;\r\n\r\n this.updateInputPlugins(CONST.MOUSE_WHEEL, this.mousePointerContainer);\r\n },\r\n\r\n /**\r\n * Processes a pointer lock change event, as passed in by the MouseManager.\r\n *\r\n * @method Phaser.Input.InputManager#onPointerLockChange\r\n * @fires Phaser.Input.Events#POINTERLOCK_CHANGE\r\n * @private\r\n * @since 3.19.0\r\n *\r\n * @param {MouseEvent} event - The native DOM Mouse event.\r\n */\r\n onPointerLockChange: function (event)\r\n {\r\n var isLocked = this.mouse.locked;\r\n\r\n this.mousePointer.locked = isLocked;\r\n\r\n this.events.emit(Events.POINTERLOCK_CHANGE, event, isLocked);\r\n },\r\n\r\n /**\r\n * Checks if the given Game Object should be considered as a candidate for input or not.\r\n *\r\n * Checks if the Game Object has an input component that is enabled, that it will render,\r\n * and finally, if it has a parent, that the parent parent, or any ancestor, is visible or not.\r\n *\r\n * @method Phaser.Input.InputManager#inputCandidate\r\n * @private\r\n * @since 3.10.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to test.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera which is being tested against.\r\n *\r\n * @return {boolean} `true` if the Game Object should be considered for input, otherwise `false`.\r\n */\r\n inputCandidate: function (gameObject, camera)\r\n {\r\n var input = gameObject.input;\r\n\r\n if (!input || !input.enabled || !gameObject.willRender(camera))\r\n {\r\n return false;\r\n }\r\n\r\n var visible = true;\r\n var parent = gameObject.parentContainer;\r\n\r\n if (parent)\r\n {\r\n do\r\n {\r\n if (!parent.willRender(camera))\r\n {\r\n visible = false;\r\n break;\r\n }\r\n\r\n parent = parent.parentContainer;\r\n\r\n } while (parent);\r\n }\r\n\r\n return visible;\r\n },\r\n\r\n /**\r\n * Performs a hit test using the given Pointer and camera, against an array of interactive Game Objects.\r\n *\r\n * The Game Objects are culled against the camera, and then the coordinates are translated into the local camera space\r\n * and used to determine if they fall within the remaining Game Objects hit areas or not.\r\n *\r\n * If nothing is matched an empty array is returned.\r\n *\r\n * This method is called automatically by InputPlugin.hitTestPointer and doesn't usually need to be invoked directly.\r\n *\r\n * @method Phaser.Input.InputManager#hitTest\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer to test against.\r\n * @param {array} gameObjects - An array of interactive Game Objects to check.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera which is being tested against.\r\n * @param {array} [output] - An array to store the results in. If not given, a new empty array is created.\r\n *\r\n * @return {array} An array of the Game Objects that were hit during this hit test.\r\n */\r\n hitTest: function (pointer, gameObjects, camera, output)\r\n {\r\n if (output === undefined) { output = this._tempHitTest; }\r\n\r\n var tempPoint = this._tempPoint;\r\n\r\n var csx = camera.scrollX;\r\n var csy = camera.scrollY;\r\n\r\n output.length = 0;\r\n\r\n var x = pointer.x;\r\n var y = pointer.y;\r\n\r\n // Stores the world point inside of tempPoint\r\n camera.getWorldPoint(x, y, tempPoint);\r\n\r\n pointer.worldX = tempPoint.x;\r\n pointer.worldY = tempPoint.y;\r\n\r\n var point = { x: 0, y: 0 };\r\n\r\n var matrix = this._tempMatrix;\r\n var parentMatrix = this._tempMatrix2;\r\n\r\n for (var i = 0; i < gameObjects.length; i++)\r\n {\r\n var gameObject = gameObjects[i];\r\n\r\n // Checks if the Game Object can receive input (isn't being ignored by the camera, invisible, etc)\r\n // and also checks all of its parents, if any\r\n if (!this.inputCandidate(gameObject, camera))\r\n {\r\n continue;\r\n }\r\n\r\n var px = tempPoint.x + (csx * gameObject.scrollFactorX) - csx;\r\n var py = tempPoint.y + (csy * gameObject.scrollFactorY) - csy;\r\n\r\n if (gameObject.parentContainer)\r\n {\r\n gameObject.getWorldTransformMatrix(matrix, parentMatrix);\r\n\r\n matrix.applyInverse(px, py, point);\r\n }\r\n else\r\n {\r\n TransformXY(px, py, gameObject.x, gameObject.y, gameObject.rotation, gameObject.scaleX, gameObject.scaleY, point);\r\n }\r\n\r\n if (this.pointWithinHitArea(gameObject, point.x, point.y))\r\n {\r\n output.push(gameObject);\r\n }\r\n }\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Checks if the given x and y coordinate are within the hit area of the Game Object.\r\n *\r\n * This method assumes that the coordinate values have already been translated into the space of the Game Object.\r\n *\r\n * If the coordinates are within the hit area they are set into the Game Objects Input `localX` and `localY` properties.\r\n *\r\n * @method Phaser.Input.InputManager#pointWithinHitArea\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The interactive Game Object to check against.\r\n * @param {number} x - The translated x coordinate for the hit test.\r\n * @param {number} y - The translated y coordinate for the hit test.\r\n *\r\n * @return {boolean} `true` if the coordinates were inside the Game Objects hit area, otherwise `false`.\r\n */\r\n pointWithinHitArea: function (gameObject, x, y)\r\n {\r\n // Normalize the origin\r\n x += gameObject.displayOriginX;\r\n y += gameObject.displayOriginY;\r\n\r\n var input = gameObject.input;\r\n\r\n if (input && input.hitAreaCallback(input.hitArea, x, y, gameObject))\r\n {\r\n input.localX = x;\r\n input.localY = y;\r\n\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n },\r\n\r\n /**\r\n * Checks if the given x and y coordinate are within the hit area of the Interactive Object.\r\n *\r\n * This method assumes that the coordinate values have already been translated into the space of the Interactive Object.\r\n *\r\n * If the coordinates are within the hit area they are set into the Interactive Objects Input `localX` and `localY` properties.\r\n *\r\n * @method Phaser.Input.InputManager#pointWithinInteractiveObject\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Input.InteractiveObject} object - The Interactive Object to check against.\r\n * @param {number} x - The translated x coordinate for the hit test.\r\n * @param {number} y - The translated y coordinate for the hit test.\r\n *\r\n * @return {boolean} `true` if the coordinates were inside the Game Objects hit area, otherwise `false`.\r\n */\r\n pointWithinInteractiveObject: function (object, x, y)\r\n {\r\n if (!object.hitArea)\r\n {\r\n return false;\r\n }\r\n\r\n // Normalize the origin\r\n x += object.gameObject.displayOriginX;\r\n y += object.gameObject.displayOriginY;\r\n\r\n object.localX = x;\r\n object.localY = y;\r\n\r\n return object.hitAreaCallback(object.hitArea, x, y, object);\r\n },\r\n\r\n /**\r\n * Transforms the pageX and pageY values of a Pointer into the scaled coordinate space of the Input Manager.\r\n *\r\n * @method Phaser.Input.InputManager#transformPointer\r\n * @since 3.10.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer to transform the values for.\r\n * @param {number} pageX - The Page X value.\r\n * @param {number} pageY - The Page Y value.\r\n * @param {boolean} wasMove - Are we transforming the Pointer from a move event, or an up / down event?\r\n */\r\n transformPointer: function (pointer, pageX, pageY, wasMove)\r\n {\r\n var p0 = pointer.position;\r\n var p1 = pointer.prevPosition;\r\n\r\n // Store previous position\r\n p1.x = p0.x;\r\n p1.y = p0.y;\r\n\r\n // Translate coordinates\r\n var x = this.scaleManager.transformX(pageX);\r\n var y = this.scaleManager.transformY(pageY);\r\n\r\n var a = pointer.smoothFactor;\r\n\r\n if (!wasMove || a === 0)\r\n {\r\n // Set immediately\r\n p0.x = x;\r\n p0.y = y;\r\n }\r\n else\r\n {\r\n // Apply smoothing\r\n p0.x = x * a + p1.x * (1 - a);\r\n p0.y = y * a + p1.y * (1 - a);\r\n }\r\n },\r\n\r\n /**\r\n * Destroys the Input Manager and all of its systems.\r\n *\r\n * There is no way to recover from doing this.\r\n *\r\n * @method Phaser.Input.InputManager#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.events.removeAllListeners();\r\n\r\n this.game.events.off(GameEvents.PRE_RENDER);\r\n\r\n if (this.keyboard)\r\n {\r\n this.keyboard.destroy();\r\n }\r\n\r\n if (this.mouse)\r\n {\r\n this.mouse.destroy();\r\n }\r\n\r\n if (this.touch)\r\n {\r\n this.touch.destroy();\r\n }\r\n\r\n for (var i = 0; i < this.pointers.length; i++)\r\n {\r\n this.pointers[i].destroy();\r\n }\r\n\r\n this.pointers = [];\r\n this._tempHitTest = [];\r\n this._tempMatrix.destroy();\r\n this.canvas = null;\r\n this.game = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = InputManager;\r\n\n\n/***/ }),\n\n/***/ 48205:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Circle = __webpack_require__(96503);\r\nvar CircleContains = __webpack_require__(87902);\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(93301);\r\nvar CreateInteractiveObject = __webpack_require__(74457);\r\nvar CreatePixelPerfectHandler = __webpack_require__(84409);\r\nvar DistanceBetween = __webpack_require__(20339);\r\nvar Ellipse = __webpack_require__(8497);\r\nvar EllipseContains = __webpack_require__(81154);\r\nvar Events = __webpack_require__(8214);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar GEOM_CONST = __webpack_require__(23777);\r\nvar InputPluginCache = __webpack_require__(89639);\r\nvar IsPlainObject = __webpack_require__(41212);\r\nvar PluginCache = __webpack_require__(37277);\r\nvar Rectangle = __webpack_require__(87841);\r\nvar RectangleContains = __webpack_require__(37303);\r\nvar SceneEvents = __webpack_require__(44594);\r\nvar Triangle = __webpack_require__(16483);\r\nvar TriangleContains = __webpack_require__(10690);\r\n\r\n/**\r\n * @classdesc\r\n * The Input Plugin belongs to a Scene and handles all input related events and operations for it.\r\n *\r\n * You can access it from within a Scene using `this.input`.\r\n *\r\n * It emits events directly. For example, you can do:\r\n *\r\n * ```javascript\r\n * this.input.on('pointerdown', callback, context);\r\n * ```\r\n *\r\n * To listen for a pointer down event anywhere on the game canvas.\r\n *\r\n * Game Objects can be enabled for input by calling their `setInteractive` method. After which they\r\n * will directly emit input events:\r\n *\r\n * ```javascript\r\n * var sprite = this.add.sprite(x, y, texture);\r\n * sprite.setInteractive();\r\n * sprite.on('pointerdown', callback, context);\r\n * ```\r\n *\r\n * There are lots of game configuration options available relating to input.\r\n * See the [Input Config object]{@linkcode Phaser.Types.Core.InputConfig} for more details, including how to deal with Phaser\r\n * listening for input events outside of the canvas, how to set a default number of pointers, input\r\n * capture settings and more.\r\n *\r\n * Please also see the Input examples and tutorials for further information.\r\n *\r\n * **Incorrect input coordinates with Angular**\r\n *\r\n * If you are using Phaser within Angular, and use nglf or the router, to make the component in which the Phaser game resides\r\n * change state (i.e. appear or disappear) then you'll need to notify the Scale Manager about this, as Angular will mess with\r\n * the DOM in a way in which Phaser can't detect directly. Call `this.scale.updateBounds()` as part of your game init in order\r\n * to refresh the canvas DOM bounds values, which Phaser uses for input point position calculations.\r\n *\r\n * @class InputPlugin\r\n * @extends Phaser.Events.EventEmitter\r\n * @memberof Phaser.Input\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - A reference to the Scene that this Input Plugin is responsible for.\r\n */\r\nvar InputPlugin = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function InputPlugin (scene)\r\n {\r\n EventEmitter.call(this);\r\n\r\n /**\r\n * A reference to the Scene that this Input Plugin is responsible for.\r\n *\r\n * @name Phaser.Input.InputPlugin#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.0.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * A reference to the Scene Systems class.\r\n *\r\n * @name Phaser.Input.InputPlugin#systems\r\n * @type {Phaser.Scenes.Systems}\r\n * @since 3.0.0\r\n */\r\n this.systems = scene.sys;\r\n\r\n /**\r\n * A reference to the Scene Systems Settings.\r\n *\r\n * @name Phaser.Input.InputPlugin#settings\r\n * @type {Phaser.Types.Scenes.SettingsObject}\r\n * @since 3.5.0\r\n */\r\n this.settings = scene.sys.settings;\r\n\r\n /**\r\n * A reference to the Game Input Manager.\r\n *\r\n * @name Phaser.Input.InputPlugin#manager\r\n * @type {Phaser.Input.InputManager}\r\n * @since 3.0.0\r\n */\r\n this.manager = scene.sys.game.input;\r\n\r\n /**\r\n * Internal event queue used for plugins only.\r\n *\r\n * @name Phaser.Input.InputPlugin#pluginEvents\r\n * @type {Phaser.Events.EventEmitter}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this.pluginEvents = new EventEmitter();\r\n\r\n /**\r\n * If `true` this Input Plugin will process DOM input events.\r\n *\r\n * @name Phaser.Input.InputPlugin#enabled\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.5.0\r\n */\r\n this.enabled = true;\r\n\r\n /**\r\n * A reference to the Scene Display List. This property is set during the `boot` method.\r\n *\r\n * @name Phaser.Input.InputPlugin#displayList\r\n * @type {Phaser.GameObjects.DisplayList}\r\n * @since 3.0.0\r\n */\r\n this.displayList;\r\n\r\n /**\r\n * A reference to the Scene Cameras Manager. This property is set during the `boot` method.\r\n *\r\n * @name Phaser.Input.InputPlugin#cameras\r\n * @type {Phaser.Cameras.Scene2D.CameraManager}\r\n * @since 3.0.0\r\n */\r\n this.cameras;\r\n\r\n // Inject the available input plugins into this class\r\n InputPluginCache.install(this);\r\n\r\n /**\r\n * A reference to the Mouse Manager.\r\n *\r\n * This property is only set if Mouse support has been enabled in your Game Configuration file.\r\n *\r\n * If you just wish to get access to the mouse pointer, use the `mousePointer` property instead.\r\n *\r\n * @name Phaser.Input.InputPlugin#mouse\r\n * @type {?Phaser.Input.Mouse.MouseManager}\r\n * @since 3.0.0\r\n */\r\n this.mouse = this.manager.mouse;\r\n\r\n /**\r\n * When set to `true` (the default) the Input Plugin will emulate DOM behavior by only emitting events from\r\n * the top-most Game Objects in the Display List.\r\n *\r\n * If set to `false` it will emit events from all Game Objects below a Pointer, not just the top one.\r\n *\r\n * @name Phaser.Input.InputPlugin#topOnly\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.topOnly = true;\r\n\r\n /**\r\n * How often should the Pointers be checked?\r\n *\r\n * The value is a time, given in ms, and is the time that must have elapsed between game steps before\r\n * the Pointers will be polled again. When a pointer is polled it runs a hit test to see which Game\r\n * Objects are currently below it, or being interacted with it.\r\n *\r\n * Pointers will *always* be checked if they have been moved by the user, or press or released.\r\n *\r\n * This property only controls how often they will be polled if they have not been updated.\r\n * You should set this if you want to have Game Objects constantly check against the pointers, even\r\n * if the pointer didn't itself move.\r\n *\r\n * Set to 0 to poll constantly. Set to -1 to only poll on user movement.\r\n *\r\n * @name Phaser.Input.InputPlugin#pollRate\r\n * @type {number}\r\n * @default -1\r\n * @since 3.0.0\r\n */\r\n this.pollRate = -1;\r\n\r\n /**\r\n * Internal poll timer value.\r\n *\r\n * @name Phaser.Input.InputPlugin#_pollTimer\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this._pollTimer = 0;\r\n\r\n var _eventData = { cancelled: false };\r\n\r\n /**\r\n * Internal event propagation callback container.\r\n *\r\n * @name Phaser.Input.InputPlugin#_eventContainer\r\n * @type {Phaser.Types.Input.EventData}\r\n * @private\r\n * @since 3.13.0\r\n */\r\n this._eventContainer = {\r\n stopPropagation: function ()\r\n {\r\n _eventData.cancelled = true;\r\n }\r\n };\r\n\r\n /**\r\n * Internal event propagation data object.\r\n *\r\n * @name Phaser.Input.InputPlugin#_eventData\r\n * @type {object}\r\n * @private\r\n * @since 3.13.0\r\n */\r\n this._eventData = _eventData;\r\n\r\n /**\r\n * The distance, in pixels, a pointer has to move while being held down, before it thinks it is being dragged.\r\n *\r\n * @name Phaser.Input.InputPlugin#dragDistanceThreshold\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.dragDistanceThreshold = 0;\r\n\r\n /**\r\n * The amount of time, in ms, a pointer has to be held down before it thinks it is dragging.\r\n *\r\n * The default polling rate is to poll only on move so once the time threshold is reached the\r\n * drag event will not start until you move the mouse. If you want it to start immediately\r\n * when the time threshold is reached, you must increase the polling rate by calling\r\n * [setPollAlways]{@linkcode Phaser.Input.InputPlugin#setPollAlways} or\r\n * [setPollRate]{@linkcode Phaser.Input.InputPlugin#setPollRate}.\r\n *\r\n * @name Phaser.Input.InputPlugin#dragTimeThreshold\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.dragTimeThreshold = 0;\r\n\r\n /**\r\n * Used to temporarily store the results of the Hit Test\r\n *\r\n * @name Phaser.Input.InputPlugin#_temp\r\n * @type {array}\r\n * @private\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this._temp = [];\r\n\r\n /**\r\n * Used to temporarily store the results of the Hit Test dropZones\r\n *\r\n * @name Phaser.Input.InputPlugin#_tempZones\r\n * @type {array}\r\n * @private\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this._tempZones = [];\r\n\r\n /**\r\n * A list of all Game Objects that have been set to be interactive in the Scene this Input Plugin is managing.\r\n *\r\n * @name Phaser.Input.InputPlugin#_list\r\n * @type {Phaser.GameObjects.GameObject[]}\r\n * @private\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this._list = [];\r\n\r\n /**\r\n * Objects waiting to be inserted to the list on the next call to 'begin'.\r\n *\r\n * @name Phaser.Input.InputPlugin#_pendingInsertion\r\n * @type {Phaser.GameObjects.GameObject[]}\r\n * @private\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this._pendingInsertion = [];\r\n\r\n /**\r\n * Objects waiting to be removed from the list on the next call to 'begin'.\r\n *\r\n * @name Phaser.Input.InputPlugin#_pendingRemoval\r\n * @type {Phaser.GameObjects.GameObject[]}\r\n * @private\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this._pendingRemoval = [];\r\n\r\n /**\r\n * A list of all Game Objects that have been enabled for dragging.\r\n *\r\n * @name Phaser.Input.InputPlugin#_draggable\r\n * @type {Phaser.GameObjects.GameObject[]}\r\n * @private\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this._draggable = [];\r\n\r\n /**\r\n * A list of all Interactive Objects currently considered as being 'draggable' by any pointer, indexed by pointer ID.\r\n *\r\n * @name Phaser.Input.InputPlugin#_drag\r\n * @type {{0:Array,1:Array,2:Array,3:Array,4:Array,5:Array,6:Array,7:Array,8:Array,9:Array,10:Array}}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._drag = { 0: [], 1: [], 2: [], 3: [], 4: [], 5: [], 6: [], 7: [], 8: [], 9: [], 10: [] };\r\n\r\n /**\r\n * A array containing the dragStates, for this Scene, index by the Pointer ID.\r\n *\r\n * @name Phaser.Input.InputPlugin#_dragState\r\n * @type {number[]}\r\n * @private\r\n * @since 3.16.0\r\n */\r\n this._dragState = [];\r\n\r\n /**\r\n * A list of all Interactive Objects currently considered as being 'over' by any pointer, indexed by pointer ID.\r\n *\r\n * @name Phaser.Input.InputPlugin#_over\r\n * @type {{0:Array,1:Array,2:Array,3:Array,4:Array,5:Array,6:Array,7:Array,8:Array,9:Array,10:Array}}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._over = { 0: [], 1: [], 2: [], 3: [], 4: [], 5: [], 6: [], 7: [], 8: [], 9: [], 10: [] };\r\n\r\n /**\r\n * A list of valid DOM event types.\r\n *\r\n * @name Phaser.Input.InputPlugin#_validTypes\r\n * @type {string[]}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._validTypes = [ 'onDown', 'onUp', 'onOver', 'onOut', 'onMove', 'onDragStart', 'onDrag', 'onDragEnd', 'onDragEnter', 'onDragLeave', 'onDragOver', 'onDrop' ];\r\n\r\n /**\r\n * Internal property that tracks frame event state.\r\n *\r\n * @name Phaser.Input.InputPlugin#_updatedThisFrame\r\n * @type {boolean}\r\n * @private\r\n * @since 3.18.0\r\n */\r\n this._updatedThisFrame = false;\r\n\r\n scene.sys.events.once(SceneEvents.BOOT, this.boot, this);\r\n scene.sys.events.on(SceneEvents.START, this.start, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically, only once, when the Scene is first created.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.Input.InputPlugin#boot\r\n * @fires Phaser.Input.Events#BOOT\r\n * @private\r\n * @since 3.5.1\r\n */\r\n boot: function ()\r\n {\r\n this.cameras = this.systems.cameras;\r\n\r\n this.displayList = this.systems.displayList;\r\n\r\n this.systems.events.once(SceneEvents.DESTROY, this.destroy, this);\r\n\r\n // Registered input plugins listen for this\r\n this.pluginEvents.emit(Events.BOOT);\r\n },\r\n\r\n /**\r\n * This method is called automatically by the Scene when it is starting up.\r\n * It is responsible for creating local systems, properties and listening for Scene events.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.Input.InputPlugin#start\r\n * @fires Phaser.Input.Events#START\r\n * @private\r\n * @since 3.5.0\r\n */\r\n start: function ()\r\n {\r\n var eventEmitter = this.systems.events;\r\n\r\n eventEmitter.on(SceneEvents.TRANSITION_START, this.transitionIn, this);\r\n eventEmitter.on(SceneEvents.TRANSITION_OUT, this.transitionOut, this);\r\n eventEmitter.on(SceneEvents.TRANSITION_COMPLETE, this.transitionComplete, this);\r\n eventEmitter.on(SceneEvents.PRE_UPDATE, this.preUpdate, this);\r\n eventEmitter.once(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n\r\n this.manager.events.on(Events.GAME_OUT, this.onGameOut, this);\r\n this.manager.events.on(Events.GAME_OVER, this.onGameOver, this);\r\n\r\n this.enabled = true;\r\n\r\n // Populate the pointer drag states\r\n this._dragState = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ];\r\n\r\n // Registered input plugins listen for this\r\n this.pluginEvents.emit(Events.START);\r\n },\r\n\r\n /**\r\n * Game Over handler.\r\n *\r\n * @method Phaser.Input.InputPlugin#onGameOver\r\n * @fires Phaser.Input.Events#GAME_OVER\r\n * @private\r\n * @since 3.16.2\r\n */\r\n onGameOver: function (event)\r\n {\r\n if (this.isActive())\r\n {\r\n this.emit(Events.GAME_OVER, event.timeStamp, event);\r\n }\r\n },\r\n\r\n /**\r\n * Game Out handler.\r\n *\r\n * @method Phaser.Input.InputPlugin#onGameOut\r\n * @fires Phaser.Input.Events#GAME_OUT\r\n * @private\r\n * @since 3.16.2\r\n */\r\n onGameOut: function (event)\r\n {\r\n if (this.isActive())\r\n {\r\n this.emit(Events.GAME_OUT, event.timeStamp, event);\r\n }\r\n },\r\n\r\n /**\r\n * The pre-update handler is responsible for checking the pending removal and insertion lists and\r\n * deleting old Game Objects.\r\n *\r\n * @method Phaser.Input.InputPlugin#preUpdate\r\n * @private\r\n * @fires Phaser.Input.Events#PRE_UPDATE\r\n * @since 3.0.0\r\n */\r\n preUpdate: function ()\r\n {\r\n // Registered input plugins listen for this\r\n this.pluginEvents.emit(Events.PRE_UPDATE);\r\n\r\n var removeList = this._pendingRemoval;\r\n var insertList = this._pendingInsertion;\r\n\r\n var toRemove = removeList.length;\r\n var toInsert = insertList.length;\r\n\r\n if (toRemove === 0 && toInsert === 0)\r\n {\r\n // Quick bail\r\n return;\r\n }\r\n\r\n var current = this._list;\r\n\r\n // Delete old gameObjects\r\n for (var i = 0; i < toRemove; i++)\r\n {\r\n var gameObject = removeList[i];\r\n\r\n var index = current.indexOf(gameObject);\r\n\r\n if (index > -1)\r\n {\r\n current.splice(index, 1);\r\n\r\n this.clear(gameObject, true);\r\n }\r\n }\r\n\r\n // Clear the removal list\r\n this._pendingRemoval.length = 0;\r\n\r\n // Move pendingInsertion to list (also clears pendingInsertion at the same time)\r\n this._list = current.concat(insertList.splice(0));\r\n },\r\n\r\n /**\r\n * Checks to see if the Input Manager, this plugin and the Scene to which it belongs are all active and input enabled.\r\n *\r\n * @method Phaser.Input.InputPlugin#isActive\r\n * @since 3.10.0\r\n *\r\n * @return {boolean} `true` if the plugin and the Scene it belongs to is active.\r\n */\r\n isActive: function ()\r\n {\r\n return (this.manager && this.manager.enabled && this.enabled && this.scene.sys.canInput());\r\n },\r\n\r\n /**\r\n * Sets a custom cursor on the parent canvas element of the game, based on the `cursor`\r\n * setting of the given Interactive Object (i.e. a Sprite).\r\n * \r\n * See the CSS property `cursor` for more information on MDN:\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/CSS/cursor\r\n *\r\n * @method Phaser.Input.InputPlugin#setCursor\r\n * @since 3.85.0\r\n *\r\n * @param {Phaser.Types.Input.InteractiveObject} interactiveObject - The Interactive Object that will set the cursor on the canvas.\r\n */\r\n setCursor: function (interactiveObject)\r\n {\r\n if (this.manager)\r\n {\r\n this.manager.setCursor(interactiveObject);\r\n }\r\n },\r\n\r\n /**\r\n * Forces the Input Manager to clear the custom or hand cursor, regardless of the\r\n * interactive state of any Game Objects.\r\n *\r\n * @method Phaser.Input.InputPlugin#resetCursor\r\n * @since 3.85.0\r\n */\r\n resetCursor: function ()\r\n {\r\n if (this.manager)\r\n {\r\n this.manager.resetCursor(null, true);\r\n }\r\n },\r\n\r\n /**\r\n * This is called automatically by the Input Manager.\r\n * It emits events for plugins to listen to and also handles polling updates, if enabled.\r\n *\r\n * @method Phaser.Input.InputPlugin#updatePoll\r\n * @since 3.18.0\r\n *\r\n * @param {number} time - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n *\r\n * @return {boolean} `true` if the plugin and the Scene it belongs to is active.\r\n */\r\n updatePoll: function (time, delta)\r\n {\r\n if (!this.isActive())\r\n {\r\n return false;\r\n }\r\n\r\n // The plugins should update every frame, regardless if there has been\r\n // any DOM input events or not (such as the Gamepad and Keyboard)\r\n this.pluginEvents.emit(Events.UPDATE, time, delta);\r\n\r\n // We can leave now if we've already updated once this frame via the immediate DOM event handlers\r\n if (this._updatedThisFrame)\r\n {\r\n this._updatedThisFrame = false;\r\n\r\n return false;\r\n }\r\n\r\n var i;\r\n var manager = this.manager;\r\n\r\n var pointers = manager.pointers;\r\n\r\n for (i = 0; i < pointers.length; i++)\r\n {\r\n pointers[i].updateMotion();\r\n }\r\n\r\n // No point going any further if there aren't any interactive objects\r\n if (this._list.length === 0)\r\n {\r\n return false;\r\n }\r\n\r\n var rate = this.pollRate;\r\n\r\n if (rate === -1)\r\n {\r\n return false;\r\n }\r\n else if (rate > 0)\r\n {\r\n this._pollTimer -= delta;\r\n\r\n if (this._pollTimer < 0)\r\n {\r\n // Discard timer diff, we're ready to poll again\r\n this._pollTimer = this.pollRate;\r\n }\r\n else\r\n {\r\n // Not enough time has elapsed since the last poll, so abort now\r\n return false;\r\n }\r\n }\r\n\r\n // We got this far? Then we should poll for movement\r\n var captured = false;\r\n\r\n for (i = 0; i < pointers.length; i++)\r\n {\r\n var total = 0;\r\n\r\n var pointer = pointers[i];\r\n\r\n // Always reset this array\r\n this._tempZones = [];\r\n\r\n // _temp contains a hit tested and camera culled list of IO objects\r\n this._temp = this.hitTestPointer(pointer);\r\n\r\n this.sortGameObjects(this._temp, pointer);\r\n this.sortDropZones(this._tempZones);\r\n\r\n if (this.topOnly)\r\n {\r\n // Only the top-most one counts now, so safely ignore the rest\r\n if (this._temp.length)\r\n {\r\n this._temp.splice(1);\r\n }\r\n\r\n if (this._tempZones.length)\r\n {\r\n this._tempZones.splice(1);\r\n }\r\n }\r\n\r\n total += this.processOverOutEvents(pointer);\r\n\r\n if (this.getDragState(pointer) === 2)\r\n {\r\n this.processDragThresholdEvent(pointer, time);\r\n }\r\n\r\n if (total > 0)\r\n {\r\n // We interacted with an event in this Scene, so block any Scenes below us from doing the same this frame\r\n captured = true;\r\n }\r\n }\r\n\r\n return captured;\r\n },\r\n\r\n /**\r\n * This method is called when a DOM Event is received by the Input Manager. It handles dispatching the events\r\n * to relevant input enabled Game Objects in this scene.\r\n *\r\n * @method Phaser.Input.InputPlugin#update\r\n * @private\r\n * @fires Phaser.Input.Events#UPDATE\r\n * @since 3.0.0\r\n *\r\n * @param {number} type - The type of event to process.\r\n * @param {Phaser.Input.Pointer[]} pointers - An array of Pointers on which the event occurred.\r\n *\r\n * @return {boolean} `true` if this Scene has captured the input events from all other Scenes, otherwise `false`.\r\n */\r\n update: function (type, pointers)\r\n {\r\n if (!this.isActive())\r\n {\r\n return false;\r\n }\r\n\r\n var captured = false;\r\n\r\n for (var i = 0; i < pointers.length; i++)\r\n {\r\n var total = 0;\r\n var pointer = pointers[i];\r\n\r\n // Always reset this array\r\n this._tempZones = [];\r\n\r\n // _temp contains a hit tested and camera culled list of IO objects\r\n this._temp = this.hitTestPointer(pointer);\r\n\r\n this.sortGameObjects(this._temp, pointer);\r\n this.sortDropZones(this._tempZones);\r\n\r\n if (this.topOnly)\r\n {\r\n // Only the top-most one counts now, so safely ignore the rest\r\n if (this._temp.length)\r\n {\r\n this._temp.splice(1);\r\n }\r\n\r\n if (this._tempZones.length)\r\n {\r\n this._tempZones.splice(1);\r\n }\r\n }\r\n\r\n switch (type)\r\n {\r\n case CONST.MOUSE_DOWN:\r\n total += this.processDragDownEvent(pointer);\r\n total += this.processDownEvents(pointer);\r\n total += this.processOverOutEvents(pointer);\r\n break;\r\n\r\n case CONST.MOUSE_UP:\r\n total += this.processDragUpEvent(pointer);\r\n total += this.processUpEvents(pointer);\r\n total += this.processOverOutEvents(pointer);\r\n break;\r\n\r\n case CONST.TOUCH_START:\r\n total += this.processDragDownEvent(pointer);\r\n total += this.processDownEvents(pointer);\r\n total += this.processOverEvents(pointer);\r\n break;\r\n\r\n case CONST.TOUCH_END:\r\n case CONST.TOUCH_CANCEL:\r\n total += this.processDragUpEvent(pointer);\r\n total += this.processUpEvents(pointer);\r\n total += this.processOutEvents(pointer);\r\n break;\r\n\r\n case CONST.MOUSE_MOVE:\r\n case CONST.TOUCH_MOVE:\r\n total += this.processDragMoveEvent(pointer);\r\n total += this.processMoveEvents(pointer);\r\n total += this.processOverOutEvents(pointer);\r\n break;\r\n\r\n case CONST.MOUSE_WHEEL:\r\n total += this.processWheelEvent(pointer);\r\n break;\r\n }\r\n\r\n if (total > 0)\r\n {\r\n // We interacted with an event in this Scene, so block any Scenes below us from doing the same this frame\r\n captured = true;\r\n }\r\n }\r\n\r\n this._updatedThisFrame = true;\r\n\r\n return captured;\r\n },\r\n\r\n /**\r\n * Clears a Game Object so it no longer has an Interactive Object associated with it.\r\n * The Game Object is then queued for removal from the Input Plugin on the next update.\r\n *\r\n * @method Phaser.Input.InputPlugin#clear\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will have its Interactive Object removed.\r\n * @param {boolean} [skipQueue=false] - Skip adding this Game Object into the removal queue?\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that had its Interactive Object removed.\r\n */\r\n clear: function (gameObject, skipQueue)\r\n {\r\n if (skipQueue === undefined) { skipQueue = false; }\r\n\r\n this.disable(gameObject);\r\n\r\n var input = gameObject.input;\r\n\r\n // If GameObject.input already cleared from higher class\r\n if (input)\r\n {\r\n this.removeDebug(gameObject);\r\n this.manager.resetCursor(input);\r\n\r\n input.gameObject = undefined;\r\n input.target = undefined;\r\n input.hitArea = undefined;\r\n input.hitAreaCallback = undefined;\r\n input.callbackContext = undefined;\r\n\r\n gameObject.input = null;\r\n }\r\n\r\n if (!skipQueue)\r\n {\r\n this.queueForRemoval(gameObject);\r\n }\r\n\r\n var index = this._draggable.indexOf(gameObject);\r\n\r\n if (index > -1)\r\n {\r\n this._draggable.splice(index, 1);\r\n }\r\n\r\n return gameObject;\r\n },\r\n\r\n /**\r\n * Disables Input on a single Game Object.\r\n *\r\n * An input disabled Game Object still retains its Interactive Object component and can be re-enabled\r\n * at any time, by passing it to `InputPlugin.enable`.\r\n *\r\n * @method Phaser.Input.InputPlugin#disable\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to have its input system disabled.\r\n * @param {boolean} [resetCursor=false] - Reset the cursor to the default?\r\n *\r\n * @return {this} This Input Plugin.\r\n */\r\n disable: function (gameObject, resetCursor)\r\n {\r\n if (resetCursor === undefined) { resetCursor = false; }\r\n\r\n var input = gameObject.input;\r\n\r\n if (input)\r\n {\r\n input.enabled = false;\r\n input.dragState = 0;\r\n }\r\n\r\n // Clear from _drag and _over\r\n var drag = this._drag;\r\n var over = this._over;\r\n var manager = this.manager;\r\n\r\n for (var i = 0, index; i < manager.pointers.length; i++)\r\n {\r\n index = drag[i].indexOf(gameObject);\r\n\r\n if (index > -1)\r\n {\r\n drag[i].splice(index, 1);\r\n }\r\n\r\n index = over[i].indexOf(gameObject);\r\n\r\n if (index > -1)\r\n {\r\n over[i].splice(index, 1);\r\n }\r\n }\r\n\r\n if (resetCursor)\r\n {\r\n this.resetCursor();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Enable a Game Object for interaction.\r\n *\r\n * If the Game Object already has an Interactive Object component, it is enabled and returned.\r\n *\r\n * Otherwise, a new Interactive Object component is created and assigned to the Game Object's `input` property.\r\n *\r\n * Input works by using hit areas, these are nearly always geometric shapes, such as rectangles or circles, that act as the hit area\r\n * for the Game Object. However, you can provide your own hit area shape and callback, should you wish to handle some more advanced\r\n * input detection.\r\n *\r\n * If no arguments are provided it will try and create a rectangle hit area based on the texture frame the Game Object is using. If\r\n * this isn't a texture-bound object, such as a Graphics or BitmapText object, this will fail, and you'll need to provide a specific\r\n * shape for it to use.\r\n *\r\n * You can also provide an Input Configuration Object as the only argument to this method.\r\n *\r\n * @method Phaser.Input.InputPlugin#enable\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to be enabled for input.\r\n * @param {(Phaser.Types.Input.InputConfiguration|any)} [hitArea] - Either an input configuration object, or a geometric shape that defines the hit area for the Game Object. If not specified a Rectangle will be used.\r\n * @param {Phaser.Types.Input.HitAreaCallback} [hitAreaCallback] - The 'contains' function to invoke to check if the pointer is within the hit area.\r\n * @param {boolean} [dropZone=false] - Is this Game Object a drop zone or not?\r\n *\r\n * @return {this} This Input Plugin.\r\n */\r\n enable: function (gameObject, hitArea, hitAreaCallback, dropZone)\r\n {\r\n if (dropZone === undefined) { dropZone = false; }\r\n\r\n if (gameObject.input)\r\n {\r\n // If it is already has an InteractiveObject then just enable it and return\r\n gameObject.input.enabled = true;\r\n }\r\n else\r\n {\r\n // Create an InteractiveObject and enable it\r\n this.setHitArea(gameObject, hitArea, hitAreaCallback);\r\n }\r\n\r\n if (gameObject.input && dropZone && !gameObject.input.dropZone)\r\n {\r\n gameObject.input.dropZone = dropZone;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes the given Pointer and performs a hit test against it, to see which interactive Game Objects\r\n * it is currently above.\r\n *\r\n * The hit test is performed against which-ever Camera the Pointer is over. If it is over multiple\r\n * cameras, it starts checking the camera at the top of the camera list, and if nothing is found, iterates down the list.\r\n *\r\n * @method Phaser.Input.InputPlugin#hitTestPointer\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer to check against the Game Objects.\r\n *\r\n * @return {Phaser.GameObjects.GameObject[]} An array of all the interactive Game Objects the Pointer was above.\r\n */\r\n hitTestPointer: function (pointer)\r\n {\r\n var cameras = this.cameras.getCamerasBelowPointer(pointer);\r\n\r\n for (var c = 0; c < cameras.length; c++)\r\n {\r\n var camera = cameras[c];\r\n\r\n // Get a list of all objects that can be seen by the camera below the pointer in the scene and store in 'over' array.\r\n // All objects in this array are input enabled, as checked by the hitTest method, so we don't need to check later on as well.\r\n var over = this.manager.hitTest(pointer, this._list, camera);\r\n\r\n // Filter out the drop zones\r\n for (var i = 0; i < over.length; i++)\r\n {\r\n var obj = over[i];\r\n\r\n if (obj.input.dropZone)\r\n {\r\n this._tempZones.push(obj);\r\n }\r\n }\r\n\r\n if (over.length > 0)\r\n {\r\n pointer.camera = camera;\r\n\r\n return over;\r\n }\r\n }\r\n\r\n // If we got this far then there were no Game Objects below the pointer, but it was still over\r\n // a camera, so set that the top-most one into the pointer\r\n\r\n pointer.camera = cameras[0];\r\n\r\n return [];\r\n },\r\n\r\n /**\r\n * An internal method that handles the Pointer down event.\r\n *\r\n * @method Phaser.Input.InputPlugin#processDownEvents\r\n * @private\r\n * @fires Phaser.Input.Events#GAMEOBJECT_POINTER_DOWN\r\n * @fires Phaser.Input.Events#GAMEOBJECT_DOWN\r\n * @fires Phaser.Input.Events#POINTER_DOWN\r\n * @fires Phaser.Input.Events#POINTER_DOWN_OUTSIDE\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer being tested.\r\n *\r\n * @return {number} The total number of objects interacted with.\r\n */\r\n processDownEvents: function (pointer)\r\n {\r\n var total = 0;\r\n var currentlyOver = this._temp;\r\n\r\n var _eventData = this._eventData;\r\n var _eventContainer = this._eventContainer;\r\n\r\n _eventData.cancelled = false;\r\n\r\n // Go through all objects the pointer was over and fire their events / callbacks\r\n for (var i = 0; i < currentlyOver.length; i++)\r\n {\r\n var gameObject = currentlyOver[i];\r\n\r\n if (!gameObject.input || !gameObject.input.enabled)\r\n {\r\n continue;\r\n }\r\n\r\n total++;\r\n\r\n // 1) GAMEOBJECT_POINTER_DOWN\r\n gameObject.emit(Events.GAMEOBJECT_POINTER_DOWN, pointer, gameObject.input.localX, gameObject.input.localY, _eventContainer);\r\n\r\n if (_eventData.cancelled || !this.isActive())\r\n {\r\n // They cancelled the whole event, it can't go any further\r\n break;\r\n }\r\n\r\n // Check that the game object wasn't input disabled or destroyed as a result of its input event\r\n if (gameObject.input && gameObject.input.enabled)\r\n {\r\n // 2) GAMEOBJECT_DOWN\r\n\r\n this.emit(Events.GAMEOBJECT_DOWN, pointer, gameObject, _eventContainer);\r\n\r\n if (_eventData.cancelled || !this.isActive())\r\n {\r\n // They cancelled the whole event, it can't go any further\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // If they pressed down outside the canvas, dispatch that event.\r\n if (!_eventData.cancelled && this.isActive())\r\n {\r\n if (pointer.downElement === this.manager.game.canvas)\r\n {\r\n // 3) POINTER_DOWN\r\n this.emit(Events.POINTER_DOWN, pointer, currentlyOver);\r\n }\r\n else\r\n {\r\n // 4) POINTER_DOWN_OUTSIDE\r\n this.emit(Events.POINTER_DOWN_OUTSIDE, pointer);\r\n }\r\n }\r\n\r\n return total;\r\n },\r\n\r\n /**\r\n * Returns the drag state of the given Pointer for this Input Plugin.\r\n *\r\n * The state will be one of the following:\r\n *\r\n * 0 = Not dragging anything\r\n * 1 = Primary button down and objects below, so collect a draglist\r\n * 2 = Pointer being checked if meets drag criteria\r\n * 3 = Pointer meets criteria, notify the draglist\r\n * 4 = Pointer actively dragging the draglist and has moved\r\n * 5 = Pointer actively dragging but has been released, notify draglist\r\n *\r\n * @method Phaser.Input.InputPlugin#getDragState\r\n * @since 3.16.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer to get the drag state for.\r\n *\r\n * @return {number} The drag state of the given Pointer.\r\n */\r\n getDragState: function (pointer)\r\n {\r\n return this._dragState[pointer.id];\r\n },\r\n\r\n /**\r\n * Sets the drag state of the given Pointer for this Input Plugin.\r\n *\r\n * The state must be one of the following values:\r\n *\r\n * 0 = Not dragging anything\r\n * 1 = Primary button down and objects below, so collect a draglist\r\n * 2 = Pointer being checked if meets drag criteria\r\n * 3 = Pointer meets criteria, notify the draglist\r\n * 4 = Pointer actively dragging the draglist and has moved\r\n * 5 = Pointer actively dragging but has been released, notify draglist\r\n *\r\n * @method Phaser.Input.InputPlugin#setDragState\r\n * @since 3.16.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer to set the drag state for.\r\n * @param {number} state - The drag state value. An integer between 0 and 5.\r\n */\r\n setDragState: function (pointer, state)\r\n {\r\n this._dragState[pointer.id] = state;\r\n },\r\n\r\n /**\r\n * Checks to see if a Pointer is ready to drag the objects below it, based on either a distance\r\n * or time threshold.\r\n *\r\n * @method Phaser.Input.InputPlugin#processDragThresholdEvent\r\n * @private\r\n * @since 3.18.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer to check the drag thresholds on.\r\n * @param {number} time - The current time.\r\n */\r\n processDragThresholdEvent: function (pointer, time)\r\n {\r\n var passed = false;\r\n var timeThreshold = this.dragTimeThreshold;\r\n var distanceThreshold = this.dragDistanceThreshold;\r\n\r\n if (distanceThreshold > 0 && DistanceBetween(pointer.x, pointer.y, pointer.downX, pointer.downY) >= distanceThreshold)\r\n {\r\n // It has moved far enough to be considered a drag\r\n passed = true;\r\n }\r\n else if (timeThreshold > 0 && (time >= pointer.downTime + timeThreshold))\r\n {\r\n // It has been held down long enough to be considered a drag\r\n passed = true;\r\n }\r\n\r\n if (passed)\r\n {\r\n this.setDragState(pointer, 3);\r\n\r\n return this.processDragStartList(pointer);\r\n }\r\n },\r\n\r\n /**\r\n * Processes the drag list for the given pointer and dispatches the start events for each object on it.\r\n *\r\n * @method Phaser.Input.InputPlugin#processDragStartList\r\n * @private\r\n * @fires Phaser.Input.Events#DRAG_START\r\n * @fires Phaser.Input.Events#GAMEOBJECT_DRAG_START\r\n * @since 3.18.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer to process the drag event on.\r\n *\r\n * @return {number} The number of items that DRAG_START was called on.\r\n */\r\n processDragStartList: function (pointer)\r\n {\r\n // 3 = Pointer meets criteria and is freshly down, notify the draglist\r\n if (this.getDragState(pointer) !== 3)\r\n {\r\n return 0;\r\n }\r\n\r\n var list = this._drag[pointer.id];\r\n\r\n if (list.length > 1)\r\n {\r\n list = list.slice(0);\r\n }\r\n\r\n for (var i = 0; i < list.length; i++)\r\n {\r\n var gameObject = list[i];\r\n\r\n var input = gameObject.input;\r\n\r\n input.dragState = 2;\r\n\r\n input.dragStartX = gameObject.x;\r\n input.dragStartY = gameObject.y;\r\n\r\n input.dragStartXGlobal = pointer.worldX;\r\n input.dragStartYGlobal = pointer.worldY;\r\n\r\n input.dragStartCamera = pointer.camera;\r\n\r\n input.dragX = input.dragStartXGlobal - input.dragStartX;\r\n input.dragY = input.dragStartYGlobal - input.dragStartY;\r\n\r\n gameObject.emit(Events.GAMEOBJECT_DRAG_START, pointer, input.dragX, input.dragY);\r\n\r\n this.emit(Events.DRAG_START, pointer, gameObject);\r\n }\r\n\r\n this.setDragState(pointer, 4);\r\n\r\n return list.length;\r\n },\r\n\r\n /**\r\n * Processes a 'drag down' event for the given pointer. Checks the pointer state, builds-up the drag list\r\n * and prepares them all for interaction.\r\n *\r\n * @method Phaser.Input.InputPlugin#processDragDownEvent\r\n * @private\r\n * @since 3.18.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer to process the drag event on.\r\n *\r\n * @return {number} The number of items that were collected on the drag list.\r\n */\r\n processDragDownEvent: function (pointer)\r\n {\r\n var currentlyOver = this._temp;\r\n\r\n if (this._draggable.length === 0 || currentlyOver.length === 0 || !pointer.primaryDown || this.getDragState(pointer) !== 0)\r\n {\r\n // There are no draggable items, no over items or the pointer isn't down, so let's not even bother going further\r\n return 0;\r\n }\r\n\r\n // 1 = Primary button down and objects below, so collect a draglist\r\n this.setDragState(pointer, 1);\r\n\r\n // Get draggable objects, sort them, pick the top (or all) and store them somewhere\r\n var draglist = [];\r\n\r\n for (var i = 0; i < currentlyOver.length; i++)\r\n {\r\n var gameObject = currentlyOver[i];\r\n\r\n if (gameObject.input.draggable && (gameObject.input.dragState === 0))\r\n {\r\n draglist.push(gameObject);\r\n }\r\n }\r\n\r\n if (draglist.length === 0)\r\n {\r\n this.setDragState(pointer, 0);\r\n\r\n return 0;\r\n }\r\n else if (draglist.length > 1)\r\n {\r\n this.sortGameObjects(draglist, pointer);\r\n\r\n if (this.topOnly)\r\n {\r\n draglist.splice(1);\r\n }\r\n }\r\n\r\n // draglist now contains all potential candidates for dragging\r\n this._drag[pointer.id] = draglist;\r\n\r\n if (this.dragDistanceThreshold === 0 && this.dragTimeThreshold === 0)\r\n {\r\n // No drag criteria, so snap immediately to mode 3\r\n this.setDragState(pointer, 3);\r\n\r\n return this.processDragStartList(pointer);\r\n }\r\n else\r\n {\r\n // Check the distance / time on the next event\r\n this.setDragState(pointer, 2);\r\n\r\n return 0;\r\n }\r\n },\r\n\r\n /**\r\n * Processes a 'drag move' event for the given pointer.\r\n *\r\n * @method Phaser.Input.InputPlugin#processDragMoveEvent\r\n * @private\r\n * @fires Phaser.Input.Events#DRAG_ENTER\r\n * @fires Phaser.Input.Events#DRAG\r\n * @fires Phaser.Input.Events#DRAG_LEAVE\r\n * @fires Phaser.Input.Events#DRAG_OVER\r\n * @fires Phaser.Input.Events#GAMEOBJECT_DRAG_ENTER\r\n * @fires Phaser.Input.Events#GAMEOBJECT_DRAG\r\n * @fires Phaser.Input.Events#GAMEOBJECT_DRAG_LEAVE\r\n * @fires Phaser.Input.Events#GAMEOBJECT_DRAG_OVER\r\n * @since 3.18.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer to process the drag event on.\r\n *\r\n * @return {number} The number of items that were updated by this drag event.\r\n */\r\n processDragMoveEvent: function (pointer)\r\n {\r\n // 2 = Pointer being checked if meets drag criteria\r\n if (this.getDragState(pointer) === 2)\r\n {\r\n this.processDragThresholdEvent(pointer, this.manager.game.loop.now);\r\n }\r\n\r\n if (this.getDragState(pointer) !== 4)\r\n {\r\n return 0;\r\n }\r\n\r\n // 4 = Pointer actively dragging the draglist and has moved\r\n var dropZones = this._tempZones;\r\n\r\n var list = this._drag[pointer.id];\r\n\r\n if (list.length > 1)\r\n {\r\n list = list.slice(0);\r\n }\r\n\r\n for (var i = 0; i < list.length; i++)\r\n {\r\n var gameObject = list[i];\r\n\r\n var input = gameObject.input;\r\n\r\n var target = input.target;\r\n\r\n // If this GO has a target then let's check it\r\n if (target)\r\n {\r\n var index = dropZones.indexOf(target);\r\n\r\n // Got a target, are we still over it?\r\n if (index === 0)\r\n {\r\n // We're still over it, and it's still the top of the display list, phew ...\r\n gameObject.emit(Events.GAMEOBJECT_DRAG_OVER, pointer, target);\r\n\r\n this.emit(Events.DRAG_OVER, pointer, gameObject, target);\r\n }\r\n else if (index > 0)\r\n {\r\n // Still over it but it's no longer top of the display list (targets must always be at the top)\r\n gameObject.emit(Events.GAMEOBJECT_DRAG_LEAVE, pointer, target);\r\n\r\n this.emit(Events.DRAG_LEAVE, pointer, gameObject, target);\r\n\r\n input.target = dropZones[0];\r\n\r\n target = input.target;\r\n\r\n gameObject.emit(Events.GAMEOBJECT_DRAG_ENTER, pointer, target);\r\n\r\n this.emit(Events.DRAG_ENTER, pointer, gameObject, target);\r\n }\r\n else\r\n {\r\n // Nope, we've moved on (or the target has!), leave the old target\r\n gameObject.emit(Events.GAMEOBJECT_DRAG_LEAVE, pointer, target);\r\n\r\n this.emit(Events.DRAG_LEAVE, pointer, gameObject, target);\r\n\r\n // Anything new to replace it?\r\n // Yup!\r\n if (dropZones[0])\r\n {\r\n input.target = dropZones[0];\r\n\r\n target = input.target;\r\n\r\n gameObject.emit(Events.GAMEOBJECT_DRAG_ENTER, pointer, target);\r\n\r\n this.emit(Events.DRAG_ENTER, pointer, gameObject, target);\r\n }\r\n else\r\n {\r\n // Nope\r\n input.target = null;\r\n }\r\n }\r\n }\r\n else if (!target && dropZones[0])\r\n {\r\n input.target = dropZones[0];\r\n\r\n target = input.target;\r\n\r\n gameObject.emit(Events.GAMEOBJECT_DRAG_ENTER, pointer, target);\r\n\r\n this.emit(Events.DRAG_ENTER, pointer, gameObject, target);\r\n }\r\n\r\n var dragX;\r\n var dragY;\r\n\r\n var dragWorldXY = pointer.positionToCamera(input.dragStartCamera);\r\n\r\n if (!gameObject.parentContainer)\r\n {\r\n dragX = dragWorldXY.x - input.dragX;\r\n dragY = dragWorldXY.y - input.dragY;\r\n }\r\n else\r\n {\r\n var dx = dragWorldXY.x - input.dragStartXGlobal;\r\n var dy = dragWorldXY.y - input.dragStartYGlobal;\r\n\r\n var rotation = gameObject.getParentRotation();\r\n\r\n var dxRotated = dx * Math.cos(rotation) + dy * Math.sin(rotation);\r\n var dyRotated = dy * Math.cos(rotation) - dx * Math.sin(rotation);\r\n\r\n dxRotated *= (1 / gameObject.parentContainer.scaleX);\r\n dyRotated *= (1 / gameObject.parentContainer.scaleY);\r\n\r\n dragX = dxRotated + input.dragStartX;\r\n dragY = dyRotated + input.dragStartY;\r\n }\r\n\r\n gameObject.emit(Events.GAMEOBJECT_DRAG, pointer, dragX, dragY);\r\n\r\n this.emit(Events.DRAG, pointer, gameObject, dragX, dragY);\r\n }\r\n\r\n return list.length;\r\n },\r\n\r\n /**\r\n * Processes a 'drag down' event for the given pointer. Checks the pointer state, builds-up the drag list\r\n * and prepares them all for interaction.\r\n *\r\n * @method Phaser.Input.InputPlugin#processDragUpEvent\r\n * @fires Phaser.Input.Events#DRAG_END\r\n * @fires Phaser.Input.Events#DROP\r\n * @fires Phaser.Input.Events#GAMEOBJECT_DRAG_END\r\n * @fires Phaser.Input.Events#GAMEOBJECT_DROP\r\n * @private\r\n * @since 3.18.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer to process the drag event on.\r\n *\r\n * @return {number} The number of items that were updated by this drag event.\r\n */\r\n processDragUpEvent: function (pointer)\r\n {\r\n // 5 = Pointer was actively dragging but has been released, notify draglist\r\n var list = this._drag[pointer.id];\r\n\r\n if (list.length > 1)\r\n {\r\n list = list.slice(0);\r\n }\r\n\r\n for (var i = 0; i < list.length; i++)\r\n {\r\n var gameObject = list[i];\r\n\r\n var input = gameObject.input;\r\n\r\n if (input && input.dragState === 2)\r\n {\r\n input.dragState = 0;\r\n\r\n input.dragX = input.localX - gameObject.displayOriginX;\r\n input.dragY = input.localY - gameObject.displayOriginY;\r\n\r\n input.dragStartCamera = null;\r\n\r\n var dropped = false;\r\n\r\n var target = input.target;\r\n\r\n if (target)\r\n {\r\n gameObject.emit(Events.GAMEOBJECT_DROP, pointer, target);\r\n\r\n this.emit(Events.DROP, pointer, gameObject, target);\r\n\r\n input.target = null;\r\n\r\n dropped = true;\r\n }\r\n\r\n // And finally the dragend event\r\n\r\n if (gameObject.input && gameObject.input.enabled)\r\n {\r\n gameObject.emit(Events.GAMEOBJECT_DRAG_END, pointer, input.dragX, input.dragY, dropped);\r\n\r\n this.emit(Events.DRAG_END, pointer, gameObject, dropped);\r\n }\r\n }\r\n }\r\n\r\n this.setDragState(pointer, 0);\r\n\r\n list.splice(0);\r\n\r\n return 0;\r\n },\r\n\r\n /**\r\n * An internal method that handles the Pointer movement event.\r\n *\r\n * @method Phaser.Input.InputPlugin#processMoveEvents\r\n * @private\r\n * @fires Phaser.Input.Events#GAMEOBJECT_POINTER_MOVE\r\n * @fires Phaser.Input.Events#GAMEOBJECT_MOVE\r\n * @fires Phaser.Input.Events#POINTER_MOVE\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The pointer to check for events against.\r\n *\r\n * @return {number} The total number of objects interacted with.\r\n */\r\n processMoveEvents: function (pointer)\r\n {\r\n var total = 0;\r\n var currentlyOver = this._temp;\r\n\r\n var _eventData = this._eventData;\r\n var _eventContainer = this._eventContainer;\r\n\r\n _eventData.cancelled = false;\r\n\r\n // Go through all objects the pointer was over and fire their events / callbacks\r\n for (var i = 0; i < currentlyOver.length; i++)\r\n {\r\n var gameObject = currentlyOver[i];\r\n\r\n if (!gameObject.input || !gameObject.input.enabled)\r\n {\r\n continue;\r\n }\r\n\r\n total++;\r\n\r\n gameObject.emit(Events.GAMEOBJECT_POINTER_MOVE, pointer, gameObject.input.localX, gameObject.input.localY, _eventContainer);\r\n\r\n if (_eventData.cancelled || !this.isActive())\r\n {\r\n // They cancelled the whole event, it can't go any further\r\n break;\r\n }\r\n\r\n // Check that the game object wasn't input disabled or destroyed as a result of its input event\r\n if (gameObject.input && gameObject.input.enabled)\r\n {\r\n this.emit(Events.GAMEOBJECT_MOVE, pointer, gameObject, _eventContainer);\r\n\r\n if (_eventData.cancelled || !this.isActive())\r\n {\r\n // They cancelled the whole event, it can't go any further\r\n break;\r\n }\r\n\r\n if (this.topOnly)\r\n {\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if (!_eventData.cancelled && this.isActive())\r\n {\r\n this.emit(Events.POINTER_MOVE, pointer, currentlyOver);\r\n }\r\n\r\n return total;\r\n },\r\n\r\n /**\r\n * An internal method that handles a mouse wheel event.\r\n *\r\n * @method Phaser.Input.InputPlugin#processWheelEvent\r\n * @private\r\n * @fires Phaser.Input.Events#GAMEOBJECT_POINTER_WHEEL\r\n * @fires Phaser.Input.Events#GAMEOBJECT_WHEEL\r\n * @fires Phaser.Input.Events#POINTER_WHEEL\r\n * @since 3.18.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The pointer to check for events against.\r\n *\r\n * @return {number} The total number of objects interacted with.\r\n */\r\n processWheelEvent: function (pointer)\r\n {\r\n var total = 0;\r\n var currentlyOver = this._temp;\r\n\r\n var _eventData = this._eventData;\r\n var _eventContainer = this._eventContainer;\r\n\r\n _eventData.cancelled = false;\r\n\r\n var dx = pointer.deltaX;\r\n var dy = pointer.deltaY;\r\n var dz = pointer.deltaZ;\r\n\r\n // Go through all objects the pointer was over and fire their events / callbacks\r\n for (var i = 0; i < currentlyOver.length; i++)\r\n {\r\n var gameObject = currentlyOver[i];\r\n\r\n if (!gameObject.input || !gameObject.input.enabled)\r\n {\r\n continue;\r\n }\r\n\r\n total++;\r\n\r\n gameObject.emit(Events.GAMEOBJECT_POINTER_WHEEL, pointer, dx, dy, dz, _eventContainer);\r\n\r\n if (_eventData.cancelled || !this.isActive())\r\n {\r\n // They cancelled the whole event, it can't go any further\r\n break;\r\n }\r\n\r\n // Check that the game object wasn't input disabled or destroyed as a result of its input event\r\n if (gameObject.input && gameObject.input.enabled)\r\n {\r\n this.emit(Events.GAMEOBJECT_WHEEL, pointer, gameObject, dx, dy, dz, _eventContainer);\r\n\r\n if (_eventData.cancelled || !this.isActive())\r\n {\r\n // They cancelled the whole event, it can't go any further\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if (!_eventData.cancelled && this.isActive())\r\n {\r\n this.emit(Events.POINTER_WHEEL, pointer, currentlyOver, dx, dy, dz);\r\n }\r\n\r\n return total;\r\n },\r\n\r\n /**\r\n * An internal method that handles the Pointer over events.\r\n * This is called when a touch input hits the canvas, having previously been off of it.\r\n *\r\n * @method Phaser.Input.InputPlugin#processOverEvents\r\n * @private\r\n * @fires Phaser.Input.Events#GAMEOBJECT_POINTER_OVER\r\n * @fires Phaser.Input.Events#GAMEOBJECT_OVER\r\n * @fires Phaser.Input.Events#POINTER_OVER\r\n * @since 3.18.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The pointer to check for events against.\r\n *\r\n * @return {number} The total number of objects interacted with.\r\n */\r\n processOverEvents: function (pointer)\r\n {\r\n var currentlyOver = this._temp;\r\n\r\n var totalInteracted = 0;\r\n\r\n var total = currentlyOver.length;\r\n\r\n var justOver = [];\r\n\r\n if (total > 0)\r\n {\r\n var manager = this.manager;\r\n\r\n var _eventData = this._eventData;\r\n var _eventContainer = this._eventContainer;\r\n\r\n _eventData.cancelled = false;\r\n\r\n for (var i = 0; i < total; i++)\r\n {\r\n var gameObject = currentlyOver[i];\r\n\r\n if (!gameObject.input || !gameObject.input.enabled)\r\n {\r\n continue;\r\n }\r\n\r\n justOver.push(gameObject);\r\n\r\n manager.setCursor(gameObject.input);\r\n\r\n gameObject.emit(Events.GAMEOBJECT_POINTER_OVER, pointer, gameObject.input.localX, gameObject.input.localY, _eventContainer);\r\n\r\n totalInteracted++;\r\n\r\n if (_eventData.cancelled || !this.isActive())\r\n {\r\n // They cancelled the whole event, it can't go any further\r\n break;\r\n }\r\n\r\n // Check that the game object wasn't input disabled or destroyed as a result of its input event\r\n if (gameObject.input && gameObject.input.enabled)\r\n {\r\n this.emit(Events.GAMEOBJECT_OVER, pointer, gameObject, _eventContainer);\r\n\r\n if (_eventData.cancelled || !this.isActive())\r\n {\r\n // They cancelled the whole event, it can't go any further\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if (!_eventData.cancelled && this.isActive())\r\n {\r\n this.emit(Events.POINTER_OVER, pointer, justOver);\r\n }\r\n }\r\n\r\n // Then sort it into display list order\r\n this._over[pointer.id] = justOver;\r\n\r\n return totalInteracted;\r\n },\r\n\r\n /**\r\n * An internal method that handles the Pointer out events.\r\n * This is called when a touch input leaves the canvas, as it can never be 'over' in this case.\r\n *\r\n * @method Phaser.Input.InputPlugin#processOutEvents\r\n * @private\r\n * @fires Phaser.Input.Events#GAMEOBJECT_POINTER_OUT\r\n * @fires Phaser.Input.Events#GAMEOBJECT_OUT\r\n * @fires Phaser.Input.Events#POINTER_OUT\r\n * @since 3.18.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The pointer to check for events against.\r\n *\r\n * @return {number} The total number of objects interacted with.\r\n */\r\n processOutEvents: function (pointer)\r\n {\r\n var previouslyOver = this._over[pointer.id];\r\n\r\n var totalInteracted = 0;\r\n\r\n var total = previouslyOver.length;\r\n\r\n if (total > 0)\r\n {\r\n var manager = this.manager;\r\n\r\n var _eventData = this._eventData;\r\n var _eventContainer = this._eventContainer;\r\n\r\n _eventData.cancelled = false;\r\n\r\n this.sortGameObjects(previouslyOver, pointer);\r\n\r\n for (var i = 0; i < total; i++)\r\n {\r\n var gameObject = previouslyOver[i];\r\n\r\n // Call onOut for everything in the previouslyOver array\r\n gameObject = previouslyOver[i];\r\n\r\n if (!gameObject.input || !gameObject.input.enabled)\r\n {\r\n continue;\r\n }\r\n\r\n manager.resetCursor(gameObject.input);\r\n\r\n gameObject.emit(Events.GAMEOBJECT_POINTER_OUT, pointer, _eventContainer);\r\n\r\n totalInteracted++;\r\n\r\n if (_eventData.cancelled || !this.isActive())\r\n {\r\n // They cancelled the whole event, it can't go any further\r\n break;\r\n }\r\n\r\n if (gameObject.input && gameObject.input.enabled)\r\n {\r\n this.emit(Events.GAMEOBJECT_OUT, pointer, gameObject, _eventContainer);\r\n\r\n if (_eventData.cancelled || !this.isActive())\r\n {\r\n // They cancelled the whole event, it can't go any further\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if (!_eventData.cancelled && this.isActive())\r\n {\r\n this.emit(Events.POINTER_OUT, pointer, previouslyOver);\r\n }\r\n\r\n this._over[pointer.id] = [];\r\n }\r\n\r\n return totalInteracted;\r\n },\r\n\r\n /**\r\n * An internal method that handles the Pointer over and out events.\r\n *\r\n * @method Phaser.Input.InputPlugin#processOverOutEvents\r\n * @private\r\n * @fires Phaser.Input.Events#GAMEOBJECT_POINTER_OVER\r\n * @fires Phaser.Input.Events#GAMEOBJECT_OVER\r\n * @fires Phaser.Input.Events#POINTER_OVER\r\n * @fires Phaser.Input.Events#GAMEOBJECT_POINTER_OUT\r\n * @fires Phaser.Input.Events#GAMEOBJECT_OUT\r\n * @fires Phaser.Input.Events#POINTER_OUT\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The pointer to check for events against.\r\n *\r\n * @return {number} The total number of objects interacted with.\r\n */\r\n processOverOutEvents: function (pointer)\r\n {\r\n var currentlyOver = this._temp;\r\n\r\n var i;\r\n var gameObject;\r\n var justOut = [];\r\n var justOver = [];\r\n var stillOver = [];\r\n var previouslyOver = this._over[pointer.id];\r\n var currentlyDragging = this._drag[pointer.id];\r\n\r\n var manager = this.manager;\r\n\r\n // Go through all objects the pointer was previously over, and see if it still is.\r\n // Splits the previouslyOver array into two parts: justOut and stillOver\r\n\r\n for (i = 0; i < previouslyOver.length; i++)\r\n {\r\n gameObject = previouslyOver[i];\r\n\r\n if (currentlyOver.indexOf(gameObject) === -1 && currentlyDragging.indexOf(gameObject) === -1)\r\n {\r\n // Not in the currentlyOver array, so must be outside of this object now\r\n justOut.push(gameObject);\r\n }\r\n else\r\n {\r\n // In the currentlyOver array\r\n stillOver.push(gameObject);\r\n }\r\n }\r\n\r\n // Go through all objects the pointer is currently over (the hit test results)\r\n // and if not in the previouslyOver array we know it's a new entry, so add to justOver\r\n for (i = 0; i < currentlyOver.length; i++)\r\n {\r\n gameObject = currentlyOver[i];\r\n\r\n // Is this newly over?\r\n\r\n if (previouslyOver.indexOf(gameObject) === -1)\r\n {\r\n justOver.push(gameObject);\r\n }\r\n }\r\n\r\n // By this point the arrays are filled, so now we can process what happened...\r\n\r\n // Process the Just Out objects\r\n var total = justOut.length;\r\n\r\n var totalInteracted = 0;\r\n\r\n var _eventData = this._eventData;\r\n var _eventContainer = this._eventContainer;\r\n\r\n _eventData.cancelled = false;\r\n\r\n if (total > 0)\r\n {\r\n this.sortGameObjects(justOut, pointer);\r\n\r\n // Call onOut for everything in the justOut array\r\n for (i = 0; i < total; i++)\r\n {\r\n gameObject = justOut[i];\r\n\r\n if (!gameObject.input || !gameObject.input.enabled)\r\n {\r\n continue;\r\n }\r\n\r\n // Reset cursor before we emit the event, in case they want to change it during the event\r\n manager.resetCursor(gameObject.input);\r\n\r\n gameObject.emit(Events.GAMEOBJECT_POINTER_OUT, pointer, _eventContainer);\r\n\r\n totalInteracted++;\r\n\r\n if (_eventData.cancelled || !this.isActive())\r\n {\r\n // They cancelled the whole event, it can't go any further\r\n break;\r\n }\r\n\r\n // Check that the game object wasn't input disabled or destroyed as a result of its input event\r\n if (gameObject.input && gameObject.input.enabled)\r\n {\r\n this.emit(Events.GAMEOBJECT_OUT, pointer, gameObject, _eventContainer);\r\n\r\n if (_eventData.cancelled || !this.isActive())\r\n {\r\n // They cancelled the whole event, it can't go any further\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if (!_eventData.cancelled || this.isActive())\r\n {\r\n this.emit(Events.POINTER_OUT, pointer, justOut);\r\n }\r\n }\r\n\r\n // Process the Just Over objects\r\n total = justOver.length;\r\n\r\n _eventData.cancelled = false;\r\n\r\n if (total > 0)\r\n {\r\n this.sortGameObjects(justOver, pointer);\r\n\r\n // Call onOver for everything in the justOver array\r\n for (i = 0; i < total; i++)\r\n {\r\n gameObject = justOver[i];\r\n\r\n if (!gameObject.input || !gameObject.input.enabled)\r\n {\r\n continue;\r\n }\r\n\r\n // Set cursor before we emit the event, in case they want to change it during the event\r\n manager.setCursor(gameObject.input);\r\n\r\n gameObject.emit(Events.GAMEOBJECT_POINTER_OVER, pointer, gameObject.input.localX, gameObject.input.localY, _eventContainer);\r\n\r\n totalInteracted++;\r\n\r\n if (_eventData.cancelled || !this.isActive())\r\n {\r\n // They cancelled the whole event, it can't go any further\r\n break;\r\n }\r\n\r\n // Check that the game object wasn't input disabled or destroyed as a result of its input event\r\n if (gameObject.input && gameObject.input.enabled)\r\n {\r\n this.emit(Events.GAMEOBJECT_OVER, pointer, gameObject, _eventContainer);\r\n\r\n if (_eventData.cancelled || !this.isActive())\r\n {\r\n // They cancelled the whole event, it can't go any further\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if (!_eventData.cancelled && this.isActive())\r\n {\r\n this.emit(Events.POINTER_OVER, pointer, justOver);\r\n }\r\n }\r\n\r\n // Add the contents of justOver to the previously over array\r\n previouslyOver = stillOver.concat(justOver);\r\n\r\n // Then sort it into display list order\r\n this._over[pointer.id] = this.sortGameObjects(previouslyOver, pointer);\r\n\r\n return totalInteracted;\r\n },\r\n\r\n /**\r\n * An internal method that handles the Pointer up events.\r\n *\r\n * @method Phaser.Input.InputPlugin#processUpEvents\r\n * @private\r\n * @fires Phaser.Input.Events#GAMEOBJECT_POINTER_UP\r\n * @fires Phaser.Input.Events#GAMEOBJECT_UP\r\n * @fires Phaser.Input.Events#POINTER_UP\r\n * @fires Phaser.Input.Events#POINTER_UP_OUTSIDE\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The pointer to check for events against.\r\n *\r\n * @return {number} The total number of objects interacted with.\r\n */\r\n processUpEvents: function (pointer)\r\n {\r\n var currentlyOver = this._temp;\r\n\r\n var _eventData = this._eventData;\r\n var _eventContainer = this._eventContainer;\r\n\r\n _eventData.cancelled = false;\r\n\r\n // Go through all objects the pointer was over and fire their events / callbacks\r\n for (var i = 0; i < currentlyOver.length; i++)\r\n {\r\n var gameObject = currentlyOver[i];\r\n\r\n if (!gameObject.input || !gameObject.input.enabled)\r\n {\r\n continue;\r\n }\r\n\r\n // 1) GAMEOBJECT_POINTER_UP\r\n gameObject.emit(Events.GAMEOBJECT_POINTER_UP, pointer, gameObject.input.localX, gameObject.input.localY, _eventContainer);\r\n\r\n if (_eventData.cancelled || !this.isActive())\r\n {\r\n // They cancelled the whole event, it can't go any further\r\n break;\r\n }\r\n\r\n // Check that the game object wasn't input disabled or destroyed as a result of its input event\r\n if (gameObject.input && gameObject.input.enabled)\r\n {\r\n // 2) GAMEOBJECT_UP\r\n\r\n this.emit(Events.GAMEOBJECT_UP, pointer, gameObject, _eventContainer);\r\n\r\n if (_eventData.cancelled || !this.isActive())\r\n {\r\n // They cancelled the whole event, it can't go any further\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // If they released outside the canvas, but pressed down inside it, we'll still dispatch the event.\r\n if (!_eventData.cancelled && this.isActive())\r\n {\r\n if (pointer.upElement === this.manager.game.canvas)\r\n {\r\n this.emit(Events.POINTER_UP, pointer, currentlyOver);\r\n }\r\n else\r\n {\r\n this.emit(Events.POINTER_UP_OUTSIDE, pointer);\r\n }\r\n }\r\n\r\n return currentlyOver.length;\r\n },\r\n\r\n /**\r\n * This method will force the given Game Object into the 'down' input state.\r\n * \r\n * This will check to see if the Game Object is enabled for input, and if so,\r\n * it will emit the `GAMEOBJECT_POINTER_DOWN` event for it. If that doesn't change\r\n * the input state, it will then emit the `GAMEOBJECT_DOWN` event.\r\n * \r\n * The Game Object is not checked against the Pointer to see if it can enter this state,\r\n * that is up to you to do before calling this method.\r\n *\r\n * @method Phaser.Input.InputPlugin#forceDownState\r\n * @fires Phaser.Input.Events#GAMEOBJECT_POINTER_DOWN\r\n * @fires Phaser.Input.Events#GAMEOBJECT_DOWN\r\n * @since 3.85.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The pointer to use when setting the state.\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to have its state set.\r\n */\r\n forceDownState: function (pointer, gameObject)\r\n {\r\n this.forceState(pointer, gameObject, Events.GAMEOBJECT_POINTER_DOWN, Events.GAMEOBJECT_DOWN, false);\r\n },\r\n\r\n /**\r\n * This method will force the given Game Object into the 'up' input state.\r\n * \r\n * This will check to see if the Game Object is enabled for input, and if so,\r\n * it will emit the `GAMEOBJECT_POINTER_UP` event for it. If that doesn't change\r\n * the input state, it will then emit the `GAMEOBJECT_UP` event.\r\n * \r\n * The Game Object is not checked against the Pointer to see if it can enter this state,\r\n * that is up to you to do before calling this method.\r\n *\r\n * @method Phaser.Input.InputPlugin#forceUpState\r\n * @fires Phaser.Input.Events#GAMEOBJECT_POINTER_UP\r\n * @fires Phaser.Input.Events#GAMEOBJECT_UP\r\n * @since 3.85.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The pointer to use when setting the state.\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to have its state set.\r\n */\r\n forceUpState: function (pointer, gameObject)\r\n {\r\n this.forceState(pointer, gameObject, Events.GAMEOBJECT_POINTER_UP, Events.GAMEOBJECT_UP, false);\r\n },\r\n\r\n /**\r\n * This method will force the given Game Object into the 'over' input state.\r\n * \r\n * This will check to see if the Game Object is enabled for input, and if so,\r\n * it will emit the `GAMEOBJECT_POINTER_OVER` event for it. If that doesn't change\r\n * the input state, it will then emit the `GAMEOBJECT_OVER` event.\r\n * \r\n * The Game Object is not checked against the Pointer to see if it can enter this state,\r\n * that is up to you to do before calling this method.\r\n *\r\n * @method Phaser.Input.InputPlugin#forceOverState\r\n * @fires Phaser.Input.Events#GAMEOBJECT_POINTER_OVER\r\n * @fires Phaser.Input.Events#GAMEOBJECT_OVER\r\n * @since 3.85.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The pointer to use when setting the state.\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to have its state set.\r\n */\r\n forceOverState: function (pointer, gameObject)\r\n {\r\n this.forceState(pointer, gameObject, Events.GAMEOBJECT_POINTER_OVER, Events.GAMEOBJECT_OVER, true);\r\n },\r\n\r\n /**\r\n * This method will force the given Game Object into the 'out' input state.\r\n * \r\n * This will check to see if the Game Object is enabled for input, and if so,\r\n * it will emit the `GAMEOBJECT_POINTER_OUT` event for it. If that doesn't change\r\n * the input state, it will then emit the `GAMEOBJECT_OUT` event.\r\n * \r\n * The Game Object is not checked against the Pointer to see if it can enter this state,\r\n * that is up to you to do before calling this method.\r\n *\r\n * @method Phaser.Input.InputPlugin#forceOutState\r\n * @fires Phaser.Input.Events#GAMEOBJECT_POINTER_OUT\r\n * @fires Phaser.Input.Events#GAMEOBJECT_OUT\r\n * @since 3.85.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The pointer to use when setting the state.\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to have its state set.\r\n */\r\n forceOutState: function (pointer, gameObject)\r\n {\r\n this.forceState(pointer, gameObject, Events.GAMEOBJECT_POINTER_OUT, Events.GAMEOBJECT_OUT, false);\r\n },\r\n\r\n /**\r\n * This method will force the given Game Object into the given input state.\r\n * \r\n * @method Phaser.Input.InputPlugin#forceState\r\n * @since 3.85.0\r\n * \r\n * @param {Phaser.Input.Pointer} pointer - The pointer to use when setting the state.\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to have its state set.\r\n * @param {string} gameObjectEvent - The event to emit on the Game Object.\r\n * @param {string} inputPluginEvent - The event to emit on the Input Plugin.\r\n * @param {boolean} [setCursor=false] - Should the cursor be set to the Game Object's cursor?\r\n */\r\n forceState: function (pointer, gameObject, gameObjectEvent, inputPluginEvent, setCursor)\r\n {\r\n var _eventData = this._eventData;\r\n var _eventContainer = this._eventContainer;\r\n\r\n _eventData.cancelled = false;\r\n\r\n if (gameObject.input && gameObject.input.enabled)\r\n {\r\n gameObject.emit(gameObjectEvent, pointer, gameObject.input.localX, gameObject.input.localY, _eventContainer);\r\n\r\n if (setCursor)\r\n {\r\n this.setCursor(gameObject.input);\r\n }\r\n\r\n if (!_eventData.cancelled && this.isActive() && gameObject.input && gameObject.input.enabled)\r\n {\r\n this.emit(inputPluginEvent, pointer, gameObject, _eventContainer);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Queues a Game Object for insertion into this Input Plugin on the next update.\r\n *\r\n * @method Phaser.Input.InputPlugin#queueForInsertion\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} child - The Game Object to add.\r\n *\r\n * @return {this} This InputPlugin object.\r\n */\r\n queueForInsertion: function (child)\r\n {\r\n if (this._pendingInsertion.indexOf(child) === -1 && this._list.indexOf(child) === -1)\r\n {\r\n this._pendingInsertion.push(child);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Queues a Game Object for removal from this Input Plugin on the next update.\r\n *\r\n * @method Phaser.Input.InputPlugin#queueForRemoval\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} child - The Game Object to remove.\r\n *\r\n * @return {this} This InputPlugin object.\r\n */\r\n queueForRemoval: function (child)\r\n {\r\n this._pendingRemoval.push(child);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the draggable state of the given array of Game Objects.\r\n *\r\n * They can either be set to be draggable, or can have their draggable state removed by passing `false`.\r\n *\r\n * A Game Object will not fire drag events unless it has been specifically enabled for drag.\r\n *\r\n * @method Phaser.Input.InputPlugin#setDraggable\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} gameObjects - An array of Game Objects to change the draggable state on.\r\n * @param {boolean} [value=true] - Set to `true` if the Game Objects should be made draggable, `false` if they should be unset.\r\n *\r\n * @return {this} This InputPlugin object.\r\n */\r\n setDraggable: function (gameObjects, value)\r\n {\r\n if (value === undefined) { value = true; }\r\n\r\n if (!Array.isArray(gameObjects))\r\n {\r\n gameObjects = [ gameObjects ];\r\n }\r\n\r\n for (var i = 0; i < gameObjects.length; i++)\r\n {\r\n var gameObject = gameObjects[i];\r\n\r\n gameObject.input.draggable = value;\r\n\r\n var index = this._draggable.indexOf(gameObject);\r\n\r\n if (value && index === -1)\r\n {\r\n this._draggable.push(gameObject);\r\n }\r\n else if (!value && index > -1)\r\n {\r\n this._draggable.splice(index, 1);\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Creates a function that can be passed to `setInteractive`, `enable` or `setHitArea` that will handle\r\n * pixel-perfect input detection on an Image or Sprite based Game Object, or any custom class that extends them.\r\n *\r\n * The following will create a sprite that is clickable on any pixel that has an alpha value >= 1.\r\n *\r\n * ```javascript\r\n * this.add.sprite(x, y, key).setInteractive(this.input.makePixelPerfect());\r\n * ```\r\n *\r\n * The following will create a sprite that is clickable on any pixel that has an alpha value >= 150.\r\n *\r\n * ```javascript\r\n * this.add.sprite(x, y, key).setInteractive(this.input.makePixelPerfect(150));\r\n * ```\r\n *\r\n * Once you have made an Interactive Object pixel perfect it impacts all input related events for it: down, up,\r\n * dragstart, drag, etc.\r\n *\r\n * As a pointer interacts with the Game Object it will constantly poll the texture, extracting a single pixel from\r\n * the given coordinates and checking its color values. This is an expensive process, so should only be enabled on\r\n * Game Objects that really need it.\r\n *\r\n * You cannot make non-texture based Game Objects pixel perfect. So this will not work on Graphics, BitmapText,\r\n * Render Textures, Text, Tilemaps, Containers or Particles.\r\n *\r\n * @method Phaser.Input.InputPlugin#makePixelPerfect\r\n * @since 3.10.0\r\n *\r\n * @param {number} [alphaTolerance=1] - The alpha level that the pixel should be above to be included as a successful interaction.\r\n *\r\n * @return {function} A Pixel Perfect Handler for use as a hitArea shape callback.\r\n */\r\n makePixelPerfect: function (alphaTolerance)\r\n {\r\n if (alphaTolerance === undefined) { alphaTolerance = 1; }\r\n\r\n var textureManager = this.systems.textures;\r\n\r\n return CreatePixelPerfectHandler(textureManager, alphaTolerance);\r\n },\r\n\r\n /**\r\n * Sets the hit area for the given array of Game Objects.\r\n *\r\n * A hit area is typically one of the geometric shapes Phaser provides, such as a `Phaser.Geom.Rectangle`\r\n * or `Phaser.Geom.Circle`. However, it can be any object as long as it works with the provided callback.\r\n *\r\n * If no hit area is provided a Rectangle is created based on the size of the Game Object, if possible\r\n * to calculate.\r\n *\r\n * The hit area callback is the function that takes an `x` and `y` coordinate and returns a boolean if\r\n * those values fall within the area of the shape or not. All of the Phaser geometry objects provide this,\r\n * such as `Phaser.Geom.Rectangle.Contains`.\r\n * \r\n * A hit area callback can be supplied to the `hitArea` parameter without using the `hitAreaCallback` parameter.\r\n *\r\n * @method Phaser.Input.InputPlugin#setHitArea\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} gameObjects - An array of Game Objects to set the hit area on.\r\n * @param {(Phaser.Types.Input.InputConfiguration|Phaser.Types.Input.HitAreaCallback|any)} [hitArea] - Either an input configuration object, a geometric shape that defines the hit area or a hit area callback. If not specified a Rectangle hit area will be used.\r\n * @param {Phaser.Types.Input.HitAreaCallback} [hitAreaCallback] - The 'contains' function to invoke to check if the pointer is within the hit area.\r\n *\r\n * @return {this} This InputPlugin object.\r\n */\r\n setHitArea: function (gameObjects, hitArea, hitAreaCallback)\r\n {\r\n if (hitArea === undefined)\r\n {\r\n return this.setHitAreaFromTexture(gameObjects);\r\n }\r\n\r\n if (!Array.isArray(gameObjects))\r\n {\r\n gameObjects = [ gameObjects ];\r\n }\r\n\r\n var draggable = false;\r\n var dropZone = false;\r\n var cursor = false;\r\n var useHandCursor = false;\r\n var pixelPerfect = false;\r\n var customHitArea = true;\r\n\r\n // Config object?\r\n if (IsPlainObject(hitArea) && Object.keys(hitArea).length)\r\n {\r\n var config = hitArea;\r\n\r\n // Check if any supplied Game Object is a Mesh based Game Object\r\n var isMesh = gameObjects.some(function (gameObject)\r\n {\r\n return gameObject.hasOwnProperty('faces');\r\n });\r\n\r\n if (!isMesh)\r\n {\r\n hitArea = GetFastValue(config, 'hitArea', null);\r\n hitAreaCallback = GetFastValue(config, 'hitAreaCallback', null);\r\n\r\n pixelPerfect = GetFastValue(config, 'pixelPerfect', false);\r\n var alphaTolerance = GetFastValue(config, 'alphaTolerance', 1);\r\n\r\n if (pixelPerfect)\r\n {\r\n hitArea = {};\r\n hitAreaCallback = this.makePixelPerfect(alphaTolerance);\r\n }\r\n }\r\n\r\n draggable = GetFastValue(config, 'draggable', false);\r\n dropZone = GetFastValue(config, 'dropZone', false);\r\n cursor = GetFastValue(config, 'cursor', false);\r\n useHandCursor = GetFastValue(config, 'useHandCursor', false);\r\n\r\n // Still no hitArea or callback?\r\n if (!hitArea || !hitAreaCallback)\r\n {\r\n this.setHitAreaFromTexture(gameObjects);\r\n customHitArea = false;\r\n }\r\n }\r\n else if (typeof hitArea === 'function' && !hitAreaCallback)\r\n {\r\n hitAreaCallback = hitArea;\r\n hitArea = {};\r\n }\r\n\r\n for (var i = 0; i < gameObjects.length; i++)\r\n {\r\n var gameObject = gameObjects[i];\r\n\r\n if (pixelPerfect && gameObject.type === 'Container')\r\n {\r\n console.warn('Cannot pixelPerfect test a Container. Use a custom callback.');\r\n continue;\r\n }\r\n\r\n var io = (!gameObject.input) ? CreateInteractiveObject(gameObject, hitArea, hitAreaCallback) : gameObject.input;\r\n\r\n io.customHitArea = customHitArea;\r\n io.dropZone = dropZone;\r\n io.cursor = (useHandCursor) ? 'pointer' : cursor;\r\n\r\n gameObject.input = io;\r\n\r\n if (draggable)\r\n {\r\n this.setDraggable(gameObject);\r\n }\r\n\r\n this.queueForInsertion(gameObject);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the hit area for an array of Game Objects to be a `Phaser.Geom.Circle` shape, using\r\n * the given coordinates and radius to control its position and size.\r\n *\r\n * @method Phaser.Input.InputPlugin#setHitAreaCircle\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} gameObjects - An array of Game Objects to set as having a circle hit area.\r\n * @param {number} x - The center of the circle.\r\n * @param {number} y - The center of the circle.\r\n * @param {number} radius - The radius of the circle.\r\n * @param {Phaser.Types.Input.HitAreaCallback} [callback] - The hit area callback. If undefined it uses Circle.Contains.\r\n *\r\n * @return {this} This InputPlugin object.\r\n */\r\n setHitAreaCircle: function (gameObjects, x, y, radius, callback)\r\n {\r\n if (callback === undefined) { callback = CircleContains; }\r\n\r\n var shape = new Circle(x, y, radius);\r\n\r\n return this.setHitArea(gameObjects, shape, callback);\r\n },\r\n\r\n /**\r\n * Sets the hit area for an array of Game Objects to be a `Phaser.Geom.Ellipse` shape, using\r\n * the given coordinates and dimensions to control its position and size.\r\n *\r\n * @method Phaser.Input.InputPlugin#setHitAreaEllipse\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} gameObjects - An array of Game Objects to set as having an ellipse hit area.\r\n * @param {number} x - The center of the ellipse.\r\n * @param {number} y - The center of the ellipse.\r\n * @param {number} width - The width of the ellipse.\r\n * @param {number} height - The height of the ellipse.\r\n * @param {Phaser.Types.Input.HitAreaCallback} [callback] - The hit area callback. If undefined it uses Ellipse.Contains.\r\n *\r\n * @return {this} This InputPlugin object.\r\n */\r\n setHitAreaEllipse: function (gameObjects, x, y, width, height, callback)\r\n {\r\n if (callback === undefined) { callback = EllipseContains; }\r\n\r\n var shape = new Ellipse(x, y, width, height);\r\n\r\n return this.setHitArea(gameObjects, shape, callback);\r\n },\r\n\r\n /**\r\n * Sets the hit area for an array of Game Objects to be a `Phaser.Geom.Rectangle` shape, using\r\n * the Game Objects texture frame to define the position and size of the hit area.\r\n *\r\n * @method Phaser.Input.InputPlugin#setHitAreaFromTexture\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} gameObjects - An array of Game Objects to set as having an ellipse hit area.\r\n * @param {Phaser.Types.Input.HitAreaCallback} [callback] - The hit area callback. If undefined it uses Rectangle.Contains.\r\n *\r\n * @return {this} This InputPlugin object.\r\n */\r\n setHitAreaFromTexture: function (gameObjects, callback)\r\n {\r\n if (callback === undefined) { callback = RectangleContains; }\r\n\r\n if (!Array.isArray(gameObjects))\r\n {\r\n gameObjects = [ gameObjects ];\r\n }\r\n\r\n for (var i = 0; i < gameObjects.length; i++)\r\n {\r\n var gameObject = gameObjects[i];\r\n\r\n var frame = gameObject.frame;\r\n\r\n var width = 0;\r\n var height = 0;\r\n\r\n if (gameObject.width)\r\n {\r\n width = gameObject.width;\r\n height = gameObject.height;\r\n }\r\n else if (frame)\r\n {\r\n width = frame.realWidth;\r\n height = frame.realHeight;\r\n }\r\n\r\n if (gameObject.type === 'Container' && (width === 0 || height === 0))\r\n {\r\n console.warn('Container.setInteractive must specify a Shape or call setSize() first');\r\n continue;\r\n }\r\n\r\n if (width !== 0 && height !== 0)\r\n {\r\n gameObject.input = CreateInteractiveObject(gameObject, new Rectangle(0, 0, width, height), callback);\r\n\r\n this.queueForInsertion(gameObject);\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the hit area for an array of Game Objects to be a `Phaser.Geom.Rectangle` shape, using\r\n * the given coordinates and dimensions to control its position and size.\r\n *\r\n * @method Phaser.Input.InputPlugin#setHitAreaRectangle\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} gameObjects - An array of Game Objects to set as having a rectangular hit area.\r\n * @param {number} x - The top-left of the rectangle.\r\n * @param {number} y - The top-left of the rectangle.\r\n * @param {number} width - The width of the rectangle.\r\n * @param {number} height - The height of the rectangle.\r\n * @param {Phaser.Types.Input.HitAreaCallback} [callback] - The hit area callback. If undefined it uses Rectangle.Contains.\r\n *\r\n * @return {this} This InputPlugin object.\r\n */\r\n setHitAreaRectangle: function (gameObjects, x, y, width, height, callback)\r\n {\r\n if (callback === undefined) { callback = RectangleContains; }\r\n\r\n var shape = new Rectangle(x, y, width, height);\r\n\r\n return this.setHitArea(gameObjects, shape, callback);\r\n },\r\n\r\n /**\r\n * Sets the hit area for an array of Game Objects to be a `Phaser.Geom.Triangle` shape, using\r\n * the given coordinates to control the position of its points.\r\n *\r\n * @method Phaser.Input.InputPlugin#setHitAreaTriangle\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[])} gameObjects - An array of Game Objects to set as having a triangular hit area.\r\n * @param {number} x1 - The x coordinate of the first point of the triangle.\r\n * @param {number} y1 - The y coordinate of the first point of the triangle.\r\n * @param {number} x2 - The x coordinate of the second point of the triangle.\r\n * @param {number} y2 - The y coordinate of the second point of the triangle.\r\n * @param {number} x3 - The x coordinate of the third point of the triangle.\r\n * @param {number} y3 - The y coordinate of the third point of the triangle.\r\n * @param {Phaser.Types.Input.HitAreaCallback} [callback] - The hit area callback. If undefined it uses Triangle.Contains.\r\n *\r\n * @return {this} This InputPlugin object.\r\n */\r\n setHitAreaTriangle: function (gameObjects, x1, y1, x2, y2, x3, y3, callback)\r\n {\r\n if (callback === undefined) { callback = TriangleContains; }\r\n\r\n var shape = new Triangle(x1, y1, x2, y2, x3, y3);\r\n\r\n return this.setHitArea(gameObjects, shape, callback);\r\n },\r\n\r\n /**\r\n * Creates an Input Debug Shape for the given Game Object.\r\n *\r\n * The Game Object must have _already_ been enabled for input prior to calling this method.\r\n *\r\n * This is intended to assist you during development and debugging.\r\n *\r\n * Debug Shapes can only be created for Game Objects that are using standard Phaser Geometry for input,\r\n * including: Circle, Ellipse, Line, Polygon, Rectangle and Triangle.\r\n *\r\n * Game Objects that are using their automatic hit areas are using Rectangles by default, so will also work.\r\n *\r\n * The Debug Shape is created and added to the display list and is then kept in sync with the Game Object\r\n * it is connected with. Should you need to modify it yourself, such as to hide it, you can access it via\r\n * the Game Object property: `GameObject.input.hitAreaDebug`.\r\n *\r\n * Calling this method on a Game Object that already has a Debug Shape will first destroy the old shape,\r\n * before creating a new one. If you wish to remove the Debug Shape entirely, you should call the\r\n * method `InputPlugin.removeDebug`.\r\n *\r\n * Note that the debug shape will only show the outline of the input area. If the input test is using a\r\n * pixel perfect check, for example, then this is not displayed. If you are using a custom shape, that\r\n * doesn't extend one of the base Phaser Geometry objects, as your hit area, then this method will not\r\n * work.\r\n *\r\n * @method Phaser.Input.InputPlugin#enableDebug\r\n * @since 3.19.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to create the input debug shape for.\r\n * @param {number} [color=0x00ff00] - The outline color of the debug shape.\r\n *\r\n * @return {this} This Input Plugin.\r\n */\r\n enableDebug: function (gameObject, color)\r\n {\r\n if (color === undefined) { color = 0x00ff00; }\r\n\r\n var input = gameObject.input;\r\n\r\n if (!input || !input.hitArea)\r\n {\r\n return this;\r\n }\r\n\r\n var shape = input.hitArea;\r\n var shapeType = shape.type;\r\n var debug = input.hitAreaDebug;\r\n var factory = this.systems.add;\r\n var updateList = this.systems.updateList;\r\n\r\n if (debug)\r\n {\r\n updateList.remove(debug);\r\n\r\n debug.destroy();\r\n\r\n debug = null;\r\n }\r\n\r\n var offsetx = 0;\r\n var offsety = 0;\r\n\r\n switch (shapeType)\r\n {\r\n case GEOM_CONST.CIRCLE:\r\n debug = factory.arc(0, 0, shape.radius);\r\n offsetx = shape.x - shape.radius;\r\n offsety = shape.y - shape.radius;\r\n break;\r\n\r\n case GEOM_CONST.ELLIPSE:\r\n debug = factory.ellipse(0, 0, shape.width, shape.height);\r\n offsetx = shape.x - shape.width / 2;\r\n offsety = shape.y - shape.height / 2;\r\n break;\r\n\r\n case GEOM_CONST.LINE:\r\n debug = factory.line(0, 0, shape.x1, shape.y1, shape.x2, shape.y2);\r\n break;\r\n\r\n case GEOM_CONST.POLYGON:\r\n debug = factory.polygon(0, 0, shape.points);\r\n break;\r\n\r\n case GEOM_CONST.RECTANGLE:\r\n debug = factory.rectangle(0, 0, shape.width, shape.height);\r\n offsetx = shape.x;\r\n offsety = shape.y;\r\n break;\r\n\r\n case GEOM_CONST.TRIANGLE:\r\n debug = factory.triangle(0, 0, shape.x1, shape.y1, shape.x2, shape.y2, shape.x3, shape.y3);\r\n break;\r\n }\r\n\r\n if (debug)\r\n {\r\n debug.isFilled = false;\r\n debug.strokeColor = color;\r\n\r\n debug.preUpdate = function ()\r\n {\r\n debug.setVisible(gameObject.visible);\r\n\r\n debug.setStrokeStyle(1 / gameObject.scale, debug.strokeColor);\r\n\r\n debug.setDisplayOrigin(gameObject.displayOriginX, gameObject.displayOriginY);\r\n\r\n var x = gameObject.x;\r\n var y = gameObject.y;\r\n var rotation = gameObject.rotation;\r\n var scaleX = gameObject.scaleX;\r\n var scaleY = gameObject.scaleY;\r\n\r\n if (gameObject.parentContainer)\r\n {\r\n var matrix = gameObject.getWorldTransformMatrix();\r\n\r\n x = matrix.tx;\r\n y = matrix.ty;\r\n rotation = matrix.rotation;\r\n scaleX = matrix.scaleX;\r\n scaleY = matrix.scaleY;\r\n }\r\n\r\n debug.setRotation(rotation);\r\n debug.setScale(scaleX, scaleY);\r\n debug.setPosition(x + offsetx * scaleX, y + offsety * scaleY);\r\n debug.setScrollFactor(gameObject.scrollFactorX, gameObject.scrollFactorY);\r\n debug.setDepth(gameObject.depth);\r\n };\r\n\r\n updateList.add(debug);\r\n\r\n input.hitAreaDebug = debug;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes an Input Debug Shape from the given Game Object.\r\n *\r\n * The shape is destroyed immediately and the `hitAreaDebug` property is set to `null`.\r\n *\r\n * @method Phaser.Input.InputPlugin#removeDebug\r\n * @since 3.19.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to remove the input debug shape from.\r\n *\r\n * @return {this} This Input Plugin.\r\n */\r\n removeDebug: function (gameObject)\r\n {\r\n var input = gameObject.input;\r\n\r\n if (input && input.hitAreaDebug)\r\n {\r\n var debug = input.hitAreaDebug;\r\n\r\n // This will remove it from both the display list and update list\r\n debug.destroy();\r\n\r\n input.hitAreaDebug = null;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Pointers to always poll.\r\n *\r\n * When a pointer is polled it runs a hit test to see which Game Objects are currently below it,\r\n * or being interacted with it, regardless if the Pointer has actually moved or not.\r\n *\r\n * You should enable this if you want objects in your game to fire over / out events, and the objects\r\n * are constantly moving, but the pointer may not have. Polling every frame has additional computation\r\n * costs, especially if there are a large number of interactive objects in your game.\r\n *\r\n * @method Phaser.Input.InputPlugin#setPollAlways\r\n * @since 3.0.0\r\n *\r\n * @return {this} This InputPlugin object.\r\n */\r\n setPollAlways: function ()\r\n {\r\n return this.setPollRate(0);\r\n },\r\n\r\n /**\r\n * Sets the Pointers to only poll when they are moved or updated.\r\n *\r\n * When a pointer is polled it runs a hit test to see which Game Objects are currently below it,\r\n * or being interacted with it.\r\n *\r\n * @method Phaser.Input.InputPlugin#setPollOnMove\r\n * @since 3.0.0\r\n *\r\n * @return {this} This InputPlugin object.\r\n */\r\n setPollOnMove: function ()\r\n {\r\n return this.setPollRate(-1);\r\n },\r\n\r\n /**\r\n * Sets the poll rate value. This is the amount of time that should have elapsed before a pointer\r\n * will be polled again. See the `setPollAlways` and `setPollOnMove` methods.\r\n *\r\n * @method Phaser.Input.InputPlugin#setPollRate\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The amount of time, in ms, that should elapsed before re-polling the pointers.\r\n *\r\n * @return {this} This InputPlugin object.\r\n */\r\n setPollRate: function (value)\r\n {\r\n this.pollRate = value;\r\n this._pollTimer = 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * When set to `true` the global Input Manager will emulate DOM behavior by only emitting events from\r\n * the top-most Scene in the Scene List. By default, if a Scene receives an input event it will then stop the event\r\n * from flowing down to any Scenes below it in the Scene list. To disable this behavior call this method with `false`.\r\n *\r\n * @method Phaser.Input.InputPlugin#setGlobalTopOnly\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} value - Set to `true` to stop processing input events on the Scene that receives it, or `false` to let the event continue down the Scene list.\r\n *\r\n * @return {this} This InputPlugin object.\r\n */\r\n setGlobalTopOnly: function (value)\r\n {\r\n this.manager.globalTopOnly = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * When set to `true` this Input Plugin will emulate DOM behavior by only emitting events from\r\n * the top-most Game Objects in the Display List.\r\n *\r\n * If set to `false` it will emit events from all Game Objects below a Pointer, not just the top one.\r\n *\r\n * @method Phaser.Input.InputPlugin#setTopOnly\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} value - `true` to only include the top-most Game Object, or `false` to include all Game Objects in a hit test.\r\n *\r\n * @return {this} This InputPlugin object.\r\n */\r\n setTopOnly: function (value)\r\n {\r\n this.topOnly = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Given an array of Game Objects and a Pointer, sort the array and return it,\r\n * so that the objects are in render order with the lowest at the bottom.\r\n *\r\n * @method Phaser.Input.InputPlugin#sortGameObjects\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject[]} gameObjects - An array of Game Objects to be sorted.\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer to check against the Game Objects.\r\n *\r\n * @return {Phaser.GameObjects.GameObject[]} The sorted array of Game Objects.\r\n */\r\n sortGameObjects: function (gameObjects, pointer)\r\n {\r\n if (gameObjects.length < 2 || !pointer.camera)\r\n {\r\n return gameObjects;\r\n }\r\n\r\n var list = pointer.camera.renderList;\r\n\r\n return gameObjects.sort(function (childA, childB)\r\n {\r\n var indexA = Math.max(list.indexOf(childA), 0);\r\n var indexB = Math.max(list.indexOf(childB), 0);\r\n\r\n return indexB - indexA;\r\n });\r\n },\r\n\r\n /**\r\n * Given an array of Drop Zone Game Objects, sort the array and return it,\r\n * so that the objects are in depth index order with the lowest at the bottom.\r\n *\r\n * @method Phaser.Input.InputPlugin#sortDropZones\r\n * @since 3.52.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject[]} gameObjects - An array of Game Objects to be sorted.\r\n *\r\n * @return {Phaser.GameObjects.GameObject[]} The sorted array of Game Objects.\r\n */\r\n sortDropZones: function (gameObjects)\r\n {\r\n if (gameObjects.length < 2)\r\n {\r\n return gameObjects;\r\n }\r\n\r\n this.scene.sys.depthSort();\r\n\r\n return gameObjects.sort(this.sortDropZoneHandler.bind(this));\r\n },\r\n\r\n /**\r\n * Return the child lowest down the display list (with the smallest index)\r\n * Will iterate through all parent containers, if present.\r\n *\r\n * Prior to version 3.52.0 this method was called `sortHandlerGO`.\r\n *\r\n * @method Phaser.Input.InputPlugin#sortDropZoneHandler\r\n * @private\r\n * @since 3.52.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} childA - The first Game Object to compare.\r\n * @param {Phaser.GameObjects.GameObject} childB - The second Game Object to compare.\r\n *\r\n * @return {number} Returns either a negative or positive integer, or zero if they match.\r\n */\r\n sortDropZoneHandler: function (childA, childB)\r\n {\r\n if (!childA.parentContainer && !childB.parentContainer)\r\n {\r\n // Quick bail out when neither child has a container\r\n return this.displayList.getIndex(childB) - this.displayList.getIndex(childA);\r\n }\r\n else if (childA.parentContainer === childB.parentContainer)\r\n {\r\n // Quick bail out when both children have the same container\r\n return childB.parentContainer.getIndex(childB) - childA.parentContainer.getIndex(childA);\r\n }\r\n else if (childA.parentContainer === childB)\r\n {\r\n // Quick bail out when childA is a child of childB\r\n return -1;\r\n }\r\n else if (childB.parentContainer === childA)\r\n {\r\n // Quick bail out when childA is a child of childB\r\n return 1;\r\n }\r\n else\r\n {\r\n // Container index check\r\n var listA = childA.getIndexList();\r\n var listB = childB.getIndexList();\r\n var len = Math.min(listA.length, listB.length);\r\n\r\n for (var i = 0; i < len; i++)\r\n {\r\n var indexA = listA[i];\r\n var indexB = listB[i];\r\n\r\n if (indexA === indexB)\r\n {\r\n // Go to the next level down\r\n continue;\r\n }\r\n else\r\n {\r\n // Non-matching parents, so return\r\n return indexB - indexA;\r\n }\r\n }\r\n\r\n return listB.length - listA.length;\r\n }\r\n\r\n // Technically this shouldn't happen, but ...\r\n // eslint-disable-next-line no-unreachable\r\n return 0;\r\n },\r\n\r\n /**\r\n * This method should be called from within an input event handler, such as `pointerdown`.\r\n *\r\n * When called, it stops the Input Manager from allowing _this specific event_ to be processed by any other Scene\r\n * not yet handled in the scene list.\r\n *\r\n * @method Phaser.Input.InputPlugin#stopPropagation\r\n * @since 3.0.0\r\n *\r\n * @return {this} This InputPlugin object.\r\n */\r\n stopPropagation: function ()\r\n {\r\n this.manager._tempSkip = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds new Pointer objects to the Input Manager.\r\n *\r\n * By default Phaser creates 2 pointer objects: `mousePointer` and `pointer1`.\r\n *\r\n * You can create more either by calling this method, or by setting the `input.activePointers` property\r\n * in the Game Config, up to a maximum of 10 pointers.\r\n *\r\n * The first 10 pointers are available via the `InputPlugin.pointerX` properties, once they have been added\r\n * via this method.\r\n *\r\n * @method Phaser.Input.InputPlugin#addPointer\r\n * @since 3.10.0\r\n *\r\n * @param {number} [quantity=1] The number of new Pointers to create. A maximum of 10 is allowed in total.\r\n *\r\n * @return {Phaser.Input.Pointer[]} An array containing all of the new Pointer objects that were created.\r\n */\r\n addPointer: function (quantity)\r\n {\r\n return this.manager.addPointer(quantity);\r\n },\r\n\r\n /**\r\n * Tells the Input system to set a custom cursor.\r\n *\r\n * This cursor will be the default cursor used when interacting with the game canvas.\r\n *\r\n * If an Interactive Object also sets a custom cursor, this is the cursor that is reset after its use.\r\n *\r\n * Any valid CSS cursor value is allowed, including paths to image files, i.e.:\r\n *\r\n * ```javascript\r\n * this.input.setDefaultCursor('url(assets/cursors/sword.cur), pointer');\r\n * ```\r\n *\r\n * Please read about the differences between browsers when it comes to the file formats and sizes they support:\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/CSS/cursor\r\n * https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_User_Interface/Using_URL_values_for_the_cursor_property\r\n *\r\n * It's up to you to pick a suitable cursor format that works across the range of browsers you need to support.\r\n *\r\n * @method Phaser.Input.InputPlugin#setDefaultCursor\r\n * @since 3.10.0\r\n *\r\n * @param {string} cursor - The CSS to be used when setting the default cursor.\r\n *\r\n * @return {this} This Input instance.\r\n */\r\n setDefaultCursor: function (cursor)\r\n {\r\n this.manager.setDefaultCursor(cursor);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is transitioning in.\r\n *\r\n * @method Phaser.Input.InputPlugin#transitionIn\r\n * @private\r\n * @since 3.5.0\r\n */\r\n transitionIn: function ()\r\n {\r\n this.enabled = this.settings.transitionAllowInput;\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin has finished transitioning in.\r\n *\r\n * @method Phaser.Input.InputPlugin#transitionComplete\r\n * @private\r\n * @since 3.5.0\r\n */\r\n transitionComplete: function ()\r\n {\r\n if (!this.settings.transitionAllowInput)\r\n {\r\n this.enabled = true;\r\n }\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is transitioning out.\r\n *\r\n * @method Phaser.Input.InputPlugin#transitionOut\r\n * @private\r\n * @since 3.5.0\r\n */\r\n transitionOut: function ()\r\n {\r\n this.enabled = this.settings.transitionAllowInput;\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is shutting down.\r\n * We need to kill and reset all internal properties as well as stop listening to Scene events.\r\n *\r\n * @method Phaser.Input.InputPlugin#shutdown\r\n * @fires Phaser.Input.Events#SHUTDOWN\r\n * @private\r\n * @since 3.0.0\r\n */\r\n shutdown: function ()\r\n {\r\n // Registered input plugins listen for this\r\n this.pluginEvents.emit(Events.SHUTDOWN);\r\n\r\n this._temp.length = 0;\r\n this._list.length = 0;\r\n this._draggable.length = 0;\r\n this._pendingRemoval.length = 0;\r\n this._pendingInsertion.length = 0;\r\n this._dragState.length = 0;\r\n\r\n for (var i = 0; i < 10; i++)\r\n {\r\n this._drag[i] = [];\r\n this._over[i] = [];\r\n }\r\n\r\n this.removeAllListeners();\r\n\r\n var manager = this.manager;\r\n\r\n manager.canvas.style.cursor = manager.defaultCursor;\r\n\r\n var eventEmitter = this.systems.events;\r\n\r\n eventEmitter.off(SceneEvents.TRANSITION_START, this.transitionIn, this);\r\n eventEmitter.off(SceneEvents.TRANSITION_OUT, this.transitionOut, this);\r\n eventEmitter.off(SceneEvents.TRANSITION_COMPLETE, this.transitionComplete, this);\r\n eventEmitter.off(SceneEvents.PRE_UPDATE, this.preUpdate, this);\r\n\r\n manager.events.off(Events.GAME_OUT, this.onGameOut, this);\r\n manager.events.off(Events.GAME_OVER, this.onGameOver, this);\r\n\r\n eventEmitter.off(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * Loops through all of the Input Manager Pointer instances and calls `reset` on them.\r\n *\r\n * Use this function if you find that input has been stolen from Phaser via a 3rd\r\n * party component, such as Vue, and you need to tell Phaser to reset the Pointer states.\r\n *\r\n * @method Phaser.Input.InputPlugin#resetPointers\r\n * @since 3.60.0\r\n */\r\n resetPointers: function ()\r\n {\r\n var pointers = this.manager.pointers;\r\n\r\n for (var i = 0; i < pointers.length; i++)\r\n {\r\n pointers[i].reset();\r\n }\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is being destroyed.\r\n * We need to shutdown and then kill off all external references.\r\n *\r\n * @method Phaser.Input.InputPlugin#destroy\r\n * @fires Phaser.Input.Events#DESTROY\r\n * @private\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.shutdown();\r\n\r\n // Registered input plugins listen for this\r\n this.pluginEvents.emit(Events.DESTROY);\r\n\r\n this.pluginEvents.removeAllListeners();\r\n\r\n this.scene.sys.events.off(SceneEvents.START, this.start, this);\r\n\r\n this.scene = null;\r\n this.cameras = null;\r\n this.manager = null;\r\n this.events = null;\r\n this.mouse = null;\r\n },\r\n\r\n /**\r\n * The x coordinates of the ActivePointer based on the first camera in the camera list.\r\n * This is only safe to use if your game has just 1 non-transformed camera and doesn't use multi-touch.\r\n *\r\n * @name Phaser.Input.InputPlugin#x\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n x: {\r\n\r\n get: function ()\r\n {\r\n return this.manager.activePointer.x;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The y coordinates of the ActivePointer based on the first camera in the camera list.\r\n * This is only safe to use if your game has just 1 non-transformed camera and doesn't use multi-touch.\r\n *\r\n * @name Phaser.Input.InputPlugin#y\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n y: {\r\n\r\n get: function ()\r\n {\r\n return this.manager.activePointer.y;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Are any mouse or touch pointers currently over the game canvas?\r\n *\r\n * @name Phaser.Input.InputPlugin#isOver\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.16.0\r\n */\r\n isOver: {\r\n\r\n get: function ()\r\n {\r\n return this.manager.isOver;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The mouse has its own unique Pointer object, which you can reference directly if making a _desktop specific game_.\r\n * If you are supporting both desktop and touch devices then do not use this property, instead use `activePointer`\r\n * which will always map to the most recently interacted pointer.\r\n *\r\n * @name Phaser.Input.InputPlugin#mousePointer\r\n * @type {Phaser.Input.Pointer}\r\n * @readonly\r\n * @since 3.10.0\r\n */\r\n mousePointer: {\r\n\r\n get: function ()\r\n {\r\n return this.manager.mousePointer;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The current active input Pointer.\r\n *\r\n * @name Phaser.Input.InputPlugin#activePointer\r\n * @type {Phaser.Input.Pointer}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n activePointer: {\r\n\r\n get: function ()\r\n {\r\n return this.manager.activePointer;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * A touch-based Pointer object.\r\n * This will be `undefined` by default unless you add a new Pointer using `addPointer`.\r\n *\r\n * @name Phaser.Input.InputPlugin#pointer1\r\n * @type {Phaser.Input.Pointer}\r\n * @readonly\r\n * @since 3.10.0\r\n */\r\n pointer1: {\r\n\r\n get: function ()\r\n {\r\n return this.manager.pointers[1];\r\n }\r\n\r\n },\r\n\r\n /**\r\n * A touch-based Pointer object.\r\n * This will be `undefined` by default unless you add a new Pointer using `addPointer`.\r\n *\r\n * @name Phaser.Input.InputPlugin#pointer2\r\n * @type {Phaser.Input.Pointer}\r\n * @readonly\r\n * @since 3.10.0\r\n */\r\n pointer2: {\r\n\r\n get: function ()\r\n {\r\n return this.manager.pointers[2];\r\n }\r\n\r\n },\r\n\r\n /**\r\n * A touch-based Pointer object.\r\n * This will be `undefined` by default unless you add a new Pointer using `addPointer`.\r\n *\r\n * @name Phaser.Input.InputPlugin#pointer3\r\n * @type {Phaser.Input.Pointer}\r\n * @readonly\r\n * @since 3.10.0\r\n */\r\n pointer3: {\r\n\r\n get: function ()\r\n {\r\n return this.manager.pointers[3];\r\n }\r\n\r\n },\r\n\r\n /**\r\n * A touch-based Pointer object.\r\n * This will be `undefined` by default unless you add a new Pointer using `addPointer`.\r\n *\r\n * @name Phaser.Input.InputPlugin#pointer4\r\n * @type {Phaser.Input.Pointer}\r\n * @readonly\r\n * @since 3.10.0\r\n */\r\n pointer4: {\r\n\r\n get: function ()\r\n {\r\n return this.manager.pointers[4];\r\n }\r\n\r\n },\r\n\r\n /**\r\n * A touch-based Pointer object.\r\n * This will be `undefined` by default unless you add a new Pointer using `addPointer`.\r\n *\r\n * @name Phaser.Input.InputPlugin#pointer5\r\n * @type {Phaser.Input.Pointer}\r\n * @readonly\r\n * @since 3.10.0\r\n */\r\n pointer5: {\r\n\r\n get: function ()\r\n {\r\n return this.manager.pointers[5];\r\n }\r\n\r\n },\r\n\r\n /**\r\n * A touch-based Pointer object.\r\n * This will be `undefined` by default unless you add a new Pointer using `addPointer`.\r\n *\r\n * @name Phaser.Input.InputPlugin#pointer6\r\n * @type {Phaser.Input.Pointer}\r\n * @readonly\r\n * @since 3.10.0\r\n */\r\n pointer6: {\r\n\r\n get: function ()\r\n {\r\n return this.manager.pointers[6];\r\n }\r\n\r\n },\r\n\r\n /**\r\n * A touch-based Pointer object.\r\n * This will be `undefined` by default unless you add a new Pointer using `addPointer`.\r\n *\r\n * @name Phaser.Input.InputPlugin#pointer7\r\n * @type {Phaser.Input.Pointer}\r\n * @readonly\r\n * @since 3.10.0\r\n */\r\n pointer7: {\r\n\r\n get: function ()\r\n {\r\n return this.manager.pointers[7];\r\n }\r\n\r\n },\r\n\r\n /**\r\n * A touch-based Pointer object.\r\n * This will be `undefined` by default unless you add a new Pointer using `addPointer`.\r\n *\r\n * @name Phaser.Input.InputPlugin#pointer8\r\n * @type {Phaser.Input.Pointer}\r\n * @readonly\r\n * @since 3.10.0\r\n */\r\n pointer8: {\r\n\r\n get: function ()\r\n {\r\n return this.manager.pointers[8];\r\n }\r\n\r\n },\r\n\r\n /**\r\n * A touch-based Pointer object.\r\n * This will be `undefined` by default unless you add a new Pointer using `addPointer`.\r\n *\r\n * @name Phaser.Input.InputPlugin#pointer9\r\n * @type {Phaser.Input.Pointer}\r\n * @readonly\r\n * @since 3.10.0\r\n */\r\n pointer9: {\r\n\r\n get: function ()\r\n {\r\n return this.manager.pointers[9];\r\n }\r\n\r\n },\r\n\r\n /**\r\n * A touch-based Pointer object.\r\n * This will be `undefined` by default unless you add a new Pointer using `addPointer`.\r\n *\r\n * @name Phaser.Input.InputPlugin#pointer10\r\n * @type {Phaser.Input.Pointer}\r\n * @readonly\r\n * @since 3.10.0\r\n */\r\n pointer10: {\r\n\r\n get: function ()\r\n {\r\n return this.manager.pointers[10];\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nPluginCache.register('InputPlugin', InputPlugin, 'input');\r\n\r\nmodule.exports = InputPlugin;\r\n\n\n/***/ }),\n\n/***/ 89639:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetValue = __webpack_require__(35154);\r\n\r\n// Contains the plugins that Phaser uses globally and locally.\r\n// These are the source objects, not instantiated.\r\nvar inputPlugins = {};\r\n\r\n/**\r\n * @namespace Phaser.Input.InputPluginCache\r\n */\r\n\r\nvar InputPluginCache = {};\r\n\r\n/**\r\n * Static method called directly by the Core internal Plugins.\r\n * Key is a reference used to get the plugin from the plugins object (i.e. InputPlugin)\r\n * Plugin is the object to instantiate to create the plugin\r\n * Mapping is what the plugin is injected into the Scene.Systems as (i.e. input)\r\n *\r\n * @function Phaser.Input.InputPluginCache.register\r\n * @static\r\n * @since 3.10.0\r\n *\r\n * @param {string} key - A reference used to get this plugin from the plugin cache.\r\n * @param {function} plugin - The plugin to be stored. Should be the core object, not instantiated.\r\n * @param {string} mapping - If this plugin is to be injected into the Input Plugin, this is the property key used.\r\n * @param {string} settingsKey - The key in the Scene Settings to check to see if this plugin should install or not.\r\n * @param {string} configKey - The key in the Game Config to check to see if this plugin should install or not.\r\n */\r\nInputPluginCache.register = function (key, plugin, mapping, settingsKey, configKey)\r\n{\r\n inputPlugins[key] = { plugin: plugin, mapping: mapping, settingsKey: settingsKey, configKey: configKey };\r\n};\r\n\r\n/**\r\n * Returns the input plugin object from the cache based on the given key.\r\n *\r\n * @function Phaser.Input.InputPluginCache.getPlugin\r\n * @static\r\n * @since 3.10.0\r\n *\r\n * @param {string} key - The key of the input plugin to get.\r\n *\r\n * @return {Phaser.Types.Input.InputPluginContainer} The input plugin object.\r\n */\r\nInputPluginCache.getPlugin = function (key)\r\n{\r\n return inputPlugins[key];\r\n};\r\n\r\n/**\r\n * Installs all of the registered Input Plugins into the given target.\r\n *\r\n * @function Phaser.Input.InputPluginCache.install\r\n * @static\r\n * @since 3.10.0\r\n *\r\n * @param {Phaser.Input.InputPlugin} target - The target InputPlugin to install the plugins into.\r\n */\r\nInputPluginCache.install = function (target)\r\n{\r\n var sys = target.scene.sys;\r\n var settings = sys.settings.input;\r\n var config = sys.game.config;\r\n\r\n for (var key in inputPlugins)\r\n {\r\n var source = inputPlugins[key].plugin;\r\n var mapping = inputPlugins[key].mapping;\r\n var settingsKey = inputPlugins[key].settingsKey;\r\n var configKey = inputPlugins[key].configKey;\r\n\r\n if (GetValue(settings, settingsKey, config[configKey]))\r\n {\r\n target[mapping] = new source(target);\r\n }\r\n }\r\n};\r\n\r\n/**\r\n * Removes an input plugin based on the given key.\r\n *\r\n * @function Phaser.Input.InputPluginCache.remove\r\n * @static\r\n * @since 3.10.0\r\n *\r\n * @param {string} key - The key of the input plugin to remove.\r\n */\r\nInputPluginCache.remove = function (key)\r\n{\r\n if (inputPlugins.hasOwnProperty(key))\r\n {\r\n delete inputPlugins[key];\r\n }\r\n};\r\n\r\nmodule.exports = InputPluginCache;\r\n\n\n/***/ }),\n\n/***/ 42515:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Angle = __webpack_require__(31040);\r\nvar Class = __webpack_require__(83419);\r\nvar Distance = __webpack_require__(20339);\r\nvar FuzzyEqual = __webpack_require__(43855);\r\nvar SmoothStepInterpolation = __webpack_require__(47235);\r\nvar Vector2 = __webpack_require__(26099);\r\nvar OS = __webpack_require__(25892);\r\n\r\n/**\r\n * @classdesc\r\n * A Pointer object encapsulates both mouse and touch input within Phaser.\r\n *\r\n * By default, Phaser will create 2 pointers for your game to use. If you require more, i.e. for a multi-touch\r\n * game, then use the `InputPlugin.addPointer` method to do so, rather than instantiating this class directly,\r\n * otherwise it won't be managed by the input system.\r\n *\r\n * You can reference the current active pointer via `InputPlugin.activePointer`. You can also use the properties\r\n * `InputPlugin.pointer1` through to `pointer10`, for each pointer you have enabled in your game.\r\n *\r\n * The properties of this object are set by the Input Plugin during processing. This object is then sent in all\r\n * input related events that the Input Plugin emits, so you can reference properties from it directly in your\r\n * callbacks.\r\n *\r\n * @class Pointer\r\n * @memberof Phaser.Input\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.InputManager} manager - A reference to the Input Manager.\r\n * @param {number} id - The internal ID of this Pointer.\r\n */\r\nvar Pointer = new Class({\r\n\r\n initialize:\r\n\r\n function Pointer (manager, id)\r\n {\r\n /**\r\n * A reference to the Input Manager.\r\n *\r\n * @name Phaser.Input.Pointer#manager\r\n * @type {Phaser.Input.InputManager}\r\n * @since 3.0.0\r\n */\r\n this.manager = manager;\r\n\r\n /**\r\n * The internal ID of this Pointer.\r\n *\r\n * @name Phaser.Input.Pointer#id\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.id = id;\r\n\r\n /**\r\n * The most recent native DOM Event this Pointer has processed.\r\n *\r\n * @name Phaser.Input.Pointer#event\r\n * @type {(TouchEvent|MouseEvent|WheelEvent)}\r\n * @since 3.0.0\r\n */\r\n this.event;\r\n\r\n /**\r\n * The DOM element the Pointer was pressed down on, taken from the DOM event.\r\n * In a default set-up this will be the Canvas that Phaser is rendering to, or the Window element.\r\n *\r\n * @name Phaser.Input.Pointer#downElement\r\n * @type {any}\r\n * @readonly\r\n * @since 3.16.0\r\n */\r\n this.downElement;\r\n\r\n /**\r\n * The DOM element the Pointer was released on, taken from the DOM event.\r\n * In a default set-up this will be the Canvas that Phaser is rendering to, or the Window element.\r\n *\r\n * @name Phaser.Input.Pointer#upElement\r\n * @type {any}\r\n * @readonly\r\n * @since 3.16.0\r\n */\r\n this.upElement;\r\n\r\n /**\r\n * The camera the Pointer interacted with during its last update.\r\n *\r\n * A Pointer can only ever interact with one camera at once, which will be the top-most camera\r\n * in the list should multiple cameras be positioned on-top of each other.\r\n *\r\n * @name Phaser.Input.Pointer#camera\r\n * @type {Phaser.Cameras.Scene2D.Camera}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.camera = null;\r\n\r\n /**\r\n * A read-only property that indicates which button was pressed, or released, on the pointer\r\n * during the most recent event. It is only set during `up` and `down` events.\r\n *\r\n * On Touch devices the value is always 0.\r\n *\r\n * Users may change the configuration of buttons on their pointing device so that if an event's button property\r\n * is zero, it may not have been caused by the button that is physically left–most on the pointing device;\r\n * however, it should behave as if the left button was clicked in the standard button layout.\r\n *\r\n * @name Phaser.Input.Pointer#button\r\n * @type {number}\r\n * @readonly\r\n * @default 0\r\n * @since 3.18.0\r\n */\r\n this.button = 0;\r\n\r\n /**\r\n * 0: No button or un-initialized\r\n * 1: Left button\r\n * 2: Right button\r\n * 4: Wheel button or middle button\r\n * 8: 4th button (typically the \"Browser Back\" button)\r\n * 16: 5th button (typically the \"Browser Forward\" button)\r\n *\r\n * For a mouse configured for left-handed use, the button actions are reversed.\r\n * In this case, the values are read from right to left.\r\n *\r\n * @name Phaser.Input.Pointer#buttons\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.buttons = 0;\r\n\r\n /**\r\n * The position of the Pointer in screen space.\r\n *\r\n * @name Phaser.Input.Pointer#position\r\n * @type {Phaser.Math.Vector2}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.position = new Vector2();\r\n\r\n /**\r\n * The previous position of the Pointer in screen space.\r\n *\r\n * The old x and y values are stored in here during the InputManager.transformPointer call.\r\n *\r\n * Use the properties `velocity`, `angle` and `distance` to create your own gesture recognition.\r\n *\r\n * @name Phaser.Input.Pointer#prevPosition\r\n * @type {Phaser.Math.Vector2}\r\n * @readonly\r\n * @since 3.11.0\r\n */\r\n this.prevPosition = new Vector2();\r\n\r\n /**\r\n * An internal vector used for calculations of the pointer speed and angle.\r\n *\r\n * @name Phaser.Input.Pointer#midPoint\r\n * @type {Phaser.Math.Vector2}\r\n * @private\r\n * @since 3.16.0\r\n */\r\n this.midPoint = new Vector2(-1, -1);\r\n\r\n /**\r\n * The current velocity of the Pointer, based on its current and previous positions.\r\n *\r\n * This value is smoothed out each frame, according to the `motionFactor` property.\r\n *\r\n * This property is updated whenever the Pointer moves, regardless of any button states. In other words,\r\n * it changes based on movement alone - a button doesn't have to be pressed first.\r\n *\r\n * @name Phaser.Input.Pointer#velocity\r\n * @type {Phaser.Math.Vector2}\r\n * @readonly\r\n * @since 3.16.0\r\n */\r\n this.velocity = new Vector2();\r\n\r\n /**\r\n * The current angle the Pointer is moving, in radians, based on its previous and current position.\r\n *\r\n * The angle is based on the old position facing to the current position.\r\n *\r\n * This property is updated whenever the Pointer moves, regardless of any button states. In other words,\r\n * it changes based on movement alone - a button doesn't have to be pressed first.\r\n *\r\n * @name Phaser.Input.Pointer#angle\r\n * @type {number}\r\n * @readonly\r\n * @since 3.16.0\r\n */\r\n this.angle = 0;\r\n\r\n /**\r\n * The distance the Pointer has moved, based on its previous and current position.\r\n *\r\n * This value is smoothed out each frame, according to the `motionFactor` property.\r\n *\r\n * This property is updated whenever the Pointer moves, regardless of any button states. In other words,\r\n * it changes based on movement alone - a button doesn't have to be pressed first.\r\n *\r\n * If you need the total distance travelled since the primary buttons was pressed down,\r\n * then use the `Pointer.getDistance` method.\r\n *\r\n * @name Phaser.Input.Pointer#distance\r\n * @type {number}\r\n * @readonly\r\n * @since 3.16.0\r\n */\r\n this.distance = 0;\r\n\r\n /**\r\n * The smoothing factor to apply to the Pointer position.\r\n *\r\n * Due to their nature, pointer positions are inherently noisy. While this is fine for lots of games, if you need cleaner positions\r\n * then you can set this value to apply an automatic smoothing to the positions as they are recorded.\r\n *\r\n * The default value of zero means 'no smoothing'.\r\n * Set to a small value, such as 0.2, to apply an average level of smoothing between positions. You can do this by changing this\r\n * value directly, or by setting the `input.smoothFactor` property in the Game Config.\r\n *\r\n * Positions are only smoothed when the pointer moves. If the primary button on this Pointer enters an Up or Down state, then the position\r\n * is always precise, and not smoothed.\r\n *\r\n * @name Phaser.Input.Pointer#smoothFactor\r\n * @type {number}\r\n * @default 0\r\n * @since 3.16.0\r\n */\r\n this.smoothFactor = 0;\r\n\r\n /**\r\n * The factor applied to the motion smoothing each frame.\r\n *\r\n * This value is passed to the Smooth Step Interpolation that is used to calculate the velocity,\r\n * angle and distance of the Pointer. It's applied every frame, until the midPoint reaches the current\r\n * position of the Pointer. 0.2 provides a good average but can be increased if you need a\r\n * quicker update and are working in a high performance environment. Never set this value to\r\n * zero.\r\n *\r\n * @name Phaser.Input.Pointer#motionFactor\r\n * @type {number}\r\n * @default 0.2\r\n * @since 3.16.0\r\n */\r\n this.motionFactor = 0.2;\r\n\r\n /**\r\n * The x position of this Pointer, translated into the coordinate space of the most recent Camera it interacted with.\r\n *\r\n * If you wish to use this value _outside_ of an input event handler then you should update it first by calling\r\n * the `Pointer.updateWorldPoint` method.\r\n *\r\n * @name Phaser.Input.Pointer#worldX\r\n * @type {number}\r\n * @default 0\r\n * @since 3.10.0\r\n */\r\n this.worldX = 0;\r\n\r\n /**\r\n * The y position of this Pointer, translated into the coordinate space of the most recent Camera it interacted with.\r\n *\r\n * If you wish to use this value _outside_ of an input event handler then you should update it first by calling\r\n * the `Pointer.updateWorldPoint` method.\r\n *\r\n * @name Phaser.Input.Pointer#worldY\r\n * @type {number}\r\n * @default 0\r\n * @since 3.10.0\r\n */\r\n this.worldY = 0;\r\n\r\n /**\r\n * Time when this Pointer was most recently moved (regardless of the state of its buttons, if any)\r\n *\r\n * @name Phaser.Input.Pointer#moveTime\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.moveTime = 0;\r\n\r\n /**\r\n * X coordinate of the Pointer when Button 1 (left button), or Touch, was pressed, used for dragging objects.\r\n *\r\n * @name Phaser.Input.Pointer#downX\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.downX = 0;\r\n\r\n /**\r\n * Y coordinate of the Pointer when Button 1 (left button), or Touch, was pressed, used for dragging objects.\r\n *\r\n * @name Phaser.Input.Pointer#downY\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.downY = 0;\r\n\r\n /**\r\n * The Event timestamp when the first button, or Touch input, was pressed. Used for dragging objects.\r\n *\r\n * @name Phaser.Input.Pointer#downTime\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.downTime = 0;\r\n\r\n /**\r\n * X coordinate of the Pointer when Button 1 (left button), or Touch, was released, used for dragging objects.\r\n *\r\n * @name Phaser.Input.Pointer#upX\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.upX = 0;\r\n\r\n /**\r\n * Y coordinate of the Pointer when Button 1 (left button), or Touch, was released, used for dragging objects.\r\n *\r\n * @name Phaser.Input.Pointer#upY\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.upY = 0;\r\n\r\n /**\r\n * The Event timestamp when the final button, or Touch input, was released. Used for dragging objects.\r\n *\r\n * @name Phaser.Input.Pointer#upTime\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.upTime = 0;\r\n\r\n /**\r\n * Is the primary button down? (usually button 0, the left mouse button)\r\n *\r\n * @name Phaser.Input.Pointer#primaryDown\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.primaryDown = false;\r\n\r\n /**\r\n * Is _any_ button on this pointer considered as being down?\r\n *\r\n * @name Phaser.Input.Pointer#isDown\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.isDown = false;\r\n\r\n /**\r\n * Did the previous input event come from a Touch input (true) or Mouse? (false)\r\n *\r\n * @name Phaser.Input.Pointer#wasTouch\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.wasTouch = false;\r\n\r\n /**\r\n * Did this Pointer get canceled by a touchcancel event?\r\n *\r\n * Note: \"canceled\" is the American-English spelling of \"cancelled\". Please don't submit PRs correcting it!\r\n *\r\n * @name Phaser.Input.Pointer#wasCanceled\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.15.0\r\n */\r\n this.wasCanceled = false;\r\n\r\n /**\r\n * If the mouse is locked, the horizontal relative movement of the Pointer in pixels since last frame.\r\n *\r\n * @name Phaser.Input.Pointer#movementX\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.movementX = 0;\r\n\r\n /**\r\n * If the mouse is locked, the vertical relative movement of the Pointer in pixels since last frame.\r\n *\r\n * @name Phaser.Input.Pointer#movementY\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.movementY = 0;\r\n\r\n /**\r\n * The identifier property of the Pointer as set by the DOM event when this Pointer is started.\r\n *\r\n * @name Phaser.Input.Pointer#identifier\r\n * @type {number}\r\n * @since 3.10.0\r\n */\r\n this.identifier = 0;\r\n\r\n /**\r\n * The pointerId property of the Pointer as set by the DOM event when this Pointer is started.\r\n * The browser can and will recycle this value.\r\n *\r\n * @name Phaser.Input.Pointer#pointerId\r\n * @type {number}\r\n * @since 3.10.0\r\n */\r\n this.pointerId = null;\r\n\r\n /**\r\n * An active Pointer is one that is currently pressed down on the display.\r\n * A Mouse is always considered as active.\r\n *\r\n * @name Phaser.Input.Pointer#active\r\n * @type {boolean}\r\n * @since 3.10.0\r\n */\r\n this.active = (id === 0) ? true : false;\r\n\r\n /**\r\n * Is this pointer Pointer Locked?\r\n *\r\n * Only a mouse pointer can be locked and it only becomes locked when requested via\r\n * the browsers Pointer Lock API.\r\n *\r\n * You can request this by calling the `this.input.mouse.requestPointerLock()` method from\r\n * a `pointerdown` or `pointerup` event handler.\r\n *\r\n * @name Phaser.Input.Pointer#locked\r\n * @readonly\r\n * @type {boolean}\r\n * @since 3.19.0\r\n */\r\n this.locked = false;\r\n\r\n /**\r\n * The horizontal scroll amount that occurred due to the user moving a mouse wheel or similar input device.\r\n *\r\n * @name Phaser.Input.Pointer#deltaX\r\n * @type {number}\r\n * @default 0\r\n * @since 3.18.0\r\n */\r\n this.deltaX = 0;\r\n\r\n /**\r\n * The vertical scroll amount that occurred due to the user moving a mouse wheel or similar input device.\r\n * This value will typically be less than 0 if the user scrolls up and greater than zero if scrolling down.\r\n *\r\n * @name Phaser.Input.Pointer#deltaY\r\n * @type {number}\r\n * @default 0\r\n * @since 3.18.0\r\n */\r\n this.deltaY = 0;\r\n\r\n /**\r\n * The z-axis scroll amount that occurred due to the user moving a mouse wheel or similar input device.\r\n *\r\n * @name Phaser.Input.Pointer#deltaZ\r\n * @type {number}\r\n * @default 0\r\n * @since 3.18.0\r\n */\r\n this.deltaZ = 0;\r\n },\r\n\r\n /**\r\n * Takes a Camera and updates this Pointer's `worldX` and `worldY` values so they are\r\n * the result of a translation through the given Camera.\r\n *\r\n * Note that the values will be automatically replaced the moment the Pointer is\r\n * updated by an input event, such as a mouse move, so should be used immediately.\r\n *\r\n * @method Phaser.Input.Pointer#updateWorldPoint\r\n * @since 3.19.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera which is being tested against.\r\n *\r\n * @return {this} This Pointer object.\r\n */\r\n updateWorldPoint: function (camera)\r\n {\r\n // Stores the world point inside of tempPoint\r\n var temp = camera.getWorldPoint(this.x, this.y);\r\n\r\n this.worldX = temp.x;\r\n this.worldY = temp.y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes a Camera and returns a Vector2 containing the translated position of this Pointer\r\n * within that Camera. This can be used to convert this Pointers position into camera space.\r\n *\r\n * @method Phaser.Input.Pointer#positionToCamera\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use for the translation.\r\n * @param {(Phaser.Math.Vector2|object)} [output] - A Vector2-like object in which to store the translated position.\r\n *\r\n * @return {(Phaser.Math.Vector2|object)} A Vector2 containing the translated coordinates of this Pointer, based on the given camera.\r\n */\r\n positionToCamera: function (camera, output)\r\n {\r\n return camera.getWorldPoint(this.x, this.y, output);\r\n },\r\n\r\n /**\r\n * Calculates the motion of this Pointer, including its velocity and angle of movement.\r\n * This method is called automatically each frame by the Input Manager.\r\n *\r\n * @method Phaser.Input.Pointer#updateMotion\r\n * @private\r\n * @since 3.16.0\r\n */\r\n updateMotion: function ()\r\n {\r\n var cx = this.position.x;\r\n var cy = this.position.y;\r\n\r\n var mx = this.midPoint.x;\r\n var my = this.midPoint.y;\r\n\r\n if (cx === mx && cy === my)\r\n {\r\n // Nothing to do here\r\n return;\r\n }\r\n\r\n // Moving towards our goal ...\r\n var vx = SmoothStepInterpolation(this.motionFactor, mx, cx);\r\n var vy = SmoothStepInterpolation(this.motionFactor, my, cy);\r\n\r\n if (FuzzyEqual(vx, cx, 0.1))\r\n {\r\n vx = cx;\r\n }\r\n\r\n if (FuzzyEqual(vy, cy, 0.1))\r\n {\r\n vy = cy;\r\n }\r\n\r\n this.midPoint.set(vx, vy);\r\n\r\n var dx = cx - vx;\r\n var dy = cy - vy;\r\n\r\n this.velocity.set(dx, dy);\r\n\r\n this.angle = Angle(vx, vy, cx, cy);\r\n\r\n this.distance = Math.sqrt(dx * dx + dy * dy);\r\n },\r\n\r\n /**\r\n * Internal method to handle a Mouse Up Event.\r\n *\r\n * @method Phaser.Input.Pointer#up\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {MouseEvent} event - The Mouse Event to process.\r\n */\r\n up: function (event)\r\n {\r\n if ('buttons' in event)\r\n {\r\n this.buttons = event.buttons;\r\n }\r\n\r\n this.event = event;\r\n\r\n this.button = event.button;\r\n\r\n this.upElement = event.target;\r\n\r\n // Sets the local x/y properties\r\n this.manager.transformPointer(this, event.pageX, event.pageY, false);\r\n\r\n // 0: Main button pressed, usually the left button or the un-initialized state\r\n if (event.button === 0)\r\n {\r\n this.primaryDown = false;\r\n this.upX = this.x;\r\n this.upY = this.y;\r\n }\r\n\r\n if (this.buttons === 0)\r\n {\r\n // No more buttons are still down\r\n this.isDown = false;\r\n\r\n this.upTime = event.timeStamp;\r\n\r\n this.wasTouch = false;\r\n }\r\n },\r\n\r\n /**\r\n * Internal method to handle a Mouse Down Event.\r\n *\r\n * @method Phaser.Input.Pointer#down\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {MouseEvent} event - The Mouse Event to process.\r\n */\r\n down: function (event)\r\n {\r\n if ('buttons' in event)\r\n {\r\n this.buttons = event.buttons;\r\n }\r\n\r\n this.event = event;\r\n\r\n this.button = event.button;\r\n\r\n this.downElement = event.target;\r\n\r\n // Sets the local x/y properties\r\n this.manager.transformPointer(this, event.pageX, event.pageY, false);\r\n\r\n // 0: Main button pressed, usually the left button or the un-initialized state\r\n if (event.button === 0)\r\n {\r\n this.primaryDown = true;\r\n this.downX = this.x;\r\n this.downY = this.y;\r\n }\r\n\r\n if (OS.macOS && event.ctrlKey)\r\n {\r\n // Override button settings on macOS\r\n this.buttons = 2;\r\n this.primaryDown = false;\r\n }\r\n\r\n if (!this.isDown)\r\n {\r\n this.isDown = true;\r\n\r\n this.downTime = event.timeStamp;\r\n }\r\n\r\n this.wasTouch = false;\r\n },\r\n\r\n /**\r\n * Internal method to handle a Mouse Move Event.\r\n *\r\n * @method Phaser.Input.Pointer#move\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {MouseEvent} event - The Mouse Event to process.\r\n */\r\n move: function (event)\r\n {\r\n if ('buttons' in event)\r\n {\r\n this.buttons = event.buttons;\r\n }\r\n\r\n this.event = event;\r\n\r\n // Sets the local x/y properties\r\n this.manager.transformPointer(this, event.pageX, event.pageY, true);\r\n\r\n if (this.locked)\r\n {\r\n // Multiple DOM events may occur within one frame, but only one Phaser event will fire\r\n this.movementX = event.movementX || event.mozMovementX || event.webkitMovementX || 0;\r\n this.movementY = event.movementY || event.mozMovementY || event.webkitMovementY || 0;\r\n }\r\n\r\n this.moveTime = event.timeStamp;\r\n\r\n this.wasTouch = false;\r\n },\r\n\r\n /**\r\n * Internal method to handle a Mouse Wheel Event.\r\n *\r\n * @method Phaser.Input.Pointer#wheel\r\n * @private\r\n * @since 3.18.0\r\n *\r\n * @param {WheelEvent} event - The Wheel Event to process.\r\n */\r\n wheel: function (event)\r\n {\r\n if ('buttons' in event)\r\n {\r\n this.buttons = event.buttons;\r\n }\r\n\r\n this.event = event;\r\n\r\n // Sets the local x/y properties\r\n this.manager.transformPointer(this, event.pageX, event.pageY, false);\r\n\r\n this.deltaX = event.deltaX;\r\n this.deltaY = event.deltaY;\r\n this.deltaZ = event.deltaZ;\r\n\r\n this.wasTouch = false;\r\n },\r\n\r\n /**\r\n * Internal method to handle a Touch Start Event.\r\n *\r\n * @method Phaser.Input.Pointer#touchstart\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Touch} touch - The Changed Touch from the Touch Event.\r\n * @param {TouchEvent} event - The full Touch Event.\r\n */\r\n touchstart: function (touch, event)\r\n {\r\n if (touch['pointerId'])\r\n {\r\n this.pointerId = touch.pointerId;\r\n }\r\n\r\n this.identifier = touch.identifier;\r\n this.target = touch.target;\r\n this.active = true;\r\n\r\n this.buttons = 1;\r\n\r\n this.event = event;\r\n\r\n this.downElement = touch.target;\r\n\r\n // Sets the local x/y properties\r\n this.manager.transformPointer(this, touch.pageX, touch.pageY, false);\r\n\r\n this.primaryDown = true;\r\n this.downX = this.x;\r\n this.downY = this.y;\r\n this.downTime = event.timeStamp;\r\n\r\n this.isDown = true;\r\n\r\n this.wasTouch = true;\r\n this.wasCanceled = false;\r\n\r\n this.updateMotion();\r\n },\r\n\r\n /**\r\n * Internal method to handle a Touch Move Event.\r\n *\r\n * @method Phaser.Input.Pointer#touchmove\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Touch} touch - The Changed Touch from the Touch Event.\r\n * @param {TouchEvent} event - The full Touch Event.\r\n */\r\n touchmove: function (touch, event)\r\n {\r\n this.event = event;\r\n\r\n // Sets the local x/y properties\r\n this.manager.transformPointer(this, touch.pageX, touch.pageY, true);\r\n\r\n this.moveTime = event.timeStamp;\r\n\r\n this.wasTouch = true;\r\n\r\n this.updateMotion();\r\n },\r\n\r\n /**\r\n * Internal method to handle a Touch End Event.\r\n *\r\n * @method Phaser.Input.Pointer#touchend\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Touch} touch - The Changed Touch from the Touch Event.\r\n * @param {TouchEvent} event - The full Touch Event.\r\n */\r\n touchend: function (touch, event)\r\n {\r\n this.buttons = 0;\r\n\r\n this.event = event;\r\n\r\n this.upElement = touch.target;\r\n\r\n // Sets the local x/y properties\r\n this.manager.transformPointer(this, touch.pageX, touch.pageY, false);\r\n\r\n this.primaryDown = false;\r\n this.upX = this.x;\r\n this.upY = this.y;\r\n this.upTime = event.timeStamp;\r\n\r\n this.isDown = false;\r\n\r\n this.wasTouch = true;\r\n this.wasCanceled = false;\r\n\r\n this.active = false;\r\n\r\n this.updateMotion();\r\n },\r\n\r\n /**\r\n * Internal method to handle a Touch Cancel Event.\r\n *\r\n * @method Phaser.Input.Pointer#touchcancel\r\n * @private\r\n * @since 3.15.0\r\n *\r\n * @param {Touch} touch - The Changed Touch from the Touch Event.\r\n * @param {TouchEvent} event - The full Touch Event.\r\n */\r\n touchcancel: function (touch, event)\r\n {\r\n this.buttons = 0;\r\n\r\n this.event = event;\r\n\r\n this.upElement = touch.target;\r\n\r\n // Sets the local x/y properties\r\n this.manager.transformPointer(this, touch.pageX, touch.pageY, false);\r\n\r\n this.primaryDown = false;\r\n this.upX = this.x;\r\n this.upY = this.y;\r\n this.upTime = event.timeStamp;\r\n\r\n this.isDown = false;\r\n\r\n this.wasTouch = true;\r\n this.wasCanceled = true;\r\n\r\n this.active = false;\r\n },\r\n\r\n /**\r\n * Checks to see if any buttons are being held down on this Pointer.\r\n *\r\n * @method Phaser.Input.Pointer#noButtonDown\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} `true` if no buttons are being held down.\r\n */\r\n noButtonDown: function ()\r\n {\r\n return (this.buttons === 0);\r\n },\r\n\r\n /**\r\n * Checks to see if the left button is being held down on this Pointer.\r\n *\r\n * @method Phaser.Input.Pointer#leftButtonDown\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} `true` if the left button is being held down.\r\n */\r\n leftButtonDown: function ()\r\n {\r\n return (this.buttons & 1) ? true : false;\r\n },\r\n\r\n /**\r\n * Checks to see if the right button is being held down on this Pointer.\r\n *\r\n * @method Phaser.Input.Pointer#rightButtonDown\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} `true` if the right button is being held down.\r\n */\r\n rightButtonDown: function ()\r\n {\r\n return (this.buttons & 2) ? true : false;\r\n },\r\n\r\n /**\r\n * Checks to see if the middle button is being held down on this Pointer.\r\n *\r\n * @method Phaser.Input.Pointer#middleButtonDown\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} `true` if the middle button is being held down.\r\n */\r\n middleButtonDown: function ()\r\n {\r\n return (this.buttons & 4) ? true : false;\r\n },\r\n\r\n /**\r\n * Checks to see if the back button is being held down on this Pointer.\r\n *\r\n * @method Phaser.Input.Pointer#backButtonDown\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} `true` if the back button is being held down.\r\n */\r\n backButtonDown: function ()\r\n {\r\n return (this.buttons & 8) ? true : false;\r\n },\r\n\r\n /**\r\n * Checks to see if the forward button is being held down on this Pointer.\r\n *\r\n * @method Phaser.Input.Pointer#forwardButtonDown\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} `true` if the forward button is being held down.\r\n */\r\n forwardButtonDown: function ()\r\n {\r\n return (this.buttons & 16) ? true : false;\r\n },\r\n\r\n /**\r\n * Checks to see if the release of the left button was the most recent activity on this Pointer.\r\n *\r\n * @method Phaser.Input.Pointer#leftButtonReleased\r\n * @since 3.18.0\r\n *\r\n * @return {boolean} `true` if the release of the left button was the most recent activity on this Pointer.\r\n */\r\n leftButtonReleased: function ()\r\n {\r\n return this.buttons === 0 ? (this.button === 0 && !this.isDown) : this.button === 0;\r\n },\r\n\r\n /**\r\n * Checks to see if the release of the right button was the most recent activity on this Pointer.\r\n *\r\n * @method Phaser.Input.Pointer#rightButtonReleased\r\n * @since 3.18.0\r\n *\r\n * @return {boolean} `true` if the release of the right button was the most recent activity on this Pointer.\r\n */\r\n rightButtonReleased: function ()\r\n {\r\n return this.buttons === 0 ? (this.button === 2 && !this.isDown) : this.button === 2;\r\n },\r\n\r\n /**\r\n * Checks to see if the release of the middle button was the most recent activity on this Pointer.\r\n *\r\n * @method Phaser.Input.Pointer#middleButtonReleased\r\n * @since 3.18.0\r\n *\r\n * @return {boolean} `true` if the release of the middle button was the most recent activity on this Pointer.\r\n */\r\n middleButtonReleased: function ()\r\n {\r\n return this.buttons === 0 ? (this.button === 1 && !this.isDown) : this.button === 1;\r\n },\r\n\r\n /**\r\n * Checks to see if the release of the back button was the most recent activity on this Pointer.\r\n *\r\n * @method Phaser.Input.Pointer#backButtonReleased\r\n * @since 3.18.0\r\n *\r\n * @return {boolean} `true` if the release of the back button was the most recent activity on this Pointer.\r\n */\r\n backButtonReleased: function ()\r\n {\r\n return this.buttons === 0 ? (this.button === 3 && !this.isDown) : this.button === 3;\r\n },\r\n\r\n /**\r\n * Checks to see if the release of the forward button was the most recent activity on this Pointer.\r\n *\r\n * @method Phaser.Input.Pointer#forwardButtonReleased\r\n * @since 3.18.0\r\n *\r\n * @return {boolean} `true` if the release of the forward button was the most recent activity on this Pointer.\r\n */\r\n forwardButtonReleased: function ()\r\n {\r\n return this.buttons === 0 ? (this.button === 4 && !this.isDown) : this.button === 4;\r\n },\r\n\r\n /**\r\n * If the Pointer has a button pressed down at the time this method is called, it will return the\r\n * distance between the Pointer's `downX` and `downY` values and the current position.\r\n *\r\n * If no button is held down, it will return the last recorded distance, based on where\r\n * the Pointer was when the button was released.\r\n *\r\n * If you wish to get the distance being travelled currently, based on the velocity of the Pointer,\r\n * then see the `Pointer.distance` property.\r\n *\r\n * @method Phaser.Input.Pointer#getDistance\r\n * @since 3.13.0\r\n *\r\n * @return {number} The distance the Pointer moved.\r\n */\r\n getDistance: function ()\r\n {\r\n if (this.isDown)\r\n {\r\n return Distance(this.downX, this.downY, this.x, this.y);\r\n }\r\n else\r\n {\r\n return Distance(this.downX, this.downY, this.upX, this.upY);\r\n }\r\n },\r\n\r\n /**\r\n * If the Pointer has a button pressed down at the time this method is called, it will return the\r\n * horizontal distance between the Pointer's `downX` and `downY` values and the current position.\r\n *\r\n * If no button is held down, it will return the last recorded horizontal distance, based on where\r\n * the Pointer was when the button was released.\r\n *\r\n * @method Phaser.Input.Pointer#getDistanceX\r\n * @since 3.16.0\r\n *\r\n * @return {number} The horizontal distance the Pointer moved.\r\n */\r\n getDistanceX: function ()\r\n {\r\n if (this.isDown)\r\n {\r\n return Math.abs(this.downX - this.x);\r\n }\r\n else\r\n {\r\n return Math.abs(this.downX - this.upX);\r\n }\r\n },\r\n\r\n /**\r\n * If the Pointer has a button pressed down at the time this method is called, it will return the\r\n * vertical distance between the Pointer's `downX` and `downY` values and the current position.\r\n *\r\n * If no button is held down, it will return the last recorded vertical distance, based on where\r\n * the Pointer was when the button was released.\r\n *\r\n * @method Phaser.Input.Pointer#getDistanceY\r\n * @since 3.16.0\r\n *\r\n * @return {number} The vertical distance the Pointer moved.\r\n */\r\n getDistanceY: function ()\r\n {\r\n if (this.isDown)\r\n {\r\n return Math.abs(this.downY - this.y);\r\n }\r\n else\r\n {\r\n return Math.abs(this.downY - this.upY);\r\n }\r\n },\r\n\r\n /**\r\n * If the Pointer has a button pressed down at the time this method is called, it will return the\r\n * duration since the button was pressed down.\r\n *\r\n * If no button is held down, it will return the last recorded duration, based on the time\r\n * the last button on the Pointer was released.\r\n *\r\n * @method Phaser.Input.Pointer#getDuration\r\n * @since 3.16.0\r\n *\r\n * @return {number} The duration the Pointer was held down for in milliseconds.\r\n */\r\n getDuration: function ()\r\n {\r\n if (this.isDown)\r\n {\r\n return (this.manager.time - this.downTime);\r\n }\r\n else\r\n {\r\n return (this.upTime - this.downTime);\r\n }\r\n },\r\n\r\n /**\r\n * If the Pointer has a button pressed down at the time this method is called, it will return the\r\n * angle between the Pointer's `downX` and `downY` values and the current position.\r\n *\r\n * If no button is held down, it will return the last recorded angle, based on where\r\n * the Pointer was when the button was released.\r\n *\r\n * The angle is based on the old position facing to the current position.\r\n *\r\n * If you wish to get the current angle, based on the velocity of the Pointer, then\r\n * see the `Pointer.angle` property.\r\n *\r\n * @method Phaser.Input.Pointer#getAngle\r\n * @since 3.16.0\r\n *\r\n * @return {number} The angle between the Pointer's coordinates in radians.\r\n */\r\n getAngle: function ()\r\n {\r\n if (this.isDown)\r\n {\r\n return Angle(this.downX, this.downY, this.x, this.y);\r\n }\r\n else\r\n {\r\n return Angle(this.downX, this.downY, this.upX, this.upY);\r\n }\r\n },\r\n\r\n /**\r\n * Takes the previous and current Pointer positions and then generates an array of interpolated values between\r\n * the two. The array will be populated up to the size of the `steps` argument.\r\n *\r\n * ```javaScript\r\n * var points = pointer.getInterpolatedPosition(4);\r\n *\r\n * // points[0] = { x: 0, y: 0 }\r\n * // points[1] = { x: 2, y: 1 }\r\n * // points[2] = { x: 3, y: 2 }\r\n * // points[3] = { x: 6, y: 3 }\r\n * ```\r\n *\r\n * Use this if you need to get smoothed values between the previous and current pointer positions. DOM pointer\r\n * events can often fire faster than the main browser loop, and this will help you avoid janky movement\r\n * especially if you have an object following a Pointer.\r\n *\r\n * Note that if you provide an output array it will only be populated up to the number of steps provided.\r\n * It will not clear any previous data that may have existed beyond the range of the steps count.\r\n *\r\n * Internally it uses the Smooth Step interpolation calculation.\r\n *\r\n * @method Phaser.Input.Pointer#getInterpolatedPosition\r\n * @since 3.11.0\r\n *\r\n * @param {number} [steps=10] - The number of interpolation steps to use.\r\n * @param {array} [out] - An array to store the results in. If not provided a new one will be created.\r\n *\r\n * @return {array} An array of interpolated values.\r\n */\r\n getInterpolatedPosition: function (steps, out)\r\n {\r\n if (steps === undefined) { steps = 10; }\r\n if (out === undefined) { out = []; }\r\n\r\n var prevX = this.prevPosition.x;\r\n var prevY = this.prevPosition.y;\r\n\r\n var curX = this.position.x;\r\n var curY = this.position.y;\r\n\r\n for (var i = 0; i < steps; i++)\r\n {\r\n var t = (1 / steps) * i;\r\n\r\n out[i] = { x: SmoothStepInterpolation(t, prevX, curX), y: SmoothStepInterpolation(t, prevY, curY) };\r\n }\r\n\r\n return out;\r\n },\r\n\r\n /**\r\n * Fully reset this Pointer back to its unitialized state.\r\n *\r\n * @method Phaser.Input.Pointer#reset\r\n * @since 3.60.0\r\n */\r\n reset: function ()\r\n {\r\n this.event = null;\r\n this.downElement = null;\r\n this.upElement = null;\r\n\r\n this.button = 0;\r\n this.buttons = 0;\r\n\r\n this.position.set(0, 0);\r\n this.prevPosition.set(0, 0);\r\n this.midPoint.set(-1, -1);\r\n this.velocity.set(0, 0);\r\n this.angle = 0;\r\n this.distance = 0;\r\n this.worldX = 0;\r\n this.worldY = 0;\r\n this.downX = 0;\r\n this.downY = 0;\r\n this.upX = 0;\r\n this.upY = 0;\r\n this.moveTime = 0;\r\n this.upTime = 0;\r\n this.downTime = 0;\r\n this.primaryDown = false;\r\n this.isDown = false;\r\n this.wasTouch = false;\r\n this.wasCanceled = false;\r\n this.movementX = 0;\r\n this.movementY = 0;\r\n this.identifier = 0;\r\n this.pointerId = null;\r\n this.deltaX = 0;\r\n this.deltaY = 0;\r\n this.deltaZ = 0;\r\n\r\n this.active = (this.id === 0) ? true : false;\r\n },\r\n\r\n /**\r\n * Destroys this Pointer instance and resets its external references.\r\n *\r\n * @method Phaser.Input.Pointer#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.camera = null;\r\n this.manager = null;\r\n this.position = null;\r\n },\r\n\r\n /**\r\n * The x position of this Pointer.\r\n * The value is in screen space.\r\n * See `worldX` to get a camera converted position.\r\n *\r\n * @name Phaser.Input.Pointer#x\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n x: {\r\n\r\n get: function ()\r\n {\r\n return this.position.x;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.position.x = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The y position of this Pointer.\r\n * The value is in screen space.\r\n * See `worldY` to get a camera converted position.\r\n *\r\n * @name Phaser.Input.Pointer#y\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n y: {\r\n\r\n get: function ()\r\n {\r\n return this.position.y;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.position.y = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Time when this Pointer was most recently updated by a DOM Event.\r\n * This comes directly from the `event.timeStamp` property.\r\n * If no event has yet taken place, it will return zero.\r\n *\r\n * @name Phaser.Input.Pointer#time\r\n * @type {number}\r\n * @readonly\r\n * @since 3.16.0\r\n */\r\n time: {\r\n\r\n get: function ()\r\n {\r\n return (this.event) ? this.event.timeStamp : 0;\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Pointer;\r\n\n\n/***/ }),\n\n/***/ 93301:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar INPUT_CONST = {\r\n\r\n /**\r\n * The mouse pointer is being held down.\r\n *\r\n * @name Phaser.Input.MOUSE_DOWN\r\n * @type {number}\r\n * @since 3.10.0\r\n */\r\n MOUSE_DOWN: 0,\r\n\r\n /**\r\n * The mouse pointer is being moved.\r\n *\r\n * @name Phaser.Input.MOUSE_MOVE\r\n * @type {number}\r\n * @since 3.10.0\r\n */\r\n MOUSE_MOVE: 1,\r\n\r\n /**\r\n * The mouse pointer is released.\r\n *\r\n * @name Phaser.Input.MOUSE_UP\r\n * @type {number}\r\n * @since 3.10.0\r\n */\r\n MOUSE_UP: 2,\r\n\r\n /**\r\n * A touch pointer has been started.\r\n *\r\n * @name Phaser.Input.TOUCH_START\r\n * @type {number}\r\n * @since 3.10.0\r\n */\r\n TOUCH_START: 3,\r\n\r\n /**\r\n * A touch pointer has been started.\r\n *\r\n * @name Phaser.Input.TOUCH_MOVE\r\n * @type {number}\r\n * @since 3.10.0\r\n */\r\n TOUCH_MOVE: 4,\r\n\r\n /**\r\n * A touch pointer has been started.\r\n *\r\n * @name Phaser.Input.TOUCH_END\r\n * @type {number}\r\n * @since 3.10.0\r\n */\r\n TOUCH_END: 5,\r\n\r\n /**\r\n * The pointer lock has changed.\r\n *\r\n * @name Phaser.Input.POINTER_LOCK_CHANGE\r\n * @type {number}\r\n * @since 3.10.0\r\n */\r\n POINTER_LOCK_CHANGE: 6,\r\n\r\n /**\r\n * A touch pointer has been been cancelled by the browser.\r\n *\r\n * @name Phaser.Input.TOUCH_CANCEL\r\n * @type {number}\r\n * @since 3.15.0\r\n */\r\n TOUCH_CANCEL: 7,\r\n\r\n /**\r\n * The mouse wheel changes.\r\n *\r\n * @name Phaser.Input.MOUSE_WHEEL\r\n * @type {number}\r\n * @since 3.18.0\r\n */\r\n MOUSE_WHEEL: 8\r\n\r\n};\r\n\r\nmodule.exports = INPUT_CONST;\r\n\n\n/***/ }),\n\n/***/ 7179:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Input Plugin Boot Event.\r\n *\r\n * This internal event is dispatched by the Input Plugin when it boots, signalling to all of its systems to create themselves.\r\n *\r\n * @event Phaser.Input.Events#BOOT\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\nmodule.exports = 'boot';\r\n\n\n/***/ }),\n\n/***/ 85375:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Input Plugin Destroy Event.\r\n *\r\n * This internal event is dispatched by the Input Plugin when it is destroyed, signalling to all of its systems to destroy themselves.\r\n *\r\n * @event Phaser.Input.Events#DESTROY\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\nmodule.exports = 'destroy';\r\n\n\n/***/ }),\n\n/***/ 39843:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Pointer Drag End Input Event.\r\n *\r\n * This event is dispatched by the Input Plugin belonging to a Scene if a pointer stops dragging a Game Object.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('dragend', listener)`.\r\n *\r\n * To listen for this event from a _specific_ Game Object, use the [GAMEOBJECT_DRAG_END]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_DRAG_END} event instead.\r\n *\r\n * @event Phaser.Input.Events#DRAG_END\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The interactive Game Object that this pointer stopped dragging.\r\n * @param {boolean} dropped - Whether the Game Object was dropped onto a target.\r\n */\r\nmodule.exports = 'dragend';\r\n\n\n/***/ }),\n\n/***/ 23388:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Pointer Drag Enter Input Event.\r\n *\r\n * This event is dispatched by the Input Plugin belonging to a Scene if a pointer drags a Game Object into a Drag Target.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('dragenter', listener)`.\r\n *\r\n * A Pointer can only drag a single Game Object at once.\r\n *\r\n * To listen for this event from a _specific_ Game Object, use the [GAMEOBJECT_DRAG_ENTER]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_DRAG_ENTER} event instead.\r\n *\r\n * @event Phaser.Input.Events#DRAG_ENTER\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The interactive Game Object that this pointer is dragging.\r\n * @param {Phaser.GameObjects.GameObject} target - The drag target that this pointer has moved into.\r\n */\r\nmodule.exports = 'dragenter';\r\n\n\n/***/ }),\n\n/***/ 16133:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Pointer Drag Input Event.\r\n *\r\n * This event is dispatched by the Input Plugin belonging to a Scene if a pointer moves while dragging a Game Object.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('drag', listener)`.\r\n *\r\n * A Pointer can only drag a single Game Object at once.\r\n *\r\n * To listen for this event from a _specific_ Game Object, use the [GAMEOBJECT_DRAG]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_DRAG} event instead.\r\n *\r\n * @event Phaser.Input.Events#DRAG\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The interactive Game Object that this pointer is dragging.\r\n * @param {number} dragX - The x coordinate where the Pointer is currently dragging the Game Object, in world space.\r\n * @param {number} dragY - The y coordinate where the Pointer is currently dragging the Game Object, in world space.\r\n */\r\nmodule.exports = 'drag';\r\n\n\n/***/ }),\n\n/***/ 27829:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Pointer Drag Leave Input Event.\r\n *\r\n * This event is dispatched by the Input Plugin belonging to a Scene if a pointer drags a Game Object out of a Drag Target.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('dragleave', listener)`.\r\n *\r\n * A Pointer can only drag a single Game Object at once.\r\n *\r\n * To listen for this event from a _specific_ Game Object, use the [GAMEOBJECT_DRAG_LEAVE]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_DRAG_LEAVE} event instead.\r\n *\r\n * @event Phaser.Input.Events#DRAG_LEAVE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The interactive Game Object that this pointer is dragging.\r\n * @param {Phaser.GameObjects.GameObject} target - The drag target that this pointer has left.\r\n */\r\nmodule.exports = 'dragleave';\r\n\n\n/***/ }),\n\n/***/ 53904:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Pointer Drag Over Input Event.\r\n *\r\n * This event is dispatched by the Input Plugin belonging to a Scene if a pointer drags a Game Object over a Drag Target.\r\n *\r\n * When the Game Object first enters the drag target it will emit a `dragenter` event. If it then moves while within\r\n * the drag target, it will emit this event instead.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('dragover', listener)`.\r\n *\r\n * A Pointer can only drag a single Game Object at once.\r\n *\r\n * To listen for this event from a _specific_ Game Object, use the [GAMEOBJECT_DRAG_OVER]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_DRAG_OVER} event instead.\r\n *\r\n * @event Phaser.Input.Events#DRAG_OVER\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The interactive Game Object that this pointer is dragging.\r\n * @param {Phaser.GameObjects.GameObject} target - The drag target that this pointer has moved over.\r\n */\r\nmodule.exports = 'dragover';\r\n\n\n/***/ }),\n\n/***/ 56058:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Pointer Drag Start Input Event.\r\n *\r\n * This event is dispatched by the Input Plugin belonging to a Scene if a pointer starts to drag any Game Object.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('dragstart', listener)`.\r\n *\r\n * A Pointer can only drag a single Game Object at once.\r\n *\r\n * To listen for this event from a _specific_ Game Object, use the [GAMEOBJECT_DRAG_START]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_DRAG_START} event instead.\r\n *\r\n * @event Phaser.Input.Events#DRAG_START\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The interactive Game Object that this pointer is dragging.\r\n */\r\nmodule.exports = 'dragstart';\r\n\n\n/***/ }),\n\n/***/ 2642:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Pointer Drop Input Event.\r\n *\r\n * This event is dispatched by the Input Plugin belonging to a Scene if a pointer drops a Game Object on a Drag Target.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('drop', listener)`.\r\n *\r\n * To listen for this event from a _specific_ Game Object, use the [GAMEOBJECT_DROP]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_DROP} event instead.\r\n *\r\n * @event Phaser.Input.Events#DROP\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The interactive Game Object that this pointer was dragging.\r\n * @param {Phaser.GameObjects.GameObject} target - The Drag Target the `gameObject` has been dropped on.\r\n */\r\nmodule.exports = 'drop';\r\n\n\n/***/ }),\n\n/***/ 88171:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Down Input Event.\r\n *\r\n * This event is dispatched by the Input Plugin belonging to a Scene if a pointer is pressed down on _any_ interactive Game Object.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('gameobjectdown', listener)`.\r\n *\r\n * To receive this event, the Game Objects must have been set as interactive.\r\n * See [GameObject.setInteractive]{@link Phaser.GameObjects.GameObject#setInteractive} for more details.\r\n *\r\n * To listen for this event from a _specific_ Game Object, use the [GAMEOBJECT_POINTER_DOWN]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_DOWN} event instead.\r\n *\r\n * The event hierarchy is as follows:\r\n *\r\n * 1. [GAMEOBJECT_POINTER_DOWN]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_DOWN}\r\n * 2. [GAMEOBJECT_DOWN]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_DOWN}\r\n * 3. [POINTER_DOWN]{@linkcode Phaser.Input.Events#event:POINTER_DOWN} or [POINTER_DOWN_OUTSIDE]{@linkcode Phaser.Input.Events#event:POINTER_DOWN_OUTSIDE}\r\n *\r\n * With the top event being dispatched first and then flowing down the list. Note that higher-up event handlers can stop\r\n * the propagation of this event.\r\n *\r\n * @event Phaser.Input.Events#GAMEOBJECT_DOWN\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object the pointer was pressed down on.\r\n * @param {Phaser.Types.Input.EventData} event - The Phaser input event. You can call `stopPropagation()` to halt it from going any further in the event flow.\r\n */\r\nmodule.exports = 'gameobjectdown';\r\n\n\n/***/ }),\n\n/***/ 36147:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Drag End Event.\r\n *\r\n * This event is dispatched by an interactive Game Object if a pointer stops dragging it.\r\n *\r\n * Listen to this event from a Game Object using: `gameObject.on('dragend', listener)`.\r\n * Note that the scope of the listener is automatically set to be the Game Object instance itself.\r\n *\r\n * To receive this event, the Game Object must have been set as interactive and enabled for drag.\r\n * See [GameObject.setInteractive](Phaser.GameObjects.GameObject#setInteractive) for more details.\r\n *\r\n * @event Phaser.Input.Events#GAMEOBJECT_DRAG_END\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {number} dragX - The x coordinate where the Pointer stopped dragging the Game Object, in world space.\r\n * @param {number} dragY - The y coordinate where the Pointer stopped dragging the Game Object, in world space.\r\n * @param {boolean} dropped - Whether the Game Object was dropped onto a target.\r\n */\r\nmodule.exports = 'dragend';\r\n\n\n/***/ }),\n\n/***/ 71692:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Drag Enter Event.\r\n *\r\n * This event is dispatched by an interactive Game Object if a pointer drags it into a drag target.\r\n *\r\n * Listen to this event from a Game Object using: `gameObject.on('dragenter', listener)`.\r\n * Note that the scope of the listener is automatically set to be the Game Object instance itself.\r\n *\r\n * To receive this event, the Game Object must have been set as interactive and enabled for drag.\r\n * See [GameObject.setInteractive]{@link Phaser.GameObjects.GameObject#setInteractive} for more details.\r\n *\r\n * @event Phaser.Input.Events#GAMEOBJECT_DRAG_ENTER\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject} target - The drag target that this pointer has moved into.\r\n */\r\nmodule.exports = 'dragenter';\r\n\n\n/***/ }),\n\n/***/ 96149:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Drag Event.\r\n *\r\n * This event is dispatched by an interactive Game Object if a pointer moves while dragging it.\r\n *\r\n * Listen to this event from a Game Object using: `gameObject.on('drag', listener)`.\r\n * Note that the scope of the listener is automatically set to be the Game Object instance itself.\r\n *\r\n * To receive this event, the Game Object must have been set as interactive and enabled for drag.\r\n * See [GameObject.setInteractive]{@link Phaser.GameObjects.GameObject#setInteractive} for more details.\r\n *\r\n * @event Phaser.Input.Events#GAMEOBJECT_DRAG\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {number} dragX - The x coordinate where the Pointer is currently dragging the Game Object, in world space.\r\n * @param {number} dragY - The y coordinate where the Pointer is currently dragging the Game Object, in world space.\r\n */\r\nmodule.exports = 'drag';\r\n\n\n/***/ }),\n\n/***/ 81285:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Drag Leave Event.\r\n *\r\n * This event is dispatched by an interactive Game Object if a pointer drags it out of a drag target.\r\n *\r\n * Listen to this event from a Game Object using: `gameObject.on('dragleave', listener)`.\r\n * Note that the scope of the listener is automatically set to be the Game Object instance itself.\r\n *\r\n * To receive this event, the Game Object must have been set as interactive and enabled for drag.\r\n * See [GameObject.setInteractive]{@link Phaser.GameObjects.GameObject#setInteractive} for more details.\r\n *\r\n * @event Phaser.Input.Events#GAMEOBJECT_DRAG_LEAVE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject} target - The drag target that this pointer has left.\r\n */\r\nmodule.exports = 'dragleave';\r\n\n\n/***/ }),\n\n/***/ 74048:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Drag Over Event.\r\n *\r\n * This event is dispatched by an interactive Game Object if a pointer drags it over a drag target.\r\n *\r\n * When the Game Object first enters the drag target it will emit a `dragenter` event. If it then moves while within\r\n * the drag target, it will emit this event instead.\r\n *\r\n * Listen to this event from a Game Object using: `gameObject.on('dragover', listener)`.\r\n * Note that the scope of the listener is automatically set to be the Game Object instance itself.\r\n *\r\n * To receive this event, the Game Object must have been set as interactive and enabled for drag.\r\n * See [GameObject.setInteractive]{@link Phaser.GameObjects.GameObject#setInteractive} for more details.\r\n *\r\n * @event Phaser.Input.Events#GAMEOBJECT_DRAG_OVER\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject} target - The drag target that this pointer has moved over.\r\n */\r\nmodule.exports = 'dragover';\r\n\n\n/***/ }),\n\n/***/ 21322:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Drag Start Event.\r\n *\r\n * This event is dispatched by an interactive Game Object if a pointer starts to drag it.\r\n *\r\n * Listen to this event from a Game Object using: `gameObject.on('dragstart', listener)`.\r\n * Note that the scope of the listener is automatically set to be the Game Object instance itself.\r\n *\r\n * To receive this event, the Game Object must have been set as interactive and enabled for drag.\r\n * See [GameObject.setInteractive]{@link Phaser.GameObjects.GameObject#setInteractive} for more details.\r\n *\r\n * There are lots of useful drag related properties that are set within the Game Object when dragging occurs.\r\n * For example, `gameObject.input.dragStartX`, `dragStartY` and so on.\r\n *\r\n * @event Phaser.Input.Events#GAMEOBJECT_DRAG_START\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {number} dragX - The x coordinate where the Pointer is currently dragging the Game Object, in world space.\r\n * @param {number} dragY - The y coordinate where the Pointer is currently dragging the Game Object, in world space.\r\n */\r\nmodule.exports = 'dragstart';\r\n\n\n/***/ }),\n\n/***/ 49378:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Drop Event.\r\n *\r\n * This event is dispatched by an interactive Game Object if a pointer drops it on a Drag Target.\r\n *\r\n * Listen to this event from a Game Object using: `gameObject.on('drop', listener)`.\r\n * Note that the scope of the listener is automatically set to be the Game Object instance itself.\r\n *\r\n * To receive this event, the Game Object must have been set as interactive and enabled for drag.\r\n * See [GameObject.setInteractive]{@link Phaser.GameObjects.GameObject#setInteractive} for more details.\r\n *\r\n * @event Phaser.Input.Events#GAMEOBJECT_DROP\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject} target - The Drag Target the `gameObject` has been dropped on.\r\n */\r\nmodule.exports = 'drop';\r\n\n\n/***/ }),\n\n/***/ 86754:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Move Input Event.\r\n *\r\n * This event is dispatched by the Input Plugin belonging to a Scene if a pointer is moved across _any_ interactive Game Object.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('gameobjectmove', listener)`.\r\n *\r\n * To receive this event, the Game Objects must have been set as interactive.\r\n * See [GameObject.setInteractive]{@link Phaser.GameObjects.GameObject#setInteractive} for more details.\r\n *\r\n * To listen for this event from a _specific_ Game Object, use the [GAMEOBJECT_POINTER_MOVE]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_MOVE} event instead.\r\n *\r\n * The event hierarchy is as follows:\r\n *\r\n * 1. [GAMEOBJECT_POINTER_MOVE]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_MOVE}\r\n * 2. [GAMEOBJECT_MOVE]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_MOVE}\r\n * 3. [POINTER_MOVE]{@linkcode Phaser.Input.Events#event:POINTER_MOVE}\r\n *\r\n * With the top event being dispatched first and then flowing down the list. Note that higher-up event handlers can stop\r\n * the propagation of this event.\r\n *\r\n * @event Phaser.Input.Events#GAMEOBJECT_MOVE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object the pointer was moved on.\r\n * @param {Phaser.Types.Input.EventData} event - The Phaser input event. You can call `stopPropagation()` to halt it from going any further in the event flow.\r\n */\r\nmodule.exports = 'gameobjectmove';\r\n\n\n/***/ }),\n\n/***/ 86433:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Out Input Event.\r\n *\r\n * This event is dispatched by the Input Plugin belonging to a Scene if a pointer moves out of _any_ interactive Game Object.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('gameobjectout', listener)`.\r\n *\r\n * To receive this event, the Game Objects must have been set as interactive.\r\n * See [GameObject.setInteractive]{@link Phaser.GameObjects.GameObject#setInteractive} for more details.\r\n *\r\n * To listen for this event from a _specific_ Game Object, use the [GAMEOBJECT_POINTER_OUT]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_OUT} event instead.\r\n *\r\n * The event hierarchy is as follows:\r\n *\r\n * 1. [GAMEOBJECT_POINTER_OUT]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_OUT}\r\n * 2. [GAMEOBJECT_OUT]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_OUT}\r\n * 3. [POINTER_OUT]{@linkcode Phaser.Input.Events#event:POINTER_OUT}\r\n *\r\n * With the top event being dispatched first and then flowing down the list. Note that higher-up event handlers can stop\r\n * the propagation of this event.\r\n *\r\n * If the pointer leaves the game canvas itself, it will not trigger an this event. To handle those cases,\r\n * please listen for the [GAME_OUT]{@linkcode Phaser.Input.Events#event:GAME_OUT} event.\r\n *\r\n * @event Phaser.Input.Events#GAMEOBJECT_OUT\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object the pointer moved out of.\r\n * @param {Phaser.Types.Input.EventData} event - The Phaser input event. You can call `stopPropagation()` to halt it from going any further in the event flow.\r\n */\r\nmodule.exports = 'gameobjectout';\r\n\n\n/***/ }),\n\n/***/ 60709:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Over Input Event.\r\n *\r\n * This event is dispatched by the Input Plugin belonging to a Scene if a pointer moves over _any_ interactive Game Object.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('gameobjectover', listener)`.\r\n *\r\n * To receive this event, the Game Objects must have been set as interactive.\r\n * See [GameObject.setInteractive]{@link Phaser.GameObjects.GameObject#setInteractive} for more details.\r\n *\r\n * To listen for this event from a _specific_ Game Object, use the [GAMEOBJECT_POINTER_OVER]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_OVER} event instead.\r\n *\r\n * The event hierarchy is as follows:\r\n *\r\n * 1. [GAMEOBJECT_POINTER_OVER]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_OVER}\r\n * 2. [GAMEOBJECT_OVER]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_OVER}\r\n * 3. [POINTER_OVER]{@linkcode Phaser.Input.Events#event:POINTER_OVER}\r\n *\r\n * With the top event being dispatched first and then flowing down the list. Note that higher-up event handlers can stop\r\n * the propagation of this event.\r\n *\r\n * @event Phaser.Input.Events#GAMEOBJECT_OVER\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object the pointer moved over.\r\n * @param {Phaser.Types.Input.EventData} event - The Phaser input event. You can call `stopPropagation()` to halt it from going any further in the event flow.\r\n */\r\nmodule.exports = 'gameobjectover';\r\n\n\n/***/ }),\n\n/***/ 24081:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Pointer Down Event.\r\n *\r\n * This event is dispatched by an interactive Game Object if a pointer is pressed down on it.\r\n *\r\n * Listen to this event from a Game Object using: `gameObject.on('pointerdown', listener)`.\r\n * Note that the scope of the listener is automatically set to be the Game Object instance itself.\r\n *\r\n * To receive this event, the Game Object must have been set as interactive.\r\n * See [GameObject.setInteractive]{@link Phaser.GameObjects.GameObject#setInteractive} for more details.\r\n *\r\n * The event hierarchy is as follows:\r\n *\r\n * 1. [GAMEOBJECT_POINTER_DOWN]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_DOWN}\r\n * 2. [GAMEOBJECT_DOWN]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_DOWN}\r\n * 3. [POINTER_DOWN]{@linkcode Phaser.Input.Events#event:POINTER_DOWN} or [POINTER_DOWN_OUTSIDE]{@linkcode Phaser.Input.Events#event:POINTER_DOWN_OUTSIDE}\r\n *\r\n * With the top event being dispatched first and then flowing down the list. Note that higher-up event handlers can stop\r\n * the propagation of this event.\r\n *\r\n * @event Phaser.Input.Events#GAMEOBJECT_POINTER_DOWN\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {number} localX - The x coordinate that the Pointer interacted with this object on, relative to the Game Object's top-left position.\r\n * @param {number} localY - The y coordinate that the Pointer interacted with this object on, relative to the Game Object's top-left position.\r\n * @param {Phaser.Types.Input.EventData} event - The Phaser input event. You can call `stopPropagation()` to halt it from going any further in the event flow.\r\n */\r\nmodule.exports = 'pointerdown';\r\n\n\n/***/ }),\n\n/***/ 11172:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Pointer Move Event.\r\n *\r\n * This event is dispatched by an interactive Game Object if a pointer is moved while over it.\r\n *\r\n * Listen to this event from a Game Object using: `gameObject.on('pointermove', listener)`.\r\n * Note that the scope of the listener is automatically set to be the Game Object instance itself.\r\n *\r\n * To receive this event, the Game Object must have been set as interactive.\r\n * See [GameObject.setInteractive]{@link Phaser.GameObjects.GameObject#setInteractive} for more details.\r\n *\r\n * The event hierarchy is as follows:\r\n *\r\n * 1. [GAMEOBJECT_POINTER_MOVE]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_MOVE}\r\n * 2. [GAMEOBJECT_MOVE]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_MOVE}\r\n * 3. [POINTER_MOVE]{@linkcode Phaser.Input.Events#event:POINTER_MOVE}\r\n *\r\n * With the top event being dispatched first and then flowing down the list. Note that higher-up event handlers can stop\r\n * the propagation of this event.\r\n *\r\n * @event Phaser.Input.Events#GAMEOBJECT_POINTER_MOVE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {number} localX - The x coordinate that the Pointer interacted with this object on, relative to the Game Object's top-left position.\r\n * @param {number} localY - The y coordinate that the Pointer interacted with this object on, relative to the Game Object's top-left position.\r\n * @param {Phaser.Types.Input.EventData} event - The Phaser input event. You can call `stopPropagation()` to halt it from going any further in the event flow.\r\n */\r\nmodule.exports = 'pointermove';\r\n\n\n/***/ }),\n\n/***/ 18907:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Pointer Out Event.\r\n *\r\n * This event is dispatched by an interactive Game Object if a pointer moves out of it.\r\n *\r\n * Listen to this event from a Game Object using: `gameObject.on('pointerout', listener)`.\r\n * Note that the scope of the listener is automatically set to be the Game Object instance itself.\r\n *\r\n * To receive this event, the Game Object must have been set as interactive.\r\n * See [GameObject.setInteractive]{@link Phaser.GameObjects.GameObject#setInteractive} for more details.\r\n *\r\n * The event hierarchy is as follows:\r\n *\r\n * 1. [GAMEOBJECT_POINTER_OUT]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_OUT}\r\n * 2. [GAMEOBJECT_OUT]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_OUT}\r\n * 3. [POINTER_OUT]{@linkcode Phaser.Input.Events#event:POINTER_OUT}\r\n *\r\n * With the top event being dispatched first and then flowing down the list. Note that higher-up event handlers can stop\r\n * the propagation of this event.\r\n *\r\n * If the pointer leaves the game canvas itself, it will not trigger an this event. To handle those cases,\r\n * please listen for the [GAME_OUT]{@linkcode Phaser.Input.Events#event:GAME_OUT} event.\r\n *\r\n * @event Phaser.Input.Events#GAMEOBJECT_POINTER_OUT\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.Types.Input.EventData} event - The Phaser input event. You can call `stopPropagation()` to halt it from going any further in the event flow.\r\n */\r\nmodule.exports = 'pointerout';\r\n\n\n/***/ }),\n\n/***/ 95579:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Pointer Over Event.\r\n *\r\n * This event is dispatched by an interactive Game Object if a pointer moves over it.\r\n *\r\n * Listen to this event from a Game Object using: `gameObject.on('pointerover', listener)`.\r\n * Note that the scope of the listener is automatically set to be the Game Object instance itself.\r\n *\r\n * To receive this event, the Game Object must have been set as interactive.\r\n * See [GameObject.setInteractive]{@link Phaser.GameObjects.GameObject#setInteractive} for more details.\r\n *\r\n * The event hierarchy is as follows:\r\n *\r\n * 1. [GAMEOBJECT_POINTER_OVER]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_OVER}\r\n * 2. [GAMEOBJECT_OVER]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_OVER}\r\n * 3. [POINTER_OVER]{@linkcode Phaser.Input.Events#event:POINTER_OVER}\r\n *\r\n * With the top event being dispatched first and then flowing down the list. Note that higher-up event handlers can stop\r\n * the propagation of this event.\r\n *\r\n * @event Phaser.Input.Events#GAMEOBJECT_POINTER_OVER\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {number} localX - The x coordinate that the Pointer interacted with this object on, relative to the Game Object's top-left position.\r\n * @param {number} localY - The y coordinate that the Pointer interacted with this object on, relative to the Game Object's top-left position.\r\n * @param {Phaser.Types.Input.EventData} event - The Phaser input event. You can call `stopPropagation()` to halt it from going any further in the event flow.\r\n */\r\nmodule.exports = 'pointerover';\r\n\n\n/***/ }),\n\n/***/ 35368:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Pointer Up Event.\r\n *\r\n * This event is dispatched by an interactive Game Object if a pointer is released while over it.\r\n *\r\n * Listen to this event from a Game Object using: `gameObject.on('pointerup', listener)`.\r\n * Note that the scope of the listener is automatically set to be the Game Object instance itself.\r\n *\r\n * To receive this event, the Game Object must have been set as interactive.\r\n * See [GameObject.setInteractive]{@link Phaser.GameObjects.GameObject#setInteractive} for more details.\r\n *\r\n * The event hierarchy is as follows:\r\n *\r\n * 1. [GAMEOBJECT_POINTER_UP]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_UP}\r\n * 2. [GAMEOBJECT_UP]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_UP}\r\n * 3. [POINTER_UP]{@linkcode Phaser.Input.Events#event:POINTER_UP} or [POINTER_UP_OUTSIDE]{@linkcode Phaser.Input.Events#event:POINTER_UP_OUTSIDE}\r\n *\r\n * With the top event being dispatched first and then flowing down the list. Note that higher-up event handlers can stop\r\n * the propagation of this event.\r\n *\r\n * @event Phaser.Input.Events#GAMEOBJECT_POINTER_UP\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {number} localX - The x coordinate that the Pointer interacted with this object on, relative to the Game Object's top-left position.\r\n * @param {number} localY - The y coordinate that the Pointer interacted with this object on, relative to the Game Object's top-left position.\r\n * @param {Phaser.Types.Input.EventData} event - The Phaser input event. You can call `stopPropagation()` to halt it from going any further in the event flow.\r\n */\r\nmodule.exports = 'pointerup';\r\n\n\n/***/ }),\n\n/***/ 26972:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Pointer Wheel Event.\r\n *\r\n * This event is dispatched by an interactive Game Object if a pointer has its wheel moved while over it.\r\n *\r\n * Listen to this event from a Game Object using: `gameObject.on('wheel', listener)`.\r\n * Note that the scope of the listener is automatically set to be the Game Object instance itself.\r\n *\r\n * To receive this event, the Game Object must have been set as interactive.\r\n * See [GameObject.setInteractive]{@link Phaser.GameObjects.GameObject#setInteractive} for more details.\r\n *\r\n * The event hierarchy is as follows:\r\n *\r\n * 1. [GAMEOBJECT_POINTER_WHEEL]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_WHEEL}\r\n * 2. [GAMEOBJECT_WHEEL]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_WHEEL}\r\n * 3. [POINTER_WHEEL]{@linkcode Phaser.Input.Events#event:POINTER_WHEEL}\r\n *\r\n * With the top event being dispatched first and then flowing down the list. Note that higher-up event handlers can stop\r\n * the propagation of this event.\r\n *\r\n * @event Phaser.Input.Events#GAMEOBJECT_POINTER_WHEEL\r\n * @type {string}\r\n * @since 3.18.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {number} deltaX - The horizontal scroll amount that occurred due to the user moving a mouse wheel or similar input device.\r\n * @param {number} deltaY - The vertical scroll amount that occurred due to the user moving a mouse wheel or similar input device. This value will typically be less than 0 if the user scrolls up and greater than zero if scrolling down.\r\n * @param {number} deltaZ - The z-axis scroll amount that occurred due to the user moving a mouse wheel or similar input device.\r\n * @param {Phaser.Types.Input.EventData} event - The Phaser input event. You can call `stopPropagation()` to halt it from going any further in the event flow.\r\n */\r\nmodule.exports = 'wheel';\r\n\n\n/***/ }),\n\n/***/ 47078:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Up Input Event.\r\n *\r\n * This event is dispatched by the Input Plugin belonging to a Scene if a pointer is released while over _any_ interactive Game Object.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('gameobjectup', listener)`.\r\n *\r\n * To receive this event, the Game Objects must have been set as interactive.\r\n * See [GameObject.setInteractive]{@link Phaser.GameObjects.GameObject#setInteractive} for more details.\r\n *\r\n * To listen for this event from a _specific_ Game Object, use the [GAMEOBJECT_POINTER_UP]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_UP} event instead.\r\n *\r\n * The event hierarchy is as follows:\r\n *\r\n * 1. [GAMEOBJECT_POINTER_UP]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_UP}\r\n * 2. [GAMEOBJECT_UP]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_UP}\r\n * 3. [POINTER_UP]{@linkcode Phaser.Input.Events#event:POINTER_UP} or [POINTER_UP_OUTSIDE]{@linkcode Phaser.Input.Events#event:POINTER_UP_OUTSIDE}\r\n *\r\n * With the top event being dispatched first and then flowing down the list. Note that higher-up event handlers can stop\r\n * the propagation of this event.\r\n *\r\n * @event Phaser.Input.Events#GAMEOBJECT_UP\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object the pointer was over when released.\r\n * @param {Phaser.Types.Input.EventData} event - The Phaser input event. You can call `stopPropagation()` to halt it from going any further in the event flow.\r\n */\r\nmodule.exports = 'gameobjectup';\r\n\n\n/***/ }),\n\n/***/ 73802:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Wheel Input Event.\r\n *\r\n * This event is dispatched by the Input Plugin belonging to a Scene if a pointer has its wheel moved while over _any_ interactive Game Object.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('gameobjectwheel', listener)`.\r\n *\r\n * To receive this event, the Game Objects must have been set as interactive.\r\n * See [GameObject.setInteractive]{@link Phaser.GameObjects.GameObject#setInteractive} for more details.\r\n *\r\n * To listen for this event from a _specific_ Game Object, use the [GAMEOBJECT_POINTER_WHEEL]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_WHEEL} event instead.\r\n *\r\n * The event hierarchy is as follows:\r\n *\r\n * 1. [GAMEOBJECT_POINTER_WHEEL]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_WHEEL}\r\n * 2. [GAMEOBJECT_WHEEL]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_WHEEL}\r\n * 3. [POINTER_WHEEL]{@linkcode Phaser.Input.Events#event:POINTER_WHEEL}\r\n *\r\n * With the top event being dispatched first and then flowing down the list. Note that higher-up event handlers can stop\r\n * the propagation of this event.\r\n *\r\n * @event Phaser.Input.Events#GAMEOBJECT_WHEEL\r\n * @type {string}\r\n * @since 3.18.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object the pointer was over when the wheel changed.\r\n * @param {number} deltaX - The horizontal scroll amount that occurred due to the user moving a mouse wheel or similar input device.\r\n * @param {number} deltaY - The vertical scroll amount that occurred due to the user moving a mouse wheel or similar input device. This value will typically be less than 0 if the user scrolls up and greater than zero if scrolling down.\r\n * @param {number} deltaZ - The z-axis scroll amount that occurred due to the user moving a mouse wheel or similar input device.\r\n * @param {Phaser.Types.Input.EventData} event - The Phaser input event. You can call `stopPropagation()` to halt it from going any further in the event flow.\r\n */\r\nmodule.exports = 'gameobjectwheel';\r\n\n\n/***/ }),\n\n/***/ 56718:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Input Plugin Game Out Event.\r\n *\r\n * This event is dispatched by the Input Plugin if the active pointer leaves the game canvas and is now\r\n * outside of it, elsewhere on the web page.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('gameout', listener)`.\r\n *\r\n * @event Phaser.Input.Events#GAME_OUT\r\n * @type {string}\r\n * @since 3.16.1\r\n *\r\n * @param {number} time - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.\r\n * @param {(MouseEvent|TouchEvent)} event - The DOM Event that triggered the canvas out.\r\n */\r\nmodule.exports = 'gameout';\r\n\n\n/***/ }),\n\n/***/ 25936:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Input Plugin Game Over Event.\r\n *\r\n * This event is dispatched by the Input Plugin if the active pointer enters the game canvas and is now\r\n * over of it, having previously been elsewhere on the web page.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('gameover', listener)`.\r\n *\r\n * @event Phaser.Input.Events#GAME_OVER\r\n * @type {string}\r\n * @since 3.16.1\r\n *\r\n * @param {number} time - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.\r\n * @param {(MouseEvent|TouchEvent)} event - The DOM Event that triggered the canvas over.\r\n */\r\nmodule.exports = 'gameover';\r\n\n\n/***/ }),\n\n/***/ 27503:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Input Manager Boot Event.\r\n *\r\n * This internal event is dispatched by the Input Manager when it boots.\r\n *\r\n * @event Phaser.Input.Events#MANAGER_BOOT\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\nmodule.exports = 'boot';\r\n\n\n/***/ }),\n\n/***/ 50852:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Input Manager Process Event.\r\n *\r\n * This internal event is dispatched by the Input Manager when not using the legacy queue system,\r\n * and it wants the Input Plugins to update themselves.\r\n *\r\n * @event Phaser.Input.Events#MANAGER_PROCESS\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n */\r\nmodule.exports = 'process';\r\n\n\n/***/ }),\n\n/***/ 96438:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Input Manager Update Event.\r\n *\r\n * This internal event is dispatched by the Input Manager as part of its update step.\r\n *\r\n * @event Phaser.Input.Events#MANAGER_UPDATE\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\nmodule.exports = 'update';\r\n\n\n/***/ }),\n\n/***/ 59152:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Input Manager Pointer Lock Change Event.\r\n *\r\n * This event is dispatched by the Input Manager when it is processing a native Pointer Lock Change DOM Event.\r\n *\r\n * @event Phaser.Input.Events#POINTERLOCK_CHANGE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Event} event - The native DOM Event.\r\n * @param {boolean} locked - The locked state of the Mouse Pointer.\r\n */\r\nmodule.exports = 'pointerlockchange';\r\n\n\n/***/ }),\n\n/***/ 47777:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Pointer Down Input Event.\r\n *\r\n * This event is dispatched by the Input Plugin belonging to a Scene if a pointer is pressed down anywhere.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('pointerdown', listener)`.\r\n *\r\n * The event hierarchy is as follows:\r\n *\r\n * 1. [GAMEOBJECT_POINTER_DOWN]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_DOWN}\r\n * 2. [GAMEOBJECT_DOWN]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_DOWN}\r\n * 3. [POINTER_DOWN]{@linkcode Phaser.Input.Events#event:POINTER_DOWN} or [POINTER_DOWN_OUTSIDE]{@linkcode Phaser.Input.Events#event:POINTER_DOWN_OUTSIDE}\r\n *\r\n * With the top event being dispatched first and then flowing down the list. Note that higher-up event handlers can stop\r\n * the propagation of this event.\r\n *\r\n * @event Phaser.Input.Events#POINTER_DOWN\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject[]} currentlyOver - An array containing all interactive Game Objects that the pointer was over when the event was created.\r\n */\r\nmodule.exports = 'pointerdown';\r\n\n\n/***/ }),\n\n/***/ 27957:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Pointer Down Outside Input Event.\r\n *\r\n * This event is dispatched by the Input Plugin belonging to a Scene if a pointer is pressed down anywhere outside of the game canvas.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('pointerdownoutside', listener)`.\r\n *\r\n * The event hierarchy is as follows:\r\n *\r\n * 1. [GAMEOBJECT_POINTER_DOWN]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_DOWN}\r\n * 2. [GAMEOBJECT_DOWN]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_DOWN}\r\n * 3. [POINTER_DOWN]{@linkcode Phaser.Input.Events#event:POINTER_DOWN} or [POINTER_DOWN_OUTSIDE]{@linkcode Phaser.Input.Events#event:POINTER_DOWN_OUTSIDE}\r\n *\r\n * With the top event being dispatched first and then flowing down the list. Note that higher-up event handlers can stop\r\n * the propagation of this event.\r\n *\r\n * @event Phaser.Input.Events#POINTER_DOWN_OUTSIDE\r\n * @type {string}\r\n * @since 3.16.1\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n */\r\nmodule.exports = 'pointerdownoutside';\r\n\n\n/***/ }),\n\n/***/ 19444:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Pointer Move Input Event.\r\n *\r\n * This event is dispatched by the Input Plugin belonging to a Scene if a pointer is moved anywhere.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('pointermove', listener)`.\r\n *\r\n * The event hierarchy is as follows:\r\n *\r\n * 1. [GAMEOBJECT_POINTER_MOVE]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_MOVE}\r\n * 2. [GAMEOBJECT_MOVE]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_MOVE}\r\n * 3. [POINTER_MOVE]{@linkcode Phaser.Input.Events#event:POINTER_MOVE}\r\n *\r\n * With the top event being dispatched first and then flowing down the list. Note that higher-up event handlers can stop\r\n * the propagation of this event.\r\n *\r\n * @event Phaser.Input.Events#POINTER_MOVE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject[]} currentlyOver - An array containing all interactive Game Objects that the pointer was over when the event was created.\r\n */\r\nmodule.exports = 'pointermove';\r\n\n\n/***/ }),\n\n/***/ 54251:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Pointer Out Input Event.\r\n *\r\n * This event is dispatched by the Input Plugin belonging to a Scene if a pointer moves out of any interactive Game Object.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('pointerout', listener)`.\r\n *\r\n * The event hierarchy is as follows:\r\n *\r\n * 1. [GAMEOBJECT_POINTER_OUT]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_OUT}\r\n * 2. [GAMEOBJECT_OUT]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_OUT}\r\n * 3. [POINTER_OUT]{@linkcode Phaser.Input.Events#event:POINTER_OUT}\r\n *\r\n * With the top event being dispatched first and then flowing down the list. Note that higher-up event handlers can stop\r\n * the propagation of this event.\r\n *\r\n * If the pointer leaves the game canvas itself, it will not trigger an this event. To handle those cases,\r\n * please listen for the [GAME_OUT]{@linkcode Phaser.Input.Events#event:GAME_OUT} event.\r\n *\r\n * @event Phaser.Input.Events#POINTER_OUT\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject[]} justOut - An array containing all interactive Game Objects that the pointer moved out of when the event was created.\r\n */\r\nmodule.exports = 'pointerout';\r\n\n\n/***/ }),\n\n/***/ 18667:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Pointer Over Input Event.\r\n *\r\n * This event is dispatched by the Input Plugin belonging to a Scene if a pointer moves over any interactive Game Object.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('pointerover', listener)`.\r\n *\r\n * The event hierarchy is as follows:\r\n *\r\n * 1. [GAMEOBJECT_POINTER_OVER]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_OVER}\r\n * 2. [GAMEOBJECT_OVER]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_OVER}\r\n * 3. [POINTER_OVER]{@linkcode Phaser.Input.Events#event:POINTER_OVER}\r\n *\r\n * With the top event being dispatched first and then flowing down the list. Note that higher-up event handlers can stop\r\n * the propagation of this event.\r\n *\r\n * @event Phaser.Input.Events#POINTER_OVER\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject[]} justOver - An array containing all interactive Game Objects that the pointer moved over when the event was created.\r\n */\r\nmodule.exports = 'pointerover';\r\n\n\n/***/ }),\n\n/***/ 27192:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Pointer Up Input Event.\r\n *\r\n * This event is dispatched by the Input Plugin belonging to a Scene if a pointer is released anywhere.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('pointerup', listener)`.\r\n *\r\n * The event hierarchy is as follows:\r\n *\r\n * 1. [GAMEOBJECT_POINTER_UP]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_UP}\r\n * 2. [GAMEOBJECT_UP]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_UP}\r\n * 3. [POINTER_UP]{@linkcode Phaser.Input.Events#event:POINTER_UP} or [POINTER_UP_OUTSIDE]{@linkcode Phaser.Input.Events#event:POINTER_UP_OUTSIDE}\r\n *\r\n * With the top event being dispatched first and then flowing down the list. Note that higher-up event handlers can stop\r\n * the propagation of this event.\r\n *\r\n * @event Phaser.Input.Events#POINTER_UP\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject[]} currentlyOver - An array containing all interactive Game Objects that the pointer was over when the event was created.\r\n */\r\nmodule.exports = 'pointerup';\r\n\n\n/***/ }),\n\n/***/ 24652:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Pointer Up Outside Input Event.\r\n *\r\n * This event is dispatched by the Input Plugin belonging to a Scene if a pointer is released anywhere outside of the game canvas.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('pointerupoutside', listener)`.\r\n *\r\n * The event hierarchy is as follows:\r\n *\r\n * 1. [GAMEOBJECT_POINTER_UP]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_UP}\r\n * 2. [GAMEOBJECT_UP]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_UP}\r\n * 3. [POINTER_UP]{@linkcode Phaser.Input.Events#event:POINTER_UP} or [POINTER_UP_OUTSIDE]{@linkcode Phaser.Input.Events#event:POINTER_UP_OUTSIDE}\r\n *\r\n * With the top event being dispatched first and then flowing down the list. Note that higher-up event handlers can stop\r\n * the propagation of this event.\r\n *\r\n * @event Phaser.Input.Events#POINTER_UP_OUTSIDE\r\n * @type {string}\r\n * @since 3.16.1\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n */\r\nmodule.exports = 'pointerupoutside';\r\n\n\n/***/ }),\n\n/***/ 45132:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Pointer Wheel Input Event.\r\n *\r\n * This event is dispatched by the Input Plugin belonging to a Scene if a pointer has its wheel updated.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.on('wheel', listener)`.\r\n *\r\n * The event hierarchy is as follows:\r\n *\r\n * 1. [GAMEOBJECT_POINTER_WHEEL]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_POINTER_WHEEL}\r\n * 2. [GAMEOBJECT_WHEEL]{@linkcode Phaser.Input.Events#event:GAMEOBJECT_WHEEL}\r\n * 3. [POINTER_WHEEL]{@linkcode Phaser.Input.Events#event:POINTER_WHEEL}\r\n *\r\n * With the top event being dispatched first and then flowing down the list. Note that higher-up event handlers can stop\r\n * the propagation of this event.\r\n *\r\n * @event Phaser.Input.Events#POINTER_WHEEL\r\n * @type {string}\r\n * @since 3.18.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - The Pointer responsible for triggering this event.\r\n * @param {Phaser.GameObjects.GameObject[]} currentlyOver - An array containing all interactive Game Objects that the pointer was over when the event was created.\r\n * @param {number} deltaX - The horizontal scroll amount that occurred due to the user moving a mouse wheel or similar input device.\r\n * @param {number} deltaY - The vertical scroll amount that occurred due to the user moving a mouse wheel or similar input device. This value will typically be less than 0 if the user scrolls up and greater than zero if scrolling down.\r\n * @param {number} deltaZ - The z-axis scroll amount that occurred due to the user moving a mouse wheel or similar input device.\r\n */\r\nmodule.exports = 'wheel';\r\n\n\n/***/ }),\n\n/***/ 44512:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Input Plugin Pre-Update Event.\r\n *\r\n * This internal event is dispatched by the Input Plugin at the start of its `preUpdate` method.\r\n * This hook is designed specifically for input plugins, but can also be listened to from user-land code.\r\n *\r\n * @event Phaser.Input.Events#PRE_UPDATE\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\nmodule.exports = 'preupdate';\r\n\n\n/***/ }),\n\n/***/ 15757:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Input Plugin Shutdown Event.\r\n *\r\n * This internal event is dispatched by the Input Plugin when it shuts down, signalling to all of its systems to shut themselves down.\r\n *\r\n * @event Phaser.Input.Events#SHUTDOWN\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\nmodule.exports = 'shutdown';\r\n\n\n/***/ }),\n\n/***/ 41637:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Input Plugin Start Event.\r\n *\r\n * This internal event is dispatched by the Input Plugin when it has finished setting-up,\r\n * signalling to all of its internal systems to start.\r\n *\r\n * @event Phaser.Input.Events#START\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\nmodule.exports = 'start';\r\n\n\n/***/ }),\n\n/***/ 93802:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Input Plugin Update Event.\r\n *\r\n * This internal event is dispatched by the Input Plugin at the start of its `update` method.\r\n * This hook is designed specifically for input plugins, but can also be listened to from user-land code.\r\n *\r\n * @event Phaser.Input.Events#UPDATE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n */\r\nmodule.exports = 'update';\r\n\n\n/***/ }),\n\n/***/ 8214:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Input.Events\r\n */\r\n\r\nmodule.exports = {\r\n\r\n BOOT: __webpack_require__(7179),\r\n DESTROY: __webpack_require__(85375),\r\n DRAG_END: __webpack_require__(39843),\r\n DRAG_ENTER: __webpack_require__(23388),\r\n DRAG: __webpack_require__(16133),\r\n DRAG_LEAVE: __webpack_require__(27829),\r\n DRAG_OVER: __webpack_require__(53904),\r\n DRAG_START: __webpack_require__(56058),\r\n DROP: __webpack_require__(2642),\r\n GAME_OUT: __webpack_require__(56718),\r\n GAME_OVER: __webpack_require__(25936),\r\n GAMEOBJECT_DOWN: __webpack_require__(88171),\r\n GAMEOBJECT_DRAG_END: __webpack_require__(36147),\r\n GAMEOBJECT_DRAG_ENTER: __webpack_require__(71692),\r\n GAMEOBJECT_DRAG: __webpack_require__(96149),\r\n GAMEOBJECT_DRAG_LEAVE: __webpack_require__(81285),\r\n GAMEOBJECT_DRAG_OVER: __webpack_require__(74048),\r\n GAMEOBJECT_DRAG_START: __webpack_require__(21322),\r\n GAMEOBJECT_DROP: __webpack_require__(49378),\r\n GAMEOBJECT_MOVE: __webpack_require__(86754),\r\n GAMEOBJECT_OUT: __webpack_require__(86433),\r\n GAMEOBJECT_OVER: __webpack_require__(60709),\r\n GAMEOBJECT_POINTER_DOWN: __webpack_require__(24081),\r\n GAMEOBJECT_POINTER_MOVE: __webpack_require__(11172),\r\n GAMEOBJECT_POINTER_OUT: __webpack_require__(18907),\r\n GAMEOBJECT_POINTER_OVER: __webpack_require__(95579),\r\n GAMEOBJECT_POINTER_UP: __webpack_require__(35368),\r\n GAMEOBJECT_POINTER_WHEEL: __webpack_require__(26972),\r\n GAMEOBJECT_UP: __webpack_require__(47078),\r\n GAMEOBJECT_WHEEL: __webpack_require__(73802),\r\n MANAGER_BOOT: __webpack_require__(27503),\r\n MANAGER_PROCESS: __webpack_require__(50852),\r\n MANAGER_UPDATE: __webpack_require__(96438),\r\n POINTER_DOWN: __webpack_require__(47777),\r\n POINTER_DOWN_OUTSIDE: __webpack_require__(27957),\r\n POINTER_MOVE: __webpack_require__(19444),\r\n POINTER_OUT: __webpack_require__(54251),\r\n POINTER_OVER: __webpack_require__(18667),\r\n POINTER_UP: __webpack_require__(27192),\r\n POINTER_UP_OUTSIDE: __webpack_require__(24652),\r\n POINTER_WHEEL: __webpack_require__(45132),\r\n POINTERLOCK_CHANGE: __webpack_require__(59152),\r\n PRE_UPDATE: __webpack_require__(44512),\r\n SHUTDOWN: __webpack_require__(15757),\r\n START: __webpack_require__(41637),\r\n UPDATE: __webpack_require__(93802)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 97421:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n/**\r\n * @classdesc\r\n * Contains information about a specific Gamepad Axis.\r\n * Axis objects are created automatically by the Gamepad as they are needed.\r\n *\r\n * @class Axis\r\n * @memberof Phaser.Input.Gamepad\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Gamepad.Gamepad} pad - A reference to the Gamepad that this Axis belongs to.\r\n * @param {number} index - The index of this Axis.\r\n */\r\nvar Axis = new Class({\r\n\r\n initialize:\r\n\r\n function Axis (pad, index)\r\n {\r\n /**\r\n * A reference to the Gamepad that this Axis belongs to.\r\n *\r\n * @name Phaser.Input.Gamepad.Axis#pad\r\n * @type {Phaser.Input.Gamepad.Gamepad}\r\n * @since 3.0.0\r\n */\r\n this.pad = pad;\r\n\r\n /**\r\n * An event emitter to use to emit the axis events.\r\n *\r\n * @name Phaser.Input.Gamepad.Axis#events\r\n * @type {Phaser.Events.EventEmitter}\r\n * @since 3.0.0\r\n */\r\n this.events = pad.events;\r\n\r\n /**\r\n * The index of this Axis.\r\n *\r\n * @name Phaser.Input.Gamepad.Axis#index\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.index = index;\r\n\r\n /**\r\n * The raw axis value, between -1 and 1 with 0 being dead center.\r\n * Use the method `getValue` to get a normalized value with the threshold applied.\r\n *\r\n * @name Phaser.Input.Gamepad.Axis#value\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.value = 0;\r\n\r\n /**\r\n * Movement tolerance threshold below which axis values are ignored in `getValue`.\r\n *\r\n * @name Phaser.Input.Gamepad.Axis#threshold\r\n * @type {number}\r\n * @default 0.1\r\n * @since 3.0.0\r\n */\r\n this.threshold = 0.1;\r\n },\r\n\r\n /**\r\n * Internal update handler for this Axis.\r\n * Called automatically by the Gamepad as part of its update.\r\n *\r\n * @method Phaser.Input.Gamepad.Axis#update\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The value of the axis movement.\r\n */\r\n update: function (value)\r\n {\r\n this.value = value;\r\n },\r\n\r\n /**\r\n * Applies the `threshold` value to the axis and returns it.\r\n *\r\n * @method Phaser.Input.Gamepad.Axis#getValue\r\n * @since 3.0.0\r\n *\r\n * @return {number} The axis value, adjusted for the movement threshold.\r\n */\r\n getValue: function ()\r\n {\r\n return (Math.abs(this.value) < this.threshold) ? 0 : this.value;\r\n },\r\n\r\n /**\r\n * Destroys this Axis instance and releases external references it holds.\r\n *\r\n * @method Phaser.Input.Gamepad.Axis#destroy\r\n * @since 3.10.0\r\n */\r\n destroy: function ()\r\n {\r\n this.pad = null;\r\n this.events = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Axis;\r\n\n\n/***/ }),\n\n/***/ 28884:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Events = __webpack_require__(92734);\r\n\r\n/**\r\n * @classdesc\r\n * Contains information about a specific button on a Gamepad.\r\n * Button objects are created automatically by the Gamepad as they are needed.\r\n *\r\n * @class Button\r\n * @memberof Phaser.Input.Gamepad\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Gamepad.Gamepad} pad - A reference to the Gamepad that this Button belongs to.\r\n * @param {number} index - The index of this Button.\r\n */\r\nvar Button = new Class({\r\n\r\n initialize:\r\n\r\n function Button (pad, index)\r\n {\r\n /**\r\n * A reference to the Gamepad that this Button belongs to.\r\n *\r\n * @name Phaser.Input.Gamepad.Button#pad\r\n * @type {Phaser.Input.Gamepad.Gamepad}\r\n * @since 3.0.0\r\n */\r\n this.pad = pad;\r\n\r\n /**\r\n * An event emitter to use to emit the button events.\r\n *\r\n * @name Phaser.Input.Gamepad.Button#events\r\n * @type {Phaser.Events.EventEmitter}\r\n * @since 3.0.0\r\n */\r\n this.events = pad.manager;\r\n\r\n /**\r\n * The index of this Button.\r\n *\r\n * @name Phaser.Input.Gamepad.Button#index\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.index = index;\r\n\r\n /**\r\n * Between 0 and 1.\r\n *\r\n * @name Phaser.Input.Gamepad.Button#value\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.value = 0;\r\n\r\n /**\r\n * Can be set for analogue buttons to enable a 'pressure' threshold,\r\n * before a button is considered as being 'pressed'.\r\n *\r\n * @name Phaser.Input.Gamepad.Button#threshold\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n this.threshold = 1;\r\n\r\n /**\r\n * Is the Button being pressed down or not?\r\n *\r\n * @name Phaser.Input.Gamepad.Button#pressed\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.pressed = false;\r\n },\r\n\r\n /**\r\n * Internal update handler for this Button.\r\n * Called automatically by the Gamepad as part of its update.\r\n *\r\n * @method Phaser.Input.Gamepad.Button#update\r\n * @fires Phaser.Input.Gamepad.Events#BUTTON_DOWN\r\n * @fires Phaser.Input.Gamepad.Events#BUTTON_UP\r\n * @fires Phaser.Input.Gamepad.Events#GAMEPAD_BUTTON_DOWN\r\n * @fires Phaser.Input.Gamepad.Events#GAMEPAD_BUTTON_UP\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The value of the button. Between 0 and 1.\r\n */\r\n update: function (value)\r\n {\r\n this.value = value;\r\n\r\n var pad = this.pad;\r\n var index = this.index;\r\n\r\n if (value >= this.threshold)\r\n {\r\n if (!this.pressed)\r\n {\r\n this.pressed = true;\r\n this.events.emit(Events.BUTTON_DOWN, pad, this, value);\r\n this.pad.emit(Events.GAMEPAD_BUTTON_DOWN, index, value, this);\r\n }\r\n }\r\n else if (this.pressed)\r\n {\r\n this.pressed = false;\r\n this.events.emit(Events.BUTTON_UP, pad, this, value);\r\n this.pad.emit(Events.GAMEPAD_BUTTON_UP, index, value, this);\r\n }\r\n },\r\n\r\n /**\r\n * Destroys this Button instance and releases external references it holds.\r\n *\r\n * @method Phaser.Input.Gamepad.Button#destroy\r\n * @since 3.10.0\r\n */\r\n destroy: function ()\r\n {\r\n this.pad = null;\r\n this.events = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Button;\r\n\n\n/***/ }),\n\n/***/ 99125:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Axis = __webpack_require__(97421);\r\nvar Button = __webpack_require__(28884);\r\nvar Class = __webpack_require__(83419);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * A single Gamepad.\r\n *\r\n * These are created, updated and managed by the Gamepad Plugin.\r\n *\r\n * @class Gamepad\r\n * @extends Phaser.Events.EventEmitter\r\n * @memberof Phaser.Input.Gamepad\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Gamepad.GamepadPlugin} manager - A reference to the Gamepad Plugin.\r\n * @param {Phaser.Types.Input.Gamepad.Pad} pad - The Gamepad object, as extracted from GamepadEvent.\r\n */\r\nvar Gamepad = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function Gamepad (manager, pad)\r\n {\r\n EventEmitter.call(this);\r\n\r\n /**\r\n * A reference to the Gamepad Plugin.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#manager\r\n * @type {Phaser.Input.Gamepad.GamepadPlugin}\r\n * @since 3.0.0\r\n */\r\n this.manager = manager;\r\n\r\n /**\r\n * A reference to the native Gamepad object that is connected to the browser.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#pad\r\n * @type {any}\r\n * @since 3.10.0\r\n */\r\n this.pad = pad;\r\n\r\n /**\r\n * A string containing some information about the controller.\r\n *\r\n * This is not strictly specified, but in Firefox it will contain three pieces of information\r\n * separated by dashes (-): two 4-digit hexadecimal strings containing the USB vendor and\r\n * product id of the controller, and the name of the controller as provided by the driver.\r\n * In Chrome it will contain the name of the controller as provided by the driver,\r\n * followed by vendor and product 4-digit hexadecimal strings.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#id\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.id = pad.id;\r\n\r\n /**\r\n * An integer that is unique for each Gamepad currently connected to the system.\r\n * This can be used to distinguish multiple controllers.\r\n * Note that disconnecting a device and then connecting a new device may reuse the previous index.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#index\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.index = pad.index;\r\n\r\n var buttons = [];\r\n\r\n for (var i = 0; i < pad.buttons.length; i++)\r\n {\r\n buttons.push(new Button(this, i));\r\n }\r\n\r\n /**\r\n * An array of Gamepad Button objects, corresponding to the different buttons available on the Gamepad.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#buttons\r\n * @type {Phaser.Input.Gamepad.Button[]}\r\n * @since 3.0.0\r\n */\r\n this.buttons = buttons;\r\n\r\n var axes = [];\r\n\r\n for (i = 0; i < pad.axes.length; i++)\r\n {\r\n axes.push(new Axis(this, i));\r\n }\r\n\r\n /**\r\n * An array of Gamepad Axis objects, corresponding to the different axes available on the Gamepad, if any.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#axes\r\n * @type {Phaser.Input.Gamepad.Axis[]}\r\n * @since 3.0.0\r\n */\r\n this.axes = axes;\r\n\r\n /**\r\n * The Gamepad's Haptic Actuator (Vibration / Rumble support).\r\n * This is highly experimental and only set if both present on the device,\r\n * and exposed by both the hardware and browser.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#vibration\r\n * @type {GamepadHapticActuator}\r\n * @since 3.10.0\r\n */\r\n this.vibration = pad.vibrationActuator;\r\n\r\n // https://w3c.github.io/gamepad/#remapping\r\n\r\n var _noButton = { value: 0, pressed: false };\r\n\r\n /**\r\n * A reference to the Left Button in the Left Cluster.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#_LCLeft\r\n * @type {Phaser.Input.Gamepad.Button}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this._LCLeft = (buttons[14]) ? buttons[14] : _noButton;\r\n\r\n /**\r\n * A reference to the Right Button in the Left Cluster.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#_LCRight\r\n * @type {Phaser.Input.Gamepad.Button}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this._LCRight = (buttons[15]) ? buttons[15] : _noButton;\r\n\r\n /**\r\n * A reference to the Top Button in the Left Cluster.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#_LCTop\r\n * @type {Phaser.Input.Gamepad.Button}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this._LCTop = (buttons[12]) ? buttons[12] : _noButton;\r\n\r\n /**\r\n * A reference to the Bottom Button in the Left Cluster.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#_LCBottom\r\n * @type {Phaser.Input.Gamepad.Button}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this._LCBottom = (buttons[13]) ? buttons[13] : _noButton;\r\n\r\n /**\r\n * A reference to the Left Button in the Right Cluster.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#_RCLeft\r\n * @type {Phaser.Input.Gamepad.Button}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this._RCLeft = (buttons[2]) ? buttons[2] : _noButton;\r\n\r\n /**\r\n * A reference to the Right Button in the Right Cluster.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#_RCRight\r\n * @type {Phaser.Input.Gamepad.Button}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this._RCRight = (buttons[1]) ? buttons[1] : _noButton;\r\n\r\n /**\r\n * A reference to the Top Button in the Right Cluster.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#_RCTop\r\n * @type {Phaser.Input.Gamepad.Button}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this._RCTop = (buttons[3]) ? buttons[3] : _noButton;\r\n\r\n /**\r\n * A reference to the Bottom Button in the Right Cluster.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#_RCBottom\r\n * @type {Phaser.Input.Gamepad.Button}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this._RCBottom = (buttons[0]) ? buttons[0] : _noButton;\r\n\r\n /**\r\n * A reference to the Top Left Front Button (L1 Shoulder Button)\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#_FBLeftTop\r\n * @type {Phaser.Input.Gamepad.Button}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this._FBLeftTop = (buttons[4]) ? buttons[4] : _noButton;\r\n\r\n /**\r\n * A reference to the Bottom Left Front Button (L2 Shoulder Button)\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#_FBLeftBottom\r\n * @type {Phaser.Input.Gamepad.Button}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this._FBLeftBottom = (buttons[6]) ? buttons[6] : _noButton;\r\n\r\n /**\r\n * A reference to the Top Right Front Button (R1 Shoulder Button)\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#_FBRightTop\r\n * @type {Phaser.Input.Gamepad.Button}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this._FBRightTop = (buttons[5]) ? buttons[5] : _noButton;\r\n\r\n /**\r\n * A reference to the Bottom Right Front Button (R2 Shoulder Button)\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#_FBRightBottom\r\n * @type {Phaser.Input.Gamepad.Button}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this._FBRightBottom = (buttons[7]) ? buttons[7] : _noButton;\r\n\r\n var _noAxis = { value: 0 };\r\n\r\n /**\r\n * A reference to the Horizontal Axis for the Left Stick.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#_HAxisLeft\r\n * @type {Phaser.Input.Gamepad.Button}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this._HAxisLeft = (axes[0]) ? axes[0] : _noAxis;\r\n\r\n /**\r\n * A reference to the Vertical Axis for the Left Stick.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#_VAxisLeft\r\n * @type {Phaser.Input.Gamepad.Button}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this._VAxisLeft = (axes[1]) ? axes[1] : _noAxis;\r\n\r\n /**\r\n * A reference to the Horizontal Axis for the Right Stick.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#_HAxisRight\r\n * @type {Phaser.Input.Gamepad.Button}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this._HAxisRight = (axes[2]) ? axes[2] : _noAxis;\r\n\r\n /**\r\n * A reference to the Vertical Axis for the Right Stick.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#_VAxisRight\r\n * @type {Phaser.Input.Gamepad.Button}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this._VAxisRight = (axes[3]) ? axes[3] : _noAxis;\r\n\r\n /**\r\n * A Vector2 containing the most recent values from the Gamepad's left axis stick.\r\n * This is updated automatically as part of the Gamepad.update cycle.\r\n * The H Axis is mapped to the `Vector2.x` property, and the V Axis to the `Vector2.y` property.\r\n * The values are based on the Axis thresholds.\r\n * If the Gamepad does not have a left axis stick, the values will always be zero.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#leftStick\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.10.0\r\n */\r\n this.leftStick = new Vector2();\r\n\r\n /**\r\n * A Vector2 containing the most recent values from the Gamepad's right axis stick.\r\n * This is updated automatically as part of the Gamepad.update cycle.\r\n * The H Axis is mapped to the `Vector2.x` property, and the V Axis to the `Vector2.y` property.\r\n * The values are based on the Axis thresholds.\r\n * If the Gamepad does not have a right axis stick, the values will always be zero.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#rightStick\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.10.0\r\n */\r\n this.rightStick = new Vector2();\r\n\r\n /**\r\n * When was this Gamepad created? Used to avoid duplicate event spamming in the update loop.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#_created\r\n * @type {number}\r\n * @private\r\n * @since 3.50.0\r\n */\r\n this._created = performance.now();\r\n },\r\n\r\n /**\r\n * Gets the total number of axis this Gamepad claims to support.\r\n *\r\n * @method Phaser.Input.Gamepad.Gamepad#getAxisTotal\r\n * @since 3.10.0\r\n *\r\n * @return {number} The total number of axes this Gamepad claims to support.\r\n */\r\n getAxisTotal: function ()\r\n {\r\n return this.axes.length;\r\n },\r\n\r\n /**\r\n * Gets the value of an axis based on the given index.\r\n * The index must be valid within the range of axes supported by this Gamepad.\r\n * The return value will be a float between 0 and 1.\r\n *\r\n * @method Phaser.Input.Gamepad.Gamepad#getAxisValue\r\n * @since 3.10.0\r\n *\r\n * @param {number} index - The index of the axes to get the value for.\r\n *\r\n * @return {number} The value of the axis, between 0 and 1.\r\n */\r\n getAxisValue: function (index)\r\n {\r\n return this.axes[index].getValue();\r\n },\r\n\r\n /**\r\n * Sets the threshold value of all axis on this Gamepad.\r\n * The value is a float between 0 and 1 and is the amount below which the axis is considered as not having been moved.\r\n *\r\n * @method Phaser.Input.Gamepad.Gamepad#setAxisThreshold\r\n * @since 3.10.0\r\n *\r\n * @param {number} value - A value between 0 and 1.\r\n */\r\n setAxisThreshold: function (value)\r\n {\r\n for (var i = 0; i < this.axes.length; i++)\r\n {\r\n this.axes[i].threshold = value;\r\n }\r\n },\r\n\r\n /**\r\n * Gets the total number of buttons this Gamepad claims to have.\r\n *\r\n * @method Phaser.Input.Gamepad.Gamepad#getButtonTotal\r\n * @since 3.10.0\r\n *\r\n * @return {number} The total number of buttons this Gamepad claims to have.\r\n */\r\n getButtonTotal: function ()\r\n {\r\n return this.buttons.length;\r\n },\r\n\r\n /**\r\n * Gets the value of a button based on the given index.\r\n * The index must be valid within the range of buttons supported by this Gamepad.\r\n *\r\n * The return value will be either 0 or 1 for an analogue button, or a float between 0 and 1\r\n * for a pressure-sensitive digital button, such as the shoulder buttons on a Dual Shock.\r\n *\r\n * @method Phaser.Input.Gamepad.Gamepad#getButtonValue\r\n * @since 3.10.0\r\n *\r\n * @param {number} index - The index of the button to get the value for.\r\n *\r\n * @return {number} The value of the button, between 0 and 1.\r\n */\r\n getButtonValue: function (index)\r\n {\r\n return this.buttons[index].value;\r\n },\r\n\r\n /**\r\n * Returns if the button is pressed down or not.\r\n * The index must be valid within the range of buttons supported by this Gamepad.\r\n *\r\n * @method Phaser.Input.Gamepad.Gamepad#isButtonDown\r\n * @since 3.10.0\r\n *\r\n * @param {number} index - The index of the button to get the value for.\r\n *\r\n * @return {boolean} `true` if the button is considered as being pressed down, otherwise `false`.\r\n */\r\n isButtonDown: function (index)\r\n {\r\n return this.buttons[index].pressed;\r\n },\r\n\r\n /**\r\n * Internal update handler for this Gamepad.\r\n * Called automatically by the Gamepad Manager as part of its update.\r\n *\r\n * @method Phaser.Input.Gamepad.Gamepad#update\r\n * @private\r\n * @since 3.0.0\r\n */\r\n update: function (pad)\r\n {\r\n if (pad.timestamp < this._created)\r\n {\r\n return;\r\n }\r\n\r\n var i;\r\n\r\n // Sync the button values\r\n\r\n var localButtons = this.buttons;\r\n var gamepadButtons = pad.buttons;\r\n\r\n var len = localButtons.length;\r\n\r\n for (i = 0; i < len; i++)\r\n {\r\n localButtons[i].update(gamepadButtons[i].value);\r\n }\r\n\r\n // Sync the axis values\r\n\r\n var localAxes = this.axes;\r\n var gamepadAxes = pad.axes;\r\n\r\n len = localAxes.length;\r\n\r\n for (i = 0; i < len; i++)\r\n {\r\n localAxes[i].update(gamepadAxes[i]);\r\n }\r\n\r\n if (len >= 2)\r\n {\r\n this.leftStick.set(localAxes[0].getValue(), localAxes[1].getValue());\r\n\r\n if (len >= 4)\r\n {\r\n this.rightStick.set(localAxes[2].getValue(), localAxes[3].getValue());\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Destroys this Gamepad instance, its buttons and axes, and releases external references it holds.\r\n *\r\n * @method Phaser.Input.Gamepad.Gamepad#destroy\r\n * @since 3.10.0\r\n */\r\n destroy: function ()\r\n {\r\n this.removeAllListeners();\r\n\r\n this.manager = null;\r\n this.pad = null;\r\n\r\n var i;\r\n\r\n for (i = 0; i < this.buttons.length; i++)\r\n {\r\n this.buttons[i].destroy();\r\n }\r\n\r\n for (i = 0; i < this.axes.length; i++)\r\n {\r\n this.axes[i].destroy();\r\n }\r\n\r\n this.buttons = [];\r\n this.axes = [];\r\n },\r\n\r\n /**\r\n * Is this Gamepad currently connected or not?\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#connected\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n connected: {\r\n\r\n get: function ()\r\n {\r\n return this.pad.connected;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * A timestamp containing the most recent time this Gamepad was updated.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#timestamp\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n timestamp: {\r\n\r\n get: function ()\r\n {\r\n return this.pad.timestamp;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Is the Gamepad's Left button being pressed?\r\n * If the Gamepad doesn't have this button it will always return false.\r\n * This is the d-pad left button under standard Gamepad mapping.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#left\r\n * @type {boolean}\r\n * @since 3.10.0\r\n */\r\n left: {\r\n\r\n get: function ()\r\n {\r\n return this._LCLeft.pressed;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Is the Gamepad's Right button being pressed?\r\n * If the Gamepad doesn't have this button it will always return false.\r\n * This is the d-pad right button under standard Gamepad mapping.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#right\r\n * @type {boolean}\r\n * @since 3.10.0\r\n */\r\n right: {\r\n\r\n get: function ()\r\n {\r\n return this._LCRight.pressed;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Is the Gamepad's Up button being pressed?\r\n * If the Gamepad doesn't have this button it will always return false.\r\n * This is the d-pad up button under standard Gamepad mapping.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#up\r\n * @type {boolean}\r\n * @since 3.10.0\r\n */\r\n up: {\r\n\r\n get: function ()\r\n {\r\n return this._LCTop.pressed;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Is the Gamepad's Down button being pressed?\r\n * If the Gamepad doesn't have this button it will always return false.\r\n * This is the d-pad down button under standard Gamepad mapping.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#down\r\n * @type {boolean}\r\n * @since 3.10.0\r\n */\r\n down: {\r\n\r\n get: function ()\r\n {\r\n return this._LCBottom.pressed;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Is the Gamepad's bottom button in the right button cluster being pressed?\r\n * If the Gamepad doesn't have this button it will always return false.\r\n * On a Dual Shock controller it's the X button.\r\n * On an XBox controller it's the A button.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#A\r\n * @type {boolean}\r\n * @since 3.10.0\r\n */\r\n A: {\r\n\r\n get: function ()\r\n {\r\n return this._RCBottom.pressed;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Is the Gamepad's top button in the right button cluster being pressed?\r\n * If the Gamepad doesn't have this button it will always return false.\r\n * On a Dual Shock controller it's the Triangle button.\r\n * On an XBox controller it's the Y button.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#Y\r\n * @type {boolean}\r\n * @since 3.10.0\r\n */\r\n Y: {\r\n\r\n get: function ()\r\n {\r\n return this._RCTop.pressed;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Is the Gamepad's left button in the right button cluster being pressed?\r\n * If the Gamepad doesn't have this button it will always return false.\r\n * On a Dual Shock controller it's the Square button.\r\n * On an XBox controller it's the X button.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#X\r\n * @type {boolean}\r\n * @since 3.10.0\r\n */\r\n X: {\r\n\r\n get: function ()\r\n {\r\n return this._RCLeft.pressed;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Is the Gamepad's right button in the right button cluster being pressed?\r\n * If the Gamepad doesn't have this button it will always return false.\r\n * On a Dual Shock controller it's the Circle button.\r\n * On an XBox controller it's the B button.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#B\r\n * @type {boolean}\r\n * @since 3.10.0\r\n */\r\n B: {\r\n\r\n get: function ()\r\n {\r\n return this._RCRight.pressed;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Returns the value of the Gamepad's top left shoulder button.\r\n * If the Gamepad doesn't have this button it will always return zero.\r\n * The value is a float between 0 and 1, corresponding to how depressed the button is.\r\n * On a Dual Shock controller it's the L1 button.\r\n * On an XBox controller it's the LB button.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#L1\r\n * @type {number}\r\n * @since 3.10.0\r\n */\r\n L1: {\r\n\r\n get: function ()\r\n {\r\n return this._FBLeftTop.value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Returns the value of the Gamepad's bottom left shoulder button.\r\n * If the Gamepad doesn't have this button it will always return zero.\r\n * The value is a float between 0 and 1, corresponding to how depressed the button is.\r\n * On a Dual Shock controller it's the L2 button.\r\n * On an XBox controller it's the LT button.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#L2\r\n * @type {number}\r\n * @since 3.10.0\r\n */\r\n L2: {\r\n\r\n get: function ()\r\n {\r\n return this._FBLeftBottom.value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Returns the value of the Gamepad's top right shoulder button.\r\n * If the Gamepad doesn't have this button it will always return zero.\r\n * The value is a float between 0 and 1, corresponding to how depressed the button is.\r\n * On a Dual Shock controller it's the R1 button.\r\n * On an XBox controller it's the RB button.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#R1\r\n * @type {number}\r\n * @since 3.10.0\r\n */\r\n R1: {\r\n\r\n get: function ()\r\n {\r\n return this._FBRightTop.value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Returns the value of the Gamepad's bottom right shoulder button.\r\n * If the Gamepad doesn't have this button it will always return zero.\r\n * The value is a float between 0 and 1, corresponding to how depressed the button is.\r\n * On a Dual Shock controller it's the R2 button.\r\n * On an XBox controller it's the RT button.\r\n *\r\n * @name Phaser.Input.Gamepad.Gamepad#R2\r\n * @type {number}\r\n * @since 3.10.0\r\n */\r\n R2: {\r\n\r\n get: function ()\r\n {\r\n return this._FBRightBottom.value;\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Gamepad;\r\n\n\n/***/ }),\n\n/***/ 56654:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Events = __webpack_require__(92734);\r\nvar Gamepad = __webpack_require__(99125);\r\nvar GetValue = __webpack_require__(35154);\r\nvar InputPluginCache = __webpack_require__(89639);\r\nvar InputEvents = __webpack_require__(8214);\r\n\r\n/**\r\n * @classdesc\r\n * The Gamepad Plugin is an input plugin that belongs to the Scene-owned Input system.\r\n *\r\n * Its role is to listen for native DOM Gamepad Events and then process them.\r\n *\r\n * You do not need to create this class directly, the Input system will create an instance of it automatically.\r\n *\r\n * You can access it from within a Scene using `this.input.gamepad`.\r\n *\r\n * To listen for a gamepad being connected:\r\n *\r\n * ```javascript\r\n * this.input.gamepad.once('connected', function (pad) {\r\n * // 'pad' is a reference to the gamepad that was just connected\r\n * });\r\n * ```\r\n *\r\n * Note that the browser may require you to press a button on a gamepad before it will allow you to access it,\r\n * this is for security reasons. However, it may also trust the page already, in which case you won't get the\r\n * 'connected' event and instead should check `GamepadPlugin.total` to see if it thinks there are any gamepads\r\n * already connected.\r\n *\r\n * Once you have received the connected event, or polled the gamepads and found them enabled, you can access\r\n * them via the built-in properties `GamepadPlugin.pad1` to `pad4`, for up to 4 game pads. With a reference\r\n * to the gamepads you can poll its buttons and axis sticks. See the properties and methods available on\r\n * the `Gamepad` class for more details.\r\n *\r\n * As of September 2020 Chrome, and likely other browsers, will soon start to require that games requesting\r\n * access to the Gamepad API are running under SSL. They will actively block API access if they are not.\r\n *\r\n * For more information about Gamepad support in browsers see the following resources:\r\n *\r\n * https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API\r\n * https://developer.mozilla.org/en-US/docs/Web/API/Gamepad_API/Using_the_Gamepad_API\r\n * https://www.smashingmagazine.com/2015/11/gamepad-api-in-web-games/\r\n * http://html5gamepad.com/\r\n *\r\n * @class GamepadPlugin\r\n * @extends Phaser.Events.EventEmitter\r\n * @memberof Phaser.Input.Gamepad\r\n * @constructor\r\n * @since 3.10.0\r\n *\r\n * @param {Phaser.Input.InputPlugin} sceneInputPlugin - A reference to the Scene Input Plugin that the KeyboardPlugin belongs to.\r\n */\r\nvar GamepadPlugin = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function GamepadPlugin (sceneInputPlugin)\r\n {\r\n EventEmitter.call(this);\r\n\r\n /**\r\n * A reference to the Scene that this Input Plugin is responsible for.\r\n *\r\n * @name Phaser.Input.Gamepad.GamepadPlugin#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.10.0\r\n */\r\n this.scene = sceneInputPlugin.scene;\r\n\r\n /**\r\n * A reference to the Scene Systems Settings.\r\n *\r\n * @name Phaser.Input.Gamepad.GamepadPlugin#settings\r\n * @type {Phaser.Types.Scenes.SettingsObject}\r\n * @since 3.10.0\r\n */\r\n this.settings = this.scene.sys.settings;\r\n\r\n /**\r\n * A reference to the Scene Input Plugin that created this Keyboard Plugin.\r\n *\r\n * @name Phaser.Input.Gamepad.GamepadPlugin#sceneInputPlugin\r\n * @type {Phaser.Input.InputPlugin}\r\n * @since 3.10.0\r\n */\r\n this.sceneInputPlugin = sceneInputPlugin;\r\n\r\n /**\r\n * A boolean that controls if the Gamepad Manager is enabled or not.\r\n * Can be toggled on the fly.\r\n *\r\n * @name Phaser.Input.Gamepad.GamepadPlugin#enabled\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.10.0\r\n */\r\n this.enabled = true;\r\n\r\n /**\r\n * The Gamepad Event target, as defined in the Game Config.\r\n * Typically the browser window, but can be any interactive DOM element.\r\n *\r\n * @name Phaser.Input.Gamepad.GamepadPlugin#target\r\n * @type {any}\r\n * @since 3.10.0\r\n */\r\n this.target;\r\n\r\n /**\r\n * An array of the connected Gamepads.\r\n *\r\n * @name Phaser.Input.Gamepad.GamepadPlugin#gamepads\r\n * @type {Phaser.Input.Gamepad.Gamepad[]}\r\n * @default []\r\n * @since 3.10.0\r\n */\r\n this.gamepads = [];\r\n\r\n /**\r\n * An internal event queue.\r\n *\r\n * @name Phaser.Input.Gamepad.GamepadPlugin#queue\r\n * @type {GamepadEvent[]}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this.queue = [];\r\n\r\n /**\r\n * Internal event handler.\r\n *\r\n * @name Phaser.Input.Gamepad.GamepadPlugin#onGamepadHandler\r\n * @type {function}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this.onGamepadHandler;\r\n\r\n /**\r\n * Internal Gamepad reference.\r\n *\r\n * @name Phaser.Input.Gamepad.GamepadPlugin#_pad1\r\n * @type {Phaser.Input.Gamepad.Gamepad}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this._pad1;\r\n\r\n /**\r\n * Internal Gamepad reference.\r\n *\r\n * @name Phaser.Input.Gamepad.GamepadPlugin#_pad2\r\n * @type {Phaser.Input.Gamepad.Gamepad}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this._pad2;\r\n\r\n /**\r\n * Internal Gamepad reference.\r\n *\r\n * @name Phaser.Input.Gamepad.GamepadPlugin#_pad3\r\n * @type {Phaser.Input.Gamepad.Gamepad}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this._pad3;\r\n\r\n /**\r\n * Internal Gamepad reference.\r\n *\r\n * @name Phaser.Input.Gamepad.GamepadPlugin#_pad4\r\n * @type {Phaser.Input.Gamepad.Gamepad}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this._pad4;\r\n\r\n sceneInputPlugin.pluginEvents.once(InputEvents.BOOT, this.boot, this);\r\n sceneInputPlugin.pluginEvents.on(InputEvents.START, this.start, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically, only once, when the Scene is first created.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.Input.Gamepad.GamepadPlugin#boot\r\n * @private\r\n * @since 3.10.0\r\n */\r\n boot: function ()\r\n {\r\n var game = this.scene.sys.game;\r\n var settings = this.settings.input;\r\n var config = game.config;\r\n\r\n this.enabled = GetValue(settings, 'gamepad', config.inputGamepad) && game.device.input.gamepads;\r\n this.target = GetValue(settings, 'gamepad.target', config.inputGamepadEventTarget);\r\n\r\n this.sceneInputPlugin.pluginEvents.once(InputEvents.DESTROY, this.destroy, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically by the Scene when it is starting up.\r\n * It is responsible for creating local systems, properties and listening for Scene events.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.Input.Gamepad.GamepadPlugin#start\r\n * @private\r\n * @since 3.10.0\r\n */\r\n start: function ()\r\n {\r\n if (this.enabled)\r\n {\r\n this.startListeners();\r\n\r\n this.refreshPads();\r\n }\r\n\r\n this.sceneInputPlugin.pluginEvents.once(InputEvents.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * Checks to see if both this plugin and the Scene to which it belongs is active.\r\n *\r\n * @method Phaser.Input.Gamepad.GamepadPlugin#isActive\r\n * @since 3.10.0\r\n *\r\n * @return {boolean} `true` if the plugin and the Scene it belongs to is active.\r\n */\r\n isActive: function ()\r\n {\r\n return (this.enabled && this.scene.sys.isActive());\r\n },\r\n\r\n /**\r\n * Starts the Gamepad Event listeners running.\r\n * This is called automatically and does not need to be manually invoked.\r\n *\r\n * @method Phaser.Input.Gamepad.GamepadPlugin#startListeners\r\n * @private\r\n * @since 3.10.0\r\n */\r\n startListeners: function ()\r\n {\r\n var _this = this;\r\n var target = this.target;\r\n\r\n var handler = function (event)\r\n {\r\n if (event.defaultPrevented || !_this.isActive())\r\n {\r\n // Do nothing if event already handled\r\n return;\r\n }\r\n\r\n _this.refreshPads();\r\n\r\n _this.queue.push(event);\r\n };\r\n\r\n this.onGamepadHandler = handler;\r\n\r\n target.addEventListener('gamepadconnected', handler, false);\r\n target.addEventListener('gamepaddisconnected', handler, false);\r\n\r\n // FF also supports gamepadbuttondown, gamepadbuttonup and gamepadaxismove but\r\n // nothing else does, and we can get those values via the gamepads anyway, so we will\r\n // until more browsers support this\r\n\r\n // Finally, listen for an update event from the Input Plugin\r\n this.sceneInputPlugin.pluginEvents.on(InputEvents.UPDATE, this.update, this);\r\n },\r\n\r\n /**\r\n * Stops the Gamepad Event listeners.\r\n * This is called automatically and does not need to be manually invoked.\r\n *\r\n * @method Phaser.Input.Gamepad.GamepadPlugin#stopListeners\r\n * @private\r\n * @since 3.10.0\r\n */\r\n stopListeners: function ()\r\n {\r\n this.target.removeEventListener('gamepadconnected', this.onGamepadHandler);\r\n this.target.removeEventListener('gamepaddisconnected', this.onGamepadHandler);\r\n\r\n this.sceneInputPlugin.pluginEvents.off(InputEvents.UPDATE, this.update);\r\n\r\n for (var i = 0; i < this.gamepads.length; i++)\r\n {\r\n this.gamepads[i].removeAllListeners();\r\n }\r\n },\r\n\r\n /**\r\n * Disconnects all current Gamepads.\r\n *\r\n * @method Phaser.Input.Gamepad.GamepadPlugin#disconnectAll\r\n * @since 3.10.0\r\n */\r\n disconnectAll: function ()\r\n {\r\n for (var i = 0; i < this.gamepads.length; i++)\r\n {\r\n this.gamepads[i].pad.connected = false;\r\n }\r\n },\r\n\r\n /**\r\n * Refreshes the list of connected Gamepads.\r\n *\r\n * This is called automatically when a gamepad is connected or disconnected,\r\n * and during the update loop.\r\n *\r\n * @method Phaser.Input.Gamepad.GamepadPlugin#refreshPads\r\n * @private\r\n * @since 3.10.0\r\n */\r\n refreshPads: function ()\r\n {\r\n var connectedPads = navigator.getGamepads();\r\n\r\n if (!connectedPads)\r\n {\r\n this.disconnectAll();\r\n }\r\n else\r\n {\r\n var currentPads = this.gamepads;\r\n\r\n for (var i = 0; i < connectedPads.length; i++)\r\n {\r\n var livePad = connectedPads[i];\r\n\r\n // Because sometimes they're null (yes, really)\r\n if (!livePad)\r\n {\r\n continue;\r\n }\r\n\r\n var id = livePad.id;\r\n var index = livePad.index;\r\n var currentPad = currentPads[index];\r\n\r\n if (!currentPad)\r\n {\r\n // A new Gamepad, not currently stored locally\r\n var newPad = new Gamepad(this, livePad);\r\n\r\n currentPads[index] = newPad;\r\n\r\n if (!this._pad1)\r\n {\r\n this._pad1 = newPad;\r\n }\r\n else if (!this._pad2)\r\n {\r\n this._pad2 = newPad;\r\n }\r\n else if (!this._pad3)\r\n {\r\n this._pad3 = newPad;\r\n }\r\n else if (!this._pad4)\r\n {\r\n this._pad4 = newPad;\r\n }\r\n }\r\n else if (currentPad.id !== id)\r\n {\r\n // A new Gamepad with a different vendor string, but it has got the same index as an old one\r\n currentPad.destroy();\r\n\r\n currentPads[index] = new Gamepad(this, livePad);\r\n }\r\n else\r\n {\r\n // If neither of these, it's a pad we've already got, so update it\r\n currentPad.update(livePad);\r\n }\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Returns an array of all currently connected Gamepads.\r\n *\r\n * @method Phaser.Input.Gamepad.GamepadPlugin#getAll\r\n * @since 3.10.0\r\n *\r\n * @return {Phaser.Input.Gamepad.Gamepad[]} An array of all currently connected Gamepads.\r\n */\r\n getAll: function ()\r\n {\r\n var out = [];\r\n var pads = this.gamepads;\r\n\r\n for (var i = 0; i < pads.length; i++)\r\n {\r\n if (pads[i])\r\n {\r\n out.push(pads[i]);\r\n }\r\n }\r\n\r\n return out;\r\n },\r\n\r\n /**\r\n * Looks-up a single Gamepad based on the given index value.\r\n *\r\n * @method Phaser.Input.Gamepad.GamepadPlugin#getPad\r\n * @since 3.10.0\r\n *\r\n * @param {number} index - The index of the Gamepad to get.\r\n *\r\n * @return {Phaser.Input.Gamepad.Gamepad} The Gamepad matching the given index, or undefined if none were found.\r\n */\r\n getPad: function (index)\r\n {\r\n var pads = this.gamepads;\r\n\r\n for (var i = 0; i < pads.length; i++)\r\n {\r\n if (pads[i] && pads[i].index === index)\r\n {\r\n return pads[i];\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * The internal update loop. Refreshes all connected gamepads and processes their events.\r\n *\r\n * Called automatically by the Input Manager, invoked from the Game step.\r\n *\r\n * @method Phaser.Input.Gamepad.GamepadPlugin#update\r\n * @private\r\n * @fires Phaser.Input.Gamepad.Events#CONNECTED\r\n * @fires Phaser.Input.Gamepad.Events#DISCONNECTED\r\n * @since 3.10.0\r\n */\r\n update: function ()\r\n {\r\n if (!this.enabled)\r\n {\r\n return;\r\n }\r\n\r\n this.refreshPads();\r\n\r\n var len = this.queue.length;\r\n\r\n if (len === 0)\r\n {\r\n return;\r\n }\r\n\r\n var queue = this.queue.splice(0, len);\r\n\r\n // Process the event queue, dispatching all of the events that have stored up\r\n for (var i = 0; i < len; i++)\r\n {\r\n var event = queue[i];\r\n var pad = this.getPad(event.gamepad.index);\r\n\r\n if (event.type === 'gamepadconnected')\r\n {\r\n this.emit(Events.CONNECTED, pad, event);\r\n }\r\n else if (event.type === 'gamepaddisconnected')\r\n {\r\n this.emit(Events.DISCONNECTED, pad, event);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Shuts the Gamepad Plugin down.\r\n * All this does is remove any listeners bound to it.\r\n *\r\n * @method Phaser.Input.Gamepad.GamepadPlugin#shutdown\r\n * @private\r\n * @since 3.10.0\r\n */\r\n shutdown: function ()\r\n {\r\n this.stopListeners();\r\n\r\n this.removeAllListeners();\r\n },\r\n\r\n /**\r\n * Destroys this Gamepad Plugin, disconnecting all Gamepads and releasing internal references.\r\n *\r\n * @method Phaser.Input.Gamepad.GamepadPlugin#destroy\r\n * @private\r\n * @since 3.10.0\r\n */\r\n destroy: function ()\r\n {\r\n this.shutdown();\r\n\r\n for (var i = 0; i < this.gamepads.length; i++)\r\n {\r\n if (this.gamepads[i])\r\n {\r\n this.gamepads[i].destroy();\r\n }\r\n }\r\n\r\n this.gamepads = [];\r\n\r\n this.scene = null;\r\n this.settings = null;\r\n this.sceneInputPlugin = null;\r\n this.target = null;\r\n },\r\n\r\n /**\r\n * The total number of connected game pads.\r\n *\r\n * @name Phaser.Input.Gamepad.GamepadPlugin#total\r\n * @type {number}\r\n * @since 3.10.0\r\n */\r\n total: {\r\n\r\n get: function ()\r\n {\r\n return this.gamepads.length;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * A reference to the first connected Gamepad.\r\n *\r\n * This will be undefined if either no pads are connected, or the browser\r\n * has not yet issued a gamepadconnect, which can happen even if a Gamepad\r\n * is plugged in, but hasn't yet had any buttons pressed on it.\r\n *\r\n * @name Phaser.Input.Gamepad.GamepadPlugin#pad1\r\n * @type {Phaser.Input.Gamepad.Gamepad}\r\n * @since 3.10.0\r\n */\r\n pad1: {\r\n\r\n get: function ()\r\n {\r\n return this._pad1;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * A reference to the second connected Gamepad.\r\n *\r\n * This will be undefined if either no pads are connected, or the browser\r\n * has not yet issued a gamepadconnect, which can happen even if a Gamepad\r\n * is plugged in, but hasn't yet had any buttons pressed on it.\r\n *\r\n * @name Phaser.Input.Gamepad.GamepadPlugin#pad2\r\n * @type {Phaser.Input.Gamepad.Gamepad}\r\n * @since 3.10.0\r\n */\r\n pad2: {\r\n\r\n get: function ()\r\n {\r\n return this._pad2;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * A reference to the third connected Gamepad.\r\n *\r\n * This will be undefined if either no pads are connected, or the browser\r\n * has not yet issued a gamepadconnect, which can happen even if a Gamepad\r\n * is plugged in, but hasn't yet had any buttons pressed on it.\r\n *\r\n * @name Phaser.Input.Gamepad.GamepadPlugin#pad3\r\n * @type {Phaser.Input.Gamepad.Gamepad}\r\n * @since 3.10.0\r\n */\r\n pad3: {\r\n\r\n get: function ()\r\n {\r\n return this._pad3;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * A reference to the fourth connected Gamepad.\r\n *\r\n * This will be undefined if either no pads are connected, or the browser\r\n * has not yet issued a gamepadconnect, which can happen even if a Gamepad\r\n * is plugged in, but hasn't yet had any buttons pressed on it.\r\n *\r\n * @name Phaser.Input.Gamepad.GamepadPlugin#pad4\r\n * @type {Phaser.Input.Gamepad.Gamepad}\r\n * @since 3.10.0\r\n */\r\n pad4: {\r\n\r\n get: function ()\r\n {\r\n return this._pad4;\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\n/**\r\n * An instance of the Gamepad Plugin class, if enabled via the `input.gamepad` Scene or Game Config property.\r\n * Use this to create access Gamepads connected to the browser and respond to gamepad buttons.\r\n *\r\n * @name Phaser.Input.InputPlugin#gamepad\r\n * @type {?Phaser.Input.Gamepad.GamepadPlugin}\r\n * @since 3.10.0\r\n */\r\nInputPluginCache.register('GamepadPlugin', GamepadPlugin, 'gamepad', 'gamepad', 'inputGamepad');\r\n\r\nmodule.exports = GamepadPlugin;\r\n\n\n/***/ }),\n\n/***/ 89651:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Tatar SNES USB Controller Gamepad Configuration.\r\n * USB Gamepad (STANDARD GAMEPAD Vendor: 0079 Product: 0011)\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.SNES_USB\r\n * @namespace\r\n * @since 3.0.0\r\n */\r\nmodule.exports = {\r\n\r\n /**\r\n * D-Pad up\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.SNES_USB.UP\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n UP: 12,\r\n\r\n /**\r\n * D-Pad down\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.SNES_USB.DOWN\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n DOWN: 13,\r\n\r\n /**\r\n * D-Pad left\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.SNES_USB.LEFT\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n LEFT: 14,\r\n\r\n /**\r\n * D-Pad right\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.SNES_USB.RIGHT\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n RIGHT: 15,\r\n\r\n /**\r\n * Select button\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.SNES_USB.SELECT\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n SELECT: 8,\r\n\r\n /**\r\n * Start button\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.SNES_USB.START\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n START: 9,\r\n\r\n /**\r\n * B Button (Bottom)\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.SNES_USB.B\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n B: 0,\r\n\r\n /**\r\n * A Button (Right)\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.SNES_USB.A\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n A: 1,\r\n\r\n /**\r\n * Y Button (Left)\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.SNES_USB.Y\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n Y: 2,\r\n\r\n /**\r\n * X Button (Top)\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.SNES_USB.X\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n X: 3,\r\n\r\n /**\r\n * Left bumper\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.SNES_USB.LEFT_SHOULDER\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n LEFT_SHOULDER: 4,\r\n\r\n /**\r\n * Right bumper\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.SNES_USB.RIGHT_SHOULDER\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n RIGHT_SHOULDER: 5\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 65294:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * PlayStation DualShock 4 Gamepad Configuration.\r\n * Sony PlayStation DualShock 4 (v2) wireless controller\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4\r\n * @namespace\r\n * @since 3.0.0\r\n */\r\nmodule.exports = {\r\n\r\n /**\r\n * D-Pad up\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4.UP\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n UP: 12,\r\n\r\n /**\r\n * D-Pad down\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4.DOWN\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n DOWN: 13,\r\n\r\n /**\r\n * D-Pad left\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4.LEFT\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n LEFT: 14,\r\n\r\n /**\r\n * D-Pad up\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4.RIGHT\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n RIGHT: 15,\r\n\r\n /**\r\n * Share button\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4.SHARE\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n SHARE: 8,\r\n\r\n /**\r\n * Options button\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4.OPTIONS\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n OPTIONS: 9,\r\n\r\n /**\r\n * PlayStation logo button\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4.PS\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n PS: 16,\r\n\r\n /**\r\n * Touchpad click\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4.TOUCHBAR\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n TOUCHBAR: 17,\r\n\r\n /**\r\n * Cross button (Bottom)\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4.X\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n X: 0,\r\n\r\n /**\r\n * Circle button (Right)\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4.CIRCLE\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n CIRCLE: 1,\r\n\r\n /**\r\n * Square button (Left)\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4.SQUARE\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n SQUARE: 2,\r\n\r\n /**\r\n * Triangle button (Top)\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4.TRIANGLE\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n TRIANGLE: 3,\r\n\r\n /**\r\n * Left bumper (L1)\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4.L1\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n L1: 4,\r\n\r\n /**\r\n * Right bumper (R1)\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4.R1\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n R1: 5,\r\n\r\n /**\r\n * Left trigger (L2)\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4.L2\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n L2: 6,\r\n\r\n /**\r\n * Right trigger (R2)\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4.R2\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n R2: 7,\r\n\r\n /**\r\n * Left stick click (L3)\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4.L3\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n L3: 10,\r\n\r\n /**\r\n * Right stick click (R3)\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4.R3\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n R3: 11,\r\n\r\n /**\r\n * Left stick horizontal\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4.LEFT_STICK_H\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n LEFT_STICK_H: 0,\r\n\r\n /**\r\n * Left stick vertical\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4.LEFT_STICK_V\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n LEFT_STICK_V: 1,\r\n\r\n /**\r\n * Right stick horizontal\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4.RIGHT_STICK_H\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n RIGHT_STICK_H: 2,\r\n\r\n /**\r\n * Right stick vertical\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.DUALSHOCK_4.RIGHT_STICK_V\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n RIGHT_STICK_V: 3\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 90089:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * XBox 360 Gamepad Configuration.\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.XBOX_360\r\n * @namespace\r\n * @since 3.0.0\r\n */\r\nmodule.exports = {\r\n\r\n /**\r\n * D-Pad up\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.XBOX_360.UP\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n UP: 12,\r\n\r\n /**\r\n * D-Pad down\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.XBOX_360.DOWN\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n DOWN: 13,\r\n\r\n /**\r\n * D-Pad left\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.XBOX_360.LEFT\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n LEFT: 14,\r\n\r\n /**\r\n * D-Pad right\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.XBOX_360.RIGHT\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n RIGHT: 15,\r\n\r\n /**\r\n * XBox menu button\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.XBOX_360.MENU\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n MENU: 16,\r\n\r\n /**\r\n * A button (Bottom)\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.XBOX_360.A\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n A: 0,\r\n\r\n /**\r\n * B button (Right)\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.XBOX_360.B\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n B: 1,\r\n\r\n /**\r\n * X button (Left)\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.XBOX_360.X\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n X: 2,\r\n\r\n /**\r\n * Y button (Top)\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.XBOX_360.Y\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n Y: 3,\r\n\r\n /**\r\n * Left Bumper\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.XBOX_360.LB\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n LB: 4,\r\n\r\n /**\r\n * Right Bumper\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.XBOX_360.RB\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n RB: 5,\r\n\r\n /**\r\n * Left Trigger\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.XBOX_360.LT\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n LT: 6,\r\n\r\n /**\r\n * Right Trigger\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.XBOX_360.RT\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n RT: 7,\r\n\r\n /**\r\n * Back / Change View button\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.XBOX_360.BACK\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n BACK: 8,\r\n\r\n /**\r\n * Start button\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.XBOX_360.START\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n START: 9,\r\n\r\n /**\r\n * Left Stick press\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.XBOX_360.LS\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n LS: 10,\r\n\r\n /**\r\n * Right stick press\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.XBOX_360.RS\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n RS: 11,\r\n\r\n /**\r\n * Left Stick horizontal\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.XBOX_360.LEFT_STICK_H\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n LEFT_STICK_H: 0,\r\n\r\n /**\r\n * Left Stick vertical\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.XBOX_360.LEFT_STICK_V\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n LEFT_STICK_V: 1,\r\n\r\n /**\r\n * Right Stick horizontal\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.XBOX_360.RIGHT_STICK_H\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n RIGHT_STICK_H: 2,\r\n\r\n /**\r\n * Right Stick vertical\r\n *\r\n * @name Phaser.Input.Gamepad.Configs.XBOX_360.RIGHT_STICK_V\r\n * @const\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n RIGHT_STICK_V: 3\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 64894:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Input.Gamepad.Configs\r\n */\r\n\r\nmodule.exports = {\r\n\r\n DUALSHOCK_4: __webpack_require__(65294),\r\n SNES_USB: __webpack_require__(89651),\r\n XBOX_360: __webpack_require__(90089)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 46008:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Gamepad Button Down Event.\r\n *\r\n * This event is dispatched by the Gamepad Plugin when a button has been pressed on any active Gamepad.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.gamepad.on('down', listener)`.\r\n *\r\n * You can also listen for a DOWN event from a Gamepad instance. See the [GAMEPAD_BUTTON_DOWN]{@linkcode Phaser.Input.Gamepad.Events#event:GAMEPAD_BUTTON_DOWN} event for details.\r\n *\r\n * @event Phaser.Input.Gamepad.Events#BUTTON_DOWN\r\n * @type {string}\r\n * @since 3.10.0\r\n *\r\n * @param {Phaser.Input.Gamepad} pad - A reference to the Gamepad on which the button was pressed.\r\n * @param {Phaser.Input.Gamepad.Button} button - A reference to the Button which was pressed.\r\n * @param {number} value - The value of the button at the time it was pressed. Between 0 and 1. Some Gamepads have pressure-sensitive buttons.\r\n */\r\nmodule.exports = 'down';\r\n\n\n/***/ }),\n\n/***/ 7629:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Gamepad Button Up Event.\r\n *\r\n * This event is dispatched by the Gamepad Plugin when a button has been released on any active Gamepad.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.gamepad.on('up', listener)`.\r\n *\r\n * You can also listen for an UP event from a Gamepad instance. See the [GAMEPAD_BUTTON_UP]{@linkcode Phaser.Input.Gamepad.Events#event:GAMEPAD_BUTTON_UP} event for details.\r\n *\r\n * @event Phaser.Input.Gamepad.Events#BUTTON_UP\r\n * @type {string}\r\n * @since 3.10.0\r\n *\r\n * @param {Phaser.Input.Gamepad} pad - A reference to the Gamepad on which the button was released.\r\n * @param {Phaser.Input.Gamepad.Button} button - A reference to the Button which was released.\r\n * @param {number} value - The value of the button at the time it was released. Between 0 and 1. Some Gamepads have pressure-sensitive buttons.\r\n */\r\nmodule.exports = 'up';\r\n\n\n/***/ }),\n\n/***/ 42206:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Gamepad Connected Event.\r\n *\r\n * This event is dispatched by the Gamepad Plugin when a Gamepad has been connected.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.gamepad.once('connected', listener)`.\r\n *\r\n * Note that the browser may require you to press a button on a gamepad before it will allow you to access it,\r\n * this is for security reasons. However, it may also trust the page already, in which case you won't get the\r\n * 'connected' event and instead should check `GamepadPlugin.total` to see if it thinks there are any gamepads\r\n * already connected.\r\n *\r\n * @event Phaser.Input.Gamepad.Events#CONNECTED\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Gamepad} pad - A reference to the Gamepad which was connected.\r\n * @param {Event} event - The native DOM Event that triggered the connection.\r\n */\r\nmodule.exports = 'connected';\r\n\n\n/***/ }),\n\n/***/ 86544:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Gamepad Disconnected Event.\r\n *\r\n * This event is dispatched by the Gamepad Plugin when a Gamepad has been disconnected.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.gamepad.once('disconnected', listener)`.\r\n *\r\n * @event Phaser.Input.Gamepad.Events#DISCONNECTED\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Gamepad} pad - A reference to the Gamepad which was disconnected.\r\n * @param {Event} event - The native DOM Event that triggered the disconnection.\r\n */\r\nmodule.exports = 'disconnected';\r\n\n\n/***/ }),\n\n/***/ 94784:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Gamepad Button Down Event.\r\n *\r\n * This event is dispatched by a Gamepad instance when a button has been pressed on it.\r\n *\r\n * Listen to this event from a Gamepad instance. Once way to get this is from the `pad1`, `pad2`, etc properties on the Gamepad Plugin:\r\n * `this.input.gamepad.pad1.on('down', listener)`.\r\n *\r\n * Note that you will not receive any Gamepad button events until the browser considers the Gamepad as being 'connected'.\r\n *\r\n * You can also listen for a DOWN event from the Gamepad Plugin. See the [BUTTON_DOWN]{@linkcode Phaser.Input.Gamepad.Events#event:BUTTON_DOWN} event for details.\r\n *\r\n * @event Phaser.Input.Gamepad.Events#GAMEPAD_BUTTON_DOWN\r\n * @type {string}\r\n * @since 3.10.0\r\n *\r\n * @param {number} index - The index of the button that was pressed.\r\n * @param {number} value - The value of the button at the time it was pressed. Between 0 and 1. Some Gamepads have pressure-sensitive buttons.\r\n * @param {Phaser.Input.Gamepad.Button} button - A reference to the Button which was pressed.\r\n */\r\nmodule.exports = 'down';\r\n\n\n/***/ }),\n\n/***/ 14325:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Gamepad Button Up Event.\r\n *\r\n * This event is dispatched by a Gamepad instance when a button has been released on it.\r\n *\r\n * Listen to this event from a Gamepad instance. Once way to get this is from the `pad1`, `pad2`, etc properties on the Gamepad Plugin:\r\n * `this.input.gamepad.pad1.on('up', listener)`.\r\n *\r\n * Note that you will not receive any Gamepad button events until the browser considers the Gamepad as being 'connected'.\r\n *\r\n * You can also listen for an UP event from the Gamepad Plugin. See the [BUTTON_UP]{@linkcode Phaser.Input.Gamepad.Events#event:BUTTON_UP} event for details.\r\n *\r\n * @event Phaser.Input.Gamepad.Events#GAMEPAD_BUTTON_UP\r\n * @type {string}\r\n * @since 3.10.0\r\n *\r\n * @param {number} index - The index of the button that was released.\r\n * @param {number} value - The value of the button at the time it was released. Between 0 and 1. Some Gamepads have pressure-sensitive buttons.\r\n * @param {Phaser.Input.Gamepad.Button} button - A reference to the Button which was released.\r\n */\r\nmodule.exports = 'up';\r\n\n\n/***/ }),\n\n/***/ 92734:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Input.Gamepad.Events\r\n */\r\n\r\nmodule.exports = {\r\n\r\n BUTTON_DOWN: __webpack_require__(46008),\r\n BUTTON_UP: __webpack_require__(7629),\r\n CONNECTED: __webpack_require__(42206),\r\n DISCONNECTED: __webpack_require__(86544),\r\n GAMEPAD_BUTTON_DOWN: __webpack_require__(94784),\r\n GAMEPAD_BUTTON_UP: __webpack_require__(14325)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 48646:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Input.Gamepad\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Axis: __webpack_require__(97421),\r\n Button: __webpack_require__(28884),\r\n Events: __webpack_require__(92734),\r\n Gamepad: __webpack_require__(99125),\r\n GamepadPlugin: __webpack_require__(56654),\r\n\r\n Configs: __webpack_require__(64894)\r\n};\r\n\n\n/***/ }),\n\n/***/ 14350:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(93301);\r\nvar Extend = __webpack_require__(79291);\r\n\r\n/**\r\n * @namespace Phaser.Input\r\n */\r\n\r\nvar Input = {\r\n\r\n CreatePixelPerfectHandler: __webpack_require__(84409),\r\n CreateInteractiveObject: __webpack_require__(74457),\r\n Events: __webpack_require__(8214),\r\n Gamepad: __webpack_require__(48646),\r\n InputManager: __webpack_require__(7003),\r\n InputPlugin: __webpack_require__(48205),\r\n InputPluginCache: __webpack_require__(89639),\r\n Keyboard: __webpack_require__(51442),\r\n Mouse: __webpack_require__(87078),\r\n Pointer: __webpack_require__(42515),\r\n Touch: __webpack_require__(95618)\r\n\r\n};\r\n\r\n// Merge in the consts\r\nInput = Extend(false, Input, CONST);\r\n\r\nmodule.exports = Input;\r\n\n\n/***/ }),\n\n/***/ 78970:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar ArrayRemove = __webpack_require__(72905);\r\nvar Class = __webpack_require__(83419);\r\nvar GameEvents = __webpack_require__(8443);\r\nvar InputEvents = __webpack_require__(8214);\r\nvar KeyCodes = __webpack_require__(46032);\r\nvar NOOP = __webpack_require__(29747);\r\n\r\n/**\r\n * @classdesc\r\n * The Keyboard Manager is a helper class that belongs to the global Input Manager.\r\n *\r\n * Its role is to listen for native DOM Keyboard Events and then store them for further processing by the Keyboard Plugin.\r\n *\r\n * You do not need to create this class directly, the Input Manager will create an instance of it automatically if keyboard\r\n * input has been enabled in the Game Config.\r\n *\r\n * @class KeyboardManager\r\n * @memberof Phaser.Input.Keyboard\r\n * @constructor\r\n * @since 3.16.0\r\n *\r\n * @param {Phaser.Input.InputManager} inputManager - A reference to the Input Manager.\r\n */\r\nvar KeyboardManager = new Class({\r\n\r\n initialize:\r\n\r\n function KeyboardManager (inputManager)\r\n {\r\n /**\r\n * A reference to the Input Manager.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyboardManager#manager\r\n * @type {Phaser.Input.InputManager}\r\n * @since 3.16.0\r\n */\r\n this.manager = inputManager;\r\n\r\n /**\r\n * An internal event queue.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyboardManager#queue\r\n * @type {KeyboardEvent[]}\r\n * @private\r\n * @since 3.16.0\r\n */\r\n this.queue = [];\r\n\r\n /**\r\n * A flag that controls if the non-modified keys, matching those stored in the `captures` array,\r\n * have `preventDefault` called on them or not.\r\n *\r\n * A non-modified key is one that doesn't have a modifier key held down with it. The modifier keys are\r\n * shift, control, alt and the meta key (Command on a Mac, the Windows Key on Windows).\r\n * Therefore, if the user presses shift + r, it won't prevent this combination, because of the modifier.\r\n * However, if the user presses just the r key on its own, it will have its event prevented.\r\n *\r\n * If you wish to stop capturing the keys, for example switching out to a DOM based element, then\r\n * you can toggle this property at run-time.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyboardManager#preventDefault\r\n * @type {boolean}\r\n * @since 3.16.0\r\n */\r\n this.preventDefault = true;\r\n\r\n /**\r\n * An array of Key Code values that will automatically have `preventDefault` called on them,\r\n * as long as the `KeyboardManager.preventDefault` boolean is set to `true`.\r\n *\r\n * By default the array is empty.\r\n *\r\n * The key must be non-modified when pressed in order to be captured.\r\n *\r\n * A non-modified key is one that doesn't have a modifier key held down with it. The modifier keys are\r\n * shift, control, alt and the meta key (Command on a Mac, the Windows Key on Windows).\r\n * Therefore, if the user presses shift + r, it won't prevent this combination, because of the modifier.\r\n * However, if the user presses just the r key on its own, it will have its event prevented.\r\n *\r\n * If you wish to stop capturing the keys, for example switching out to a DOM based element, then\r\n * you can toggle the `KeyboardManager.preventDefault` boolean at run-time.\r\n *\r\n * If you need more specific control, you can create Key objects and set the flag on each of those instead.\r\n *\r\n * This array can be populated via the Game Config by setting the `input.keyboard.capture` array, or you\r\n * can call the `addCapture` method. See also `removeCapture` and `clearCaptures`.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyboardManager#captures\r\n * @type {number[]}\r\n * @since 3.16.0\r\n */\r\n this.captures = [];\r\n\r\n /**\r\n * A boolean that controls if the Keyboard Manager is enabled or not.\r\n * Can be toggled on the fly.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyboardManager#enabled\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.16.0\r\n */\r\n this.enabled = false;\r\n\r\n /**\r\n * The Keyboard Event target, as defined in the Game Config.\r\n * Typically the window in which the game is rendering, but can be any interactive DOM element.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyboardManager#target\r\n * @type {any}\r\n * @since 3.16.0\r\n */\r\n this.target;\r\n\r\n /**\r\n * The Key Down Event handler.\r\n * This function is sent the native DOM KeyEvent.\r\n * Initially empty and bound in the `startListeners` method.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyboardManager#onKeyDown\r\n * @type {function}\r\n * @since 3.16.00\r\n */\r\n this.onKeyDown = NOOP;\r\n\r\n /**\r\n * The Key Up Event handler.\r\n * This function is sent the native DOM KeyEvent.\r\n * Initially empty and bound in the `startListeners` method.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyboardManager#onKeyUp\r\n * @type {function}\r\n * @since 3.16.00\r\n */\r\n this.onKeyUp = NOOP;\r\n\r\n inputManager.events.once(InputEvents.MANAGER_BOOT, this.boot, this);\r\n },\r\n\r\n /**\r\n * The Keyboard Manager boot process.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardManager#boot\r\n * @private\r\n * @since 3.16.0\r\n */\r\n boot: function ()\r\n {\r\n var config = this.manager.config;\r\n\r\n this.enabled = config.inputKeyboard;\r\n this.target = config.inputKeyboardEventTarget;\r\n\r\n this.addCapture(config.inputKeyboardCapture);\r\n\r\n if (!this.target && window)\r\n {\r\n this.target = window;\r\n }\r\n\r\n if (this.enabled && this.target)\r\n {\r\n this.startListeners();\r\n }\r\n\r\n this.manager.game.events.on(GameEvents.POST_STEP, this.postUpdate, this);\r\n },\r\n\r\n /**\r\n * Starts the Keyboard Event listeners running.\r\n * This is called automatically and does not need to be manually invoked.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardManager#startListeners\r\n * @since 3.16.0\r\n */\r\n startListeners: function ()\r\n {\r\n var _this = this;\r\n\r\n this.onKeyDown = function (event)\r\n {\r\n if (event.defaultPrevented || !_this.enabled || !_this.manager)\r\n {\r\n // Do nothing if event already handled\r\n return;\r\n }\r\n\r\n _this.queue.push(event);\r\n\r\n _this.manager.events.emit(InputEvents.MANAGER_PROCESS);\r\n\r\n var modified = (event.altKey || event.ctrlKey || event.shiftKey || event.metaKey);\r\n\r\n if (_this.preventDefault && !modified && _this.captures.indexOf(event.keyCode) > -1)\r\n {\r\n event.preventDefault();\r\n }\r\n };\r\n\r\n this.onKeyUp = function (event)\r\n {\r\n if (event.defaultPrevented || !_this.enabled || !_this.manager)\r\n {\r\n // Do nothing if event already handled\r\n return;\r\n }\r\n\r\n _this.queue.push(event);\r\n\r\n _this.manager.events.emit(InputEvents.MANAGER_PROCESS);\r\n\r\n var modified = (event.altKey || event.ctrlKey || event.shiftKey || event.metaKey);\r\n\r\n if (_this.preventDefault && !modified && _this.captures.indexOf(event.keyCode) > -1)\r\n {\r\n event.preventDefault();\r\n }\r\n };\r\n\r\n var target = this.target;\r\n\r\n if (target)\r\n {\r\n target.addEventListener('keydown', this.onKeyDown, false);\r\n target.addEventListener('keyup', this.onKeyUp, false);\r\n\r\n this.enabled = true;\r\n }\r\n },\r\n\r\n /**\r\n * Stops the Key Event listeners.\r\n * This is called automatically and does not need to be manually invoked.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardManager#stopListeners\r\n * @since 3.16.0\r\n */\r\n stopListeners: function ()\r\n {\r\n var target = this.target;\r\n\r\n target.removeEventListener('keydown', this.onKeyDown, false);\r\n target.removeEventListener('keyup', this.onKeyUp, false);\r\n\r\n this.enabled = false;\r\n },\r\n\r\n /**\r\n * Clears the event queue.\r\n * Called automatically by the Input Manager.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardManager#postUpdate\r\n * @private\r\n * @since 3.16.0\r\n */\r\n postUpdate: function ()\r\n {\r\n this.queue = [];\r\n },\r\n\r\n /**\r\n * By default when a key is pressed Phaser will not stop the event from propagating up to the browser.\r\n * There are some keys this can be annoying for, like the arrow keys or space bar, which make the browser window scroll.\r\n *\r\n * This `addCapture` method enables consuming keyboard event for specific keys so it doesn't bubble up to the the browser\r\n * and cause the default browser behavior.\r\n *\r\n * Please note that keyboard captures are global. This means that if you call this method from within a Scene, to say prevent\r\n * the SPACE BAR from triggering a page scroll, then it will prevent it for any Scene in your game, not just the calling one.\r\n *\r\n * You can pass in a single key code value, or an array of key codes, or a string:\r\n *\r\n * ```javascript\r\n * this.input.keyboard.addCapture(62);\r\n * ```\r\n *\r\n * An array of key codes:\r\n *\r\n * ```javascript\r\n * this.input.keyboard.addCapture([ 62, 63, 64 ]);\r\n * ```\r\n *\r\n * Or a string:\r\n *\r\n * ```javascript\r\n * this.input.keyboard.addCapture('W,S,A,D');\r\n * ```\r\n *\r\n * To use non-alpha numeric keys, use a string, such as 'UP', 'SPACE' or 'LEFT'.\r\n *\r\n * You can also provide an array mixing both strings and key code integers.\r\n *\r\n * If there are active captures after calling this method, the `preventDefault` property is set to `true`.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardManager#addCapture\r\n * @since 3.16.0\r\n *\r\n * @param {(string|number|number[]|any[])} keycode - The Key Codes to enable capture for, preventing them reaching the browser.\r\n */\r\n addCapture: function (keycode)\r\n {\r\n if (typeof keycode === 'string')\r\n {\r\n keycode = keycode.split(',');\r\n }\r\n\r\n if (!Array.isArray(keycode))\r\n {\r\n keycode = [ keycode ];\r\n }\r\n\r\n var captures = this.captures;\r\n\r\n for (var i = 0; i < keycode.length; i++)\r\n {\r\n var code = keycode[i];\r\n\r\n if (typeof code === 'string')\r\n {\r\n code = KeyCodes[code.trim().toUpperCase()];\r\n }\r\n\r\n if (captures.indexOf(code) === -1)\r\n {\r\n captures.push(code);\r\n }\r\n }\r\n\r\n this.preventDefault = captures.length > 0;\r\n },\r\n\r\n /**\r\n * Removes an existing key capture.\r\n *\r\n * Please note that keyboard captures are global. This means that if you call this method from within a Scene, to remove\r\n * the capture of a key, then it will remove it for any Scene in your game, not just the calling one.\r\n *\r\n * You can pass in a single key code value, or an array of key codes, or a string:\r\n *\r\n * ```javascript\r\n * this.input.keyboard.removeCapture(62);\r\n * ```\r\n *\r\n * An array of key codes:\r\n *\r\n * ```javascript\r\n * this.input.keyboard.removeCapture([ 62, 63, 64 ]);\r\n * ```\r\n *\r\n * Or a string:\r\n *\r\n * ```javascript\r\n * this.input.keyboard.removeCapture('W,S,A,D');\r\n * ```\r\n *\r\n * To use non-alpha numeric keys, use a string, such as 'UP', 'SPACE' or 'LEFT'.\r\n *\r\n * You can also provide an array mixing both strings and key code integers.\r\n *\r\n * If there are no captures left after calling this method, the `preventDefault` property is set to `false`.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardManager#removeCapture\r\n * @since 3.16.0\r\n *\r\n * @param {(string|number|number[]|any[])} keycode - The Key Codes to disable capture for, allowing them reaching the browser again.\r\n */\r\n removeCapture: function (keycode)\r\n {\r\n if (typeof keycode === 'string')\r\n {\r\n keycode = keycode.split(',');\r\n }\r\n\r\n if (!Array.isArray(keycode))\r\n {\r\n keycode = [ keycode ];\r\n }\r\n\r\n var captures = this.captures;\r\n\r\n for (var i = 0; i < keycode.length; i++)\r\n {\r\n var code = keycode[i];\r\n\r\n if (typeof code === 'string')\r\n {\r\n code = KeyCodes[code.toUpperCase()];\r\n }\r\n\r\n ArrayRemove(captures, code);\r\n }\r\n\r\n this.preventDefault = captures.length > 0;\r\n },\r\n\r\n /**\r\n * Removes all keyboard captures and sets the `preventDefault` property to `false`.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardManager#clearCaptures\r\n * @since 3.16.0\r\n */\r\n clearCaptures: function ()\r\n {\r\n this.captures = [];\r\n\r\n this.preventDefault = false;\r\n },\r\n\r\n /**\r\n * Destroys this Keyboard Manager instance.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardManager#destroy\r\n * @since 3.16.0\r\n */\r\n destroy: function ()\r\n {\r\n this.stopListeners();\r\n\r\n this.clearCaptures();\r\n\r\n this.queue = [];\r\n\r\n this.manager.game.events.off(GameEvents.POST_RENDER, this.postUpdate, this);\r\n\r\n this.target = null;\r\n this.enabled = false;\r\n this.manager = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = KeyboardManager;\r\n\n\n/***/ }),\n\n/***/ 28846:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Events = __webpack_require__(95922);\r\nvar GameEvents = __webpack_require__(8443);\r\nvar GetValue = __webpack_require__(35154);\r\nvar InputEvents = __webpack_require__(8214);\r\nvar InputPluginCache = __webpack_require__(89639);\r\nvar Key = __webpack_require__(30472);\r\nvar KeyCodes = __webpack_require__(46032);\r\nvar KeyCombo = __webpack_require__(87960);\r\nvar KeyMap = __webpack_require__(74600);\r\nvar SceneEvents = __webpack_require__(44594);\r\nvar SnapFloor = __webpack_require__(56583);\r\n\r\n/**\r\n * @classdesc\r\n * The Keyboard Plugin is an input plugin that belongs to the Scene-owned Input system.\r\n *\r\n * Its role is to listen for native DOM Keyboard Events and then process them.\r\n *\r\n * You do not need to create this class directly, the Input system will create an instance of it automatically.\r\n *\r\n * You can access it from within a Scene using `this.input.keyboard`. For example, you can do:\r\n *\r\n * ```javascript\r\n * this.input.keyboard.on('keydown', callback, context);\r\n * ```\r\n *\r\n * Or, to listen for a specific key:\r\n *\r\n * ```javascript\r\n * this.input.keyboard.on('keydown-A', callback, context);\r\n * ```\r\n *\r\n * You can also create Key objects, which you can then poll in your game loop:\r\n *\r\n * ```javascript\r\n * var spaceBar = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.SPACE);\r\n * ```\r\n *\r\n * If you have multiple parallel Scenes, each trying to get keyboard input, be sure to disable capture on them to stop them from\r\n * stealing input from another Scene in the list. You can do this with `this.input.keyboard.enabled = false` within the\r\n * Scene to stop all input, or `this.input.keyboard.preventDefault = false` to stop a Scene halting input on another Scene.\r\n *\r\n * _Note_: Many keyboards are unable to process certain combinations of keys due to hardware limitations known as ghosting.\r\n * See http://www.html5gamedevs.com/topic/4876-impossible-to-use-more-than-2-keyboard-input-buttons-at-the-same-time/ for more details\r\n * and use the site https://w3c.github.io/uievents/tools/key-event-viewer.html to test your n-key support in browser.\r\n *\r\n * Also please be aware that certain browser extensions can disable or override Phaser keyboard handling.\r\n * For example the Chrome extension vimium is known to disable Phaser from using the D key, while EverNote disables the backtick key.\r\n * And there are others. So, please check your extensions before opening Phaser issues about keys that don't work.\r\n *\r\n * @class KeyboardPlugin\r\n * @extends Phaser.Events.EventEmitter\r\n * @memberof Phaser.Input.Keyboard\r\n * @constructor\r\n * @since 3.10.0\r\n *\r\n * @param {Phaser.Input.InputPlugin} sceneInputPlugin - A reference to the Scene Input Plugin that the KeyboardPlugin belongs to.\r\n */\r\nvar KeyboardPlugin = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function KeyboardPlugin (sceneInputPlugin)\r\n {\r\n EventEmitter.call(this);\r\n\r\n /**\r\n * A reference to the core game, so we can listen for visibility events.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyboardPlugin#game\r\n * @type {Phaser.Game}\r\n * @since 3.16.0\r\n */\r\n this.game = sceneInputPlugin.systems.game;\r\n\r\n /**\r\n * A reference to the Scene that this Input Plugin is responsible for.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyboardPlugin#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.10.0\r\n */\r\n this.scene = sceneInputPlugin.scene;\r\n\r\n /**\r\n * A reference to the Scene Systems Settings.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyboardPlugin#settings\r\n * @type {Phaser.Types.Scenes.SettingsObject}\r\n * @since 3.10.0\r\n */\r\n this.settings = this.scene.sys.settings;\r\n\r\n /**\r\n * A reference to the Scene Input Plugin that created this Keyboard Plugin.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyboardPlugin#sceneInputPlugin\r\n * @type {Phaser.Input.InputPlugin}\r\n * @since 3.10.0\r\n */\r\n this.sceneInputPlugin = sceneInputPlugin;\r\n\r\n /**\r\n * A reference to the global Keyboard Manager.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyboardPlugin#manager\r\n * @type {Phaser.Input.Keyboard.KeyboardManager}\r\n * @since 3.16.0\r\n */\r\n this.manager = sceneInputPlugin.manager.keyboard;\r\n\r\n /**\r\n * A boolean that controls if this Keyboard Plugin is enabled or not.\r\n * Can be toggled on the fly.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyboardPlugin#enabled\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.10.0\r\n */\r\n this.enabled = true;\r\n\r\n /**\r\n * An array of Key objects to process.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyboardPlugin#keys\r\n * @type {Phaser.Input.Keyboard.Key[]}\r\n * @since 3.10.0\r\n */\r\n this.keys = [];\r\n\r\n /**\r\n * An array of KeyCombo objects to process.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyboardPlugin#combos\r\n * @type {Phaser.Input.Keyboard.KeyCombo[]}\r\n * @since 3.10.0\r\n */\r\n this.combos = [];\r\n\r\n /**\r\n * Internal repeat key flag.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyboardPlugin#prevCode\r\n * @type {string}\r\n * @private\r\n * @since 3.50.0\r\n */\r\n this.prevCode = null;\r\n\r\n /**\r\n * Internal repeat key flag.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyboardPlugin#prevTime\r\n * @type {number}\r\n * @private\r\n * @since 3.50.0\r\n */\r\n this.prevTime = 0;\r\n\r\n /**\r\n * Internal repeat key flag.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyboardPlugin#prevType\r\n * @type {string}\r\n * @private\r\n * @since 3.50.1\r\n */\r\n this.prevType = null;\r\n\r\n sceneInputPlugin.pluginEvents.once(InputEvents.BOOT, this.boot, this);\r\n sceneInputPlugin.pluginEvents.on(InputEvents.START, this.start, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically, only once, when the Scene is first created.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardPlugin#boot\r\n * @private\r\n * @since 3.10.0\r\n */\r\n boot: function ()\r\n {\r\n var settings = this.settings.input;\r\n\r\n this.enabled = GetValue(settings, 'keyboard', true);\r\n\r\n var captures = GetValue(settings, 'keyboard.capture', null);\r\n\r\n if (captures)\r\n {\r\n this.addCaptures(captures);\r\n }\r\n\r\n this.sceneInputPlugin.pluginEvents.once(InputEvents.DESTROY, this.destroy, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically by the Scene when it is starting up.\r\n * It is responsible for creating local systems, properties and listening for Scene events.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardPlugin#start\r\n * @private\r\n * @since 3.10.0\r\n */\r\n start: function ()\r\n {\r\n this.sceneInputPlugin.manager.events.on(InputEvents.MANAGER_PROCESS, this.update, this);\r\n\r\n this.sceneInputPlugin.pluginEvents.once(InputEvents.SHUTDOWN, this.shutdown, this);\r\n\r\n this.game.events.on(GameEvents.BLUR, this.resetKeys, this);\r\n\r\n this.scene.sys.events.on(SceneEvents.PAUSE, this.resetKeys, this);\r\n this.scene.sys.events.on(SceneEvents.SLEEP, this.resetKeys, this);\r\n },\r\n\r\n /**\r\n * Checks to see if both this plugin and the Scene to which it belongs is active.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardPlugin#isActive\r\n * @since 3.10.0\r\n *\r\n * @return {boolean} `true` if the plugin and the Scene it belongs to is active.\r\n */\r\n isActive: function ()\r\n {\r\n return (this.enabled && this.scene.sys.canInput());\r\n },\r\n\r\n /**\r\n * By default when a key is pressed Phaser will not stop the event from propagating up to the browser.\r\n * There are some keys this can be annoying for, like the arrow keys or space bar, which make the browser window scroll.\r\n *\r\n * This `addCapture` method enables consuming keyboard events for specific keys, so they don't bubble up the browser\r\n * and cause the default behaviors.\r\n *\r\n * Please note that keyboard captures are global. This means that if you call this method from within a Scene, to say prevent\r\n * the SPACE BAR from triggering a page scroll, then it will prevent it for any Scene in your game, not just the calling one.\r\n *\r\n * You can pass a single key code value:\r\n *\r\n * ```javascript\r\n * this.input.keyboard.addCapture(62);\r\n * ```\r\n *\r\n * An array of key codes:\r\n *\r\n * ```javascript\r\n * this.input.keyboard.addCapture([ 62, 63, 64 ]);\r\n * ```\r\n *\r\n * Or, a comma-delimited string:\r\n *\r\n * ```javascript\r\n * this.input.keyboard.addCapture('W,S,A,D');\r\n * ```\r\n *\r\n * To use non-alpha numeric keys, use a string, such as 'UP', 'SPACE' or 'LEFT'.\r\n *\r\n * You can also provide an array mixing both strings and key code integers.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardPlugin#addCapture\r\n * @since 3.16.0\r\n *\r\n * @param {(string|number|number[]|any[])} keycode - The Key Codes to enable event capture for.\r\n *\r\n * @return {this} This KeyboardPlugin object.\r\n */\r\n addCapture: function (keycode)\r\n {\r\n this.manager.addCapture(keycode);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes an existing key capture.\r\n *\r\n * Please note that keyboard captures are global. This means that if you call this method from within a Scene, to remove\r\n * the capture of a key, then it will remove it for any Scene in your game, not just the calling one.\r\n *\r\n * You can pass a single key code value:\r\n *\r\n * ```javascript\r\n * this.input.keyboard.removeCapture(62);\r\n * ```\r\n *\r\n * An array of key codes:\r\n *\r\n * ```javascript\r\n * this.input.keyboard.removeCapture([ 62, 63, 64 ]);\r\n * ```\r\n *\r\n * Or, a comma-delimited string:\r\n *\r\n * ```javascript\r\n * this.input.keyboard.removeCapture('W,S,A,D');\r\n * ```\r\n *\r\n * To use non-alpha numeric keys, use a string, such as 'UP', 'SPACE' or 'LEFT'.\r\n *\r\n * You can also provide an array mixing both strings and key code integers.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardPlugin#removeCapture\r\n * @since 3.16.0\r\n *\r\n * @param {(string|number|number[]|any[])} keycode - The Key Codes to disable event capture for.\r\n *\r\n * @return {this} This KeyboardPlugin object.\r\n */\r\n removeCapture: function (keycode)\r\n {\r\n this.manager.removeCapture(keycode);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns an array that contains all of the keyboard captures currently enabled.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardPlugin#getCaptures\r\n * @since 3.16.0\r\n *\r\n * @return {number[]} An array of all the currently capturing key codes.\r\n */\r\n getCaptures: function ()\r\n {\r\n return this.manager.captures;\r\n },\r\n\r\n /**\r\n * Allows Phaser to prevent any key captures you may have defined from bubbling up the browser.\r\n * You can use this to re-enable event capturing if you had paused it via `disableGlobalCapture`.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardPlugin#enableGlobalCapture\r\n * @since 3.16.0\r\n *\r\n * @return {this} This KeyboardPlugin object.\r\n */\r\n enableGlobalCapture: function ()\r\n {\r\n this.manager.preventDefault = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Disables Phaser from preventing any key captures you may have defined, without actually removing them.\r\n * You can use this to temporarily disable event capturing if, for example, you swap to a DOM element.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardPlugin#disableGlobalCapture\r\n * @since 3.16.0\r\n *\r\n * @return {this} This KeyboardPlugin object.\r\n */\r\n disableGlobalCapture: function ()\r\n {\r\n this.manager.preventDefault = false;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes all keyboard captures.\r\n *\r\n * Note that this is a global change. It will clear all event captures across your game, not just for this specific Scene.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardPlugin#clearCaptures\r\n * @since 3.16.0\r\n *\r\n * @return {this} This KeyboardPlugin object.\r\n */\r\n clearCaptures: function ()\r\n {\r\n this.manager.clearCaptures();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Creates and returns an object containing 4 hotkeys for Up, Down, Left and Right, and also Space Bar and shift.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardPlugin#createCursorKeys\r\n * @since 3.10.0\r\n *\r\n * @return {Phaser.Types.Input.Keyboard.CursorKeys} An object containing the properties: `up`, `down`, `left`, `right`, `space` and `shift`.\r\n */\r\n createCursorKeys: function ()\r\n {\r\n return this.addKeys({\r\n up: KeyCodes.UP,\r\n down: KeyCodes.DOWN,\r\n left: KeyCodes.LEFT,\r\n right: KeyCodes.RIGHT,\r\n space: KeyCodes.SPACE,\r\n shift: KeyCodes.SHIFT\r\n });\r\n },\r\n\r\n /**\r\n * A practical way to create an object containing user selected hotkeys.\r\n *\r\n * For example:\r\n *\r\n * ```javascript\r\n * this.input.keyboard.addKeys({ 'up': Phaser.Input.Keyboard.KeyCodes.W, 'down': Phaser.Input.Keyboard.KeyCodes.S });\r\n * ```\r\n *\r\n * would return an object containing the properties (`up` and `down`) mapped to W and S {@link Phaser.Input.Keyboard.Key} objects.\r\n *\r\n * You can also pass in a comma-separated string:\r\n *\r\n * ```javascript\r\n * this.input.keyboard.addKeys('W,S,A,D');\r\n * ```\r\n *\r\n * Which will return an object with the properties W, S, A and D mapped to the relevant Key objects.\r\n *\r\n * To use non-alpha numeric keys, use a string, such as 'UP', 'SPACE' or 'LEFT'.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardPlugin#addKeys\r\n * @since 3.10.0\r\n *\r\n * @param {(object|string)} keys - An object containing Key Codes, or a comma-separated string.\r\n * @param {boolean} [enableCapture=true] - Automatically call `preventDefault` on the native DOM browser event for the key codes being added.\r\n * @param {boolean} [emitOnRepeat=false] - Controls if the Key will continuously emit a 'down' event while being held down (true), or emit the event just once (false, the default).\r\n *\r\n * @return {object} An object containing Key objects mapped to the input properties.\r\n */\r\n addKeys: function (keys, enableCapture, emitOnRepeat)\r\n {\r\n if (enableCapture === undefined) { enableCapture = true; }\r\n if (emitOnRepeat === undefined) { emitOnRepeat = false; }\r\n\r\n var output = {};\r\n\r\n if (typeof keys === 'string')\r\n {\r\n keys = keys.split(',');\r\n\r\n for (var i = 0; i < keys.length; i++)\r\n {\r\n var currentKey = keys[i].trim();\r\n\r\n if (currentKey)\r\n {\r\n output[currentKey] = this.addKey(currentKey, enableCapture, emitOnRepeat);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n for (var key in keys)\r\n {\r\n output[key] = this.addKey(keys[key], enableCapture, emitOnRepeat);\r\n }\r\n }\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Adds a Key object to this Keyboard Plugin.\r\n *\r\n * The given argument can be either an existing Key object, a string, such as `A` or `SPACE`, or a key code value.\r\n *\r\n * If a Key object is given, and one already exists matching the same key code, the existing one is replaced with the new one.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardPlugin#addKey\r\n * @since 3.10.0\r\n *\r\n * @param {(Phaser.Input.Keyboard.Key|string|number)} key - Either a Key object, a string, such as `A` or `SPACE`, or a key code value.\r\n * @param {boolean} [enableCapture=true] - Automatically call `preventDefault` on the native DOM browser event for the key codes being added.\r\n * @param {boolean} [emitOnRepeat=false] - Controls if the Key will continuously emit a 'down' event while being held down (true), or emit the event just once (false, the default).\r\n *\r\n * @return {Phaser.Input.Keyboard.Key} The newly created Key object, or a reference to it if it already existed in the keys array.\r\n */\r\n addKey: function (key, enableCapture, emitOnRepeat)\r\n {\r\n if (enableCapture === undefined) { enableCapture = true; }\r\n if (emitOnRepeat === undefined) { emitOnRepeat = false; }\r\n\r\n var keys = this.keys;\r\n\r\n if (key instanceof Key)\r\n {\r\n var idx = keys.indexOf(key);\r\n\r\n if (idx > -1)\r\n {\r\n keys[idx] = key;\r\n }\r\n else\r\n {\r\n keys[key.keyCode] = key;\r\n }\r\n\r\n if (enableCapture)\r\n {\r\n this.addCapture(key.keyCode);\r\n }\r\n\r\n key.setEmitOnRepeat(emitOnRepeat);\r\n\r\n return key;\r\n }\r\n\r\n if (typeof key === 'string')\r\n {\r\n key = KeyCodes[key.toUpperCase()];\r\n }\r\n\r\n if (!keys[key])\r\n {\r\n keys[key] = new Key(this, key);\r\n\r\n if (enableCapture)\r\n {\r\n this.addCapture(key);\r\n }\r\n\r\n keys[key].setEmitOnRepeat(emitOnRepeat);\r\n }\r\n\r\n return keys[key];\r\n },\r\n\r\n /**\r\n * Removes a Key object from this Keyboard Plugin.\r\n *\r\n * The given argument can be either a Key object, a string, such as `A` or `SPACE`, or a key code value.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardPlugin#removeKey\r\n * @since 3.10.0\r\n *\r\n * @param {(Phaser.Input.Keyboard.Key|string|number)} key - Either a Key object, a string, such as `A` or `SPACE`, or a key code value.\r\n * @param {boolean} [destroy=false] - Call `Key.destroy` on the removed Key object?\r\n * @param {boolean} [removeCapture=false] - Remove this Key from being captured? Only applies if set to capture when created.\r\n *\r\n * @return {this} This KeyboardPlugin object.\r\n */\r\n removeKey: function (key, destroy, removeCapture)\r\n {\r\n if (destroy === undefined) { destroy = false; }\r\n if (removeCapture === undefined) { removeCapture = false; }\r\n\r\n var keys = this.keys;\r\n var ref;\r\n\r\n if (key instanceof Key)\r\n {\r\n var idx = keys.indexOf(key);\r\n\r\n if (idx > -1)\r\n {\r\n ref = this.keys[idx];\r\n\r\n this.keys[idx] = undefined;\r\n }\r\n }\r\n else if (typeof key === 'string')\r\n {\r\n key = KeyCodes[key.toUpperCase()];\r\n }\r\n\r\n if (keys[key])\r\n {\r\n ref = keys[key];\r\n\r\n keys[key] = undefined;\r\n }\r\n\r\n if (ref)\r\n {\r\n ref.plugin = null;\r\n\r\n if (removeCapture)\r\n {\r\n this.removeCapture(ref.keyCode);\r\n }\r\n\r\n if (destroy)\r\n {\r\n ref.destroy();\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes all Key objects created by _this_ Keyboard Plugin.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardPlugin#removeAllKeys\r\n * @since 3.24.0\r\n *\r\n * @param {boolean} [destroy=false] - Call `Key.destroy` on each removed Key object?\r\n * @param {boolean} [removeCapture=false] - Remove all key captures for Key objects owened by this plugin?\r\n *\r\n * @return {this} This KeyboardPlugin object.\r\n */\r\n removeAllKeys: function (destroy, removeCapture)\r\n {\r\n if (destroy === undefined) { destroy = false; }\r\n if (removeCapture === undefined) { removeCapture = false; }\r\n\r\n var keys = this.keys;\r\n\r\n for (var i = 0; i < keys.length; i++)\r\n {\r\n var key = keys[i];\r\n\r\n if (key)\r\n {\r\n keys[i] = undefined;\r\n\r\n if (removeCapture)\r\n {\r\n this.removeCapture(key.keyCode);\r\n }\r\n\r\n if (destroy)\r\n {\r\n key.destroy();\r\n }\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Creates a new KeyCombo.\r\n *\r\n * A KeyCombo will listen for a specific string of keys from the Keyboard, and when it receives them\r\n * it will emit a `keycombomatch` event from this Keyboard Plugin.\r\n *\r\n * The keys to be listened for can be defined as:\r\n *\r\n * A string (i.e. 'ATARI')\r\n * An array of either integers (key codes) or strings, or a mixture of both\r\n * An array of objects (such as Key objects) with a public 'keyCode' property\r\n *\r\n * For example, to listen for the Konami code (up, up, down, down, left, right, left, right, b, a, enter)\r\n * you could pass the following array of key codes:\r\n *\r\n * ```javascript\r\n * this.input.keyboard.createCombo([ 38, 38, 40, 40, 37, 39, 37, 39, 66, 65, 13 ], { resetOnMatch: true });\r\n *\r\n * this.input.keyboard.on('keycombomatch', function (event) {\r\n * console.log('Konami Code entered!');\r\n * });\r\n * ```\r\n *\r\n * Or, to listen for the user entering the word PHASER:\r\n *\r\n * ```javascript\r\n * this.input.keyboard.createCombo('PHASER');\r\n * ```\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardPlugin#createCombo\r\n * @since 3.10.0\r\n *\r\n * @param {(string|number[]|object[])} keys - The keys that comprise this combo.\r\n * @param {Phaser.Types.Input.Keyboard.KeyComboConfig} [config] - A Key Combo configuration object.\r\n *\r\n * @return {Phaser.Input.Keyboard.KeyCombo} The new KeyCombo object.\r\n */\r\n createCombo: function (keys, config)\r\n {\r\n return new KeyCombo(this, keys, config);\r\n },\r\n\r\n /**\r\n * Checks if the given Key object is currently being held down.\r\n *\r\n * The difference between this method and checking the `Key.isDown` property directly is that you can provide\r\n * a duration to this method. For example, if you wanted a key press to fire a bullet, but you only wanted\r\n * it to be able to fire every 100ms, then you can call this method with a `duration` of 100 and it\r\n * will only return `true` every 100ms.\r\n *\r\n * If the Keyboard Plugin has been disabled, this method will always return `false`.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardPlugin#checkDown\r\n * @since 3.11.0\r\n *\r\n * @param {Phaser.Input.Keyboard.Key} key - A Key object.\r\n * @param {number} [duration=0] - The duration which must have elapsed before this Key is considered as being down.\r\n *\r\n * @return {boolean} `true` if the Key is down within the duration specified, otherwise `false`.\r\n */\r\n checkDown: function (key, duration)\r\n {\r\n if (duration === undefined) { duration = 0; }\r\n\r\n if (this.enabled && key.isDown)\r\n {\r\n var t = SnapFloor(this.time - key.timeDown, duration);\r\n\r\n if (t > key._tick)\r\n {\r\n key._tick = t;\r\n\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Internal update handler called by the Input Plugin, which is in turn invoked by the Game step.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardPlugin#update\r\n * @private\r\n * @since 3.10.0\r\n */\r\n update: function ()\r\n {\r\n var queue = this.manager.queue;\r\n var len = queue.length;\r\n\r\n if (!this.isActive() || len === 0)\r\n {\r\n return;\r\n }\r\n\r\n var keys = this.keys;\r\n\r\n // Process the event queue, dispatching all of the events that have stored up\r\n for (var i = 0; i < len; i++)\r\n {\r\n var event = queue[i];\r\n var code = event.keyCode;\r\n var key = keys[code];\r\n var repeat = false;\r\n\r\n // Override the default functions (it's too late for the browser to use them anyway, so we may as well)\r\n if (event.cancelled === undefined)\r\n {\r\n // Event allowed to flow across all handlers in this Scene, and any other Scene in the Scene list\r\n event.cancelled = 0;\r\n\r\n // Won't reach any more local (Scene level) handlers\r\n event.stopImmediatePropagation = function ()\r\n {\r\n event.cancelled = 1;\r\n };\r\n\r\n // Won't reach any more handlers in any Scene further down the Scene list\r\n event.stopPropagation = function ()\r\n {\r\n event.cancelled = -1;\r\n };\r\n }\r\n\r\n if (event.cancelled === -1)\r\n {\r\n // This event has been stopped from broadcasting to any other Scene, so abort.\r\n continue;\r\n }\r\n\r\n // Duplicate event bailout\r\n if (code === this.prevCode && event.timeStamp === this.prevTime && event.type === this.prevType)\r\n {\r\n // On some systems, the exact same event will fire multiple times. This prevents it.\r\n continue;\r\n }\r\n\r\n this.prevCode = code;\r\n this.prevTime = event.timeStamp;\r\n this.prevType = event.type;\r\n\r\n if (event.type === 'keydown')\r\n {\r\n // Key specific callback first\r\n if (key)\r\n {\r\n repeat = key.isDown;\r\n\r\n key.onDown(event);\r\n }\r\n\r\n if (!event.cancelled && (!key || !repeat))\r\n {\r\n if (KeyMap[code])\r\n {\r\n this.emit(Events.KEY_DOWN + KeyMap[code], event);\r\n }\r\n\r\n if (!event.cancelled)\r\n {\r\n this.emit(Events.ANY_KEY_DOWN, event);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n // Key specific callback first\r\n if (key)\r\n {\r\n key.onUp(event);\r\n }\r\n\r\n if (!event.cancelled)\r\n {\r\n if (KeyMap[code])\r\n {\r\n this.emit(Events.KEY_UP + KeyMap[code], event);\r\n }\r\n\r\n if (!event.cancelled)\r\n {\r\n this.emit(Events.ANY_KEY_UP, event);\r\n }\r\n }\r\n }\r\n\r\n // Reset the cancel state for other Scenes to use\r\n if (event.cancelled === 1)\r\n {\r\n event.cancelled = 0;\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Resets all Key objects created by _this_ Keyboard Plugin back to their default un-pressed states.\r\n * This can only reset keys created via the `addKey`, `addKeys` or `createCursorKeys` methods.\r\n * If you have created a Key object directly you'll need to reset it yourself.\r\n *\r\n * This method is called automatically when the Keyboard Plugin shuts down, but can be\r\n * invoked directly at any time you require.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardPlugin#resetKeys\r\n * @since 3.15.0\r\n *\r\n * @return {this} This KeyboardPlugin object.\r\n */\r\n resetKeys: function ()\r\n {\r\n var keys = this.keys;\r\n\r\n for (var i = 0; i < keys.length; i++)\r\n {\r\n // Because it's a sparsely populated array\r\n if (keys[i])\r\n {\r\n keys[i].reset();\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Shuts this Keyboard Plugin down. This performs the following tasks:\r\n *\r\n * 1 - Removes all keys created by this Keyboard plugin.\r\n * 2 - Stops and removes the keyboard event listeners.\r\n * 3 - Clears out any pending requests in the queue, without processing them.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardPlugin#shutdown\r\n * @private\r\n * @since 3.10.0\r\n */\r\n shutdown: function ()\r\n {\r\n this.removeAllKeys(true);\r\n this.removeAllListeners();\r\n\r\n this.sceneInputPlugin.manager.events.off(InputEvents.MANAGER_PROCESS, this.update, this);\r\n\r\n this.game.events.off(GameEvents.BLUR, this.resetKeys);\r\n\r\n this.scene.sys.events.off(SceneEvents.PAUSE, this.resetKeys, this);\r\n this.scene.sys.events.off(SceneEvents.SLEEP, this.resetKeys, this);\r\n\r\n this.queue = [];\r\n },\r\n\r\n /**\r\n * Destroys this Keyboard Plugin instance and all references it holds, plus clears out local arrays.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyboardPlugin#destroy\r\n * @private\r\n * @since 3.10.0\r\n */\r\n destroy: function ()\r\n {\r\n this.shutdown();\r\n\r\n var keys = this.keys;\r\n\r\n for (var i = 0; i < keys.length; i++)\r\n {\r\n // Because it's a sparsely populated array\r\n if (keys[i])\r\n {\r\n keys[i].destroy();\r\n }\r\n }\r\n\r\n this.keys = [];\r\n this.combos = [];\r\n this.queue = [];\r\n\r\n this.scene = null;\r\n this.settings = null;\r\n this.sceneInputPlugin = null;\r\n this.manager = null;\r\n },\r\n\r\n /**\r\n * Internal time value.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyboardPlugin#time\r\n * @type {number}\r\n * @private\r\n * @since 3.11.0\r\n */\r\n time: {\r\n\r\n get: function ()\r\n {\r\n return this.sceneInputPlugin.manager.time;\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\n/**\r\n * An instance of the Keyboard Plugin class, if enabled via the `input.keyboard` Scene or Game Config property.\r\n * Use this to create Key objects and listen for keyboard specific events.\r\n *\r\n * @name Phaser.Input.InputPlugin#keyboard\r\n * @type {?Phaser.Input.Keyboard.KeyboardPlugin}\r\n * @since 3.10.0\r\n */\r\nInputPluginCache.register('KeyboardPlugin', KeyboardPlugin, 'keyboard', 'keyboard', 'inputKeyboard');\r\n\r\nmodule.exports = KeyboardPlugin;\r\n\n\n/***/ }),\n\n/***/ 66970:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Used internally by the KeyCombo class.\r\n * Return `true` if it reached the end of the combo, `false` if not.\r\n *\r\n * @function Phaser.Input.Keyboard.AdvanceKeyCombo\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {KeyboardEvent} event - The native Keyboard Event.\r\n * @param {Phaser.Input.Keyboard.KeyCombo} combo - The KeyCombo object to advance.\r\n *\r\n * @return {boolean} `true` if it reached the end of the combo, `false` if not.\r\n */\r\nvar AdvanceKeyCombo = function (event, combo)\r\n{\r\n combo.timeLastMatched = event.timeStamp;\r\n combo.index++;\r\n\r\n if (combo.index === combo.size)\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n combo.current = combo.keyCodes[combo.index];\r\n return false;\r\n }\r\n};\r\n\r\nmodule.exports = AdvanceKeyCombo;\r\n\n\n/***/ }),\n\n/***/ 87960:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Events = __webpack_require__(95922);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar ProcessKeyCombo = __webpack_require__(68769);\r\nvar ResetKeyCombo = __webpack_require__(92803);\r\n\r\n/**\r\n * @classdesc\r\n * A KeyCombo will listen for a specific string of keys from the Keyboard, and when it receives them\r\n * it will emit a `keycombomatch` event from the Keyboard Manager.\r\n *\r\n * The keys to be listened for can be defined as:\r\n *\r\n * A string (i.e. 'ATARI')\r\n * An array of either integers (key codes) or strings, or a mixture of both\r\n * An array of objects (such as Key objects) with a public 'keyCode' property\r\n *\r\n * For example, to listen for the Konami code (up, up, down, down, left, right, left, right, b, a, enter)\r\n * you could pass the following array of key codes:\r\n *\r\n * ```javascript\r\n * this.input.keyboard.createCombo([ 38, 38, 40, 40, 37, 39, 37, 39, 66, 65, 13 ], { resetOnMatch: true });\r\n *\r\n * this.input.keyboard.on('keycombomatch', function (event) {\r\n * console.log('Konami Code entered!');\r\n * });\r\n * ```\r\n *\r\n * Or, to listen for the user entering the word PHASER:\r\n *\r\n * ```javascript\r\n * this.input.keyboard.createCombo('PHASER');\r\n * ```\r\n *\r\n * @class KeyCombo\r\n * @memberof Phaser.Input.Keyboard\r\n * @constructor\r\n * @listens Phaser.Input.Keyboard.Events#ANY_KEY_DOWN\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Keyboard.KeyboardPlugin} keyboardPlugin - A reference to the Keyboard Plugin.\r\n * @param {(string|number[]|object[])} keys - The keys that comprise this combo.\r\n * @param {Phaser.Types.Input.Keyboard.KeyComboConfig} [config] - A Key Combo configuration object.\r\n */\r\nvar KeyCombo = new Class({\r\n\r\n initialize:\r\n\r\n function KeyCombo (keyboardPlugin, keys, config)\r\n {\r\n if (config === undefined) { config = {}; }\r\n\r\n // Can't have a zero or single length combo (string or array based)\r\n if (keys.length < 2)\r\n {\r\n return false;\r\n }\r\n\r\n /**\r\n * A reference to the Keyboard Manager\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCombo#manager\r\n * @type {Phaser.Input.Keyboard.KeyboardPlugin}\r\n * @since 3.0.0\r\n */\r\n this.manager = keyboardPlugin;\r\n\r\n /**\r\n * A flag that controls if this Key Combo is actively processing keys or not.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCombo#enabled\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.enabled = true;\r\n\r\n /**\r\n * An array of the keycodes that comprise this combo.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCombo#keyCodes\r\n * @type {array}\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this.keyCodes = [];\r\n\r\n // if 'keys' is a string we need to get the keycode of each character in it\r\n\r\n for (var i = 0; i < keys.length; i++)\r\n {\r\n var char = keys[i];\r\n\r\n if (typeof char === 'string')\r\n {\r\n this.keyCodes.push(char.toUpperCase().charCodeAt(0));\r\n }\r\n else if (typeof char === 'number')\r\n {\r\n this.keyCodes.push(char);\r\n }\r\n else if (char.hasOwnProperty('keyCode'))\r\n {\r\n this.keyCodes.push(char.keyCode);\r\n }\r\n }\r\n\r\n /**\r\n * The current keyCode the combo is waiting for.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCombo#current\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.current = this.keyCodes[0];\r\n\r\n /**\r\n * The current index of the key being waited for in the 'keys' string.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCombo#index\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.index = 0;\r\n\r\n /**\r\n * The length of this combo (in keycodes)\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCombo#size\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.size = this.keyCodes.length;\r\n\r\n /**\r\n * The time the previous key in the combo was matched.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCombo#timeLastMatched\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.timeLastMatched = 0;\r\n\r\n /**\r\n * Has this Key Combo been matched yet?\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCombo#matched\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.matched = false;\r\n\r\n /**\r\n * The time the entire combo was matched.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCombo#timeMatched\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.timeMatched = 0;\r\n\r\n /**\r\n * If they press the wrong key do we reset the combo?\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCombo#resetOnWrongKey\r\n * @type {boolean}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.resetOnWrongKey = GetFastValue(config, 'resetOnWrongKey', true);\r\n\r\n /**\r\n * The max delay in ms between each key press. Above this the combo is reset. 0 means disabled.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCombo#maxKeyDelay\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.maxKeyDelay = GetFastValue(config, 'maxKeyDelay', 0);\r\n\r\n /**\r\n * If previously matched and they press the first key of the combo again, will it reset?\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCombo#resetOnMatch\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.resetOnMatch = GetFastValue(config, 'resetOnMatch', false);\r\n\r\n /**\r\n * If the combo matches, will it delete itself?\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCombo#deleteOnMatch\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.deleteOnMatch = GetFastValue(config, 'deleteOnMatch', false);\r\n\r\n var _this = this;\r\n\r\n var onKeyDownHandler = function (event)\r\n {\r\n if (_this.matched || !_this.enabled)\r\n {\r\n return;\r\n }\r\n\r\n var matched = ProcessKeyCombo(event, _this);\r\n\r\n if (matched)\r\n {\r\n _this.manager.emit(Events.COMBO_MATCH, _this, event);\r\n\r\n if (_this.resetOnMatch)\r\n {\r\n ResetKeyCombo(_this);\r\n }\r\n else if (_this.deleteOnMatch)\r\n {\r\n _this.destroy();\r\n }\r\n }\r\n };\r\n\r\n /**\r\n * The internal Key Down handler.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCombo#onKeyDown\r\n * @private\r\n * @type {KeyboardKeydownCallback}\r\n * @fires Phaser.Input.Keyboard.Events#COMBO_MATCH\r\n * @since 3.0.0\r\n */\r\n this.onKeyDown = onKeyDownHandler;\r\n\r\n this.manager.on(Events.ANY_KEY_DOWN, this.onKeyDown);\r\n },\r\n\r\n /**\r\n * How far complete is this combo? A value between 0 and 1.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCombo#progress\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n progress: {\r\n\r\n get: function ()\r\n {\r\n return this.index / this.size;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Destroys this Key Combo and all of its references.\r\n *\r\n * @method Phaser.Input.Keyboard.KeyCombo#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.enabled = false;\r\n this.keyCodes = [];\r\n\r\n this.manager.off(Events.ANY_KEY_DOWN, this.onKeyDown);\r\n\r\n this.manager = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = KeyCombo;\r\n\n\n/***/ }),\n\n/***/ 68769:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar AdvanceKeyCombo = __webpack_require__(66970);\r\n\r\n/**\r\n * Used internally by the KeyCombo class.\r\n *\r\n * @function Phaser.Input.Keyboard.ProcessKeyCombo\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {KeyboardEvent} event - The native Keyboard Event.\r\n * @param {Phaser.Input.Keyboard.KeyCombo} combo - The KeyCombo object to be processed.\r\n *\r\n * @return {boolean} `true` if the combo was matched, otherwise `false`.\r\n */\r\nvar ProcessKeyCombo = function (event, combo)\r\n{\r\n if (combo.matched)\r\n {\r\n return true;\r\n }\r\n\r\n var comboMatched = false;\r\n var keyMatched = false;\r\n\r\n if (event.keyCode === combo.current)\r\n {\r\n // Key was correct\r\n\r\n if (combo.index > 0 && combo.maxKeyDelay > 0)\r\n {\r\n // We have to check to see if the delay between\r\n // the new key and the old one was too long (if enabled)\r\n\r\n var timeLimit = combo.timeLastMatched + combo.maxKeyDelay;\r\n\r\n // Check if they pressed it in time or not\r\n if (event.timeStamp <= timeLimit)\r\n {\r\n keyMatched = true;\r\n comboMatched = AdvanceKeyCombo(event, combo);\r\n }\r\n }\r\n else\r\n {\r\n keyMatched = true;\r\n\r\n // We don't check the time for the first key pressed, so just advance it\r\n comboMatched = AdvanceKeyCombo(event, combo);\r\n }\r\n }\r\n\r\n if (!keyMatched && combo.resetOnWrongKey)\r\n {\r\n // Wrong key was pressed\r\n combo.index = 0;\r\n combo.current = combo.keyCodes[0];\r\n }\r\n\r\n if (comboMatched)\r\n {\r\n combo.timeLastMatched = event.timeStamp;\r\n combo.matched = true;\r\n combo.timeMatched = event.timeStamp;\r\n }\r\n\r\n return comboMatched;\r\n};\r\n\r\nmodule.exports = ProcessKeyCombo;\r\n\n\n/***/ }),\n\n/***/ 92803:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Used internally by the KeyCombo class.\r\n *\r\n * @function Phaser.Input.Keyboard.ResetKeyCombo\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Keyboard.KeyCombo} combo - The KeyCombo to reset.\r\n *\r\n * @return {Phaser.Input.Keyboard.KeyCombo} The KeyCombo.\r\n */\r\nvar ResetKeyCombo = function (combo)\r\n{\r\n combo.current = combo.keyCodes[0];\r\n combo.index = 0;\r\n combo.timeLastMatched = 0;\r\n combo.matched = false;\r\n combo.timeMatched = 0;\r\n\r\n return combo;\r\n};\r\n\r\nmodule.exports = ResetKeyCombo;\r\n\n\n/***/ }),\n\n/***/ 92612:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Global Key Down Event.\r\n *\r\n * This event is dispatched by the Keyboard Plugin when any key on the keyboard is pressed down.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.keyboard.on('keydown', listener)`.\r\n *\r\n * You can also listen for a specific key being pressed. See [Keyboard.Events.KEY_DOWN]{@linkcode Phaser.Input.Keyboard.Events#event:KEY_DOWN} for details.\r\n *\r\n * Finally, you can create Key objects, which you can also listen for events from. See [Keyboard.Events.DOWN]{@linkcode Phaser.Input.Keyboard.Events#event:DOWN} for details.\r\n *\r\n * _Note_: Many keyboards are unable to process certain combinations of keys due to hardware limitations known as ghosting.\r\n * Read [this article on ghosting]{@link http://www.html5gamedevs.com/topic/4876-impossible-to-use-more-than-2-keyboard-input-buttons-at-the-same-time/} for details.\r\n *\r\n * Also, please be aware that some browser extensions can disable or override Phaser keyboard handling.\r\n * For example, the Chrome extension vimium is known to disable Phaser from using the D key, while EverNote disables the backtick key.\r\n * There are others. So, please check your extensions if you find you have specific keys that don't work.\r\n *\r\n * @event Phaser.Input.Keyboard.Events#ANY_KEY_DOWN\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {KeyboardEvent} event - The native DOM Keyboard Event. You can inspect this to learn more about the key that was pressed, any modifiers, etc.\r\n */\r\nmodule.exports = 'keydown';\r\n\n\n/***/ }),\n\n/***/ 23345:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Global Key Up Event.\r\n *\r\n * This event is dispatched by the Keyboard Plugin when any key on the keyboard is released.\r\n *\r\n * Listen to this event from within a Scene using: `this.input.keyboard.on('keyup', listener)`.\r\n *\r\n * You can also listen for a specific key being released. See [Keyboard.Events.KEY_UP]{@linkcode Phaser.Input.Keyboard.Events#event:KEY_UP} for details.\r\n *\r\n * Finally, you can create Key objects, which you can also listen for events from. See [Keyboard.Events.UP]{@linkcode Phaser.Input.Keyboard.Events#event:UP} for details.\r\n *\r\n * @event Phaser.Input.Keyboard.Events#ANY_KEY_UP\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {KeyboardEvent} event - The native DOM Keyboard Event. You can inspect this to learn more about the key that was released, any modifiers, etc.\r\n */\r\nmodule.exports = 'keyup';\r\n\n\n/***/ }),\n\n/***/ 21957:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Key Combo Match Event.\r\n *\r\n * This event is dispatched by the Keyboard Plugin when a [Key Combo]{@link Phaser.Input.Keyboard.KeyCombo} is matched.\r\n *\r\n * Listen for this event from the Key Plugin after a combo has been created:\r\n *\r\n * ```javascript\r\n * this.input.keyboard.createCombo([ 38, 38, 40, 40, 37, 39, 37, 39, 66, 65, 13 ], { resetOnMatch: true });\r\n *\r\n * this.input.keyboard.on('keycombomatch', function (event) {\r\n * console.log('Konami Code entered!');\r\n * });\r\n * ```\r\n *\r\n * @event Phaser.Input.Keyboard.Events#COMBO_MATCH\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Keyboard.KeyCombo} keycombo - The Key Combo object that was matched.\r\n * @param {KeyboardEvent} event - The native DOM Keyboard Event of the final key in the combo. You can inspect this to learn more about any modifiers, etc.\r\n */\r\nmodule.exports = 'keycombomatch';\r\n\n\n/***/ }),\n\n/***/ 44743:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Key Down Event.\r\n *\r\n * This event is dispatched by a [Key]{@link Phaser.Input.Keyboard.Key} object when it is pressed.\r\n *\r\n * Listen for this event from the Key object instance directly:\r\n *\r\n * ```javascript\r\n * var spaceBar = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.SPACE);\r\n *\r\n * spaceBar.on('down', listener)\r\n * ```\r\n *\r\n * You can also create a generic 'global' listener. See [Keyboard.Events.ANY_KEY_DOWN]{@linkcode Phaser.Input.Keyboard.Events#event:ANY_KEY_DOWN} for details.\r\n *\r\n * @event Phaser.Input.Keyboard.Events#DOWN\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Keyboard.Key} key - The Key object that was pressed.\r\n * @param {KeyboardEvent} event - The native DOM Keyboard Event. You can inspect this to learn more about any modifiers, etc.\r\n */\r\nmodule.exports = 'down';\r\n\n\n/***/ }),\n\n/***/ 3771:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Key Down Event.\r\n *\r\n * This event is dispatched by the Keyboard Plugin when any key on the keyboard is pressed down.\r\n *\r\n * Unlike the `ANY_KEY_DOWN` event, this one has a special dynamic event name. For example, to listen for the `A` key being pressed\r\n * use the following from within a Scene: `this.input.keyboard.on('keydown-A', listener)`. You can replace the `-A` part of the event\r\n * name with any valid [Key Code string]{@link Phaser.Input.Keyboard.KeyCodes}. For example, this will listen for the space bar:\r\n * `this.input.keyboard.on('keydown-SPACE', listener)`.\r\n *\r\n * You can also create a generic 'global' listener. See [Keyboard.Events.ANY_KEY_DOWN]{@linkcode Phaser.Input.Keyboard.Events#event:ANY_KEY_DOWN} for details.\r\n *\r\n * Finally, you can create Key objects, which you can also listen for events from. See [Keyboard.Events.DOWN]{@linkcode Phaser.Input.Keyboard.Events#event:DOWN} for details.\r\n *\r\n * _Note_: Many keyboards are unable to process certain combinations of keys due to hardware limitations known as ghosting.\r\n * Read [this article on ghosting]{@link http://www.html5gamedevs.com/topic/4876-impossible-to-use-more-than-2-keyboard-input-buttons-at-the-same-time/} for details.\r\n *\r\n * Also, please be aware that some browser extensions can disable or override Phaser keyboard handling.\r\n * For example, the Chrome extension vimium is known to disable Phaser from using the D key, while EverNote disables the backtick key.\r\n * There are others. So, please check your extensions if you find you have specific keys that don't work.\r\n *\r\n * @event Phaser.Input.Keyboard.Events#KEY_DOWN\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {KeyboardEvent} event - The native DOM Keyboard Event. You can inspect this to learn more about the key that was pressed, any modifiers, etc.\r\n */\r\nmodule.exports = 'keydown-';\r\n\n\n/***/ }),\n\n/***/ 46358:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Key Up Event.\r\n *\r\n * This event is dispatched by the Keyboard Plugin when any key on the keyboard is released.\r\n *\r\n * Unlike the `ANY_KEY_UP` event, this one has a special dynamic event name. For example, to listen for the `A` key being released\r\n * use the following from within a Scene: `this.input.keyboard.on('keyup-A', listener)`. You can replace the `-A` part of the event\r\n * name with any valid [Key Code string]{@link Phaser.Input.Keyboard.KeyCodes}. For example, this will listen for the space bar:\r\n * `this.input.keyboard.on('keyup-SPACE', listener)`.\r\n *\r\n * You can also create a generic 'global' listener. See [Keyboard.Events.ANY_KEY_UP]{@linkcode Phaser.Input.Keyboard.Events#event:ANY_KEY_UP} for details.\r\n *\r\n * Finally, you can create Key objects, which you can also listen for events from. See [Keyboard.Events.UP]{@linkcode Phaser.Input.Keyboard.Events#event:UP} for details.\r\n *\r\n * @event Phaser.Input.Keyboard.Events#KEY_UP\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {KeyboardEvent} event - The native DOM Keyboard Event. You can inspect this to learn more about the key that was released, any modifiers, etc.\r\n */\r\nmodule.exports = 'keyup-';\r\n\n\n/***/ }),\n\n/***/ 75674:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Key Up Event.\r\n *\r\n * This event is dispatched by a [Key]{@link Phaser.Input.Keyboard.Key} object when it is released.\r\n *\r\n * Listen for this event from the Key object instance directly:\r\n *\r\n * ```javascript\r\n * var spaceBar = this.input.keyboard.addKey(Phaser.Input.Keyboard.KeyCodes.SPACE);\r\n *\r\n * spaceBar.on('up', listener)\r\n * ```\r\n *\r\n * You can also create a generic 'global' listener. See [Keyboard.Events.ANY_KEY_UP]{@linkcode Phaser.Input.Keyboard.Events#event:ANY_KEY_UP} for details.\r\n *\r\n * @event Phaser.Input.Keyboard.Events#UP\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Keyboard.Key} key - The Key object that was released.\r\n * @param {KeyboardEvent} event - The native DOM Keyboard Event. You can inspect this to learn more about any modifiers, etc.\r\n */\r\nmodule.exports = 'up';\r\n\n\n/***/ }),\n\n/***/ 95922:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Input.Keyboard.Events\r\n */\r\n\r\nmodule.exports = {\r\n\r\n ANY_KEY_DOWN: __webpack_require__(92612),\r\n ANY_KEY_UP: __webpack_require__(23345),\r\n COMBO_MATCH: __webpack_require__(21957),\r\n DOWN: __webpack_require__(44743),\r\n KEY_DOWN: __webpack_require__(3771),\r\n KEY_UP: __webpack_require__(46358),\r\n UP: __webpack_require__(75674)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 51442:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Input.Keyboard\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Events: __webpack_require__(95922),\r\n\r\n KeyboardManager: __webpack_require__(78970),\r\n KeyboardPlugin: __webpack_require__(28846),\r\n\r\n Key: __webpack_require__(30472),\r\n KeyCodes: __webpack_require__(46032),\r\n\r\n KeyCombo: __webpack_require__(87960),\r\n\r\n AdvanceKeyCombo: __webpack_require__(66970),\r\n ProcessKeyCombo: __webpack_require__(68769),\r\n ResetKeyCombo: __webpack_require__(92803),\r\n\r\n JustDown: __webpack_require__(90229),\r\n JustUp: __webpack_require__(38796),\r\n DownDuration: __webpack_require__(37015),\r\n UpDuration: __webpack_require__(41170)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 37015:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Returns `true` if the Key was pressed down within the `duration` value given, based on the current\r\n * game clock time. Or `false` if it either isn't down, or was pressed down longer ago than the given duration.\r\n *\r\n * @function Phaser.Input.Keyboard.DownDuration\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Keyboard.Key} key - The Key object to test.\r\n * @param {number} [duration=50] - The duration, in ms, within which the key must have been pressed down.\r\n *\r\n * @return {boolean} `true` if the Key was pressed down within `duration` ms ago, otherwise `false`.\r\n */\r\nvar DownDuration = function (key, duration)\r\n{\r\n if (duration === undefined) { duration = 50; }\r\n\r\n var current = key.plugin.game.loop.time - key.timeDown;\r\n\r\n return (key.isDown && current < duration);\r\n};\r\n\r\nmodule.exports = DownDuration;\r\n\n\n/***/ }),\n\n/***/ 90229:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The justDown value allows you to test if this Key has just been pressed down or not.\r\n *\r\n * When you check this value it will return `true` if the Key is down, otherwise `false`.\r\n *\r\n * You can only call justDown once per key press. It will only return `true` once, until the Key is released and pressed down again.\r\n * This allows you to use it in situations where you want to check if this key is down without using an event, such as in a core game loop.\r\n *\r\n * @function Phaser.Input.Keyboard.JustDown\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Keyboard.Key} key - The Key to check to see if it's just down or not.\r\n *\r\n * @return {boolean} `true` if the Key was just pressed, otherwise `false`.\r\n */\r\nvar JustDown = function (key)\r\n{\r\n if (key._justDown)\r\n {\r\n key._justDown = false;\r\n\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n};\r\n\r\nmodule.exports = JustDown;\r\n\n\n/***/ }),\n\n/***/ 38796:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The justUp value allows you to test if this Key has just been released or not.\r\n *\r\n * When you check this value it will return `true` if the Key is up, otherwise `false`.\r\n *\r\n * You can only call JustUp once per key release. It will only return `true` once, until the Key is pressed down and released again.\r\n * This allows you to use it in situations where you want to check if this key is up without using an event, such as in a core game loop.\r\n *\r\n * @function Phaser.Input.Keyboard.JustUp\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Keyboard.Key} key - The Key to check to see if it's just up or not.\r\n *\r\n * @return {boolean} `true` if the Key was just released, otherwise `false`.\r\n */\r\nvar JustUp = function (key)\r\n{\r\n if (key._justUp)\r\n {\r\n key._justUp = false;\r\n\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n};\r\n\r\nmodule.exports = JustUp;\r\n\n\n/***/ }),\n\n/***/ 30472:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Events = __webpack_require__(95922);\r\n\r\n/**\r\n * @classdesc\r\n * A generic Key object which can be passed to the Process functions (and so on)\r\n * keycode must be an integer\r\n *\r\n * @class Key\r\n * @extends Phaser.Events.EventEmitter\r\n * @memberof Phaser.Input.Keyboard\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Keyboard.KeyboardPlugin} plugin - The Keyboard Plugin instance that owns this Key object.\r\n * @param {number} keyCode - The keycode of this key.\r\n */\r\nvar Key = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function Key (plugin, keyCode)\r\n {\r\n EventEmitter.call(this);\r\n\r\n /**\r\n * The Keyboard Plugin instance that owns this Key object.\r\n *\r\n * @name Phaser.Input.Keyboard.Key#plugin\r\n * @type {Phaser.Input.Keyboard.KeyboardPlugin}\r\n * @since 3.17.0\r\n */\r\n this.plugin = plugin;\r\n\r\n /**\r\n * The keycode of this key.\r\n *\r\n * @name Phaser.Input.Keyboard.Key#keyCode\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.keyCode = keyCode;\r\n\r\n /**\r\n * The original DOM event.\r\n *\r\n * @name Phaser.Input.Keyboard.Key#originalEvent\r\n * @type {KeyboardEvent}\r\n * @since 3.0.0\r\n */\r\n this.originalEvent = undefined;\r\n\r\n /**\r\n * Can this Key be processed?\r\n *\r\n * @name Phaser.Input.Keyboard.Key#enabled\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.enabled = true;\r\n\r\n /**\r\n * The \"down\" state of the key. This will remain `true` for as long as the keyboard thinks this key is held down.\r\n *\r\n * @name Phaser.Input.Keyboard.Key#isDown\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.isDown = false;\r\n\r\n /**\r\n * The \"up\" state of the key. This will remain `true` for as long as the keyboard thinks this key is up.\r\n *\r\n * @name Phaser.Input.Keyboard.Key#isUp\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.isUp = true;\r\n\r\n /**\r\n * The down state of the ALT key, if pressed at the same time as this key.\r\n *\r\n * @name Phaser.Input.Keyboard.Key#altKey\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.altKey = false;\r\n\r\n /**\r\n * The down state of the CTRL key, if pressed at the same time as this key.\r\n *\r\n * @name Phaser.Input.Keyboard.Key#ctrlKey\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.ctrlKey = false;\r\n\r\n /**\r\n * The down state of the SHIFT key, if pressed at the same time as this key.\r\n *\r\n * @name Phaser.Input.Keyboard.Key#shiftKey\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.shiftKey = false;\r\n\r\n /**\r\n * The down state of the Meta key, if pressed at the same time as this key.\r\n * On a Mac the Meta Key is the Command key. On Windows keyboards, it's the Windows key.\r\n *\r\n * @name Phaser.Input.Keyboard.Key#metaKey\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.16.0\r\n */\r\n this.metaKey = false;\r\n\r\n /**\r\n * The location of the modifier key. 0 for standard (or unknown), 1 for left, 2 for right, 3 for numpad.\r\n *\r\n * @name Phaser.Input.Keyboard.Key#location\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.location = 0;\r\n\r\n /**\r\n * The timestamp when the key was last pressed down.\r\n *\r\n * @name Phaser.Input.Keyboard.Key#timeDown\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.timeDown = 0;\r\n\r\n /**\r\n * The number of milliseconds this key was held down for in the previous down - up sequence.\r\n * This value isn't updated every game step, only when the Key changes state.\r\n * To get the current duration use the `getDuration` method.\r\n *\r\n * @name Phaser.Input.Keyboard.Key#duration\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.duration = 0;\r\n\r\n /**\r\n * The timestamp when the key was last released.\r\n *\r\n * @name Phaser.Input.Keyboard.Key#timeUp\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.timeUp = 0;\r\n\r\n /**\r\n * When a key is held down should it continuously fire the `down` event each time it repeats?\r\n *\r\n * By default it will emit the `down` event just once, but if you wish to receive the event\r\n * for each repeat as well, enable this property.\r\n *\r\n * @name Phaser.Input.Keyboard.Key#emitOnRepeat\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.16.0\r\n */\r\n this.emitOnRepeat = false;\r\n\r\n /**\r\n * If a key is held down this holds down the number of times the key has 'repeated'.\r\n *\r\n * @name Phaser.Input.Keyboard.Key#repeats\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.repeats = 0;\r\n\r\n /**\r\n * True if the key has just been pressed (NOTE: requires to be reset, see justDown getter)\r\n *\r\n * @name Phaser.Input.Keyboard.Key#_justDown\r\n * @type {boolean}\r\n * @private\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this._justDown = false;\r\n\r\n /**\r\n * True if the key has just been pressed (NOTE: requires to be reset, see justDown getter)\r\n *\r\n * @name Phaser.Input.Keyboard.Key#_justUp\r\n * @type {boolean}\r\n * @private\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this._justUp = false;\r\n\r\n /**\r\n * Internal tick counter.\r\n *\r\n * @name Phaser.Input.Keyboard.Key#_tick\r\n * @type {number}\r\n * @private\r\n * @since 3.11.0\r\n */\r\n this._tick = -1;\r\n },\r\n\r\n /**\r\n * Controls if this Key will continuously emit a `down` event while being held down (true),\r\n * or emit the event just once, on first press, and then skip future events (false).\r\n *\r\n * @method Phaser.Input.Keyboard.Key#setEmitOnRepeat\r\n * @since 3.16.0\r\n *\r\n * @param {boolean} value - Emit `down` events on repeated key down actions, or just once?\r\n *\r\n * @return {this} This Key instance.\r\n */\r\n setEmitOnRepeat: function (value)\r\n {\r\n this.emitOnRepeat = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Processes the Key Down action for this Key.\r\n * Called automatically by the Keyboard Plugin.\r\n *\r\n * @method Phaser.Input.Keyboard.Key#onDown\r\n * @fires Phaser.Input.Keyboard.Events#DOWN\r\n * @since 3.16.0\r\n *\r\n * @param {KeyboardEvent} event - The native DOM Keyboard event.\r\n */\r\n onDown: function (event)\r\n {\r\n this.originalEvent = event;\r\n\r\n if (!this.enabled)\r\n {\r\n return;\r\n }\r\n\r\n this.altKey = event.altKey;\r\n this.ctrlKey = event.ctrlKey;\r\n this.shiftKey = event.shiftKey;\r\n this.metaKey = event.metaKey;\r\n this.location = event.location;\r\n\r\n this.repeats++;\r\n\r\n if (!this.isDown)\r\n {\r\n this.isDown = true;\r\n this.isUp = false;\r\n this.timeDown = event.timeStamp;\r\n this.duration = 0;\r\n this._justDown = true;\r\n this._justUp = false;\r\n\r\n this.emit(Events.DOWN, this, event);\r\n }\r\n else if (this.emitOnRepeat)\r\n {\r\n this.emit(Events.DOWN, this, event);\r\n }\r\n },\r\n\r\n /**\r\n * Processes the Key Up action for this Key.\r\n * Called automatically by the Keyboard Plugin.\r\n *\r\n * @method Phaser.Input.Keyboard.Key#onUp\r\n * @fires Phaser.Input.Keyboard.Events#UP\r\n * @since 3.16.0\r\n *\r\n * @param {KeyboardEvent} event - The native DOM Keyboard event.\r\n */\r\n onUp: function (event)\r\n {\r\n this.originalEvent = event;\r\n\r\n if (!this.enabled)\r\n {\r\n return;\r\n }\r\n\r\n this.isDown = false;\r\n this.isUp = true;\r\n this.timeUp = event.timeStamp;\r\n this.duration = this.timeUp - this.timeDown;\r\n this.repeats = 0;\r\n\r\n this._justDown = false;\r\n this._justUp = true;\r\n this._tick = -1;\r\n\r\n this.emit(Events.UP, this, event);\r\n },\r\n\r\n /**\r\n * Resets this Key object back to its default un-pressed state.\r\n *\r\n * As of version 3.60.0 it no longer resets the `enabled` or `preventDefault` flags.\r\n *\r\n * @method Phaser.Input.Keyboard.Key#reset\r\n * @since 3.6.0\r\n *\r\n * @return {this} This Key instance.\r\n */\r\n reset: function ()\r\n {\r\n this.isDown = false;\r\n this.isUp = true;\r\n this.altKey = false;\r\n this.ctrlKey = false;\r\n this.shiftKey = false;\r\n this.metaKey = false;\r\n this.timeDown = 0;\r\n this.duration = 0;\r\n this.timeUp = 0;\r\n this.repeats = 0;\r\n this._justDown = false;\r\n this._justUp = false;\r\n this._tick = -1;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns the duration, in ms, that the Key has been held down for.\r\n *\r\n * If the key is not currently down it will return zero.\r\n *\r\n * To get the duration the Key was held down for in the previous up-down cycle,\r\n * use the `Key.duration` property value instead.\r\n *\r\n * @method Phaser.Input.Keyboard.Key#getDuration\r\n * @since 3.17.0\r\n *\r\n * @return {number} The duration, in ms, that the Key has been held down for if currently down.\r\n */\r\n getDuration: function ()\r\n {\r\n if (this.isDown)\r\n {\r\n return (this.plugin.game.loop.time - this.timeDown);\r\n }\r\n else\r\n {\r\n return 0;\r\n }\r\n },\r\n\r\n /**\r\n * Removes any bound event handlers and removes local references.\r\n *\r\n * @method Phaser.Input.Keyboard.Key#destroy\r\n * @since 3.16.0\r\n */\r\n destroy: function ()\r\n {\r\n this.removeAllListeners();\r\n\r\n this.originalEvent = null;\r\n\r\n this.plugin = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Key;\r\n\n\n/***/ }),\n\n/***/ 46032:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Keyboard Codes.\r\n *\r\n * @namespace Phaser.Input.Keyboard.KeyCodes\r\n * @memberof Phaser.Input.Keyboard\r\n * @since 3.0.0\r\n */\r\n\r\nvar KeyCodes = {\r\n\r\n /**\r\n * The BACKSPACE key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.BACKSPACE\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n BACKSPACE: 8,\r\n\r\n /**\r\n * The TAB key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.TAB\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n TAB: 9,\r\n\r\n /**\r\n * The ENTER key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.ENTER\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n ENTER: 13,\r\n\r\n /**\r\n * The SHIFT key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.SHIFT\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n SHIFT: 16,\r\n\r\n /**\r\n * The CTRL key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.CTRL\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n CTRL: 17,\r\n\r\n /**\r\n * The ALT key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.ALT\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n ALT: 18,\r\n\r\n /**\r\n * The PAUSE key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.PAUSE\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n PAUSE: 19,\r\n\r\n /**\r\n * The CAPS_LOCK key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.CAPS_LOCK\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n CAPS_LOCK: 20,\r\n\r\n /**\r\n * The ESC key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.ESC\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n ESC: 27,\r\n\r\n /**\r\n * The SPACE key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.SPACE\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n SPACE: 32,\r\n\r\n /**\r\n * The PAGE_UP key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.PAGE_UP\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n PAGE_UP: 33,\r\n\r\n /**\r\n * The PAGE_DOWN key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.PAGE_DOWN\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n PAGE_DOWN: 34,\r\n\r\n /**\r\n * The END key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.END\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n END: 35,\r\n\r\n /**\r\n * The HOME key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.HOME\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n HOME: 36,\r\n\r\n /**\r\n * The LEFT key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.LEFT\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n LEFT: 37,\r\n\r\n /**\r\n * The UP key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.UP\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n UP: 38,\r\n\r\n /**\r\n * The RIGHT key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.RIGHT\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n RIGHT: 39,\r\n\r\n /**\r\n * The DOWN key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.DOWN\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n DOWN: 40,\r\n\r\n /**\r\n * The PRINT_SCREEN key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.PRINT_SCREEN\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n PRINT_SCREEN: 42,\r\n\r\n /**\r\n * The INSERT key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.INSERT\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n INSERT: 45,\r\n\r\n /**\r\n * The DELETE key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.DELETE\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n DELETE: 46,\r\n\r\n /**\r\n * The ZERO key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.ZERO\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n ZERO: 48,\r\n\r\n /**\r\n * The ONE key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.ONE\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n ONE: 49,\r\n\r\n /**\r\n * The TWO key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.TWO\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n TWO: 50,\r\n\r\n /**\r\n * The THREE key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.THREE\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n THREE: 51,\r\n\r\n /**\r\n * The FOUR key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.FOUR\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n FOUR: 52,\r\n\r\n /**\r\n * The FIVE key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.FIVE\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n FIVE: 53,\r\n\r\n /**\r\n * The SIX key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.SIX\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n SIX: 54,\r\n\r\n /**\r\n * The SEVEN key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.SEVEN\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n SEVEN: 55,\r\n\r\n /**\r\n * The EIGHT key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.EIGHT\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n EIGHT: 56,\r\n\r\n /**\r\n * The NINE key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.NINE\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n NINE: 57,\r\n\r\n /**\r\n * The NUMPAD_ZERO key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.NUMPAD_ZERO\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n NUMPAD_ZERO: 96,\r\n\r\n /**\r\n * The NUMPAD_ONE key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.NUMPAD_ONE\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n NUMPAD_ONE: 97,\r\n\r\n /**\r\n * The NUMPAD_TWO key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.NUMPAD_TWO\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n NUMPAD_TWO: 98,\r\n\r\n /**\r\n * The NUMPAD_THREE key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.NUMPAD_THREE\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n NUMPAD_THREE: 99,\r\n\r\n /**\r\n * The NUMPAD_FOUR key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.NUMPAD_FOUR\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n NUMPAD_FOUR: 100,\r\n\r\n /**\r\n * The NUMPAD_FIVE key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.NUMPAD_FIVE\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n NUMPAD_FIVE: 101,\r\n\r\n /**\r\n * The NUMPAD_SIX key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.NUMPAD_SIX\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n NUMPAD_SIX: 102,\r\n\r\n /**\r\n * The NUMPAD_SEVEN key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.NUMPAD_SEVEN\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n NUMPAD_SEVEN: 103,\r\n\r\n /**\r\n * The NUMPAD_EIGHT key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.NUMPAD_EIGHT\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n NUMPAD_EIGHT: 104,\r\n\r\n /**\r\n * The NUMPAD_NINE key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.NUMPAD_NINE\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n NUMPAD_NINE: 105,\r\n\r\n /**\r\n * The Numpad Addition (+) key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.NUMPAD_ADD\r\n * @type {number}\r\n * @since 3.21.0\r\n */\r\n NUMPAD_ADD: 107,\r\n\r\n /**\r\n * The Numpad Subtraction (-) key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.NUMPAD_SUBTRACT\r\n * @type {number}\r\n * @since 3.21.0\r\n */\r\n NUMPAD_SUBTRACT: 109,\r\n\r\n /**\r\n * The A key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.A\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n A: 65,\r\n\r\n /**\r\n * The B key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.B\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n B: 66,\r\n\r\n /**\r\n * The C key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.C\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n C: 67,\r\n\r\n /**\r\n * The D key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.D\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n D: 68,\r\n\r\n /**\r\n * The E key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.E\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n E: 69,\r\n\r\n /**\r\n * The F key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.F\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n F: 70,\r\n\r\n /**\r\n * The G key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.G\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n G: 71,\r\n\r\n /**\r\n * The H key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.H\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n H: 72,\r\n\r\n /**\r\n * The I key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.I\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n I: 73,\r\n\r\n /**\r\n * The J key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.J\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n J: 74,\r\n\r\n /**\r\n * The K key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.K\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n K: 75,\r\n\r\n /**\r\n * The L key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.L\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n L: 76,\r\n\r\n /**\r\n * The M key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.M\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n M: 77,\r\n\r\n /**\r\n * The N key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.N\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n N: 78,\r\n\r\n /**\r\n * The O key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.O\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n O: 79,\r\n\r\n /**\r\n * The P key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.P\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n P: 80,\r\n\r\n /**\r\n * The Q key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.Q\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n Q: 81,\r\n\r\n /**\r\n * The R key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.R\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n R: 82,\r\n\r\n /**\r\n * The S key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.S\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n S: 83,\r\n\r\n /**\r\n * The T key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.T\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n T: 84,\r\n\r\n /**\r\n * The U key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.U\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n U: 85,\r\n\r\n /**\r\n * The V key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.V\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n V: 86,\r\n\r\n /**\r\n * The W key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.W\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n W: 87,\r\n\r\n /**\r\n * The X key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.X\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n X: 88,\r\n\r\n /**\r\n * The Y key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.Y\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n Y: 89,\r\n\r\n /**\r\n * The Z key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.Z\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n Z: 90,\r\n\r\n /**\r\n * The F1 key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.F1\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n F1: 112,\r\n\r\n /**\r\n * The F2 key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.F2\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n F2: 113,\r\n\r\n /**\r\n * The F3 key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.F3\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n F3: 114,\r\n\r\n /**\r\n * The F4 key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.F4\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n F4: 115,\r\n\r\n /**\r\n * The F5 key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.F5\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n F5: 116,\r\n\r\n /**\r\n * The F6 key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.F6\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n F6: 117,\r\n\r\n /**\r\n * The F7 key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.F7\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n F7: 118,\r\n\r\n /**\r\n * The F8 key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.F8\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n F8: 119,\r\n\r\n /**\r\n * The F9 key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.F9\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n F9: 120,\r\n\r\n /**\r\n * The F10 key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.F10\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n F10: 121,\r\n\r\n /**\r\n * The F11 key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.F11\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n F11: 122,\r\n\r\n /**\r\n * The F12 key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.F12\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n F12: 123,\r\n\r\n /**\r\n * The SEMICOLON key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.SEMICOLON\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n SEMICOLON: 186,\r\n\r\n /**\r\n * The PLUS key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.PLUS\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n PLUS: 187,\r\n\r\n /**\r\n * The COMMA key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.COMMA\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n COMMA: 188,\r\n\r\n /**\r\n * The MINUS key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.MINUS\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n MINUS: 189,\r\n\r\n /**\r\n * The PERIOD key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.PERIOD\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n PERIOD: 190,\r\n\r\n /**\r\n * The FORWARD_SLASH key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.FORWARD_SLASH\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n FORWARD_SLASH: 191,\r\n\r\n /**\r\n * The BACK_SLASH key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.BACK_SLASH\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n BACK_SLASH: 220,\r\n\r\n /**\r\n * The QUOTES key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.QUOTES\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n QUOTES: 222,\r\n\r\n /**\r\n * The BACKTICK key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.BACKTICK\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n BACKTICK: 192,\r\n\r\n /**\r\n * The OPEN_BRACKET key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.OPEN_BRACKET\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n OPEN_BRACKET: 219,\r\n\r\n /**\r\n * The CLOSED_BRACKET key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.CLOSED_BRACKET\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n CLOSED_BRACKET: 221,\r\n\r\n /**\r\n * The SEMICOLON_FIREFOX key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.SEMICOLON_FIREFOX\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n SEMICOLON_FIREFOX: 59,\r\n\r\n /**\r\n * The COLON key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.COLON\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n COLON: 58,\r\n\r\n /**\r\n * The COMMA_FIREFOX_WINDOWS key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.COMMA_FIREFOX_WINDOWS\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n COMMA_FIREFOX_WINDOWS: 60,\r\n\r\n /**\r\n * The COMMA_FIREFOX key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.COMMA_FIREFOX\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n COMMA_FIREFOX: 62,\r\n\r\n /**\r\n * The BRACKET_RIGHT_FIREFOX key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.BRACKET_RIGHT_FIREFOX\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n BRACKET_RIGHT_FIREFOX: 174,\r\n\r\n /**\r\n * The BRACKET_LEFT_FIREFOX key.\r\n *\r\n * @name Phaser.Input.Keyboard.KeyCodes.BRACKET_LEFT_FIREFOX\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n BRACKET_LEFT_FIREFOX: 175\r\n};\r\n\r\nmodule.exports = KeyCodes;\r\n\n\n/***/ }),\n\n/***/ 74600:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar KeyCodes = __webpack_require__(46032);\r\n\r\nvar KeyMap = {};\r\n\r\nfor (var key in KeyCodes)\r\n{\r\n KeyMap[KeyCodes[key]] = key;\r\n}\r\n\r\nmodule.exports = KeyMap;\r\n\n\n/***/ }),\n\n/***/ 41170:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Returns `true` if the Key was released within the `duration` value given, based on the current\r\n * game clock time. Or returns `false` if it either isn't up, or was released longer ago than the given duration.\r\n *\r\n * @function Phaser.Input.Keyboard.UpDuration\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Keyboard.Key} key - The Key object to test.\r\n * @param {number} [duration=50] - The duration, in ms, within which the key must have been released.\r\n *\r\n * @return {boolean} `true` if the Key was released within `duration` ms ago, otherwise `false`.\r\n */\r\nvar UpDuration = function (key, duration)\r\n{\r\n if (duration === undefined) { duration = 50; }\r\n\r\n var current = key.plugin.game.loop.time - key.timeUp;\r\n\r\n return (key.isUp && current < duration);\r\n};\r\n\r\nmodule.exports = UpDuration;\r\n\n\n/***/ }),\n\n/***/ 85098:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Features = __webpack_require__(89357);\r\nvar InputEvents = __webpack_require__(8214);\r\nvar NOOP = __webpack_require__(29747);\r\n\r\n// https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent\r\n// https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md\r\n\r\n/**\r\n * @classdesc\r\n * The Mouse Manager is a helper class that belongs to the Input Manager.\r\n *\r\n * Its role is to listen for native DOM Mouse Events and then pass them onto the Input Manager for further processing.\r\n *\r\n * You do not need to create this class directly, the Input Manager will create an instance of it automatically.\r\n *\r\n * @class MouseManager\r\n * @memberof Phaser.Input.Mouse\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.InputManager} inputManager - A reference to the Input Manager.\r\n */\r\nvar MouseManager = new Class({\r\n\r\n initialize:\r\n\r\n function MouseManager (inputManager)\r\n {\r\n /**\r\n * A reference to the Input Manager.\r\n *\r\n * @name Phaser.Input.Mouse.MouseManager#manager\r\n * @type {Phaser.Input.InputManager}\r\n * @since 3.0.0\r\n */\r\n this.manager = inputManager;\r\n\r\n /**\r\n * If `true` the DOM `mousedown` event will have `preventDefault` set.\r\n *\r\n * @name Phaser.Input.Mouse.MouseManager#preventDefaultDown\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.50.0\r\n */\r\n this.preventDefaultDown = true;\r\n\r\n /**\r\n * If `true` the DOM `mouseup` event will have `preventDefault` set.\r\n *\r\n * @name Phaser.Input.Mouse.MouseManager#preventDefaultUp\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.50.0\r\n */\r\n this.preventDefaultUp = true;\r\n\r\n /**\r\n * If `true` the DOM `mousemove` event will have `preventDefault` set.\r\n *\r\n * @name Phaser.Input.Mouse.MouseManager#preventDefaultMove\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.50.0\r\n */\r\n this.preventDefaultMove = true;\r\n\r\n /**\r\n * If `true` the DOM `wheel` event will have `preventDefault` set.\r\n *\r\n * @name Phaser.Input.Mouse.MouseManager#preventDefaultWheel\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.50.0\r\n */\r\n this.preventDefaultWheel = false;\r\n\r\n /**\r\n * A boolean that controls if the Mouse Manager is enabled or not.\r\n * Can be toggled on the fly.\r\n *\r\n * @name Phaser.Input.Mouse.MouseManager#enabled\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.enabled = false;\r\n\r\n /**\r\n * The Mouse target, as defined in the Game Config.\r\n * Typically the canvas to which the game is rendering, but can be any interactive DOM element.\r\n *\r\n * @name Phaser.Input.Mouse.MouseManager#target\r\n * @type {any}\r\n * @since 3.0.0\r\n */\r\n this.target;\r\n\r\n /**\r\n * If the mouse has been pointer locked successfully this will be set to true.\r\n *\r\n * @name Phaser.Input.Mouse.MouseManager#locked\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.locked = false;\r\n\r\n /**\r\n * The Mouse Move Event handler.\r\n * This function is sent the native DOM MouseEvent.\r\n * Initially empty and bound in the `startListeners` method.\r\n *\r\n * @name Phaser.Input.Mouse.MouseManager#onMouseMove\r\n * @type {function}\r\n * @since 3.10.0\r\n */\r\n this.onMouseMove = NOOP;\r\n\r\n /**\r\n * The Mouse Down Event handler.\r\n * This function is sent the native DOM MouseEvent.\r\n * Initially empty and bound in the `startListeners` method.\r\n *\r\n * @name Phaser.Input.Mouse.MouseManager#onMouseDown\r\n * @type {function}\r\n * @since 3.10.0\r\n */\r\n this.onMouseDown = NOOP;\r\n\r\n /**\r\n * The Mouse Up Event handler.\r\n * This function is sent the native DOM MouseEvent.\r\n * Initially empty and bound in the `startListeners` method.\r\n *\r\n * @name Phaser.Input.Mouse.MouseManager#onMouseUp\r\n * @type {function}\r\n * @since 3.10.0\r\n */\r\n this.onMouseUp = NOOP;\r\n\r\n /**\r\n * The Mouse Down Event handler specifically for events on the Window.\r\n * This function is sent the native DOM MouseEvent.\r\n * Initially empty and bound in the `startListeners` method.\r\n *\r\n * @name Phaser.Input.Mouse.MouseManager#onMouseDownWindow\r\n * @type {function}\r\n * @since 3.17.0\r\n */\r\n this.onMouseDownWindow = NOOP;\r\n\r\n /**\r\n * The Mouse Up Event handler specifically for events on the Window.\r\n * This function is sent the native DOM MouseEvent.\r\n * Initially empty and bound in the `startListeners` method.\r\n *\r\n * @name Phaser.Input.Mouse.MouseManager#onMouseUpWindow\r\n * @type {function}\r\n * @since 3.17.0\r\n */\r\n this.onMouseUpWindow = NOOP;\r\n\r\n /**\r\n * The Mouse Over Event handler.\r\n * This function is sent the native DOM MouseEvent.\r\n * Initially empty and bound in the `startListeners` method.\r\n *\r\n * @name Phaser.Input.Mouse.MouseManager#onMouseOver\r\n * @type {function}\r\n * @since 3.16.0\r\n */\r\n this.onMouseOver = NOOP;\r\n\r\n /**\r\n * The Mouse Out Event handler.\r\n * This function is sent the native DOM MouseEvent.\r\n * Initially empty and bound in the `startListeners` method.\r\n *\r\n * @name Phaser.Input.Mouse.MouseManager#onMouseOut\r\n * @type {function}\r\n * @since 3.16.0\r\n */\r\n this.onMouseOut = NOOP;\r\n\r\n /**\r\n * The Mouse Wheel Event handler.\r\n * This function is sent the native DOM MouseEvent.\r\n * Initially empty and bound in the `startListeners` method.\r\n *\r\n * @name Phaser.Input.Mouse.MouseManager#onMouseWheel\r\n * @type {function}\r\n * @since 3.18.0\r\n */\r\n this.onMouseWheel = NOOP;\r\n\r\n /**\r\n * Internal pointerLockChange handler.\r\n * This function is sent the native DOM MouseEvent.\r\n * Initially empty and bound in the `startListeners` method.\r\n *\r\n * @name Phaser.Input.Mouse.MouseManager#pointerLockChange\r\n * @type {function}\r\n * @since 3.0.0\r\n */\r\n this.pointerLockChange = NOOP;\r\n\r\n /**\r\n * Are the event listeners hooked into `window.top` or `window`?\r\n *\r\n * This is set during the `boot` sequence. If the browser does not have access to `window.top`,\r\n * such as in cross-origin iframe environments, this property gets set to `false` and the events\r\n * are hooked into `window` instead.\r\n *\r\n * @name Phaser.Input.Mouse.MouseManager#isTop\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.50.0\r\n */\r\n this.isTop = true;\r\n\r\n inputManager.events.once(InputEvents.MANAGER_BOOT, this.boot, this);\r\n },\r\n\r\n /**\r\n * The Touch Manager boot process.\r\n *\r\n * @method Phaser.Input.Mouse.MouseManager#boot\r\n * @private\r\n * @since 3.0.0\r\n */\r\n boot: function ()\r\n {\r\n var config = this.manager.config;\r\n\r\n this.enabled = config.inputMouse;\r\n this.target = config.inputMouseEventTarget;\r\n this.passive = config.inputMousePassive;\r\n\r\n this.preventDefaultDown = config.inputMousePreventDefaultDown;\r\n this.preventDefaultUp = config.inputMousePreventDefaultUp;\r\n this.preventDefaultMove = config.inputMousePreventDefaultMove;\r\n this.preventDefaultWheel = config.inputMousePreventDefaultWheel;\r\n\r\n if (!this.target)\r\n {\r\n this.target = this.manager.game.canvas;\r\n }\r\n else if (typeof this.target === 'string')\r\n {\r\n this.target = document.getElementById(this.target);\r\n }\r\n\r\n if (config.disableContextMenu)\r\n {\r\n this.disableContextMenu();\r\n }\r\n\r\n if (this.enabled && this.target)\r\n {\r\n this.startListeners();\r\n }\r\n },\r\n\r\n /**\r\n * Attempts to disable the context menu from appearing if you right-click on the game canvas, or specified input target.\r\n *\r\n * Works by listening for the `contextmenu` event and prevent defaulting it.\r\n *\r\n * Use this if you need to enable right-button mouse support in your game, and the context\r\n * menu keeps getting in the way.\r\n *\r\n * @method Phaser.Input.Mouse.MouseManager#disableContextMenu\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Mouse Manager instance.\r\n */\r\n disableContextMenu: function ()\r\n {\r\n this.target.addEventListener('contextmenu', function (event)\r\n {\r\n event.preventDefault();\r\n return false;\r\n });\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * If the browser supports it, you can request that the pointer be locked to the browser window.\r\n *\r\n * This is classically known as 'FPS controls', where the pointer can't leave the browser until\r\n * the user presses an exit key.\r\n *\r\n * If the browser successfully enters a locked state, a `POINTER_LOCK_CHANGE_EVENT` will be dispatched,\r\n * from the games Input Manager, with an `isPointerLocked` property.\r\n *\r\n * It is important to note that pointer lock can only be enabled after an 'engagement gesture',\r\n * see: https://w3c.github.io/pointerlock/#dfn-engagement-gesture.\r\n *\r\n * Note for Firefox: There is a bug in certain Firefox releases that cause native DOM events like\r\n * `mousemove` to fire continuously when in pointer lock mode. You can get around this by setting\r\n * `this.preventDefaultMove` to `false` in this class. You may also need to do the same for\r\n * `preventDefaultDown` and/or `preventDefaultUp`. Please test combinations of these if you encounter\r\n * the error.\r\n *\r\n * @method Phaser.Input.Mouse.MouseManager#requestPointerLock\r\n * @since 3.0.0\r\n */\r\n requestPointerLock: function ()\r\n {\r\n if (Features.pointerLock)\r\n {\r\n var element = this.target;\r\n\r\n element.requestPointerLock = element.requestPointerLock || element.mozRequestPointerLock || element.webkitRequestPointerLock;\r\n\r\n element.requestPointerLock();\r\n }\r\n },\r\n\r\n /**\r\n * If the browser supports pointer lock, this will request that the pointer lock is released. If\r\n * the browser successfully enters a locked state, a 'POINTER_LOCK_CHANGE_EVENT' will be\r\n * dispatched - from the game's input manager - with an `isPointerLocked` property.\r\n *\r\n * @method Phaser.Input.Mouse.MouseManager#releasePointerLock\r\n * @since 3.0.0\r\n */\r\n releasePointerLock: function ()\r\n {\r\n if (Features.pointerLock)\r\n {\r\n document.exitPointerLock = document.exitPointerLock || document.mozExitPointerLock || document.webkitExitPointerLock;\r\n document.exitPointerLock();\r\n }\r\n },\r\n\r\n /**\r\n * Starts the Mouse Event listeners running.\r\n * This is called automatically and does not need to be manually invoked.\r\n *\r\n * @method Phaser.Input.Mouse.MouseManager#startListeners\r\n * @since 3.0.0\r\n */\r\n startListeners: function ()\r\n {\r\n var target = this.target;\r\n\r\n if (!target)\r\n {\r\n return;\r\n }\r\n\r\n var _this = this;\r\n var manager = this.manager;\r\n var canvas = manager.canvas;\r\n var autoFocus = (window && window.focus && manager.game.config.autoFocus);\r\n\r\n this.onMouseMove = function (event)\r\n {\r\n if (!event.defaultPrevented && _this.enabled && manager && manager.enabled)\r\n {\r\n manager.onMouseMove(event);\r\n\r\n if (_this.preventDefaultMove)\r\n {\r\n event.preventDefault();\r\n }\r\n }\r\n };\r\n\r\n this.onMouseDown = function (event)\r\n {\r\n if (autoFocus)\r\n {\r\n window.focus();\r\n }\r\n\r\n if (!event.defaultPrevented && _this.enabled && manager && manager.enabled)\r\n {\r\n manager.onMouseDown(event);\r\n\r\n if (_this.preventDefaultDown && event.target === canvas)\r\n {\r\n event.preventDefault();\r\n }\r\n }\r\n };\r\n\r\n this.onMouseDownWindow = function (event)\r\n {\r\n if (event.sourceCapabilities && event.sourceCapabilities.firesTouchEvents)\r\n {\r\n return;\r\n }\r\n\r\n if (!event.defaultPrevented && _this.enabled && manager && manager.enabled && event.target !== canvas)\r\n {\r\n // Only process the event if the target isn't the canvas\r\n manager.onMouseDown(event);\r\n }\r\n };\r\n\r\n this.onMouseUp = function (event)\r\n {\r\n if (!event.defaultPrevented && _this.enabled && manager && manager.enabled)\r\n {\r\n manager.onMouseUp(event);\r\n\r\n if (_this.preventDefaultUp && event.target === canvas)\r\n {\r\n event.preventDefault();\r\n }\r\n }\r\n };\r\n\r\n this.onMouseUpWindow = function (event)\r\n {\r\n if (event.sourceCapabilities && event.sourceCapabilities.firesTouchEvents)\r\n {\r\n return;\r\n }\r\n\r\n if (!event.defaultPrevented && _this.enabled && manager && manager.enabled && event.target !== canvas)\r\n {\r\n // Only process the event if the target isn't the canvas\r\n manager.onMouseUp(event);\r\n }\r\n };\r\n\r\n this.onMouseOver = function (event)\r\n {\r\n if (!event.defaultPrevented && _this.enabled && manager && manager.enabled)\r\n {\r\n manager.setCanvasOver(event);\r\n }\r\n };\r\n\r\n this.onMouseOut = function (event)\r\n {\r\n if (!event.defaultPrevented && _this.enabled && manager && manager.enabled)\r\n {\r\n manager.setCanvasOut(event);\r\n }\r\n };\r\n\r\n this.onMouseWheel = function (event)\r\n {\r\n if (!event.defaultPrevented && _this.enabled && manager && manager.enabled)\r\n {\r\n manager.onMouseWheel(event);\r\n }\r\n\r\n if (_this.preventDefaultWheel && event.target === canvas)\r\n {\r\n event.preventDefault();\r\n }\r\n };\r\n\r\n var passive = { passive: true };\r\n\r\n target.addEventListener('mousemove', this.onMouseMove);\r\n target.addEventListener('mousedown', this.onMouseDown);\r\n target.addEventListener('mouseup', this.onMouseUp);\r\n target.addEventListener('mouseover', this.onMouseOver, passive);\r\n target.addEventListener('mouseout', this.onMouseOut, passive);\r\n\r\n if (this.preventDefaultWheel)\r\n {\r\n target.addEventListener('wheel', this.onMouseWheel, { passive: false });\r\n }\r\n else\r\n {\r\n target.addEventListener('wheel', this.onMouseWheel, passive);\r\n }\r\n\r\n if (window && manager.game.config.inputWindowEvents)\r\n {\r\n try\r\n {\r\n window.top.addEventListener('mousedown', this.onMouseDownWindow, passive);\r\n window.top.addEventListener('mouseup', this.onMouseUpWindow, passive);\r\n }\r\n catch (exception)\r\n {\r\n window.addEventListener('mousedown', this.onMouseDownWindow, passive);\r\n window.addEventListener('mouseup', this.onMouseUpWindow, passive);\r\n\r\n this.isTop = false;\r\n }\r\n }\r\n\r\n if (Features.pointerLock)\r\n {\r\n this.pointerLockChange = function (event)\r\n {\r\n var element = _this.target;\r\n\r\n _this.locked = (document.pointerLockElement === element || document.mozPointerLockElement === element || document.webkitPointerLockElement === element) ? true : false;\r\n\r\n manager.onPointerLockChange(event);\r\n };\r\n\r\n document.addEventListener('pointerlockchange', this.pointerLockChange, true);\r\n document.addEventListener('mozpointerlockchange', this.pointerLockChange, true);\r\n document.addEventListener('webkitpointerlockchange', this.pointerLockChange, true);\r\n }\r\n\r\n this.enabled = true;\r\n },\r\n\r\n /**\r\n * Stops the Mouse Event listeners.\r\n * This is called automatically and does not need to be manually invoked.\r\n *\r\n * @method Phaser.Input.Mouse.MouseManager#stopListeners\r\n * @since 3.0.0\r\n */\r\n stopListeners: function ()\r\n {\r\n var target = this.target;\r\n\r\n target.removeEventListener('mousemove', this.onMouseMove);\r\n target.removeEventListener('mousedown', this.onMouseDown);\r\n target.removeEventListener('mouseup', this.onMouseUp);\r\n target.removeEventListener('mouseover', this.onMouseOver);\r\n target.removeEventListener('mouseout', this.onMouseOut);\r\n\r\n if (window)\r\n {\r\n target = (this.isTop) ? window.top : window;\r\n\r\n target.removeEventListener('mousedown', this.onMouseDownWindow);\r\n target.removeEventListener('mouseup', this.onMouseUpWindow);\r\n }\r\n\r\n if (Features.pointerLock)\r\n {\r\n document.removeEventListener('pointerlockchange', this.pointerLockChange, true);\r\n document.removeEventListener('mozpointerlockchange', this.pointerLockChange, true);\r\n document.removeEventListener('webkitpointerlockchange', this.pointerLockChange, true);\r\n }\r\n },\r\n\r\n /**\r\n * Destroys this Mouse Manager instance.\r\n *\r\n * @method Phaser.Input.Mouse.MouseManager#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.stopListeners();\r\n\r\n this.target = null;\r\n this.enabled = false;\r\n this.manager = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = MouseManager;\r\n\n\n/***/ }),\n\n/***/ 87078:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Input.Mouse\r\n */\r\n\r\n/* eslint-disable */\r\nmodule.exports = {\r\n\r\n MouseManager: __webpack_require__(85098)\r\n\r\n};\r\n/* eslint-enable */\r\n\n\n/***/ }),\n\n/***/ 36210:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar InputEvents = __webpack_require__(8214);\r\nvar NOOP = __webpack_require__(29747);\r\n\r\n// https://developer.mozilla.org/en-US/docs/Web/API/Touch_events\r\n// https://patrickhlauke.github.io/touch/tests/results/\r\n// https://www.html5rocks.com/en/mobile/touch/\r\n\r\n/**\r\n * @classdesc\r\n * The Touch Manager is a helper class that belongs to the Input Manager.\r\n *\r\n * Its role is to listen for native DOM Touch Events and then pass them onto the Input Manager for further processing.\r\n *\r\n * You do not need to create this class directly, the Input Manager will create an instance of it automatically.\r\n *\r\n * @class TouchManager\r\n * @memberof Phaser.Input.Touch\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.InputManager} inputManager - A reference to the Input Manager.\r\n */\r\nvar TouchManager = new Class({\r\n\r\n initialize:\r\n\r\n function TouchManager (inputManager)\r\n {\r\n /**\r\n * A reference to the Input Manager.\r\n *\r\n * @name Phaser.Input.Touch.TouchManager#manager\r\n * @type {Phaser.Input.InputManager}\r\n * @since 3.0.0\r\n */\r\n this.manager = inputManager;\r\n\r\n /**\r\n * If true the DOM events will have event.preventDefault applied to them, if false they will propagate fully.\r\n *\r\n * @name Phaser.Input.Touch.TouchManager#capture\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.capture = true;\r\n\r\n /**\r\n * A boolean that controls if the Touch Manager is enabled or not.\r\n * Can be toggled on the fly.\r\n *\r\n * @name Phaser.Input.Touch.TouchManager#enabled\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.enabled = false;\r\n\r\n /**\r\n * The Touch Event target, as defined in the Game Config.\r\n * Typically the canvas to which the game is rendering, but can be any interactive DOM element.\r\n *\r\n * @name Phaser.Input.Touch.TouchManager#target\r\n * @type {any}\r\n * @since 3.0.0\r\n */\r\n this.target;\r\n\r\n /**\r\n * The Touch Start event handler function.\r\n * Initially empty and bound in the `startListeners` method.\r\n *\r\n * @name Phaser.Input.Touch.TouchManager#onTouchStart\r\n * @type {function}\r\n * @since 3.0.0\r\n */\r\n this.onTouchStart = NOOP;\r\n\r\n /**\r\n * The Touch Start event handler function specifically for events on the Window.\r\n * Initially empty and bound in the `startListeners` method.\r\n *\r\n * @name Phaser.Input.Touch.TouchManager#onTouchStartWindow\r\n * @type {function}\r\n * @since 3.17.0\r\n */\r\n this.onTouchStartWindow = NOOP;\r\n\r\n /**\r\n * The Touch Move event handler function.\r\n * Initially empty and bound in the `startListeners` method.\r\n *\r\n * @name Phaser.Input.Touch.TouchManager#onTouchMove\r\n * @type {function}\r\n * @since 3.0.0\r\n */\r\n this.onTouchMove = NOOP;\r\n\r\n /**\r\n * The Touch End event handler function.\r\n * Initially empty and bound in the `startListeners` method.\r\n *\r\n * @name Phaser.Input.Touch.TouchManager#onTouchEnd\r\n * @type {function}\r\n * @since 3.0.0\r\n */\r\n this.onTouchEnd = NOOP;\r\n\r\n /**\r\n * The Touch End event handler function specifically for events on the Window.\r\n * Initially empty and bound in the `startListeners` method.\r\n *\r\n * @name Phaser.Input.Touch.TouchManager#onTouchEndWindow\r\n * @type {function}\r\n * @since 3.17.0\r\n */\r\n this.onTouchEndWindow = NOOP;\r\n\r\n /**\r\n * The Touch Cancel event handler function.\r\n * Initially empty and bound in the `startListeners` method.\r\n *\r\n * @name Phaser.Input.Touch.TouchManager#onTouchCancel\r\n * @type {function}\r\n * @since 3.15.0\r\n */\r\n this.onTouchCancel = NOOP;\r\n\r\n /**\r\n * The Touch Cancel event handler function specifically for events on the Window.\r\n * Initially empty and bound in the `startListeners` method.\r\n *\r\n * @name Phaser.Input.Touch.TouchManager#onTouchCancelWindow\r\n * @type {function}\r\n * @since 3.18.0\r\n */\r\n this.onTouchCancelWindow = NOOP;\r\n\r\n /**\r\n * Are the event listeners hooked into `window.top` or `window`?\r\n *\r\n * This is set during the `boot` sequence. If the browser does not have access to `window.top`,\r\n * such as in cross-origin iframe environments, this property gets set to `false` and the events\r\n * are hooked into `window` instead.\r\n *\r\n * @name Phaser.Input.Touch.TouchManager#isTop\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.isTop = true;\r\n\r\n inputManager.events.once(InputEvents.MANAGER_BOOT, this.boot, this);\r\n },\r\n\r\n /**\r\n * The Touch Manager boot process.\r\n *\r\n * @method Phaser.Input.Touch.TouchManager#boot\r\n * @private\r\n * @since 3.0.0\r\n */\r\n boot: function ()\r\n {\r\n var config = this.manager.config;\r\n\r\n this.enabled = config.inputTouch;\r\n this.target = config.inputTouchEventTarget;\r\n this.capture = config.inputTouchCapture;\r\n\r\n if (!this.target)\r\n {\r\n this.target = this.manager.game.canvas;\r\n }\r\n else if (typeof this.target === 'string')\r\n {\r\n this.target = document.getElementById(this.target);\r\n }\r\n\r\n if (config.disableContextMenu)\r\n {\r\n this.disableContextMenu();\r\n }\r\n\r\n if (this.enabled && this.target)\r\n {\r\n this.startListeners();\r\n }\r\n },\r\n\r\n /**\r\n * Attempts to disable the context menu from appearing if you touch-hold on the browser.\r\n *\r\n * Works by listening for the `contextmenu` event and prevent defaulting it.\r\n *\r\n * Use this if you need to disable the OS context menu on mobile.\r\n *\r\n * @method Phaser.Input.Touch.TouchManager#disableContextMenu\r\n * @since 3.20.0\r\n *\r\n * @return {this} This Touch Manager instance.\r\n */\r\n disableContextMenu: function ()\r\n {\r\n this.target.addEventListener('contextmenu', function (event)\r\n {\r\n event.preventDefault();\r\n return false;\r\n });\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Starts the Touch Event listeners running as long as an input target is set.\r\n *\r\n * This method is called automatically if Touch Input is enabled in the game config,\r\n * which it is by default. However, you can call it manually should you need to\r\n * delay input capturing until later in the game.\r\n *\r\n * @method Phaser.Input.Touch.TouchManager#startListeners\r\n * @since 3.0.0\r\n */\r\n startListeners: function ()\r\n {\r\n var target = this.target;\r\n\r\n if (!target)\r\n {\r\n return;\r\n }\r\n\r\n var _this = this;\r\n var manager = this.manager;\r\n var canvas = manager.canvas;\r\n var autoFocus = (window && window.focus && manager.game.config.autoFocus);\r\n\r\n this.onTouchMove = function (event)\r\n {\r\n if (!event.defaultPrevented && _this.enabled && manager && manager.enabled)\r\n {\r\n manager.onTouchMove(event);\r\n\r\n if (_this.capture && event.cancelable)\r\n {\r\n event.preventDefault();\r\n }\r\n }\r\n };\r\n\r\n this.onTouchStart = function (event)\r\n {\r\n if (autoFocus)\r\n {\r\n window.focus();\r\n }\r\n\r\n if (!event.defaultPrevented && _this.enabled && manager && manager.enabled)\r\n {\r\n manager.onTouchStart(event);\r\n\r\n if (_this.capture && event.cancelable && event.target === canvas)\r\n {\r\n event.preventDefault();\r\n }\r\n }\r\n };\r\n\r\n this.onTouchStartWindow = function (event)\r\n {\r\n if (!event.defaultPrevented && _this.enabled && manager && manager.enabled && event.target !== canvas)\r\n {\r\n // Only process the event if the target isn't the canvas\r\n manager.onTouchStart(event);\r\n }\r\n };\r\n\r\n this.onTouchEnd = function (event)\r\n {\r\n if (!event.defaultPrevented && _this.enabled && manager && manager.enabled)\r\n {\r\n manager.onTouchEnd(event);\r\n\r\n if (_this.capture && event.cancelable && event.target === canvas)\r\n {\r\n event.preventDefault();\r\n }\r\n }\r\n };\r\n\r\n this.onTouchEndWindow = function (event)\r\n {\r\n if (!event.defaultPrevented && _this.enabled && manager && manager.enabled && event.target !== canvas)\r\n {\r\n // Only process the event if the target isn't the canvas\r\n manager.onTouchEnd(event);\r\n }\r\n };\r\n\r\n this.onTouchCancel = function (event)\r\n {\r\n if (!event.defaultPrevented && _this.enabled && manager && manager.enabled)\r\n {\r\n manager.onTouchCancel(event);\r\n\r\n if (_this.capture)\r\n {\r\n event.preventDefault();\r\n }\r\n }\r\n };\r\n\r\n this.onTouchCancelWindow = function (event)\r\n {\r\n if (!event.defaultPrevented && _this.enabled && manager && manager.enabled)\r\n {\r\n manager.onTouchCancel(event);\r\n }\r\n };\r\n\r\n var capture = this.capture;\r\n var passive = { passive: true };\r\n var nonPassive = { passive: false };\r\n\r\n target.addEventListener('touchstart', this.onTouchStart, (capture) ? nonPassive : passive);\r\n target.addEventListener('touchmove', this.onTouchMove, (capture) ? nonPassive : passive);\r\n target.addEventListener('touchend', this.onTouchEnd, (capture) ? nonPassive : passive);\r\n target.addEventListener('touchcancel', this.onTouchCancel, (capture) ? nonPassive : passive);\r\n\r\n if (window && manager.game.config.inputWindowEvents)\r\n {\r\n try\r\n {\r\n window.top.addEventListener('touchstart', this.onTouchStartWindow, nonPassive);\r\n window.top.addEventListener('touchend', this.onTouchEndWindow, nonPassive);\r\n window.top.addEventListener('touchcancel', this.onTouchCancelWindow, nonPassive);\r\n }\r\n catch (exception)\r\n {\r\n window.addEventListener('touchstart', this.onTouchStartWindow, nonPassive);\r\n window.addEventListener('touchend', this.onTouchEndWindow, nonPassive);\r\n window.addEventListener('touchcancel', this.onTouchCancelWindow, nonPassive);\r\n\r\n this.isTop = false;\r\n }\r\n }\r\n\r\n this.enabled = true;\r\n },\r\n\r\n /**\r\n * Stops the Touch Event listeners.\r\n * This is called automatically and does not need to be manually invoked.\r\n *\r\n * @method Phaser.Input.Touch.TouchManager#stopListeners\r\n * @since 3.0.0\r\n */\r\n stopListeners: function ()\r\n {\r\n var target = this.target;\r\n\r\n target.removeEventListener('touchstart', this.onTouchStart);\r\n target.removeEventListener('touchmove', this.onTouchMove);\r\n target.removeEventListener('touchend', this.onTouchEnd);\r\n target.removeEventListener('touchcancel', this.onTouchCancel);\r\n\r\n if (window)\r\n {\r\n target = (this.isTop) ? window.top : window;\r\n\r\n target.removeEventListener('touchstart', this.onTouchStartWindow);\r\n target.removeEventListener('touchend', this.onTouchEndWindow);\r\n target.removeEventListener('touchcancel', this.onTouchCancelWindow);\r\n }\r\n },\r\n\r\n /**\r\n * Destroys this Touch Manager instance.\r\n *\r\n * @method Phaser.Input.Touch.TouchManager#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.stopListeners();\r\n\r\n this.target = null;\r\n this.enabled = false;\r\n this.manager = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = TouchManager;\r\n\n\n/***/ }),\n\n/***/ 95618:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Input.Touch\r\n */\r\n\r\n/* eslint-disable */\r\nmodule.exports = {\r\n\r\n TouchManager: __webpack_require__(36210)\r\n\r\n};\r\n/* eslint-enable */\r\n\n\n/***/ }),\n\n/***/ 41299:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(23906);\r\nvar Events = __webpack_require__(54899);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar GetURL = __webpack_require__(98356);\r\nvar MergeXHRSettings = __webpack_require__(3374);\r\nvar XHRLoader = __webpack_require__(84376);\r\nvar XHRSettings = __webpack_require__(92638);\r\n\r\n/**\r\n * @classdesc\r\n * The base File class used by all File Types that the Loader can support.\r\n * You shouldn't create an instance of a File directly, but should extend it with your own class, setting a custom type and processing methods.\r\n *\r\n * @class File\r\n * @memberof Phaser.Loader\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - The Loader that is going to load this File.\r\n * @param {Phaser.Types.Loader.FileConfig} fileConfig - The file configuration object, as created by the file type.\r\n */\r\nvar File = new Class({\r\n\r\n initialize:\r\n\r\n function File (loader, fileConfig)\r\n {\r\n /**\r\n * A reference to the Loader that is going to load this file.\r\n *\r\n * @name Phaser.Loader.File#loader\r\n * @type {Phaser.Loader.LoaderPlugin}\r\n * @since 3.0.0\r\n */\r\n this.loader = loader;\r\n\r\n /**\r\n * A reference to the Cache, or Texture Manager, that is going to store this file if it loads.\r\n *\r\n * @name Phaser.Loader.File#cache\r\n * @type {(Phaser.Cache.BaseCache|Phaser.Textures.TextureManager)}\r\n * @since 3.7.0\r\n */\r\n this.cache = GetFastValue(fileConfig, 'cache', false);\r\n\r\n /**\r\n * The file type string (image, json, etc) for sorting within the Loader.\r\n *\r\n * @name Phaser.Loader.File#type\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.type = GetFastValue(fileConfig, 'type', false);\r\n\r\n if (!this.type)\r\n {\r\n throw new Error('Invalid File type: ' + this.type);\r\n }\r\n\r\n /**\r\n * Unique cache key (unique within its file type)\r\n *\r\n * @name Phaser.Loader.File#key\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.key = GetFastValue(fileConfig, 'key', false);\r\n\r\n var loadKey = this.key;\r\n\r\n if (loader.prefix && loader.prefix !== '')\r\n {\r\n this.key = loader.prefix + loadKey;\r\n }\r\n\r\n if (!this.key)\r\n {\r\n throw new Error('Invalid File key: ' + this.key);\r\n }\r\n\r\n var url = GetFastValue(fileConfig, 'url');\r\n\r\n if (url === undefined)\r\n {\r\n url = loader.path + loadKey + '.' + GetFastValue(fileConfig, 'extension', '');\r\n }\r\n else if (typeof url === 'string' && !url.match(/^(?:blob:|data:|capacitor:\\/\\/|http:\\/\\/|https:\\/\\/|\\/\\/)/))\r\n {\r\n url = loader.path + url;\r\n }\r\n\r\n /**\r\n * The URL of the file, not including baseURL.\r\n *\r\n * Automatically has Loader.path prepended to it if a string.\r\n *\r\n * Can also be a JavaScript Object, such as the results of parsing JSON data.\r\n *\r\n * @name Phaser.Loader.File#url\r\n * @type {object|string}\r\n * @since 3.0.0\r\n */\r\n this.url = url;\r\n\r\n /**\r\n * The final URL this file will load from, including baseURL and path.\r\n * Set automatically when the Loader calls 'load' on this file.\r\n *\r\n * @name Phaser.Loader.File#src\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.src = '';\r\n\r\n /**\r\n * The merged XHRSettings for this file.\r\n *\r\n * @name Phaser.Loader.File#xhrSettings\r\n * @type {Phaser.Types.Loader.XHRSettingsObject}\r\n * @since 3.0.0\r\n */\r\n this.xhrSettings = XHRSettings(GetFastValue(fileConfig, 'responseType', undefined));\r\n\r\n if (GetFastValue(fileConfig, 'xhrSettings', false))\r\n {\r\n this.xhrSettings = MergeXHRSettings(this.xhrSettings, GetFastValue(fileConfig, 'xhrSettings', {}));\r\n }\r\n\r\n /**\r\n * The XMLHttpRequest instance (as created by XHR Loader) that is loading this File.\r\n *\r\n * @name Phaser.Loader.File#xhrLoader\r\n * @type {?XMLHttpRequest}\r\n * @since 3.0.0\r\n */\r\n this.xhrLoader = null;\r\n\r\n /**\r\n * The current state of the file. One of the FILE_CONST values.\r\n *\r\n * @name Phaser.Loader.File#state\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.state = (typeof(this.url) === 'function') ? CONST.FILE_POPULATED : CONST.FILE_PENDING;\r\n\r\n /**\r\n * The total size of this file.\r\n * Set by onProgress and only if loading via XHR.\r\n *\r\n * @name Phaser.Loader.File#bytesTotal\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.bytesTotal = 0;\r\n\r\n /**\r\n * Updated as the file loads.\r\n * Only set if loading via XHR.\r\n *\r\n * @name Phaser.Loader.File#bytesLoaded\r\n * @type {number}\r\n * @default -1\r\n * @since 3.0.0\r\n */\r\n this.bytesLoaded = -1;\r\n\r\n /**\r\n * A percentage value between 0 and 1 indicating how much of this file has loaded.\r\n * Only set if loading via XHR.\r\n *\r\n * @name Phaser.Loader.File#percentComplete\r\n * @type {number}\r\n * @default -1\r\n * @since 3.0.0\r\n */\r\n this.percentComplete = -1;\r\n\r\n /**\r\n * For CORs based loading.\r\n * If this is undefined then the File will check BaseLoader.crossOrigin and use that (if set)\r\n *\r\n * @name Phaser.Loader.File#crossOrigin\r\n * @type {(string|undefined)}\r\n * @since 3.0.0\r\n */\r\n this.crossOrigin = undefined;\r\n\r\n /**\r\n * The processed file data, stored here after the file has loaded.\r\n *\r\n * @name Phaser.Loader.File#data\r\n * @type {*}\r\n * @since 3.0.0\r\n */\r\n this.data = undefined;\r\n\r\n /**\r\n * A config object that can be used by file types to store transitional data.\r\n *\r\n * @name Phaser.Loader.File#config\r\n * @type {*}\r\n * @since 3.0.0\r\n */\r\n this.config = GetFastValue(fileConfig, 'config', {});\r\n\r\n /**\r\n * If this is a multipart file, i.e. an atlas and its json together, then this is a reference\r\n * to the parent MultiFile. Set and used internally by the Loader or specific file types.\r\n *\r\n * @name Phaser.Loader.File#multiFile\r\n * @type {?Phaser.Loader.MultiFile}\r\n * @since 3.7.0\r\n */\r\n this.multiFile;\r\n\r\n /**\r\n * Does this file have an associated linked file? Such as an image and a normal map.\r\n * Atlases and Bitmap Fonts use the multiFile, because those files need loading together but aren't\r\n * actually bound by data, where-as a linkFile is.\r\n *\r\n * @name Phaser.Loader.File#linkFile\r\n * @type {?Phaser.Loader.File}\r\n * @since 3.7.0\r\n */\r\n this.linkFile;\r\n\r\n /**\r\n * Does this File contain a data URI?\r\n *\r\n * @name Phaser.Loader.File#base64\r\n * @type {boolean}\r\n * @since 3.80.0\r\n */\r\n this.base64 = (typeof url === 'string') && (url.indexOf('data:') === 0);\r\n\r\n /**\r\n * The counter for the number of times to retry loading this file before it fails.\r\n * \r\n * You can set this property value in the FileConfig object. If not present,\r\n * this property is read from the `LoaderPlugin.maxRetries` property when\r\n * this File instance is created.\r\n * \r\n * You can set this value via the Game Config, or you can adjust the `LoaderPlugin` property\r\n * at any point after the Loader has started. However, it will not apply to files\r\n * that have already been added to the Loader, only those added after this value\r\n * is changed.\r\n *\r\n * @name Phaser.Loader.File#retryAttempts\r\n * @type {number}\r\n * @default 2\r\n * @since 3.85.0\r\n */\r\n this.retryAttempts = GetFastValue(fileConfig, 'maxRetries', loader.maxRetries);\r\n },\r\n\r\n /**\r\n * Links this File with another, so they depend upon each other for loading and processing.\r\n *\r\n * @method Phaser.Loader.File#setLink\r\n * @since 3.7.0\r\n *\r\n * @param {Phaser.Loader.File} fileB - The file to link to this one.\r\n */\r\n setLink: function (fileB)\r\n {\r\n this.linkFile = fileB;\r\n\r\n fileB.linkFile = this;\r\n },\r\n\r\n /**\r\n * Resets the XHRLoader instance this file is using.\r\n *\r\n * @method Phaser.Loader.File#resetXHR\r\n * @since 3.0.0\r\n */\r\n resetXHR: function ()\r\n {\r\n if (this.xhrLoader)\r\n {\r\n this.xhrLoader.onload = undefined;\r\n this.xhrLoader.onerror = undefined;\r\n this.xhrLoader.onprogress = undefined;\r\n }\r\n },\r\n\r\n /**\r\n * Called by the Loader, starts the actual file downloading.\r\n * During the load the methods onLoad, onError and onProgress are called, based on the XHR events.\r\n * You shouldn't normally call this method directly, it's meant to be invoked by the Loader.\r\n *\r\n * @method Phaser.Loader.File#load\r\n * @since 3.0.0\r\n */\r\n load: function ()\r\n {\r\n if (this.state === CONST.FILE_POPULATED)\r\n {\r\n // Can happen for example in a JSONFile if they've provided a JSON object instead of a URL\r\n this.loader.nextFile(this, true);\r\n }\r\n else\r\n {\r\n this.state = CONST.FILE_LOADING;\r\n\r\n this.src = GetURL(this, this.loader.baseURL);\r\n\r\n if (!this.src)\r\n {\r\n throw new Error('URL Error in File: ' + this.key + ' from: ' + this.url);\r\n }\r\n\r\n if (this.src.indexOf('data:') === 0)\r\n {\r\n this.base64 = true;\r\n }\r\n\r\n this.xhrLoader = XHRLoader(this, this.loader.xhr);\r\n }\r\n },\r\n\r\n /**\r\n * Called when the file finishes loading, is sent a DOM ProgressEvent.\r\n *\r\n * @method Phaser.Loader.File#onLoad\r\n * @since 3.0.0\r\n *\r\n * @param {XMLHttpRequest} xhr - The XMLHttpRequest that caused this onload event.\r\n * @param {ProgressEvent} event - The DOM ProgressEvent that resulted from this load.\r\n */\r\n onLoad: function (xhr, event)\r\n {\r\n var isLocalFile = xhr.responseURL && this.loader.localSchemes.some(function (scheme)\r\n {\r\n return xhr.responseURL.indexOf(scheme) === 0;\r\n });\r\n\r\n var localFileOk = (isLocalFile && event.target.status === 0);\r\n\r\n var success = !(event.target && event.target.status !== 200) || localFileOk;\r\n\r\n // Handle HTTP status codes of 4xx and 5xx as errors, even if xhr.onerror was not called.\r\n if (xhr.readyState === 4 && xhr.status >= 400 && xhr.status <= 599)\r\n {\r\n success = false;\r\n }\r\n\r\n this.state = CONST.FILE_LOADED;\r\n\r\n this.resetXHR();\r\n\r\n this.loader.nextFile(this, success);\r\n },\r\n\r\n /**\r\n * Called by the XHRLoader if it was given a File with base64 data to load.\r\n *\r\n * @method Phaser.Loader.File#onBase64Load\r\n * @since 3.80.0\r\n *\r\n * @param {XMLHttpRequest} xhr - The FakeXHR object containing the decoded base64 data.\r\n */\r\n onBase64Load: function (xhr)\r\n {\r\n this.xhrLoader = xhr;\r\n\r\n this.state = CONST.FILE_LOADED;\r\n\r\n this.percentComplete = 1;\r\n\r\n this.loader.emit(Events.FILE_PROGRESS, this, this.percentComplete);\r\n\r\n this.loader.nextFile(this, true);\r\n },\r\n\r\n /**\r\n * Called if the file errors while loading, is sent a DOM ProgressEvent.\r\n *\r\n * @method Phaser.Loader.File#onError\r\n * @since 3.0.0\r\n *\r\n * @param {XMLHttpRequest} xhr - The XMLHttpRequest that caused this onload event.\r\n * @param {ProgressEvent} event - The DOM ProgressEvent that resulted from this error.\r\n */\r\n onError: function ()\r\n {\r\n this.resetXHR();\r\n\r\n if (this.retryAttempts > 0)\r\n {\r\n this.retryAttempts--;\r\n\r\n this.load();\r\n }\r\n else\r\n {\r\n this.loader.nextFile(this, false);\r\n }\r\n },\r\n\r\n /**\r\n * Called during the file load progress. Is sent a DOM ProgressEvent.\r\n *\r\n * @method Phaser.Loader.File#onProgress\r\n * @fires Phaser.Loader.Events#FILE_PROGRESS\r\n * @since 3.0.0\r\n *\r\n * @param {ProgressEvent} event - The DOM ProgressEvent.\r\n */\r\n onProgress: function (event)\r\n {\r\n if (event.lengthComputable)\r\n {\r\n this.bytesLoaded = event.loaded;\r\n this.bytesTotal = event.total;\r\n\r\n this.percentComplete = Math.min((this.bytesLoaded / this.bytesTotal), 1);\r\n\r\n this.loader.emit(Events.FILE_PROGRESS, this, this.percentComplete);\r\n }\r\n },\r\n\r\n /**\r\n * Usually overridden by the FileTypes and is called by Loader.nextFile.\r\n * This method controls what extra work this File does with its loaded data, for example a JSON file will parse itself during this stage.\r\n *\r\n * @method Phaser.Loader.File#onProcess\r\n * @since 3.0.0\r\n */\r\n onProcess: function ()\r\n {\r\n this.state = CONST.FILE_PROCESSING;\r\n\r\n this.onProcessComplete();\r\n },\r\n\r\n /**\r\n * Called when the File has completed processing.\r\n * Checks on the state of its multifile, if set.\r\n *\r\n * @method Phaser.Loader.File#onProcessComplete\r\n * @since 3.7.0\r\n */\r\n onProcessComplete: function ()\r\n {\r\n this.state = CONST.FILE_COMPLETE;\r\n\r\n if (this.multiFile)\r\n {\r\n this.multiFile.onFileComplete(this);\r\n }\r\n\r\n this.loader.fileProcessComplete(this);\r\n },\r\n\r\n /**\r\n * Called when the File has completed processing but it generated an error.\r\n * Checks on the state of its multifile, if set.\r\n *\r\n * @method Phaser.Loader.File#onProcessError\r\n * @since 3.7.0\r\n */\r\n onProcessError: function ()\r\n {\r\n // eslint-disable-next-line no-console\r\n console.error('Failed to process file: %s \"%s\"', this.type, this.key);\r\n\r\n this.state = CONST.FILE_ERRORED;\r\n\r\n if (this.multiFile)\r\n {\r\n this.multiFile.onFileFailed(this);\r\n }\r\n\r\n this.loader.fileProcessComplete(this);\r\n },\r\n\r\n /**\r\n * Checks if a key matching the one used by this file exists in the target Cache or not.\r\n * This is called automatically by the LoaderPlugin to decide if the file can be safely\r\n * loaded or will conflict.\r\n *\r\n * @method Phaser.Loader.File#hasCacheConflict\r\n * @since 3.7.0\r\n *\r\n * @return {boolean} `true` if adding this file will cause a conflict, otherwise `false`.\r\n */\r\n hasCacheConflict: function ()\r\n {\r\n return (this.cache && this.cache.exists(this.key));\r\n },\r\n\r\n /**\r\n * Adds this file to its target cache upon successful loading and processing.\r\n * This method is often overridden by specific file types.\r\n *\r\n * @method Phaser.Loader.File#addToCache\r\n * @since 3.7.0\r\n */\r\n addToCache: function ()\r\n {\r\n if (this.cache && this.data)\r\n {\r\n this.cache.add(this.key, this.data);\r\n }\r\n },\r\n\r\n /**\r\n * Called once the file has been added to its cache and is now ready for deletion from the Loader.\r\n * It will emit a `filecomplete` event from the LoaderPlugin.\r\n *\r\n * @method Phaser.Loader.File#pendingDestroy\r\n * @fires Phaser.Loader.Events#FILE_COMPLETE\r\n * @fires Phaser.Loader.Events#FILE_KEY_COMPLETE\r\n * @since 3.7.0\r\n */\r\n pendingDestroy: function (data)\r\n {\r\n if (this.state === CONST.FILE_PENDING_DESTROY)\r\n {\r\n return;\r\n }\r\n\r\n if (data === undefined) { data = this.data; }\r\n\r\n var key = this.key;\r\n var type = this.type;\r\n\r\n this.loader.emit(Events.FILE_COMPLETE, key, type, data);\r\n this.loader.emit(Events.FILE_KEY_COMPLETE + type + '-' + key, key, type, data);\r\n\r\n this.loader.flagForRemoval(this);\r\n\r\n this.state = CONST.FILE_PENDING_DESTROY;\r\n },\r\n\r\n /**\r\n * Destroy this File and any references it holds.\r\n *\r\n * @method Phaser.Loader.File#destroy\r\n * @since 3.7.0\r\n */\r\n destroy: function ()\r\n {\r\n this.loader = null;\r\n this.cache = null;\r\n this.xhrSettings = null;\r\n this.multiFile = null;\r\n this.linkFile = null;\r\n this.data = null;\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Static method for creating object URL using URL API and setting it as image 'src' attribute.\r\n * If URL API is not supported (usually on old browsers) it falls back to creating Base64 encoded url using FileReader.\r\n *\r\n * @method Phaser.Loader.File.createObjectURL\r\n * @static\r\n * @since 3.7.0\r\n *\r\n * @param {HTMLImageElement} image - Image object which 'src' attribute should be set to object URL.\r\n * @param {Blob} blob - A Blob object to create an object URL for.\r\n * @param {string} defaultType - Default mime type used if blob type is not available.\r\n */\r\nFile.createObjectURL = function (image, blob, defaultType)\r\n{\r\n if (typeof URL === 'function')\r\n {\r\n image.src = URL.createObjectURL(blob);\r\n }\r\n else\r\n {\r\n var reader = new FileReader();\r\n\r\n reader.onload = function ()\r\n {\r\n image.removeAttribute('crossOrigin');\r\n image.src = 'data:' + (blob.type || defaultType) + ';base64,' + reader.result.split(',')[1];\r\n };\r\n\r\n reader.onerror = image.onerror;\r\n\r\n reader.readAsDataURL(blob);\r\n }\r\n};\r\n\r\n/**\r\n * Static method for releasing an existing object URL which was previously created\r\n * by calling {@link Phaser.Loader.File.createObjectURL} method.\r\n *\r\n * @method Phaser.Loader.File.revokeObjectURL\r\n * @static\r\n * @since 3.7.0\r\n *\r\n * @param {HTMLImageElement} image - Image object which 'src' attribute should be revoked.\r\n */\r\nFile.revokeObjectURL = function (image)\r\n{\r\n if (typeof URL === 'function')\r\n {\r\n URL.revokeObjectURL(image.src);\r\n }\r\n};\r\n\r\nmodule.exports = File;\r\n\n\n/***/ }),\n\n/***/ 74099:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar types = {};\r\n\r\n/**\r\n * @namespace Phaser.Loader.FileTypesManager\r\n */\r\n\r\nvar FileTypesManager = {\r\n\r\n /**\r\n * Static method called when a LoaderPlugin is created.\r\n *\r\n * Loops through the local types object and injects all of them as\r\n * properties into the LoaderPlugin instance.\r\n *\r\n * @method Phaser.Loader.FileTypesManager.install\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - The LoaderPlugin to install the types into.\r\n */\r\n install: function (loader)\r\n {\r\n for (var key in types)\r\n {\r\n loader[key] = types[key];\r\n }\r\n },\r\n\r\n /**\r\n * Static method called directly by the File Types.\r\n *\r\n * The key is a reference to the function used to load the files via the Loader, i.e. `image`.\r\n *\r\n * @method Phaser.Loader.FileTypesManager.register\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key that will be used as the method name in the LoaderPlugin.\r\n * @param {function} factoryFunction - The function that will be called when LoaderPlugin.key is invoked.\r\n */\r\n register: function (key, factoryFunction)\r\n {\r\n types[key] = factoryFunction;\r\n },\r\n\r\n /**\r\n * Removed all associated file types.\r\n *\r\n * @method Phaser.Loader.FileTypesManager.destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n types = {};\r\n }\r\n\r\n};\r\n\r\nmodule.exports = FileTypesManager;\r\n\n\n/***/ }),\n\n/***/ 98356:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Given a File and a baseURL value this returns the URL the File will use to download from.\r\n *\r\n * @function Phaser.Loader.GetURL\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.File} file - The File object.\r\n * @param {string} baseURL - A default base URL.\r\n *\r\n * @return {string} The URL the File will use.\r\n */\r\nvar GetURL = function (file, baseURL)\r\n{\r\n if (!file.url)\r\n {\r\n return false;\r\n }\r\n\r\n if (file.url.match(/^(?:blob:|data:|capacitor:\\/\\/|http:\\/\\/|https:\\/\\/|\\/\\/)/))\r\n {\r\n return file.url;\r\n }\r\n else\r\n {\r\n return baseURL + file.url;\r\n }\r\n};\r\n\r\nmodule.exports = GetURL;\r\n\n\n/***/ }),\n\n/***/ 74261:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(23906);\r\nvar CustomSet = __webpack_require__(35072);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Events = __webpack_require__(54899);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar GetValue = __webpack_require__(35154);\r\nvar IsPlainObject = __webpack_require__(41212);\r\nvar PluginCache = __webpack_require__(37277);\r\nvar SceneEvents = __webpack_require__(44594);\r\nvar XHRSettings = __webpack_require__(92638);\r\n\r\n/**\r\n * @classdesc\r\n * The Loader handles loading all external content such as Images, Sounds, Texture Atlases and data files.\r\n * You typically interact with it via `this.load` in your Scene. Scenes can have a `preload` method, which is always\r\n * called before the Scenes `create` method, allowing you to preload assets that the Scene may need.\r\n *\r\n * If you call any `this.load` methods from outside of `Scene.preload` then you need to start the Loader going\r\n * yourself by calling `Loader.start()`. It's only automatically started during the Scene preload.\r\n *\r\n * The Loader uses a combination of tag loading (eg. Audio elements) and XHR and provides progress and completion events.\r\n * Files are loaded in parallel by default. The amount of concurrent connections can be controlled in your Game Configuration.\r\n *\r\n * Once the Loader has started loading you are still able to add files to it. These can be injected as a result of a loader\r\n * event, the type of file being loaded (such as a pack file) or other external events. As long as the Loader hasn't finished\r\n * simply adding a new file to it, while running, will ensure it's added into the current queue.\r\n *\r\n * Every Scene has its own instance of the Loader and they are bound to the Scene in which they are created. However,\r\n * assets loaded by the Loader are placed into global game-level caches. For example, loading an XML file will place that\r\n * file inside `Game.cache.xml`, which is accessible from every Scene in your game, no matter who was responsible\r\n * for loading it. The same is true of Textures. A texture loaded in one Scene is instantly available to all other Scenes\r\n * in your game.\r\n *\r\n * The Loader works by using custom File Types. These are stored in the FileTypesManager, which injects them into the Loader\r\n * when it's instantiated. You can create your own custom file types by extending either the File or MultiFile classes.\r\n * See those files for more details.\r\n *\r\n * @class LoaderPlugin\r\n * @extends Phaser.Events.EventEmitter\r\n * @memberof Phaser.Loader\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene which owns this Loader instance.\r\n */\r\nvar LoaderPlugin = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function LoaderPlugin (scene)\r\n {\r\n EventEmitter.call(this);\r\n\r\n var gameConfig = scene.sys.game.config;\r\n var sceneConfig = scene.sys.settings.loader;\r\n\r\n /**\r\n * The Scene which owns this Loader instance.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.0.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * A reference to the Scene Systems.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#systems\r\n * @type {Phaser.Scenes.Systems}\r\n * @since 3.0.0\r\n */\r\n this.systems = scene.sys;\r\n\r\n /**\r\n * A reference to the global Cache Manager.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#cacheManager\r\n * @type {Phaser.Cache.CacheManager}\r\n * @since 3.7.0\r\n */\r\n this.cacheManager = scene.sys.cache;\r\n\r\n /**\r\n * A reference to the global Texture Manager.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#textureManager\r\n * @type {Phaser.Textures.TextureManager}\r\n * @since 3.7.0\r\n */\r\n this.textureManager = scene.sys.textures;\r\n\r\n /**\r\n * A reference to the global Scene Manager.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#sceneManager\r\n * @type {Phaser.Scenes.SceneManager}\r\n * @protected\r\n * @since 3.16.0\r\n */\r\n this.sceneManager = scene.sys.game.scene;\r\n\r\n // Inject the available filetypes into the Loader\r\n FileTypesManager.install(this);\r\n\r\n /**\r\n * An optional prefix that is automatically prepended to the start of every file key.\r\n * If prefix was `MENU.` and you load an image with the key 'Background' the resulting key would be `MENU.Background`.\r\n * You can set this directly, or call `Loader.setPrefix()`. It will then affect every file added to the Loader\r\n * from that point on. It does _not_ change any file already in the load queue.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#prefix\r\n * @type {string}\r\n * @default ''\r\n * @since 3.7.0\r\n */\r\n this.prefix = '';\r\n\r\n /**\r\n * The value of `path`, if set, is placed before any _relative_ file path given. For example:\r\n *\r\n * ```javascript\r\n * this.load.path = \"images/sprites/\";\r\n * this.load.image(\"ball\", \"ball.png\");\r\n * this.load.image(\"tree\", \"level1/oaktree.png\");\r\n * this.load.image(\"boom\", \"http://server.com/explode.png\");\r\n * ```\r\n *\r\n * Would load the `ball` file from `images/sprites/ball.png` and the tree from\r\n * `images/sprites/level1/oaktree.png` but the file `boom` would load from the URL\r\n * given as it's an absolute URL.\r\n *\r\n * Please note that the path is added before the filename but *after* the baseURL (if set.)\r\n *\r\n * If you set this property directly then it _must_ end with a \"/\". Alternatively, call `setPath()` and it'll do it for you.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#path\r\n * @type {string}\r\n * @default ''\r\n * @since 3.0.0\r\n */\r\n this.path = '';\r\n\r\n /**\r\n * If you want to append a URL before the path of any asset you can set this here.\r\n *\r\n * Useful if allowing the asset base url to be configured outside of the game code.\r\n *\r\n * If you set this property directly then it _must_ end with a \"/\". Alternatively, call `setBaseURL()` and it'll do it for you.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#baseURL\r\n * @type {string}\r\n * @default ''\r\n * @since 3.0.0\r\n */\r\n this.baseURL = '';\r\n\r\n this.setBaseURL(GetFastValue(sceneConfig, 'baseURL', gameConfig.loaderBaseURL));\r\n\r\n this.setPath(GetFastValue(sceneConfig, 'path', gameConfig.loaderPath));\r\n\r\n this.setPrefix(GetFastValue(sceneConfig, 'prefix', gameConfig.loaderPrefix));\r\n\r\n /**\r\n * The number of concurrent / parallel resources to try and fetch at once.\r\n *\r\n * Old browsers limit 6 requests per domain; modern ones, especially those with HTTP/2 don't limit it at all.\r\n *\r\n * The default is 32 but you can change this in your Game Config, or by changing this property before the Loader starts.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#maxParallelDownloads\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.maxParallelDownloads = GetFastValue(sceneConfig, 'maxParallelDownloads', gameConfig.loaderMaxParallelDownloads);\r\n\r\n /**\r\n * xhr specific global settings (can be overridden on a per-file basis)\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#xhr\r\n * @type {Phaser.Types.Loader.XHRSettingsObject}\r\n * @since 3.0.0\r\n */\r\n this.xhr = XHRSettings(\r\n GetFastValue(sceneConfig, 'responseType', gameConfig.loaderResponseType),\r\n GetFastValue(sceneConfig, 'async', gameConfig.loaderAsync),\r\n GetFastValue(sceneConfig, 'user', gameConfig.loaderUser),\r\n GetFastValue(sceneConfig, 'password', gameConfig.loaderPassword),\r\n GetFastValue(sceneConfig, 'timeout', gameConfig.loaderTimeout),\r\n GetFastValue(sceneConfig, 'withCredentials', gameConfig.loaderWithCredentials)\r\n );\r\n\r\n /**\r\n * The crossOrigin value applied to loaded images. Very often this needs to be set to 'anonymous'.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#crossOrigin\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.crossOrigin = GetFastValue(sceneConfig, 'crossOrigin', gameConfig.loaderCrossOrigin);\r\n\r\n /**\r\n * Optional load type for image files. `XHR` is the default. Set to `HTMLImageElement` to load images using the Image tag instead.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#imageLoadType\r\n * @type {string}\r\n * @since 3.60.0\r\n */\r\n this.imageLoadType = GetFastValue(sceneConfig, 'imageLoadType', gameConfig.loaderImageLoadType);\r\n\r\n /**\r\n * An array of all schemes that the Loader considers as being 'local'.\r\n *\r\n * This is populated by the `Phaser.Core.Config#loaderLocalScheme` game configuration setting and defaults to\r\n * `[ 'file://', 'capacitor://' ]`. Additional local schemes can be added to this array as needed.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#localSchemes\r\n * @type {string[]}\r\n * @since 3.60.0\r\n */\r\n this.localSchemes = GetFastValue(sceneConfig, 'localScheme', gameConfig.loaderLocalScheme);\r\n\r\n /**\r\n * The total number of files to load. It may not always be accurate because you may add to the Loader during the process\r\n * of loading, especially if you load a Pack File. Therefore this value can change, but in most cases remains static.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#totalToLoad\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.totalToLoad = 0;\r\n\r\n /**\r\n * The progress of the current load queue, as a float value between 0 and 1.\r\n * This is updated automatically as files complete loading.\r\n * Note that it is possible for this value to go down again if you add content to the current load queue during a load.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#progress\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.progress = 0;\r\n\r\n /**\r\n * Files are placed in this Set when they're added to the Loader via `addFile`.\r\n *\r\n * They are moved to the `inflight` Set when they start loading, and assuming a successful\r\n * load, to the `queue` Set for further processing.\r\n *\r\n * By the end of the load process this Set will be empty.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#list\r\n * @type {Phaser.Structs.Set.}\r\n * @since 3.0.0\r\n */\r\n this.list = new CustomSet();\r\n\r\n /**\r\n * Files are stored in this Set while they're in the process of being loaded.\r\n *\r\n * Upon a successful load they are moved to the `queue` Set.\r\n *\r\n * By the end of the load process this Set will be empty.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#inflight\r\n * @type {Phaser.Structs.Set.}\r\n * @since 3.0.0\r\n */\r\n this.inflight = new CustomSet();\r\n\r\n /**\r\n * Files are stored in this Set while they're being processed.\r\n *\r\n * If the process is successful they are moved to their final destination, which could be\r\n * a Cache or the Texture Manager.\r\n *\r\n * At the end of the load process this Set will be empty.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#queue\r\n * @type {Phaser.Structs.Set.}\r\n * @since 3.0.0\r\n */\r\n this.queue = new CustomSet();\r\n\r\n /**\r\n * A temporary Set in which files are stored after processing,\r\n * awaiting destruction at the end of the load process.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#_deleteQueue\r\n * @type {Phaser.Structs.Set.}\r\n * @private\r\n * @since 3.7.0\r\n */\r\n this._deleteQueue = new CustomSet();\r\n\r\n /**\r\n * The total number of files that failed to load during the most recent load.\r\n * This value is reset when you call `Loader.start`.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#totalFailed\r\n * @type {number}\r\n * @default 0\r\n * @since 3.7.0\r\n */\r\n this.totalFailed = 0;\r\n\r\n /**\r\n * The total number of files that successfully loaded during the most recent load.\r\n * This value is reset when you call `Loader.start`.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#totalComplete\r\n * @type {number}\r\n * @default 0\r\n * @since 3.7.0\r\n */\r\n this.totalComplete = 0;\r\n\r\n /**\r\n * The current state of the Loader.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#state\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.state = CONST.LOADER_IDLE;\r\n\r\n /**\r\n * The current index being used by multi-file loaders to avoid key clashes.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#multiKeyIndex\r\n * @type {number}\r\n * @private\r\n * @since 3.20.0\r\n */\r\n this.multiKeyIndex = 0;\r\n\r\n /**\r\n * The number of times to retry loading a single file before it fails.\r\n * \r\n * This property is read by the `File` object when it is created and set to\r\n * the internal property of the same name. It's not used by the Loader itself.\r\n * \r\n * You can set this value via the Game Config, or you can adjust this property\r\n * at any point after the Loader has started. However, it will not apply to files\r\n * that have already been added to the Loader, only those added after this value\r\n * is changed.\r\n *\r\n * @name Phaser.Loader.LoaderPlugin#maxRetries\r\n * @type {number}\r\n * @default 2\r\n * @since 3.85.0\r\n */\r\n this.maxRetries = GetFastValue(sceneConfig, 'maxRetries', gameConfig.loaderMaxRetries);\r\n\r\n scene.sys.events.once(SceneEvents.BOOT, this.boot, this);\r\n scene.sys.events.on(SceneEvents.START, this.pluginStart, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically, only once, when the Scene is first created.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#boot\r\n * @private\r\n * @since 3.5.1\r\n */\r\n boot: function ()\r\n {\r\n this.systems.events.once(SceneEvents.DESTROY, this.destroy, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically by the Scene when it is starting up.\r\n * It is responsible for creating local systems, properties and listening for Scene events.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#pluginStart\r\n * @private\r\n * @since 3.5.1\r\n */\r\n pluginStart: function ()\r\n {\r\n this.systems.events.once(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * If you want to append a URL before the path of any asset you can set this here.\r\n *\r\n * Useful if allowing the asset base url to be configured outside of the game code.\r\n *\r\n * Once a base URL is set it will affect every file loaded by the Loader from that point on. It does _not_ change any\r\n * file _already_ being loaded. To reset it, call this method with no arguments.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#setBaseURL\r\n * @since 3.0.0\r\n *\r\n * @param {string} [url] - The URL to use. Leave empty to reset.\r\n *\r\n * @return {this} This Loader object.\r\n */\r\n setBaseURL: function (url)\r\n {\r\n if (url === undefined) { url = ''; }\r\n\r\n if (url !== '' && url.substr(-1) !== '/')\r\n {\r\n url = url.concat('/');\r\n }\r\n\r\n this.baseURL = url;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The value of `path`, if set, is placed before any _relative_ file path given. For example:\r\n *\r\n * ```javascript\r\n * this.load.setPath(\"images/sprites/\");\r\n * this.load.image(\"ball\", \"ball.png\");\r\n * this.load.image(\"tree\", \"level1/oaktree.png\");\r\n * this.load.image(\"boom\", \"http://server.com/explode.png\");\r\n * ```\r\n *\r\n * Would load the `ball` file from `images/sprites/ball.png` and the tree from\r\n * `images/sprites/level1/oaktree.png` but the file `boom` would load from the URL\r\n * given as it's an absolute URL.\r\n *\r\n * Please note that the path is added before the filename but *after* the baseURL (if set.)\r\n *\r\n * Once a path is set it will then affect every file added to the Loader from that point on. It does _not_ change any\r\n * file _already_ in the load queue. To reset it, call this method with no arguments.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#setPath\r\n * @since 3.0.0\r\n *\r\n * @param {string} [path] - The path to use. Leave empty to reset.\r\n *\r\n * @return {this} This Loader object.\r\n */\r\n setPath: function (path)\r\n {\r\n if (path === undefined) { path = ''; }\r\n\r\n if (path !== '' && path.substr(-1) !== '/')\r\n {\r\n path = path.concat('/');\r\n }\r\n\r\n this.path = path;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * An optional prefix that is automatically prepended to the start of every file key.\r\n *\r\n * If prefix was `MENU.` and you load an image with the key 'Background' the resulting key would be `MENU.Background`.\r\n *\r\n * Once a prefix is set it will then affect every file added to the Loader from that point on. It does _not_ change any\r\n * file _already_ in the load queue. To reset it, call this method with no arguments.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#setPrefix\r\n * @since 3.7.0\r\n *\r\n * @param {string} [prefix] - The prefix to use. Leave empty to reset.\r\n *\r\n * @return {this} This Loader object.\r\n */\r\n setPrefix: function (prefix)\r\n {\r\n if (prefix === undefined) { prefix = ''; }\r\n\r\n this.prefix = prefix;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Cross Origin Resource Sharing value used when loading files.\r\n *\r\n * Files can override this value on a per-file basis by specifying an alternative `crossOrigin` value in their file config.\r\n *\r\n * Once CORs is set it will then affect every file loaded by the Loader from that point on, as long as they don't have\r\n * their own CORs setting. To reset it, call this method with no arguments.\r\n *\r\n * For more details about CORs see https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#setCORS\r\n * @since 3.0.0\r\n *\r\n * @param {string} [crossOrigin] - The value to use for the `crossOrigin` property in the load request.\r\n *\r\n * @return {this} This Loader object.\r\n */\r\n setCORS: function (crossOrigin)\r\n {\r\n this.crossOrigin = crossOrigin;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds a file, or array of files, into the load queue.\r\n *\r\n * The file must be an instance of `Phaser.Loader.File`, or a class that extends it. The Loader will check that the key\r\n * used by the file won't conflict with any other key either in the loader, the inflight queue or the target cache.\r\n * If allowed it will then add the file into the pending list, read for the load to start. Or, if the load has already\r\n * started, ready for the next batch of files to be pulled from the list to the inflight queue.\r\n *\r\n * You should not normally call this method directly, but rather use one of the Loader methods like `image` or `atlas`,\r\n * however you can call this as long as the file given to it is well formed.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#addFile\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Loader.File|Phaser.Loader.File[])} file - The file, or array of files, to be added to the load queue.\r\n */\r\n addFile: function (file)\r\n {\r\n if (!Array.isArray(file))\r\n {\r\n file = [ file ];\r\n }\r\n\r\n for (var i = 0; i < file.length; i++)\r\n {\r\n var item = file[i];\r\n\r\n // Does the file already exist in the cache or texture manager?\r\n // Or will it conflict with a file already in the queue or inflight?\r\n if (!this.keyExists(item))\r\n {\r\n this.list.set(item);\r\n\r\n this.emit(Events.ADD, item.key, item.type, this, item);\r\n\r\n if (this.isLoading())\r\n {\r\n this.totalToLoad++;\r\n this.updateProgress();\r\n }\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Checks the key and type of the given file to see if it will conflict with anything already\r\n * in a Cache, the Texture Manager, or the list or inflight queues.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#keyExists\r\n * @since 3.7.0\r\n *\r\n * @param {Phaser.Loader.File} file - The file to check the key of.\r\n *\r\n * @return {boolean} `true` if adding this file will cause a cache or queue conflict, otherwise `false`.\r\n */\r\n keyExists: function (file)\r\n {\r\n var keyConflict = file.hasCacheConflict();\r\n\r\n if (!keyConflict)\r\n {\r\n this.list.iterate(function (item)\r\n {\r\n if (item.type === file.type && item.key === file.key)\r\n {\r\n keyConflict = true;\r\n\r\n return false;\r\n }\r\n\r\n });\r\n }\r\n\r\n if (!keyConflict && this.isLoading())\r\n {\r\n this.inflight.iterate(function (item)\r\n {\r\n if (item.type === file.type && item.key === file.key)\r\n {\r\n keyConflict = true;\r\n\r\n return false;\r\n }\r\n\r\n });\r\n\r\n this.queue.iterate(function (item)\r\n {\r\n if (item.type === file.type && item.key === file.key)\r\n {\r\n keyConflict = true;\r\n\r\n return false;\r\n }\r\n\r\n });\r\n }\r\n\r\n return keyConflict;\r\n },\r\n\r\n /**\r\n * Takes a well formed, fully parsed pack file object and adds its entries into the load queue. Usually you do not call\r\n * this method directly, but instead use `Loader.pack` and supply a path to a JSON file that holds the\r\n * pack data. However, if you've got the data prepared you can pass it to this method.\r\n *\r\n * You can also provide an optional key. If you do then it will only add the entries from that part of the pack into\r\n * to the load queue. If not specified it will add all entries it finds. For more details about the pack file format\r\n * see the `LoaderPlugin.pack` method.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#addPack\r\n * @since 3.7.0\r\n *\r\n * @param {any} pack - The Pack File data to be parsed and each entry of it to added to the load queue.\r\n * @param {string} [packKey] - An optional key to use from the pack file data.\r\n *\r\n * @return {boolean} `true` if any files were added to the queue, otherwise `false`.\r\n */\r\n addPack: function (pack, packKey)\r\n {\r\n // if no packKey provided we'll add everything to the queue\r\n if (typeof(packKey) === 'string')\r\n {\r\n var subPack = GetValue(pack, packKey);\r\n\r\n if (subPack)\r\n {\r\n pack = { packKey: subPack };\r\n }\r\n }\r\n\r\n var total = 0;\r\n\r\n // Store the loader settings in case this pack replaces them\r\n var currentBaseURL = this.baseURL;\r\n var currentPath = this.path;\r\n var currentPrefix = this.prefix;\r\n\r\n // Here we go ...\r\n for (var key in pack)\r\n {\r\n if (!Object.prototype.hasOwnProperty.call(pack, key))\r\n {\r\n continue;\r\n }\r\n\r\n var config = pack[key];\r\n\r\n // Any meta data to process?\r\n var baseURL = GetFastValue(config, 'baseURL', currentBaseURL);\r\n var path = GetFastValue(config, 'path', currentPath);\r\n var prefix = GetFastValue(config, 'prefix', currentPrefix);\r\n var files = GetFastValue(config, 'files', null);\r\n var defaultType = GetFastValue(config, 'defaultType', 'void');\r\n\r\n if (Array.isArray(files))\r\n {\r\n this.setBaseURL(baseURL);\r\n this.setPath(path);\r\n this.setPrefix(prefix);\r\n\r\n for (var i = 0; i < files.length; i++)\r\n {\r\n var file = files[i];\r\n var type = (file.hasOwnProperty('type')) ? file.type : defaultType;\r\n\r\n if (this[type])\r\n {\r\n this[type](file);\r\n total++;\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Reset the loader settings\r\n this.setBaseURL(currentBaseURL);\r\n this.setPath(currentPath);\r\n this.setPrefix(currentPrefix);\r\n\r\n return (total > 0);\r\n },\r\n\r\n /**\r\n * Remove the resources listed in an Asset Pack.\r\n *\r\n * This removes Animations from the Animation Manager, Textures from the Texture Manager, and all other assets from their respective caches.\r\n * It doesn't remove the Pack itself from the JSON cache, if it exists there.\r\n * If the Pack includes another Pack, its resources will be removed too.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#removePack\r\n * @since 3.85.0\r\n *\r\n * @param {(string|object)} packKey - The key of an Asset Pack in the JSON cache, or a Pack File data.\r\n * @param {string} [dataKey] - A key in the Pack data, if you want to process only a section of it.\r\n */\r\n removePack: function (packKey, dataKey)\r\n {\r\n var animationManager = this.systems.anims;\r\n var cacheManager = this.cacheManager;\r\n var textureManager = this.textureManager;\r\n\r\n var cacheMap = {\r\n animation: 'json',\r\n aseprite: 'json',\r\n audio: 'audio',\r\n audioSprite: 'audio',\r\n binary: 'binary',\r\n bitmapFont: 'bitmapFont',\r\n css: null,\r\n glsl: 'shader',\r\n html: 'html',\r\n json: 'json',\r\n obj: 'obj',\r\n plugin: null,\r\n scenePlugin: null,\r\n script: null,\r\n spine: 'json',\r\n text: 'text',\r\n tilemapCSV: 'tilemap',\r\n tilemapImpact: 'tilemap',\r\n tilemapTiledJSON: 'tilemap',\r\n video: 'video',\r\n xml: 'xml'\r\n };\r\n\r\n var pack;\r\n\r\n if (IsPlainObject(packKey))\r\n {\r\n pack = packKey;\r\n }\r\n else\r\n {\r\n pack = cacheManager.json.get(packKey);\r\n\r\n if (!pack)\r\n {\r\n console.warn('Asset Pack not found in JSON cache:', packKey);\r\n\r\n return;\r\n }\r\n }\r\n\r\n if (dataKey)\r\n {\r\n pack = { _: pack[dataKey] };\r\n }\r\n\r\n for (var configKey in pack)\r\n {\r\n var config = pack[configKey];\r\n var prefix = GetFastValue(config, 'prefix', '');\r\n var files = GetFastValue(config, 'files');\r\n var defaultType = GetFastValue(config, 'defaultType');\r\n\r\n if (Array.isArray(files))\r\n {\r\n for (var i = 0; i < files.length; i++)\r\n {\r\n var file = files[i];\r\n var type = (file.hasOwnProperty('type')) ? file.type : defaultType;\r\n\r\n if (!type)\r\n {\r\n console.warn('No type:', file);\r\n\r\n continue;\r\n }\r\n\r\n var fileKey = prefix + file.key;\r\n\r\n if (type === 'animation')\r\n {\r\n animationManager.remove(fileKey);\r\n }\r\n\r\n if (type === 'aseprite' || type === 'atlas' || type === 'atlasXML' || type === 'htmlTexture' || type === 'image' || type === 'multiatlas' || type === 'spritesheet' || type === 'svg' || type === 'texture' || type === 'unityAtlas')\r\n {\r\n textureManager.remove(fileKey);\r\n\r\n if (!cacheMap[type])\r\n {\r\n continue;\r\n }\r\n }\r\n\r\n if (type === 'pack')\r\n {\r\n this.removePack(fileKey, file.dataKey);\r\n\r\n continue;\r\n }\r\n\r\n if (type === 'spine')\r\n {\r\n var spineAtlas = cacheManager.custom.spine.get(fileKey);\r\n\r\n if (!spineAtlas)\r\n {\r\n continue;\r\n }\r\n\r\n var spinePrefix = (spineAtlas.prefix === undefined) ? '' : spineAtlas.prefix;\r\n\r\n cacheManager.custom.spine.remove(fileKey);\r\n\r\n var spineTexture = cacheManager.custom.spineTextures.get(fileKey);\r\n\r\n if (!spineTexture)\r\n {\r\n continue;\r\n }\r\n\r\n cacheManager.custom.spineTextures.remove(fileKey);\r\n\r\n for (var j = 0; j < spineTexture.pages.length; j++)\r\n {\r\n var page = spineTexture.pages[j];\r\n var textureKey = spinePrefix + page.name;\r\n var altTextureKey = fileKey + ':' + textureKey;\r\n\r\n if (textureManager.exists(altTextureKey))\r\n {\r\n textureManager.remove(altTextureKey);\r\n }\r\n else\r\n {\r\n textureManager.remove(textureKey);\r\n }\r\n }\r\n }\r\n\r\n var cacheName = cacheMap[type];\r\n\r\n if (cacheName === null)\r\n {\r\n // Nothing to remove.\r\n\r\n continue;\r\n }\r\n\r\n if (!cacheName)\r\n {\r\n console.warn('Unknown type:', type);\r\n\r\n continue;\r\n }\r\n\r\n var cache = cacheManager[cacheName];\r\n\r\n cache.remove(fileKey);\r\n }\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Is the Loader actively loading, or processing loaded files?\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#isLoading\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} `true` if the Loader is busy loading or processing, otherwise `false`.\r\n */\r\n isLoading: function ()\r\n {\r\n return (this.state === CONST.LOADER_LOADING || this.state === CONST.LOADER_PROCESSING);\r\n },\r\n\r\n /**\r\n * Is the Loader ready to start a new load?\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#isReady\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} `true` if the Loader is ready to start a new load, otherwise `false`.\r\n */\r\n isReady: function ()\r\n {\r\n return (this.state === CONST.LOADER_IDLE || this.state === CONST.LOADER_COMPLETE);\r\n },\r\n\r\n /**\r\n * Starts the Loader running. This will reset the progress and totals and then emit a `start` event.\r\n * If there is nothing in the queue the Loader will immediately complete, otherwise it will start\r\n * loading the first batch of files.\r\n *\r\n * The Loader is started automatically if the queue is populated within your Scenes `preload` method.\r\n *\r\n * However, outside of this, you need to call this method to start it.\r\n *\r\n * If the Loader is already running this method will simply return.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#start\r\n * @fires Phaser.Loader.Events#START\r\n * @since 3.0.0\r\n */\r\n start: function ()\r\n {\r\n if (!this.isReady())\r\n {\r\n return;\r\n }\r\n\r\n this.progress = 0;\r\n\r\n this.totalFailed = 0;\r\n this.totalComplete = 0;\r\n this.totalToLoad = this.list.size;\r\n\r\n this.emit(Events.START, this);\r\n\r\n if (this.list.size === 0)\r\n {\r\n this.loadComplete();\r\n }\r\n else\r\n {\r\n this.state = CONST.LOADER_LOADING;\r\n\r\n this.inflight.clear();\r\n this.queue.clear();\r\n\r\n this.updateProgress();\r\n\r\n this.checkLoadQueue();\r\n\r\n this.systems.events.on(SceneEvents.UPDATE, this.update, this);\r\n }\r\n },\r\n\r\n /**\r\n * Called automatically during the load process.\r\n * It updates the `progress` value and then emits a progress event, which you can use to\r\n * display a loading bar in your game.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#updateProgress\r\n * @fires Phaser.Loader.Events#PROGRESS\r\n * @since 3.0.0\r\n */\r\n updateProgress: function ()\r\n {\r\n this.progress = 1 - ((this.list.size + this.inflight.size) / this.totalToLoad);\r\n\r\n this.emit(Events.PROGRESS, this.progress);\r\n },\r\n\r\n /**\r\n * Called automatically during the load process.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#update\r\n * @since 3.10.0\r\n */\r\n update: function ()\r\n {\r\n if (this.state === CONST.LOADER_LOADING && this.list.size > 0 && this.inflight.size < this.maxParallelDownloads)\r\n {\r\n this.checkLoadQueue();\r\n }\r\n },\r\n\r\n /**\r\n * An internal method called by the Loader.\r\n *\r\n * It will check to see if there are any more files in the pending list that need loading, and if so it will move\r\n * them from the list Set into the inflight Set, set their CORs flag and start them loading.\r\n *\r\n * It will carrying on doing this for each file in the pending list until it runs out, or hits the max allowed parallel downloads.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#checkLoadQueue\r\n * @private\r\n * @since 3.7.0\r\n */\r\n checkLoadQueue: function ()\r\n {\r\n this.list.each(function (file)\r\n {\r\n if (file.state === CONST.FILE_POPULATED || (file.state === CONST.FILE_PENDING && this.inflight.size < this.maxParallelDownloads))\r\n {\r\n this.inflight.set(file);\r\n\r\n this.list.delete(file);\r\n\r\n // If the file doesn't have its own crossOrigin set, we'll use the Loaders (which is undefined by default)\r\n if (!file.crossOrigin)\r\n {\r\n file.crossOrigin = this.crossOrigin;\r\n }\r\n\r\n file.load();\r\n }\r\n\r\n if (this.inflight.size === this.maxParallelDownloads)\r\n {\r\n // Tells the Set iterator to abort\r\n return false;\r\n }\r\n\r\n }, this);\r\n },\r\n\r\n /**\r\n * An internal method called automatically by the XHRLoader belonging to a File.\r\n *\r\n * This method will remove the given file from the inflight Set and update the load progress.\r\n * If the file was successful its `onProcess` method is called, otherwise it is added to the delete queue.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#nextFile\r\n * @fires Phaser.Loader.Events#FILE_LOAD\r\n * @fires Phaser.Loader.Events#FILE_LOAD_ERROR\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.File} file - The File that just finished loading, or errored during load.\r\n * @param {boolean} success - `true` if the file loaded successfully, otherwise `false`.\r\n */\r\n nextFile: function (file, success)\r\n {\r\n // Has the game been destroyed during load? If so, bail out now.\r\n if (!this.inflight)\r\n {\r\n return;\r\n }\r\n\r\n this.inflight.delete(file);\r\n\r\n this.updateProgress();\r\n\r\n if (success)\r\n {\r\n this.totalComplete++;\r\n\r\n this.queue.set(file);\r\n\r\n this.emit(Events.FILE_LOAD, file);\r\n\r\n file.onProcess();\r\n }\r\n else\r\n {\r\n this.totalFailed++;\r\n\r\n this._deleteQueue.set(file);\r\n\r\n this.emit(Events.FILE_LOAD_ERROR, file);\r\n\r\n this.fileProcessComplete(file);\r\n }\r\n },\r\n\r\n /**\r\n * An internal method that is called automatically by the File when it has finished processing.\r\n *\r\n * If the process was successful, and the File isn't part of a MultiFile, its `addToCache` method is called.\r\n *\r\n * It this then removed from the queue. If there are no more files to load `loadComplete` is called.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#fileProcessComplete\r\n * @since 3.7.0\r\n *\r\n * @param {Phaser.Loader.File} file - The file that has finished processing.\r\n */\r\n fileProcessComplete: function (file)\r\n {\r\n // Has the game been destroyed during load? If so, bail out now.\r\n if (!this.scene || !this.systems || !this.systems.game || this.systems.game.pendingDestroy)\r\n {\r\n return;\r\n }\r\n\r\n // This file has failed, so move it to the failed Set\r\n if (file.state === CONST.FILE_ERRORED)\r\n {\r\n if (file.multiFile)\r\n {\r\n file.multiFile.onFileFailed(file);\r\n }\r\n }\r\n else if (file.state === CONST.FILE_COMPLETE)\r\n {\r\n if (file.multiFile)\r\n {\r\n if (file.multiFile.isReadyToProcess())\r\n {\r\n // If we got here then all files the link file needs are ready to add to the cache\r\n file.multiFile.addToCache();\r\n file.multiFile.pendingDestroy();\r\n }\r\n }\r\n else\r\n {\r\n // If we got here, then the file processed, so let it add itself to its cache\r\n file.addToCache();\r\n file.pendingDestroy();\r\n }\r\n }\r\n\r\n // Remove it from the queue\r\n this.queue.delete(file);\r\n\r\n // Nothing left to do?\r\n\r\n if (this.list.size === 0 && this.inflight.size === 0 && this.queue.size === 0)\r\n {\r\n this.loadComplete();\r\n }\r\n },\r\n\r\n /**\r\n * Called at the end when the load queue is exhausted and all files have either loaded or errored.\r\n * By this point every loaded file will now be in its associated cache and ready for use.\r\n *\r\n * Also clears down the Sets, puts progress to 1 and clears the deletion queue.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#loadComplete\r\n * @fires Phaser.Loader.Events#COMPLETE\r\n * @fires Phaser.Loader.Events#POST_PROCESS\r\n * @since 3.7.0\r\n */\r\n loadComplete: function ()\r\n {\r\n this.emit(Events.POST_PROCESS, this);\r\n\r\n this.list.clear();\r\n this.inflight.clear();\r\n this.queue.clear();\r\n\r\n this.progress = 1;\r\n\r\n this.state = CONST.LOADER_COMPLETE;\r\n\r\n this.systems.events.off(SceneEvents.UPDATE, this.update, this);\r\n\r\n // Call 'destroy' on each file ready for deletion\r\n this._deleteQueue.iterateLocal('destroy');\r\n\r\n this._deleteQueue.clear();\r\n\r\n this.emit(Events.COMPLETE, this, this.totalComplete, this.totalFailed);\r\n },\r\n\r\n /**\r\n * Adds a File into the pending-deletion queue.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#flagForRemoval\r\n * @since 3.7.0\r\n *\r\n * @param {Phaser.Loader.File} file - The File to be queued for deletion when the Loader completes.\r\n */\r\n flagForRemoval: function (file)\r\n {\r\n this._deleteQueue.set(file);\r\n },\r\n\r\n /**\r\n * Converts the given JSON data into a file that the browser then prompts you to download so you can save it locally.\r\n *\r\n * The data must be well formed JSON and ready-parsed, not a JavaScript object.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#saveJSON\r\n * @since 3.0.0\r\n *\r\n * @param {*} data - The JSON data, ready parsed.\r\n * @param {string} [filename=file.json] - The name to save the JSON file as.\r\n *\r\n * @return {this} This Loader plugin.\r\n */\r\n saveJSON: function (data, filename)\r\n {\r\n return this.save(JSON.stringify(data), filename);\r\n },\r\n\r\n /**\r\n * Causes the browser to save the given data as a file to its default Downloads folder.\r\n *\r\n * Creates a DOM level anchor link, assigns it as being a `download` anchor, sets the href\r\n * to be an ObjectURL based on the given data, and then invokes a click event.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#save\r\n * @since 3.0.0\r\n *\r\n * @param {*} data - The data to be saved. Will be passed through URL.createObjectURL.\r\n * @param {string} [filename=file.json] - The filename to save the file as.\r\n * @param {string} [filetype=application/json] - The file type to use when saving the file. Defaults to JSON.\r\n *\r\n * @return {this} This Loader plugin.\r\n */\r\n save: function (data, filename, filetype)\r\n {\r\n if (filename === undefined) { filename = 'file.json'; }\r\n if (filetype === undefined) { filetype = 'application/json'; }\r\n\r\n var blob = new Blob([ data ], { type: filetype });\r\n\r\n var url = URL.createObjectURL(blob);\r\n\r\n var a = document.createElement('a');\r\n\r\n a.download = filename;\r\n a.textContent = 'Download ' + filename;\r\n a.href = url;\r\n a.click();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resets the Loader.\r\n *\r\n * This will clear all lists and reset the base URL, path and prefix.\r\n *\r\n * Warning: If the Loader is currently downloading files, or has files in its queue, they will be aborted.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#reset\r\n * @since 3.0.0\r\n */\r\n reset: function ()\r\n {\r\n this.list.clear();\r\n this.inflight.clear();\r\n this.queue.clear();\r\n\r\n var gameConfig = this.systems.game.config;\r\n var sceneConfig = this.systems.settings.loader;\r\n\r\n this.setBaseURL(GetFastValue(sceneConfig, 'baseURL', gameConfig.loaderBaseURL));\r\n this.setPath(GetFastValue(sceneConfig, 'path', gameConfig.loaderPath));\r\n this.setPrefix(GetFastValue(sceneConfig, 'prefix', gameConfig.loaderPrefix));\r\n\r\n this.state = CONST.LOADER_IDLE;\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is shutting down.\r\n * We need to kill and reset all internal properties as well as stop listening to Scene events.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#shutdown\r\n * @private\r\n * @since 3.0.0\r\n */\r\n shutdown: function ()\r\n {\r\n this.reset();\r\n\r\n this.state = CONST.LOADER_SHUTDOWN;\r\n\r\n this.removeAllListeners();\r\n\r\n this.systems.events.off(SceneEvents.UPDATE, this.update, this);\r\n this.systems.events.off(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is being destroyed.\r\n * We need to shutdown and then kill off all external references.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#destroy\r\n * @private\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.shutdown();\r\n\r\n this.state = CONST.LOADER_DESTROYED;\r\n\r\n this.systems.events.off(SceneEvents.UPDATE, this.update, this);\r\n this.systems.events.off(SceneEvents.START, this.pluginStart, this);\r\n\r\n this.list = null;\r\n this.inflight = null;\r\n this.queue = null;\r\n\r\n this.scene = null;\r\n this.systems = null;\r\n this.textureManager = null;\r\n this.cacheManager = null;\r\n this.sceneManager = null;\r\n }\r\n\r\n});\r\n\r\nPluginCache.register('Loader', LoaderPlugin, 'load');\r\n\r\nmodule.exports = LoaderPlugin;\r\n\n\n/***/ }),\n\n/***/ 3374:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Extend = __webpack_require__(79291);\r\nvar XHRSettings = __webpack_require__(92638);\r\n\r\n/**\r\n * Takes two XHRSettings Objects and creates a new XHRSettings object from them.\r\n *\r\n * The new object is seeded by the values given in the global settings, but any setting in\r\n * the local object overrides the global ones.\r\n *\r\n * @function Phaser.Loader.MergeXHRSettings\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} global - The global XHRSettings object.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} local - The local XHRSettings object.\r\n *\r\n * @return {Phaser.Types.Loader.XHRSettingsObject} A newly formed XHRSettings object.\r\n */\r\nvar MergeXHRSettings = function (global, local)\r\n{\r\n var output = (global === undefined) ? XHRSettings() : Extend({}, global);\r\n\r\n if (local)\r\n {\r\n for (var setting in local)\r\n {\r\n if (local[setting] !== undefined)\r\n {\r\n output[setting] = local[setting];\r\n }\r\n }\r\n }\r\n\r\n return output;\r\n};\r\n\r\nmodule.exports = MergeXHRSettings;\r\n\n\n/***/ }),\n\n/***/ 26430:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(23906);\r\nvar Events = __webpack_require__(54899);\r\n\r\n/**\r\n * @classdesc\r\n * A MultiFile is a special kind of parent that contains two, or more, Files as children and looks after\r\n * the loading and processing of them all. It is commonly extended and used as a base class for file types such as AtlasJSON or BitmapFont.\r\n *\r\n * You shouldn't create an instance of a MultiFile directly, but should extend it with your own class, setting a custom type and processing methods.\r\n *\r\n * @class MultiFile\r\n * @memberof Phaser.Loader\r\n * @constructor\r\n * @since 3.7.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - The Loader that is going to load this File.\r\n * @param {string} type - The file type string for sorting within the Loader.\r\n * @param {string} key - The key of the file within the loader.\r\n * @param {Phaser.Loader.File[]} files - An array of Files that make-up this MultiFile.\r\n */\r\nvar MultiFile = new Class({\r\n\r\n initialize:\r\n\r\n function MultiFile (loader, type, key, files)\r\n {\r\n var finalFiles = [];\r\n\r\n // Clean out any potential 'null' or 'undefined' file entries\r\n files.forEach(function (file)\r\n {\r\n if (file)\r\n {\r\n finalFiles.push(file);\r\n }\r\n });\r\n\r\n /**\r\n * A reference to the Loader that is going to load this file.\r\n *\r\n * @name Phaser.Loader.MultiFile#loader\r\n * @type {Phaser.Loader.LoaderPlugin}\r\n * @since 3.7.0\r\n */\r\n this.loader = loader;\r\n\r\n /**\r\n * The file type string for sorting within the Loader.\r\n *\r\n * @name Phaser.Loader.MultiFile#type\r\n * @type {string}\r\n * @since 3.7.0\r\n */\r\n this.type = type;\r\n\r\n /**\r\n * Unique cache key (unique within its file type)\r\n *\r\n * @name Phaser.Loader.MultiFile#key\r\n * @type {string}\r\n * @since 3.7.0\r\n */\r\n this.key = key;\r\n\r\n var loadKey = this.key;\r\n\r\n if (loader.prefix && loader.prefix !== '')\r\n {\r\n this.key = loader.prefix + loadKey;\r\n }\r\n\r\n /**\r\n * The current index being used by multi-file loaders to avoid key clashes.\r\n *\r\n * @name Phaser.Loader.MultiFile#multiKeyIndex\r\n * @type {number}\r\n * @private\r\n * @since 3.20.0\r\n */\r\n this.multiKeyIndex = loader.multiKeyIndex++;\r\n\r\n /**\r\n * Array of files that make up this MultiFile.\r\n *\r\n * @name Phaser.Loader.MultiFile#files\r\n * @type {Phaser.Loader.File[]}\r\n * @since 3.7.0\r\n */\r\n this.files = finalFiles;\r\n\r\n /**\r\n * The current state of the file. One of the FILE_CONST values.\r\n *\r\n * @name Phaser.Loader.MultiFile#state\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.state = CONST.FILE_PENDING;\r\n\r\n /**\r\n * The completion status of this MultiFile.\r\n *\r\n * @name Phaser.Loader.MultiFile#complete\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.7.0\r\n */\r\n this.complete = false;\r\n\r\n /**\r\n * The number of files to load.\r\n *\r\n * @name Phaser.Loader.MultiFile#pending\r\n * @type {number}\r\n * @since 3.7.0\r\n */\r\n\r\n this.pending = finalFiles.length;\r\n\r\n /**\r\n * The number of files that failed to load.\r\n *\r\n * @name Phaser.Loader.MultiFile#failed\r\n * @type {number}\r\n * @default 0\r\n * @since 3.7.0\r\n */\r\n this.failed = 0;\r\n\r\n /**\r\n * A storage container for transient data that the loading files need.\r\n *\r\n * @name Phaser.Loader.MultiFile#config\r\n * @type {any}\r\n * @since 3.7.0\r\n */\r\n this.config = {};\r\n\r\n /**\r\n * A reference to the Loaders baseURL at the time this MultiFile was created.\r\n * Used to populate child-files.\r\n *\r\n * @name Phaser.Loader.MultiFile#baseURL\r\n * @type {string}\r\n * @since 3.20.0\r\n */\r\n this.baseURL = loader.baseURL;\r\n\r\n /**\r\n * A reference to the Loaders path at the time this MultiFile was created.\r\n * Used to populate child-files.\r\n *\r\n * @name Phaser.Loader.MultiFile#path\r\n * @type {string}\r\n * @since 3.20.0\r\n */\r\n this.path = loader.path;\r\n\r\n /**\r\n * A reference to the Loaders prefix at the time this MultiFile was created.\r\n * Used to populate child-files.\r\n *\r\n * @name Phaser.Loader.MultiFile#prefix\r\n * @type {string}\r\n * @since 3.20.0\r\n */\r\n this.prefix = loader.prefix;\r\n\r\n // Link the files\r\n for (var i = 0; i < finalFiles.length; i++)\r\n {\r\n finalFiles[i].multiFile = this;\r\n }\r\n },\r\n\r\n /**\r\n * Checks if this MultiFile is ready to process its children or not.\r\n *\r\n * @method Phaser.Loader.MultiFile#isReadyToProcess\r\n * @since 3.7.0\r\n *\r\n * @return {boolean} `true` if all children of this MultiFile have loaded, otherwise `false`.\r\n */\r\n isReadyToProcess: function ()\r\n {\r\n return (this.pending === 0 && this.failed === 0 && !this.complete);\r\n },\r\n\r\n /**\r\n * Adds another child to this MultiFile, increases the pending count and resets the completion status.\r\n *\r\n * @method Phaser.Loader.MultiFile#addToMultiFile\r\n * @since 3.7.0\r\n *\r\n * @param {Phaser.Loader.File} files - The File to add to this MultiFile.\r\n *\r\n * @return {Phaser.Loader.MultiFile} This MultiFile instance.\r\n */\r\n addToMultiFile: function (file)\r\n {\r\n this.files.push(file);\r\n\r\n file.multiFile = this;\r\n\r\n this.pending++;\r\n\r\n this.complete = false;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Called by each File when it finishes loading.\r\n *\r\n * @method Phaser.Loader.MultiFile#onFileComplete\r\n * @since 3.7.0\r\n *\r\n * @param {Phaser.Loader.File} file - The File that has completed processing.\r\n */\r\n onFileComplete: function (file)\r\n {\r\n var index = this.files.indexOf(file);\r\n\r\n if (index !== -1)\r\n {\r\n this.pending--;\r\n }\r\n },\r\n\r\n /**\r\n * Called by each File that fails to load.\r\n *\r\n * @method Phaser.Loader.MultiFile#onFileFailed\r\n * @since 3.7.0\r\n *\r\n * @param {Phaser.Loader.File} file - The File that has failed to load.\r\n */\r\n onFileFailed: function (file)\r\n {\r\n var index = this.files.indexOf(file);\r\n\r\n if (index !== -1)\r\n {\r\n this.failed++;\r\n\r\n // eslint-disable-next-line no-console\r\n console.error('File failed: %s \"%s\" (via %s \"%s\")', this.type, this.key, file.type, file.key);\r\n }\r\n },\r\n\r\n /**\r\n * Called once all children of this multi file have been added to their caches and is now\r\n * ready for deletion from the Loader.\r\n *\r\n * It will emit a `filecomplete` event from the LoaderPlugin.\r\n *\r\n * @method Phaser.Loader.MultiFile#pendingDestroy\r\n * @fires Phaser.Loader.Events#FILE_COMPLETE\r\n * @fires Phaser.Loader.Events#FILE_KEY_COMPLETE\r\n * @since 3.60.0\r\n */\r\n pendingDestroy: function ()\r\n {\r\n if (this.state === CONST.FILE_PENDING_DESTROY)\r\n {\r\n return;\r\n }\r\n\r\n var key = this.key;\r\n var type = this.type;\r\n\r\n this.loader.emit(Events.FILE_COMPLETE, key, type);\r\n this.loader.emit(Events.FILE_KEY_COMPLETE + type + '-' + key, key, type);\r\n\r\n this.loader.flagForRemoval(this);\r\n\r\n for (var i = 0; i < this.files.length; i++)\r\n {\r\n this.files[i].pendingDestroy();\r\n }\r\n\r\n this.state = CONST.FILE_PENDING_DESTROY;\r\n },\r\n\r\n /**\r\n * Destroy this Multi File and any references it holds.\r\n *\r\n * @method Phaser.Loader.MultiFile#destroy\r\n * @since 3.60.0\r\n */\r\n destroy: function ()\r\n {\r\n this.loader = null;\r\n this.files = null;\r\n this.config = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = MultiFile;\r\n\n\n/***/ }),\n\n/***/ 84376:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar MergeXHRSettings = __webpack_require__(3374);\r\n\r\n/**\r\n * Creates a new XMLHttpRequest (xhr) object based on the given File and XHRSettings\r\n * and starts the download of it. It uses the Files own XHRSettings and merges them\r\n * with the global XHRSettings object to set the xhr values before download.\r\n *\r\n * @function Phaser.Loader.XHRLoader\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.File} file - The File to download.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} globalXHRSettings - The global XHRSettings object.\r\n *\r\n * @return {XMLHttpRequest} The XHR object, or a FakeXHR Object in the base of base64 data.\r\n */\r\nvar XHRLoader = function (file, globalXHRSettings)\r\n{\r\n var config = MergeXHRSettings(globalXHRSettings, file.xhrSettings);\r\n\r\n if (file.base64)\r\n {\r\n var base64Data = file.url.split(';base64,').pop() || file.url.split(',').pop();\r\n\r\n var fakeXHR = {\r\n responseText: atob(base64Data)\r\n };\r\n\r\n file.onBase64Load(fakeXHR);\r\n\r\n return;\r\n }\r\n\r\n var xhr = new XMLHttpRequest();\r\n\r\n xhr.open('GET', file.src, config.async, config.user, config.password);\r\n\r\n xhr.responseType = file.xhrSettings.responseType;\r\n xhr.timeout = config.timeout;\r\n\r\n if (config.headers)\r\n {\r\n for (var key in config.headers)\r\n {\r\n xhr.setRequestHeader(key, config.headers[key]);\r\n }\r\n }\r\n\r\n if (config.header && config.headerValue)\r\n {\r\n xhr.setRequestHeader(config.header, config.headerValue);\r\n }\r\n\r\n if (config.requestedWith)\r\n {\r\n xhr.setRequestHeader('X-Requested-With', config.requestedWith);\r\n }\r\n\r\n if (config.overrideMimeType)\r\n {\r\n xhr.overrideMimeType(config.overrideMimeType);\r\n }\r\n\r\n if (config.withCredentials)\r\n {\r\n xhr.withCredentials = true;\r\n }\r\n\r\n // After a successful request, the xhr.response property will contain the requested data as a DOMString, ArrayBuffer, Blob, or Document (depending on what was set for responseType.)\r\n\r\n xhr.onload = file.onLoad.bind(file, xhr);\r\n xhr.onerror = file.onError.bind(file, xhr);\r\n xhr.onprogress = file.onProgress.bind(file);\r\n xhr.ontimeout = file.onError.bind(file, xhr);\r\n\r\n // This is the only standard method, the ones above are browser additions (maybe not universal?)\r\n // xhr.onreadystatechange\r\n\r\n xhr.send();\r\n\r\n return xhr;\r\n};\r\n\r\nmodule.exports = XHRLoader;\r\n\n\n/***/ }),\n\n/***/ 92638:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Creates an XHRSettings Object with default values.\r\n *\r\n * @function Phaser.Loader.XHRSettings\r\n * @since 3.0.0\r\n *\r\n * @param {XMLHttpRequestResponseType} [responseType=''] - The responseType, such as 'text'.\r\n * @param {boolean} [async=true] - Should the XHR request use async or not?\r\n * @param {string} [user=''] - Optional username for the XHR request.\r\n * @param {string} [password=''] - Optional password for the XHR request.\r\n * @param {number} [timeout=0] - Optional XHR timeout value.\r\n * @param {boolean} [withCredentials=false] - Optional XHR withCredentials value.\r\n *\r\n * @return {Phaser.Types.Loader.XHRSettingsObject} The XHRSettings object as used by the Loader.\r\n */\r\nvar XHRSettings = function (responseType, async, user, password, timeout, withCredentials)\r\n{\r\n if (responseType === undefined) { responseType = ''; }\r\n if (async === undefined) { async = true; }\r\n if (user === undefined) { user = ''; }\r\n if (password === undefined) { password = ''; }\r\n if (timeout === undefined) { timeout = 0; }\r\n if (withCredentials === undefined) { withCredentials = false; }\r\n\r\n // Before sending a request, set the xhr.responseType to \"text\",\r\n // \"arraybuffer\", \"blob\", or \"document\", depending on your data needs.\r\n // Note, setting xhr.responseType = '' (or omitting) will default the response to \"text\".\r\n\r\n return {\r\n\r\n // Ignored by the Loader, only used by File.\r\n responseType: responseType,\r\n\r\n async: async,\r\n\r\n // credentials\r\n user: user,\r\n password: password,\r\n\r\n // timeout in ms (0 = no timeout)\r\n timeout: timeout,\r\n\r\n // setRequestHeader\r\n headers: undefined,\r\n header: undefined,\r\n headerValue: undefined,\r\n requestedWith: false,\r\n\r\n // overrideMimeType\r\n overrideMimeType: undefined,\r\n\r\n // withCredentials\r\n withCredentials: withCredentials\r\n\r\n };\r\n};\r\n\r\nmodule.exports = XHRSettings;\r\n\n\n/***/ }),\n\n/***/ 23906:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar FILE_CONST = {\r\n\r\n /**\r\n * The Loader is idle.\r\n *\r\n * @name Phaser.Loader.LOADER_IDLE\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n LOADER_IDLE: 0,\r\n\r\n /**\r\n * The Loader is actively loading.\r\n *\r\n * @name Phaser.Loader.LOADER_LOADING\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n LOADER_LOADING: 1,\r\n\r\n /**\r\n * The Loader is processing files is has loaded.\r\n *\r\n * @name Phaser.Loader.LOADER_PROCESSING\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n LOADER_PROCESSING: 2,\r\n\r\n /**\r\n * The Loader has completed loading and processing.\r\n *\r\n * @name Phaser.Loader.LOADER_COMPLETE\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n LOADER_COMPLETE: 3,\r\n\r\n /**\r\n * The Loader is shutting down.\r\n *\r\n * @name Phaser.Loader.LOADER_SHUTDOWN\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n LOADER_SHUTDOWN: 4,\r\n\r\n /**\r\n * The Loader has been destroyed.\r\n *\r\n * @name Phaser.Loader.LOADER_DESTROYED\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n LOADER_DESTROYED: 5,\r\n\r\n /**\r\n * File is in the load queue but not yet started.\r\n *\r\n * @name Phaser.Loader.FILE_PENDING\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n FILE_PENDING: 10,\r\n\r\n /**\r\n * File has been started to load by the loader (onLoad called)\r\n *\r\n * @name Phaser.Loader.FILE_LOADING\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n FILE_LOADING: 11,\r\n\r\n /**\r\n * File has loaded successfully, awaiting processing.\r\n *\r\n * @name Phaser.Loader.FILE_LOADED\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n FILE_LOADED: 12,\r\n\r\n /**\r\n * File failed to load.\r\n *\r\n * @name Phaser.Loader.FILE_FAILED\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n FILE_FAILED: 13,\r\n\r\n /**\r\n * File is being processed (onProcess callback)\r\n *\r\n * @name Phaser.Loader.FILE_PROCESSING\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n FILE_PROCESSING: 14,\r\n\r\n /**\r\n * The File has errored somehow during processing.\r\n *\r\n * @name Phaser.Loader.FILE_ERRORED\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n FILE_ERRORED: 16,\r\n\r\n /**\r\n * File has finished processing.\r\n *\r\n * @name Phaser.Loader.FILE_COMPLETE\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n FILE_COMPLETE: 17,\r\n\r\n /**\r\n * File has been destroyed.\r\n *\r\n * @name Phaser.Loader.FILE_DESTROYED\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n FILE_DESTROYED: 18,\r\n\r\n /**\r\n * File was populated from local data and doesn't need an HTTP request.\r\n *\r\n * @name Phaser.Loader.FILE_POPULATED\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n FILE_POPULATED: 19,\r\n\r\n /**\r\n * File is pending being destroyed.\r\n *\r\n * @name Phaser.Loader.FILE_PENDING_DESTROY\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n FILE_PENDING_DESTROY: 20\r\n\r\n};\r\n\r\nmodule.exports = FILE_CONST;\r\n\n\n/***/ }),\n\n/***/ 42155:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Loader Plugin Add File Event.\r\n *\r\n * This event is dispatched when a new file is successfully added to the Loader and placed into the load queue.\r\n *\r\n * Listen to it from a Scene using: `this.load.on('addfile', listener)`.\r\n *\r\n * If you add lots of files to a Loader from a `preload` method, it will dispatch this event for each one of them.\r\n *\r\n * @event Phaser.Loader.Events#ADD\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The unique key of the file that was added to the Loader.\r\n * @param {string} type - The [file type]{@link Phaser.Loader.File#type} string of the file that was added to the Loader, i.e. `image`.\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader Plugin that dispatched this event.\r\n * @param {Phaser.Loader.File} file - A reference to the File which was added to the Loader.\r\n */\r\nmodule.exports = 'addfile';\r\n\n\n/***/ }),\n\n/***/ 38991:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Loader Plugin Complete Event.\r\n *\r\n * This event is dispatched when the Loader has fully processed everything in the load queue.\r\n * By this point every loaded file will now be in its associated cache and ready for use.\r\n *\r\n * Listen to it from a Scene using: `this.load.on('complete', listener)`.\r\n *\r\n * @event Phaser.Loader.Events#COMPLETE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader Plugin that dispatched this event.\r\n * @param {number} totalComplete - The total number of files that successfully loaded.\r\n * @param {number} totalFailed - The total number of files that failed to load.\r\n */\r\nmodule.exports = 'complete';\r\n\n\n/***/ }),\n\n/***/ 27540:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The File Load Complete Event.\r\n *\r\n * This event is dispatched by the Loader Plugin when _any_ file in the queue finishes loading.\r\n *\r\n * Listen to it from a Scene using: `this.load.on('filecomplete', listener)`.\r\n *\r\n * Make sure you remove this listener when you have finished, or it will continue to fire if the Scene reloads.\r\n *\r\n * You can also listen for the completion of a specific file. See the [FILE_KEY_COMPLETE]{@linkcode Phaser.Loader.Events#event:FILE_KEY_COMPLETE} event.\r\n *\r\n * @event Phaser.Loader.Events#FILE_COMPLETE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key of the file that just loaded and finished processing.\r\n * @param {string} type - The [file type]{@link Phaser.Loader.File#type} of the file that just loaded, i.e. `image`.\r\n * @param {any} [data] - The raw data the file contained. If the file was a multi-file, like an atlas or bitmap font, this parameter will be undefined.\r\n */\r\nmodule.exports = 'filecomplete';\r\n\n\n/***/ }),\n\n/***/ 87464:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The File Load Complete Event.\r\n *\r\n * This event is dispatched by the Loader Plugin when any file in the queue finishes loading.\r\n *\r\n * It uses a special dynamic event name constructed from the key and type of the file.\r\n *\r\n * For example, if you have loaded an `image` with a key of `monster`, you can listen for it\r\n * using the following:\r\n *\r\n * ```javascript\r\n * this.load.on('filecomplete-image-monster', function (key, type, data) {\r\n * // Your handler code\r\n * });\r\n * ```\r\n *\r\n * Or, if you have loaded a texture `atlas` with a key of `Level1`:\r\n *\r\n * ```javascript\r\n * this.load.on('filecomplete-atlasjson-Level1', function (key, type, data) {\r\n * // Your handler code\r\n * });\r\n * ```\r\n *\r\n * Or, if you have loaded a sprite sheet with a key of `Explosion` and a prefix of `GAMEOVER`:\r\n *\r\n * ```javascript\r\n * this.load.on('filecomplete-spritesheet-GAMEOVERExplosion', function (key, type, data) {\r\n * // Your handler code\r\n * });\r\n * ```\r\n *\r\n * Make sure you remove your listeners when you have finished, or they will continue to fire if the Scene reloads.\r\n *\r\n * You can also listen for the generic completion of files. See the [FILE_COMPLETE]{@linkcode Phaser.Loader.Events#event:FILE_COMPLETE} event.\r\n *\r\n * @event Phaser.Loader.Events#FILE_KEY_COMPLETE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key of the file that just loaded and finished processing.\r\n * @param {string} type - The [file type]{@link Phaser.Loader.File#type} of the file that just loaded, i.e. `image`.\r\n * @param {any} [data] - The raw data the file contained. If the file was a multi-file, like an atlas or bitmap font, this parameter will be undefined.\r\n */\r\nmodule.exports = 'filecomplete-';\r\n\n\n/***/ }),\n\n/***/ 94486:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The File Load Error Event.\r\n *\r\n * This event is dispatched by the Loader Plugin when a file fails to load.\r\n *\r\n * Listen to it from a Scene using: `this.load.on('loaderror', listener)`.\r\n *\r\n * @event Phaser.Loader.Events#FILE_LOAD_ERROR\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.File} file - A reference to the File which errored during load.\r\n */\r\nmodule.exports = 'loaderror';\r\n\n\n/***/ }),\n\n/***/ 13035:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The File Load Event.\r\n *\r\n * This event is dispatched by the Loader Plugin when a file finishes loading,\r\n * but _before_ it is processed and added to the internal Phaser caches.\r\n *\r\n * Listen to it from a Scene using: `this.load.on('load', listener)`.\r\n *\r\n * @event Phaser.Loader.Events#FILE_LOAD\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.File} file - A reference to the File which just finished loading.\r\n */\r\nmodule.exports = 'load';\r\n\n\n/***/ }),\n\n/***/ 38144:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The File Load Progress Event.\r\n *\r\n * This event is dispatched by the Loader Plugin during the load of a file, if the browser receives a DOM ProgressEvent and\r\n * the `lengthComputable` event property is true. Depending on the size of the file and browser in use, this may, or may not happen.\r\n *\r\n * Listen to it from a Scene using: `this.load.on('fileprogress', listener)`.\r\n *\r\n * @event Phaser.Loader.Events#FILE_PROGRESS\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.File} file - A reference to the File which errored during load.\r\n * @param {number} percentComplete - A value between 0 and 1 indicating how 'complete' this file is.\r\n */\r\nmodule.exports = 'fileprogress';\r\n\n\n/***/ }),\n\n/***/ 97520:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Loader Plugin Post Process Event.\r\n *\r\n * This event is dispatched by the Loader Plugin when the Loader has finished loading everything in the load queue.\r\n * It is dispatched before the internal lists are cleared and each File is destroyed.\r\n *\r\n * Use this hook to perform any last minute processing of files that can only happen once the\r\n * Loader has completed, but prior to it emitting the `complete` event.\r\n *\r\n * Listen to it from a Scene using: `this.load.on('postprocess', listener)`.\r\n *\r\n * @event Phaser.Loader.Events#POST_PROCESS\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader Plugin that dispatched this event.\r\n */\r\nmodule.exports = 'postprocess';\r\n\n\n/***/ }),\n\n/***/ 85595:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Loader Plugin Progress Event.\r\n *\r\n * This event is dispatched when the Loader updates its load progress, typically as a result of a file having completed loading.\r\n *\r\n * Listen to it from a Scene using: `this.load.on('progress', listener)`.\r\n *\r\n * @event Phaser.Loader.Events#PROGRESS\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {number} progress - The current progress of the load. A value between 0 and 1.\r\n */\r\nmodule.exports = 'progress';\r\n\n\n/***/ }),\n\n/***/ 55680:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Loader Plugin Start Event.\r\n *\r\n * This event is dispatched when the Loader starts running. At this point load progress is zero.\r\n *\r\n * This event is dispatched even if there aren't any files in the load queue.\r\n *\r\n * Listen to it from a Scene using: `this.load.on('start', listener)`.\r\n *\r\n * @event Phaser.Loader.Events#START\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader Plugin that dispatched this event.\r\n */\r\nmodule.exports = 'start';\r\n\n\n/***/ }),\n\n/***/ 54899:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Loader.Events\r\n */\r\n\r\nmodule.exports = {\r\n\r\n ADD: __webpack_require__(42155),\r\n COMPLETE: __webpack_require__(38991),\r\n FILE_COMPLETE: __webpack_require__(27540),\r\n FILE_KEY_COMPLETE: __webpack_require__(87464),\r\n FILE_LOAD_ERROR: __webpack_require__(94486),\r\n FILE_LOAD: __webpack_require__(13035),\r\n FILE_PROGRESS: __webpack_require__(38144),\r\n POST_PROCESS: __webpack_require__(97520),\r\n PROGRESS: __webpack_require__(85595),\r\n START: __webpack_require__(55680)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 14135:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar JSONFile = __webpack_require__(518);\r\nvar LoaderEvents = __webpack_require__(54899);\r\n\r\n/**\r\n * @classdesc\r\n * A single Animation JSON File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#animation method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#animation.\r\n *\r\n * @class AnimationJSONFile\r\n * @extends Phaser.Loader.File\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.JSONFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.json`, i.e. if `key` was \"alien\" then the URL will be \"alien.json\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n * @param {string} [dataKey] - When the JSON file loads only this property will be stored in the Cache.\r\n */\r\nvar AnimationJSONFile = new Class({\r\n\r\n Extends: JSONFile,\r\n\r\n initialize:\r\n\r\n // url can either be a string, in which case it is treated like a proper url, or an object, in which case it is treated as a ready-made JS Object\r\n // dataKey allows you to pluck a specific object out of the JSON and put just that into the cache, rather than the whole thing\r\n\r\n function AnimationJSONFile (loader, key, url, xhrSettings, dataKey)\r\n {\r\n JSONFile.call(this, loader, key, url, xhrSettings, dataKey);\r\n\r\n this.type = 'animationJSON';\r\n },\r\n\r\n /**\r\n * Called automatically by Loader.nextFile.\r\n * This method controls what extra work this File does with its loaded data.\r\n *\r\n * @method Phaser.Loader.FileTypes.AnimationJSONFile#onProcess\r\n * @since 3.7.0\r\n */\r\n onProcess: function ()\r\n {\r\n // We need to hook into this event:\r\n this.loader.once(LoaderEvents.POST_PROCESS, this.onLoadComplete, this);\r\n\r\n // But the rest is the same as a normal JSON file\r\n JSONFile.prototype.onProcess.call(this);\r\n },\r\n\r\n /**\r\n * Called at the end of the load process, after the Loader has finished all files in its queue.\r\n *\r\n * @method Phaser.Loader.FileTypes.AnimationJSONFile#onLoadComplete\r\n * @since 3.7.0\r\n */\r\n onLoadComplete: function ()\r\n {\r\n this.loader.systems.anims.fromJSON(this.data);\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds an Animation JSON Data file, or array of Animation JSON files, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.animation('baddieAnims', 'files/BaddieAnims.json');\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * If you call this from outside of `preload` then you are responsible for starting the Loader afterwards and monitoring\r\n * its events to know when it's safe to use the asset. Please see the Phaser.Loader.LoaderPlugin class for more details.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global JSON Cache upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the JSON Cache.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the JSON Cache first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.animation({\r\n * key: 'baddieAnims',\r\n * url: 'files/BaddieAnims.json'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.JSONFileConfig` for more details.\r\n *\r\n * Once the file has finished loading it will automatically be passed to the global Animation Managers `fromJSON` method.\r\n * This will parse all of the JSON data and create animation data from it. This process happens at the very end\r\n * of the Loader, once every other file in the load queue has finished. The reason for this is to allow you to load\r\n * both animation data and the images it relies upon in the same load call.\r\n *\r\n * Once the animation data has been parsed you will be able to play animations using that data.\r\n * Please see the Animation Manager `fromJSON` method for more details about the format and playback.\r\n *\r\n * You can also access the raw animation data from its Cache using its key:\r\n *\r\n * ```javascript\r\n * this.load.animation('baddieAnims', 'files/BaddieAnims.json');\r\n * // and later in your game ...\r\n * var data = this.cache.json.get('baddieAnims');\r\n * ```\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `LEVEL1.` and the key was `Waves` the final key will be `LEVEL1.Waves` and\r\n * this is what you would use to retrieve the text from the JSON Cache.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"data\"\r\n * and no URL is given then the Loader will set the URL to be \"data.json\". It will always add `.json` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * You can also optionally provide a `dataKey` to use. This allows you to extract only a part of the JSON and store it in the Cache,\r\n * rather than the whole file. For example, if your JSON data had a structure like this:\r\n *\r\n * ```json\r\n * {\r\n * \"level1\": {\r\n * \"baddies\": {\r\n * \"aliens\": {},\r\n * \"boss\": {}\r\n * }\r\n * },\r\n * \"level2\": {},\r\n * \"level3\": {}\r\n * }\r\n * ```\r\n *\r\n * And if you only wanted to create animations from the `boss` data, then you could pass `level1.baddies.boss`as the `dataKey`.\r\n *\r\n * Note: The ability to load this type of file will only be available if the JSON File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#animation\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.JSONFileConfig|Phaser.Types.Loader.FileTypes.JSONFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.json`, i.e. if `key` was \"alien\" then the URL will be \"alien.json\".\r\n * @param {string} [dataKey] - When the Animation JSON file loads only this property will be stored in the Cache and used to create animation data.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('animation', function (key, url, dataKey, xhrSettings)\r\n{\r\n // Supports an Object file definition in the key argument\r\n // Or an array of objects in the key argument\r\n // Or a single entry where all arguments have been defined\r\n\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n this.addFile(new AnimationJSONFile(this, key[i]));\r\n }\r\n }\r\n else\r\n {\r\n this.addFile(new AnimationJSONFile(this, key, url, xhrSettings, dataKey));\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = AnimationJSONFile;\r\n\n\n/***/ }),\n\n/***/ 76272:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar ImageFile = __webpack_require__(19550);\r\nvar IsPlainObject = __webpack_require__(41212);\r\nvar JSONFile = __webpack_require__(518);\r\nvar MultiFile = __webpack_require__(26430);\r\n\r\n/**\r\n * @classdesc\r\n * A single JSON based Texture Atlas File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#atlas method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#atlas.\r\n *\r\n * https://www.codeandweb.com/texturepacker/tutorials/how-to-create-sprite-sheets-for-phaser3?source=photonstorm\r\n *\r\n * @class AsepriteFile\r\n * @extends Phaser.Loader.MultiFile\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.AsepriteFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string|string[]} [textureURL] - The absolute or relative URL to load the texture image file from. If undefined or `null` it will be set to `.png`, i.e. if `key` was \"alien\" then the URL will be \"alien.png\".\r\n * @param {object|string} [atlasURL] - The absolute or relative URL to load the texture atlas json data file from. If undefined or `null` it will be set to `.json`, i.e. if `key` was \"alien\" then the URL will be \"alien.json\". Or, a well formed JSON object.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - An XHR Settings configuration object for the atlas image file. Used in replacement of the Loaders default XHR Settings.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [atlasXhrSettings] - An XHR Settings configuration object for the atlas json file. Used in replacement of the Loaders default XHR Settings.\r\n */\r\nvar AsepriteFile = new Class({\r\n\r\n Extends: MultiFile,\r\n\r\n initialize:\r\n\r\n function AsepriteFile (loader, key, textureURL, atlasURL, textureXhrSettings, atlasXhrSettings)\r\n {\r\n var image;\r\n var data;\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n\r\n image = new ImageFile(loader, {\r\n key: key,\r\n url: GetFastValue(config, 'textureURL'),\r\n extension: GetFastValue(config, 'textureExtension', 'png'),\r\n normalMap: GetFastValue(config, 'normalMap'),\r\n xhrSettings: GetFastValue(config, 'textureXhrSettings')\r\n });\r\n\r\n data = new JSONFile(loader, {\r\n key: key,\r\n url: GetFastValue(config, 'atlasURL'),\r\n extension: GetFastValue(config, 'atlasExtension', 'json'),\r\n xhrSettings: GetFastValue(config, 'atlasXhrSettings')\r\n });\r\n }\r\n else\r\n {\r\n image = new ImageFile(loader, key, textureURL, textureXhrSettings);\r\n data = new JSONFile(loader, key, atlasURL, atlasXhrSettings);\r\n }\r\n\r\n if (image.linkFile)\r\n {\r\n // Image has a normal map\r\n MultiFile.call(this, loader, 'atlasjson', key, [ image, data, image.linkFile ]);\r\n }\r\n else\r\n {\r\n MultiFile.call(this, loader, 'atlasjson', key, [ image, data ]);\r\n }\r\n },\r\n\r\n /**\r\n * Adds this file to its target cache upon successful loading and processing.\r\n *\r\n * @method Phaser.Loader.FileTypes.AsepriteFile#addToCache\r\n * @since 3.7.0\r\n */\r\n addToCache: function ()\r\n {\r\n if (this.isReadyToProcess())\r\n {\r\n var image = this.files[0];\r\n var json = this.files[1];\r\n var normalMap = (this.files[2]) ? this.files[2].data : null;\r\n\r\n this.loader.textureManager.addAtlas(image.key, image.data, json.data, normalMap);\r\n\r\n json.addToCache();\r\n\r\n this.complete = true;\r\n }\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Aseprite is a powerful animated sprite editor and pixel art tool.\r\n *\r\n * You can find more details at https://www.aseprite.org/\r\n *\r\n * Adds a JSON based Aseprite Animation, or array of animations, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.aseprite('gladiator', 'images/Gladiator.png', 'images/Gladiator.json');\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * If you call this from outside of `preload` then you are responsible for starting the Loader afterwards and monitoring\r\n * its events to know when it's safe to use the asset. Please see the Phaser.Loader.LoaderPlugin class for more details.\r\n *\r\n * To export a compatible JSON file in Aseprite, please do the following:\r\n *\r\n * 1. Go to \"File - Export Sprite Sheet\"\r\n *\r\n * 2. On the **Layout** tab:\r\n * 2a. Set the \"Sheet type\" to \"Packed\"\r\n * 2b. Set the \"Constraints\" to \"None\"\r\n * 2c. Check the \"Merge Duplicates\" checkbox\r\n *\r\n * 3. On the **Sprite** tab:\r\n * 3a. Set \"Layers\" to \"Visible layers\"\r\n * 3b. Set \"Frames\" to \"All frames\", unless you only wish to export a sub-set of tags\r\n *\r\n * 4. On the **Borders** tab:\r\n * 4a. Check the \"Trim Sprite\" and \"Trim Cells\" options\r\n * 4b. Ensure \"Border Padding\", \"Spacing\" and \"Inner Padding\" are all > 0 (1 is usually enough)\r\n *\r\n * 5. On the **Output** tab:\r\n * 5a. Check \"Output File\", give your image a name and make sure you choose \"png files\" as the file type\r\n * 5b. Check \"JSON Data\" and give your json file a name\r\n * 5c. The JSON Data type can be either a Hash or Array, Phaser doesn't mind.\r\n * 5d. Make sure \"Tags\" is checked in the Meta options\r\n * 5e. In the \"Item Filename\" input box, make sure it says just \"{frame}\" and nothing more.\r\n *\r\n * 6. Click export\r\n *\r\n * This was tested with Aseprite 1.2.25.\r\n *\r\n * This will export a png and json file which you can load using the Aseprite Loader, i.e.:\r\n *\r\n * Phaser can load all common image types: png, jpg, gif and any other format the browser can natively handle.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global Texture Manager upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the Texture Manager.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the Texture Manager first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.aseprite({\r\n * key: 'gladiator',\r\n * textureURL: 'images/Gladiator.png',\r\n * atlasURL: 'images/Gladiator.json'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.AsepriteFileConfig` for more details.\r\n *\r\n * Instead of passing a URL for the JSON data you can also pass in a well formed JSON object instead.\r\n *\r\n * Once loaded, you can call this method from within a Scene with the 'atlas' key:\r\n *\r\n * ```javascript\r\n * this.anims.createFromAseprite('paladin');\r\n * ```\r\n *\r\n * Any animations defined in the JSON will now be available to use in Phaser and you play them\r\n * via their Tag name. For example, if you have an animation called 'War Cry' on your Aseprite timeline,\r\n * you can play it in Phaser using that Tag name:\r\n *\r\n * ```javascript\r\n * this.add.sprite(400, 300).play('War Cry');\r\n * ```\r\n *\r\n * When calling this method you can optionally provide an array of tag names, and only those animations\r\n * will be created. For example:\r\n *\r\n * ```javascript\r\n * this.anims.createFromAseprite('paladin', [ 'step', 'War Cry', 'Magnum Break' ]);\r\n * ```\r\n *\r\n * This will only create the 3 animations defined. Note that the tag names are case-sensitive.\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `MENU.` and the key was `Background` the final key will be `MENU.Background` and\r\n * this is what you would use to retrieve the image from the Texture Manager.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"alien\"\r\n * and no URL is given then the Loader will set the URL to be \"alien.png\". It will always add `.png` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * Note: The ability to load this type of file will only be available if the Aseprite File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#aseprite\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.50.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.AsepriteFileConfig|Phaser.Types.Loader.FileTypes.AsepriteFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string|string[]} [textureURL] - The absolute or relative URL to load the texture image file from. If undefined or `null` it will be set to `.png`, i.e. if `key` was \"alien\" then the URL will be \"alien.png\".\r\n * @param {object|string} [atlasURL] - The absolute or relative URL to load the texture atlas json data file from. If undefined or `null` it will be set to `.json`, i.e. if `key` was \"alien\" then the URL will be \"alien.json\". Or, a well formed JSON object.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - An XHR Settings configuration object for the atlas image file. Used in replacement of the Loaders default XHR Settings.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [atlasXhrSettings] - An XHR Settings configuration object for the atlas json file. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('aseprite', function (key, textureURL, atlasURL, textureXhrSettings, atlasXhrSettings)\r\n{\r\n var multifile;\r\n\r\n // Supports an Object file definition in the key argument\r\n // Or an array of objects in the key argument\r\n // Or a single entry where all arguments have been defined\r\n\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n multifile = new AsepriteFile(this, key[i]);\r\n\r\n this.addFile(multifile.files);\r\n }\r\n }\r\n else\r\n {\r\n multifile = new AsepriteFile(this, key, textureURL, atlasURL, textureXhrSettings, atlasXhrSettings);\r\n\r\n this.addFile(multifile.files);\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = AsepriteFile;\r\n\n\n/***/ }),\n\n/***/ 38734:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar ImageFile = __webpack_require__(19550);\r\nvar IsPlainObject = __webpack_require__(41212);\r\nvar JSONFile = __webpack_require__(518);\r\nvar MultiFile = __webpack_require__(26430);\r\n\r\n/**\r\n * @classdesc\r\n * A single JSON based Texture Atlas File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#atlas method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#atlas.\r\n *\r\n * https://www.codeandweb.com/texturepacker/tutorials/how-to-create-sprite-sheets-for-phaser3?source=photonstorm\r\n *\r\n * @class AtlasJSONFile\r\n * @extends Phaser.Loader.MultiFile\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.AtlasJSONFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string|string[]} [textureURL] - The absolute or relative URL to load the texture image file from. If undefined or `null` it will be set to `.png`, i.e. if `key` was \"alien\" then the URL will be \"alien.png\".\r\n * @param {object|string} [atlasURL] - The absolute or relative URL to load the texture atlas json data file from. If undefined or `null` it will be set to `.json`, i.e. if `key` was \"alien\" then the URL will be \"alien.json\". Or, a well formed JSON object.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - An XHR Settings configuration object for the atlas image file. Used in replacement of the Loaders default XHR Settings.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [atlasXhrSettings] - An XHR Settings configuration object for the atlas json file. Used in replacement of the Loaders default XHR Settings.\r\n */\r\nvar AtlasJSONFile = new Class({\r\n\r\n Extends: MultiFile,\r\n\r\n initialize:\r\n\r\n function AtlasJSONFile (loader, key, textureURL, atlasURL, textureXhrSettings, atlasXhrSettings)\r\n {\r\n var image;\r\n var data;\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n\r\n image = new ImageFile(loader, {\r\n key: key,\r\n url: GetFastValue(config, 'textureURL'),\r\n extension: GetFastValue(config, 'textureExtension', 'png'),\r\n normalMap: GetFastValue(config, 'normalMap'),\r\n xhrSettings: GetFastValue(config, 'textureXhrSettings')\r\n });\r\n\r\n data = new JSONFile(loader, {\r\n key: key,\r\n url: GetFastValue(config, 'atlasURL'),\r\n extension: GetFastValue(config, 'atlasExtension', 'json'),\r\n xhrSettings: GetFastValue(config, 'atlasXhrSettings')\r\n });\r\n }\r\n else\r\n {\r\n image = new ImageFile(loader, key, textureURL, textureXhrSettings);\r\n data = new JSONFile(loader, key, atlasURL, atlasXhrSettings);\r\n }\r\n\r\n if (image.linkFile)\r\n {\r\n // Image has a normal map\r\n MultiFile.call(this, loader, 'atlasjson', key, [ image, data, image.linkFile ]);\r\n }\r\n else\r\n {\r\n MultiFile.call(this, loader, 'atlasjson', key, [ image, data ]);\r\n }\r\n },\r\n\r\n /**\r\n * Adds this file to its target cache upon successful loading and processing.\r\n *\r\n * @method Phaser.Loader.FileTypes.AtlasJSONFile#addToCache\r\n * @since 3.7.0\r\n */\r\n addToCache: function ()\r\n {\r\n if (this.isReadyToProcess())\r\n {\r\n var image = this.files[0];\r\n var json = this.files[1];\r\n var normalMap = (this.files[2]) ? this.files[2].data : null;\r\n\r\n this.loader.textureManager.addAtlas(image.key, image.data, json.data, normalMap);\r\n\r\n this.complete = true;\r\n }\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds a JSON based Texture Atlas, or array of atlases, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.atlas('mainmenu', 'images/MainMenu.png', 'images/MainMenu.json');\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * If you call this from outside of `preload` then you are responsible for starting the Loader afterwards and monitoring\r\n * its events to know when it's safe to use the asset. Please see the Phaser.Loader.LoaderPlugin class for more details.\r\n *\r\n * Phaser expects the atlas data to be provided in a JSON file, using either the JSON Hash or JSON Array format.\r\n *\r\n * These files are created by software such as:\r\n *\r\n * * [Texture Packer](https://www.codeandweb.com/texturepacker/tutorials/how-to-create-sprite-sheets-for-phaser3?source=photonstorm)\r\n * * [Shoebox](https://renderhjs.net/shoebox/)\r\n * * [Gamma Texture Packer](https://gammafp.com/tool/atlas-packer/)\r\n * * [Adobe Flash / Animate](https://www.adobe.com/uk/products/animate.html)\r\n * * [Free Texture Packer](http://free-tex-packer.com/)\r\n * * [Leshy SpriteSheet Tool](https://www.leshylabs.com/apps/sstool/)\r\n *\r\n * If you are using Texture Packer and have enabled multi-atlas support, then please use the Phaser Multi Atlas loader\r\n * instead of this one.\r\n *\r\n * Phaser can load all common image types: png, jpg, gif and any other format the browser can natively handle.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global Texture Manager upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the Texture Manager.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the Texture Manager first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.atlas({\r\n * key: 'mainmenu',\r\n * textureURL: 'images/MainMenu.png',\r\n * atlasURL: 'images/MainMenu.json'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.AtlasJSONFileConfig` for more details.\r\n *\r\n * Instead of passing a URL for the atlas JSON data you can also pass in a well formed JSON object instead.\r\n *\r\n * Once the atlas has finished loading you can use frames from it as textures for a Game Object by referencing its key:\r\n *\r\n * ```javascript\r\n * this.load.atlas('mainmenu', 'images/MainMenu.png', 'images/MainMenu.json');\r\n * // and later in your game ...\r\n * this.add.image(x, y, 'mainmenu', 'background');\r\n * ```\r\n *\r\n * To get a list of all available frames within an atlas please consult your Texture Atlas software.\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `MENU.` and the key was `Background` the final key will be `MENU.Background` and\r\n * this is what you would use to retrieve the image from the Texture Manager.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"alien\"\r\n * and no URL is given then the Loader will set the URL to be \"alien.png\". It will always add `.png` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * Phaser also supports the automatic loading of associated normal maps. If you have a normal map to go with this image,\r\n * then you can specify it by providing an array as the `url` where the second element is the normal map:\r\n *\r\n * ```javascript\r\n * this.load.atlas('mainmenu', [ 'images/MainMenu.png', 'images/MainMenu-n.png' ], 'images/MainMenu.json');\r\n * ```\r\n *\r\n * Or, if you are using a config object use the `normalMap` property:\r\n *\r\n * ```javascript\r\n * this.load.atlas({\r\n * key: 'mainmenu',\r\n * textureURL: 'images/MainMenu.png',\r\n * normalMap: 'images/MainMenu-n.png',\r\n * atlasURL: 'images/MainMenu.json'\r\n * });\r\n * ```\r\n *\r\n * The normal map file is subject to the same conditions as the image file with regard to the path, baseURL, CORs and XHR Settings.\r\n * Normal maps are a WebGL only feature.\r\n *\r\n * Note: The ability to load this type of file will only be available if the Atlas JSON File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#atlas\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.AtlasJSONFileConfig|Phaser.Types.Loader.FileTypes.AtlasJSONFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string|string[]} [textureURL] - The absolute or relative URL to load the texture image file from. If undefined or `null` it will be set to `.png`, i.e. if `key` was \"alien\" then the URL will be \"alien.png\".\r\n * @param {object|string} [atlasURL] - The absolute or relative URL to load the texture atlas json data file from. If undefined or `null` it will be set to `.json`, i.e. if `key` was \"alien\" then the URL will be \"alien.json\". Or, a well formed JSON object.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - An XHR Settings configuration object for the atlas image file. Used in replacement of the Loaders default XHR Settings.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [atlasXhrSettings] - An XHR Settings configuration object for the atlas json file. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('atlas', function (key, textureURL, atlasURL, textureXhrSettings, atlasXhrSettings)\r\n{\r\n var multifile;\r\n\r\n // Supports an Object file definition in the key argument\r\n // Or an array of objects in the key argument\r\n // Or a single entry where all arguments have been defined\r\n\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n multifile = new AtlasJSONFile(this, key[i]);\r\n\r\n this.addFile(multifile.files);\r\n }\r\n }\r\n else\r\n {\r\n multifile = new AtlasJSONFile(this, key, textureURL, atlasURL, textureXhrSettings, atlasXhrSettings);\r\n\r\n this.addFile(multifile.files);\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = AtlasJSONFile;\r\n\n\n/***/ }),\n\n/***/ 74599:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar ImageFile = __webpack_require__(19550);\r\nvar IsPlainObject = __webpack_require__(41212);\r\nvar MultiFile = __webpack_require__(26430);\r\nvar XMLFile = __webpack_require__(57318);\r\n\r\n/**\r\n * @classdesc\r\n * A single XML based Texture Atlas File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#atlasXML method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#atlasXML.\r\n *\r\n * @class AtlasXMLFile\r\n * @extends Phaser.Loader.MultiFile\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.7.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.AtlasXMLFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string|string[]} [textureURL] - The absolute or relative URL to load the texture image file from. If undefined or `null` it will be set to `.png`, i.e. if `key` was \"alien\" then the URL will be \"alien.png\".\r\n * @param {string} [atlasURL] - The absolute or relative URL to load the texture atlas xml data file from. If undefined or `null` it will be set to `.xml`, i.e. if `key` was \"alien\" then the URL will be \"alien.xml\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - An XHR Settings configuration object for the atlas image file. Used in replacement of the Loaders default XHR Settings.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [atlasXhrSettings] - An XHR Settings configuration object for the atlas xml file. Used in replacement of the Loaders default XHR Settings.\r\n */\r\nvar AtlasXMLFile = new Class({\r\n\r\n Extends: MultiFile,\r\n\r\n initialize:\r\n\r\n function AtlasXMLFile (loader, key, textureURL, atlasURL, textureXhrSettings, atlasXhrSettings)\r\n {\r\n var image;\r\n var data;\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n\r\n image = new ImageFile(loader, {\r\n key: key,\r\n url: GetFastValue(config, 'textureURL'),\r\n extension: GetFastValue(config, 'textureExtension', 'png'),\r\n normalMap: GetFastValue(config, 'normalMap'),\r\n xhrSettings: GetFastValue(config, 'textureXhrSettings')\r\n });\r\n\r\n data = new XMLFile(loader, {\r\n key: key,\r\n url: GetFastValue(config, 'atlasURL'),\r\n extension: GetFastValue(config, 'atlasExtension', 'xml'),\r\n xhrSettings: GetFastValue(config, 'atlasXhrSettings')\r\n });\r\n }\r\n else\r\n {\r\n image = new ImageFile(loader, key, textureURL, textureXhrSettings);\r\n data = new XMLFile(loader, key, atlasURL, atlasXhrSettings);\r\n }\r\n\r\n if (image.linkFile)\r\n {\r\n // Image has a normal map\r\n MultiFile.call(this, loader, 'atlasxml', key, [ image, data, image.linkFile ]);\r\n }\r\n else\r\n {\r\n MultiFile.call(this, loader, 'atlasxml', key, [ image, data ]);\r\n }\r\n },\r\n\r\n /**\r\n * Adds this file to its target cache upon successful loading and processing.\r\n *\r\n * @method Phaser.Loader.FileTypes.AtlasXMLFile#addToCache\r\n * @since 3.7.0\r\n */\r\n addToCache: function ()\r\n {\r\n if (this.isReadyToProcess())\r\n {\r\n var image = this.files[0];\r\n var xml = this.files[1];\r\n var normalMap = (this.files[2]) ? this.files[2].data : null;\r\n\r\n this.loader.textureManager.addAtlasXML(image.key, image.data, xml.data, normalMap);\r\n\r\n this.complete = true;\r\n }\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds an XML based Texture Atlas, or array of atlases, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.atlasXML('mainmenu', 'images/MainMenu.png', 'images/MainMenu.xml');\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * If you call this from outside of `preload` then you are responsible for starting the Loader afterwards and monitoring\r\n * its events to know when it's safe to use the asset. Please see the Phaser.Loader.LoaderPlugin class for more details.\r\n *\r\n * Phaser expects the atlas data to be provided in an XML file format.\r\n * These files are created by software such as Shoebox and Adobe Flash / Animate.\r\n *\r\n * Phaser can load all common image types: png, jpg, gif and any other format the browser can natively handle.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global Texture Manager upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the Texture Manager.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the Texture Manager first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.atlasXML({\r\n * key: 'mainmenu',\r\n * textureURL: 'images/MainMenu.png',\r\n * atlasURL: 'images/MainMenu.xml'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.AtlasXMLFileConfig` for more details.\r\n *\r\n * Once the atlas has finished loading you can use frames from it as textures for a Game Object by referencing its key:\r\n *\r\n * ```javascript\r\n * this.load.atlasXML('mainmenu', 'images/MainMenu.png', 'images/MainMenu.xml');\r\n * // and later in your game ...\r\n * this.add.image(x, y, 'mainmenu', 'background');\r\n * ```\r\n *\r\n * To get a list of all available frames within an atlas please consult your Texture Atlas software.\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `MENU.` and the key was `Background` the final key will be `MENU.Background` and\r\n * this is what you would use to retrieve the image from the Texture Manager.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"alien\"\r\n * and no URL is given then the Loader will set the URL to be \"alien.png\". It will always add `.png` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * Phaser also supports the automatic loading of associated normal maps. If you have a normal map to go with this image,\r\n * then you can specify it by providing an array as the `url` where the second element is the normal map:\r\n *\r\n * ```javascript\r\n * this.load.atlasXML('mainmenu', [ 'images/MainMenu.png', 'images/MainMenu-n.png' ], 'images/MainMenu.xml');\r\n * ```\r\n *\r\n * Or, if you are using a config object use the `normalMap` property:\r\n *\r\n * ```javascript\r\n * this.load.atlasXML({\r\n * key: 'mainmenu',\r\n * textureURL: 'images/MainMenu.png',\r\n * normalMap: 'images/MainMenu-n.png',\r\n * atlasURL: 'images/MainMenu.xml'\r\n * });\r\n * ```\r\n *\r\n * The normal map file is subject to the same conditions as the image file with regard to the path, baseURL, CORs and XHR Settings.\r\n * Normal maps are a WebGL only feature.\r\n *\r\n * Note: The ability to load this type of file will only be available if the Atlas XML File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#atlasXML\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.7.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.AtlasXMLFileConfig|Phaser.Types.Loader.FileTypes.AtlasXMLFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string|string[]} [textureURL] - The absolute or relative URL to load the texture image file from. If undefined or `null` it will be set to `.png`, i.e. if `key` was \"alien\" then the URL will be \"alien.png\".\r\n * @param {string} [atlasURL] - The absolute or relative URL to load the texture atlas xml data file from. If undefined or `null` it will be set to `.xml`, i.e. if `key` was \"alien\" then the URL will be \"alien.xml\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - An XHR Settings configuration object for the atlas image file. Used in replacement of the Loaders default XHR Settings.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [atlasXhrSettings] - An XHR Settings configuration object for the atlas xml file. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('atlasXML', function (key, textureURL, atlasURL, textureXhrSettings, atlasXhrSettings)\r\n{\r\n var multifile;\r\n\r\n // Supports an Object file definition in the key argument\r\n // Or an array of objects in the key argument\r\n // Or a single entry where all arguments have been defined\r\n\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n multifile = new AtlasXMLFile(this, key[i]);\r\n\r\n this.addFile(multifile.files);\r\n }\r\n }\r\n else\r\n {\r\n multifile = new AtlasXMLFile(this, key, textureURL, atlasURL, textureXhrSettings, atlasXhrSettings);\r\n\r\n this.addFile(multifile.files);\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = AtlasXMLFile;\r\n\n\n/***/ }),\n\n/***/ 21097:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(23906);\r\nvar File = __webpack_require__(41299);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar HTML5AudioFile = __webpack_require__(89749);\r\nvar IsPlainObject = __webpack_require__(41212);\r\n\r\n/**\r\n * @classdesc\r\n * A single Audio File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#audio method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#audio.\r\n *\r\n * @class AudioFile\r\n * @extends Phaser.Loader.File\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.AudioFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {Phaser.Types.Loader.FileTypes.AudioFileURLConfig} [urlConfig] - The absolute or relative URL to load this file from in a config object.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n * @param {AudioContext} [audioContext] - The AudioContext this file will use to process itself.\r\n */\r\nvar AudioFile = new Class({\r\n\r\n Extends: File,\r\n\r\n initialize:\r\n\r\n // URL is an object created by AudioFile.findAudioURL\r\n function AudioFile (loader, key, urlConfig, xhrSettings, audioContext)\r\n {\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n xhrSettings = GetFastValue(config, 'xhrSettings');\r\n audioContext = GetFastValue(config, 'context', audioContext);\r\n }\r\n\r\n var fileConfig = {\r\n type: 'audio',\r\n cache: loader.cacheManager.audio,\r\n extension: urlConfig.type,\r\n responseType: 'arraybuffer',\r\n key: key,\r\n url: urlConfig.url,\r\n xhrSettings: xhrSettings,\r\n config: { context: audioContext }\r\n };\r\n\r\n File.call(this, loader, fileConfig);\r\n },\r\n\r\n /**\r\n * Called automatically by Loader.nextFile.\r\n * This method controls what extra work this File does with its loaded data.\r\n *\r\n * @method Phaser.Loader.FileTypes.AudioFile#onProcess\r\n * @since 3.0.0\r\n */\r\n onProcess: function ()\r\n {\r\n this.state = CONST.FILE_PROCESSING;\r\n\r\n var _this = this;\r\n\r\n // interesting read https://github.com/WebAudio/web-audio-api/issues/1305\r\n this.config.context.decodeAudioData(this.xhrLoader.response,\r\n function (audioBuffer)\r\n {\r\n _this.data = audioBuffer;\r\n\r\n _this.onProcessComplete();\r\n },\r\n function (e)\r\n {\r\n // eslint-disable-next-line no-console\r\n console.error('Error decoding audio: ' + _this.key + ' - ', e ? e.message : null);\r\n\r\n _this.onProcessError();\r\n }\r\n );\r\n\r\n this.config.context = null;\r\n }\r\n\r\n});\r\n\r\nAudioFile.create = function (loader, key, urls, config, xhrSettings)\r\n{\r\n var game = loader.systems.game;\r\n var audioConfig = game.config.audio;\r\n var deviceAudio = game.device.audio;\r\n\r\n // url may be inside key, which may be an object\r\n if (IsPlainObject(key))\r\n {\r\n urls = GetFastValue(key, 'url', []);\r\n config = GetFastValue(key, 'config', {});\r\n }\r\n\r\n var urlConfig = AudioFile.getAudioURL(game, urls);\r\n\r\n if (!urlConfig)\r\n {\r\n console.warn('No audio URLs for \"%s\" can play on this device', key);\r\n\r\n return null;\r\n }\r\n\r\n // https://developers.google.com/web/updates/2012/02/HTML5-audio-and-the-Web-Audio-API-are-BFFs\r\n // var stream = GetFastValue(config, 'stream', false);\r\n\r\n if (deviceAudio.webAudio && !audioConfig.disableWebAudio)\r\n {\r\n return new AudioFile(loader, key, urlConfig, xhrSettings, game.sound.context);\r\n }\r\n else\r\n {\r\n return new HTML5AudioFile(loader, key, urlConfig, config);\r\n }\r\n};\r\n\r\nAudioFile.getAudioURL = function (game, urls)\r\n{\r\n if (!Array.isArray(urls))\r\n {\r\n urls = [ urls ];\r\n }\r\n\r\n for (var i = 0; i < urls.length; i++)\r\n {\r\n var url = GetFastValue(urls[i], 'url', urls[i]);\r\n\r\n if (url.indexOf('blob:') === 0 || url.indexOf('data:') === 0)\r\n {\r\n return {\r\n url: url,\r\n type: ''\r\n };\r\n }\r\n\r\n var audioType = url.match(/\\.([a-zA-Z0-9]+)($|\\?)/);\r\n\r\n audioType = GetFastValue(urls[i], 'type', (audioType) ? audioType[1] : '').toLowerCase();\r\n\r\n if (game.device.audio[audioType])\r\n {\r\n return {\r\n url: url,\r\n type: audioType\r\n };\r\n }\r\n }\r\n\r\n return null;\r\n};\r\n\r\n/**\r\n * Adds an Audio or HTML5Audio file, or array of audio files, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.audio('title', [ 'music/Title.ogg', 'music/Title.mp3', 'music/Title.m4a' ]);\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global Audio Cache upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the Audio Cache.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the Audio Cache first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.audio({\r\n * key: 'title',\r\n * url: [ 'music/Title.ogg', 'music/Title.mp3', 'music/Title.m4a' ]\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.AudioFileConfig` for more details.\r\n *\r\n * The URLs can be relative or absolute. If the URLs are relative the `Loader.baseURL` and `Loader.path` values will be prepended to them.\r\n *\r\n * Due to different browsers supporting different audio file types you should usually provide your audio files in a variety of formats.\r\n * ogg, mp3 and m4a are the most common. If you provide an array of URLs then the Loader will determine which _one_ file to load based on\r\n * browser support.\r\n *\r\n * If audio has been disabled in your game, either via the game config, or lack of support from the device, then no audio will be loaded.\r\n *\r\n * Note: The ability to load this type of file will only be available if the Audio File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#audio\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.AudioFileConfig|Phaser.Types.Loader.FileTypes.AudioFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {(string|string[]|Phaser.Types.Loader.FileTypes.AudioFileURLConfig|Phaser.Types.Loader.FileTypes.AudioFileURLConfig[])} [urls] - The absolute or relative URL to load the audio files from.\r\n * @param {any} [config] - An object containing an `instances` property for HTML5Audio. Defaults to 1.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('audio', function (key, urls, config, xhrSettings)\r\n{\r\n var game = this.systems.game;\r\n var audioConfig = game.config.audio;\r\n var deviceAudio = game.device.audio;\r\n\r\n if (audioConfig.noAudio || (!deviceAudio.webAudio && !deviceAudio.audioData))\r\n {\r\n // Sounds are disabled, so skip loading audio\r\n return this;\r\n }\r\n\r\n var audioFile;\r\n\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n // If it's an array it has to be an array of Objects, so we get everything out of the 'key' object\r\n audioFile = AudioFile.create(this, key[i]);\r\n\r\n if (audioFile)\r\n {\r\n this.addFile(audioFile);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n audioFile = AudioFile.create(this, key, urls, config, xhrSettings);\r\n\r\n if (audioFile)\r\n {\r\n this.addFile(audioFile);\r\n }\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = AudioFile;\r\n\n\n/***/ }),\n\n/***/ 89524:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar AudioFile = __webpack_require__(21097);\r\nvar Class = __webpack_require__(83419);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar IsPlainObject = __webpack_require__(41212);\r\nvar JSONFile = __webpack_require__(518);\r\nvar MultiFile = __webpack_require__(26430);\r\n\r\n/**\r\n * @classdesc\r\n * An Audio Sprite File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#audioSprite method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#audioSprite.\r\n *\r\n * @class AudioSpriteFile\r\n * @extends Phaser.Loader.MultiFile\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.7.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.AudioSpriteFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string} jsonURL - The absolute or relative URL to load the json file from. Or a well formed JSON object to use instead.\r\n * @param {{(string|string[])}} [audioURL] - The absolute or relative URL to load the audio file from. If empty it will be obtained by parsing the JSON file.\r\n * @param {any} [audioConfig] - The audio configuration options.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [audioXhrSettings] - An XHR Settings configuration object for the audio file. Used in replacement of the Loaders default XHR Settings.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [jsonXhrSettings] - An XHR Settings configuration object for the json file. Used in replacement of the Loaders default XHR Settings.\r\n */\r\nvar AudioSpriteFile = new Class({\r\n\r\n Extends: MultiFile,\r\n\r\n initialize:\r\n\r\n function AudioSpriteFile (loader, key, jsonURL, audioURL, audioConfig, audioXhrSettings, jsonXhrSettings)\r\n {\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n jsonURL = GetFastValue(config, 'jsonURL');\r\n audioURL = GetFastValue(config, 'audioURL');\r\n audioConfig = GetFastValue(config, 'audioConfig');\r\n audioXhrSettings = GetFastValue(config, 'audioXhrSettings');\r\n jsonXhrSettings = GetFastValue(config, 'jsonXhrSettings');\r\n }\r\n\r\n var data;\r\n\r\n // No url? then we're going to do a json load and parse it from that\r\n if (!audioURL)\r\n {\r\n data = new JSONFile(loader, key, jsonURL, jsonXhrSettings);\r\n\r\n MultiFile.call(this, loader, 'audiosprite', key, [ data ]);\r\n\r\n this.config.resourceLoad = true;\r\n this.config.audioConfig = audioConfig;\r\n this.config.audioXhrSettings = audioXhrSettings;\r\n }\r\n else\r\n {\r\n var audio = AudioFile.create(loader, key, audioURL, audioConfig, audioXhrSettings);\r\n\r\n if (audio)\r\n {\r\n data = new JSONFile(loader, key, jsonURL, jsonXhrSettings);\r\n\r\n MultiFile.call(this, loader, 'audiosprite', key, [ audio, data ]);\r\n\r\n this.config.resourceLoad = false;\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Called by each File when it finishes loading.\r\n *\r\n * @method Phaser.Loader.FileTypes.AudioSpriteFile#onFileComplete\r\n * @since 3.7.0\r\n *\r\n * @param {Phaser.Loader.File} file - The File that has completed processing.\r\n */\r\n onFileComplete: function (file)\r\n {\r\n var index = this.files.indexOf(file);\r\n\r\n if (index !== -1)\r\n {\r\n this.pending--;\r\n\r\n if (this.config.resourceLoad && file.type === 'json' && file.data.hasOwnProperty('resources'))\r\n {\r\n // Inspect the data for the files to now load\r\n var urls = file.data.resources;\r\n\r\n var audioConfig = GetFastValue(this.config, 'audioConfig');\r\n var audioXhrSettings = GetFastValue(this.config, 'audioXhrSettings');\r\n\r\n var audio = AudioFile.create(this.loader, file.key, urls, audioConfig, audioXhrSettings);\r\n\r\n if (audio)\r\n {\r\n this.addToMultiFile(audio);\r\n\r\n this.loader.addFile(audio);\r\n }\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Adds this file to its target cache upon successful loading and processing.\r\n *\r\n * @method Phaser.Loader.FileTypes.AudioSpriteFile#addToCache\r\n * @since 3.7.0\r\n */\r\n addToCache: function ()\r\n {\r\n if (this.isReadyToProcess())\r\n {\r\n var fileA = this.files[0];\r\n var fileB = this.files[1];\r\n\r\n fileA.addToCache();\r\n fileB.addToCache();\r\n\r\n this.complete = true;\r\n }\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds a JSON based Audio Sprite, or array of audio sprites, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.audioSprite('kyobi', 'kyobi.json', [\r\n * 'kyobi.ogg',\r\n * 'kyobi.mp3',\r\n * 'kyobi.m4a'\r\n * ]);\r\n * }\r\n * ```\r\n *\r\n * Audio Sprites are a combination of audio files and a JSON configuration.\r\n * The JSON follows the format of that created by https://github.com/tonistiigi/audiosprite\r\n *\r\n * If the JSON file includes a 'resource' object then you can let Phaser parse it and load the audio\r\n * files automatically based on its content. To do this exclude the audio URLs from the load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.audioSprite('kyobi', 'kyobi.json');\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * If you call this from outside of `preload` then you are responsible for starting the Loader afterwards and monitoring\r\n * its events to know when it's safe to use the asset. Please see the Phaser.Loader.LoaderPlugin class for more details.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global Audio Cache upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the Audio Cache.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the Audio Cache first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.audioSprite({\r\n * key: 'kyobi',\r\n * jsonURL: 'audio/Kyobi.json',\r\n * audioURL: [\r\n * 'audio/Kyobi.ogg',\r\n * 'audio/Kyobi.mp3',\r\n * 'audio/Kyobi.m4a'\r\n * ]\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.AudioSpriteFileConfig` for more details.\r\n *\r\n * Instead of passing a URL for the audio JSON data you can also pass in a well formed JSON object instead.\r\n *\r\n * Once the audio has finished loading you can use it create an Audio Sprite by referencing its key:\r\n *\r\n * ```javascript\r\n * this.load.audioSprite('kyobi', 'kyobi.json');\r\n * // and later in your game ...\r\n * var music = this.sound.addAudioSprite('kyobi');\r\n * music.play('title');\r\n * ```\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `MENU.` and the key was `Background` the final key will be `MENU.Background` and\r\n * this is what you would use to retrieve the image from the Texture Manager.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * Due to different browsers supporting different audio file types you should usually provide your audio files in a variety of formats.\r\n * ogg, mp3 and m4a are the most common. If you provide an array of URLs then the Loader will determine which _one_ file to load based on\r\n * browser support.\r\n *\r\n * If audio has been disabled in your game, either via the game config, or lack of support from the device, then no audio will be loaded.\r\n *\r\n * Note: The ability to load this type of file will only be available if the Audio Sprite File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#audioSprite\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.AudioSpriteFileConfig|Phaser.Types.Loader.FileTypes.AudioSpriteFileConfig[])} key - The key to use for this file, or a file configuration object, or an array of objects.\r\n * @param {string} jsonURL - The absolute or relative URL to load the json file from. Or a well formed JSON object to use instead.\r\n * @param {(string|string[])} [audioURL] - The absolute or relative URL to load the audio file from. If empty it will be obtained by parsing the JSON file.\r\n * @param {any} [audioConfig] - The audio configuration options.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [audioXhrSettings] - An XHR Settings configuration object for the audio file. Used in replacement of the Loaders default XHR Settings.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [jsonXhrSettings] - An XHR Settings configuration object for the json file. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader.\r\n */\r\nFileTypesManager.register('audioSprite', function (key, jsonURL, audioURL, audioConfig, audioXhrSettings, jsonXhrSettings)\r\n{\r\n var game = this.systems.game;\r\n var gameAudioConfig = game.config.audio;\r\n var deviceAudio = game.device.audio;\r\n\r\n if ((gameAudioConfig && gameAudioConfig.noAudio) || (!deviceAudio.webAudio && !deviceAudio.audioData))\r\n {\r\n // Sounds are disabled, so skip loading audio\r\n return this;\r\n }\r\n\r\n var multifile;\r\n\r\n // Supports an Object file definition in the key argument\r\n // Or an array of objects in the key argument\r\n // Or a single entry where all arguments have been defined\r\n\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n multifile = new AudioSpriteFile(this, key[i]);\r\n\r\n if (multifile.files)\r\n {\r\n this.addFile(multifile.files);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n multifile = new AudioSpriteFile(this, key, jsonURL, audioURL, audioConfig, audioXhrSettings, jsonXhrSettings);\r\n\r\n if (multifile.files)\r\n {\r\n this.addFile(multifile.files);\r\n }\r\n }\r\n\r\n return this;\r\n});\r\n\n\n/***/ }),\n\n/***/ 85722:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(23906);\r\nvar File = __webpack_require__(41299);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar IsPlainObject = __webpack_require__(41212);\r\n\r\n/**\r\n * @classdesc\r\n * A single Binary File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#binary method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#binary.\r\n *\r\n * @class BinaryFile\r\n * @extends Phaser.Loader.File\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.BinaryFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.bin`, i.e. if `key` was \"alien\" then the URL will be \"alien.bin\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n * @param {any} [dataType] - Optional type to cast the binary file to once loaded. For example, `Uint8Array`.\r\n */\r\nvar BinaryFile = new Class({\r\n\r\n Extends: File,\r\n\r\n initialize:\r\n\r\n function BinaryFile (loader, key, url, xhrSettings, dataType)\r\n {\r\n var extension = 'bin';\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n url = GetFastValue(config, 'url');\r\n xhrSettings = GetFastValue(config, 'xhrSettings');\r\n extension = GetFastValue(config, 'extension', extension);\r\n dataType = GetFastValue(config, 'dataType', dataType);\r\n }\r\n\r\n var fileConfig = {\r\n type: 'binary',\r\n cache: loader.cacheManager.binary,\r\n extension: extension,\r\n responseType: 'arraybuffer',\r\n key: key,\r\n url: url,\r\n xhrSettings: xhrSettings,\r\n config: { dataType: dataType }\r\n };\r\n\r\n File.call(this, loader, fileConfig);\r\n },\r\n\r\n /**\r\n * Called automatically by Loader.nextFile.\r\n * This method controls what extra work this File does with its loaded data.\r\n *\r\n * @method Phaser.Loader.FileTypes.BinaryFile#onProcess\r\n * @since 3.7.0\r\n */\r\n onProcess: function ()\r\n {\r\n this.state = CONST.FILE_PROCESSING;\r\n\r\n var ctor = this.config.dataType;\r\n\r\n this.data = (ctor) ? new ctor(this.xhrLoader.response) : this.xhrLoader.response;\r\n\r\n this.onProcessComplete();\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds a Binary file, or array of Binary files, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.binary('doom', 'files/Doom.wad');\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global Binary Cache upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the Binary Cache.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the Binary Cache first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.binary({\r\n * key: 'doom',\r\n * url: 'files/Doom.wad',\r\n * dataType: Uint8Array\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.BinaryFileConfig` for more details.\r\n *\r\n * Once the file has finished loading you can access it from its Cache using its key:\r\n *\r\n * ```javascript\r\n * this.load.binary('doom', 'files/Doom.wad');\r\n * // and later in your game ...\r\n * var data = this.cache.binary.get('doom');\r\n * ```\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `LEVEL1.` and the key was `Data` the final key will be `LEVEL1.Data` and\r\n * this is what you would use to retrieve the text from the Binary Cache.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"doom\"\r\n * and no URL is given then the Loader will set the URL to be \"doom.bin\". It will always add `.bin` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * Note: The ability to load this type of file will only be available if the Binary File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#binary\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.BinaryFileConfig|Phaser.Types.Loader.FileTypes.BinaryFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.bin`, i.e. if `key` was \"alien\" then the URL will be \"alien.bin\".\r\n * @param {any} [dataType] - Optional type to cast the binary file to once loaded. For example, `Uint8Array`.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('binary', function (key, url, dataType, xhrSettings)\r\n{\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n // If it's an array it has to be an array of Objects, so we get everything out of the 'key' object\r\n this.addFile(new BinaryFile(this, key[i]));\r\n }\r\n }\r\n else\r\n {\r\n this.addFile(new BinaryFile(this, key, url, xhrSettings, dataType));\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = BinaryFile;\r\n\n\n/***/ }),\n\n/***/ 97025:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar ImageFile = __webpack_require__(19550);\r\nvar IsPlainObject = __webpack_require__(41212);\r\nvar MultiFile = __webpack_require__(26430);\r\nvar ParseXMLBitmapFont = __webpack_require__(21859);\r\nvar XMLFile = __webpack_require__(57318);\r\n\r\n/**\r\n * @classdesc\r\n * A single Bitmap Font based File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#bitmapFont method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#bitmapFont.\r\n *\r\n * @class BitmapFontFile\r\n * @extends Phaser.Loader.MultiFile\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.BitmapFontFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string|string[]} [textureURL] - The absolute or relative URL to load the font image file from. If undefined or `null` it will be set to `.png`, i.e. if `key` was \"alien\" then the URL will be \"alien.png\".\r\n * @param {string} [fontDataURL] - The absolute or relative URL to load the font xml data file from. If undefined or `null` it will be set to `.xml`, i.e. if `key` was \"alien\" then the URL will be \"alien.xml\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - An XHR Settings configuration object for the font image file. Used in replacement of the Loaders default XHR Settings.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [fontDataXhrSettings] - An XHR Settings configuration object for the font data xml file. Used in replacement of the Loaders default XHR Settings.\r\n */\r\nvar BitmapFontFile = new Class({\r\n\r\n Extends: MultiFile,\r\n\r\n initialize:\r\n\r\n function BitmapFontFile (loader, key, textureURL, fontDataURL, textureXhrSettings, fontDataXhrSettings)\r\n {\r\n var image;\r\n var data;\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n\r\n image = new ImageFile(loader, {\r\n key: key,\r\n url: GetFastValue(config, 'textureURL'),\r\n extension: GetFastValue(config, 'textureExtension', 'png'),\r\n normalMap: GetFastValue(config, 'normalMap'),\r\n xhrSettings: GetFastValue(config, 'textureXhrSettings')\r\n });\r\n\r\n data = new XMLFile(loader, {\r\n key: key,\r\n url: GetFastValue(config, 'fontDataURL'),\r\n extension: GetFastValue(config, 'fontDataExtension', 'xml'),\r\n xhrSettings: GetFastValue(config, 'fontDataXhrSettings')\r\n });\r\n }\r\n else\r\n {\r\n image = new ImageFile(loader, key, textureURL, textureXhrSettings);\r\n data = new XMLFile(loader, key, fontDataURL, fontDataXhrSettings);\r\n }\r\n\r\n if (image.linkFile)\r\n {\r\n // Image has a normal map\r\n MultiFile.call(this, loader, 'bitmapfont', key, [ image, data, image.linkFile ]);\r\n }\r\n else\r\n {\r\n MultiFile.call(this, loader, 'bitmapfont', key, [ image, data ]);\r\n }\r\n },\r\n\r\n /**\r\n * Adds this file to its target cache upon successful loading and processing.\r\n *\r\n * @method Phaser.Loader.FileTypes.BitmapFontFile#addToCache\r\n * @since 3.7.0\r\n */\r\n addToCache: function ()\r\n {\r\n if (this.isReadyToProcess())\r\n {\r\n var image = this.files[0];\r\n var xml = this.files[1];\r\n\r\n image.addToCache();\r\n\r\n var texture = image.cache.get(image.key);\r\n\r\n var data = ParseXMLBitmapFont(xml.data, image.cache.getFrame(image.key), 0, 0, texture);\r\n\r\n this.loader.cacheManager.bitmapFont.add(image.key, { data: data, texture: image.key, frame: null });\r\n\r\n this.complete = true;\r\n }\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds an XML based Bitmap Font, or array of fonts, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.bitmapFont('goldenFont', 'images/GoldFont.png', 'images/GoldFont.xml');\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * If you call this from outside of `preload` then you are responsible for starting the Loader afterwards and monitoring\r\n * its events to know when it's safe to use the asset. Please see the Phaser.Loader.LoaderPlugin class for more details.\r\n *\r\n * Phaser expects the font data to be provided in an XML file format.\r\n * These files are created by software such as the [Angelcode Bitmap Font Generator](http://www.angelcode.com/products/bmfont/),\r\n * [Littera](http://kvazars.com/littera/) or [Glyph Designer](https://71squared.com/glyphdesigner)\r\n *\r\n * Phaser can load all common image types: png, jpg, gif and any other format the browser can natively handle.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global Texture Manager upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the Texture Manager.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the Texture Manager first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.bitmapFont({\r\n * key: 'goldenFont',\r\n * textureURL: 'images/GoldFont.png',\r\n * fontDataURL: 'images/GoldFont.xml'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.BitmapFontFileConfig` for more details.\r\n *\r\n * Once the atlas has finished loading you can use key of it when creating a Bitmap Text Game Object:\r\n *\r\n * ```javascript\r\n * this.load.bitmapFont('goldenFont', 'images/GoldFont.png', 'images/GoldFont.xml');\r\n * // and later in your game ...\r\n * this.add.bitmapText(x, y, 'goldenFont', 'Hello World');\r\n * ```\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `MENU.` and the key was `Background` the final key will be `MENU.Background` and\r\n * this is what you would use when creating a Bitmap Text object.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"alien\"\r\n * and no URL is given then the Loader will set the URL to be \"alien.png\". It will always add `.png` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * Phaser also supports the automatic loading of associated normal maps. If you have a normal map to go with this image,\r\n * then you can specify it by providing an array as the `url` where the second element is the normal map:\r\n *\r\n * ```javascript\r\n * this.load.bitmapFont('goldenFont', [ 'images/GoldFont.png', 'images/GoldFont-n.png' ], 'images/GoldFont.xml');\r\n * ```\r\n *\r\n * Or, if you are using a config object use the `normalMap` property:\r\n *\r\n * ```javascript\r\n * this.load.bitmapFont({\r\n * key: 'goldenFont',\r\n * textureURL: 'images/GoldFont.png',\r\n * normalMap: 'images/GoldFont-n.png',\r\n * fontDataURL: 'images/GoldFont.xml'\r\n * });\r\n * ```\r\n *\r\n * The normal map file is subject to the same conditions as the image file with regard to the path, baseURL, CORs and XHR Settings.\r\n * Normal maps are a WebGL only feature.\r\n *\r\n * Note: The ability to load this type of file will only be available if the Bitmap Font File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#bitmapFont\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.BitmapFontFileConfig|Phaser.Types.Loader.FileTypes.BitmapFontFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string|string[]} [textureURL] - The absolute or relative URL to load the font image file from. If undefined or `null` it will be set to `.png`, i.e. if `key` was \"alien\" then the URL will be \"alien.png\".\r\n * @param {string} [fontDataURL] - The absolute or relative URL to load the font xml data file from. If undefined or `null` it will be set to `.xml`, i.e. if `key` was \"alien\" then the URL will be \"alien.xml\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - An XHR Settings configuration object for the font image file. Used in replacement of the Loaders default XHR Settings.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [fontDataXhrSettings] - An XHR Settings configuration object for the font data xml file. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('bitmapFont', function (key, textureURL, fontDataURL, textureXhrSettings, fontDataXhrSettings)\r\n{\r\n var multifile;\r\n\r\n // Supports an Object file definition in the key argument\r\n // Or an array of objects in the key argument\r\n // Or a single entry where all arguments have been defined\r\n\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n multifile = new BitmapFontFile(this, key[i]);\r\n\r\n this.addFile(multifile.files);\r\n }\r\n }\r\n else\r\n {\r\n multifile = new BitmapFontFile(this, key, textureURL, fontDataURL, textureXhrSettings, fontDataXhrSettings);\r\n\r\n this.addFile(multifile.files);\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = BitmapFontFile;\r\n\n\n/***/ }),\n\n/***/ 16024:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(23906);\r\nvar File = __webpack_require__(41299);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar IsPlainObject = __webpack_require__(41212);\r\n\r\n/**\r\n * @classdesc\r\n * A single CSS File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#css method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#css.\r\n *\r\n * @class CSSFile\r\n * @extends Phaser.Loader.File\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.17.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.CSSFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.js`, i.e. if `key` was \"alien\" then the URL will be \"alien.js\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n */\r\nvar CSSFile = new Class({\r\n\r\n Extends: File,\r\n\r\n initialize:\r\n\r\n function CSSFile (loader, key, url, xhrSettings)\r\n {\r\n var extension = 'css';\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n url = GetFastValue(config, 'url');\r\n xhrSettings = GetFastValue(config, 'xhrSettings');\r\n extension = GetFastValue(config, 'extension', extension);\r\n }\r\n\r\n var fileConfig = {\r\n type: 'script',\r\n cache: false,\r\n extension: extension,\r\n responseType: 'text',\r\n key: key,\r\n url: url,\r\n xhrSettings: xhrSettings\r\n };\r\n\r\n File.call(this, loader, fileConfig);\r\n },\r\n\r\n /**\r\n * Called automatically by Loader.nextFile.\r\n * This method controls what extra work this File does with its loaded data.\r\n *\r\n * @method Phaser.Loader.FileTypes.CSSFile#onProcess\r\n * @since 3.17.0\r\n */\r\n onProcess: function ()\r\n {\r\n this.state = CONST.FILE_PROCESSING;\r\n\r\n this.data = document.createElement('style');\r\n this.data.defer = false;\r\n this.data.innerHTML = this.xhrLoader.responseText;\r\n\r\n document.head.appendChild(this.data);\r\n\r\n this.onProcessComplete();\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds a CSS file, or array of CSS files, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.css('headers', 'styles/headers.css');\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * The key must be a unique String and not already in-use by another file in the Loader.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.css({\r\n * key: 'headers',\r\n * url: 'styles/headers.css'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.CSSFileConfig` for more details.\r\n *\r\n * Once the file has finished loading it will automatically be converted into a style DOM element\r\n * via `document.createElement('style')`. It will have its `defer` property set to false and then the\r\n * resulting element will be appended to `document.head`. The CSS styles are then applied to the current document.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"alien\"\r\n * and no URL is given then the Loader will set the URL to be \"alien.css\". It will always add `.css` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * Note: The ability to load this type of file will only be available if the CSS File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#css\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.17.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.CSSFileConfig|Phaser.Types.Loader.FileTypes.CSSFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.css`, i.e. if `key` was \"alien\" then the URL will be \"alien.css\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('css', function (key, url, xhrSettings)\r\n{\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n // If it's an array it has to be an array of Objects, so we get everything out of the 'key' object\r\n this.addFile(new CSSFile(this, key[i]));\r\n }\r\n }\r\n else\r\n {\r\n this.addFile(new CSSFile(this, key, url, xhrSettings));\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = CSSFile;\r\n\n\n/***/ }),\n\n/***/ 69559:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2021 Photon Storm Ltd.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar AtlasJSONFile = __webpack_require__(38734);\r\nvar BinaryFile = __webpack_require__(85722);\r\nvar Class = __webpack_require__(83419);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar ImageFile = __webpack_require__(19550);\r\nvar IsPlainObject = __webpack_require__(41212);\r\nvar JSONFile = __webpack_require__(518);\r\nvar KTXParser = __webpack_require__(31403);\r\nvar Merge = __webpack_require__(46975);\r\nvar MultiAtlasFile = __webpack_require__(59327);\r\nvar MultiFile = __webpack_require__(26430);\r\nvar PVRParser = __webpack_require__(82038);\r\nvar verifyCompressedTexture = __webpack_require__(55222);\r\n\r\n/**\r\n * @classdesc\r\n * A Compressed Texture File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#texture method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#texture.\r\n *\r\n * @class CompressedTextureFile\r\n * @extends Phaser.Loader.MultiFile\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {string} key - The key to use for this file.\r\n * @param {Phaser.Types.Loader.FileTypes.CompressedTextureFileEntry} entry - The compressed texture file entry to load.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n */\r\nvar CompressedTextureFile = new Class({\r\n\r\n Extends: MultiFile,\r\n\r\n initialize:\r\n\r\n function CompressedTextureFile (loader, key, entry, xhrSettings)\r\n {\r\n if (entry.multiAtlasURL)\r\n {\r\n var multi = new JSONFile(loader, {\r\n key: key,\r\n url: entry.multiAtlasURL,\r\n xhrSettings: xhrSettings,\r\n config: entry\r\n });\r\n\r\n MultiFile.call(this, loader, 'texture', key, [ multi ]);\r\n }\r\n else\r\n {\r\n var extension = entry.textureURL.substr(entry.textureURL.length - 3);\r\n\r\n if (!entry.type)\r\n {\r\n entry.type = (extension.toLowerCase() === 'ktx') ? 'KTX' : 'PVR';\r\n }\r\n\r\n var image = new BinaryFile(loader, {\r\n key: key,\r\n url: entry.textureURL,\r\n extension: extension,\r\n xhrSettings: xhrSettings,\r\n config: entry\r\n });\r\n\r\n if (entry.atlasURL)\r\n {\r\n var data = new JSONFile(loader, {\r\n key: key,\r\n url: entry.atlasURL,\r\n xhrSettings: xhrSettings,\r\n config: entry\r\n });\r\n\r\n MultiFile.call(this, loader, 'texture', key, [ image, data ]);\r\n }\r\n else\r\n {\r\n MultiFile.call(this, loader, 'texture', key, [ image ]);\r\n }\r\n }\r\n\r\n this.config = entry;\r\n },\r\n\r\n /**\r\n * Called by each File when it finishes loading.\r\n *\r\n * @method Phaser.Loader.FileTypes.CompressedTextureFile#onFileComplete\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Loader.File} file - The File that has completed processing.\r\n */\r\n onFileComplete: function (file)\r\n {\r\n var index = this.files.indexOf(file);\r\n\r\n if (index !== -1)\r\n {\r\n this.pending--;\r\n\r\n if (!this.config.multiAtlasURL)\r\n {\r\n return;\r\n }\r\n\r\n if (file.type === 'json' && file.data.hasOwnProperty('textures'))\r\n {\r\n // Inspect the data for the files to now load\r\n var textures = file.data.textures;\r\n\r\n var config = this.config;\r\n var loader = this.loader;\r\n\r\n var currentBaseURL = loader.baseURL;\r\n var currentPath = loader.path;\r\n var currentPrefix = loader.prefix;\r\n\r\n var baseURL = GetFastValue(config, 'multiBaseURL', this.baseURL);\r\n var path = GetFastValue(config, 'multiPath', this.path);\r\n var prefix = GetFastValue(config, 'prefix', this.prefix);\r\n var textureXhrSettings = GetFastValue(config, 'textureXhrSettings');\r\n\r\n if (baseURL)\r\n {\r\n loader.setBaseURL(baseURL);\r\n }\r\n\r\n if (path)\r\n {\r\n loader.setPath(path);\r\n }\r\n\r\n if (prefix)\r\n {\r\n loader.setPrefix(prefix);\r\n }\r\n\r\n for (var i = 0; i < textures.length; i++)\r\n {\r\n // \"image\": \"texture-packer-multi-atlas-0.png\",\r\n var textureURL = textures[i].image;\r\n\r\n var key = 'CMA' + this.multiKeyIndex + '_' + textureURL;\r\n\r\n var image = new BinaryFile(loader, key, textureURL, textureXhrSettings);\r\n\r\n this.addToMultiFile(image);\r\n\r\n loader.addFile(image);\r\n\r\n // \"normalMap\": \"texture-packer-multi-atlas-0_n.png\",\r\n if (textures[i].normalMap)\r\n {\r\n var normalMap = new BinaryFile(loader, key, textures[i].normalMap, textureXhrSettings);\r\n\r\n normalMap.type = 'normalMap';\r\n\r\n image.setLink(normalMap);\r\n\r\n this.addToMultiFile(normalMap);\r\n\r\n loader.addFile(normalMap);\r\n }\r\n }\r\n\r\n // Reset the loader settings\r\n loader.setBaseURL(currentBaseURL);\r\n loader.setPath(currentPath);\r\n loader.setPrefix(currentPrefix);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Adds this file to its target cache upon successful loading and processing.\r\n *\r\n * @method Phaser.Loader.FileTypes.CompressedTextureFile#addToCache\r\n * @since 3.60.0\r\n */\r\n addToCache: function ()\r\n {\r\n function compressionWarning (message)\r\n {\r\n console.warn('Compressed Texture Invalid: \"' + image.key + '\". ' + message);\r\n }\r\n\r\n if (this.isReadyToProcess())\r\n {\r\n var entry = this.config;\r\n\r\n if (entry.multiAtlasURL)\r\n {\r\n this.addMultiToCache();\r\n }\r\n else\r\n {\r\n var renderer = this.loader.systems.renderer;\r\n var textureManager = this.loader.textureManager;\r\n var textureData;\r\n\r\n var image = this.files[0];\r\n var json = this.files[1];\r\n\r\n if (entry.type === 'PVR')\r\n {\r\n textureData = PVRParser(image.data);\r\n }\r\n else if (entry.type === 'KTX')\r\n {\r\n textureData = KTXParser(image.data);\r\n if (!textureData)\r\n {\r\n compressionWarning('KTX file contains unsupported format.');\r\n }\r\n }\r\n\r\n // Check block size.\r\n if (textureData && !verifyCompressedTexture(textureData))\r\n {\r\n compressionWarning('Texture dimensions failed verification. Check the texture format specifications for ' + entry.format + ' 0x' + textureData.internalFormat.toString(16) + '.');\r\n textureData = null;\r\n }\r\n\r\n // Check texture compression.\r\n if (textureData && !renderer.supportsCompressedTexture(entry.format, textureData.internalFormat))\r\n {\r\n compressionWarning('Texture format ' + entry.format + ' with internal format ' + textureData.internalFormat + ' not supported by the GPU. Texture invalid. This is often due to the texture using sRGB instead of linear RGB.');\r\n textureData = null;\r\n }\r\n\r\n if (textureData)\r\n {\r\n textureData.format = renderer.getCompressedTextureName(entry.format, textureData.internalFormat);\r\n\r\n var atlasData = (json && json.data) ? json.data : null;\r\n\r\n textureManager.addCompressedTexture(image.key, textureData, atlasData);\r\n }\r\n }\r\n\r\n this.complete = true;\r\n }\r\n },\r\n\r\n /**\r\n * Adds all of the multi-file entties to their target caches upon successful loading and processing.\r\n *\r\n * @method Phaser.Loader.FileTypes.CompressedTextureFile#addMultiToCache\r\n * @since 3.60.0\r\n */\r\n addMultiToCache: function ()\r\n {\r\n var entry = this.config;\r\n var json = this.files[0];\r\n\r\n var data = [];\r\n var images = [];\r\n var normalMaps = [];\r\n\r\n var renderer = this.loader.systems.renderer;\r\n var textureManager = this.loader.textureManager;\r\n var textureData;\r\n\r\n for (var i = 1; i < this.files.length; i++)\r\n {\r\n var file = this.files[i];\r\n\r\n if (file.type === 'normalMap')\r\n {\r\n continue;\r\n }\r\n\r\n var pos = file.key.indexOf('_');\r\n var key = file.key.substr(pos + 1);\r\n\r\n var image = file.data;\r\n\r\n // Now we need to find out which json entry this mapped to\r\n for (var t = 0; t < json.data.textures.length; t++)\r\n {\r\n var item = json.data.textures[t];\r\n\r\n if (item.image === key)\r\n {\r\n if (entry.type === 'PVR')\r\n {\r\n textureData = PVRParser(image);\r\n }\r\n else if (entry.type === 'KTX')\r\n {\r\n textureData = KTXParser(image);\r\n }\r\n\r\n if (textureData && renderer.supportsCompressedTexture(entry.format, textureData.internalFormat))\r\n {\r\n textureData.format = renderer.getCompressedTextureName(entry.format, textureData.internalFormat);\r\n\r\n images.push(textureData);\r\n\r\n data.push(item);\r\n\r\n if (file.linkFile)\r\n {\r\n normalMaps.push(file.linkFile.data);\r\n }\r\n }\r\n\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if (normalMaps.length === 0)\r\n {\r\n normalMaps = undefined;\r\n }\r\n\r\n textureManager.addAtlasJSONArray(this.key, images, data, normalMaps);\r\n\r\n this.complete = true;\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds a Compressed Texture file to the current load queue. This feature is WebGL only.\r\n *\r\n * This method takes a key and a configuration object, which lists the different formats\r\n * and files associated with them.\r\n *\r\n * The texture format object should be ordered in GPU priority order, with IMG as the last entry.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * preload ()\r\n * {\r\n * this.load.texture('yourPic', {\r\n * ASTC: { type: 'PVR', textureURL: 'pic-astc-4x4.pvr' },\r\n * PVRTC: { type: 'PVR', textureURL: 'pic-pvrtc-4bpp-rgba.pvr' },\r\n * S3TC: { type: 'PVR', textureURL: 'pic-dxt5.pvr' },\r\n * IMG: { textureURL: 'pic.png' }\r\n * });\r\n * ```\r\n *\r\n * If you wish to load a texture atlas, provide the `atlasURL` property:\r\n *\r\n * ```javascript\r\n * preload ()\r\n * {\r\n * const path = 'assets/compressed';\r\n *\r\n * this.load.texture('yourAtlas', {\r\n * 'ASTC': { type: 'PVR', textureURL: `${path}/textures-astc-4x4.pvr`, atlasURL: `${path}/textures.json` },\r\n * 'PVRTC': { type: 'PVR', textureURL: `${path}/textures-pvrtc-4bpp-rgba.pvr`, atlasURL: `${path}/textures-pvrtc-4bpp-rgba.json` },\r\n * 'S3TC': { type: 'PVR', textureURL: `${path}/textures-dxt5.pvr`, atlasURL: `${path}/textures-dxt5.json` },\r\n * 'IMG': { textureURL: `${path}/textures.png`, atlasURL: `${path}/textures.json` }\r\n * });\r\n * }\r\n * ```\r\n *\r\n * If you wish to load a Multi Atlas, as exported from Texture Packer Pro, use the `multiAtlasURL` property instead:\r\n *\r\n * ```javascript\r\n * preload ()\r\n * {\r\n * const path = 'assets/compressed';\r\n *\r\n * this.load.texture('yourAtlas', {\r\n * 'ASTC': { type: 'PVR', atlasURL: `${path}/textures.json` },\r\n * 'PVRTC': { type: 'PVR', atlasURL: `${path}/textures-pvrtc-4bpp-rgba.json` },\r\n * 'S3TC': { type: 'PVR', atlasURL: `${path}/textures-dxt5.json` },\r\n * 'IMG': { atlasURL: `${path}/textures.json` }\r\n * });\r\n * }\r\n * ```\r\n *\r\n * When loading a Multi Atlas you do not need to specify the `textureURL` property as it will be read from the JSON file.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.texture({\r\n * key: 'yourPic',\r\n * url: {\r\n * ASTC: { type: 'PVR', textureURL: 'pic-astc-4x4.pvr' },\r\n * PVRTC: { type: 'PVR', textureURL: 'pic-pvrtc-4bpp-rgba.pvr' },\r\n * S3TC: { type: 'PVR', textureURL: 'pic-dxt5.pvr' },\r\n * IMG: { textureURL: 'pic.png' }\r\n * }\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.CompressedTextureFileConfig` for more details.\r\n *\r\n * The number of formats you provide to this function is up to you, but you should ensure you\r\n * cover the primary platforms where appropriate.\r\n *\r\n * The 'IMG' entry is a fallback to a JPG or PNG, should the browser be unable to load any of the other\r\n * formats presented to this function. You should really always include this, although it is optional.\r\n *\r\n * Phaser supports loading both the PVR and KTX container formats. Within those, it can parse\r\n * the following texture compression formats:\r\n *\r\n * ETC\r\n * ETC1\r\n * ATC\r\n * ASTC\r\n * BPTC\r\n * RGTC\r\n * PVRTC\r\n * S3TC\r\n * S3TCSRGB\r\n *\r\n * For more information about the benefits of compressed textures please see the\r\n * following articles:\r\n *\r\n * Texture Compression in 2020 (https://aras-p.info/blog/2020/12/08/Texture-Compression-in-2020/)\r\n * Compressed GPU Texture Formats (https://themaister.net/blog/2020/08/12/compressed-gpu-texture-formats-a-review-and-compute-shader-decoders-part-1/)\r\n *\r\n * To create compressed texture files use a 3rd party application such as:\r\n *\r\n * Texture Packer (https://www.codeandweb.com/texturepacker/tutorials/how-to-create-sprite-sheets-for-phaser3?utm_source=ad&utm_medium=banner&utm_campaign=phaser-2018-10-16)\r\n * PVRTexTool (https://developer.imaginationtech.com/pvrtextool/) - available for Windows, macOS and Linux.\r\n * Mali Texture Compression Tool (https://developer.arm.com/tools-and-software/graphics-and-gaming/mali-texture-compression-tool)\r\n * ASTC Encoder (https://github.com/ARM-software/astc-encoder)\r\n *\r\n * ASTCs must have a Channel Type of Unsigned Normalized Bytes (UNorm).\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global Texture Manager upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the Texture Manager.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the Texture Manager first, before loading a new one.\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `LEVEL1.` and the key was `Data` the final key will be `LEVEL1.Data` and\r\n * this is what you would use to retrieve the text from the Texture Manager.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * Unlike other file loaders in Phaser, the URLs must include the file extension.\r\n *\r\n * Note: The ability to load this type of file will only be available if the Compressed Texture File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#texture\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.60.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.CompressedTextureFileConfig|Phaser.Types.Loader.FileTypes.CompressedTextureFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {Phaser.Types.Loader.FileTypes.CompressedTextureFileConfig} [url] - The compressed texture configuration object. Not required if passing a config object as the `key` parameter.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('texture', function (key, url, xhrSettings)\r\n{\r\n var renderer = this.systems.renderer;\r\n\r\n var AddEntry = function (loader, key, urls, xhrSettings)\r\n {\r\n var entry = {\r\n format: null,\r\n type: null,\r\n textureURL: undefined,\r\n atlasURL: undefined,\r\n multiAtlasURL: undefined,\r\n multiPath: undefined,\r\n multiBaseURL: undefined\r\n };\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n urls = GetFastValue(config, 'url'),\r\n xhrSettings = GetFastValue(config, 'xhrSettings');\r\n }\r\n\r\n var matched = false;\r\n\r\n for (var textureBaseFormat in urls)\r\n {\r\n if (renderer.supportsCompressedTexture(textureBaseFormat))\r\n {\r\n var urlEntry = urls[textureBaseFormat];\r\n\r\n if (typeof urlEntry === 'string')\r\n {\r\n entry.textureURL = urlEntry;\r\n }\r\n else\r\n {\r\n entry = Merge(urlEntry, entry);\r\n }\r\n\r\n entry.format = textureBaseFormat.toUpperCase();\r\n\r\n matched = true;\r\n\r\n break;\r\n }\r\n }\r\n\r\n if (!matched)\r\n {\r\n console.warn('No supported compressed texture format or IMG fallback', key);\r\n }\r\n else if (entry.format === 'IMG')\r\n {\r\n var file;\r\n var multifile;\r\n\r\n if (entry.multiAtlasURL)\r\n {\r\n multifile = new MultiAtlasFile(loader, key, entry.multiAtlasURL, entry.multiPath, entry.multiBaseURL, xhrSettings);\r\n\r\n file = multifile.files;\r\n }\r\n else if (entry.atlasURL)\r\n {\r\n multifile = new AtlasJSONFile(loader, key, entry.textureURL, entry.atlasURL, xhrSettings);\r\n\r\n file = multifile.files;\r\n }\r\n else\r\n {\r\n file = new ImageFile(loader, key, entry.textureURL, xhrSettings);\r\n }\r\n\r\n loader.addFile(file);\r\n }\r\n else\r\n {\r\n var texture = new CompressedTextureFile(loader, key, entry, xhrSettings);\r\n\r\n loader.addFile(texture.files);\r\n }\r\n };\r\n\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n AddEntry(this, key[i]);\r\n }\r\n }\r\n else\r\n {\r\n AddEntry(this, key, url, xhrSettings);\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = CompressedTextureFile;\r\n\n\n/***/ }),\n\n/***/ 47931:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(23906);\r\nvar File = __webpack_require__(41299);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar IsPlainObject = __webpack_require__(41212);\r\nvar Shader = __webpack_require__(73894);\r\n\r\n/**\r\n * @classdesc\r\n * A single GLSL File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#glsl method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#glsl.\r\n *\r\n * @class GLSLFile\r\n * @extends Phaser.Loader.File\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.GLSLFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.txt`, i.e. if `key` was \"alien\" then the URL will be \"alien.txt\".\r\n * @param {string} [shaderType='fragment'] - The type of shader. Either `fragment` for a fragment shader, or `vertex` for a vertex shader. This is ignored if you load a shader bundle.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n */\r\nvar GLSLFile = new Class({\r\n\r\n Extends: File,\r\n\r\n initialize:\r\n\r\n function GLSLFile (loader, key, url, shaderType, xhrSettings)\r\n {\r\n var extension = 'glsl';\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n url = GetFastValue(config, 'url');\r\n shaderType = GetFastValue(config, 'shaderType', 'fragment');\r\n xhrSettings = GetFastValue(config, 'xhrSettings');\r\n extension = GetFastValue(config, 'extension', extension);\r\n }\r\n else if (shaderType === undefined)\r\n {\r\n shaderType = 'fragment';\r\n }\r\n\r\n var fileConfig = {\r\n type: 'glsl',\r\n cache: loader.cacheManager.shader,\r\n extension: extension,\r\n responseType: 'text',\r\n key: key,\r\n url: url,\r\n config: {\r\n shaderType: shaderType\r\n },\r\n xhrSettings: xhrSettings\r\n };\r\n\r\n File.call(this, loader, fileConfig);\r\n },\r\n\r\n /**\r\n * Called automatically by Loader.nextFile.\r\n * This method controls what extra work this File does with its loaded data.\r\n *\r\n * @method Phaser.Loader.FileTypes.GLSLFile#onProcess\r\n * @since 3.7.0\r\n */\r\n onProcess: function ()\r\n {\r\n this.state = CONST.FILE_PROCESSING;\r\n\r\n this.data = this.xhrLoader.responseText;\r\n\r\n this.onProcessComplete();\r\n },\r\n\r\n /**\r\n * Adds this file to its target cache upon successful loading and processing.\r\n *\r\n * @method Phaser.Loader.FileTypes.GLSLFile#addToCache\r\n * @since 3.17.0\r\n */\r\n addToCache: function ()\r\n {\r\n var data = this.data.split('\\n');\r\n\r\n // Check to see if this is a shader bundle, or raw glsl file.\r\n var block = this.extractBlock(data, 0);\r\n\r\n if (block)\r\n {\r\n while (block)\r\n {\r\n var key = this.getShaderName(block.header);\r\n var shaderType = this.getShaderType(block.header);\r\n var uniforms = this.getShaderUniforms(block.header);\r\n var shaderSrc = block.shader;\r\n\r\n if (this.cache.has(key))\r\n {\r\n var shader = this.cache.get(key);\r\n\r\n if (shaderType === 'fragment')\r\n {\r\n shader.fragmentSrc = shaderSrc;\r\n }\r\n else\r\n {\r\n shader.vertexSrc = shaderSrc;\r\n }\r\n\r\n if (!shader.uniforms)\r\n {\r\n shader.uniforms = uniforms;\r\n }\r\n }\r\n else if (shaderType === 'fragment')\r\n {\r\n this.cache.add(key, new Shader(key, shaderSrc, '', uniforms));\r\n }\r\n else\r\n {\r\n this.cache.add(key, new Shader(key, '', shaderSrc, uniforms));\r\n }\r\n\r\n block = this.extractBlock(data, block.offset);\r\n }\r\n }\r\n else if (this.config.shaderType === 'fragment')\r\n {\r\n // Single shader\r\n this.cache.add(this.key, new Shader(this.key, this.data));\r\n }\r\n else\r\n {\r\n this.cache.add(this.key, new Shader(this.key, '', this.data));\r\n }\r\n },\r\n\r\n /**\r\n * Returns the name of the shader from the header block.\r\n *\r\n * @method Phaser.Loader.FileTypes.GLSLFile#getShaderName\r\n * @since 3.17.0\r\n *\r\n * @param {string[]} headerSource - The header data.\r\n *\r\n * @return {string} The shader name.\r\n */\r\n getShaderName: function (headerSource)\r\n {\r\n for (var i = 0; i < headerSource.length; i++)\r\n {\r\n var line = headerSource[i].trim();\r\n\r\n if (line.substring(0, 5) === 'name:')\r\n {\r\n return line.substring(5).trim();\r\n }\r\n }\r\n\r\n return this.key;\r\n },\r\n\r\n /**\r\n * Returns the type of the shader from the header block.\r\n *\r\n * @method Phaser.Loader.FileTypes.GLSLFile#getShaderType\r\n * @since 3.17.0\r\n *\r\n * @param {string[]} headerSource - The header data.\r\n *\r\n * @return {string} The shader type. Either 'fragment' or 'vertex'.\r\n */\r\n getShaderType: function (headerSource)\r\n {\r\n for (var i = 0; i < headerSource.length; i++)\r\n {\r\n var line = headerSource[i].trim();\r\n\r\n if (line.substring(0, 5) === 'type:')\r\n {\r\n return line.substring(5).trim();\r\n }\r\n }\r\n\r\n return this.config.shaderType;\r\n },\r\n\r\n /**\r\n * Returns the shader uniforms from the header block.\r\n *\r\n * @method Phaser.Loader.FileTypes.GLSLFile#getShaderUniforms\r\n * @since 3.17.0\r\n *\r\n * @param {string[]} headerSource - The header data.\r\n *\r\n * @return {any} The shader uniforms object.\r\n */\r\n getShaderUniforms: function (headerSource)\r\n {\r\n var uniforms = {};\r\n\r\n for (var i = 0; i < headerSource.length; i++)\r\n {\r\n var line = headerSource[i].trim();\r\n\r\n if (line.substring(0, 8) === 'uniform.')\r\n {\r\n var pos = line.indexOf(':');\r\n\r\n if (pos)\r\n {\r\n var key = line.substring(8, pos);\r\n\r\n try\r\n {\r\n uniforms[key] = JSON.parse(line.substring(pos + 1));\r\n }\r\n catch (e)\r\n {\r\n console.warn('Invalid uniform JSON: ' + key);\r\n }\r\n }\r\n }\r\n }\r\n\r\n return uniforms;\r\n },\r\n\r\n /**\r\n * Processes the shader file and extracts the relevant data.\r\n *\r\n * @method Phaser.Loader.FileTypes.GLSLFile#extractBlock\r\n * @private\r\n * @since 3.17.0\r\n *\r\n * @param {string[]} data - The array of shader data to process.\r\n * @param {number} offset - The offset to start processing from.\r\n *\r\n * @return {any} The processed shader block, or null.\r\n */\r\n extractBlock: function (data, offset)\r\n {\r\n var headerStart = -1;\r\n var headerEnd = -1;\r\n var blockEnd = -1;\r\n var headerOpen = false;\r\n var captureSource = false;\r\n var headerSource = [];\r\n var shaderSource = [];\r\n\r\n for (var i = offset; i < data.length; i++)\r\n {\r\n var line = data[i].trim();\r\n\r\n if (line === '---')\r\n {\r\n if (headerStart === -1)\r\n {\r\n headerStart = i;\r\n headerOpen = true;\r\n }\r\n else if (headerOpen)\r\n {\r\n headerEnd = i;\r\n headerOpen = false;\r\n captureSource = true;\r\n }\r\n else\r\n {\r\n // We've hit another --- delimiter, break out\r\n captureSource = false;\r\n break;\r\n }\r\n }\r\n else if (headerOpen)\r\n {\r\n headerSource.push(line);\r\n }\r\n else if (captureSource)\r\n {\r\n shaderSource.push(line);\r\n blockEnd = i;\r\n }\r\n }\r\n\r\n if (!headerOpen && headerEnd !== -1)\r\n {\r\n return { header: headerSource, shader: shaderSource.join('\\n'), offset: blockEnd };\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds a GLSL file, or array of GLSL files, to the current load queue.\r\n * In Phaser 3 GLSL files are just plain Text files at the current moment in time.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.glsl('plasma', 'shaders/Plasma.glsl');\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global Shader Cache upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the Shader Cache.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the Shader Cache first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.glsl({\r\n * key: 'plasma',\r\n * shaderType: 'fragment',\r\n * url: 'shaders/Plasma.glsl'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.GLSLFileConfig` for more details.\r\n *\r\n * Once the file has finished loading you can access it from its Cache using its key:\r\n *\r\n * ```javascript\r\n * this.load.glsl('plasma', 'shaders/Plasma.glsl');\r\n * // and later in your game ...\r\n * var data = this.cache.shader.get('plasma');\r\n * ```\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `FX.` and the key was `Plasma` the final key will be `FX.Plasma` and\r\n * this is what you would use to retrieve the text from the Shader Cache.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"plasma\"\r\n * and no URL is given then the Loader will set the URL to be \"plasma.glsl\". It will always add `.glsl` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * Note: The ability to load this type of file will only be available if the GLSL File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#glsl\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.GLSLFileConfig|Phaser.Types.Loader.FileTypes.GLSLFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.glsl`, i.e. if `key` was \"alien\" then the URL will be \"alien.glsl\".\r\n * @param {string} [shaderType='fragment'] - The type of shader. Either `fragment` for a fragment shader, or `vertex` for a vertex shader. This is ignored if you load a shader bundle.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('glsl', function (key, url, shaderType, xhrSettings)\r\n{\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n // If it's an array it has to be an array of Objects, so we get everything out of the 'key' object\r\n this.addFile(new GLSLFile(this, key[i]));\r\n }\r\n }\r\n else\r\n {\r\n this.addFile(new GLSLFile(this, key, url, shaderType, xhrSettings));\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = GLSLFile;\r\n\n\n/***/ }),\n\n/***/ 89749:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Events = __webpack_require__(54899);\r\nvar File = __webpack_require__(41299);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar GetURL = __webpack_require__(98356);\r\nvar IsPlainObject = __webpack_require__(41212);\r\n\r\n/**\r\n * @classdesc\r\n * A single Audio File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#audio method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#audio.\r\n *\r\n * @class HTML5AudioFile\r\n * @extends Phaser.Loader.File\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.AudioFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string} [urlConfig] - The absolute or relative URL to load this file from.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n */\r\nvar HTML5AudioFile = new Class({\r\n\r\n Extends: File,\r\n\r\n initialize:\r\n\r\n function HTML5AudioFile (loader, key, urlConfig, audioConfig)\r\n {\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n audioConfig = GetFastValue(config, 'config', audioConfig);\r\n }\r\n\r\n var fileConfig = {\r\n type: 'audio',\r\n cache: loader.cacheManager.audio,\r\n extension: urlConfig.type,\r\n key: key,\r\n url: urlConfig.url,\r\n config: audioConfig\r\n };\r\n\r\n File.call(this, loader, fileConfig);\r\n\r\n // New properties specific to this class\r\n this.locked = 'ontouchstart' in window;\r\n this.loaded = false;\r\n this.filesLoaded = 0;\r\n this.filesTotal = 0;\r\n },\r\n\r\n /**\r\n * Called when the file finishes loading.\r\n *\r\n * @method Phaser.Loader.FileTypes.HTML5AudioFile#onLoad\r\n * @since 3.0.0\r\n */\r\n onLoad: function ()\r\n {\r\n if (this.loaded)\r\n {\r\n return;\r\n }\r\n\r\n this.loaded = true;\r\n\r\n this.loader.nextFile(this, true);\r\n },\r\n\r\n /**\r\n * Called if the file errors while loading.\r\n *\r\n * @method Phaser.Loader.FileTypes.HTML5AudioFile#onError\r\n * @since 3.0.0\r\n */\r\n onError: function ()\r\n {\r\n for (var i = 0; i < this.data.length; i++)\r\n {\r\n var audio = this.data[i];\r\n\r\n audio.oncanplaythrough = null;\r\n audio.onerror = null;\r\n }\r\n\r\n this.loader.nextFile(this, false);\r\n },\r\n\r\n /**\r\n * Called during the file load progress. Is sent a DOM ProgressEvent.\r\n *\r\n * @method Phaser.Loader.FileTypes.HTML5AudioFile#onProgress\r\n * @fires Phaser.Loader.Events#FILE_PROGRESS\r\n * @since 3.0.0\r\n */\r\n onProgress: function (event)\r\n {\r\n var audio = event.target;\r\n\r\n audio.oncanplaythrough = null;\r\n audio.onerror = null;\r\n\r\n this.filesLoaded++;\r\n\r\n this.percentComplete = Math.min((this.filesLoaded / this.filesTotal), 1);\r\n\r\n this.loader.emit(Events.FILE_PROGRESS, this, this.percentComplete);\r\n\r\n if (this.filesLoaded === this.filesTotal)\r\n {\r\n this.onLoad();\r\n }\r\n },\r\n\r\n /**\r\n * Called by the Loader, starts the actual file downloading.\r\n * During the load the methods onLoad, onError and onProgress are called, based on the XHR events.\r\n * You shouldn't normally call this method directly, it's meant to be invoked by the Loader.\r\n *\r\n * @method Phaser.Loader.FileTypes.HTML5AudioFile#load\r\n * @since 3.0.0\r\n */\r\n load: function ()\r\n {\r\n this.data = [];\r\n\r\n var instances = (this.config && this.config.instances) || 1;\r\n\r\n this.filesTotal = instances;\r\n this.filesLoaded = 0;\r\n this.percentComplete = 0;\r\n\r\n for (var i = 0; i < instances; i++)\r\n {\r\n var audio = new Audio();\r\n\r\n if (!audio.dataset)\r\n {\r\n audio.dataset = {};\r\n }\r\n\r\n audio.dataset.name = this.key + ('0' + i).slice(-2);\r\n audio.dataset.used = 'false';\r\n\r\n if (this.locked)\r\n {\r\n audio.dataset.locked = 'true';\r\n }\r\n else\r\n {\r\n audio.dataset.locked = 'false';\r\n\r\n audio.preload = 'auto';\r\n audio.oncanplaythrough = this.onProgress.bind(this);\r\n audio.onerror = this.onError.bind(this);\r\n }\r\n\r\n this.data.push(audio);\r\n }\r\n\r\n for (i = 0; i < this.data.length; i++)\r\n {\r\n audio = this.data[i];\r\n audio.src = GetURL(this, this.loader.baseURL);\r\n\r\n if (!this.locked)\r\n {\r\n audio.load();\r\n }\r\n }\r\n\r\n if (this.locked)\r\n {\r\n // This is super-dangerous but works. Race condition potential high.\r\n // Is there another way?\r\n setTimeout(this.onLoad.bind(this));\r\n }\r\n }\r\n\r\n});\r\n\r\nmodule.exports = HTML5AudioFile;\r\n\n\n/***/ }),\n\n/***/ 88470:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(23906);\r\nvar File = __webpack_require__(41299);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar IsPlainObject = __webpack_require__(41212);\r\n\r\n/**\r\n * @classdesc\r\n * A single HTML File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#html method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#html.\r\n *\r\n * @class HTMLFile\r\n * @extends Phaser.Loader.File\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.12.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.HTMLFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.html`, i.e. if `key` was \"alien\" then the URL will be \"alien.html\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n */\r\nvar HTMLFile = new Class({\r\n\r\n Extends: File,\r\n\r\n initialize:\r\n\r\n function HTMLFile (loader, key, url, xhrSettings)\r\n {\r\n var extension = 'html';\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n url = GetFastValue(config, 'url');\r\n xhrSettings = GetFastValue(config, 'xhrSettings');\r\n extension = GetFastValue(config, 'extension', extension);\r\n }\r\n\r\n var fileConfig = {\r\n type: 'text',\r\n cache: loader.cacheManager.html,\r\n extension: extension,\r\n responseType: 'text',\r\n key: key,\r\n url: url,\r\n xhrSettings: xhrSettings\r\n };\r\n\r\n File.call(this, loader, fileConfig);\r\n },\r\n\r\n /**\r\n * Called automatically by Loader.nextFile.\r\n * This method controls what extra work this File does with its loaded data.\r\n *\r\n * @method Phaser.Loader.FileTypes.HTMLFile#onProcess\r\n * @since 3.7.0\r\n */\r\n onProcess: function ()\r\n {\r\n this.state = CONST.FILE_PROCESSING;\r\n\r\n this.data = this.xhrLoader.responseText;\r\n\r\n this.onProcessComplete();\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds an HTML file, or array of HTML files, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.html('story', 'files/LoginForm.html');\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global HTML Cache upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the HTML Cache.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the HTML Cache first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.html({\r\n * key: 'login',\r\n * url: 'files/LoginForm.html'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.HTMLFileConfig` for more details.\r\n *\r\n * Once the file has finished loading you can access it from its Cache using its key:\r\n *\r\n * ```javascript\r\n * this.load.html('login', 'files/LoginForm.html');\r\n * // and later in your game ...\r\n * var data = this.cache.html.get('login');\r\n * ```\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `LEVEL1.` and the key was `Story` the final key will be `LEVEL1.Story` and\r\n * this is what you would use to retrieve the html from the HTML Cache.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"story\"\r\n * and no URL is given then the Loader will set the URL to be \"story.html\". It will always add `.html` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * Note: The ability to load this type of file will only be available if the HTML File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#html\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.12.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.HTMLFileConfig|Phaser.Types.Loader.FileTypes.HTMLFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.html`, i.e. if `key` was \"alien\" then the URL will be \"alien.html\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('html', function (key, url, xhrSettings)\r\n{\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n // If it's an array it has to be an array of Objects, so we get everything out of the 'key' object\r\n this.addFile(new HTMLFile(this, key[i]));\r\n }\r\n }\r\n else\r\n {\r\n this.addFile(new HTMLFile(this, key, url, xhrSettings));\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = HTMLFile;\r\n\n\n/***/ }),\n\n/***/ 14643:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(23906);\r\nvar File = __webpack_require__(41299);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar IsPlainObject = __webpack_require__(41212);\r\n\r\n/**\r\n * @classdesc\r\n * A single HTML File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#htmlTexture method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#htmlTexture.\r\n *\r\n * @class HTMLTextureFile\r\n * @extends Phaser.Loader.File\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.12.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.HTMLTextureFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.png`, i.e. if `key` was \"alien\" then the URL will be \"alien.png\".\r\n * @param {number} [width] - The width of the texture the HTML will be rendered to.\r\n * @param {number} [height] - The height of the texture the HTML will be rendered to.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n */\r\nvar HTMLTextureFile = new Class({\r\n\r\n Extends: File,\r\n\r\n initialize:\r\n\r\n function HTMLTextureFile (loader, key, url, width, height, xhrSettings)\r\n {\r\n if (width === undefined) { width = 512; }\r\n if (height === undefined) { height = 512; }\r\n\r\n var extension = 'html';\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n url = GetFastValue(config, 'url');\r\n xhrSettings = GetFastValue(config, 'xhrSettings');\r\n extension = GetFastValue(config, 'extension', extension);\r\n width = GetFastValue(config, 'width', width);\r\n height = GetFastValue(config, 'height', height);\r\n }\r\n\r\n var fileConfig = {\r\n type: 'html',\r\n cache: loader.textureManager,\r\n extension: extension,\r\n responseType: 'text',\r\n key: key,\r\n url: url,\r\n xhrSettings: xhrSettings,\r\n config: {\r\n width: width,\r\n height: height\r\n }\r\n };\r\n\r\n File.call(this, loader, fileConfig);\r\n },\r\n\r\n /**\r\n * Called automatically by Loader.nextFile.\r\n * This method controls what extra work this File does with its loaded data.\r\n *\r\n * @method Phaser.Loader.FileTypes.HTMLTextureFile#onProcess\r\n * @since 3.7.0\r\n */\r\n onProcess: function ()\r\n {\r\n this.state = CONST.FILE_PROCESSING;\r\n\r\n var w = this.config.width;\r\n var h = this.config.height;\r\n\r\n var data = [];\r\n\r\n data.push('');\r\n data.push('');\r\n data.push('');\r\n data.push(this.xhrLoader.responseText);\r\n data.push('');\r\n data.push('');\r\n data.push('');\r\n\r\n var svg = [ data.join('\\n') ];\r\n var _this = this;\r\n\r\n try\r\n {\r\n var blob = new window.Blob(svg, { type: 'image/svg+xml;charset=utf-8' });\r\n }\r\n catch (e)\r\n {\r\n _this.state = CONST.FILE_ERRORED;\r\n\r\n _this.onProcessComplete();\r\n\r\n return;\r\n }\r\n\r\n this.data = new Image();\r\n\r\n this.data.crossOrigin = this.crossOrigin;\r\n\r\n this.data.onload = function ()\r\n {\r\n File.revokeObjectURL(_this.data);\r\n\r\n _this.onProcessComplete();\r\n };\r\n\r\n this.data.onerror = function ()\r\n {\r\n File.revokeObjectURL(_this.data);\r\n\r\n _this.onProcessError();\r\n };\r\n\r\n File.createObjectURL(this.data, blob, 'image/svg+xml');\r\n },\r\n\r\n /**\r\n * Adds this file to its target cache upon successful loading and processing.\r\n *\r\n * @method Phaser.Loader.FileTypes.HTMLTextureFile#addToCache\r\n * @since 3.7.0\r\n */\r\n addToCache: function ()\r\n {\r\n this.cache.addImage(this.key, this.data);\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds an HTML File, or array of HTML Files, to the current load queue. When the files are loaded they\r\n * will be rendered to textures and stored in the Texture Manager.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.htmlTexture('instructions', 'content/intro.html', 256, 512);\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global Texture Manager upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the Texture Manager.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the Texture Manager first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.htmlTexture({\r\n * key: 'instructions',\r\n * url: 'content/intro.html',\r\n * width: 256,\r\n * height: 512\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.HTMLTextureFileConfig` for more details.\r\n *\r\n * Once the file has finished loading you can use it as a texture for a Game Object by referencing its key:\r\n *\r\n * ```javascript\r\n * this.load.htmlTexture('instructions', 'content/intro.html', 256, 512);\r\n * // and later in your game ...\r\n * this.add.image(x, y, 'instructions');\r\n * ```\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `MENU.` and the key was `Background` the final key will be `MENU.Background` and\r\n * this is what you would use to retrieve the image from the Texture Manager.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"alien\"\r\n * and no URL is given then the Loader will set the URL to be \"alien.html\". It will always add `.html` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * The width and height are the size of the texture to which the HTML will be rendered. It's not possible to determine these\r\n * automatically, so you will need to provide them, either as arguments or in the file config object.\r\n * When the HTML file has loaded a new SVG element is created with a size and viewbox set to the width and height given.\r\n * The SVG file has a body tag added to it, with the HTML file contents included. It then calls `window.Blob` on the SVG,\r\n * and if successful is added to the Texture Manager, otherwise it fails processing. The overall quality of the rendered\r\n * HTML depends on your browser, and some of them may not even support the svg / blob process used. Be aware that there are\r\n * limitations on what HTML can be inside an SVG. You can find out more details in this\r\n * [Mozilla MDN entry](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Drawing_DOM_objects_into_a_canvas).\r\n *\r\n * Note: The ability to load this type of file will only be available if the HTMLTextureFile File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#htmlTexture\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.12.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.HTMLTextureFileConfig|Phaser.Types.Loader.FileTypes.HTMLTextureFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.html`, i.e. if `key` was \"alien\" then the URL will be \"alien.html\".\r\n * @param {number} [width=512] - The width of the texture the HTML will be rendered to.\r\n * @param {number} [height=512] - The height of the texture the HTML will be rendered to.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('htmlTexture', function (key, url, width, height, xhrSettings)\r\n{\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n // If it's an array it has to be an array of Objects, so we get everything out of the 'key' object\r\n this.addFile(new HTMLTextureFile(this, key[i]));\r\n }\r\n }\r\n else\r\n {\r\n this.addFile(new HTMLTextureFile(this, key, url, width, height, xhrSettings));\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = HTMLTextureFile;\r\n\n\n/***/ }),\n\n/***/ 19550:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(23906);\r\nvar File = __webpack_require__(41299);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar IsPlainObject = __webpack_require__(41212);\r\nvar GetURL = __webpack_require__(98356);\r\n\r\n/**\r\n * @classdesc\r\n * A single Image File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#image method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#image.\r\n *\r\n * @class ImageFile\r\n * @extends Phaser.Loader.File\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.ImageFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string|string[]} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.png`, i.e. if `key` was \"alien\" then the URL will be \"alien.png\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n * @param {Phaser.Types.Loader.FileTypes.ImageFrameConfig} [frameConfig] - The frame configuration object. Only provided for, and used by, Sprite Sheets.\r\n */\r\nvar ImageFile = new Class({\r\n\r\n Extends: File,\r\n\r\n initialize:\r\n\r\n function ImageFile (loader, key, url, xhrSettings, frameConfig)\r\n {\r\n var extension = 'png';\r\n var normalMapURL;\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n url = GetFastValue(config, 'url');\r\n normalMapURL = GetFastValue(config, 'normalMap');\r\n xhrSettings = GetFastValue(config, 'xhrSettings');\r\n extension = GetFastValue(config, 'extension', extension);\r\n frameConfig = GetFastValue(config, 'frameConfig');\r\n }\r\n\r\n if (Array.isArray(url))\r\n {\r\n normalMapURL = url[1];\r\n url = url[0];\r\n }\r\n\r\n var fileConfig = {\r\n type: 'image',\r\n cache: loader.textureManager,\r\n extension: extension,\r\n responseType: 'blob',\r\n key: key,\r\n url: url,\r\n xhrSettings: xhrSettings,\r\n config: frameConfig\r\n };\r\n\r\n File.call(this, loader, fileConfig);\r\n\r\n // Do we have a normal map to load as well?\r\n if (normalMapURL)\r\n {\r\n var normalMap = new ImageFile(loader, this.key, normalMapURL, xhrSettings, frameConfig);\r\n\r\n normalMap.type = 'normalMap';\r\n\r\n this.setLink(normalMap);\r\n\r\n loader.addFile(normalMap);\r\n }\r\n\r\n this.useImageElementLoad = (loader.imageLoadType === 'HTMLImageElement') || this.base64;\r\n\r\n if (this.useImageElementLoad)\r\n {\r\n this.load = this.loadImage;\r\n this.onProcess = this.onProcessImage;\r\n }\r\n },\r\n\r\n /**\r\n * Called automatically by Loader.nextFile.\r\n * This method controls what extra work this File does with its loaded data.\r\n *\r\n * @method Phaser.Loader.FileTypes.ImageFile#onProcess\r\n * @since 3.7.0\r\n */\r\n onProcess: function ()\r\n {\r\n this.state = CONST.FILE_PROCESSING;\r\n\r\n this.data = new Image();\r\n\r\n this.data.crossOrigin = this.crossOrigin;\r\n\r\n var _this = this;\r\n\r\n this.data.onload = function ()\r\n {\r\n File.revokeObjectURL(_this.data);\r\n\r\n _this.onProcessComplete();\r\n };\r\n\r\n this.data.onerror = function ()\r\n {\r\n File.revokeObjectURL(_this.data);\r\n\r\n _this.onProcessError();\r\n };\r\n\r\n File.createObjectURL(this.data, this.xhrLoader.response, 'image/png');\r\n },\r\n\r\n /**\r\n * Handles image load processing.\r\n *\r\n * @method Phaser.Loader.FileTypes.ImageFile#onProcessImage\r\n * @private\r\n * @since 3.60.0\r\n */\r\n onProcessImage: function ()\r\n {\r\n var result = this.state;\r\n\r\n this.state = CONST.FILE_PROCESSING;\r\n\r\n if (result === CONST.FILE_LOADED)\r\n {\r\n this.onProcessComplete();\r\n }\r\n else\r\n {\r\n this.onProcessError();\r\n }\r\n },\r\n\r\n /**\r\n * Loads the image using either XHR or an Image tag.\r\n *\r\n * @method Phaser.Loader.FileTypes.ImageFile#loadImage\r\n * @private\r\n * @since 3.60.0\r\n */\r\n loadImage: function ()\r\n {\r\n this.state = CONST.FILE_LOADING;\r\n\r\n this.src = GetURL(this, this.loader.baseURL);\r\n\r\n this.data = new Image();\r\n\r\n this.data.crossOrigin = this.crossOrigin;\r\n\r\n var _this = this;\r\n\r\n this.data.onload = function ()\r\n {\r\n _this.state = CONST.FILE_LOADED;\r\n\r\n _this.loader.nextFile(_this, true);\r\n };\r\n\r\n this.data.onerror = function ()\r\n {\r\n _this.loader.nextFile(_this, false);\r\n };\r\n\r\n this.data.src = this.src;\r\n },\r\n\r\n /**\r\n * Adds this file to its target cache upon successful loading and processing.\r\n *\r\n * @method Phaser.Loader.FileTypes.ImageFile#addToCache\r\n * @since 3.7.0\r\n */\r\n addToCache: function ()\r\n {\r\n // Check if we have a linked normal map\r\n var linkFile = this.linkFile;\r\n\r\n if (linkFile)\r\n {\r\n // We do, but has it loaded?\r\n if (linkFile.state >= CONST.FILE_COMPLETE)\r\n {\r\n if (linkFile.type === 'spritesheet')\r\n {\r\n linkFile.addToCache();\r\n }\r\n else if (this.type === 'normalMap')\r\n {\r\n // linkFile.data = Image\r\n // this.data = Normal Map\r\n this.cache.addImage(this.key, linkFile.data, this.data);\r\n }\r\n else\r\n {\r\n // linkFile.data = Normal Map\r\n // this.data = Image\r\n this.cache.addImage(this.key, this.data, linkFile.data);\r\n }\r\n }\r\n\r\n // Nothing to do here, we'll use the linkFile `addToCache` call\r\n // to process this pair\r\n }\r\n else\r\n {\r\n this.cache.addImage(this.key, this.data);\r\n }\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds an Image, or array of Images, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.image('logo', 'images/phaserLogo.png');\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * Phaser can load all common image types: png, jpg, gif and any other format the browser can natively handle.\r\n * If you try to load an animated gif only the first frame will be rendered. Browsers do not natively support playback\r\n * of animated gifs to Canvas elements.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global Texture Manager upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the Texture Manager.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the Texture Manager first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.image({\r\n * key: 'logo',\r\n * url: 'images/AtariLogo.png'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.ImageFileConfig` for more details.\r\n *\r\n * Once the file has finished loading you can use it as a texture for a Game Object by referencing its key:\r\n *\r\n * ```javascript\r\n * this.load.image('logo', 'images/AtariLogo.png');\r\n * // and later in your game ...\r\n * this.add.image(x, y, 'logo');\r\n * ```\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `MENU.` and the key was `Background` the final key will be `MENU.Background` and\r\n * this is what you would use to retrieve the image from the Texture Manager.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"alien\"\r\n * and no URL is given then the Loader will set the URL to be \"alien.png\". It will always add `.png` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * Phaser also supports the automatic loading of associated normal maps. If you have a normal map to go with this image,\r\n * then you can specify it by providing an array as the `url` where the second element is the normal map:\r\n *\r\n * ```javascript\r\n * this.load.image('logo', [ 'images/AtariLogo.png', 'images/AtariLogo-n.png' ]);\r\n * ```\r\n *\r\n * Or, if you are using a config object use the `normalMap` property:\r\n *\r\n * ```javascript\r\n * this.load.image({\r\n * key: 'logo',\r\n * url: 'images/AtariLogo.png',\r\n * normalMap: 'images/AtariLogo-n.png'\r\n * });\r\n * ```\r\n *\r\n * The normal map file is subject to the same conditions as the image file with regard to the path, baseURL, CORs and XHR Settings.\r\n * Normal maps are a WebGL only feature.\r\n *\r\n * In Phaser 3.60 a new property was added that allows you to control how images are loaded. By default, images are loaded via XHR as Blobs.\r\n * However, you can set `loader.imageLoadType: \"HTMLImageElement\"` in the Game Configuration and instead, the Loader will load all images\r\n * via the Image tag instead.\r\n *\r\n * Note: The ability to load this type of file will only be available if the Image File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#image\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.ImageFileConfig|Phaser.Types.Loader.FileTypes.ImageFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string|string[]} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.png`, i.e. if `key` was \"alien\" then the URL will be \"alien.png\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('image', function (key, url, xhrSettings)\r\n{\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n // If it's an array it has to be an array of Objects, so we get everything out of the 'key' object\r\n this.addFile(new ImageFile(this, key[i]));\r\n }\r\n }\r\n else\r\n {\r\n this.addFile(new ImageFile(this, key, url, xhrSettings));\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = ImageFile;\r\n\n\n/***/ }),\n\n/***/ 518:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(23906);\r\nvar File = __webpack_require__(41299);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar GetValue = __webpack_require__(35154);\r\nvar IsPlainObject = __webpack_require__(41212);\r\n\r\n/**\r\n * @classdesc\r\n * A single JSON File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#json method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#json.\r\n *\r\n * @class JSONFile\r\n * @extends Phaser.Loader.File\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.JSONFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {(object|string)} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.json`, i.e. if `key` was \"alien\" then the URL will be \"alien.json\". Or, can be a fully formed JSON Object.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n * @param {string} [dataKey] - When the JSON file loads only this property will be stored in the Cache.\r\n */\r\nvar JSONFile = new Class({\r\n\r\n Extends: File,\r\n\r\n initialize:\r\n\r\n // url can either be a string, in which case it is treated like a proper url, or an object, in which case it is treated as a ready-made JS Object\r\n // dataKey allows you to pluck a specific object out of the JSON and put just that into the cache, rather than the whole thing\r\n\r\n function JSONFile (loader, key, url, xhrSettings, dataKey)\r\n {\r\n var extension = 'json';\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n url = GetFastValue(config, 'url');\r\n xhrSettings = GetFastValue(config, 'xhrSettings');\r\n extension = GetFastValue(config, 'extension', extension);\r\n dataKey = GetFastValue(config, 'dataKey', dataKey);\r\n }\r\n\r\n var fileConfig = {\r\n type: 'json',\r\n cache: loader.cacheManager.json,\r\n extension: extension,\r\n responseType: 'text',\r\n key: key,\r\n url: url,\r\n xhrSettings: xhrSettings,\r\n config: dataKey\r\n };\r\n\r\n File.call(this, loader, fileConfig);\r\n\r\n // A JSON object has been provided (instead of a URL), so we'll use it directly as the File.data. No need to load it.\r\n if (IsPlainObject(url))\r\n {\r\n if (dataKey)\r\n {\r\n this.data = GetValue(url, dataKey);\r\n }\r\n else\r\n {\r\n this.data = url;\r\n }\r\n\r\n this.state = CONST.FILE_POPULATED;\r\n }\r\n },\r\n\r\n /**\r\n * Called automatically by Loader.nextFile.\r\n * This method controls what extra work this File does with its loaded data.\r\n *\r\n * @method Phaser.Loader.FileTypes.JSONFile#onProcess\r\n * @since 3.7.0\r\n */\r\n onProcess: function ()\r\n {\r\n if (this.state !== CONST.FILE_POPULATED)\r\n {\r\n this.state = CONST.FILE_PROCESSING;\r\n\r\n try\r\n {\r\n var json = JSON.parse(this.xhrLoader.responseText);\r\n }\r\n catch (e)\r\n {\r\n this.onProcessError();\r\n\r\n throw e;\r\n }\r\n\r\n var key = this.config;\r\n\r\n if (typeof key === 'string')\r\n {\r\n this.data = GetValue(json, key, json);\r\n }\r\n else\r\n {\r\n this.data = json;\r\n }\r\n }\r\n\r\n this.onProcessComplete();\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds a JSON file, or array of JSON files, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.json('wavedata', 'files/AlienWaveData.json');\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global JSON Cache upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the JSON Cache.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the JSON Cache first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.json({\r\n * key: 'wavedata',\r\n * url: 'files/AlienWaveData.json'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.JSONFileConfig` for more details.\r\n *\r\n * Once the file has finished loading you can access it from its Cache using its key:\r\n *\r\n * ```javascript\r\n * this.load.json('wavedata', 'files/AlienWaveData.json');\r\n * // and later in your game ...\r\n * var data = this.cache.json.get('wavedata');\r\n * ```\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `LEVEL1.` and the key was `Waves` the final key will be `LEVEL1.Waves` and\r\n * this is what you would use to retrieve the text from the JSON Cache.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"data\"\r\n * and no URL is given then the Loader will set the URL to be \"data.json\". It will always add `.json` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * You can also optionally provide a `dataKey` to use. This allows you to extract only a part of the JSON and store it in the Cache,\r\n * rather than the whole file. For example, if your JSON data had a structure like this:\r\n *\r\n * ```json\r\n * {\r\n * \"level1\": {\r\n * \"baddies\": {\r\n * \"aliens\": {},\r\n * \"boss\": {}\r\n * }\r\n * },\r\n * \"level2\": {},\r\n * \"level3\": {}\r\n * }\r\n * ```\r\n *\r\n * And you only wanted to store the `boss` data in the Cache, then you could pass `level1.baddies.boss`as the `dataKey`.\r\n *\r\n * Note: The ability to load this type of file will only be available if the JSON File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#json\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.JSONFileConfig|Phaser.Types.Loader.FileTypes.JSONFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {(object|string)} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.json`, i.e. if `key` was \"alien\" then the URL will be \"alien.json\". Or, can be a fully formed JSON Object.\r\n * @param {string} [dataKey] - When the JSON file loads only this property will be stored in the Cache.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('json', function (key, url, dataKey, xhrSettings)\r\n{\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n // If it's an array it has to be an array of Objects, so we get everything out of the 'key' object\r\n this.addFile(new JSONFile(this, key[i]));\r\n }\r\n }\r\n else\r\n {\r\n this.addFile(new JSONFile(this, key, url, xhrSettings, dataKey));\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = JSONFile;\r\n\n\n/***/ }),\n\n/***/ 59327:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar ImageFile = __webpack_require__(19550);\r\nvar IsPlainObject = __webpack_require__(41212);\r\nvar JSONFile = __webpack_require__(518);\r\nvar MultiFile = __webpack_require__(26430);\r\n\r\n/**\r\n * @classdesc\r\n * A single Multi Texture Atlas File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#multiatlas method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#multiatlas.\r\n *\r\n * @class MultiAtlasFile\r\n * @extends Phaser.Loader.MultiFile\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.7.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.MultiAtlasFileConfig)} key - The key of the file. Must be unique within both the Loader and the Texture Manager. Or a config object.\r\n * @param {string} [atlasURL] - The absolute or relative URL to load the multi atlas json file from.\r\n * @param {string} [path] - Optional path to use when loading the textures defined in the atlas data.\r\n * @param {string} [baseURL] - Optional Base URL to use when loading the textures defined in the atlas data.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [atlasXhrSettings] - Extra XHR Settings specifically for the atlas json file.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - Extra XHR Settings specifically for the texture files.\r\n */\r\nvar MultiAtlasFile = new Class({\r\n\r\n Extends: MultiFile,\r\n\r\n initialize:\r\n\r\n function MultiAtlasFile (loader, key, atlasURL, path, baseURL, atlasXhrSettings, textureXhrSettings)\r\n {\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n\r\n if (GetFastValue(config, 'url', false))\r\n {\r\n atlasURL = GetFastValue(config, 'url');\r\n }\r\n else\r\n {\r\n atlasURL = GetFastValue(config, 'atlasURL');\r\n }\r\n\r\n atlasXhrSettings = GetFastValue(config, 'xhrSettings');\r\n path = GetFastValue(config, 'path');\r\n baseURL = GetFastValue(config, 'baseURL');\r\n textureXhrSettings = GetFastValue(config, 'textureXhrSettings');\r\n }\r\n\r\n var data = new JSONFile(loader, key, atlasURL, atlasXhrSettings);\r\n\r\n MultiFile.call(this, loader, 'multiatlas', key, [ data ]);\r\n\r\n this.config.path = path;\r\n this.config.baseURL = baseURL;\r\n this.config.textureXhrSettings = textureXhrSettings;\r\n },\r\n\r\n /**\r\n * Called by each File when it finishes loading.\r\n *\r\n * @method Phaser.Loader.FileTypes.MultiAtlasFile#onFileComplete\r\n * @since 3.7.0\r\n *\r\n * @param {Phaser.Loader.File} file - The File that has completed processing.\r\n */\r\n onFileComplete: function (file)\r\n {\r\n var index = this.files.indexOf(file);\r\n\r\n if (index !== -1)\r\n {\r\n this.pending--;\r\n\r\n if (file.type === 'json' && file.data.hasOwnProperty('textures'))\r\n {\r\n // Inspect the data for the files to now load\r\n var textures = file.data.textures;\r\n\r\n var config = this.config;\r\n var loader = this.loader;\r\n\r\n var currentBaseURL = loader.baseURL;\r\n var currentPath = loader.path;\r\n var currentPrefix = loader.prefix;\r\n\r\n var baseURL = GetFastValue(config, 'baseURL', this.baseURL);\r\n var path = GetFastValue(config, 'path', this.path);\r\n var prefix = GetFastValue(config, 'prefix', this.prefix);\r\n var textureXhrSettings = GetFastValue(config, 'textureXhrSettings');\r\n\r\n loader.setBaseURL(baseURL);\r\n loader.setPath(path);\r\n loader.setPrefix(prefix);\r\n\r\n for (var i = 0; i < textures.length; i++)\r\n {\r\n // \"image\": \"texture-packer-multi-atlas-0.png\",\r\n var textureURL = textures[i].image;\r\n\r\n var key = 'MA' + this.multiKeyIndex + '_' + textureURL;\r\n\r\n var image = new ImageFile(loader, key, textureURL, textureXhrSettings);\r\n\r\n this.addToMultiFile(image);\r\n\r\n loader.addFile(image);\r\n\r\n // \"normalMap\": \"texture-packer-multi-atlas-0_n.png\",\r\n if (textures[i].normalMap)\r\n {\r\n var normalMap = new ImageFile(loader, key, textures[i].normalMap, textureXhrSettings);\r\n\r\n normalMap.type = 'normalMap';\r\n\r\n image.setLink(normalMap);\r\n\r\n this.addToMultiFile(normalMap);\r\n\r\n loader.addFile(normalMap);\r\n }\r\n }\r\n\r\n // Reset the loader settings\r\n loader.setBaseURL(currentBaseURL);\r\n loader.setPath(currentPath);\r\n loader.setPrefix(currentPrefix);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Adds this file to its target cache upon successful loading and processing.\r\n *\r\n * @method Phaser.Loader.FileTypes.MultiAtlasFile#addToCache\r\n * @since 3.7.0\r\n */\r\n addToCache: function ()\r\n {\r\n if (this.isReadyToProcess())\r\n {\r\n var fileJSON = this.files[0];\r\n\r\n var data = [];\r\n var images = [];\r\n var normalMaps = [];\r\n\r\n for (var i = 1; i < this.files.length; i++)\r\n {\r\n var file = this.files[i];\r\n\r\n if (file.type === 'normalMap')\r\n {\r\n continue;\r\n }\r\n\r\n var pos = file.key.indexOf('_');\r\n var key = file.key.substr(pos + 1);\r\n\r\n var image = file.data;\r\n\r\n // Now we need to find out which json entry this mapped to\r\n for (var t = 0; t < fileJSON.data.textures.length; t++)\r\n {\r\n var item = fileJSON.data.textures[t];\r\n\r\n if (item.image === key)\r\n {\r\n images.push(image);\r\n\r\n data.push(item);\r\n\r\n if (file.linkFile)\r\n {\r\n normalMaps.push(file.linkFile.data);\r\n }\r\n\r\n break;\r\n }\r\n }\r\n }\r\n\r\n if (normalMaps.length === 0)\r\n {\r\n normalMaps = undefined;\r\n }\r\n\r\n this.loader.textureManager.addAtlasJSONArray(this.key, images, data, normalMaps);\r\n\r\n this.complete = true;\r\n }\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds a Multi Texture Atlas, or array of multi atlases, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.multiatlas('level1', 'images/Level1.json');\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * If you call this from outside of `preload` then you are responsible for starting the Loader afterwards and monitoring\r\n * its events to know when it's safe to use the asset. Please see the Phaser.Loader.LoaderPlugin class for more details.\r\n *\r\n * Phaser expects the atlas data to be provided in a JSON file as exported from the application Texture Packer,\r\n * version 4.6.3 or above, where you have made sure to use the Phaser 3 Export option.\r\n *\r\n * The way it works internally is that you provide a URL to the JSON file. Phaser then loads this JSON, parses it and\r\n * extracts which texture files it also needs to load to complete the process. If the JSON also defines normal maps,\r\n * Phaser will load those as well.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global Texture Manager upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the Texture Manager.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the Texture Manager first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.multiatlas({\r\n * key: 'level1',\r\n * atlasURL: 'images/Level1.json'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.MultiAtlasFileConfig` for more details.\r\n *\r\n * Instead of passing a URL for the atlas JSON data you can also pass in a well formed JSON object instead.\r\n *\r\n * Once the atlas has finished loading you can use frames from it as textures for a Game Object by referencing its key:\r\n *\r\n * ```javascript\r\n * this.load.multiatlas('level1', 'images/Level1.json');\r\n * // and later in your game ...\r\n * this.add.image(x, y, 'level1', 'background');\r\n * ```\r\n *\r\n * To get a list of all available frames within an atlas please consult your Texture Atlas software.\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `MENU.` and the key was `Background` the final key will be `MENU.Background` and\r\n * this is what you would use to retrieve the image from the Texture Manager.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"alien\"\r\n * and no URL is given then the Loader will set the URL to be \"alien.png\". It will always add `.png` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * Note: The ability to load this type of file will only be available if the Multi Atlas File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#multiatlas\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.7.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.MultiAtlasFileConfig|Phaser.Types.Loader.FileTypes.MultiAtlasFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string} [atlasURL] - The absolute or relative URL to load the texture atlas json data file from. If undefined or `null` it will be set to `.json`, i.e. if `key` was \"alien\" then the URL will be \"alien.json\".\r\n * @param {string} [path] - Optional path to use when loading the textures defined in the atlas data.\r\n * @param {string} [baseURL] - Optional Base URL to use when loading the textures defined in the atlas data.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [atlasXhrSettings] - An XHR Settings configuration object for the atlas json file. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('multiatlas', function (key, atlasURL, path, baseURL, atlasXhrSettings)\r\n{\r\n var multifile;\r\n\r\n // Supports an Object file definition in the key argument\r\n // Or an array of objects in the key argument\r\n // Or a single entry where all arguments have been defined\r\n\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n multifile = new MultiAtlasFile(this, key[i]);\r\n\r\n this.addFile(multifile.files);\r\n }\r\n }\r\n else\r\n {\r\n multifile = new MultiAtlasFile(this, key, atlasURL, path, baseURL, atlasXhrSettings);\r\n\r\n this.addFile(multifile.files);\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = MultiAtlasFile;\r\n\n\n/***/ }),\n\n/***/ 99297:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar IsPlainObject = __webpack_require__(41212);\r\nvar MultiFile = __webpack_require__(26430);\r\nvar ScriptFile = __webpack_require__(34328);\r\n\r\n/**\r\n * @classdesc\r\n * A Multi Script File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#scripts method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#scripts.\r\n *\r\n * @class MultiScriptFile\r\n * @extends Phaser.Loader.MultiFile\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.17.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.MultiScriptFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string[]} [url] - An array of absolute or relative URLs to load the script files from. They are processed in the order given in the array.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object for the script files. Used in replacement of the Loaders default XHR Settings.\r\n */\r\nvar MultiScriptFile = new Class({\r\n\r\n Extends: MultiFile,\r\n\r\n initialize:\r\n\r\n function MultiScriptFile (loader, key, url, xhrSettings)\r\n {\r\n var extension = 'js';\r\n var files = [];\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n url = GetFastValue(config, 'url');\r\n xhrSettings = GetFastValue(config, 'xhrSettings');\r\n extension = GetFastValue(config, 'extension', extension);\r\n }\r\n\r\n if (!Array.isArray(url))\r\n {\r\n url = [ url ];\r\n }\r\n\r\n for (var i = 0; i < url.length; i++)\r\n {\r\n var scriptFile = new ScriptFile(loader, {\r\n key: key + '_' + i.toString(),\r\n url: url[i],\r\n extension: extension,\r\n xhrSettings: xhrSettings\r\n });\r\n\r\n // Override the default onProcess function\r\n scriptFile.onProcess = function ()\r\n {\r\n this.onProcessComplete();\r\n };\r\n\r\n files.push(scriptFile);\r\n }\r\n\r\n MultiFile.call(this, loader, 'scripts', key, files);\r\n },\r\n\r\n /**\r\n * Adds this file to its target cache upon successful loading and processing.\r\n *\r\n * @method Phaser.Loader.FileTypes.MultiScriptFile#addToCache\r\n * @since 3.17.0\r\n */\r\n addToCache: function ()\r\n {\r\n if (this.isReadyToProcess())\r\n {\r\n for (var i = 0; i < this.files.length; i++)\r\n {\r\n var file = this.files[i];\r\n\r\n file.data = document.createElement('script');\r\n file.data.language = 'javascript';\r\n file.data.type = 'text/javascript';\r\n file.data.defer = false;\r\n file.data.text = file.xhrLoader.responseText;\r\n\r\n document.head.appendChild(file.data);\r\n }\r\n\r\n this.complete = true;\r\n }\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds an array of Script files to the current load queue.\r\n *\r\n * The difference between this and the `ScriptFile` file type is that you give an array of scripts to this method,\r\n * and the scripts are then processed _exactly_ in that order. This allows you to load a bunch of scripts that\r\n * may have dependencies on each other without worrying about the async nature of traditional script loading.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.scripts('PostProcess', [\r\n * 'libs/shaders/CopyShader.js',\r\n * 'libs/postprocessing/EffectComposer.js',\r\n * 'libs/postprocessing/RenderPass.js',\r\n * 'libs/postprocessing/MaskPass.js',\r\n * 'libs/postprocessing/ShaderPass.js',\r\n * 'libs/postprocessing/AfterimagePass.js'\r\n * ]);\r\n * }\r\n * ```\r\n *\r\n * In the code above the script files will all be loaded in parallel but only processed (i.e. invoked) in the exact\r\n * order given in the array.\r\n *\r\n * The files are **not** loaded right away. They are added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the files are queued\r\n * it means you cannot use the files immediately after calling this method, but must wait for the files to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * The key must be a unique String and not already in-use by another file in the Loader.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.scripts({\r\n * key: 'PostProcess',\r\n * url: [\r\n * 'libs/shaders/CopyShader.js',\r\n * 'libs/postprocessing/EffectComposer.js',\r\n * 'libs/postprocessing/RenderPass.js',\r\n * 'libs/postprocessing/MaskPass.js',\r\n * 'libs/postprocessing/ShaderPass.js',\r\n * 'libs/postprocessing/AfterimagePass.js'\r\n * ]\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.MultiScriptFileConfig` for more details.\r\n *\r\n * Once all the files have finished loading they will automatically be converted into a script element\r\n * via `document.createElement('script')`. They will have their language set to JavaScript, `defer` set to\r\n * false and then the resulting element will be appended to `document.head`. Any code then in the\r\n * script will be executed. This is done in the exact order the files are specified in the url array.\r\n *\r\n * The URLs can be relative or absolute. If the URLs are relative the `Loader.baseURL` and `Loader.path` values will be prepended to them.\r\n *\r\n * Note: The ability to load this type of file will only be available if the MultiScript File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#scripts\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.17.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.MultiScriptFileConfig|Phaser.Types.Loader.FileTypes.MultiScriptFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string[]} [url] - An array of absolute or relative URLs to load the script files from. They are processed in the order given in the array.\r\n * @param {string} [extension='js'] - The default file extension to use if no url is provided.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for these files.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('scripts', function (key, url, xhrSettings)\r\n{\r\n var multifile;\r\n\r\n // Supports an Object file definition in the key argument\r\n // Or an array of objects in the key argument\r\n // Or a single entry where all arguments have been defined\r\n\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n multifile = new MultiScriptFile(this, key[i]);\r\n\r\n this.addFile(multifile.files);\r\n }\r\n }\r\n else\r\n {\r\n multifile = new MultiScriptFile(this, key, url, xhrSettings);\r\n\r\n this.addFile(multifile.files);\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = MultiScriptFile;\r\n\n\n/***/ }),\n\n/***/ 41846:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar IsPlainObject = __webpack_require__(41212);\r\nvar MultiFile = __webpack_require__(26430);\r\nvar ParseObj = __webpack_require__(85048);\r\nvar ParseObjMaterial = __webpack_require__(61485);\r\nvar TextFile = __webpack_require__(78776);\r\n\r\n/**\r\n * @classdesc\r\n * A single Wavefront OBJ File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#obj method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#obj.\r\n *\r\n * @class OBJFile\r\n * @extends Phaser.Loader.MultiFile\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.OBJFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string} [objURL] - The absolute or relative URL to load the obj file from. If undefined or `null` it will be set to `.obj`, i.e. if `key` was \"alien\" then the URL will be \"alien.obj\".\r\n * @param {string} [matURL] - The absolute or relative URL to load the material file from. If undefined or `null` it will be set to `.mat`, i.e. if `key` was \"alien\" then the URL will be \"alien.mat\".\r\n * @param {boolean} [flipUV] - Flip the UV coordinates stored in the model data?\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for these files.\r\n */\r\nvar OBJFile = new Class({\r\n\r\n Extends: MultiFile,\r\n\r\n initialize:\r\n\r\n function OBJFile (loader, key, objURL, matURL, flipUV, xhrSettings)\r\n {\r\n var obj;\r\n var mat;\r\n\r\n var cache = loader.cacheManager.obj;\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n\r\n obj = new TextFile(loader, {\r\n key: key,\r\n type: 'obj',\r\n cache: cache,\r\n url: GetFastValue(config, 'url'),\r\n extension: GetFastValue(config, 'extension', 'obj'),\r\n xhrSettings: GetFastValue(config, 'xhrSettings'),\r\n config: {\r\n flipUV: GetFastValue(config, 'flipUV', flipUV)\r\n }\r\n });\r\n\r\n matURL = GetFastValue(config, 'matURL');\r\n\r\n if (matURL)\r\n {\r\n mat = new TextFile(loader, {\r\n key: key,\r\n type: 'mat',\r\n cache: cache,\r\n url: matURL,\r\n extension: GetFastValue(config, 'matExtension', 'mat'),\r\n xhrSettings: GetFastValue(config, 'xhrSettings')\r\n });\r\n }\r\n }\r\n else\r\n {\r\n obj = new TextFile(loader, {\r\n key: key,\r\n url: objURL,\r\n type: 'obj',\r\n cache: cache,\r\n extension: 'obj',\r\n xhrSettings: xhrSettings,\r\n config: {\r\n flipUV: flipUV\r\n }\r\n });\r\n\r\n if (matURL)\r\n {\r\n mat = new TextFile(loader, {\r\n key: key,\r\n url: matURL,\r\n type: 'mat',\r\n cache: cache,\r\n extension: 'mat',\r\n xhrSettings: xhrSettings\r\n });\r\n }\r\n }\r\n\r\n MultiFile.call(this, loader, 'obj', key, [ obj, mat ]);\r\n },\r\n\r\n /**\r\n * Adds this file to its target cache upon successful loading and processing.\r\n *\r\n * @method Phaser.Loader.FileTypes.OBJFile#addToCache\r\n * @since 3.50.0\r\n */\r\n addToCache: function ()\r\n {\r\n if (this.isReadyToProcess())\r\n {\r\n var obj = this.files[0];\r\n var mat = this.files[1];\r\n\r\n var objData = ParseObj(obj.data, obj.config.flipUV);\r\n\r\n if (mat)\r\n {\r\n objData.materials = ParseObjMaterial(mat.data);\r\n }\r\n\r\n obj.cache.add(obj.key, objData);\r\n\r\n this.complete = true;\r\n }\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds a Wavefront OBJ file, or array of OBJ files, to the current load queue.\r\n *\r\n * Note: You should ensure your 3D package has triangulated the OBJ file prior to export.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.obj('ufo', 'files/spaceship.obj');\r\n * }\r\n * ```\r\n *\r\n * You can optionally also load a Wavefront Material file as well, by providing the 3rd parameter:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.obj('ufo', 'files/spaceship.obj', 'files/spaceship.mtl');\r\n * }\r\n * ```\r\n *\r\n * If given, the material will be parsed and stored along with the obj data in the cache.\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global OBJ Cache upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the OBJ Cache.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the OBJ Cache first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.obj({\r\n * key: 'ufo',\r\n * url: 'files/spaceship.obj',\r\n * matURL: 'files/spaceship.mtl',\r\n * flipUV: true\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.OBJFileConfig` for more details.\r\n *\r\n * Once the file has finished loading you can access it from its Cache using its key:\r\n *\r\n * ```javascript\r\n * this.load.obj('ufo', 'files/spaceship.obj');\r\n * // and later in your game ...\r\n * var data = this.cache.obj.get('ufo');\r\n * ```\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `LEVEL1.` and the key was `Story` the final key will be `LEVEL1.Story` and\r\n * this is what you would use to retrieve the obj from the OBJ Cache.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"story\"\r\n * and no URL is given then the Loader will set the URL to be \"story.obj\". It will always add `.obj` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * Note: The ability to load this type of file will only be available if the OBJ File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#obj\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.50.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.OBJFileConfig|Phaser.Types.Loader.FileTypes.OBJFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string} [objURL] - The absolute or relative URL to load the obj file from. If undefined or `null` it will be set to `.obj`, i.e. if `key` was \"alien\" then the URL will be \"alien.obj\".\r\n * @param {string} [matURL] - Optional absolute or relative URL to load the obj material file from.\r\n * @param {boolean} [flipUV] - Flip the UV coordinates stored in the model data?\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('obj', function (key, objURL, matURL, flipUVs, xhrSettings)\r\n{\r\n var multifile;\r\n\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n multifile = new OBJFile(this, key[i]);\r\n\r\n // If it's an array it has to be an array of Objects, so we get everything out of the 'key' object\r\n this.addFile(multifile.files);\r\n }\r\n }\r\n else\r\n {\r\n multifile = new OBJFile(this, key, objURL, matURL, flipUVs, xhrSettings);\r\n\r\n this.addFile(multifile.files);\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = OBJFile;\r\n\n\n/***/ }),\n\n/***/ 58610:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(23906);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar JSONFile = __webpack_require__(518);\r\n\r\n/**\r\n * @classdesc\r\n * A single JSON Pack File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#pack method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#pack.\r\n *\r\n * @class PackFile\r\n * @extends Phaser.Loader.File\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.7.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.PackFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {(string|any)} [url] - The absolute or relative URL to load this file from or a ready formed JSON object. If undefined or `null` it will be set to `.json`, i.e. if `key` was \"alien\" then the URL will be \"alien.json\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n * @param {string} [dataKey] - When the JSON file loads only this property will be stored in the Cache.\r\n */\r\nvar PackFile = new Class({\r\n\r\n Extends: JSONFile,\r\n\r\n initialize:\r\n\r\n // url can either be a string, in which case it is treated like a proper url, or an object, in which case it is treated as a ready-made JS Object\r\n // dataKey allows you to pluck a specific object out of the JSON and put just that into the cache, rather than the whole thing\r\n\r\n function PackFile (loader, key, url, xhrSettings, dataKey)\r\n {\r\n JSONFile.call(this, loader, key, url, xhrSettings, dataKey);\r\n\r\n this.type = 'packfile';\r\n },\r\n\r\n /**\r\n * Called automatically by Loader.nextFile.\r\n * This method controls what extra work this File does with its loaded data.\r\n *\r\n * @method Phaser.Loader.FileTypes.PackFile#onProcess\r\n * @since 3.7.0\r\n */\r\n onProcess: function ()\r\n {\r\n if (this.state !== CONST.FILE_POPULATED)\r\n {\r\n this.state = CONST.FILE_PROCESSING;\r\n\r\n this.data = JSON.parse(this.xhrLoader.responseText);\r\n }\r\n\r\n if (this.data.hasOwnProperty('files') && this.config)\r\n {\r\n var newData = {};\r\n\r\n newData[this.config] = this.data;\r\n\r\n this.data = newData;\r\n }\r\n\r\n // Let's pass the pack file data over to the Loader ...\r\n this.loader.addPack(this.data, this.config);\r\n\r\n this.onProcessComplete();\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds a JSON File Pack, or array of packs, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.pack('level1', 'data/Level1Files.json');\r\n * }\r\n * ```\r\n *\r\n * A File Pack is a JSON file (or object) that contains details about other files that should be added into the Loader.\r\n * Here is a small example:\r\n *\r\n * ```json\r\n * {\r\n * \"test1\": {\r\n * \"files\": [\r\n * {\r\n * \"type\": \"image\",\r\n * \"key\": \"taikodrummaster\",\r\n * \"url\": \"assets/pics/taikodrummaster.jpg\"\r\n * },\r\n * {\r\n * \"type\": \"image\",\r\n * \"key\": \"sukasuka-chtholly\",\r\n * \"url\": \"assets/pics/sukasuka-chtholly.png\"\r\n * }\r\n * ]\r\n * },\r\n * \"meta\": {\r\n * \"generated\": \"1401380327373\",\r\n * \"app\": \"Phaser 3 Asset Packer\",\r\n * \"url\": \"https://phaser.io\",\r\n * \"version\": \"1.0\",\r\n * \"copyright\": \"Photon Storm Ltd. 2018\"\r\n * }\r\n * }\r\n * ```\r\n *\r\n * The pack can be split into sections. In the example above you'll see a section called `test1`. You can tell\r\n * the `load.pack` method to parse only a particular section of a pack. The pack is stored in the JSON Cache,\r\n * so you can pass it to the Loader to process additional sections as needed in your game, or you can just load\r\n * them all at once without specifying anything.\r\n *\r\n * The pack file can contain an entry for any type of file that Phaser can load. The object structures exactly\r\n * match that of the file type configs, and all properties available within the file type configs can be used\r\n * in the pack file too. An entry's `type` is the name of the Loader method that will load it, e.g., 'image'.\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * If you call this from outside of `preload` then you are responsible for starting the Loader afterwards and monitoring\r\n * its events to know when it's safe to use the asset. Please see the Phaser.Loader.LoaderPlugin class for more details.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global JSON Cache upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the JSON Cache.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the JSON Cache first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.pack({\r\n * key: 'level1',\r\n * url: 'data/Level1Files.json'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.PackFileConfig` for more details.\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `LEVEL1.` and the key was `Waves` the final key will be `LEVEL1.Waves` and\r\n * this is what you would use to retrieve the text from the JSON Cache.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"data\"\r\n * and no URL is given then the Loader will set the URL to be \"data.json\". It will always add `.json` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * You can also optionally provide a `dataKey` to use. This allows you to extract only a part of the JSON and store it in the Cache,\r\n * rather than the whole file. For example, if your JSON data had a structure like this:\r\n *\r\n * ```json\r\n * {\r\n * \"level1\": {\r\n * \"baddies\": {\r\n * \"aliens\": {},\r\n * \"boss\": {}\r\n * }\r\n * },\r\n * \"level2\": {},\r\n * \"level3\": {}\r\n * }\r\n * ```\r\n *\r\n * And you only wanted to store the `boss` data in the Cache, then you could pass `level1.baddies.boss`as the `dataKey`.\r\n *\r\n * Note: The ability to load this type of file will only be available if the Pack File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#pack\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.7.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.PackFileConfig|Phaser.Types.Loader.FileTypes.PackFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.json`, i.e. if `key` was \"alien\" then the URL will be \"alien.json\".\r\n * @param {string} [dataKey] - When the JSON file loads only this property will be stored in the Cache.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('pack', function (key, url, dataKey, xhrSettings)\r\n{\r\n // Supports an Object file definition in the key argument\r\n // Or an array of objects in the key argument\r\n // Or a single entry where all arguments have been defined\r\n\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n this.addFile(new PackFile(this, key[i]));\r\n }\r\n }\r\n else\r\n {\r\n this.addFile(new PackFile(this, key, url, xhrSettings, dataKey));\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = PackFile;\r\n\n\n/***/ }),\n\n/***/ 48988:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(23906);\r\nvar File = __webpack_require__(41299);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar IsPlainObject = __webpack_require__(41212);\r\n\r\n/**\r\n * @classdesc\r\n * A single Plugin Script File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#plugin method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#plugin.\r\n *\r\n * @class PluginFile\r\n * @extends Phaser.Loader.File\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.PluginFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.js`, i.e. if `key` was \"alien\" then the URL will be \"alien.js\".\r\n * @param {boolean} [start=false] - Automatically start the plugin after loading?\r\n * @param {string} [mapping] - If this plugin is to be injected into the Scene, this is the property key used.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n */\r\nvar PluginFile = new Class({\r\n\r\n Extends: File,\r\n\r\n initialize:\r\n\r\n function PluginFile (loader, key, url, start, mapping, xhrSettings)\r\n {\r\n var extension = 'js';\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n url = GetFastValue(config, 'url');\r\n xhrSettings = GetFastValue(config, 'xhrSettings');\r\n extension = GetFastValue(config, 'extension', extension);\r\n start = GetFastValue(config, 'start');\r\n mapping = GetFastValue(config, 'mapping');\r\n }\r\n\r\n var fileConfig = {\r\n type: 'plugin',\r\n cache: false,\r\n extension: extension,\r\n responseType: 'text',\r\n key: key,\r\n url: url,\r\n xhrSettings: xhrSettings,\r\n config: {\r\n start: start,\r\n mapping: mapping\r\n }\r\n };\r\n\r\n File.call(this, loader, fileConfig);\r\n\r\n // If the url variable refers to a class, add the plugin directly\r\n if (typeof url === 'function')\r\n {\r\n this.data = url;\r\n\r\n this.state = CONST.FILE_POPULATED;\r\n }\r\n },\r\n\r\n /**\r\n * Called automatically by Loader.nextFile.\r\n * This method controls what extra work this File does with its loaded data.\r\n *\r\n * @method Phaser.Loader.FileTypes.PluginFile#onProcess\r\n * @since 3.7.0\r\n */\r\n onProcess: function ()\r\n {\r\n var pluginManager = this.loader.systems.plugins;\r\n var config = this.config;\r\n\r\n var start = GetFastValue(config, 'start', false);\r\n var mapping = GetFastValue(config, 'mapping', null);\r\n\r\n if (this.state === CONST.FILE_POPULATED)\r\n {\r\n pluginManager.install(this.key, this.data, start, mapping);\r\n }\r\n else\r\n {\r\n // Plugin added via a js file\r\n this.state = CONST.FILE_PROCESSING;\r\n\r\n this.data = document.createElement('script');\r\n this.data.language = 'javascript';\r\n this.data.type = 'text/javascript';\r\n this.data.defer = false;\r\n this.data.text = this.xhrLoader.responseText;\r\n\r\n document.head.appendChild(this.data);\r\n\r\n var plugin = pluginManager.install(this.key, window[this.key], start, mapping);\r\n\r\n if (start || mapping)\r\n {\r\n // Install into the current Scene Systems and Scene\r\n this.loader.systems[mapping] = plugin;\r\n this.loader.scene[mapping] = plugin;\r\n }\r\n }\r\n\r\n this.onProcessComplete();\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds a Plugin Script file, or array of plugin files, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.plugin('modplayer', 'plugins/ModPlayer.js');\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * The key must be a unique String and not already in-use by another file in the Loader.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.plugin({\r\n * key: 'modplayer',\r\n * url: 'plugins/ModPlayer.js'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.PluginFileConfig` for more details.\r\n *\r\n * Once the file has finished loading it will automatically be converted into a script element\r\n * via `document.createElement('script')`. It will have its language set to JavaScript, `defer` set to\r\n * false and then the resulting element will be appended to `document.head`. Any code then in the\r\n * script will be executed. It will then be passed to the Phaser PluginCache.register method.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"alien\"\r\n * and no URL is given then the Loader will set the URL to be \"alien.js\". It will always add `.js` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * Note: The ability to load this type of file will only be available if the Plugin File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#plugin\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.PluginFileConfig|Phaser.Types.Loader.FileTypes.PluginFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {(string|function)} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.js`, i.e. if `key` was \"alien\" then the URL will be \"alien.js\". Or, a plugin function.\r\n * @param {boolean} [start] - Automatically start the plugin after loading?\r\n * @param {string} [mapping] - If this plugin is to be injected into the Scene, this is the property key used.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('plugin', function (key, url, start, mapping, xhrSettings)\r\n{\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n // If it's an array it has to be an array of Objects, so we get everything out of the 'key' object\r\n this.addFile(new PluginFile(this, key[i]));\r\n }\r\n }\r\n else\r\n {\r\n this.addFile(new PluginFile(this, key, url, start, mapping, xhrSettings));\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = PluginFile;\r\n\n\n/***/ }),\n\n/***/ 67397:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(23906);\r\nvar File = __webpack_require__(41299);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar IsPlainObject = __webpack_require__(41212);\r\n\r\n/**\r\n * @classdesc\r\n * A single SVG File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#svg method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#svg.\r\n *\r\n * @class SVGFile\r\n * @extends Phaser.Loader.File\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.SVGFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.svg`, i.e. if `key` was \"alien\" then the URL will be \"alien.svg\".\r\n * @param {Phaser.Types.Loader.FileTypes.SVGSizeConfig} [svgConfig] - The svg size configuration object.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n */\r\nvar SVGFile = new Class({\r\n\r\n Extends: File,\r\n\r\n initialize:\r\n\r\n function SVGFile (loader, key, url, svgConfig, xhrSettings)\r\n {\r\n var extension = 'svg';\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n url = GetFastValue(config, 'url');\r\n svgConfig = GetFastValue(config, 'svgConfig', {});\r\n xhrSettings = GetFastValue(config, 'xhrSettings');\r\n extension = GetFastValue(config, 'extension', extension);\r\n }\r\n\r\n var fileConfig = {\r\n type: 'svg',\r\n cache: loader.textureManager,\r\n extension: extension,\r\n responseType: 'text',\r\n key: key,\r\n url: url,\r\n xhrSettings: xhrSettings,\r\n config: {\r\n width: GetFastValue(svgConfig, 'width'),\r\n height: GetFastValue(svgConfig, 'height'),\r\n scale: GetFastValue(svgConfig, 'scale')\r\n }\r\n };\r\n\r\n File.call(this, loader, fileConfig);\r\n },\r\n\r\n /**\r\n * Called automatically by Loader.nextFile.\r\n * This method controls what extra work this File does with its loaded data.\r\n *\r\n * @method Phaser.Loader.FileTypes.SVGFile#onProcess\r\n * @since 3.7.0\r\n */\r\n onProcess: function ()\r\n {\r\n this.state = CONST.FILE_PROCESSING;\r\n\r\n var text = this.xhrLoader.responseText;\r\n var svg = [ text ];\r\n var width = this.config.width;\r\n var height = this.config.height;\r\n var scale = this.config.scale;\r\n\r\n resize: if (width && height || scale)\r\n {\r\n var xml = null;\r\n var parser = new DOMParser();\r\n xml = parser.parseFromString(text, 'text/xml');\r\n var svgXML = xml.getElementsByTagName('svg')[0];\r\n\r\n var hasViewBox = svgXML.hasAttribute('viewBox');\r\n var svgWidth = parseFloat(svgXML.getAttribute('width'));\r\n var svgHeight = parseFloat(svgXML.getAttribute('height'));\r\n\r\n if (!hasViewBox && svgWidth && svgHeight)\r\n {\r\n // If there's no viewBox attribute, set one\r\n svgXML.setAttribute('viewBox', '0 0 ' + svgWidth + ' ' + svgHeight);\r\n }\r\n else if (hasViewBox && !svgWidth && !svgHeight)\r\n {\r\n // Get the w/h from the viewbox\r\n var viewBox = svgXML.getAttribute('viewBox').split(/\\s+|,/);\r\n\r\n svgWidth = viewBox[2];\r\n svgHeight = viewBox[3];\r\n }\r\n\r\n if (scale)\r\n {\r\n if (svgWidth && svgHeight)\r\n {\r\n width = svgWidth * scale;\r\n height = svgHeight * scale;\r\n }\r\n else\r\n {\r\n break resize;\r\n }\r\n }\r\n\r\n svgXML.setAttribute('width', width.toString() + 'px');\r\n svgXML.setAttribute('height', height.toString() + 'px');\r\n\r\n svg = [ (new XMLSerializer()).serializeToString(svgXML) ];\r\n }\r\n\r\n try\r\n {\r\n var blob = new window.Blob(svg, { type: 'image/svg+xml;charset=utf-8' });\r\n }\r\n catch (e)\r\n {\r\n this.onProcessError();\r\n\r\n return;\r\n }\r\n\r\n this.data = new Image();\r\n\r\n this.data.crossOrigin = this.crossOrigin;\r\n\r\n var _this = this;\r\n var retry = false;\r\n\r\n this.data.onload = function ()\r\n {\r\n if (!retry)\r\n {\r\n File.revokeObjectURL(_this.data);\r\n }\r\n\r\n _this.onProcessComplete();\r\n };\r\n\r\n this.data.onerror = function ()\r\n {\r\n // Safari 8 re-try\r\n if (!retry)\r\n {\r\n retry = true;\r\n\r\n File.revokeObjectURL(_this.data);\r\n\r\n _this.data.src = 'data:image/svg+xml,' + encodeURIComponent(svg.join(''));\r\n }\r\n else\r\n {\r\n _this.onProcessError();\r\n }\r\n };\r\n\r\n File.createObjectURL(this.data, blob, 'image/svg+xml');\r\n },\r\n\r\n /**\r\n * Adds this file to its target cache upon successful loading and processing.\r\n *\r\n * @method Phaser.Loader.FileTypes.SVGFile#addToCache\r\n * @since 3.7.0\r\n */\r\n addToCache: function ()\r\n {\r\n this.cache.addImage(this.key, this.data);\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds an SVG File, or array of SVG Files, to the current load queue. When the files are loaded they\r\n * will be rendered to bitmap textures and stored in the Texture Manager.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.svg('morty', 'images/Morty.svg');\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global Texture Manager upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the Texture Manager.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the Texture Manager first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.svg({\r\n * key: 'morty',\r\n * url: 'images/Morty.svg'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.SVGFileConfig` for more details.\r\n *\r\n * Once the file has finished loading you can use it as a texture for a Game Object by referencing its key:\r\n *\r\n * ```javascript\r\n * this.load.svg('morty', 'images/Morty.svg');\r\n * // and later in your game ...\r\n * this.add.image(x, y, 'morty');\r\n * ```\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `MENU.` and the key was `Background` the final key will be `MENU.Background` and\r\n * this is what you would use to retrieve the image from the Texture Manager.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"alien\"\r\n * and no URL is given then the Loader will set the URL to be \"alien.html\". It will always add `.html` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * You can optionally pass an SVG Resize Configuration object when you load an SVG file. By default the SVG will be rendered to a texture\r\n * at the same size defined in the SVG file attributes. However, this isn't always desirable. You may wish to resize the SVG (either down\r\n * or up) to improve texture clarity, or reduce texture memory consumption. You can either specify an exact width and height to resize\r\n * the SVG to:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.svg('morty', 'images/Morty.svg', { width: 300, height: 600 });\r\n * }\r\n * ```\r\n *\r\n * Or when using a configuration object:\r\n *\r\n * ```javascript\r\n * this.load.svg({\r\n * key: 'morty',\r\n * url: 'images/Morty.svg',\r\n * svgConfig: {\r\n * width: 300,\r\n * height: 600\r\n * }\r\n * });\r\n * ```\r\n *\r\n * Alternatively, you can just provide a scale factor instead:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.svg('morty', 'images/Morty.svg', { scale: 2.5 });\r\n * }\r\n * ```\r\n *\r\n * Or when using a configuration object:\r\n *\r\n * ```javascript\r\n * this.load.svg({\r\n * key: 'morty',\r\n * url: 'images/Morty.svg',\r\n * svgConfig: {\r\n * scale: 2.5\r\n * }\r\n * });\r\n * ```\r\n *\r\n * If scale, width and height values are all given, the scale has priority and the width and height values are ignored.\r\n *\r\n * Note: The ability to load this type of file will only be available if the SVG File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#svg\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.SVGFileConfig|Phaser.Types.Loader.FileTypes.SVGFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.svg`, i.e. if `key` was \"alien\" then the URL will be \"alien.svg\".\r\n * @param {Phaser.Types.Loader.FileTypes.SVGSizeConfig} [svgConfig] - The svg size configuration object.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('svg', function (key, url, svgConfig, xhrSettings)\r\n{\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n // If it's an array it has to be an array of Objects, so we get everything out of the 'key' object\r\n this.addFile(new SVGFile(this, key[i]));\r\n }\r\n }\r\n else\r\n {\r\n this.addFile(new SVGFile(this, key, url, svgConfig, xhrSettings));\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = SVGFile;\r\n\r\n\n\n/***/ }),\n\n/***/ 88423:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(23906);\r\nvar File = __webpack_require__(41299);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar IsPlainObject = __webpack_require__(41212);\r\n\r\n/**\r\n * @classdesc\r\n * An external Scene JavaScript File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#sceneFile method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#sceneFile.\r\n *\r\n * @class SceneFile\r\n * @extends Phaser.Loader.File\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.16.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.SceneFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.js`, i.e. if `key` was \"alien\" then the URL will be \"alien.js\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n */\r\nvar SceneFile = new Class({\r\n\r\n Extends: File,\r\n\r\n initialize:\r\n\r\n function SceneFile (loader, key, url, xhrSettings)\r\n {\r\n var extension = 'js';\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n url = GetFastValue(config, 'url');\r\n xhrSettings = GetFastValue(config, 'xhrSettings');\r\n extension = GetFastValue(config, 'extension', extension);\r\n }\r\n\r\n var fileConfig = {\r\n type: 'text',\r\n extension: extension,\r\n responseType: 'text',\r\n key: key,\r\n url: url,\r\n xhrSettings: xhrSettings\r\n };\r\n\r\n File.call(this, loader, fileConfig);\r\n },\r\n\r\n /**\r\n * Called automatically by Loader.nextFile.\r\n * This method controls what extra work this File does with its loaded data.\r\n *\r\n * @method Phaser.Loader.FileTypes.SceneFile#onProcess\r\n * @since 3.16.0\r\n */\r\n onProcess: function ()\r\n {\r\n this.state = CONST.FILE_PROCESSING;\r\n\r\n this.data = this.xhrLoader.responseText;\r\n\r\n this.onProcessComplete();\r\n },\r\n\r\n /**\r\n * Adds this file to its target cache upon successful loading and processing.\r\n *\r\n * @method Phaser.Loader.FileTypes.SceneFile#addToCache\r\n * @since 3.16.0\r\n */\r\n addToCache: function ()\r\n {\r\n var code = this.data.concat('(function(){\\n' + 'return new ' + this.key + '();\\n' + '}).call(this);');\r\n\r\n // Stops rollup from freaking out during build\r\n var eval2 = eval;\r\n\r\n this.loader.sceneManager.add(this.key, eval2(code));\r\n\r\n this.complete = true;\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds an external Scene file, or array of Scene files, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.sceneFile('Level1', 'src/Level1.js');\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global Scene Manager upon a successful load.\r\n *\r\n * For a Scene File it's vitally important that the key matches the class name in the JavaScript file.\r\n *\r\n * For example here is the source file:\r\n *\r\n * ```javascript\r\n * class ExternalScene extends Phaser.Scene {\r\n *\r\n * constructor ()\r\n * {\r\n * super('myScene');\r\n * }\r\n *\r\n * }\r\n * ```\r\n *\r\n * Because the class is called `ExternalScene` that is the exact same key you must use when loading it:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.sceneFile('ExternalScene', 'src/yourScene.js');\r\n * }\r\n * ```\r\n *\r\n * The key that is used within the Scene Manager can either be set to the same, or you can override it in the Scene\r\n * constructor, as we've done in the example above, where the Scene key was changed to `myScene`.\r\n *\r\n * The key should be unique both in terms of files being loaded and Scenes already present in the Scene Manager.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the Scene Manager first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.sceneFile({\r\n * key: 'Level1',\r\n * url: 'src/Level1.js'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.SceneFileConfig` for more details.\r\n *\r\n * Once the file has finished loading it will be added to the Scene Manager.\r\n *\r\n * ```javascript\r\n * this.load.sceneFile('Level1', 'src/Level1.js');\r\n * // and later in your game ...\r\n * this.scene.start('Level1');\r\n * ```\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `WORLD1.` and the key was `Story` the final key will be `WORLD1.Story` and\r\n * this is what you would use to retrieve the text from the Scene Manager.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"story\"\r\n * and no URL is given then the Loader will set the URL to be \"story.js\". It will always add `.js` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * Note: The ability to load this type of file will only be available if the Scene File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#sceneFile\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.16.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.SceneFileConfig|Phaser.Types.Loader.FileTypes.SceneFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.js`, i.e. if `key` was \"alien\" then the URL will be \"alien.js\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('sceneFile', function (key, url, xhrSettings)\r\n{\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n // If it's an array it has to be an array of Objects, so we get everything out of the 'key' object\r\n this.addFile(new SceneFile(this, key[i]));\r\n }\r\n }\r\n else\r\n {\r\n this.addFile(new SceneFile(this, key, url, xhrSettings));\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = SceneFile;\r\n\n\n/***/ }),\n\n/***/ 56812:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(23906);\r\nvar File = __webpack_require__(41299);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar IsPlainObject = __webpack_require__(41212);\r\n\r\n/**\r\n * @classdesc\r\n * A single Scene Plugin Script File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#scenePlugin method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#scenePlugin.\r\n *\r\n * @class ScenePluginFile\r\n * @extends Phaser.Loader.File\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.8.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.ScenePluginFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.js`, i.e. if `key` was \"alien\" then the URL will be \"alien.js\".\r\n * @param {string} [systemKey] - If this plugin is to be added to Scene.Systems, this is the property key for it.\r\n * @param {string} [sceneKey] - If this plugin is to be added to the Scene, this is the property key for it.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n */\r\nvar ScenePluginFile = new Class({\r\n\r\n Extends: File,\r\n\r\n initialize:\r\n\r\n function ScenePluginFile (loader, key, url, systemKey, sceneKey, xhrSettings)\r\n {\r\n var extension = 'js';\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n url = GetFastValue(config, 'url');\r\n xhrSettings = GetFastValue(config, 'xhrSettings');\r\n extension = GetFastValue(config, 'extension', extension);\r\n systemKey = GetFastValue(config, 'systemKey');\r\n sceneKey = GetFastValue(config, 'sceneKey');\r\n }\r\n\r\n var fileConfig = {\r\n type: 'scenePlugin',\r\n cache: false,\r\n extension: extension,\r\n responseType: 'text',\r\n key: key,\r\n url: url,\r\n xhrSettings: xhrSettings,\r\n config: {\r\n systemKey: systemKey,\r\n sceneKey: sceneKey\r\n }\r\n };\r\n\r\n File.call(this, loader, fileConfig);\r\n\r\n // If the url variable refers to a class, add the plugin directly\r\n if (typeof url === 'function')\r\n {\r\n this.data = url;\r\n\r\n this.state = CONST.FILE_POPULATED;\r\n }\r\n },\r\n\r\n /**\r\n * Called automatically by Loader.nextFile.\r\n * This method controls what extra work this File does with its loaded data.\r\n *\r\n * @method Phaser.Loader.FileTypes.ScenePluginFile#onProcess\r\n * @since 3.8.0\r\n */\r\n onProcess: function ()\r\n {\r\n var pluginManager = this.loader.systems.plugins;\r\n var config = this.config;\r\n\r\n var key = this.key;\r\n var systemKey = GetFastValue(config, 'systemKey', key);\r\n var sceneKey = GetFastValue(config, 'sceneKey', key);\r\n\r\n if (this.state === CONST.FILE_POPULATED)\r\n {\r\n pluginManager.installScenePlugin(systemKey, this.data, sceneKey, this.loader.scene, true);\r\n }\r\n else\r\n {\r\n // Plugin added via a js file\r\n this.state = CONST.FILE_PROCESSING;\r\n\r\n this.data = document.createElement('script');\r\n this.data.language = 'javascript';\r\n this.data.type = 'text/javascript';\r\n this.data.defer = false;\r\n this.data.text = this.xhrLoader.responseText;\r\n\r\n document.head.appendChild(this.data);\r\n\r\n pluginManager.installScenePlugin(systemKey, window[this.key], sceneKey, this.loader.scene, true);\r\n }\r\n\r\n this.onProcessComplete();\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds a Scene Plugin Script file, or array of plugin files, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.scenePlugin('ModPlayer', 'plugins/ModPlayer.js', 'modPlayer', 'mods');\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * The key must be a unique String and not already in-use by another file in the Loader.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.scenePlugin({\r\n * key: 'modplayer',\r\n * url: 'plugins/ModPlayer.js'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.ScenePluginFileConfig` for more details.\r\n *\r\n * Once the file has finished loading it will automatically be converted into a script element\r\n * via `document.createElement('script')`. It will have its language set to JavaScript, `defer` set to\r\n * false and then the resulting element will be appended to `document.head`. Any code then in the\r\n * script will be executed. It will then be passed to the Phaser PluginCache.register method.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"alien\"\r\n * and no URL is given then the Loader will set the URL to be \"alien.js\". It will always add `.js` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * Note: The ability to load this type of file will only be available if the Script File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#scenePlugin\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.8.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.ScenePluginFileConfig|Phaser.Types.Loader.FileTypes.ScenePluginFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {(string|function)} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.js`, i.e. if `key` was \"alien\" then the URL will be \"alien.js\". Or, set to a plugin function.\r\n * @param {string} [systemKey] - If this plugin is to be added to Scene.Systems, this is the property key for it.\r\n * @param {string} [sceneKey] - If this plugin is to be added to the Scene, this is the property key for it.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('scenePlugin', function (key, url, systemKey, sceneKey, xhrSettings)\r\n{\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n // If it's an array it has to be an array of Objects, so we get everything out of the 'key' object\r\n this.addFile(new ScenePluginFile(this, key[i]));\r\n }\r\n }\r\n else\r\n {\r\n this.addFile(new ScenePluginFile(this, key, url, systemKey, sceneKey, xhrSettings));\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = ScenePluginFile;\r\n\n\n/***/ }),\n\n/***/ 34328:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(23906);\r\nvar File = __webpack_require__(41299);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar IsPlainObject = __webpack_require__(41212);\r\n\r\n/**\r\n * @classdesc\r\n * A single Script File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#script method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#script.\r\n *\r\n * @class ScriptFile\r\n * @extends Phaser.Loader.File\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.ScriptFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.js`, i.e. if `key` was \"alien\" then the URL will be \"alien.js\".\r\n * @param {string} [type='script'] - The script type. Should be either 'script' for classic JavaScript, or 'module' if the file contains an exported module.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n */\r\nvar ScriptFile = new Class({\r\n\r\n Extends: File,\r\n\r\n initialize:\r\n\r\n function ScriptFile (loader, key, url, type, xhrSettings)\r\n {\r\n var extension = 'js';\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n url = GetFastValue(config, 'url');\r\n type = GetFastValue(config, 'type', 'script');\r\n xhrSettings = GetFastValue(config, 'xhrSettings');\r\n extension = GetFastValue(config, 'extension', extension);\r\n }\r\n else if (type === undefined)\r\n {\r\n type = 'script';\r\n }\r\n\r\n var fileConfig = {\r\n type: type,\r\n cache: false,\r\n extension: extension,\r\n responseType: 'text',\r\n key: key,\r\n url: url,\r\n xhrSettings: xhrSettings\r\n };\r\n\r\n File.call(this, loader, fileConfig);\r\n },\r\n\r\n /**\r\n * Called automatically by Loader.nextFile.\r\n * This method controls what extra work this File does with its loaded data.\r\n *\r\n * @method Phaser.Loader.FileTypes.ScriptFile#onProcess\r\n * @since 3.7.0\r\n */\r\n onProcess: function ()\r\n {\r\n this.state = CONST.FILE_PROCESSING;\r\n\r\n this.data = document.createElement('script');\r\n this.data.language = 'javascript';\r\n this.data.type = 'text/javascript';\r\n this.data.defer = false;\r\n this.data.text = this.xhrLoader.responseText;\r\n\r\n document.head.appendChild(this.data);\r\n\r\n this.onProcessComplete();\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds a Script file, or array of Script files, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.script('aliens', 'lib/aliens.js');\r\n * }\r\n * ```\r\n *\r\n * If the script file contains a module, then you should specify that using the 'type' parameter:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.script('aliens', 'lib/aliens.js', 'module');\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * The key must be a unique String and not already in-use by another file in the Loader.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.script({\r\n * key: 'aliens',\r\n * url: 'lib/aliens.js',\r\n * type: 'script' // or 'module'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.ScriptFileConfig` for more details.\r\n *\r\n * Once the file has finished loading it will automatically be converted into a script element\r\n * via `document.createElement('script')`. It will have its language set to JavaScript, `defer` set to\r\n * false and then the resulting element will be appended to `document.head`. Any code then in the\r\n * script will be executed.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"alien\"\r\n * and no URL is given then the Loader will set the URL to be \"alien.js\". It will always add `.js` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * Note: The ability to load this type of file will only be available if the Script File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#script\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.ScriptFileConfig|Phaser.Types.Loader.FileTypes.ScriptFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.js`, i.e. if `key` was \"alien\" then the URL will be \"alien.js\".\r\n * @param {string} [type='script'] - The script type. Should be either 'script' for classic JavaScript, or 'module' if the file contains an exported module.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('script', function (key, url, type, xhrSettings)\r\n{\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n // If it's an array it has to be an array of Objects, so we get everything out of the 'key' object\r\n this.addFile(new ScriptFile(this, key[i]));\r\n }\r\n }\r\n else\r\n {\r\n this.addFile(new ScriptFile(this, key, url, type, xhrSettings));\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = ScriptFile;\r\n\n\n/***/ }),\n\n/***/ 85035:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(23906);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar ImageFile = __webpack_require__(19550);\r\n\r\n/**\r\n * @classdesc\r\n * A single Sprite Sheet Image File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#spritesheet method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#spritesheet.\r\n *\r\n * @class SpriteSheetFile\r\n * @extends Phaser.Loader.File\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.SpriteSheetFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string|string[]} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.png`, i.e. if `key` was \"alien\" then the URL will be \"alien.png\".\r\n * @param {Phaser.Types.Loader.FileTypes.ImageFrameConfig} [frameConfig] - The frame configuration object.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n */\r\nvar SpriteSheetFile = new Class({\r\n\r\n Extends: ImageFile,\r\n\r\n initialize:\r\n\r\n function SpriteSheetFile (loader, key, url, frameConfig, xhrSettings)\r\n {\r\n ImageFile.call(this, loader, key, url, xhrSettings, frameConfig);\r\n\r\n this.type = 'spritesheet';\r\n },\r\n\r\n /**\r\n * Adds this file to its target cache upon successful loading and processing.\r\n *\r\n * @method Phaser.Loader.FileTypes.SpriteSheetFile#addToCache\r\n * @since 3.7.0\r\n */\r\n addToCache: function ()\r\n {\r\n // Check if we have a linked normal map\r\n var linkFile = this.linkFile;\r\n\r\n if (linkFile)\r\n {\r\n // We do, but has it loaded?\r\n if (linkFile.state >= CONST.FILE_COMPLETE)\r\n {\r\n // Both files have loaded\r\n if (this.type === 'normalMap')\r\n {\r\n // linkFile.data = Image\r\n // this.data = Normal Map\r\n this.cache.addSpriteSheet(this.key, linkFile.data, this.config, this.data);\r\n }\r\n else\r\n {\r\n // linkFile.data = Normal Map\r\n // this.data = Image\r\n this.cache.addSpriteSheet(this.key, this.data, this.config, linkFile.data);\r\n }\r\n }\r\n\r\n // Nothing to do here, we'll use the linkFile `addToCache` call\r\n // to process this pair\r\n }\r\n else\r\n {\r\n this.cache.addSpriteSheet(this.key, this.data, this.config);\r\n }\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds a Sprite Sheet Image, or array of Sprite Sheet Images, to the current load queue.\r\n *\r\n * The term 'Sprite Sheet' in Phaser means a fixed-size sheet. Where every frame in the sheet is the exact same size,\r\n * and you reference those frames using numbers, not frame names. This is not the same thing as a Texture Atlas, where\r\n * the frames are packed in a way where they take up the least amount of space, and are referenced by their names,\r\n * not numbers. Some articles and software use the term 'Sprite Sheet' to mean Texture Atlas, so please be aware of\r\n * what sort of file you're actually trying to load.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.spritesheet('bot', 'images/robot.png', { frameWidth: 32, frameHeight: 38 });\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * Phaser can load all common image types: png, jpg, gif and any other format the browser can natively handle.\r\n * If you try to load an animated gif only the first frame will be rendered. Browsers do not natively support playback\r\n * of animated gifs to Canvas elements.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global Texture Manager upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the Texture Manager.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the Texture Manager first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.spritesheet({\r\n * key: 'bot',\r\n * url: 'images/robot.png',\r\n * frameConfig: {\r\n * frameWidth: 32,\r\n * frameHeight: 38,\r\n * startFrame: 0,\r\n * endFrame: 8\r\n * }\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.SpriteSheetFileConfig` for more details.\r\n *\r\n * Once the file has finished loading you can use it as a texture for a Game Object by referencing its key:\r\n *\r\n * ```javascript\r\n * this.load.spritesheet('bot', 'images/robot.png', { frameWidth: 32, frameHeight: 38 });\r\n * // and later in your game ...\r\n * this.add.image(x, y, 'bot', 0);\r\n * ```\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `PLAYER.` and the key was `Running` the final key will be `PLAYER.Running` and\r\n * this is what you would use to retrieve the image from the Texture Manager.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"alien\"\r\n * and no URL is given then the Loader will set the URL to be \"alien.png\". It will always add `.png` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * Phaser also supports the automatic loading of associated normal maps. If you have a normal map to go with this image,\r\n * then you can specify it by providing an array as the `url` where the second element is the normal map:\r\n *\r\n * ```javascript\r\n * this.load.spritesheet('logo', [ 'images/AtariLogo.png', 'images/AtariLogo-n.png' ], { frameWidth: 256, frameHeight: 80 });\r\n * ```\r\n *\r\n * Or, if you are using a config object use the `normalMap` property:\r\n *\r\n * ```javascript\r\n * this.load.spritesheet({\r\n * key: 'logo',\r\n * url: 'images/AtariLogo.png',\r\n * normalMap: 'images/AtariLogo-n.png',\r\n * frameConfig: {\r\n * frameWidth: 256,\r\n * frameHeight: 80\r\n * }\r\n * });\r\n * ```\r\n *\r\n * The normal map file is subject to the same conditions as the image file with regard to the path, baseURL, CORs and XHR Settings.\r\n * Normal maps are a WebGL only feature.\r\n *\r\n * Note: The ability to load this type of file will only be available if the Sprite Sheet File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#spritesheet\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.SpriteSheetFileConfig|Phaser.Types.Loader.FileTypes.SpriteSheetFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.png`, i.e. if `key` was \"alien\" then the URL will be \"alien.png\".\r\n * @param {Phaser.Types.Loader.FileTypes.ImageFrameConfig} [frameConfig] - The frame configuration object. At a minimum it should have a `frameWidth` property.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('spritesheet', function (key, url, frameConfig, xhrSettings)\r\n{\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n // If it's an array it has to be an array of Objects, so we get everything out of the 'key' object\r\n this.addFile(new SpriteSheetFile(this, key[i]));\r\n }\r\n }\r\n else\r\n {\r\n this.addFile(new SpriteSheetFile(this, key, url, frameConfig, xhrSettings));\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = SpriteSheetFile;\r\n\n\n/***/ }),\n\n/***/ 78776:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(23906);\r\nvar File = __webpack_require__(41299);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar IsPlainObject = __webpack_require__(41212);\r\n\r\n/**\r\n * @classdesc\r\n * A single Text File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#text method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#text.\r\n *\r\n * @class TextFile\r\n * @extends Phaser.Loader.File\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.TextFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.txt`, i.e. if `key` was \"alien\" then the URL will be \"alien.txt\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n */\r\nvar TextFile = new Class({\r\n\r\n Extends: File,\r\n\r\n initialize:\r\n\r\n function TextFile (loader, key, url, xhrSettings)\r\n {\r\n var type = 'text';\r\n var extension = 'txt';\r\n var cache = loader.cacheManager.text;\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n url = GetFastValue(config, 'url');\r\n xhrSettings = GetFastValue(config, 'xhrSettings');\r\n extension = GetFastValue(config, 'extension', extension);\r\n type = GetFastValue(config, 'type', type);\r\n cache = GetFastValue(config, 'cache', cache);\r\n }\r\n\r\n var fileConfig = {\r\n type: type,\r\n cache: cache,\r\n extension: extension,\r\n responseType: 'text',\r\n key: key,\r\n url: url,\r\n xhrSettings: xhrSettings\r\n };\r\n\r\n File.call(this, loader, fileConfig);\r\n },\r\n\r\n /**\r\n * Called automatically by Loader.nextFile.\r\n * This method controls what extra work this File does with its loaded data.\r\n *\r\n * @method Phaser.Loader.FileTypes.TextFile#onProcess\r\n * @since 3.7.0\r\n */\r\n onProcess: function ()\r\n {\r\n this.state = CONST.FILE_PROCESSING;\r\n\r\n this.data = this.xhrLoader.responseText;\r\n\r\n this.onProcessComplete();\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds a Text file, or array of Text files, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.text('story', 'files/IntroStory.txt');\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global Text Cache upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the Text Cache.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the Text Cache first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.text({\r\n * key: 'story',\r\n * url: 'files/IntroStory.txt'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.TextFileConfig` for more details.\r\n *\r\n * Once the file has finished loading you can access it from its Cache using its key:\r\n *\r\n * ```javascript\r\n * this.load.text('story', 'files/IntroStory.txt');\r\n * // and later in your game ...\r\n * var data = this.cache.text.get('story');\r\n * ```\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `LEVEL1.` and the key was `Story` the final key will be `LEVEL1.Story` and\r\n * this is what you would use to retrieve the text from the Text Cache.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"story\"\r\n * and no URL is given then the Loader will set the URL to be \"story.txt\". It will always add `.txt` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * Note: The ability to load this type of file will only be available if the Text File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#text\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.TextFileConfig|Phaser.Types.Loader.FileTypes.TextFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.txt`, i.e. if `key` was \"alien\" then the URL will be \"alien.txt\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('text', function (key, url, xhrSettings)\r\n{\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n // If it's an array it has to be an array of Objects, so we get everything out of the 'key' object\r\n this.addFile(new TextFile(this, key[i]));\r\n }\r\n }\r\n else\r\n {\r\n this.addFile(new TextFile(this, key, url, xhrSettings));\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = TextFile;\r\n\n\n/***/ }),\n\n/***/ 49477:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(23906);\r\nvar File = __webpack_require__(41299);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar IsPlainObject = __webpack_require__(41212);\r\nvar TILEMAP_FORMATS = __webpack_require__(80341);\r\n\r\n/**\r\n * @classdesc\r\n * A single Tilemap CSV File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#tilemapCSV method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#tilemapCSV.\r\n *\r\n * @class TilemapCSVFile\r\n * @extends Phaser.Loader.File\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.TilemapCSVFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.csv`, i.e. if `key` was \"alien\" then the URL will be \"alien.csv\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n */\r\nvar TilemapCSVFile = new Class({\r\n\r\n Extends: File,\r\n\r\n initialize:\r\n\r\n function TilemapCSVFile (loader, key, url, xhrSettings)\r\n {\r\n var extension = 'csv';\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n url = GetFastValue(config, 'url');\r\n xhrSettings = GetFastValue(config, 'xhrSettings');\r\n extension = GetFastValue(config, 'extension', extension);\r\n }\r\n\r\n var fileConfig = {\r\n type: 'tilemapCSV',\r\n cache: loader.cacheManager.tilemap,\r\n extension: extension,\r\n responseType: 'text',\r\n key: key,\r\n url: url,\r\n xhrSettings: xhrSettings\r\n };\r\n\r\n File.call(this, loader, fileConfig);\r\n\r\n this.tilemapFormat = TILEMAP_FORMATS.CSV;\r\n },\r\n\r\n /**\r\n * Called automatically by Loader.nextFile.\r\n * This method controls what extra work this File does with its loaded data.\r\n *\r\n * @method Phaser.Loader.FileTypes.TilemapCSVFile#onProcess\r\n * @since 3.7.0\r\n */\r\n onProcess: function ()\r\n {\r\n this.state = CONST.FILE_PROCESSING;\r\n\r\n this.data = this.xhrLoader.responseText;\r\n\r\n this.onProcessComplete();\r\n },\r\n\r\n /**\r\n * Adds this file to its target cache upon successful loading and processing.\r\n *\r\n * @method Phaser.Loader.FileTypes.TilemapCSVFile#addToCache\r\n * @since 3.7.0\r\n */\r\n addToCache: function ()\r\n {\r\n var tiledata = { format: this.tilemapFormat, data: this.data };\r\n\r\n this.cache.add(this.key, tiledata);\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds a CSV Tilemap file, or array of CSV files, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.tilemapCSV('level1', 'maps/Level1.csv');\r\n * }\r\n * ```\r\n *\r\n * Tilemap CSV data can be created in a text editor, or a 3rd party app that exports as CSV.\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global Tilemap Cache upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the Tilemap Cache.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the Text Cache first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.tilemapCSV({\r\n * key: 'level1',\r\n * url: 'maps/Level1.csv'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.TilemapCSVFileConfig` for more details.\r\n *\r\n * Once the file has finished loading you can access it from its Cache using its key:\r\n *\r\n * ```javascript\r\n * this.load.tilemapCSV('level1', 'maps/Level1.csv');\r\n * // and later in your game ...\r\n * var map = this.make.tilemap({ key: 'level1' });\r\n * ```\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `LEVEL1.` and the key was `Story` the final key will be `LEVEL1.Story` and\r\n * this is what you would use to retrieve the text from the Tilemap Cache.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"level\"\r\n * and no URL is given then the Loader will set the URL to be \"level.csv\". It will always add `.csv` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * Note: The ability to load this type of file will only be available if the Tilemap CSV File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#tilemapCSV\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.TilemapCSVFileConfig|Phaser.Types.Loader.FileTypes.TilemapCSVFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.csv`, i.e. if `key` was \"alien\" then the URL will be \"alien.csv\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('tilemapCSV', function (key, url, xhrSettings)\r\n{\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n // If it's an array it has to be an array of Objects, so we get everything out of the 'key' object\r\n this.addFile(new TilemapCSVFile(this, key[i]));\r\n }\r\n }\r\n else\r\n {\r\n this.addFile(new TilemapCSVFile(this, key, url, xhrSettings));\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = TilemapCSVFile;\r\n\n\n/***/ }),\n\n/***/ 40807:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar JSONFile = __webpack_require__(518);\r\nvar TILEMAP_FORMATS = __webpack_require__(80341);\r\n\r\n/**\r\n * @classdesc\r\n * A single Impact.js Tilemap JSON File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#tilemapImpact method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#tilemapImpact.\r\n *\r\n * @class TilemapImpactFile\r\n * @extends Phaser.Loader.File\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.7.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.TilemapImpactFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.json`, i.e. if `key` was \"alien\" then the URL will be \"alien.json\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n */\r\nvar TilemapImpactFile = new Class({\r\n\r\n Extends: JSONFile,\r\n\r\n initialize:\r\n\r\n function TilemapImpactFile (loader, key, url, xhrSettings)\r\n {\r\n JSONFile.call(this, loader, key, url, xhrSettings);\r\n\r\n this.type = 'tilemapJSON';\r\n\r\n this.cache = loader.cacheManager.tilemap;\r\n },\r\n\r\n /**\r\n * Adds this file to its target cache upon successful loading and processing.\r\n *\r\n * @method Phaser.Loader.FileTypes.TilemapImpactFile#addToCache\r\n * @since 3.7.0\r\n */\r\n addToCache: function ()\r\n {\r\n var tiledata = { format: TILEMAP_FORMATS.WELTMEISTER, data: this.data };\r\n\r\n this.cache.add(this.key, tiledata);\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds an Impact.js Tilemap file, or array of map files, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.tilemapImpact('level1', 'maps/Level1.json');\r\n * }\r\n * ```\r\n *\r\n * Impact Tilemap data is created the Impact.js Map Editor called Weltmeister.\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global Tilemap Cache upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the Tilemap Cache.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the Text Cache first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.tilemapImpact({\r\n * key: 'level1',\r\n * url: 'maps/Level1.json'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.TilemapImpactFileConfig` for more details.\r\n *\r\n * Once the file has finished loading you can access it from its Cache using its key:\r\n *\r\n * ```javascript\r\n * this.load.tilemapImpact('level1', 'maps/Level1.json');\r\n * // and later in your game ...\r\n * var map = this.make.tilemap({ key: 'level1' });\r\n * ```\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `LEVEL1.` and the key was `Story` the final key will be `LEVEL1.Story` and\r\n * this is what you would use to retrieve the text from the Tilemap Cache.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"level\"\r\n * and no URL is given then the Loader will set the URL to be \"level.json\". It will always add `.json` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * Note: The ability to load this type of file will only be available if the Tilemap Impact File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#tilemapImpact\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.7.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.TilemapImpactFileConfig|Phaser.Types.Loader.FileTypes.TilemapImpactFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.json`, i.e. if `key` was \"alien\" then the URL will be \"alien.json\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('tilemapImpact', function (key, url, xhrSettings)\r\n{\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n // If it's an array it has to be an array of Objects, so we get everything out of the 'key' object\r\n this.addFile(new TilemapImpactFile(this, key[i]));\r\n }\r\n }\r\n else\r\n {\r\n this.addFile(new TilemapImpactFile(this, key, url, xhrSettings));\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = TilemapImpactFile;\r\n\n\n/***/ }),\n\n/***/ 56775:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar JSONFile = __webpack_require__(518);\r\nvar TILEMAP_FORMATS = __webpack_require__(80341);\r\n\r\n/**\r\n * @classdesc\r\n * A single Tiled Tilemap JSON File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#tilemapTiledJSON method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#tilemapTiledJSON.\r\n *\r\n * @class TilemapJSONFile\r\n * @extends Phaser.Loader.FileTypes.JSONFile\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.TilemapJSONFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {object|string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.json`, i.e. if `key` was \"alien\" then the URL will be \"alien.json\". Or, a well formed JSON object.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n */\r\nvar TilemapJSONFile = new Class({\r\n\r\n Extends: JSONFile,\r\n\r\n initialize:\r\n\r\n function TilemapJSONFile (loader, key, url, xhrSettings)\r\n {\r\n JSONFile.call(this, loader, key, url, xhrSettings);\r\n\r\n this.type = 'tilemapJSON';\r\n\r\n this.cache = loader.cacheManager.tilemap;\r\n },\r\n\r\n /**\r\n * Adds this file to its target cache upon successful loading and processing.\r\n *\r\n * @method Phaser.Loader.FileTypes.TilemapJSONFile#addToCache\r\n * @since 3.7.0\r\n */\r\n addToCache: function ()\r\n {\r\n var tiledata = { format: TILEMAP_FORMATS.TILED_JSON, data: this.data };\r\n\r\n this.cache.add(this.key, tiledata);\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds a Tiled JSON Tilemap file, or array of map files, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.tilemapTiledJSON('level1', 'maps/Level1.json');\r\n * }\r\n * ```\r\n *\r\n * The Tilemap data is created using the Tiled Map Editor and selecting JSON as the export format.\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global Tilemap Cache upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the Tilemap Cache.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the Text Cache first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.tilemapTiledJSON({\r\n * key: 'level1',\r\n * url: 'maps/Level1.json'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.TilemapJSONFileConfig` for more details.\r\n *\r\n * Once the file has finished loading you can access it from its Cache using its key:\r\n *\r\n * ```javascript\r\n * this.load.tilemapTiledJSON('level1', 'maps/Level1.json');\r\n * // and later in your game ...\r\n * var map = this.make.tilemap({ key: 'level1' });\r\n * ```\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `LEVEL1.` and the key was `Story` the final key will be `LEVEL1.Story` and\r\n * this is what you would use to retrieve the text from the Tilemap Cache.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"level\"\r\n * and no URL is given then the Loader will set the URL to be \"level.json\". It will always add `.json` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * Note: The ability to load this type of file will only be available if the Tilemap JSON File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#tilemapTiledJSON\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.TilemapJSONFileConfig|Phaser.Types.Loader.FileTypes.TilemapJSONFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {object|string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.json`, i.e. if `key` was \"alien\" then the URL will be \"alien.json\". Or, a well formed JSON object.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('tilemapTiledJSON', function (key, url, xhrSettings)\r\n{\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n // If it's an array it has to be an array of Objects, so we get everything out of the 'key' object\r\n this.addFile(new TilemapJSONFile(this, key[i]));\r\n }\r\n }\r\n else\r\n {\r\n this.addFile(new TilemapJSONFile(this, key, url, xhrSettings));\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = TilemapJSONFile;\r\n\n\n/***/ }),\n\n/***/ 25771:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar ImageFile = __webpack_require__(19550);\r\nvar IsPlainObject = __webpack_require__(41212);\r\nvar MultiFile = __webpack_require__(26430);\r\nvar TextFile = __webpack_require__(78776);\r\n\r\n/**\r\n * @classdesc\r\n * A single text file based Unity Texture Atlas File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#unityAtlas method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#unityAtlas.\r\n *\r\n * @class UnityAtlasFile\r\n * @extends Phaser.Loader.MultiFile\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.UnityAtlasFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string|string[]} [textureURL] - The absolute or relative URL to load the texture image file from. If undefined or `null` it will be set to `.png`, i.e. if `key` was \"alien\" then the URL will be \"alien.png\".\r\n * @param {string} [atlasURL] - The absolute or relative URL to load the texture atlas data file from. If undefined or `null` it will be set to `.txt`, i.e. if `key` was \"alien\" then the URL will be \"alien.txt\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - An XHR Settings configuration object for the atlas image file. Used in replacement of the Loaders default XHR Settings.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [atlasXhrSettings] - An XHR Settings configuration object for the atlas data file. Used in replacement of the Loaders default XHR Settings.\r\n */\r\nvar UnityAtlasFile = new Class({\r\n\r\n Extends: MultiFile,\r\n\r\n initialize:\r\n\r\n function UnityAtlasFile (loader, key, textureURL, atlasURL, textureXhrSettings, atlasXhrSettings)\r\n {\r\n var image;\r\n var data;\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n\r\n image = new ImageFile(loader, {\r\n key: key,\r\n url: GetFastValue(config, 'textureURL'),\r\n extension: GetFastValue(config, 'textureExtension', 'png'),\r\n normalMap: GetFastValue(config, 'normalMap'),\r\n xhrSettings: GetFastValue(config, 'textureXhrSettings')\r\n });\r\n\r\n data = new TextFile(loader, {\r\n key: key,\r\n url: GetFastValue(config, 'atlasURL'),\r\n extension: GetFastValue(config, 'atlasExtension', 'txt'),\r\n xhrSettings: GetFastValue(config, 'atlasXhrSettings')\r\n });\r\n }\r\n else\r\n {\r\n image = new ImageFile(loader, key, textureURL, textureXhrSettings);\r\n data = new TextFile(loader, key, atlasURL, atlasXhrSettings);\r\n }\r\n\r\n if (image.linkFile)\r\n {\r\n // Image has a normal map\r\n MultiFile.call(this, loader, 'unityatlas', key, [ image, data, image.linkFile ]);\r\n }\r\n else\r\n {\r\n MultiFile.call(this, loader, 'unityatlas', key, [ image, data ]);\r\n }\r\n },\r\n\r\n /**\r\n * Adds this file to its target cache upon successful loading and processing.\r\n *\r\n * @method Phaser.Loader.FileTypes.UnityAtlasFile#addToCache\r\n * @since 3.7.0\r\n */\r\n addToCache: function ()\r\n {\r\n if (this.isReadyToProcess())\r\n {\r\n var image = this.files[0];\r\n var text = this.files[1];\r\n var normalMap = (this.files[2]) ? this.files[2].data : null;\r\n\r\n this.loader.textureManager.addUnityAtlas(image.key, image.data, text.data, normalMap);\r\n\r\n this.complete = true;\r\n }\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds a Unity YAML based Texture Atlas, or array of atlases, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.unityAtlas('mainmenu', 'images/MainMenu.png', 'images/MainMenu.txt');\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * If you call this from outside of `preload` then you are responsible for starting the Loader afterwards and monitoring\r\n * its events to know when it's safe to use the asset. Please see the Phaser.Loader.LoaderPlugin class for more details.\r\n *\r\n * Phaser expects the atlas data to be provided in a YAML formatted text file as exported from Unity.\r\n *\r\n * Phaser can load all common image types: png, jpg, gif and any other format the browser can natively handle.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global Texture Manager upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the Texture Manager.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the Texture Manager first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.unityAtlas({\r\n * key: 'mainmenu',\r\n * textureURL: 'images/MainMenu.png',\r\n * atlasURL: 'images/MainMenu.txt'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.UnityAtlasFileConfig` for more details.\r\n *\r\n * Once the atlas has finished loading you can use frames from it as textures for a Game Object by referencing its key:\r\n *\r\n * ```javascript\r\n * this.load.unityAtlas('mainmenu', 'images/MainMenu.png', 'images/MainMenu.json');\r\n * // and later in your game ...\r\n * this.add.image(x, y, 'mainmenu', 'background');\r\n * ```\r\n *\r\n * To get a list of all available frames within an atlas please consult your Texture Atlas software.\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `MENU.` and the key was `Background` the final key will be `MENU.Background` and\r\n * this is what you would use to retrieve the image from the Texture Manager.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"alien\"\r\n * and no URL is given then the Loader will set the URL to be \"alien.png\". It will always add `.png` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * Phaser also supports the automatic loading of associated normal maps. If you have a normal map to go with this image,\r\n * then you can specify it by providing an array as the `url` where the second element is the normal map:\r\n *\r\n * ```javascript\r\n * this.load.unityAtlas('mainmenu', [ 'images/MainMenu.png', 'images/MainMenu-n.png' ], 'images/MainMenu.txt');\r\n * ```\r\n *\r\n * Or, if you are using a config object use the `normalMap` property:\r\n *\r\n * ```javascript\r\n * this.load.unityAtlas({\r\n * key: 'mainmenu',\r\n * textureURL: 'images/MainMenu.png',\r\n * normalMap: 'images/MainMenu-n.png',\r\n * atlasURL: 'images/MainMenu.txt'\r\n * });\r\n * ```\r\n *\r\n * The normal map file is subject to the same conditions as the image file with regard to the path, baseURL, CORs and XHR Settings.\r\n * Normal maps are a WebGL only feature.\r\n *\r\n * Note: The ability to load this type of file will only be available if the Unity Atlas File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#unityAtlas\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.UnityAtlasFileConfig|Phaser.Types.Loader.FileTypes.UnityAtlasFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string|string[]} [textureURL] - The absolute or relative URL to load the texture image file from. If undefined or `null` it will be set to `.png`, i.e. if `key` was \"alien\" then the URL will be \"alien.png\".\r\n * @param {string} [atlasURL] - The absolute or relative URL to load the texture atlas data file from. If undefined or `null` it will be set to `.txt`, i.e. if `key` was \"alien\" then the URL will be \"alien.txt\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [textureXhrSettings] - An XHR Settings configuration object for the atlas image file. Used in replacement of the Loaders default XHR Settings.\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [atlasXhrSettings] - An XHR Settings configuration object for the atlas data file. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('unityAtlas', function (key, textureURL, atlasURL, textureXhrSettings, atlasXhrSettings)\r\n{\r\n var multifile;\r\n\r\n // Supports an Object file definition in the key argument\r\n // Or an array of objects in the key argument\r\n // Or a single entry where all arguments have been defined\r\n\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n multifile = new UnityAtlasFile(this, key[i]);\r\n\r\n this.addFile(multifile.files);\r\n }\r\n }\r\n else\r\n {\r\n multifile = new UnityAtlasFile(this, key, textureURL, atlasURL, textureXhrSettings, atlasXhrSettings);\r\n\r\n this.addFile(multifile.files);\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = UnityAtlasFile;\r\n\n\n/***/ }),\n\n/***/ 33720:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(23906);\r\nvar File = __webpack_require__(41299);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetURL = __webpack_require__(98356);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar IsPlainObject = __webpack_require__(41212);\r\n\r\n/**\r\n * @classdesc\r\n * A single Video File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#video method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#video.\r\n *\r\n * @class VideoFile\r\n * @extends Phaser.Loader.File\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.20.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.VideoFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {(string|string[]|Phaser.Types.Loader.FileTypes.VideoFileURLConfig|Phaser.Types.Loader.FileTypes.VideoFileURLConfig[])} [urls] - The absolute or relative URL to load the video files from.\r\n * @param {boolean} [noAudio=false] - Does the video have an audio track? If not you can enable auto-playing on it.\r\n */\r\nvar VideoFile = new Class({\r\n\r\n Extends: File,\r\n\r\n initialize:\r\n\r\n function VideoFile (loader, key, url, noAudio)\r\n {\r\n if (noAudio === undefined) { noAudio = false; }\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n url = GetFastValue(config, 'url', []);\r\n noAudio = GetFastValue(config, 'noAudio', false);\r\n }\r\n\r\n var urlConfig = loader.systems.game.device.video.getVideoURL(url);\r\n\r\n if (!urlConfig)\r\n {\r\n console.warn('VideoFile: No supported format for ' + key);\r\n }\r\n\r\n var fileConfig = {\r\n type: 'video',\r\n cache: loader.cacheManager.video,\r\n extension: urlConfig.type,\r\n key: key,\r\n url: urlConfig.url,\r\n config: {\r\n noAudio: noAudio\r\n }\r\n };\r\n\r\n File.call(this, loader, fileConfig);\r\n },\r\n\r\n /**\r\n * Called automatically by Loader.nextFile.\r\n * This method controls what extra work this File does with its loaded data.\r\n *\r\n * @method Phaser.Loader.FileTypes.VideoFile#onProcess\r\n * @since 3.20.0\r\n */\r\n onProcess: function ()\r\n {\r\n this.data = {\r\n url: this.src,\r\n noAudio: this.config.noAudio,\r\n crossOrigin: this.crossOrigin\r\n };\r\n\r\n this.onProcessComplete();\r\n },\r\n\r\n /**\r\n * Called by the Loader, starts the actual file downloading.\r\n * During the load the methods onLoad, onError and onProgress are called, based on the XHR events.\r\n * You shouldn't normally call this method directly, it's meant to be invoked by the Loader.\r\n *\r\n * @method Phaser.Loader.FileTypes.VideoFile#load\r\n * @since 3.20.0\r\n */\r\n load: function ()\r\n {\r\n // We set these, but we don't actually load anything (the Video Game Object does that)\r\n\r\n this.src = GetURL(this, this.loader.baseURL);\r\n\r\n this.state = CONST.FILE_LOADED;\r\n\r\n this.loader.nextFile(this, true);\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds a Video file, or array of video files, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.video('intro', [ 'video/level1.mp4', 'video/level1.webm', 'video/level1.mov' ]);\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global Video Cache upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the Video Cache.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the Video Cache first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.video({\r\n * key: 'intro',\r\n * url: [ 'video/level1.mp4', 'video/level1.webm', 'video/level1.mov' ],\r\n * noAudio: true\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.VideoFileConfig` for more details.\r\n *\r\n * The URLs can be relative or absolute. If the URLs are relative the `Loader.baseURL` and `Loader.path` values will be prepended to them.\r\n *\r\n * Due to different browsers supporting different video file types you should usually provide your video files in a variety of formats.\r\n * mp4, mov and webm are the most common. If you provide an array of URLs then the Loader will determine which _one_ file to load based on\r\n * browser support, starting with the first in the array and progressing to the end.\r\n *\r\n * Unlike most asset-types, videos do not _need_ to be preloaded. You can create a Video Game Object and then call its `loadURL` method,\r\n * to load a video at run-time, rather than in advance.\r\n *\r\n * Note: The ability to load this type of file will only be available if the Video File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#video\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.20.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.VideoFileConfig|Phaser.Types.Loader.FileTypes.VideoFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {(string|string[]|Phaser.Types.Loader.FileTypes.VideoFileURLConfig|Phaser.Types.Loader.FileTypes.VideoFileURLConfig[])} [urls] - The absolute or relative URL to load the video files from.\r\n * @param {boolean} [noAudio=false] - Does the video have an audio track? If not you can enable auto-playing on it.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('video', function (key, urls, noAudio)\r\n{\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n this.addFile(new VideoFile(this, key[i]));\r\n }\r\n }\r\n else\r\n {\r\n this.addFile(new VideoFile(this, key, urls, noAudio));\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = VideoFile;\r\n\n\n/***/ }),\n\n/***/ 57318:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(23906);\r\nvar File = __webpack_require__(41299);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar IsPlainObject = __webpack_require__(41212);\r\nvar ParseXML = __webpack_require__(56836);\r\n\r\n/**\r\n * @classdesc\r\n * A single XML File suitable for loading by the Loader.\r\n *\r\n * These are created when you use the Phaser.Loader.LoaderPlugin#xml method and are not typically created directly.\r\n *\r\n * For documentation about what all the arguments and configuration options mean please see Phaser.Loader.LoaderPlugin#xml.\r\n *\r\n * @class XMLFile\r\n * @extends Phaser.Loader.File\r\n * @memberof Phaser.Loader.FileTypes\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - A reference to the Loader that is responsible for this file.\r\n * @param {(string|Phaser.Types.Loader.FileTypes.XMLFileConfig)} key - The key to use for this file, or a file configuration object.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.xml`, i.e. if `key` was \"alien\" then the URL will be \"alien.xml\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - Extra XHR Settings specifically for this file.\r\n */\r\nvar XMLFile = new Class({\r\n\r\n Extends: File,\r\n\r\n initialize:\r\n\r\n function XMLFile (loader, key, url, xhrSettings)\r\n {\r\n var extension = 'xml';\r\n\r\n if (IsPlainObject(key))\r\n {\r\n var config = key;\r\n\r\n key = GetFastValue(config, 'key');\r\n url = GetFastValue(config, 'url');\r\n xhrSettings = GetFastValue(config, 'xhrSettings');\r\n extension = GetFastValue(config, 'extension', extension);\r\n }\r\n\r\n var fileConfig = {\r\n type: 'xml',\r\n cache: loader.cacheManager.xml,\r\n extension: extension,\r\n responseType: 'text',\r\n key: key,\r\n url: url,\r\n xhrSettings: xhrSettings\r\n };\r\n\r\n File.call(this, loader, fileConfig);\r\n },\r\n\r\n /**\r\n * Called automatically by Loader.nextFile.\r\n * This method controls what extra work this File does with its loaded data.\r\n *\r\n * @method Phaser.Loader.FileTypes.XMLFile#onProcess\r\n * @since 3.7.0\r\n */\r\n onProcess: function ()\r\n {\r\n this.state = CONST.FILE_PROCESSING;\r\n\r\n this.data = ParseXML(this.xhrLoader.responseText);\r\n\r\n if (this.data)\r\n {\r\n this.onProcessComplete();\r\n }\r\n else\r\n {\r\n this.onProcessError();\r\n }\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Adds an XML file, or array of XML files, to the current load queue.\r\n *\r\n * You can call this method from within your Scene's `preload`, along with any other files you wish to load:\r\n *\r\n * ```javascript\r\n * function preload ()\r\n * {\r\n * this.load.xml('wavedata', 'files/AlienWaveData.xml');\r\n * }\r\n * ```\r\n *\r\n * The file is **not** loaded right away. It is added to a queue ready to be loaded either when the loader starts,\r\n * or if it's already running, when the next free load slot becomes available. This happens automatically if you\r\n * are calling this from within the Scene's `preload` method, or a related callback. Because the file is queued\r\n * it means you cannot use the file immediately after calling this method, but must wait for the file to complete.\r\n * The typical flow for a Phaser Scene is that you load assets in the Scene's `preload` method and then when the\r\n * Scene's `create` method is called you are guaranteed that all of those assets are ready for use and have been\r\n * loaded.\r\n *\r\n * The key must be a unique String. It is used to add the file to the global XML Cache upon a successful load.\r\n * The key should be unique both in terms of files being loaded and files already present in the XML Cache.\r\n * Loading a file using a key that is already taken will result in a warning. If you wish to replace an existing file\r\n * then remove it from the XML Cache first, before loading a new one.\r\n *\r\n * Instead of passing arguments you can pass a configuration object, such as:\r\n *\r\n * ```javascript\r\n * this.load.xml({\r\n * key: 'wavedata',\r\n * url: 'files/AlienWaveData.xml'\r\n * });\r\n * ```\r\n *\r\n * See the documentation for `Phaser.Types.Loader.FileTypes.XMLFileConfig` for more details.\r\n *\r\n * Once the file has finished loading you can access it from its Cache using its key:\r\n *\r\n * ```javascript\r\n * this.load.xml('wavedata', 'files/AlienWaveData.xml');\r\n * // and later in your game ...\r\n * var data = this.cache.xml.get('wavedata');\r\n * ```\r\n *\r\n * If you have specified a prefix in the loader, via `Loader.setPrefix` then this value will be prepended to this files\r\n * key. For example, if the prefix was `LEVEL1.` and the key was `Waves` the final key will be `LEVEL1.Waves` and\r\n * this is what you would use to retrieve the text from the XML Cache.\r\n *\r\n * The URL can be relative or absolute. If the URL is relative the `Loader.baseURL` and `Loader.path` values will be prepended to it.\r\n *\r\n * If the URL isn't specified the Loader will take the key and create a filename from that. For example if the key is \"data\"\r\n * and no URL is given then the Loader will set the URL to be \"data.xml\". It will always add `.xml` as the extension, although\r\n * this can be overridden if using an object instead of method arguments. If you do not desire this action then provide a URL.\r\n *\r\n * Note: The ability to load this type of file will only be available if the XML File type has been built into Phaser.\r\n * It is available in the default build but can be excluded from custom builds.\r\n *\r\n * @method Phaser.Loader.LoaderPlugin#xml\r\n * @fires Phaser.Loader.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Loader.FileTypes.XMLFileConfig|Phaser.Types.Loader.FileTypes.XMLFileConfig[])} key - The key to use for this file, or a file configuration object, or array of them.\r\n * @param {string} [url] - The absolute or relative URL to load this file from. If undefined or `null` it will be set to `.xml`, i.e. if `key` was \"alien\" then the URL will be \"alien.xml\".\r\n * @param {Phaser.Types.Loader.XHRSettingsObject} [xhrSettings] - An XHR Settings configuration object. Used in replacement of the Loaders default XHR Settings.\r\n *\r\n * @return {this} The Loader instance.\r\n */\r\nFileTypesManager.register('xml', function (key, url, xhrSettings)\r\n{\r\n if (Array.isArray(key))\r\n {\r\n for (var i = 0; i < key.length; i++)\r\n {\r\n // If it's an array it has to be an array of Objects, so we get everything out of the 'key' object\r\n this.addFile(new XMLFile(this, key[i]));\r\n }\r\n }\r\n else\r\n {\r\n this.addFile(new XMLFile(this, key, url, xhrSettings));\r\n }\r\n\r\n return this;\r\n});\r\n\r\nmodule.exports = XMLFile;\r\n\n\n/***/ }),\n\n/***/ 64589:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Loader.FileTypes\r\n */\r\n\r\nmodule.exports = {\r\n\r\n AnimationJSONFile: __webpack_require__(14135),\r\n AsepriteFile: __webpack_require__(76272),\r\n AtlasJSONFile: __webpack_require__(38734),\r\n AtlasXMLFile: __webpack_require__(74599),\r\n AudioFile: __webpack_require__(21097),\r\n AudioSpriteFile: __webpack_require__(89524),\r\n BinaryFile: __webpack_require__(85722),\r\n BitmapFontFile: __webpack_require__(97025),\r\n CompressedTextureFile: __webpack_require__(69559),\r\n CSSFile: __webpack_require__(16024),\r\n GLSLFile: __webpack_require__(47931),\r\n HTML5AudioFile: __webpack_require__(89749),\r\n HTMLFile: __webpack_require__(88470),\r\n HTMLTextureFile: __webpack_require__(14643),\r\n ImageFile: __webpack_require__(19550),\r\n JSONFile: __webpack_require__(518),\r\n MultiAtlasFile: __webpack_require__(59327),\r\n MultiScriptFile: __webpack_require__(99297),\r\n OBJFile: __webpack_require__(41846),\r\n PackFile: __webpack_require__(58610),\r\n PluginFile: __webpack_require__(48988),\r\n SceneFile: __webpack_require__(88423),\r\n ScenePluginFile: __webpack_require__(56812),\r\n ScriptFile: __webpack_require__(34328),\r\n SpriteSheetFile: __webpack_require__(85035),\r\n SVGFile: __webpack_require__(67397),\r\n TextFile: __webpack_require__(78776),\r\n TilemapCSVFile: __webpack_require__(49477),\r\n TilemapImpactFile: __webpack_require__(40807),\r\n TilemapJSONFile: __webpack_require__(56775),\r\n UnityAtlasFile: __webpack_require__(25771),\r\n VideoFile: __webpack_require__(33720),\r\n XMLFile: __webpack_require__(57318)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 57777:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(23906);\r\nvar Extend = __webpack_require__(79291);\r\n\r\n/**\r\n * @namespace Phaser.Loader\r\n */\r\n\r\nvar Loader = {\r\n\r\n Events: __webpack_require__(54899),\r\n\r\n FileTypes: __webpack_require__(64589),\r\n\r\n File: __webpack_require__(41299),\r\n FileTypesManager: __webpack_require__(74099),\r\n GetURL: __webpack_require__(98356),\r\n LoaderPlugin: __webpack_require__(74261),\r\n MergeXHRSettings: __webpack_require__(3374),\r\n MultiFile: __webpack_require__(26430),\r\n XHRLoader: __webpack_require__(84376),\r\n XHRSettings: __webpack_require__(92638)\r\n\r\n};\r\n\r\n// Merge in the consts\r\nLoader = Extend(false, Loader, CONST);\r\n\r\nmodule.exports = Loader;\r\n\n\n/***/ }),\n\n/***/ 53307:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculate the mean average of the given values.\r\n *\r\n * @function Phaser.Math.Average\r\n * @since 3.0.0\r\n *\r\n * @param {number[]} values - The values to average.\r\n *\r\n * @return {number} The average value.\r\n */\r\nvar Average = function (values)\r\n{\r\n var sum = 0;\r\n\r\n for (var i = 0; i < values.length; i++)\r\n {\r\n sum += (+values[i]);\r\n }\r\n\r\n return sum / values.length;\r\n};\r\n\r\nmodule.exports = Average;\r\n\n\n/***/ }),\n\n/***/ 85710:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Factorial = __webpack_require__(6411);\r\n\r\n/**\r\n * Calculates the Bernstein basis from the three factorial coefficients.\r\n *\r\n * @function Phaser.Math.Bernstein\r\n * @since 3.0.0\r\n *\r\n * @param {number} n - The first value.\r\n * @param {number} i - The second value.\r\n *\r\n * @return {number} The Bernstein basis of Factorial(n) / Factorial(i) / Factorial(n - i)\r\n */\r\nvar Bernstein = function (n, i)\r\n{\r\n return Factorial(n) / Factorial(i) / Factorial(n - i);\r\n};\r\n\r\nmodule.exports = Bernstein;\r\n\n\n/***/ }),\n\n/***/ 30976:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Compute a random integer between the `min` and `max` values, inclusive.\r\n *\r\n * @function Phaser.Math.Between\r\n * @since 3.0.0\r\n *\r\n * @param {number} min - The minimum value.\r\n * @param {number} max - The maximum value.\r\n *\r\n * @return {number} The random integer.\r\n */\r\nvar Between = function (min, max)\r\n{\r\n return Math.floor(Math.random() * (max - min + 1) + min);\r\n};\r\n\r\nmodule.exports = Between;\r\n\n\n/***/ }),\n\n/***/ 87842:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculates a Catmull-Rom value from the given points, based on an alpha of 0.5.\r\n *\r\n * @function Phaser.Math.CatmullRom\r\n * @since 3.0.0\r\n *\r\n * @param {number} t - The amount to interpolate by.\r\n * @param {number} p0 - The first control point.\r\n * @param {number} p1 - The second control point.\r\n * @param {number} p2 - The third control point.\r\n * @param {number} p3 - The fourth control point.\r\n *\r\n * @return {number} The Catmull-Rom value.\r\n */\r\nvar CatmullRom = function (t, p0, p1, p2, p3)\r\n{\r\n var v0 = (p2 - p0) * 0.5;\r\n var v1 = (p3 - p1) * 0.5;\r\n var t2 = t * t;\r\n var t3 = t * t2;\r\n\r\n return (2 * p1 - 2 * p2 + v0 + v1) * t3 + (-3 * p1 + 3 * p2 - 2 * v0 - v1) * t2 + v0 * t + p1;\r\n};\r\n\r\nmodule.exports = CatmullRom;\r\n\n\n/***/ }),\n\n/***/ 26302:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Ceils to some place comparative to a `base`, default is 10 for decimal place.\r\n *\r\n * The `place` is represented by the power applied to `base` to get that place.\r\n *\r\n * @function Phaser.Math.CeilTo\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The value to round.\r\n * @param {number} [place=0] - The place to round to.\r\n * @param {number} [base=10] - The base to round in. Default is 10 for decimal.\r\n *\r\n * @return {number} The rounded value.\r\n */\r\nvar CeilTo = function (value, place, base)\r\n{\r\n if (place === undefined) { place = 0; }\r\n if (base === undefined) { base = 10; }\r\n\r\n var p = Math.pow(base, -place);\r\n\r\n return Math.ceil(value * p) / p;\r\n};\r\n\r\nmodule.exports = CeilTo;\r\n\n\n/***/ }),\n\n/***/ 45319:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Force a value within the boundaries by clamping it to the range `min`, `max`.\r\n *\r\n * @function Phaser.Math.Clamp\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The value to be clamped.\r\n * @param {number} min - The minimum bounds.\r\n * @param {number} max - The maximum bounds.\r\n *\r\n * @return {number} The clamped value.\r\n */\r\nvar Clamp = function (value, min, max)\r\n{\r\n return Math.max(min, Math.min(max, value));\r\n};\r\n\r\nmodule.exports = Clamp;\r\n\n\n/***/ }),\n\n/***/ 39506:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(36383);\r\n\r\n/**\r\n * Convert the given angle from degrees, to the equivalent angle in radians.\r\n *\r\n * @function Phaser.Math.DegToRad\r\n * @since 3.0.0\r\n *\r\n * @param {number} degrees - The angle (in degrees) to convert to radians.\r\n *\r\n * @return {number} The given angle converted to radians.\r\n */\r\nvar DegToRad = function (degrees)\r\n{\r\n return degrees * CONST.DEG_TO_RAD;\r\n};\r\n\r\nmodule.exports = DegToRad;\r\n\n\n/***/ }),\n\n/***/ 61241:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculates the positive difference of two given numbers.\r\n *\r\n * @function Phaser.Math.Difference\r\n * @since 3.0.0\r\n *\r\n * @param {number} a - The first number in the calculation.\r\n * @param {number} b - The second number in the calculation.\r\n *\r\n * @return {number} The positive difference of the two given numbers.\r\n */\r\nvar Difference = function (a, b)\r\n{\r\n return Math.abs(a - b);\r\n};\r\n\r\nmodule.exports = Difference;\r\n\n\n/***/ }),\n\n/***/ 38857:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Clamp = __webpack_require__(45319);\r\nvar Class = __webpack_require__(83419);\r\nvar Matrix4 = __webpack_require__(37867);\r\nvar NOOP = __webpack_require__(29747);\r\n\r\nvar tempMatrix = new Matrix4();\r\n\r\n/**\r\n * @classdesc\r\n *\r\n * @class Euler\r\n * @memberof Phaser.Math\r\n * @constructor\r\n * @since 3.50.0\r\n *\r\n * @param {number} [x] - The x component.\r\n * @param {number} [y] - The y component.\r\n * @param {number} [z] - The z component.\r\n */\r\nvar Euler = new Class({\r\n\r\n initialize:\r\n\r\n function Euler (x, y, z, order)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (z === undefined) { z = 0; }\r\n if (order === undefined) { order = Euler.DefaultOrder; }\r\n\r\n this._x = x;\r\n this._y = y;\r\n this._z = z;\r\n this._order = order;\r\n\r\n this.onChangeCallback = NOOP;\r\n },\r\n\r\n x: {\r\n get: function ()\r\n {\r\n return this._x;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._x = value;\r\n\r\n this.onChangeCallback(this);\r\n }\r\n },\r\n\r\n y: {\r\n get: function ()\r\n {\r\n return this._y;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._y = value;\r\n\r\n this.onChangeCallback(this);\r\n }\r\n },\r\n\r\n z: {\r\n get: function ()\r\n {\r\n return this._z;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._z = value;\r\n\r\n this.onChangeCallback(this);\r\n }\r\n },\r\n\r\n order: {\r\n get: function ()\r\n {\r\n return this._order;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._order = value;\r\n\r\n this.onChangeCallback(this);\r\n }\r\n },\r\n\r\n set: function (x, y, z, order)\r\n {\r\n if (order === undefined) { order = this._order; }\r\n\r\n this._x = x;\r\n this._y = y;\r\n this._z = z;\r\n this._order = order;\r\n\r\n this.onChangeCallback(this);\r\n\r\n return this;\r\n },\r\n\r\n copy: function (euler)\r\n {\r\n return this.set(euler.x, euler.y, euler.z, euler.order);\r\n },\r\n\r\n setFromQuaternion: function (quaternion, order, update)\r\n {\r\n if (order === undefined) { order = this._order; }\r\n if (update === undefined) { update = false; }\r\n\r\n tempMatrix.fromQuat(quaternion);\r\n\r\n return this.setFromRotationMatrix(tempMatrix, order, update);\r\n },\r\n\r\n setFromRotationMatrix: function (matrix, order, update)\r\n {\r\n if (order === undefined) { order = this._order; }\r\n if (update === undefined) { update = false; }\r\n\r\n var elements = matrix.val;\r\n\r\n // Upper 3x3 of matrix is un-scaled rotation matrix\r\n var m11 = elements[0];\r\n var m12 = elements[4];\r\n var m13 = elements[8];\r\n var m21 = elements[1];\r\n var m22 = elements[5];\r\n var m23 = elements[9];\r\n var m31 = elements[2];\r\n var m32 = elements[6];\r\n var m33 = elements[10];\r\n\r\n var x = 0;\r\n var y = 0;\r\n var z = 0;\r\n var epsilon = 0.99999;\r\n\r\n switch (order)\r\n {\r\n case 'XYZ':\r\n {\r\n y = Math.asin(Clamp(m13, -1, 1));\r\n\r\n if (Math.abs(m13) < epsilon)\r\n {\r\n x = Math.atan2(-m23, m33);\r\n z = Math.atan2(-m12, m11);\r\n }\r\n else\r\n {\r\n x = Math.atan2(m32, m22);\r\n }\r\n\r\n break;\r\n }\r\n\r\n case 'YXZ':\r\n {\r\n x = Math.asin(-Clamp(m23, -1, 1));\r\n\r\n if (Math.abs(m23) < epsilon)\r\n {\r\n y = Math.atan2(m13, m33);\r\n z = Math.atan2(m21, m22);\r\n }\r\n else\r\n {\r\n y = Math.atan2(-m31, m11);\r\n }\r\n\r\n break;\r\n }\r\n\r\n case 'ZXY':\r\n {\r\n x = Math.asin(Clamp(m32, -1, 1));\r\n\r\n if (Math.abs(m32) < epsilon)\r\n {\r\n y = Math.atan2(-m31, m33);\r\n z = Math.atan2(-m12, m22);\r\n }\r\n else\r\n {\r\n z = Math.atan2(m21, m11);\r\n }\r\n\r\n break;\r\n }\r\n\r\n case 'ZYX':\r\n {\r\n y = Math.asin(-Clamp(m31, -1, 1));\r\n\r\n if (Math.abs(m31) < epsilon)\r\n {\r\n x = Math.atan2(m32, m33);\r\n z = Math.atan2(m21, m11);\r\n }\r\n else\r\n {\r\n z = Math.atan2(-m12, m22);\r\n }\r\n\r\n break;\r\n }\r\n\r\n case 'YZX':\r\n {\r\n z = Math.asin(Clamp(m21, -1, 1));\r\n\r\n if (Math.abs(m21) < epsilon)\r\n {\r\n x = Math.atan2(-m23, m22);\r\n y = Math.atan2(-m31, m11);\r\n }\r\n else\r\n {\r\n y = Math.atan2(m13, m33);\r\n }\r\n\r\n break;\r\n }\r\n\r\n case 'XZY':\r\n {\r\n z = Math.asin(-Clamp(m12, -1, 1));\r\n\r\n if (Math.abs(m12) < epsilon)\r\n {\r\n x = Math.atan2(m32, m22);\r\n y = Math.atan2(m13, m11);\r\n }\r\n else\r\n {\r\n x = Math.atan2(-m23, m33);\r\n }\r\n\r\n break;\r\n }\r\n }\r\n\r\n this._x = x;\r\n this._y = y;\r\n this._z = z;\r\n this._order = order;\r\n\r\n if (update)\r\n {\r\n this.onChangeCallback(this);\r\n }\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nEuler.RotationOrders = [ 'XYZ', 'YXZ', 'ZXY', 'ZYX', 'YZX', 'XZY' ];\r\n\r\nEuler.DefaultOrder = 'XYZ';\r\n\r\nmodule.exports = Euler;\r\n\n\n/***/ }),\n\n/***/ 6411:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculates the factorial of a given number for integer values greater than 0.\r\n *\r\n * @function Phaser.Math.Factorial\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - A positive integer to calculate the factorial of.\r\n *\r\n * @return {number} The factorial of the given number.\r\n */\r\nvar Factorial = function (value)\r\n{\r\n if (value === 0)\r\n {\r\n return 1;\r\n }\r\n\r\n var res = value;\r\n\r\n while (--value)\r\n {\r\n res *= value;\r\n }\r\n\r\n return res;\r\n};\r\n\r\nmodule.exports = Factorial;\r\n\n\n/***/ }),\n\n/***/ 99472:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Generate a random floating point number between the two given bounds, minimum inclusive, maximum exclusive.\r\n *\r\n * @function Phaser.Math.FloatBetween\r\n * @since 3.0.0\r\n *\r\n * @param {number} min - The lower bound for the float, inclusive.\r\n * @param {number} max - The upper bound for the float exclusive.\r\n *\r\n * @return {number} A random float within the given range.\r\n */\r\nvar FloatBetween = function (min, max)\r\n{\r\n return Math.random() * (max - min) + min;\r\n};\r\n\r\nmodule.exports = FloatBetween;\r\n\n\n/***/ }),\n\n/***/ 77623:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Floors to some place comparative to a `base`, default is 10 for decimal place.\r\n *\r\n * The `place` is represented by the power applied to `base` to get that place.\r\n *\r\n * @function Phaser.Math.FloorTo\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The value to round.\r\n * @param {number} [place=0] - The place to round to.\r\n * @param {number} [base=10] - The base to round in. Default is 10 for decimal.\r\n *\r\n * @return {number} The rounded value.\r\n */\r\nvar FloorTo = function (value, place, base)\r\n{\r\n if (place === undefined) { place = 0; }\r\n if (base === undefined) { base = 10; }\r\n\r\n var p = Math.pow(base, -place);\r\n\r\n return Math.floor(value * p) / p;\r\n};\r\n\r\nmodule.exports = FloorTo;\r\n\n\n/***/ }),\n\n/***/ 62945:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Clamp = __webpack_require__(45319);\r\n\r\n/**\r\n * Return a value based on the range between `min` and `max` and the percentage given.\r\n *\r\n * @function Phaser.Math.FromPercent\r\n * @since 3.0.0\r\n *\r\n * @param {number} percent - A value between 0 and 1 representing the percentage.\r\n * @param {number} min - The minimum value.\r\n * @param {number} [max] - The maximum value.\r\n *\r\n * @return {number} The value that is `percent` percent between `min` and `max`.\r\n */\r\nvar FromPercent = function (percent, min, max)\r\n{\r\n percent = Clamp(percent, 0, 1);\r\n\r\n return (max - min) * percent + min;\r\n};\r\n\r\nmodule.exports = FromPercent;\r\n\n\n/***/ }),\n\n/***/ 38265:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculate a per-ms speed from a distance and time (given in seconds).\r\n *\r\n * @function Phaser.Math.GetSpeed\r\n * @since 3.0.0\r\n *\r\n * @param {number} distance - The distance.\r\n * @param {number} time - The time, in seconds.\r\n *\r\n * @return {number} The speed, in distance per ms.\r\n *\r\n * @example\r\n * // 400px over 1 second is 0.4 px/ms\r\n * Phaser.Math.GetSpeed(400, 1) // -> 0.4\r\n */\r\nvar GetSpeed = function (distance, time)\r\n{\r\n return (distance / time) / 1000;\r\n};\r\n\r\nmodule.exports = GetSpeed;\r\n\n\n/***/ }),\n\n/***/ 78702:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Check if a given value is an even number.\r\n *\r\n * @function Phaser.Math.IsEven\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The number to perform the check with.\r\n *\r\n * @return {boolean} Whether the number is even or not.\r\n */\r\nvar IsEven = function (value)\r\n{\r\n // Use abstract equality == for \"is number\" test\r\n\r\n // eslint-disable-next-line eqeqeq\r\n return (value == parseFloat(value)) ? !(value % 2) : void 0;\r\n};\r\n\r\nmodule.exports = IsEven;\r\n\n\n/***/ }),\n\n/***/ 94883:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Check if a given value is an even number using a strict type check.\r\n *\r\n * @function Phaser.Math.IsEvenStrict\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The number to perform the check with.\r\n *\r\n * @return {boolean} Whether the number is even or not.\r\n */\r\nvar IsEvenStrict = function (value)\r\n{\r\n // Use strict equality === for \"is number\" test\r\n return (value === parseFloat(value)) ? !(value % 2) : void 0;\r\n};\r\n\r\nmodule.exports = IsEvenStrict;\r\n\n\n/***/ }),\n\n/***/ 28915:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculates a linear (interpolation) value over t.\r\n *\r\n * @function Phaser.Math.Linear\r\n * @since 3.0.0\r\n *\r\n * @param {number} p0 - The first point.\r\n * @param {number} p1 - The second point.\r\n * @param {number} t - The percentage between p0 and p1 to return, represented as a number between 0 and 1.\r\n *\r\n * @return {number} The step t% of the way between p0 and p1.\r\n */\r\nvar Linear = function (p0, p1, t)\r\n{\r\n return (p1 - p0) * t + p0;\r\n};\r\n\r\nmodule.exports = Linear;\r\n\n\n/***/ }),\n\n/***/ 94908:\n/***/ ((module) => {\n\n/**\r\n * @author Greg McLean \r\n * @copyright 2021 Photon Storm Ltd.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Interpolates two given Vectors and returns a new Vector between them.\r\n *\r\n * Does not modify either of the passed Vectors.\r\n *\r\n * @function Phaser.Math.LinearXY\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Math.Vector2} vector1 - Starting vector\r\n * @param {Phaser.Math.Vector2} vector2 - Ending vector\r\n * @param {number} [t=0] - The percentage between vector1 and vector2 to return, represented as a number between 0 and 1.\r\n *\r\n * @return {Phaser.Math.Vector2} The step t% of the way between vector1 and vector2.\r\n */\r\nvar LinearXY = function (vector1, vector2, t)\r\n{\r\n if (t === undefined) { t = 0; }\r\n\r\n return vector1.clone().lerp(vector2, t);\r\n};\r\n\r\nmodule.exports = LinearXY;\r\n\n\n/***/ }),\n\n/***/ 94434:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// Adapted from [gl-matrix](https://github.com/toji/gl-matrix) by toji\r\n// and [vecmath](https://github.com/mattdesl/vecmath) by mattdesl\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n/**\r\n * @classdesc\r\n * A three-dimensional matrix.\r\n *\r\n * Defaults to the identity matrix when instantiated.\r\n *\r\n * @class Matrix3\r\n * @memberof Phaser.Math\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Matrix3} [m] - Optional Matrix3 to copy values from.\r\n */\r\nvar Matrix3 = new Class({\r\n\r\n initialize:\r\n\r\n function Matrix3 (m)\r\n {\r\n /**\r\n * The matrix values.\r\n *\r\n * @name Phaser.Math.Matrix3#val\r\n * @type {Float32Array}\r\n * @since 3.0.0\r\n */\r\n this.val = new Float32Array(9);\r\n\r\n if (m)\r\n {\r\n // Assume Matrix3 with val:\r\n this.copy(m);\r\n }\r\n else\r\n {\r\n // Default to identity\r\n this.identity();\r\n }\r\n },\r\n\r\n /**\r\n * Make a clone of this Matrix3.\r\n *\r\n * @method Phaser.Math.Matrix3#clone\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Matrix3} A clone of this Matrix3.\r\n */\r\n clone: function ()\r\n {\r\n return new Matrix3(this);\r\n },\r\n\r\n /**\r\n * This method is an alias for `Matrix3.copy`.\r\n *\r\n * @method Phaser.Math.Matrix3#set\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Matrix3} src - The Matrix to set the values of this Matrix's from.\r\n *\r\n * @return {Phaser.Math.Matrix3} This Matrix3.\r\n */\r\n set: function (src)\r\n {\r\n return this.copy(src);\r\n },\r\n\r\n /**\r\n * Copy the values of a given Matrix into this Matrix.\r\n *\r\n * @method Phaser.Math.Matrix3#copy\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Matrix3} src - The Matrix to copy the values from.\r\n *\r\n * @return {Phaser.Math.Matrix3} This Matrix3.\r\n */\r\n copy: function (src)\r\n {\r\n var out = this.val;\r\n var a = src.val;\r\n\r\n out[0] = a[0];\r\n out[1] = a[1];\r\n out[2] = a[2];\r\n out[3] = a[3];\r\n out[4] = a[4];\r\n out[5] = a[5];\r\n out[6] = a[6];\r\n out[7] = a[7];\r\n out[8] = a[8];\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Copy the values of a given Matrix4 into this Matrix3.\r\n *\r\n * @method Phaser.Math.Matrix3#fromMat4\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Matrix4} m - The Matrix4 to copy the values from.\r\n *\r\n * @return {Phaser.Math.Matrix3} This Matrix3.\r\n */\r\n fromMat4: function (m)\r\n {\r\n var a = m.val;\r\n var out = this.val;\r\n\r\n out[0] = a[0];\r\n out[1] = a[1];\r\n out[2] = a[2];\r\n out[3] = a[4];\r\n out[4] = a[5];\r\n out[5] = a[6];\r\n out[6] = a[8];\r\n out[7] = a[9];\r\n out[8] = a[10];\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the values of this Matrix from the given array.\r\n *\r\n * @method Phaser.Math.Matrix3#fromArray\r\n * @since 3.0.0\r\n *\r\n * @param {array} a - The array to copy the values from.\r\n *\r\n * @return {Phaser.Math.Matrix3} This Matrix3.\r\n */\r\n fromArray: function (a)\r\n {\r\n var out = this.val;\r\n\r\n out[0] = a[0];\r\n out[1] = a[1];\r\n out[2] = a[2];\r\n out[3] = a[3];\r\n out[4] = a[4];\r\n out[5] = a[5];\r\n out[6] = a[6];\r\n out[7] = a[7];\r\n out[8] = a[8];\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Reset this Matrix to an identity (default) matrix.\r\n *\r\n * @method Phaser.Math.Matrix3#identity\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Matrix3} This Matrix3.\r\n */\r\n identity: function ()\r\n {\r\n var out = this.val;\r\n\r\n out[0] = 1;\r\n out[1] = 0;\r\n out[2] = 0;\r\n out[3] = 0;\r\n out[4] = 1;\r\n out[5] = 0;\r\n out[6] = 0;\r\n out[7] = 0;\r\n out[8] = 1;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Transpose this Matrix.\r\n *\r\n * @method Phaser.Math.Matrix3#transpose\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Matrix3} This Matrix3.\r\n */\r\n transpose: function ()\r\n {\r\n var a = this.val;\r\n var a01 = a[1];\r\n var a02 = a[2];\r\n var a12 = a[5];\r\n\r\n a[1] = a[3];\r\n a[2] = a[6];\r\n a[3] = a01;\r\n a[5] = a[7];\r\n a[6] = a02;\r\n a[7] = a12;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Invert this Matrix.\r\n *\r\n * @method Phaser.Math.Matrix3#invert\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Matrix3} This Matrix3.\r\n */\r\n invert: function ()\r\n {\r\n var a = this.val;\r\n\r\n var a00 = a[0];\r\n var a01 = a[1];\r\n var a02 = a[2];\r\n var a10 = a[3];\r\n var a11 = a[4];\r\n var a12 = a[5];\r\n var a20 = a[6];\r\n var a21 = a[7];\r\n var a22 = a[8];\r\n\r\n var b01 = a22 * a11 - a12 * a21;\r\n var b11 = -a22 * a10 + a12 * a20;\r\n var b21 = a21 * a10 - a11 * a20;\r\n\r\n // Calculate the determinant\r\n var det = a00 * b01 + a01 * b11 + a02 * b21;\r\n\r\n if (!det)\r\n {\r\n return null;\r\n }\r\n\r\n det = 1 / det;\r\n\r\n a[0] = b01 * det;\r\n a[1] = (-a22 * a01 + a02 * a21) * det;\r\n a[2] = (a12 * a01 - a02 * a11) * det;\r\n a[3] = b11 * det;\r\n a[4] = (a22 * a00 - a02 * a20) * det;\r\n a[5] = (-a12 * a00 + a02 * a10) * det;\r\n a[6] = b21 * det;\r\n a[7] = (-a21 * a00 + a01 * a20) * det;\r\n a[8] = (a11 * a00 - a01 * a10) * det;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calculate the adjoint, or adjugate, of this Matrix.\r\n *\r\n * @method Phaser.Math.Matrix3#adjoint\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Matrix3} This Matrix3.\r\n */\r\n adjoint: function ()\r\n {\r\n var a = this.val;\r\n\r\n var a00 = a[0];\r\n var a01 = a[1];\r\n var a02 = a[2];\r\n var a10 = a[3];\r\n var a11 = a[4];\r\n var a12 = a[5];\r\n var a20 = a[6];\r\n var a21 = a[7];\r\n var a22 = a[8];\r\n\r\n a[0] = (a11 * a22 - a12 * a21);\r\n a[1] = (a02 * a21 - a01 * a22);\r\n a[2] = (a01 * a12 - a02 * a11);\r\n a[3] = (a12 * a20 - a10 * a22);\r\n a[4] = (a00 * a22 - a02 * a20);\r\n a[5] = (a02 * a10 - a00 * a12);\r\n a[6] = (a10 * a21 - a11 * a20);\r\n a[7] = (a01 * a20 - a00 * a21);\r\n a[8] = (a00 * a11 - a01 * a10);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calculate the determinant of this Matrix.\r\n *\r\n * @method Phaser.Math.Matrix3#determinant\r\n * @since 3.0.0\r\n *\r\n * @return {number} The determinant of this Matrix.\r\n */\r\n determinant: function ()\r\n {\r\n var a = this.val;\r\n\r\n var a00 = a[0];\r\n var a01 = a[1];\r\n var a02 = a[2];\r\n var a10 = a[3];\r\n var a11 = a[4];\r\n var a12 = a[5];\r\n var a20 = a[6];\r\n var a21 = a[7];\r\n var a22 = a[8];\r\n\r\n return a00 * (a22 * a11 - a12 * a21) + a01 * (-a22 * a10 + a12 * a20) + a02 * (a21 * a10 - a11 * a20);\r\n },\r\n\r\n /**\r\n * Multiply this Matrix by the given Matrix.\r\n *\r\n * @method Phaser.Math.Matrix3#multiply\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Matrix3} src - The Matrix to multiply this Matrix by.\r\n *\r\n * @return {Phaser.Math.Matrix3} This Matrix3.\r\n */\r\n multiply: function (src)\r\n {\r\n var a = this.val;\r\n\r\n var a00 = a[0];\r\n var a01 = a[1];\r\n var a02 = a[2];\r\n var a10 = a[3];\r\n var a11 = a[4];\r\n var a12 = a[5];\r\n var a20 = a[6];\r\n var a21 = a[7];\r\n var a22 = a[8];\r\n\r\n var b = src.val;\r\n\r\n var b00 = b[0];\r\n var b01 = b[1];\r\n var b02 = b[2];\r\n var b10 = b[3];\r\n var b11 = b[4];\r\n var b12 = b[5];\r\n var b20 = b[6];\r\n var b21 = b[7];\r\n var b22 = b[8];\r\n\r\n a[0] = b00 * a00 + b01 * a10 + b02 * a20;\r\n a[1] = b00 * a01 + b01 * a11 + b02 * a21;\r\n a[2] = b00 * a02 + b01 * a12 + b02 * a22;\r\n\r\n a[3] = b10 * a00 + b11 * a10 + b12 * a20;\r\n a[4] = b10 * a01 + b11 * a11 + b12 * a21;\r\n a[5] = b10 * a02 + b11 * a12 + b12 * a22;\r\n\r\n a[6] = b20 * a00 + b21 * a10 + b22 * a20;\r\n a[7] = b20 * a01 + b21 * a11 + b22 * a21;\r\n a[8] = b20 * a02 + b21 * a12 + b22 * a22;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Translate this Matrix using the given Vector.\r\n *\r\n * @method Phaser.Math.Matrix3#translate\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - The Vector to translate this Matrix with.\r\n *\r\n * @return {Phaser.Math.Matrix3} This Matrix3.\r\n */\r\n translate: function (v)\r\n {\r\n var a = this.val;\r\n var x = v.x;\r\n var y = v.y;\r\n\r\n a[6] = x * a[0] + y * a[3] + a[6];\r\n a[7] = x * a[1] + y * a[4] + a[7];\r\n a[8] = x * a[2] + y * a[5] + a[8];\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Apply a rotation transformation to this Matrix.\r\n *\r\n * @method Phaser.Math.Matrix3#rotate\r\n * @since 3.0.0\r\n *\r\n * @param {number} rad - The angle in radians to rotate by.\r\n *\r\n * @return {Phaser.Math.Matrix3} This Matrix3.\r\n */\r\n rotate: function (rad)\r\n {\r\n var a = this.val;\r\n\r\n var a00 = a[0];\r\n var a01 = a[1];\r\n var a02 = a[2];\r\n var a10 = a[3];\r\n var a11 = a[4];\r\n var a12 = a[5];\r\n\r\n var s = Math.sin(rad);\r\n var c = Math.cos(rad);\r\n\r\n a[0] = c * a00 + s * a10;\r\n a[1] = c * a01 + s * a11;\r\n a[2] = c * a02 + s * a12;\r\n\r\n a[3] = c * a10 - s * a00;\r\n a[4] = c * a11 - s * a01;\r\n a[5] = c * a12 - s * a02;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Apply a scale transformation to this Matrix.\r\n *\r\n * Uses the `x` and `y` components of the given Vector to scale the Matrix.\r\n *\r\n * @method Phaser.Math.Matrix3#scale\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - The Vector to scale this Matrix with.\r\n *\r\n * @return {Phaser.Math.Matrix3} This Matrix3.\r\n */\r\n scale: function (v)\r\n {\r\n var a = this.val;\r\n var x = v.x;\r\n var y = v.y;\r\n\r\n a[0] = x * a[0];\r\n a[1] = x * a[1];\r\n a[2] = x * a[2];\r\n\r\n a[3] = y * a[3];\r\n a[4] = y * a[4];\r\n a[5] = y * a[5];\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the values of this Matrix from the given Quaternion.\r\n *\r\n * @method Phaser.Math.Matrix3#fromQuat\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Quaternion} q - The Quaternion to set the values of this Matrix from.\r\n *\r\n * @return {Phaser.Math.Matrix3} This Matrix3.\r\n */\r\n fromQuat: function (q)\r\n {\r\n var x = q.x;\r\n var y = q.y;\r\n var z = q.z;\r\n var w = q.w;\r\n\r\n var x2 = x + x;\r\n var y2 = y + y;\r\n var z2 = z + z;\r\n\r\n var xx = x * x2;\r\n var xy = x * y2;\r\n var xz = x * z2;\r\n\r\n var yy = y * y2;\r\n var yz = y * z2;\r\n var zz = z * z2;\r\n\r\n var wx = w * x2;\r\n var wy = w * y2;\r\n var wz = w * z2;\r\n\r\n var out = this.val;\r\n\r\n out[0] = 1 - (yy + zz);\r\n out[3] = xy + wz;\r\n out[6] = xz - wy;\r\n\r\n out[1] = xy - wz;\r\n out[4] = 1 - (xx + zz);\r\n out[7] = yz + wx;\r\n\r\n out[2] = xz + wy;\r\n out[5] = yz - wx;\r\n out[8] = 1 - (xx + yy);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the values of this Matrix3 to be normalized from the given Matrix4.\r\n *\r\n * @method Phaser.Math.Matrix3#normalFromMat4\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Matrix4} m - The Matrix4 to normalize the values from.\r\n *\r\n * @return {Phaser.Math.Matrix3} This Matrix3.\r\n */\r\n normalFromMat4: function (m)\r\n {\r\n var a = m.val;\r\n var out = this.val;\r\n\r\n var a00 = a[0];\r\n var a01 = a[1];\r\n var a02 = a[2];\r\n var a03 = a[3];\r\n\r\n var a10 = a[4];\r\n var a11 = a[5];\r\n var a12 = a[6];\r\n var a13 = a[7];\r\n\r\n var a20 = a[8];\r\n var a21 = a[9];\r\n var a22 = a[10];\r\n var a23 = a[11];\r\n\r\n var a30 = a[12];\r\n var a31 = a[13];\r\n var a32 = a[14];\r\n var a33 = a[15];\r\n\r\n var b00 = a00 * a11 - a01 * a10;\r\n var b01 = a00 * a12 - a02 * a10;\r\n var b02 = a00 * a13 - a03 * a10;\r\n var b03 = a01 * a12 - a02 * a11;\r\n\r\n var b04 = a01 * a13 - a03 * a11;\r\n var b05 = a02 * a13 - a03 * a12;\r\n var b06 = a20 * a31 - a21 * a30;\r\n var b07 = a20 * a32 - a22 * a30;\r\n\r\n var b08 = a20 * a33 - a23 * a30;\r\n var b09 = a21 * a32 - a22 * a31;\r\n var b10 = a21 * a33 - a23 * a31;\r\n var b11 = a22 * a33 - a23 * a32;\r\n\r\n // Calculate the determinant\r\n var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;\r\n\r\n if (!det)\r\n {\r\n return null;\r\n }\r\n\r\n det = 1 / det;\r\n\r\n out[0] = (a11 * b11 - a12 * b10 + a13 * b09) * det;\r\n out[1] = (a12 * b08 - a10 * b11 - a13 * b07) * det;\r\n out[2] = (a10 * b10 - a11 * b08 + a13 * b06) * det;\r\n\r\n out[3] = (a02 * b10 - a01 * b11 - a03 * b09) * det;\r\n out[4] = (a00 * b11 - a02 * b08 + a03 * b07) * det;\r\n out[5] = (a01 * b08 - a00 * b10 - a03 * b06) * det;\r\n\r\n out[6] = (a31 * b05 - a32 * b04 + a33 * b03) * det;\r\n out[7] = (a32 * b02 - a30 * b05 - a33 * b01) * det;\r\n out[8] = (a30 * b04 - a31 * b02 + a33 * b00) * det;\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Matrix3;\r\n\n\n/***/ }),\n\n/***/ 37867:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Vector3 = __webpack_require__(25836);\r\n\r\n/**\r\n * @ignore\r\n */\r\nvar EPSILON = 0.000001;\r\n\r\n/**\r\n * @classdesc\r\n * A four-dimensional matrix.\r\n *\r\n * Adapted from [gl-matrix](https://github.com/toji/gl-matrix) by toji\r\n * and [vecmath](https://github.com/mattdesl/vecmath) by mattdesl\r\n *\r\n * @class Matrix4\r\n * @memberof Phaser.Math\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Matrix4} [m] - Optional Matrix4 to copy values from.\r\n */\r\nvar Matrix4 = new Class({\r\n\r\n initialize:\r\n\r\n function Matrix4 (m)\r\n {\r\n /**\r\n * The matrix values.\r\n *\r\n * @name Phaser.Math.Matrix4#val\r\n * @type {Float32Array}\r\n * @since 3.0.0\r\n */\r\n this.val = new Float32Array(16);\r\n\r\n if (m)\r\n {\r\n // Assume Matrix4 with val:\r\n this.copy(m);\r\n }\r\n else\r\n {\r\n // Default to identity\r\n this.identity();\r\n }\r\n },\r\n\r\n /**\r\n * Make a clone of this Matrix4.\r\n *\r\n * @method Phaser.Math.Matrix4#clone\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Matrix4} A clone of this Matrix4.\r\n */\r\n clone: function ()\r\n {\r\n return new Matrix4(this);\r\n },\r\n\r\n /**\r\n * This method is an alias for `Matrix4.copy`.\r\n *\r\n * @method Phaser.Math.Matrix4#set\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Matrix4} src - The Matrix to set the values of this Matrix's from.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n set: function (src)\r\n {\r\n return this.copy(src);\r\n },\r\n\r\n /**\r\n * Sets all values of this Matrix4.\r\n *\r\n * @method Phaser.Math.Matrix4#setValues\r\n * @since 3.50.0\r\n *\r\n * @param {number} m00 - The m00 value.\r\n * @param {number} m01 - The m01 value.\r\n * @param {number} m02 - The m02 value.\r\n * @param {number} m03 - The m03 value.\r\n * @param {number} m10 - The m10 value.\r\n * @param {number} m11 - The m11 value.\r\n * @param {number} m12 - The m12 value.\r\n * @param {number} m13 - The m13 value.\r\n * @param {number} m20 - The m20 value.\r\n * @param {number} m21 - The m21 value.\r\n * @param {number} m22 - The m22 value.\r\n * @param {number} m23 - The m23 value.\r\n * @param {number} m30 - The m30 value.\r\n * @param {number} m31 - The m31 value.\r\n * @param {number} m32 - The m32 value.\r\n * @param {number} m33 - The m33 value.\r\n *\r\n * @return {this} This Matrix4 instance.\r\n */\r\n setValues: function (m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33)\r\n {\r\n var out = this.val;\r\n\r\n out[0] = m00;\r\n out[1] = m01;\r\n out[2] = m02;\r\n out[3] = m03;\r\n out[4] = m10;\r\n out[5] = m11;\r\n out[6] = m12;\r\n out[7] = m13;\r\n out[8] = m20;\r\n out[9] = m21;\r\n out[10] = m22;\r\n out[11] = m23;\r\n out[12] = m30;\r\n out[13] = m31;\r\n out[14] = m32;\r\n out[15] = m33;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Copy the values of a given Matrix into this Matrix.\r\n *\r\n * @method Phaser.Math.Matrix4#copy\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Matrix4} src - The Matrix to copy the values from.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n copy: function (src)\r\n {\r\n var a = src.val;\r\n\r\n return this.setValues(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11], a[12], a[13], a[14], a[15]);\r\n },\r\n\r\n /**\r\n * Set the values of this Matrix from the given array.\r\n *\r\n * @method Phaser.Math.Matrix4#fromArray\r\n * @since 3.0.0\r\n *\r\n * @param {number[]} a - The array to copy the values from. Must have at least 16 elements.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n fromArray: function (a)\r\n {\r\n return this.setValues(a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8], a[9], a[10], a[11], a[12], a[13], a[14], a[15]);\r\n },\r\n\r\n /**\r\n * Reset this Matrix.\r\n *\r\n * Sets all values to `0`.\r\n *\r\n * @method Phaser.Math.Matrix4#zero\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Matrix4} This Matrix4.\r\n */\r\n zero: function ()\r\n {\r\n return this.setValues(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);\r\n },\r\n\r\n /**\r\n * Generates a transform matrix based on the given position, scale and rotation.\r\n *\r\n * @method Phaser.Math.Matrix4#transform\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Math.Vector3} position - The position vector.\r\n * @param {Phaser.Math.Vector3} scale - The scale vector.\r\n * @param {Phaser.Math.Quaternion} rotation - The rotation quaternion.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n transform: function (position, scale, rotation)\r\n {\r\n var rotMatrix = _tempMat1.fromQuat(rotation);\r\n\r\n var rm = rotMatrix.val;\r\n\r\n var sx = scale.x;\r\n var sy = scale.y;\r\n var sz = scale.z;\r\n\r\n return this.setValues(\r\n rm[0] * sx,\r\n rm[1] * sx,\r\n rm[2] * sx,\r\n 0,\r\n\r\n rm[4] * sy,\r\n rm[5] * sy,\r\n rm[6] * sy,\r\n 0,\r\n\r\n rm[8] * sz,\r\n rm[9] * sz,\r\n rm[10] * sz,\r\n 0,\r\n\r\n position.x,\r\n position.y,\r\n position.z,\r\n 1\r\n );\r\n },\r\n\r\n /**\r\n * Set the `x`, `y` and `z` values of this Matrix.\r\n *\r\n * @method Phaser.Math.Matrix4#xyz\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x value.\r\n * @param {number} y - The y value.\r\n * @param {number} z - The z value.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n xyz: function (x, y, z)\r\n {\r\n this.identity();\r\n\r\n var out = this.val;\r\n\r\n out[12] = x;\r\n out[13] = y;\r\n out[14] = z;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the scaling values of this Matrix.\r\n *\r\n * @method Phaser.Math.Matrix4#scaling\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x scaling value.\r\n * @param {number} y - The y scaling value.\r\n * @param {number} z - The z scaling value.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n scaling: function (x, y, z)\r\n {\r\n this.zero();\r\n\r\n var out = this.val;\r\n\r\n out[0] = x;\r\n out[5] = y;\r\n out[10] = z;\r\n out[15] = 1;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Reset this Matrix to an identity (default) matrix.\r\n *\r\n * @method Phaser.Math.Matrix4#identity\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n identity: function ()\r\n {\r\n return this.setValues(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);\r\n },\r\n\r\n /**\r\n * Transpose this Matrix.\r\n *\r\n * @method Phaser.Math.Matrix4#transpose\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n transpose: function ()\r\n {\r\n var a = this.val;\r\n\r\n var a01 = a[1];\r\n var a02 = a[2];\r\n var a03 = a[3];\r\n var a12 = a[6];\r\n var a13 = a[7];\r\n var a23 = a[11];\r\n\r\n a[1] = a[4];\r\n a[2] = a[8];\r\n a[3] = a[12];\r\n a[4] = a01;\r\n a[6] = a[9];\r\n a[7] = a[13];\r\n a[8] = a02;\r\n a[9] = a12;\r\n a[11] = a[14];\r\n a[12] = a03;\r\n a[13] = a13;\r\n a[14] = a23;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Copies the given Matrix4 into this Matrix and then inverses it.\r\n *\r\n * @method Phaser.Math.Matrix4#getInverse\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Math.Matrix4} m - The Matrix4 to invert into this Matrix4.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n getInverse: function (m)\r\n {\r\n this.copy(m);\r\n\r\n return this.invert();\r\n },\r\n\r\n /**\r\n * Invert this Matrix.\r\n *\r\n * @method Phaser.Math.Matrix4#invert\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n invert: function ()\r\n {\r\n var a = this.val;\r\n\r\n var a00 = a[0];\r\n var a01 = a[1];\r\n var a02 = a[2];\r\n var a03 = a[3];\r\n\r\n var a10 = a[4];\r\n var a11 = a[5];\r\n var a12 = a[6];\r\n var a13 = a[7];\r\n\r\n var a20 = a[8];\r\n var a21 = a[9];\r\n var a22 = a[10];\r\n var a23 = a[11];\r\n\r\n var a30 = a[12];\r\n var a31 = a[13];\r\n var a32 = a[14];\r\n var a33 = a[15];\r\n\r\n var b00 = a00 * a11 - a01 * a10;\r\n var b01 = a00 * a12 - a02 * a10;\r\n var b02 = a00 * a13 - a03 * a10;\r\n var b03 = a01 * a12 - a02 * a11;\r\n\r\n var b04 = a01 * a13 - a03 * a11;\r\n var b05 = a02 * a13 - a03 * a12;\r\n var b06 = a20 * a31 - a21 * a30;\r\n var b07 = a20 * a32 - a22 * a30;\r\n\r\n var b08 = a20 * a33 - a23 * a30;\r\n var b09 = a21 * a32 - a22 * a31;\r\n var b10 = a21 * a33 - a23 * a31;\r\n var b11 = a22 * a33 - a23 * a32;\r\n\r\n // Calculate the determinant\r\n var det = b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;\r\n\r\n if (!det)\r\n {\r\n return this;\r\n }\r\n\r\n det = 1 / det;\r\n\r\n return this.setValues(\r\n (a11 * b11 - a12 * b10 + a13 * b09) * det,\r\n (a02 * b10 - a01 * b11 - a03 * b09) * det,\r\n (a31 * b05 - a32 * b04 + a33 * b03) * det,\r\n (a22 * b04 - a21 * b05 - a23 * b03) * det,\r\n (a12 * b08 - a10 * b11 - a13 * b07) * det,\r\n (a00 * b11 - a02 * b08 + a03 * b07) * det,\r\n (a32 * b02 - a30 * b05 - a33 * b01) * det,\r\n (a20 * b05 - a22 * b02 + a23 * b01) * det,\r\n (a10 * b10 - a11 * b08 + a13 * b06) * det,\r\n (a01 * b08 - a00 * b10 - a03 * b06) * det,\r\n (a30 * b04 - a31 * b02 + a33 * b00) * det,\r\n (a21 * b02 - a20 * b04 - a23 * b00) * det,\r\n (a11 * b07 - a10 * b09 - a12 * b06) * det,\r\n (a00 * b09 - a01 * b07 + a02 * b06) * det,\r\n (a31 * b01 - a30 * b03 - a32 * b00) * det,\r\n (a20 * b03 - a21 * b01 + a22 * b00) * det\r\n );\r\n },\r\n\r\n /**\r\n * Calculate the adjoint, or adjugate, of this Matrix.\r\n *\r\n * @method Phaser.Math.Matrix4#adjoint\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n adjoint: function ()\r\n {\r\n var a = this.val;\r\n\r\n var a00 = a[0];\r\n var a01 = a[1];\r\n var a02 = a[2];\r\n var a03 = a[3];\r\n\r\n var a10 = a[4];\r\n var a11 = a[5];\r\n var a12 = a[6];\r\n var a13 = a[7];\r\n\r\n var a20 = a[8];\r\n var a21 = a[9];\r\n var a22 = a[10];\r\n var a23 = a[11];\r\n\r\n var a30 = a[12];\r\n var a31 = a[13];\r\n var a32 = a[14];\r\n var a33 = a[15];\r\n\r\n return this.setValues(\r\n (a11 * (a22 * a33 - a23 * a32) - a21 * (a12 * a33 - a13 * a32) + a31 * (a12 * a23 - a13 * a22)),\r\n -(a01 * (a22 * a33 - a23 * a32) - a21 * (a02 * a33 - a03 * a32) + a31 * (a02 * a23 - a03 * a22)),\r\n (a01 * (a12 * a33 - a13 * a32) - a11 * (a02 * a33 - a03 * a32) + a31 * (a02 * a13 - a03 * a12)),\r\n -(a01 * (a12 * a23 - a13 * a22) - a11 * (a02 * a23 - a03 * a22) + a21 * (a02 * a13 - a03 * a12)),\r\n -(a10 * (a22 * a33 - a23 * a32) - a20 * (a12 * a33 - a13 * a32) + a30 * (a12 * a23 - a13 * a22)),\r\n (a00 * (a22 * a33 - a23 * a32) - a20 * (a02 * a33 - a03 * a32) + a30 * (a02 * a23 - a03 * a22)),\r\n -(a00 * (a12 * a33 - a13 * a32) - a10 * (a02 * a33 - a03 * a32) + a30 * (a02 * a13 - a03 * a12)),\r\n (a00 * (a12 * a23 - a13 * a22) - a10 * (a02 * a23 - a03 * a22) + a20 * (a02 * a13 - a03 * a12)),\r\n (a10 * (a21 * a33 - a23 * a31) - a20 * (a11 * a33 - a13 * a31) + a30 * (a11 * a23 - a13 * a21)),\r\n -(a00 * (a21 * a33 - a23 * a31) - a20 * (a01 * a33 - a03 * a31) + a30 * (a01 * a23 - a03 * a21)),\r\n (a00 * (a11 * a33 - a13 * a31) - a10 * (a01 * a33 - a03 * a31) + a30 * (a01 * a13 - a03 * a11)),\r\n -(a00 * (a11 * a23 - a13 * a21) - a10 * (a01 * a23 - a03 * a21) + a20 * (a01 * a13 - a03 * a11)),\r\n -(a10 * (a21 * a32 - a22 * a31) - a20 * (a11 * a32 - a12 * a31) + a30 * (a11 * a22 - a12 * a21)),\r\n (a00 * (a21 * a32 - a22 * a31) - a20 * (a01 * a32 - a02 * a31) + a30 * (a01 * a22 - a02 * a21)),\r\n -(a00 * (a11 * a32 - a12 * a31) - a10 * (a01 * a32 - a02 * a31) + a30 * (a01 * a12 - a02 * a11)),\r\n (a00 * (a11 * a22 - a12 * a21) - a10 * (a01 * a22 - a02 * a21) + a20 * (a01 * a12 - a02 * a11))\r\n );\r\n },\r\n\r\n /**\r\n * Calculate the determinant of this Matrix.\r\n *\r\n * @method Phaser.Math.Matrix4#determinant\r\n * @since 3.0.0\r\n *\r\n * @return {number} The determinant of this Matrix.\r\n */\r\n determinant: function ()\r\n {\r\n var a = this.val;\r\n\r\n var a00 = a[0];\r\n var a01 = a[1];\r\n var a02 = a[2];\r\n var a03 = a[3];\r\n\r\n var a10 = a[4];\r\n var a11 = a[5];\r\n var a12 = a[6];\r\n var a13 = a[7];\r\n\r\n var a20 = a[8];\r\n var a21 = a[9];\r\n var a22 = a[10];\r\n var a23 = a[11];\r\n\r\n var a30 = a[12];\r\n var a31 = a[13];\r\n var a32 = a[14];\r\n var a33 = a[15];\r\n\r\n var b00 = a00 * a11 - a01 * a10;\r\n var b01 = a00 * a12 - a02 * a10;\r\n var b02 = a00 * a13 - a03 * a10;\r\n var b03 = a01 * a12 - a02 * a11;\r\n var b04 = a01 * a13 - a03 * a11;\r\n var b05 = a02 * a13 - a03 * a12;\r\n var b06 = a20 * a31 - a21 * a30;\r\n var b07 = a20 * a32 - a22 * a30;\r\n var b08 = a20 * a33 - a23 * a30;\r\n var b09 = a21 * a32 - a22 * a31;\r\n var b10 = a21 * a33 - a23 * a31;\r\n var b11 = a22 * a33 - a23 * a32;\r\n\r\n // Calculate the determinant\r\n return b00 * b11 - b01 * b10 + b02 * b09 + b03 * b08 - b04 * b07 + b05 * b06;\r\n },\r\n\r\n /**\r\n * Multiply this Matrix by the given Matrix.\r\n *\r\n * @method Phaser.Math.Matrix4#multiply\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Matrix4} src - The Matrix to multiply this Matrix by.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n multiply: function (src)\r\n {\r\n var a = this.val;\r\n\r\n var a00 = a[0];\r\n var a01 = a[1];\r\n var a02 = a[2];\r\n var a03 = a[3];\r\n\r\n var a10 = a[4];\r\n var a11 = a[5];\r\n var a12 = a[6];\r\n var a13 = a[7];\r\n\r\n var a20 = a[8];\r\n var a21 = a[9];\r\n var a22 = a[10];\r\n var a23 = a[11];\r\n\r\n var a30 = a[12];\r\n var a31 = a[13];\r\n var a32 = a[14];\r\n var a33 = a[15];\r\n\r\n var b = src.val;\r\n\r\n // Cache only the current line of the second matrix\r\n var b0 = b[0];\r\n var b1 = b[1];\r\n var b2 = b[2];\r\n var b3 = b[3];\r\n\r\n a[0] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\r\n a[1] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\r\n a[2] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\r\n a[3] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\r\n\r\n b0 = b[4];\r\n b1 = b[5];\r\n b2 = b[6];\r\n b3 = b[7];\r\n\r\n a[4] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\r\n a[5] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\r\n a[6] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\r\n a[7] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\r\n\r\n b0 = b[8];\r\n b1 = b[9];\r\n b2 = b[10];\r\n b3 = b[11];\r\n\r\n a[8] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\r\n a[9] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\r\n a[10] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\r\n a[11] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\r\n\r\n b0 = b[12];\r\n b1 = b[13];\r\n b2 = b[14];\r\n b3 = b[15];\r\n\r\n a[12] = b0 * a00 + b1 * a10 + b2 * a20 + b3 * a30;\r\n a[13] = b0 * a01 + b1 * a11 + b2 * a21 + b3 * a31;\r\n a[14] = b0 * a02 + b1 * a12 + b2 * a22 + b3 * a32;\r\n a[15] = b0 * a03 + b1 * a13 + b2 * a23 + b3 * a33;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Multiply the values of this Matrix4 by those given in the `src` argument.\r\n *\r\n * @method Phaser.Math.Matrix4#multiplyLocal\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Matrix4} src - The source Matrix4 that this Matrix4 is multiplied by.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n multiplyLocal: function (src)\r\n {\r\n var a = this.val;\r\n var b = src.val;\r\n\r\n return this.setValues(\r\n a[0] * b[0] + a[1] * b[4] + a[2] * b[8] + a[3] * b[12],\r\n a[0] * b[1] + a[1] * b[5] + a[2] * b[9] + a[3] * b[13],\r\n a[0] * b[2] + a[1] * b[6] + a[2] * b[10] + a[3] * b[14],\r\n a[0] * b[3] + a[1] * b[7] + a[2] * b[11] + a[3] * b[15],\r\n\r\n a[4] * b[0] + a[5] * b[4] + a[6] * b[8] + a[7] * b[12],\r\n a[4] * b[1] + a[5] * b[5] + a[6] * b[9] + a[7] * b[13],\r\n a[4] * b[2] + a[5] * b[6] + a[6] * b[10] + a[7] * b[14],\r\n a[4] * b[3] + a[5] * b[7] + a[6] * b[11] + a[7] * b[15],\r\n\r\n a[8] * b[0] + a[9] * b[4] + a[10] * b[8] + a[11] * b[12],\r\n a[8] * b[1] + a[9] * b[5] + a[10] * b[9] + a[11] * b[13],\r\n a[8] * b[2] + a[9] * b[6] + a[10] * b[10] + a[11] * b[14],\r\n a[8] * b[3] + a[9] * b[7] + a[10] * b[11] + a[11] * b[15],\r\n\r\n a[12] * b[0] + a[13] * b[4] + a[14] * b[8] + a[15] * b[12],\r\n a[12] * b[1] + a[13] * b[5] + a[14] * b[9] + a[15] * b[13],\r\n a[12] * b[2] + a[13] * b[6] + a[14] * b[10] + a[15] * b[14],\r\n a[12] * b[3] + a[13] * b[7] + a[14] * b[11] + a[15] * b[15]\r\n );\r\n },\r\n\r\n /**\r\n * Multiplies the given Matrix4 object with this Matrix.\r\n *\r\n * This is the same as calling `multiplyMatrices(m, this)`.\r\n *\r\n * @method Phaser.Math.Matrix4#premultiply\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Math.Matrix4} m - The Matrix4 to multiply with this one.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n premultiply: function (m)\r\n {\r\n return this.multiplyMatrices(m, this);\r\n },\r\n\r\n /**\r\n * Multiplies the two given Matrix4 objects and stores the results in this Matrix.\r\n *\r\n * @method Phaser.Math.Matrix4#multiplyMatrices\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Math.Matrix4} a - The first Matrix4 to multiply.\r\n * @param {Phaser.Math.Matrix4} b - The second Matrix4 to multiply.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n multiplyMatrices: function (a, b)\r\n {\r\n var am = a.val;\r\n var bm = b.val;\r\n\r\n var a11 = am[0];\r\n var a12 = am[4];\r\n var a13 = am[8];\r\n var a14 = am[12];\r\n var a21 = am[1];\r\n var a22 = am[5];\r\n var a23 = am[9];\r\n var a24 = am[13];\r\n var a31 = am[2];\r\n var a32 = am[6];\r\n var a33 = am[10];\r\n var a34 = am[14];\r\n var a41 = am[3];\r\n var a42 = am[7];\r\n var a43 = am[11];\r\n var a44 = am[15];\r\n\r\n var b11 = bm[0];\r\n var b12 = bm[4];\r\n var b13 = bm[8];\r\n var b14 = bm[12];\r\n var b21 = bm[1];\r\n var b22 = bm[5];\r\n var b23 = bm[9];\r\n var b24 = bm[13];\r\n var b31 = bm[2];\r\n var b32 = bm[6];\r\n var b33 = bm[10];\r\n var b34 = bm[14];\r\n var b41 = bm[3];\r\n var b42 = bm[7];\r\n var b43 = bm[11];\r\n var b44 = bm[15];\r\n\r\n return this.setValues(\r\n a11 * b11 + a12 * b21 + a13 * b31 + a14 * b41,\r\n a21 * b11 + a22 * b21 + a23 * b31 + a24 * b41,\r\n a31 * b11 + a32 * b21 + a33 * b31 + a34 * b41,\r\n a41 * b11 + a42 * b21 + a43 * b31 + a44 * b41,\r\n a11 * b12 + a12 * b22 + a13 * b32 + a14 * b42,\r\n a21 * b12 + a22 * b22 + a23 * b32 + a24 * b42,\r\n a31 * b12 + a32 * b22 + a33 * b32 + a34 * b42,\r\n a41 * b12 + a42 * b22 + a43 * b32 + a44 * b42,\r\n a11 * b13 + a12 * b23 + a13 * b33 + a14 * b43,\r\n a21 * b13 + a22 * b23 + a23 * b33 + a24 * b43,\r\n a31 * b13 + a32 * b23 + a33 * b33 + a34 * b43,\r\n a41 * b13 + a42 * b23 + a43 * b33 + a44 * b43,\r\n a11 * b14 + a12 * b24 + a13 * b34 + a14 * b44,\r\n a21 * b14 + a22 * b24 + a23 * b34 + a24 * b44,\r\n a31 * b14 + a32 * b24 + a33 * b34 + a34 * b44,\r\n a41 * b14 + a42 * b24 + a43 * b34 + a44 * b44\r\n );\r\n },\r\n\r\n /**\r\n * Translate this Matrix using the given Vector.\r\n *\r\n * @method Phaser.Math.Matrix4#translate\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Vector3|Phaser.Math.Vector4)} v - The Vector to translate this Matrix with.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n translate: function (v)\r\n {\r\n return this.translateXYZ(v.x, v.y, v.z);\r\n },\r\n\r\n /**\r\n * Translate this Matrix using the given values.\r\n *\r\n * @method Phaser.Math.Matrix4#translateXYZ\r\n * @since 3.16.0\r\n *\r\n * @param {number} x - The x component.\r\n * @param {number} y - The y component.\r\n * @param {number} z - The z component.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n translateXYZ: function (x, y, z)\r\n {\r\n var a = this.val;\r\n\r\n a[12] = a[0] * x + a[4] * y + a[8] * z + a[12];\r\n a[13] = a[1] * x + a[5] * y + a[9] * z + a[13];\r\n a[14] = a[2] * x + a[6] * y + a[10] * z + a[14];\r\n a[15] = a[3] * x + a[7] * y + a[11] * z + a[15];\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Apply a scale transformation to this Matrix.\r\n *\r\n * Uses the `x`, `y` and `z` components of the given Vector to scale the Matrix.\r\n *\r\n * @method Phaser.Math.Matrix4#scale\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Vector3|Phaser.Math.Vector4)} v - The Vector to scale this Matrix with.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n scale: function (v)\r\n {\r\n return this.scaleXYZ(v.x, v.y, v.z);\r\n },\r\n\r\n /**\r\n * Apply a scale transformation to this Matrix.\r\n *\r\n * @method Phaser.Math.Matrix4#scaleXYZ\r\n * @since 3.16.0\r\n *\r\n * @param {number} x - The x component.\r\n * @param {number} y - The y component.\r\n * @param {number} z - The z component.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n scaleXYZ: function (x, y, z)\r\n {\r\n var a = this.val;\r\n\r\n a[0] = a[0] * x;\r\n a[1] = a[1] * x;\r\n a[2] = a[2] * x;\r\n a[3] = a[3] * x;\r\n\r\n a[4] = a[4] * y;\r\n a[5] = a[5] * y;\r\n a[6] = a[6] * y;\r\n a[7] = a[7] * y;\r\n\r\n a[8] = a[8] * z;\r\n a[9] = a[9] * z;\r\n a[10] = a[10] * z;\r\n a[11] = a[11] * z;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Derive a rotation matrix around the given axis.\r\n *\r\n * @method Phaser.Math.Matrix4#makeRotationAxis\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Vector3|Phaser.Math.Vector4)} axis - The rotation axis.\r\n * @param {number} angle - The rotation angle in radians.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n makeRotationAxis: function (axis, angle)\r\n {\r\n // Based on http://www.gamedev.net/reference/articles/article1199.asp\r\n\r\n var c = Math.cos(angle);\r\n var s = Math.sin(angle);\r\n var t = 1 - c;\r\n var x = axis.x;\r\n var y = axis.y;\r\n var z = axis.z;\r\n var tx = t * x;\r\n var ty = t * y;\r\n\r\n return this.setValues(\r\n tx * x + c, tx * y - s * z, tx * z + s * y, 0,\r\n tx * y + s * z, ty * y + c, ty * z - s * x, 0,\r\n tx * z - s * y, ty * z + s * x, t * z * z + c, 0,\r\n 0, 0, 0, 1\r\n );\r\n },\r\n\r\n /**\r\n * Apply a rotation transformation to this Matrix.\r\n *\r\n * @method Phaser.Math.Matrix4#rotate\r\n * @since 3.0.0\r\n *\r\n * @param {number} rad - The angle in radians to rotate by.\r\n * @param {Phaser.Math.Vector3} axis - The axis to rotate upon.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n rotate: function (rad, axis)\r\n {\r\n var a = this.val;\r\n var x = axis.x;\r\n var y = axis.y;\r\n var z = axis.z;\r\n var len = Math.sqrt(x * x + y * y + z * z);\r\n\r\n if (Math.abs(len) < EPSILON)\r\n {\r\n return this;\r\n }\r\n\r\n len = 1 / len;\r\n x *= len;\r\n y *= len;\r\n z *= len;\r\n\r\n var s = Math.sin(rad);\r\n var c = Math.cos(rad);\r\n var t = 1 - c;\r\n\r\n var a00 = a[0];\r\n var a01 = a[1];\r\n var a02 = a[2];\r\n var a03 = a[3];\r\n\r\n var a10 = a[4];\r\n var a11 = a[5];\r\n var a12 = a[6];\r\n var a13 = a[7];\r\n\r\n var a20 = a[8];\r\n var a21 = a[9];\r\n var a22 = a[10];\r\n var a23 = a[11];\r\n\r\n var a30 = a[12];\r\n var a31 = a[13];\r\n var a32 = a[14];\r\n var a33 = a[15];\r\n\r\n // Construct the elements of the rotation matrix\r\n var b00 = x * x * t + c;\r\n var b01 = y * x * t + z * s;\r\n var b02 = z * x * t - y * s;\r\n\r\n var b10 = x * y * t - z * s;\r\n var b11 = y * y * t + c;\r\n var b12 = z * y * t + x * s;\r\n\r\n var b20 = x * z * t + y * s;\r\n var b21 = y * z * t - x * s;\r\n var b22 = z * z * t + c;\r\n\r\n // Perform rotation-specific matrix multiplication\r\n return this.setValues(\r\n a00 * b00 + a10 * b01 + a20 * b02,\r\n a01 * b00 + a11 * b01 + a21 * b02,\r\n a02 * b00 + a12 * b01 + a22 * b02,\r\n a03 * b00 + a13 * b01 + a23 * b02,\r\n a00 * b10 + a10 * b11 + a20 * b12,\r\n a01 * b10 + a11 * b11 + a21 * b12,\r\n a02 * b10 + a12 * b11 + a22 * b12,\r\n a03 * b10 + a13 * b11 + a23 * b12,\r\n a00 * b20 + a10 * b21 + a20 * b22,\r\n a01 * b20 + a11 * b21 + a21 * b22,\r\n a02 * b20 + a12 * b21 + a22 * b22,\r\n a03 * b20 + a13 * b21 + a23 * b22,\r\n a30, a31, a32, a33\r\n );\r\n },\r\n\r\n /**\r\n * Rotate this matrix on its X axis.\r\n *\r\n * @method Phaser.Math.Matrix4#rotateX\r\n * @since 3.0.0\r\n *\r\n * @param {number} rad - The angle in radians to rotate by.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n rotateX: function (rad)\r\n {\r\n var a = this.val;\r\n var s = Math.sin(rad);\r\n var c = Math.cos(rad);\r\n\r\n var a10 = a[4];\r\n var a11 = a[5];\r\n var a12 = a[6];\r\n var a13 = a[7];\r\n\r\n var a20 = a[8];\r\n var a21 = a[9];\r\n var a22 = a[10];\r\n var a23 = a[11];\r\n\r\n // Perform axis-specific matrix multiplication\r\n a[4] = a10 * c + a20 * s;\r\n a[5] = a11 * c + a21 * s;\r\n a[6] = a12 * c + a22 * s;\r\n a[7] = a13 * c + a23 * s;\r\n a[8] = a20 * c - a10 * s;\r\n a[9] = a21 * c - a11 * s;\r\n a[10] = a22 * c - a12 * s;\r\n a[11] = a23 * c - a13 * s;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Rotate this matrix on its Y axis.\r\n *\r\n * @method Phaser.Math.Matrix4#rotateY\r\n * @since 3.0.0\r\n *\r\n * @param {number} rad - The angle to rotate by, in radians.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n rotateY: function (rad)\r\n {\r\n var a = this.val;\r\n var s = Math.sin(rad);\r\n var c = Math.cos(rad);\r\n\r\n var a00 = a[0];\r\n var a01 = a[1];\r\n var a02 = a[2];\r\n var a03 = a[3];\r\n\r\n var a20 = a[8];\r\n var a21 = a[9];\r\n var a22 = a[10];\r\n var a23 = a[11];\r\n\r\n // Perform axis-specific matrix multiplication\r\n a[0] = a00 * c - a20 * s;\r\n a[1] = a01 * c - a21 * s;\r\n a[2] = a02 * c - a22 * s;\r\n a[3] = a03 * c - a23 * s;\r\n a[8] = a00 * s + a20 * c;\r\n a[9] = a01 * s + a21 * c;\r\n a[10] = a02 * s + a22 * c;\r\n a[11] = a03 * s + a23 * c;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Rotate this matrix on its Z axis.\r\n *\r\n * @method Phaser.Math.Matrix4#rotateZ\r\n * @since 3.0.0\r\n *\r\n * @param {number} rad - The angle to rotate by, in radians.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n rotateZ: function (rad)\r\n {\r\n var a = this.val;\r\n var s = Math.sin(rad);\r\n var c = Math.cos(rad);\r\n\r\n var a00 = a[0];\r\n var a01 = a[1];\r\n var a02 = a[2];\r\n var a03 = a[3];\r\n\r\n var a10 = a[4];\r\n var a11 = a[5];\r\n var a12 = a[6];\r\n var a13 = a[7];\r\n\r\n // Perform axis-specific matrix multiplication\r\n a[0] = a00 * c + a10 * s;\r\n a[1] = a01 * c + a11 * s;\r\n a[2] = a02 * c + a12 * s;\r\n a[3] = a03 * c + a13 * s;\r\n a[4] = a10 * c - a00 * s;\r\n a[5] = a11 * c - a01 * s;\r\n a[6] = a12 * c - a02 * s;\r\n a[7] = a13 * c - a03 * s;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the values of this Matrix from the given rotation Quaternion and translation Vector.\r\n *\r\n * @method Phaser.Math.Matrix4#fromRotationTranslation\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Quaternion} q - The Quaternion to set rotation from.\r\n * @param {Phaser.Math.Vector3} v - The Vector to set translation from.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n fromRotationTranslation: function (q, v)\r\n {\r\n // Quaternion math\r\n var x = q.x;\r\n var y = q.y;\r\n var z = q.z;\r\n var w = q.w;\r\n\r\n var x2 = x + x;\r\n var y2 = y + y;\r\n var z2 = z + z;\r\n\r\n var xx = x * x2;\r\n var xy = x * y2;\r\n var xz = x * z2;\r\n\r\n var yy = y * y2;\r\n var yz = y * z2;\r\n var zz = z * z2;\r\n\r\n var wx = w * x2;\r\n var wy = w * y2;\r\n var wz = w * z2;\r\n\r\n return this.setValues(\r\n 1 - (yy + zz),\r\n xy + wz,\r\n xz - wy,\r\n 0,\r\n\r\n xy - wz,\r\n 1 - (xx + zz),\r\n yz + wx,\r\n 0,\r\n\r\n xz + wy,\r\n yz - wx,\r\n 1 - (xx + yy),\r\n 0,\r\n\r\n v.x,\r\n v.y,\r\n v.z,\r\n 1\r\n );\r\n },\r\n\r\n /**\r\n * Set the values of this Matrix from the given Quaternion.\r\n *\r\n * @method Phaser.Math.Matrix4#fromQuat\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Quaternion} q - The Quaternion to set the values of this Matrix from.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n fromQuat: function (q)\r\n {\r\n var x = q.x;\r\n var y = q.y;\r\n var z = q.z;\r\n var w = q.w;\r\n\r\n var x2 = x + x;\r\n var y2 = y + y;\r\n var z2 = z + z;\r\n\r\n var xx = x * x2;\r\n var xy = x * y2;\r\n var xz = x * z2;\r\n\r\n var yy = y * y2;\r\n var yz = y * z2;\r\n var zz = z * z2;\r\n\r\n var wx = w * x2;\r\n var wy = w * y2;\r\n var wz = w * z2;\r\n\r\n return this.setValues(\r\n 1 - (yy + zz),\r\n xy + wz,\r\n xz - wy,\r\n 0,\r\n\r\n xy - wz,\r\n 1 - (xx + zz),\r\n yz + wx,\r\n 0,\r\n\r\n xz + wy,\r\n yz - wx,\r\n 1 - (xx + yy),\r\n 0,\r\n\r\n 0,\r\n 0,\r\n 0,\r\n 1\r\n );\r\n },\r\n\r\n /**\r\n * Generate a frustum matrix with the given bounds.\r\n *\r\n * @method Phaser.Math.Matrix4#frustum\r\n * @since 3.0.0\r\n *\r\n * @param {number} left - The left bound of the frustum.\r\n * @param {number} right - The right bound of the frustum.\r\n * @param {number} bottom - The bottom bound of the frustum.\r\n * @param {number} top - The top bound of the frustum.\r\n * @param {number} near - The near bound of the frustum.\r\n * @param {number} far - The far bound of the frustum.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n frustum: function (left, right, bottom, top, near, far)\r\n {\r\n var rl = 1 / (right - left);\r\n var tb = 1 / (top - bottom);\r\n var nf = 1 / (near - far);\r\n\r\n return this.setValues(\r\n (near * 2) * rl,\r\n 0,\r\n 0,\r\n 0,\r\n\r\n 0,\r\n (near * 2) * tb,\r\n 0,\r\n 0,\r\n\r\n (right + left) * rl,\r\n (top + bottom) * tb,\r\n (far + near) * nf,\r\n -1,\r\n\r\n 0,\r\n 0,\r\n (far * near * 2) * nf,\r\n 0\r\n );\r\n },\r\n\r\n /**\r\n * Generate a perspective projection matrix with the given bounds.\r\n *\r\n * @method Phaser.Math.Matrix4#perspective\r\n * @since 3.0.0\r\n *\r\n * @param {number} fovy - Vertical field of view in radians\r\n * @param {number} aspect - Aspect ratio. Typically viewport width /height.\r\n * @param {number} near - Near bound of the frustum.\r\n * @param {number} far - Far bound of the frustum.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n perspective: function (fovy, aspect, near, far)\r\n {\r\n var f = 1.0 / Math.tan(fovy / 2);\r\n var nf = 1 / (near - far);\r\n\r\n return this.setValues(\r\n f / aspect,\r\n 0,\r\n 0,\r\n 0,\r\n\r\n 0,\r\n f,\r\n 0,\r\n 0,\r\n\r\n 0,\r\n 0,\r\n (far + near) * nf,\r\n -1,\r\n\r\n 0,\r\n 0,\r\n (2 * far * near) * nf,\r\n 0\r\n );\r\n },\r\n\r\n /**\r\n * Generate a perspective projection matrix with the given bounds.\r\n *\r\n * @method Phaser.Math.Matrix4#perspectiveLH\r\n * @since 3.0.0\r\n *\r\n * @param {number} width - The width of the frustum.\r\n * @param {number} height - The height of the frustum.\r\n * @param {number} near - Near bound of the frustum.\r\n * @param {number} far - Far bound of the frustum.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n perspectiveLH: function (width, height, near, far)\r\n {\r\n return this.setValues(\r\n (2 * near) / width,\r\n 0,\r\n 0,\r\n 0,\r\n\r\n 0,\r\n (2 * near) / height,\r\n 0,\r\n 0,\r\n\r\n 0,\r\n 0,\r\n -far / (near - far),\r\n 1,\r\n\r\n 0,\r\n 0,\r\n (near * far) / (near - far),\r\n 0\r\n );\r\n },\r\n\r\n /**\r\n * Generate an orthogonal projection matrix with the given bounds.\r\n *\r\n * @method Phaser.Math.Matrix4#ortho\r\n * @since 3.0.0\r\n *\r\n * @param {number} left - The left bound of the frustum.\r\n * @param {number} right - The right bound of the frustum.\r\n * @param {number} bottom - The bottom bound of the frustum.\r\n * @param {number} top - The top bound of the frustum.\r\n * @param {number} near - The near bound of the frustum.\r\n * @param {number} far - The far bound of the frustum.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n ortho: function (left, right, bottom, top, near, far)\r\n {\r\n var lr = left - right;\r\n var bt = bottom - top;\r\n var nf = near - far;\r\n\r\n // Avoid division by zero\r\n lr = (lr === 0) ? lr : 1 / lr;\r\n bt = (bt === 0) ? bt : 1 / bt;\r\n nf = (nf === 0) ? nf : 1 / nf;\r\n\r\n return this.setValues(\r\n -2 * lr,\r\n 0,\r\n 0,\r\n 0,\r\n\r\n 0,\r\n -2 * bt,\r\n 0,\r\n 0,\r\n\r\n 0,\r\n 0,\r\n 2 * nf,\r\n 0,\r\n\r\n (left + right) * lr,\r\n (top + bottom) * bt,\r\n (far + near) * nf,\r\n 1\r\n );\r\n },\r\n\r\n /**\r\n * Generate a right-handed look-at matrix with the given eye position, target and up axis.\r\n *\r\n * @method Phaser.Math.Matrix4#lookAtRH\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Math.Vector3} eye - Position of the viewer.\r\n * @param {Phaser.Math.Vector3} target - Point the viewer is looking at.\r\n * @param {Phaser.Math.Vector3} up - vec3 pointing up.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n lookAtRH: function (eye, target, up)\r\n {\r\n var m = this.val;\r\n\r\n _z.subVectors(eye, target);\r\n\r\n if (_z.lengthSq() === 0)\r\n {\r\n // eye and target are in the same position\r\n _z.z = 1;\r\n }\r\n\r\n _z.normalize();\r\n _x.crossVectors(up, _z);\r\n\r\n if (_x.lengthSq() === 0)\r\n {\r\n // up and z are parallel\r\n\r\n if (Math.abs(up.z) === 1)\r\n {\r\n _z.x += 0.0001;\r\n }\r\n else\r\n {\r\n _z.z += 0.0001;\r\n }\r\n\r\n _z.normalize();\r\n _x.crossVectors(up, _z);\r\n }\r\n\r\n _x.normalize();\r\n _y.crossVectors(_z, _x);\r\n\r\n m[0] = _x.x;\r\n m[1] = _x.y;\r\n m[2] = _x.z;\r\n m[4] = _y.x;\r\n m[5] = _y.y;\r\n m[6] = _y.z;\r\n m[8] = _z.x;\r\n m[9] = _z.y;\r\n m[10] = _z.z;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Generate a look-at matrix with the given eye position, focal point, and up axis.\r\n *\r\n * @method Phaser.Math.Matrix4#lookAt\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector3} eye - Position of the viewer\r\n * @param {Phaser.Math.Vector3} center - Point the viewer is looking at\r\n * @param {Phaser.Math.Vector3} up - vec3 pointing up.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n lookAt: function (eye, center, up)\r\n {\r\n var eyex = eye.x;\r\n var eyey = eye.y;\r\n var eyez = eye.z;\r\n\r\n var upx = up.x;\r\n var upy = up.y;\r\n var upz = up.z;\r\n\r\n var centerx = center.x;\r\n var centery = center.y;\r\n var centerz = center.z;\r\n\r\n if (Math.abs(eyex - centerx) < EPSILON &&\r\n Math.abs(eyey - centery) < EPSILON &&\r\n Math.abs(eyez - centerz) < EPSILON)\r\n {\r\n return this.identity();\r\n }\r\n\r\n var z0 = eyex - centerx;\r\n var z1 = eyey - centery;\r\n var z2 = eyez - centerz;\r\n\r\n var len = 1 / Math.sqrt(z0 * z0 + z1 * z1 + z2 * z2);\r\n\r\n z0 *= len;\r\n z1 *= len;\r\n z2 *= len;\r\n\r\n var x0 = upy * z2 - upz * z1;\r\n var x1 = upz * z0 - upx * z2;\r\n var x2 = upx * z1 - upy * z0;\r\n\r\n len = Math.sqrt(x0 * x0 + x1 * x1 + x2 * x2);\r\n\r\n if (!len)\r\n {\r\n x0 = 0;\r\n x1 = 0;\r\n x2 = 0;\r\n }\r\n else\r\n {\r\n len = 1 / len;\r\n x0 *= len;\r\n x1 *= len;\r\n x2 *= len;\r\n }\r\n\r\n var y0 = z1 * x2 - z2 * x1;\r\n var y1 = z2 * x0 - z0 * x2;\r\n var y2 = z0 * x1 - z1 * x0;\r\n\r\n len = Math.sqrt(y0 * y0 + y1 * y1 + y2 * y2);\r\n\r\n if (!len)\r\n {\r\n y0 = 0;\r\n y1 = 0;\r\n y2 = 0;\r\n }\r\n else\r\n {\r\n len = 1 / len;\r\n y0 *= len;\r\n y1 *= len;\r\n y2 *= len;\r\n }\r\n\r\n return this.setValues(\r\n x0,\r\n y0,\r\n z0,\r\n 0,\r\n\r\n x1,\r\n y1,\r\n z1,\r\n 0,\r\n\r\n x2,\r\n y2,\r\n z2,\r\n 0,\r\n\r\n -(x0 * eyex + x1 * eyey + x2 * eyez),\r\n -(y0 * eyex + y1 * eyey + y2 * eyez),\r\n -(z0 * eyex + z1 * eyey + z2 * eyez),\r\n 1\r\n );\r\n },\r\n\r\n /**\r\n * Set the values of this matrix from the given `yaw`, `pitch` and `roll` values.\r\n *\r\n * @method Phaser.Math.Matrix4#yawPitchRoll\r\n * @since 3.0.0\r\n *\r\n * @param {number} yaw - The yaw value.\r\n * @param {number} pitch - The pitch value.\r\n * @param {number} roll - The roll value.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n yawPitchRoll: function (yaw, pitch, roll)\r\n {\r\n this.zero();\r\n _tempMat1.zero();\r\n _tempMat2.zero();\r\n\r\n var m0 = this.val;\r\n var m1 = _tempMat1.val;\r\n var m2 = _tempMat2.val;\r\n\r\n // Rotate Z\r\n var s = Math.sin(roll);\r\n var c = Math.cos(roll);\r\n\r\n m0[10] = 1;\r\n m0[15] = 1;\r\n m0[0] = c;\r\n m0[1] = s;\r\n m0[4] = -s;\r\n m0[5] = c;\r\n\r\n // Rotate X\r\n s = Math.sin(pitch);\r\n c = Math.cos(pitch);\r\n\r\n m1[0] = 1;\r\n m1[15] = 1;\r\n m1[5] = c;\r\n m1[10] = c;\r\n m1[9] = -s;\r\n m1[6] = s;\r\n\r\n // Rotate Y\r\n s = Math.sin(yaw);\r\n c = Math.cos(yaw);\r\n\r\n m2[5] = 1;\r\n m2[15] = 1;\r\n m2[0] = c;\r\n m2[2] = -s;\r\n m2[8] = s;\r\n m2[10] = c;\r\n\r\n this.multiplyLocal(_tempMat1);\r\n this.multiplyLocal(_tempMat2);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Generate a world matrix from the given rotation, position, scale, view matrix and projection matrix.\r\n *\r\n * @method Phaser.Math.Matrix4#setWorldMatrix\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector3} rotation - The rotation of the world matrix.\r\n * @param {Phaser.Math.Vector3} position - The position of the world matrix.\r\n * @param {Phaser.Math.Vector3} scale - The scale of the world matrix.\r\n * @param {Phaser.Math.Matrix4} [viewMatrix] - The view matrix.\r\n * @param {Phaser.Math.Matrix4} [projectionMatrix] - The projection matrix.\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n setWorldMatrix: function (rotation, position, scale, viewMatrix, projectionMatrix)\r\n {\r\n this.yawPitchRoll(rotation.y, rotation.x, rotation.z);\r\n\r\n _tempMat1.scaling(scale.x, scale.y, scale.z);\r\n _tempMat2.xyz(position.x, position.y, position.z);\r\n\r\n this.multiplyLocal(_tempMat1);\r\n this.multiplyLocal(_tempMat2);\r\n\r\n if (viewMatrix)\r\n {\r\n this.multiplyLocal(viewMatrix);\r\n }\r\n\r\n if (projectionMatrix)\r\n {\r\n this.multiplyLocal(projectionMatrix);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Multiplies this Matrix4 by the given `src` Matrix4 and stores the results in the `out` Matrix4.\r\n *\r\n * @method Phaser.Math.Matrix4#multiplyToMat4\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Math.Matrix4} src - The Matrix4 to multiply with this one.\r\n * @param {Phaser.Math.Matrix4} out - The receiving Matrix.\r\n *\r\n * @return {Phaser.Math.Matrix4} This `out` Matrix4.\r\n */\r\n multiplyToMat4: function (src, out)\r\n {\r\n var a = this.val;\r\n var b = src.val;\r\n\r\n var a00 = a[0];\r\n var a01 = a[1];\r\n var a02 = a[2];\r\n var a03 = a[3];\r\n var a10 = a[4];\r\n var a11 = a[5];\r\n var a12 = a[6];\r\n var a13 = a[7];\r\n var a20 = a[8];\r\n var a21 = a[9];\r\n var a22 = a[10];\r\n var a23 = a[11];\r\n var a30 = a[12];\r\n var a31 = a[13];\r\n var a32 = a[14];\r\n var a33 = a[15];\r\n\r\n var b00 = b[0];\r\n var b01 = b[1];\r\n var b02 = b[2];\r\n var b03 = b[3];\r\n var b10 = b[4];\r\n var b11 = b[5];\r\n var b12 = b[6];\r\n var b13 = b[7];\r\n var b20 = b[8];\r\n var b21 = b[9];\r\n var b22 = b[10];\r\n var b23 = b[11];\r\n var b30 = b[12];\r\n var b31 = b[13];\r\n var b32 = b[14];\r\n var b33 = b[15];\r\n\r\n return out.setValues(\r\n b00 * a00 + b01 * a10 + b02 * a20 + b03 * a30,\r\n b01 * a01 + b01 * a11 + b02 * a21 + b03 * a31,\r\n b02 * a02 + b01 * a12 + b02 * a22 + b03 * a32,\r\n b03 * a03 + b01 * a13 + b02 * a23 + b03 * a33,\r\n\r\n b10 * a00 + b11 * a10 + b12 * a20 + b13 * a30,\r\n b10 * a01 + b11 * a11 + b12 * a21 + b13 * a31,\r\n b10 * a02 + b11 * a12 + b12 * a22 + b13 * a32,\r\n b10 * a03 + b11 * a13 + b12 * a23 + b13 * a33,\r\n\r\n b20 * a00 + b21 * a10 + b22 * a20 + b23 * a30,\r\n b20 * a01 + b21 * a11 + b22 * a21 + b23 * a31,\r\n b20 * a02 + b21 * a12 + b22 * a22 + b23 * a32,\r\n b20 * a03 + b21 * a13 + b22 * a23 + b23 * a33,\r\n\r\n b30 * a00 + b31 * a10 + b32 * a20 + b33 * a30,\r\n b30 * a01 + b31 * a11 + b32 * a21 + b33 * a31,\r\n b30 * a02 + b31 * a12 + b32 * a22 + b33 * a32,\r\n b30 * a03 + b31 * a13 + b32 * a23 + b33 * a33\r\n );\r\n },\r\n\r\n /**\r\n * Takes the rotation and position vectors and builds this Matrix4 from them.\r\n *\r\n * @method Phaser.Math.Matrix4#fromRotationXYTranslation\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Math.Vector3} rotation - The rotation vector.\r\n * @param {Phaser.Math.Vector3} position - The position vector.\r\n * @param {boolean} translateFirst - Should the operation translate then rotate (`true`), or rotate then translate? (`false`)\r\n *\r\n * @return {this} This Matrix4.\r\n */\r\n fromRotationXYTranslation: function (rotation, position, translateFirst)\r\n {\r\n var x = position.x;\r\n var y = position.y;\r\n var z = position.z;\r\n\r\n var sx = Math.sin(rotation.x);\r\n var cx = Math.cos(rotation.x);\r\n\r\n var sy = Math.sin(rotation.y);\r\n var cy = Math.cos(rotation.y);\r\n\r\n var a30 = x;\r\n var a31 = y;\r\n var a32 = z;\r\n\r\n // Rotate X\r\n\r\n var b21 = -sx;\r\n\r\n // Rotate Y\r\n\r\n var c01 = 0 - b21 * sy;\r\n\r\n var c02 = 0 - cx * sy;\r\n\r\n var c21 = b21 * cy;\r\n\r\n var c22 = cx * cy;\r\n\r\n // Translate\r\n if (!translateFirst)\r\n {\r\n // a30 = cy * x + 0 * y + sy * z;\r\n a30 = cy * x + sy * z;\r\n a31 = c01 * x + cx * y + c21 * z;\r\n a32 = c02 * x + sx * y + c22 * z;\r\n }\r\n\r\n return this.setValues(\r\n cy,\r\n c01,\r\n c02,\r\n 0,\r\n 0,\r\n cx,\r\n sx,\r\n 0,\r\n sy,\r\n c21,\r\n c22,\r\n 0,\r\n a30,\r\n a31,\r\n a32,\r\n 1\r\n );\r\n },\r\n\r\n /**\r\n * Returns the maximum axis scale from this Matrix4.\r\n *\r\n * @method Phaser.Math.Matrix4#getMaxScaleOnAxis\r\n * @since 3.50.0\r\n *\r\n * @return {number} The maximum axis scale.\r\n */\r\n getMaxScaleOnAxis: function ()\r\n {\r\n var m = this.val;\r\n\r\n var scaleXSq = m[0] * m[0] + m[1] * m[1] + m[2] * m[2];\r\n var scaleYSq = m[4] * m[4] + m[5] * m[5] + m[6] * m[6];\r\n var scaleZSq = m[8] * m[8] + m[9] * m[9] + m[10] * m[10];\r\n\r\n return Math.sqrt(Math.max(scaleXSq, scaleYSq, scaleZSq));\r\n }\r\n\r\n});\r\n\r\n/**\r\n * @ignore\r\n */\r\nvar _tempMat1 = new Matrix4();\r\n\r\n/**\r\n * @ignore\r\n */\r\nvar _tempMat2 = new Matrix4();\r\n\r\n/**\r\n * @ignore\r\n */\r\nvar _x = new Vector3();\r\n\r\n/**\r\n * @ignore\r\n */\r\nvar _y = new Vector3();\r\n\r\n/**\r\n * @ignore\r\n */\r\nvar _z = new Vector3();\r\n\r\nmodule.exports = Matrix4;\r\n\n\n/***/ }),\n\n/***/ 86883:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Add an `amount` to a `value`, limiting the maximum result to `max`.\r\n *\r\n * @function Phaser.Math.MaxAdd\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The value to add to.\r\n * @param {number} amount - The amount to add.\r\n * @param {number} max - The maximum value to return.\r\n *\r\n * @return {number} The resulting value.\r\n */\r\nvar MaxAdd = function (value, amount, max)\r\n{\r\n return Math.min(value + amount, max);\r\n};\r\n\r\nmodule.exports = MaxAdd;\r\n\n\n/***/ }),\n\n/***/ 50040:\n/***/ ((module) => {\n\n/**\r\n * @author Vladislav Forsh \r\n * @copyright 2021 RoboWhale\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculate the median of the given values. The values are sorted and the middle value is returned.\r\n * In case of an even number of values, the average of the two middle values is returned.\r\n *\r\n * @function Phaser.Math.Median\r\n * @since 3.54.0\r\n *\r\n * @param {number[]} values - The values to average.\r\n *\r\n * @return {number} The median value.\r\n */\r\nvar Median = function (values)\r\n{\r\n var valuesNum = values.length;\r\n if (valuesNum === 0)\r\n {\r\n return 0;\r\n }\r\n\r\n values.sort(function (a, b) { return a - b; });\r\n\r\n var halfIndex = Math.floor(valuesNum / 2);\r\n\r\n return valuesNum % 2 === 0\r\n ? (values[halfIndex] + values[halfIndex - 1]) / 2\r\n : values[halfIndex];\r\n};\r\n\r\nmodule.exports = Median;\r\n\n\n/***/ }),\n\n/***/ 37204:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Subtract an `amount` from `value`, limiting the minimum result to `min`.\r\n *\r\n * @function Phaser.Math.MinSub\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The value to subtract from.\r\n * @param {number} amount - The amount to subtract.\r\n * @param {number} min - The minimum value to return.\r\n *\r\n * @return {number} The resulting value.\r\n */\r\nvar MinSub = function (value, amount, min)\r\n{\r\n return Math.max(value - amount, min);\r\n};\r\n\r\nmodule.exports = MinSub;\r\n\n\n/***/ }),\n\n/***/ 65201:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Work out what percentage `value` is of the range between `min` and `max`.\r\n * If `max` isn't given then it will return the percentage of `value` to `min`.\r\n *\r\n * You can optionally specify an `upperMax` value, which is a mid-way point in the range that represents 100%, after which the % starts to go down to zero again.\r\n *\r\n * @function Phaser.Math.Percent\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The value to determine the percentage of.\r\n * @param {number} min - The minimum value.\r\n * @param {number} [max] - The maximum value.\r\n * @param {number} [upperMax] - The mid-way point in the range that represents 100%.\r\n *\r\n * @return {number} A value between 0 and 1 representing the percentage.\r\n */\r\nvar Percent = function (value, min, max, upperMax)\r\n{\r\n if (max === undefined) { max = min + 1; }\r\n\r\n var percentage = (value - min) / (max - min);\r\n\r\n if (percentage > 1)\r\n {\r\n if (upperMax !== undefined)\r\n {\r\n percentage = ((upperMax - value)) / (upperMax - max);\r\n\r\n if (percentage < 0)\r\n {\r\n percentage = 0;\r\n }\r\n }\r\n else\r\n {\r\n percentage = 1;\r\n }\r\n }\r\n else if (percentage < 0)\r\n {\r\n percentage = 0;\r\n }\r\n\r\n return percentage;\r\n};\r\n\r\nmodule.exports = Percent;\r\n\n\n/***/ }),\n\n/***/ 15746:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// Adapted from [gl-matrix](https://github.com/toji/gl-matrix) by toji\r\n// and [vecmath](https://github.com/mattdesl/vecmath) by mattdesl\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Matrix3 = __webpack_require__(94434);\r\nvar NOOP = __webpack_require__(29747);\r\nvar Vector3 = __webpack_require__(25836);\r\n\r\nvar EPSILON = 0.000001;\r\n\r\n// Some shared 'private' arrays\r\nvar siNext = new Int8Array([ 1, 2, 0 ]);\r\nvar tmp = new Float32Array([ 0, 0, 0 ]);\r\n\r\nvar xUnitVec3 = new Vector3(1, 0, 0);\r\nvar yUnitVec3 = new Vector3(0, 1, 0);\r\n\r\nvar tmpvec = new Vector3();\r\nvar tmpMat3 = new Matrix3();\r\n\r\n/**\r\n * @classdesc\r\n * A quaternion.\r\n *\r\n * @class Quaternion\r\n * @memberof Phaser.Math\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=0] - The x component.\r\n * @param {number} [y=0] - The y component.\r\n * @param {number} [z=0] - The z component.\r\n * @param {number} [w=1] - The w component.\r\n */\r\nvar Quaternion = new Class({\r\n\r\n initialize:\r\n\r\n function Quaternion (x, y, z, w)\r\n {\r\n /**\r\n * The x component of this Quaternion.\r\n *\r\n * @name Phaser.Math.Quaternion#_x\r\n * @type {number}\r\n * @default 0\r\n * @private\r\n * @since 3.50.0\r\n */\r\n\r\n /**\r\n * The y component of this Quaternion.\r\n *\r\n * @name Phaser.Math.Quaternion#_y\r\n * @type {number}\r\n * @default 0\r\n * @private\r\n * @since 3.50.0\r\n */\r\n\r\n /**\r\n * The z component of this Quaternion.\r\n *\r\n * @name Phaser.Math.Quaternion#_z\r\n * @type {number}\r\n * @default 0\r\n * @private\r\n * @since 3.50.0\r\n */\r\n\r\n /**\r\n * The w component of this Quaternion.\r\n *\r\n * @name Phaser.Math.Quaternion#_w\r\n * @type {number}\r\n * @default 0\r\n * @private\r\n * @since 3.50.0\r\n */\r\n\r\n /**\r\n * This callback is invoked, if set, each time a value in this quaternion is changed.\r\n * The callback is passed one argument, a reference to this quaternion.\r\n *\r\n * @name Phaser.Math.Quaternion#onChangeCallback\r\n * @type {function}\r\n * @since 3.50.0\r\n */\r\n this.onChangeCallback = NOOP;\r\n\r\n this.set(x, y, z, w);\r\n },\r\n\r\n /**\r\n * The x component of this Quaternion.\r\n *\r\n * @name Phaser.Math.Quaternion#x\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n x: {\r\n get: function ()\r\n {\r\n return this._x;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._x = value;\r\n\r\n this.onChangeCallback(this);\r\n }\r\n },\r\n\r\n /**\r\n * The y component of this Quaternion.\r\n *\r\n * @name Phaser.Math.Quaternion#y\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n y: {\r\n get: function ()\r\n {\r\n return this._y;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._y = value;\r\n\r\n this.onChangeCallback(this);\r\n }\r\n },\r\n\r\n /**\r\n * The z component of this Quaternion.\r\n *\r\n * @name Phaser.Math.Quaternion#z\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n z: {\r\n get: function ()\r\n {\r\n return this._z;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._z = value;\r\n\r\n this.onChangeCallback(this);\r\n }\r\n },\r\n\r\n /**\r\n * The w component of this Quaternion.\r\n *\r\n * @name Phaser.Math.Quaternion#w\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n w: {\r\n get: function ()\r\n {\r\n return this._w;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._w = value;\r\n\r\n this.onChangeCallback(this);\r\n }\r\n },\r\n\r\n /**\r\n * Copy the components of a given Quaternion or Vector into this Quaternion.\r\n *\r\n * @method Phaser.Math.Quaternion#copy\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Quaternion|Phaser.Math.Vector4)} src - The Quaternion or Vector to copy the components from.\r\n *\r\n * @return {Phaser.Math.Quaternion} This Quaternion.\r\n */\r\n copy: function (src)\r\n {\r\n return this.set(src);\r\n },\r\n\r\n /**\r\n * Set the components of this Quaternion and optionally call the `onChangeCallback`.\r\n *\r\n * @method Phaser.Math.Quaternion#set\r\n * @since 3.0.0\r\n *\r\n * @param {(number|object)} [x=0] - The x component, or an object containing x, y, z, and w components.\r\n * @param {number} [y=0] - The y component.\r\n * @param {number} [z=0] - The z component.\r\n * @param {number} [w=0] - The w component.\r\n * @param {boolean} [update=true] - Call the `onChangeCallback`?\r\n *\r\n * @return {Phaser.Math.Quaternion} This Quaternion.\r\n */\r\n set: function (x, y, z, w, update)\r\n {\r\n if (update === undefined) { update = true; }\r\n\r\n if (typeof x === 'object')\r\n {\r\n this._x = x.x || 0;\r\n this._y = x.y || 0;\r\n this._z = x.z || 0;\r\n this._w = x.w || 0;\r\n }\r\n else\r\n {\r\n this._x = x || 0;\r\n this._y = y || 0;\r\n this._z = z || 0;\r\n this._w = w || 0;\r\n }\r\n\r\n if (update)\r\n {\r\n this.onChangeCallback(this);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Add a given Quaternion or Vector to this Quaternion. Addition is component-wise.\r\n *\r\n * @method Phaser.Math.Quaternion#add\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Quaternion|Phaser.Math.Vector4)} v - The Quaternion or Vector to add to this Quaternion.\r\n *\r\n * @return {Phaser.Math.Quaternion} This Quaternion.\r\n */\r\n add: function (v)\r\n {\r\n this._x += v.x;\r\n this._y += v.y;\r\n this._z += v.z;\r\n this._w += v.w;\r\n\r\n this.onChangeCallback(this);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Subtract a given Quaternion or Vector from this Quaternion. Subtraction is component-wise.\r\n *\r\n * @method Phaser.Math.Quaternion#subtract\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Quaternion|Phaser.Math.Vector4)} v - The Quaternion or Vector to subtract from this Quaternion.\r\n *\r\n * @return {Phaser.Math.Quaternion} This Quaternion.\r\n */\r\n subtract: function (v)\r\n {\r\n this._x -= v.x;\r\n this._y -= v.y;\r\n this._z -= v.z;\r\n this._w -= v.w;\r\n\r\n this.onChangeCallback(this);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Scale this Quaternion by the given value.\r\n *\r\n * @method Phaser.Math.Quaternion#scale\r\n * @since 3.0.0\r\n *\r\n * @param {number} scale - The value to scale this Quaternion by.\r\n *\r\n * @return {Phaser.Math.Quaternion} This Quaternion.\r\n */\r\n scale: function (scale)\r\n {\r\n this._x *= scale;\r\n this._y *= scale;\r\n this._z *= scale;\r\n this._w *= scale;\r\n\r\n this.onChangeCallback(this);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calculate the length of this Quaternion.\r\n *\r\n * @method Phaser.Math.Quaternion#length\r\n * @since 3.0.0\r\n *\r\n * @return {number} The length of this Quaternion.\r\n */\r\n length: function ()\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n var z = this.z;\r\n var w = this.w;\r\n\r\n return Math.sqrt(x * x + y * y + z * z + w * w);\r\n },\r\n\r\n /**\r\n * Calculate the length of this Quaternion squared.\r\n *\r\n * @method Phaser.Math.Quaternion#lengthSq\r\n * @since 3.0.0\r\n *\r\n * @return {number} The length of this Quaternion, squared.\r\n */\r\n lengthSq: function ()\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n var z = this.z;\r\n var w = this.w;\r\n\r\n return x * x + y * y + z * z + w * w;\r\n },\r\n\r\n /**\r\n * Normalize this Quaternion.\r\n *\r\n * @method Phaser.Math.Quaternion#normalize\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Quaternion} This Quaternion.\r\n */\r\n normalize: function ()\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n var z = this.z;\r\n var w = this.w;\r\n var len = x * x + y * y + z * z + w * w;\r\n\r\n if (len > 0)\r\n {\r\n len = 1 / Math.sqrt(len);\r\n\r\n this._x = x * len;\r\n this._y = y * len;\r\n this._z = z * len;\r\n this._w = w * len;\r\n }\r\n\r\n this.onChangeCallback(this);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calculate the dot product of this Quaternion and the given Quaternion or Vector.\r\n *\r\n * @method Phaser.Math.Quaternion#dot\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Quaternion|Phaser.Math.Vector4)} v - The Quaternion or Vector to dot product with this Quaternion.\r\n *\r\n * @return {number} The dot product of this Quaternion and the given Quaternion or Vector.\r\n */\r\n dot: function (v)\r\n {\r\n return this.x * v.x + this.y * v.y + this.z * v.z + this.w * v.w;\r\n },\r\n\r\n /**\r\n * Linearly interpolate this Quaternion towards the given Quaternion or Vector.\r\n *\r\n * @method Phaser.Math.Quaternion#lerp\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Quaternion|Phaser.Math.Vector4)} v - The Quaternion or Vector to interpolate towards.\r\n * @param {number} [t=0] - The percentage of interpolation.\r\n *\r\n * @return {Phaser.Math.Quaternion} This Quaternion.\r\n */\r\n lerp: function (v, t)\r\n {\r\n if (t === undefined) { t = 0; }\r\n\r\n var ax = this.x;\r\n var ay = this.y;\r\n var az = this.z;\r\n var aw = this.w;\r\n\r\n return this.set(\r\n ax + t * (v.x - ax),\r\n ay + t * (v.y - ay),\r\n az + t * (v.z - az),\r\n aw + t * (v.w - aw)\r\n );\r\n },\r\n\r\n /**\r\n * Rotates this Quaternion based on the two given vectors.\r\n *\r\n * @method Phaser.Math.Quaternion#rotationTo\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector3} a - The transform rotation vector.\r\n * @param {Phaser.Math.Vector3} b - The target rotation vector.\r\n *\r\n * @return {Phaser.Math.Quaternion} This Quaternion.\r\n */\r\n rotationTo: function (a, b)\r\n {\r\n var dot = a.x * b.x + a.y * b.y + a.z * b.z;\r\n\r\n if (dot < -0.999999)\r\n {\r\n if (tmpvec.copy(xUnitVec3).cross(a).length() < EPSILON)\r\n {\r\n tmpvec.copy(yUnitVec3).cross(a);\r\n }\r\n\r\n tmpvec.normalize();\r\n\r\n return this.setAxisAngle(tmpvec, Math.PI);\r\n\r\n }\r\n else if (dot > 0.999999)\r\n {\r\n return this.set(0, 0, 0, 1);\r\n }\r\n else\r\n {\r\n tmpvec.copy(a).cross(b);\r\n\r\n this._x = tmpvec.x;\r\n this._y = tmpvec.y;\r\n this._z = tmpvec.z;\r\n this._w = 1 + dot;\r\n\r\n return this.normalize();\r\n }\r\n },\r\n\r\n /**\r\n * Set the axes of this Quaternion.\r\n *\r\n * @method Phaser.Math.Quaternion#setAxes\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector3} view - The view axis.\r\n * @param {Phaser.Math.Vector3} right - The right axis.\r\n * @param {Phaser.Math.Vector3} up - The upwards axis.\r\n *\r\n * @return {Phaser.Math.Quaternion} This Quaternion.\r\n */\r\n setAxes: function (view, right, up)\r\n {\r\n var m = tmpMat3.val;\r\n\r\n m[0] = right.x;\r\n m[3] = right.y;\r\n m[6] = right.z;\r\n\r\n m[1] = up.x;\r\n m[4] = up.y;\r\n m[7] = up.z;\r\n\r\n m[2] = -view.x;\r\n m[5] = -view.y;\r\n m[8] = -view.z;\r\n\r\n return this.fromMat3(tmpMat3).normalize();\r\n },\r\n\r\n /**\r\n * Reset this Matrix to an identity (default) Quaternion.\r\n *\r\n * @method Phaser.Math.Quaternion#identity\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Quaternion} This Quaternion.\r\n */\r\n identity: function ()\r\n {\r\n return this.set(0, 0, 0, 1);\r\n },\r\n\r\n /**\r\n * Set the axis angle of this Quaternion.\r\n *\r\n * @method Phaser.Math.Quaternion#setAxisAngle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector3} axis - The axis.\r\n * @param {number} rad - The angle in radians.\r\n *\r\n * @return {Phaser.Math.Quaternion} This Quaternion.\r\n */\r\n setAxisAngle: function (axis, rad)\r\n {\r\n rad = rad * 0.5;\r\n\r\n var s = Math.sin(rad);\r\n\r\n return this.set(\r\n s * axis.x,\r\n s * axis.y,\r\n s * axis.z,\r\n Math.cos(rad)\r\n );\r\n },\r\n\r\n /**\r\n * Multiply this Quaternion by the given Quaternion or Vector.\r\n *\r\n * @method Phaser.Math.Quaternion#multiply\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Quaternion|Phaser.Math.Vector4)} b - The Quaternion or Vector to multiply this Quaternion by.\r\n *\r\n * @return {Phaser.Math.Quaternion} This Quaternion.\r\n */\r\n multiply: function (b)\r\n {\r\n var ax = this.x;\r\n var ay = this.y;\r\n var az = this.z;\r\n var aw = this.w;\r\n\r\n var bx = b.x;\r\n var by = b.y;\r\n var bz = b.z;\r\n var bw = b.w;\r\n\r\n return this.set(\r\n ax * bw + aw * bx + ay * bz - az * by,\r\n ay * bw + aw * by + az * bx - ax * bz,\r\n az * bw + aw * bz + ax * by - ay * bx,\r\n aw * bw - ax * bx - ay * by - az * bz\r\n );\r\n },\r\n\r\n /**\r\n * Smoothly linearly interpolate this Quaternion towards the given Quaternion or Vector.\r\n *\r\n * @method Phaser.Math.Quaternion#slerp\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Quaternion|Phaser.Math.Vector4)} b - The Quaternion or Vector to interpolate towards.\r\n * @param {number} t - The percentage of interpolation.\r\n *\r\n * @return {Phaser.Math.Quaternion} This Quaternion.\r\n */\r\n slerp: function (b, t)\r\n {\r\n // benchmarks: http://jsperf.com/quaternion-slerp-implementations\r\n\r\n var ax = this.x;\r\n var ay = this.y;\r\n var az = this.z;\r\n var aw = this.w;\r\n\r\n var bx = b.x;\r\n var by = b.y;\r\n var bz = b.z;\r\n var bw = b.w;\r\n\r\n // calc cosine\r\n var cosom = ax * bx + ay * by + az * bz + aw * bw;\r\n\r\n // adjust signs (if necessary)\r\n if (cosom < 0)\r\n {\r\n cosom = -cosom;\r\n bx = - bx;\r\n by = - by;\r\n bz = - bz;\r\n bw = - bw;\r\n }\r\n\r\n // \"from\" and \"to\" quaternions are very close\r\n // ... so we can do a linear interpolation\r\n var scale0 = 1 - t;\r\n var scale1 = t;\r\n\r\n // calculate coefficients\r\n if ((1 - cosom) > EPSILON)\r\n {\r\n // standard case (slerp)\r\n var omega = Math.acos(cosom);\r\n var sinom = Math.sin(omega);\r\n\r\n scale0 = Math.sin((1.0 - t) * omega) / sinom;\r\n scale1 = Math.sin(t * omega) / sinom;\r\n }\r\n\r\n // calculate final values\r\n return this.set(\r\n scale0 * ax + scale1 * bx,\r\n scale0 * ay + scale1 * by,\r\n scale0 * az + scale1 * bz,\r\n scale0 * aw + scale1 * bw\r\n );\r\n },\r\n\r\n /**\r\n * Invert this Quaternion.\r\n *\r\n * @method Phaser.Math.Quaternion#invert\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Quaternion} This Quaternion.\r\n */\r\n invert: function ()\r\n {\r\n var a0 = this.x;\r\n var a1 = this.y;\r\n var a2 = this.z;\r\n var a3 = this.w;\r\n\r\n var dot = a0 * a0 + a1 * a1 + a2 * a2 + a3 * a3;\r\n var invDot = (dot) ? 1 / dot : 0;\r\n\r\n return this.set(\r\n -a0 * invDot,\r\n -a1 * invDot,\r\n -a2 * invDot,\r\n a3 * invDot\r\n );\r\n },\r\n\r\n /**\r\n * Convert this Quaternion into its conjugate.\r\n *\r\n * Sets the x, y and z components.\r\n *\r\n * @method Phaser.Math.Quaternion#conjugate\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Quaternion} This Quaternion.\r\n */\r\n conjugate: function ()\r\n {\r\n this._x = -this.x;\r\n this._y = -this.y;\r\n this._z = -this.z;\r\n\r\n this.onChangeCallback(this);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Rotate this Quaternion on the X axis.\r\n *\r\n * @method Phaser.Math.Quaternion#rotateX\r\n * @since 3.0.0\r\n *\r\n * @param {number} rad - The rotation angle in radians.\r\n *\r\n * @return {Phaser.Math.Quaternion} This Quaternion.\r\n */\r\n rotateX: function (rad)\r\n {\r\n rad *= 0.5;\r\n\r\n var ax = this.x;\r\n var ay = this.y;\r\n var az = this.z;\r\n var aw = this.w;\r\n\r\n var bx = Math.sin(rad);\r\n var bw = Math.cos(rad);\r\n\r\n return this.set(\r\n ax * bw + aw * bx,\r\n ay * bw + az * bx,\r\n az * bw - ay * bx,\r\n aw * bw - ax * bx\r\n );\r\n },\r\n\r\n /**\r\n * Rotate this Quaternion on the Y axis.\r\n *\r\n * @method Phaser.Math.Quaternion#rotateY\r\n * @since 3.0.0\r\n *\r\n * @param {number} rad - The rotation angle in radians.\r\n *\r\n * @return {Phaser.Math.Quaternion} This Quaternion.\r\n */\r\n rotateY: function (rad)\r\n {\r\n rad *= 0.5;\r\n\r\n var ax = this.x;\r\n var ay = this.y;\r\n var az = this.z;\r\n var aw = this.w;\r\n\r\n var by = Math.sin(rad);\r\n var bw = Math.cos(rad);\r\n\r\n return this.set(\r\n ax * bw - az * by,\r\n ay * bw + aw * by,\r\n az * bw + ax * by,\r\n aw * bw - ay * by\r\n );\r\n },\r\n\r\n /**\r\n * Rotate this Quaternion on the Z axis.\r\n *\r\n * @method Phaser.Math.Quaternion#rotateZ\r\n * @since 3.0.0\r\n *\r\n * @param {number} rad - The rotation angle in radians.\r\n *\r\n * @return {Phaser.Math.Quaternion} This Quaternion.\r\n */\r\n rotateZ: function (rad)\r\n {\r\n rad *= 0.5;\r\n\r\n var ax = this.x;\r\n var ay = this.y;\r\n var az = this.z;\r\n var aw = this.w;\r\n\r\n var bz = Math.sin(rad);\r\n var bw = Math.cos(rad);\r\n\r\n return this.set(\r\n ax * bw + ay * bz,\r\n ay * bw - ax * bz,\r\n az * bw + aw * bz,\r\n aw * bw - az * bz\r\n );\r\n },\r\n\r\n /**\r\n * Create a unit (or rotation) Quaternion from its x, y, and z components.\r\n *\r\n * Sets the w component.\r\n *\r\n * @method Phaser.Math.Quaternion#calculateW\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Quaternion} This Quaternion.\r\n */\r\n calculateW: function ()\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n var z = this.z;\r\n\r\n this.w = -Math.sqrt(1.0 - x * x - y * y - z * z);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set this Quaternion from the given Euler, based on Euler order.\r\n *\r\n * @method Phaser.Math.Quaternion#setFromEuler\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Math.Euler} euler - The Euler to convert from.\r\n * @param {boolean} [update=true] - Run the `onChangeCallback`?\r\n *\r\n * @return {Phaser.Math.Quaternion} This Quaternion.\r\n */\r\n setFromEuler: function (euler, update)\r\n {\r\n var x = euler.x / 2;\r\n var y = euler.y / 2;\r\n var z = euler.z / 2;\r\n\r\n var c1 = Math.cos(x);\r\n var c2 = Math.cos(y);\r\n var c3 = Math.cos(z);\r\n\r\n var s1 = Math.sin(x);\r\n var s2 = Math.sin(y);\r\n var s3 = Math.sin(z);\r\n\r\n switch (euler.order)\r\n {\r\n case 'XYZ':\r\n {\r\n this.set(\r\n s1 * c2 * c3 + c1 * s2 * s3,\r\n c1 * s2 * c3 - s1 * c2 * s3,\r\n c1 * c2 * s3 + s1 * s2 * c3,\r\n c1 * c2 * c3 - s1 * s2 * s3,\r\n update\r\n );\r\n\r\n break;\r\n }\r\n\r\n case 'YXZ':\r\n {\r\n this.set(\r\n s1 * c2 * c3 + c1 * s2 * s3,\r\n c1 * s2 * c3 - s1 * c2 * s3,\r\n c1 * c2 * s3 - s1 * s2 * c3,\r\n c1 * c2 * c3 + s1 * s2 * s3,\r\n update\r\n );\r\n\r\n break;\r\n }\r\n\r\n case 'ZXY':\r\n {\r\n this.set(\r\n s1 * c2 * c3 - c1 * s2 * s3,\r\n c1 * s2 * c3 + s1 * c2 * s3,\r\n c1 * c2 * s3 + s1 * s2 * c3,\r\n c1 * c2 * c3 - s1 * s2 * s3,\r\n update\r\n );\r\n\r\n break;\r\n }\r\n\r\n case 'ZYX':\r\n {\r\n this.set(\r\n s1 * c2 * c3 - c1 * s2 * s3,\r\n c1 * s2 * c3 + s1 * c2 * s3,\r\n c1 * c2 * s3 - s1 * s2 * c3,\r\n c1 * c2 * c3 + s1 * s2 * s3,\r\n update\r\n );\r\n\r\n break;\r\n }\r\n\r\n case 'YZX':\r\n {\r\n this.set(\r\n s1 * c2 * c3 + c1 * s2 * s3,\r\n c1 * s2 * c3 + s1 * c2 * s3,\r\n c1 * c2 * s3 - s1 * s2 * c3,\r\n c1 * c2 * c3 - s1 * s2 * s3,\r\n update\r\n );\r\n\r\n break;\r\n }\r\n\r\n case 'XZY':\r\n {\r\n this.set(\r\n s1 * c2 * c3 - c1 * s2 * s3,\r\n c1 * s2 * c3 - s1 * c2 * s3,\r\n c1 * c2 * s3 + s1 * s2 * c3,\r\n c1 * c2 * c3 + s1 * s2 * s3,\r\n update\r\n );\r\n\r\n break;\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the rotation of this Quaternion from the given Matrix4.\r\n *\r\n * @method Phaser.Math.Quaternion#setFromRotationMatrix\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Math.Matrix4} mat4 - The Matrix4 to set the rotation from.\r\n *\r\n * @return {Phaser.Math.Quaternion} This Quaternion.\r\n */\r\n setFromRotationMatrix: function (mat4)\r\n {\r\n var m = mat4.val;\r\n\r\n var m11 = m[0];\r\n var m12 = m[4];\r\n var m13 = m[8];\r\n var m21 = m[1];\r\n var m22 = m[5];\r\n var m23 = m[9];\r\n var m31 = m[2];\r\n var m32 = m[6];\r\n var m33 = m[10];\r\n\r\n var trace = m11 + m22 + m33;\r\n var s;\r\n\r\n if (trace > 0)\r\n {\r\n s = 0.5 / Math.sqrt(trace + 1.0);\r\n\r\n this.set(\r\n (m32 - m23) * s,\r\n (m13 - m31) * s,\r\n (m21 - m12) * s,\r\n 0.25 / s\r\n );\r\n }\r\n else if (m11 > m22 && m11 > m33)\r\n {\r\n s = 2.0 * Math.sqrt(1.0 + m11 - m22 - m33);\r\n\r\n this.set(\r\n 0.25 * s,\r\n (m12 + m21) / s,\r\n (m13 + m31) / s,\r\n (m32 - m23) / s\r\n );\r\n }\r\n else if (m22 > m33)\r\n {\r\n s = 2.0 * Math.sqrt(1.0 + m22 - m11 - m33);\r\n\r\n this.set(\r\n (m12 + m21) / s,\r\n 0.25 * s,\r\n (m23 + m32) / s,\r\n (m13 - m31) / s\r\n );\r\n }\r\n else\r\n {\r\n s = 2.0 * Math.sqrt(1.0 + m33 - m11 - m22);\r\n\r\n this.set(\r\n (m13 + m31) / s,\r\n (m23 + m32) / s,\r\n 0.25 * s,\r\n (m21 - m12) / s\r\n );\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Convert the given Matrix into this Quaternion.\r\n *\r\n * @method Phaser.Math.Quaternion#fromMat3\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Matrix3} mat - The Matrix to convert from.\r\n *\r\n * @return {Phaser.Math.Quaternion} This Quaternion.\r\n */\r\n fromMat3: function (mat)\r\n {\r\n // benchmarks:\r\n // http://jsperf.com/typed-array-access-speed\r\n // http://jsperf.com/conversion-of-3x3-matrix-to-quaternion\r\n\r\n // Algorithm in Ken Shoemake's article in 1987 SIGGRAPH course notes\r\n // article \"Quaternion Calculus and Fast Animation\".\r\n var m = mat.val;\r\n var fTrace = m[0] + m[4] + m[8];\r\n var fRoot;\r\n\r\n if (fTrace > 0)\r\n {\r\n // |w| > 1/2, may as well choose w > 1/2\r\n fRoot = Math.sqrt(fTrace + 1.0); // 2w\r\n\r\n this.w = 0.5 * fRoot;\r\n\r\n fRoot = 0.5 / fRoot; // 1/(4w)\r\n\r\n this._x = (m[7] - m[5]) * fRoot;\r\n this._y = (m[2] - m[6]) * fRoot;\r\n this._z = (m[3] - m[1]) * fRoot;\r\n }\r\n else\r\n {\r\n // |w| <= 1/2\r\n var i = 0;\r\n\r\n if (m[4] > m[0])\r\n {\r\n i = 1;\r\n }\r\n\r\n if (m[8] > m[i * 3 + i])\r\n {\r\n i = 2;\r\n }\r\n\r\n var j = siNext[i];\r\n var k = siNext[j];\r\n\r\n // This isn't quite as clean without array access\r\n fRoot = Math.sqrt(m[i * 3 + i] - m[j * 3 + j] - m[k * 3 + k] + 1);\r\n tmp[i] = 0.5 * fRoot;\r\n\r\n fRoot = 0.5 / fRoot;\r\n\r\n tmp[j] = (m[j * 3 + i] + m[i * 3 + j]) * fRoot;\r\n tmp[k] = (m[k * 3 + i] + m[i * 3 + k]) * fRoot;\r\n\r\n this._x = tmp[0];\r\n this._y = tmp[1];\r\n this._z = tmp[2];\r\n this._w = (m[k * 3 + j] - m[j * 3 + k]) * fRoot;\r\n }\r\n\r\n this.onChangeCallback(this);\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Quaternion;\r\n\n\n/***/ }),\n\n/***/ 43396:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(36383);\r\n\r\n/**\r\n * Convert the given angle in radians, to the equivalent angle in degrees.\r\n *\r\n * @function Phaser.Math.RadToDeg\r\n * @since 3.0.0\r\n *\r\n * @param {number} radians - The angle in radians to convert ot degrees.\r\n *\r\n * @return {number} The given angle converted to degrees.\r\n */\r\nvar RadToDeg = function (radians)\r\n{\r\n return radians * CONST.RAD_TO_DEG;\r\n};\r\n\r\nmodule.exports = RadToDeg;\r\n\n\n/***/ }),\n\n/***/ 74362:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Compute a random unit vector.\r\n *\r\n * Computes random values for the given vector between -1 and 1 that can be used to represent a direction.\r\n *\r\n * Optionally accepts a scale value to scale the resulting vector by.\r\n *\r\n * @function Phaser.Math.RandomXY\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector2} vector - The Vector to compute random values for.\r\n * @param {number} [scale=1] - The scale of the random values.\r\n *\r\n * @return {Phaser.Math.Vector2} The given Vector.\r\n */\r\nvar RandomXY = function (vector, scale)\r\n{\r\n if (scale === undefined) { scale = 1; }\r\n\r\n var r = Math.random() * 2 * Math.PI;\r\n\r\n vector.x = Math.cos(r) * scale;\r\n vector.y = Math.sin(r) * scale;\r\n\r\n return vector;\r\n};\r\n\r\nmodule.exports = RandomXY;\r\n\n\n/***/ }),\n\n/***/ 60706:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Compute a random position vector in a spherical area, optionally defined by the given radius.\r\n *\r\n * @function Phaser.Math.RandomXYZ\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector3} vec3 - The Vector to compute random values for.\r\n * @param {number} [radius=1] - The radius.\r\n *\r\n * @return {Phaser.Math.Vector3} The given Vector.\r\n */\r\nvar RandomXYZ = function (vec3, radius)\r\n{\r\n if (radius === undefined) { radius = 1; }\r\n\r\n var r = Math.random() * 2 * Math.PI;\r\n var z = (Math.random() * 2) - 1;\r\n var zScale = Math.sqrt(1 - z * z) * radius;\r\n\r\n vec3.x = Math.cos(r) * zScale;\r\n vec3.y = Math.sin(r) * zScale;\r\n vec3.z = z * radius;\r\n\r\n return vec3;\r\n};\r\n\r\nmodule.exports = RandomXYZ;\r\n\n\n/***/ }),\n\n/***/ 67421:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Compute a random four-dimensional vector.\r\n *\r\n * @function Phaser.Math.RandomXYZW\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector4} vec4 - The Vector to compute random values for.\r\n * @param {number} [scale=1] - The scale of the random values.\r\n *\r\n * @return {Phaser.Math.Vector4} The given Vector.\r\n */\r\nvar RandomXYZW = function (vec4, scale)\r\n{\r\n if (scale === undefined) { scale = 1; }\r\n\r\n vec4.x = (Math.random() * 2 - 1) * scale;\r\n vec4.y = (Math.random() * 2 - 1) * scale;\r\n vec4.z = (Math.random() * 2 - 1) * scale;\r\n vec4.w = (Math.random() * 2 - 1) * scale;\r\n\r\n return vec4;\r\n};\r\n\r\nmodule.exports = RandomXYZW;\r\n\n\n/***/ }),\n\n/***/ 36305:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Rotate a given point by a given angle around the origin (0, 0), in an anti-clockwise direction.\r\n *\r\n * @function Phaser.Math.Rotate\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Geom.Point|object)} point - The point to be rotated.\r\n * @param {number} angle - The angle to be rotated by in an anticlockwise direction.\r\n *\r\n * @return {Phaser.Geom.Point} The given point, rotated by the given angle in an anticlockwise direction.\r\n */\r\nvar Rotate = function (point, angle)\r\n{\r\n var x = point.x;\r\n var y = point.y;\r\n\r\n point.x = (x * Math.cos(angle)) - (y * Math.sin(angle));\r\n point.y = (x * Math.sin(angle)) + (y * Math.cos(angle));\r\n\r\n return point;\r\n};\r\n\r\nmodule.exports = Rotate;\r\n\n\n/***/ }),\n\n/***/ 11520:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Rotate a `point` around `x` and `y` to the given `angle`, at the same distance.\r\n *\r\n * In polar notation, this maps a point from (r, t) to (r, angle), vs. the origin (x, y).\r\n *\r\n * @function Phaser.Math.RotateAround\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Types.Math.Vector2Like} T - [point,$return]\r\n *\r\n * @param {(Phaser.Geom.Point|object)} point - The point to be rotated.\r\n * @param {number} x - The horizontal coordinate to rotate around.\r\n * @param {number} y - The vertical coordinate to rotate around.\r\n * @param {number} angle - The angle of rotation in radians.\r\n *\r\n * @return {Phaser.Types.Math.Vector2Like} The given point.\r\n */\r\nvar RotateAround = function (point, x, y, angle)\r\n{\r\n var c = Math.cos(angle);\r\n var s = Math.sin(angle);\r\n\r\n var tx = point.x - x;\r\n var ty = point.y - y;\r\n\r\n point.x = tx * c - ty * s + x;\r\n point.y = tx * s + ty * c + y;\r\n\r\n return point;\r\n};\r\n\r\nmodule.exports = RotateAround;\r\n\n\n/***/ }),\n\n/***/ 1163:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Rotate a `point` around `x` and `y` by the given `angle` and `distance`.\r\n *\r\n * In polar notation, this maps a point from (r, t) to (distance, t + angle), vs. the origin (x, y).\r\n *\r\n * @function Phaser.Math.RotateAroundDistance\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Types.Math.Vector2Like} T - [point,$return]\r\n *\r\n * @param {(Phaser.Geom.Point|object)} point - The point to be rotated.\r\n * @param {number} x - The horizontal coordinate to rotate around.\r\n * @param {number} y - The vertical coordinate to rotate around.\r\n * @param {number} angle - The angle of rotation in radians.\r\n * @param {number} distance - The distance from (x, y) to place the point at.\r\n *\r\n * @return {Phaser.Types.Math.Vector2Like} The given point.\r\n */\r\nvar RotateAroundDistance = function (point, x, y, angle, distance)\r\n{\r\n var t = angle + Math.atan2(point.y - y, point.x - x);\r\n\r\n point.x = x + (distance * Math.cos(t));\r\n point.y = y + (distance * Math.sin(t));\r\n\r\n return point;\r\n};\r\n\r\nmodule.exports = RotateAroundDistance;\r\n\n\n/***/ }),\n\n/***/ 70336:\n/***/ ((module) => {\n\n/**\r\n * @author samme\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Position a `point` at the given `angle` and `distance` to (`x`, `y`).\r\n *\r\n * @function Phaser.Math.RotateTo\r\n * @since 3.24.0\r\n *\r\n * @generic {Phaser.Types.Math.Vector2Like} T - [point,$return]\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} point - The point to be positioned.\r\n * @param {number} x - The horizontal coordinate to position from.\r\n * @param {number} y - The vertical coordinate to position from.\r\n * @param {number} angle - The angle of rotation in radians.\r\n * @param {number} distance - The distance from (x, y) to place the point at.\r\n *\r\n * @return {Phaser.Types.Math.Vector2Like} The given point.\r\n */\r\nvar RotateTo = function (point, x, y, angle, distance)\r\n{\r\n point.x = x + (distance * Math.cos(angle));\r\n point.y = y + (distance * Math.sin(angle));\r\n\r\n return point;\r\n};\r\n\r\nmodule.exports = RotateTo;\r\n\n\n/***/ }),\n\n/***/ 72678:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Vector3 = __webpack_require__(25836);\r\nvar Matrix4 = __webpack_require__(37867);\r\nvar Quaternion = __webpack_require__(15746);\r\n\r\nvar tmpMat4 = new Matrix4();\r\nvar tmpQuat = new Quaternion();\r\nvar tmpVec3 = new Vector3();\r\n\r\n/**\r\n * Rotates a vector in place by axis angle.\r\n *\r\n * This is the same as transforming a point by an\r\n * axis-angle quaternion, but it has higher precision.\r\n *\r\n * @function Phaser.Math.RotateVec3\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector3} vec - The vector to be rotated.\r\n * @param {Phaser.Math.Vector3} axis - The axis to rotate around.\r\n * @param {number} radians - The angle of rotation in radians.\r\n *\r\n * @return {Phaser.Math.Vector3} The given vector.\r\n */\r\nvar RotateVec3 = function (vec, axis, radians)\r\n{\r\n // Set the quaternion to our axis angle\r\n tmpQuat.setAxisAngle(axis, radians);\r\n\r\n // Create a rotation matrix from the axis angle\r\n tmpMat4.fromRotationTranslation(tmpQuat, tmpVec3.set(0, 0, 0));\r\n\r\n // Multiply our vector by the rotation matrix\r\n return vec.transformMat4(tmpMat4);\r\n};\r\n\r\nmodule.exports = RotateVec3;\r\n\n\n/***/ }),\n\n/***/ 2284:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Round a given number so it is further away from zero. That is, positive numbers are rounded up, and negative numbers are rounded down.\r\n *\r\n * @function Phaser.Math.RoundAwayFromZero\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The number to round.\r\n *\r\n * @return {number} The rounded number, rounded away from zero.\r\n */\r\nvar RoundAwayFromZero = function (value)\r\n{\r\n // \"Opposite\" of truncate.\r\n return (value > 0) ? Math.ceil(value) : Math.floor(value);\r\n};\r\n\r\nmodule.exports = RoundAwayFromZero;\r\n\n\n/***/ }),\n\n/***/ 41013:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Round a value to the given precision.\r\n *\r\n * For example:\r\n *\r\n * ```javascript\r\n * RoundTo(123.456, 0) = 123\r\n * RoundTo(123.456, 1) = 120\r\n * RoundTo(123.456, 2) = 100\r\n * ```\r\n *\r\n * To round the decimal, i.e. to round to precision, pass in a negative `place`:\r\n *\r\n * ```javascript\r\n * RoundTo(123.456789, 0) = 123\r\n * RoundTo(123.456789, -1) = 123.5\r\n * RoundTo(123.456789, -2) = 123.46\r\n * RoundTo(123.456789, -3) = 123.457\r\n * ```\r\n *\r\n * @function Phaser.Math.RoundTo\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The value to round.\r\n * @param {number} [place=0] - The place to round to. Positive to round the units, negative to round the decimal.\r\n * @param {number} [base=10] - The base to round in. Default is 10 for decimal.\r\n *\r\n * @return {number} The rounded value.\r\n */\r\nvar RoundTo = function (value, place, base)\r\n{\r\n if (place === undefined) { place = 0; }\r\n if (base === undefined) { base = 10; }\r\n\r\n var p = Math.pow(base, -place);\r\n\r\n return Math.round(value * p) / p;\r\n};\r\n\r\nmodule.exports = RoundTo;\r\n\n\n/***/ }),\n\n/***/ 16922:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Generate a series of sine and cosine values.\r\n *\r\n * @function Phaser.Math.SinCosTableGenerator\r\n * @since 3.0.0\r\n *\r\n * @param {number} length - The number of values to generate.\r\n * @param {number} [sinAmp=1] - The sine value amplitude.\r\n * @param {number} [cosAmp=1] - The cosine value amplitude.\r\n * @param {number} [frequency=1] - The frequency of the values.\r\n *\r\n * @return {Phaser.Types.Math.SinCosTable} The generated values.\r\n */\r\nvar SinCosTableGenerator = function (length, sinAmp, cosAmp, frequency)\r\n{\r\n if (sinAmp === undefined) { sinAmp = 1; }\r\n if (cosAmp === undefined) { cosAmp = 1; }\r\n if (frequency === undefined) { frequency = 1; }\r\n\r\n frequency *= Math.PI / length;\r\n\r\n var cos = [];\r\n var sin = [];\r\n\r\n for (var c = 0; c < length; c++)\r\n {\r\n cosAmp -= sinAmp * frequency;\r\n sinAmp += cosAmp * frequency;\r\n\r\n cos[c] = cosAmp;\r\n sin[c] = sinAmp;\r\n }\r\n\r\n return {\r\n sin: sin,\r\n cos: cos,\r\n length: length\r\n };\r\n};\r\n\r\nmodule.exports = SinCosTableGenerator;\r\n\n\n/***/ }),\n\n/***/ 7602:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculate a smooth interpolation percentage of `x` between `min` and `max`.\r\n *\r\n * The function receives the number `x` as an argument and returns 0 if `x` is less than or equal to the left edge,\r\n * 1 if `x` is greater than or equal to the right edge, and smoothly interpolates, using a Hermite polynomial,\r\n * between 0 and 1 otherwise.\r\n *\r\n * @function Phaser.Math.SmoothStep\r\n * @since 3.0.0\r\n * @see {@link https://en.wikipedia.org/wiki/Smoothstep}\r\n *\r\n * @param {number} x - The input value.\r\n * @param {number} min - The minimum value, also known as the 'left edge', assumed smaller than the 'right edge'.\r\n * @param {number} max - The maximum value, also known as the 'right edge', assumed greater than the 'left edge'.\r\n *\r\n * @return {number} The percentage of interpolation, between 0 and 1.\r\n */\r\nvar SmoothStep = function (x, min, max)\r\n{\r\n if (x <= min)\r\n {\r\n return 0;\r\n }\r\n\r\n if (x >= max)\r\n {\r\n return 1;\r\n }\r\n\r\n x = (x - min) / (max - min);\r\n\r\n return x * x * (3 - 2 * x);\r\n};\r\n\r\nmodule.exports = SmoothStep;\r\n\n\n/***/ }),\n\n/***/ 54261:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculate a smoother interpolation percentage of `x` between `min` and `max`.\r\n *\r\n * The function receives the number `x` as an argument and returns 0 if `x` is less than or equal to the left edge,\r\n * 1 if `x` is greater than or equal to the right edge, and smoothly interpolates, using a Hermite polynomial,\r\n * between 0 and 1 otherwise.\r\n *\r\n * Produces an even smoother interpolation than {@link Phaser.Math.SmoothStep}.\r\n *\r\n * @function Phaser.Math.SmootherStep\r\n * @since 3.0.0\r\n * @see {@link https://en.wikipedia.org/wiki/Smoothstep#Variations}\r\n *\r\n * @param {number} x - The input value.\r\n * @param {number} min - The minimum value, also known as the 'left edge', assumed smaller than the 'right edge'.\r\n * @param {number} max - The maximum value, also known as the 'right edge', assumed greater than the 'left edge'.\r\n *\r\n * @return {number} The percentage of interpolation, between 0 and 1.\r\n */\r\nvar SmootherStep = function (x, min, max)\r\n{\r\n x = Math.max(0, Math.min(1, (x - min) / (max - min)));\r\n\r\n return x * x * x * (x * (x * 6 - 15) + 10);\r\n};\r\n\r\nmodule.exports = SmootherStep;\r\n\n\n/***/ }),\n\n/***/ 44408:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * Returns a Vector2 containing the x and y position of the given index in a `width` x `height` sized grid.\r\n *\r\n * For example, in a 6 x 4 grid, index 16 would equal x: 4 y: 2.\r\n *\r\n * If the given index is out of range an empty Vector2 is returned.\r\n *\r\n * @function Phaser.Math.ToXY\r\n * @since 3.19.0\r\n *\r\n * @param {number} index - The position within the grid to get the x/y value for.\r\n * @param {number} width - The width of the grid.\r\n * @param {number} height - The height of the grid.\r\n * @param {Phaser.Math.Vector2} [out] - An optional Vector2 to store the result in. If not given, a new Vector2 instance will be created.\r\n *\r\n * @return {Phaser.Math.Vector2} A Vector2 where the x and y properties contain the given grid index.\r\n */\r\nvar ToXY = function (index, width, height, out)\r\n{\r\n if (out === undefined) { out = new Vector2(); }\r\n\r\n var x = 0;\r\n var y = 0;\r\n var total = width * height;\r\n\r\n if (index > 0 && index <= total)\r\n {\r\n if (index > width - 1)\r\n {\r\n y = Math.floor(index / width);\r\n x = index - (y * width);\r\n }\r\n else\r\n {\r\n x = index;\r\n }\r\n }\r\n\r\n return out.set(x, y);\r\n};\r\n\r\nmodule.exports = ToXY;\r\n\n\n/***/ }),\n\n/***/ 85955:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * Takes the `x` and `y` coordinates and transforms them into the same space as\r\n * defined by the position, rotation and scale values.\r\n *\r\n * @function Phaser.Math.TransformXY\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x coordinate to be transformed.\r\n * @param {number} y - The y coordinate to be transformed.\r\n * @param {number} positionX - Horizontal position of the transform point.\r\n * @param {number} positionY - Vertical position of the transform point.\r\n * @param {number} rotation - Rotation of the transform point, in radians.\r\n * @param {number} scaleX - Horizontal scale of the transform point.\r\n * @param {number} scaleY - Vertical scale of the transform point.\r\n * @param {(Phaser.Math.Vector2|Phaser.Geom.Point|object)} [output] - The output vector, point or object for the translated coordinates.\r\n *\r\n * @return {(Phaser.Math.Vector2|Phaser.Geom.Point|object)} The translated point.\r\n */\r\nvar TransformXY = function (x, y, positionX, positionY, rotation, scaleX, scaleY, output)\r\n{\r\n if (output === undefined) { output = new Vector2(); }\r\n\r\n var radianSin = Math.sin(rotation);\r\n var radianCos = Math.cos(rotation);\r\n\r\n // Rotate and Scale\r\n var a = radianCos * scaleX;\r\n var b = radianSin * scaleX;\r\n var c = -radianSin * scaleY;\r\n var d = radianCos * scaleY;\r\n\r\n // Invert\r\n var id = 1 / ((a * d) + (c * -b));\r\n\r\n output.x = (d * id * x) + (-c * id * y) + (((positionY * c) - (positionX * d)) * id);\r\n output.y = (a * id * y) + (-b * id * x) + (((-positionY * a) + (positionX * b)) * id);\r\n\r\n return output;\r\n};\r\n\r\nmodule.exports = TransformXY;\r\n\n\n/***/ }),\n\n/***/ 26099:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// Adapted from [gl-matrix](https://github.com/toji/gl-matrix) by toji\r\n// and [vecmath](https://github.com/mattdesl/vecmath) by mattdesl\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar FuzzyEqual = __webpack_require__(43855);\r\n\r\n/**\r\n * @classdesc\r\n * A representation of a vector in 2D space.\r\n *\r\n * A two-component vector.\r\n *\r\n * @class Vector2\r\n * @memberof Phaser.Math\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {number|Phaser.Types.Math.Vector2Like} [x=0] - The x component, or an object with `x` and `y` properties.\r\n * @param {number} [y=x] - The y component.\r\n */\r\nvar Vector2 = new Class({\r\n\r\n initialize:\r\n\r\n function Vector2 (x, y)\r\n {\r\n /**\r\n * The x component of this Vector.\r\n *\r\n * @name Phaser.Math.Vector2#x\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.x = 0;\r\n\r\n /**\r\n * The y component of this Vector.\r\n *\r\n * @name Phaser.Math.Vector2#y\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.y = 0;\r\n\r\n if (typeof x === 'object')\r\n {\r\n this.x = x.x || 0;\r\n this.y = x.y || 0;\r\n }\r\n else\r\n {\r\n if (y === undefined) { y = x; }\r\n\r\n this.x = x || 0;\r\n this.y = y || 0;\r\n }\r\n },\r\n\r\n /**\r\n * Make a clone of this Vector2.\r\n *\r\n * @method Phaser.Math.Vector2#clone\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Vector2} A clone of this Vector2.\r\n */\r\n clone: function ()\r\n {\r\n return new Vector2(this.x, this.y);\r\n },\r\n\r\n /**\r\n * Copy the components of a given Vector into this Vector.\r\n *\r\n * @method Phaser.Math.Vector2#copy\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} src - The Vector to copy the components from.\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n copy: function (src)\r\n {\r\n this.x = src.x || 0;\r\n this.y = src.y || 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the component values of this Vector from a given Vector2Like object.\r\n *\r\n * @method Phaser.Math.Vector2#setFromObject\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} obj - The object containing the component values to set for this Vector.\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n setFromObject: function (obj)\r\n {\r\n this.x = obj.x || 0;\r\n this.y = obj.y || 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the `x` and `y` components of the this Vector to the given `x` and `y` values.\r\n *\r\n * @method Phaser.Math.Vector2#set\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x value to set for this Vector.\r\n * @param {number} [y=x] - The y value to set for this Vector.\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n set: function (x, y)\r\n {\r\n if (y === undefined) { y = x; }\r\n\r\n this.x = x;\r\n this.y = y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * This method is an alias for `Vector2.set`.\r\n *\r\n * @method Phaser.Math.Vector2#setTo\r\n * @since 3.4.0\r\n *\r\n * @param {number} x - The x value to set for this Vector.\r\n * @param {number} [y=x] - The y value to set for this Vector.\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n setTo: function (x, y)\r\n {\r\n return this.set(x, y);\r\n },\r\n\r\n /**\r\n * Sets the `x` and `y` values of this object from a given polar coordinate.\r\n *\r\n * @method Phaser.Math.Vector2#setToPolar\r\n * @since 3.0.0\r\n *\r\n * @param {number} azimuth - The angular coordinate, in radians.\r\n * @param {number} [radius=1] - The radial coordinate (length).\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n setToPolar: function (azimuth, radius)\r\n {\r\n if (radius == null) { radius = 1; }\r\n\r\n this.x = Math.cos(azimuth) * radius;\r\n this.y = Math.sin(azimuth) * radius;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Check whether this Vector is equal to a given Vector.\r\n *\r\n * Performs a strict equality check against each Vector's components.\r\n *\r\n * @method Phaser.Math.Vector2#equals\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} v - The vector to compare with this Vector.\r\n *\r\n * @return {boolean} Whether the given Vector is equal to this Vector.\r\n */\r\n equals: function (v)\r\n {\r\n return ((this.x === v.x) && (this.y === v.y));\r\n },\r\n\r\n /**\r\n * Check whether this Vector is approximately equal to a given Vector.\r\n *\r\n * @method Phaser.Math.Vector2#fuzzyEquals\r\n * @since 3.23.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} v - The vector to compare with this Vector.\r\n * @param {number} [epsilon=0.0001] - The tolerance value.\r\n *\r\n * @return {boolean} Whether both absolute differences of the x and y components are smaller than `epsilon`.\r\n */\r\n fuzzyEquals: function (v, epsilon)\r\n {\r\n return (FuzzyEqual(this.x, v.x, epsilon) && FuzzyEqual(this.y, v.y, epsilon));\r\n },\r\n\r\n /**\r\n * Calculate the angle between this Vector and the positive x-axis, in radians.\r\n *\r\n * @method Phaser.Math.Vector2#angle\r\n * @since 3.0.0\r\n *\r\n * @return {number} The angle between this Vector, and the positive x-axis, given in radians.\r\n */\r\n angle: function ()\r\n {\r\n // computes the angle in radians with respect to the positive x-axis\r\n\r\n var angle = Math.atan2(this.y, this.x);\r\n\r\n if (angle < 0)\r\n {\r\n angle += 2 * Math.PI;\r\n }\r\n\r\n return angle;\r\n },\r\n\r\n /**\r\n * Set the angle of this Vector.\r\n *\r\n * @method Phaser.Math.Vector2#setAngle\r\n * @since 3.23.0\r\n *\r\n * @param {number} angle - The angle, in radians.\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n setAngle: function (angle)\r\n {\r\n return this.setToPolar(angle, this.length());\r\n },\r\n\r\n /**\r\n * Add a given Vector to this Vector. Addition is component-wise.\r\n *\r\n * @method Phaser.Math.Vector2#add\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} src - The Vector to add to this Vector.\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n add: function (src)\r\n {\r\n this.x += src.x;\r\n this.y += src.y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Subtract the given Vector from this Vector. Subtraction is component-wise.\r\n *\r\n * @method Phaser.Math.Vector2#subtract\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} src - The Vector to subtract from this Vector.\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n subtract: function (src)\r\n {\r\n this.x -= src.x;\r\n this.y -= src.y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Perform a component-wise multiplication between this Vector and the given Vector.\r\n *\r\n * Multiplies this Vector by the given Vector.\r\n *\r\n * @method Phaser.Math.Vector2#multiply\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} src - The Vector to multiply this Vector by.\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n multiply: function (src)\r\n {\r\n this.x *= src.x;\r\n this.y *= src.y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Scale this Vector by the given value.\r\n *\r\n * @method Phaser.Math.Vector2#scale\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The value to scale this Vector by.\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n scale: function (value)\r\n {\r\n if (isFinite(value))\r\n {\r\n this.x *= value;\r\n this.y *= value;\r\n }\r\n else\r\n {\r\n this.x = 0;\r\n this.y = 0;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Perform a component-wise division between this Vector and the given Vector.\r\n *\r\n * Divides this Vector by the given Vector.\r\n *\r\n * @method Phaser.Math.Vector2#divide\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} src - The Vector to divide this Vector by.\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n divide: function (src)\r\n {\r\n this.x /= src.x;\r\n this.y /= src.y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Negate the `x` and `y` components of this Vector.\r\n *\r\n * @method Phaser.Math.Vector2#negate\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n negate: function ()\r\n {\r\n this.x = -this.x;\r\n this.y = -this.y;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calculate the distance between this Vector and the given Vector.\r\n *\r\n * @method Phaser.Math.Vector2#distance\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} src - The Vector to calculate the distance to.\r\n *\r\n * @return {number} The distance from this Vector to the given Vector.\r\n */\r\n distance: function (src)\r\n {\r\n var dx = src.x - this.x;\r\n var dy = src.y - this.y;\r\n\r\n return Math.sqrt(dx * dx + dy * dy);\r\n },\r\n\r\n /**\r\n * Calculate the distance between this Vector and the given Vector, squared.\r\n *\r\n * @method Phaser.Math.Vector2#distanceSq\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} src - The Vector to calculate the distance to.\r\n *\r\n * @return {number} The distance from this Vector to the given Vector, squared.\r\n */\r\n distanceSq: function (src)\r\n {\r\n var dx = src.x - this.x;\r\n var dy = src.y - this.y;\r\n\r\n return dx * dx + dy * dy;\r\n },\r\n\r\n /**\r\n * Calculate the length (or magnitude) of this Vector.\r\n *\r\n * @method Phaser.Math.Vector2#length\r\n * @since 3.0.0\r\n *\r\n * @return {number} The length of this Vector.\r\n */\r\n length: function ()\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n\r\n return Math.sqrt(x * x + y * y);\r\n },\r\n\r\n /**\r\n * Set the length (or magnitude) of this Vector.\r\n *\r\n * @method Phaser.Math.Vector2#setLength\r\n * @since 3.23.0\r\n *\r\n * @param {number} length\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n setLength: function (length)\r\n {\r\n return this.normalize().scale(length);\r\n },\r\n\r\n /**\r\n * Calculate the length of this Vector squared.\r\n *\r\n * @method Phaser.Math.Vector2#lengthSq\r\n * @since 3.0.0\r\n *\r\n * @return {number} The length of this Vector, squared.\r\n */\r\n lengthSq: function ()\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n\r\n return x * x + y * y;\r\n },\r\n\r\n /**\r\n * Normalize this Vector.\r\n *\r\n * Makes the vector a unit length vector (magnitude of 1) in the same direction.\r\n *\r\n * @method Phaser.Math.Vector2#normalize\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n normalize: function ()\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n var len = x * x + y * y;\r\n\r\n if (len > 0)\r\n {\r\n len = 1 / Math.sqrt(len);\r\n\r\n this.x = x * len;\r\n this.y = y * len;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Rotate this Vector to its perpendicular, in the positive direction.\r\n *\r\n * @method Phaser.Math.Vector2#normalizeRightHand\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n normalizeRightHand: function ()\r\n {\r\n var x = this.x;\r\n\r\n this.x = this.y * -1;\r\n this.y = x;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Rotate this Vector to its perpendicular, in the negative direction.\r\n *\r\n * @method Phaser.Math.Vector2#normalizeLeftHand\r\n * @since 3.23.0\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n normalizeLeftHand: function ()\r\n {\r\n var x = this.x;\r\n\r\n this.x = this.y;\r\n this.y = x * -1;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calculate the dot product of this Vector and the given Vector.\r\n *\r\n * @method Phaser.Math.Vector2#dot\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} src - The Vector2 to dot product with this Vector2.\r\n *\r\n * @return {number} The dot product of this Vector and the given Vector.\r\n */\r\n dot: function (src)\r\n {\r\n return this.x * src.x + this.y * src.y;\r\n },\r\n\r\n /**\r\n * Calculate the cross product of this Vector and the given Vector.\r\n *\r\n * @method Phaser.Math.Vector2#cross\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} src - The Vector2 to cross with this Vector2.\r\n *\r\n * @return {number} The cross product of this Vector and the given Vector.\r\n */\r\n cross: function (src)\r\n {\r\n return this.x * src.y - this.y * src.x;\r\n },\r\n\r\n /**\r\n * Linearly interpolate between this Vector and the given Vector.\r\n *\r\n * Interpolates this Vector towards the given Vector.\r\n *\r\n * @method Phaser.Math.Vector2#lerp\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} src - The Vector2 to interpolate towards.\r\n * @param {number} [t=0] - The interpolation percentage, between 0 and 1.\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n lerp: function (src, t)\r\n {\r\n if (t === undefined) { t = 0; }\r\n\r\n var ax = this.x;\r\n var ay = this.y;\r\n\r\n this.x = ax + t * (src.x - ax);\r\n this.y = ay + t * (src.y - ay);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Transform this Vector with the given Matrix.\r\n *\r\n * @method Phaser.Math.Vector2#transformMat3\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Matrix3} mat - The Matrix3 to transform this Vector2 with.\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n transformMat3: function (mat)\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n var m = mat.val;\r\n\r\n this.x = m[0] * x + m[3] * y + m[6];\r\n this.y = m[1] * x + m[4] * y + m[7];\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Transform this Vector with the given Matrix.\r\n *\r\n * @method Phaser.Math.Vector2#transformMat4\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Matrix4} mat - The Matrix4 to transform this Vector2 with.\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n transformMat4: function (mat)\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n var m = mat.val;\r\n\r\n this.x = m[0] * x + m[4] * y + m[12];\r\n this.y = m[1] * x + m[5] * y + m[13];\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Make this Vector the zero vector (0, 0).\r\n *\r\n * @method Phaser.Math.Vector2#reset\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n reset: function ()\r\n {\r\n this.x = 0;\r\n this.y = 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Limit the length (or magnitude) of this Vector.\r\n *\r\n * @method Phaser.Math.Vector2#limit\r\n * @since 3.23.0\r\n *\r\n * @param {number} max - The maximum length.\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n limit: function (max)\r\n {\r\n var len = this.length();\r\n\r\n if (len && len > max)\r\n {\r\n this.scale(max / len);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Reflect this Vector off a line defined by a normal.\r\n *\r\n * @method Phaser.Math.Vector2#reflect\r\n * @since 3.23.0\r\n *\r\n * @param {Phaser.Math.Vector2} normal - A vector perpendicular to the line.\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n reflect: function (normal)\r\n {\r\n normal = normal.clone().normalize();\r\n\r\n return this.subtract(normal.scale(2 * this.dot(normal)));\r\n },\r\n\r\n /**\r\n * Reflect this Vector across another.\r\n *\r\n * @method Phaser.Math.Vector2#mirror\r\n * @since 3.23.0\r\n *\r\n * @param {Phaser.Math.Vector2} axis - A vector to reflect across.\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n mirror: function (axis)\r\n {\r\n return this.reflect(axis).negate();\r\n },\r\n\r\n /**\r\n * Rotate this Vector by an angle amount.\r\n *\r\n * @method Phaser.Math.Vector2#rotate\r\n * @since 3.23.0\r\n *\r\n * @param {number} delta - The angle to rotate by, in radians.\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n rotate: function (delta)\r\n {\r\n var cos = Math.cos(delta);\r\n var sin = Math.sin(delta);\r\n\r\n return this.set(cos * this.x - sin * this.y, sin * this.x + cos * this.y);\r\n },\r\n\r\n /**\r\n * Project this Vector onto another.\r\n *\r\n * @method Phaser.Math.Vector2#project\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Math.Vector2} src - The vector to project onto.\r\n *\r\n * @return {Phaser.Math.Vector2} This Vector2.\r\n */\r\n project: function (src)\r\n {\r\n var scalar = this.dot(src) / src.dot(src);\r\n\r\n return this.copy(src).scale(scalar);\r\n }\r\n\r\n});\r\n\r\n/**\r\n * A static zero Vector2 for use by reference.\r\n *\r\n * This constant is meant for comparison operations and should not be modified directly.\r\n *\r\n * @constant\r\n * @name Phaser.Math.Vector2.ZERO\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.1.0\r\n */\r\nVector2.ZERO = new Vector2();\r\n\r\n/**\r\n * A static right Vector2 for use by reference.\r\n *\r\n * This constant is meant for comparison operations and should not be modified directly.\r\n *\r\n * @constant\r\n * @name Phaser.Math.Vector2.RIGHT\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.16.0\r\n */\r\nVector2.RIGHT = new Vector2(1, 0);\r\n\r\n/**\r\n * A static left Vector2 for use by reference.\r\n *\r\n * This constant is meant for comparison operations and should not be modified directly.\r\n *\r\n * @constant\r\n * @name Phaser.Math.Vector2.LEFT\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.16.0\r\n */\r\nVector2.LEFT = new Vector2(-1, 0);\r\n\r\n/**\r\n * A static up Vector2 for use by reference.\r\n *\r\n * This constant is meant for comparison operations and should not be modified directly.\r\n *\r\n * @constant\r\n * @name Phaser.Math.Vector2.UP\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.16.0\r\n */\r\nVector2.UP = new Vector2(0, -1);\r\n\r\n/**\r\n * A static down Vector2 for use by reference.\r\n *\r\n * This constant is meant for comparison operations and should not be modified directly.\r\n *\r\n * @constant\r\n * @name Phaser.Math.Vector2.DOWN\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.16.0\r\n */\r\nVector2.DOWN = new Vector2(0, 1);\r\n\r\n/**\r\n * A static one Vector2 for use by reference.\r\n *\r\n * This constant is meant for comparison operations and should not be modified directly.\r\n *\r\n * @constant\r\n * @name Phaser.Math.Vector2.ONE\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.16.0\r\n */\r\nVector2.ONE = new Vector2(1, 1);\r\n\r\nmodule.exports = Vector2;\r\n\n\n/***/ }),\n\n/***/ 25836:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// Adapted from [gl-matrix](https://github.com/toji/gl-matrix) by toji\r\n// and [vecmath](https://github.com/mattdesl/vecmath) by mattdesl\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n/**\r\n * @classdesc\r\n * A representation of a vector in 3D space.\r\n *\r\n * A three-component vector.\r\n *\r\n * @class Vector3\r\n * @memberof Phaser.Math\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x] - The x component.\r\n * @param {number} [y] - The y component.\r\n * @param {number} [z] - The z component.\r\n */\r\nvar Vector3 = new Class({\r\n\r\n initialize:\r\n\r\n function Vector3 (x, y, z)\r\n {\r\n /**\r\n * The x component of this Vector.\r\n *\r\n * @name Phaser.Math.Vector3#x\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.x = 0;\r\n\r\n /**\r\n * The y component of this Vector.\r\n *\r\n * @name Phaser.Math.Vector3#y\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.y = 0;\r\n\r\n /**\r\n * The z component of this Vector.\r\n *\r\n * @name Phaser.Math.Vector3#z\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.z = 0;\r\n\r\n if (typeof x === 'object')\r\n {\r\n this.x = x.x || 0;\r\n this.y = x.y || 0;\r\n this.z = x.z || 0;\r\n }\r\n else\r\n {\r\n this.x = x || 0;\r\n this.y = y || 0;\r\n this.z = z || 0;\r\n }\r\n },\r\n\r\n /**\r\n * Set this Vector to point up.\r\n *\r\n * Sets the y component of the vector to 1, and the others to 0.\r\n *\r\n * @method Phaser.Math.Vector3#up\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n up: function ()\r\n {\r\n this.x = 0;\r\n this.y = 1;\r\n this.z = 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the components of this Vector to be the `Math.min` result from the given vector.\r\n *\r\n * @method Phaser.Math.Vector3#min\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Math.Vector3} v - The Vector3 to check the minimum values against.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n min: function (v)\r\n {\r\n this.x = Math.min(this.x, v.x);\r\n this.y = Math.min(this.y, v.y);\r\n this.z = Math.min(this.z, v.z);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the components of this Vector to be the `Math.max` result from the given vector.\r\n *\r\n * @method Phaser.Math.Vector3#max\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Math.Vector3} v - The Vector3 to check the maximum values against.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n max: function (v)\r\n {\r\n this.x = Math.max(this.x, v.x);\r\n this.y = Math.max(this.y, v.y);\r\n this.z = Math.max(this.z, v.z);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Make a clone of this Vector3.\r\n *\r\n * @method Phaser.Math.Vector3#clone\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Vector3} A new Vector3 object containing this Vectors values.\r\n */\r\n clone: function ()\r\n {\r\n return new Vector3(this.x, this.y, this.z);\r\n },\r\n\r\n /**\r\n * Adds the two given Vector3s and sets the results into this Vector3.\r\n *\r\n * @method Phaser.Math.Vector3#addVectors\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Math.Vector3} a - The first Vector to add.\r\n * @param {Phaser.Math.Vector3} b - The second Vector to add.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n addVectors: function (a, b)\r\n {\r\n this.x = a.x + b.x;\r\n this.y = a.y + b.y;\r\n this.z = a.z + b.z;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Subtracts the two given Vector3s and sets the results into this Vector3.\r\n *\r\n * @method Phaser.Math.Vector3#subVectors\r\n * @since 3.85.0\r\n *\r\n * @param {Phaser.Math.Vector3} a - The first Vector to sub.\r\n * @param {Phaser.Math.Vector3} b - The second Vector to sub.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n subVectors: function (a, b)\r\n {\r\n this.x = a.x - b.x;\r\n this.y = a.y - b.y;\r\n this.z = a.z - b.z;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calculate the cross (vector) product of two given Vectors.\r\n *\r\n * @method Phaser.Math.Vector3#crossVectors\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector3} a - The first Vector to multiply.\r\n * @param {Phaser.Math.Vector3} b - The second Vector to multiply.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n crossVectors: function (a, b)\r\n {\r\n var ax = a.x;\r\n var ay = a.y;\r\n var az = a.z;\r\n var bx = b.x;\r\n var by = b.y;\r\n var bz = b.z;\r\n\r\n this.x = ay * bz - az * by;\r\n this.y = az * bx - ax * bz;\r\n this.z = ax * by - ay * bx;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Check whether this Vector is equal to a given Vector.\r\n *\r\n * Performs a strict equality check against each Vector's components.\r\n *\r\n * @method Phaser.Math.Vector3#equals\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector3} v - The Vector3 to compare against.\r\n *\r\n * @return {boolean} True if the two vectors strictly match, otherwise false.\r\n */\r\n equals: function (v)\r\n {\r\n return ((this.x === v.x) && (this.y === v.y) && (this.z === v.z));\r\n },\r\n\r\n /**\r\n * Copy the components of a given Vector into this Vector.\r\n *\r\n * @method Phaser.Math.Vector3#copy\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} src - The Vector to copy the components from.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n copy: function (src)\r\n {\r\n this.x = src.x;\r\n this.y = src.y;\r\n this.z = src.z || 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the `x`, `y`, and `z` components of this Vector to the given `x`, `y`, and `z` values.\r\n *\r\n * @method Phaser.Math.Vector3#set\r\n * @since 3.0.0\r\n *\r\n * @param {(number|object)} x - The x value to set for this Vector, or an object containing x, y and z components.\r\n * @param {number} [y] - The y value to set for this Vector.\r\n * @param {number} [z] - The z value to set for this Vector.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n set: function (x, y, z)\r\n {\r\n if (typeof x === 'object')\r\n {\r\n this.x = x.x || 0;\r\n this.y = x.y || 0;\r\n this.z = x.z || 0;\r\n }\r\n else\r\n {\r\n this.x = x || 0;\r\n this.y = y || 0;\r\n this.z = z || 0;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the components of this Vector3 from the position of the given Matrix4.\r\n *\r\n * @method Phaser.Math.Vector3#setFromMatrixPosition\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Math.Matrix4} mat4 - The Matrix4 to get the position from.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n setFromMatrixPosition: function (m)\r\n {\r\n return this.fromArray(m.val, 12);\r\n },\r\n\r\n /**\r\n * Sets the components of this Vector3 from the Matrix4 column specified.\r\n *\r\n * @method Phaser.Math.Vector3#setFromMatrixColumn\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Math.Matrix4} mat4 - The Matrix4 to get the column from.\r\n * @param {number} index - The column index.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n setFromMatrixColumn: function (mat4, index)\r\n {\r\n return this.fromArray(mat4.val, index * 4);\r\n },\r\n\r\n /**\r\n * Sets the components of this Vector3 from the given array, based on the offset.\r\n *\r\n * Vector3.x = array[offset]\r\n * Vector3.y = array[offset + 1]\r\n * Vector3.z = array[offset + 2]\r\n *\r\n * @method Phaser.Math.Vector3#fromArray\r\n * @since 3.50.0\r\n *\r\n * @param {number[]} array - The array of values to get this Vector from.\r\n * @param {number} [offset=0] - The offset index into the array.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n fromArray: function (array, offset)\r\n {\r\n if (offset === undefined) { offset = 0; }\r\n\r\n this.x = array[offset];\r\n this.y = array[offset + 1];\r\n this.z = array[offset + 2];\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Add a given Vector to this Vector. Addition is component-wise.\r\n *\r\n * @method Phaser.Math.Vector3#add\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} v - The Vector to add to this Vector.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n add: function (v)\r\n {\r\n this.x += v.x;\r\n this.y += v.y;\r\n this.z += v.z || 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Add the given value to each component of this Vector.\r\n *\r\n * @method Phaser.Math.Vector3#addScalar\r\n * @since 3.50.0\r\n *\r\n * @param {number} s - The amount to add to this Vector.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n addScalar: function (s)\r\n {\r\n this.x += s;\r\n this.y += s;\r\n this.z += s;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Add and scale a given Vector to this Vector. Addition is component-wise.\r\n *\r\n * @method Phaser.Math.Vector3#addScale\r\n * @since 3.50.0\r\n *\r\n * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} v - The Vector to add to this Vector.\r\n * @param {number} scale - The amount to scale `v` by.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n addScale: function (v, scale)\r\n {\r\n this.x += v.x * scale;\r\n this.y += v.y * scale;\r\n this.z += v.z * scale || 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Subtract the given Vector from this Vector. Subtraction is component-wise.\r\n *\r\n * @method Phaser.Math.Vector3#subtract\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} v - The Vector to subtract from this Vector.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n subtract: function (v)\r\n {\r\n this.x -= v.x;\r\n this.y -= v.y;\r\n this.z -= v.z || 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Perform a component-wise multiplication between this Vector and the given Vector.\r\n *\r\n * Multiplies this Vector by the given Vector.\r\n *\r\n * @method Phaser.Math.Vector3#multiply\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} v - The Vector to multiply this Vector by.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n multiply: function (v)\r\n {\r\n this.x *= v.x;\r\n this.y *= v.y;\r\n this.z *= v.z || 1;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Scale this Vector by the given value.\r\n *\r\n * @method Phaser.Math.Vector3#scale\r\n * @since 3.0.0\r\n *\r\n * @param {number} scale - The value to scale this Vector by.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n scale: function (scale)\r\n {\r\n if (isFinite(scale))\r\n {\r\n this.x *= scale;\r\n this.y *= scale;\r\n this.z *= scale;\r\n }\r\n else\r\n {\r\n this.x = 0;\r\n this.y = 0;\r\n this.z = 0;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Perform a component-wise division between this Vector and the given Vector.\r\n *\r\n * Divides this Vector by the given Vector.\r\n *\r\n * @method Phaser.Math.Vector3#divide\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} v - The Vector to divide this Vector by.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n divide: function (v)\r\n {\r\n this.x /= v.x;\r\n this.y /= v.y;\r\n this.z /= v.z || 1;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Negate the `x`, `y` and `z` components of this Vector.\r\n *\r\n * @method Phaser.Math.Vector3#negate\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n negate: function ()\r\n {\r\n this.x = -this.x;\r\n this.y = -this.y;\r\n this.z = -this.z;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calculate the distance between this Vector and the given Vector.\r\n *\r\n * @method Phaser.Math.Vector3#distance\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} v - The Vector to calculate the distance to.\r\n *\r\n * @return {number} The distance from this Vector to the given Vector.\r\n */\r\n distance: function (v)\r\n {\r\n var dx = v.x - this.x;\r\n var dy = v.y - this.y;\r\n var dz = v.z - this.z || 0;\r\n\r\n return Math.sqrt(dx * dx + dy * dy + dz * dz);\r\n },\r\n\r\n /**\r\n * Calculate the distance between this Vector and the given Vector, squared.\r\n *\r\n * @method Phaser.Math.Vector3#distanceSq\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3)} v - The Vector to calculate the distance to.\r\n *\r\n * @return {number} The distance from this Vector to the given Vector, squared.\r\n */\r\n distanceSq: function (v)\r\n {\r\n var dx = v.x - this.x;\r\n var dy = v.y - this.y;\r\n var dz = v.z - this.z || 0;\r\n\r\n return dx * dx + dy * dy + dz * dz;\r\n },\r\n\r\n /**\r\n * Calculate the length (or magnitude) of this Vector.\r\n *\r\n * @method Phaser.Math.Vector3#length\r\n * @since 3.0.0\r\n *\r\n * @return {number} The length of this Vector.\r\n */\r\n length: function ()\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n var z = this.z;\r\n\r\n return Math.sqrt(x * x + y * y + z * z);\r\n },\r\n\r\n /**\r\n * Calculate the length of this Vector squared.\r\n *\r\n * @method Phaser.Math.Vector3#lengthSq\r\n * @since 3.0.0\r\n *\r\n * @return {number} The length of this Vector, squared.\r\n */\r\n lengthSq: function ()\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n var z = this.z;\r\n\r\n return x * x + y * y + z * z;\r\n },\r\n\r\n /**\r\n * Normalize this Vector.\r\n *\r\n * Makes the vector a unit length vector (magnitude of 1) in the same direction.\r\n *\r\n * @method Phaser.Math.Vector3#normalize\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n normalize: function ()\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n var z = this.z;\r\n var len = x * x + y * y + z * z;\r\n\r\n if (len > 0)\r\n {\r\n len = 1 / Math.sqrt(len);\r\n\r\n this.x = x * len;\r\n this.y = y * len;\r\n this.z = z * len;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calculate the dot product of this Vector and the given Vector.\r\n *\r\n * @method Phaser.Math.Vector3#dot\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector3} v - The Vector3 to dot product with this Vector3.\r\n *\r\n * @return {number} The dot product of this Vector and `v`.\r\n */\r\n dot: function (v)\r\n {\r\n return this.x * v.x + this.y * v.y + this.z * v.z;\r\n },\r\n\r\n /**\r\n * Calculate the cross (vector) product of this Vector (which will be modified) and the given Vector.\r\n *\r\n * @method Phaser.Math.Vector3#cross\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector3} v - The Vector to cross product with.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n cross: function (v)\r\n {\r\n var ax = this.x;\r\n var ay = this.y;\r\n var az = this.z;\r\n var bx = v.x;\r\n var by = v.y;\r\n var bz = v.z;\r\n\r\n this.x = ay * bz - az * by;\r\n this.y = az * bx - ax * bz;\r\n this.z = ax * by - ay * bx;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Linearly interpolate between this Vector and the given Vector.\r\n *\r\n * Interpolates this Vector towards the given Vector.\r\n *\r\n * @method Phaser.Math.Vector3#lerp\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector3} v - The Vector3 to interpolate towards.\r\n * @param {number} [t=0] - The interpolation percentage, between 0 and 1.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n lerp: function (v, t)\r\n {\r\n if (t === undefined) { t = 0; }\r\n\r\n var ax = this.x;\r\n var ay = this.y;\r\n var az = this.z;\r\n\r\n this.x = ax + t * (v.x - ax);\r\n this.y = ay + t * (v.y - ay);\r\n this.z = az + t * (v.z - az);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes a Matrix3 and applies it to this Vector3.\r\n *\r\n * @method Phaser.Math.Vector3#applyMatrix3\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Math.Matrix3} mat3 - The Matrix3 to apply to this Vector3.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n applyMatrix3: function (mat3)\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n var z = this.z;\r\n var m = mat3.val;\r\n\r\n this.x = m[0] * x + m[3] * y + m[6] * z;\r\n this.y = m[1] * x + m[4] * y + m[7] * z;\r\n this.z = m[2] * x + m[5] * y + m[8] * z;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes a Matrix4 and applies it to this Vector3.\r\n *\r\n * @method Phaser.Math.Vector3#applyMatrix4\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Math.Matrix4} mat4 - The Matrix4 to apply to this Vector3.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n applyMatrix4: function (mat4)\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n var z = this.z;\r\n var m = mat4.val;\r\n\r\n var w = 1 / (m[3] * x + m[7] * y + m[11] * z + m[15]);\r\n\r\n this.x = (m[0] * x + m[4] * y + m[8] * z + m[12]) * w;\r\n this.y = (m[1] * x + m[5] * y + m[9] * z + m[13]) * w;\r\n this.z = (m[2] * x + m[6] * y + m[10] * z + m[14]) * w;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Transform this Vector with the given Matrix.\r\n *\r\n * @method Phaser.Math.Vector3#transformMat3\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Matrix3} mat - The Matrix3 to transform this Vector3 with.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n transformMat3: function (mat)\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n var z = this.z;\r\n var m = mat.val;\r\n\r\n this.x = x * m[0] + y * m[3] + z * m[6];\r\n this.y = x * m[1] + y * m[4] + z * m[7];\r\n this.z = x * m[2] + y * m[5] + z * m[8];\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Transform this Vector with the given Matrix4.\r\n *\r\n * @method Phaser.Math.Vector3#transformMat4\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Matrix4} mat - The Matrix4 to transform this Vector3 with.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n transformMat4: function (mat)\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n var z = this.z;\r\n var m = mat.val;\r\n\r\n this.x = m[0] * x + m[4] * y + m[8] * z + m[12];\r\n this.y = m[1] * x + m[5] * y + m[9] * z + m[13];\r\n this.z = m[2] * x + m[6] * y + m[10] * z + m[14];\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Transforms the coordinates of this Vector3 with the given Matrix4.\r\n *\r\n * @method Phaser.Math.Vector3#transformCoordinates\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Matrix4} mat - The Matrix4 to transform this Vector3 with.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n transformCoordinates: function (mat)\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n var z = this.z;\r\n var m = mat.val;\r\n\r\n var tx = (x * m[0]) + (y * m[4]) + (z * m[8]) + m[12];\r\n var ty = (x * m[1]) + (y * m[5]) + (z * m[9]) + m[13];\r\n var tz = (x * m[2]) + (y * m[6]) + (z * m[10]) + m[14];\r\n var tw = (x * m[3]) + (y * m[7]) + (z * m[11]) + m[15];\r\n\r\n this.x = tx / tw;\r\n this.y = ty / tw;\r\n this.z = tz / tw;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Transform this Vector with the given Quaternion.\r\n *\r\n * @method Phaser.Math.Vector3#transformQuat\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Quaternion} q - The Quaternion to transform this Vector with.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n transformQuat: function (q)\r\n {\r\n // benchmarks: http://jsperf.com/quaternion-transform-vec3-implementations\r\n var x = this.x;\r\n var y = this.y;\r\n var z = this.z;\r\n var qx = q.x;\r\n var qy = q.y;\r\n var qz = q.z;\r\n var qw = q.w;\r\n\r\n // calculate quat * vec\r\n var ix = qw * x + qy * z - qz * y;\r\n var iy = qw * y + qz * x - qx * z;\r\n var iz = qw * z + qx * y - qy * x;\r\n var iw = -qx * x - qy * y - qz * z;\r\n\r\n // calculate result * inverse quat\r\n this.x = ix * qw + iw * -qx + iy * -qz - iz * -qy;\r\n this.y = iy * qw + iw * -qy + iz * -qx - ix * -qz;\r\n this.z = iz * qw + iw * -qz + ix * -qy - iy * -qx;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Multiplies this Vector3 by the specified matrix, applying a W divide. This is useful for projection,\r\n * e.g. unprojecting a 2D point into 3D space.\r\n *\r\n * @method Phaser.Math.Vector3#project\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Matrix4} mat - The Matrix4 to multiply this Vector3 with.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n project: function (mat)\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n var z = this.z;\r\n var m = mat.val;\r\n\r\n var a00 = m[0];\r\n var a01 = m[1];\r\n var a02 = m[2];\r\n var a03 = m[3];\r\n var a10 = m[4];\r\n var a11 = m[5];\r\n var a12 = m[6];\r\n var a13 = m[7];\r\n var a20 = m[8];\r\n var a21 = m[9];\r\n var a22 = m[10];\r\n var a23 = m[11];\r\n var a30 = m[12];\r\n var a31 = m[13];\r\n var a32 = m[14];\r\n var a33 = m[15];\r\n\r\n var lw = 1 / (x * a03 + y * a13 + z * a23 + a33);\r\n\r\n this.x = (x * a00 + y * a10 + z * a20 + a30) * lw;\r\n this.y = (x * a01 + y * a11 + z * a21 + a31) * lw;\r\n this.z = (x * a02 + y * a12 + z * a22 + a32) * lw;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Multiplies this Vector3 by the given view and projection matrices.\r\n *\r\n * @method Phaser.Math.Vector3#projectViewMatrix\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Math.Matrix4} viewMatrix - A View Matrix.\r\n * @param {Phaser.Math.Matrix4} projectionMatrix - A Projection Matrix.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n projectViewMatrix: function (viewMatrix, projectionMatrix)\r\n {\r\n return this.applyMatrix4(viewMatrix).applyMatrix4(projectionMatrix);\r\n },\r\n\r\n /**\r\n * Multiplies this Vector3 by the given inversed projection matrix and world matrix.\r\n *\r\n * @method Phaser.Math.Vector3#unprojectViewMatrix\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Math.Matrix4} projectionMatrix - An inversed Projection Matrix.\r\n * @param {Phaser.Math.Matrix4} worldMatrix - A World View Matrix.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n unprojectViewMatrix: function (projectionMatrix, worldMatrix)\r\n {\r\n return this.applyMatrix4(projectionMatrix).applyMatrix4(worldMatrix);\r\n },\r\n\r\n /**\r\n * Unproject this point from 2D space to 3D space.\r\n * The point should have its x and y properties set to\r\n * 2D screen space, and the z either at 0 (near plane)\r\n * or 1 (far plane). The provided matrix is assumed to already\r\n * be combined, i.e. projection * view * model.\r\n *\r\n * After this operation, this vector's (x, y, z) components will\r\n * represent the unprojected 3D coordinate.\r\n *\r\n * @method Phaser.Math.Vector3#unproject\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector4} viewport - Screen x, y, width and height in pixels.\r\n * @param {Phaser.Math.Matrix4} invProjectionView - Combined projection and view matrix.\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n unproject: function (viewport, invProjectionView)\r\n {\r\n var viewX = viewport.x;\r\n var viewY = viewport.y;\r\n var viewWidth = viewport.z;\r\n var viewHeight = viewport.w;\r\n\r\n var x = this.x - viewX;\r\n var y = (viewHeight - this.y - 1) - viewY;\r\n var z = this.z;\r\n\r\n this.x = (2 * x) / viewWidth - 1;\r\n this.y = (2 * y) / viewHeight - 1;\r\n this.z = 2 * z - 1;\r\n\r\n return this.project(invProjectionView);\r\n },\r\n\r\n /**\r\n * Make this Vector the zero vector (0, 0, 0).\r\n *\r\n * @method Phaser.Math.Vector3#reset\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Vector3} This Vector3.\r\n */\r\n reset: function ()\r\n {\r\n this.x = 0;\r\n this.y = 0;\r\n this.z = 0;\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\n/**\r\n * A static zero Vector3 for use by reference.\r\n *\r\n * This constant is meant for comparison operations and should not be modified directly.\r\n *\r\n * @constant\r\n * @name Phaser.Math.Vector3.ZERO\r\n * @type {Phaser.Math.Vector3}\r\n * @since 3.16.0\r\n */\r\nVector3.ZERO = new Vector3();\r\n\r\n/**\r\n * A static right Vector3 for use by reference.\r\n *\r\n * This constant is meant for comparison operations and should not be modified directly.\r\n *\r\n * @constant\r\n * @name Phaser.Math.Vector3.RIGHT\r\n * @type {Phaser.Math.Vector3}\r\n * @since 3.16.0\r\n */\r\nVector3.RIGHT = new Vector3(1, 0, 0);\r\n\r\n/**\r\n * A static left Vector3 for use by reference.\r\n *\r\n * This constant is meant for comparison operations and should not be modified directly.\r\n *\r\n * @constant\r\n * @name Phaser.Math.Vector3.LEFT\r\n * @type {Phaser.Math.Vector3}\r\n * @since 3.16.0\r\n */\r\nVector3.LEFT = new Vector3(-1, 0, 0);\r\n\r\n/**\r\n * A static up Vector3 for use by reference.\r\n *\r\n * This constant is meant for comparison operations and should not be modified directly.\r\n *\r\n * @constant\r\n * @name Phaser.Math.Vector3.UP\r\n * @type {Phaser.Math.Vector3}\r\n * @since 3.16.0\r\n */\r\nVector3.UP = new Vector3(0, -1, 0);\r\n\r\n/**\r\n * A static down Vector3 for use by reference.\r\n *\r\n * This constant is meant for comparison operations and should not be modified directly.\r\n *\r\n * @constant\r\n * @name Phaser.Math.Vector3.DOWN\r\n * @type {Phaser.Math.Vector3}\r\n * @since 3.16.0\r\n */\r\nVector3.DOWN = new Vector3(0, 1, 0);\r\n\r\n/**\r\n * A static forward Vector3 for use by reference.\r\n *\r\n * This constant is meant for comparison operations and should not be modified directly.\r\n *\r\n * @constant\r\n * @name Phaser.Math.Vector3.FORWARD\r\n * @type {Phaser.Math.Vector3}\r\n * @since 3.16.0\r\n */\r\nVector3.FORWARD = new Vector3(0, 0, 1);\r\n\r\n/**\r\n * A static back Vector3 for use by reference.\r\n *\r\n * This constant is meant for comparison operations and should not be modified directly.\r\n *\r\n * @constant\r\n * @name Phaser.Math.Vector3.BACK\r\n * @type {Phaser.Math.Vector3}\r\n * @since 3.16.0\r\n */\r\nVector3.BACK = new Vector3(0, 0, -1);\r\n\r\n/**\r\n * A static one Vector3 for use by reference.\r\n *\r\n * This constant is meant for comparison operations and should not be modified directly.\r\n *\r\n * @constant\r\n * @name Phaser.Math.Vector3.ONE\r\n * @type {Phaser.Math.Vector3}\r\n * @since 3.16.0\r\n */\r\nVector3.ONE = new Vector3(1, 1, 1);\r\n\r\nmodule.exports = Vector3;\r\n\n\n/***/ }),\n\n/***/ 61369:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// Adapted from [gl-matrix](https://github.com/toji/gl-matrix) by toji\r\n// and [vecmath](https://github.com/mattdesl/vecmath) by mattdesl\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n/**\r\n * @classdesc\r\n * A representation of a vector in 4D space.\r\n *\r\n * A four-component vector.\r\n *\r\n * @class Vector4\r\n * @memberof Phaser.Math\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x] - The x component.\r\n * @param {number} [y] - The y component.\r\n * @param {number} [z] - The z component.\r\n * @param {number} [w] - The w component.\r\n */\r\nvar Vector4 = new Class({\r\n\r\n initialize:\r\n\r\n function Vector4 (x, y, z, w)\r\n {\r\n /**\r\n * The x component of this Vector.\r\n *\r\n * @name Phaser.Math.Vector4#x\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.x = 0;\r\n\r\n /**\r\n * The y component of this Vector.\r\n *\r\n * @name Phaser.Math.Vector4#y\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.y = 0;\r\n\r\n /**\r\n * The z component of this Vector.\r\n *\r\n * @name Phaser.Math.Vector4#z\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.z = 0;\r\n\r\n /**\r\n * The w component of this Vector.\r\n *\r\n * @name Phaser.Math.Vector4#w\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.w = 0;\r\n\r\n if (typeof x === 'object')\r\n {\r\n this.x = x.x || 0;\r\n this.y = x.y || 0;\r\n this.z = x.z || 0;\r\n this.w = x.w || 0;\r\n }\r\n else\r\n {\r\n this.x = x || 0;\r\n this.y = y || 0;\r\n this.z = z || 0;\r\n this.w = w || 0;\r\n }\r\n },\r\n\r\n /**\r\n * Make a clone of this Vector4.\r\n *\r\n * @method Phaser.Math.Vector4#clone\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Vector4} A clone of this Vector4.\r\n */\r\n clone: function ()\r\n {\r\n return new Vector4(this.x, this.y, this.z, this.w);\r\n },\r\n\r\n /**\r\n * Copy the components of a given Vector into this Vector.\r\n *\r\n * @method Phaser.Math.Vector4#copy\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector4} src - The Vector to copy the components from.\r\n *\r\n * @return {Phaser.Math.Vector4} This Vector4.\r\n */\r\n copy: function (src)\r\n {\r\n this.x = src.x;\r\n this.y = src.y;\r\n this.z = src.z || 0;\r\n this.w = src.w || 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Check whether this Vector is equal to a given Vector.\r\n *\r\n * Performs a strict quality check against each Vector's components.\r\n *\r\n * @method Phaser.Math.Vector4#equals\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector4} v - The vector to check equality with.\r\n *\r\n * @return {boolean} A boolean indicating whether the two Vectors are equal or not.\r\n */\r\n equals: function (v)\r\n {\r\n return ((this.x === v.x) && (this.y === v.y) && (this.z === v.z) && (this.w === v.w));\r\n },\r\n\r\n /**\r\n * Set the `x`, `y`, `z` and `w` components of the this Vector to the given `x`, `y`, `z` and `w` values.\r\n *\r\n * @method Phaser.Math.Vector4#set\r\n * @since 3.0.0\r\n *\r\n * @param {(number|object)} x - The x value to set for this Vector, or an object containing x, y, z and w components.\r\n * @param {number} y - The y value to set for this Vector.\r\n * @param {number} z - The z value to set for this Vector.\r\n * @param {number} w - The z value to set for this Vector.\r\n *\r\n * @return {Phaser.Math.Vector4} This Vector4.\r\n */\r\n set: function (x, y, z, w)\r\n {\r\n if (typeof x === 'object')\r\n {\r\n this.x = x.x || 0;\r\n this.y = x.y || 0;\r\n this.z = x.z || 0;\r\n this.w = x.w || 0;\r\n }\r\n else\r\n {\r\n this.x = x || 0;\r\n this.y = y || 0;\r\n this.z = z || 0;\r\n this.w = w || 0;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Add a given Vector to this Vector. Addition is component-wise.\r\n *\r\n * @method Phaser.Math.Vector4#add\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - The Vector to add to this Vector.\r\n *\r\n * @return {Phaser.Math.Vector4} This Vector4.\r\n */\r\n add: function (v)\r\n {\r\n this.x += v.x;\r\n this.y += v.y;\r\n this.z += v.z || 0;\r\n this.w += v.w || 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Subtract the given Vector from this Vector. Subtraction is component-wise.\r\n *\r\n * @method Phaser.Math.Vector4#subtract\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - The Vector to subtract from this Vector.\r\n *\r\n * @return {Phaser.Math.Vector4} This Vector4.\r\n */\r\n subtract: function (v)\r\n {\r\n this.x -= v.x;\r\n this.y -= v.y;\r\n this.z -= v.z || 0;\r\n this.w -= v.w || 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Scale this Vector by the given value.\r\n *\r\n * @method Phaser.Math.Vector4#scale\r\n * @since 3.0.0\r\n *\r\n * @param {number} scale - The value to scale this Vector by.\r\n *\r\n * @return {Phaser.Math.Vector4} This Vector4.\r\n */\r\n scale: function (scale)\r\n {\r\n this.x *= scale;\r\n this.y *= scale;\r\n this.z *= scale;\r\n this.w *= scale;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calculate the length (or magnitude) of this Vector.\r\n *\r\n * @method Phaser.Math.Vector4#length\r\n * @since 3.0.0\r\n *\r\n * @return {number} The length of this Vector.\r\n */\r\n length: function ()\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n var z = this.z;\r\n var w = this.w;\r\n\r\n return Math.sqrt(x * x + y * y + z * z + w * w);\r\n },\r\n\r\n /**\r\n * Calculate the length of this Vector squared.\r\n *\r\n * @method Phaser.Math.Vector4#lengthSq\r\n * @since 3.0.0\r\n *\r\n * @return {number} The length of this Vector, squared.\r\n */\r\n lengthSq: function ()\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n var z = this.z;\r\n var w = this.w;\r\n\r\n return x * x + y * y + z * z + w * w;\r\n },\r\n\r\n /**\r\n * Normalize this Vector.\r\n *\r\n * Makes the vector a unit length vector (magnitude of 1) in the same direction.\r\n *\r\n * @method Phaser.Math.Vector4#normalize\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Vector4} This Vector4.\r\n */\r\n normalize: function ()\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n var z = this.z;\r\n var w = this.w;\r\n var len = x * x + y * y + z * z + w * w;\r\n\r\n if (len > 0)\r\n {\r\n len = 1 / Math.sqrt(len);\r\n\r\n this.x = x * len;\r\n this.y = y * len;\r\n this.z = z * len;\r\n this.w = w * len;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calculate the dot product of this Vector and the given Vector.\r\n *\r\n * @method Phaser.Math.Vector4#dot\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector4} v - The Vector4 to dot product with this Vector4.\r\n *\r\n * @return {number} The dot product of this Vector and the given Vector.\r\n */\r\n dot: function (v)\r\n {\r\n return this.x * v.x + this.y * v.y + this.z * v.z + this.w * v.w;\r\n },\r\n\r\n /**\r\n * Linearly interpolate between this Vector and the given Vector.\r\n *\r\n * Interpolates this Vector towards the given Vector.\r\n *\r\n * @method Phaser.Math.Vector4#lerp\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector4} v - The Vector4 to interpolate towards.\r\n * @param {number} [t=0] - The interpolation percentage, between 0 and 1.\r\n *\r\n * @return {Phaser.Math.Vector4} This Vector4.\r\n */\r\n lerp: function (v, t)\r\n {\r\n if (t === undefined) { t = 0; }\r\n\r\n var ax = this.x;\r\n var ay = this.y;\r\n var az = this.z;\r\n var aw = this.w;\r\n\r\n this.x = ax + t * (v.x - ax);\r\n this.y = ay + t * (v.y - ay);\r\n this.z = az + t * (v.z - az);\r\n this.w = aw + t * (v.w - aw);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Perform a component-wise multiplication between this Vector and the given Vector.\r\n *\r\n * Multiplies this Vector by the given Vector.\r\n *\r\n * @method Phaser.Math.Vector4#multiply\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - The Vector to multiply this Vector by.\r\n *\r\n * @return {Phaser.Math.Vector4} This Vector4.\r\n */\r\n multiply: function (v)\r\n {\r\n this.x *= v.x;\r\n this.y *= v.y;\r\n this.z *= v.z || 1;\r\n this.w *= v.w || 1;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Perform a component-wise division between this Vector and the given Vector.\r\n *\r\n * Divides this Vector by the given Vector.\r\n *\r\n * @method Phaser.Math.Vector4#divide\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - The Vector to divide this Vector by.\r\n *\r\n * @return {Phaser.Math.Vector4} This Vector4.\r\n */\r\n divide: function (v)\r\n {\r\n this.x /= v.x;\r\n this.y /= v.y;\r\n this.z /= v.z || 1;\r\n this.w /= v.w || 1;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calculate the distance between this Vector and the given Vector.\r\n *\r\n * @method Phaser.Math.Vector4#distance\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - The Vector to calculate the distance to.\r\n *\r\n * @return {number} The distance from this Vector to the given Vector.\r\n */\r\n distance: function (v)\r\n {\r\n var dx = v.x - this.x;\r\n var dy = v.y - this.y;\r\n var dz = v.z - this.z || 0;\r\n var dw = v.w - this.w || 0;\r\n\r\n return Math.sqrt(dx * dx + dy * dy + dz * dz + dw * dw);\r\n },\r\n\r\n /**\r\n * Calculate the distance between this Vector and the given Vector, squared.\r\n *\r\n * @method Phaser.Math.Vector4#distanceSq\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Math.Vector2|Phaser.Math.Vector3|Phaser.Math.Vector4)} v - The Vector to calculate the distance to.\r\n *\r\n * @return {number} The distance from this Vector to the given Vector, squared.\r\n */\r\n distanceSq: function (v)\r\n {\r\n var dx = v.x - this.x;\r\n var dy = v.y - this.y;\r\n var dz = v.z - this.z || 0;\r\n var dw = v.w - this.w || 0;\r\n\r\n return dx * dx + dy * dy + dz * dz + dw * dw;\r\n },\r\n\r\n /**\r\n * Negate the `x`, `y`, `z` and `w` components of this Vector.\r\n *\r\n * @method Phaser.Math.Vector4#negate\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Vector4} This Vector4.\r\n */\r\n negate: function ()\r\n {\r\n this.x = -this.x;\r\n this.y = -this.y;\r\n this.z = -this.z;\r\n this.w = -this.w;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Transform this Vector with the given Matrix.\r\n *\r\n * @method Phaser.Math.Vector4#transformMat4\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Matrix4} mat - The Matrix4 to transform this Vector4 with.\r\n *\r\n * @return {Phaser.Math.Vector4} This Vector4.\r\n */\r\n transformMat4: function (mat)\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n var z = this.z;\r\n var w = this.w;\r\n var m = mat.val;\r\n\r\n this.x = m[0] * x + m[4] * y + m[8] * z + m[12] * w;\r\n this.y = m[1] * x + m[5] * y + m[9] * z + m[13] * w;\r\n this.z = m[2] * x + m[6] * y + m[10] * z + m[14] * w;\r\n this.w = m[3] * x + m[7] * y + m[11] * z + m[15] * w;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Transform this Vector with the given Quaternion.\r\n *\r\n * @method Phaser.Math.Vector4#transformQuat\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Quaternion} q - The Quaternion to transform this Vector with.\r\n *\r\n * @return {Phaser.Math.Vector4} This Vector4.\r\n */\r\n transformQuat: function (q)\r\n {\r\n var x = this.x;\r\n var y = this.y;\r\n var z = this.z;\r\n var qx = q.x;\r\n var qy = q.y;\r\n var qz = q.z;\r\n var qw = q.w;\r\n\r\n // calculate quat * vec\r\n var ix = qw * x + qy * z - qz * y;\r\n var iy = qw * y + qz * x - qx * z;\r\n var iz = qw * z + qx * y - qy * x;\r\n var iw = -qx * x - qy * y - qz * z;\r\n\r\n // calculate result * inverse quat\r\n this.x = ix * qw + iw * -qx + iy * -qz - iz * -qy;\r\n this.y = iy * qw + iw * -qy + iz * -qx - ix * -qz;\r\n this.z = iz * qw + iw * -qz + ix * -qy - iy * -qx;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Make this Vector the zero vector (0, 0, 0, 0).\r\n *\r\n * @method Phaser.Math.Vector4#reset\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Math.Vector4} This Vector4.\r\n */\r\n reset: function ()\r\n {\r\n this.x = 0;\r\n this.y = 0;\r\n this.z = 0;\r\n this.w = 0;\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nVector4.prototype.sub = Vector4.prototype.subtract;\r\nVector4.prototype.mul = Vector4.prototype.multiply;\r\nVector4.prototype.div = Vector4.prototype.divide;\r\nVector4.prototype.dist = Vector4.prototype.distance;\r\nVector4.prototype.distSq = Vector4.prototype.distanceSq;\r\nVector4.prototype.len = Vector4.prototype.length;\r\nVector4.prototype.lenSq = Vector4.prototype.lengthSq;\r\n\r\nmodule.exports = Vector4;\r\n\n\n/***/ }),\n\n/***/ 60417:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Checks if the two values are within the given `tolerance` of each other.\r\n *\r\n * @function Phaser.Math.Within\r\n * @since 3.0.0\r\n *\r\n * @param {number} a - The first value to use in the calculation.\r\n * @param {number} b - The second value to use in the calculation.\r\n * @param {number} tolerance - The tolerance. Anything equal to or less than this value is considered as being within range.\r\n *\r\n * @return {boolean} Returns `true` if `a` is less than or equal to the tolerance of `b`.\r\n */\r\nvar Within = function (a, b, tolerance)\r\n{\r\n return (Math.abs(a - b) <= tolerance);\r\n};\r\n\r\nmodule.exports = Within;\r\n\n\n/***/ }),\n\n/***/ 15994:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Wrap the given `value` between `min` and `max`.\r\n *\r\n * @function Phaser.Math.Wrap\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The value to wrap.\r\n * @param {number} min - The minimum value.\r\n * @param {number} max - The maximum value.\r\n *\r\n * @return {number} The wrapped value.\r\n */\r\nvar Wrap = function (value, min, max)\r\n{\r\n var range = max - min;\r\n\r\n return (min + ((((value - min) % range) + range) % range));\r\n};\r\n\r\nmodule.exports = Wrap;\r\n\n\n/***/ }),\n\n/***/ 31040:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Find the angle of a segment from (x1, y1) -> (x2, y2).\r\n *\r\n * @function Phaser.Math.Angle.Between\r\n * @since 3.0.0\r\n *\r\n * @param {number} x1 - The x coordinate of the first point.\r\n * @param {number} y1 - The y coordinate of the first point.\r\n * @param {number} x2 - The x coordinate of the second point.\r\n * @param {number} y2 - The y coordinate of the second point.\r\n *\r\n * @return {number} The angle in radians.\r\n */\r\nvar Between = function (x1, y1, x2, y2)\r\n{\r\n return Math.atan2(y2 - y1, x2 - x1);\r\n};\r\n\r\nmodule.exports = Between;\r\n\n\n/***/ }),\n\n/***/ 55495:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Find the angle of a segment from (point1.x, point1.y) -> (point2.x, point2.y).\r\n *\r\n * Calculates the angle of the vector from the first point to the second point.\r\n *\r\n * @function Phaser.Math.Angle.BetweenPoints\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} point1 - The first point.\r\n * @param {Phaser.Types.Math.Vector2Like} point2 - The second point.\r\n *\r\n * @return {number} The angle in radians.\r\n */\r\nvar BetweenPoints = function (point1, point2)\r\n{\r\n return Math.atan2(point2.y - point1.y, point2.x - point1.x);\r\n};\r\n\r\nmodule.exports = BetweenPoints;\r\n\n\n/***/ }),\n\n/***/ 128:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Find the angle of a segment from (point1.x, point1.y) -> (point2.x, point2.y).\r\n *\r\n * The difference between this method and {@link Phaser.Math.Angle.BetweenPoints} is that this assumes the y coordinate\r\n * travels down the screen.\r\n *\r\n * @function Phaser.Math.Angle.BetweenPointsY\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} point1 - The first point.\r\n * @param {Phaser.Types.Math.Vector2Like} point2 - The second point.\r\n *\r\n * @return {number} The angle in radians.\r\n */\r\nvar BetweenPointsY = function (point1, point2)\r\n{\r\n return Math.atan2(point2.x - point1.x, point2.y - point1.y);\r\n};\r\n\r\nmodule.exports = BetweenPointsY;\r\n\n\n/***/ }),\n\n/***/ 41273:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Find the angle of a segment from (x1, y1) -> (x2, y2).\r\n *\r\n * The difference between this method and {@link Phaser.Math.Angle.Between} is that this assumes the y coordinate\r\n * travels down the screen.\r\n *\r\n * @function Phaser.Math.Angle.BetweenY\r\n * @since 3.0.0\r\n *\r\n * @param {number} x1 - The x coordinate of the first point.\r\n * @param {number} y1 - The y coordinate of the first point.\r\n * @param {number} x2 - The x coordinate of the second point.\r\n * @param {number} y2 - The y coordinate of the second point.\r\n *\r\n * @return {number} The angle in radians.\r\n */\r\nvar BetweenY = function (x1, y1, x2, y2)\r\n{\r\n return Math.atan2(x2 - x1, y2 - y1);\r\n};\r\n\r\nmodule.exports = BetweenY;\r\n\n\n/***/ }),\n\n/***/ 1432:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(36383);\r\n\r\n/**\r\n * Takes an angle in Phasers default clockwise format and converts it so that\r\n * 0 is North, 90 is West, 180 is South and 270 is East,\r\n * therefore running counter-clockwise instead of clockwise.\r\n * \r\n * You can pass in the angle from a Game Object using:\r\n * \r\n * ```javascript\r\n * var converted = CounterClockwise(gameobject.rotation);\r\n * ```\r\n * \r\n * All values for this function are in radians.\r\n *\r\n * @function Phaser.Math.Angle.CounterClockwise\r\n * @since 3.16.0\r\n *\r\n * @param {number} angle - The angle to convert, in radians.\r\n *\r\n * @return {number} The converted angle, in radians.\r\n */\r\nvar CounterClockwise = function (angle)\r\n{\r\n if (angle > Math.PI)\r\n {\r\n angle -= CONST.PI2;\r\n }\r\n\r\n return Math.abs((((angle + CONST.TAU) % CONST.PI2) - CONST.PI2) % CONST.PI2);\r\n};\r\n\r\nmodule.exports = CounterClockwise;\r\n\n\n/***/ }),\n\n/***/ 12407:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Normalize an angle to the [0, 2pi] range.\r\n *\r\n * @function Phaser.Math.Angle.Normalize\r\n * @since 3.0.0\r\n *\r\n * @param {number} angle - The angle to normalize, in radians.\r\n *\r\n * @return {number} The normalized angle, in radians.\r\n */\r\nvar Normalize = function (angle)\r\n{\r\n angle = angle % (2 * Math.PI);\r\n\r\n if (angle >= 0)\r\n {\r\n return angle;\r\n }\r\n else\r\n {\r\n return angle + 2 * Math.PI;\r\n }\r\n};\r\n\r\nmodule.exports = Normalize;\r\n\n\n/***/ }),\n\n/***/ 53993:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author @samme\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar FloatBetween = __webpack_require__(99472);\r\n\r\n/**\r\n * Returns a random angle in the range [-pi, pi].\r\n *\r\n * @function Phaser.Math.Angle.Random\r\n * @since 3.23.0\r\n *\r\n * @return {number} The angle, in radians.\r\n */\r\nvar Random = function ()\r\n{\r\n return FloatBetween(-Math.PI, Math.PI);\r\n};\r\n\r\nmodule.exports = Random;\r\n\n\n/***/ }),\n\n/***/ 86564:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author @samme\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar FloatBetween = __webpack_require__(99472);\r\n\r\n/**\r\n * Returns a random angle in the range [-180, 180].\r\n *\r\n * @function Phaser.Math.Angle.RandomDegrees\r\n * @since 3.23.0\r\n *\r\n * @return {number} The angle, in degrees.\r\n */\r\nvar RandomDegrees = function ()\r\n{\r\n return FloatBetween(-180, 180);\r\n};\r\n\r\nmodule.exports = RandomDegrees;\r\n\n\n/***/ }),\n\n/***/ 90154:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Normalize = __webpack_require__(12407);\r\n\r\n/**\r\n * Reverse the given angle.\r\n *\r\n * @function Phaser.Math.Angle.Reverse\r\n * @since 3.0.0\r\n *\r\n * @param {number} angle - The angle to reverse, in radians.\r\n *\r\n * @return {number} The reversed angle, in radians.\r\n */\r\nvar Reverse = function (angle)\r\n{\r\n return Normalize(angle + Math.PI);\r\n};\r\n\r\nmodule.exports = Reverse;\r\n\n\n/***/ }),\n\n/***/ 48736:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar MATH_CONST = __webpack_require__(36383);\r\n\r\n/**\r\n * Rotates `currentAngle` towards `targetAngle`, taking the shortest rotation distance. The `lerp` argument is the amount to rotate by in this call.\r\n *\r\n * @function Phaser.Math.Angle.RotateTo\r\n * @since 3.0.0\r\n *\r\n * @param {number} currentAngle - The current angle, in radians.\r\n * @param {number} targetAngle - The target angle to rotate to, in radians.\r\n * @param {number} [lerp=0.05] - The lerp value to add to the current angle.\r\n *\r\n * @return {number} The adjusted angle.\r\n */\r\nvar RotateTo = function (currentAngle, targetAngle, lerp)\r\n{\r\n if (lerp === undefined) { lerp = 0.05; }\r\n\r\n if (currentAngle === targetAngle)\r\n {\r\n return currentAngle;\r\n }\r\n\r\n if (Math.abs(targetAngle - currentAngle) <= lerp || Math.abs(targetAngle - currentAngle) >= (MATH_CONST.PI2 - lerp))\r\n {\r\n currentAngle = targetAngle;\r\n }\r\n else\r\n {\r\n if (Math.abs(targetAngle - currentAngle) > Math.PI)\r\n {\r\n if (targetAngle < currentAngle)\r\n {\r\n targetAngle += MATH_CONST.PI2;\r\n }\r\n else\r\n {\r\n targetAngle -= MATH_CONST.PI2;\r\n }\r\n }\r\n\r\n if (targetAngle > currentAngle)\r\n {\r\n currentAngle += lerp;\r\n }\r\n else if (targetAngle < currentAngle)\r\n {\r\n currentAngle -= lerp;\r\n }\r\n }\r\n\r\n return currentAngle;\r\n};\r\n\r\nmodule.exports = RotateTo;\r\n\n\n/***/ }),\n\n/***/ 61430:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Gets the shortest angle between `angle1` and `angle2`.\r\n *\r\n * Both angles must be in the range -180 to 180, which is the same clamped\r\n * range that `sprite.angle` uses, so you can pass in two sprite angles to\r\n * this method and get the shortest angle back between the two of them.\r\n *\r\n * The angle returned will be in the same range. If the returned angle is\r\n * greater than 0 then it's a counter-clockwise rotation, if < 0 then it's\r\n * a clockwise rotation.\r\n *\r\n * @function Phaser.Math.Angle.ShortestBetween\r\n * @since 3.0.0\r\n *\r\n * @param {number} angle1 - The first angle in the range -180 to 180.\r\n * @param {number} angle2 - The second angle in the range -180 to 180.\r\n *\r\n * @return {number} The shortest angle, in degrees. If greater than zero it's a counter-clockwise rotation.\r\n */\r\nvar ShortestBetween = function (angle1, angle2)\r\n{\r\n var difference = angle2 - angle1;\r\n\r\n if (difference === 0)\r\n {\r\n return 0;\r\n }\r\n\r\n var times = Math.floor((difference - (-180)) / 360);\r\n\r\n return difference - (times * 360);\r\n\r\n};\r\n\r\nmodule.exports = ShortestBetween;\r\n\n\n/***/ }),\n\n/***/ 86554:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar MathWrap = __webpack_require__(15994);\r\n\r\n/**\r\n * Wrap an angle.\r\n *\r\n * Wraps the angle to a value in the range of -PI to PI.\r\n *\r\n * @function Phaser.Math.Angle.Wrap\r\n * @since 3.0.0\r\n *\r\n * @param {number} angle - The angle to wrap, in radians.\r\n *\r\n * @return {number} The wrapped angle, in radians.\r\n */\r\nvar Wrap = function (angle)\r\n{\r\n return MathWrap(angle, -Math.PI, Math.PI);\r\n};\r\n\r\nmodule.exports = Wrap;\r\n\n\n/***/ }),\n\n/***/ 30954:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Wrap = __webpack_require__(15994);\r\n\r\n/**\r\n * Wrap an angle in degrees.\r\n *\r\n * Wraps the angle to a value in the range of -180 to 180.\r\n *\r\n * @function Phaser.Math.Angle.WrapDegrees\r\n * @since 3.0.0\r\n *\r\n * @param {number} angle - The angle to wrap, in degrees.\r\n *\r\n * @return {number} The wrapped angle, in degrees.\r\n */\r\nvar WrapDegrees = function (angle)\r\n{\r\n return Wrap(angle, -180, 180);\r\n};\r\n\r\nmodule.exports = WrapDegrees;\r\n\n\n/***/ }),\n\n/***/ 25588:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Math.Angle\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Between: __webpack_require__(31040),\r\n BetweenPoints: __webpack_require__(55495),\r\n BetweenPointsY: __webpack_require__(128),\r\n BetweenY: __webpack_require__(41273),\r\n CounterClockwise: __webpack_require__(1432),\r\n Normalize: __webpack_require__(12407),\r\n Random: __webpack_require__(53993),\r\n RandomDegrees: __webpack_require__(86564),\r\n Reverse: __webpack_require__(90154),\r\n RotateTo: __webpack_require__(48736),\r\n ShortestBetween: __webpack_require__(61430),\r\n Wrap: __webpack_require__(86554),\r\n WrapDegrees: __webpack_require__(30954)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 36383:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar MATH_CONST = {\r\n\r\n /**\r\n * The value of PI * 2.\r\n *\r\n * @name Phaser.Math.PI2\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n PI2: Math.PI * 2,\r\n\r\n /**\r\n * The value of PI * 0.5.\r\n *\r\n * Yes, we understand that this should actually be PI * 2, but\r\n * it has been like this for so long we can't change it now.\r\n * If you need PI * 2, use the PI2 constant instead.\r\n *\r\n * @name Phaser.Math.TAU\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n TAU: Math.PI * 0.5,\r\n\r\n /**\r\n * An epsilon value (1.0e-6)\r\n *\r\n * @name Phaser.Math.EPSILON\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n EPSILON: 1.0e-6,\r\n\r\n /**\r\n * For converting degrees to radians (PI / 180)\r\n *\r\n * @name Phaser.Math.DEG_TO_RAD\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n DEG_TO_RAD: Math.PI / 180,\r\n\r\n /**\r\n * For converting radians to degrees (180 / PI)\r\n *\r\n * @name Phaser.Math.RAD_TO_DEG\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n RAD_TO_DEG: 180 / Math.PI,\r\n\r\n /**\r\n * An instance of the Random Number Generator.\r\n * This is not set until the Game boots.\r\n *\r\n * @name Phaser.Math.RND\r\n * @type {Phaser.Math.RandomDataGenerator}\r\n * @since 3.0.0\r\n */\r\n RND: null,\r\n\r\n /**\r\n * The minimum safe integer this browser supports.\r\n * We use a const for backward compatibility with Internet Explorer.\r\n *\r\n * @name Phaser.Math.MIN_SAFE_INTEGER\r\n * @type {number}\r\n * @since 3.21.0\r\n */\r\n MIN_SAFE_INTEGER: Number.MIN_SAFE_INTEGER || -9007199254740991,\r\n\r\n /**\r\n * The maximum safe integer this browser supports.\r\n * We use a const for backward compatibility with Internet Explorer.\r\n *\r\n * @name Phaser.Math.MAX_SAFE_INTEGER\r\n * @type {number}\r\n * @since 3.21.0\r\n */\r\n MAX_SAFE_INTEGER: Number.MAX_SAFE_INTEGER || 9007199254740991\r\n\r\n};\r\n\r\nmodule.exports = MATH_CONST;\r\n\n\n/***/ }),\n\n/***/ 20339:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculate the distance between two sets of coordinates (points).\r\n *\r\n * @function Phaser.Math.Distance.Between\r\n * @since 3.0.0\r\n *\r\n * @param {number} x1 - The x coordinate of the first point.\r\n * @param {number} y1 - The y coordinate of the first point.\r\n * @param {number} x2 - The x coordinate of the second point.\r\n * @param {number} y2 - The y coordinate of the second point.\r\n *\r\n * @return {number} The distance between each point.\r\n */\r\nvar DistanceBetween = function (x1, y1, x2, y2)\r\n{\r\n var dx = x1 - x2;\r\n var dy = y1 - y2;\r\n\r\n return Math.sqrt(dx * dx + dy * dy);\r\n};\r\n\r\nmodule.exports = DistanceBetween;\r\n\n\n/***/ }),\n\n/***/ 52816:\n/***/ ((module) => {\n\n/**\r\n * @author samme\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculate the distance between two points.\r\n *\r\n * @function Phaser.Math.Distance.BetweenPoints\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} a - The first point.\r\n * @param {Phaser.Types.Math.Vector2Like} b - The second point.\r\n *\r\n * @return {number} The distance between the points.\r\n */\r\nvar DistanceBetweenPoints = function (a, b)\r\n{\r\n var dx = a.x - b.x;\r\n var dy = a.y - b.y;\r\n\r\n return Math.sqrt(dx * dx + dy * dy);\r\n};\r\n\r\nmodule.exports = DistanceBetweenPoints;\r\n\n\n/***/ }),\n\n/***/ 64559:\n/***/ ((module) => {\n\n/**\r\n * @author samme\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculate the squared distance between two points.\r\n *\r\n * @function Phaser.Math.Distance.BetweenPointsSquared\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like} a - The first point.\r\n * @param {Phaser.Types.Math.Vector2Like} b - The second point.\r\n *\r\n * @return {number} The squared distance between the points.\r\n */\r\nvar DistanceBetweenPointsSquared = function (a, b)\r\n{\r\n var dx = a.x - b.x;\r\n var dy = a.y - b.y;\r\n\r\n return dx * dx + dy * dy;\r\n};\r\n\r\nmodule.exports = DistanceBetweenPointsSquared;\r\n\n\n/***/ }),\n\n/***/ 82340:\n/***/ ((module) => {\n\n/**\r\n * @author samme\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculate the Chebyshev distance between two sets of coordinates (points).\r\n *\r\n * Chebyshev distance (or chessboard distance) is the maximum of the horizontal and vertical distances.\r\n * It's the effective distance when movement can be horizontal, vertical, or diagonal.\r\n *\r\n * @function Phaser.Math.Distance.Chebyshev\r\n * @since 3.22.0\r\n *\r\n * @param {number} x1 - The x coordinate of the first point.\r\n * @param {number} y1 - The y coordinate of the first point.\r\n * @param {number} x2 - The x coordinate of the second point.\r\n * @param {number} y2 - The y coordinate of the second point.\r\n *\r\n * @return {number} The distance between each point.\r\n */\r\nvar ChebyshevDistance = function (x1, y1, x2, y2)\r\n{\r\n return Math.max(Math.abs(x1 - x2), Math.abs(y1 - y2));\r\n};\r\n\r\nmodule.exports = ChebyshevDistance;\r\n\n\n/***/ }),\n\n/***/ 14390:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculate the distance between two sets of coordinates (points) to the power of `pow`.\r\n *\r\n * @function Phaser.Math.Distance.Power\r\n * @since 3.0.0\r\n *\r\n * @param {number} x1 - The x coordinate of the first point.\r\n * @param {number} y1 - The y coordinate of the first point.\r\n * @param {number} x2 - The x coordinate of the second point.\r\n * @param {number} y2 - The y coordinate of the second point.\r\n * @param {number} pow - The exponent.\r\n *\r\n * @return {number} The distance between each point.\r\n */\r\nvar DistancePower = function (x1, y1, x2, y2, pow)\r\n{\r\n if (pow === undefined) { pow = 2; }\r\n\r\n return Math.sqrt(Math.pow(x2 - x1, pow) + Math.pow(y2 - y1, pow));\r\n};\r\n\r\nmodule.exports = DistancePower;\r\n\n\n/***/ }),\n\n/***/ 2243:\n/***/ ((module) => {\n\n/**\r\n * @author samme\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculate the snake distance between two sets of coordinates (points).\r\n *\r\n * Snake distance (rectilinear distance, Manhattan distance) is the sum of the horizontal and vertical distances.\r\n * It's the effective distance when movement is allowed only horizontally or vertically (but not both).\r\n *\r\n * @function Phaser.Math.Distance.Snake\r\n * @since 3.22.0\r\n *\r\n * @param {number} x1 - The x coordinate of the first point.\r\n * @param {number} y1 - The y coordinate of the first point.\r\n * @param {number} x2 - The x coordinate of the second point.\r\n * @param {number} y2 - The y coordinate of the second point.\r\n *\r\n * @return {number} The distance between each point.\r\n */\r\nvar SnakeDistance = function (x1, y1, x2, y2)\r\n{\r\n return Math.abs(x1 - x2) + Math.abs(y1 - y2);\r\n};\r\n\r\nmodule.exports = SnakeDistance;\r\n\n\n/***/ }),\n\n/***/ 89774:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculate the distance between two sets of coordinates (points), squared.\r\n *\r\n * @function Phaser.Math.Distance.Squared\r\n * @since 3.0.0\r\n *\r\n * @param {number} x1 - The x coordinate of the first point.\r\n * @param {number} y1 - The y coordinate of the first point.\r\n * @param {number} x2 - The x coordinate of the second point.\r\n * @param {number} y2 - The y coordinate of the second point.\r\n *\r\n * @return {number} The distance between each point, squared.\r\n */\r\nvar DistanceSquared = function (x1, y1, x2, y2)\r\n{\r\n var dx = x1 - x2;\r\n var dy = y1 - y2;\r\n\r\n return dx * dx + dy * dy;\r\n};\r\n\r\nmodule.exports = DistanceSquared;\r\n\n\n/***/ }),\n\n/***/ 50994:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Math.Distance\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Between: __webpack_require__(20339),\r\n BetweenPoints: __webpack_require__(52816),\r\n BetweenPointsSquared: __webpack_require__(64559),\r\n Chebyshev: __webpack_require__(82340),\r\n Power: __webpack_require__(14390),\r\n Snake: __webpack_require__(2243),\r\n Squared: __webpack_require__(89774)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 62640:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Back = __webpack_require__(54178);\r\nvar Bounce = __webpack_require__(41521);\r\nvar Circular = __webpack_require__(79980);\r\nvar Cubic = __webpack_require__(85433);\r\nvar Elastic = __webpack_require__(99140);\r\nvar Expo = __webpack_require__(48857);\r\nvar Linear = __webpack_require__(81596);\r\nvar Quadratic = __webpack_require__(59133);\r\nvar Quartic = __webpack_require__(98516);\r\nvar Quintic = __webpack_require__(35248);\r\nvar Sine = __webpack_require__(82500);\r\nvar Stepped = __webpack_require__(49752);\r\n\r\n// EaseMap\r\nmodule.exports = {\r\n\r\n Power0: Linear,\r\n Power1: Quadratic.Out,\r\n Power2: Cubic.Out,\r\n Power3: Quartic.Out,\r\n Power4: Quintic.Out,\r\n\r\n Linear: Linear,\r\n Quad: Quadratic.Out,\r\n Cubic: Cubic.Out,\r\n Quart: Quartic.Out,\r\n Quint: Quintic.Out,\r\n Sine: Sine.Out,\r\n Expo: Expo.Out,\r\n Circ: Circular.Out,\r\n Elastic: Elastic.Out,\r\n Back: Back.Out,\r\n Bounce: Bounce.Out,\r\n Stepped: Stepped,\r\n\r\n 'Quad.easeIn': Quadratic.In,\r\n 'Cubic.easeIn': Cubic.In,\r\n 'Quart.easeIn': Quartic.In,\r\n 'Quint.easeIn': Quintic.In,\r\n 'Sine.easeIn': Sine.In,\r\n 'Expo.easeIn': Expo.In,\r\n 'Circ.easeIn': Circular.In,\r\n 'Elastic.easeIn': Elastic.In,\r\n 'Back.easeIn': Back.In,\r\n 'Bounce.easeIn': Bounce.In,\r\n\r\n 'Quad.easeOut': Quadratic.Out,\r\n 'Cubic.easeOut': Cubic.Out,\r\n 'Quart.easeOut': Quartic.Out,\r\n 'Quint.easeOut': Quintic.Out,\r\n 'Sine.easeOut': Sine.Out,\r\n 'Expo.easeOut': Expo.Out,\r\n 'Circ.easeOut': Circular.Out,\r\n 'Elastic.easeOut': Elastic.Out,\r\n 'Back.easeOut': Back.Out,\r\n 'Bounce.easeOut': Bounce.Out,\r\n\r\n 'Quad.easeInOut': Quadratic.InOut,\r\n 'Cubic.easeInOut': Cubic.InOut,\r\n 'Quart.easeInOut': Quartic.InOut,\r\n 'Quint.easeInOut': Quintic.InOut,\r\n 'Sine.easeInOut': Sine.InOut,\r\n 'Expo.easeInOut': Expo.InOut,\r\n 'Circ.easeInOut': Circular.InOut,\r\n 'Elastic.easeInOut': Elastic.InOut,\r\n 'Back.easeInOut': Back.InOut,\r\n 'Bounce.easeInOut': Bounce.InOut\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 1639:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Back ease-in.\r\n *\r\n * @function Phaser.Math.Easing.Back.In\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n * @param {number} [overshoot=1.70158] - The overshoot amount.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar In = function (v, overshoot)\r\n{\r\n if (overshoot === undefined) { overshoot = 1.70158; }\r\n\r\n return v * v * ((overshoot + 1) * v - overshoot);\r\n};\r\n\r\nmodule.exports = In;\r\n\n\n/***/ }),\n\n/***/ 50099:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Back ease-in/out.\r\n *\r\n * @function Phaser.Math.Easing.Back.InOut\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n * @param {number} [overshoot=1.70158] - The overshoot amount.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar InOut = function (v, overshoot)\r\n{\r\n if (overshoot === undefined) { overshoot = 1.70158; }\r\n\r\n var s = overshoot * 1.525;\r\n\r\n if ((v *= 2) < 1)\r\n {\r\n return 0.5 * (v * v * ((s + 1) * v - s));\r\n }\r\n else\r\n {\r\n return 0.5 * ((v -= 2) * v * ((s + 1) * v + s) + 2);\r\n }\r\n};\r\n\r\nmodule.exports = InOut;\r\n\n\n/***/ }),\n\n/***/ 41286:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Back ease-out.\r\n *\r\n * @function Phaser.Math.Easing.Back.Out\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n * @param {number} [overshoot=1.70158] - The overshoot amount.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar Out = function (v, overshoot)\r\n{\r\n if (overshoot === undefined) { overshoot = 1.70158; }\r\n\r\n return --v * v * ((overshoot + 1) * v + overshoot) + 1;\r\n};\r\n\r\nmodule.exports = Out;\r\n\n\n/***/ }),\n\n/***/ 54178:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Math.Easing.Back\r\n */\r\n\r\nmodule.exports = {\r\n\r\n In: __webpack_require__(1639),\r\n Out: __webpack_require__(41286),\r\n InOut: __webpack_require__(50099)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 59590:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Bounce ease-in.\r\n *\r\n * @function Phaser.Math.Easing.Bounce.In\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar In = function (v)\r\n{\r\n v = 1 - v;\r\n\r\n if (v < 1 / 2.75)\r\n {\r\n return 1 - (7.5625 * v * v);\r\n }\r\n else if (v < 2 / 2.75)\r\n {\r\n return 1 - (7.5625 * (v -= 1.5 / 2.75) * v + 0.75);\r\n }\r\n else if (v < 2.5 / 2.75)\r\n {\r\n return 1 - (7.5625 * (v -= 2.25 / 2.75) * v + 0.9375);\r\n }\r\n else\r\n {\r\n return 1 - (7.5625 * (v -= 2.625 / 2.75) * v + 0.984375);\r\n }\r\n};\r\n\r\nmodule.exports = In;\r\n\n\n/***/ }),\n\n/***/ 41788:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Bounce ease-in/out.\r\n *\r\n * @function Phaser.Math.Easing.Bounce.InOut\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar InOut = function (v)\r\n{\r\n var reverse = false;\r\n\r\n if (v < 0.5)\r\n {\r\n v = 1 - (v * 2);\r\n reverse = true;\r\n }\r\n else\r\n {\r\n v = (v * 2) - 1;\r\n }\r\n\r\n if (v < 1 / 2.75)\r\n {\r\n v = 7.5625 * v * v;\r\n }\r\n else if (v < 2 / 2.75)\r\n {\r\n v = 7.5625 * (v -= 1.5 / 2.75) * v + 0.75;\r\n }\r\n else if (v < 2.5 / 2.75)\r\n {\r\n v = 7.5625 * (v -= 2.25 / 2.75) * v + 0.9375;\r\n }\r\n else\r\n {\r\n v = 7.5625 * (v -= 2.625 / 2.75) * v + 0.984375;\r\n }\r\n\r\n if (reverse)\r\n {\r\n return (1 - v) * 0.5;\r\n }\r\n else\r\n {\r\n return v * 0.5 + 0.5;\r\n }\r\n};\r\n\r\nmodule.exports = InOut;\r\n\n\n/***/ }),\n\n/***/ 69905:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Bounce ease-out.\r\n *\r\n * @function Phaser.Math.Easing.Bounce.Out\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar Out = function (v)\r\n{\r\n if (v < 1 / 2.75)\r\n {\r\n return 7.5625 * v * v;\r\n }\r\n else if (v < 2 / 2.75)\r\n {\r\n return 7.5625 * (v -= 1.5 / 2.75) * v + 0.75;\r\n }\r\n else if (v < 2.5 / 2.75)\r\n {\r\n return 7.5625 * (v -= 2.25 / 2.75) * v + 0.9375;\r\n }\r\n else\r\n {\r\n return 7.5625 * (v -= 2.625 / 2.75) * v + 0.984375;\r\n }\r\n};\r\n\r\nmodule.exports = Out;\r\n\n\n/***/ }),\n\n/***/ 41521:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Math.Easing.Bounce\r\n */\r\n\r\nmodule.exports = {\r\n\r\n In: __webpack_require__(59590),\r\n Out: __webpack_require__(69905),\r\n InOut: __webpack_require__(41788)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 91861:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Circular ease-in.\r\n *\r\n * @function Phaser.Math.Easing.Circular.In\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar In = function (v)\r\n{\r\n return 1 - Math.sqrt(1 - v * v);\r\n};\r\n\r\nmodule.exports = In;\r\n\n\n/***/ }),\n\n/***/ 4177:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Circular ease-in/out.\r\n *\r\n * @function Phaser.Math.Easing.Circular.InOut\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar InOut = function (v)\r\n{\r\n if ((v *= 2) < 1)\r\n {\r\n return -0.5 * (Math.sqrt(1 - v * v) - 1);\r\n }\r\n else\r\n {\r\n return 0.5 * (Math.sqrt(1 - (v -= 2) * v) + 1);\r\n }\r\n};\r\n\r\nmodule.exports = InOut;\r\n\n\n/***/ }),\n\n/***/ 57512:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Circular ease-out.\r\n *\r\n * @function Phaser.Math.Easing.Circular.Out\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar Out = function (v)\r\n{\r\n return Math.sqrt(1 - (--v * v));\r\n};\r\n\r\nmodule.exports = Out;\r\n\n\n/***/ }),\n\n/***/ 79980:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Math.Easing.Circular\r\n */\r\n\r\nmodule.exports = {\r\n\r\n In: __webpack_require__(91861),\r\n Out: __webpack_require__(57512),\r\n InOut: __webpack_require__(4177)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 51150:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Cubic ease-in.\r\n *\r\n * @function Phaser.Math.Easing.Cubic.In\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar In = function (v)\r\n{\r\n return v * v * v;\r\n};\r\n\r\nmodule.exports = In;\r\n\n\n/***/ }),\n\n/***/ 82820:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Cubic ease-in/out.\r\n *\r\n * @function Phaser.Math.Easing.Cubic.InOut\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar InOut = function (v)\r\n{\r\n if ((v *= 2) < 1)\r\n {\r\n return 0.5 * v * v * v;\r\n }\r\n else\r\n {\r\n return 0.5 * ((v -= 2) * v * v + 2);\r\n }\r\n};\r\n\r\nmodule.exports = InOut;\r\n\n\n/***/ }),\n\n/***/ 35033:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Cubic ease-out.\r\n *\r\n * @function Phaser.Math.Easing.Cubic.Out\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar Out = function (v)\r\n{\r\n return --v * v * v + 1;\r\n};\r\n\r\nmodule.exports = Out;\r\n\n\n/***/ }),\n\n/***/ 85433:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Math.Easing.Cubic\r\n */\r\n\r\nmodule.exports = {\r\n\r\n In: __webpack_require__(51150),\r\n Out: __webpack_require__(35033),\r\n InOut: __webpack_require__(82820)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 69965:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Elastic ease-in.\r\n *\r\n * @function Phaser.Math.Easing.Elastic.In\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n * @param {number} [amplitude=0.1] - The amplitude of the elastic ease.\r\n * @param {number} [period=0.1] - Sets how tight the sine-wave is, where smaller values are tighter waves, which result in more cycles.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar In = function (v, amplitude, period)\r\n{\r\n if (amplitude === undefined) { amplitude = 0.1; }\r\n if (period === undefined) { period = 0.1; }\r\n\r\n if (v === 0)\r\n {\r\n return 0;\r\n }\r\n else if (v === 1)\r\n {\r\n return 1;\r\n }\r\n else\r\n {\r\n var s = period / 4;\r\n\r\n if (amplitude < 1)\r\n {\r\n amplitude = 1;\r\n }\r\n else\r\n {\r\n s = period * Math.asin(1 / amplitude) / (2 * Math.PI);\r\n }\r\n\r\n return -(amplitude * Math.pow(2, 10 * (v -= 1)) * Math.sin((v - s) * (2 * Math.PI) / period));\r\n }\r\n};\r\n\r\nmodule.exports = In;\r\n\n\n/***/ }),\n\n/***/ 50665:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Elastic ease-in/out.\r\n *\r\n * @function Phaser.Math.Easing.Elastic.InOut\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n * @param {number} [amplitude=0.1] - The amplitude of the elastic ease.\r\n * @param {number} [period=0.1] - Sets how tight the sine-wave is, where smaller values are tighter waves, which result in more cycles.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar InOut = function (v, amplitude, period)\r\n{\r\n if (amplitude === undefined) { amplitude = 0.1; }\r\n if (period === undefined) { period = 0.1; }\r\n\r\n if (v === 0)\r\n {\r\n return 0;\r\n }\r\n else if (v === 1)\r\n {\r\n return 1;\r\n }\r\n else\r\n {\r\n var s = period / 4;\r\n\r\n if (amplitude < 1)\r\n {\r\n amplitude = 1;\r\n }\r\n else\r\n {\r\n s = period * Math.asin(1 / amplitude) / (2 * Math.PI);\r\n }\r\n\r\n if ((v *= 2) < 1)\r\n {\r\n return -0.5 * (amplitude * Math.pow(2, 10 * (v -= 1)) * Math.sin((v - s) * (2 * Math.PI) / period));\r\n }\r\n else\r\n {\r\n return amplitude * Math.pow(2, -10 * (v -= 1)) * Math.sin((v - s) * (2 * Math.PI) / period) * 0.5 + 1;\r\n }\r\n }\r\n};\r\n\r\nmodule.exports = InOut;\r\n\n\n/***/ }),\n\n/***/ 7744:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Elastic ease-out.\r\n *\r\n * @function Phaser.Math.Easing.Elastic.Out\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n * @param {number} [amplitude=0.1] - The amplitude of the elastic ease.\r\n * @param {number} [period=0.1] - Sets how tight the sine-wave is, where smaller values are tighter waves, which result in more cycles.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar Out = function (v, amplitude, period)\r\n{\r\n if (amplitude === undefined) { amplitude = 0.1; }\r\n if (period === undefined) { period = 0.1; }\r\n\r\n if (v === 0)\r\n {\r\n return 0;\r\n }\r\n else if (v === 1)\r\n {\r\n return 1;\r\n }\r\n else\r\n {\r\n var s = period / 4;\r\n\r\n if (amplitude < 1)\r\n {\r\n amplitude = 1;\r\n }\r\n else\r\n {\r\n s = period * Math.asin(1 / amplitude) / (2 * Math.PI);\r\n }\r\n\r\n return (amplitude * Math.pow(2, -10 * v) * Math.sin((v - s) * (2 * Math.PI) / period) + 1);\r\n }\r\n};\r\n\r\nmodule.exports = Out;\r\n\n\n/***/ }),\n\n/***/ 99140:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Math.Easing.Elastic\r\n */\r\n\r\nmodule.exports = {\r\n\r\n In: __webpack_require__(69965),\r\n Out: __webpack_require__(7744),\r\n InOut: __webpack_require__(50665)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 24590:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Exponential ease-in.\r\n *\r\n * @function Phaser.Math.Easing.Expo.In\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar In = function (v)\r\n{\r\n return Math.pow(2, 10 * (v - 1)) - 0.001;\r\n};\r\n\r\nmodule.exports = In;\r\n\n\n/***/ }),\n\n/***/ 87844:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Exponential ease-in/out.\r\n *\r\n * @function Phaser.Math.Easing.Expo.InOut\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar InOut = function (v)\r\n{\r\n if ((v *= 2) < 1)\r\n {\r\n return 0.5 * Math.pow(2, 10 * (v - 1));\r\n }\r\n else\r\n {\r\n return 0.5 * (2 - Math.pow(2, -10 * (v - 1)));\r\n }\r\n};\r\n\r\nmodule.exports = InOut;\r\n\n\n/***/ }),\n\n/***/ 89433:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Exponential ease-out.\r\n *\r\n * @function Phaser.Math.Easing.Expo.Out\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar Out = function (v)\r\n{\r\n return 1 - Math.pow(2, -10 * v);\r\n};\r\n\r\nmodule.exports = Out;\r\n\n\n/***/ }),\n\n/***/ 48857:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Math.Easing.Expo\r\n */\r\n\r\nmodule.exports = {\r\n\r\n In: __webpack_require__(24590),\r\n Out: __webpack_require__(89433),\r\n InOut: __webpack_require__(87844)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 48820:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Math.Easing\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Back: __webpack_require__(54178),\r\n Bounce: __webpack_require__(41521),\r\n Circular: __webpack_require__(79980),\r\n Cubic: __webpack_require__(85433),\r\n Elastic: __webpack_require__(99140),\r\n Expo: __webpack_require__(48857),\r\n Linear: __webpack_require__(81596),\r\n Quadratic: __webpack_require__(59133),\r\n Quartic: __webpack_require__(98516),\r\n Quintic: __webpack_require__(35248),\r\n Sine: __webpack_require__(82500),\r\n Stepped: __webpack_require__(49752)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 7147:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Linear easing (no variation).\r\n *\r\n * @function Phaser.Math.Easing.Linear\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar Linear = function (v)\r\n{\r\n return v;\r\n};\r\n\r\nmodule.exports = Linear;\r\n\n\n/***/ }),\n\n/***/ 81596:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nmodule.exports = __webpack_require__(7147);\r\n\n\n/***/ }),\n\n/***/ 34826:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Quadratic ease-in.\r\n *\r\n * @function Phaser.Math.Easing.Quadratic.In\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar In = function (v)\r\n{\r\n return v * v;\r\n};\r\n\r\nmodule.exports = In;\r\n\n\n/***/ }),\n\n/***/ 20544:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Quadratic ease-in/out.\r\n *\r\n * @function Phaser.Math.Easing.Quadratic.InOut\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar InOut = function (v)\r\n{\r\n if ((v *= 2) < 1)\r\n {\r\n return 0.5 * v * v;\r\n }\r\n else\r\n {\r\n return -0.5 * (--v * (v - 2) - 1);\r\n }\r\n};\r\n\r\nmodule.exports = InOut;\r\n\n\n/***/ }),\n\n/***/ 92029:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Quadratic ease-out.\r\n *\r\n * @function Phaser.Math.Easing.Quadratic.Out\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar Out = function (v)\r\n{\r\n return v * (2 - v);\r\n};\r\n\r\nmodule.exports = Out;\r\n\n\n/***/ }),\n\n/***/ 59133:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Math.Easing.Quadratic\r\n */\r\n\r\nmodule.exports = {\r\n\r\n In: __webpack_require__(34826),\r\n Out: __webpack_require__(92029),\r\n InOut: __webpack_require__(20544)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 64413:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Quartic ease-in.\r\n *\r\n * @function Phaser.Math.Easing.Quartic.In\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar In = function (v)\r\n{\r\n return v * v * v * v;\r\n};\r\n\r\nmodule.exports = In;\r\n\n\n/***/ }),\n\n/***/ 78137:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Quartic ease-in/out.\r\n *\r\n * @function Phaser.Math.Easing.Quartic.InOut\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar InOut = function (v)\r\n{\r\n if ((v *= 2) < 1)\r\n {\r\n return 0.5 * v * v * v * v;\r\n }\r\n else\r\n {\r\n return -0.5 * ((v -= 2) * v * v * v - 2);\r\n }\r\n};\r\n\r\nmodule.exports = InOut;\r\n\n\n/***/ }),\n\n/***/ 45840:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Quartic ease-out.\r\n *\r\n * @function Phaser.Math.Easing.Quartic.Out\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar Out = function (v)\r\n{\r\n return 1 - (--v * v * v * v);\r\n};\r\n\r\nmodule.exports = Out;\r\n\n\n/***/ }),\n\n/***/ 98516:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Math.Easing.Quartic\r\n */\r\n\r\nmodule.exports = {\r\n\r\n In: __webpack_require__(64413),\r\n Out: __webpack_require__(45840),\r\n InOut: __webpack_require__(78137)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 87745:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Quintic ease-in.\r\n *\r\n * @function Phaser.Math.Easing.Quintic.In\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar In = function (v)\r\n{\r\n return v * v * v * v * v;\r\n};\r\n\r\nmodule.exports = In;\r\n\n\n/***/ }),\n\n/***/ 16509:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Quintic ease-in/out.\r\n *\r\n * @function Phaser.Math.Easing.Quintic.InOut\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar InOut = function (v)\r\n{\r\n if ((v *= 2) < 1)\r\n {\r\n return 0.5 * v * v * v * v * v;\r\n }\r\n else\r\n {\r\n return 0.5 * ((v -= 2) * v * v * v * v + 2);\r\n }\r\n};\r\n\r\nmodule.exports = InOut;\r\n\n\n/***/ }),\n\n/***/ 17868:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Quintic ease-out.\r\n *\r\n * @function Phaser.Math.Easing.Quintic.Out\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar Out = function (v)\r\n{\r\n return --v * v * v * v * v + 1;\r\n};\r\n\r\nmodule.exports = Out;\r\n\n\n/***/ }),\n\n/***/ 35248:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Math.Easing.Quintic\r\n */\r\n\r\nmodule.exports = {\r\n\r\n In: __webpack_require__(87745),\r\n Out: __webpack_require__(17868),\r\n InOut: __webpack_require__(16509)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 80461:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Sinusoidal ease-in.\r\n *\r\n * @function Phaser.Math.Easing.Sine.In\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar In = function (v)\r\n{\r\n if (v === 0)\r\n {\r\n return 0;\r\n }\r\n else if (v === 1)\r\n {\r\n return 1;\r\n }\r\n else\r\n {\r\n return 1 - Math.cos(v * Math.PI / 2);\r\n }\r\n};\r\n\r\nmodule.exports = In;\r\n\n\n/***/ }),\n\n/***/ 34025:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Sinusoidal ease-in/out.\r\n *\r\n * @function Phaser.Math.Easing.Sine.InOut\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar InOut = function (v)\r\n{\r\n if (v === 0)\r\n {\r\n return 0;\r\n }\r\n else if (v === 1)\r\n {\r\n return 1;\r\n }\r\n else\r\n {\r\n return 0.5 * (1 - Math.cos(Math.PI * v));\r\n }\r\n};\r\n\r\nmodule.exports = InOut;\r\n\n\n/***/ }),\n\n/***/ 52768:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Sinusoidal ease-out.\r\n *\r\n * @function Phaser.Math.Easing.Sine.Out\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar Out = function (v)\r\n{\r\n if (v === 0)\r\n {\r\n return 0;\r\n }\r\n else if (v === 1)\r\n {\r\n return 1;\r\n }\r\n else\r\n {\r\n return Math.sin(v * Math.PI / 2);\r\n }\r\n};\r\n\r\nmodule.exports = Out;\r\n\n\n/***/ }),\n\n/***/ 82500:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Math.Easing.Sine\r\n */\r\n\r\nmodule.exports = {\r\n\r\n In: __webpack_require__(80461),\r\n Out: __webpack_require__(52768),\r\n InOut: __webpack_require__(34025)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 72251:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Stepped easing.\r\n *\r\n * @function Phaser.Math.Easing.Stepped\r\n * @since 3.0.0\r\n *\r\n * @param {number} v - The value to be tweened.\r\n * @param {number} [steps=1] - The number of steps in the ease.\r\n *\r\n * @return {number} The tweened value.\r\n */\r\nvar Stepped = function (v, steps)\r\n{\r\n if (steps === undefined) { steps = 1; }\r\n\r\n if (v <= 0)\r\n {\r\n return 0;\r\n }\r\n else if (v >= 1)\r\n {\r\n return 1;\r\n }\r\n else\r\n {\r\n return (((steps * v) | 0) + 1) * (1 / steps);\r\n }\r\n};\r\n\r\nmodule.exports = Stepped;\r\n\n\n/***/ }),\n\n/***/ 49752:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Math.Easing.Stepped\r\n */\r\n\r\nmodule.exports = __webpack_require__(72251);\r\n\n\n/***/ }),\n\n/***/ 75698:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculate the fuzzy ceiling of the given value.\r\n *\r\n * @function Phaser.Math.Fuzzy.Ceil\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The value.\r\n * @param {number} [epsilon=0.0001] - The epsilon.\r\n *\r\n * @return {number} The fuzzy ceiling of the value.\r\n */\r\nvar Ceil = function (value, epsilon)\r\n{\r\n if (epsilon === undefined) { epsilon = 0.0001; }\r\n\r\n return Math.ceil(value - epsilon);\r\n};\r\n\r\nmodule.exports = Ceil;\r\n\n\n/***/ }),\n\n/***/ 43855:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Check whether the given values are fuzzily equal.\r\n *\r\n * Two numbers are fuzzily equal if their difference is less than `epsilon`.\r\n *\r\n * @function Phaser.Math.Fuzzy.Equal\r\n * @since 3.0.0\r\n *\r\n * @param {number} a - The first value.\r\n * @param {number} b - The second value.\r\n * @param {number} [epsilon=0.0001] - The epsilon.\r\n *\r\n * @return {boolean} `true` if the values are fuzzily equal, otherwise `false`.\r\n */\r\nvar Equal = function (a, b, epsilon)\r\n{\r\n if (epsilon === undefined) { epsilon = 0.0001; }\r\n\r\n return Math.abs(a - b) < epsilon;\r\n};\r\n\r\nmodule.exports = Equal;\r\n\n\n/***/ }),\n\n/***/ 25777:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculate the fuzzy floor of the given value.\r\n *\r\n * @function Phaser.Math.Fuzzy.Floor\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The value.\r\n * @param {number} [epsilon=0.0001] - The epsilon.\r\n *\r\n * @return {number} The floor of the value.\r\n */\r\nvar Floor = function (value, epsilon)\r\n{\r\n if (epsilon === undefined) { epsilon = 0.0001; }\r\n\r\n return Math.floor(value + epsilon);\r\n};\r\n\r\nmodule.exports = Floor;\r\n\n\n/***/ }),\n\n/***/ 5470:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Check whether `a` is fuzzily greater than `b`.\r\n *\r\n * `a` is fuzzily greater than `b` if it is more than `b - epsilon`.\r\n *\r\n * @function Phaser.Math.Fuzzy.GreaterThan\r\n * @since 3.0.0\r\n *\r\n * @param {number} a - The first value.\r\n * @param {number} b - The second value.\r\n * @param {number} [epsilon=0.0001] - The epsilon.\r\n *\r\n * @return {boolean} `true` if `a` is fuzzily greater than than `b`, otherwise `false`.\r\n */\r\nvar GreaterThan = function (a, b, epsilon)\r\n{\r\n if (epsilon === undefined) { epsilon = 0.0001; }\r\n\r\n return a > b - epsilon;\r\n};\r\n\r\nmodule.exports = GreaterThan;\r\n\n\n/***/ }),\n\n/***/ 94977:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Check whether `a` is fuzzily less than `b`.\r\n *\r\n * `a` is fuzzily less than `b` if it is less than `b + epsilon`.\r\n *\r\n * @function Phaser.Math.Fuzzy.LessThan\r\n * @since 3.0.0\r\n *\r\n * @param {number} a - The first value.\r\n * @param {number} b - The second value.\r\n * @param {number} [epsilon=0.0001] - The epsilon.\r\n *\r\n * @return {boolean} `true` if `a` is fuzzily less than `b`, otherwise `false`.\r\n */\r\nvar LessThan = function (a, b, epsilon)\r\n{\r\n if (epsilon === undefined) { epsilon = 0.0001; }\r\n\r\n return a < b + epsilon;\r\n};\r\n\r\nmodule.exports = LessThan;\r\n\n\n/***/ }),\n\n/***/ 48379:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Math.Fuzzy\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Ceil: __webpack_require__(75698),\r\n Equal: __webpack_require__(43855),\r\n Floor: __webpack_require__(25777),\r\n GreaterThan: __webpack_require__(5470),\r\n LessThan: __webpack_require__(94977)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 75508:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(36383);\r\nvar Extend = __webpack_require__(79291);\r\n\r\n/**\r\n * @namespace Phaser.Math\r\n */\r\n\r\nvar PhaserMath = {\r\n\r\n // Collections of functions\r\n Angle: __webpack_require__(25588),\r\n Distance: __webpack_require__(50994),\r\n Easing: __webpack_require__(48820),\r\n Fuzzy: __webpack_require__(48379),\r\n Interpolation: __webpack_require__(38289),\r\n Pow2: __webpack_require__(49001),\r\n Snap: __webpack_require__(73697),\r\n\r\n // Expose the RNG Class\r\n RandomDataGenerator: __webpack_require__(28453),\r\n\r\n // Single functions\r\n Average: __webpack_require__(53307),\r\n Bernstein: __webpack_require__(85710),\r\n Between: __webpack_require__(30976),\r\n CatmullRom: __webpack_require__(87842),\r\n CeilTo: __webpack_require__(26302),\r\n Clamp: __webpack_require__(45319),\r\n DegToRad: __webpack_require__(39506),\r\n Difference: __webpack_require__(61241),\r\n Euler: __webpack_require__(38857),\r\n Factorial: __webpack_require__(6411),\r\n FloatBetween: __webpack_require__(99472),\r\n FloorTo: __webpack_require__(77623),\r\n FromPercent: __webpack_require__(62945),\r\n GetSpeed: __webpack_require__(38265),\r\n IsEven: __webpack_require__(78702),\r\n IsEvenStrict: __webpack_require__(94883),\r\n Linear: __webpack_require__(28915),\r\n LinearXY: __webpack_require__(94908),\r\n MaxAdd: __webpack_require__(86883),\r\n Median: __webpack_require__(50040),\r\n MinSub: __webpack_require__(37204),\r\n Percent: __webpack_require__(65201),\r\n RadToDeg: __webpack_require__(43396),\r\n RandomXY: __webpack_require__(74362),\r\n RandomXYZ: __webpack_require__(60706),\r\n RandomXYZW: __webpack_require__(67421),\r\n Rotate: __webpack_require__(36305),\r\n RotateAround: __webpack_require__(11520),\r\n RotateAroundDistance: __webpack_require__(1163),\r\n RotateTo: __webpack_require__(70336),\r\n RoundAwayFromZero: __webpack_require__(2284),\r\n RoundTo: __webpack_require__(41013),\r\n SinCosTableGenerator: __webpack_require__(16922),\r\n SmootherStep: __webpack_require__(54261),\r\n SmoothStep: __webpack_require__(7602),\r\n ToXY: __webpack_require__(44408),\r\n TransformXY: __webpack_require__(85955),\r\n Within: __webpack_require__(60417),\r\n Wrap: __webpack_require__(15994),\r\n\r\n // Vector classes\r\n Vector2: __webpack_require__(26099),\r\n Vector3: __webpack_require__(25836),\r\n Vector4: __webpack_require__(61369),\r\n Matrix3: __webpack_require__(94434),\r\n Matrix4: __webpack_require__(37867),\r\n Quaternion: __webpack_require__(15746),\r\n RotateVec3: __webpack_require__(72678)\r\n\r\n};\r\n\r\n// Merge in the consts\r\n\r\nPhaserMath = Extend(false, PhaserMath, CONST);\r\n\r\n// Export it\r\n\r\nmodule.exports = PhaserMath;\r\n\n\n/***/ }),\n\n/***/ 89318:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Bernstein = __webpack_require__(85710);\r\n\r\n/**\r\n * A bezier interpolation method.\r\n *\r\n * @function Phaser.Math.Interpolation.Bezier\r\n * @since 3.0.0\r\n *\r\n * @param {number[]} v - The input array of values to interpolate between.\r\n * @param {number} k - The percentage of interpolation, between 0 and 1.\r\n *\r\n * @return {number} The interpolated value.\r\n */\r\nvar BezierInterpolation = function (v, k)\r\n{\r\n var b = 0;\r\n var n = v.length - 1;\r\n\r\n for (var i = 0; i <= n; i++)\r\n {\r\n b += Math.pow(1 - k, n - i) * Math.pow(k, i) * v[i] * Bernstein(n, i);\r\n }\r\n\r\n return b;\r\n};\r\n\r\nmodule.exports = BezierInterpolation;\r\n\n\n/***/ }),\n\n/***/ 77259:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CatmullRom = __webpack_require__(87842);\r\n\r\n/**\r\n * A Catmull-Rom interpolation method.\r\n *\r\n * @function Phaser.Math.Interpolation.CatmullRom\r\n * @since 3.0.0\r\n *\r\n * @param {number[]} v - The input array of values to interpolate between.\r\n * @param {number} k - The percentage of interpolation, between 0 and 1.\r\n *\r\n * @return {number} The interpolated value.\r\n */\r\nvar CatmullRomInterpolation = function (v, k)\r\n{\r\n var m = v.length - 1;\r\n var f = m * k;\r\n var i = Math.floor(f);\r\n\r\n if (v[0] === v[m])\r\n {\r\n if (k < 0)\r\n {\r\n i = Math.floor(f = m * (1 + k));\r\n }\r\n\r\n return CatmullRom(f - i, v[(i - 1 + m) % m], v[i], v[(i + 1) % m], v[(i + 2) % m]);\r\n }\r\n else\r\n {\r\n if (k < 0)\r\n {\r\n return v[0] - (CatmullRom(-f, v[0], v[0], v[1], v[1]) - v[0]);\r\n }\r\n\r\n if (k > 1)\r\n {\r\n return v[m] - (CatmullRom(f - m, v[m], v[m], v[m - 1], v[m - 1]) - v[m]);\r\n }\r\n\r\n return CatmullRom(f - i, v[i ? i - 1 : 0], v[i], v[m < i + 1 ? m : i + 1], v[m < i + 2 ? m : i + 2]);\r\n }\r\n};\r\n\r\nmodule.exports = CatmullRomInterpolation;\r\n\n\n/***/ }),\n\n/***/ 36316:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction P0 (t, p)\r\n{\r\n var k = 1 - t;\r\n\r\n return k * k * k * p;\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction P1 (t, p)\r\n{\r\n var k = 1 - t;\r\n\r\n return 3 * k * k * t * p;\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction P2 (t, p)\r\n{\r\n return 3 * (1 - t) * t * t * p;\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction P3 (t, p)\r\n{\r\n return t * t * t * p;\r\n}\r\n\r\n/**\r\n * A cubic bezier interpolation method.\r\n *\r\n * https://medium.com/@adrian_cooney/bezier-interpolation-13b68563313a\r\n *\r\n * @function Phaser.Math.Interpolation.CubicBezier\r\n * @since 3.0.0\r\n *\r\n * @param {number} t - The percentage of interpolation, between 0 and 1.\r\n * @param {number} p0 - The start point.\r\n * @param {number} p1 - The first control point.\r\n * @param {number} p2 - The second control point.\r\n * @param {number} p3 - The end point.\r\n *\r\n * @return {number} The interpolated value.\r\n */\r\nvar CubicBezierInterpolation = function (t, p0, p1, p2, p3)\r\n{\r\n return P0(t, p0) + P1(t, p1) + P2(t, p2) + P3(t, p3);\r\n};\r\n\r\nmodule.exports = CubicBezierInterpolation;\r\n\n\n/***/ }),\n\n/***/ 28392:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Linear = __webpack_require__(28915);\r\n\r\n/**\r\n * A linear interpolation method.\r\n *\r\n * @function Phaser.Math.Interpolation.Linear\r\n * @since 3.0.0\r\n * @see {@link https://en.wikipedia.org/wiki/Linear_interpolation}\r\n *\r\n * @param {number[]} v - The input array of values to interpolate between.\r\n * @param {!number} k - The percentage of interpolation, between 0 and 1.\r\n *\r\n * @return {!number} The interpolated value.\r\n */\r\nvar LinearInterpolation = function (v, k)\r\n{\r\n var m = v.length - 1;\r\n var f = m * k;\r\n var i = Math.floor(f);\r\n\r\n if (k < 0)\r\n {\r\n return Linear(v[0], v[1], f);\r\n }\r\n else if (k > 1)\r\n {\r\n return Linear(v[m], v[m - 1], m - f);\r\n }\r\n else\r\n {\r\n return Linear(v[i], v[(i + 1 > m) ? m : i + 1], f - i);\r\n }\r\n};\r\n\r\nmodule.exports = LinearInterpolation;\r\n\n\n/***/ }),\n\n/***/ 32112:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction P0 (t, p)\r\n{\r\n var k = 1 - t;\r\n\r\n return k * k * p;\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction P1 (t, p)\r\n{\r\n return 2 * (1 - t) * t * p;\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction P2 (t, p)\r\n{\r\n return t * t * p;\r\n}\r\n\r\n// https://github.com/mrdoob/three.js/blob/master/src/extras/core/Interpolations.js\r\n\r\n/**\r\n * A quadratic bezier interpolation method.\r\n *\r\n * @function Phaser.Math.Interpolation.QuadraticBezier\r\n * @since 3.2.0\r\n *\r\n * @param {number} t - The percentage of interpolation, between 0 and 1.\r\n * @param {number} p0 - The start point.\r\n * @param {number} p1 - The control point.\r\n * @param {number} p2 - The end point.\r\n *\r\n * @return {number} The interpolated value.\r\n */\r\nvar QuadraticBezierInterpolation = function (t, p0, p1, p2)\r\n{\r\n return P0(t, p0) + P1(t, p1) + P2(t, p2);\r\n};\r\n\r\nmodule.exports = QuadraticBezierInterpolation;\r\n\n\n/***/ }),\n\n/***/ 47235:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar SmoothStep = __webpack_require__(7602);\r\n\r\n/**\r\n * A Smooth Step interpolation method.\r\n *\r\n * @function Phaser.Math.Interpolation.SmoothStep\r\n * @since 3.9.0\r\n * @see {@link https://en.wikipedia.org/wiki/Smoothstep}\r\n *\r\n * @param {number} t - The percentage of interpolation, between 0 and 1.\r\n * @param {number} min - The minimum value, also known as the 'left edge', assumed smaller than the 'right edge'.\r\n * @param {number} max - The maximum value, also known as the 'right edge', assumed greater than the 'left edge'.\r\n *\r\n * @return {number} The interpolated value.\r\n */\r\nvar SmoothStepInterpolation = function (t, min, max)\r\n{\r\n return min + (max - min) * SmoothStep(t, 0, 1);\r\n};\r\n\r\nmodule.exports = SmoothStepInterpolation;\r\n\n\n/***/ }),\n\n/***/ 50178:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar SmootherStep = __webpack_require__(54261);\r\n\r\n/**\r\n * A Smoother Step interpolation method.\r\n *\r\n * @function Phaser.Math.Interpolation.SmootherStep\r\n * @since 3.9.0\r\n * @see {@link https://en.wikipedia.org/wiki/Smoothstep#Variations}\r\n *\r\n * @param {number} t - The percentage of interpolation, between 0 and 1.\r\n * @param {number} min - The minimum value, also known as the 'left edge', assumed smaller than the 'right edge'.\r\n * @param {number} max - The maximum value, also known as the 'right edge', assumed greater than the 'left edge'.\r\n *\r\n * @return {number} The interpolated value.\r\n */\r\nvar SmootherStepInterpolation = function (t, min, max)\r\n{\r\n return min + (max - min) * SmootherStep(t, 0, 1);\r\n};\r\n\r\nmodule.exports = SmootherStepInterpolation;\r\n\n\n/***/ }),\n\n/***/ 38289:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Math.Interpolation\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Bezier: __webpack_require__(89318),\r\n CatmullRom: __webpack_require__(77259),\r\n CubicBezier: __webpack_require__(36316),\r\n Linear: __webpack_require__(28392),\r\n QuadraticBezier: __webpack_require__(32112),\r\n SmoothStep: __webpack_require__(47235),\r\n SmootherStep: __webpack_require__(50178)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 98439:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Returns the nearest power of 2 to the given `value`.\r\n *\r\n * @function Phaser.Math.Pow2.GetNext\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The value.\r\n *\r\n * @return {number} The nearest power of 2 to `value`.\r\n */\r\nvar GetPowerOfTwo = function (value)\r\n{\r\n var index = Math.log(value) / 0.6931471805599453;\r\n\r\n return (1 << Math.ceil(index));\r\n};\r\n\r\nmodule.exports = GetPowerOfTwo;\r\n\n\n/***/ }),\n\n/***/ 50030:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Checks if the given `width` and `height` are a power of two.\r\n * Useful for checking texture dimensions.\r\n *\r\n * @function Phaser.Math.Pow2.IsSize\r\n * @since 3.0.0\r\n *\r\n * @param {number} width - The width.\r\n * @param {number} height - The height.\r\n *\r\n * @return {boolean} `true` if `width` and `height` are a power of two, otherwise `false`.\r\n */\r\nvar IsSizePowerOfTwo = function (width, height)\r\n{\r\n return (width > 0 && (width & (width - 1)) === 0 && height > 0 && (height & (height - 1)) === 0);\r\n};\r\n\r\nmodule.exports = IsSizePowerOfTwo;\r\n\n\n/***/ }),\n\n/***/ 81230:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Tests the value and returns `true` if it is a power of two.\r\n *\r\n * @function Phaser.Math.Pow2.IsValue\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The value to check if it's a power of two.\r\n *\r\n * @return {boolean} Returns `true` if `value` is a power of two, otherwise `false`.\r\n */\r\nvar IsValuePowerOfTwo = function (value)\r\n{\r\n return (value > 0 && (value & (value - 1)) === 0);\r\n};\r\n\r\nmodule.exports = IsValuePowerOfTwo;\r\n\n\n/***/ }),\n\n/***/ 49001:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Math.Pow2\r\n */\r\n\r\nmodule.exports = {\r\n\r\n GetNext: __webpack_require__(98439),\r\n IsSize: __webpack_require__(50030),\r\n IsValue: __webpack_require__(81230)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 28453:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n/**\r\n * @classdesc\r\n * A seeded Random Data Generator.\r\n *\r\n * Access via `Phaser.Math.RND` which is an instance of this class pre-defined\r\n * by Phaser. Or, create your own instance to use as you require.\r\n *\r\n * The `Math.RND` generator is seeded by the Game Config property value `seed`.\r\n * If no such config property exists, a random number is used.\r\n *\r\n * If you create your own instance of this class you should provide a seed for it.\r\n * If no seed is given it will use a 'random' one based on Date.now.\r\n *\r\n * @class RandomDataGenerator\r\n * @memberof Phaser.Math\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {(string|string[])} [seeds] - The seeds to use for the random number generator.\r\n */\r\nvar RandomDataGenerator = new Class({\r\n\r\n initialize:\r\n\r\n function RandomDataGenerator (seeds)\r\n {\r\n if (seeds === undefined) { seeds = [ (Date.now() * Math.random()).toString() ]; }\r\n\r\n /**\r\n * Internal var.\r\n *\r\n * @name Phaser.Math.RandomDataGenerator#c\r\n * @type {number}\r\n * @default 1\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this.c = 1;\r\n\r\n /**\r\n * Internal var.\r\n *\r\n * @name Phaser.Math.RandomDataGenerator#s0\r\n * @type {number}\r\n * @default 0\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this.s0 = 0;\r\n\r\n /**\r\n * Internal var.\r\n *\r\n * @name Phaser.Math.RandomDataGenerator#s1\r\n * @type {number}\r\n * @default 0\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this.s1 = 0;\r\n\r\n /**\r\n * Internal var.\r\n *\r\n * @name Phaser.Math.RandomDataGenerator#s2\r\n * @type {number}\r\n * @default 0\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this.s2 = 0;\r\n\r\n /**\r\n * Internal var.\r\n *\r\n * @name Phaser.Math.RandomDataGenerator#n\r\n * @type {number}\r\n * @default 0\r\n * @private\r\n * @since 3.2.0\r\n */\r\n this.n = 0;\r\n\r\n /**\r\n * Signs to choose from.\r\n *\r\n * @name Phaser.Math.RandomDataGenerator#signs\r\n * @type {number[]}\r\n * @since 3.0.0\r\n */\r\n this.signs = [ -1, 1 ];\r\n\r\n if (seeds)\r\n {\r\n this.init(seeds);\r\n }\r\n },\r\n\r\n /**\r\n * Private random helper.\r\n *\r\n * @method Phaser.Math.RandomDataGenerator#rnd\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @return {number} A random number.\r\n */\r\n rnd: function ()\r\n {\r\n var t = 2091639 * this.s0 + this.c * 2.3283064365386963e-10; // 2^-32\r\n\r\n this.c = t | 0;\r\n this.s0 = this.s1;\r\n this.s1 = this.s2;\r\n this.s2 = t - this.c;\r\n\r\n return this.s2;\r\n },\r\n\r\n /**\r\n * Internal method that creates a seed hash.\r\n *\r\n * @method Phaser.Math.RandomDataGenerator#hash\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {string} data - The value to hash.\r\n *\r\n * @return {number} The hashed value.\r\n */\r\n hash: function (data)\r\n {\r\n var h;\r\n var n = this.n;\r\n\r\n data = data.toString();\r\n\r\n for (var i = 0; i < data.length; i++)\r\n {\r\n n += data.charCodeAt(i);\r\n h = 0.02519603282416938 * n;\r\n n = h >>> 0;\r\n h -= n;\r\n h *= n;\r\n n = h >>> 0;\r\n h -= n;\r\n n += h * 0x100000000;// 2^32\r\n }\r\n\r\n this.n = n;\r\n\r\n return (n >>> 0) * 2.3283064365386963e-10;// 2^-32\r\n },\r\n\r\n /**\r\n * Initialize the state of the random data generator.\r\n *\r\n * @method Phaser.Math.RandomDataGenerator#init\r\n * @since 3.0.0\r\n *\r\n * @param {(string|string[])} seeds - The seeds to initialize the random data generator with.\r\n */\r\n init: function (seeds)\r\n {\r\n if (typeof seeds === 'string')\r\n {\r\n this.state(seeds);\r\n }\r\n else\r\n {\r\n this.sow(seeds);\r\n }\r\n },\r\n\r\n /**\r\n * Reset the seed of the random data generator.\r\n *\r\n * _Note_: the seed array is only processed up to the first `undefined` (or `null`) value, should such be present.\r\n *\r\n * @method Phaser.Math.RandomDataGenerator#sow\r\n * @since 3.0.0\r\n *\r\n * @param {string[]} seeds - The array of seeds: the `toString()` of each value is used.\r\n */\r\n sow: function (seeds)\r\n {\r\n // Always reset to default seed\r\n this.n = 0xefc8249d;\r\n this.s0 = this.hash(' ');\r\n this.s1 = this.hash(' ');\r\n this.s2 = this.hash(' ');\r\n this.c = 1;\r\n\r\n if (!seeds)\r\n {\r\n return;\r\n }\r\n\r\n // Apply any seeds\r\n for (var i = 0; i < seeds.length && (seeds[i] != null); i++)\r\n {\r\n var seed = seeds[i];\r\n\r\n this.s0 -= this.hash(seed);\r\n this.s0 += ~~(this.s0 < 0);\r\n this.s1 -= this.hash(seed);\r\n this.s1 += ~~(this.s1 < 0);\r\n this.s2 -= this.hash(seed);\r\n this.s2 += ~~(this.s2 < 0);\r\n }\r\n },\r\n\r\n /**\r\n * Returns a random integer between 0 and 2^32.\r\n *\r\n * @method Phaser.Math.RandomDataGenerator#integer\r\n * @since 3.0.0\r\n *\r\n * @return {number} A random integer between 0 and 2^32.\r\n */\r\n integer: function ()\r\n {\r\n // 2^32\r\n return this.rnd() * 0x100000000;\r\n },\r\n\r\n /**\r\n * Returns a random real number between 0 and 1.\r\n *\r\n * @method Phaser.Math.RandomDataGenerator#frac\r\n * @since 3.0.0\r\n *\r\n * @return {number} A random real number between 0 and 1.\r\n */\r\n frac: function ()\r\n {\r\n // 2^-53\r\n return this.rnd() + (this.rnd() * 0x200000 | 0) * 1.1102230246251565e-16;\r\n },\r\n\r\n /**\r\n * Returns a random real number between 0 and 2^32.\r\n *\r\n * @method Phaser.Math.RandomDataGenerator#real\r\n * @since 3.0.0\r\n *\r\n * @return {number} A random real number between 0 and 2^32.\r\n */\r\n real: function ()\r\n {\r\n return this.integer() + this.frac();\r\n },\r\n\r\n /**\r\n * Returns a random integer between and including min and max.\r\n *\r\n * @method Phaser.Math.RandomDataGenerator#integerInRange\r\n * @since 3.0.0\r\n *\r\n * @param {number} min - The minimum value in the range.\r\n * @param {number} max - The maximum value in the range.\r\n *\r\n * @return {number} A random number between min and max.\r\n */\r\n integerInRange: function (min, max)\r\n {\r\n return Math.floor(this.realInRange(0, max - min + 1) + min);\r\n },\r\n\r\n /**\r\n * Returns a random integer between and including min and max.\r\n * This method is an alias for RandomDataGenerator.integerInRange.\r\n *\r\n * @method Phaser.Math.RandomDataGenerator#between\r\n * @since 3.0.0\r\n *\r\n * @param {number} min - The minimum value in the range.\r\n * @param {number} max - The maximum value in the range.\r\n *\r\n * @return {number} A random number between min and max.\r\n */\r\n between: function (min, max)\r\n {\r\n return Math.floor(this.realInRange(0, max - min + 1) + min);\r\n },\r\n\r\n /**\r\n * Returns a random real number between min and max.\r\n *\r\n * @method Phaser.Math.RandomDataGenerator#realInRange\r\n * @since 3.0.0\r\n *\r\n * @param {number} min - The minimum value in the range.\r\n * @param {number} max - The maximum value in the range.\r\n *\r\n * @return {number} A random number between min and max.\r\n */\r\n realInRange: function (min, max)\r\n {\r\n return this.frac() * (max - min) + min;\r\n },\r\n\r\n /**\r\n * Returns a random real number between -1 and 1.\r\n *\r\n * @method Phaser.Math.RandomDataGenerator#normal\r\n * @since 3.0.0\r\n *\r\n * @return {number} A random real number between -1 and 1.\r\n */\r\n normal: function ()\r\n {\r\n return 1 - (2 * this.frac());\r\n },\r\n\r\n /**\r\n * Returns a valid RFC4122 version4 ID hex string from https://gist.github.com/1308368\r\n *\r\n * @method Phaser.Math.RandomDataGenerator#uuid\r\n * @since 3.0.0\r\n *\r\n * @return {string} A valid RFC4122 version4 ID hex string\r\n */\r\n uuid: function ()\r\n {\r\n var a = '';\r\n var b = '';\r\n\r\n for (b = a = ''; a++ < 36; b += ~a % 5 | a * 3 & 4 ? (a ^ 15 ? 8 ^ this.frac() * (a ^ 20 ? 16 : 4) : 4).toString(16) : '-')\r\n {\r\n // eslint-disable-next-line no-empty\r\n }\r\n\r\n return b;\r\n },\r\n\r\n /**\r\n * Returns a random element from within the given array.\r\n *\r\n * @method Phaser.Math.RandomDataGenerator#pick\r\n * @since 3.0.0\r\n *\r\n * @generic T\r\n * @genericUse {T[]} - [array]\r\n * @genericUse {T} - [$return]\r\n *\r\n * @param {T[]} array - The array to pick a random element from.\r\n *\r\n * @return {T} A random member of the array.\r\n */\r\n pick: function (array)\r\n {\r\n return array[this.integerInRange(0, array.length - 1)];\r\n },\r\n\r\n /**\r\n * Returns a sign to be used with multiplication operator.\r\n *\r\n * @method Phaser.Math.RandomDataGenerator#sign\r\n * @since 3.0.0\r\n *\r\n * @return {number} -1 or +1.\r\n */\r\n sign: function ()\r\n {\r\n return this.pick(this.signs);\r\n },\r\n\r\n /**\r\n * Returns a random element from within the given array, favoring the earlier entries.\r\n *\r\n * @method Phaser.Math.RandomDataGenerator#weightedPick\r\n * @since 3.0.0\r\n *\r\n * @generic T\r\n * @genericUse {T[]} - [array]\r\n * @genericUse {T} - [$return]\r\n *\r\n * @param {T[]} array - The array to pick a random element from.\r\n *\r\n * @return {T} A random member of the array.\r\n */\r\n weightedPick: function (array)\r\n {\r\n return array[~~(Math.pow(this.frac(), 2) * (array.length - 0.5) + 0.5)];\r\n },\r\n\r\n /**\r\n * Returns a random timestamp between min and max, or between the beginning of 2000 and the end of 2020 if min and max aren't specified.\r\n *\r\n * @method Phaser.Math.RandomDataGenerator#timestamp\r\n * @since 3.0.0\r\n *\r\n * @param {number} min - The minimum value in the range.\r\n * @param {number} max - The maximum value in the range.\r\n *\r\n * @return {number} A random timestamp between min and max.\r\n */\r\n timestamp: function (min, max)\r\n {\r\n return this.realInRange(min || 946684800000, max || 1577862000000);\r\n },\r\n\r\n /**\r\n * Returns a random angle between -180 and 180.\r\n *\r\n * @method Phaser.Math.RandomDataGenerator#angle\r\n * @since 3.0.0\r\n *\r\n * @return {number} A random number between -180 and 180.\r\n */\r\n angle: function ()\r\n {\r\n return this.integerInRange(-180, 180);\r\n },\r\n\r\n /**\r\n * Returns a random rotation in radians, between -3.141 and 3.141\r\n *\r\n * @method Phaser.Math.RandomDataGenerator#rotation\r\n * @since 3.0.0\r\n *\r\n * @return {number} A random number between -3.141 and 3.141\r\n */\r\n rotation: function ()\r\n {\r\n return this.realInRange(-3.1415926, 3.1415926);\r\n },\r\n\r\n /**\r\n * Gets or Sets the state of the generator. This allows you to retain the values\r\n * that the generator is using between games, i.e. in a game save file.\r\n *\r\n * To seed this generator with a previously saved state you can pass it as the\r\n * `seed` value in your game config, or call this method directly after Phaser has booted.\r\n *\r\n * Call this method with no parameters to return the current state.\r\n *\r\n * If providing a state it should match the same format that this method\r\n * returns, which is a string with a header `!rnd` followed by the `c`,\r\n * `s0`, `s1` and `s2` values respectively, each comma-delimited.\r\n *\r\n * @method Phaser.Math.RandomDataGenerator#state\r\n * @since 3.0.0\r\n *\r\n * @param {string} [state] - Generator state to be set.\r\n *\r\n * @return {string} The current state of the generator.\r\n */\r\n state: function (state)\r\n {\r\n if (typeof state === 'string' && state.match(/^!rnd/))\r\n {\r\n state = state.split(',');\r\n\r\n this.c = parseFloat(state[1]);\r\n this.s0 = parseFloat(state[2]);\r\n this.s1 = parseFloat(state[3]);\r\n this.s2 = parseFloat(state[4]);\r\n }\r\n\r\n return [ '!rnd', this.c, this.s0, this.s1, this.s2 ].join(',');\r\n },\r\n\r\n /**\r\n * Shuffles the given array, using the current seed.\r\n *\r\n * @method Phaser.Math.RandomDataGenerator#shuffle\r\n * @since 3.7.0\r\n *\r\n * @generic T\r\n * @genericUse {T[]} - [array,$return]\r\n *\r\n * @param {T[]} [array] - The array to be shuffled.\r\n *\r\n * @return {T[]} The shuffled array.\r\n */\r\n shuffle: function (array)\r\n {\r\n var len = array.length - 1;\r\n\r\n for (var i = len; i > 0; i--)\r\n {\r\n var randomIndex = Math.floor(this.frac() * (i + 1));\r\n var itemAtIndex = array[randomIndex];\r\n\r\n array[randomIndex] = array[i];\r\n array[i] = itemAtIndex;\r\n }\r\n\r\n return array;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = RandomDataGenerator;\r\n\n\n/***/ }),\n\n/***/ 63448:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Snap a value to nearest grid slice, using ceil.\r\n *\r\n * Example: if you have an interval gap of `5` and a position of `12`... you will snap to `15`.\r\n * As will `14` snap to `15`... but `16` will snap to `20`.\r\n *\r\n * @function Phaser.Math.Snap.Ceil\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The value to snap.\r\n * @param {number} gap - The interval gap of the grid.\r\n * @param {number} [start=0] - Optional starting offset for gap.\r\n * @param {boolean} [divide=false] - If `true` it will divide the snapped value by the gap before returning.\r\n *\r\n * @return {number} The snapped value.\r\n */\r\nvar SnapCeil = function (value, gap, start, divide)\r\n{\r\n if (start === undefined) { start = 0; }\r\n\r\n if (gap === 0)\r\n {\r\n return value;\r\n }\r\n\r\n value -= start;\r\n value = gap * Math.ceil(value / gap);\r\n\r\n return (divide) ? (start + value) / gap : start + value;\r\n};\r\n\r\nmodule.exports = SnapCeil;\r\n\n\n/***/ }),\n\n/***/ 56583:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Snap a value to nearest grid slice, using floor.\r\n *\r\n * Example: if you have an interval gap of `5` and a position of `12`... you will snap to `10`.\r\n * As will `14` snap to `10`... but `16` will snap to `15`.\r\n *\r\n * @function Phaser.Math.Snap.Floor\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The value to snap.\r\n * @param {number} gap - The interval gap of the grid.\r\n * @param {number} [start=0] - Optional starting offset for gap.\r\n * @param {boolean} [divide=false] - If `true` it will divide the snapped value by the gap before returning.\r\n *\r\n * @return {number} The snapped value.\r\n */\r\nvar SnapFloor = function (value, gap, start, divide)\r\n{\r\n if (start === undefined) { start = 0; }\r\n\r\n if (gap === 0)\r\n {\r\n return value;\r\n }\r\n\r\n value -= start;\r\n value = gap * Math.floor(value / gap);\r\n\r\n return (divide) ? (start + value) / gap : start + value;\r\n};\r\n\r\nmodule.exports = SnapFloor;\r\n\n\n/***/ }),\n\n/***/ 77720:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Snap a value to nearest grid slice, using rounding.\r\n *\r\n * Example: if you have an interval gap of `5` and a position of `12`... you will snap to `10` whereas `14` will snap to `15`.\r\n *\r\n * @function Phaser.Math.Snap.To\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The value to snap.\r\n * @param {number} gap - The interval gap of the grid.\r\n * @param {number} [start=0] - Optional starting offset for gap.\r\n * @param {boolean} [divide=false] - If `true` it will divide the snapped value by the gap before returning.\r\n *\r\n * @return {number} The snapped value.\r\n */\r\nvar SnapTo = function (value, gap, start, divide)\r\n{\r\n if (start === undefined) { start = 0; }\r\n\r\n if (gap === 0)\r\n {\r\n return value;\r\n }\r\n\r\n value -= start;\r\n value = gap * Math.round(value / gap);\r\n\r\n return (divide) ? (start + value) / gap : start + value;\r\n};\r\n\r\nmodule.exports = SnapTo;\r\n\n\n/***/ }),\n\n/***/ 73697:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Math.Snap\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Ceil: __webpack_require__(63448),\r\n Floor: __webpack_require__(56583),\r\n To: __webpack_require__(77720)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 85454:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n__webpack_require__(63595);\r\n\r\nvar CONST = __webpack_require__(8054);\r\nvar Extend = __webpack_require__(79291);\r\n\r\n/**\r\n * @namespace Phaser\r\n */\r\n\r\nvar Phaser = {\r\n\r\n Actions: __webpack_require__(61061),\r\n Animations: __webpack_require__(60421),\r\n BlendModes: __webpack_require__(10312),\r\n Cache: __webpack_require__(83388),\r\n Cameras: __webpack_require__(26638),\r\n Core: __webpack_require__(42857),\r\n Class: __webpack_require__(83419),\r\n Create: __webpack_require__(15822),\r\n Curves: __webpack_require__(25410),\r\n Data: __webpack_require__(44965),\r\n Display: __webpack_require__(27460),\r\n DOM: __webpack_require__(84902),\r\n Events: __webpack_require__(93055),\r\n FX: __webpack_require__(66064),\r\n Game: __webpack_require__(50127),\r\n GameObjects: __webpack_require__(77856),\r\n Geom: __webpack_require__(55738),\r\n Input: __webpack_require__(14350),\r\n Loader: __webpack_require__(57777),\r\n Math: __webpack_require__(75508),\r\n Physics: __webpack_require__(44563),\r\n Plugins: __webpack_require__(18922),\r\n Renderer: __webpack_require__(36909),\r\n Scale: __webpack_require__(93364),\r\n ScaleModes: __webpack_require__(29795),\r\n Scene: __webpack_require__(97482),\r\n Scenes: __webpack_require__(62194),\r\n Structs: __webpack_require__(41392),\r\n Textures: __webpack_require__(27458),\r\n Tilemaps: __webpack_require__(62501),\r\n Time: __webpack_require__(90291),\r\n Tweens: __webpack_require__(43066),\r\n Utils: __webpack_require__(91799)\r\n\r\n};\r\n\r\n// Merge in the optional plugins and WebGL only features\r\n\r\nif (true)\r\n{\r\n Phaser.Sound = __webpack_require__(23717);\r\n}\r\n\r\nif (false)\r\n{}\r\n\r\nif (false)\r\n{}\r\n\r\n// Merge in the consts\r\n\r\nPhaser = Extend(false, Phaser, CONST);\r\n\r\n/**\r\n * The root types namespace.\r\n *\r\n * @namespace Phaser.Types\r\n * @since 3.17.0\r\n */\r\n\r\n// Export it\r\n\r\nmodule.exports = Phaser;\r\n\r\n__webpack_require__.g.Phaser = Phaser;\r\n\r\n/*\r\n * \"Documentation is like pizza: when it is good, it is very, very good;\r\n * and when it is bad, it is better than nothing.\"\r\n * -- Dick Brandon\r\n */\r\n\n\n/***/ }),\n\n/***/ 71289:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(92209);\r\nvar Image = __webpack_require__(88571);\r\n\r\n/**\r\n * @classdesc\r\n * An Arcade Physics Image is an Image with an Arcade Physics body and related components.\r\n * The body can be dynamic or static.\r\n *\r\n * The main difference between an Arcade Image and an Arcade Sprite is that you cannot animate an Arcade Image.\r\n *\r\n * @class Image\r\n * @extends Phaser.GameObjects.Image\r\n * @memberof Phaser.Physics.Arcade\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @extends Phaser.Physics.Arcade.Components.Acceleration\r\n * @extends Phaser.Physics.Arcade.Components.Angular\r\n * @extends Phaser.Physics.Arcade.Components.Bounce\r\n * @extends Phaser.Physics.Arcade.Components.Collision\r\n * @extends Phaser.Physics.Arcade.Components.Debug\r\n * @extends Phaser.Physics.Arcade.Components.Drag\r\n * @extends Phaser.Physics.Arcade.Components.Enable\r\n * @extends Phaser.Physics.Arcade.Components.Friction\r\n * @extends Phaser.Physics.Arcade.Components.Gravity\r\n * @extends Phaser.Physics.Arcade.Components.Immovable\r\n * @extends Phaser.Physics.Arcade.Components.Mass\r\n * @extends Phaser.Physics.Arcade.Components.Pushable\r\n * @extends Phaser.Physics.Arcade.Components.Size\r\n * @extends Phaser.Physics.Arcade.Components.Velocity\r\n * @extends Phaser.GameObjects.Components.Alpha\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.Flip\r\n * @extends Phaser.GameObjects.Components.GetBounds\r\n * @extends Phaser.GameObjects.Components.Mask\r\n * @extends Phaser.GameObjects.Components.Origin\r\n * @extends Phaser.GameObjects.Components.Pipeline\r\n * @extends Phaser.GameObjects.Components.PostPipeline\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n * @extends Phaser.GameObjects.Components.Size\r\n * @extends Phaser.GameObjects.Components.Texture\r\n * @extends Phaser.GameObjects.Components.Tint\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {(string|Phaser.Textures.Texture)} texture - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - An optional frame from the Texture this Game Object is rendering with.\r\n */\r\nvar ArcadeImage = new Class({\r\n\r\n Extends: Image,\r\n\r\n Mixins: [\r\n Components.Acceleration,\r\n Components.Angular,\r\n Components.Bounce,\r\n Components.Collision,\r\n Components.Debug,\r\n Components.Drag,\r\n Components.Enable,\r\n Components.Friction,\r\n Components.Gravity,\r\n Components.Immovable,\r\n Components.Mass,\r\n Components.Pushable,\r\n Components.Size,\r\n Components.Velocity\r\n ],\r\n\r\n initialize:\r\n\r\n function ArcadeImage (scene, x, y, texture, frame)\r\n {\r\n Image.call(this, scene, x, y, texture, frame);\r\n\r\n /**\r\n * This Game Object's Physics Body.\r\n *\r\n * @name Phaser.Physics.Arcade.Image#body\r\n * @type {?(Phaser.Physics.Arcade.Body|Phaser.Physics.Arcade.StaticBody)}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.body = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = ArcadeImage;\r\n\n\n/***/ }),\n\n/***/ 86689:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar DegToRad = __webpack_require__(39506);\r\nvar DistanceBetween = __webpack_require__(20339);\r\nvar DistanceSquared = __webpack_require__(89774);\r\nvar Factory = __webpack_require__(66022);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar Merge = __webpack_require__(46975);\r\nvar OverlapCirc = __webpack_require__(72441);\r\nvar OverlapRect = __webpack_require__(47956);\r\nvar PluginCache = __webpack_require__(37277);\r\nvar SceneEvents = __webpack_require__(44594);\r\nvar Vector2 = __webpack_require__(26099);\r\nvar World = __webpack_require__(82248);\r\n\r\n/**\r\n * @classdesc\r\n * The Arcade Physics Plugin belongs to a Scene and sets up and manages the Scene's physics simulation.\r\n * It also holds some useful methods for moving and rotating Arcade Physics Bodies.\r\n *\r\n * You can access it from within a Scene using `this.physics`.\r\n *\r\n * Arcade Physics uses the Projection Method of collision resolution and separation. While it's fast and suitable\r\n * for 'arcade' style games it lacks stability when multiple objects are in close proximity or resting upon each other.\r\n * The separation that stops two objects penetrating may create a new penetration against a different object. If you\r\n * require a high level of stability please consider using an alternative physics system, such as Matter.js.\r\n *\r\n * @class ArcadePhysics\r\n * @memberof Phaser.Physics.Arcade\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene that this Plugin belongs to.\r\n */\r\nvar ArcadePhysics = new Class({\r\n\r\n initialize:\r\n\r\n function ArcadePhysics (scene)\r\n {\r\n /**\r\n * The Scene that this Plugin belongs to.\r\n *\r\n * @name Phaser.Physics.Arcade.ArcadePhysics#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.0.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * The Scene's Systems.\r\n *\r\n * @name Phaser.Physics.Arcade.ArcadePhysics#systems\r\n * @type {Phaser.Scenes.Systems}\r\n * @since 3.0.0\r\n */\r\n this.systems = scene.sys;\r\n\r\n /**\r\n * A configuration object. Union of the `physics.arcade.*` properties of the GameConfig and SceneConfig objects.\r\n *\r\n * @name Phaser.Physics.Arcade.ArcadePhysics#config\r\n * @type {Phaser.Types.Physics.Arcade.ArcadeWorldConfig}\r\n * @since 3.0.0\r\n */\r\n this.config = this.getConfig();\r\n\r\n /**\r\n * The physics simulation.\r\n *\r\n * @name Phaser.Physics.Arcade.ArcadePhysics#world\r\n * @type {Phaser.Physics.Arcade.World}\r\n * @since 3.0.0\r\n */\r\n this.world;\r\n\r\n /**\r\n * An object holding the Arcade Physics factory methods.\r\n *\r\n * @name Phaser.Physics.Arcade.ArcadePhysics#add\r\n * @type {Phaser.Physics.Arcade.Factory}\r\n * @since 3.0.0\r\n */\r\n this.add;\r\n\r\n /**\r\n * Holds the internal collision filter category.\r\n *\r\n * @name Phaser.Physics.Arcade.World#_category\r\n * @private\r\n * @type {number}\r\n * @since 3.70.0\r\n */\r\n this._category = 0x0001;\r\n\r\n scene.sys.events.once(SceneEvents.BOOT, this.boot, this);\r\n scene.sys.events.on(SceneEvents.START, this.start, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically, only once, when the Scene is first created.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#boot\r\n * @private\r\n * @since 3.5.1\r\n */\r\n boot: function ()\r\n {\r\n this.world = new World(this.scene, this.config);\r\n this.add = new Factory(this.world);\r\n\r\n this.systems.events.once(SceneEvents.DESTROY, this.destroy, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically by the Scene when it is starting up.\r\n * It is responsible for creating local systems, properties and listening for Scene events.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#start\r\n * @private\r\n * @since 3.5.0\r\n */\r\n start: function ()\r\n {\r\n if (!this.world)\r\n {\r\n this.world = new World(this.scene, this.config);\r\n this.add = new Factory(this.world);\r\n }\r\n\r\n var eventEmitter = this.systems.events;\r\n\r\n if (!GetFastValue(this.config, 'customUpdate', false))\r\n {\r\n eventEmitter.on(SceneEvents.UPDATE, this.world.update, this.world);\r\n }\r\n\r\n eventEmitter.on(SceneEvents.POST_UPDATE, this.world.postUpdate, this.world);\r\n eventEmitter.once(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * Causes `World.update` to be automatically called each time the Scene\r\n * emits and `UPDATE` event. This is the default setting, so only needs\r\n * calling if you have specifically disabled it.\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#enableUpdate\r\n * @since 3.50.0\r\n */\r\n enableUpdate: function ()\r\n {\r\n this.systems.events.on(SceneEvents.UPDATE, this.world.update, this.world);\r\n },\r\n\r\n /**\r\n * Causes `World.update` to **not** be automatically called each time the Scene\r\n * emits and `UPDATE` event.\r\n *\r\n * If you wish to run the World update at your own rate, or from your own\r\n * component, then you should call this method to disable the built-in link,\r\n * and then call `World.update(delta, time)` accordingly.\r\n *\r\n * Note that `World.postUpdate` is always automatically called when the Scene\r\n * emits a `POST_UPDATE` event, regardless of this setting.\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#disableUpdate\r\n * @since 3.50.0\r\n */\r\n disableUpdate: function ()\r\n {\r\n this.systems.events.off(SceneEvents.UPDATE, this.world.update, this.world);\r\n },\r\n\r\n /**\r\n * Creates the physics configuration for the current Scene.\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#getConfig\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Types.Physics.Arcade.ArcadeWorldConfig} The physics configuration.\r\n */\r\n getConfig: function ()\r\n {\r\n var gameConfig = this.systems.game.config.physics;\r\n var sceneConfig = this.systems.settings.physics;\r\n\r\n var config = Merge(\r\n GetFastValue(sceneConfig, 'arcade', {}),\r\n GetFastValue(gameConfig, 'arcade', {})\r\n );\r\n\r\n return config;\r\n },\r\n\r\n /**\r\n * Returns the next available collision category.\r\n *\r\n * You can have a maximum of 32 categories.\r\n *\r\n * By default all bodies collide with all other bodies.\r\n *\r\n * Use the `Body.setCollisionCategory()` and\r\n * `Body.setCollidesWith()` methods to change this.\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#nextCategory\r\n * @since 3.70.0\r\n *\r\n * @return {number} The next collision category.\r\n */\r\n nextCategory: function ()\r\n {\r\n this._category = this._category << 1;\r\n\r\n return this._category;\r\n },\r\n\r\n /**\r\n * Tests if Game Objects overlap. See {@link Phaser.Physics.Arcade.World#overlap}\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#overlap\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeColliderType} object1 - The first object or array of objects to check.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeColliderType} [object2] - The second object or array of objects to check, or `undefined`.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [overlapCallback] - An optional callback function that is called if the objects overlap.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [processCallback] - An optional callback function that lets you perform additional checks against the two objects if they overlap. If this is set then `collideCallback` will only be called if this callback returns `true`.\r\n * @param {*} [callbackContext] - The context in which to run the callbacks.\r\n *\r\n * @return {boolean} True if at least one Game Object overlaps another.\r\n *\r\n * @see Phaser.Physics.Arcade.World#overlap\r\n */\r\n overlap: function (object1, object2, overlapCallback, processCallback, callbackContext)\r\n {\r\n if (overlapCallback === undefined) { overlapCallback = null; }\r\n if (processCallback === undefined) { processCallback = null; }\r\n if (callbackContext === undefined) { callbackContext = overlapCallback; }\r\n\r\n return this.world.collideObjects(object1, object2, overlapCallback, processCallback, callbackContext, true);\r\n },\r\n\r\n /**\r\n * Performs a collision check and separation between the two physics enabled objects given, which can be single\r\n * Game Objects, arrays of Game Objects, Physics Groups, arrays of Physics Groups or normal Groups.\r\n *\r\n * If you don't require separation then use {@link #overlap} instead.\r\n *\r\n * If two Groups or arrays are passed, each member of one will be tested against each member of the other.\r\n *\r\n * If **only** one Group is passed (as `object1`), each member of the Group will be collided against the other members.\r\n *\r\n * If **only** one Array is passed, the array is iterated and every element in it is tested against the others.\r\n *\r\n * Two callbacks can be provided. The `collideCallback` is invoked if a collision occurs and the two colliding\r\n * objects are passed to it.\r\n *\r\n * Arcade Physics uses the Projection Method of collision resolution and separation. While it's fast and suitable\r\n * for 'arcade' style games it lacks stability when multiple objects are in close proximity or resting upon each other.\r\n * The separation that stops two objects penetrating may create a new penetration against a different object. If you\r\n * require a high level of stability please consider using an alternative physics system, such as Matter.js.\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#collide\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeColliderType} object1 - The first object or array of objects to check.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeColliderType} [object2] - The second object or array of objects to check, or `undefined`.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [collideCallback] - An optional callback function that is called if the objects collide.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [processCallback] - An optional callback function that lets you perform additional checks against the two objects if they collide. If this is set then `collideCallback` will only be called if this callback returns `true`.\r\n * @param {*} [callbackContext] - The context in which to run the callbacks.\r\n *\r\n * @return {boolean} True if any overlapping Game Objects were separated, otherwise false.\r\n *\r\n * @see Phaser.Physics.Arcade.World#collide\r\n */\r\n collide: function (object1, object2, collideCallback, processCallback, callbackContext)\r\n {\r\n if (collideCallback === undefined) { collideCallback = null; }\r\n if (processCallback === undefined) { processCallback = null; }\r\n if (callbackContext === undefined) { callbackContext = collideCallback; }\r\n\r\n return this.world.collideObjects(object1, object2, collideCallback, processCallback, callbackContext, false);\r\n },\r\n\r\n /**\r\n * This advanced method is specifically for testing for collision between a single Sprite and an array of Tile objects.\r\n *\r\n * You should generally use the `collide` method instead, with a Sprite vs. a Tilemap Layer, as that will perform\r\n * tile filtering and culling for you, as well as handle the interesting face collision automatically.\r\n *\r\n * This method is offered for those who would like to check for collision with specific Tiles in a layer, without\r\n * having to set any collision attributes on the tiles in question. This allows you to perform quick dynamic collisions\r\n * on small sets of Tiles. As such, no culling or checks are made to the array of Tiles given to this method,\r\n * you should filter them before passing them to this method.\r\n *\r\n * Important: Use of this method skips the `interesting faces` system that Tilemap Layers use. This means if you have\r\n * say a row or column of tiles, and you jump into, or walk over them, it's possible to get stuck on the edges of the\r\n * tiles as the interesting face calculations are skipped. However, for quick-fire small collision set tests on\r\n * dynamic maps, this method can prove very useful.\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#collideTiles\r\n * @fires Phaser.Physics.Arcade.Events#TILE_COLLIDE\r\n * @since 3.17.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} sprite - The first object to check for collision.\r\n * @param {Phaser.Tilemaps.Tile[]} tiles - An array of Tiles to check for collision against.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [collideCallback] - An optional callback function that is called if the objects collide.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [processCallback] - An optional callback function that lets you perform additional checks against the two objects if they collide. If this is set then `collideCallback` will only be called if this callback returns `true`.\r\n * @param {any} [callbackContext] - The context in which to run the callbacks.\r\n *\r\n * @return {boolean} True if any objects overlap (with `overlapOnly`); or true if any overlapping objects were separated.\r\n */\r\n collideTiles: function (sprite, tiles, collideCallback, processCallback, callbackContext)\r\n {\r\n return this.world.collideTiles(sprite, tiles, collideCallback, processCallback, callbackContext);\r\n },\r\n\r\n /**\r\n * This advanced method is specifically for testing for overlaps between a single Sprite and an array of Tile objects.\r\n *\r\n * You should generally use the `overlap` method instead, with a Sprite vs. a Tilemap Layer, as that will perform\r\n * tile filtering and culling for you, as well as handle the interesting face collision automatically.\r\n *\r\n * This method is offered for those who would like to check for overlaps with specific Tiles in a layer, without\r\n * having to set any collision attributes on the tiles in question. This allows you to perform quick dynamic overlap\r\n * tests on small sets of Tiles. As such, no culling or checks are made to the array of Tiles given to this method,\r\n * you should filter them before passing them to this method.\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#overlapTiles\r\n * @fires Phaser.Physics.Arcade.Events#TILE_OVERLAP\r\n * @since 3.17.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} sprite - The first object to check for collision.\r\n * @param {Phaser.Tilemaps.Tile[]} tiles - An array of Tiles to check for collision against.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [collideCallback] - An optional callback function that is called if the objects overlap.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [processCallback] - An optional callback function that lets you perform additional checks against the two objects if they collide. If this is set then `collideCallback` will only be called if this callback returns `true`.\r\n * @param {any} [callbackContext] - The context in which to run the callbacks.\r\n *\r\n * @return {boolean} True if any objects overlap (with `overlapOnly`); or true if any overlapping objects were separated.\r\n */\r\n overlapTiles: function (sprite, tiles, collideCallback, processCallback, callbackContext)\r\n {\r\n return this.world.overlapTiles(sprite, tiles, collideCallback, processCallback, callbackContext);\r\n },\r\n\r\n /**\r\n * Pauses the simulation.\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#pause\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Physics.Arcade.World} The simulation.\r\n */\r\n pause: function ()\r\n {\r\n return this.world.pause();\r\n },\r\n\r\n /**\r\n * Resumes the simulation (if paused).\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#resume\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Physics.Arcade.World} The simulation.\r\n */\r\n resume: function ()\r\n {\r\n return this.world.resume();\r\n },\r\n\r\n /**\r\n * Sets the acceleration.x/y property on the game object so it will move towards the x/y coordinates at the given rate (in pixels per second squared)\r\n *\r\n * You must give a maximum speed value, beyond which the game object won't go any faster.\r\n *\r\n * Note: The game object does not continuously track the target. If the target changes location during transit the game object will not modify its course.\r\n * Note: The game object doesn't stop moving once it reaches the destination coordinates.\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#accelerateTo\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - Any Game Object with an Arcade Physics body.\r\n * @param {number} x - The x coordinate to accelerate towards.\r\n * @param {number} y - The y coordinate to accelerate towards.\r\n * @param {number} [speed=60] - The acceleration (change in speed) in pixels per second squared.\r\n * @param {number} [xSpeedMax=500] - The maximum x velocity the game object can reach.\r\n * @param {number} [ySpeedMax=500] - The maximum y velocity the game object can reach.\r\n *\r\n * @return {number} The angle (in radians) that the object should be visually set to in order to match its new velocity.\r\n */\r\n accelerateTo: function (gameObject, x, y, speed, xSpeedMax, ySpeedMax)\r\n {\r\n if (speed === undefined) { speed = 60; }\r\n\r\n var angle = Math.atan2(y - gameObject.y, x - gameObject.x);\r\n\r\n gameObject.body.acceleration.setToPolar(angle, speed);\r\n\r\n if (xSpeedMax !== undefined && ySpeedMax !== undefined)\r\n {\r\n gameObject.body.maxVelocity.set(xSpeedMax, ySpeedMax);\r\n }\r\n\r\n return angle;\r\n },\r\n\r\n /**\r\n * Sets the acceleration.x/y property on the game object so it will move towards the x/y coordinates at the given rate (in pixels per second squared)\r\n *\r\n * You must give a maximum speed value, beyond which the game object won't go any faster.\r\n *\r\n * Note: The game object does not continuously track the target. If the target changes location during transit the game object will not modify its course.\r\n * Note: The game object doesn't stop moving once it reaches the destination coordinates.\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#accelerateToObject\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - Any Game Object with an Arcade Physics body.\r\n * @param {Phaser.GameObjects.GameObject} destination - The Game Object to move towards. Can be any object but must have visible x/y properties.\r\n * @param {number} [speed=60] - The acceleration (change in speed) in pixels per second squared.\r\n * @param {number} [xSpeedMax=500] - The maximum x velocity the game object can reach.\r\n * @param {number} [ySpeedMax=500] - The maximum y velocity the game object can reach.\r\n *\r\n * @return {number} The angle (in radians) that the object should be visually set to in order to match its new velocity.\r\n */\r\n accelerateToObject: function (gameObject, destination, speed, xSpeedMax, ySpeedMax)\r\n {\r\n return this.accelerateTo(gameObject, destination.x, destination.y, speed, xSpeedMax, ySpeedMax);\r\n },\r\n\r\n /**\r\n * Finds the Body or Game Object closest to a source point or object.\r\n *\r\n * If a `targets` argument is passed, this method finds the closest of those.\r\n * The targets can be Arcade Physics Game Objects, Dynamic Bodies, or Static Bodies.\r\n *\r\n * If no `targets` argument is passed, this method finds the closest Dynamic Body.\r\n *\r\n * If two or more targets are the exact same distance from the source point, only the first target\r\n * is returned.\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#closest\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Physics.Arcade.Body|Phaser.Physics.Arcade.StaticBody|Phaser.GameObjects.GameObject} Target\r\n * @param {Phaser.Types.Math.Vector2Like} source - Any object with public `x` and `y` properties, such as a Game Object or Geometry object.\r\n * @param {Target[]} [targets] - The targets.\r\n *\r\n * @return {Target|null} The target closest to the given source point.\r\n */\r\n closest: function (source, targets)\r\n {\r\n if (!targets)\r\n {\r\n targets = this.world.bodies.entries;\r\n }\r\n\r\n var min = Number.MAX_VALUE;\r\n var closest = null;\r\n var x = source.x;\r\n var y = source.y;\r\n var len = targets.length;\r\n\r\n for (var i = 0; i < len; i++)\r\n {\r\n var target = targets[i];\r\n var body = target.body || target;\r\n\r\n if (source === target || source === body || source === body.gameObject || source === body.center)\r\n {\r\n continue;\r\n }\r\n\r\n var distance = DistanceSquared(x, y, body.center.x, body.center.y);\r\n\r\n if (distance < min)\r\n {\r\n closest = target;\r\n min = distance;\r\n }\r\n }\r\n\r\n return closest;\r\n },\r\n\r\n /**\r\n * Finds the Body or Game Object farthest from a source point or object.\r\n *\r\n * If a `targets` argument is passed, this method finds the farthest of those.\r\n * The targets can be Arcade Physics Game Objects, Dynamic Bodies, or Static Bodies.\r\n *\r\n * If no `targets` argument is passed, this method finds the farthest Dynamic Body.\r\n *\r\n * If two or more targets are the exact same distance from the source point, only the first target\r\n * is returned.\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#furthest\r\n * @since 3.0.0\r\n *\r\n * @param {any} source - Any object with public `x` and `y` properties, such as a Game Object or Geometry object.\r\n * @param {(Phaser.Physics.Arcade.Body[]|Phaser.Physics.Arcade.StaticBody[]|Phaser.GameObjects.GameObject[])} [targets] - The targets.\r\n *\r\n * @return {?(Phaser.Physics.Arcade.Body|Phaser.Physics.Arcade.StaticBody|Phaser.GameObjects.GameObject)} The target farthest from the given source point.\r\n */\r\n furthest: function (source, targets)\r\n {\r\n if (!targets)\r\n {\r\n targets = this.world.bodies.entries;\r\n }\r\n\r\n var max = -1;\r\n var farthest = null;\r\n var x = source.x;\r\n var y = source.y;\r\n var len = targets.length;\r\n\r\n for (var i = 0; i < len; i++)\r\n {\r\n var target = targets[i];\r\n var body = target.body || target;\r\n\r\n if (source === target || source === body || source === body.gameObject || source === body.center)\r\n {\r\n continue;\r\n }\r\n\r\n var distance = DistanceSquared(x, y, body.center.x, body.center.y);\r\n\r\n if (distance > max)\r\n {\r\n farthest = target;\r\n max = distance;\r\n }\r\n\r\n }\r\n\r\n return farthest;\r\n },\r\n\r\n /**\r\n * Move the given display object towards the x/y coordinates at a steady velocity.\r\n * If you specify a maxTime then it will adjust the speed (over-writing what you set) so it arrives at the destination in that number of seconds.\r\n * Timings are approximate due to the way browser timers work. Allow for a variance of +- 50ms.\r\n * Note: The display object does not continuously track the target. If the target changes location during transit the display object will not modify its course.\r\n * Note: The display object doesn't stop moving once it reaches the destination coordinates.\r\n * Note: Doesn't take into account acceleration, maxVelocity or drag (if you've set drag or acceleration too high this object may not move at all)\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#moveTo\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - Any Game Object with an Arcade Physics body.\r\n * @param {number} x - The x coordinate to move towards.\r\n * @param {number} y - The y coordinate to move towards.\r\n * @param {number} [speed=60] - The speed it will move, in pixels per second (default is 60 pixels/sec)\r\n * @param {number} [maxTime=0] - Time given in milliseconds (1000 = 1 sec). If set the speed is adjusted so the object will arrive at destination in the given number of ms.\r\n *\r\n * @return {number} The angle (in radians) that the object should be visually set to in order to match its new velocity.\r\n */\r\n moveTo: function (gameObject, x, y, speed, maxTime)\r\n {\r\n if (speed === undefined) { speed = 60; }\r\n if (maxTime === undefined) { maxTime = 0; }\r\n\r\n var angle = Math.atan2(y - gameObject.y, x - gameObject.x);\r\n\r\n if (maxTime > 0)\r\n {\r\n // We know how many pixels we need to move, but how fast?\r\n speed = DistanceBetween(gameObject.x, gameObject.y, x, y) / (maxTime / 1000);\r\n }\r\n\r\n gameObject.body.velocity.setToPolar(angle, speed);\r\n\r\n return angle;\r\n },\r\n\r\n /**\r\n * Move the given display object towards the destination object at a steady velocity.\r\n * If you specify a maxTime then it will adjust the speed (overwriting what you set) so it arrives at the destination in that number of seconds.\r\n * Timings are approximate due to the way browser timers work. Allow for a variance of +- 50ms.\r\n * Note: The display object does not continuously track the target. If the target changes location during transit the display object will not modify its course.\r\n * Note: The display object doesn't stop moving once it reaches the destination coordinates.\r\n * Note: Doesn't take into account acceleration, maxVelocity or drag (if you've set drag or acceleration too high this object may not move at all)\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#moveToObject\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - Any Game Object with an Arcade Physics body.\r\n * @param {object} destination - Any object with public `x` and `y` properties, such as a Game Object or Geometry object.\r\n * @param {number} [speed=60] - The speed it will move, in pixels per second (default is 60 pixels/sec)\r\n * @param {number} [maxTime=0] - Time given in milliseconds (1000 = 1 sec). If set the speed is adjusted so the object will arrive at destination in the given number of ms.\r\n *\r\n * @return {number} The angle (in radians) that the object should be visually set to in order to match its new velocity.\r\n */\r\n moveToObject: function (gameObject, destination, speed, maxTime)\r\n {\r\n return this.moveTo(gameObject, destination.x, destination.y, speed, maxTime);\r\n },\r\n\r\n /**\r\n * Given the angle (in degrees) and speed calculate the velocity and return it as a vector, or set it to the given vector object.\r\n * One way to use this is: velocityFromAngle(angle, 200, sprite.body.velocity) which will set the values directly to the sprite's velocity and not create a new vector object.\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#velocityFromAngle\r\n * @since 3.0.0\r\n *\r\n * @param {number} angle - The angle in degrees calculated in clockwise positive direction (down = 90 degrees positive, right = 0 degrees positive, up = 90 degrees negative)\r\n * @param {number} [speed=60] - The speed it will move, in pixels per second squared.\r\n * @param {Phaser.Math.Vector2} [vec2] - The Vector2 in which the x and y properties will be set to the calculated velocity.\r\n *\r\n * @return {Phaser.Math.Vector2} The Vector2 that stores the velocity.\r\n */\r\n velocityFromAngle: function (angle, speed, vec2)\r\n {\r\n if (speed === undefined) { speed = 60; }\r\n if (vec2 === undefined) { vec2 = new Vector2(); }\r\n\r\n return vec2.setToPolar(DegToRad(angle), speed);\r\n },\r\n\r\n /**\r\n * Given the rotation (in radians) and speed calculate the velocity and return it as a vector, or set it to the given vector object.\r\n * One way to use this is: velocityFromRotation(rotation, 200, sprite.body.velocity) which will set the values directly to the sprite's velocity and not create a new vector object.\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#velocityFromRotation\r\n * @since 3.0.0\r\n *\r\n * @param {number} rotation - The angle in radians.\r\n * @param {number} [speed=60] - The speed it will move, in pixels per second squared\r\n * @param {Phaser.Math.Vector2} [vec2] - The Vector2 in which the x and y properties will be set to the calculated velocity.\r\n *\r\n * @return {Phaser.Math.Vector2} The Vector2 that stores the velocity.\r\n */\r\n velocityFromRotation: function (rotation, speed, vec2)\r\n {\r\n if (speed === undefined) { speed = 60; }\r\n if (vec2 === undefined) { vec2 = new Vector2(); }\r\n\r\n return vec2.setToPolar(rotation, speed);\r\n },\r\n\r\n /**\r\n * This method will search the given rectangular area and return an array of all physics bodies that\r\n * overlap with it. It can return either Dynamic, Static bodies or a mixture of both.\r\n *\r\n * A body only has to intersect with the search area to be considered, it doesn't have to be fully\r\n * contained within it.\r\n *\r\n * If Arcade Physics is set to use the RTree (which it is by default) then the search for is extremely fast,\r\n * otherwise the search is O(N) for Dynamic Bodies.\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#overlapRect\r\n * @since 3.17.0\r\n *\r\n * @param {number} x - The top-left x coordinate of the area to search within.\r\n * @param {number} y - The top-left y coordinate of the area to search within.\r\n * @param {number} width - The width of the area to search within.\r\n * @param {number} height - The height of the area to search within.\r\n * @param {boolean} [includeDynamic=true] - Should the search include Dynamic Bodies?\r\n * @param {boolean} [includeStatic=false] - Should the search include Static Bodies?\r\n *\r\n * @return {(Phaser.Physics.Arcade.Body[]|Phaser.Physics.Arcade.StaticBody[])} An array of bodies that overlap with the given area.\r\n */\r\n overlapRect: function (x, y, width, height, includeDynamic, includeStatic)\r\n {\r\n return OverlapRect(this.world, x, y, width, height, includeDynamic, includeStatic);\r\n },\r\n\r\n /**\r\n * This method will search the given circular area and return an array of all physics bodies that\r\n * overlap with it. It can return either Dynamic, Static bodies or a mixture of both.\r\n *\r\n * A body only has to intersect with the search area to be considered, it doesn't have to be fully\r\n * contained within it.\r\n *\r\n * If Arcade Physics is set to use the RTree (which it is by default) then the search is rather fast,\r\n * otherwise the search is O(N) for Dynamic Bodies.\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#overlapCirc\r\n * @since 3.21.0\r\n *\r\n * @param {number} x - The x coordinate of the center of the area to search within.\r\n * @param {number} y - The y coordinate of the center of the area to search within.\r\n * @param {number} radius - The radius of the area to search within.\r\n * @param {boolean} [includeDynamic=true] - Should the search include Dynamic Bodies?\r\n * @param {boolean} [includeStatic=false] - Should the search include Static Bodies?\r\n *\r\n * @return {(Phaser.Physics.Arcade.Body[]|Phaser.Physics.Arcade.StaticBody[])} An array of bodies that overlap with the given area.\r\n */\r\n overlapCirc: function (x, y, radius, includeDynamic, includeStatic)\r\n {\r\n return OverlapCirc(this.world, x, y, radius, includeDynamic, includeStatic);\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is shutting down.\r\n * We need to kill and reset all internal properties as well as stop listening to Scene events.\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#shutdown\r\n * @since 3.0.0\r\n */\r\n shutdown: function ()\r\n {\r\n if (!this.world)\r\n {\r\n // Already destroyed\r\n return;\r\n }\r\n\r\n var eventEmitter = this.systems.events;\r\n\r\n eventEmitter.off(SceneEvents.UPDATE, this.world.update, this.world);\r\n eventEmitter.off(SceneEvents.POST_UPDATE, this.world.postUpdate, this.world);\r\n eventEmitter.off(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n\r\n this.add.destroy();\r\n this.world.destroy();\r\n\r\n this.add = null;\r\n this.world = null;\r\n this._category = 1;\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is being destroyed.\r\n * We need to shutdown and then kill off all external references.\r\n *\r\n * @method Phaser.Physics.Arcade.ArcadePhysics#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.shutdown();\r\n\r\n this.scene.sys.events.off(SceneEvents.START, this.start, this);\r\n\r\n this.scene = null;\r\n this.systems = null;\r\n }\r\n\r\n});\r\n\r\nPluginCache.register('ArcadePhysics', ArcadePhysics, 'arcadePhysics');\r\n\r\nmodule.exports = ArcadePhysics;\r\n\n\n/***/ }),\n\n/***/ 13759:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(92209);\r\nvar Sprite = __webpack_require__(68287);\r\n\r\n/**\r\n * @classdesc\r\n * An Arcade Physics Sprite is a Sprite with an Arcade Physics body and related components.\r\n * The body can be dynamic or static.\r\n *\r\n * The main difference between an Arcade Sprite and an Arcade Image is that you cannot animate an Arcade Image.\r\n * If you do not require animation then you can safely use Arcade Images instead of Arcade Sprites.\r\n *\r\n * @class Sprite\r\n * @extends Phaser.GameObjects.Sprite\r\n * @memberof Phaser.Physics.Arcade\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @extends Phaser.Physics.Arcade.Components.Acceleration\r\n * @extends Phaser.Physics.Arcade.Components.Angular\r\n * @extends Phaser.Physics.Arcade.Components.Bounce\r\n * @extends Phaser.Physics.Arcade.Components.Collision\r\n * @extends Phaser.Physics.Arcade.Components.Debug\r\n * @extends Phaser.Physics.Arcade.Components.Drag\r\n * @extends Phaser.Physics.Arcade.Components.Enable\r\n * @extends Phaser.Physics.Arcade.Components.Friction\r\n * @extends Phaser.Physics.Arcade.Components.Gravity\r\n * @extends Phaser.Physics.Arcade.Components.Immovable\r\n * @extends Phaser.Physics.Arcade.Components.Mass\r\n * @extends Phaser.Physics.Arcade.Components.Pushable\r\n * @extends Phaser.Physics.Arcade.Components.Size\r\n * @extends Phaser.Physics.Arcade.Components.Velocity\r\n * @extends Phaser.GameObjects.Components.Alpha\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.Flip\r\n * @extends Phaser.GameObjects.Components.GetBounds\r\n * @extends Phaser.GameObjects.Components.Mask\r\n * @extends Phaser.GameObjects.Components.Origin\r\n * @extends Phaser.GameObjects.Components.Pipeline\r\n * @extends Phaser.GameObjects.Components.PostPipeline\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n * @extends Phaser.GameObjects.Components.Size\r\n * @extends Phaser.GameObjects.Components.Texture\r\n * @extends Phaser.GameObjects.Components.Tint\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {(string|Phaser.Textures.Texture)} texture - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - An optional frame from the Texture this Game Object is rendering with.\r\n */\r\nvar ArcadeSprite = new Class({\r\n\r\n Extends: Sprite,\r\n\r\n Mixins: [\r\n Components.Acceleration,\r\n Components.Angular,\r\n Components.Bounce,\r\n Components.Collision,\r\n Components.Debug,\r\n Components.Drag,\r\n Components.Enable,\r\n Components.Friction,\r\n Components.Gravity,\r\n Components.Immovable,\r\n Components.Mass,\r\n Components.Pushable,\r\n Components.Size,\r\n Components.Velocity\r\n ],\r\n\r\n initialize:\r\n\r\n function ArcadeSprite (scene, x, y, texture, frame)\r\n {\r\n Sprite.call(this, scene, x, y, texture, frame);\r\n\r\n /**\r\n * This Game Object's Physics Body.\r\n *\r\n * @name Phaser.Physics.Arcade.Sprite#body\r\n * @type {?(Phaser.Physics.Arcade.Body|Phaser.Physics.Arcade.StaticBody)}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.body = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = ArcadeSprite;\r\n\n\n/***/ }),\n\n/***/ 37742:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CollisionComponent = __webpack_require__(78389);\r\nvar CONST = __webpack_require__(37747);\r\nvar Events = __webpack_require__(63012);\r\nvar RadToDeg = __webpack_require__(43396);\r\nvar Rectangle = __webpack_require__(87841);\r\nvar RectangleContains = __webpack_require__(37303);\r\nvar SetCollisionObject = __webpack_require__(95829);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * A Dynamic Arcade Body.\r\n *\r\n * Its static counterpart is {@link Phaser.Physics.Arcade.StaticBody}.\r\n *\r\n * @class Body\r\n * @memberof Phaser.Physics.Arcade\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @extends Phaser.Physics.Arcade.Components.Collision\r\n *\r\n * @param {Phaser.Physics.Arcade.World} world - The Arcade Physics simulation this Body belongs to.\r\n * @param {Phaser.GameObjects.GameObject} [gameObject] - The Game Object this Body belongs to. As of Phaser 3.60 this is now optional.\r\n */\r\nvar Body = new Class({\r\n\r\n Mixins: [\r\n CollisionComponent\r\n ],\r\n\r\n initialize:\r\n\r\n function Body (world, gameObject)\r\n {\r\n var width = 64;\r\n var height = 64;\r\n\r\n var dummyGameObject = {\r\n x: 0,\r\n y: 0,\r\n angle: 0,\r\n rotation: 0,\r\n scaleX: 1,\r\n scaleY: 1,\r\n displayOriginX: 0,\r\n displayOriginY: 0\r\n };\r\n\r\n var hasGameObject = (gameObject !== undefined);\r\n\r\n if (hasGameObject && gameObject.displayWidth)\r\n {\r\n width = gameObject.displayWidth;\r\n height = gameObject.displayHeight;\r\n }\r\n\r\n if (!hasGameObject)\r\n {\r\n gameObject = dummyGameObject;\r\n }\r\n\r\n /**\r\n * The Arcade Physics simulation this Body belongs to.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#world\r\n * @type {Phaser.Physics.Arcade.World}\r\n * @since 3.0.0\r\n */\r\n this.world = world;\r\n\r\n /**\r\n * The Game Object this Body belongs to.\r\n *\r\n * As of Phaser 3.60 this is now optional and can be undefined.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#gameObject\r\n * @type {Phaser.GameObjects.GameObject}\r\n * @since 3.0.0\r\n */\r\n this.gameObject = (hasGameObject) ? gameObject : undefined;\r\n\r\n /**\r\n * A quick-test flag that signifies this is a Body, used in the World collision handler.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#isBody\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.isBody = true;\r\n\r\n /**\r\n * Transformations applied to this Body.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#transform\r\n * @type {object}\r\n * @since 3.4.0\r\n */\r\n this.transform = {\r\n x: gameObject.x,\r\n y: gameObject.y,\r\n rotation: gameObject.angle,\r\n scaleX: gameObject.scaleX,\r\n scaleY: gameObject.scaleY,\r\n displayOriginX: gameObject.displayOriginX,\r\n displayOriginY: gameObject.displayOriginY\r\n };\r\n\r\n /**\r\n * Whether the Body is drawn to the debug display.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#debugShowBody\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.debugShowBody = world.defaults.debugShowBody;\r\n\r\n /**\r\n * Whether the Body's velocity is drawn to the debug display.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#debugShowVelocity\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.debugShowVelocity = world.defaults.debugShowVelocity;\r\n\r\n /**\r\n * The color of this Body on the debug display.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#debugBodyColor\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.debugBodyColor = world.defaults.bodyDebugColor;\r\n\r\n /**\r\n * Whether this Body is updated by the physics simulation.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#enable\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.enable = true;\r\n\r\n /**\r\n * Whether this Body is circular (true) or rectangular (false).\r\n *\r\n * @name Phaser.Physics.Arcade.Body#isCircle\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n * @see Phaser.Physics.Arcade.Body#setCircle\r\n */\r\n this.isCircle = false;\r\n\r\n /**\r\n * If this Body is circular, this is the unscaled radius of the Body, as set by setCircle(), in source pixels.\r\n * The true radius is equal to `halfWidth`.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#radius\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n * @see Phaser.Physics.Arcade.Body#setCircle\r\n */\r\n this.radius = 0;\r\n\r\n /**\r\n * The offset of this Body's position from its Game Object's position, in source pixels.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#offset\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n * @see Phaser.Physics.Arcade.Body#setOffset\r\n */\r\n this.offset = new Vector2();\r\n\r\n /**\r\n * The position of this Body within the simulation.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#position\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.position = new Vector2(\r\n gameObject.x - gameObject.scaleX * gameObject.displayOriginX,\r\n gameObject.y - gameObject.scaleY * gameObject.displayOriginY\r\n );\r\n\r\n /**\r\n * The position of this Body during the previous step.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#prev\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.prev = this.position.clone();\r\n\r\n /**\r\n * The position of this Body during the previous frame.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#prevFrame\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.20.0\r\n */\r\n this.prevFrame = this.position.clone();\r\n\r\n /**\r\n * Whether this Body's `rotation` is affected by its angular acceleration and angular velocity.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#allowRotation\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.allowRotation = true;\r\n\r\n /**\r\n * This body's rotation, in degrees, based on its angular acceleration and angular velocity.\r\n * The Body's rotation controls the `angle` of its Game Object.\r\n * It doesn't rotate the Body's own geometry, which is always an axis-aligned rectangle or a circle.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#rotation\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.rotation = gameObject.angle;\r\n\r\n /**\r\n * The Body rotation, in degrees, during the previous step.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#preRotation\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.preRotation = gameObject.angle;\r\n\r\n /**\r\n * The width of the Body, in pixels.\r\n * If the Body is circular, this is also the diameter.\r\n * If you wish to change the width use the `Body.setSize` method.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#width\r\n * @type {number}\r\n * @readonly\r\n * @default 64\r\n * @since 3.0.0\r\n */\r\n this.width = width;\r\n\r\n /**\r\n * The height of the Body, in pixels.\r\n * If the Body is circular, this is also the diameter.\r\n * If you wish to change the height use the `Body.setSize` method.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#height\r\n * @type {number}\r\n * @readonly\r\n * @default 64\r\n * @since 3.0.0\r\n */\r\n this.height = height;\r\n\r\n /**\r\n * The unscaled width of the Body, in source pixels, as set by setSize().\r\n * The default is the width of the Body's Game Object's texture frame.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#sourceWidth\r\n * @type {number}\r\n * @since 3.0.0\r\n * @see Phaser.Physics.Arcade.Body#setSize\r\n */\r\n this.sourceWidth = width;\r\n\r\n /**\r\n * The unscaled height of the Body, in source pixels, as set by setSize().\r\n * The default is the height of the Body's Game Object's texture frame.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#sourceHeight\r\n * @type {number}\r\n * @since 3.0.0\r\n * @see Phaser.Physics.Arcade.Body#setSize\r\n */\r\n this.sourceHeight = height;\r\n\r\n if (gameObject.frame)\r\n {\r\n this.sourceWidth = gameObject.frame.realWidth;\r\n this.sourceHeight = gameObject.frame.realHeight;\r\n }\r\n\r\n /**\r\n * Half the Body's width, in pixels.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#halfWidth\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.halfWidth = Math.abs(width / 2);\r\n\r\n /**\r\n * Half the Body's height, in pixels.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#halfHeight\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.halfHeight = Math.abs(height / 2);\r\n\r\n /**\r\n * The center of the Body.\r\n * The midpoint of its `position` (top-left corner) and its bottom-right corner.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#center\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.center = new Vector2(this.position.x + this.halfWidth, this.position.y + this.halfHeight);\r\n\r\n /**\r\n * The Body's velocity, in pixels per second.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#velocity\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.velocity = new Vector2();\r\n\r\n /**\r\n * The Body's change in position (due to velocity) at the last step, in pixels.\r\n *\r\n * The size of this value depends on the simulation's step rate.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#newVelocity\r\n * @type {Phaser.Math.Vector2}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.newVelocity = new Vector2();\r\n\r\n /**\r\n * The Body's absolute maximum change in position, in pixels per step.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#deltaMax\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.deltaMax = new Vector2();\r\n\r\n /**\r\n * The Body's change in velocity, in pixels per second squared.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#acceleration\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.acceleration = new Vector2();\r\n\r\n /**\r\n * Whether this Body's velocity is affected by its `drag`.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#allowDrag\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.allowDrag = true;\r\n\r\n /**\r\n * When `useDamping` is false (the default), this is absolute loss of velocity due to movement, in pixels per second squared.\r\n *\r\n * When `useDamping` is true, this is a damping multiplier between 0 and 1.\r\n * A value of 0 means the Body stops instantly.\r\n * A value of 0.01 mean the Body keeps 1% of its velocity per second, losing 99%.\r\n * A value of 0.1 means the Body keeps 10% of its velocity per second, losing 90%.\r\n * A value of 1 means the Body loses no velocity.\r\n * You can use very small values (e.g., 0.001) to stop the Body quickly.\r\n *\r\n * The x and y components are applied separately.\r\n *\r\n * Drag is applied only when `acceleration` is zero.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#drag\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.drag = new Vector2();\r\n\r\n /**\r\n * Whether this Body's position is affected by gravity (local or world).\r\n *\r\n * @name Phaser.Physics.Arcade.Body#allowGravity\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n * @see Phaser.Physics.Arcade.Body#gravity\r\n * @see Phaser.Physics.Arcade.World#gravity\r\n */\r\n this.allowGravity = true;\r\n\r\n /**\r\n * Acceleration due to gravity (specific to this Body), in pixels per second squared.\r\n * Total gravity is the sum of this vector and the simulation's `gravity`.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#gravity\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n * @see Phaser.Physics.Arcade.World#gravity\r\n */\r\n this.gravity = new Vector2();\r\n\r\n /**\r\n * Rebound following a collision, relative to 1.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#bounce\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.bounce = new Vector2();\r\n\r\n /**\r\n * Rebound following a collision with the world boundary, relative to 1.\r\n * If null, `bounce` is used instead.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#worldBounce\r\n * @type {?Phaser.Math.Vector2}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.worldBounce = null;\r\n\r\n /**\r\n * The rectangle used for world boundary collisions.\r\n *\r\n * By default it is set to the world boundary rectangle. Or, if this Body was\r\n * created by a Physics Group, then whatever rectangle that Group defined.\r\n *\r\n * You can also change it by using the `Body.setBoundsRectangle` method.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#customBoundsRectangle\r\n * @type {Phaser.Geom.Rectangle}\r\n * @since 3.20\r\n */\r\n this.customBoundsRectangle = world.bounds;\r\n\r\n /**\r\n * Whether the simulation emits a `worldbounds` event when this Body collides with the world boundary\r\n * (and `collideWorldBounds` is also true).\r\n *\r\n * @name Phaser.Physics.Arcade.Body#onWorldBounds\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n * @see Phaser.Physics.Arcade.World#WORLD_BOUNDS\r\n */\r\n this.onWorldBounds = false;\r\n\r\n /**\r\n * Whether the simulation emits a `collide` event when this Body collides with another.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#onCollide\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n * @see Phaser.Physics.Arcade.World#COLLIDE\r\n */\r\n this.onCollide = false;\r\n\r\n /**\r\n * Whether the simulation emits an `overlap` event when this Body overlaps with another.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#onOverlap\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n * @see Phaser.Physics.Arcade.World#OVERLAP\r\n */\r\n this.onOverlap = false;\r\n\r\n /**\r\n * The absolute maximum velocity of this body, in pixels per second.\r\n * The horizontal and vertical components are applied separately.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#maxVelocity\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.maxVelocity = new Vector2(10000, 10000);\r\n\r\n /**\r\n * The maximum speed this Body is allowed to reach, in pixels per second.\r\n *\r\n * If not negative it limits the scalar value of speed.\r\n *\r\n * Any negative value means no maximum is being applied (the default).\r\n *\r\n * @name Phaser.Physics.Arcade.Body#maxSpeed\r\n * @type {number}\r\n * @default -1\r\n * @since 3.16.0\r\n */\r\n this.maxSpeed = -1;\r\n\r\n /**\r\n * If this Body is `immovable` and in motion, `friction` is the proportion of this Body's motion received by the riding Body on each axis, relative to 1.\r\n * The horizontal component (x) is applied only when two colliding Bodies are separated vertically.\r\n * The vertical component (y) is applied only when two colliding Bodies are separated horizontally.\r\n * The default value (1, 0) moves the riding Body horizontally in equal proportion to this Body and vertically not at all.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#friction\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.friction = new Vector2(1, 0);\r\n\r\n /**\r\n * If this Body is using `drag` for deceleration this property controls how the drag is applied.\r\n * If set to `true` drag will use a damping effect rather than a linear approach. If you are\r\n * creating a game where the Body moves freely at any angle (i.e. like the way the ship moves in\r\n * the game Asteroids) then you will get a far smoother and more visually correct deceleration\r\n * by using damping, avoiding the axis-drift that is prone with linear deceleration.\r\n *\r\n * If you enable this property then you should use far smaller `drag` values than with linear, as\r\n * they are used as a multiplier on the velocity. Values such as 0.05 will give a nice slow\r\n * deceleration.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#useDamping\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.10.0\r\n */\r\n this.useDamping = false;\r\n\r\n /**\r\n * The rate of change of this Body's `rotation`, in degrees per second.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#angularVelocity\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.angularVelocity = 0;\r\n\r\n /**\r\n * The Body's angular acceleration (change in angular velocity), in degrees per second squared.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#angularAcceleration\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.angularAcceleration = 0;\r\n\r\n /**\r\n * Loss of angular velocity due to angular movement, in degrees per second.\r\n *\r\n * Angular drag is applied only when angular acceleration is zero.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#angularDrag\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.angularDrag = 0;\r\n\r\n /**\r\n * The Body's maximum angular velocity, in degrees per second.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#maxAngular\r\n * @type {number}\r\n * @default 1000\r\n * @since 3.0.0\r\n */\r\n this.maxAngular = 1000;\r\n\r\n /**\r\n * The Body's inertia, relative to a default unit (1).\r\n * With `bounce`, this affects the exchange of momentum (velocities) during collisions.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#mass\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n this.mass = 1;\r\n\r\n /**\r\n * The calculated angle of this Body's velocity vector, in radians, during the last step.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#angle\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.angle = 0;\r\n\r\n /**\r\n * The calculated magnitude of the Body's velocity, in pixels per second, during the last step.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#speed\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.speed = 0;\r\n\r\n /**\r\n * The direction of the Body's velocity, as calculated during the last step.\r\n * This is a numeric constant value (FACING_UP, FACING_DOWN, FACING_LEFT, FACING_RIGHT).\r\n * If the Body is moving on both axes, this describes motion on the vertical axis only.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#facing\r\n * @type {number}\r\n * @since 3.0.0\r\n *\r\n * @see Phaser.Physics.Arcade.FACING_UP\r\n * @see Phaser.Physics.Arcade.FACING_DOWN\r\n * @see Phaser.Physics.Arcade.FACING_LEFT\r\n * @see Phaser.Physics.Arcade.FACING_RIGHT\r\n */\r\n this.facing = CONST.FACING_NONE;\r\n\r\n /**\r\n * Whether this Body can be moved by collisions with another Body.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#immovable\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.immovable = false;\r\n\r\n /**\r\n * Sets if this Body can be pushed by another Body.\r\n *\r\n * A body that cannot be pushed will reflect back all of the velocity it is given to the\r\n * colliding body. If that body is also not pushable, then the separation will be split\r\n * between them evenly.\r\n *\r\n * If you want your body to never move or seperate at all, see the `setImmovable` method.\r\n *\r\n * By default, Dynamic Bodies are always pushable.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#pushable\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.50.0\r\n * @see Phaser.GameObjects.Components.Pushable#setPushable\r\n */\r\n this.pushable = true;\r\n\r\n /**\r\n * The Slide Factor of this Body.\r\n *\r\n * The Slide Factor controls how much velocity is preserved when\r\n * this Body is pushed by another Body.\r\n *\r\n * The default value is 1, which means that it will take on all\r\n * velocity given in the push. You can adjust this value to control\r\n * how much velocity is retained by this Body when the push ends.\r\n *\r\n * A value of 0, for example, will allow this Body to be pushed\r\n * but then remain completely still after the push ends, such as\r\n * you see in a game like Sokoban.\r\n *\r\n * Or you can set a mid-point, such as 0.25 which will allow it\r\n * to keep 25% of the original velocity when the push ends. You\r\n * can combine this with the `setDrag()` method to create deceleration.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#slideFactor\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.70.0\r\n * @see Phaser.GameObjects.Components.Pushable#setSlideFactor\r\n */\r\n this.slideFactor = new Vector2(1, 1);\r\n\r\n /**\r\n * Whether the Body's position and rotation are affected by its velocity, acceleration, drag, and gravity.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#moves\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.moves = true;\r\n\r\n /**\r\n * A flag disabling the default horizontal separation of colliding bodies.\r\n * Pass your own `collideCallback` to the collider.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#customSeparateX\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.customSeparateX = false;\r\n\r\n /**\r\n * A flag disabling the default vertical separation of colliding bodies.\r\n * Pass your own `collideCallback` to the collider.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#customSeparateY\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.customSeparateY = false;\r\n\r\n /**\r\n * The amount of horizontal overlap (before separation), if this Body is colliding with another.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#overlapX\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.overlapX = 0;\r\n\r\n /**\r\n * The amount of vertical overlap (before separation), if this Body is colliding with another.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#overlapY\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.overlapY = 0;\r\n\r\n /**\r\n * The amount of overlap (before separation), if this Body is circular and colliding with another circular body.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#overlapR\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.overlapR = 0;\r\n\r\n /**\r\n * Whether this Body is overlapped with another and both are not moving, on at least one axis.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#embedded\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.embedded = false;\r\n\r\n /**\r\n * Whether this Body interacts with the world boundary.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#collideWorldBounds\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.collideWorldBounds = false;\r\n\r\n /**\r\n * Whether this Body is checked for collisions and for which directions.\r\n * You can set `checkCollision.none = true` to disable collision checks.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#checkCollision\r\n * @type {Phaser.Types.Physics.Arcade.ArcadeBodyCollision}\r\n * @since 3.0.0\r\n */\r\n this.checkCollision = SetCollisionObject(false);\r\n\r\n /**\r\n * Whether this Body is colliding with a Body or Static Body and in which direction.\r\n * In a collision where both bodies have zero velocity, `embedded` will be set instead.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#touching\r\n * @type {Phaser.Types.Physics.Arcade.ArcadeBodyCollision}\r\n * @since 3.0.0\r\n *\r\n * @see Phaser.Physics.Arcade.Body#blocked\r\n * @see Phaser.Physics.Arcade.Body#embedded\r\n */\r\n this.touching = SetCollisionObject(true);\r\n\r\n /**\r\n * This Body's `touching` value during the previous step.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#wasTouching\r\n * @type {Phaser.Types.Physics.Arcade.ArcadeBodyCollision}\r\n * @since 3.0.0\r\n *\r\n * @see Phaser.Physics.Arcade.Body#touching\r\n */\r\n this.wasTouching = SetCollisionObject(true);\r\n\r\n /**\r\n * Whether this Body is colliding with a Static Body, a tile, or the world boundary.\r\n * In a collision with a Static Body, if this Body has zero velocity then `embedded` will be set instead.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#blocked\r\n * @type {Phaser.Types.Physics.Arcade.ArcadeBodyCollision}\r\n * @since 3.0.0\r\n *\r\n * @see Phaser.Physics.Arcade.Body#embedded\r\n * @see Phaser.Physics.Arcade.Body#touching\r\n */\r\n this.blocked = SetCollisionObject(true);\r\n\r\n /**\r\n * Whether to automatically synchronize this Body's dimensions to the dimensions of its Game Object's visual bounds.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#syncBounds\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n * @see Phaser.GameObjects.Components.GetBounds#getBounds\r\n */\r\n this.syncBounds = false;\r\n\r\n /**\r\n * The Body's physics type (dynamic or static).\r\n *\r\n * @name Phaser.Physics.Arcade.Body#physicsType\r\n * @type {number}\r\n * @readonly\r\n * @default Phaser.Physics.Arcade.DYNAMIC_BODY\r\n * @since 3.0.0\r\n */\r\n this.physicsType = CONST.DYNAMIC_BODY;\r\n\r\n /**\r\n * The Arcade Physics Body Collision Category.\r\n *\r\n * This can be set to any valid collision bitfield value.\r\n *\r\n * See the `setCollisionCategory` method for more details.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#collisionCategory\r\n * @type {number}\r\n * @since 3.70.0\r\n */\r\n this.collisionCategory = 0x0001;\r\n\r\n /**\r\n * The Arcade Physics Body Collision Mask.\r\n *\r\n * See the `setCollidesWith` method for more details.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#collisionMask\r\n * @type {number}\r\n * @since 3.70.0\r\n */\r\n this.collisionMask = 1;\r\n\r\n /**\r\n * Cached horizontal scale of the Body's Game Object.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#_sx\r\n * @type {number}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._sx = gameObject.scaleX;\r\n\r\n /**\r\n * Cached vertical scale of the Body's Game Object.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#_sy\r\n * @type {number}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._sy = gameObject.scaleY;\r\n\r\n /**\r\n * The calculated change in the Body's horizontal position during the last step.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#_dx\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this._dx = 0;\r\n\r\n /**\r\n * The calculated change in the Body's vertical position during the last step.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#_dy\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this._dy = 0;\r\n\r\n /**\r\n * The final calculated change in the Body's horizontal position as of `postUpdate`.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#_tx\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.22.0\r\n */\r\n this._tx = 0;\r\n\r\n /**\r\n * The final calculated change in the Body's vertical position as of `postUpdate`.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#_ty\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.22.0\r\n */\r\n this._ty = 0;\r\n\r\n /**\r\n * Stores the Game Object's bounds.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#_bounds\r\n * @type {Phaser.Geom.Rectangle}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._bounds = new Rectangle();\r\n\r\n /**\r\n * Is this Body under direct control, outside of the physics engine? For example,\r\n * are you trying to move it via a Tween? Or have it follow a path? If so then\r\n * you can enable this boolean so that the Body will calculate its velocity based\r\n * purely on its change in position each frame. This allows you to then tween\r\n * the position and still have it collide with other objects. However, setting\r\n * the velocity will have no impact on this Body while this is set.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#directControl\r\n * @type {boolean}\r\n * @since 3.70.0\r\n */\r\n this.directControl = false;\r\n\r\n /**\r\n * Stores the previous position of the Game Object when directControl is enabled.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#autoFrame\r\n * @type {Phaser.Math.Vector2}\r\n * @private\r\n * @since 3.70.0\r\n */\r\n this.autoFrame = this.position.clone();\r\n },\r\n\r\n /**\r\n * Updates the Body's `transform`, `width`, `height`, and `center` from its Game Object.\r\n * The Body's `position` isn't changed.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#updateBounds\r\n * @since 3.0.0\r\n */\r\n updateBounds: function ()\r\n {\r\n var sprite = this.gameObject;\r\n\r\n // Container?\r\n\r\n var transform = this.transform;\r\n\r\n if (sprite.parentContainer)\r\n {\r\n var matrix = sprite.getWorldTransformMatrix(this.world._tempMatrix, this.world._tempMatrix2);\r\n\r\n transform.x = matrix.tx;\r\n transform.y = matrix.ty;\r\n transform.rotation = RadToDeg(matrix.rotation);\r\n transform.scaleX = matrix.scaleX;\r\n transform.scaleY = matrix.scaleY;\r\n transform.displayOriginX = sprite.displayOriginX;\r\n transform.displayOriginY = sprite.displayOriginY;\r\n }\r\n else\r\n {\r\n transform.x = sprite.x;\r\n transform.y = sprite.y;\r\n transform.rotation = sprite.angle;\r\n transform.scaleX = sprite.scaleX;\r\n transform.scaleY = sprite.scaleY;\r\n transform.displayOriginX = sprite.displayOriginX;\r\n transform.displayOriginY = sprite.displayOriginY;\r\n }\r\n\r\n var recalc = false;\r\n\r\n if (this.syncBounds)\r\n {\r\n var b = sprite.getBounds(this._bounds);\r\n\r\n this.width = b.width;\r\n this.height = b.height;\r\n recalc = true;\r\n }\r\n else\r\n {\r\n var asx = Math.abs(transform.scaleX);\r\n var asy = Math.abs(transform.scaleY);\r\n\r\n if (this._sx !== asx || this._sy !== asy)\r\n {\r\n this.width = this.sourceWidth * asx;\r\n this.height = this.sourceHeight * asy;\r\n this._sx = asx;\r\n this._sy = asy;\r\n recalc = true;\r\n }\r\n }\r\n\r\n if (recalc)\r\n {\r\n this.halfWidth = Math.floor(this.width / 2);\r\n this.halfHeight = Math.floor(this.height / 2);\r\n this.updateCenter();\r\n }\r\n },\r\n\r\n /**\r\n * Updates the Body's `center` from its `position`, `width`, and `height`.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#updateCenter\r\n * @since 3.0.0\r\n */\r\n updateCenter: function ()\r\n {\r\n this.center.set(this.position.x + this.halfWidth, this.position.y + this.halfHeight);\r\n },\r\n\r\n /**\r\n * Updates the Body's `position`, `width`, `height`, and `center` from its Game Object and `offset`.\r\n *\r\n * You don't need to call this for Dynamic Bodies, as it happens automatically during the physics step.\r\n * But you could use it if you have modified the Body offset or Game Object transform and need to immediately\r\n * read the Body's new `position` or `center`.\r\n *\r\n * To resynchronize the Body with its Game Object, use `reset()` instead.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#updateFromGameObject\r\n * @since 3.24.0\r\n */\r\n updateFromGameObject: function ()\r\n {\r\n this.updateBounds();\r\n\r\n var transform = this.transform;\r\n\r\n this.position.x = transform.x + transform.scaleX * (this.offset.x - transform.displayOriginX);\r\n this.position.y = transform.y + transform.scaleY * (this.offset.y - transform.displayOriginY);\r\n\r\n this.updateCenter();\r\n },\r\n\r\n /**\r\n * Prepares the Body for a physics step by resetting the `wasTouching`, `touching` and `blocked` states.\r\n *\r\n * This method is only called if the physics world is going to run a step this frame.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#resetFlags\r\n * @since 3.18.0\r\n *\r\n * @param {boolean} [clear=false] - Set the `wasTouching` values to their defaults.\r\n */\r\n resetFlags: function (clear)\r\n {\r\n if (clear === undefined)\r\n {\r\n clear = false;\r\n }\r\n\r\n // Store and reset collision flags\r\n var wasTouching = this.wasTouching;\r\n var touching = this.touching;\r\n var blocked = this.blocked;\r\n\r\n if (clear)\r\n {\r\n SetCollisionObject(true, wasTouching);\r\n }\r\n else\r\n {\r\n wasTouching.none = touching.none;\r\n wasTouching.up = touching.up;\r\n wasTouching.down = touching.down;\r\n wasTouching.left = touching.left;\r\n wasTouching.right = touching.right;\r\n }\r\n\r\n SetCollisionObject(true, touching);\r\n SetCollisionObject(true, blocked);\r\n\r\n this.overlapR = 0;\r\n this.overlapX = 0;\r\n this.overlapY = 0;\r\n\r\n this.embedded = false;\r\n },\r\n\r\n /**\r\n * Syncs the position body position with the parent Game Object.\r\n *\r\n * This method is called every game frame, regardless if the world steps or not.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#preUpdate\r\n * @since 3.17.0\r\n *\r\n * @param {boolean} willStep - Will this Body run an update as well?\r\n * @param {number} delta - The delta time, in seconds, elapsed since the last frame.\r\n */\r\n preUpdate: function (willStep, delta)\r\n {\r\n if (willStep)\r\n {\r\n this.resetFlags();\r\n }\r\n\r\n if (this.gameObject)\r\n {\r\n this.updateFromGameObject();\r\n }\r\n\r\n this.rotation = this.transform.rotation;\r\n this.preRotation = this.rotation;\r\n\r\n if (this.moves)\r\n {\r\n var pos = this.position;\r\n\r\n this.prev.x = pos.x;\r\n this.prev.y = pos.y;\r\n\r\n this.prevFrame.x = pos.x;\r\n this.prevFrame.y = pos.y;\r\n }\r\n\r\n if (willStep)\r\n {\r\n this.update(delta);\r\n }\r\n },\r\n\r\n /**\r\n * Performs a single physics step and updates the body velocity, angle, speed and other properties.\r\n *\r\n * This method can be called multiple times per game frame, depending on the physics step rate.\r\n *\r\n * The results are synced back to the Game Object in `postUpdate`.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#update\r\n * @fires Phaser.Physics.Arcade.Events#WORLD_BOUNDS\r\n * @since 3.0.0\r\n *\r\n * @param {number} delta - The delta time, in seconds, elapsed since the last frame.\r\n */\r\n update: function (delta)\r\n {\r\n var prev = this.prev;\r\n var pos = this.position;\r\n var vel = this.velocity;\r\n\r\n prev.set(pos.x, pos.y);\r\n\r\n if (!this.moves)\r\n {\r\n this._dx = pos.x - prev.x;\r\n this._dy = pos.y - prev.y;\r\n\r\n return;\r\n }\r\n\r\n if (this.directControl)\r\n {\r\n var autoFrame = this.autoFrame;\r\n\r\n vel.set(\r\n (pos.x - autoFrame.x) / delta,\r\n (pos.y - autoFrame.y) / delta\r\n );\r\n\r\n this.world.updateMotion(this, delta);\r\n\r\n this._dx = pos.x - autoFrame.x;\r\n this._dy = pos.y - autoFrame.y;\r\n }\r\n else\r\n {\r\n this.world.updateMotion(this, delta);\r\n\r\n this.newVelocity.set(vel.x * delta, vel.y * delta);\r\n\r\n pos.add(this.newVelocity);\r\n\r\n this._dx = pos.x - prev.x;\r\n this._dy = pos.y - prev.y;\r\n }\r\n\r\n var vx = vel.x;\r\n var vy = vel.y;\r\n\r\n this.updateCenter();\r\n\r\n this.angle = Math.atan2(vy, vx);\r\n this.speed = Math.sqrt(vx * vx + vy * vy);\r\n\r\n // Now the update will throw collision checks at the Body\r\n // And finally we'll integrate the new position back to the Sprite in postUpdate\r\n\r\n if (this.collideWorldBounds && this.checkWorldBounds() && this.onWorldBounds)\r\n {\r\n var blocked = this.blocked;\r\n\r\n this.world.emit(Events.WORLD_BOUNDS, this, blocked.up, blocked.down, blocked.left, blocked.right);\r\n }\r\n },\r\n\r\n /**\r\n * Feeds the Body results back into the parent Game Object.\r\n *\r\n * This method is called every game frame, regardless if the world steps or not.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#postUpdate\r\n * @since 3.0.0\r\n */\r\n postUpdate: function ()\r\n {\r\n var pos = this.position;\r\n\r\n var dx = pos.x - this.prevFrame.x;\r\n var dy = pos.y - this.prevFrame.y;\r\n\r\n var gameObject = this.gameObject;\r\n\r\n if (this.moves)\r\n {\r\n var mx = this.deltaMax.x;\r\n var my = this.deltaMax.y;\r\n\r\n if (mx !== 0 && dx !== 0)\r\n {\r\n if (dx < 0 && dx < -mx)\r\n {\r\n dx = -mx;\r\n }\r\n else if (dx > 0 && dx > mx)\r\n {\r\n dx = mx;\r\n }\r\n }\r\n\r\n if (my !== 0 && dy !== 0)\r\n {\r\n if (dy < 0 && dy < -my)\r\n {\r\n dy = -my;\r\n }\r\n else if (dy > 0 && dy > my)\r\n {\r\n dy = my;\r\n }\r\n }\r\n\r\n if (gameObject)\r\n {\r\n gameObject.x += dx;\r\n gameObject.y += dy;\r\n }\r\n }\r\n\r\n if (dx < 0)\r\n {\r\n this.facing = CONST.FACING_LEFT;\r\n }\r\n else if (dx > 0)\r\n {\r\n this.facing = CONST.FACING_RIGHT;\r\n }\r\n\r\n if (dy < 0)\r\n {\r\n this.facing = CONST.FACING_UP;\r\n }\r\n else if (dy > 0)\r\n {\r\n this.facing = CONST.FACING_DOWN;\r\n }\r\n\r\n if (this.allowRotation && gameObject)\r\n {\r\n gameObject.angle += this.deltaZ();\r\n }\r\n\r\n this._tx = dx;\r\n this._ty = dy;\r\n\r\n this.autoFrame.set(pos.x, pos.y);\r\n },\r\n\r\n /**\r\n * Sets a custom collision boundary rectangle. Use if you want to have a custom\r\n * boundary instead of the world boundaries.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setBoundsRectangle\r\n * @since 3.20\r\n *\r\n * @param {?Phaser.Geom.Rectangle} [bounds] - The new boundary rectangle. Pass `null` to use the World bounds.\r\n *\r\n * @return {this} This Body object.\r\n */\r\n setBoundsRectangle: function (bounds)\r\n {\r\n this.customBoundsRectangle = (!bounds) ? this.world.bounds : bounds;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Checks for collisions between this Body and the world boundary and separates them.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#checkWorldBounds\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} True if this Body is colliding with the world boundary.\r\n */\r\n checkWorldBounds: function ()\r\n {\r\n var pos = this.position;\r\n var vel = this.velocity;\r\n var blocked = this.blocked;\r\n var bounds = this.customBoundsRectangle;\r\n var check = this.world.checkCollision;\r\n\r\n var bx = (this.worldBounce) ? -this.worldBounce.x : -this.bounce.x;\r\n var by = (this.worldBounce) ? -this.worldBounce.y : -this.bounce.y;\r\n\r\n var wasSet = false;\r\n\r\n if (pos.x < bounds.x && check.left)\r\n {\r\n pos.x = bounds.x;\r\n vel.x *= bx;\r\n blocked.left = true;\r\n wasSet = true;\r\n }\r\n else if (this.right > bounds.right && check.right)\r\n {\r\n pos.x = bounds.right - this.width;\r\n vel.x *= bx;\r\n blocked.right = true;\r\n wasSet = true;\r\n }\r\n\r\n if (pos.y < bounds.y && check.up)\r\n {\r\n pos.y = bounds.y;\r\n vel.y *= by;\r\n blocked.up = true;\r\n wasSet = true;\r\n }\r\n else if (this.bottom > bounds.bottom && check.down)\r\n {\r\n pos.y = bounds.bottom - this.height;\r\n vel.y *= by;\r\n blocked.down = true;\r\n wasSet = true;\r\n }\r\n\r\n if (wasSet)\r\n {\r\n this.blocked.none = false;\r\n this.updateCenter();\r\n }\r\n\r\n return wasSet;\r\n },\r\n\r\n /**\r\n * Sets the offset of the Body's position from its Game Object's position.\r\n * The Body's `position` isn't changed until the next `preUpdate`.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setOffset\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal offset, in source pixels.\r\n * @param {number} [y=x] - The vertical offset, in source pixels.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setOffset: function (x, y)\r\n {\r\n if (y === undefined) { y = x; }\r\n\r\n this.offset.set(x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Assign this Body to a new Game Object.\r\n *\r\n * Removes this body from the Physics World, assigns to the new Game Object, calls `setSize` and then\r\n * adds this body back into the World again, setting it enabled, unless the `enable` argument is set to `false`.\r\n *\r\n * If this body already has a Game Object, then it will remove itself from that Game Object first.\r\n *\r\n * Only if the given `gameObject` has a `body` property will this Body be assigned to it.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setGameObject\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object this Body belongs to.\r\n * @param {boolean} [enable=true] - Automatically enable this Body for physics.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setGameObject: function (gameObject, enable)\r\n {\r\n if (enable === undefined) { enable = true; }\r\n\r\n // Remove from the World\r\n this.world.remove(this);\r\n\r\n if (this.gameObject && this.gameObject.body)\r\n {\r\n // Disconnect the current Game Object\r\n this.gameObject.body = null;\r\n }\r\n\r\n this.gameObject = gameObject;\r\n\r\n if (gameObject.body)\r\n {\r\n gameObject.body = this;\r\n }\r\n\r\n this.setSize();\r\n\r\n this.world.add(this);\r\n\r\n this.enable = enable;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sizes and positions this Body, as a rectangle.\r\n * Modifies the Body `offset` if `center` is true (the default).\r\n * Resets the width and height to match current frame, if no width and height provided and a frame is found.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setSize\r\n * @since 3.0.0\r\n *\r\n * @param {number} [width] - The width of the Body in pixels. Cannot be zero. If not given, and the parent Game Object has a frame, it will use the frame width.\r\n * @param {number} [height] - The height of the Body in pixels. Cannot be zero. If not given, and the parent Game Object has a frame, it will use the frame height.\r\n * @param {boolean} [center=true] - Modify the Body's `offset`, placing the Body's center on its Game Object's center. Only works if the Game Object has the `getCenter` method.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setSize: function (width, height, center)\r\n {\r\n if (center === undefined) { center = true; }\r\n\r\n var gameObject = this.gameObject;\r\n\r\n if (gameObject)\r\n {\r\n if (!width && gameObject.frame)\r\n {\r\n width = gameObject.frame.realWidth;\r\n }\r\n\r\n if (!height && gameObject.frame)\r\n {\r\n height = gameObject.frame.realHeight;\r\n }\r\n }\r\n\r\n this.sourceWidth = width;\r\n this.sourceHeight = height;\r\n\r\n this.width = this.sourceWidth * this._sx;\r\n this.height = this.sourceHeight * this._sy;\r\n\r\n this.halfWidth = Math.floor(this.width / 2);\r\n this.halfHeight = Math.floor(this.height / 2);\r\n\r\n this.updateCenter();\r\n\r\n if (center && gameObject && gameObject.getCenter)\r\n {\r\n var ox = (gameObject.width - width) / 2;\r\n var oy = (gameObject.height - height) / 2;\r\n\r\n this.offset.set(ox, oy);\r\n }\r\n\r\n this.isCircle = false;\r\n this.radius = 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sizes and positions this Body, as a circle.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setCircle\r\n * @since 3.0.0\r\n *\r\n * @param {number} radius - The radius of the Body, in source pixels.\r\n * @param {number} [offsetX] - The horizontal offset of the Body from its Game Object, in source pixels.\r\n * @param {number} [offsetY] - The vertical offset of the Body from its Game Object, in source pixels.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setCircle: function (radius, offsetX, offsetY)\r\n {\r\n if (offsetX === undefined) { offsetX = this.offset.x; }\r\n if (offsetY === undefined) { offsetY = this.offset.y; }\r\n\r\n if (radius > 0)\r\n {\r\n this.isCircle = true;\r\n this.radius = radius;\r\n\r\n this.sourceWidth = radius * 2;\r\n this.sourceHeight = radius * 2;\r\n\r\n this.width = this.sourceWidth * this._sx;\r\n this.height = this.sourceHeight * this._sy;\r\n\r\n this.halfWidth = Math.floor(this.width / 2);\r\n this.halfHeight = Math.floor(this.height / 2);\r\n\r\n this.offset.set(offsetX, offsetY);\r\n\r\n this.updateCenter();\r\n }\r\n else\r\n {\r\n this.isCircle = false;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets this Body's parent Game Object to the given coordinates and resets this Body at the new coordinates.\r\n * If the Body had any velocity or acceleration it is lost as a result of calling this.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#reset\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal position to place the Game Object.\r\n * @param {number} y - The vertical position to place the Game Object.\r\n */\r\n reset: function (x, y)\r\n {\r\n this.stop();\r\n\r\n var gameObject = this.gameObject;\r\n\r\n if (gameObject)\r\n {\r\n gameObject.setPosition(x, y);\r\n\r\n this.rotation = gameObject.angle;\r\n this.preRotation = gameObject.angle;\r\n }\r\n\r\n var pos = this.position;\r\n\r\n if (gameObject && gameObject.getTopLeft)\r\n {\r\n gameObject.getTopLeft(pos);\r\n }\r\n else\r\n {\r\n pos.set(x, y);\r\n }\r\n\r\n this.prev.copy(pos);\r\n this.prevFrame.copy(pos);\r\n this.autoFrame.copy(pos);\r\n\r\n if (gameObject)\r\n {\r\n this.updateBounds();\r\n }\r\n\r\n this.updateCenter();\r\n\r\n if (this.collideWorldBounds)\r\n {\r\n this.checkWorldBounds();\r\n }\r\n\r\n this.resetFlags(true);\r\n },\r\n\r\n /**\r\n * Sets acceleration, velocity, and speed to zero.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#stop\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n stop: function ()\r\n {\r\n this.velocity.set(0);\r\n this.acceleration.set(0);\r\n this.speed = 0;\r\n this.angularVelocity = 0;\r\n this.angularAcceleration = 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Copies the coordinates of this Body's edges into an object.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#getBounds\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeBodyBounds} obj - An object to copy the values into.\r\n *\r\n * @return {Phaser.Types.Physics.Arcade.ArcadeBodyBounds} - An object with {x, y, right, bottom}.\r\n */\r\n getBounds: function (obj)\r\n {\r\n obj.x = this.x;\r\n obj.y = this.y;\r\n obj.right = this.right;\r\n obj.bottom = this.bottom;\r\n\r\n return obj;\r\n },\r\n\r\n /**\r\n * Tests if the coordinates are within this Body.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#hitTest\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal coordinate.\r\n * @param {number} y - The vertical coordinate.\r\n *\r\n * @return {boolean} True if (x, y) is within this Body.\r\n */\r\n hitTest: function (x, y)\r\n {\r\n if (!this.isCircle)\r\n {\r\n return RectangleContains(this, x, y);\r\n }\r\n\r\n // Check if x/y are within the bounds first\r\n if (this.radius > 0 && x >= this.left && x <= this.right && y >= this.top && y <= this.bottom)\r\n {\r\n var dx = (this.center.x - x) * (this.center.x - x);\r\n var dy = (this.center.y - y) * (this.center.y - y);\r\n\r\n return (dx + dy) <= (this.radius * this.radius);\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Whether this Body is touching a tile or the world boundary while moving down.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#onFloor\r\n * @since 3.0.0\r\n * @see Phaser.Physics.Arcade.Body#blocked\r\n *\r\n * @return {boolean} True if touching.\r\n */\r\n onFloor: function ()\r\n {\r\n return this.blocked.down;\r\n },\r\n\r\n /**\r\n * Whether this Body is touching a tile or the world boundary while moving up.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#onCeiling\r\n * @since 3.0.0\r\n * @see Phaser.Physics.Arcade.Body#blocked\r\n *\r\n * @return {boolean} True if touching.\r\n */\r\n onCeiling: function ()\r\n {\r\n return this.blocked.up;\r\n },\r\n\r\n /**\r\n * Whether this Body is touching a tile or the world boundary while moving left or right.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#onWall\r\n * @since 3.0.0\r\n * @see Phaser.Physics.Arcade.Body#blocked\r\n *\r\n * @return {boolean} True if touching.\r\n */\r\n onWall: function ()\r\n {\r\n return (this.blocked.left || this.blocked.right);\r\n },\r\n\r\n /**\r\n * The absolute (non-negative) change in this Body's horizontal position from the previous step.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#deltaAbsX\r\n * @since 3.0.0\r\n *\r\n * @return {number} The delta value.\r\n */\r\n deltaAbsX: function ()\r\n {\r\n return (this._dx > 0) ? this._dx : -this._dx;\r\n },\r\n\r\n /**\r\n * The absolute (non-negative) change in this Body's vertical position from the previous step.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#deltaAbsY\r\n * @since 3.0.0\r\n *\r\n * @return {number} The delta value.\r\n */\r\n deltaAbsY: function ()\r\n {\r\n return (this._dy > 0) ? this._dy : -this._dy;\r\n },\r\n\r\n /**\r\n * The change in this Body's horizontal position from the previous step.\r\n * This value is set during the Body's update phase.\r\n *\r\n * As a Body can update multiple times per step this may not hold the final\r\n * delta value for the Body. In this case, please see the `deltaXFinal` method.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#deltaX\r\n * @since 3.0.0\r\n *\r\n * @return {number} The delta value.\r\n */\r\n deltaX: function ()\r\n {\r\n return this._dx;\r\n },\r\n\r\n /**\r\n * The change in this Body's vertical position from the previous step.\r\n * This value is set during the Body's update phase.\r\n *\r\n * As a Body can update multiple times per step this may not hold the final\r\n * delta value for the Body. In this case, please see the `deltaYFinal` method.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#deltaY\r\n * @since 3.0.0\r\n *\r\n * @return {number} The delta value.\r\n */\r\n deltaY: function ()\r\n {\r\n return this._dy;\r\n },\r\n\r\n /**\r\n * The change in this Body's horizontal position from the previous game update.\r\n *\r\n * This value is set during the `postUpdate` phase and takes into account the\r\n * `deltaMax` and final position of the Body.\r\n *\r\n * Because this value is not calculated until `postUpdate`, you must listen for it\r\n * during a Scene `POST_UPDATE` or `RENDER` event, and not in `update`, as it will\r\n * not be calculated by that point. If you _do_ use these values in `update` they\r\n * will represent the delta from the _previous_ game frame.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#deltaXFinal\r\n * @since 3.22.0\r\n *\r\n * @return {number} The final delta x value.\r\n */\r\n deltaXFinal: function ()\r\n {\r\n return this._tx;\r\n },\r\n\r\n /**\r\n * The change in this Body's vertical position from the previous game update.\r\n *\r\n * This value is set during the `postUpdate` phase and takes into account the\r\n * `deltaMax` and final position of the Body.\r\n *\r\n * Because this value is not calculated until `postUpdate`, you must listen for it\r\n * during a Scene `POST_UPDATE` or `RENDER` event, and not in `update`, as it will\r\n * not be calculated by that point. If you _do_ use these values in `update` they\r\n * will represent the delta from the _previous_ game frame.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#deltaYFinal\r\n * @since 3.22.0\r\n *\r\n * @return {number} The final delta y value.\r\n */\r\n deltaYFinal: function ()\r\n {\r\n return this._ty;\r\n },\r\n\r\n /**\r\n * The change in this Body's rotation from the previous step, in degrees.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#deltaZ\r\n * @since 3.0.0\r\n *\r\n * @return {number} The delta value.\r\n */\r\n deltaZ: function ()\r\n {\r\n return this.rotation - this.preRotation;\r\n },\r\n\r\n /**\r\n * Disables this Body and marks it for deletion by the simulation.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.enable = false;\r\n\r\n if (this.world)\r\n {\r\n this.world.pendingDestroy.set(this);\r\n }\r\n },\r\n\r\n /**\r\n * Draws this Body and its velocity, if enabled.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#drawDebug\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Graphics} graphic - The Graphics object to draw on.\r\n */\r\n drawDebug: function (graphic)\r\n {\r\n var pos = this.position;\r\n\r\n var x = pos.x + this.halfWidth;\r\n var y = pos.y + this.halfHeight;\r\n\r\n if (this.debugShowBody)\r\n {\r\n graphic.lineStyle(graphic.defaultStrokeWidth, this.debugBodyColor);\r\n\r\n if (this.isCircle)\r\n {\r\n graphic.strokeCircle(x, y, this.width / 2);\r\n }\r\n else\r\n {\r\n // Only draw the sides where checkCollision is true, similar to debugger in layer\r\n if (this.checkCollision.up)\r\n {\r\n graphic.lineBetween(pos.x, pos.y, pos.x + this.width, pos.y);\r\n }\r\n\r\n if (this.checkCollision.right)\r\n {\r\n graphic.lineBetween(pos.x + this.width, pos.y, pos.x + this.width, pos.y + this.height);\r\n }\r\n\r\n if (this.checkCollision.down)\r\n {\r\n graphic.lineBetween(pos.x, pos.y + this.height, pos.x + this.width, pos.y + this.height);\r\n }\r\n\r\n if (this.checkCollision.left)\r\n {\r\n graphic.lineBetween(pos.x, pos.y, pos.x, pos.y + this.height);\r\n }\r\n }\r\n }\r\n\r\n if (this.debugShowVelocity)\r\n {\r\n graphic.lineStyle(graphic.defaultStrokeWidth, this.world.defaults.velocityDebugColor, 1);\r\n graphic.lineBetween(x, y, x + this.velocity.x / 2, y + this.velocity.y / 2);\r\n }\r\n },\r\n\r\n /**\r\n * Whether this Body will be drawn to the debug display.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#willDrawDebug\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} True if either `debugShowBody` or `debugShowVelocity` are enabled.\r\n */\r\n willDrawDebug: function ()\r\n {\r\n return (this.debugShowBody || this.debugShowVelocity);\r\n },\r\n\r\n /**\r\n * Sets whether this Body should calculate its velocity based on its change in\r\n * position every frame. The default, which is to not do this, means that you\r\n * make this Body move by setting the velocity directly. However, if you are\r\n * trying to move this Body via a Tween, or have it follow a Path, then you\r\n * should enable this instead. This will allow it to still collide with other\r\n * bodies, something that isn't possible if you're just changing its position directly.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setDirectControl\r\n * @since 3.70.0\r\n *\r\n * @param {boolean} [value=true] - `true` if the Body calculate velocity based on changes in position, otherwise `false`.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setDirectControl: function (value)\r\n {\r\n if (value === undefined) { value = true; }\r\n\r\n this.directControl = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets whether this Body collides with the world boundary.\r\n *\r\n * Optionally also sets the World Bounce and `onWorldBounds` values.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setCollideWorldBounds\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [value=true] - `true` if the Body should collide with the world bounds, otherwise `false`.\r\n * @param {number} [bounceX] - If given this replaces the Body's `worldBounce.x` value.\r\n * @param {number} [bounceY] - If given this replaces the Body's `worldBounce.y` value.\r\n * @param {boolean} [onWorldBounds] - If given this replaces the Body's `onWorldBounds` value.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setCollideWorldBounds: function (value, bounceX, bounceY, onWorldBounds)\r\n {\r\n if (value === undefined) { value = true; }\r\n\r\n this.collideWorldBounds = value;\r\n\r\n var setBounceX = (bounceX !== undefined);\r\n var setBounceY = (bounceY !== undefined);\r\n\r\n if (setBounceX || setBounceY)\r\n {\r\n if (!this.worldBounce)\r\n {\r\n this.worldBounce = new Vector2();\r\n }\r\n\r\n if (setBounceX)\r\n {\r\n this.worldBounce.x = bounceX;\r\n }\r\n\r\n if (setBounceY)\r\n {\r\n this.worldBounce.y = bounceY;\r\n }\r\n }\r\n\r\n if (onWorldBounds !== undefined)\r\n {\r\n this.onWorldBounds = onWorldBounds;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's velocity.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setVelocity\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal velocity, in pixels per second.\r\n * @param {number} [y=x] - The vertical velocity, in pixels per second.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setVelocity: function (x, y)\r\n {\r\n this.velocity.set(x, y);\r\n\r\n x = this.velocity.x;\r\n y = this.velocity.y;\r\n\r\n this.speed = Math.sqrt(x * x + y * y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's horizontal velocity.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setVelocityX\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The velocity, in pixels per second.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setVelocityX: function (value)\r\n {\r\n return this.setVelocity(value, this.velocity.y);\r\n },\r\n\r\n /**\r\n * Sets the Body's vertical velocity.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setVelocityY\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The velocity, in pixels per second.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setVelocityY: function (value)\r\n {\r\n return this.setVelocity(this.velocity.x, value);\r\n },\r\n\r\n /**\r\n * Sets the Body's maximum velocity.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setMaxVelocity\r\n * @since 3.10.0\r\n *\r\n * @param {number} x - The horizontal velocity, in pixels per second.\r\n * @param {number} [y=x] - The vertical velocity, in pixels per second.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setMaxVelocity: function (x, y)\r\n {\r\n this.maxVelocity.set(x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's maximum horizontal velocity.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setMaxVelocityX\r\n * @since 3.50.0\r\n *\r\n * @param {number} value - The maximum horizontal velocity, in pixels per second.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setMaxVelocityX: function (value)\r\n {\r\n this.maxVelocity.x = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's maximum vertical velocity.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setMaxVelocityY\r\n * @since 3.50.0\r\n *\r\n * @param {number} value - The maximum vertical velocity, in pixels per second.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setMaxVelocityY: function (value)\r\n {\r\n this.maxVelocity.y = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the maximum speed the Body can move.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setMaxSpeed\r\n * @since 3.16.0\r\n *\r\n * @param {number} value - The maximum speed value, in pixels per second. Set to a negative value to disable.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setMaxSpeed: function (value)\r\n {\r\n this.maxSpeed = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Slide Factor of this Body.\r\n *\r\n * The Slide Factor controls how much velocity is preserved when\r\n * this Body is pushed by another Body.\r\n *\r\n * The default value is 1, which means that it will take on all\r\n * velocity given in the push. You can adjust this value to control\r\n * how much velocity is retained by this Body when the push ends.\r\n *\r\n * A value of 0, for example, will allow this Body to be pushed\r\n * but then remain completely still after the push ends, such as\r\n * you see in a game like Sokoban.\r\n *\r\n * Or you can set a mid-point, such as 0.25 which will allow it\r\n * to keep 25% of the original velocity when the push ends. You\r\n * can combine this with the `setDrag()` method to create deceleration.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setSlideFactor\r\n * @since 3.70.0\r\n *\r\n * @param {number} x - The horizontal slide factor. A value between 0 and 1.\r\n * @param {number} [y=x] - The vertical slide factor. A value between 0 and 1.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setSlideFactor: function (x, y)\r\n {\r\n this.slideFactor.set(x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's bounce.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setBounce\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal bounce, relative to 1.\r\n * @param {number} [y=x] - The vertical bounce, relative to 1.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setBounce: function (x, y)\r\n {\r\n this.bounce.set(x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's horizontal bounce.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setBounceX\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The bounce, relative to 1.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setBounceX: function (value)\r\n {\r\n this.bounce.x = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's vertical bounce.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setBounceY\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The bounce, relative to 1.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setBounceY: function (value)\r\n {\r\n this.bounce.y = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's acceleration.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setAcceleration\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal component, in pixels per second squared.\r\n * @param {number} [y=x] - The vertical component, in pixels per second squared.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setAcceleration: function (x, y)\r\n {\r\n this.acceleration.set(x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's horizontal acceleration.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setAccelerationX\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The acceleration, in pixels per second squared.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setAccelerationX: function (value)\r\n {\r\n this.acceleration.x = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's vertical acceleration.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setAccelerationY\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The acceleration, in pixels per second squared.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setAccelerationY: function (value)\r\n {\r\n this.acceleration.y = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Enables or disables drag.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setAllowDrag\r\n * @since 3.9.0\r\n * @see Phaser.Physics.Arcade.Body#allowDrag\r\n *\r\n * @param {boolean} [value=true] - `true` to allow drag on this body, or `false` to disable it.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setAllowDrag: function (value)\r\n {\r\n if (value === undefined) { value = true; }\r\n\r\n this.allowDrag = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Enables or disables gravity's effect on this Body.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setAllowGravity\r\n * @since 3.9.0\r\n * @see Phaser.Physics.Arcade.Body#allowGravity\r\n *\r\n * @param {boolean} [value=true] - `true` to allow gravity on this body, or `false` to disable it.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setAllowGravity: function (value)\r\n {\r\n if (value === undefined) { value = true; }\r\n\r\n this.allowGravity = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Enables or disables rotation.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setAllowRotation\r\n * @since 3.9.0\r\n * @see Phaser.Physics.Arcade.Body#allowRotation\r\n *\r\n * @param {boolean} [value=true] - `true` to allow rotation on this body, or `false` to disable it.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setAllowRotation: function (value)\r\n {\r\n if (value === undefined) { value = true; }\r\n\r\n this.allowRotation = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's drag.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setDrag\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal component, in pixels per second squared.\r\n * @param {number} [y=x] - The vertical component, in pixels per second squared.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setDrag: function (x, y)\r\n {\r\n this.drag.set(x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * If this Body is using `drag` for deceleration this property controls how the drag is applied.\r\n * If set to `true` drag will use a damping effect rather than a linear approach. If you are\r\n * creating a game where the Body moves freely at any angle (i.e. like the way the ship moves in\r\n * the game Asteroids) then you will get a far smoother and more visually correct deceleration\r\n * by using damping, avoiding the axis-drift that is prone with linear deceleration.\r\n *\r\n * If you enable this property then you should use far smaller `drag` values than with linear, as\r\n * they are used as a multiplier on the velocity. Values such as 0.95 will give a nice slow\r\n * deceleration, where-as smaller values, such as 0.5 will stop an object almost immediately.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setDamping\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} value - `true` to use damping, or `false` to use drag.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setDamping: function (value)\r\n {\r\n this.useDamping = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's horizontal drag.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setDragX\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The drag, in pixels per second squared.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setDragX: function (value)\r\n {\r\n this.drag.x = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's vertical drag.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setDragY\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The drag, in pixels per second squared.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setDragY: function (value)\r\n {\r\n this.drag.y = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's gravity.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setGravity\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal component, in pixels per second squared.\r\n * @param {number} [y=x] - The vertical component, in pixels per second squared.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setGravity: function (x, y)\r\n {\r\n this.gravity.set(x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's horizontal gravity.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setGravityX\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The gravity, in pixels per second squared.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setGravityX: function (value)\r\n {\r\n this.gravity.x = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's vertical gravity.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setGravityY\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The gravity, in pixels per second squared.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setGravityY: function (value)\r\n {\r\n this.gravity.y = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's friction.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setFriction\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal component, relative to 1.\r\n * @param {number} [y=x] - The vertical component, relative to 1.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setFriction: function (x, y)\r\n {\r\n this.friction.set(x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's horizontal friction.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setFrictionX\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The friction value, relative to 1.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setFrictionX: function (value)\r\n {\r\n this.friction.x = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's vertical friction.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setFrictionY\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The friction value, relative to 1.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setFrictionY: function (value)\r\n {\r\n this.friction.y = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's angular velocity.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setAngularVelocity\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The velocity, in degrees per second.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setAngularVelocity: function (value)\r\n {\r\n this.angularVelocity = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's angular acceleration.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setAngularAcceleration\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The acceleration, in degrees per second squared.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setAngularAcceleration: function (value)\r\n {\r\n this.angularAcceleration = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's angular drag.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setAngularDrag\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The drag, in degrees per second squared.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setAngularDrag: function (value)\r\n {\r\n this.angularDrag = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's mass.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setMass\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The mass value, relative to 1.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setMass: function (value)\r\n {\r\n this.mass = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's `immovable` property.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setImmovable\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [value=true] - The value to assign to `immovable`.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setImmovable: function (value)\r\n {\r\n if (value === undefined) { value = true; }\r\n\r\n this.immovable = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Body's `enable` property.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#setEnable\r\n * @since 3.15.0\r\n *\r\n * @param {boolean} [value=true] - The value to assign to `enable`.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} This Body object.\r\n */\r\n setEnable: function (value)\r\n {\r\n if (value === undefined) { value = true; }\r\n\r\n this.enable = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * This is an internal handler, called by the `ProcessX` function as part\r\n * of the collision step. You should almost never call this directly.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#processX\r\n * @since 3.50.0\r\n *\r\n * @param {number} x - The amount to add to the Body position.\r\n * @param {number} [vx] - The amount to add to the Body velocity.\r\n * @param {boolean} [left] - Set the blocked.left value?\r\n * @param {boolean} [right] - Set the blocked.right value?\r\n */\r\n processX: function (x, vx, left, right)\r\n {\r\n this.x += x;\r\n\r\n this.updateCenter();\r\n\r\n if (vx !== null)\r\n {\r\n this.velocity.x = vx * this.slideFactor.x;\r\n }\r\n\r\n var blocked = this.blocked;\r\n\r\n if (left)\r\n {\r\n blocked.left = true;\r\n blocked.none = false;\r\n }\r\n\r\n if (right)\r\n {\r\n blocked.right = true;\r\n blocked.none = false;\r\n }\r\n },\r\n\r\n /**\r\n * This is an internal handler, called by the `ProcessY` function as part\r\n * of the collision step. You should almost never call this directly.\r\n *\r\n * @method Phaser.Physics.Arcade.Body#processY\r\n * @since 3.50.0\r\n *\r\n * @param {number} y - The amount to add to the Body position.\r\n * @param {number} [vy] - The amount to add to the Body velocity.\r\n * @param {boolean} [up] - Set the blocked.up value?\r\n * @param {boolean} [down] - Set the blocked.down value?\r\n */\r\n processY: function (y, vy, up, down)\r\n {\r\n this.y += y;\r\n\r\n this.updateCenter();\r\n\r\n if (vy !== null)\r\n {\r\n this.velocity.y = vy * this.slideFactor.y;\r\n }\r\n\r\n var blocked = this.blocked;\r\n\r\n if (up)\r\n {\r\n blocked.up = true;\r\n blocked.none = false;\r\n }\r\n\r\n if (down)\r\n {\r\n blocked.down = true;\r\n blocked.none = false;\r\n }\r\n },\r\n\r\n /**\r\n * The Bodys horizontal position (left edge).\r\n *\r\n * @name Phaser.Physics.Arcade.Body#x\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n x: {\r\n\r\n get: function ()\r\n {\r\n return this.position.x;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.position.x = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The Bodys vertical position (top edge).\r\n *\r\n * @name Phaser.Physics.Arcade.Body#y\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n y: {\r\n\r\n get: function ()\r\n {\r\n return this.position.y;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.position.y = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The left edge of the Body. Identical to x.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#left\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n left: {\r\n\r\n get: function ()\r\n {\r\n return this.position.x;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The right edge of the Body.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#right\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n right: {\r\n\r\n get: function ()\r\n {\r\n return this.position.x + this.width;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The top edge of the Body. Identical to y.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#top\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n top: {\r\n\r\n get: function ()\r\n {\r\n return this.position.y;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The bottom edge of this Body.\r\n *\r\n * @name Phaser.Physics.Arcade.Body#bottom\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n bottom: {\r\n\r\n get: function ()\r\n {\r\n return this.position.y + this.height;\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Body;\r\n\n\n/***/ }),\n\n/***/ 79342:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n/**\r\n * @classdesc\r\n * An Arcade Physics Collider will automatically check for collision, or overlaps, between two objects\r\n * every step. If a collision, or overlap, occurs it will invoke the given callbacks.\r\n * \r\n * Note, if setting `overlapOnly` to `true`, and one of the objects is a `TilemapLayer`, every tile in the layer, regardless of tile ID, will be checked for collision. \r\n * Even if the layer has had only a subset of tile IDs enabled for collision, all tiles will still be checked for overlap.\r\n *\r\n * @class Collider\r\n * @memberof Phaser.Physics.Arcade\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Arcade.World} world - The Arcade physics World that will manage the collisions.\r\n * @param {boolean} overlapOnly - Whether to check for collisions or overlaps.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeColliderType} object1 - The first object to check for collision.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeColliderType} object2 - The second object to check for collision.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} collideCallback - The callback to invoke when the two objects collide.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} processCallback - The callback to invoke when the two objects collide. Must return a boolean.\r\n * @param {any} callbackContext - The scope in which to call the callbacks.\r\n */\r\nvar Collider = new Class({\r\n\r\n initialize:\r\n\r\n function Collider (world, overlapOnly, object1, object2, collideCallback, processCallback, callbackContext)\r\n {\r\n /**\r\n * The world in which the bodies will collide.\r\n *\r\n * @name Phaser.Physics.Arcade.Collider#world\r\n * @type {Phaser.Physics.Arcade.World}\r\n * @since 3.0.0\r\n */\r\n this.world = world;\r\n\r\n /**\r\n * The name of the collider (unused by Phaser).\r\n *\r\n * @name Phaser.Physics.Arcade.Collider#name\r\n * @type {string}\r\n * @since 3.1.0\r\n */\r\n this.name = '';\r\n\r\n /**\r\n * Whether the collider is active.\r\n *\r\n * @name Phaser.Physics.Arcade.Collider#active\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.active = true;\r\n\r\n /**\r\n * Whether to check for collisions or overlaps.\r\n *\r\n * @name Phaser.Physics.Arcade.Collider#overlapOnly\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.overlapOnly = overlapOnly;\r\n\r\n /**\r\n * The first object to check for collision.\r\n *\r\n * @name Phaser.Physics.Arcade.Collider#object1\r\n * @type {Phaser.Types.Physics.Arcade.ArcadeColliderType}\r\n * @since 3.0.0\r\n */\r\n this.object1 = object1;\r\n\r\n /**\r\n * The second object to check for collision.\r\n *\r\n * @name Phaser.Physics.Arcade.Collider#object2\r\n * @type {Phaser.Types.Physics.Arcade.ArcadeColliderType}\r\n * @since 3.0.0\r\n */\r\n this.object2 = object2;\r\n\r\n /**\r\n * The callback to invoke when the two objects collide.\r\n *\r\n * @name Phaser.Physics.Arcade.Collider#collideCallback\r\n * @type {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback}\r\n * @since 3.0.0\r\n */\r\n this.collideCallback = collideCallback;\r\n\r\n /**\r\n * If a processCallback exists it must return true or collision checking will be skipped.\r\n *\r\n * @name Phaser.Physics.Arcade.Collider#processCallback\r\n * @type {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback}\r\n * @since 3.0.0\r\n */\r\n this.processCallback = processCallback;\r\n\r\n /**\r\n * The context the collideCallback and processCallback will run in.\r\n *\r\n * @name Phaser.Physics.Arcade.Collider#callbackContext\r\n * @type {object}\r\n * @since 3.0.0\r\n */\r\n this.callbackContext = callbackContext;\r\n },\r\n\r\n /**\r\n * A name for the Collider.\r\n *\r\n * Phaser does not use this value, it's for your own reference.\r\n *\r\n * @method Phaser.Physics.Arcade.Collider#setName\r\n * @since 3.1.0\r\n *\r\n * @param {string} name - The name to assign to the Collider.\r\n *\r\n * @return {Phaser.Physics.Arcade.Collider} This Collider instance.\r\n */\r\n setName: function (name)\r\n {\r\n this.name = name;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Called by World as part of its step processing, initial operation of collision checking.\r\n *\r\n * @method Phaser.Physics.Arcade.Collider#update\r\n * @since 3.0.0\r\n */\r\n update: function ()\r\n {\r\n this.world.collideObjects(\r\n this.object1,\r\n this.object2,\r\n this.collideCallback,\r\n this.processCallback,\r\n this.callbackContext,\r\n this.overlapOnly\r\n );\r\n },\r\n\r\n /**\r\n * Removes Collider from World and disposes of its resources.\r\n *\r\n * @method Phaser.Physics.Arcade.Collider#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.world.removeCollider(this);\r\n\r\n this.active = false;\r\n\r\n this.world = null;\r\n\r\n this.object1 = null;\r\n this.object2 = null;\r\n\r\n this.collideCallback = null;\r\n this.processCallback = null;\r\n this.callbackContext = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Collider;\r\n\n\n/***/ }),\n\n/***/ 66022:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar ArcadeImage = __webpack_require__(71289);\r\nvar ArcadeSprite = __webpack_require__(13759);\r\nvar Body = __webpack_require__(37742);\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(37747);\r\nvar PhysicsGroup = __webpack_require__(60758);\r\nvar StaticBody = __webpack_require__(72624);\r\nvar StaticPhysicsGroup = __webpack_require__(71464);\r\n\r\n/**\r\n * @classdesc\r\n * The Arcade Physics Factory allows you to easily create Arcade Physics enabled Game Objects.\r\n * Objects that are created by this Factory are automatically added to the physics world.\r\n *\r\n * @class Factory\r\n * @memberof Phaser.Physics.Arcade\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Arcade.World} world - The Arcade Physics World instance.\r\n */\r\nvar Factory = new Class({\r\n\r\n initialize:\r\n\r\n function Factory (world)\r\n {\r\n /**\r\n * A reference to the Arcade Physics World.\r\n *\r\n * @name Phaser.Physics.Arcade.Factory#world\r\n * @type {Phaser.Physics.Arcade.World}\r\n * @since 3.0.0\r\n */\r\n this.world = world;\r\n\r\n /**\r\n * A reference to the Scene this Arcade Physics instance belongs to.\r\n *\r\n * @name Phaser.Physics.Arcade.Factory#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.0.0\r\n */\r\n this.scene = world.scene;\r\n\r\n /**\r\n * A reference to the Scene.Systems this Arcade Physics instance belongs to.\r\n *\r\n * @name Phaser.Physics.Arcade.Factory#sys\r\n * @type {Phaser.Scenes.Systems}\r\n * @since 3.0.0\r\n */\r\n this.sys = world.scene.sys;\r\n },\r\n\r\n /**\r\n * Creates a new Arcade Physics Collider object.\r\n *\r\n * @method Phaser.Physics.Arcade.Factory#collider\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeColliderType} object1 - The first object to check for collision.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeColliderType} object2 - The second object to check for collision.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [collideCallback] - The callback to invoke when the two objects collide.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [processCallback] - The callback to invoke when the two objects collide. Must return a boolean.\r\n * @param {*} [callbackContext] - The scope in which to call the callbacks.\r\n *\r\n * @return {Phaser.Physics.Arcade.Collider} The Collider that was created.\r\n */\r\n collider: function (object1, object2, collideCallback, processCallback, callbackContext)\r\n {\r\n return this.world.addCollider(object1, object2, collideCallback, processCallback, callbackContext);\r\n },\r\n\r\n /**\r\n * Creates a new Arcade Physics Collider Overlap object.\r\n *\r\n * @method Phaser.Physics.Arcade.Factory#overlap\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeColliderType} object1 - The first object to check for overlap.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeColliderType} object2 - The second object to check for overlap.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [collideCallback] - The callback to invoke when the two objects collide.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [processCallback] - The callback to invoke when the two objects collide. Must return a boolean.\r\n * @param {*} [callbackContext] - The scope in which to call the callbacks.\r\n *\r\n * @return {Phaser.Physics.Arcade.Collider} The Collider that was created.\r\n */\r\n overlap: function (object1, object2, collideCallback, processCallback, callbackContext)\r\n {\r\n return this.world.addOverlap(object1, object2, collideCallback, processCallback, callbackContext);\r\n },\r\n\r\n /**\r\n * Adds an Arcade Physics Body to the given Game Object.\r\n *\r\n * @method Phaser.Physics.Arcade.Factory#existing\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.GameObjects.GameObject} G - [gameObject,$return]\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - A Game Object.\r\n * @param {boolean} [isStatic=false] - Create a Static body (true) or Dynamic body (false).\r\n *\r\n * @return {Phaser.Types.Physics.Arcade.GameObjectWithBody} The Game Object.\r\n */\r\n existing: function (gameObject, isStatic)\r\n {\r\n var type = (isStatic) ? CONST.STATIC_BODY : CONST.DYNAMIC_BODY;\r\n\r\n this.world.enableBody(gameObject, type);\r\n\r\n return gameObject;\r\n },\r\n\r\n /**\r\n * Creates a new Arcade Image object with a Static body.\r\n *\r\n * @method Phaser.Physics.Arcade.Factory#staticImage\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {(string|Phaser.Textures.Texture)} texture - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - An optional frame from the Texture this Game Object is rendering with.\r\n *\r\n * @return {Phaser.Types.Physics.Arcade.ImageWithStaticBody} The Image object that was created.\r\n */\r\n staticImage: function (x, y, key, frame)\r\n {\r\n var image = new ArcadeImage(this.scene, x, y, key, frame);\r\n\r\n this.sys.displayList.add(image);\r\n\r\n this.world.enableBody(image, CONST.STATIC_BODY);\r\n\r\n return image;\r\n },\r\n\r\n /**\r\n * Creates a new Arcade Image object with a Dynamic body.\r\n *\r\n * @method Phaser.Physics.Arcade.Factory#image\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {(string|Phaser.Textures.Texture)} texture - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - An optional frame from the Texture this Game Object is rendering with.\r\n *\r\n * @return {Phaser.Types.Physics.Arcade.ImageWithDynamicBody} The Image object that was created.\r\n */\r\n image: function (x, y, key, frame)\r\n {\r\n var image = new ArcadeImage(this.scene, x, y, key, frame);\r\n\r\n this.sys.displayList.add(image);\r\n\r\n this.world.enableBody(image, CONST.DYNAMIC_BODY);\r\n\r\n return image;\r\n },\r\n\r\n /**\r\n * Creates a new Arcade Sprite object with a Static body.\r\n *\r\n * @method Phaser.Physics.Arcade.Factory#staticSprite\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {(string|Phaser.Textures.Texture)} texture - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - An optional frame from the Texture this Game Object is rendering with.\r\n *\r\n * @return {Phaser.Types.Physics.Arcade.SpriteWithStaticBody} The Sprite object that was created.\r\n */\r\n staticSprite: function (x, y, key, frame)\r\n {\r\n var sprite = new ArcadeSprite(this.scene, x, y, key, frame);\r\n\r\n this.sys.displayList.add(sprite);\r\n this.sys.updateList.add(sprite);\r\n\r\n this.world.enableBody(sprite, CONST.STATIC_BODY);\r\n\r\n return sprite;\r\n },\r\n\r\n /**\r\n * Creates a new Arcade Sprite object with a Dynamic body.\r\n *\r\n * @method Phaser.Physics.Arcade.Factory#sprite\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {string} key - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - An optional frame from the Texture this Game Object is rendering with.\r\n *\r\n * @return {Phaser.Types.Physics.Arcade.SpriteWithDynamicBody} The Sprite object that was created.\r\n */\r\n sprite: function (x, y, key, frame)\r\n {\r\n var sprite = new ArcadeSprite(this.scene, x, y, key, frame);\r\n\r\n this.sys.displayList.add(sprite);\r\n this.sys.updateList.add(sprite);\r\n\r\n this.world.enableBody(sprite, CONST.DYNAMIC_BODY);\r\n\r\n return sprite;\r\n },\r\n\r\n /**\r\n * Creates a Static Physics Group object.\r\n * All Game Objects created by this Group will automatically be static Arcade Physics objects.\r\n *\r\n * @method Phaser.Physics.Arcade.Factory#staticGroup\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.GameObjects.GameObject[]|Phaser.Types.GameObjects.Group.GroupConfig|Phaser.Types.GameObjects.Group.GroupCreateConfig)} [children] - Game Objects to add to this group; or the `config` argument.\r\n * @param {Phaser.Types.GameObjects.Group.GroupConfig|Phaser.Types.GameObjects.Group.GroupCreateConfig} [config] - Settings for this group.\r\n *\r\n * @return {Phaser.Physics.Arcade.StaticGroup} The Static Group object that was created.\r\n */\r\n staticGroup: function (children, config)\r\n {\r\n return this.sys.updateList.add(new StaticPhysicsGroup(this.world, this.world.scene, children, config));\r\n },\r\n\r\n /**\r\n * Creates a Physics Group object.\r\n * All Game Objects created by this Group will automatically be dynamic Arcade Physics objects.\r\n *\r\n * @method Phaser.Physics.Arcade.Factory#group\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.GameObjects.GameObject[]|Phaser.Types.Physics.Arcade.PhysicsGroupConfig|Phaser.Types.GameObjects.Group.GroupCreateConfig)} [children] - Game Objects to add to this group; or the `config` argument.\r\n * @param {Phaser.Types.Physics.Arcade.PhysicsGroupConfig|Phaser.Types.GameObjects.Group.GroupCreateConfig} [config] - Settings for this group.\r\n *\r\n * @return {Phaser.Physics.Arcade.Group} The Group object that was created.\r\n */\r\n group: function (children, config)\r\n {\r\n return this.sys.updateList.add(new PhysicsGroup(this.world, this.world.scene, children, config));\r\n },\r\n\r\n /**\r\n * Creates a new physics Body with the given position and size.\r\n *\r\n * This Body is not associated with any Game Object, but still exists within the world\r\n * and can be tested for collision, have velocity, etc.\r\n *\r\n * @method Phaser.Physics.Arcade.Factory#body\r\n * @since 3.60.0\r\n *\r\n * @param {number} x - The horizontal position of this Body in the physics world.\r\n * @param {number} y - The vertical position of this Body in the physics world.\r\n * @param {number} [width=64] - The width of the Body in pixels. Cannot be negative or zero.\r\n * @param {number} [height=64] - The height of the Body in pixels. Cannot be negative or zero.\r\n *\r\n * @return {Phaser.Physics.Arcade.Body} The Body that was created.\r\n */\r\n body: function (x, y, width, height)\r\n {\r\n var body = new Body(this.world);\r\n\r\n body.position.set(x, y);\r\n\r\n if (width && height)\r\n {\r\n body.setSize(width, height);\r\n }\r\n\r\n this.world.add(body, CONST.DYNAMIC_BODY);\r\n\r\n return body;\r\n },\r\n\r\n /**\r\n * Creates a new static physics Body with the given position and size.\r\n *\r\n * This Body is not associated with any Game Object, but still exists within the world\r\n * and can be tested for collision, etc.\r\n *\r\n * @method Phaser.Physics.Arcade.Factory#staticBody\r\n * @since 3.60.0\r\n *\r\n * @param {number} x - The horizontal position of this Body in the physics world.\r\n * @param {number} y - The vertical position of this Body in the physics world.\r\n * @param {number} [width=64] - The width of the Body in pixels. Cannot be negative or zero.\r\n * @param {number} [height=64] - The height of the Body in pixels. Cannot be negative or zero.\r\n *\r\n * @return {Phaser.Physics.Arcade.StaticBody} The Static Body that was created.\r\n */\r\n staticBody: function (x, y, width, height)\r\n {\r\n var body = new StaticBody(this.world);\r\n\r\n body.position.set(x, y);\r\n\r\n if (width && height)\r\n {\r\n body.setSize(width, height);\r\n }\r\n\r\n this.world.add(body, CONST.STATIC_BODY);\r\n\r\n return body;\r\n },\r\n\r\n /**\r\n * Destroys this Factory.\r\n *\r\n * @method Phaser.Physics.Arcade.Factory#destroy\r\n * @since 3.5.0\r\n */\r\n destroy: function ()\r\n {\r\n this.world = null;\r\n this.scene = null;\r\n this.sys = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Factory;\r\n\n\n/***/ }),\n\n/***/ 79599:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Calculates and returns the bitmask needed to determine if the given\r\n * categories will collide with each other or not.\r\n *\r\n * @function Phaser.Physics.Arcade.GetCollidesWith\r\n * @since 3.70.0\r\n *\r\n * @param {(number|number[])} categories - A unique category bitfield, or an array of them.\r\n *\r\n * @return {number} The collision mask.\r\n */\r\nvar GetCollidesWith = function (categories)\r\n{\r\n var flags = 0;\r\n\r\n if (!Array.isArray(categories))\r\n {\r\n flags = categories;\r\n }\r\n else\r\n {\r\n for (var i = 0; i < categories.length; i++)\r\n {\r\n flags |= categories[i];\r\n }\r\n }\r\n\r\n return flags;\r\n};\r\n\r\nmodule.exports = GetCollidesWith;\r\n\n\n/***/ }),\n\n/***/ 64897:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(37747);\r\n\r\n/**\r\n * Calculates and returns the horizontal overlap between two arcade physics bodies and sets their properties\r\n * accordingly, including: `touching.left`, `touching.right`, `touching.none` and `overlapX'.\r\n *\r\n * @function Phaser.Physics.Arcade.GetOverlapX\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Arcade.Body} body1 - The first Body to separate.\r\n * @param {Phaser.Physics.Arcade.Body} body2 - The second Body to separate.\r\n * @param {boolean} overlapOnly - Is this an overlap only check, or part of separation?\r\n * @param {number} bias - A value added to the delta values during collision checks. Increase it to prevent sprite tunneling(sprites passing through another instead of colliding).\r\n *\r\n * @return {number} The amount of overlap.\r\n */\r\nvar GetOverlapX = function (body1, body2, overlapOnly, bias)\r\n{\r\n var overlap = 0;\r\n var maxOverlap = body1.deltaAbsX() + body2.deltaAbsX() + bias;\r\n\r\n if (body1._dx === 0 && body2._dx === 0)\r\n {\r\n // They overlap but neither of them are moving\r\n body1.embedded = true;\r\n body2.embedded = true;\r\n }\r\n else if (body1._dx > body2._dx)\r\n {\r\n // Body1 is moving right and / or Body2 is moving left\r\n overlap = body1.right - body2.x;\r\n\r\n if ((overlap > maxOverlap && !overlapOnly) || body1.checkCollision.right === false || body2.checkCollision.left === false)\r\n {\r\n overlap = 0;\r\n }\r\n else\r\n {\r\n body1.touching.none = false;\r\n body1.touching.right = true;\r\n\r\n body2.touching.none = false;\r\n body2.touching.left = true;\r\n\r\n if (body2.physicsType === CONST.STATIC_BODY && !overlapOnly)\r\n {\r\n body1.blocked.none = false;\r\n body1.blocked.right = true;\r\n }\r\n\r\n if (body1.physicsType === CONST.STATIC_BODY && !overlapOnly)\r\n {\r\n body2.blocked.none = false;\r\n body2.blocked.left = true;\r\n }\r\n }\r\n }\r\n else if (body1._dx < body2._dx)\r\n {\r\n // Body1 is moving left and/or Body2 is moving right\r\n overlap = body1.x - body2.width - body2.x;\r\n\r\n if ((-overlap > maxOverlap && !overlapOnly) || body1.checkCollision.left === false || body2.checkCollision.right === false)\r\n {\r\n overlap = 0;\r\n }\r\n else\r\n {\r\n body1.touching.none = false;\r\n body1.touching.left = true;\r\n\r\n body2.touching.none = false;\r\n body2.touching.right = true;\r\n\r\n if (body2.physicsType === CONST.STATIC_BODY && !overlapOnly)\r\n {\r\n body1.blocked.none = false;\r\n body1.blocked.left = true;\r\n }\r\n\r\n if (body1.physicsType === CONST.STATIC_BODY && !overlapOnly)\r\n {\r\n body2.blocked.none = false;\r\n body2.blocked.right = true;\r\n }\r\n }\r\n }\r\n\r\n // Resets the overlapX to zero if there is no overlap, or to the actual pixel value if there is\r\n body1.overlapX = overlap;\r\n body2.overlapX = overlap;\r\n\r\n return overlap;\r\n};\r\n\r\nmodule.exports = GetOverlapX;\r\n\n\n/***/ }),\n\n/***/ 45170:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(37747);\r\n\r\n/**\r\n * Calculates and returns the vertical overlap between two arcade physics bodies and sets their properties\r\n * accordingly, including: `touching.up`, `touching.down`, `touching.none` and `overlapY'.\r\n *\r\n * @function Phaser.Physics.Arcade.GetOverlapY\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Arcade.Body} body1 - The first Body to separate.\r\n * @param {Phaser.Physics.Arcade.Body} body2 - The second Body to separate.\r\n * @param {boolean} overlapOnly - Is this an overlap only check, or part of separation?\r\n * @param {number} bias - A value added to the delta values during collision checks. Increase it to prevent sprite tunneling(sprites passing through another instead of colliding).\r\n *\r\n * @return {number} The amount of overlap.\r\n */\r\nvar GetOverlapY = function (body1, body2, overlapOnly, bias)\r\n{\r\n var overlap = 0;\r\n var maxOverlap = body1.deltaAbsY() + body2.deltaAbsY() + bias;\r\n\r\n if (body1._dy === 0 && body2._dy === 0)\r\n {\r\n // They overlap but neither of them are moving\r\n body1.embedded = true;\r\n body2.embedded = true;\r\n }\r\n else if (body1._dy > body2._dy)\r\n {\r\n // Body1 is moving down and/or Body2 is moving up\r\n overlap = body1.bottom - body2.y;\r\n\r\n if ((overlap > maxOverlap && !overlapOnly) || body1.checkCollision.down === false || body2.checkCollision.up === false)\r\n {\r\n overlap = 0;\r\n }\r\n else\r\n {\r\n body1.touching.none = false;\r\n body1.touching.down = true;\r\n\r\n body2.touching.none = false;\r\n body2.touching.up = true;\r\n\r\n if (body2.physicsType === CONST.STATIC_BODY && !overlapOnly)\r\n {\r\n body1.blocked.none = false;\r\n body1.blocked.down = true;\r\n }\r\n\r\n if (body1.physicsType === CONST.STATIC_BODY && !overlapOnly)\r\n {\r\n body2.blocked.none = false;\r\n body2.blocked.up = true;\r\n }\r\n }\r\n }\r\n else if (body1._dy < body2._dy)\r\n {\r\n // Body1 is moving up and/or Body2 is moving down\r\n overlap = body1.y - body2.bottom;\r\n\r\n if ((-overlap > maxOverlap && !overlapOnly) || body1.checkCollision.up === false || body2.checkCollision.down === false)\r\n {\r\n overlap = 0;\r\n }\r\n else\r\n {\r\n body1.touching.none = false;\r\n body1.touching.up = true;\r\n\r\n body2.touching.none = false;\r\n body2.touching.down = true;\r\n\r\n if (body2.physicsType === CONST.STATIC_BODY && !overlapOnly)\r\n {\r\n body1.blocked.none = false;\r\n body1.blocked.up = true;\r\n }\r\n\r\n if (body1.physicsType === CONST.STATIC_BODY && !overlapOnly)\r\n {\r\n body2.blocked.none = false;\r\n body2.blocked.down = true;\r\n }\r\n }\r\n }\r\n\r\n // Resets the overlapY to zero if there is no overlap, or to the actual pixel value if there is\r\n body1.overlapY = overlap;\r\n body2.overlapY = overlap;\r\n\r\n return overlap;\r\n};\r\n\r\nmodule.exports = GetOverlapY;\r\n\n\n/***/ }),\n\n/***/ 60758:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar ArcadeSprite = __webpack_require__(13759);\r\nvar Class = __webpack_require__(83419);\r\nvar CollisionComponent = __webpack_require__(78389);\r\nvar CONST = __webpack_require__(37747);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar Group = __webpack_require__(26479);\r\nvar IsPlainObject = __webpack_require__(41212);\r\n\r\n/**\r\n * @classdesc\r\n * An Arcade Physics Group object.\r\n *\r\n * The primary use of a Physics Group is a way to collect together physics enable objects\r\n * that share the same intrinsic structure into a single pool. They can they be easily\r\n * compared against other Groups, or Game Objects.\r\n *\r\n * All Game Objects created by, or added to this Group will automatically be given **dynamic**\r\n * Arcade Physics bodies (if they have no body already) and the bodies will receive the\r\n * Groups {@link Phaser.Physics.Arcade.Group#defaults default values}.\r\n *\r\n * You should not pass objects into this Group that should not receive a body. For example,\r\n * do not add basic Geometry or Tilemap Layers into a Group, as they will not behave in the\r\n * way you may expect. Groups should all ideally have objects of the same type in them.\r\n *\r\n * If you wish to create a Group filled with Static Bodies, please see {@link Phaser.Physics.Arcade.StaticGroup}.\r\n *\r\n * @class Group\r\n * @extends Phaser.GameObjects.Group\r\n * @memberof Phaser.Physics.Arcade\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @extends Phaser.Physics.Arcade.Components.Collision\r\n *\r\n * @param {Phaser.Physics.Arcade.World} world - The physics simulation.\r\n * @param {Phaser.Scene} scene - The scene this group belongs to.\r\n * @param {(Phaser.GameObjects.GameObject[]|Phaser.Types.Physics.Arcade.PhysicsGroupConfig|Phaser.Types.GameObjects.Group.GroupCreateConfig)} [children] - Game Objects to add to this group; or the `config` argument.\r\n * @param {Phaser.Types.Physics.Arcade.PhysicsGroupConfig|Phaser.Types.GameObjects.Group.GroupCreateConfig} [config] - Settings for this group.\r\n */\r\nvar PhysicsGroup = new Class({\r\n\r\n Extends: Group,\r\n\r\n Mixins: [\r\n CollisionComponent\r\n ],\r\n\r\n initialize:\r\n\r\n function PhysicsGroup (world, scene, children, config)\r\n {\r\n if (!children && !config)\r\n {\r\n config = {\r\n internalCreateCallback: this.createCallbackHandler,\r\n internalRemoveCallback: this.removeCallbackHandler\r\n };\r\n }\r\n else if (IsPlainObject(children))\r\n {\r\n // children is a plain object, so swizzle them:\r\n config = children;\r\n children = null;\r\n\r\n config.internalCreateCallback = this.createCallbackHandler;\r\n config.internalRemoveCallback = this.removeCallbackHandler;\r\n }\r\n else if (Array.isArray(children) && IsPlainObject(children[0]))\r\n {\r\n // children is an array of plain objects (i.e., configs)\r\n var _this = this;\r\n\r\n children.forEach(function (singleConfig)\r\n {\r\n singleConfig.internalCreateCallback = _this.createCallbackHandler;\r\n singleConfig.internalRemoveCallback = _this.removeCallbackHandler;\r\n singleConfig.classType = GetFastValue(singleConfig, 'classType', ArcadeSprite);\r\n });\r\n\r\n config = null;\r\n }\r\n else\r\n {\r\n // config is not defined and children is not a plain object nor an array of plain objects\r\n config = {\r\n internalCreateCallback: this.createCallbackHandler,\r\n internalRemoveCallback: this.removeCallbackHandler\r\n };\r\n }\r\n\r\n /**\r\n * The physics simulation.\r\n *\r\n * @name Phaser.Physics.Arcade.Group#world\r\n * @type {Phaser.Physics.Arcade.World}\r\n * @since 3.0.0\r\n */\r\n this.world = world;\r\n\r\n /**\r\n * The class to create new Group members from.\r\n *\r\n * This should be either `Phaser.Physics.Arcade.Image`, `Phaser.Physics.Arcade.Sprite`, or a class extending one of those.\r\n *\r\n * @name Phaser.Physics.Arcade.Group#classType\r\n * @type {function}\r\n * @default ArcadeSprite\r\n * @since 3.0.0\r\n * @see Phaser.Types.GameObjects.Group.GroupClassTypeConstructor\r\n */\r\n if (config)\r\n {\r\n config.classType = GetFastValue(config, 'classType', ArcadeSprite);\r\n }\r\n\r\n /**\r\n * The physics type of the Group's members.\r\n *\r\n * @name Phaser.Physics.Arcade.Group#physicsType\r\n * @type {number}\r\n * @default Phaser.Physics.Arcade.DYNAMIC_BODY\r\n * @since 3.0.0\r\n */\r\n this.physicsType = CONST.DYNAMIC_BODY;\r\n\r\n /**\r\n * The Arcade Physics Group Collision Category.\r\n *\r\n * This can be set to any valid collision bitfield value.\r\n *\r\n * See the `setCollisionCategory` method for more details.\r\n *\r\n * @name Phaser.Physics.Arcade.Group#collisionCategory\r\n * @type {number}\r\n * @since 3.70.0\r\n */\r\n this.collisionCategory = 0x0001;\r\n\r\n /**\r\n * The Arcade Physics Group Collision Mask.\r\n *\r\n * See the `setCollidesWith` method for more details.\r\n *\r\n * @name Phaser.Physics.Arcade.Group#collisionMask\r\n * @type {number}\r\n * @since 3.70.0\r\n */\r\n this.collisionMask = 2147483647;\r\n\r\n /**\r\n * Default physics properties applied to Game Objects added to the Group or created by the Group. Derived from the `config` argument.\r\n *\r\n * You can remove the default values by setting this property to `{}`.\r\n *\r\n * @name Phaser.Physics.Arcade.Group#defaults\r\n * @type {Phaser.Types.Physics.Arcade.PhysicsGroupDefaults}\r\n * @since 3.0.0\r\n */\r\n this.defaults = {\r\n setCollideWorldBounds: GetFastValue(config, 'collideWorldBounds', false),\r\n setBoundsRectangle: GetFastValue(config, 'customBoundsRectangle', null),\r\n setAccelerationX: GetFastValue(config, 'accelerationX', 0),\r\n setAccelerationY: GetFastValue(config, 'accelerationY', 0),\r\n setAllowDrag: GetFastValue(config, 'allowDrag', true),\r\n setAllowGravity: GetFastValue(config, 'allowGravity', true),\r\n setAllowRotation: GetFastValue(config, 'allowRotation', true),\r\n setDamping: GetFastValue(config, 'useDamping', false),\r\n setBounceX: GetFastValue(config, 'bounceX', 0),\r\n setBounceY: GetFastValue(config, 'bounceY', 0),\r\n setDragX: GetFastValue(config, 'dragX', 0),\r\n setDragY: GetFastValue(config, 'dragY', 0),\r\n setEnable: GetFastValue(config, 'enable', true),\r\n setGravityX: GetFastValue(config, 'gravityX', 0),\r\n setGravityY: GetFastValue(config, 'gravityY', 0),\r\n setFrictionX: GetFastValue(config, 'frictionX', 0),\r\n setFrictionY: GetFastValue(config, 'frictionY', 0),\r\n setMaxSpeed: GetFastValue(config, 'maxSpeed', -1),\r\n setMaxVelocityX: GetFastValue(config, 'maxVelocityX', 10000),\r\n setMaxVelocityY: GetFastValue(config, 'maxVelocityY', 10000),\r\n setVelocityX: GetFastValue(config, 'velocityX', 0),\r\n setVelocityY: GetFastValue(config, 'velocityY', 0),\r\n setAngularVelocity: GetFastValue(config, 'angularVelocity', 0),\r\n setAngularAcceleration: GetFastValue(config, 'angularAcceleration', 0),\r\n setAngularDrag: GetFastValue(config, 'angularDrag', 0),\r\n setMass: GetFastValue(config, 'mass', 1),\r\n setImmovable: GetFastValue(config, 'immovable', false)\r\n };\r\n\r\n Group.call(this, scene, children, config);\r\n\r\n /**\r\n * A textual representation of this Game Object.\r\n * Used internally by Phaser but is available for your own custom classes to populate.\r\n *\r\n * @name Phaser.Physics.Arcade.Group#type\r\n * @type {string}\r\n * @default 'PhysicsGroup'\r\n * @since 3.21.0\r\n */\r\n this.type = 'PhysicsGroup';\r\n },\r\n\r\n /**\r\n * Enables a Game Object's Body and assigns `defaults`. Called when a Group member is added or created.\r\n *\r\n * @method Phaser.Physics.Arcade.Group#createCallbackHandler\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} child - The Game Object being added.\r\n */\r\n createCallbackHandler: function (child)\r\n {\r\n if (!child.body)\r\n {\r\n this.world.enableBody(child, CONST.DYNAMIC_BODY);\r\n }\r\n\r\n var body = child.body;\r\n\r\n for (var key in this.defaults)\r\n {\r\n body[key](this.defaults[key]);\r\n }\r\n },\r\n\r\n /**\r\n * Disables a Game Object's Body. Called when a Group member is removed.\r\n *\r\n * @method Phaser.Physics.Arcade.Group#removeCallbackHandler\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} child - The Game Object being removed.\r\n */\r\n removeCallbackHandler: function (child)\r\n {\r\n if (child.body)\r\n {\r\n this.world.disableBody(child);\r\n }\r\n },\r\n\r\n /**\r\n * Sets the velocity of each Group member.\r\n *\r\n * @method Phaser.Physics.Arcade.Group#setVelocity\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal velocity.\r\n * @param {number} y - The vertical velocity.\r\n * @param {number} [step=0] - The velocity increment. When set, the first member receives velocity (x, y), the second (x + step, y + step), and so on.\r\n *\r\n * @return {Phaser.Physics.Arcade.Group} This Physics Group object.\r\n */\r\n setVelocity: function (x, y, step)\r\n {\r\n if (step === undefined) { step = 0; }\r\n\r\n var items = this.getChildren();\r\n\r\n for (var i = 0; i < items.length; i++)\r\n {\r\n items[i].body.velocity.set(x + (i * step), y + (i * step));\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the horizontal velocity of each Group member.\r\n *\r\n * @method Phaser.Physics.Arcade.Group#setVelocityX\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The velocity value.\r\n * @param {number} [step=0] - The velocity increment. When set, the first member receives velocity (x), the second (x + step), and so on.\r\n *\r\n * @return {Phaser.Physics.Arcade.Group} This Physics Group object.\r\n */\r\n setVelocityX: function (value, step)\r\n {\r\n if (step === undefined) { step = 0; }\r\n\r\n var items = this.getChildren();\r\n\r\n for (var i = 0; i < items.length; i++)\r\n {\r\n items[i].body.velocity.x = value + (i * step);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the vertical velocity of each Group member.\r\n *\r\n * @method Phaser.Physics.Arcade.Group#setVelocityY\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The velocity value.\r\n * @param {number} [step=0] - The velocity increment. When set, the first member receives velocity (y), the second (y + step), and so on.\r\n *\r\n * @return {Phaser.Physics.Arcade.Group} This Physics Group object.\r\n */\r\n setVelocityY: function (value, step)\r\n {\r\n if (step === undefined) { step = 0; }\r\n\r\n var items = this.getChildren();\r\n\r\n for (var i = 0; i < items.length; i++)\r\n {\r\n items[i].body.velocity.y = value + (i * step);\r\n }\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = PhysicsGroup;\r\n\n\n/***/ }),\n\n/***/ 3017:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar body1;\r\nvar body2;\r\nvar body1Pushable;\r\nvar body2Pushable;\r\nvar body1MassImpact;\r\nvar body2MassImpact;\r\nvar body1FullImpact;\r\nvar body2FullImpact;\r\nvar body1MovingLeft;\r\nvar body1MovingRight;\r\nvar body1Stationary;\r\nvar body2MovingLeft;\r\nvar body2MovingRight;\r\nvar body2Stationary;\r\nvar body1OnLeft;\r\nvar body2OnLeft;\r\nvar overlap;\r\n\r\n/**\r\n * Sets all of the local processing values and calculates the velocity exchanges.\r\n *\r\n * Then runs `BlockCheck` and returns the value from it.\r\n *\r\n * This method is called by `Phaser.Physics.Arcade.SeparateX` and should not be\r\n * called directly.\r\n *\r\n * @function Phaser.Physics.Arcade.ProcessX.Set\r\n * @ignore\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Physics.Arcade.Body} b1 - The first Body to separate.\r\n * @param {Phaser.Physics.Arcade.Body} b2 - The second Body to separate.\r\n * @param {number} ov - The overlap value.\r\n *\r\n * @return {number} The BlockCheck result. 0 = not blocked. 1 = Body 1 blocked. 2 = Body 2 blocked.\r\n */\r\nvar Set = function (b1, b2, ov)\r\n{\r\n body1 = b1;\r\n body2 = b2;\r\n\r\n var v1 = body1.velocity.x;\r\n var v2 = body2.velocity.x;\r\n\r\n body1Pushable = body1.pushable;\r\n body1MovingLeft = body1._dx < 0;\r\n body1MovingRight = body1._dx > 0;\r\n body1Stationary = body1._dx === 0;\r\n body1OnLeft = Math.abs(body1.right - body2.x) <= Math.abs(body2.right - body1.x);\r\n body1FullImpact = v2 - v1 * body1.bounce.x;\r\n\r\n body2Pushable = body2.pushable;\r\n body2MovingLeft = body2._dx < 0;\r\n body2MovingRight = body2._dx > 0;\r\n body2Stationary = body2._dx === 0;\r\n body2OnLeft = !body1OnLeft;\r\n body2FullImpact = v1 - v2 * body2.bounce.x;\r\n\r\n // negative delta = up, positive delta = down (inc. gravity)\r\n overlap = Math.abs(ov);\r\n\r\n return BlockCheck();\r\n};\r\n\r\n/**\r\n * Blocked Direction checks, because it doesn't matter if an object can be pushed\r\n * or not, blocked is blocked.\r\n *\r\n * @function Phaser.Physics.Arcade.ProcessX.BlockCheck\r\n * @ignore\r\n * @since 3.50.0\r\n *\r\n * @return {number} The BlockCheck result. 0 = not blocked. 1 = Body 1 blocked. 2 = Body 2 blocked.\r\n */\r\nvar BlockCheck = function ()\r\n{\r\n // Body1 is moving right and Body2 is blocked from going right any further\r\n if (body1MovingRight && body1OnLeft && body2.blocked.right)\r\n {\r\n body1.processX(-overlap, body1FullImpact, false, true);\r\n\r\n return 1;\r\n }\r\n\r\n // Body1 is moving left and Body2 is blocked from going left any further\r\n if (body1MovingLeft && body2OnLeft && body2.blocked.left)\r\n {\r\n body1.processX(overlap, body1FullImpact, true);\r\n\r\n return 1;\r\n }\r\n\r\n // Body2 is moving right and Body1 is blocked from going right any further\r\n if (body2MovingRight && body2OnLeft && body1.blocked.right)\r\n {\r\n body2.processX(-overlap, body2FullImpact, false, true);\r\n\r\n return 2;\r\n }\r\n\r\n // Body2 is moving left and Body1 is blocked from going left any further\r\n if (body2MovingLeft && body1OnLeft && body1.blocked.left)\r\n {\r\n body2.processX(overlap, body2FullImpact, true);\r\n\r\n return 2;\r\n }\r\n\r\n return 0;\r\n};\r\n\r\n/**\r\n * The main check function. Runs through one of the four possible tests and returns the results.\r\n *\r\n * @function Phaser.Physics.Arcade.ProcessX.Check\r\n * @ignore\r\n * @since 3.50.0\r\n *\r\n * @return {boolean} `true` if a check passed, otherwise `false`.\r\n */\r\nvar Check = function ()\r\n{\r\n var v1 = body1.velocity.x;\r\n var v2 = body2.velocity.x;\r\n\r\n var nv1 = Math.sqrt((v2 * v2 * body2.mass) / body1.mass) * ((v2 > 0) ? 1 : -1);\r\n var nv2 = Math.sqrt((v1 * v1 * body1.mass) / body2.mass) * ((v1 > 0) ? 1 : -1);\r\n var avg = (nv1 + nv2) * 0.5;\r\n\r\n nv1 -= avg;\r\n nv2 -= avg;\r\n\r\n body1MassImpact = avg + nv1 * body1.bounce.x;\r\n body2MassImpact = avg + nv2 * body2.bounce.x;\r\n\r\n // Body1 hits Body2 on the right hand side\r\n if (body1MovingLeft && body2OnLeft)\r\n {\r\n return Run(0);\r\n }\r\n\r\n // Body2 hits Body1 on the right hand side\r\n if (body2MovingLeft && body1OnLeft)\r\n {\r\n return Run(1);\r\n }\r\n\r\n // Body1 hits Body2 on the left hand side\r\n if (body1MovingRight && body1OnLeft)\r\n {\r\n return Run(2);\r\n }\r\n\r\n // Body2 hits Body1 on the left hand side\r\n if (body2MovingRight && body2OnLeft)\r\n {\r\n return Run(3);\r\n }\r\n\r\n return false;\r\n};\r\n\r\n/**\r\n * The main check function. Runs through one of the four possible tests and returns the results.\r\n *\r\n * @function Phaser.Physics.Arcade.ProcessX.Run\r\n * @ignore\r\n * @since 3.50.0\r\n *\r\n * @param {number} side - The side to test. As passed in by the `Check` function.\r\n *\r\n * @return {boolean} Always returns `true`.\r\n */\r\nvar Run = function (side)\r\n{\r\n if (body1Pushable && body2Pushable)\r\n {\r\n // Both pushable, or both moving at the same time, so equal rebound\r\n overlap *= 0.5;\r\n\r\n if (side === 0 || side === 3)\r\n {\r\n // body1MovingLeft && body2OnLeft\r\n // body2MovingRight && body2OnLeft\r\n body1.processX(overlap, body1MassImpact);\r\n body2.processX(-overlap, body2MassImpact);\r\n }\r\n else\r\n {\r\n // body2MovingLeft && body1OnLeft\r\n // body1MovingRight && body1OnLeft\r\n body1.processX(-overlap, body1MassImpact);\r\n body2.processX(overlap, body2MassImpact);\r\n }\r\n }\r\n else if (body1Pushable && !body2Pushable)\r\n {\r\n // Body1 pushable, Body2 not\r\n\r\n if (side === 0 || side === 3)\r\n {\r\n // body1MovingLeft && body2OnLeft\r\n // body2MovingRight && body2OnLeft\r\n body1.processX(overlap, body1FullImpact, true);\r\n }\r\n else\r\n {\r\n // body2MovingLeft && body1OnLeft\r\n // body1MovingRight && body1OnLeft\r\n body1.processX(-overlap, body1FullImpact, false, true);\r\n }\r\n }\r\n else if (!body1Pushable && body2Pushable)\r\n {\r\n // Body2 pushable, Body1 not\r\n\r\n if (side === 0 || side === 3)\r\n {\r\n // body1MovingLeft && body2OnLeft\r\n // body2MovingRight && body2OnLeft\r\n body2.processX(-overlap, body2FullImpact, false, true);\r\n }\r\n else\r\n {\r\n // body2MovingLeft && body1OnLeft\r\n // body1MovingRight && body1OnLeft\r\n body2.processX(overlap, body2FullImpact, true);\r\n }\r\n }\r\n else\r\n {\r\n // Neither body is pushable, so base it on movement\r\n\r\n var halfOverlap = overlap * 0.5;\r\n\r\n if (side === 0)\r\n {\r\n // body1MovingLeft && body2OnLeft\r\n\r\n if (body2Stationary)\r\n {\r\n body1.processX(overlap, 0, true);\r\n body2.processX(0, null, false, true);\r\n }\r\n else if (body2MovingRight)\r\n {\r\n body1.processX(halfOverlap, 0, true);\r\n body2.processX(-halfOverlap, 0, false, true);\r\n }\r\n else\r\n {\r\n // Body2 moving same direction as Body1\r\n body1.processX(halfOverlap, body2.velocity.x, true);\r\n body2.processX(-halfOverlap, null, false, true);\r\n }\r\n }\r\n else if (side === 1)\r\n {\r\n // body2MovingLeft && body1OnLeft\r\n\r\n if (body1Stationary)\r\n {\r\n body1.processX(0, null, false, true);\r\n body2.processX(overlap, 0, true);\r\n }\r\n else if (body1MovingRight)\r\n {\r\n body1.processX(-halfOverlap, 0, false, true);\r\n body2.processX(halfOverlap, 0, true);\r\n }\r\n else\r\n {\r\n // Body1 moving same direction as Body2\r\n body1.processX(-halfOverlap, null, false, true);\r\n body2.processX(halfOverlap, body1.velocity.x, true);\r\n }\r\n }\r\n else if (side === 2)\r\n {\r\n // body1MovingRight && body1OnLeft\r\n\r\n if (body2Stationary)\r\n {\r\n body1.processX(-overlap, 0, false, true);\r\n body2.processX(0, null, true);\r\n }\r\n else if (body2MovingLeft)\r\n {\r\n body1.processX(-halfOverlap, 0, false, true);\r\n body2.processX(halfOverlap, 0, true);\r\n }\r\n else\r\n {\r\n // Body2 moving same direction as Body1\r\n body1.processX(-halfOverlap, body2.velocity.x, false, true);\r\n body2.processX(halfOverlap, null, true);\r\n }\r\n }\r\n else if (side === 3)\r\n {\r\n // body2MovingRight && body2OnLeft\r\n\r\n if (body1Stationary)\r\n {\r\n body1.processX(0, null, true);\r\n body2.processX(-overlap, 0, false, true);\r\n }\r\n else if (body1MovingLeft)\r\n {\r\n body1.processX(halfOverlap, 0, true);\r\n body2.processX(-halfOverlap, 0, false, true);\r\n }\r\n else\r\n {\r\n // Body1 moving same direction as Body2\r\n body1.processX(halfOverlap, body2.velocity.y, true);\r\n body2.processX(-halfOverlap, null, false, true);\r\n }\r\n }\r\n }\r\n\r\n return true;\r\n};\r\n\r\n/**\r\n * This function is run when Body1 is Immovable and Body2 is not.\r\n *\r\n * @function Phaser.Physics.Arcade.ProcessX.RunImmovableBody1\r\n * @ignore\r\n * @since 3.50.0\r\n *\r\n * @param {number} blockedState - The block state value.\r\n */\r\nvar RunImmovableBody1 = function (blockedState)\r\n{\r\n if (blockedState === 1)\r\n {\r\n // But Body2 cannot go anywhere either, so we cancel out velocity\r\n // Separation happened in the block check\r\n body2.velocity.x = 0;\r\n }\r\n else if (body1OnLeft)\r\n {\r\n body2.processX(overlap, body2FullImpact, true);\r\n }\r\n else\r\n {\r\n body2.processX(-overlap, body2FullImpact, false, true);\r\n }\r\n\r\n // This is special case code that handles things like vertically moving platforms you can ride\r\n if (body1.moves)\r\n {\r\n var body1Distance = body1.directControl ? (body1.y - body1.autoFrame.y) : (body1.y - body1.prev.y);\r\n\r\n body2.y += body1Distance * body1.friction.y;\r\n body2._dy = body2.y - body2.prev.y;\r\n }\r\n};\r\n\r\n/**\r\n * This function is run when Body2 is Immovable and Body1 is not.\r\n *\r\n * @function Phaser.Physics.Arcade.ProcessX.RunImmovableBody2\r\n * @ignore\r\n * @since 3.50.0\r\n *\r\n * @param {number} blockedState - The block state value.\r\n */\r\nvar RunImmovableBody2 = function (blockedState)\r\n{\r\n if (blockedState === 2)\r\n {\r\n // But Body1 cannot go anywhere either, so we cancel out velocity\r\n // Separation happened in the block check\r\n body1.velocity.x = 0;\r\n }\r\n else if (body2OnLeft)\r\n {\r\n body1.processX(overlap, body1FullImpact, true);\r\n }\r\n else\r\n {\r\n body1.processX(-overlap, body1FullImpact, false, true);\r\n }\r\n\r\n // This is special case code that handles things like vertically moving platforms you can ride\r\n if (body2.moves)\r\n {\r\n var body2Distance = body2.directControl ? (body2.y - body2.autoFrame.y) : (body2.y - body2.prev.y);\r\n\r\n body1.y += body2Distance * body2.friction.y;\r\n body1._dy = body1.y - body1.prev.y;\r\n }\r\n};\r\n\r\n/**\r\n * @namespace Phaser.Physics.Arcade.ProcessX\r\n * @ignore\r\n */\r\n\r\nmodule.exports = {\r\n BlockCheck: BlockCheck,\r\n Check: Check,\r\n Set: Set,\r\n Run: Run,\r\n RunImmovableBody1: RunImmovableBody1,\r\n RunImmovableBody2: RunImmovableBody2\r\n};\r\n\n\n/***/ }),\n\n/***/ 47962:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar body1;\r\nvar body2;\r\nvar body1Pushable;\r\nvar body2Pushable;\r\nvar body1MassImpact;\r\nvar body2MassImpact;\r\nvar body1FullImpact;\r\nvar body2FullImpact;\r\nvar body1MovingUp;\r\nvar body1MovingDown;\r\nvar body1Stationary;\r\nvar body2MovingUp;\r\nvar body2MovingDown;\r\nvar body2Stationary;\r\nvar body1OnTop;\r\nvar body2OnTop;\r\nvar overlap;\r\n\r\n/**\r\n * Sets all of the local processing values and calculates the velocity exchanges.\r\n *\r\n * Then runs `BlockCheck` and returns the value from it.\r\n *\r\n * This method is called by `Phaser.Physics.Arcade.SeparateY` and should not be\r\n * called directly.\r\n *\r\n * @function Phaser.Physics.Arcade.ProcessY.Set\r\n * @ignore\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Physics.Arcade.Body} b1 - The first Body to separate.\r\n * @param {Phaser.Physics.Arcade.Body} b2 - The second Body to separate.\r\n * @param {number} ov - The overlap value.\r\n *\r\n * @return {number} The BlockCheck result. 0 = not blocked. 1 = Body 1 blocked. 2 = Body 2 blocked.\r\n */\r\nvar Set = function (b1, b2, ov)\r\n{\r\n body1 = b1;\r\n body2 = b2;\r\n\r\n var v1 = body1.velocity.y;\r\n var v2 = body2.velocity.y;\r\n\r\n body1Pushable = body1.pushable;\r\n body1MovingUp = body1._dy < 0;\r\n body1MovingDown = body1._dy > 0;\r\n body1Stationary = body1._dy === 0;\r\n body1OnTop = Math.abs(body1.bottom - body2.y) <= Math.abs(body2.bottom - body1.y);\r\n body1FullImpact = v2 - v1 * body1.bounce.y;\r\n\r\n body2Pushable = body2.pushable;\r\n body2MovingUp = body2._dy < 0;\r\n body2MovingDown = body2._dy > 0;\r\n body2Stationary = body2._dy === 0;\r\n body2OnTop = !body1OnTop;\r\n body2FullImpact = v1 - v2 * body2.bounce.y;\r\n\r\n // negative delta = up, positive delta = down (inc. gravity)\r\n overlap = Math.abs(ov);\r\n\r\n return BlockCheck();\r\n};\r\n\r\n/**\r\n * Blocked Direction checks, because it doesn't matter if an object can be pushed\r\n * or not, blocked is blocked.\r\n *\r\n * @function Phaser.Physics.Arcade.ProcessY.BlockCheck\r\n * @ignore\r\n * @since 3.50.0\r\n *\r\n * @return {number} The BlockCheck result. 0 = not blocked. 1 = Body 1 blocked. 2 = Body 2 blocked.\r\n */\r\nvar BlockCheck = function ()\r\n{\r\n // Body1 is moving down and Body2 is blocked from going down any further\r\n if (body1MovingDown && body1OnTop && body2.blocked.down)\r\n {\r\n body1.processY(-overlap, body1FullImpact, false, true);\r\n\r\n return 1;\r\n }\r\n\r\n // Body1 is moving up and Body2 is blocked from going up any further\r\n if (body1MovingUp && body2OnTop && body2.blocked.up)\r\n {\r\n body1.processY(overlap, body1FullImpact, true);\r\n\r\n return 1;\r\n }\r\n\r\n // Body2 is moving down and Body1 is blocked from going down any further\r\n if (body2MovingDown && body2OnTop && body1.blocked.down)\r\n {\r\n body2.processY(-overlap, body2FullImpact, false, true);\r\n\r\n return 2;\r\n }\r\n\r\n // Body2 is moving up and Body1 is blocked from going up any further\r\n if (body2MovingUp && body1OnTop && body1.blocked.up)\r\n {\r\n body2.processY(overlap, body2FullImpact, true);\r\n\r\n return 2;\r\n }\r\n\r\n return 0;\r\n};\r\n\r\n/**\r\n * The main check function. Runs through one of the four possible tests and returns the results.\r\n *\r\n * @function Phaser.Physics.Arcade.ProcessY.Check\r\n * @ignore\r\n * @since 3.50.0\r\n *\r\n * @return {boolean} `true` if a check passed, otherwise `false`.\r\n */\r\nvar Check = function ()\r\n{\r\n var v1 = body1.velocity.y;\r\n var v2 = body2.velocity.y;\r\n\r\n var nv1 = Math.sqrt((v2 * v2 * body2.mass) / body1.mass) * ((v2 > 0) ? 1 : -1);\r\n var nv2 = Math.sqrt((v1 * v1 * body1.mass) / body2.mass) * ((v1 > 0) ? 1 : -1);\r\n var avg = (nv1 + nv2) * 0.5;\r\n\r\n nv1 -= avg;\r\n nv2 -= avg;\r\n\r\n body1MassImpact = avg + nv1 * body1.bounce.y;\r\n body2MassImpact = avg + nv2 * body2.bounce.y;\r\n\r\n // Body1 hits Body2 on the bottom side\r\n if (body1MovingUp && body2OnTop)\r\n {\r\n return Run(0);\r\n }\r\n\r\n // Body2 hits Body1 on the bottom side\r\n if (body2MovingUp && body1OnTop)\r\n {\r\n return Run(1);\r\n }\r\n\r\n // Body1 hits Body2 on the top side\r\n if (body1MovingDown && body1OnTop)\r\n {\r\n return Run(2);\r\n }\r\n\r\n // Body2 hits Body1 on the top side\r\n if (body2MovingDown && body2OnTop)\r\n {\r\n return Run(3);\r\n }\r\n\r\n return false;\r\n};\r\n\r\n/**\r\n * The main check function. Runs through one of the four possible tests and returns the results.\r\n *\r\n * @function Phaser.Physics.Arcade.ProcessY.Run\r\n * @ignore\r\n * @since 3.50.0\r\n *\r\n * @param {number} side - The side to test. As passed in by the `Check` function.\r\n *\r\n * @return {boolean} Always returns `true`.\r\n */\r\nvar Run = function (side)\r\n{\r\n if (body1Pushable && body2Pushable)\r\n {\r\n // Both pushable, or both moving at the same time, so equal rebound\r\n overlap *= 0.5;\r\n\r\n if (side === 0 || side === 3)\r\n {\r\n // body1MovingUp && body2OnTop\r\n // body2MovingDown && body2OnTop\r\n body1.processY(overlap, body1MassImpact);\r\n body2.processY(-overlap, body2MassImpact);\r\n }\r\n else\r\n {\r\n // body2MovingUp && body1OnTop\r\n // body1MovingDown && body1OnTop\r\n body1.processY(-overlap, body1MassImpact);\r\n body2.processY(overlap, body2MassImpact);\r\n }\r\n }\r\n else if (body1Pushable && !body2Pushable)\r\n {\r\n // Body1 pushable, Body2 not\r\n\r\n if (side === 0 || side === 3)\r\n {\r\n // body1MovingUp && body2OnTop\r\n // body2MovingDown && body2OnTop\r\n body1.processY(overlap, body1FullImpact, true);\r\n }\r\n else\r\n {\r\n // body2MovingUp && body1OnTop\r\n // body1MovingDown && body1OnTop\r\n body1.processY(-overlap, body1FullImpact, false, true);\r\n }\r\n }\r\n else if (!body1Pushable && body2Pushable)\r\n {\r\n // Body2 pushable, Body1 not\r\n\r\n if (side === 0 || side === 3)\r\n {\r\n // body1MovingUp && body2OnTop\r\n // body2MovingDown && body2OnTop\r\n body2.processY(-overlap, body2FullImpact, false, true);\r\n }\r\n else\r\n {\r\n // body2MovingUp && body1OnTop\r\n // body1MovingDown && body1OnTop\r\n body2.processY(overlap, body2FullImpact, true);\r\n }\r\n }\r\n else\r\n {\r\n // Neither body is pushable, so base it on movement\r\n\r\n var halfOverlap = overlap * 0.5;\r\n\r\n if (side === 0)\r\n {\r\n // body1MovingUp && body2OnTop\r\n\r\n if (body2Stationary)\r\n {\r\n body1.processY(overlap, 0, true);\r\n body2.processY(0, null, false, true);\r\n }\r\n else if (body2MovingDown)\r\n {\r\n body1.processY(halfOverlap, 0, true);\r\n body2.processY(-halfOverlap, 0, false, true);\r\n }\r\n else\r\n {\r\n // Body2 moving same direction as Body1\r\n body1.processY(halfOverlap, body2.velocity.y, true);\r\n body2.processY(-halfOverlap, null, false, true);\r\n }\r\n }\r\n else if (side === 1)\r\n {\r\n // body2MovingUp && body1OnTop\r\n\r\n if (body1Stationary)\r\n {\r\n body1.processY(0, null, false, true);\r\n body2.processY(overlap, 0, true);\r\n }\r\n else if (body1MovingDown)\r\n {\r\n body1.processY(-halfOverlap, 0, false, true);\r\n body2.processY(halfOverlap, 0, true);\r\n }\r\n else\r\n {\r\n // Body1 moving same direction as Body2\r\n body1.processY(-halfOverlap, null, false, true);\r\n body2.processY(halfOverlap, body1.velocity.y, true);\r\n }\r\n }\r\n else if (side === 2)\r\n {\r\n // body1MovingDown && body1OnTop\r\n\r\n if (body2Stationary)\r\n {\r\n body1.processY(-overlap, 0, false, true);\r\n body2.processY(0, null, true);\r\n }\r\n else if (body2MovingUp)\r\n {\r\n body1.processY(-halfOverlap, 0, false, true);\r\n body2.processY(halfOverlap, 0, true);\r\n }\r\n else\r\n {\r\n // Body2 moving same direction as Body1\r\n body1.processY(-halfOverlap, body2.velocity.y, false, true);\r\n body2.processY(halfOverlap, null, true);\r\n }\r\n }\r\n else if (side === 3)\r\n {\r\n // body2MovingDown && body2OnTop\r\n\r\n if (body1Stationary)\r\n {\r\n body1.processY(0, null, true);\r\n body2.processY(-overlap, 0, false, true);\r\n }\r\n else if (body1MovingUp)\r\n {\r\n body1.processY(halfOverlap, 0, true);\r\n body2.processY(-halfOverlap, 0, false, true);\r\n }\r\n else\r\n {\r\n // Body1 moving same direction as Body2\r\n body1.processY(halfOverlap, body2.velocity.y, true);\r\n body2.processY(-halfOverlap, null, false, true);\r\n }\r\n }\r\n }\r\n\r\n return true;\r\n};\r\n\r\n/**\r\n * This function is run when Body1 is Immovable and Body2 is not.\r\n *\r\n * @function Phaser.Physics.Arcade.ProcessY.RunImmovableBody1\r\n * @ignore\r\n * @since 3.50.0\r\n *\r\n * @param {number} blockedState - The block state value.\r\n */\r\nvar RunImmovableBody1 = function (blockedState)\r\n{\r\n if (blockedState === 1)\r\n {\r\n // But Body2 cannot go anywhere either, so we cancel out velocity\r\n // Separation happened in the block check\r\n body2.velocity.y = 0;\r\n }\r\n else if (body1OnTop)\r\n {\r\n body2.processY(overlap, body2FullImpact, true);\r\n }\r\n else\r\n {\r\n body2.processY(-overlap, body2FullImpact, false, true);\r\n }\r\n\r\n // This is special case code that handles things like horizontally moving platforms you can ride\r\n if (body1.moves)\r\n {\r\n var body1Distance = body1.directControl ? (body1.x - body1.autoFrame.x) : (body1.x - body1.prev.x);\r\n\r\n body2.x += body1Distance * body1.friction.x;\r\n body2._dx = body2.x - body2.prev.x;\r\n }\r\n};\r\n\r\n/**\r\n * This function is run when Body2 is Immovable and Body1 is not.\r\n *\r\n * @function Phaser.Physics.Arcade.ProcessY.RunImmovableBody2\r\n * @ignore\r\n * @since 3.50.0\r\n *\r\n * @param {number} blockedState - The block state value.\r\n */\r\nvar RunImmovableBody2 = function (blockedState)\r\n{\r\n if (blockedState === 2)\r\n {\r\n // But Body1 cannot go anywhere either, so we cancel out velocity\r\n // Separation happened in the block check\r\n body1.velocity.y = 0;\r\n }\r\n else if (body2OnTop)\r\n {\r\n body1.processY(overlap, body1FullImpact, true);\r\n }\r\n else\r\n {\r\n body1.processY(-overlap, body1FullImpact, false, true);\r\n }\r\n\r\n // This is special case code that handles things like horizontally moving platforms you can ride\r\n if (body2.moves)\r\n {\r\n var body2Distance = body2.directControl ? (body2.x - body2.autoFrame.x) : (body2.x - body2.prev.x);\r\n\r\n body1.x += body2Distance * body2.friction.x;\r\n body1._dx = body1.x - body1.prev.x;\r\n }\r\n};\r\n\r\n/**\r\n * @namespace Phaser.Physics.Arcade.ProcessY\r\n * @ignore\r\n */\r\n\r\nmodule.exports = {\r\n BlockCheck: BlockCheck,\r\n Check: Check,\r\n Set: Set,\r\n Run: Run,\r\n RunImmovableBody1: RunImmovableBody1,\r\n RunImmovableBody2: RunImmovableBody2\r\n};\r\n\n\n/***/ }),\n\n/***/ 14087:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetOverlapX = __webpack_require__(64897);\r\nvar ProcessX = __webpack_require__(3017);\r\n\r\n/**\r\n * Separates two overlapping bodies on the X-axis (horizontally).\r\n *\r\n * Separation involves moving two overlapping bodies so they don't overlap anymore and adjusting their velocities based on their mass. This is a core part of collision detection.\r\n *\r\n * The bodies won't be separated if there is no horizontal overlap between them, if they are static, or if either one uses custom logic for its separation.\r\n *\r\n * @function Phaser.Physics.Arcade.SeparateX\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Arcade.Body} body1 - The first Body to separate.\r\n * @param {Phaser.Physics.Arcade.Body} body2 - The second Body to separate.\r\n * @param {boolean} overlapOnly - If `true`, the bodies will only have their overlap data set and no separation will take place.\r\n * @param {number} bias - A value to add to the delta value during overlap checking. Used to prevent sprite tunneling.\r\n * @param {number} [overlap] - If given then this value will be used as the overlap and no check will be run.\r\n *\r\n * @return {boolean} `true` if the two bodies overlap vertically, otherwise `false`.\r\n */\r\nvar SeparateX = function (body1, body2, overlapOnly, bias, overlap)\r\n{\r\n if (overlap === undefined) { overlap = GetOverlapX(body1, body2, overlapOnly, bias); }\r\n\r\n var body1Immovable = body1.immovable;\r\n var body2Immovable = body2.immovable;\r\n\r\n // Can't separate two immovable bodies, or a body with its own custom separation logic\r\n if (overlapOnly || overlap === 0 || (body1Immovable && body2Immovable) || body1.customSeparateX || body2.customSeparateX)\r\n {\r\n // return true if there was some overlap, otherwise false\r\n return (overlap !== 0) || (body1.embedded && body2.embedded);\r\n }\r\n\r\n var blockedState = ProcessX.Set(body1, body2, overlap);\r\n\r\n if (!body1Immovable && !body2Immovable)\r\n {\r\n if (blockedState > 0)\r\n {\r\n return true;\r\n }\r\n\r\n return ProcessX.Check();\r\n }\r\n else if (body1Immovable)\r\n {\r\n ProcessX.RunImmovableBody1(blockedState);\r\n }\r\n else if (body2Immovable)\r\n {\r\n ProcessX.RunImmovableBody2(blockedState);\r\n }\r\n\r\n // If we got this far then there WAS overlap, and separation is complete, so return true\r\n return true;\r\n};\r\n\r\nmodule.exports = SeparateX;\r\n\n\n/***/ }),\n\n/***/ 89936:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetOverlapY = __webpack_require__(45170);\r\nvar ProcessY = __webpack_require__(47962);\r\n\r\n/**\r\n * Separates two overlapping bodies on the Y-axis (vertically).\r\n *\r\n * Separation involves moving two overlapping bodies so they don't overlap anymore and adjusting their velocities based on their mass. This is a core part of collision detection.\r\n *\r\n * The bodies won't be separated if there is no vertical overlap between them, if they are static, or if either one uses custom logic for its separation.\r\n *\r\n * @function Phaser.Physics.Arcade.SeparateY\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Arcade.Body} body1 - The first Body to separate.\r\n * @param {Phaser.Physics.Arcade.Body} body2 - The second Body to separate.\r\n * @param {boolean} overlapOnly - If `true`, the bodies will only have their overlap data set and no separation will take place.\r\n * @param {number} bias - A value to add to the delta value during overlap checking. Used to prevent sprite tunneling.\r\n * @param {number} [overlap] - If given then this value will be used as the overlap and no check will be run.\r\n *\r\n * @return {boolean} `true` if the two bodies overlap vertically, otherwise `false`.\r\n */\r\nvar SeparateY = function (body1, body2, overlapOnly, bias, overlap)\r\n{\r\n if (overlap === undefined) { overlap = GetOverlapY(body1, body2, overlapOnly, bias); }\r\n\r\n var body1Immovable = body1.immovable;\r\n var body2Immovable = body2.immovable;\r\n\r\n // Can't separate two immovable bodies, or a body with its own custom separation logic\r\n if (overlapOnly || overlap === 0 || (body1Immovable && body2Immovable) || body1.customSeparateY || body2.customSeparateY)\r\n {\r\n // return true if there was some overlap, otherwise false\r\n return (overlap !== 0) || (body1.embedded && body2.embedded);\r\n }\r\n\r\n var blockedState = ProcessY.Set(body1, body2, overlap);\r\n\r\n if (!body1Immovable && !body2Immovable)\r\n {\r\n if (blockedState > 0)\r\n {\r\n return true;\r\n }\r\n\r\n return ProcessY.Check();\r\n }\r\n else if (body1Immovable)\r\n {\r\n ProcessY.RunImmovableBody1(blockedState);\r\n }\r\n else if (body2Immovable)\r\n {\r\n ProcessY.RunImmovableBody2(blockedState);\r\n }\r\n\r\n // If we got this far then there WAS overlap, and separation is complete, so return true\r\n return true;\r\n};\r\n\r\nmodule.exports = SeparateY;\r\n\n\n/***/ }),\n\n/***/ 95829:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Either sets or creates the Arcade Body Collision object.\r\n *\r\n * Mostly only used internally.\r\n *\r\n * @function Phaser.Physics.Arcade.SetCollisionObject\r\n * @since 3.70.0\r\n *\r\n * @param {boolean} noneFlip - Is `none` true or false?\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeBodyCollision} [data] - The collision data object to populate, or create if not given.\r\n *\r\n * @return {Phaser.Types.Physics.Arcade.ArcadeBodyCollision} The collision data.\r\n */\r\nvar SetCollisionObject = function (noneFlip, data)\r\n{\r\n if (data === undefined) { data = {}; }\r\n\r\n data.none = noneFlip;\r\n data.up = false;\r\n data.down = false;\r\n data.left = false;\r\n data.right = false;\r\n\r\n if (!noneFlip)\r\n {\r\n data.up = true;\r\n data.down = true;\r\n data.left = true;\r\n data.right = true;\r\n }\r\n\r\n return data;\r\n};\r\n\r\nmodule.exports = SetCollisionObject;\r\n\n\n/***/ }),\n\n/***/ 72624:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CircleContains = __webpack_require__(87902);\r\nvar Class = __webpack_require__(83419);\r\nvar CollisionComponent = __webpack_require__(78389);\r\nvar CONST = __webpack_require__(37747);\r\nvar RectangleContains = __webpack_require__(37303);\r\nvar SetCollisionObject = __webpack_require__(95829);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * A Static Arcade Physics Body.\r\n *\r\n * A Static Body never moves, and isn't automatically synchronized with its parent Game Object.\r\n * That means if you make any change to the parent's origin, position, or scale after creating or adding the body, you'll need to update the Static Body manually.\r\n *\r\n * A Static Body can collide with other Bodies, but is never moved by collisions.\r\n *\r\n * Its dynamic counterpart is {@link Phaser.Physics.Arcade.Body}.\r\n *\r\n * @class StaticBody\r\n * @memberof Phaser.Physics.Arcade\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @extends Phaser.Physics.Arcade.Components.Collision\r\n *\r\n * @param {Phaser.Physics.Arcade.World} world - The Arcade Physics simulation this Static Body belongs to.\r\n * @param {Phaser.GameObjects.GameObject} [gameObject] - The Game Object this Body belongs to. As of Phaser 3.60 this is now optional.\r\n */\r\nvar StaticBody = new Class({\r\n\r\n Mixins: [\r\n CollisionComponent\r\n ],\r\n\r\n initialize:\r\n\r\n function StaticBody (world, gameObject)\r\n {\r\n var width = 64;\r\n var height = 64;\r\n\r\n var dummyGameObject = {\r\n x: 0,\r\n y: 0,\r\n angle: 0,\r\n rotation: 0,\r\n scaleX: 1,\r\n scaleY: 1,\r\n displayOriginX: 0,\r\n displayOriginY: 0\r\n };\r\n\r\n var hasGameObject = (gameObject !== undefined);\r\n\r\n if (hasGameObject && gameObject.displayWidth)\r\n {\r\n width = gameObject.displayWidth;\r\n height = gameObject.displayHeight;\r\n }\r\n\r\n if (!hasGameObject)\r\n {\r\n gameObject = dummyGameObject;\r\n }\r\n\r\n /**\r\n * The Arcade Physics simulation this Static Body belongs to.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#world\r\n * @type {Phaser.Physics.Arcade.World}\r\n * @since 3.0.0\r\n */\r\n this.world = world;\r\n\r\n /**\r\n * The Game Object this Static Body belongs to.\r\n *\r\n * As of Phaser 3.60 this is now optional and can be undefined.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#gameObject\r\n * @type {Phaser.GameObjects.GameObject}\r\n * @since 3.0.0\r\n */\r\n this.gameObject = (hasGameObject) ? gameObject : undefined;\r\n\r\n /**\r\n * A quick-test flag that signifies this is a Body, used in the World collision handler.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#isBody\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.isBody = true;\r\n\r\n /**\r\n * Whether the Static Body's boundary is drawn to the debug display.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#debugShowBody\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.debugShowBody = world.defaults.debugShowStaticBody;\r\n\r\n /**\r\n * The color of this Static Body on the debug display.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#debugBodyColor\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.debugBodyColor = world.defaults.staticBodyDebugColor;\r\n\r\n /**\r\n * Whether this Static Body is updated by the physics simulation.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#enable\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.enable = true;\r\n\r\n /**\r\n * Whether this Static Body's boundary is circular (`true`) or rectangular (`false`).\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#isCircle\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.isCircle = false;\r\n\r\n /**\r\n * If this Static Body is circular, this is the radius of the boundary, as set by {@link Phaser.Physics.Arcade.StaticBody#setCircle}, in pixels.\r\n * Equal to `halfWidth`.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#radius\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.radius = 0;\r\n\r\n /**\r\n * The offset set by {@link Phaser.Physics.Arcade.StaticBody#setCircle} or {@link Phaser.Physics.Arcade.StaticBody#setSize}.\r\n *\r\n * This doesn't affect the Static Body's position, because a Static Body does not follow its Game Object.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#offset\r\n * @type {Phaser.Math.Vector2}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.offset = new Vector2();\r\n\r\n /**\r\n * The position of this Static Body within the simulation.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#position\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.position = new Vector2(gameObject.x - (width * gameObject.originX), gameObject.y - (height * gameObject.originY));\r\n\r\n /**\r\n * The width of the Static Body's boundary, in pixels.\r\n * If the Static Body is circular, this is also the Static Body's diameter.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#width\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.width = width;\r\n\r\n /**\r\n * The height of the Static Body's boundary, in pixels.\r\n * If the Static Body is circular, this is also the Static Body's diameter.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#height\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.height = height;\r\n\r\n /**\r\n * Half the Static Body's width, in pixels.\r\n * If the Static Body is circular, this is also the Static Body's radius.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#halfWidth\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.halfWidth = Math.abs(this.width / 2);\r\n\r\n /**\r\n * Half the Static Body's height, in pixels.\r\n * If the Static Body is circular, this is also the Static Body's radius.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#halfHeight\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.halfHeight = Math.abs(this.height / 2);\r\n\r\n /**\r\n * The center of the Static Body's boundary.\r\n * This is the midpoint of its `position` (top-left corner) and its bottom-right corner.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#center\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.center = new Vector2(this.position.x + this.halfWidth, this.position.y + this.halfHeight);\r\n\r\n /**\r\n * A constant zero velocity used by the Arcade Physics simulation for calculations.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#velocity\r\n * @type {Phaser.Math.Vector2}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.velocity = Vector2.ZERO;\r\n\r\n /**\r\n * A constant `false` value expected by the Arcade Physics simulation.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#allowGravity\r\n * @type {boolean}\r\n * @readonly\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.allowGravity = false;\r\n\r\n /**\r\n * Gravitational force applied specifically to this Body. Values are in pixels per second squared. Always zero for a Static Body.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#gravity\r\n * @type {Phaser.Math.Vector2}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.gravity = Vector2.ZERO;\r\n\r\n /**\r\n * Rebound, or restitution, following a collision, relative to 1. Always zero for a Static Body.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#bounce\r\n * @type {Phaser.Math.Vector2}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.bounce = Vector2.ZERO;\r\n\r\n // If true this Body will dispatch events\r\n\r\n /**\r\n * Whether the simulation emits a `worldbounds` event when this StaticBody collides with the world boundary.\r\n * Always false for a Static Body. (Static Bodies never collide with the world boundary and never trigger a `worldbounds` event.)\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#onWorldBounds\r\n * @type {boolean}\r\n * @readonly\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.onWorldBounds = false;\r\n\r\n /**\r\n * Whether the simulation emits a `collide` event when this StaticBody collides with another.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#onCollide\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.onCollide = false;\r\n\r\n /**\r\n * Whether the simulation emits an `overlap` event when this StaticBody overlaps with another.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#onOverlap\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.onOverlap = false;\r\n\r\n /**\r\n * The StaticBody's inertia, relative to a default unit (1). With `bounce`, this affects the exchange of momentum (velocities) during collisions.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#mass\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n this.mass = 1;\r\n\r\n /**\r\n * Whether this object can be moved by collisions with another body.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#immovable\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.immovable = true;\r\n\r\n /**\r\n * Sets if this Body can be pushed by another Body.\r\n *\r\n * A body that cannot be pushed will reflect back all of the velocity it is given to the\r\n * colliding body. If that body is also not pushable, then the separation will be split\r\n * between them evenly.\r\n *\r\n * If you want your body to never move or seperate at all, see the `setImmovable` method.\r\n *\r\n * By default, Static Bodies are not pushable.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#pushable\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.50.0\r\n * @see Phaser.GameObjects.Components.Pushable#setPushable\r\n */\r\n this.pushable = false;\r\n\r\n /**\r\n * A flag disabling the default horizontal separation of colliding bodies. Pass your own `collideHandler` to the collider.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#customSeparateX\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.customSeparateX = false;\r\n\r\n /**\r\n * A flag disabling the default vertical separation of colliding bodies. Pass your own `collideHandler` to the collider.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#customSeparateY\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.customSeparateY = false;\r\n\r\n /**\r\n * The amount of horizontal overlap (before separation), if this Body is colliding with another.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#overlapX\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.overlapX = 0;\r\n\r\n /**\r\n * The amount of vertical overlap (before separation), if this Body is colliding with another.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#overlapY\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.overlapY = 0;\r\n\r\n /**\r\n * The amount of overlap (before separation), if this StaticBody is circular and colliding with another circular body.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#overlapR\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.overlapR = 0;\r\n\r\n /**\r\n * Whether this StaticBody has ever overlapped with another while both were not moving.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#embedded\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.embedded = false;\r\n\r\n /**\r\n * Whether this StaticBody interacts with the world boundary.\r\n * Always false for a Static Body. (Static Bodies never collide with the world boundary.)\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#collideWorldBounds\r\n * @type {boolean}\r\n * @readonly\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.collideWorldBounds = false;\r\n\r\n /**\r\n * Whether this StaticBody is checked for collisions and for which directions. You can set `checkCollision.none = false` to disable collision checks.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#checkCollision\r\n * @type {Phaser.Types.Physics.Arcade.ArcadeBodyCollision}\r\n * @since 3.0.0\r\n */\r\n this.checkCollision = SetCollisionObject(false);\r\n\r\n /**\r\n * This property is kept for compatibility with Dynamic Bodies.\r\n * Avoid using it.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#touching\r\n * @type {Phaser.Types.Physics.Arcade.ArcadeBodyCollision}\r\n * @since 3.0.0\r\n */\r\n this.touching = SetCollisionObject(true);\r\n\r\n /**\r\n * This property is kept for compatibility with Dynamic Bodies.\r\n * Avoid using it.\r\n * The values are always false for a Static Body.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#wasTouching\r\n * @type {Phaser.Types.Physics.Arcade.ArcadeBodyCollision}\r\n * @since 3.0.0\r\n */\r\n this.wasTouching = SetCollisionObject(true);\r\n\r\n /**\r\n * This property is kept for compatibility with Dynamic Bodies.\r\n * Avoid using it.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#blocked\r\n * @type {Phaser.Types.Physics.Arcade.ArcadeBodyCollision}\r\n * @since 3.0.0\r\n */\r\n this.blocked = SetCollisionObject(true);\r\n\r\n /**\r\n * The StaticBody's physics type (static by default).\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#physicsType\r\n * @type {number}\r\n * @default Phaser.Physics.Arcade.STATIC_BODY\r\n * @since 3.0.0\r\n */\r\n this.physicsType = CONST.STATIC_BODY;\r\n\r\n /**\r\n * The Arcade Physics Body Collision Category.\r\n *\r\n * This can be set to any valid collision bitfield value.\r\n *\r\n * See the `setCollisionCategory` method for more details.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#collisionCategory\r\n * @type {number}\r\n * @since 3.70.0\r\n */\r\n this.collisionCategory = 0x0001;\r\n\r\n /**\r\n * The Arcade Physics Body Collision Mask.\r\n *\r\n * See the `setCollidesWith` method for more details.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#collisionMask\r\n * @type {number}\r\n * @since 3.70.0\r\n */\r\n this.collisionMask = 1;\r\n\r\n /**\r\n * The calculated change in the Static Body's horizontal position during the current step.\r\n * For a static body this is always zero.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#_dx\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.10.0\r\n */\r\n this._dx = 0;\r\n\r\n /**\r\n * The calculated change in the Static Body's vertical position during the current step.\r\n * For a static body this is always zero.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#_dy\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.10.0\r\n */\r\n this._dy = 0;\r\n },\r\n\r\n /**\r\n * Changes the Game Object this Body is bound to.\r\n * First it removes its reference from the old Game Object, then sets the new one.\r\n * You can optionally update the position and dimensions of this Body to reflect that of the new Game Object.\r\n *\r\n * @method Phaser.Physics.Arcade.StaticBody#setGameObject\r\n * @since 3.1.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The new Game Object that will own this Body.\r\n * @param {boolean} [update=true] - Reposition and resize this Body to match the new Game Object?\r\n *\r\n * @return {Phaser.Physics.Arcade.StaticBody} This Static Body object.\r\n *\r\n * @see Phaser.Physics.Arcade.StaticBody#updateFromGameObject\r\n */\r\n setGameObject: function (gameObject, update)\r\n {\r\n if (gameObject && gameObject !== this.gameObject)\r\n {\r\n // Remove this body from the old game object\r\n this.gameObject.body = null;\r\n\r\n gameObject.body = this;\r\n\r\n // Update our reference\r\n this.gameObject = gameObject;\r\n }\r\n\r\n if (update)\r\n {\r\n this.updateFromGameObject();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Syncs the Static Body's position and size with its parent Game Object.\r\n *\r\n * @method Phaser.Physics.Arcade.StaticBody#updateFromGameObject\r\n * @since 3.1.0\r\n *\r\n * @return {Phaser.Physics.Arcade.StaticBody} This Static Body object.\r\n */\r\n updateFromGameObject: function ()\r\n {\r\n this.world.staticTree.remove(this);\r\n\r\n var gameObject = this.gameObject;\r\n\r\n gameObject.getTopLeft(this.position);\r\n\r\n this.width = gameObject.displayWidth;\r\n this.height = gameObject.displayHeight;\r\n\r\n this.halfWidth = Math.abs(this.width / 2);\r\n this.halfHeight = Math.abs(this.height / 2);\r\n\r\n this.center.set(this.position.x + this.halfWidth, this.position.y + this.halfHeight);\r\n\r\n this.world.staticTree.insert(this);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Positions the Static Body at an offset from its Game Object.\r\n *\r\n * @method Phaser.Physics.Arcade.StaticBody#setOffset\r\n * @since 3.4.0\r\n *\r\n * @param {number} x - The horizontal offset of the Static Body from the Game Object's `x`.\r\n * @param {number} y - The vertical offset of the Static Body from the Game Object's `y`.\r\n *\r\n * @return {Phaser.Physics.Arcade.StaticBody} This Static Body object.\r\n */\r\n setOffset: function (x, y)\r\n {\r\n if (y === undefined) { y = x; }\r\n\r\n this.world.staticTree.remove(this);\r\n\r\n this.position.x -= this.offset.x;\r\n this.position.y -= this.offset.y;\r\n\r\n this.offset.set(x, y);\r\n\r\n this.position.x += this.offset.x;\r\n this.position.y += this.offset.y;\r\n\r\n this.updateCenter();\r\n\r\n this.world.staticTree.insert(this);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the size of the Static Body.\r\n * When `center` is true, also repositions it.\r\n * Resets the width and height to match current frame, if no width and height provided and a frame is found.\r\n *\r\n * @method Phaser.Physics.Arcade.StaticBody#setSize\r\n * @since 3.0.0\r\n *\r\n * @param {number} [width] - The width of the Static Body in pixels. Cannot be zero. If not given, and the parent Game Object has a frame, it will use the frame width.\r\n * @param {number} [height] - The height of the Static Body in pixels. Cannot be zero. If not given, and the parent Game Object has a frame, it will use the frame height.\r\n * @param {boolean} [center=true] - Place the Static Body's center on its Game Object's center. Only works if the Game Object has the `getCenter` method.\r\n *\r\n * @return {Phaser.Physics.Arcade.StaticBody} This Static Body object.\r\n */\r\n setSize: function (width, height, center)\r\n {\r\n if (center === undefined) { center = true; }\r\n\r\n var gameObject = this.gameObject;\r\n\r\n if (gameObject && gameObject.frame)\r\n {\r\n if (!width)\r\n {\r\n width = gameObject.frame.realWidth;\r\n }\r\n\r\n if (!height)\r\n {\r\n height = gameObject.frame.realHeight;\r\n }\r\n }\r\n\r\n this.world.staticTree.remove(this);\r\n\r\n this.width = width;\r\n this.height = height;\r\n\r\n this.halfWidth = Math.floor(width / 2);\r\n this.halfHeight = Math.floor(height / 2);\r\n\r\n if (center && gameObject && gameObject.getCenter)\r\n {\r\n var ox = gameObject.displayWidth / 2;\r\n var oy = gameObject.displayHeight / 2;\r\n\r\n this.position.x -= this.offset.x;\r\n this.position.y -= this.offset.y;\r\n\r\n this.offset.set(ox - this.halfWidth, oy - this.halfHeight);\r\n\r\n this.position.x += this.offset.x;\r\n this.position.y += this.offset.y;\r\n }\r\n\r\n this.updateCenter();\r\n\r\n this.isCircle = false;\r\n this.radius = 0;\r\n\r\n this.world.staticTree.insert(this);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets this Static Body to have a circular body and sets its size and position.\r\n *\r\n * @method Phaser.Physics.Arcade.StaticBody#setCircle\r\n * @since 3.0.0\r\n *\r\n * @param {number} radius - The radius of the StaticBody, in pixels.\r\n * @param {number} [offsetX] - The horizontal offset of the StaticBody from its Game Object, in pixels.\r\n * @param {number} [offsetY] - The vertical offset of the StaticBody from its Game Object, in pixels.\r\n *\r\n * @return {Phaser.Physics.Arcade.StaticBody} This Static Body object.\r\n */\r\n setCircle: function (radius, offsetX, offsetY)\r\n {\r\n if (offsetX === undefined) { offsetX = this.offset.x; }\r\n if (offsetY === undefined) { offsetY = this.offset.y; }\r\n\r\n if (radius > 0)\r\n {\r\n this.world.staticTree.remove(this);\r\n\r\n this.isCircle = true;\r\n\r\n this.radius = radius;\r\n\r\n this.width = radius * 2;\r\n this.height = radius * 2;\r\n\r\n this.halfWidth = Math.floor(this.width / 2);\r\n this.halfHeight = Math.floor(this.height / 2);\r\n\r\n this.offset.set(offsetX, offsetY);\r\n\r\n this.updateCenter();\r\n\r\n this.world.staticTree.insert(this);\r\n }\r\n else\r\n {\r\n this.isCircle = false;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Updates the StaticBody's `center` from its `position` and dimensions.\r\n *\r\n * @method Phaser.Physics.Arcade.StaticBody#updateCenter\r\n * @since 3.0.0\r\n */\r\n updateCenter: function ()\r\n {\r\n this.center.set(this.position.x + this.halfWidth, this.position.y + this.halfHeight);\r\n },\r\n\r\n /**\r\n * Resets this Static Body to its parent Game Object's position.\r\n *\r\n * If `x` and `y` are given, the parent Game Object is placed there and this Static Body is centered on it.\r\n * Otherwise this Static Body is centered on the Game Object's current position.\r\n *\r\n * @method Phaser.Physics.Arcade.StaticBody#reset\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x] - The x coordinate to reset the body to. If not given will use the parent Game Object's coordinate.\r\n * @param {number} [y] - The y coordinate to reset the body to. If not given will use the parent Game Object's coordinate.\r\n */\r\n reset: function (x, y)\r\n {\r\n var gameObject = this.gameObject;\r\n\r\n if (x === undefined) { x = gameObject.x; }\r\n if (y === undefined) { y = gameObject.y; }\r\n\r\n this.world.staticTree.remove(this);\r\n\r\n gameObject.setPosition(x, y);\r\n\r\n gameObject.getTopLeft(this.position);\r\n\r\n this.position.x += this.offset.x;\r\n this.position.y += this.offset.y;\r\n\r\n this.updateCenter();\r\n\r\n this.world.staticTree.insert(this);\r\n },\r\n\r\n /**\r\n * NOOP function. A Static Body cannot be stopped.\r\n *\r\n * @method Phaser.Physics.Arcade.StaticBody#stop\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Physics.Arcade.StaticBody} This Static Body object.\r\n */\r\n stop: function ()\r\n {\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns the x and y coordinates of the top left and bottom right points of the StaticBody.\r\n *\r\n * @method Phaser.Physics.Arcade.StaticBody#getBounds\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeBodyBounds} obj - The object which will hold the coordinates of the bounds.\r\n *\r\n * @return {Phaser.Types.Physics.Arcade.ArcadeBodyBounds} The same object that was passed with `x`, `y`, `right` and `bottom` values matching the respective values of the StaticBody.\r\n */\r\n getBounds: function (obj)\r\n {\r\n obj.x = this.x;\r\n obj.y = this.y;\r\n obj.right = this.right;\r\n obj.bottom = this.bottom;\r\n\r\n return obj;\r\n },\r\n\r\n /**\r\n * Checks to see if a given x,y coordinate is colliding with this Static Body.\r\n *\r\n * @method Phaser.Physics.Arcade.StaticBody#hitTest\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x coordinate to check against this body.\r\n * @param {number} y - The y coordinate to check against this body.\r\n *\r\n * @return {boolean} `true` if the given coordinate lies within this body, otherwise `false`.\r\n */\r\n hitTest: function (x, y)\r\n {\r\n return (this.isCircle) ? CircleContains(this, x, y) : RectangleContains(this, x, y);\r\n },\r\n\r\n /**\r\n * NOOP\r\n *\r\n * @method Phaser.Physics.Arcade.StaticBody#postUpdate\r\n * @since 3.12.0\r\n */\r\n postUpdate: function ()\r\n {\r\n },\r\n\r\n /**\r\n * The absolute (non-negative) change in this StaticBody's horizontal position from the previous step. Always zero.\r\n *\r\n * @method Phaser.Physics.Arcade.StaticBody#deltaAbsX\r\n * @since 3.0.0\r\n *\r\n * @return {number} Always zero for a Static Body.\r\n */\r\n deltaAbsX: function ()\r\n {\r\n return 0;\r\n },\r\n\r\n /**\r\n * The absolute (non-negative) change in this StaticBody's vertical position from the previous step. Always zero.\r\n *\r\n * @method Phaser.Physics.Arcade.StaticBody#deltaAbsY\r\n * @since 3.0.0\r\n *\r\n * @return {number} Always zero for a Static Body.\r\n */\r\n deltaAbsY: function ()\r\n {\r\n return 0;\r\n },\r\n\r\n /**\r\n * The change in this StaticBody's horizontal position from the previous step. Always zero.\r\n *\r\n * @method Phaser.Physics.Arcade.StaticBody#deltaX\r\n * @since 3.0.0\r\n *\r\n * @return {number} The change in this StaticBody's velocity from the previous step. Always zero.\r\n */\r\n deltaX: function ()\r\n {\r\n return 0;\r\n },\r\n\r\n /**\r\n * The change in this StaticBody's vertical position from the previous step. Always zero.\r\n *\r\n * @method Phaser.Physics.Arcade.StaticBody#deltaY\r\n * @since 3.0.0\r\n *\r\n * @return {number} The change in this StaticBody's velocity from the previous step. Always zero.\r\n */\r\n deltaY: function ()\r\n {\r\n return 0;\r\n },\r\n\r\n /**\r\n * The change in this StaticBody's rotation from the previous step. Always zero.\r\n *\r\n * @method Phaser.Physics.Arcade.StaticBody#deltaZ\r\n * @since 3.0.0\r\n *\r\n * @return {number} The change in this StaticBody's rotation from the previous step. Always zero.\r\n */\r\n deltaZ: function ()\r\n {\r\n return 0;\r\n },\r\n\r\n /**\r\n * Disables this Body and marks it for destruction during the next step.\r\n *\r\n * @method Phaser.Physics.Arcade.StaticBody#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.enable = false;\r\n\r\n this.world.pendingDestroy.set(this);\r\n },\r\n\r\n /**\r\n * Draws a graphical representation of the StaticBody for visual debugging purposes.\r\n *\r\n * @method Phaser.Physics.Arcade.StaticBody#drawDebug\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Graphics} graphic - The Graphics object to use for the debug drawing of the StaticBody.\r\n */\r\n drawDebug: function (graphic)\r\n {\r\n var pos = this.position;\r\n\r\n var x = pos.x + this.halfWidth;\r\n var y = pos.y + this.halfHeight;\r\n\r\n if (this.debugShowBody)\r\n {\r\n graphic.lineStyle(graphic.defaultStrokeWidth, this.debugBodyColor, 1);\r\n\r\n if (this.isCircle)\r\n {\r\n graphic.strokeCircle(x, y, this.width / 2);\r\n }\r\n else\r\n {\r\n graphic.strokeRect(pos.x, pos.y, this.width, this.height);\r\n }\r\n\r\n }\r\n },\r\n\r\n /**\r\n * Indicates whether the StaticBody is going to be showing a debug visualization during postUpdate.\r\n *\r\n * @method Phaser.Physics.Arcade.StaticBody#willDrawDebug\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} Whether or not the StaticBody is going to show the debug visualization during postUpdate.\r\n */\r\n willDrawDebug: function ()\r\n {\r\n return this.debugShowBody;\r\n },\r\n\r\n /**\r\n * Sets the Mass of the StaticBody. Will set the Mass to 0.1 if the value passed is less than or equal to zero.\r\n *\r\n * @method Phaser.Physics.Arcade.StaticBody#setMass\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The value to set the Mass to. Values of zero or less are changed to 0.1.\r\n *\r\n * @return {Phaser.Physics.Arcade.StaticBody} This Static Body object.\r\n */\r\n setMass: function (value)\r\n {\r\n if (value <= 0)\r\n {\r\n // Causes havoc otherwise\r\n value = 0.1;\r\n }\r\n\r\n this.mass = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The x coordinate of the StaticBody.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#x\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n x: {\r\n\r\n get: function ()\r\n {\r\n return this.position.x;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.world.staticTree.remove(this);\r\n\r\n this.position.x = value;\r\n\r\n this.world.staticTree.insert(this);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The y coordinate of the StaticBody.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#y\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n y: {\r\n\r\n get: function ()\r\n {\r\n return this.position.y;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.world.staticTree.remove(this);\r\n\r\n this.position.y = value;\r\n\r\n this.world.staticTree.insert(this);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Returns the left-most x coordinate of the area of the StaticBody.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#left\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n left: {\r\n\r\n get: function ()\r\n {\r\n return this.position.x;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The right-most x coordinate of the area of the StaticBody.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#right\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n right: {\r\n\r\n get: function ()\r\n {\r\n return this.position.x + this.width;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The highest y coordinate of the area of the StaticBody.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#top\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n top: {\r\n\r\n get: function ()\r\n {\r\n return this.position.y;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The lowest y coordinate of the area of the StaticBody. (y + height)\r\n *\r\n * @name Phaser.Physics.Arcade.StaticBody#bottom\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n bottom: {\r\n\r\n get: function ()\r\n {\r\n return this.position.y + this.height;\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = StaticBody;\r\n\n\n/***/ }),\n\n/***/ 71464:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar ArcadeSprite = __webpack_require__(13759);\r\nvar Class = __webpack_require__(83419);\r\nvar CollisionComponent = __webpack_require__(78389);\r\nvar CONST = __webpack_require__(37747);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar Group = __webpack_require__(26479);\r\nvar IsPlainObject = __webpack_require__(41212);\r\n\r\n/**\r\n * @classdesc\r\n * An Arcade Physics Static Group object.\r\n *\r\n * All Game Objects created by or added to this Group will automatically be given static Arcade Physics bodies, if they have no body.\r\n *\r\n * Its dynamic counterpart is {@link Phaser.Physics.Arcade.Group}.\r\n *\r\n * @class StaticGroup\r\n * @extends Phaser.GameObjects.Group\r\n * @memberof Phaser.Physics.Arcade\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @extends Phaser.Physics.Arcade.Components.Collision\r\n *\r\n * @param {Phaser.Physics.Arcade.World} world - The physics simulation.\r\n * @param {Phaser.Scene} scene - The scene this group belongs to.\r\n * @param {(Phaser.GameObjects.GameObject[]|Phaser.Types.GameObjects.Group.GroupConfig|Phaser.Types.GameObjects.Group.GroupCreateConfig)} [children] - Game Objects to add to this group; or the `config` argument.\r\n * @param {Phaser.Types.GameObjects.Group.GroupConfig|Phaser.Types.GameObjects.Group.GroupCreateConfig} [config] - Settings for this group.\r\n */\r\nvar StaticPhysicsGroup = new Class({\r\n\r\n Extends: Group,\r\n\r\n Mixins: [\r\n CollisionComponent\r\n ],\r\n\r\n initialize:\r\n\r\n function StaticPhysicsGroup (world, scene, children, config)\r\n {\r\n if (!children && !config)\r\n {\r\n config = {\r\n internalCreateCallback: this.createCallbackHandler,\r\n internalRemoveCallback: this.removeCallbackHandler,\r\n createMultipleCallback: this.createMultipleCallbackHandler,\r\n classType: ArcadeSprite\r\n };\r\n }\r\n else if (IsPlainObject(children))\r\n {\r\n // children is a plain object, so swizzle them:\r\n config = children;\r\n children = null;\r\n\r\n config.internalCreateCallback = this.createCallbackHandler;\r\n config.internalRemoveCallback = this.removeCallbackHandler;\r\n config.createMultipleCallback = this.createMultipleCallbackHandler;\r\n config.classType = GetFastValue(config, 'classType', ArcadeSprite);\r\n }\r\n else if (Array.isArray(children) && IsPlainObject(children[0]))\r\n {\r\n // children is an array of plain objects\r\n config = children;\r\n children = null;\r\n\r\n config.forEach(function (singleConfig)\r\n {\r\n singleConfig.internalCreateCallback = this.createCallbackHandler;\r\n singleConfig.internalRemoveCallback = this.removeCallbackHandler;\r\n singleConfig.createMultipleCallback = this.createMultipleCallbackHandler;\r\n singleConfig.classType = GetFastValue(singleConfig, 'classType', ArcadeSprite);\r\n });\r\n }\r\n else\r\n {\r\n // config is not defined and children is not a plain object nor an array of plain objects\r\n config = {\r\n internalCreateCallback: this.createCallbackHandler,\r\n internalRemoveCallback: this.removeCallbackHandler\r\n };\r\n }\r\n\r\n /**\r\n * The physics simulation.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticGroup#world\r\n * @type {Phaser.Physics.Arcade.World}\r\n * @since 3.0.0\r\n */\r\n this.world = world;\r\n\r\n /**\r\n * The scene this group belongs to.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticGroup#physicsType\r\n * @type {number}\r\n * @default Phaser.Physics.Arcade.STATIC_BODY\r\n * @since 3.0.0\r\n */\r\n this.physicsType = CONST.STATIC_BODY;\r\n\r\n /**\r\n * The Arcade Physics Static Group Collision Category.\r\n *\r\n * This can be set to any valid collision bitfield value.\r\n *\r\n * See the `setCollisionCategory` method for more details.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticGroup#collisionCategory\r\n * @type {number}\r\n * @since 3.70.0\r\n */\r\n this.collisionCategory = 0x0001;\r\n\r\n /**\r\n * The Arcade Physics Static Group Collision Mask.\r\n *\r\n * See the `setCollidesWith` method for more details.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticGroup#collisionMask\r\n * @type {number}\r\n * @since 3.70.0\r\n */\r\n this.collisionMask = 1;\r\n\r\n Group.call(this, scene, children, config);\r\n\r\n /**\r\n * A textual representation of this Game Object.\r\n * Used internally by Phaser but is available for your own custom classes to populate.\r\n *\r\n * @name Phaser.Physics.Arcade.StaticGroup#type\r\n * @type {string}\r\n * @default 'StaticPhysicsGroup'\r\n * @since 3.21.0\r\n */\r\n this.type = 'StaticPhysicsGroup';\r\n },\r\n\r\n /**\r\n * Adds a static physics body to the new group member (if it lacks one) and adds it to the simulation.\r\n *\r\n * @method Phaser.Physics.Arcade.StaticGroup#createCallbackHandler\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} child - The new group member.\r\n *\r\n * @see Phaser.Physics.Arcade.World#enableBody\r\n */\r\n createCallbackHandler: function (child)\r\n {\r\n if (!child.body)\r\n {\r\n this.world.enableBody(child, CONST.STATIC_BODY);\r\n }\r\n },\r\n\r\n /**\r\n * Disables the group member's physics body, removing it from the simulation.\r\n *\r\n * @method Phaser.Physics.Arcade.StaticGroup#removeCallbackHandler\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} child - The group member being removed.\r\n *\r\n * @see Phaser.Physics.Arcade.World#disableBody\r\n */\r\n removeCallbackHandler: function (child)\r\n {\r\n if (child.body)\r\n {\r\n this.world.disableBody(child);\r\n }\r\n },\r\n\r\n /**\r\n * Refreshes the group.\r\n *\r\n * @method Phaser.Physics.Arcade.StaticGroup#createMultipleCallbackHandler\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject[]} entries - The newly created group members.\r\n *\r\n * @see Phaser.Physics.Arcade.StaticGroup#refresh\r\n */\r\n createMultipleCallbackHandler: function ()\r\n {\r\n this.refresh();\r\n },\r\n\r\n /**\r\n * Resets each Body to the position of its parent Game Object.\r\n * Body sizes aren't changed (use {@link Phaser.Physics.Arcade.Components.Enable#refreshBody} for that).\r\n *\r\n * @method Phaser.Physics.Arcade.StaticGroup#refresh\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Physics.Arcade.StaticGroup} This group.\r\n *\r\n * @see Phaser.Physics.Arcade.StaticBody#reset\r\n */\r\n refresh: function ()\r\n {\r\n var children = this.children.entries;\r\n\r\n for (var i = 0; i < children.length; i++)\r\n {\r\n children[i].body.reset();\r\n }\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = StaticPhysicsGroup;\r\n\n\n/***/ }),\n\n/***/ 82248:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar AngleBetweenPoints = __webpack_require__(55495);\r\nvar Body = __webpack_require__(37742);\r\nvar Clamp = __webpack_require__(45319);\r\nvar Class = __webpack_require__(83419);\r\nvar Collider = __webpack_require__(79342);\r\nvar CONST = __webpack_require__(37747);\r\nvar DistanceBetween = __webpack_require__(20339);\r\nvar DistanceBetweenPoints = __webpack_require__(52816);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Events = __webpack_require__(63012);\r\nvar FuzzyEqual = __webpack_require__(43855);\r\nvar FuzzyGreaterThan = __webpack_require__(5470);\r\nvar FuzzyLessThan = __webpack_require__(94977);\r\nvar GetOverlapX = __webpack_require__(64897);\r\nvar GetOverlapY = __webpack_require__(45170);\r\nvar GetTilesWithinWorldXY = __webpack_require__(96523);\r\nvar GetValue = __webpack_require__(35154);\r\nvar MATH_CONST = __webpack_require__(36383);\r\nvar ProcessQueue = __webpack_require__(25774);\r\nvar ProcessTileCallbacks = __webpack_require__(96602);\r\nvar Rectangle = __webpack_require__(87841);\r\nvar RTree = __webpack_require__(59542);\r\nvar SeparateTile = __webpack_require__(40012);\r\nvar SeparateX = __webpack_require__(14087);\r\nvar SeparateY = __webpack_require__(89936);\r\nvar Set = __webpack_require__(35072);\r\nvar StaticBody = __webpack_require__(72624);\r\nvar TileIntersectsBody = __webpack_require__(2483);\r\nvar TransformMatrix = __webpack_require__(61340);\r\nvar Vector2 = __webpack_require__(26099);\r\nvar Wrap = __webpack_require__(15994);\r\n\r\n/**\r\n * @classdesc\r\n * The Arcade Physics World.\r\n *\r\n * The World is responsible for creating, managing, colliding and updating all of the bodies within it.\r\n *\r\n * An instance of the World belongs to a Phaser.Scene and is accessed via the property `physics.world`.\r\n *\r\n * @class World\r\n * @extends Phaser.Events.EventEmitter\r\n * @memberof Phaser.Physics.Arcade\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this World instance belongs.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeWorldConfig} config - An Arcade Physics Configuration object.\r\n */\r\nvar World = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function World (scene, config)\r\n {\r\n EventEmitter.call(this);\r\n\r\n /**\r\n * The Scene this simulation belongs to.\r\n *\r\n * @name Phaser.Physics.Arcade.World#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.0.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * Dynamic Bodies in this simulation.\r\n *\r\n * @name Phaser.Physics.Arcade.World#bodies\r\n * @type {Phaser.Structs.Set.}\r\n * @since 3.0.0\r\n */\r\n this.bodies = new Set();\r\n\r\n /**\r\n * Static Bodies in this simulation.\r\n *\r\n * @name Phaser.Physics.Arcade.World#staticBodies\r\n * @type {Phaser.Structs.Set.}\r\n * @since 3.0.0\r\n */\r\n this.staticBodies = new Set();\r\n\r\n /**\r\n * Static Bodies marked for deletion.\r\n *\r\n * @name Phaser.Physics.Arcade.World#pendingDestroy\r\n * @type {Phaser.Structs.Set.<(Phaser.Physics.Arcade.Body|Phaser.Physics.Arcade.StaticBody)>}\r\n * @since 3.1.0\r\n */\r\n this.pendingDestroy = new Set();\r\n\r\n /**\r\n * This simulation's collision processors.\r\n *\r\n * @name Phaser.Physics.Arcade.World#colliders\r\n * @type {Phaser.Structs.ProcessQueue.}\r\n * @since 3.0.0\r\n */\r\n this.colliders = new ProcessQueue();\r\n\r\n /**\r\n * Acceleration of Bodies due to gravity, in pixels per second.\r\n *\r\n * @name Phaser.Physics.Arcade.World#gravity\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.gravity = new Vector2(GetValue(config, 'gravity.x', 0), GetValue(config, 'gravity.y', 0));\r\n\r\n /**\r\n * A boundary constraining Bodies.\r\n *\r\n * @name Phaser.Physics.Arcade.World#bounds\r\n * @type {Phaser.Geom.Rectangle}\r\n * @since 3.0.0\r\n */\r\n this.bounds = new Rectangle(\r\n GetValue(config, 'x', 0),\r\n GetValue(config, 'y', 0),\r\n GetValue(config, 'width', scene.sys.scale.width),\r\n GetValue(config, 'height', scene.sys.scale.height)\r\n );\r\n\r\n /**\r\n * The boundary edges that Bodies can collide with.\r\n *\r\n * @name Phaser.Physics.Arcade.World#checkCollision\r\n * @type {Phaser.Types.Physics.Arcade.CheckCollisionObject}\r\n * @since 3.0.0\r\n */\r\n this.checkCollision = {\r\n up: GetValue(config, 'checkCollision.up', true),\r\n down: GetValue(config, 'checkCollision.down', true),\r\n left: GetValue(config, 'checkCollision.left', true),\r\n right: GetValue(config, 'checkCollision.right', true)\r\n };\r\n\r\n /**\r\n * The number of physics steps to be taken per second.\r\n *\r\n * This property is read-only. Use the `setFPS` method to modify it at run-time.\r\n *\r\n * @name Phaser.Physics.Arcade.World#fps\r\n * @readonly\r\n * @type {number}\r\n * @default 60\r\n * @since 3.10.0\r\n */\r\n this.fps = GetValue(config, 'fps', 60);\r\n\r\n /**\r\n * Should Physics use a fixed update time-step (true) or sync to the render fps (false)?.\r\n * False value of this property disables fps and timeScale properties.\r\n *\r\n * @name Phaser.Physics.Arcade.World#fixedStep\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.23.0\r\n */\r\n this.fixedStep = GetValue(config, 'fixedStep', true);\r\n\r\n /**\r\n * The amount of elapsed ms since the last frame.\r\n *\r\n * @name Phaser.Physics.Arcade.World#_elapsed\r\n * @private\r\n * @type {number}\r\n * @since 3.10.0\r\n */\r\n this._elapsed = 0;\r\n\r\n /**\r\n * Internal frame time value.\r\n *\r\n * @name Phaser.Physics.Arcade.World#_frameTime\r\n * @private\r\n * @type {number}\r\n * @since 3.10.0\r\n */\r\n this._frameTime = 1 / this.fps;\r\n\r\n /**\r\n * Internal frame time ms value.\r\n *\r\n * @name Phaser.Physics.Arcade.World#_frameTimeMS\r\n * @private\r\n * @type {number}\r\n * @since 3.10.0\r\n */\r\n this._frameTimeMS = 1000 * this._frameTime;\r\n\r\n /**\r\n * The number of steps that took place in the last frame.\r\n *\r\n * @name Phaser.Physics.Arcade.World#stepsLastFrame\r\n * @readonly\r\n * @type {number}\r\n * @since 3.10.0\r\n */\r\n this.stepsLastFrame = 0;\r\n\r\n /**\r\n * Scaling factor applied to the frame rate.\r\n *\r\n * - 1.0 = normal speed\r\n * - 2.0 = half speed\r\n * - 0.5 = double speed\r\n *\r\n * @name Phaser.Physics.Arcade.World#timeScale\r\n * @type {number}\r\n * @default 1\r\n * @since 3.10.0\r\n */\r\n this.timeScale = GetValue(config, 'timeScale', 1);\r\n\r\n /**\r\n * The maximum absolute difference of a Body's per-step velocity and its overlap with another Body that will result in separation on *each axis*.\r\n * Larger values favor separation.\r\n * Smaller values favor no separation.\r\n *\r\n * @name Phaser.Physics.Arcade.World#OVERLAP_BIAS\r\n * @type {number}\r\n * @default 4\r\n * @since 3.0.0\r\n */\r\n this.OVERLAP_BIAS = GetValue(config, 'overlapBias', 4);\r\n\r\n /**\r\n * The maximum absolute value of a Body's overlap with a tile that will result in separation on *each axis*.\r\n * Larger values favor separation.\r\n * Smaller values favor no separation.\r\n * The optimum value may be similar to the tile size.\r\n *\r\n * @name Phaser.Physics.Arcade.World#TILE_BIAS\r\n * @type {number}\r\n * @default 16\r\n * @since 3.0.0\r\n */\r\n this.TILE_BIAS = GetValue(config, 'tileBias', 16);\r\n\r\n /**\r\n * Always separate overlapping Bodies horizontally before vertically.\r\n * False (the default) means Bodies are first separated on the axis of greater gravity, or the vertical axis if neither is greater.\r\n *\r\n * @name Phaser.Physics.Arcade.World#forceX\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.forceX = GetValue(config, 'forceX', false);\r\n\r\n /**\r\n * Whether the simulation advances with the game loop.\r\n *\r\n * @name Phaser.Physics.Arcade.World#isPaused\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.isPaused = GetValue(config, 'isPaused', false);\r\n\r\n /**\r\n * Temporary total of colliding Bodies.\r\n *\r\n * @name Phaser.Physics.Arcade.World#_total\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this._total = 0;\r\n\r\n /**\r\n * Enables the debug display.\r\n *\r\n * @name Phaser.Physics.Arcade.World#drawDebug\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.drawDebug = GetValue(config, 'debug', false);\r\n\r\n /**\r\n * The graphics object drawing the debug display.\r\n *\r\n * @name Phaser.Physics.Arcade.World#debugGraphic\r\n * @type {Phaser.GameObjects.Graphics}\r\n * @since 3.0.0\r\n */\r\n this.debugGraphic;\r\n\r\n /**\r\n * Default debug display settings for new Bodies.\r\n *\r\n * @name Phaser.Physics.Arcade.World#defaults\r\n * @type {Phaser.Types.Physics.Arcade.ArcadeWorldDefaults}\r\n * @since 3.0.0\r\n */\r\n this.defaults = {\r\n debugShowBody: GetValue(config, 'debugShowBody', true),\r\n debugShowStaticBody: GetValue(config, 'debugShowStaticBody', true),\r\n debugShowVelocity: GetValue(config, 'debugShowVelocity', true),\r\n bodyDebugColor: GetValue(config, 'debugBodyColor', 0xff00ff),\r\n staticBodyDebugColor: GetValue(config, 'debugStaticBodyColor', 0x0000ff),\r\n velocityDebugColor: GetValue(config, 'debugVelocityColor', 0x00ff00)\r\n };\r\n\r\n /**\r\n * The maximum number of items per node on the RTree.\r\n *\r\n * This is ignored if `useTree` is `false`. If you have a large number of bodies in\r\n * your world then you may find search performance improves by increasing this value,\r\n * to allow more items per node and less node division.\r\n *\r\n * @name Phaser.Physics.Arcade.World#maxEntries\r\n * @type {number}\r\n * @default 16\r\n * @since 3.0.0\r\n */\r\n this.maxEntries = GetValue(config, 'maxEntries', 16);\r\n\r\n /**\r\n * Should this Arcade Physics World use an RTree for Dynamic bodies?\r\n *\r\n * An RTree is a fast way of spatially sorting of all the bodies in the world.\r\n * However, at certain limits, the cost of clearing and inserting the bodies into the\r\n * tree every frame becomes more expensive than the search speed gains it provides.\r\n *\r\n * If you have a large number of dynamic bodies in your world then it may be best to\r\n * disable the use of the RTree by setting this property to `false` in the physics config.\r\n *\r\n * The number it can cope with depends on browser and device, but a conservative estimate\r\n * of around 5,000 bodies should be considered the max before disabling it.\r\n *\r\n * This only applies to dynamic bodies. Static bodies are always kept in an RTree,\r\n * because they don't have to be cleared every frame, so you benefit from the\r\n * massive search speeds all the time.\r\n *\r\n * @name Phaser.Physics.Arcade.World#useTree\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.10.0\r\n */\r\n this.useTree = GetValue(config, 'useTree', true);\r\n\r\n /**\r\n * The spatial index of Dynamic Bodies.\r\n *\r\n * @name Phaser.Physics.Arcade.World#tree\r\n * @type {Phaser.Structs.RTree}\r\n * @since 3.0.0\r\n */\r\n this.tree = new RTree(this.maxEntries);\r\n\r\n /**\r\n * The spatial index of Static Bodies.\r\n *\r\n * @name Phaser.Physics.Arcade.World#staticTree\r\n * @type {Phaser.Structs.RTree}\r\n * @since 3.0.0\r\n */\r\n this.staticTree = new RTree(this.maxEntries);\r\n\r\n /**\r\n * Recycled input for tree searches.\r\n *\r\n * @name Phaser.Physics.Arcade.World#treeMinMax\r\n * @type {Phaser.Types.Physics.Arcade.ArcadeWorldTreeMinMax}\r\n * @since 3.0.0\r\n */\r\n this.treeMinMax = { minX: 0, minY: 0, maxX: 0, maxY: 0 };\r\n\r\n /**\r\n * A temporary Transform Matrix used by bodies for calculations without them needing their own local copy.\r\n *\r\n * @name Phaser.Physics.Arcade.World#_tempMatrix\r\n * @type {Phaser.GameObjects.Components.TransformMatrix}\r\n * @private\r\n * @since 3.12.0\r\n */\r\n this._tempMatrix = new TransformMatrix();\r\n\r\n /**\r\n * A temporary Transform Matrix used by bodies for calculations without them needing their own local copy.\r\n *\r\n * @name Phaser.Physics.Arcade.World#_tempMatrix2\r\n * @type {Phaser.GameObjects.Components.TransformMatrix}\r\n * @private\r\n * @since 3.12.0\r\n */\r\n this._tempMatrix2 = new TransformMatrix();\r\n\r\n /**\r\n * The Filtering Options passed to `GetTilesWithinWorldXY` as part of the `collideSpriteVsTilemapLayer` check.\r\n *\r\n * @name Phaser.Physics.Arcade.World#tileFilterOptions\r\n * @type {Phaser.Types.Tilemaps.FilteringOptions}\r\n * @since 3.60.0\r\n */\r\n this.tileFilterOptions = { isColliding: true, isNotEmpty: true, hasInterestingFace: true };\r\n\r\n if (this.drawDebug)\r\n {\r\n this.createDebugGraphic();\r\n }\r\n },\r\n\r\n /**\r\n * Adds an Arcade Physics Body to a Game Object, an array of Game Objects, or the children of a Group.\r\n *\r\n * The difference between this and the `enableBody` method is that you can pass arrays or Groups\r\n * to this method.\r\n *\r\n * You can specify if the bodies are to be Dynamic or Static. A dynamic body can move via velocity and\r\n * acceleration. A static body remains fixed in place and as such is able to use an optimized search\r\n * tree, making it ideal for static elements such as level objects. You can still collide and overlap\r\n * with static bodies.\r\n *\r\n * Normally, rather than calling this method directly, you'd use the helper methods available in the\r\n * Arcade Physics Factory, such as:\r\n *\r\n * ```javascript\r\n * this.physics.add.image(x, y, textureKey);\r\n * this.physics.add.sprite(x, y, textureKey);\r\n * ```\r\n *\r\n * Calling factory methods encapsulates the creation of a Game Object and the creation of its\r\n * body at the same time. If you are creating custom classes then you can pass them to this\r\n * method to have their bodies created.\r\n *\r\n * @method Phaser.Physics.Arcade.World#enable\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]|Phaser.GameObjects.Group|Phaser.GameObjects.Group[])} object - The object, or objects, on which to create the bodies.\r\n * @param {number} [bodyType] - The type of Body to create. Either `DYNAMIC_BODY` or `STATIC_BODY`.\r\n */\r\n enable: function (object, bodyType)\r\n {\r\n if (bodyType === undefined) { bodyType = CONST.DYNAMIC_BODY; }\r\n\r\n if (!Array.isArray(object))\r\n {\r\n object = [ object ];\r\n }\r\n\r\n for (var i = 0; i < object.length; i++)\r\n {\r\n var entry = object[i];\r\n\r\n if (entry.isParent)\r\n {\r\n var children = entry.getChildren();\r\n\r\n for (var c = 0; c < children.length; c++)\r\n {\r\n var child = children[c];\r\n\r\n if (child.isParent)\r\n {\r\n // Handle Groups nested inside of Groups\r\n this.enable(child, bodyType);\r\n }\r\n else\r\n {\r\n this.enableBody(child, bodyType);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n this.enableBody(entry, bodyType);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Creates an Arcade Physics Body on a single Game Object.\r\n *\r\n * If the Game Object already has a body, this method will simply add it back into the simulation.\r\n *\r\n * You can specify if the body is Dynamic or Static. A dynamic body can move via velocity and\r\n * acceleration. A static body remains fixed in place and as such is able to use an optimized search\r\n * tree, making it ideal for static elements such as level objects. You can still collide and overlap\r\n * with static bodies.\r\n *\r\n * Normally, rather than calling this method directly, you'd use the helper methods available in the\r\n * Arcade Physics Factory, such as:\r\n *\r\n * ```javascript\r\n * this.physics.add.image(x, y, textureKey);\r\n * this.physics.add.sprite(x, y, textureKey);\r\n * ```\r\n *\r\n * Calling factory methods encapsulates the creation of a Game Object and the creation of its\r\n * body at the same time. If you are creating custom classes then you can pass them to this\r\n * method to have their bodies created.\r\n *\r\n * @method Phaser.Physics.Arcade.World#enableBody\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} object - The Game Object on which to create the body.\r\n * @param {number} [bodyType] - The type of Body to create. Either `DYNAMIC_BODY` or `STATIC_BODY`.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object on which the body was created.\r\n */\r\n enableBody: function (object, bodyType)\r\n {\r\n if (bodyType === undefined) { bodyType = CONST.DYNAMIC_BODY; }\r\n\r\n if (object.hasTransformComponent)\r\n {\r\n if (!object.body)\r\n {\r\n if (bodyType === CONST.DYNAMIC_BODY)\r\n {\r\n object.body = new Body(this, object);\r\n }\r\n else if (bodyType === CONST.STATIC_BODY)\r\n {\r\n object.body = new StaticBody(this, object);\r\n }\r\n }\r\n\r\n this.add(object.body);\r\n }\r\n\r\n return object;\r\n },\r\n\r\n /**\r\n * Adds an existing Arcade Physics Body or StaticBody to the simulation.\r\n *\r\n * The body is enabled and added to the local search trees.\r\n *\r\n * @method Phaser.Physics.Arcade.World#add\r\n * @since 3.10.0\r\n *\r\n * @param {(Phaser.Physics.Arcade.Body|Phaser.Physics.Arcade.StaticBody)} body - The Body to be added to the simulation.\r\n *\r\n * @return {(Phaser.Physics.Arcade.Body|Phaser.Physics.Arcade.StaticBody)} The Body that was added to the simulation.\r\n */\r\n add: function (body)\r\n {\r\n if (body.physicsType === CONST.DYNAMIC_BODY)\r\n {\r\n this.bodies.set(body);\r\n }\r\n else if (body.physicsType === CONST.STATIC_BODY)\r\n {\r\n this.staticBodies.set(body);\r\n\r\n this.staticTree.insert(body);\r\n }\r\n\r\n body.enable = true;\r\n\r\n return body;\r\n },\r\n\r\n /**\r\n * Disables the Arcade Physics Body of a Game Object, an array of Game Objects, or the children of a Group.\r\n *\r\n * The difference between this and the `disableBody` method is that you can pass arrays or Groups\r\n * to this method.\r\n *\r\n * The body itself is not deleted, it just has its `enable` property set to false, which\r\n * means you can re-enable it again at any point by passing it to enable `World.enable` or `World.add`.\r\n *\r\n * @method Phaser.Physics.Arcade.World#disable\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]|Phaser.GameObjects.Group|Phaser.GameObjects.Group[])} object - The object, or objects, on which to disable the bodies.\r\n */\r\n disable: function (object)\r\n {\r\n if (!Array.isArray(object))\r\n {\r\n object = [ object ];\r\n }\r\n\r\n for (var i = 0; i < object.length; i++)\r\n {\r\n var entry = object[i];\r\n\r\n if (entry.isParent)\r\n {\r\n var children = entry.getChildren();\r\n\r\n for (var c = 0; c < children.length; c++)\r\n {\r\n var child = children[c];\r\n\r\n if (child.isParent)\r\n {\r\n // Handle Groups nested inside of Groups\r\n this.disable(child);\r\n }\r\n else\r\n {\r\n this.disableBody(child.body);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n this.disableBody(entry.body);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Disables an existing Arcade Physics Body or StaticBody and removes it from the simulation.\r\n *\r\n * The body is disabled and removed from the local search trees.\r\n *\r\n * The body itself is not deleted, it just has its `enable` property set to false, which\r\n * means you can re-enable it again at any point by passing it to enable `World.enable` or `World.add`.\r\n *\r\n * @method Phaser.Physics.Arcade.World#disableBody\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Physics.Arcade.Body|Phaser.Physics.Arcade.StaticBody)} body - The Body to be disabled.\r\n */\r\n disableBody: function (body)\r\n {\r\n this.remove(body);\r\n\r\n body.enable = false;\r\n },\r\n\r\n /**\r\n * Removes an existing Arcade Physics Body or StaticBody from the simulation.\r\n *\r\n * The body is disabled and removed from the local search trees.\r\n *\r\n * The body itself is not deleted, it just has its `enabled` property set to false, which\r\n * means you can re-enable it again at any point by passing it to enable `enable` or `add`.\r\n *\r\n * @method Phaser.Physics.Arcade.World#remove\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Physics.Arcade.Body|Phaser.Physics.Arcade.StaticBody)} body - The body to be removed from the simulation.\r\n */\r\n remove: function (body)\r\n {\r\n if (body.physicsType === CONST.DYNAMIC_BODY)\r\n {\r\n this.tree.remove(body);\r\n this.bodies.delete(body);\r\n }\r\n else if (body.physicsType === CONST.STATIC_BODY)\r\n {\r\n this.staticBodies.delete(body);\r\n this.staticTree.remove(body);\r\n }\r\n },\r\n\r\n /**\r\n * Creates a Graphics Game Object that the world will use to render the debug display to.\r\n *\r\n * This is called automatically when the World is instantiated if the `debug` config property\r\n * was set to `true`. However, you can call it at any point should you need to display the\r\n * debug Graphic from a fixed point.\r\n *\r\n * You can control which objects are drawn to the Graphics object, and the colors they use,\r\n * by setting the debug properties in the physics config.\r\n *\r\n * You should not typically use this in a production game. Use it to aid during debugging.\r\n *\r\n * @method Phaser.Physics.Arcade.World#createDebugGraphic\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.GameObjects.Graphics} The Graphics object that was created for use by the World.\r\n */\r\n createDebugGraphic: function ()\r\n {\r\n var graphic = this.scene.sys.add.graphics({ x: 0, y: 0 });\r\n\r\n graphic.setDepth(Number.MAX_VALUE);\r\n\r\n this.debugGraphic = graphic;\r\n\r\n this.drawDebug = true;\r\n\r\n return graphic;\r\n },\r\n\r\n /**\r\n * Sets the position, size and properties of the World boundary.\r\n *\r\n * The World boundary is an invisible rectangle that defines the edges of the World.\r\n * If a Body is set to collide with the world bounds then it will automatically stop\r\n * when it reaches any of the edges. You can optionally set which edges of the boundary\r\n * should be checked against.\r\n *\r\n * @method Phaser.Physics.Arcade.World#setBounds\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The top-left x coordinate of the boundary.\r\n * @param {number} y - The top-left y coordinate of the boundary.\r\n * @param {number} width - The width of the boundary.\r\n * @param {number} height - The height of the boundary.\r\n * @param {boolean} [checkLeft] - Should bodies check against the left edge of the boundary?\r\n * @param {boolean} [checkRight] - Should bodies check against the right edge of the boundary?\r\n * @param {boolean} [checkUp] - Should bodies check against the top edge of the boundary?\r\n * @param {boolean} [checkDown] - Should bodies check against the bottom edge of the boundary?\r\n *\r\n * @return {Phaser.Physics.Arcade.World} This World object.\r\n */\r\n setBounds: function (x, y, width, height, checkLeft, checkRight, checkUp, checkDown)\r\n {\r\n this.bounds.setTo(x, y, width, height);\r\n\r\n if (checkLeft !== undefined)\r\n {\r\n this.setBoundsCollision(checkLeft, checkRight, checkUp, checkDown);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Enables or disables collisions on each edge of the World boundary.\r\n *\r\n * @method Phaser.Physics.Arcade.World#setBoundsCollision\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [left=true] - Should bodies check against the left edge of the boundary?\r\n * @param {boolean} [right=true] - Should bodies check against the right edge of the boundary?\r\n * @param {boolean} [up=true] - Should bodies check against the top edge of the boundary?\r\n * @param {boolean} [down=true] - Should bodies check against the bottom edge of the boundary?\r\n *\r\n * @return {Phaser.Physics.Arcade.World} This World object.\r\n */\r\n setBoundsCollision: function (left, right, up, down)\r\n {\r\n if (left === undefined) { left = true; }\r\n if (right === undefined) { right = true; }\r\n if (up === undefined) { up = true; }\r\n if (down === undefined) { down = true; }\r\n\r\n this.checkCollision.left = left;\r\n this.checkCollision.right = right;\r\n this.checkCollision.up = up;\r\n this.checkCollision.down = down;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Pauses the simulation.\r\n *\r\n * A paused simulation does not update any existing bodies, or run any Colliders.\r\n *\r\n * However, you can still enable and disable bodies within it, or manually run collide or overlap\r\n * checks.\r\n *\r\n * @method Phaser.Physics.Arcade.World#pause\r\n * @fires Phaser.Physics.Arcade.Events#PAUSE\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Physics.Arcade.World} This World object.\r\n */\r\n pause: function ()\r\n {\r\n this.isPaused = true;\r\n\r\n this.emit(Events.PAUSE);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resumes the simulation, if paused.\r\n *\r\n * @method Phaser.Physics.Arcade.World#resume\r\n * @fires Phaser.Physics.Arcade.Events#RESUME\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Physics.Arcade.World} This World object.\r\n */\r\n resume: function ()\r\n {\r\n this.isPaused = false;\r\n\r\n this.emit(Events.RESUME);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Creates a new Collider object and adds it to the simulation.\r\n *\r\n * A Collider is a way to automatically perform collision checks between two objects,\r\n * calling the collide and process callbacks if they occur.\r\n *\r\n * Colliders are run as part of the World update, after all of the Bodies have updated.\r\n *\r\n * By creating a Collider you don't need then call `World.collide` in your `update` loop,\r\n * as it will be handled for you automatically.\r\n *\r\n * @method Phaser.Physics.Arcade.World#addCollider\r\n * @since 3.0.0\r\n * @see Phaser.Physics.Arcade.World#collide\r\n *\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeColliderType} object1 - The first object to check for collision.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeColliderType} object2 - The second object to check for collision.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [collideCallback] - The callback to invoke when the two objects collide.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [processCallback] - The callback to invoke when the two objects collide. Must return a boolean.\r\n * @param {*} [callbackContext] - The scope in which to call the callbacks.\r\n *\r\n * @return {Phaser.Physics.Arcade.Collider} The Collider that was created.\r\n */\r\n addCollider: function (object1, object2, collideCallback, processCallback, callbackContext)\r\n {\r\n if (collideCallback === undefined) { collideCallback = null; }\r\n if (processCallback === undefined) { processCallback = null; }\r\n if (callbackContext === undefined) { callbackContext = collideCallback; }\r\n\r\n var collider = new Collider(this, false, object1, object2, collideCallback, processCallback, callbackContext);\r\n\r\n this.colliders.add(collider);\r\n\r\n return collider;\r\n },\r\n\r\n /**\r\n * Creates a new Overlap Collider object and adds it to the simulation.\r\n *\r\n * A Collider is a way to automatically perform overlap checks between two objects,\r\n * calling the collide and process callbacks if they occur.\r\n *\r\n * Colliders are run as part of the World update, after all of the Bodies have updated.\r\n *\r\n * By creating a Collider you don't need then call `World.overlap` in your `update` loop,\r\n * as it will be handled for you automatically.\r\n *\r\n * @method Phaser.Physics.Arcade.World#addOverlap\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeColliderType} object1 - The first object to check for overlap.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeColliderType} object2 - The second object to check for overlap.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [collideCallback] - The callback to invoke when the two objects overlap.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [processCallback] - The callback to invoke when the two objects overlap. Must return a boolean.\r\n * @param {*} [callbackContext] - The scope in which to call the callbacks.\r\n *\r\n * @return {Phaser.Physics.Arcade.Collider} The Collider that was created.\r\n */\r\n addOverlap: function (object1, object2, collideCallback, processCallback, callbackContext)\r\n {\r\n if (collideCallback === undefined) { collideCallback = null; }\r\n if (processCallback === undefined) { processCallback = null; }\r\n if (callbackContext === undefined) { callbackContext = collideCallback; }\r\n\r\n var collider = new Collider(this, true, object1, object2, collideCallback, processCallback, callbackContext);\r\n\r\n this.colliders.add(collider);\r\n\r\n return collider;\r\n },\r\n\r\n /**\r\n * Removes a Collider from the simulation so it is no longer processed.\r\n *\r\n * This method does not destroy the Collider. If you wish to add it back at a later stage you can call\r\n * `World.colliders.add(Collider)`.\r\n *\r\n * If you no longer need the Collider you can call the `Collider.destroy` method instead, which will\r\n * automatically clear all of its references and then remove it from the World. If you call destroy on\r\n * a Collider you _don't_ need to pass it to this method too.\r\n *\r\n * @method Phaser.Physics.Arcade.World#removeCollider\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Arcade.Collider} collider - The Collider to remove from the simulation.\r\n *\r\n * @return {Phaser.Physics.Arcade.World} This World object.\r\n */\r\n removeCollider: function (collider)\r\n {\r\n this.colliders.remove(collider);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the frame rate to run the simulation at.\r\n *\r\n * The frame rate value is used to simulate a fixed update time step. This fixed\r\n * time step allows for a straightforward implementation of a deterministic game state.\r\n *\r\n * This frame rate is independent of the frequency at which the game is rendering. The\r\n * higher you set the fps, the more physics simulation steps will occur per game step.\r\n * Conversely, the lower you set it, the less will take place.\r\n *\r\n * You can optionally advance the simulation directly yourself by calling the `step` method.\r\n *\r\n * @method Phaser.Physics.Arcade.World#setFPS\r\n * @since 3.10.0\r\n *\r\n * @param {number} framerate - The frame rate to advance the simulation at.\r\n *\r\n * @return {this} This World object.\r\n */\r\n setFPS: function (framerate)\r\n {\r\n this.fps = framerate;\r\n this._frameTime = 1 / this.fps;\r\n this._frameTimeMS = 1000 * this._frameTime;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Advances the simulation based on the elapsed time and fps rate.\r\n *\r\n * This is called automatically by your Scene and does not need to be invoked directly.\r\n *\r\n * @method Phaser.Physics.Arcade.World#update\r\n * @fires Phaser.Physics.Arcade.Events#WORLD_STEP\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current timestamp as generated by the Request Animation Frame or SetTimeout.\r\n * @param {number} delta - The delta time, in ms, elapsed since the last frame.\r\n */\r\n update: function (time, delta)\r\n {\r\n if (this.isPaused || this.bodies.size === 0)\r\n {\r\n return;\r\n }\r\n\r\n var i;\r\n var fixedDelta = this._frameTime;\r\n var msPerFrame = this._frameTimeMS * this.timeScale;\r\n\r\n this._elapsed += delta;\r\n\r\n // Update all active bodies\r\n var body;\r\n var bodies = this.bodies.entries;\r\n\r\n // Will a step happen this frame?\r\n var willStep = (this._elapsed >= msPerFrame);\r\n\r\n if (!this.fixedStep)\r\n {\r\n fixedDelta = delta * 0.001;\r\n willStep = true;\r\n this._elapsed = 0;\r\n }\r\n\r\n for (i = 0; i < bodies.length; i++)\r\n {\r\n body = bodies[i];\r\n\r\n if (body.enable)\r\n {\r\n body.preUpdate(willStep, fixedDelta);\r\n }\r\n }\r\n\r\n // We know that a step will happen this frame, so let's bundle it all together to save branching and iteration costs\r\n if (willStep)\r\n {\r\n this._elapsed -= msPerFrame;\r\n this.stepsLastFrame = 1;\r\n\r\n // Optionally populate our dynamic collision tree\r\n if (this.useTree)\r\n {\r\n this.tree.clear();\r\n this.tree.load(bodies);\r\n }\r\n\r\n // Process any colliders\r\n var colliders = this.colliders.update();\r\n\r\n for (i = 0; i < colliders.length; i++)\r\n {\r\n var collider = colliders[i];\r\n\r\n if (collider.active)\r\n {\r\n collider.update();\r\n }\r\n }\r\n\r\n this.emit(Events.WORLD_STEP, fixedDelta);\r\n }\r\n\r\n // Process any additional steps this frame\r\n while (this._elapsed >= msPerFrame)\r\n {\r\n this._elapsed -= msPerFrame;\r\n\r\n this.step(fixedDelta);\r\n }\r\n },\r\n\r\n /**\r\n * Advances the simulation by a time increment.\r\n *\r\n * @method Phaser.Physics.Arcade.World#step\r\n * @fires Phaser.Physics.Arcade.Events#WORLD_STEP\r\n * @since 3.10.0\r\n *\r\n * @param {number} delta - The delta time amount, in seconds, by which to advance the simulation.\r\n */\r\n step: function (delta)\r\n {\r\n // Update all active bodies\r\n var i;\r\n var body;\r\n var bodies = this.bodies.entries;\r\n var len = bodies.length;\r\n\r\n for (i = 0; i < len; i++)\r\n {\r\n body = bodies[i];\r\n\r\n if (body.enable)\r\n {\r\n body.update(delta);\r\n }\r\n }\r\n\r\n // Optionally populate our dynamic collision tree\r\n if (this.useTree)\r\n {\r\n this.tree.clear();\r\n this.tree.load(bodies);\r\n }\r\n\r\n // Process any colliders\r\n var colliders = this.colliders.update();\r\n\r\n for (i = 0; i < colliders.length; i++)\r\n {\r\n var collider = colliders[i];\r\n\r\n if (collider.active)\r\n {\r\n collider.update();\r\n }\r\n }\r\n\r\n this.emit(Events.WORLD_STEP, delta);\r\n\r\n this.stepsLastFrame++;\r\n },\r\n\r\n /**\r\n * Advances the simulation by a single step.\r\n *\r\n * @method Phaser.Physics.Arcade.World#singleStep\r\n * @fires Phaser.Physics.Arcade.Events#WORLD_STEP\r\n * @since 3.70.0\r\n */\r\n singleStep: function ()\r\n {\r\n this.update(0, this._frameTimeMS);\r\n\r\n this.postUpdate();\r\n },\r\n\r\n /**\r\n * Updates bodies, draws the debug display, and handles pending queue operations.\r\n *\r\n * @method Phaser.Physics.Arcade.World#postUpdate\r\n * @since 3.0.0\r\n */\r\n postUpdate: function ()\r\n {\r\n var i;\r\n var body;\r\n var bodies = this.bodies.entries;\r\n var len = bodies.length;\r\n\r\n var dynamic = this.bodies;\r\n var staticBodies = this.staticBodies;\r\n\r\n // We don't need to postUpdate if there wasn't a step this frame\r\n if (this.stepsLastFrame)\r\n {\r\n this.stepsLastFrame = 0;\r\n\r\n for (i = 0; i < len; i++)\r\n {\r\n body = bodies[i];\r\n\r\n if (body.enable)\r\n {\r\n body.postUpdate();\r\n }\r\n }\r\n }\r\n\r\n if (this.drawDebug)\r\n {\r\n var graphics = this.debugGraphic;\r\n\r\n graphics.clear();\r\n\r\n for (i = 0; i < len; i++)\r\n {\r\n body = bodies[i];\r\n\r\n if (body.willDrawDebug())\r\n {\r\n body.drawDebug(graphics);\r\n }\r\n }\r\n\r\n bodies = staticBodies.entries;\r\n len = bodies.length;\r\n\r\n for (i = 0; i < len; i++)\r\n {\r\n body = bodies[i];\r\n\r\n if (body.willDrawDebug())\r\n {\r\n body.drawDebug(graphics);\r\n }\r\n }\r\n }\r\n\r\n var pending = this.pendingDestroy;\r\n\r\n if (pending.size > 0)\r\n {\r\n var dynamicTree = this.tree;\r\n var staticTree = this.staticTree;\r\n\r\n bodies = pending.entries;\r\n len = bodies.length;\r\n\r\n for (i = 0; i < len; i++)\r\n {\r\n body = bodies[i];\r\n\r\n if (body.physicsType === CONST.DYNAMIC_BODY)\r\n {\r\n dynamicTree.remove(body);\r\n dynamic.delete(body);\r\n }\r\n else if (body.physicsType === CONST.STATIC_BODY)\r\n {\r\n staticTree.remove(body);\r\n staticBodies.delete(body);\r\n }\r\n\r\n body.world = undefined;\r\n body.gameObject = undefined;\r\n }\r\n\r\n pending.clear();\r\n }\r\n },\r\n\r\n /**\r\n * Calculates a Body's velocity and updates its position.\r\n *\r\n * @method Phaser.Physics.Arcade.World#updateMotion\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Arcade.Body} body - The Body to be updated.\r\n * @param {number} delta - The delta value to be used in the motion calculations, in seconds.\r\n */\r\n updateMotion: function (body, delta)\r\n {\r\n if (body.allowRotation)\r\n {\r\n this.computeAngularVelocity(body, delta);\r\n }\r\n\r\n this.computeVelocity(body, delta);\r\n },\r\n\r\n /**\r\n * Calculates a Body's angular velocity.\r\n *\r\n * @method Phaser.Physics.Arcade.World#computeAngularVelocity\r\n * @since 3.10.0\r\n *\r\n * @param {Phaser.Physics.Arcade.Body} body - The Body to compute the velocity for.\r\n * @param {number} delta - The delta value to be used in the calculation, in seconds.\r\n */\r\n computeAngularVelocity: function (body, delta)\r\n {\r\n var velocity = body.angularVelocity;\r\n var acceleration = body.angularAcceleration;\r\n var drag = body.angularDrag;\r\n var max = body.maxAngular;\r\n\r\n if (acceleration)\r\n {\r\n velocity += acceleration * delta;\r\n }\r\n else if (body.allowDrag && drag)\r\n {\r\n drag *= delta;\r\n\r\n if (FuzzyGreaterThan(velocity - drag, 0, 0.1))\r\n {\r\n velocity -= drag;\r\n }\r\n else if (FuzzyLessThan(velocity + drag, 0, 0.1))\r\n {\r\n velocity += drag;\r\n }\r\n else\r\n {\r\n velocity = 0;\r\n }\r\n }\r\n\r\n velocity = Clamp(velocity, -max, max);\r\n\r\n var velocityDelta = velocity - body.angularVelocity;\r\n\r\n body.angularVelocity += velocityDelta;\r\n body.rotation += (body.angularVelocity * delta);\r\n },\r\n\r\n /**\r\n * Calculates a Body's per-axis velocity.\r\n *\r\n * @method Phaser.Physics.Arcade.World#computeVelocity\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Arcade.Body} body - The Body to compute the velocity for.\r\n * @param {number} delta - The delta value to be used in the calculation, in seconds.\r\n */\r\n computeVelocity: function (body, delta)\r\n {\r\n var velocityX = body.velocity.x;\r\n var accelerationX = body.acceleration.x;\r\n var dragX = body.drag.x;\r\n var maxX = body.maxVelocity.x;\r\n\r\n var velocityY = body.velocity.y;\r\n var accelerationY = body.acceleration.y;\r\n var dragY = body.drag.y;\r\n var maxY = body.maxVelocity.y;\r\n\r\n var speed = body.speed;\r\n var maxSpeed = body.maxSpeed;\r\n var allowDrag = body.allowDrag;\r\n var useDamping = body.useDamping;\r\n\r\n if (body.allowGravity)\r\n {\r\n velocityX += (this.gravity.x + body.gravity.x) * delta;\r\n velocityY += (this.gravity.y + body.gravity.y) * delta;\r\n }\r\n\r\n if (accelerationX)\r\n {\r\n velocityX += accelerationX * delta;\r\n }\r\n else if (allowDrag && dragX)\r\n {\r\n if (useDamping)\r\n {\r\n // Damping based deceleration\r\n dragX = Math.pow(dragX, delta);\r\n\r\n velocityX *= dragX;\r\n\r\n speed = Math.sqrt(velocityX * velocityX + velocityY * velocityY);\r\n\r\n if (FuzzyEqual(speed, 0, 0.001))\r\n {\r\n velocityX = 0;\r\n }\r\n }\r\n else\r\n {\r\n // Linear deceleration\r\n dragX *= delta;\r\n\r\n if (FuzzyGreaterThan(velocityX - dragX, 0, 0.01))\r\n {\r\n velocityX -= dragX;\r\n }\r\n else if (FuzzyLessThan(velocityX + dragX, 0, 0.01))\r\n {\r\n velocityX += dragX;\r\n }\r\n else\r\n {\r\n velocityX = 0;\r\n }\r\n }\r\n }\r\n\r\n if (accelerationY)\r\n {\r\n velocityY += accelerationY * delta;\r\n }\r\n else if (allowDrag && dragY)\r\n {\r\n if (useDamping)\r\n {\r\n // Damping based deceleration\r\n dragY = Math.pow(dragY, delta);\r\n\r\n velocityY *= dragY;\r\n\r\n speed = Math.sqrt(velocityX * velocityX + velocityY * velocityY);\r\n\r\n if (FuzzyEqual(speed, 0, 0.001))\r\n {\r\n velocityY = 0;\r\n }\r\n }\r\n else\r\n {\r\n // Linear deceleration\r\n dragY *= delta;\r\n\r\n if (FuzzyGreaterThan(velocityY - dragY, 0, 0.01))\r\n {\r\n velocityY -= dragY;\r\n }\r\n else if (FuzzyLessThan(velocityY + dragY, 0, 0.01))\r\n {\r\n velocityY += dragY;\r\n }\r\n else\r\n {\r\n velocityY = 0;\r\n }\r\n }\r\n }\r\n\r\n velocityX = Clamp(velocityX, -maxX, maxX);\r\n velocityY = Clamp(velocityY, -maxY, maxY);\r\n\r\n body.velocity.set(velocityX, velocityY);\r\n\r\n if (maxSpeed > -1 && body.velocity.length() > maxSpeed)\r\n {\r\n body.velocity.normalize().scale(maxSpeed);\r\n speed = maxSpeed;\r\n }\r\n\r\n body.speed = speed;\r\n },\r\n\r\n /**\r\n * Separates two Bodies.\r\n *\r\n * @method Phaser.Physics.Arcade.World#separate\r\n * @fires Phaser.Physics.Arcade.Events#COLLIDE\r\n * @fires Phaser.Physics.Arcade.Events#OVERLAP\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Arcade.Body} body1 - The first Body to be separated.\r\n * @param {Phaser.Physics.Arcade.Body} body2 - The second Body to be separated.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [processCallback] - The process callback.\r\n * @param {*} [callbackContext] - The context in which to invoke the callback.\r\n * @param {boolean} [overlapOnly] - If this a collide or overlap check?\r\n *\r\n * @return {boolean} True if separation occurred, otherwise false.\r\n */\r\n separate: function (body1, body2, processCallback, callbackContext, overlapOnly)\r\n {\r\n var overlapX;\r\n var overlapY;\r\n\r\n var result = false;\r\n var runSeparation = true;\r\n\r\n if (\r\n !body1.enable ||\r\n !body2.enable ||\r\n body1.checkCollision.none ||\r\n body2.checkCollision.none ||\r\n !this.intersects(body1, body2))\r\n {\r\n return result;\r\n }\r\n\r\n // They overlap. Is there a custom process callback? If it returns true then we can carry on, otherwise we should abort.\r\n if (processCallback && processCallback.call(callbackContext, (body1.gameObject || body1), (body2.gameObject || body2)) === false)\r\n {\r\n return result;\r\n }\r\n\r\n // Circle vs. Circle, or Circle vs. Rect\r\n if (body1.isCircle || body2.isCircle)\r\n {\r\n var circleResults = this.separateCircle(body1, body2, overlapOnly);\r\n\r\n if (circleResults.result)\r\n {\r\n // We got a satisfactory result from the separateCircle method\r\n result = true;\r\n runSeparation = false;\r\n }\r\n else\r\n {\r\n // Further processing required\r\n overlapX = circleResults.x;\r\n overlapY = circleResults.y;\r\n runSeparation = true;\r\n }\r\n }\r\n\r\n if (runSeparation)\r\n {\r\n var resultX = false;\r\n var resultY = false;\r\n var bias = this.OVERLAP_BIAS;\r\n\r\n // Do we separate on x first or y first or both?\r\n if (overlapOnly)\r\n {\r\n // No separation but we need to calculate overlapX, overlapY, etc.\r\n resultX = SeparateX(body1, body2, overlapOnly, bias, overlapX);\r\n resultY = SeparateY(body1, body2, overlapOnly, bias, overlapY);\r\n }\r\n else if (this.forceX || Math.abs(this.gravity.y + body1.gravity.y) < Math.abs(this.gravity.x + body1.gravity.x))\r\n {\r\n resultX = SeparateX(body1, body2, overlapOnly, bias, overlapX);\r\n\r\n // Are they still intersecting? Let's do the other axis then\r\n if (this.intersects(body1, body2))\r\n {\r\n resultY = SeparateY(body1, body2, overlapOnly, bias, overlapY);\r\n }\r\n }\r\n else\r\n {\r\n resultY = SeparateY(body1, body2, overlapOnly, bias, overlapY);\r\n\r\n // Are they still intersecting? Let's do the other axis then\r\n if (this.intersects(body1, body2))\r\n {\r\n resultX = SeparateX(body1, body2, overlapOnly, bias, overlapX);\r\n }\r\n }\r\n\r\n result = (resultX || resultY);\r\n }\r\n\r\n if (result)\r\n {\r\n if (overlapOnly)\r\n {\r\n if (body1.onOverlap || body2.onOverlap)\r\n {\r\n this.emit(Events.OVERLAP, body1.gameObject, body2.gameObject, body1, body2);\r\n }\r\n }\r\n else if (body1.onCollide || body2.onCollide)\r\n {\r\n this.emit(Events.COLLIDE, body1.gameObject, body2.gameObject, body1, body2);\r\n }\r\n }\r\n\r\n return result;\r\n },\r\n\r\n /**\r\n * Separates two Bodies, when both are circular.\r\n *\r\n * @method Phaser.Physics.Arcade.World#separateCircle\r\n * @fires Phaser.Physics.Arcade.Events#COLLIDE\r\n * @fires Phaser.Physics.Arcade.Events#OVERLAP\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Arcade.Body} body1 - The first Body to be separated.\r\n * @param {Phaser.Physics.Arcade.Body} body2 - The second Body to be separated.\r\n * @param {boolean} [overlapOnly] - If this a collide or overlap check?\r\n *\r\n * @return {boolean} True if separation occurred, otherwise false.\r\n */\r\n separateCircle: function (body1, body2, overlapOnly)\r\n {\r\n // Set the AABB overlap, blocked and touching values into the bodies (we don't use the return values here)\r\n GetOverlapX(body1, body2, false, 0);\r\n GetOverlapY(body1, body2, false, 0);\r\n\r\n var body1IsCircle = body1.isCircle;\r\n var body2IsCircle = body2.isCircle;\r\n var body1Center = body1.center;\r\n var body2Center = body2.center;\r\n var body1Immovable = body1.immovable;\r\n var body2Immovable = body2.immovable;\r\n var body1Velocity = body1.velocity;\r\n var body2Velocity = body2.velocity;\r\n\r\n var overlap = 0;\r\n var twoCircles = true;\r\n\r\n if (body1IsCircle !== body2IsCircle)\r\n {\r\n twoCircles = false;\r\n\r\n var circleX = body1Center.x;\r\n var circleY = body1Center.y;\r\n var circleRadius = body1.halfWidth;\r\n\r\n var rectX = body2.position.x;\r\n var rectY = body2.position.y;\r\n var rectRight = body2.right;\r\n var rectBottom = body2.bottom;\r\n\r\n if (body2IsCircle)\r\n {\r\n circleX = body2Center.x;\r\n circleY = body2Center.y;\r\n circleRadius = body2.halfWidth;\r\n\r\n rectX = body1.position.x;\r\n rectY = body1.position.y;\r\n rectRight = body1.right;\r\n rectBottom = body1.bottom;\r\n }\r\n\r\n if (circleY < rectY)\r\n {\r\n if (circleX < rectX)\r\n {\r\n overlap = DistanceBetween(circleX, circleY, rectX, rectY) - circleRadius;\r\n }\r\n else if (circleX > rectRight)\r\n {\r\n overlap = DistanceBetween(circleX, circleY, rectRight, rectY) - circleRadius;\r\n }\r\n }\r\n else if (circleY > rectBottom)\r\n {\r\n if (circleX < rectX)\r\n {\r\n overlap = DistanceBetween(circleX, circleY, rectX, rectBottom) - circleRadius;\r\n }\r\n else if (circleX > rectRight)\r\n {\r\n overlap = DistanceBetween(circleX, circleY, rectRight, rectBottom) - circleRadius;\r\n }\r\n }\r\n\r\n // If a collision occurs in the corner points of the rectangle\r\n // then the bodies behave like circles\r\n overlap *= -1;\r\n }\r\n else\r\n {\r\n overlap = (body1.halfWidth + body2.halfWidth) - DistanceBetweenPoints(body1Center, body2Center);\r\n }\r\n\r\n body1.overlapR = overlap;\r\n body2.overlapR = overlap;\r\n\r\n var angle = AngleBetweenPoints(body1Center, body2Center);\r\n var overlapX = (overlap + MATH_CONST.EPSILON) * Math.cos(angle);\r\n var overlapY = (overlap + MATH_CONST.EPSILON) * Math.sin(angle);\r\n\r\n var results = { overlap: overlap, result: false, x: overlapX, y: overlapY };\r\n\r\n // We know the AABBs already intersect before we enter this method\r\n if (overlapOnly && (!twoCircles || (twoCircles && overlap !== 0)))\r\n {\r\n // Now we know the rect vs circle overlaps, or two circles do\r\n results.result = true;\r\n\r\n return results;\r\n }\r\n\r\n // Can't separate (in this method):\r\n // Two immovable bodies\r\n // A body with its own custom separation logic\r\n // A circle vs. a rect with a face-on collision\r\n if ((!twoCircles && overlap === 0) || (body1Immovable && body2Immovable) || body1.customSeparateX || body2.customSeparateX)\r\n {\r\n // Let SeparateX / SeparateY handle this\r\n results.x = undefined;\r\n results.y = undefined;\r\n\r\n return results;\r\n }\r\n\r\n // If we get this far we either have circle vs. circle\r\n // or circle vs. rect with corner collision\r\n\r\n var deadlock = (!body1.pushable && !body2.pushable);\r\n\r\n if (twoCircles)\r\n {\r\n var dx = body1Center.x - body2Center.x;\r\n var dy = body1Center.y - body2Center.y;\r\n var d = Math.sqrt(Math.pow(dx, 2) + Math.pow(dy, 2));\r\n var nx = ((body2Center.x - body1Center.x) / d) || 0;\r\n var ny = ((body2Center.y - body1Center.y) / d) || 0;\r\n var p = 2 * (body1Velocity.x * nx + body1Velocity.y * ny - body2Velocity.x * nx - body2Velocity.y * ny) / (body1.mass + body2.mass);\r\n\r\n if (body1Immovable || body2Immovable || !body1.pushable || !body2.pushable)\r\n {\r\n p *= 2;\r\n }\r\n\r\n if (!body1Immovable && body1.pushable)\r\n {\r\n body1Velocity.x = (body1Velocity.x - p / body1.mass * nx);\r\n body1Velocity.y = (body1Velocity.y - p / body1.mass * ny);\r\n body1Velocity.multiply(body1.bounce);\r\n }\r\n\r\n if (!body2Immovable && body2.pushable)\r\n {\r\n body2Velocity.x = (body2Velocity.x + p / body2.mass * nx);\r\n body2Velocity.y = (body2Velocity.y + p / body2.mass * ny);\r\n body2Velocity.multiply(body2.bounce);\r\n }\r\n\r\n if (!body1Immovable && !body2Immovable)\r\n {\r\n overlapX *= 0.5;\r\n overlapY *= 0.5;\r\n }\r\n\r\n if (!body1Immovable || body1.pushable || deadlock)\r\n {\r\n body1.x -= overlapX;\r\n body1.y -= overlapY;\r\n\r\n body1.updateCenter();\r\n }\r\n else if (!body2Immovable || body2.pushable || deadlock)\r\n {\r\n body2.x += overlapX;\r\n body2.y += overlapY;\r\n\r\n body2.updateCenter();\r\n }\r\n\r\n results.result = true;\r\n }\r\n else\r\n {\r\n // Circle vs. Rect\r\n // We'll only move the circle (if we can) and let\r\n // the runSeparation handle the rectangle\r\n\r\n if (!body1Immovable || body1.pushable || deadlock)\r\n {\r\n body1.x -= overlapX;\r\n body1.y -= overlapY;\r\n\r\n body1.updateCenter();\r\n }\r\n else if (!body2Immovable || body2.pushable || deadlock)\r\n {\r\n body2.x += overlapX;\r\n body2.y += overlapY;\r\n\r\n body2.updateCenter();\r\n }\r\n\r\n // Let SeparateX / SeparateY handle this further\r\n results.x = undefined;\r\n results.y = undefined;\r\n }\r\n\r\n return results;\r\n },\r\n\r\n /**\r\n * Checks to see if two Bodies intersect at all.\r\n *\r\n * @method Phaser.Physics.Arcade.World#intersects\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Arcade.Body} body1 - The first body to check.\r\n * @param {Phaser.Physics.Arcade.Body} body2 - The second body to check.\r\n *\r\n * @return {boolean} True if the two bodies intersect, otherwise false.\r\n */\r\n intersects: function (body1, body2)\r\n {\r\n if (body1 === body2)\r\n {\r\n return false;\r\n }\r\n\r\n if (!body1.isCircle && !body2.isCircle)\r\n {\r\n // Rect vs. Rect\r\n return !(\r\n body1.right <= body2.left ||\r\n body1.bottom <= body2.top ||\r\n body1.left >= body2.right ||\r\n body1.top >= body2.bottom\r\n );\r\n }\r\n else if (body1.isCircle)\r\n {\r\n if (body2.isCircle)\r\n {\r\n // Circle vs. Circle\r\n return DistanceBetweenPoints(body1.center, body2.center) <= (body1.halfWidth + body2.halfWidth);\r\n }\r\n else\r\n {\r\n // Circle vs. Rect\r\n return this.circleBodyIntersects(body1, body2);\r\n }\r\n }\r\n else\r\n {\r\n // Rect vs. Circle\r\n return this.circleBodyIntersects(body2, body1);\r\n }\r\n },\r\n\r\n /**\r\n * Tests if a circular Body intersects with another Body.\r\n *\r\n * @method Phaser.Physics.Arcade.World#circleBodyIntersects\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Arcade.Body} circle - The circular body to test.\r\n * @param {Phaser.Physics.Arcade.Body} body - The rectangular body to test.\r\n *\r\n * @return {boolean} True if the two bodies intersect, otherwise false.\r\n */\r\n circleBodyIntersects: function (circle, body)\r\n {\r\n var x = Clamp(circle.center.x, body.left, body.right);\r\n var y = Clamp(circle.center.y, body.top, body.bottom);\r\n\r\n var dx = (circle.center.x - x) * (circle.center.x - x);\r\n var dy = (circle.center.y - y) * (circle.center.y - y);\r\n\r\n return (dx + dy) <= (circle.halfWidth * circle.halfWidth);\r\n },\r\n\r\n /**\r\n * Tests if Game Objects overlap.\r\n *\r\n * See details in {@link Phaser.Physics.Arcade.World#collide}.\r\n *\r\n * @method Phaser.Physics.Arcade.World#overlap\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeColliderType} object1 - The first object or array of objects to check.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeColliderType} [object2] - The second object or array of objects to check, or `undefined`.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [overlapCallback] - An optional callback function that is called if the objects overlap.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [processCallback] - An optional callback function that lets you perform additional checks against the two objects if they overlap. If this is set then `overlapCallback` will only be called if this callback returns `true`.\r\n * @param {*} [callbackContext] - The context in which to run the callbacks.\r\n *\r\n * @return {boolean} True if at least one Game Object overlaps another.\r\n *\r\n * @see Phaser.Physics.Arcade.World#collide\r\n */\r\n overlap: function (object1, object2, overlapCallback, processCallback, callbackContext)\r\n {\r\n if (overlapCallback === undefined) { overlapCallback = null; }\r\n if (processCallback === undefined) { processCallback = null; }\r\n if (callbackContext === undefined) { callbackContext = overlapCallback; }\r\n\r\n return this.collideObjects(object1, object2, overlapCallback, processCallback, callbackContext, true);\r\n },\r\n\r\n /**\r\n * Performs a collision check and separation between the two physics enabled objects given, which can be single\r\n * Game Objects, arrays of Game Objects, Physics Groups, arrays of Physics Groups or normal Groups.\r\n *\r\n * If you don't require separation then use {@link Phaser.Physics.Arcade.World#overlap} instead.\r\n *\r\n * If two Groups or arrays are passed, each member of one will be tested against each member of the other.\r\n *\r\n * If **only** one Group is passed (as `object1`), each member of the Group will be collided against the other members.\r\n *\r\n * If **only** one Array is passed, the array is iterated and every element in it is tested against the others.\r\n *\r\n * Two callbacks can be provided; they receive the colliding game objects as arguments.\r\n * If an overlap is detected, the `processCallback` is called first. It can cancel the collision by returning false.\r\n * Next the objects are separated and `collideCallback` is invoked.\r\n *\r\n * Arcade Physics uses the Projection Method of collision resolution and separation. While it's fast and suitable\r\n * for 'arcade' style games it lacks stability when multiple objects are in close proximity or resting upon each other.\r\n * The separation that stops two objects penetrating may create a new penetration against a different object. If you\r\n * require a high level of stability please consider using an alternative physics system, such as Matter.js.\r\n *\r\n * @method Phaser.Physics.Arcade.World#collide\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeColliderType} object1 - The first object or array of objects to check.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeColliderType} [object2] - The second object or array of objects to check, or `undefined`.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [collideCallback] - An optional callback function that is called if the objects collide.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [processCallback] - An optional callback function that lets you perform additional checks against the two objects if they collide. If this is set then `collideCallback` will only be called if this callback returns `true`.\r\n * @param {any} [callbackContext] - The context in which to run the callbacks.\r\n *\r\n * @return {boolean} `true` if any overlapping Game Objects were separated, otherwise `false`.\r\n */\r\n collide: function (object1, object2, collideCallback, processCallback, callbackContext)\r\n {\r\n if (collideCallback === undefined) { collideCallback = null; }\r\n if (processCallback === undefined) { processCallback = null; }\r\n if (callbackContext === undefined) { callbackContext = collideCallback; }\r\n\r\n return this.collideObjects(object1, object2, collideCallback, processCallback, callbackContext, false);\r\n },\r\n\r\n /**\r\n * Internal helper function. Please use Phaser.Physics.Arcade.World#collide instead.\r\n *\r\n * @method Phaser.Physics.Arcade.World#collideObjects\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeColliderType} object1 - The first object to check for collision.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeColliderType} [object2] - The second object to check for collision.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} collideCallback - The callback to invoke when the two objects collide.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} processCallback - The callback to invoke when the two objects collide. Must return a boolean.\r\n * @param {any} callbackContext - The scope in which to call the callbacks.\r\n * @param {boolean} overlapOnly - Whether this is a collision or overlap check.\r\n *\r\n * @return {boolean} True if any objects overlap (with `overlapOnly`); or true if any overlapping objects were separated.\r\n */\r\n collideObjects: function (object1, object2, collideCallback, processCallback, callbackContext, overlapOnly)\r\n {\r\n var i;\r\n var j;\r\n\r\n if (object1.isParent && (object1.physicsType === undefined || object2 === undefined || object1 === object2))\r\n {\r\n object1 = object1.children.entries;\r\n }\r\n\r\n if (object2 && object2.isParent && object2.physicsType === undefined)\r\n {\r\n object2 = object2.children.entries;\r\n }\r\n\r\n var object1isArray = Array.isArray(object1);\r\n var object2isArray = Array.isArray(object2);\r\n\r\n this._total = 0;\r\n\r\n if (!object1isArray && !object2isArray)\r\n {\r\n // Neither of them are arrays - do this first as it's the most common use-case\r\n this.collideHandler(object1, object2, collideCallback, processCallback, callbackContext, overlapOnly);\r\n }\r\n else if (!object1isArray && object2isArray)\r\n {\r\n // Object 2 is an Array\r\n for (i = 0; i < object2.length; i++)\r\n {\r\n this.collideHandler(object1, object2[i], collideCallback, processCallback, callbackContext, overlapOnly);\r\n }\r\n }\r\n else if (object1isArray && !object2isArray)\r\n {\r\n // Object 1 is an Array\r\n if (!object2)\r\n {\r\n // Special case for array vs. self\r\n for (i = 0; i < object1.length; i++)\r\n {\r\n var child = object1[i];\r\n\r\n for (j = i + 1; j < object1.length; j++)\r\n {\r\n if (i === j)\r\n {\r\n continue;\r\n }\r\n\r\n this.collideHandler(child, object1[j], collideCallback, processCallback, callbackContext, overlapOnly);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n for (i = 0; i < object1.length; i++)\r\n {\r\n this.collideHandler(object1[i], object2, collideCallback, processCallback, callbackContext, overlapOnly);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n // They're both arrays\r\n for (i = 0; i < object1.length; i++)\r\n {\r\n for (j = 0; j < object2.length; j++)\r\n {\r\n this.collideHandler(object1[i], object2[j], collideCallback, processCallback, callbackContext, overlapOnly);\r\n }\r\n }\r\n }\r\n\r\n return (this._total > 0);\r\n },\r\n\r\n /**\r\n * Internal helper function. Please use Phaser.Physics.Arcade.World#collide and Phaser.Physics.Arcade.World#overlap instead.\r\n *\r\n * @method Phaser.Physics.Arcade.World#collideHandler\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeColliderType} object1 - The first object or array of objects to check.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeColliderType} object2 - The second object or array of objects to check, or `undefined`.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} collideCallback - An optional callback function that is called if the objects collide.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} processCallback - An optional callback function that lets you perform additional checks against the two objects if they collide. If this is set then `collideCallback` will only be called if this callback returns `true`.\r\n * @param {any} callbackContext - The context in which to run the callbacks.\r\n * @param {boolean} overlapOnly - Whether this is a collision or overlap check.\r\n *\r\n * @return {boolean} True if any objects overlap (with `overlapOnly`); or true if any overlapping objects were separated.\r\n */\r\n collideHandler: function (object1, object2, collideCallback, processCallback, callbackContext, overlapOnly)\r\n {\r\n // Collide Group with Self\r\n // Only collide valid objects\r\n if (object2 === undefined && object1.isParent)\r\n {\r\n return this.collideGroupVsGroup(object1, object1, collideCallback, processCallback, callbackContext, overlapOnly);\r\n }\r\n\r\n // If neither of the objects are set then bail out\r\n if (!object1 || !object2)\r\n {\r\n return false;\r\n }\r\n\r\n // SPRITE\r\n if (object1.body || object1.isBody)\r\n {\r\n if (object2.body || object2.isBody)\r\n {\r\n return this.collideSpriteVsSprite(object1, object2, collideCallback, processCallback, callbackContext, overlapOnly);\r\n }\r\n else if (object2.isParent)\r\n {\r\n return this.collideSpriteVsGroup(object1, object2, collideCallback, processCallback, callbackContext, overlapOnly);\r\n }\r\n else if (object2.isTilemap)\r\n {\r\n return this.collideSpriteVsTilemapLayer(object1, object2, collideCallback, processCallback, callbackContext, overlapOnly);\r\n }\r\n }\r\n\r\n // GROUPS\r\n else if (object1.isParent)\r\n {\r\n if (object2.body || object2.isBody)\r\n {\r\n return this.collideSpriteVsGroup(object2, object1, collideCallback, processCallback, callbackContext, overlapOnly);\r\n }\r\n else if (object2.isParent)\r\n {\r\n return this.collideGroupVsGroup(object1, object2, collideCallback, processCallback, callbackContext, overlapOnly);\r\n }\r\n else if (object2.isTilemap)\r\n {\r\n return this.collideGroupVsTilemapLayer(object1, object2, collideCallback, processCallback, callbackContext, overlapOnly);\r\n }\r\n }\r\n\r\n // TILEMAP LAYERS\r\n else if (object1.isTilemap)\r\n {\r\n if (object2.body || object2.isBody)\r\n {\r\n return this.collideSpriteVsTilemapLayer(object2, object1, collideCallback, processCallback, callbackContext, overlapOnly);\r\n }\r\n else if (object2.isParent)\r\n {\r\n return this.collideGroupVsTilemapLayer(object2, object1, collideCallback, processCallback, callbackContext, overlapOnly);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Checks if the two given Arcade Physics bodies will collide, or not,\r\n * based on their collision mask and collision categories.\r\n *\r\n * @method Phaser.Physics.Arcade.World#canCollide\r\n * @since 3.70.0\r\n *\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeCollider} body1 - The first body to check.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadeCollider} body2 - The second body to check.\r\n *\r\n * @return {boolean} True if the two bodies will collide, otherwise false.\r\n */\r\n canCollide: function (body1, body2)\r\n {\r\n return (\r\n (body1 && body2) &&\r\n (body1.collisionMask & body2.collisionCategory) !== 0 &&\r\n (body2.collisionMask & body1.collisionCategory) !== 0\r\n );\r\n },\r\n\r\n /**\r\n * Internal handler for Sprite vs. Sprite collisions.\r\n * Please use Phaser.Physics.Arcade.World#collide instead.\r\n *\r\n * @method Phaser.Physics.Arcade.World#collideSpriteVsSprite\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} sprite1 - The first object to check for collision.\r\n * @param {Phaser.GameObjects.GameObject} sprite2 - The second object to check for collision.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [collideCallback] - An optional callback function that is called if the objects collide.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [processCallback] - An optional callback function that lets you perform additional checks against the two objects if they collide. If this is set then `collideCallback` will only be called if this callback returns `true`.\r\n * @param {any} [callbackContext] - The context in which to run the callbacks.\r\n * @param {boolean} overlapOnly - Whether this is a collision or overlap check.\r\n *\r\n * @return {boolean} True if any objects overlap (with `overlapOnly`); or true if any overlapping objects were separated.\r\n */\r\n collideSpriteVsSprite: function (sprite1, sprite2, collideCallback, processCallback, callbackContext, overlapOnly)\r\n {\r\n var body1 = (sprite1.isBody) ? sprite1 : sprite1.body;\r\n var body2 = (sprite2.isBody) ? sprite2 : sprite2.body;\r\n\r\n if (!this.canCollide(body1, body2))\r\n {\r\n return false;\r\n }\r\n\r\n if (this.separate(body1, body2, processCallback, callbackContext, overlapOnly))\r\n {\r\n if (collideCallback)\r\n {\r\n collideCallback.call(callbackContext, sprite1, sprite2);\r\n }\r\n\r\n this._total++;\r\n }\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * Internal handler for Sprite vs. Group collisions.\r\n * Please use Phaser.Physics.Arcade.World#collide instead.\r\n *\r\n * @method Phaser.Physics.Arcade.World#collideSpriteVsGroup\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} sprite - The first object to check for collision.\r\n * @param {Phaser.GameObjects.Group} group - The second object to check for collision.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} collideCallback - The callback to invoke when the two objects collide.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} processCallback - The callback to invoke when the two objects collide. Must return a boolean.\r\n * @param {any} callbackContext - The scope in which to call the callbacks.\r\n * @param {boolean} overlapOnly - Whether this is a collision or overlap check.\r\n */\r\n collideSpriteVsGroup: function (sprite, group, collideCallback, processCallback, callbackContext, overlapOnly)\r\n {\r\n var bodyA = (sprite.isBody) ? sprite : sprite.body;\r\n\r\n if (group.getLength() === 0 || !bodyA || !bodyA.enable || bodyA.checkCollision.none || !this.canCollide(bodyA, group))\r\n {\r\n return;\r\n }\r\n\r\n // Does sprite collide with anything?\r\n\r\n var i;\r\n var len;\r\n var bodyB;\r\n\r\n if (this.useTree || group.physicsType === CONST.STATIC_BODY)\r\n {\r\n var minMax = this.treeMinMax;\r\n\r\n minMax.minX = bodyA.left;\r\n minMax.minY = bodyA.top;\r\n minMax.maxX = bodyA.right;\r\n minMax.maxY = bodyA.bottom;\r\n\r\n var results = (group.physicsType === CONST.DYNAMIC_BODY) ? this.tree.search(minMax) : this.staticTree.search(minMax);\r\n\r\n len = results.length;\r\n\r\n for (i = 0; i < len; i++)\r\n {\r\n bodyB = results[i];\r\n\r\n if (bodyA === bodyB || !bodyB.enable || bodyB.checkCollision.none || !group.contains(bodyB.gameObject))\r\n {\r\n // Skip if comparing against itself, or if bodyB isn't collidable, or if bodyB isn't actually part of the Group\r\n continue;\r\n }\r\n\r\n if (this.separate(bodyA, bodyB, processCallback, callbackContext, overlapOnly))\r\n {\r\n if (collideCallback)\r\n {\r\n collideCallback.call(callbackContext, bodyA.gameObject, bodyB.gameObject);\r\n }\r\n\r\n this._total++;\r\n }\r\n }\r\n }\r\n else\r\n {\r\n var children = group.getChildren();\r\n var skipIndex = group.children.entries.indexOf(sprite);\r\n\r\n len = children.length;\r\n\r\n for (i = 0; i < len; i++)\r\n {\r\n bodyB = children[i].body;\r\n\r\n if (!bodyB || i === skipIndex || !bodyB.enable)\r\n {\r\n continue;\r\n }\r\n\r\n if (this.separate(bodyA, bodyB, processCallback, callbackContext, overlapOnly))\r\n {\r\n if (collideCallback)\r\n {\r\n collideCallback.call(callbackContext, bodyA.gameObject, bodyB.gameObject);\r\n }\r\n\r\n this._total++;\r\n }\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Internal handler for Group vs. Tilemap collisions.\r\n * Please use Phaser.Physics.Arcade.World#collide instead.\r\n *\r\n * @method Phaser.Physics.Arcade.World#collideGroupVsTilemapLayer\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Group} group - The first object to check for collision.\r\n * @param {Phaser.Tilemaps.TilemapLayer} tilemapLayer - The second object to check for collision.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} collideCallback - An optional callback function that is called if the objects collide.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} processCallback - An optional callback function that lets you perform additional checks against the two objects if they collide. If this is set then `collideCallback` will only be called if this callback returns `true`.\r\n * @param {any} callbackContext - The context in which to run the callbacks.\r\n * @param {boolean} overlapOnly - Whether this is a collision or overlap check.\r\n *\r\n * @return {boolean} True if any objects overlap (with `overlapOnly`); or true if any overlapping objects were separated.\r\n */\r\n collideGroupVsTilemapLayer: function (group, tilemapLayer, collideCallback, processCallback, callbackContext, overlapOnly)\r\n {\r\n if (!this.canCollide(group, tilemapLayer))\r\n {\r\n return false;\r\n }\r\n\r\n var children = group.getChildren();\r\n\r\n if (children.length === 0)\r\n {\r\n return false;\r\n }\r\n\r\n var didCollide = false;\r\n\r\n for (var i = 0; i < children.length; i++)\r\n {\r\n if (children[i].body || children[i].isBody)\r\n {\r\n if (this.collideSpriteVsTilemapLayer(children[i], tilemapLayer, collideCallback, processCallback, callbackContext, overlapOnly))\r\n {\r\n didCollide = true;\r\n }\r\n }\r\n }\r\n\r\n return didCollide;\r\n },\r\n\r\n /**\r\n * This advanced method is specifically for testing for collision between a single Sprite and an array of Tile objects.\r\n *\r\n * You should generally use the `collide` method instead, with a Sprite vs. a Tilemap Layer, as that will perform\r\n * tile filtering and culling for you, as well as handle the interesting face collision automatically.\r\n *\r\n * This method is offered for those who would like to check for collision with specific Tiles in a layer, without\r\n * having to set any collision attributes on the tiles in question. This allows you to perform quick dynamic collisions\r\n * on small sets of Tiles. As such, no culling or checks are made to the array of Tiles given to this method,\r\n * you should filter them before passing them to this method.\r\n *\r\n * Important: Use of this method skips the `interesting faces` system that Tilemap Layers use. This means if you have\r\n * say a row or column of tiles, and you jump into, or walk over them, it's possible to get stuck on the edges of the\r\n * tiles as the interesting face calculations are skipped. However, for quick-fire small collision set tests on\r\n * dynamic maps, this method can prove very useful.\r\n *\r\n * This method does not factor in the Collision Mask or Category.\r\n *\r\n * @method Phaser.Physics.Arcade.World#collideTiles\r\n * @fires Phaser.Physics.Arcade.Events#TILE_COLLIDE\r\n * @since 3.17.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} sprite - The first object to check for collision.\r\n * @param {Phaser.Tilemaps.Tile[]} tiles - An array of Tiles to check for collision against.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [collideCallback] - An optional callback function that is called if the objects collide.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [processCallback] - An optional callback function that lets you perform additional checks against the two objects if they collide. If this is set then `collideCallback` will only be called if this callback returns `true`.\r\n * @param {any} [callbackContext] - The context in which to run the callbacks.\r\n *\r\n * @return {boolean} True if any objects overlap (with `overlapOnly`); or true if any overlapping objects were separated.\r\n */\r\n collideTiles: function (sprite, tiles, collideCallback, processCallback, callbackContext)\r\n {\r\n if (tiles.length === 0 || (sprite.body && !sprite.body.enable) || (sprite.isBody && !sprite.enable))\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n return this.collideSpriteVsTilesHandler(sprite, tiles, collideCallback, processCallback, callbackContext, false, false);\r\n }\r\n },\r\n\r\n /**\r\n * This advanced method is specifically for testing for overlaps between a single Sprite and an array of Tile objects.\r\n *\r\n * You should generally use the `overlap` method instead, with a Sprite vs. a Tilemap Layer, as that will perform\r\n * tile filtering and culling for you, as well as handle the interesting face collision automatically.\r\n *\r\n * This method is offered for those who would like to check for overlaps with specific Tiles in a layer, without\r\n * having to set any collision attributes on the tiles in question. This allows you to perform quick dynamic overlap\r\n * tests on small sets of Tiles. As such, no culling or checks are made to the array of Tiles given to this method,\r\n * you should filter them before passing them to this method.\r\n *\r\n * This method does not factor in the Collision Mask or Category.\r\n *\r\n * @method Phaser.Physics.Arcade.World#overlapTiles\r\n * @fires Phaser.Physics.Arcade.Events#TILE_OVERLAP\r\n * @since 3.17.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} sprite - The first object to check for collision.\r\n * @param {Phaser.Tilemaps.Tile[]} tiles - An array of Tiles to check for collision against.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [collideCallback] - An optional callback function that is called if the objects overlap.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [processCallback] - An optional callback function that lets you perform additional checks against the two objects if they collide. If this is set then `collideCallback` will only be called if this callback returns `true`.\r\n * @param {any} [callbackContext] - The context in which to run the callbacks.\r\n *\r\n * @return {boolean} True if any objects overlap (with `overlapOnly`); or true if any overlapping objects were separated.\r\n */\r\n overlapTiles: function (sprite, tiles, collideCallback, processCallback, callbackContext)\r\n {\r\n if (tiles.length === 0 || (sprite.body && !sprite.body.enable) || (sprite.isBody && !sprite.enable))\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n return this.collideSpriteVsTilesHandler(sprite, tiles, collideCallback, processCallback, callbackContext, true, false);\r\n }\r\n },\r\n\r\n /**\r\n * Internal handler for Sprite vs. Tilemap collisions.\r\n * Please use Phaser.Physics.Arcade.World#collide instead.\r\n *\r\n * @method Phaser.Physics.Arcade.World#collideSpriteVsTilemapLayer\r\n * @fires Phaser.Physics.Arcade.Events#TILE_COLLIDE\r\n * @fires Phaser.Physics.Arcade.Events#TILE_OVERLAP\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} sprite - The first object to check for collision.\r\n * @param {Phaser.Tilemaps.TilemapLayer} tilemapLayer - The second object to check for collision.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [collideCallback] - An optional callback function that is called if the objects collide.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [processCallback] - An optional callback function that lets you perform additional checks against the two objects if they collide. If this is set then `collideCallback` will only be called if this callback returns `true`.\r\n * @param {any} [callbackContext] - The context in which to run the callbacks.\r\n * @param {boolean} [overlapOnly] - Whether this is a collision or overlap check.\r\n *\r\n * @return {boolean} True if any objects overlap (with `overlapOnly`); or true if any overlapping objects were separated.\r\n */\r\n collideSpriteVsTilemapLayer: function (sprite, tilemapLayer, collideCallback, processCallback, callbackContext, overlapOnly)\r\n {\r\n var body = (sprite.isBody) ? sprite : sprite.body;\r\n\r\n if (!body.enable || body.checkCollision.none || !this.canCollide(body, tilemapLayer))\r\n {\r\n return false;\r\n }\r\n\r\n var layerData = tilemapLayer.layer;\r\n\r\n // Increase the hit area of the body by the size of the tiles * the scale\r\n // This will allow GetTilesWithinWorldXY to include the tiles around the body\r\n\r\n var x = body.x - (layerData.tileWidth * tilemapLayer.scaleX);\r\n var y = body.y - (layerData.tileHeight * tilemapLayer.scaleY);\r\n var w = body.width + (layerData.tileWidth * tilemapLayer.scaleX);\r\n var h = body.height + layerData.tileHeight * tilemapLayer.scaleY;\r\n\r\n var options = (overlapOnly) ? null : this.tileFilterOptions;\r\n\r\n var mapData = GetTilesWithinWorldXY(x, y, w, h, options, tilemapLayer.scene.cameras.main, tilemapLayer.layer);\r\n\r\n if (mapData.length === 0)\r\n {\r\n return false;\r\n }\r\n else\r\n {\r\n return this.collideSpriteVsTilesHandler(sprite, mapData, collideCallback, processCallback, callbackContext, overlapOnly, true);\r\n }\r\n },\r\n\r\n /**\r\n * Internal handler for Sprite vs. Tilemap collisions.\r\n * Please use Phaser.Physics.Arcade.World#collide instead.\r\n *\r\n * @method Phaser.Physics.Arcade.World#collideSpriteVsTilesHandler\r\n * @fires Phaser.Physics.Arcade.Events#TILE_COLLIDE\r\n * @fires Phaser.Physics.Arcade.Events#TILE_OVERLAP\r\n * @private\r\n * @since 3.17.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} sprite - The first object to check for collision.\r\n * @param {Phaser.Tilemaps.TilemapLayer} tilemapLayer - The second object to check for collision.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [collideCallback] - An optional callback function that is called if the objects collide.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [processCallback] - An optional callback function that lets you perform additional checks against the two objects if they collide. If this is set then `collideCallback` will only be called if this callback returns `true`.\r\n * @param {any} [callbackContext] - The context in which to run the callbacks.\r\n * @param {boolean} [overlapOnly] - Whether this is a collision or overlap check.\r\n * @param {boolean} [isLayer] - Is this check coming from a TilemapLayer or an array of tiles?\r\n *\r\n * @return {boolean} True if any objects overlap (with `overlapOnly`); or true if any overlapping objects were separated.\r\n */\r\n collideSpriteVsTilesHandler: function (sprite, tiles, collideCallback, processCallback, callbackContext, overlapOnly, isLayer)\r\n {\r\n var body = (sprite.isBody) ? sprite : sprite.body;\r\n\r\n var tile;\r\n var tileWorldRect = { left: 0, right: 0, top: 0, bottom: 0 };\r\n var tilemapLayer;\r\n var collision = false;\r\n\r\n for (var i = 0; i < tiles.length; i++)\r\n {\r\n tile = tiles[i];\r\n\r\n tilemapLayer = tile.tilemapLayer;\r\n\r\n var point = tilemapLayer.tileToWorldXY(tile.x, tile.y);\r\n\r\n tileWorldRect.left = point.x;\r\n tileWorldRect.top = point.y;\r\n\r\n tileWorldRect.right = tileWorldRect.left + tile.width * tilemapLayer.scaleX;\r\n tileWorldRect.bottom = tileWorldRect.top + tile.height * tilemapLayer.scaleY;\r\n\r\n if (\r\n TileIntersectsBody(tileWorldRect, body) &&\r\n (!processCallback || processCallback.call(callbackContext, sprite, tile)) &&\r\n ProcessTileCallbacks(tile, sprite) &&\r\n (overlapOnly || SeparateTile(i, body, tile, tileWorldRect, tilemapLayer, this.TILE_BIAS, isLayer)))\r\n {\r\n this._total++;\r\n\r\n collision = true;\r\n\r\n if (collideCallback)\r\n {\r\n collideCallback.call(callbackContext, sprite, tile);\r\n }\r\n\r\n if (overlapOnly && body.onOverlap)\r\n {\r\n this.emit(Events.TILE_OVERLAP, sprite, tile, body);\r\n }\r\n else if (body.onCollide)\r\n {\r\n this.emit(Events.TILE_COLLIDE, sprite, tile, body);\r\n }\r\n }\r\n }\r\n\r\n return collision;\r\n },\r\n\r\n /**\r\n * Internal helper for Group vs. Group collisions.\r\n * Please use Phaser.Physics.Arcade.World#collide instead.\r\n *\r\n * @method Phaser.Physics.Arcade.World#collideGroupVsGroup\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Group} group1 - The first object to check for collision.\r\n * @param {Phaser.GameObjects.Group} group2 - The second object to check for collision.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [collideCallback] - An optional callback function that is called if the objects collide.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [processCallback] - An optional callback function that lets you perform additional checks against the two objects if they collide. If this is set then `collideCallback` will only be called if this callback returns `true`.\r\n * @param {any} [callbackContext] - The context in which to run the callbacks.\r\n * @param {boolean} overlapOnly - Whether this is a collision or overlap check.\r\n *\r\n * @return {boolean} True if any objects overlap (with `overlapOnly`); or true if any overlapping objects were separated.\r\n */\r\n collideGroupVsGroup: function (group1, group2, collideCallback, processCallback, callbackContext, overlapOnly)\r\n {\r\n if (group1.getLength() === 0 || group2.getLength() === 0 || !this.canCollide(group1, group2))\r\n {\r\n return;\r\n }\r\n\r\n var children = group1.getChildren();\r\n \r\n for (var i = 0; i < children.length; i++)\r\n {\r\n this.collideSpriteVsGroup(children[i], group2, collideCallback, processCallback, callbackContext, overlapOnly);\r\n }\r\n },\r\n\r\n /**\r\n * Wrap an object's coordinates (or several objects' coordinates) within {@link Phaser.Physics.Arcade.World#bounds}.\r\n *\r\n * If the object is outside any boundary edge (left, top, right, bottom), it will be moved to the same offset from the opposite edge (the interior).\r\n *\r\n * @method Phaser.Physics.Arcade.World#wrap\r\n * @since 3.3.0\r\n *\r\n * @param {any} object - A Game Object, a Group, an object with `x` and `y` coordinates, or an array of such objects.\r\n * @param {number} [padding=0] - An amount added to each boundary edge during the operation.\r\n */\r\n wrap: function (object, padding)\r\n {\r\n if (object.body)\r\n {\r\n this.wrapObject(object, padding);\r\n }\r\n else if (object.getChildren)\r\n {\r\n this.wrapArray(object.getChildren(), padding);\r\n }\r\n else if (Array.isArray(object))\r\n {\r\n this.wrapArray(object, padding);\r\n }\r\n else\r\n {\r\n this.wrapObject(object, padding);\r\n }\r\n },\r\n\r\n /**\r\n * Wrap each object's coordinates within {@link Phaser.Physics.Arcade.World#bounds}.\r\n *\r\n * @method Phaser.Physics.Arcade.World#wrapArray\r\n * @since 3.3.0\r\n *\r\n * @param {Array.<*>} objects - An array of objects to be wrapped.\r\n * @param {number} [padding=0] - An amount added to the boundary.\r\n */\r\n wrapArray: function (objects, padding)\r\n {\r\n for (var i = 0; i < objects.length; i++)\r\n {\r\n this.wrapObject(objects[i], padding);\r\n }\r\n },\r\n\r\n /**\r\n * Wrap an object's coordinates within {@link Phaser.Physics.Arcade.World#bounds}.\r\n *\r\n * @method Phaser.Physics.Arcade.World#wrapObject\r\n * @since 3.3.0\r\n *\r\n * @param {*} object - A Game Object, a Physics Body, or any object with `x` and `y` coordinates\r\n * @param {number} [padding=0] - An amount added to the boundary.\r\n */\r\n wrapObject: function (object, padding)\r\n {\r\n if (padding === undefined) { padding = 0; }\r\n\r\n object.x = Wrap(object.x, this.bounds.left - padding, this.bounds.right + padding);\r\n object.y = Wrap(object.y, this.bounds.top - padding, this.bounds.bottom + padding);\r\n },\r\n\r\n /**\r\n * Shuts down the simulation, clearing physics data and removing listeners.\r\n *\r\n * @method Phaser.Physics.Arcade.World#shutdown\r\n * @since 3.0.0\r\n */\r\n shutdown: function ()\r\n {\r\n this.tree.clear();\r\n this.staticTree.clear();\r\n this.bodies.clear();\r\n this.staticBodies.clear();\r\n this.colliders.destroy();\r\n\r\n this.removeAllListeners();\r\n },\r\n\r\n /**\r\n * Shuts down the simulation and disconnects it from the current scene.\r\n *\r\n * @method Phaser.Physics.Arcade.World#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.shutdown();\r\n\r\n this.scene = null;\r\n\r\n if (this.debugGraphic)\r\n {\r\n this.debugGraphic.destroy();\r\n this.debugGraphic = null;\r\n }\r\n }\r\n\r\n});\r\n\r\nmodule.exports = World;\r\n\n\n/***/ }),\n\n/***/ 1093:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Provides methods used for setting the acceleration properties of an Arcade Physics Body.\r\n *\r\n * @namespace Phaser.Physics.Arcade.Components.Acceleration\r\n * @since 3.0.0\r\n */\r\nvar Acceleration = {\r\n\r\n /**\r\n * Sets the body's horizontal and vertical acceleration. If the vertical acceleration value is not provided, the vertical acceleration is set to the same value as the horizontal acceleration.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Acceleration#setAcceleration\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal acceleration\r\n * @param {number} [y=x] - The vertical acceleration\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setAcceleration: function (x, y)\r\n {\r\n this.body.acceleration.set(x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the body's horizontal acceleration.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Acceleration#setAccelerationX\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The horizontal acceleration\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setAccelerationX: function (value)\r\n {\r\n this.body.acceleration.x = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the body's vertical acceleration.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Acceleration#setAccelerationY\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The vertical acceleration\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setAccelerationY: function (value)\r\n {\r\n this.body.acceleration.y = value;\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Acceleration;\r\n\n\n/***/ }),\n\n/***/ 59023:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Provides methods used for setting the angular acceleration properties of an Arcade Physics Body.\r\n *\r\n * @namespace Phaser.Physics.Arcade.Components.Angular\r\n * @since 3.0.0\r\n */\r\nvar Angular = {\r\n\r\n /**\r\n * Sets the angular velocity of the body.\r\n *\r\n * In Arcade Physics, bodies cannot rotate. They are always axis-aligned.\r\n * However, they can have angular motion, which is passed on to the Game Object bound to the body,\r\n * causing them to visually rotate, even though the body remains axis-aligned.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Angular#setAngularVelocity\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The amount of angular velocity.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setAngularVelocity: function (value)\r\n {\r\n this.body.angularVelocity = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the angular acceleration of the body.\r\n *\r\n * In Arcade Physics, bodies cannot rotate. They are always axis-aligned.\r\n * However, they can have angular motion, which is passed on to the Game Object bound to the body,\r\n * causing them to visually rotate, even though the body remains axis-aligned.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Angular#setAngularAcceleration\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The amount of angular acceleration.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setAngularAcceleration: function (value)\r\n {\r\n this.body.angularAcceleration = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the angular drag of the body. Drag is applied to the current velocity, providing a form of deceleration.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Angular#setAngularDrag\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The amount of drag.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setAngularDrag: function (value)\r\n {\r\n this.body.angularDrag = value;\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Angular;\r\n\n\n/***/ }),\n\n/***/ 62069:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Provides methods used for setting the bounce properties of an Arcade Physics Body.\r\n *\r\n * @namespace Phaser.Physics.Arcade.Components.Bounce\r\n * @since 3.0.0\r\n */\r\nvar Bounce = {\r\n\r\n /**\r\n * Sets the bounce values of this body.\r\n *\r\n * Bounce is the amount of restitution, or elasticity, the body has when it collides with another object.\r\n * A value of 1 means that it will retain its full velocity after the rebound. A value of 0 means it will not rebound at all.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Bounce#setBounce\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The amount of horizontal bounce to apply on collision. A float, typically between 0 and 1.\r\n * @param {number} [y=x] - The amount of vertical bounce to apply on collision. A float, typically between 0 and 1.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setBounce: function (x, y)\r\n {\r\n this.body.bounce.set(x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the horizontal bounce value for this body.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Bounce#setBounceX\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The amount of horizontal bounce to apply on collision. A float, typically between 0 and 1.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setBounceX: function (value)\r\n {\r\n this.body.bounce.x = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the vertical bounce value for this body.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Bounce#setBounceY\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The amount of vertical bounce to apply on collision. A float, typically between 0 and 1.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setBounceY: function (value)\r\n {\r\n this.body.bounce.y = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets whether this Body collides with the world boundary.\r\n *\r\n * Optionally also sets the World Bounce values. If the `Body.worldBounce` is null, it's set to a new Phaser.Math.Vector2 first.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Bounce#setCollideWorldBounds\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [value=true] - `true` if this body should collide with the world bounds, otherwise `false`.\r\n * @param {number} [bounceX] - If given this will be replace the `worldBounce.x` value.\r\n * @param {number} [bounceY] - If given this will be replace the `worldBounce.y` value.\r\n * @param {boolean} [onWorldBounds] - If given this replaces the Body's `onWorldBounds` value.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setCollideWorldBounds: function (value, bounceX, bounceY, onWorldBounds)\r\n {\r\n this.body.setCollideWorldBounds(value, bounceX, bounceY, onWorldBounds);\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Bounce;\r\n\n\n/***/ }),\n\n/***/ 78389:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetCollidesWith = __webpack_require__(79599);\r\n\r\n/**\r\n * Provides methods used for setting the collision category and mask of an Arcade Physics Body.\r\n *\r\n * @namespace Phaser.Physics.Arcade.Components.Collision\r\n * @since 3.70.0\r\n */\r\nvar Collision = {\r\n\r\n /**\r\n * Sets the Collision Category that this Arcade Physics Body\r\n * will use in order to determine what it can collide with.\r\n *\r\n * It can only have one single category assigned to it.\r\n *\r\n * If you wish to reset the collision category and mask, call\r\n * the `resetCollisionCategory` method.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Collision#setCollisionCategory\r\n * @since 3.70.0\r\n *\r\n * @param {number} category - The collision category.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setCollisionCategory: function (category)\r\n {\r\n var target = (this.body) ? this.body : this;\r\n\r\n target.collisionCategory = category;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Checks to see if the given Collision Category will collide with\r\n * this Arcade Physics object or not.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Collision#willCollideWith\r\n * @since 3.70.0\r\n *\r\n * @param {number} category - Collision category value to test.\r\n *\r\n * @return {boolean} `true` if the given category will collide with this object, otherwise `false`.\r\n */\r\n willCollideWith: function (category)\r\n {\r\n var target = (this.body) ? this.body : this;\r\n\r\n return (target.collisionMask & category) !== 0;\r\n },\r\n\r\n /**\r\n * Adds the given Collision Category to the list of those that this\r\n * Arcade Physics Body will collide with.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Collision#addCollidesWith\r\n * @since 3.70.0\r\n *\r\n * @param {number} category - The collision category to add.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n addCollidesWith: function (category)\r\n {\r\n var target = (this.body) ? this.body : this;\r\n\r\n target.collisionMask = target.collisionMask | category;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes the given Collision Category from the list of those that this\r\n * Arcade Physics Body will collide with.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Collision#removeCollidesWith\r\n * @since 3.70.0\r\n *\r\n * @param {number} category - The collision category to add.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n removeCollidesWith: function (category)\r\n {\r\n var target = (this.body) ? this.body : this;\r\n\r\n target.collisionMask = target.collisionMask & ~category;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets all of the Collision Categories that this Arcade Physics Body\r\n * will collide with. You can either pass a single category value, or\r\n * an array of them.\r\n *\r\n * Calling this method will reset all of the collision categories,\r\n * so only those passed to this method are enabled.\r\n *\r\n * If you wish to add a new category to the existing mask, call\r\n * the `addCollisionCategory` method.\r\n *\r\n * If you wish to reset the collision category and mask, call\r\n * the `resetCollisionCategory` method.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Collision#setCollidesWith\r\n * @since 3.70.0\r\n *\r\n * @param {(number|number[])} categories - The collision category to collide with, or an array of them.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setCollidesWith: function (categories)\r\n {\r\n var target = (this.body) ? this.body : this;\r\n\r\n target.collisionMask = GetCollidesWith(categories);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resets the Collision Category and Mask back to the defaults,\r\n * which is to collide with everything.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Collision#resetCollisionCategory\r\n * @since 3.70.0\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n resetCollisionCategory: function ()\r\n {\r\n var target = (this.body) ? this.body : this;\r\n\r\n target.collisionCategory = 0x0001;\r\n target.collisionMask = 2147483647;\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Collision;\r\n\n\n/***/ }),\n\n/***/ 87118:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Provides methods used for setting the debug properties of an Arcade Physics Body.\r\n *\r\n * @namespace Phaser.Physics.Arcade.Components.Debug\r\n * @since 3.0.0\r\n */\r\nvar Debug = {\r\n\r\n /**\r\n * Sets the debug values of this body.\r\n *\r\n * Bodies will only draw their debug if debug has been enabled for Arcade Physics as a whole.\r\n * Note that there is a performance cost in drawing debug displays. It should never be used in production.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Debug#setDebug\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} showBody - Set to `true` to have this body render its outline to the debug display.\r\n * @param {boolean} showVelocity - Set to `true` to have this body render a velocity marker to the debug display.\r\n * @param {number} bodyColor - The color of the body outline when rendered to the debug display.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setDebug: function (showBody, showVelocity, bodyColor)\r\n {\r\n this.debugShowBody = showBody;\r\n this.debugShowVelocity = showVelocity;\r\n this.debugBodyColor = bodyColor;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the color of the body outline when it renders to the debug display.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Debug#setDebugBodyColor\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The color of the body outline when rendered to the debug display.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setDebugBodyColor: function (value)\r\n {\r\n this.body.debugBodyColor = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set to `true` to have this body render its outline to the debug display.\r\n *\r\n * @name Phaser.Physics.Arcade.Components.Debug#debugShowBody\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n debugShowBody: {\r\n\r\n get: function ()\r\n {\r\n return this.body.debugShowBody;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.body.debugShowBody = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Set to `true` to have this body render a velocity marker to the debug display.\r\n *\r\n * @name Phaser.Physics.Arcade.Components.Debug#debugShowVelocity\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n debugShowVelocity: {\r\n\r\n get: function ()\r\n {\r\n return this.body.debugShowVelocity;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.body.debugShowVelocity = value;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The color of the body outline when it renders to the debug display.\r\n *\r\n * @name Phaser.Physics.Arcade.Components.Debug#debugBodyColor\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n debugBodyColor: {\r\n\r\n get: function ()\r\n {\r\n return this.body.debugBodyColor;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.body.debugBodyColor = value;\r\n }\r\n\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Debug;\r\n\n\n/***/ }),\n\n/***/ 52819:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Provides methods used for setting the drag properties of an Arcade Physics Body.\r\n *\r\n * @namespace Phaser.Physics.Arcade.Components.Drag\r\n * @since 3.0.0\r\n */\r\nvar Drag = {\r\n\r\n /**\r\n * Sets the body's horizontal and vertical drag. If the vertical drag value is not provided, the vertical drag is set to the same value as the horizontal drag.\r\n *\r\n * Drag can be considered as a form of deceleration that will return the velocity of a body back to zero over time.\r\n * It is the absolute loss of velocity due to movement, in pixels per second squared.\r\n * The x and y components are applied separately.\r\n *\r\n * When `useDamping` is true, this is 1 minus the damping factor.\r\n * A value of 1 means the Body loses no velocity.\r\n * A value of 0.95 means the Body loses 5% of its velocity per step.\r\n * A value of 0.5 means the Body loses 50% of its velocity per step.\r\n *\r\n * Drag is applied only when `acceleration` is zero.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Drag#setDrag\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The amount of horizontal drag to apply.\r\n * @param {number} [y=x] - The amount of vertical drag to apply.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setDrag: function (x, y)\r\n {\r\n this.body.drag.set(x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the body's horizontal drag.\r\n *\r\n * Drag can be considered as a form of deceleration that will return the velocity of a body back to zero over time.\r\n * It is the absolute loss of velocity due to movement, in pixels per second squared.\r\n * The x and y components are applied separately.\r\n *\r\n * When `useDamping` is true, this is 1 minus the damping factor.\r\n * A value of 1 means the Body loses no velocity.\r\n * A value of 0.95 means the Body loses 5% of its velocity per step.\r\n * A value of 0.5 means the Body loses 50% of its velocity per step.\r\n *\r\n * Drag is applied only when `acceleration` is zero.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Drag#setDragX\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The amount of horizontal drag to apply.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setDragX: function (value)\r\n {\r\n this.body.drag.x = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the body's vertical drag.\r\n *\r\n * Drag can be considered as a form of deceleration that will return the velocity of a body back to zero over time.\r\n * It is the absolute loss of velocity due to movement, in pixels per second squared.\r\n * The x and y components are applied separately.\r\n *\r\n * When `useDamping` is true, this is 1 minus the damping factor.\r\n * A value of 1 means the Body loses no velocity.\r\n * A value of 0.95 means the Body loses 5% of its velocity per step.\r\n * A value of 0.5 means the Body loses 50% of its velocity per step.\r\n *\r\n * Drag is applied only when `acceleration` is zero.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Drag#setDragY\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The amount of vertical drag to apply.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setDragY: function (value)\r\n {\r\n this.body.drag.y = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * If this Body is using `drag` for deceleration this function controls how the drag is applied.\r\n * If set to `true` drag will use a damping effect rather than a linear approach. If you are\r\n * creating a game where the Body moves freely at any angle (i.e. like the way the ship moves in\r\n * the game Asteroids) then you will get a far smoother and more visually correct deceleration\r\n * by using damping, avoiding the axis-drift that is prone with linear deceleration.\r\n *\r\n * If you enable this property then you should use far smaller `drag` values than with linear, as\r\n * they are used as a multiplier on the velocity. Values such as 0.95 will give a nice slow\r\n * deceleration, where-as smaller values, such as 0.5 will stop an object almost immediately.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Drag#setDamping\r\n * @since 3.10.0\r\n *\r\n * @param {boolean} value - `true` to use damping for deceleration, or `false` to use linear deceleration.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setDamping: function (value)\r\n {\r\n this.body.useDamping = value;\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Drag;\r\n\n\n/***/ }),\n\n/***/ 4074:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Provides methods used for setting the enable properties of an Arcade Physics Body.\r\n *\r\n * @namespace Phaser.Physics.Arcade.Components.Enable\r\n * @since 3.0.0\r\n */\r\nvar Enable = {\r\n\r\n /**\r\n * Sets whether this Body should calculate its velocity based on its change in\r\n * position every frame. The default, which is to not do this, means that you\r\n * make this Body move by setting the velocity directly. However, if you are\r\n * trying to move this Body via a Tween, or have it follow a Path, then you\r\n * should enable this instead. This will allow it to still collide with other\r\n * bodies, something that isn't possible if you're just changing its position directly.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Enable#setDirectControl\r\n * @since 3.70.0\r\n *\r\n * @param {boolean} [value=true] - `true` if the Body calculate velocity based on changes in position, otherwise `false`.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setDirectControl: function (value)\r\n {\r\n this.body.setDirectControl(value);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Enables this Game Object's Body.\r\n * If you reset the Body you must also pass `x` and `y`.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Enable#enableBody\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [reset] - Also reset the Body and place the Game Object at (x, y).\r\n * @param {number} [x] - The horizontal position to place the Game Object, if `reset` is true.\r\n * @param {number} [y] - The horizontal position to place the Game Object, if `reset` is true.\r\n * @param {boolean} [enableGameObject] - Also set this Game Object's `active` to true.\r\n * @param {boolean} [showGameObject] - Also set this Game Object's `visible` to true.\r\n *\r\n * @return {this} This Game Object.\r\n *\r\n * @see Phaser.Physics.Arcade.Body#enable\r\n * @see Phaser.Physics.Arcade.StaticBody#enable\r\n * @see Phaser.Physics.Arcade.Body#reset\r\n * @see Phaser.Physics.Arcade.StaticBody#reset\r\n * @see Phaser.GameObjects.GameObject#active\r\n * @see Phaser.GameObjects.GameObject#visible\r\n */\r\n enableBody: function (reset, x, y, enableGameObject, showGameObject)\r\n {\r\n if (reset)\r\n {\r\n this.body.reset(x, y);\r\n }\r\n\r\n if (enableGameObject)\r\n {\r\n this.body.gameObject.active = true;\r\n }\r\n\r\n if (showGameObject)\r\n {\r\n this.body.gameObject.visible = true;\r\n }\r\n\r\n this.body.enable = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Stops and disables this Game Object's Body.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Enable#disableBody\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [disableGameObject=false] - Also set this Game Object's `active` to false.\r\n * @param {boolean} [hideGameObject=false] - Also set this Game Object's `visible` to false.\r\n *\r\n * @return {this} This Game Object.\r\n *\r\n * @see Phaser.Physics.Arcade.Body#enable\r\n * @see Phaser.Physics.Arcade.StaticBody#enable\r\n * @see Phaser.GameObjects.GameObject#active\r\n * @see Phaser.GameObjects.GameObject#visible\r\n */\r\n disableBody: function (disableGameObject, hideGameObject)\r\n {\r\n if (disableGameObject === undefined) { disableGameObject = false; }\r\n if (hideGameObject === undefined) { hideGameObject = false; }\r\n\r\n this.body.stop();\r\n\r\n this.body.enable = false;\r\n\r\n if (disableGameObject)\r\n {\r\n this.body.gameObject.active = false;\r\n }\r\n\r\n if (hideGameObject)\r\n {\r\n this.body.gameObject.visible = false;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Syncs the Body's position and size with its parent Game Object.\r\n * You don't need to call this for Dynamic Bodies, as it happens automatically.\r\n * But for Static bodies it's a useful way of modifying the position of a Static Body\r\n * in the Physics World, based on its Game Object.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Enable#refreshBody\r\n * @since 3.1.0\r\n *\r\n * @return {this} This Game Object.\r\n *\r\n * @see Phaser.Physics.Arcade.StaticBody#updateFromGameObject\r\n */\r\n refreshBody: function ()\r\n {\r\n this.body.updateFromGameObject();\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Enable;\r\n\n\n/***/ }),\n\n/***/ 40831:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Methods for setting the friction of an Arcade Physics Body.\r\n *\r\n * In Arcade Physics, friction is a special case of motion transfer from an \"immovable\" body to a riding body.\r\n *\r\n * @namespace Phaser.Physics.Arcade.Components.Friction\r\n * @since 3.0.0\r\n *\r\n * @see Phaser.Physics.Arcade.Body#friction\r\n */\r\nvar Friction = {\r\n\r\n /**\r\n * Sets the friction of this game object's physics body.\r\n * In Arcade Physics, friction is a special case of motion transfer from an \"immovable\" body to a riding body.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Friction#setFriction\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The amount of horizontal friction to apply, [0, 1].\r\n * @param {number} [y=x] - The amount of vertical friction to apply, [0, 1].\r\n *\r\n * @return {this} This Game Object.\r\n *\r\n * @see Phaser.Physics.Arcade.Body#friction\r\n */\r\n setFriction: function (x, y)\r\n {\r\n this.body.friction.set(x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the horizontal friction of this game object's physics body.\r\n * This can move a riding body horizontally when it collides with this one on the vertical axis.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Friction#setFrictionX\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The amount of friction to apply, [0, 1].\r\n *\r\n * @return {this} This Game Object.\r\n *\r\n * @see Phaser.Physics.Arcade.Body#friction\r\n */\r\n setFrictionX: function (x)\r\n {\r\n this.body.friction.x = x;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the vertical friction of this game object's physics body.\r\n * This can move a riding body vertically when it collides with this one on the horizontal axis.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Friction#setFrictionY\r\n * @since 3.0.0\r\n *\r\n * @param {number} y - The amount of friction to apply, [0, 1].\r\n *\r\n * @return {this} This Game Object.\r\n *\r\n * @see Phaser.Physics.Arcade.Body#friction\r\n */\r\n setFrictionY: function (y)\r\n {\r\n this.body.friction.y = y;\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Friction;\r\n\n\n/***/ }),\n\n/***/ 26775:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Provides methods for setting the gravity properties of an Arcade Physics Game Object.\r\n * Should be applied as a mixin and not used directly.\r\n *\r\n * @namespace Phaser.Physics.Arcade.Components.Gravity\r\n * @since 3.0.0\r\n */\r\nvar Gravity = {\r\n\r\n /**\r\n * Set the X and Y values of the gravitational pull to act upon this Arcade Physics Game Object. Values can be positive or negative. Larger values result in a stronger effect.\r\n *\r\n * If only one value is provided, this value will be used for both the X and Y axis.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Gravity#setGravity\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The gravitational force to be applied to the X-axis.\r\n * @param {number} [y=x] - The gravitational force to be applied to the Y-axis. If this is not specified, the X value will be used.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setGravity: function (x, y)\r\n {\r\n this.body.gravity.set(x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the gravitational force to be applied to the X axis. Value can be positive or negative. Larger values result in a stronger effect.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Gravity#setGravityX\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The gravitational force to be applied to the X-axis.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setGravityX: function (x)\r\n {\r\n this.body.gravity.x = x;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the gravitational force to be applied to the Y axis. Value can be positive or negative. Larger values result in a stronger effect.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Gravity#setGravityY\r\n * @since 3.0.0\r\n *\r\n * @param {number} y - The gravitational force to be applied to the Y-axis.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setGravityY: function (y)\r\n {\r\n this.body.gravity.y = y;\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Gravity;\r\n\n\n/***/ }),\n\n/***/ 9437:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Provides methods used for setting the immovable properties of an Arcade Physics Body.\r\n *\r\n * @namespace Phaser.Physics.Arcade.Components.Immovable\r\n * @since 3.0.0\r\n */\r\nvar Immovable = {\r\n\r\n /**\r\n * Sets if this Body can be separated during collisions with other bodies.\r\n *\r\n * When a body is immovable it means it won't move at all, not even to separate it from collision\r\n * overlap. If you just wish to prevent a body from being knocked around by other bodies, see\r\n * the `setPushable` method instead.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Immovable#setImmovable\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [value=true] - Sets if this body will be separated during collisions with other bodies.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setImmovable: function (value)\r\n {\r\n if (value === undefined) { value = true; }\r\n\r\n this.body.immovable = value;\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Immovable;\r\n\n\n/***/ }),\n\n/***/ 30621:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Provides methods used for setting the mass properties of an Arcade Physics Body.\r\n *\r\n * @namespace Phaser.Physics.Arcade.Components.Mass\r\n * @since 3.0.0\r\n */\r\nvar Mass = {\r\n\r\n /**\r\n * Sets the mass of the physics body\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Mass#setMass\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - New value for the mass of the body.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setMass: function (value)\r\n {\r\n this.body.mass = value;\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Mass;\r\n\n\n/***/ }),\n\n/***/ 72441:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\nvar OverlapRect = __webpack_require__(47956);\r\nvar Circle = __webpack_require__(96503);\r\nvar CircleToCircle = __webpack_require__(2044);\r\nvar CircleToRectangle = __webpack_require__(81491);\r\n\r\n/**\r\n * This method will search the given circular area and return an array of all physics bodies that\r\n * overlap with it. It can return either Dynamic, Static bodies or a mixture of both.\r\n *\r\n * A body only has to intersect with the search area to be considered, it doesn't have to be fully\r\n * contained within it.\r\n *\r\n * If Arcade Physics is set to use the RTree (which it is by default) then the search is rather fast,\r\n * otherwise the search is O(N) for Dynamic Bodies.\r\n *\r\n * @function Phaser.Physics.Arcade.Components.OverlapCirc\r\n * @since 3.21.0\r\n *\r\n * @param {number} x - The x coordinate of the center of the area to search within.\r\n * @param {number} y - The y coordinate of the center of the area to search within.\r\n * @param {number} radius - The radius of the area to search within.\r\n * @param {boolean} [includeDynamic=true] - Should the search include Dynamic Bodies?\r\n * @param {boolean} [includeStatic=false] - Should the search include Static Bodies?\r\n *\r\n * @return {(Phaser.Physics.Arcade.Body[]|Phaser.Physics.Arcade.StaticBody[])} An array of bodies that overlap with the given area.\r\n */\r\nvar OverlapCirc = function (world, x, y, radius, includeDynamic, includeStatic)\r\n{\r\n var bodiesInRect = OverlapRect(world, x - radius, y - radius, 2 * radius, 2 * radius, includeDynamic, includeStatic);\r\n\r\n if (bodiesInRect.length === 0)\r\n {\r\n return bodiesInRect;\r\n }\r\n\r\n var area = new Circle(x, y, radius);\r\n var circFromBody = new Circle();\r\n var bodiesInArea = [];\r\n\r\n for (var i = 0; i < bodiesInRect.length; i++)\r\n {\r\n var body = bodiesInRect[i];\r\n\r\n if (body.isCircle)\r\n {\r\n circFromBody.setTo(body.center.x, body.center.y, body.halfWidth);\r\n\r\n if (CircleToCircle(area, circFromBody))\r\n {\r\n bodiesInArea.push(body);\r\n }\r\n }\r\n else if (CircleToRectangle(area, body))\r\n {\r\n bodiesInArea.push(body);\r\n }\r\n }\r\n\r\n return bodiesInArea;\r\n};\r\n\r\nmodule.exports = OverlapCirc;\r\n\n\n/***/ }),\n\n/***/ 47956:\n/***/ ((module) => {\n\n/**\r\n * This method will search the given rectangular area and return an array of all physics bodies that\r\n * overlap with it. It can return either Dynamic, Static bodies or a mixture of both.\r\n * \r\n * A body only has to intersect with the search area to be considered, it doesn't have to be fully\r\n * contained within it.\r\n * \r\n * If Arcade Physics is set to use the RTree (which it is by default) then the search for is extremely fast,\r\n * otherwise the search is O(N) for Dynamic Bodies.\r\n *\r\n * @function Phaser.Physics.Arcade.Components.OverlapRect\r\n * @since 3.17.0\r\n *\r\n * @param {number} x - The top-left x coordinate of the area to search within.\r\n * @param {number} y - The top-left y coordinate of the area to search within.\r\n * @param {number} width - The width of the area to search within.\r\n * @param {number} height - The height of the area to search within.\r\n * @param {boolean} [includeDynamic=true] - Should the search include Dynamic Bodies?\r\n * @param {boolean} [includeStatic=false] - Should the search include Static Bodies?\r\n *\r\n * @return {(Phaser.Physics.Arcade.Body[]|Phaser.Physics.Arcade.StaticBody[])} An array of bodies that overlap with the given area.\r\n */\r\nvar OverlapRect = function (world, x, y, width, height, includeDynamic, includeStatic)\r\n{\r\n if (includeDynamic === undefined) { includeDynamic = true; }\r\n if (includeStatic === undefined) { includeStatic = false; }\r\n\r\n var dynamicBodies = [];\r\n var staticBodies = [];\r\n\r\n var minMax = world.treeMinMax;\r\n\r\n minMax.minX = x;\r\n minMax.minY = y;\r\n minMax.maxX = x + width;\r\n minMax.maxY = y + height;\r\n\r\n if (includeStatic)\r\n {\r\n staticBodies = world.staticTree.search(minMax);\r\n }\r\n\r\n if (includeDynamic && world.useTree)\r\n {\r\n dynamicBodies = world.tree.search(minMax);\r\n }\r\n else if (includeDynamic)\r\n {\r\n var bodies = world.bodies;\r\n\r\n var fakeBody =\r\n {\r\n position: {\r\n x: x,\r\n y: y\r\n },\r\n left: x,\r\n top: y,\r\n right: x + width,\r\n bottom: y + height,\r\n isCircle: false\r\n };\r\n\r\n var intersects = world.intersects;\r\n\r\n bodies.iterate(function (target)\r\n {\r\n if (intersects(target, fakeBody))\r\n {\r\n dynamicBodies.push(target);\r\n }\r\n\r\n });\r\n }\r\n\r\n return staticBodies.concat(dynamicBodies);\r\n};\r\n\r\nmodule.exports = OverlapRect;\r\n\n\n/***/ }),\n\n/***/ 62121:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Provides methods used for setting the pushable property of an Arcade Physics Body.\r\n *\r\n * @namespace Phaser.Physics.Arcade.Components.Pushable\r\n * @since 3.50.0\r\n */\r\nvar Pushable = {\r\n\r\n /**\r\n * Sets if this Body can be pushed by another Body.\r\n *\r\n * A body that cannot be pushed will reflect back all of the velocity it is given to the\r\n * colliding body. If that body is also not pushable, then the separation will be split\r\n * between them evenly.\r\n *\r\n * If you want your body to never move or seperate at all, see the `setImmovable` method.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Pushable#setPushable\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [value=true] - Sets if this body can be pushed by collisions with another Body.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setPushable: function (value)\r\n {\r\n if (value === undefined) { value = true; }\r\n\r\n this.body.pushable = value;\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Pushable;\r\n\n\n/***/ }),\n\n/***/ 29384:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Provides methods for setting the size of an Arcade Physics Game Object.\r\n * Should be applied as a mixin and not used directly.\r\n *\r\n * @namespace Phaser.Physics.Arcade.Components.Size\r\n * @since 3.0.0\r\n */\r\nvar Size = {\r\n\r\n /**\r\n * Sets the body offset. This allows you to adjust the difference between the center of the body\r\n * and the x and y coordinates of the parent Game Object.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Size#setOffset\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The amount to offset the body from the parent Game Object along the x-axis.\r\n * @param {number} [y=x] - The amount to offset the body from the parent Game Object along the y-axis. Defaults to the value given for the x-axis.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setOffset: function (x, y)\r\n {\r\n this.body.setOffset(x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * **DEPRECATED**: Please use `setBodySize` instead.\r\n *\r\n * Sets the size of this physics body. Setting the size does not adjust the dimensions of the parent Game Object.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Size#setSize\r\n * @since 3.0.0\r\n * @deprecated\r\n *\r\n * @param {number} width - The new width of the physics body, in pixels.\r\n * @param {number} height - The new height of the physics body, in pixels.\r\n * @param {boolean} [center=true] - Should the body be re-positioned so its center aligns with the parent Game Object?\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setSize: function (width, height, center)\r\n {\r\n this.body.setSize(width, height, center);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the size of this physics body. Setting the size does not adjust the dimensions of the parent Game Object.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Size#setBodySize\r\n * @since 3.24.0\r\n *\r\n * @param {number} width - The new width of the physics body, in pixels.\r\n * @param {number} height - The new height of the physics body, in pixels.\r\n * @param {boolean} [center=true] - Should the body be re-positioned so its center aligns with the parent Game Object?\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setBodySize: function (width, height, center)\r\n {\r\n this.body.setSize(width, height, center);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets this physics body to use a circle for collision instead of a rectangle.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Size#setCircle\r\n * @since 3.0.0\r\n *\r\n * @param {number} radius - The radius of the physics body, in pixels.\r\n * @param {number} [offsetX] - The amount to offset the body from the parent Game Object along the x-axis.\r\n * @param {number} [offsetY] - The amount to offset the body from the parent Game Object along the y-axis.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setCircle: function (radius, offsetX, offsetY)\r\n {\r\n this.body.setCircle(radius, offsetX, offsetY);\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Size;\r\n\n\n/***/ }),\n\n/***/ 15098:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Provides methods for modifying the velocity of an Arcade Physics body.\r\n *\r\n * Should be applied as a mixin and not used directly.\r\n *\r\n * @namespace Phaser.Physics.Arcade.Components.Velocity\r\n * @since 3.0.0\r\n */\r\nvar Velocity = {\r\n\r\n /**\r\n * Sets the velocity of the Body.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Velocity#setVelocity\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal velocity of the body, in pixels per second. Positive values move the body to the right, while negative values move it to the left.\r\n * @param {number} [y=x] - The vertical velocity of the body, in pixels per second. Positive values move the body down, while negative values move it up.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setVelocity: function (x, y)\r\n {\r\n this.body.setVelocity(x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the horizontal component of the body's velocity.\r\n *\r\n * Positive values move the body to the right, while negative values move it to the left.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Velocity#setVelocityX\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The new horizontal velocity, in pixels per second.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setVelocityX: function (x)\r\n {\r\n this.body.setVelocityX(x);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the vertical component of the body's velocity.\r\n *\r\n * Positive values move the body down, while negative values move it up.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Velocity#setVelocityY\r\n * @since 3.0.0\r\n *\r\n * @param {number} y - The new vertical velocity, in pixels per second.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setVelocityY: function (y)\r\n {\r\n this.body.setVelocityY(y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the maximum velocity of the body.\r\n *\r\n * @method Phaser.Physics.Arcade.Components.Velocity#setMaxVelocity\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The new maximum horizontal velocity, in pixels per second.\r\n * @param {number} [y=x] - The new maximum vertical velocity, in pixels per second.\r\n *\r\n * @return {this} This Game Object.\r\n */\r\n setMaxVelocity: function (x, y)\r\n {\r\n this.body.maxVelocity.set(x, y);\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Velocity;\r\n\n\n/***/ }),\n\n/***/ 92209:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Physics.Arcade.Components\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Acceleration: __webpack_require__(1093),\r\n Angular: __webpack_require__(59023),\r\n Bounce: __webpack_require__(62069),\r\n Collision: __webpack_require__(78389),\r\n Debug: __webpack_require__(87118),\r\n Drag: __webpack_require__(52819),\r\n Enable: __webpack_require__(4074),\r\n Friction: __webpack_require__(40831),\r\n Gravity: __webpack_require__(26775),\r\n Immovable: __webpack_require__(9437),\r\n Mass: __webpack_require__(30621),\r\n OverlapCirc: __webpack_require__(72441),\r\n OverlapRect: __webpack_require__(47956),\r\n Pushable: __webpack_require__(62121),\r\n Size: __webpack_require__(29384),\r\n Velocity: __webpack_require__(15098)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 37747:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Arcade Physics consts.\r\n *\r\n * @ignore\r\n */\r\n\r\nvar CONST = {\r\n\r\n /**\r\n * Dynamic Body.\r\n *\r\n * @name Phaser.Physics.Arcade.DYNAMIC_BODY\r\n * @readonly\r\n * @type {number}\r\n * @since 3.0.0\r\n *\r\n * @see Phaser.Physics.Arcade.Body#physicsType\r\n * @see Phaser.Physics.Arcade.Group#physicsType\r\n */\r\n DYNAMIC_BODY: 0,\r\n\r\n /**\r\n * Static Body.\r\n *\r\n * @name Phaser.Physics.Arcade.STATIC_BODY\r\n * @readonly\r\n * @type {number}\r\n * @since 3.0.0\r\n *\r\n * @see Phaser.Physics.Arcade.Body#physicsType\r\n * @see Phaser.Physics.Arcade.StaticBody#physicsType\r\n */\r\n STATIC_BODY: 1,\r\n\r\n /**\r\n * Arcade Physics Group containing Dynamic Bodies.\r\n *\r\n * @name Phaser.Physics.Arcade.GROUP\r\n * @readonly\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n GROUP: 2,\r\n\r\n /**\r\n * A Tilemap Layer.\r\n *\r\n * @name Phaser.Physics.Arcade.TILEMAPLAYER\r\n * @readonly\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n TILEMAPLAYER: 3,\r\n\r\n /**\r\n * Facing no direction (initial value).\r\n *\r\n * @name Phaser.Physics.Arcade.FACING_NONE\r\n * @readonly\r\n * @type {number}\r\n * @since 3.0.0\r\n *\r\n * @see Phaser.Physics.Arcade.Body#facing\r\n */\r\n FACING_NONE: 10,\r\n\r\n /**\r\n * Facing up.\r\n *\r\n * @name Phaser.Physics.Arcade.FACING_UP\r\n * @readonly\r\n * @type {number}\r\n * @since 3.0.0\r\n *\r\n * @see Phaser.Physics.Arcade.Body#facing\r\n */\r\n FACING_UP: 11,\r\n\r\n /**\r\n * Facing down.\r\n *\r\n * @name Phaser.Physics.Arcade.FACING_DOWN\r\n * @readonly\r\n * @type {number}\r\n * @since 3.0.0\r\n *\r\n * @see Phaser.Physics.Arcade.Body#facing\r\n */\r\n FACING_DOWN: 12,\r\n\r\n /**\r\n * Facing left.\r\n *\r\n * @name Phaser.Physics.Arcade.FACING_LEFT\r\n * @readonly\r\n * @type {number}\r\n * @since 3.0.0\r\n *\r\n * @see Phaser.Physics.Arcade.Body#facing\r\n */\r\n FACING_LEFT: 13,\r\n\r\n /**\r\n * Facing right.\r\n *\r\n * @name Phaser.Physics.Arcade.FACING_RIGHT\r\n * @readonly\r\n * @type {number}\r\n * @since 3.0.0\r\n *\r\n * @see Phaser.Physics.Arcade.Body#facing\r\n */\r\n FACING_RIGHT: 14\r\n\r\n};\r\n\r\nmodule.exports = CONST;\r\n\n\n/***/ }),\n\n/***/ 20009:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Arcade Physics World Collide Event.\r\n *\r\n * This event is dispatched by an Arcade Physics World instance if two bodies collide _and_ at least\r\n * one of them has their [onCollide]{@link Phaser.Physics.Arcade.Body#onCollide} property set to `true`.\r\n *\r\n * It provides an alternative means to handling collide events rather than using the callback approach.\r\n *\r\n * Listen to it from a Scene using: `this.physics.world.on('collide', listener)`.\r\n *\r\n * Please note that 'collide' and 'overlap' are two different things in Arcade Physics.\r\n *\r\n * @event Phaser.Physics.Arcade.Events#COLLIDE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject1 - The first Game Object involved in the collision. This is the parent of `body1`.\r\n * @param {Phaser.GameObjects.GameObject} gameObject2 - The second Game Object involved in the collision. This is the parent of `body2`.\r\n * @param {Phaser.Physics.Arcade.Body|Phaser.Physics.Arcade.StaticBody} body1 - The first Physics Body involved in the collision.\r\n * @param {Phaser.Physics.Arcade.Body|Phaser.Physics.Arcade.StaticBody} body2 - The second Physics Body involved in the collision.\r\n */\r\nmodule.exports = 'collide';\r\n\n\n/***/ }),\n\n/***/ 36768:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Arcade Physics World Overlap Event.\r\n *\r\n * This event is dispatched by an Arcade Physics World instance if two bodies overlap _and_ at least\r\n * one of them has their [onOverlap]{@link Phaser.Physics.Arcade.Body#onOverlap} property set to `true`.\r\n *\r\n * It provides an alternative means to handling overlap events rather than using the callback approach.\r\n *\r\n * Listen to it from a Scene using: `this.physics.world.on('overlap', listener)`.\r\n *\r\n * Please note that 'collide' and 'overlap' are two different things in Arcade Physics.\r\n *\r\n * @event Phaser.Physics.Arcade.Events#OVERLAP\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject1 - The first Game Object involved in the overlap. This is the parent of `body1`.\r\n * @param {Phaser.GameObjects.GameObject} gameObject2 - The second Game Object involved in the overlap. This is the parent of `body2`.\r\n * @param {Phaser.Physics.Arcade.Body|Phaser.Physics.Arcade.StaticBody} body1 - The first Physics Body involved in the overlap.\r\n * @param {Phaser.Physics.Arcade.Body|Phaser.Physics.Arcade.StaticBody} body2 - The second Physics Body involved in the overlap.\r\n */\r\nmodule.exports = 'overlap';\r\n\n\n/***/ }),\n\n/***/ 60473:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Arcade Physics World Pause Event.\r\n *\r\n * This event is dispatched by an Arcade Physics World instance when it is paused.\r\n *\r\n * Listen to it from a Scene using: `this.physics.world.on('pause', listener)`.\r\n *\r\n * @event Phaser.Physics.Arcade.Events#PAUSE\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\nmodule.exports = 'pause';\r\n\n\n/***/ }),\n\n/***/ 89954:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Arcade Physics World Resume Event.\r\n *\r\n * This event is dispatched by an Arcade Physics World instance when it resumes from a paused state.\r\n *\r\n * Listen to it from a Scene using: `this.physics.world.on('resume', listener)`.\r\n *\r\n * @event Phaser.Physics.Arcade.Events#RESUME\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\nmodule.exports = 'resume';\r\n\n\n/***/ }),\n\n/***/ 61804:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Arcade Physics Tile Collide Event.\r\n *\r\n * This event is dispatched by an Arcade Physics World instance if a body collides with a Tile _and_\r\n * has its [onCollide]{@link Phaser.Physics.Arcade.Body#onCollide} property set to `true`.\r\n *\r\n * It provides an alternative means to handling collide events rather than using the callback approach.\r\n *\r\n * Listen to it from a Scene using: `this.physics.world.on('tilecollide', listener)`.\r\n *\r\n * Please note that 'collide' and 'overlap' are two different things in Arcade Physics.\r\n *\r\n * @event Phaser.Physics.Arcade.Events#TILE_COLLIDE\r\n * @type {string}\r\n * @since 3.16.1\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object involved in the collision. This is the parent of `body`.\r\n * @param {Phaser.Tilemaps.Tile} tile - The tile the body collided with.\r\n * @param {Phaser.Physics.Arcade.Body} body - The Arcade Physics Body of the Game Object involved in the collision.\r\n */\r\nmodule.exports = 'tilecollide';\r\n\n\n/***/ }),\n\n/***/ 7161:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Arcade Physics Tile Overlap Event.\r\n *\r\n * This event is dispatched by an Arcade Physics World instance if a body overlaps with a Tile _and_\r\n * has its [onOverlap]{@link Phaser.Physics.Arcade.Body#onOverlap} property set to `true`.\r\n *\r\n * It provides an alternative means to handling overlap events rather than using the callback approach.\r\n *\r\n * Listen to it from a Scene using: `this.physics.world.on('tileoverlap', listener)`.\r\n *\r\n * Please note that 'collide' and 'overlap' are two different things in Arcade Physics.\r\n *\r\n * @event Phaser.Physics.Arcade.Events#TILE_OVERLAP\r\n * @type {string}\r\n * @since 3.16.1\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object involved in the overlap. This is the parent of `body`.\r\n * @param {Phaser.Tilemaps.Tile} tile - The tile the body overlapped.\r\n * @param {Phaser.Physics.Arcade.Body} body - The Arcade Physics Body of the Game Object involved in the overlap.\r\n */\r\nmodule.exports = 'tileoverlap';\r\n\n\n/***/ }),\n\n/***/ 34689:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Arcade Physics World Bounds Event.\r\n *\r\n * This event is dispatched by an Arcade Physics World instance if a body makes contact with the world bounds _and_\r\n * it has its [onWorldBounds]{@link Phaser.Physics.Arcade.Body#onWorldBounds} property set to `true`.\r\n *\r\n * It provides an alternative means to handling collide events rather than using the callback approach.\r\n *\r\n * Listen to it from a Scene using: `this.physics.world.on('worldbounds', listener)`.\r\n *\r\n * @event Phaser.Physics.Arcade.Events#WORLD_BOUNDS\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Arcade.Body} body - The Arcade Physics Body that hit the world bounds.\r\n * @param {boolean} up - Is the Body blocked up? I.e. collided with the top of the world bounds.\r\n * @param {boolean} down - Is the Body blocked down? I.e. collided with the bottom of the world bounds.\r\n * @param {boolean} left - Is the Body blocked left? I.e. collided with the left of the world bounds.\r\n * @param {boolean} right - Is the Body blocked right? I.e. collided with the right of the world bounds.\r\n */\r\nmodule.exports = 'worldbounds';\r\n\n\n/***/ }),\n\n/***/ 16006:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Arcade Physics World Step Event.\r\n *\r\n * This event is dispatched by an Arcade Physics World instance whenever a physics step is run.\r\n * It is emitted _after_ the bodies and colliders have been updated.\r\n *\r\n * In high framerate settings this can be multiple times per game frame.\r\n *\r\n * Listen to it from a Scene using: `this.physics.world.on('worldstep', listener)`.\r\n *\r\n * @event Phaser.Physics.Arcade.Events#WORLD_STEP\r\n * @type {string}\r\n * @since 3.18.0\r\n *\r\n * @param {number} delta - The delta time amount of this step, in seconds.\r\n */\r\nmodule.exports = 'worldstep';\r\n\n\n/***/ }),\n\n/***/ 63012:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Physics.Arcade.Events\r\n */\r\n\r\nmodule.exports = {\r\n\r\n COLLIDE: __webpack_require__(20009),\r\n OVERLAP: __webpack_require__(36768),\r\n PAUSE: __webpack_require__(60473),\r\n RESUME: __webpack_require__(89954),\r\n TILE_COLLIDE: __webpack_require__(61804),\r\n TILE_OVERLAP: __webpack_require__(7161),\r\n WORLD_BOUNDS: __webpack_require__(34689),\r\n WORLD_STEP: __webpack_require__(16006)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 27064:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(37747);\r\nvar Extend = __webpack_require__(79291);\r\n\r\n/**\r\n * @namespace Phaser.Physics.Arcade\r\n */\r\n\r\nvar Arcade = {\r\n\r\n ArcadePhysics: __webpack_require__(86689),\r\n Body: __webpack_require__(37742),\r\n Collider: __webpack_require__(79342),\r\n Components: __webpack_require__(92209),\r\n Events: __webpack_require__(63012),\r\n Factory: __webpack_require__(66022),\r\n GetCollidesWith: __webpack_require__(79599),\r\n GetOverlapX: __webpack_require__(64897),\r\n GetOverlapY: __webpack_require__(45170),\r\n SeparateX: __webpack_require__(14087),\r\n SeparateY: __webpack_require__(89936),\r\n Group: __webpack_require__(60758),\r\n Image: __webpack_require__(71289),\r\n Sprite: __webpack_require__(13759),\r\n StaticBody: __webpack_require__(72624),\r\n StaticGroup: __webpack_require__(71464),\r\n Tilemap: __webpack_require__(55173),\r\n World: __webpack_require__(82248)\r\n\r\n};\r\n\r\n// Merge in the consts\r\nArcade = Extend(false, Arcade, CONST);\r\n\r\nmodule.exports = Arcade;\r\n\n\n/***/ }),\n\n/***/ 96602:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * A function to process the collision callbacks between a single tile and an Arcade Physics enabled Game Object.\r\n *\r\n * @function Phaser.Physics.Arcade.Tilemap.ProcessTileCallbacks\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Tilemaps.Tile} tile - The Tile to process.\r\n * @param {Phaser.GameObjects.Sprite} sprite - The Game Object to process with the Tile.\r\n *\r\n * @return {boolean} The result of the callback, `true` for further processing, or `false` to skip this pair.\r\n */\r\nvar ProcessTileCallbacks = function (tile, sprite)\r\n{\r\n // Tile callbacks take priority over layer level callbacks\r\n if (tile.collisionCallback)\r\n {\r\n return !tile.collisionCallback.call(tile.collisionCallbackContext, sprite, tile);\r\n }\r\n else if (tile.layer.callbacks[tile.index])\r\n {\r\n return !tile.layer.callbacks[tile.index].callback.call(\r\n tile.layer.callbacks[tile.index].callbackContext, sprite, tile\r\n );\r\n }\r\n\r\n return true;\r\n};\r\n\r\nmodule.exports = ProcessTileCallbacks;\r\n\n\n/***/ }),\n\n/***/ 36294:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Internal function to process the separation of a physics body from a tile.\r\n *\r\n * @function Phaser.Physics.Arcade.Tilemap.ProcessTileSeparationX\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Arcade.Body} body - The Body object to separate.\r\n * @param {number} x - The x separation amount.\r\n */\r\nvar ProcessTileSeparationX = function (body, x)\r\n{\r\n if (x < 0)\r\n {\r\n body.blocked.none = false;\r\n body.blocked.left = true;\r\n }\r\n else if (x > 0)\r\n {\r\n body.blocked.none = false;\r\n body.blocked.right = true;\r\n }\r\n\r\n body.position.x -= x;\r\n body.updateCenter();\r\n\r\n if (body.bounce.x === 0)\r\n {\r\n body.velocity.x = 0;\r\n }\r\n else\r\n {\r\n body.velocity.x = -body.velocity.x * body.bounce.x;\r\n }\r\n};\r\n\r\nmodule.exports = ProcessTileSeparationX;\r\n\n\n/***/ }),\n\n/***/ 67013:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Internal function to process the separation of a physics body from a tile.\r\n *\r\n * @function Phaser.Physics.Arcade.Tilemap.ProcessTileSeparationY\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Arcade.Body} body - The Body object to separate.\r\n * @param {number} y - The y separation amount.\r\n */\r\nvar ProcessTileSeparationY = function (body, y)\r\n{\r\n if (y < 0)\r\n {\r\n body.blocked.none = false;\r\n body.blocked.up = true;\r\n }\r\n else if (y > 0)\r\n {\r\n body.blocked.none = false;\r\n body.blocked.down = true;\r\n }\r\n\r\n body.position.y -= y;\r\n body.updateCenter();\r\n\r\n if (body.bounce.y === 0)\r\n {\r\n body.velocity.y = 0;\r\n }\r\n else\r\n {\r\n body.velocity.y = -body.velocity.y * body.bounce.y;\r\n }\r\n};\r\n\r\nmodule.exports = ProcessTileSeparationY;\r\n\n\n/***/ }),\n\n/***/ 40012:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar TileCheckX = __webpack_require__(21329);\r\nvar TileCheckY = __webpack_require__(53442);\r\nvar TileIntersectsBody = __webpack_require__(2483);\r\n\r\n/**\r\n * The core separation function to separate a physics body and a tile.\r\n *\r\n * @function Phaser.Physics.Arcade.Tilemap.SeparateTile\r\n * @since 3.0.0\r\n *\r\n * @param {number} i - The index of the tile within the map data.\r\n * @param {Phaser.Physics.Arcade.Body} body - The Body object to separate.\r\n * @param {Phaser.Tilemaps.Tile} tile - The tile to collide against.\r\n * @param {Phaser.Geom.Rectangle} tileWorldRect - A rectangle-like object defining the dimensions of the tile.\r\n * @param {Phaser.Tilemaps.TilemapLayer} tilemapLayer - The tilemapLayer to collide against.\r\n * @param {number} tileBias - The tile bias value. Populated by the `World.TILE_BIAS` constant.\r\n * @param {boolean} isLayer - Is this check coming from a TilemapLayer or an array of tiles?\r\n *\r\n * @return {boolean} `true` if the body was separated, otherwise `false`.\r\n */\r\nvar SeparateTile = function (i, body, tile, tileWorldRect, tilemapLayer, tileBias, isLayer)\r\n{\r\n var tileLeft = tileWorldRect.left;\r\n var tileTop = tileWorldRect.top;\r\n var tileRight = tileWorldRect.right;\r\n var tileBottom = tileWorldRect.bottom;\r\n var faceHorizontal = tile.faceLeft || tile.faceRight;\r\n var faceVertical = tile.faceTop || tile.faceBottom;\r\n\r\n if (!isLayer)\r\n {\r\n faceHorizontal = true;\r\n faceVertical = true;\r\n }\r\n\r\n // We don't need to go any further if this tile doesn't actually have any colliding faces. This\r\n // could happen if the tile was meant to be collided with re: a callback, but otherwise isn't\r\n // needed for separation.\r\n if (!faceHorizontal && !faceVertical)\r\n {\r\n return false;\r\n }\r\n\r\n var ox = 0;\r\n var oy = 0;\r\n var minX = 0;\r\n var minY = 1;\r\n\r\n if (body.deltaAbsX() > body.deltaAbsY())\r\n {\r\n // Moving faster horizontally, check X axis first\r\n minX = -1;\r\n }\r\n else if (body.deltaAbsX() < body.deltaAbsY())\r\n {\r\n // Moving faster vertically, check Y axis first\r\n minY = -1;\r\n }\r\n\r\n if (body.deltaX() !== 0 && body.deltaY() !== 0 && faceHorizontal && faceVertical)\r\n {\r\n // We only need do this if both axes have colliding faces AND we're moving in both\r\n // directions\r\n minX = Math.min(Math.abs(body.position.x - tileRight), Math.abs(body.right - tileLeft));\r\n minY = Math.min(Math.abs(body.position.y - tileBottom), Math.abs(body.bottom - tileTop));\r\n }\r\n\r\n if (minX < minY)\r\n {\r\n if (faceHorizontal)\r\n {\r\n ox = TileCheckX(body, tile, tileLeft, tileRight, tileBias, isLayer);\r\n\r\n // That's horizontal done, check if we still intersects? If not then we can return now\r\n if (ox !== 0 && !TileIntersectsBody(tileWorldRect, body))\r\n {\r\n return true;\r\n }\r\n }\r\n\r\n if (faceVertical)\r\n {\r\n oy = TileCheckY(body, tile, tileTop, tileBottom, tileBias, isLayer);\r\n }\r\n }\r\n else\r\n {\r\n if (faceVertical)\r\n {\r\n oy = TileCheckY(body, tile, tileTop, tileBottom, tileBias, isLayer);\r\n\r\n // That's vertical done, check if we still intersects? If not then we can return now\r\n if (oy !== 0 && !TileIntersectsBody(tileWorldRect, body))\r\n {\r\n return true;\r\n }\r\n }\r\n\r\n if (faceHorizontal)\r\n {\r\n ox = TileCheckX(body, tile, tileLeft, tileRight, tileBias, isLayer);\r\n }\r\n }\r\n\r\n return (ox !== 0 || oy !== 0);\r\n};\r\n\r\nmodule.exports = SeparateTile;\r\n\n\n/***/ }),\n\n/***/ 21329:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar ProcessTileSeparationX = __webpack_require__(36294);\r\n\r\n/**\r\n * Check the body against the given tile on the X axis.\r\n * Used internally by the SeparateTile function.\r\n *\r\n * @function Phaser.Physics.Arcade.Tilemap.TileCheckX\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Arcade.Body} body - The Body object to separate.\r\n * @param {Phaser.Tilemaps.Tile} tile - The tile to check.\r\n * @param {number} tileLeft - The left position of the tile within the tile world.\r\n * @param {number} tileRight - The right position of the tile within the tile world.\r\n * @param {number} tileBias - The tile bias value. Populated by the `World.TILE_BIAS` constant.\r\n * @param {boolean} isLayer - Is this check coming from a TilemapLayer or an array of tiles?\r\n *\r\n * @return {number} The amount of separation that occurred.\r\n */\r\nvar TileCheckX = function (body, tile, tileLeft, tileRight, tileBias, isLayer)\r\n{\r\n var ox = 0;\r\n\r\n var faceLeft = tile.faceLeft;\r\n var faceRight = tile.faceRight;\r\n var collideLeft = tile.collideLeft;\r\n var collideRight = tile.collideRight;\r\n\r\n if (!isLayer)\r\n {\r\n faceLeft = true;\r\n faceRight = true;\r\n collideLeft = true;\r\n collideRight = true;\r\n }\r\n\r\n if (body.deltaX() < 0 && collideRight && body.checkCollision.left)\r\n {\r\n // Body is moving LEFT\r\n if (faceRight && body.x < tileRight)\r\n {\r\n ox = body.x - tileRight;\r\n\r\n if (ox < -tileBias)\r\n {\r\n ox = 0;\r\n }\r\n }\r\n }\r\n else if (body.deltaX() > 0 && collideLeft && body.checkCollision.right)\r\n {\r\n // Body is moving RIGHT\r\n if (faceLeft && body.right > tileLeft)\r\n {\r\n ox = body.right - tileLeft;\r\n\r\n if (ox > tileBias)\r\n {\r\n ox = 0;\r\n }\r\n }\r\n }\r\n\r\n if (ox !== 0)\r\n {\r\n if (body.customSeparateX)\r\n {\r\n body.overlapX = ox;\r\n }\r\n else\r\n {\r\n ProcessTileSeparationX(body, ox);\r\n }\r\n }\r\n\r\n return ox;\r\n};\r\n\r\nmodule.exports = TileCheckX;\r\n\n\n/***/ }),\n\n/***/ 53442:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar ProcessTileSeparationY = __webpack_require__(67013);\r\n\r\n/**\r\n * Check the body against the given tile on the Y axis.\r\n * Used internally by the SeparateTile function.\r\n *\r\n * @function Phaser.Physics.Arcade.Tilemap.TileCheckY\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Arcade.Body} body - The Body object to separate.\r\n * @param {Phaser.Tilemaps.Tile} tile - The tile to check.\r\n * @param {number} tileTop - The top position of the tile within the tile world.\r\n * @param {number} tileBottom - The bottom position of the tile within the tile world.\r\n * @param {number} tileBias - The tile bias value. Populated by the `World.TILE_BIAS` constant.\r\n * @param {boolean} isLayer - Is this check coming from a TilemapLayer or an array of tiles?\r\n *\r\n * @return {number} The amount of separation that occurred.\r\n */\r\nvar TileCheckY = function (body, tile, tileTop, tileBottom, tileBias, isLayer)\r\n{\r\n var oy = 0;\r\n\r\n var faceTop = tile.faceTop;\r\n var faceBottom = tile.faceBottom;\r\n var collideUp = tile.collideUp;\r\n var collideDown = tile.collideDown;\r\n\r\n if (!isLayer)\r\n {\r\n faceTop = true;\r\n faceBottom = true;\r\n collideUp = true;\r\n collideDown = true;\r\n }\r\n\r\n if (body.deltaY() < 0 && collideDown && body.checkCollision.up)\r\n {\r\n // Body is moving UP\r\n if (faceBottom && body.y < tileBottom)\r\n {\r\n oy = body.y - tileBottom;\r\n\r\n if (oy < -tileBias)\r\n {\r\n oy = 0;\r\n }\r\n }\r\n }\r\n else if (body.deltaY() > 0 && collideUp && body.checkCollision.down)\r\n {\r\n // Body is moving DOWN\r\n if (faceTop && body.bottom > tileTop)\r\n {\r\n oy = body.bottom - tileTop;\r\n\r\n if (oy > tileBias)\r\n {\r\n oy = 0;\r\n }\r\n }\r\n }\r\n\r\n if (oy !== 0)\r\n {\r\n if (body.customSeparateY)\r\n {\r\n body.overlapY = oy;\r\n }\r\n else\r\n {\r\n ProcessTileSeparationY(body, oy);\r\n }\r\n }\r\n\r\n return oy;\r\n};\r\n\r\nmodule.exports = TileCheckY;\r\n\n\n/***/ }),\n\n/***/ 2483:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Checks for intersection between the given tile rectangle-like object and an Arcade Physics body.\r\n *\r\n * @function Phaser.Physics.Arcade.Tilemap.TileIntersectsBody\r\n * @since 3.0.0\r\n *\r\n * @param {{ left: number, right: number, top: number, bottom: number }} tileWorldRect - A rectangle object that defines the tile placement in the world.\r\n * @param {Phaser.Physics.Arcade.Body} body - The body to check for intersection against.\r\n *\r\n * @return {boolean} Returns `true` of the tile intersects with the body, otherwise `false`.\r\n */\r\nvar TileIntersectsBody = function (tileWorldRect, body)\r\n{\r\n // Currently, all bodies are treated as rectangles when colliding with a Tile.\r\n\r\n return !(\r\n body.right <= tileWorldRect.left ||\r\n body.bottom <= tileWorldRect.top ||\r\n body.position.x >= tileWorldRect.right ||\r\n body.position.y >= tileWorldRect.bottom\r\n );\r\n};\r\n\r\nmodule.exports = TileIntersectsBody;\r\n\n\n/***/ }),\n\n/***/ 55173:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Physics.Arcade.Tilemap\r\n */\r\n\r\nvar Tilemap = {\r\n\r\n ProcessTileCallbacks: __webpack_require__(96602),\r\n ProcessTileSeparationX: __webpack_require__(36294),\r\n ProcessTileSeparationY: __webpack_require__(67013),\r\n SeparateTile: __webpack_require__(40012),\r\n TileCheckX: __webpack_require__(21329),\r\n TileCheckY: __webpack_require__(53442),\r\n TileIntersectsBody: __webpack_require__(2483)\r\n\r\n};\r\n\r\nmodule.exports = Tilemap;\r\n\n\n/***/ }),\n\n/***/ 44563:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Physics\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Types.Physics\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Arcade: __webpack_require__(27064),\r\n Matter: __webpack_require__(3875)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 68174:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n *\r\n * The Body Bounds class contains methods to help you extract the world coordinates from various points around\r\n * the bounds of a Matter Body. Because Matter bodies are positioned based on their center of mass, and not a\r\n * dimension based center, you often need to get the bounds coordinates in order to properly align them in the world.\r\n *\r\n * You can access this class via the MatterPhysics class from a Scene, i.e.:\r\n *\r\n * ```javascript\r\n * this.matter.bodyBounds.getTopLeft(body);\r\n * ```\r\n *\r\n * See also the `MatterPhysics.alignBody` method.\r\n *\r\n * @class BodyBounds\r\n * @memberof Phaser.Physics.Matter\r\n * @constructor\r\n * @since 3.22.0\r\n */\r\nvar BodyBounds = new Class({\r\n\r\n initialize:\r\n\r\n function BodyBounds ()\r\n {\r\n /**\r\n * A Vector2 that stores the temporary bounds center value during calculations by methods in this class.\r\n *\r\n * @name Phaser.Physics.Matter.BodyBounds#boundsCenter\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.22.0\r\n */\r\n this.boundsCenter = new Vector2();\r\n\r\n /**\r\n * A Vector2 that stores the temporary center diff values during calculations by methods in this class.\r\n *\r\n * @name Phaser.Physics.Matter.BodyBounds#centerDiff\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.22.0\r\n */\r\n this.centerDiff = new Vector2();\r\n },\r\n\r\n /**\r\n * Parses the given body to get the bounds diff values from it.\r\n *\r\n * They're stored in this class in the temporary properties `boundsCenter` and `centerDiff`.\r\n *\r\n * This method is called automatically by all other methods in this class.\r\n *\r\n * @method Phaser.Physics.Matter.BodyBounds#parseBody\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Types.Physics.Matter.MatterBody} body - The Body to get the bounds position from.\r\n *\r\n * @return {boolean} `true` if it was able to get the bounds, otherwise `false`.\r\n */\r\n parseBody: function (body)\r\n {\r\n body = (body.hasOwnProperty('body')) ? body.body : body;\r\n\r\n if (!body.hasOwnProperty('bounds') || !body.hasOwnProperty('centerOfMass'))\r\n {\r\n return false;\r\n }\r\n\r\n var boundsCenter = this.boundsCenter;\r\n var centerDiff = this.centerDiff;\r\n\r\n var boundsWidth = body.bounds.max.x - body.bounds.min.x;\r\n var boundsHeight = body.bounds.max.y - body.bounds.min.y;\r\n\r\n var bodyCenterX = boundsWidth * body.centerOfMass.x;\r\n var bodyCenterY = boundsHeight * body.centerOfMass.y;\r\n\r\n boundsCenter.set(boundsWidth / 2, boundsHeight / 2);\r\n centerDiff.set(bodyCenterX - boundsCenter.x, bodyCenterY - boundsCenter.y);\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * Takes a Body and returns the world coordinates of the top-left of its _bounds_.\r\n *\r\n * Body bounds are updated by Matter each step and factor in scale and rotation.\r\n * This will return the world coordinate based on the bodies _current_ position and bounds.\r\n *\r\n * @method Phaser.Physics.Matter.BodyBounds#getTopLeft\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Types.Physics.Matter.MatterBody} body - The Body to get the position from.\r\n * @param {number} [x=0] - Optional horizontal offset to add to the returned coordinates.\r\n * @param {number} [y=0] - Optional vertical offset to add to the returned coordinates.\r\n *\r\n * @return {(Phaser.Math.Vector2|false)} A Vector2 containing the coordinates, or `false` if it was unable to parse the body.\r\n */\r\n getTopLeft: function (body, x, y)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n\r\n if (this.parseBody(body))\r\n {\r\n var center = this.boundsCenter;\r\n var diff = this.centerDiff;\r\n\r\n return new Vector2(\r\n x + center.x + diff.x,\r\n y + center.y + diff.y\r\n );\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Takes a Body and returns the world coordinates of the top-center of its _bounds_.\r\n *\r\n * Body bounds are updated by Matter each step and factor in scale and rotation.\r\n * This will return the world coordinate based on the bodies _current_ position and bounds.\r\n *\r\n * @method Phaser.Physics.Matter.BodyBounds#getTopCenter\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Types.Physics.Matter.MatterBody} body - The Body to get the position from.\r\n * @param {number} [x=0] - Optional horizontal offset to add to the returned coordinates.\r\n * @param {number} [y=0] - Optional vertical offset to add to the returned coordinates.\r\n *\r\n * @return {(Phaser.Math.Vector2|false)} A Vector2 containing the coordinates, or `false` if it was unable to parse the body.\r\n */\r\n getTopCenter: function (body, x, y)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n\r\n if (this.parseBody(body))\r\n {\r\n var center = this.boundsCenter;\r\n var diff = this.centerDiff;\r\n\r\n return new Vector2(\r\n x + diff.x,\r\n y + center.y + diff.y\r\n );\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Takes a Body and returns the world coordinates of the top-right of its _bounds_.\r\n *\r\n * Body bounds are updated by Matter each step and factor in scale and rotation.\r\n * This will return the world coordinate based on the bodies _current_ position and bounds.\r\n *\r\n * @method Phaser.Physics.Matter.BodyBounds#getTopRight\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Types.Physics.Matter.MatterBody} body - The Body to get the position from.\r\n * @param {number} [x=0] - Optional horizontal offset to add to the returned coordinates.\r\n * @param {number} [y=0] - Optional vertical offset to add to the returned coordinates.\r\n *\r\n * @return {(Phaser.Math.Vector2|false)} A Vector2 containing the coordinates, or `false` if it was unable to parse the body.\r\n */\r\n getTopRight: function (body, x, y)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n\r\n if (this.parseBody(body))\r\n {\r\n var center = this.boundsCenter;\r\n var diff = this.centerDiff;\r\n\r\n return new Vector2(\r\n x - (center.x - diff.x),\r\n y + center.y + diff.y\r\n );\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Takes a Body and returns the world coordinates of the left-center of its _bounds_.\r\n *\r\n * Body bounds are updated by Matter each step and factor in scale and rotation.\r\n * This will return the world coordinate based on the bodies _current_ position and bounds.\r\n *\r\n * @method Phaser.Physics.Matter.BodyBounds#getLeftCenter\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Types.Physics.Matter.MatterBody} body - The Body to get the position from.\r\n * @param {number} [x=0] - Optional horizontal offset to add to the returned coordinates.\r\n * @param {number} [y=0] - Optional vertical offset to add to the returned coordinates.\r\n *\r\n * @return {(Phaser.Math.Vector2|false)} A Vector2 containing the coordinates, or `false` if it was unable to parse the body.\r\n */\r\n getLeftCenter: function (body, x, y)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n\r\n if (this.parseBody(body))\r\n {\r\n var center = this.boundsCenter;\r\n var diff = this.centerDiff;\r\n\r\n return new Vector2(\r\n x + center.x + diff.x,\r\n y + diff.y\r\n );\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Takes a Body and returns the world coordinates of the center of its _bounds_.\r\n *\r\n * Body bounds are updated by Matter each step and factor in scale and rotation.\r\n * This will return the world coordinate based on the bodies _current_ position and bounds.\r\n *\r\n * @method Phaser.Physics.Matter.BodyBounds#getCenter\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Types.Physics.Matter.MatterBody} body - The Body to get the position from.\r\n * @param {number} [x=0] - Optional horizontal offset to add to the returned coordinates.\r\n * @param {number} [y=0] - Optional vertical offset to add to the returned coordinates.\r\n *\r\n * @return {(Phaser.Math.Vector2|false)} A Vector2 containing the coordinates, or `false` if it was unable to parse the body.\r\n */\r\n getCenter: function (body, x, y)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n\r\n if (this.parseBody(body))\r\n {\r\n var diff = this.centerDiff;\r\n\r\n return new Vector2(\r\n x + diff.x,\r\n y + diff.y\r\n );\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Takes a Body and returns the world coordinates of the right-center of its _bounds_.\r\n *\r\n * Body bounds are updated by Matter each step and factor in scale and rotation.\r\n * This will return the world coordinate based on the bodies _current_ position and bounds.\r\n *\r\n * @method Phaser.Physics.Matter.BodyBounds#getRightCenter\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Types.Physics.Matter.MatterBody} body - The Body to get the position from.\r\n * @param {number} [x=0] - Optional horizontal offset to add to the returned coordinates.\r\n * @param {number} [y=0] - Optional vertical offset to add to the returned coordinates.\r\n *\r\n * @return {(Phaser.Math.Vector2|false)} A Vector2 containing the coordinates, or `false` if it was unable to parse the body.\r\n */\r\n getRightCenter: function (body, x, y)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n\r\n if (this.parseBody(body))\r\n {\r\n var center = this.boundsCenter;\r\n var diff = this.centerDiff;\r\n\r\n return new Vector2(\r\n x - (center.x - diff.x),\r\n y + diff.y\r\n );\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Takes a Body and returns the world coordinates of the bottom-left of its _bounds_.\r\n *\r\n * Body bounds are updated by Matter each step and factor in scale and rotation.\r\n * This will return the world coordinate based on the bodies _current_ position and bounds.\r\n *\r\n * @method Phaser.Physics.Matter.BodyBounds#getBottomLeft\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Types.Physics.Matter.MatterBody} body - The Body to get the position from.\r\n * @param {number} [x=0] - Optional horizontal offset to add to the returned coordinates.\r\n * @param {number} [y=0] - Optional vertical offset to add to the returned coordinates.\r\n *\r\n * @return {(Phaser.Math.Vector2|false)} A Vector2 containing the coordinates, or `false` if it was unable to parse the body.\r\n */\r\n getBottomLeft: function (body, x, y)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n\r\n if (this.parseBody(body))\r\n {\r\n var center = this.boundsCenter;\r\n var diff = this.centerDiff;\r\n\r\n return new Vector2(\r\n x + center.x + diff.x,\r\n y - (center.y - diff.y)\r\n );\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Takes a Body and returns the world coordinates of the bottom-center of its _bounds_.\r\n *\r\n * Body bounds are updated by Matter each step and factor in scale and rotation.\r\n * This will return the world coordinate based on the bodies _current_ position and bounds.\r\n *\r\n * @method Phaser.Physics.Matter.BodyBounds#getBottomCenter\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Types.Physics.Matter.MatterBody} body - The Body to get the position from.\r\n * @param {number} [x=0] - Optional horizontal offset to add to the returned coordinates.\r\n * @param {number} [y=0] - Optional vertical offset to add to the returned coordinates.\r\n *\r\n * @return {(Phaser.Math.Vector2|false)} A Vector2 containing the coordinates, or `false` if it was unable to parse the body.\r\n */\r\n getBottomCenter: function (body, x, y)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n\r\n if (this.parseBody(body))\r\n {\r\n var center = this.boundsCenter;\r\n var diff = this.centerDiff;\r\n\r\n return new Vector2(\r\n x + diff.x,\r\n y - (center.y - diff.y)\r\n );\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Takes a Body and returns the world coordinates of the bottom-right of its _bounds_.\r\n *\r\n * Body bounds are updated by Matter each step and factor in scale and rotation.\r\n * This will return the world coordinate based on the bodies _current_ position and bounds.\r\n *\r\n * @method Phaser.Physics.Matter.BodyBounds#getBottomRight\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Types.Physics.Matter.MatterBody} body - The Body to get the position from.\r\n * @param {number} [x=0] - Optional horizontal offset to add to the returned coordinates.\r\n * @param {number} [y=0] - Optional vertical offset to add to the returned coordinates.\r\n *\r\n * @return {(Phaser.Math.Vector2|false)} A Vector2 containing the coordinates, or `false` if it was unable to parse the body.\r\n */\r\n getBottomRight: function (body, x, y)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n\r\n if (this.parseBody(body))\r\n {\r\n var center = this.boundsCenter;\r\n var diff = this.centerDiff;\r\n\r\n return new Vector2(\r\n x - (center.x - diff.x),\r\n y - (center.y - diff.y)\r\n );\r\n }\r\n\r\n return false;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = BodyBounds;\r\n\n\n/***/ }),\n\n/***/ 19933:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Physics.Matter.Matter\r\n */\r\n\r\nvar Matter = __webpack_require__(6790);\r\n\r\nMatter.Body = __webpack_require__(22562);\r\nMatter.Composite = __webpack_require__(69351);\r\nMatter.World = __webpack_require__(4372);\r\n\r\nMatter.Collision = __webpack_require__(52284);\r\nMatter.Detector = __webpack_require__(81388);\r\nMatter.Pairs = __webpack_require__(99561);\r\nMatter.Pair = __webpack_require__(4506);\r\nMatter.Query = __webpack_require__(73296);\r\nMatter.Resolver = __webpack_require__(66272);\r\n\r\nMatter.Constraint = __webpack_require__(48140);\r\n\r\nMatter.Common = __webpack_require__(53402);\r\nMatter.Engine = __webpack_require__(48413);\r\nMatter.Events = __webpack_require__(35810);\r\nMatter.Sleeping = __webpack_require__(53614);\r\nMatter.Plugin = __webpack_require__(73832);\r\n\r\nMatter.Bodies = __webpack_require__(66280);\r\nMatter.Composites = __webpack_require__(74116);\r\n\r\nMatter.Axes = __webpack_require__(66615);\r\nMatter.Bounds = __webpack_require__(15647);\r\nMatter.Svg = __webpack_require__(74058);\r\nMatter.Vector = __webpack_require__(31725);\r\nMatter.Vertices = __webpack_require__(41598);\r\n\r\n// aliases\r\n\r\nMatter.World.add = Matter.Composite.add;\r\nMatter.World.remove = Matter.Composite.remove;\r\nMatter.World.addComposite = Matter.Composite.addComposite;\r\nMatter.World.addBody = Matter.Composite.addBody;\r\nMatter.World.addConstraint = Matter.Composite.addConstraint;\r\nMatter.World.clear = Matter.Composite.clear;\r\n\r\nmodule.exports = Matter;\r\n\n\n/***/ }),\n\n/***/ 28137:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Bodies = __webpack_require__(66280);\r\nvar Class = __webpack_require__(83419);\r\nvar Composites = __webpack_require__(74116);\r\nvar Constraint = __webpack_require__(48140);\r\nvar Svg = __webpack_require__(74058);\r\nvar MatterGameObject = __webpack_require__(75803);\r\nvar MatterImage = __webpack_require__(23181);\r\nvar MatterSprite = __webpack_require__(34803);\r\nvar MatterTileBody = __webpack_require__(73834);\r\nvar PhysicsEditorParser = __webpack_require__(19496);\r\nvar PhysicsJSONParser = __webpack_require__(85791);\r\nvar PointerConstraint = __webpack_require__(98713);\r\nvar Vertices = __webpack_require__(41598);\r\n\r\n/**\r\n * @classdesc\r\n * The Matter Factory is responsible for quickly creating a variety of different types of\r\n * bodies, constraints and Game Objects and adding them into the physics world.\r\n *\r\n * You access the factory from within a Scene using `add`:\r\n *\r\n * ```javascript\r\n * this.matter.add.rectangle(x, y, width, height);\r\n * ```\r\n *\r\n * Use of the Factory is optional. All of the objects it creates can also be created\r\n * directly via your own code or constructors. It is provided as a means to keep your\r\n * code concise.\r\n *\r\n * @class Factory\r\n * @memberof Phaser.Physics.Matter\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Matter.World} world - The Matter World which this Factory adds to.\r\n */\r\nvar Factory = new Class({\r\n\r\n initialize:\r\n\r\n function Factory (world)\r\n {\r\n /**\r\n * The Matter World which this Factory adds to.\r\n *\r\n * @name Phaser.Physics.Matter.Factory#world\r\n * @type {Phaser.Physics.Matter.World}\r\n * @since 3.0.0\r\n */\r\n this.world = world;\r\n\r\n /**\r\n * The Scene which this Factory's Matter World belongs to.\r\n *\r\n * @name Phaser.Physics.Matter.Factory#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.0.0\r\n */\r\n this.scene = world.scene;\r\n\r\n /**\r\n * A reference to the Scene.Systems this Matter Physics instance belongs to.\r\n *\r\n * @name Phaser.Physics.Matter.Factory#sys\r\n * @type {Phaser.Scenes.Systems}\r\n * @since 3.0.0\r\n */\r\n this.sys = world.scene.sys;\r\n },\r\n\r\n /**\r\n * Creates a new rigid rectangular Body and adds it to the World.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#rectangle\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The X coordinate of the center of the Body.\r\n * @param {number} y - The Y coordinate of the center of the Body.\r\n * @param {number} width - The width of the Body.\r\n * @param {number} height - The height of the Body.\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.\r\n *\r\n * @return {MatterJS.BodyType} A Matter JS Body.\r\n */\r\n rectangle: function (x, y, width, height, options)\r\n {\r\n var body = Bodies.rectangle(x, y, width, height, options);\r\n\r\n this.world.add(body);\r\n\r\n return body;\r\n },\r\n\r\n /**\r\n * Creates a new rigid trapezoidal Body and adds it to the World.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#trapezoid\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The X coordinate of the center of the Body.\r\n * @param {number} y - The Y coordinate of the center of the Body.\r\n * @param {number} width - The width of the trapezoid Body.\r\n * @param {number} height - The height of the trapezoid Body.\r\n * @param {number} slope - The slope of the trapezoid. 0 creates a rectangle, while 1 creates a triangle. Positive values make the top side shorter, while negative values make the bottom side shorter.\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.\r\n *\r\n * @return {MatterJS.BodyType} A Matter JS Body.\r\n */\r\n trapezoid: function (x, y, width, height, slope, options)\r\n {\r\n var body = Bodies.trapezoid(x, y, width, height, slope, options);\r\n\r\n this.world.add(body);\r\n\r\n return body;\r\n },\r\n\r\n /**\r\n * Creates a new rigid circular Body and adds it to the World.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#circle\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The X coordinate of the center of the Body.\r\n * @param {number} y - The Y coordinate of the center of the Body.\r\n * @param {number} radius - The radius of the circle.\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.\r\n * @param {number} [maxSides] - The maximum amount of sides to use for the polygon which will approximate this circle.\r\n *\r\n * @return {MatterJS.BodyType} A Matter JS Body.\r\n */\r\n circle: function (x, y, radius, options, maxSides)\r\n {\r\n var body = Bodies.circle(x, y, radius, options, maxSides);\r\n\r\n this.world.add(body);\r\n\r\n return body;\r\n },\r\n\r\n /**\r\n * Creates a new rigid polygonal Body and adds it to the World.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#polygon\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The X coordinate of the center of the Body.\r\n * @param {number} y - The Y coordinate of the center of the Body.\r\n * @param {number} sides - The number of sides the polygon will have.\r\n * @param {number} radius - The \"radius\" of the polygon, i.e. the distance from its center to any vertex. This is also the radius of its circumcircle.\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.\r\n *\r\n * @return {MatterJS.BodyType} A Matter JS Body.\r\n */\r\n polygon: function (x, y, sides, radius, options)\r\n {\r\n var body = Bodies.polygon(x, y, sides, radius, options);\r\n\r\n this.world.add(body);\r\n\r\n return body;\r\n },\r\n\r\n /**\r\n * Creates a body using the supplied vertices (or an array containing multiple sets of vertices) and adds it to the World.\r\n * If the vertices are convex, they will pass through as supplied. Otherwise, if the vertices are concave, they will be decomposed. Note that this process is not guaranteed to support complex sets of vertices, e.g. ones with holes.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#fromVertices\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The X coordinate of the center of the Body.\r\n * @param {number} y - The Y coordinate of the center of the Body.\r\n * @param {(string|array)} vertexSets - The vertices data. Either a path string or an array of vertices.\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.\r\n * @param {boolean} [flagInternal=false] - Flag internal edges (coincident part edges)\r\n * @param {number} [removeCollinear=0.01] - Whether Matter.js will discard collinear edges (to improve performance).\r\n * @param {number} [minimumArea=10] - During decomposition discard parts that have an area less than this.\r\n *\r\n * @return {MatterJS.BodyType} A Matter JS Body.\r\n */\r\n fromVertices: function (x, y, vertexSets, options, flagInternal, removeCollinear, minimumArea)\r\n {\r\n if (typeof vertexSets === 'string')\r\n {\r\n vertexSets = Vertices.fromPath(vertexSets);\r\n }\r\n\r\n var body = Bodies.fromVertices(x, y, vertexSets, options, flagInternal, removeCollinear, minimumArea);\r\n\r\n this.world.add(body);\r\n\r\n return body;\r\n },\r\n\r\n /**\r\n * Creates a body using data exported from the application PhysicsEditor (https://www.codeandweb.com/physicseditor)\r\n *\r\n * The PhysicsEditor file should be loaded as JSON:\r\n *\r\n * ```javascript\r\n * preload ()\r\n * {\r\n * this.load.json('vehicles', 'assets/vehicles.json);\r\n * }\r\n *\r\n * create ()\r\n * {\r\n * const vehicleShapes = this.cache.json.get('vehicles');\r\n * this.matter.add.fromPhysicsEditor(400, 300, vehicleShapes.truck);\r\n * }\r\n * ```\r\n *\r\n * Do not pass the entire JSON file to this method, but instead pass one of the shapes contained within it.\r\n *\r\n * If you pas in an `options` object, any settings in there will override those in the PhysicsEditor config object.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#fromPhysicsEditor\r\n * @since 3.22.0\r\n *\r\n * @param {number} x - The horizontal world location of the body.\r\n * @param {number} y - The vertical world location of the body.\r\n * @param {any} config - The JSON data exported from PhysicsEditor.\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.\r\n * @param {boolean} [addToWorld=true] - Should the newly created body be immediately added to the World?\r\n *\r\n * @return {MatterJS.BodyType} A Matter JS Body.\r\n */\r\n fromPhysicsEditor: function (x, y, config, options, addToWorld)\r\n {\r\n if (addToWorld === undefined) { addToWorld = true; }\r\n\r\n var body = PhysicsEditorParser.parseBody(x, y, config, options);\r\n\r\n if (addToWorld && !this.world.has(body))\r\n {\r\n this.world.add(body);\r\n }\r\n\r\n return body;\r\n },\r\n\r\n /**\r\n * Creates a body using the path data from an SVG file.\r\n *\r\n * SVG Parsing requires the pathseg polyfill from https://github.com/progers/pathseg\r\n *\r\n * The SVG file should be loaded as XML, as this method requires the ability to extract\r\n * the path data from it. I.e.:\r\n *\r\n * ```javascript\r\n * preload ()\r\n * {\r\n * this.load.xml('face', 'assets/face.svg);\r\n * }\r\n *\r\n * create ()\r\n * {\r\n * this.matter.add.fromSVG(400, 300, this.cache.xml.get('face'));\r\n * }\r\n * ```\r\n *\r\n * @method Phaser.Physics.Matter.Factory#fromSVG\r\n * @since 3.22.0\r\n *\r\n * @param {number} x - The X coordinate of the body.\r\n * @param {number} y - The Y coordinate of the body.\r\n * @param {object} xml - The SVG Path data.\r\n * @param {number} [scale=1] - Scale the vertices by this amount after creation.\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.\r\n * @param {boolean} [addToWorld=true] - Should the newly created body be immediately added to the World?\r\n *\r\n * @return {MatterJS.BodyType} A Matter JS Body.\r\n */\r\n fromSVG: function (x, y, xml, scale, options, addToWorld)\r\n {\r\n if (scale === undefined) { scale = 1; }\r\n if (options === undefined) { options = {}; }\r\n if (addToWorld === undefined) { addToWorld = true; }\r\n\r\n var path = xml.getElementsByTagName('path');\r\n var vertexSets = [];\r\n\r\n for (var i = 0; i < path.length; i++)\r\n {\r\n var points = Svg.pathToVertices(path[i], 30);\r\n\r\n if (scale !== 1)\r\n {\r\n Vertices.scale(points, scale, scale);\r\n }\r\n\r\n vertexSets.push(points);\r\n }\r\n\r\n var body = Bodies.fromVertices(x, y, vertexSets, options);\r\n\r\n if (addToWorld)\r\n {\r\n this.world.add(body);\r\n }\r\n\r\n return body;\r\n },\r\n\r\n /**\r\n * Creates a body using the supplied physics data, as provided by a JSON file.\r\n *\r\n * The data file should be loaded as JSON:\r\n *\r\n * ```javascript\r\n * preload ()\r\n * {\r\n * this.load.json('ninjas', 'assets/ninjas.json);\r\n * }\r\n *\r\n * create ()\r\n * {\r\n * const ninjaShapes = this.cache.json.get('ninjas');\r\n *\r\n * this.matter.add.fromJSON(400, 300, ninjaShapes.shinobi);\r\n * }\r\n * ```\r\n *\r\n * Do not pass the entire JSON file to this method, but instead pass one of the shapes contained within it.\r\n *\r\n * If you pas in an `options` object, any settings in there will override those in the config object.\r\n *\r\n * The structure of the JSON file is as follows:\r\n *\r\n * ```text\r\n * {\r\n * 'generator_info': // The name of the application that created the JSON data\r\n * 'shapeName': {\r\n * 'type': // The type of body\r\n * 'label': // Optional body label\r\n * 'vertices': // An array, or an array of arrays, containing the vertex data in x/y object pairs\r\n * }\r\n * }\r\n * ```\r\n *\r\n * At the time of writing, only the Phaser Physics Tracer App exports in this format.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#fromJSON\r\n * @since 3.22.0\r\n *\r\n * @param {number} x - The X coordinate of the body.\r\n * @param {number} y - The Y coordinate of the body.\r\n * @param {any} config - The JSON physics data.\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.\r\n * @param {boolean} [addToWorld=true] - Should the newly created body be immediately added to the World?\r\n *\r\n * @return {MatterJS.BodyType} A Matter JS Body.\r\n */\r\n fromJSON: function (x, y, config, options, addToWorld)\r\n {\r\n if (options === undefined) { options = {}; }\r\n if (addToWorld === undefined) { addToWorld = true; }\r\n\r\n var body = PhysicsJSONParser.parseBody(x, y, config, options);\r\n\r\n if (body && addToWorld)\r\n {\r\n this.world.add(body);\r\n }\r\n\r\n return body;\r\n },\r\n\r\n /**\r\n * Create a new composite containing Matter Image objects created in a grid arrangement.\r\n * This function uses the body bounds to prevent overlaps.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#imageStack\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number)} frame - An optional frame from the Texture this Game Object is rendering with. Set to `null` to skip this value.\r\n * @param {number} x - The horizontal position of this composite in the world.\r\n * @param {number} y - The vertical position of this composite in the world.\r\n * @param {number} columns - The number of columns in the grid.\r\n * @param {number} rows - The number of rows in the grid.\r\n * @param {number} [columnGap=0] - The distance between each column.\r\n * @param {number} [rowGap=0] - The distance between each row.\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.\r\n *\r\n * @return {MatterJS.CompositeType} A Matter JS Composite Stack.\r\n */\r\n imageStack: function (key, frame, x, y, columns, rows, columnGap, rowGap, options)\r\n {\r\n if (columnGap === undefined) { columnGap = 0; }\r\n if (rowGap === undefined) { rowGap = 0; }\r\n if (options === undefined) { options = {}; }\r\n\r\n var world = this.world;\r\n var displayList = this.sys.displayList;\r\n\r\n options.addToWorld = false;\r\n\r\n var stack = Composites.stack(x, y, columns, rows, columnGap, rowGap, function (x, y)\r\n {\r\n var image = new MatterImage(world, x, y, key, frame, options);\r\n\r\n displayList.add(image);\r\n\r\n return image.body;\r\n });\r\n\r\n world.add(stack);\r\n\r\n return stack;\r\n },\r\n\r\n /**\r\n * Create a new composite containing bodies created in the callback in a grid arrangement.\r\n *\r\n * This function uses the body bounds to prevent overlaps.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#stack\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal position of this composite in the world.\r\n * @param {number} y - The vertical position of this composite in the world.\r\n * @param {number} columns - The number of columns in the grid.\r\n * @param {number} rows - The number of rows in the grid.\r\n * @param {number} columnGap - The distance between each column.\r\n * @param {number} rowGap - The distance between each row.\r\n * @param {function} callback - The callback that creates the stack.\r\n *\r\n * @return {MatterJS.CompositeType} A new composite containing objects created in the callback.\r\n */\r\n stack: function (x, y, columns, rows, columnGap, rowGap, callback)\r\n {\r\n var stack = Composites.stack(x, y, columns, rows, columnGap, rowGap, callback);\r\n\r\n this.world.add(stack);\r\n\r\n return stack;\r\n },\r\n\r\n /**\r\n * Create a new composite containing bodies created in the callback in a pyramid arrangement.\r\n * This function uses the body bounds to prevent overlaps.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#pyramid\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal position of this composite in the world.\r\n * @param {number} y - The vertical position of this composite in the world.\r\n * @param {number} columns - The number of columns in the pyramid.\r\n * @param {number} rows - The number of rows in the pyramid.\r\n * @param {number} columnGap - The distance between each column.\r\n * @param {number} rowGap - The distance between each row.\r\n * @param {function} callback - The callback function to be invoked.\r\n *\r\n * @return {MatterJS.CompositeType} A Matter JS Composite pyramid.\r\n */\r\n pyramid: function (x, y, columns, rows, columnGap, rowGap, callback)\r\n {\r\n var stack = Composites.pyramid(x, y, columns, rows, columnGap, rowGap, callback);\r\n\r\n this.world.add(stack);\r\n\r\n return stack;\r\n },\r\n\r\n /**\r\n * Chains all bodies in the given composite together using constraints.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#chain\r\n * @since 3.0.0\r\n *\r\n * @param {MatterJS.CompositeType} composite - The composite in which all bodies will be chained together sequentially.\r\n * @param {number} xOffsetA - The horizontal offset of the BodyA constraint. This is a percentage based on the body size, not a world position.\r\n * @param {number} yOffsetA - The vertical offset of the BodyA constraint. This is a percentage based on the body size, not a world position.\r\n * @param {number} xOffsetB - The horizontal offset of the BodyB constraint. This is a percentage based on the body size, not a world position.\r\n * @param {number} yOffsetB - The vertical offset of the BodyB constraint. This is a percentage based on the body size, not a world position.\r\n * @param {Phaser.Types.Physics.Matter.MatterConstraintConfig} [options] - An optional Constraint configuration object that is used to set initial Constraint properties on creation.\r\n *\r\n * @return {MatterJS.CompositeType} The original composite that was passed to this method.\r\n */\r\n chain: function (composite, xOffsetA, yOffsetA, xOffsetB, yOffsetB, options)\r\n {\r\n return Composites.chain(composite, xOffsetA, yOffsetA, xOffsetB, yOffsetB, options);\r\n },\r\n\r\n /**\r\n * Connects bodies in the composite with constraints in a grid pattern, with optional cross braces.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#mesh\r\n * @since 3.0.0\r\n *\r\n * @param {MatterJS.CompositeType} composite - The composite in which all bodies will be chained together.\r\n * @param {number} columns - The number of columns in the mesh.\r\n * @param {number} rows - The number of rows in the mesh.\r\n * @param {boolean} crossBrace - Create cross braces for the mesh as well?\r\n * @param {Phaser.Types.Physics.Matter.MatterConstraintConfig} [options] - An optional Constraint configuration object that is used to set initial Constraint properties on creation.\r\n *\r\n * @return {MatterJS.CompositeType} The original composite that was passed to this method.\r\n */\r\n mesh: function (composite, columns, rows, crossBrace, options)\r\n {\r\n return Composites.mesh(composite, columns, rows, crossBrace, options);\r\n },\r\n\r\n /**\r\n * Creates a composite with a Newton's Cradle setup of bodies and constraints.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#newtonsCradle\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal position of the start of the cradle.\r\n * @param {number} y - The vertical position of the start of the cradle.\r\n * @param {number} number - The number of balls in the cradle.\r\n * @param {number} size - The radius of each ball in the cradle.\r\n * @param {number} length - The length of the 'string' the balls hang from.\r\n *\r\n * @return {MatterJS.CompositeType} A Newton's cradle composite.\r\n */\r\n newtonsCradle: function (x, y, number, size, length)\r\n {\r\n var composite = Composites.newtonsCradle(x, y, number, size, length);\r\n\r\n this.world.add(composite);\r\n\r\n return composite;\r\n },\r\n\r\n /**\r\n * Creates a composite with simple car setup of bodies and constraints.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#car\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal position of the car in the world.\r\n * @param {number} y - The vertical position of the car in the world.\r\n * @param {number} width - The width of the car chasis.\r\n * @param {number} height - The height of the car chasis.\r\n * @param {number} wheelSize - The radius of the car wheels.\r\n *\r\n * @return {MatterJS.CompositeType} A new composite car body.\r\n */\r\n car: function (x, y, width, height, wheelSize)\r\n {\r\n var composite = Composites.car(x, y, width, height, wheelSize);\r\n\r\n this.world.add(composite);\r\n\r\n return composite;\r\n },\r\n\r\n /**\r\n * Creates a simple soft body like object.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#softBody\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal position of this composite in the world.\r\n * @param {number} y - The vertical position of this composite in the world.\r\n * @param {number} columns - The number of columns in the Composite.\r\n * @param {number} rows - The number of rows in the Composite.\r\n * @param {number} columnGap - The distance between each column.\r\n * @param {number} rowGap - The distance between each row.\r\n * @param {boolean} crossBrace - `true` to create cross braces between the bodies, or `false` to create just straight braces.\r\n * @param {number} particleRadius - The radius of this circlular composite.\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [particleOptions] - An optional Body configuration object that is used to set initial Body properties on creation.\r\n * @param {Phaser.Types.Physics.Matter.MatterConstraintConfig} [constraintOptions] - An optional Constraint configuration object that is used to set initial Constraint properties on creation.\r\n *\r\n * @return {MatterJS.CompositeType} A new composite simple soft body.\r\n */\r\n softBody: function (x, y, columns, rows, columnGap, rowGap, crossBrace, particleRadius, particleOptions, constraintOptions)\r\n {\r\n var composite = Composites.softBody(x, y, columns, rows, columnGap, rowGap, crossBrace, particleRadius, particleOptions, constraintOptions);\r\n\r\n this.world.add(composite);\r\n\r\n return composite;\r\n },\r\n\r\n /**\r\n * This method is an alias for `Factory.constraint`.\r\n *\r\n * Constraints (or joints) are used for specifying that a fixed distance must be maintained\r\n * between two bodies, or a body and a fixed world-space position.\r\n *\r\n * The stiffness of constraints can be modified to create springs or elastic.\r\n *\r\n * To simulate a revolute constraint (or pin joint) set `length: 0` and a high `stiffness`\r\n * value (e.g. `0.7` or above).\r\n *\r\n * If the constraint is unstable, try lowering the `stiffness` value and / or increasing\r\n * `constraintIterations` within the Matter Config.\r\n *\r\n * For compound bodies, constraints must be applied to the parent body and not one of its parts.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#joint\r\n * @since 3.0.0\r\n *\r\n * @param {MatterJS.BodyType} bodyA - The first possible `Body` that this constraint is attached to.\r\n * @param {MatterJS.BodyType} bodyB - The second possible `Body` that this constraint is attached to.\r\n * @param {number} [length] - A Number that specifies the target resting length of the constraint. If not given it is calculated automatically in `Constraint.create` from initial positions of the `constraint.bodyA` and `constraint.bodyB`.\r\n * @param {number} [stiffness=1] - A Number that specifies the stiffness of the constraint, i.e. the rate at which it returns to its resting `constraint.length`. A value of `1` means the constraint should be very stiff. A value of `0.2` means the constraint acts as a soft spring.\r\n * @param {Phaser.Types.Physics.Matter.MatterConstraintConfig} [options] - An optional Constraint configuration object that is used to set initial Constraint properties on creation.\r\n *\r\n * @return {MatterJS.ConstraintType} A Matter JS Constraint.\r\n */\r\n joint: function (bodyA, bodyB, length, stiffness, options)\r\n {\r\n return this.constraint(bodyA, bodyB, length, stiffness, options);\r\n },\r\n\r\n /**\r\n * This method is an alias for `Factory.constraint`.\r\n *\r\n * Constraints (or joints) are used for specifying that a fixed distance must be maintained\r\n * between two bodies, or a body and a fixed world-space position.\r\n *\r\n * The stiffness of constraints can be modified to create springs or elastic.\r\n *\r\n * To simulate a revolute constraint (or pin joint) set `length: 0` and a high `stiffness`\r\n * value (e.g. `0.7` or above).\r\n *\r\n * If the constraint is unstable, try lowering the `stiffness` value and / or increasing\r\n * `constraintIterations` within the Matter Config.\r\n *\r\n * For compound bodies, constraints must be applied to the parent body and not one of its parts.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#spring\r\n * @since 3.0.0\r\n *\r\n * @param {MatterJS.BodyType} bodyA - The first possible `Body` that this constraint is attached to.\r\n * @param {MatterJS.BodyType} bodyB - The second possible `Body` that this constraint is attached to.\r\n * @param {number} [length] - A Number that specifies the target resting length of the constraint. If not given it is calculated automatically in `Constraint.create` from initial positions of the `constraint.bodyA` and `constraint.bodyB`.\r\n * @param {number} [stiffness=1] - A Number that specifies the stiffness of the constraint, i.e. the rate at which it returns to its resting `constraint.length`. A value of `1` means the constraint should be very stiff. A value of `0.2` means the constraint acts as a soft spring.\r\n * @param {Phaser.Types.Physics.Matter.MatterConstraintConfig} [options] - An optional Constraint configuration object that is used to set initial Constraint properties on creation.\r\n *\r\n * @return {MatterJS.ConstraintType} A Matter JS Constraint.\r\n */\r\n spring: function (bodyA, bodyB, length, stiffness, options)\r\n {\r\n return this.constraint(bodyA, bodyB, length, stiffness, options);\r\n },\r\n\r\n /**\r\n * Constraints (or joints) are used for specifying that a fixed distance must be maintained\r\n * between two bodies, or a body and a fixed world-space position.\r\n *\r\n * The stiffness of constraints can be modified to create springs or elastic.\r\n *\r\n * To simulate a revolute constraint (or pin joint) set `length: 0` and a high `stiffness`\r\n * value (e.g. `0.7` or above).\r\n *\r\n * If the constraint is unstable, try lowering the `stiffness` value and / or increasing\r\n * `constraintIterations` within the Matter Config.\r\n *\r\n * For compound bodies, constraints must be applied to the parent body and not one of its parts.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#constraint\r\n * @since 3.0.0\r\n *\r\n * @param {MatterJS.BodyType} bodyA - The first possible `Body` that this constraint is attached to.\r\n * @param {MatterJS.BodyType} bodyB - The second possible `Body` that this constraint is attached to.\r\n * @param {number} [length] - A Number that specifies the target resting length of the constraint. If not given it is calculated automatically in `Constraint.create` from initial positions of the `constraint.bodyA` and `constraint.bodyB`.\r\n * @param {number} [stiffness=1] - A Number that specifies the stiffness of the constraint, i.e. the rate at which it returns to its resting `constraint.length`. A value of `1` means the constraint should be very stiff. A value of `0.2` means the constraint acts as a soft spring.\r\n * @param {Phaser.Types.Physics.Matter.MatterConstraintConfig} [options] - An optional Constraint configuration object that is used to set initial Constraint properties on creation.\r\n *\r\n * @return {MatterJS.ConstraintType} A Matter JS Constraint.\r\n */\r\n constraint: function (bodyA, bodyB, length, stiffness, options)\r\n {\r\n if (stiffness === undefined) { stiffness = 1; }\r\n if (options === undefined) { options = {}; }\r\n\r\n options.bodyA = (bodyA.type === 'body') ? bodyA : bodyA.body;\r\n options.bodyB = (bodyB.type === 'body') ? bodyB : bodyB.body;\r\n\r\n if (!isNaN(length))\r\n {\r\n options.length = length;\r\n }\r\n\r\n options.stiffness = stiffness;\r\n\r\n var constraint = Constraint.create(options);\r\n\r\n this.world.add(constraint);\r\n\r\n return constraint;\r\n },\r\n\r\n /**\r\n * Constraints (or joints) are used for specifying that a fixed distance must be maintained\r\n * between two bodies, or a body and a fixed world-space position.\r\n *\r\n * A world constraint has only one body, you should specify a `pointA` position in\r\n * the constraint options parameter to attach the constraint to the world.\r\n *\r\n * The stiffness of constraints can be modified to create springs or elastic.\r\n *\r\n * To simulate a revolute constraint (or pin joint) set `length: 0` and a high `stiffness`\r\n * value (e.g. `0.7` or above).\r\n *\r\n * If the constraint is unstable, try lowering the `stiffness` value and / or increasing\r\n * `constraintIterations` within the Matter Config.\r\n *\r\n * For compound bodies, constraints must be applied to the parent body and not one of its parts.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#worldConstraint\r\n * @since 3.0.0\r\n *\r\n * @param {MatterJS.BodyType} body - The Matter `Body` that this constraint is attached to.\r\n * @param {number} [length] - A number that specifies the target resting length of the constraint. If not given it is calculated automatically in `Constraint.create` from initial positions of the `constraint.bodyA` and `constraint.bodyB`.\r\n * @param {number} [stiffness=1] - A Number that specifies the stiffness of the constraint, i.e. the rate at which it returns to its resting `constraint.length`. A value of `1` means the constraint should be very stiff. A value of `0.2` means the constraint acts as a soft spring.\r\n * @param {Phaser.Types.Physics.Matter.MatterConstraintConfig} [options] - An optional Constraint configuration object that is used to set initial Constraint properties on creation.\r\n *\r\n * @return {MatterJS.ConstraintType} A Matter JS Constraint.\r\n */\r\n worldConstraint: function (body, length, stiffness, options)\r\n {\r\n if (stiffness === undefined) { stiffness = 1; }\r\n if (options === undefined) { options = {}; }\r\n\r\n options.bodyB = (body.type === 'body') ? body : body.body;\r\n\r\n if (!isNaN(length))\r\n {\r\n options.length = length;\r\n }\r\n\r\n options.stiffness = stiffness;\r\n\r\n var constraint = Constraint.create(options);\r\n\r\n this.world.add(constraint);\r\n\r\n return constraint;\r\n },\r\n\r\n /**\r\n * This method is an alias for `Factory.pointerConstraint`.\r\n *\r\n * A Pointer Constraint is a special type of constraint that allows you to click\r\n * and drag bodies in a Matter World. It monitors the active Pointers in a Scene,\r\n * and when one is pressed down it checks to see if that hit any part of any active\r\n * body in the world. If it did, and the body has input enabled, it will begin to\r\n * drag it until either released, or you stop it via the `stopDrag` method.\r\n *\r\n * You can adjust the stiffness, length and other properties of the constraint via\r\n * the `options` object on creation.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#mouseSpring\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Physics.Matter.MatterConstraintConfig} [options] - An optional Constraint configuration object that is used to set initial Constraint properties on creation.\r\n *\r\n * @return {MatterJS.ConstraintType} A Matter JS Constraint.\r\n */\r\n mouseSpring: function (options)\r\n {\r\n return this.pointerConstraint(options);\r\n },\r\n\r\n /**\r\n * A Pointer Constraint is a special type of constraint that allows you to click\r\n * and drag bodies in a Matter World. It monitors the active Pointers in a Scene,\r\n * and when one is pressed down it checks to see if that hit any part of any active\r\n * body in the world. If it did, and the body has input enabled, it will begin to\r\n * drag it until either released, or you stop it via the `stopDrag` method.\r\n *\r\n * You can adjust the stiffness, length and other properties of the constraint via\r\n * the `options` object on creation.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#pointerConstraint\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Physics.Matter.MatterConstraintConfig} [options] - An optional Constraint configuration object that is used to set initial Constraint properties on creation.\r\n *\r\n * @return {MatterJS.ConstraintType} A Matter JS Constraint.\r\n */\r\n pointerConstraint: function (options)\r\n {\r\n if (options === undefined) { options = {}; }\r\n\r\n if (!options.hasOwnProperty('render'))\r\n {\r\n options.render = { visible: false };\r\n }\r\n\r\n var pointerConstraint = new PointerConstraint(this.scene, this.world, options);\r\n\r\n this.world.add(pointerConstraint.constraint);\r\n\r\n return pointerConstraint;\r\n },\r\n\r\n /**\r\n * Creates a Matter Physics Image Game Object.\r\n *\r\n * An Image is a light-weight Game Object useful for the display of static images in your game,\r\n * such as logos, backgrounds, scenery or other non-animated elements. Images can have input\r\n * events and physics bodies, or be tweened, tinted or scrolled. The main difference between an\r\n * Image and a Sprite is that you cannot animate an Image as they do not have the Animation component.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#image\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {string} key - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - An optional frame from the Texture this Game Object is rendering with. Set to `null` to skip this value.\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.\r\n *\r\n * @return {Phaser.Physics.Matter.Image} The Matter Image Game Object.\r\n */\r\n image: function (x, y, key, frame, options)\r\n {\r\n var image = new MatterImage(this.world, x, y, key, frame, options);\r\n\r\n this.sys.displayList.add(image);\r\n\r\n return image;\r\n },\r\n\r\n /**\r\n * Creates a wrapper around a Tile that provides access to a corresponding Matter body. A tile can only\r\n * have one Matter body associated with it. You can either pass in an existing Matter body for\r\n * the tile or allow the constructor to create the corresponding body for you. If the Tile has a\r\n * collision group (defined in Tiled), those shapes will be used to create the body. If not, the\r\n * tile's rectangle bounding box will be used.\r\n *\r\n * The corresponding body will be accessible on the Tile itself via Tile.physics.matterBody.\r\n *\r\n * Note: not all Tiled collision shapes are supported. See\r\n * Phaser.Physics.Matter.TileBody#setFromTileCollision for more information.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#tileBody\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Tilemaps.Tile} tile - The target tile that should have a Matter body.\r\n * @param {Phaser.Types.Physics.Matter.MatterTileOptions} [options] - Options to be used when creating the Matter body.\r\n *\r\n * @return {Phaser.Physics.Matter.TileBody} The Matter Tile Body Game Object.\r\n */\r\n tileBody: function (tile, options)\r\n {\r\n return new MatterTileBody(this.world, tile, options);\r\n },\r\n\r\n /**\r\n * Creates a Matter Physics Sprite Game Object.\r\n *\r\n * A Sprite Game Object is used for the display of both static and animated images in your game.\r\n * Sprites can have input events and physics bodies. They can also be tweened, tinted, scrolled\r\n * and animated.\r\n *\r\n * The main difference between a Sprite and an Image Game Object is that you cannot animate Images.\r\n * As such, Sprites take a fraction longer to process and have a larger API footprint due to the Animation\r\n * Component. If you do not require animation then you can safely use Images to replace Sprites in all cases.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#sprite\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {string} key - The key of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - An optional frame from the Texture this Game Object is rendering with. Set to `null` to skip this value.\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.\r\n *\r\n * @return {Phaser.Physics.Matter.Sprite} The Matter Sprite Game Object.\r\n */\r\n sprite: function (x, y, key, frame, options)\r\n {\r\n var sprite = new MatterSprite(this.world, x, y, key, frame, options);\r\n\r\n this.sys.displayList.add(sprite);\r\n this.sys.updateList.add(sprite);\r\n\r\n return sprite;\r\n },\r\n\r\n /**\r\n * Takes an existing Game Object and injects all of the Matter Components into it.\r\n *\r\n * This enables you to use component methods such as `setVelocity` or `isSensor` directly from\r\n * this Game Object.\r\n *\r\n * You can also pass in either a Matter Body Configuration object, or a Matter Body instance\r\n * to link with this Game Object.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#gameObject\r\n * @since 3.3.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to inject the Matter Components in to.\r\n * @param {(Phaser.Types.Physics.Matter.MatterBodyConfig|MatterJS.Body)} [options] - A Matter Body configuration object, or an instance of a Matter Body.\r\n * @param {boolean} [addToWorld=true] - Add this Matter Body to the World?\r\n *\r\n * @return {(Phaser.Physics.Matter.Image|Phaser.Physics.Matter.Sprite|Phaser.GameObjects.GameObject)} The Game Object that had the Matter Components injected into it.\r\n */\r\n gameObject: function (gameObject, options, addToWorld)\r\n {\r\n return MatterGameObject(this.world, gameObject, options, addToWorld);\r\n },\r\n\r\n /**\r\n * Destroys this Factory.\r\n *\r\n * @method Phaser.Physics.Matter.Factory#destroy\r\n * @since 3.5.0\r\n */\r\n destroy: function ()\r\n {\r\n this.world = null;\r\n this.scene = null;\r\n this.sys = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Factory;\r\n\n\n/***/ }),\n\n/***/ 75803:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Components = __webpack_require__(31884);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * Internal function to check if the object has a getter or setter.\r\n *\r\n * @function hasGetterOrSetter\r\n * @private\r\n *\r\n * @param {object} def - The object to check.\r\n *\r\n * @return {boolean} True if it has a getter or setter, otherwise false.\r\n */\r\nfunction hasGetterOrSetter (def)\r\n{\r\n return (!!def.get && typeof def.get === 'function') || (!!def.set && typeof def.set === 'function');\r\n}\r\n\r\n/**\r\n * A Matter Game Object is a generic object that allows you to combine any Phaser Game Object,\r\n * including those you have extended or created yourself, with all of the Matter Components.\r\n *\r\n * This enables you to use component methods such as `setVelocity` or `isSensor` directly from\r\n * this Game Object.\r\n *\r\n * @function Phaser.Physics.Matter.MatterGameObject\r\n * @since 3.3.0\r\n *\r\n * @param {Phaser.Physics.Matter.World} world - The Matter world to add the body to.\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that will have the Matter body applied to it.\r\n * @param {(Phaser.Types.Physics.Matter.MatterBodyConfig|MatterJS.Body)} [options] - A Matter Body configuration object, or an instance of a Matter Body.\r\n * @param {boolean} [addToWorld=true] - Should the newly created body be immediately added to the World?\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object that was created with the Matter body.\r\n */\r\nvar MatterGameObject = function (world, gameObject, options, addToWorld)\r\n{\r\n if (options === undefined) { options = {}; }\r\n if (addToWorld === undefined) { addToWorld = true; }\r\n\r\n var x = gameObject.x;\r\n var y = gameObject.y;\r\n\r\n // Temp body pos to avoid body null checks\r\n gameObject.body = {\r\n temp: true,\r\n position: {\r\n x: x,\r\n y: y\r\n }\r\n };\r\n\r\n var mixins = [\r\n Components.Bounce,\r\n Components.Collision,\r\n Components.Force,\r\n Components.Friction,\r\n Components.Gravity,\r\n Components.Mass,\r\n Components.Sensor,\r\n Components.SetBody,\r\n Components.Sleep,\r\n Components.Static,\r\n Components.Transform,\r\n Components.Velocity\r\n ];\r\n\r\n // First let's inject all of the components into the Game Object\r\n mixins.forEach(function (mixin)\r\n {\r\n for (var key in mixin)\r\n {\r\n if (hasGetterOrSetter(mixin[key]))\r\n {\r\n Object.defineProperty(gameObject, key, {\r\n get: mixin[key].get,\r\n set: mixin[key].set\r\n });\r\n }\r\n else\r\n {\r\n Object.defineProperty(gameObject, key, {value: mixin[key]});\r\n }\r\n }\r\n\r\n });\r\n\r\n gameObject.world = world;\r\n\r\n gameObject._tempVec2 = new Vector2(x, y);\r\n\r\n if (options.hasOwnProperty('type') && options.type === 'body')\r\n {\r\n gameObject.setExistingBody(options, addToWorld);\r\n }\r\n else\r\n {\r\n var shape = GetFastValue(options, 'shape', null);\r\n\r\n if (!shape)\r\n {\r\n shape = 'rectangle';\r\n }\r\n\r\n options.addToWorld = addToWorld;\r\n\r\n gameObject.setBody(shape, options);\r\n }\r\n\r\n return gameObject;\r\n};\r\n\r\nmodule.exports = MatterGameObject;\r\n\n\n/***/ }),\n\n/***/ 23181:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31884);\r\nvar GameObject = __webpack_require__(95643);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar Image = __webpack_require__(88571);\r\nvar Pipeline = __webpack_require__(72699);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * A Matter Physics Image Game Object.\r\n *\r\n * An Image is a light-weight Game Object useful for the display of static images in your game,\r\n * such as logos, backgrounds, scenery or other non-animated elements. Images can have input\r\n * events and physics bodies, or be tweened, tinted or scrolled. The main difference between an\r\n * Image and a Sprite is that you cannot animate an Image as they do not have the Animation component.\r\n *\r\n * @class Image\r\n * @extends Phaser.GameObjects.Image\r\n * @memberof Phaser.Physics.Matter\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @extends Phaser.Physics.Matter.Components.Bounce\r\n * @extends Phaser.Physics.Matter.Components.Collision\r\n * @extends Phaser.Physics.Matter.Components.Force\r\n * @extends Phaser.Physics.Matter.Components.Friction\r\n * @extends Phaser.Physics.Matter.Components.Gravity\r\n * @extends Phaser.Physics.Matter.Components.Mass\r\n * @extends Phaser.Physics.Matter.Components.Sensor\r\n * @extends Phaser.Physics.Matter.Components.SetBody\r\n * @extends Phaser.Physics.Matter.Components.Sleep\r\n * @extends Phaser.Physics.Matter.Components.Static\r\n * @extends Phaser.Physics.Matter.Components.Transform\r\n * @extends Phaser.Physics.Matter.Components.Velocity\r\n * @extends Phaser.GameObjects.Components.Alpha\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.Flip\r\n * @extends Phaser.GameObjects.Components.GetBounds\r\n * @extends Phaser.GameObjects.Components.Mask\r\n * @extends Phaser.GameObjects.Components.Origin\r\n * @extends Phaser.GameObjects.Components.Pipeline\r\n * @extends Phaser.GameObjects.Components.PostPipeline\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n * @extends Phaser.GameObjects.Components.Size\r\n * @extends Phaser.GameObjects.Components.Texture\r\n * @extends Phaser.GameObjects.Components.Tint\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Physics.Matter.World} world - A reference to the Matter.World instance that this body belongs to.\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {(string|Phaser.Textures.Texture)} texture - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - An optional frame from the Texture this Game Object is rendering with.\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.\r\n */\r\nvar MatterImage = new Class({\r\n\r\n Extends: Image,\r\n\r\n Mixins: [\r\n Components.Bounce,\r\n Components.Collision,\r\n Components.Force,\r\n Components.Friction,\r\n Components.Gravity,\r\n Components.Mass,\r\n Components.Sensor,\r\n Components.SetBody,\r\n Components.Sleep,\r\n Components.Static,\r\n Components.Transform,\r\n Components.Velocity,\r\n Pipeline\r\n ],\r\n\r\n initialize:\r\n\r\n function MatterImage (world, x, y, texture, frame, options)\r\n {\r\n GameObject.call(this, world.scene, 'Image');\r\n\r\n /**\r\n * The internal crop data object, as used by `setCrop` and passed to the `Frame.setCropUVs` method.\r\n *\r\n * @name Phaser.Physics.Matter.Image#_crop\r\n * @type {object}\r\n * @private\r\n * @since 3.24.0\r\n */\r\n this._crop = this.resetCropObject();\r\n\r\n this.setTexture(texture, frame);\r\n this.setSizeToFrame();\r\n this.setOrigin();\r\n\r\n /**\r\n * A reference to the Matter.World instance that this body belongs to.\r\n *\r\n * @name Phaser.Physics.Matter.Image#world\r\n * @type {Phaser.Physics.Matter.World}\r\n * @since 3.0.0\r\n */\r\n this.world = world;\r\n\r\n /**\r\n * An internal temp vector used for velocity and force calculations.\r\n *\r\n * @name Phaser.Physics.Matter.Image#_tempVec2\r\n * @type {Phaser.Math.Vector2}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._tempVec2 = new Vector2(x, y);\r\n\r\n var shape = GetFastValue(options, 'shape', null);\r\n\r\n if (shape)\r\n {\r\n this.setBody(shape, options);\r\n }\r\n else\r\n {\r\n this.setRectangle(this.width, this.height, options);\r\n }\r\n\r\n this.setPosition(x, y);\r\n\r\n this.initPipeline();\r\n this.initPostPipeline(true);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = MatterImage;\r\n\n\n/***/ }),\n\n/***/ 42045:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar ALIGN_CONST = __webpack_require__(60461);\r\nvar Axes = __webpack_require__(66615);\r\nvar Bodies = __webpack_require__(66280);\r\nvar Body = __webpack_require__(22562);\r\nvar BodyBounds = __webpack_require__(68174);\r\nvar Bounds = __webpack_require__(15647);\r\nvar Class = __webpack_require__(83419);\r\nvar Collision = __webpack_require__(52284);\r\nvar Common = __webpack_require__(53402);\r\nvar Composite = __webpack_require__(69351);\r\nvar Composites = __webpack_require__(74116);\r\nvar Constraint = __webpack_require__(48140);\r\nvar Detector = __webpack_require__(81388);\r\nvar DistanceBetween = __webpack_require__(20339);\r\nvar Factory = __webpack_require__(28137);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar GetValue = __webpack_require__(35154);\r\nvar Merge = __webpack_require__(46975);\r\nvar Pair = __webpack_require__(4506);\r\nvar Pairs = __webpack_require__(99561);\r\nvar PluginCache = __webpack_require__(37277);\r\nvar Query = __webpack_require__(73296);\r\nvar Resolver = __webpack_require__(66272);\r\nvar SceneEvents = __webpack_require__(44594);\r\nvar Svg = __webpack_require__(74058);\r\nvar Vector = __webpack_require__(31725);\r\nvar Vertices = __webpack_require__(41598);\r\nvar World = __webpack_require__(68243);\r\n\r\nCommon.setDecomp(__webpack_require__(55973));\r\n\r\n/**\r\n * @classdesc\r\n * The Phaser Matter plugin provides the ability to use the Matter JS Physics Engine within your Phaser games.\r\n *\r\n * Unlike Arcade Physics, the other physics system provided with Phaser, Matter JS is a full-body physics system.\r\n * It features:\r\n *\r\n * * Rigid bodies\r\n * * Compound bodies\r\n * * Composite bodies\r\n * * Concave and convex hulls\r\n * * Physical properties (mass, area, density etc.)\r\n * * Restitution (elastic and inelastic collisions)\r\n * * Collisions (broad-phase, mid-phase and narrow-phase)\r\n * * Stable stacking and resting\r\n * * Conservation of momentum\r\n * * Friction and resistance\r\n * * Constraints\r\n * * Gravity\r\n * * Sleeping and static bodies\r\n * * Rounded corners (chamfering)\r\n * * Views (translate, zoom)\r\n * * Collision queries (raycasting, region tests)\r\n * * Time scaling (slow-mo, speed-up)\r\n *\r\n * Configuration of Matter is handled via the Matter World Config object, which can be passed in either the\r\n * Phaser Game Config, or Phaser Scene Config. Here is a basic example:\r\n *\r\n * ```js\r\n * physics: {\r\n * default: 'matter',\r\n * matter: {\r\n * enableSleeping: true,\r\n * gravity: {\r\n * y: 0\r\n * },\r\n * debug: {\r\n * showBody: true,\r\n * showStaticBody: true\r\n * }\r\n * }\r\n * }\r\n * ```\r\n *\r\n * This class acts as an interface between a Phaser Scene and a single instance of the Matter Engine.\r\n *\r\n * Use it to access the most common Matter features and helper functions.\r\n *\r\n * You can find details, documentation and examples on the Matter JS website: https://brm.io/matter-js/\r\n *\r\n * @class MatterPhysics\r\n * @memberof Phaser.Physics.Matter\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Phaser Scene that owns this Matter Physics instance.\r\n */\r\nvar MatterPhysics = new Class({\r\n\r\n initialize:\r\n\r\n function MatterPhysics (scene)\r\n {\r\n /**\r\n * The Phaser Scene that owns this Matter Physics instance\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.0.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * A reference to the Scene Systems that belong to the Scene owning this Matter Physics instance.\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#systems\r\n * @type {Phaser.Scenes.Systems}\r\n * @since 3.0.0\r\n */\r\n this.systems = scene.sys;\r\n\r\n /**\r\n * The parsed Matter Configuration object.\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#config\r\n * @type {Phaser.Types.Physics.Matter.MatterWorldConfig}\r\n * @since 3.0.0\r\n */\r\n this.config = this.getConfig();\r\n\r\n /**\r\n * An instance of the Matter World class. This class is responsible for the updating of the\r\n * Matter Physics world, as well as handling debug drawing functions.\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#world\r\n * @type {Phaser.Physics.Matter.World}\r\n * @since 3.0.0\r\n */\r\n this.world;\r\n\r\n /**\r\n * An instance of the Matter Factory. This class provides lots of functions for creating a\r\n * wide variety of physics objects and adds them automatically to the Matter World.\r\n *\r\n * You can use this class to cut-down on the amount of code required in your game, however,\r\n * use of the Factory is entirely optional and should be seen as a development aid. It's\r\n * perfectly possible to create and add components to the Matter world without using it.\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#add\r\n * @type {Phaser.Physics.Matter.Factory}\r\n * @since 3.0.0\r\n */\r\n this.add;\r\n\r\n /**\r\n * An instance of the Body Bounds class. This class contains functions used for getting the\r\n * world position from various points around the bounds of a physics body.\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#bodyBounds\r\n * @type {Phaser.Physics.Matter.BodyBounds}\r\n * @since 3.22.0\r\n */\r\n this.bodyBounds;\r\n\r\n // Body\r\n\r\n /**\r\n * A reference to the `Matter.Body` module.\r\n *\r\n * The `Matter.Body` module contains methods for creating and manipulating body models.\r\n * A `Matter.Body` is a rigid body that can be simulated by a `Matter.Engine`.\r\n * Factories for commonly used body configurations (such as rectangles, circles and other polygons) can be found in the `Bodies` module.\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#body\r\n * @type {MatterJS.BodyFactory}\r\n * @since 3.18.0\r\n */\r\n this.body = Body;\r\n\r\n /**\r\n * A reference to the `Matter.Composite` module.\r\n *\r\n * The `Matter.Composite` module contains methods for creating and manipulating composite bodies.\r\n * A composite body is a collection of `Matter.Body`, `Matter.Constraint` and other `Matter.Composite`, therefore composites form a tree structure.\r\n * It is important to use the functions in this module to modify composites, rather than directly modifying their properties.\r\n * Note that the `Matter.World` object is also a type of `Matter.Composite` and as such all composite methods here can also operate on a `Matter.World`.\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#composite\r\n * @type {MatterJS.CompositeFactory}\r\n * @since 3.22.0\r\n */\r\n this.composite = Composite;\r\n\r\n // Collision:\r\n\r\n /**\r\n * A reference to the `Matter.Collision` module.\r\n *\r\n * The `Matter.Collision` module contains methods for detecting collisions between a given pair of bodies.\r\n *\r\n * For efficient detection between a list of bodies, see `Matter.Detector` and `Matter.Query`.\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#collision\r\n * @type {MatterJS.Collision}\r\n * @since 3.60.0\r\n */\r\n this.collision = Collision;\r\n\r\n /**\r\n * A reference to the `Matter.Detector` module.\r\n *\r\n * The `Matter.Detector` module contains methods for detecting collisions given a set of pairs.\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#detector\r\n * @type {MatterJS.DetectorFactory}\r\n * @since 3.22.0\r\n */\r\n this.detector = Detector;\r\n\r\n /**\r\n * A reference to the `Matter.Pair` module.\r\n *\r\n * The `Matter.Pair` module contains methods for creating and manipulating collision pairs.\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#pair\r\n * @type {MatterJS.PairFactory}\r\n * @since 3.22.0\r\n */\r\n this.pair = Pair;\r\n\r\n /**\r\n * A reference to the `Matter.Pairs` module.\r\n *\r\n * The `Matter.Pairs` module contains methods for creating and manipulating collision pair sets.\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#pairs\r\n * @type {MatterJS.PairsFactory}\r\n * @since 3.22.0\r\n */\r\n this.pairs = Pairs;\r\n\r\n /**\r\n * A reference to the `Matter.Query` module.\r\n *\r\n * The `Matter.Query` module contains methods for performing collision queries.\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#query\r\n * @type {MatterJS.QueryFactory}\r\n * @since 3.22.0\r\n */\r\n this.query = Query;\r\n\r\n /**\r\n * A reference to the `Matter.Resolver` module.\r\n *\r\n * The `Matter.Resolver` module contains methods for resolving collision pairs.\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#resolver\r\n * @type {MatterJS.ResolverFactory}\r\n * @since 3.22.0\r\n */\r\n this.resolver = Resolver;\r\n\r\n // Constraint\r\n\r\n /**\r\n * A reference to the `Matter.Constraint` module.\r\n *\r\n * The `Matter.Constraint` module contains methods for creating and manipulating constraints.\r\n * Constraints are used for specifying that a fixed distance must be maintained between two bodies (or a body and a fixed world-space position).\r\n * The stiffness of constraints can be modified to create springs or elastic.\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#constraint\r\n * @type {MatterJS.ConstraintFactory}\r\n * @since 3.22.0\r\n */\r\n this.constraint = Constraint;\r\n\r\n // Factory\r\n\r\n /**\r\n * A reference to the `Matter.Bodies` module.\r\n *\r\n * The `Matter.Bodies` module contains factory methods for creating rigid bodies\r\n * with commonly used body configurations (such as rectangles, circles and other polygons).\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#bodies\r\n * @type {MatterJS.BodiesFactory}\r\n * @since 3.18.0\r\n */\r\n this.bodies = Bodies;\r\n\r\n /**\r\n * A reference to the `Matter.Composites` module.\r\n *\r\n * The `Matter.Composites` module contains factory methods for creating composite bodies\r\n * with commonly used configurations (such as stacks and chains).\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#composites\r\n * @type {MatterJS.CompositesFactory}\r\n * @since 3.22.0\r\n */\r\n this.composites = Composites;\r\n\r\n // Geometry\r\n\r\n /**\r\n * A reference to the `Matter.Axes` module.\r\n *\r\n * The `Matter.Axes` module contains methods for creating and manipulating sets of axes.\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#axes\r\n * @type {MatterJS.AxesFactory}\r\n * @since 3.22.0\r\n */\r\n this.axes = Axes;\r\n\r\n /**\r\n * A reference to the `Matter.Bounds` module.\r\n *\r\n * The `Matter.Bounds` module contains methods for creating and manipulating axis-aligned bounding boxes (AABB).\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#bounds\r\n * @type {MatterJS.BoundsFactory}\r\n * @since 3.22.0\r\n */\r\n this.bounds = Bounds;\r\n\r\n /**\r\n * A reference to the `Matter.Svg` module.\r\n *\r\n * The `Matter.Svg` module contains methods for converting SVG images into an array of vector points.\r\n *\r\n * To use this module you also need the SVGPathSeg polyfill: https://github.com/progers/pathseg\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#svg\r\n * @type {MatterJS.SvgFactory}\r\n * @since 3.22.0\r\n */\r\n this.svg = Svg;\r\n\r\n /**\r\n * A reference to the `Matter.Vector` module.\r\n *\r\n * The `Matter.Vector` module contains methods for creating and manipulating vectors.\r\n * Vectors are the basis of all the geometry related operations in the engine.\r\n * A `Matter.Vector` object is of the form `{ x: 0, y: 0 }`.\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#vector\r\n * @type {MatterJS.VectorFactory}\r\n * @since 3.22.0\r\n */\r\n this.vector = Vector;\r\n\r\n /**\r\n * A reference to the `Matter.Vertices` module.\r\n *\r\n * The `Matter.Vertices` module contains methods for creating and manipulating sets of vertices.\r\n * A set of vertices is an array of `Matter.Vector` with additional indexing properties inserted by `Vertices.create`.\r\n * A `Matter.Body` maintains a set of vertices to represent the shape of the object (its convex hull).\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#vertices\r\n * @type {MatterJS.VerticesFactory}\r\n * @since 3.22.0\r\n */\r\n this.vertices = Vertices;\r\n\r\n /**\r\n * A reference to the `Matter.Vertices` module.\r\n *\r\n * The `Matter.Vertices` module contains methods for creating and manipulating sets of vertices.\r\n * A set of vertices is an array of `Matter.Vector` with additional indexing properties inserted by `Vertices.create`.\r\n * A `Matter.Body` maintains a set of vertices to represent the shape of the object (its convex hull).\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#verts\r\n * @type {MatterJS.VerticesFactory}\r\n * @since 3.14.0\r\n */\r\n this.verts = Vertices;\r\n\r\n /**\r\n * An internal temp vector used for velocity and force calculations.\r\n *\r\n * @name Phaser.Physics.Matter.MatterPhysics#_tempVec2\r\n * @type {MatterJS.Vector}\r\n * @private\r\n * @since 3.22.0\r\n */\r\n this._tempVec2 = Vector.create();\r\n\r\n Resolver._restingThresh = GetValue(this.config, 'restingThresh', 4);\r\n Resolver._restingThreshTangent = GetValue(this.config, 'restingThreshTangent', 6);\r\n Resolver._positionDampen = GetValue(this.config, 'positionDampen', 0.9);\r\n Resolver._positionWarming = GetValue(this.config, 'positionWarming', 0.8);\r\n Resolver._frictionNormalMultiplier = GetValue(this.config, 'frictionNormalMultiplier', 5);\r\n\r\n scene.sys.events.once(SceneEvents.BOOT, this.boot, this);\r\n scene.sys.events.on(SceneEvents.START, this.start, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically, only once, when the Scene is first created.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#boot\r\n * @private\r\n * @since 3.5.1\r\n */\r\n boot: function ()\r\n {\r\n this.world = new World(this.scene, this.config);\r\n this.add = new Factory(this.world);\r\n this.bodyBounds = new BodyBounds();\r\n\r\n this.systems.events.once(SceneEvents.DESTROY, this.destroy, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically by the Scene when it is starting up.\r\n * It is responsible for creating local systems, properties and listening for Scene events.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#start\r\n * @private\r\n * @since 3.5.0\r\n */\r\n start: function ()\r\n {\r\n if (!this.world)\r\n {\r\n this.world = new World(this.scene, this.config);\r\n this.add = new Factory(this.world);\r\n }\r\n\r\n var eventEmitter = this.systems.events;\r\n\r\n eventEmitter.on(SceneEvents.UPDATE, this.world.update, this.world);\r\n eventEmitter.on(SceneEvents.POST_UPDATE, this.world.postUpdate, this.world);\r\n eventEmitter.once(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * This internal method is called when this class starts and retrieves the final Matter World Config.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#getConfig\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Types.Physics.Matter.MatterWorldConfig} The Matter World Config.\r\n */\r\n getConfig: function ()\r\n {\r\n var gameConfig = this.systems.game.config.physics;\r\n var sceneConfig = this.systems.settings.physics;\r\n\r\n var config = Merge(\r\n GetFastValue(sceneConfig, 'matter', {}),\r\n GetFastValue(gameConfig, 'matter', {})\r\n );\r\n\r\n return config;\r\n },\r\n\r\n /**\r\n * Pauses the Matter World instance and sets `enabled` to `false`.\r\n *\r\n * A paused world will not run any simulations for the duration it is paused.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#pause\r\n * @fires Phaser.Physics.Matter.Events#PAUSE\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Physics.Matter.World} The Matter World object.\r\n */\r\n pause: function ()\r\n {\r\n return this.world.pause();\r\n },\r\n\r\n /**\r\n * Resumes this Matter World instance from a paused state and sets `enabled` to `true`.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#resume\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Physics.Matter.World} The Matter World object.\r\n */\r\n resume: function ()\r\n {\r\n return this.world.resume();\r\n },\r\n\r\n /**\r\n * Sets the Matter Engine to run at fixed timestep of 60Hz and enables `autoUpdate`.\r\n * If you have set a custom `getDelta` function then this will override it.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#set60Hz\r\n * @since 3.4.0\r\n *\r\n * @return {this} This Matter Physics instance.\r\n */\r\n set60Hz: function ()\r\n {\r\n this.world.getDelta = this.world.update60Hz;\r\n this.world.autoUpdate = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the Matter Engine to run at fixed timestep of 30Hz and enables `autoUpdate`.\r\n * If you have set a custom `getDelta` function then this will override it.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#set30Hz\r\n * @since 3.4.0\r\n *\r\n * @return {this} This Matter Physics instance.\r\n */\r\n set30Hz: function ()\r\n {\r\n this.world.getDelta = this.world.update30Hz;\r\n this.world.autoUpdate = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Manually advances the physics simulation by one iteration.\r\n *\r\n * You can optionally pass in the `delta` and `correction` values to be used by Engine.update.\r\n * If undefined they use the Matter defaults of 60Hz and no correction.\r\n *\r\n * Calling `step` directly bypasses any checks of `enabled` or `autoUpdate`.\r\n *\r\n * It also ignores any custom `getDelta` functions, as you should be passing the delta\r\n * value in to this call.\r\n *\r\n * You can adjust the number of iterations that Engine.update performs internally.\r\n * Use the Scene Matter Physics config object to set the following properties:\r\n *\r\n * positionIterations (defaults to 6)\r\n * velocityIterations (defaults to 4)\r\n * constraintIterations (defaults to 2)\r\n *\r\n * Adjusting these values can help performance in certain situations, depending on the physics requirements\r\n * of your game.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#step\r\n * @since 3.4.0\r\n *\r\n * @param {number} [delta=16.666] - The delta value.\r\n * @param {number} [correction=1] - Optional delta correction value.\r\n */\r\n step: function (delta, correction)\r\n {\r\n this.world.step(delta, correction);\r\n },\r\n\r\n /**\r\n * Checks if the vertices of the given body, or an array of bodies, contains the given point, or not.\r\n *\r\n * You can pass in either a single body, or an array of bodies to be checked. This method will\r\n * return `true` if _any_ of the bodies in the array contain the point. See the `intersectPoint` method if you need\r\n * to get a list of intersecting bodies.\r\n *\r\n * The point should be transformed into the Matter World coordinate system in advance. This happens by\r\n * default with Input Pointers, but if you wish to use points from another system you may need to\r\n * transform them before passing them.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#containsPoint\r\n * @since 3.22.0\r\n *\r\n * @param {(Phaser.Types.Physics.Matter.MatterBody|Phaser.Types.Physics.Matter.MatterBody[])} body - The body, or an array of bodies, to check against the point.\r\n * @param {number} x - The horizontal coordinate of the point.\r\n * @param {number} y - The vertical coordinate of the point.\r\n *\r\n * @return {boolean} `true` if the point is within one of the bodies given, otherwise `false`.\r\n */\r\n containsPoint: function (body, x, y)\r\n {\r\n body = this.getMatterBodies(body);\r\n\r\n var position = Vector.create(x, y);\r\n\r\n var result = Query.point(body, position);\r\n\r\n return (result.length > 0) ? true : false;\r\n },\r\n\r\n /**\r\n * Checks the given coordinates to see if any vertices of the given bodies contain it.\r\n *\r\n * If no bodies are provided it will search all bodies in the Matter World, including within Composites.\r\n *\r\n * The coordinates should be transformed into the Matter World coordinate system in advance. This happens by\r\n * default with Input Pointers, but if you wish to use coordinates from another system you may need to\r\n * transform them before passing them.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#intersectPoint\r\n * @since 3.22.0\r\n *\r\n * @param {number} x - The horizontal coordinate of the point.\r\n * @param {number} y - The vertical coordinate of the point.\r\n * @param {Phaser.Types.Physics.Matter.MatterBody[]} [bodies] - An array of bodies to check. If not provided it will search all bodies in the world.\r\n *\r\n * @return {Phaser.Types.Physics.Matter.MatterBody[]} An array of bodies which contain the given point.\r\n */\r\n intersectPoint: function (x, y, bodies)\r\n {\r\n bodies = this.getMatterBodies(bodies);\r\n\r\n var position = Vector.create(x, y);\r\n\r\n var output = [];\r\n\r\n var result = Query.point(bodies, position);\r\n\r\n result.forEach(function (body)\r\n {\r\n if (output.indexOf(body) === -1)\r\n {\r\n output.push(body);\r\n }\r\n });\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Checks the given rectangular area to see if any vertices of the given bodies intersect with it.\r\n * Or, if the `outside` parameter is set to `true`, it checks to see which bodies do not\r\n * intersect with it.\r\n *\r\n * If no bodies are provided it will search all bodies in the Matter World, including within Composites.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#intersectRect\r\n * @since 3.22.0\r\n *\r\n * @param {number} x - The horizontal coordinate of the top-left of the area.\r\n * @param {number} y - The vertical coordinate of the top-left of the area.\r\n * @param {number} width - The width of the area.\r\n * @param {number} height - The height of the area.\r\n * @param {boolean} [outside=false] - If `false` it checks for vertices inside the area, if `true` it checks for vertices outside the area.\r\n * @param {Phaser.Types.Physics.Matter.MatterBody[]} [bodies] - An array of bodies to check. If not provided it will search all bodies in the world.\r\n *\r\n * @return {Phaser.Types.Physics.Matter.MatterBody[]} An array of bodies that intersect with the given area.\r\n */\r\n intersectRect: function (x, y, width, height, outside, bodies)\r\n {\r\n if (outside === undefined) { outside = false; }\r\n\r\n bodies = this.getMatterBodies(bodies);\r\n\r\n var bounds = {\r\n min: { x: x, y: y },\r\n max: { x: x + width, y: y + height }\r\n };\r\n\r\n var output = [];\r\n\r\n var result = Query.region(bodies, bounds, outside);\r\n\r\n result.forEach(function (body)\r\n {\r\n if (output.indexOf(body) === -1)\r\n {\r\n output.push(body);\r\n }\r\n });\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Checks the given ray segment to see if any vertices of the given bodies intersect with it.\r\n *\r\n * If no bodies are provided it will search all bodies in the Matter World.\r\n *\r\n * The width of the ray can be specified via the `rayWidth` parameter.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#intersectRay\r\n * @since 3.22.0\r\n *\r\n * @param {number} x1 - The horizontal coordinate of the start of the ray segment.\r\n * @param {number} y1 - The vertical coordinate of the start of the ray segment.\r\n * @param {number} x2 - The horizontal coordinate of the end of the ray segment.\r\n * @param {number} y2 - The vertical coordinate of the end of the ray segment.\r\n * @param {number} [rayWidth=1] - The width of the ray segment.\r\n * @param {Phaser.Types.Physics.Matter.MatterBody[]} [bodies] - An array of bodies to check. If not provided it will search all bodies in the world.\r\n *\r\n * @return {Phaser.Types.Physics.Matter.MatterBody[]} An array of bodies whos vertices intersect with the ray segment.\r\n */\r\n intersectRay: function (x1, y1, x2, y2, rayWidth, bodies)\r\n {\r\n if (rayWidth === undefined) { rayWidth = 1; }\r\n\r\n bodies = this.getMatterBodies(bodies);\r\n\r\n var result = [];\r\n var collisions = Query.ray(bodies, Vector.create(x1, y1), Vector.create(x2, y2), rayWidth);\r\n\r\n for (var i = 0; i < collisions.length; i++)\r\n {\r\n result.push(collisions[i].body);\r\n }\r\n\r\n return result;\r\n },\r\n\r\n /**\r\n * Checks the given Matter Body to see if it intersects with any of the given bodies.\r\n *\r\n * If no bodies are provided it will check against all bodies in the Matter World.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#intersectBody\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Types.Physics.Matter.MatterBody} body - The target body.\r\n * @param {Phaser.Types.Physics.Matter.MatterBody[]} [bodies] - An array of bodies to check the target body against. If not provided it will search all bodies in the world.\r\n *\r\n * @return {Phaser.Types.Physics.Matter.MatterBody[]} An array of bodies whos vertices intersect with target body.\r\n */\r\n intersectBody: function (body, bodies)\r\n {\r\n bodies = this.getMatterBodies(bodies);\r\n\r\n var result = [];\r\n var collisions = Query.collides(body, bodies);\r\n\r\n for (var i = 0; i < collisions.length; i++)\r\n {\r\n var pair = collisions[i];\r\n\r\n if (pair.bodyA === body)\r\n {\r\n result.push(pair.bodyB);\r\n }\r\n else\r\n {\r\n result.push(pair.bodyA);\r\n }\r\n }\r\n\r\n return result;\r\n },\r\n\r\n /**\r\n * Checks to see if the target body, or an array of target bodies, intersects with any of the given bodies.\r\n *\r\n * If intersection occurs this method will return `true` and, if provided, invoke the callbacks.\r\n *\r\n * If no bodies are provided for the second parameter the target will check against all bodies in the Matter World.\r\n *\r\n * **Note that bodies can only overlap if they are in non-colliding collision groups or categories.**\r\n *\r\n * If you provide a `processCallback` then the two bodies that overlap are sent to it. This callback\r\n * must return a boolean and is used to allow you to perform additional processing tests before a final\r\n * outcome is decided. If it returns `true` then the bodies are finally passed to the `overlapCallback`, if set.\r\n *\r\n * If you provide an `overlapCallback` then the matching pairs of overlapping bodies will be sent to it.\r\n *\r\n * Both callbacks have the following signature: `function (bodyA, bodyB, collisionInfo)` where `bodyA` is always\r\n * the target body. The `collisionInfo` object contains additional data, such as the angle and depth of penetration.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#overlap\r\n * @since 3.22.0\r\n *\r\n * @param {(Phaser.Types.Physics.Matter.MatterBody|Phaser.Types.Physics.Matter.MatterBody[])} target - The target body, or array of target bodies, to check.\r\n * @param {Phaser.Types.Physics.Matter.MatterBody[]} [bodies] - The second body, or array of bodies, to check. If falsey it will check against all bodies in the world.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [overlapCallback] - An optional callback function that is called if the bodies overlap.\r\n * @param {Phaser.Types.Physics.Arcade.ArcadePhysicsCallback} [processCallback] - An optional callback function that lets you perform additional checks against the two bodies if they overlap. If this is set then `overlapCallback` will only be invoked if this callback returns `true`.\r\n * @param {*} [callbackContext] - The context, or scope, in which to run the callbacks.\r\n *\r\n * @return {boolean} `true` if the target body intersects with _any_ of the bodies given, otherwise `false`.\r\n */\r\n overlap: function (target, bodies, overlapCallback, processCallback, callbackContext)\r\n {\r\n if (overlapCallback === undefined) { overlapCallback = null; }\r\n if (processCallback === undefined) { processCallback = null; }\r\n if (callbackContext === undefined) { callbackContext = overlapCallback; }\r\n\r\n if (!Array.isArray(target))\r\n {\r\n target = [ target ];\r\n }\r\n\r\n target = this.getMatterBodies(target);\r\n bodies = this.getMatterBodies(bodies);\r\n\r\n var match = false;\r\n\r\n for (var i = 0; i < target.length; i++)\r\n {\r\n var entry = target[i];\r\n\r\n var collisions = Query.collides(entry, bodies);\r\n\r\n for (var c = 0; c < collisions.length; c++)\r\n {\r\n var info = collisions[c];\r\n var bodyB = (info.bodyA.id === entry.id) ? info.bodyB : info.bodyA;\r\n\r\n if (!processCallback || processCallback.call(callbackContext, entry, bodyB, info))\r\n {\r\n match = true;\r\n\r\n if (overlapCallback)\r\n {\r\n overlapCallback.call(callbackContext, entry, bodyB, info);\r\n }\r\n else if (!processCallback)\r\n {\r\n // If there are no callbacks we don't need to test every body, just exit when the first is found\r\n return true;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return match;\r\n },\r\n\r\n /**\r\n * Sets the collision filter category of all given Matter Bodies to the given value.\r\n *\r\n * This number must be a power of two between 2^0 (= 1) and 2^31.\r\n *\r\n * Bodies with different collision groups (see {@link #setCollisionGroup}) will only collide if their collision\r\n * categories are included in their collision masks (see {@link #setCollidesWith}).\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#setCollisionCategory\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Types.Physics.Matter.MatterBody[]} bodies - An array of bodies to update. If falsey it will use all bodies in the world.\r\n * @param {number} value - Unique category bitfield.\r\n *\r\n * @return {this} This Matter Physics instance.\r\n */\r\n setCollisionCategory: function (bodies, value)\r\n {\r\n bodies = this.getMatterBodies(bodies);\r\n\r\n bodies.forEach(function (body)\r\n {\r\n body.collisionFilter.category = value;\r\n });\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the collision filter group of all given Matter Bodies to the given value.\r\n *\r\n * If the group value is zero, or if two Matter Bodies have different group values,\r\n * they will collide according to the usual collision filter rules (see {@link #setCollisionCategory} and {@link #setCollisionGroup}).\r\n *\r\n * If two Matter Bodies have the same positive group value, they will always collide;\r\n * if they have the same negative group value they will never collide.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#setCollisionGroup\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Types.Physics.Matter.MatterBody[]} bodies - An array of bodies to update. If falsey it will use all bodies in the world.\r\n * @param {number} value - Unique group index.\r\n *\r\n * @return {this} This Matter Physics instance.\r\n */\r\n setCollisionGroup: function (bodies, value)\r\n {\r\n bodies = this.getMatterBodies(bodies);\r\n\r\n bodies.forEach(function (body)\r\n {\r\n body.collisionFilter.group = value;\r\n });\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the collision filter mask of all given Matter Bodies to the given value.\r\n *\r\n * Two Matter Bodies with different collision groups will only collide if each one includes the others\r\n * category in its mask based on a bitwise AND operation: `(categoryA & maskB) !== 0` and\r\n * `(categoryB & maskA) !== 0` are both true.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#setCollidesWith\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Types.Physics.Matter.MatterBody[]} bodies - An array of bodies to update. If falsey it will use all bodies in the world.\r\n * @param {(number|number[])} categories - A unique category bitfield, or an array of them.\r\n *\r\n * @return {this} This Matter Physics instance.\r\n */\r\n setCollidesWith: function (bodies, categories)\r\n {\r\n bodies = this.getMatterBodies(bodies);\r\n\r\n var flags = 0;\r\n\r\n if (!Array.isArray(categories))\r\n {\r\n flags = categories;\r\n }\r\n else\r\n {\r\n for (var i = 0; i < categories.length; i++)\r\n {\r\n flags |= categories[i];\r\n }\r\n }\r\n\r\n bodies.forEach(function (body)\r\n {\r\n body.collisionFilter.mask = flags;\r\n });\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes an array and returns a new array made from all of the Matter Bodies found in the original array.\r\n *\r\n * For example, passing in Matter Game Objects, such as a bunch of Matter Sprites, to this method, would\r\n * return an array containing all of their native Matter Body objects.\r\n *\r\n * If the `bodies` argument is falsey, it will return all bodies in the world.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#getMatterBodies\r\n * @since 3.22.0\r\n *\r\n * @param {array} [bodies] - An array of objects to extract the bodies from. If falsey, it will return all bodies in the world.\r\n *\r\n * @return {MatterJS.BodyType[]} An array of native Matter Body objects.\r\n */\r\n getMatterBodies: function (bodies)\r\n {\r\n if (!bodies)\r\n {\r\n return this.world.getAllBodies();\r\n }\r\n\r\n if (!Array.isArray(bodies))\r\n {\r\n bodies = [ bodies ];\r\n }\r\n\r\n var output = [];\r\n\r\n for (var i = 0; i < bodies.length; i++)\r\n {\r\n var body = (bodies[i].hasOwnProperty('body')) ? bodies[i].body : bodies[i];\r\n\r\n output.push(body);\r\n }\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Sets both the horizontal and vertical linear velocity of the physics bodies.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#setVelocity\r\n * @since 3.22.0\r\n *\r\n * @param {(Phaser.Types.Physics.Matter.MatterBody|Phaser.Types.Physics.Matter.MatterBody[])} bodies - Either a single Body, or an array of bodies to update. If falsey it will use all bodies in the world.\r\n * @param {number} x - The horizontal linear velocity value.\r\n * @param {number} y - The vertical linear velocity value.\r\n *\r\n * @return {this} This Matter Physics instance.\r\n */\r\n setVelocity: function (bodies, x, y)\r\n {\r\n bodies = this.getMatterBodies(bodies);\r\n\r\n var vec2 = this._tempVec2;\r\n\r\n vec2.x = x;\r\n vec2.y = y;\r\n\r\n bodies.forEach(function (body)\r\n {\r\n Body.setVelocity(body, vec2);\r\n });\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets just the horizontal linear velocity of the physics bodies.\r\n * The vertical velocity of the body is unchanged.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#setVelocityX\r\n * @since 3.22.0\r\n *\r\n * @param {(Phaser.Types.Physics.Matter.MatterBody|Phaser.Types.Physics.Matter.MatterBody[])} bodies - Either a single Body, or an array of bodies to update. If falsey it will use all bodies in the world.\r\n * @param {number} x - The horizontal linear velocity value.\r\n *\r\n * @return {this} This Matter Physics instance.\r\n */\r\n setVelocityX: function (bodies, x)\r\n {\r\n bodies = this.getMatterBodies(bodies);\r\n\r\n var vec2 = this._tempVec2;\r\n\r\n vec2.x = x;\r\n\r\n bodies.forEach(function (body)\r\n {\r\n vec2.y = body.velocity.y;\r\n Body.setVelocity(body, vec2);\r\n });\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets just the vertical linear velocity of the physics bodies.\r\n * The horizontal velocity of the body is unchanged.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#setVelocityY\r\n * @since 3.22.0\r\n *\r\n * @param {(Phaser.Types.Physics.Matter.MatterBody|Phaser.Types.Physics.Matter.MatterBody[])} bodies - Either a single Body, or an array of bodies to update. If falsey it will use all bodies in the world.\r\n * @param {number} y - The vertical linear velocity value.\r\n *\r\n * @return {this} This Matter Physics instance.\r\n */\r\n setVelocityY: function (bodies, y)\r\n {\r\n bodies = this.getMatterBodies(bodies);\r\n\r\n var vec2 = this._tempVec2;\r\n\r\n vec2.y = y;\r\n\r\n bodies.forEach(function (body)\r\n {\r\n vec2.x = body.velocity.x;\r\n Body.setVelocity(body, vec2);\r\n });\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the angular velocity of the bodies instantly.\r\n * Position, angle, force etc. are unchanged.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#setAngularVelocity\r\n * @since 3.22.0\r\n *\r\n * @param {(Phaser.Types.Physics.Matter.MatterBody|Phaser.Types.Physics.Matter.MatterBody[])} bodies - Either a single Body, or an array of bodies to update. If falsey it will use all bodies in the world.\r\n * @param {number} value - The angular velocity.\r\n *\r\n * @return {this} This Matter Physics instance.\r\n */\r\n setAngularVelocity: function (bodies, value)\r\n {\r\n bodies = this.getMatterBodies(bodies);\r\n\r\n bodies.forEach(function (body)\r\n {\r\n Body.setAngularVelocity(body, value);\r\n });\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Applies a force to a body, at the bodies current position, including resulting torque.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#applyForce\r\n * @since 3.22.0\r\n *\r\n * @param {(Phaser.Types.Physics.Matter.MatterBody|Phaser.Types.Physics.Matter.MatterBody[])} bodies - Either a single Body, or an array of bodies to update. If falsey it will use all bodies in the world.\r\n * @param {Phaser.Types.Math.Vector2Like} force - A Vector that specifies the force to apply.\r\n *\r\n * @return {this} This Matter Physics instance.\r\n */\r\n applyForce: function (bodies, force)\r\n {\r\n bodies = this.getMatterBodies(bodies);\r\n\r\n var vec2 = this._tempVec2;\r\n\r\n bodies.forEach(function (body)\r\n {\r\n vec2.x = body.position.x;\r\n vec2.y = body.position.y;\r\n\r\n Body.applyForce(body, vec2, force);\r\n });\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Applies a force to a body, from the given world position, including resulting torque.\r\n * If no angle is given, the current body angle is used.\r\n *\r\n * Use very small speed values, such as 0.1, depending on the mass and required velocity.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#applyForceFromPosition\r\n * @since 3.22.0\r\n *\r\n * @param {(Phaser.Types.Physics.Matter.MatterBody|Phaser.Types.Physics.Matter.MatterBody[])} bodies - Either a single Body, or an array of bodies to update. If falsey it will use all bodies in the world.\r\n * @param {Phaser.Types.Math.Vector2Like} position - A Vector that specifies the world-space position to apply the force at.\r\n * @param {number} speed - A speed value to be applied to a directional force.\r\n * @param {number} [angle] - The angle, in radians, to apply the force from. Leave undefined to use the current body angle.\r\n *\r\n * @return {this} This Matter Physics instance.\r\n */\r\n applyForceFromPosition: function (bodies, position, speed, angle)\r\n {\r\n bodies = this.getMatterBodies(bodies);\r\n\r\n var vec2 = this._tempVec2;\r\n\r\n bodies.forEach(function (body)\r\n {\r\n if (angle === undefined)\r\n {\r\n angle = body.angle;\r\n }\r\n\r\n vec2.x = speed * Math.cos(angle);\r\n vec2.y = speed * Math.sin(angle);\r\n\r\n Body.applyForce(body, position, vec2);\r\n });\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Apply a force to a body based on the given angle and speed.\r\n * If no angle is given, the current body angle is used.\r\n *\r\n * Use very small speed values, such as 0.1, depending on the mass and required velocity.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#applyForceFromAngle\r\n * @since 3.22.0\r\n *\r\n * @param {(Phaser.Types.Physics.Matter.MatterBody|Phaser.Types.Physics.Matter.MatterBody[])} bodies - Either a single Body, or an array of bodies to update. If falsey it will use all bodies in the world.\r\n * @param {number} speed - A speed value to be applied to a directional force.\r\n * @param {number} [angle] - The angle, in radians, to apply the force from. Leave undefined to use the current body angle.\r\n *\r\n * @return {this} This Matter Physics instance.\r\n */\r\n applyForceFromAngle: function (bodies, speed, angle)\r\n {\r\n bodies = this.getMatterBodies(bodies);\r\n\r\n var vec2 = this._tempVec2;\r\n\r\n bodies.forEach(function (body)\r\n {\r\n if (angle === undefined)\r\n {\r\n angle = body.angle;\r\n }\r\n\r\n vec2.x = speed * Math.cos(angle);\r\n vec2.y = speed * Math.sin(angle);\r\n\r\n Body.applyForce(body, { x: body.position.x, y: body.position.y }, vec2);\r\n });\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns the length of the given constraint, which is the distance between the two points.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#getConstraintLength\r\n * @since 3.22.0\r\n *\r\n * @param {MatterJS.ConstraintType} constraint - The constraint to get the length from.\r\n *\r\n * @return {number} The length of the constraint.\r\n */\r\n getConstraintLength: function (constraint)\r\n {\r\n var aX = constraint.pointA.x;\r\n var aY = constraint.pointA.y;\r\n var bX = constraint.pointB.x;\r\n var bY = constraint.pointB.y;\r\n\r\n if (constraint.bodyA)\r\n {\r\n aX += constraint.bodyA.position.x;\r\n aY += constraint.bodyA.position.y;\r\n }\r\n\r\n if (constraint.bodyB)\r\n {\r\n bX += constraint.bodyB.position.x;\r\n bY += constraint.bodyB.position.y;\r\n }\r\n\r\n return DistanceBetween(aX, aY, bX, bY);\r\n },\r\n\r\n /**\r\n * Aligns a Body, or Matter Game Object, against the given coordinates.\r\n *\r\n * The alignment takes place using the body bounds, which take into consideration things\r\n * like body scale and rotation.\r\n *\r\n * Although a Body has a `position` property, it is based on the center of mass for the body,\r\n * not a dimension based center. This makes aligning bodies difficult, especially if they have\r\n * rotated or scaled. This method will derive the correct position based on the body bounds and\r\n * its center of mass offset, in order to align the body with the given coordinate.\r\n *\r\n * For example, if you wanted to align a body so it sat in the bottom-center of the\r\n * Scene, and the world was 800 x 600 in size:\r\n *\r\n * ```javascript\r\n * this.matter.alignBody(body, 400, 600, Phaser.Display.Align.BOTTOM_CENTER);\r\n * ```\r\n *\r\n * You pass in 400 for the x coordinate, because that is the center of the world, and 600 for\r\n * the y coordinate, as that is the base of the world.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#alignBody\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Types.Physics.Matter.MatterBody} body - The Body to align.\r\n * @param {number} x - The horizontal position to align the body to.\r\n * @param {number} y - The vertical position to align the body to.\r\n * @param {number} align - One of the `Phaser.Display.Align` constants, such as `Phaser.Display.Align.TOP_LEFT`.\r\n *\r\n * @return {this} This Matter Physics instance.\r\n */\r\n alignBody: function (body, x, y, align)\r\n {\r\n body = (body.hasOwnProperty('body')) ? body.body : body;\r\n\r\n var pos;\r\n\r\n switch (align)\r\n {\r\n case ALIGN_CONST.TOP_LEFT:\r\n case ALIGN_CONST.LEFT_TOP:\r\n pos = this.bodyBounds.getTopLeft(body, x, y);\r\n break;\r\n\r\n case ALIGN_CONST.TOP_CENTER:\r\n pos = this.bodyBounds.getTopCenter(body, x, y);\r\n break;\r\n\r\n case ALIGN_CONST.TOP_RIGHT:\r\n case ALIGN_CONST.RIGHT_TOP:\r\n pos = this.bodyBounds.getTopRight(body, x, y);\r\n break;\r\n\r\n case ALIGN_CONST.LEFT_CENTER:\r\n pos = this.bodyBounds.getLeftCenter(body, x, y);\r\n break;\r\n\r\n case ALIGN_CONST.CENTER:\r\n pos = this.bodyBounds.getCenter(body, x, y);\r\n break;\r\n\r\n case ALIGN_CONST.RIGHT_CENTER:\r\n pos = this.bodyBounds.getRightCenter(body, x, y);\r\n break;\r\n\r\n case ALIGN_CONST.LEFT_BOTTOM:\r\n case ALIGN_CONST.BOTTOM_LEFT:\r\n pos = this.bodyBounds.getBottomLeft(body, x, y);\r\n break;\r\n\r\n case ALIGN_CONST.BOTTOM_CENTER:\r\n pos = this.bodyBounds.getBottomCenter(body, x, y);\r\n break;\r\n\r\n case ALIGN_CONST.BOTTOM_RIGHT:\r\n case ALIGN_CONST.RIGHT_BOTTOM:\r\n pos = this.bodyBounds.getBottomRight(body, x, y);\r\n break;\r\n }\r\n\r\n if (pos)\r\n {\r\n Body.setPosition(body, pos);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is shutting down.\r\n * We need to kill and reset all internal properties as well as stop listening to Scene events.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#shutdown\r\n * @private\r\n * @since 3.0.0\r\n */\r\n shutdown: function ()\r\n {\r\n var eventEmitter = this.systems.events;\r\n\r\n if (this.world)\r\n {\r\n eventEmitter.off(SceneEvents.UPDATE, this.world.update, this.world);\r\n eventEmitter.off(SceneEvents.POST_UPDATE, this.world.postUpdate, this.world);\r\n }\r\n\r\n eventEmitter.off(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n\r\n if (this.add)\r\n {\r\n this.add.destroy();\r\n }\r\n\r\n if (this.world)\r\n {\r\n this.world.destroy();\r\n }\r\n\r\n this.add = null;\r\n this.world = null;\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is being destroyed.\r\n * We need to shutdown and then kill off all external references.\r\n *\r\n * @method Phaser.Physics.Matter.MatterPhysics#destroy\r\n * @private\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.shutdown();\r\n\r\n this.scene.sys.events.off(SceneEvents.START, this.start, this);\r\n\r\n this.scene = null;\r\n this.systems = null;\r\n }\r\n\r\n});\r\n\r\nPluginCache.register('MatterPhysics', MatterPhysics, 'matterPhysics');\r\n\r\nmodule.exports = MatterPhysics;\r\n\n\n/***/ }),\n\n/***/ 34803:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar AnimationState = __webpack_require__(9674);\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31884);\r\nvar GameObject = __webpack_require__(95643);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar Pipeline = __webpack_require__(72699);\r\nvar Sprite = __webpack_require__(68287);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * A Matter Physics Sprite Game Object.\r\n *\r\n * A Sprite Game Object is used for the display of both static and animated images in your game.\r\n * Sprites can have input events and physics bodies. They can also be tweened, tinted, scrolled\r\n * and animated.\r\n *\r\n * The main difference between a Sprite and an Image Game Object is that you cannot animate Images.\r\n * As such, Sprites take a fraction longer to process and have a larger API footprint due to the Animation\r\n * Component. If you do not require animation then you can safely use Images to replace Sprites in all cases.\r\n *\r\n * @class Sprite\r\n * @extends Phaser.GameObjects.Sprite\r\n * @memberof Phaser.Physics.Matter\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @extends Phaser.Physics.Matter.Components.Bounce\r\n * @extends Phaser.Physics.Matter.Components.Collision\r\n * @extends Phaser.Physics.Matter.Components.Force\r\n * @extends Phaser.Physics.Matter.Components.Friction\r\n * @extends Phaser.Physics.Matter.Components.Gravity\r\n * @extends Phaser.Physics.Matter.Components.Mass\r\n * @extends Phaser.Physics.Matter.Components.Sensor\r\n * @extends Phaser.Physics.Matter.Components.SetBody\r\n * @extends Phaser.Physics.Matter.Components.Sleep\r\n * @extends Phaser.Physics.Matter.Components.Static\r\n * @extends Phaser.Physics.Matter.Components.Transform\r\n * @extends Phaser.Physics.Matter.Components.Velocity\r\n * @extends Phaser.GameObjects.Components.Alpha\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.Flip\r\n * @extends Phaser.GameObjects.Components.GetBounds\r\n * @extends Phaser.GameObjects.Components.Mask\r\n * @extends Phaser.GameObjects.Components.Origin\r\n * @extends Phaser.GameObjects.Components.Pipeline\r\n * @extends Phaser.GameObjects.Components.PostPipeline\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n * @extends Phaser.GameObjects.Components.Size\r\n * @extends Phaser.GameObjects.Components.Texture\r\n * @extends Phaser.GameObjects.Components.Tint\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Physics.Matter.World} world - A reference to the Matter.World instance that this body belongs to.\r\n * @param {number} x - The horizontal position of this Game Object in the world.\r\n * @param {number} y - The vertical position of this Game Object in the world.\r\n * @param {(string|Phaser.Textures.Texture)} texture - The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - An optional frame from the Texture this Game Object is rendering with.\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.\r\n */\r\nvar MatterSprite = new Class({\r\n\r\n Extends: Sprite,\r\n\r\n Mixins: [\r\n Components.Bounce,\r\n Components.Collision,\r\n Components.Force,\r\n Components.Friction,\r\n Components.Gravity,\r\n Components.Mass,\r\n Components.Sensor,\r\n Components.SetBody,\r\n Components.Sleep,\r\n Components.Static,\r\n Components.Transform,\r\n Components.Velocity,\r\n Pipeline\r\n ],\r\n\r\n initialize:\r\n\r\n function MatterSprite (world, x, y, texture, frame, options)\r\n {\r\n GameObject.call(this, world.scene, 'Sprite');\r\n\r\n /**\r\n * The internal crop data object, as used by `setCrop` and passed to the `Frame.setCropUVs` method.\r\n *\r\n * @name Phaser.Physics.Matter.Sprite#_crop\r\n * @type {object}\r\n * @private\r\n * @since 3.24.0\r\n */\r\n this._crop = this.resetCropObject();\r\n\r\n this.anims = new AnimationState(this);\r\n\r\n this.setTexture(texture, frame);\r\n this.setSizeToFrame();\r\n this.setOrigin();\r\n\r\n /**\r\n * A reference to the Matter.World instance that this body belongs to.\r\n *\r\n * @name Phaser.Physics.Matter.Sprite#world\r\n * @type {Phaser.Physics.Matter.World}\r\n * @since 3.0.0\r\n */\r\n this.world = world;\r\n\r\n /**\r\n * An internal temp vector used for velocity and force calculations.\r\n *\r\n * @name Phaser.Physics.Matter.Sprite#_tempVec2\r\n * @type {Phaser.Math.Vector2}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._tempVec2 = new Vector2(x, y);\r\n\r\n var shape = GetFastValue(options, 'shape', null);\r\n\r\n if (shape)\r\n {\r\n this.setBody(shape, options);\r\n }\r\n else\r\n {\r\n this.setRectangle(this.width, this.height, options);\r\n }\r\n\r\n this.setPosition(x, y);\r\n\r\n this.initPipeline();\r\n this.initPostPipeline(true);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = MatterSprite;\r\n\n\n/***/ }),\n\n/***/ 73834:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Bodies = __webpack_require__(66280);\r\nvar Body = __webpack_require__(22562);\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31884);\r\nvar DeepCopy = __webpack_require__(62644);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar HasValue = __webpack_require__(97022);\r\nvar Vertices = __webpack_require__(41598);\r\n\r\n/**\r\n * @classdesc\r\n * A wrapper around a Tile that provides access to a corresponding Matter body. A tile can only\r\n * have one Matter body associated with it. You can either pass in an existing Matter body for\r\n * the tile or allow the constructor to create the corresponding body for you. If the Tile has a\r\n * collision group (defined in Tiled), those shapes will be used to create the body. If not, the\r\n * tile's rectangle bounding box will be used.\r\n *\r\n * The corresponding body will be accessible on the Tile itself via Tile.physics.matterBody.\r\n *\r\n * Note: not all Tiled collision shapes are supported. See\r\n * Phaser.Physics.Matter.TileBody#setFromTileCollision for more information.\r\n *\r\n * @class TileBody\r\n * @memberof Phaser.Physics.Matter\r\n * @extends Phaser.Events.EventEmitter\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @extends Phaser.Physics.Matter.Components.Bounce\r\n * @extends Phaser.Physics.Matter.Components.Collision\r\n * @extends Phaser.Physics.Matter.Components.Friction\r\n * @extends Phaser.Physics.Matter.Components.Gravity\r\n * @extends Phaser.Physics.Matter.Components.Mass\r\n * @extends Phaser.Physics.Matter.Components.Sensor\r\n * @extends Phaser.Physics.Matter.Components.Sleep\r\n * @extends Phaser.Physics.Matter.Components.Static\r\n *\r\n * @param {Phaser.Physics.Matter.World} world - The Matter world instance this body belongs to.\r\n * @param {Phaser.Tilemaps.Tile} tile - The target tile that should have a Matter body.\r\n * @param {Phaser.Types.Physics.Matter.MatterTileOptions} [options] - Options to be used when creating the Matter body.\r\n */\r\nvar MatterTileBody = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n Mixins: [\r\n Components.Bounce,\r\n Components.Collision,\r\n Components.Friction,\r\n Components.Gravity,\r\n Components.Mass,\r\n Components.Sensor,\r\n Components.Sleep,\r\n Components.Static\r\n ],\r\n\r\n initialize:\r\n\r\n function MatterTileBody (world, tile, options)\r\n {\r\n EventEmitter.call(this);\r\n\r\n /**\r\n * The tile object the body is associated with.\r\n *\r\n * @name Phaser.Physics.Matter.TileBody#tile\r\n * @type {Phaser.Tilemaps.Tile}\r\n * @since 3.0.0\r\n */\r\n this.tile = tile;\r\n\r\n /**\r\n * The Matter world the body exists within.\r\n *\r\n * @name Phaser.Physics.Matter.TileBody#world\r\n * @type {Phaser.Physics.Matter.World}\r\n * @since 3.0.0\r\n */\r\n this.world = world;\r\n\r\n // Install a reference to 'this' on the tile and ensure there can only be one matter body\r\n // associated with the tile\r\n if (tile.physics.matterBody)\r\n {\r\n tile.physics.matterBody.destroy();\r\n }\r\n\r\n tile.physics.matterBody = this;\r\n\r\n // Set the body either from an existing body (if provided), the shapes in the tileset\r\n // collision layer (if it exists) or a rectangle matching the tile.\r\n var body = GetFastValue(options, 'body', null);\r\n\r\n var addToWorld = GetFastValue(options, 'addToWorld', true);\r\n\r\n if (!body)\r\n {\r\n var collisionGroup = tile.getCollisionGroup();\r\n var collisionObjects = GetFastValue(collisionGroup, 'objects', []);\r\n\r\n if (collisionObjects.length > 0)\r\n {\r\n this.setFromTileCollision(options);\r\n }\r\n else\r\n {\r\n this.setFromTileRectangle(options);\r\n }\r\n }\r\n else\r\n {\r\n this.setBody(body, addToWorld);\r\n }\r\n\r\n if (tile.flipX || tile.flipY)\r\n {\r\n var rotationPoint = { x: tile.getCenterX(), y: tile.getCenterY() };\r\n var scaleX = (tile.flipX) ? -1 : 1;\r\n var scaleY = (tile.flipY) ? -1 : 1;\r\n\r\n Body.scale(body, scaleX, scaleY, rotationPoint);\r\n }\r\n },\r\n\r\n /**\r\n * Sets the current body to a rectangle that matches the bounds of the tile.\r\n *\r\n * @method Phaser.Physics.Matter.TileBody#setFromTileRectangle\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyTileOptions} [options] - Options to be used when creating the Matter body. See MatterJS.Body for a list of what Matter accepts.\r\n *\r\n * @return {Phaser.Physics.Matter.TileBody} This TileBody object.\r\n */\r\n setFromTileRectangle: function (options)\r\n {\r\n if (options === undefined) { options = {}; }\r\n if (!HasValue(options, 'isStatic')) { options.isStatic = true; }\r\n if (!HasValue(options, 'addToWorld')) { options.addToWorld = true; }\r\n\r\n var bounds = this.tile.getBounds();\r\n var cx = bounds.x + (bounds.width / 2);\r\n var cy = bounds.y + (bounds.height / 2);\r\n var body = Bodies.rectangle(cx, cy, bounds.width, bounds.height, options);\r\n\r\n this.setBody(body, options.addToWorld);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the current body from the collision group associated with the Tile. This is typically\r\n * set up in Tiled's collision editor.\r\n *\r\n * Note: Matter doesn't support all shapes from Tiled. Rectangles and polygons are directly\r\n * supported. Ellipses are converted into circle bodies. Polylines are treated as if they are\r\n * closed polygons. If a tile has multiple shapes, a multi-part body will be created. Concave\r\n * shapes are supported if poly-decomp library is included. Decomposition is not guaranteed to\r\n * work for complex shapes (e.g. holes), so it's often best to manually decompose a concave\r\n * polygon into multiple convex polygons yourself.\r\n *\r\n * @method Phaser.Physics.Matter.TileBody#setFromTileCollision\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyTileOptions} [options] - Options to be used when creating the Matter body. See MatterJS.Body for a list of what Matter accepts.\r\n *\r\n * @return {Phaser.Physics.Matter.TileBody} This TileBody object.\r\n */\r\n setFromTileCollision: function (options)\r\n {\r\n if (options === undefined) { options = {}; }\r\n if (!HasValue(options, 'isStatic')) { options.isStatic = true; }\r\n if (!HasValue(options, 'addToWorld')) { options.addToWorld = true; }\r\n\r\n var sx = this.tile.tilemapLayer.scaleX;\r\n var sy = this.tile.tilemapLayer.scaleY;\r\n var tileX = this.tile.getLeft();\r\n var tileY = this.tile.getTop();\r\n var collisionGroup = this.tile.getCollisionGroup();\r\n var collisionObjects = GetFastValue(collisionGroup, 'objects', []);\r\n\r\n var parts = [];\r\n\r\n for (var i = 0; i < collisionObjects.length; i++)\r\n {\r\n var object = collisionObjects[i];\r\n var ox = tileX + (object.x * sx);\r\n var oy = tileY + (object.y * sy);\r\n var ow = object.width * sx;\r\n var oh = object.height * sy;\r\n var body = null;\r\n\r\n if (object.rectangle)\r\n {\r\n body = Bodies.rectangle(ox + ow / 2, oy + oh / 2, ow, oh, options);\r\n }\r\n else if (object.ellipse)\r\n {\r\n body = Bodies.circle(ox + ow / 2, oy + oh / 2, ow / 2, options);\r\n }\r\n else if (object.polygon || object.polyline)\r\n {\r\n // Polygons and polylines are both treated as closed polygons\r\n var originalPoints = object.polygon ? object.polygon : object.polyline;\r\n\r\n var points = originalPoints.map(function (p)\r\n {\r\n return { x: p.x * sx, y: p.y * sy };\r\n });\r\n\r\n var vertices = Vertices.create(points);\r\n\r\n // Points are relative to the object's origin (first point placed in Tiled), but\r\n // matter expects points to be relative to the center of mass. This only applies to\r\n // convex shapes. When a concave shape is decomposed, multiple parts are created and\r\n // the individual parts are positioned relative to (ox, oy).\r\n //\r\n // Update: 8th January 2019 - the latest version of Matter needs the Vertices adjusted,\r\n // regardless if convex or concave.\r\n\r\n var center = Vertices.centre(vertices);\r\n\r\n ox += center.x;\r\n oy += center.y;\r\n\r\n body = Bodies.fromVertices(ox, oy, vertices, options);\r\n }\r\n\r\n if (body)\r\n {\r\n parts.push(body);\r\n }\r\n }\r\n\r\n if (parts.length === 1)\r\n {\r\n this.setBody(parts[0], options.addToWorld);\r\n }\r\n else if (parts.length > 1)\r\n {\r\n var tempOptions = DeepCopy(options);\r\n\r\n tempOptions.parts = parts;\r\n\r\n this.setBody(Body.create(tempOptions), tempOptions.addToWorld);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the current body to the given body. This will remove the previous body, if one already\r\n * exists.\r\n *\r\n * @method Phaser.Physics.Matter.TileBody#setBody\r\n * @since 3.0.0\r\n *\r\n * @param {MatterJS.BodyType} body - The new Matter body to use.\r\n * @param {boolean} [addToWorld=true] - Whether or not to add the body to the Matter world.\r\n *\r\n * @return {Phaser.Physics.Matter.TileBody} This TileBody object.\r\n */\r\n setBody: function (body, addToWorld)\r\n {\r\n if (addToWorld === undefined) { addToWorld = true; }\r\n\r\n if (this.body)\r\n {\r\n this.removeBody();\r\n }\r\n\r\n this.body = body;\r\n this.body.gameObject = this;\r\n\r\n if (addToWorld)\r\n {\r\n this.world.add(this.body);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes the current body from the TileBody and from the Matter world\r\n *\r\n * @method Phaser.Physics.Matter.TileBody#removeBody\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Physics.Matter.TileBody} This TileBody object.\r\n */\r\n removeBody: function ()\r\n {\r\n if (this.body)\r\n {\r\n this.world.remove(this.body);\r\n this.body.gameObject = undefined;\r\n this.body = undefined;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes the current body from the tile and the world.\r\n *\r\n * @method Phaser.Physics.Matter.TileBody#destroy\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Physics.Matter.TileBody} This TileBody object.\r\n */\r\n destroy: function ()\r\n {\r\n this.removeBody();\r\n this.tile.physics.matterBody = undefined;\r\n this.removeAllListeners();\r\n }\r\n\r\n});\r\n\r\nmodule.exports = MatterTileBody;\r\n\n\n/***/ }),\n\n/***/ 19496:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Joachim Grill \r\n * @author Richard Davey \r\n * @copyright 2018 CodeAndWeb GmbH\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Bodies = __webpack_require__(66280);\r\nvar Body = __webpack_require__(22562);\r\nvar Common = __webpack_require__(53402);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar Vertices = __webpack_require__(41598);\r\n\r\n/**\r\n * Use PhysicsEditorParser.parseBody() to build a Matter body object, based on a physics data file\r\n * created and exported with PhysicsEditor (https://www.codeandweb.com/physicseditor).\r\n *\r\n * @namespace Phaser.Physics.Matter.PhysicsEditorParser\r\n * @since 3.10.0\r\n */\r\nvar PhysicsEditorParser = {\r\n\r\n /**\r\n * Parses a body element exported by PhysicsEditor.\r\n *\r\n * @function Phaser.Physics.Matter.PhysicsEditorParser.parseBody\r\n * @since 3.10.0\r\n *\r\n * @param {number} x - The horizontal world location of the body.\r\n * @param {number} y - The vertical world location of the body.\r\n * @param {object} config - The body configuration and fixture (child body) definitions, as exported by PhysicsEditor.\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.\r\n *\r\n * @return {MatterJS.BodyType} A compound Matter JS Body.\r\n */\r\n parseBody: function (x, y, config, options)\r\n {\r\n if (options === undefined) { options = {}; }\r\n\r\n var fixtureConfigs = GetFastValue(config, 'fixtures', []);\r\n var fixtures = [];\r\n\r\n for (var fc = 0; fc < fixtureConfigs.length; fc++)\r\n {\r\n var fixtureParts = this.parseFixture(fixtureConfigs[fc]);\r\n\r\n for (var i = 0; i < fixtureParts.length; i++)\r\n {\r\n fixtures.push(fixtureParts[i]);\r\n }\r\n }\r\n\r\n var matterConfig = Common.clone(config, true);\r\n\r\n Common.extend(matterConfig, options, true);\r\n\r\n delete matterConfig.fixtures;\r\n delete matterConfig.type;\r\n\r\n var body = Body.create(matterConfig);\r\n\r\n Body.setParts(body, fixtures);\r\n\r\n Body.setPosition(body, { x: x, y: y });\r\n\r\n return body;\r\n },\r\n\r\n /**\r\n * Parses an element of the \"fixtures\" list exported by PhysicsEditor\r\n *\r\n * @function Phaser.Physics.Matter.PhysicsEditorParser.parseFixture\r\n * @since 3.10.0\r\n *\r\n * @param {object} fixtureConfig - The fixture object to parse.\r\n *\r\n * @return {MatterJS.BodyType[]} - An array of Matter JS Bodies.\r\n */\r\n parseFixture: function (fixtureConfig)\r\n {\r\n var matterConfig = Common.extend({}, false, fixtureConfig);\r\n\r\n delete matterConfig.circle;\r\n delete matterConfig.vertices;\r\n\r\n var fixtures;\r\n\r\n if (fixtureConfig.circle)\r\n {\r\n var x = GetFastValue(fixtureConfig.circle, 'x');\r\n var y = GetFastValue(fixtureConfig.circle, 'y');\r\n var r = GetFastValue(fixtureConfig.circle, 'radius');\r\n fixtures = [ Bodies.circle(x, y, r, matterConfig) ];\r\n }\r\n else if (fixtureConfig.vertices)\r\n {\r\n fixtures = this.parseVertices(fixtureConfig.vertices, matterConfig);\r\n }\r\n\r\n return fixtures;\r\n },\r\n\r\n /**\r\n * Parses the \"vertices\" lists exported by PhysicsEditor.\r\n *\r\n * @function Phaser.Physics.Matter.PhysicsEditorParser.parseVertices\r\n * @since 3.10.0\r\n *\r\n * @param {array} vertexSets - The vertex lists to parse.\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.\r\n *\r\n * @return {MatterJS.BodyType[]} - An array of Matter JS Bodies.\r\n */\r\n parseVertices: function (vertexSets, options)\r\n {\r\n if (options === undefined) { options = {}; }\r\n\r\n var parts = [];\r\n\r\n for (var v = 0; v < vertexSets.length; v++)\r\n {\r\n Vertices.clockwiseSort(vertexSets[v]);\r\n\r\n parts.push(Body.create(Common.extend({\r\n position: Vertices.centre(vertexSets[v]),\r\n vertices: vertexSets[v]\r\n }, options)));\r\n }\r\n\r\n // flag coincident part edges\r\n return Bodies.flagCoincidentParts(parts);\r\n }\r\n};\r\n\r\nmodule.exports = PhysicsEditorParser;\r\n\n\n/***/ }),\n\n/***/ 85791:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Bodies = __webpack_require__(66280);\r\nvar Body = __webpack_require__(22562);\r\n\r\n/**\r\n * Creates a body using the supplied physics data, as provided by a JSON file.\r\n *\r\n * The data file should be loaded as JSON:\r\n *\r\n * ```javascript\r\n * preload ()\r\n * {\r\n * this.load.json('ninjas', 'assets/ninjas.json);\r\n * }\r\n *\r\n * create ()\r\n * {\r\n * const ninjaShapes = this.cache.json.get('ninjas');\r\n *\r\n * this.matter.add.fromJSON(400, 300, ninjaShapes.shinobi);\r\n * }\r\n * ```\r\n *\r\n * Do not pass the entire JSON file to this method, but instead pass one of the shapes contained within it.\r\n *\r\n * If you pas in an `options` object, any settings in there will override those in the config object.\r\n *\r\n * The structure of the JSON file is as follows:\r\n *\r\n * ```text\r\n * {\r\n * 'generator_info': // The name of the application that created the JSON data\r\n * 'shapeName': {\r\n * 'type': // The type of body\r\n * 'label': // Optional body label\r\n * 'vertices': // An array, or an array of arrays, containing the vertex data in x/y object pairs\r\n * }\r\n * }\r\n * ```\r\n *\r\n * At the time of writing, only the Phaser Physics Tracer App exports in this format.\r\n *\r\n * @namespace Phaser.Physics.Matter.PhysicsJSONParser\r\n * @since 3.22.0\r\n */\r\nvar PhysicsJSONParser = {\r\n\r\n /**\r\n * Parses a body element from the given JSON data.\r\n *\r\n * @function Phaser.Physics.Matter.PhysicsJSONParser.parseBody\r\n * @since 3.22.0\r\n *\r\n * @param {number} x - The horizontal world location of the body.\r\n * @param {number} y - The vertical world location of the body.\r\n * @param {object} config - The body configuration data.\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.\r\n *\r\n * @return {MatterJS.BodyType} A Matter JS Body.\r\n */\r\n parseBody: function (x, y, config, options)\r\n {\r\n if (options === undefined) { options = {}; }\r\n\r\n var body;\r\n var vertexSets = config.vertices;\r\n\r\n if (vertexSets.length === 1)\r\n {\r\n // Just a single Body\r\n options.vertices = vertexSets[0];\r\n\r\n body = Body.create(options);\r\n\r\n Bodies.flagCoincidentParts(body.parts);\r\n }\r\n else\r\n {\r\n var parts = [];\r\n\r\n for (var i = 0; i < vertexSets.length; i++)\r\n {\r\n var part = Body.create({\r\n vertices: vertexSets[i]\r\n });\r\n\r\n parts.push(part);\r\n }\r\n\r\n Bodies.flagCoincidentParts(parts);\r\n\r\n options.parts = parts;\r\n\r\n body = Body.create(options);\r\n }\r\n\r\n body.label = config.label;\r\n\r\n Body.setPosition(body, { x: x, y: y });\r\n\r\n return body;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = PhysicsJSONParser;\r\n\n\n/***/ }),\n\n/***/ 98713:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Bounds = __webpack_require__(15647);\r\nvar Class = __webpack_require__(83419);\r\nvar Composite = __webpack_require__(69351);\r\nvar Constraint = __webpack_require__(48140);\r\nvar Detector = __webpack_require__(81388);\r\nvar Events = __webpack_require__(1121);\r\nvar InputEvents = __webpack_require__(8214);\r\nvar Merge = __webpack_require__(46975);\r\nvar Sleeping = __webpack_require__(53614);\r\nvar Vector2 = __webpack_require__(26099);\r\nvar Vertices = __webpack_require__(41598);\r\n\r\n/**\r\n * @classdesc\r\n * A Pointer Constraint is a special type of constraint that allows you to click\r\n * and drag bodies in a Matter World. It monitors the active Pointers in a Scene,\r\n * and when one is pressed down it checks to see if that hit any part of any active\r\n * body in the world. If it did, and the body has input enabled, it will begin to\r\n * drag it until either released, or you stop it via the `stopDrag` method.\r\n *\r\n * You can adjust the stiffness, length and other properties of the constraint via\r\n * the `options` object on creation.\r\n *\r\n * @class PointerConstraint\r\n * @memberof Phaser.Physics.Matter\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - A reference to the Scene to which this Pointer Constraint belongs.\r\n * @param {Phaser.Physics.Matter.World} world - A reference to the Matter World instance to which this Constraint belongs.\r\n * @param {object} [options] - A Constraint configuration object.\r\n */\r\nvar PointerConstraint = new Class({\r\n\r\n initialize:\r\n\r\n function PointerConstraint (scene, world, options)\r\n {\r\n if (options === undefined) { options = {}; }\r\n\r\n // Defaults\r\n var defaults = {\r\n label: 'Pointer Constraint',\r\n pointA: { x: 0, y: 0 },\r\n pointB: { x: 0, y: 0 },\r\n length: 0.01,\r\n stiffness: 0.1,\r\n angularStiffness: 1,\r\n collisionFilter: {\r\n category: 0x0001,\r\n mask: 0xFFFFFFFF,\r\n group: 0\r\n }\r\n };\r\n\r\n /**\r\n * A reference to the Scene to which this Pointer Constraint belongs.\r\n * This is the same Scene as the Matter World instance.\r\n *\r\n * @name Phaser.Physics.Matter.PointerConstraint#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.0.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * A reference to the Matter World instance to which this Constraint belongs.\r\n *\r\n * @name Phaser.Physics.Matter.PointerConstraint#world\r\n * @type {Phaser.Physics.Matter.World}\r\n * @since 3.0.0\r\n */\r\n this.world = world;\r\n\r\n /**\r\n * The Camera the Pointer was interacting with when the input\r\n * down event was processed.\r\n *\r\n * @name Phaser.Physics.Matter.PointerConstraint#camera\r\n * @type {Phaser.Cameras.Scene2D.Camera}\r\n * @since 3.0.0\r\n */\r\n this.camera = null;\r\n\r\n /**\r\n * A reference to the Input Pointer that activated this Constraint.\r\n * This is set in the `onDown` handler.\r\n *\r\n * @name Phaser.Physics.Matter.PointerConstraint#pointer\r\n * @type {Phaser.Input.Pointer}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.pointer = null;\r\n\r\n /**\r\n * Is this Constraint active or not?\r\n *\r\n * An active constraint will be processed each update. An inactive one will be skipped.\r\n * Use this to toggle a Pointer Constraint on and off.\r\n *\r\n * @name Phaser.Physics.Matter.PointerConstraint#active\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.active = true;\r\n\r\n /**\r\n * The internal transformed position.\r\n *\r\n * @name Phaser.Physics.Matter.PointerConstraint#position\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.0.0\r\n */\r\n this.position = new Vector2();\r\n\r\n /**\r\n * The body that is currently being dragged, if any.\r\n *\r\n * @name Phaser.Physics.Matter.PointerConstraint#body\r\n * @type {?MatterJS.BodyType}\r\n * @since 3.16.2\r\n */\r\n this.body = null;\r\n\r\n /**\r\n * The part of the body that was clicked on to start the drag.\r\n *\r\n * @name Phaser.Physics.Matter.PointerConstraint#part\r\n * @type {?MatterJS.BodyType}\r\n * @since 3.16.2\r\n */\r\n this.part = null;\r\n\r\n /**\r\n * The native Matter Constraint that is used to attach to bodies.\r\n *\r\n * @name Phaser.Physics.Matter.PointerConstraint#constraint\r\n * @type {MatterJS.ConstraintType}\r\n * @since 3.0.0\r\n */\r\n this.constraint = Constraint.create(Merge(options, defaults));\r\n\r\n this.world.on(Events.BEFORE_UPDATE, this.update, this);\r\n\r\n scene.sys.input.on(InputEvents.POINTER_DOWN, this.onDown, this);\r\n scene.sys.input.on(InputEvents.POINTER_UP, this.onUp, this);\r\n },\r\n\r\n /**\r\n * A Pointer has been pressed down onto the Scene.\r\n *\r\n * If this Constraint doesn't have an active Pointer then a hit test is set to\r\n * run against all active bodies in the world during the _next_ call to `update`.\r\n * If a body is found, it is bound to this constraint and the drag begins.\r\n *\r\n * @method Phaser.Physics.Matter.PointerConstraint#onDown\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - A reference to the Pointer that was pressed.\r\n */\r\n onDown: function (pointer)\r\n {\r\n if (!this.pointer)\r\n {\r\n this.pointer = pointer;\r\n this.camera = pointer.camera;\r\n }\r\n },\r\n\r\n /**\r\n * A Pointer has been released from the Scene. If it was the one this constraint was using, it's cleared.\r\n *\r\n * @method Phaser.Physics.Matter.PointerConstraint#onUp\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Input.Pointer} pointer - A reference to the Pointer that was pressed.\r\n */\r\n onUp: function (pointer)\r\n {\r\n if (pointer === this.pointer)\r\n {\r\n this.pointer = null;\r\n }\r\n },\r\n\r\n /**\r\n * Scans all active bodies in the current Matter World to see if any of them\r\n * are hit by the Pointer. The _first one_ found to hit is set as the active contraint\r\n * body.\r\n *\r\n * @method Phaser.Physics.Matter.PointerConstraint#getBody\r\n * @fires Phaser.Physics.Matter.Events#DRAG_START\r\n * @since 3.16.2\r\n *\r\n * @return {boolean} `true` if a body was found and set, otherwise `false`.\r\n */\r\n getBody: function (pointer)\r\n {\r\n var pos = this.position;\r\n var constraint = this.constraint;\r\n\r\n this.camera.getWorldPoint(pointer.x, pointer.y, pos);\r\n\r\n var bodies = Composite.allBodies(this.world.localWorld);\r\n\r\n for (var i = 0; i < bodies.length; i++)\r\n {\r\n var body = bodies[i];\r\n\r\n if (!body.ignorePointer &&\r\n Bounds.contains(body.bounds, pos) &&\r\n Detector.canCollide(body.collisionFilter, constraint.collisionFilter))\r\n {\r\n if (this.hitTestBody(body, pos))\r\n {\r\n this.world.emit(Events.DRAG_START, body, this.part, this);\r\n\r\n return true;\r\n }\r\n }\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Scans the current body to determine if a part of it was clicked on.\r\n * If a part is found the body is set as the `constraint.bodyB` property,\r\n * as well as the `body` property of this class. The part is also set.\r\n *\r\n * @method Phaser.Physics.Matter.PointerConstraint#hitTestBody\r\n * @since 3.16.2\r\n *\r\n * @param {MatterJS.BodyType} body - The Matter Body to check.\r\n * @param {Phaser.Math.Vector2} position - A translated hit test position.\r\n *\r\n * @return {boolean} `true` if a part of the body was hit, otherwise `false`.\r\n */\r\n hitTestBody: function (body, position)\r\n {\r\n var constraint = this.constraint;\r\n var partsLength = body.parts.length;\r\n\r\n var start = (partsLength > 1) ? 1 : 0;\r\n\r\n for (var i = start; i < partsLength; i++)\r\n {\r\n var part = body.parts[i];\r\n\r\n if (Vertices.contains(part.vertices, position))\r\n {\r\n constraint.pointA = position;\r\n constraint.pointB = { x: position.x - body.position.x, y: position.y - body.position.y };\r\n\r\n constraint.bodyB = body;\r\n constraint.angleB = body.angle;\r\n\r\n Sleeping.set(body, false);\r\n\r\n this.part = part;\r\n this.body = body;\r\n\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Internal update handler. Called in the Matter BEFORE_UPDATE step.\r\n *\r\n * @method Phaser.Physics.Matter.PointerConstraint#update\r\n * @fires Phaser.Physics.Matter.Events#DRAG\r\n * @since 3.0.0\r\n */\r\n update: function ()\r\n {\r\n var pointer = this.pointer;\r\n var body = this.body;\r\n\r\n if (!this.active || !pointer)\r\n {\r\n if (body)\r\n {\r\n this.stopDrag();\r\n }\r\n\r\n return;\r\n }\r\n\r\n if (!pointer.isDown && body)\r\n {\r\n this.stopDrag();\r\n\r\n return;\r\n }\r\n else if (pointer.isDown)\r\n {\r\n if (!this.camera || (!body && !this.getBody(pointer)))\r\n {\r\n return;\r\n }\r\n\r\n body = this.body;\r\n\r\n var pos = this.position;\r\n var constraint = this.constraint;\r\n\r\n this.camera.getWorldPoint(pointer.x, pointer.y, pos);\r\n\r\n // Drag update\r\n constraint.pointA.x = pos.x;\r\n constraint.pointA.y = pos.y;\r\n\r\n Sleeping.set(body, false);\r\n\r\n this.world.emit(Events.DRAG, body, this);\r\n }\r\n },\r\n\r\n /**\r\n * Stops the Pointer Constraint from dragging the body any further.\r\n *\r\n * This is called automatically if the Pointer is released while actively\r\n * dragging a body. Or, you can call it manually to release a body from a\r\n * constraint without having to first release the pointer.\r\n *\r\n * @method Phaser.Physics.Matter.PointerConstraint#stopDrag\r\n * @fires Phaser.Physics.Matter.Events#DRAG_END\r\n * @since 3.16.2\r\n */\r\n stopDrag: function ()\r\n {\r\n var body = this.body;\r\n var constraint = this.constraint;\r\n\r\n constraint.bodyB = null;\r\n constraint.pointB = null;\r\n\r\n this.pointer = null;\r\n this.body = null;\r\n this.part = null;\r\n\r\n if (body)\r\n {\r\n this.world.emit(Events.DRAG_END, body, this);\r\n }\r\n },\r\n\r\n /**\r\n * Destroys this Pointer Constraint instance and all of its references.\r\n *\r\n * @method Phaser.Physics.Matter.PointerConstraint#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.world.removeConstraint(this.constraint);\r\n\r\n this.pointer = null;\r\n this.constraint = null;\r\n this.body = null;\r\n this.part = null;\r\n\r\n this.world.off(Events.BEFORE_UPDATE, this.update);\r\n\r\n this.scene.sys.input.off(InputEvents.POINTER_DOWN, this.onDown, this);\r\n this.scene.sys.input.off(InputEvents.POINTER_UP, this.onUp, this);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = PointerConstraint;\r\n\n\n/***/ }),\n\n/***/ 68243:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Bodies = __webpack_require__(66280);\r\nvar Body = __webpack_require__(22562);\r\nvar Class = __webpack_require__(83419);\r\nvar Common = __webpack_require__(53402);\r\nvar Composite = __webpack_require__(69351);\r\nvar Engine = __webpack_require__(48413);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Events = __webpack_require__(1121);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar GetValue = __webpack_require__(35154);\r\nvar MatterBody = __webpack_require__(22562);\r\nvar MatterEvents = __webpack_require__(35810);\r\nvar MatterTileBody = __webpack_require__(73834);\r\nvar MatterWorld = __webpack_require__(4372);\r\nvar MatterRunner = __webpack_require__(13037);\r\nvar Vector = __webpack_require__(31725);\r\n\r\n/**\r\n * @classdesc\r\n * The Matter World class is responsible for managing one single instance of a Matter Physics World for Phaser.\r\n *\r\n * Access this via `this.matter.world` from within a Scene.\r\n *\r\n * This class creates a Matter JS World Composite along with the Matter JS Engine during instantiation. It also\r\n * handles delta timing, bounds, body and constraint creation and debug drawing.\r\n *\r\n * If you wish to access the Matter JS World object directly, see the `localWorld` property.\r\n * If you wish to access the Matter Engine directly, see the `engine` property.\r\n *\r\n * This class is an Event Emitter and will proxy _all_ Matter JS events, as they are received.\r\n *\r\n * @class World\r\n * @extends Phaser.Events.EventEmitter\r\n * @memberof Phaser.Physics.Matter\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Matter World instance belongs.\r\n * @param {Phaser.Types.Physics.Matter.MatterWorldConfig} config - The Matter World configuration object.\r\n */\r\nvar World = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function World (scene, config)\r\n {\r\n EventEmitter.call(this);\r\n\r\n /**\r\n * The Scene to which this Matter World instance belongs.\r\n *\r\n * @name Phaser.Physics.Matter.World#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.0.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * An instance of the MatterJS Engine.\r\n *\r\n * @name Phaser.Physics.Matter.World#engine\r\n * @type {MatterJS.Engine}\r\n * @since 3.0.0\r\n */\r\n this.engine = Engine.create(config);\r\n\r\n /**\r\n * A `World` composite object that will contain all simulated bodies and constraints.\r\n *\r\n * @name Phaser.Physics.Matter.World#localWorld\r\n * @type {MatterJS.World}\r\n * @since 3.0.0\r\n */\r\n this.localWorld = this.engine.world;\r\n\r\n var gravity = GetValue(config, 'gravity', null);\r\n\r\n if (gravity)\r\n {\r\n this.setGravity(gravity.x, gravity.y, gravity.scale);\r\n }\r\n else if (gravity === false)\r\n {\r\n this.setGravity(0, 0, 0);\r\n }\r\n\r\n /**\r\n * An object containing the 4 wall bodies that bound the physics world.\r\n *\r\n * @name Phaser.Physics.Matter.World#walls\r\n * @type {Phaser.Types.Physics.Matter.MatterWalls}\r\n * @since 3.0.0\r\n */\r\n this.walls = { left: null, right: null, top: null, bottom: null };\r\n\r\n /**\r\n * A flag that toggles if the world is enabled or not.\r\n *\r\n * @name Phaser.Physics.Matter.World#enabled\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.enabled = GetValue(config, 'enabled', true);\r\n\r\n /**\r\n * This function is called every time the core game loop steps, which is bound to the\r\n * Request Animation Frame frequency unless otherwise modified.\r\n *\r\n * The function is passed two values: `time` and `delta`, both of which come from the game step values.\r\n *\r\n * It must return a number. This number is used as the delta value passed to Matter.Engine.update.\r\n *\r\n * You can override this function with your own to define your own timestep.\r\n *\r\n * If you need to update the Engine multiple times in a single game step then call\r\n * `World.update` as many times as required. Each call will trigger the `getDelta` function.\r\n * If you wish to have full control over when the Engine updates then see the property `autoUpdate`.\r\n *\r\n * You can also adjust the number of iterations that Engine.update performs.\r\n * Use the Scene Matter Physics config object to set the following properties:\r\n *\r\n * positionIterations (defaults to 6)\r\n * velocityIterations (defaults to 4)\r\n * constraintIterations (defaults to 2)\r\n *\r\n * Adjusting these values can help performance in certain situations, depending on the physics requirements\r\n * of your game.\r\n *\r\n * @name Phaser.Physics.Matter.World#getDelta\r\n * @type {function}\r\n * @since 3.4.0\r\n */\r\n this.getDelta = GetValue(config, 'getDelta', this.update60Hz);\r\n\r\n var runnerConfig = GetFastValue(config, 'runner', {});\r\n\r\n var hasFPS = GetFastValue(runnerConfig, 'fps', false);\r\n\r\n var fps = GetFastValue(runnerConfig, 'fps', 60);\r\n\r\n var delta = GetFastValue(runnerConfig, 'delta', 1000 / fps);\r\n var deltaMin = GetFastValue(runnerConfig, 'deltaMin', 1000 / fps);\r\n var deltaMax = GetFastValue(runnerConfig, 'deltaMax', 1000 / (fps * 0.5));\r\n\r\n if (!hasFPS)\r\n {\r\n fps = 1000 / delta;\r\n }\r\n\r\n /**\r\n * The Matter JS Runner Configuration object.\r\n *\r\n * This object is populated via the Matter Configuration object's `runner` property and is\r\n * updated constantly during the game step.\r\n *\r\n * @name Phaser.Physics.Matter.World#runner\r\n * @type {Phaser.Types.Physics.Matter.MatterRunnerConfig}\r\n * @since 3.22.0\r\n */\r\n this.runner = {\r\n fps: fps,\r\n deltaSampleSize: GetFastValue(runnerConfig, 'deltaSampleSize', 60),\r\n counterTimestamp: 0,\r\n frameCounter: 0,\r\n deltaHistory: [],\r\n timePrev: null,\r\n timeScalePrev: 1,\r\n frameRequestId: null,\r\n timeBuffer: 0,\r\n isFixed: GetFastValue(runnerConfig, 'isFixed', false),\r\n delta: delta,\r\n deltaMin: deltaMin,\r\n deltaMax: deltaMax\r\n };\r\n\r\n /**\r\n * Automatically call Engine.update every time the game steps.\r\n * If you disable this then you are responsible for calling `World.step` directly from your game.\r\n * If you call `set60Hz` or `set30Hz` then `autoUpdate` is reset to `true`.\r\n *\r\n * @name Phaser.Physics.Matter.World#autoUpdate\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.4.0\r\n */\r\n this.autoUpdate = GetValue(config, 'autoUpdate', true);\r\n\r\n var debugConfig = GetValue(config, 'debug', false);\r\n\r\n /**\r\n * A flag that controls if the debug graphics will be drawn to or not.\r\n *\r\n * @name Phaser.Physics.Matter.World#drawDebug\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.drawDebug = (typeof(debugConfig) === 'object') ? true : debugConfig;\r\n\r\n /**\r\n * An instance of the Graphics object the debug bodies are drawn to, if enabled.\r\n *\r\n * @name Phaser.Physics.Matter.World#debugGraphic\r\n * @type {Phaser.GameObjects.Graphics}\r\n * @since 3.0.0\r\n */\r\n this.debugGraphic;\r\n\r\n /**\r\n * The debug configuration object.\r\n *\r\n * The values stored in this object are read from the Matter World Config `debug` property.\r\n *\r\n * When a new Body or Constraint is _added to the World_, they are given the values stored in this object,\r\n * unless they have their own `render` object set that will override them.\r\n *\r\n * Note that while you can modify the values of properties in this object at run-time, it will not change\r\n * any of the Matter objects _already added_. It will only impact objects newly added to the world, or one\r\n * that is removed and then re-added at a later time.\r\n *\r\n * @name Phaser.Physics.Matter.World#debugConfig\r\n * @type {Phaser.Types.Physics.Matter.MatterDebugConfig}\r\n * @since 3.22.0\r\n */\r\n this.debugConfig = {\r\n showAxes: GetFastValue(debugConfig, 'showAxes', false),\r\n showAngleIndicator: GetFastValue(debugConfig, 'showAngleIndicator', false),\r\n angleColor: GetFastValue(debugConfig, 'angleColor', 0xe81153),\r\n\r\n showBroadphase: GetFastValue(debugConfig, 'showBroadphase', false),\r\n broadphaseColor: GetFastValue(debugConfig, 'broadphaseColor', 0xffb400),\r\n\r\n showBounds: GetFastValue(debugConfig, 'showBounds', false),\r\n boundsColor: GetFastValue(debugConfig, 'boundsColor', 0xffffff),\r\n\r\n showVelocity: GetFastValue(debugConfig, 'showVelocity', false),\r\n velocityColor: GetFastValue(debugConfig, 'velocityColor', 0x00aeef),\r\n\r\n showCollisions: GetFastValue(debugConfig, 'showCollisions', false),\r\n collisionColor: GetFastValue(debugConfig, 'collisionColor', 0xf5950c),\r\n\r\n showSeparations: GetFastValue(debugConfig, 'showSeparations', false),\r\n separationColor: GetFastValue(debugConfig, 'separationColor', 0xffa500),\r\n\r\n showBody: GetFastValue(debugConfig, 'showBody', true),\r\n showStaticBody: GetFastValue(debugConfig, 'showStaticBody', true),\r\n showInternalEdges: GetFastValue(debugConfig, 'showInternalEdges', false),\r\n\r\n renderFill: GetFastValue(debugConfig, 'renderFill', false),\r\n renderLine: GetFastValue(debugConfig, 'renderLine', true),\r\n\r\n fillColor: GetFastValue(debugConfig, 'fillColor', 0x106909),\r\n fillOpacity: GetFastValue(debugConfig, 'fillOpacity', 1),\r\n lineColor: GetFastValue(debugConfig, 'lineColor', 0x28de19),\r\n lineOpacity: GetFastValue(debugConfig, 'lineOpacity', 1),\r\n lineThickness: GetFastValue(debugConfig, 'lineThickness', 1),\r\n\r\n staticFillColor: GetFastValue(debugConfig, 'staticFillColor', 0x0d177b),\r\n staticLineColor: GetFastValue(debugConfig, 'staticLineColor', 0x1327e4),\r\n\r\n showSleeping: GetFastValue(debugConfig, 'showSleeping', false),\r\n staticBodySleepOpacity: GetFastValue(debugConfig, 'staticBodySleepOpacity', 0.7),\r\n sleepFillColor: GetFastValue(debugConfig, 'sleepFillColor', 0x464646),\r\n sleepLineColor: GetFastValue(debugConfig, 'sleepLineColor', 0x999a99),\r\n\r\n showSensors: GetFastValue(debugConfig, 'showSensors', true),\r\n sensorFillColor: GetFastValue(debugConfig, 'sensorFillColor', 0x0d177b),\r\n sensorLineColor: GetFastValue(debugConfig, 'sensorLineColor', 0x1327e4),\r\n\r\n showPositions: GetFastValue(debugConfig, 'showPositions', true),\r\n positionSize: GetFastValue(debugConfig, 'positionSize', 4),\r\n positionColor: GetFastValue(debugConfig, 'positionColor', 0xe042da),\r\n\r\n showJoint: GetFastValue(debugConfig, 'showJoint', true),\r\n jointColor: GetFastValue(debugConfig, 'jointColor', 0xe0e042),\r\n jointLineOpacity: GetFastValue(debugConfig, 'jointLineOpacity', 1),\r\n jointLineThickness: GetFastValue(debugConfig, 'jointLineThickness', 2),\r\n\r\n pinSize: GetFastValue(debugConfig, 'pinSize', 4),\r\n pinColor: GetFastValue(debugConfig, 'pinColor', 0x42e0e0),\r\n\r\n springColor: GetFastValue(debugConfig, 'springColor', 0xe042e0),\r\n\r\n anchorColor: GetFastValue(debugConfig, 'anchorColor', 0xefefef),\r\n anchorSize: GetFastValue(debugConfig, 'anchorSize', 4),\r\n\r\n showConvexHulls: GetFastValue(debugConfig, 'showConvexHulls', false),\r\n hullColor: GetFastValue(debugConfig, 'hullColor', 0xd703d0)\r\n };\r\n\r\n if (this.drawDebug)\r\n {\r\n this.createDebugGraphic();\r\n }\r\n\r\n this.setEventsProxy();\r\n\r\n // Create the walls\r\n\r\n if (GetFastValue(config, 'setBounds', false))\r\n {\r\n var boundsConfig = config['setBounds'];\r\n\r\n if (typeof boundsConfig === 'boolean')\r\n {\r\n this.setBounds();\r\n }\r\n else\r\n {\r\n var x = GetFastValue(boundsConfig, 'x', 0);\r\n var y = GetFastValue(boundsConfig, 'y', 0);\r\n var width = GetFastValue(boundsConfig, 'width', scene.sys.scale.width);\r\n var height = GetFastValue(boundsConfig, 'height', scene.sys.scale.height);\r\n var thickness = GetFastValue(boundsConfig, 'thickness', 64);\r\n var left = GetFastValue(boundsConfig, 'left', true);\r\n var right = GetFastValue(boundsConfig, 'right', true);\r\n var top = GetFastValue(boundsConfig, 'top', true);\r\n var bottom = GetFastValue(boundsConfig, 'bottom', true);\r\n\r\n this.setBounds(x, y, width, height, thickness, left, right, top, bottom);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Sets the debug render style for the children of the given Matter Composite.\r\n *\r\n * Composites themselves do not render, but they can contain bodies, constraints and other composites that may do.\r\n * So the children of this composite are passed to the `setBodyRenderStyle`, `setCompositeRenderStyle` and\r\n * `setConstraintRenderStyle` methods accordingly.\r\n *\r\n * @method Phaser.Physics.Matter.World#setCompositeRenderStyle\r\n * @since 3.22.0\r\n *\r\n * @param {MatterJS.CompositeType} composite - The Matter Composite to set the render style on.\r\n *\r\n * @return {this} This Matter World instance for method chaining.\r\n */\r\n setCompositeRenderStyle: function (composite)\r\n {\r\n var bodies = composite.bodies;\r\n var constraints = composite.constraints;\r\n var composites = composite.composites;\r\n\r\n var i;\r\n var obj;\r\n var render;\r\n\r\n for (i = 0; i < bodies.length; i++)\r\n {\r\n obj = bodies[i];\r\n render = obj.render;\r\n\r\n this.setBodyRenderStyle(obj, render.lineColor, render.lineOpacity, render.lineThickness, render.fillColor, render.fillOpacity);\r\n }\r\n\r\n for (i = 0; i < constraints.length; i++)\r\n {\r\n obj = constraints[i];\r\n render = obj.render;\r\n\r\n this.setConstraintRenderStyle(obj, render.lineColor, render.lineOpacity, render.lineThickness, render.pinSize, render.anchorColor, render.anchorSize);\r\n }\r\n\r\n for (i = 0; i < composites.length; i++)\r\n {\r\n obj = composites[i];\r\n\r\n this.setCompositeRenderStyle(obj);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the debug render style for the given Matter Body.\r\n *\r\n * If you are using this on a Phaser Game Object, such as a Matter Sprite, then pass in the body property\r\n * to this method, not the Game Object itself.\r\n *\r\n * If you wish to skip a parameter, so it retains its current value, pass `false` for it.\r\n *\r\n * If you wish to reset the Body render colors to the defaults found in the World Debug Config, then call\r\n * this method with just the `body` parameter provided and no others.\r\n *\r\n * @method Phaser.Physics.Matter.World#setBodyRenderStyle\r\n * @since 3.22.0\r\n *\r\n * @param {MatterJS.BodyType} body - The Matter Body to set the render style on.\r\n * @param {number} [lineColor] - The line color. If `null` it will use the World Debug Config value.\r\n * @param {number} [lineOpacity] - The line opacity, between 0 and 1. If `null` it will use the World Debug Config value.\r\n * @param {number} [lineThickness] - The line thickness. If `null` it will use the World Debug Config value.\r\n * @param {number} [fillColor] - The fill color. If `null` it will use the World Debug Config value.\r\n * @param {number} [fillOpacity] - The fill opacity, between 0 and 1. If `null` it will use the World Debug Config value.\r\n *\r\n * @return {this} This Matter World instance for method chaining.\r\n */\r\n setBodyRenderStyle: function (body, lineColor, lineOpacity, lineThickness, fillColor, fillOpacity)\r\n {\r\n var render = body.render;\r\n var config = this.debugConfig;\r\n\r\n if (!render)\r\n {\r\n return this;\r\n }\r\n\r\n if (lineColor === undefined || lineColor === null)\r\n {\r\n lineColor = (body.isStatic) ? config.staticLineColor : config.lineColor;\r\n }\r\n\r\n if (lineOpacity === undefined || lineOpacity === null)\r\n {\r\n lineOpacity = config.lineOpacity;\r\n }\r\n\r\n if (lineThickness === undefined || lineThickness === null)\r\n {\r\n lineThickness = config.lineThickness;\r\n }\r\n\r\n if (fillColor === undefined || fillColor === null)\r\n {\r\n fillColor = (body.isStatic) ? config.staticFillColor : config.fillColor;\r\n }\r\n\r\n if (fillOpacity === undefined || fillOpacity === null)\r\n {\r\n fillOpacity = config.fillOpacity;\r\n }\r\n\r\n if (lineColor !== false)\r\n {\r\n render.lineColor = lineColor;\r\n }\r\n\r\n if (lineOpacity !== false)\r\n {\r\n render.lineOpacity = lineOpacity;\r\n }\r\n\r\n if (lineThickness !== false)\r\n {\r\n render.lineThickness = lineThickness;\r\n }\r\n\r\n if (fillColor !== false)\r\n {\r\n render.fillColor = fillColor;\r\n }\r\n\r\n if (fillOpacity !== false)\r\n {\r\n render.fillOpacity = fillOpacity;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the debug render style for the given Matter Constraint.\r\n *\r\n * If you are using this on a Phaser Game Object, then pass in the body property\r\n * to this method, not the Game Object itself.\r\n *\r\n * If you wish to skip a parameter, so it retains its current value, pass `false` for it.\r\n *\r\n * If you wish to reset the Constraint render colors to the defaults found in the World Debug Config, then call\r\n * this method with just the `constraint` parameter provided and no others.\r\n *\r\n * @method Phaser.Physics.Matter.World#setConstraintRenderStyle\r\n * @since 3.22.0\r\n *\r\n * @param {MatterJS.ConstraintType} constraint - The Matter Constraint to set the render style on.\r\n * @param {number} [lineColor] - The line color. If `null` it will use the World Debug Config value.\r\n * @param {number} [lineOpacity] - The line opacity, between 0 and 1. If `null` it will use the World Debug Config value.\r\n * @param {number} [lineThickness] - The line thickness. If `null` it will use the World Debug Config value.\r\n * @param {number} [pinSize] - If this constraint is a pin, this sets the size of the pin circle. If `null` it will use the World Debug Config value.\r\n * @param {number} [anchorColor] - The color used when rendering this constraints anchors. If `null` it will use the World Debug Config value.\r\n * @param {number} [anchorSize] - The size of the anchor circle, if this constraint has anchors. If `null` it will use the World Debug Config value.\r\n *\r\n * @return {this} This Matter World instance for method chaining.\r\n */\r\n setConstraintRenderStyle: function (constraint, lineColor, lineOpacity, lineThickness, pinSize, anchorColor, anchorSize)\r\n {\r\n var render = constraint.render;\r\n var config = this.debugConfig;\r\n\r\n if (!render)\r\n {\r\n return this;\r\n }\r\n\r\n // Reset them\r\n if (lineColor === undefined || lineColor === null)\r\n {\r\n var type = render.type;\r\n\r\n if (type === 'line')\r\n {\r\n lineColor = config.jointColor;\r\n }\r\n else if (type === 'pin')\r\n {\r\n lineColor = config.pinColor;\r\n }\r\n else if (type === 'spring')\r\n {\r\n lineColor = config.springColor;\r\n }\r\n }\r\n\r\n if (lineOpacity === undefined || lineOpacity === null)\r\n {\r\n lineOpacity = config.jointLineOpacity;\r\n }\r\n\r\n if (lineThickness === undefined || lineThickness === null)\r\n {\r\n lineThickness = config.jointLineThickness;\r\n }\r\n\r\n if (pinSize === undefined || pinSize === null)\r\n {\r\n pinSize = config.pinSize;\r\n }\r\n\r\n if (anchorColor === undefined || anchorColor === null)\r\n {\r\n anchorColor = config.anchorColor;\r\n }\r\n\r\n if (anchorSize === undefined || anchorSize === null)\r\n {\r\n anchorSize = config.anchorSize;\r\n }\r\n\r\n if (lineColor !== false)\r\n {\r\n render.lineColor = lineColor;\r\n }\r\n\r\n if (lineOpacity !== false)\r\n {\r\n render.lineOpacity = lineOpacity;\r\n }\r\n\r\n if (lineThickness !== false)\r\n {\r\n render.lineThickness = lineThickness;\r\n }\r\n\r\n if (pinSize !== false)\r\n {\r\n render.pinSize = pinSize;\r\n }\r\n\r\n if (anchorColor !== false)\r\n {\r\n render.anchorColor = anchorColor;\r\n }\r\n\r\n if (anchorSize !== false)\r\n {\r\n render.anchorSize = anchorSize;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * This internal method acts as a proxy between all of the Matter JS events and then re-emits them\r\n * via this class.\r\n *\r\n * @method Phaser.Physics.Matter.World#setEventsProxy\r\n * @since 3.0.0\r\n */\r\n setEventsProxy: function ()\r\n {\r\n var _this = this;\r\n var engine = this.engine;\r\n var world = this.localWorld;\r\n\r\n // Inject debug styles\r\n\r\n if (this.drawDebug)\r\n {\r\n MatterEvents.on(world, 'compositeModified', function (composite)\r\n {\r\n _this.setCompositeRenderStyle(composite);\r\n });\r\n\r\n MatterEvents.on(world, 'beforeAdd', function (event)\r\n {\r\n var objects = [].concat(event.object);\r\n\r\n for (var i = 0; i < objects.length; i++)\r\n {\r\n var obj = objects[i];\r\n var render = obj.render;\r\n\r\n if (obj.type === 'body')\r\n {\r\n _this.setBodyRenderStyle(obj, render.lineColor, render.lineOpacity, render.lineThickness, render.fillColor, render.fillOpacity);\r\n }\r\n else if (obj.type === 'composite')\r\n {\r\n _this.setCompositeRenderStyle(obj);\r\n }\r\n else if (obj.type === 'constraint')\r\n {\r\n _this.setConstraintRenderStyle(obj, render.lineColor, render.lineOpacity, render.lineThickness, render.pinSize, render.anchorColor, render.anchorSize);\r\n }\r\n }\r\n });\r\n }\r\n\r\n MatterEvents.on(world, 'beforeAdd', function (event)\r\n {\r\n _this.emit(Events.BEFORE_ADD, event);\r\n });\r\n\r\n MatterEvents.on(world, 'afterAdd', function (event)\r\n {\r\n _this.emit(Events.AFTER_ADD, event);\r\n });\r\n\r\n MatterEvents.on(world, 'beforeRemove', function (event)\r\n {\r\n _this.emit(Events.BEFORE_REMOVE, event);\r\n });\r\n\r\n MatterEvents.on(world, 'afterRemove', function (event)\r\n {\r\n _this.emit(Events.AFTER_REMOVE, event);\r\n });\r\n\r\n MatterEvents.on(engine, 'beforeUpdate', function (event)\r\n {\r\n _this.emit(Events.BEFORE_UPDATE, event);\r\n });\r\n\r\n MatterEvents.on(engine, 'afterUpdate', function (event)\r\n {\r\n _this.emit(Events.AFTER_UPDATE, event);\r\n });\r\n\r\n MatterEvents.on(engine, 'collisionStart', function (event)\r\n {\r\n var pairs = event.pairs;\r\n var bodyA;\r\n var bodyB;\r\n\r\n if (pairs.length > 0)\r\n {\r\n pairs.map(function (pair)\r\n {\r\n bodyA = pair.bodyA;\r\n bodyB = pair.bodyB;\r\n\r\n if (bodyA.gameObject)\r\n {\r\n bodyA.gameObject.emit('collide', bodyA, bodyB, pair);\r\n }\r\n\r\n if (bodyB.gameObject)\r\n {\r\n bodyB.gameObject.emit('collide', bodyB, bodyA, pair);\r\n }\r\n\r\n MatterEvents.trigger(bodyA, 'onCollide', { pair: pair });\r\n MatterEvents.trigger(bodyB, 'onCollide', { pair: pair });\r\n\r\n if (bodyA.onCollideCallback)\r\n {\r\n bodyA.onCollideCallback(pair);\r\n }\r\n\r\n if (bodyB.onCollideCallback)\r\n {\r\n bodyB.onCollideCallback(pair);\r\n }\r\n\r\n if (bodyA.onCollideWith[bodyB.id])\r\n {\r\n bodyA.onCollideWith[bodyB.id](bodyB, pair);\r\n }\r\n\r\n if (bodyB.onCollideWith[bodyA.id])\r\n {\r\n bodyB.onCollideWith[bodyA.id](bodyA, pair);\r\n }\r\n });\r\n }\r\n\r\n _this.emit(Events.COLLISION_START, event, bodyA, bodyB);\r\n });\r\n\r\n MatterEvents.on(engine, 'collisionActive', function (event)\r\n {\r\n var pairs = event.pairs;\r\n var bodyA;\r\n var bodyB;\r\n\r\n if (pairs.length > 0)\r\n {\r\n pairs.map(function (pair)\r\n {\r\n bodyA = pair.bodyA;\r\n bodyB = pair.bodyB;\r\n\r\n if (bodyA.gameObject)\r\n {\r\n bodyA.gameObject.emit('collideActive', bodyA, bodyB, pair);\r\n }\r\n\r\n if (bodyB.gameObject)\r\n {\r\n bodyB.gameObject.emit('collideActive', bodyB, bodyA, pair);\r\n }\r\n\r\n MatterEvents.trigger(bodyA, 'onCollideActive', { pair: pair });\r\n MatterEvents.trigger(bodyB, 'onCollideActive', { pair: pair });\r\n\r\n if (bodyA.onCollideActiveCallback)\r\n {\r\n bodyA.onCollideActiveCallback(pair);\r\n }\r\n\r\n if (bodyB.onCollideActiveCallback)\r\n {\r\n bodyB.onCollideActiveCallback(pair);\r\n }\r\n });\r\n }\r\n\r\n _this.emit(Events.COLLISION_ACTIVE, event, bodyA, bodyB);\r\n });\r\n\r\n MatterEvents.on(engine, 'collisionEnd', function (event)\r\n {\r\n var pairs = event.pairs;\r\n var bodyA;\r\n var bodyB;\r\n\r\n if (pairs.length > 0)\r\n {\r\n pairs.map(function (pair)\r\n {\r\n bodyA = pair.bodyA;\r\n bodyB = pair.bodyB;\r\n\r\n if (bodyA.gameObject)\r\n {\r\n bodyA.gameObject.emit('collideEnd', bodyA, bodyB, pair);\r\n }\r\n\r\n if (bodyB.gameObject)\r\n {\r\n bodyB.gameObject.emit('collideEnd', bodyB, bodyA, pair);\r\n }\r\n\r\n MatterEvents.trigger(bodyA, 'onCollideEnd', { pair: pair });\r\n MatterEvents.trigger(bodyB, 'onCollideEnd', { pair: pair });\r\n\r\n if (bodyA.onCollideEndCallback)\r\n {\r\n bodyA.onCollideEndCallback(pair);\r\n }\r\n\r\n if (bodyB.onCollideEndCallback)\r\n {\r\n bodyB.onCollideEndCallback(pair);\r\n }\r\n });\r\n }\r\n\r\n _this.emit(Events.COLLISION_END, event, bodyA, bodyB);\r\n });\r\n },\r\n\r\n /**\r\n * Sets the bounds of the Physics world to match the given world pixel dimensions.\r\n *\r\n * You can optionally set which 'walls' to create: left, right, top or bottom.\r\n * If none of the walls are given it will default to use the walls settings it had previously.\r\n * I.e. if you previously told it to not have the left or right walls, and you then adjust the world size\r\n * the newly created bounds will also not have the left and right walls.\r\n * Explicitly state them in the parameters to override this.\r\n *\r\n * @method Phaser.Physics.Matter.World#setBounds\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=0] - The x coordinate of the top-left corner of the bounds.\r\n * @param {number} [y=0] - The y coordinate of the top-left corner of the bounds.\r\n * @param {number} [width] - The width of the bounds.\r\n * @param {number} [height] - The height of the bounds.\r\n * @param {number} [thickness=64] - The thickness of each wall, in pixels.\r\n * @param {boolean} [left=true] - If true will create the left bounds wall.\r\n * @param {boolean} [right=true] - If true will create the right bounds wall.\r\n * @param {boolean} [top=true] - If true will create the top bounds wall.\r\n * @param {boolean} [bottom=true] - If true will create the bottom bounds wall.\r\n *\r\n * @return {Phaser.Physics.Matter.World} This Matter World object.\r\n */\r\n setBounds: function (x, y, width, height, thickness, left, right, top, bottom)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (width === undefined) { width = this.scene.sys.scale.width; }\r\n if (height === undefined) { height = this.scene.sys.scale.height; }\r\n if (thickness === undefined) { thickness = 64; }\r\n if (left === undefined) { left = true; }\r\n if (right === undefined) { right = true; }\r\n if (top === undefined) { top = true; }\r\n if (bottom === undefined) { bottom = true; }\r\n\r\n this.updateWall(left, 'left', x - thickness, y - thickness, thickness, height + (thickness * 2));\r\n this.updateWall(right, 'right', x + width, y - thickness, thickness, height + (thickness * 2));\r\n this.updateWall(top, 'top', x, y - thickness, width, thickness);\r\n this.updateWall(bottom, 'bottom', x, y + height, width, thickness);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Updates the 4 rectangle bodies that were created, if `setBounds` was set in the Matter config, to use\r\n * the new positions and sizes. This method is usually only called internally via the `setBounds` method.\r\n *\r\n * @method Phaser.Physics.Matter.World#updateWall\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} add - `true` if the walls are being added or updated, `false` to remove them from the world.\r\n * @param {string} [position] - Either `left`, `right`, `top` or `bottom`. Only optional if `add` is `false`.\r\n * @param {number} [x] - The horizontal position to place the walls at. Only optional if `add` is `false`.\r\n * @param {number} [y] - The vertical position to place the walls at. Only optional if `add` is `false`.\r\n * @param {number} [width] - The width of the walls, in pixels. Only optional if `add` is `false`.\r\n * @param {number} [height] - The height of the walls, in pixels. Only optional if `add` is `false`.\r\n */\r\n updateWall: function (add, position, x, y, width, height)\r\n {\r\n var wall = this.walls[position];\r\n\r\n if (add)\r\n {\r\n if (wall)\r\n {\r\n MatterWorld.remove(this.localWorld, wall);\r\n }\r\n\r\n // adjust center\r\n x += (width / 2);\r\n y += (height / 2);\r\n\r\n this.walls[position] = this.create(x, y, width, height, { isStatic: true, friction: 0, frictionStatic: 0 });\r\n }\r\n else\r\n {\r\n if (wall)\r\n {\r\n MatterWorld.remove(this.localWorld, wall);\r\n }\r\n\r\n this.walls[position] = null;\r\n }\r\n },\r\n\r\n /**\r\n * Creates a Phaser.GameObjects.Graphics object that is used to render all of the debug bodies and joints to.\r\n *\r\n * This method is called automatically by the constructor, if debugging has been enabled.\r\n *\r\n * The created Graphics object is automatically added to the Scene at 0x0 and given a depth of `Number.MAX_VALUE`,\r\n * so it renders above all else in the Scene.\r\n *\r\n * The Graphics object is assigned to the `debugGraphic` property of this class and `drawDebug` is enabled.\r\n *\r\n * @method Phaser.Physics.Matter.World#createDebugGraphic\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.GameObjects.Graphics} The newly created Graphics object.\r\n */\r\n createDebugGraphic: function ()\r\n {\r\n var graphic = this.scene.sys.add.graphics({ x: 0, y: 0 });\r\n\r\n graphic.setDepth(Number.MAX_VALUE);\r\n\r\n this.debugGraphic = graphic;\r\n\r\n this.drawDebug = true;\r\n\r\n return graphic;\r\n },\r\n\r\n /**\r\n * Sets the world gravity and gravity scale to 0.\r\n *\r\n * @method Phaser.Physics.Matter.World#disableGravity\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Matter World object.\r\n */\r\n disableGravity: function ()\r\n {\r\n this.localWorld.gravity.x = 0;\r\n this.localWorld.gravity.y = 0;\r\n this.localWorld.gravity.scale = 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the worlds gravity to the values given.\r\n *\r\n * Gravity effects all bodies in the world, unless they have the `ignoreGravity` flag set.\r\n *\r\n * @method Phaser.Physics.Matter.World#setGravity\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=0] - The world gravity x component.\r\n * @param {number} [y=1] - The world gravity y component.\r\n * @param {number} [scale=0.001] - The gravity scale factor.\r\n *\r\n * @return {this} This Matter World object.\r\n */\r\n setGravity: function (x, y, scale)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 1; }\r\n if (scale === undefined) { scale = 0.001; }\r\n\r\n this.localWorld.gravity.x = x;\r\n this.localWorld.gravity.y = y;\r\n this.localWorld.gravity.scale = scale;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Creates a rectangle Matter body and adds it to the world.\r\n *\r\n * @method Phaser.Physics.Matter.World#create\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal position of the body in the world.\r\n * @param {number} y - The vertical position of the body in the world.\r\n * @param {number} width - The width of the body.\r\n * @param {number} height - The height of the body.\r\n * @param {object} options - Optional Matter configuration object.\r\n *\r\n * @return {MatterJS.BodyType} The Matter.js body that was created.\r\n */\r\n create: function (x, y, width, height, options)\r\n {\r\n var body = Bodies.rectangle(x, y, width, height, options);\r\n\r\n MatterWorld.add(this.localWorld, body);\r\n\r\n return body;\r\n },\r\n\r\n /**\r\n * Adds a Matter JS object, or array of objects, to the world.\r\n *\r\n * The objects should be valid Matter JS entities, such as a Body, Composite or Constraint.\r\n *\r\n * Triggers `beforeAdd` and `afterAdd` events.\r\n *\r\n * @method Phaser.Physics.Matter.World#add\r\n * @since 3.0.0\r\n *\r\n * @param {(object|object[])} object - Can be single object, or an array, and can be a body, composite or constraint.\r\n *\r\n * @return {this} This Matter World object.\r\n */\r\n add: function (object)\r\n {\r\n MatterWorld.add(this.localWorld, object);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes a Matter JS object, or array of objects, from the world.\r\n *\r\n * The objects should be valid Matter JS entities, such as a Body, Composite or Constraint.\r\n *\r\n * Triggers `beforeRemove` and `afterRemove` events.\r\n *\r\n * @method Phaser.Physics.Matter.World#remove\r\n * @since 3.0.0\r\n *\r\n * @param {(object|object[])} object - Can be single object, or an array, and can be a body, composite or constraint.\r\n * @param {boolean} [deep=false] - Optionally search the objects children and recursively remove those as well.\r\n *\r\n * @return {this} This Matter World object.\r\n */\r\n remove: function (object, deep)\r\n {\r\n if (!Array.isArray(object))\r\n {\r\n object = [ object ];\r\n }\r\n\r\n for (var i = 0; i < object.length; i++)\r\n {\r\n var entity = object[i];\r\n\r\n var body = (entity.body) ? entity.body : entity;\r\n\r\n Composite.remove(this.localWorld, body, deep);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes a Matter JS constraint, or array of constraints, from the world.\r\n *\r\n * Triggers `beforeRemove` and `afterRemove` events.\r\n *\r\n * @method Phaser.Physics.Matter.World#removeConstraint\r\n * @since 3.0.0\r\n *\r\n * @param {(MatterJS.ConstraintType|MatterJS.ConstraintType[])} constraint - A Matter JS Constraint, or an array of constraints, to be removed.\r\n * @param {boolean} [deep=false] - Optionally search the objects children and recursively remove those as well.\r\n *\r\n * @return {this} This Matter World object.\r\n */\r\n removeConstraint: function (constraint, deep)\r\n {\r\n Composite.remove(this.localWorld, constraint, deep);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds `MatterTileBody` instances for all the colliding tiles within the given tilemap layer.\r\n *\r\n * Set the appropriate tiles in your layer to collide before calling this method!\r\n *\r\n * If you modify the map after calling this method, i.e. via a function like `putTileAt` then\r\n * you should call the `Phaser.Physics.Matter.World.convertTiles` function directly, passing\r\n * it an array of the tiles you've added to your map.\r\n *\r\n * @method Phaser.Physics.Matter.World#convertTilemapLayer\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Tilemaps.TilemapLayer} tilemapLayer - An array of tiles.\r\n * @param {object} [options] - Options to be passed to the MatterTileBody constructor. {@see Phaser.Physics.Matter.TileBody}\r\n *\r\n * @return {this} This Matter World object.\r\n */\r\n convertTilemapLayer: function (tilemapLayer, options)\r\n {\r\n var layerData = tilemapLayer.layer;\r\n var tiles = tilemapLayer.getTilesWithin(0, 0, layerData.width, layerData.height, { isColliding: true });\r\n\r\n this.convertTiles(tiles, options);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Creates `MatterTileBody` instances for all of the given tiles. This creates bodies regardless of whether the\r\n * tiles are set to collide or not, or if they have a body already, or not.\r\n *\r\n * If you wish to pass an array of tiles that may already have bodies, you should filter the array before hand.\r\n *\r\n * @method Phaser.Physics.Matter.World#convertTiles\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Tilemaps.Tile[]} tiles - An array of tiles.\r\n * @param {object} [options] - Options to be passed to the MatterTileBody constructor. {@see Phaser.Physics.Matter.TileBody}\r\n *\r\n * @return {this} This Matter World object.\r\n */\r\n convertTiles: function (tiles, options)\r\n {\r\n if (tiles.length === 0)\r\n {\r\n return this;\r\n }\r\n\r\n for (var i = 0; i < tiles.length; i++)\r\n {\r\n new MatterTileBody(this, tiles[i], options);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns the next unique group index for which bodies will collide.\r\n * If `isNonColliding` is `true`, returns the next unique group index for which bodies will not collide.\r\n *\r\n * @method Phaser.Physics.Matter.World#nextGroup\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [isNonColliding=false] - If `true`, returns the next unique group index for which bodies will _not_ collide.\r\n *\r\n * @return {number} Unique category bitfield\r\n */\r\n nextGroup: function (isNonColliding)\r\n {\r\n return MatterBody.nextGroup(isNonColliding);\r\n },\r\n\r\n /**\r\n * Returns the next unique category bitfield (starting after the initial default category 0x0001).\r\n * There are 32 available.\r\n *\r\n * @method Phaser.Physics.Matter.World#nextCategory\r\n * @since 3.0.0\r\n *\r\n * @return {number} Unique category bitfield\r\n */\r\n nextCategory: function ()\r\n {\r\n return MatterBody.nextCategory();\r\n },\r\n\r\n /**\r\n * Pauses this Matter World instance and sets `enabled` to `false`.\r\n *\r\n * A paused world will not run any simulations for the duration it is paused.\r\n *\r\n * @method Phaser.Physics.Matter.World#pause\r\n * @fires Phaser.Physics.Matter.Events#PAUSE\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Matter World object.\r\n */\r\n pause: function ()\r\n {\r\n this.enabled = false;\r\n\r\n this.emit(Events.PAUSE);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resumes this Matter World instance from a paused state and sets `enabled` to `true`.\r\n *\r\n * @method Phaser.Physics.Matter.World#resume\r\n * @fires Phaser.Physics.Matter.Events#RESUME\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Matter World object.\r\n */\r\n resume: function ()\r\n {\r\n this.enabled = true;\r\n\r\n this.runner.timeLastTick = Common.now();\r\n\r\n this.emit(Events.RESUME);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The internal update method. This is called automatically by the parent Scene.\r\n *\r\n * Moves the simulation forward in time by delta ms. Uses `World.correction` value as an optional number that\r\n * specifies the time correction factor to apply to the update. This can help improve the accuracy of the\r\n * simulation in cases where delta is changing between updates. The value of correction is defined as `delta / lastDelta`,\r\n * i.e. the percentage change of delta over the last step. Therefore the value is always 1 (no correction) when\r\n * delta is constant (or when no correction is desired, which is the default).\r\n * See the paper on Time Corrected Verlet for more information.\r\n *\r\n * Triggers `beforeUpdate` and `afterUpdate` events. Triggers `collisionStart`, `collisionActive` and `collisionEnd` events.\r\n *\r\n * If the World is paused, `update` is still run, but exits early and does not update the Matter Engine.\r\n *\r\n * @method Phaser.Physics.Matter.World#update\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n */\r\n update: function (time)\r\n {\r\n if (!this.enabled || !this.autoUpdate)\r\n {\r\n return;\r\n }\r\n\r\n var engine = this.engine;\r\n var runner = this.runner;\r\n \r\n var tickStartTime = Common.now(),\r\n engineDelta = runner.delta,\r\n updateCount = 0;\r\n\r\n // find frame delta time since last call\r\n var frameDelta = time - runner.timeLastTick;\r\n\r\n // fallback for unusable frame delta values (e.g. 0, NaN, on first frame or long pauses)\r\n if (!frameDelta || !runner.timeLastTick || frameDelta > Math.max(MatterRunner._maxFrameDelta, runner.maxFrameTime))\r\n {\r\n // reuse last accepted frame delta else fallback\r\n frameDelta = runner.frameDelta || MatterRunner._frameDeltaFallback;\r\n }\r\n\r\n if (runner.frameDeltaSmoothing)\r\n {\r\n // record frame delta over a number of frames\r\n runner.frameDeltaHistory.push(frameDelta);\r\n runner.frameDeltaHistory = runner.frameDeltaHistory.slice(-runner.frameDeltaHistorySize);\r\n\r\n // sort frame delta history\r\n var deltaHistorySorted = runner.frameDeltaHistory.slice(0).sort();\r\n\r\n // sample a central window to limit outliers\r\n var deltaHistoryWindow = runner.frameDeltaHistory.slice(\r\n deltaHistorySorted.length * MatterRunner._smoothingLowerBound,\r\n deltaHistorySorted.length * MatterRunner._smoothingUpperBound\r\n );\r\n\r\n // take the mean of the central window\r\n var frameDeltaSmoothed = MatterRunner._mean(deltaHistoryWindow);\r\n frameDelta = frameDeltaSmoothed || frameDelta;\r\n }\r\n\r\n if (runner.frameDeltaSnapping)\r\n {\r\n // snap frame delta to the nearest 1 Hz\r\n frameDelta = 1000 / Math.round(1000 / frameDelta);\r\n }\r\n\r\n // update runner values for next call\r\n runner.frameDelta = frameDelta;\r\n runner.timeLastTick = time;\r\n\r\n // accumulate elapsed time\r\n runner.timeBuffer += runner.frameDelta;\r\n\r\n // limit time buffer size to a single frame of updates\r\n runner.timeBuffer = Common.clamp(\r\n runner.timeBuffer, 0, runner.frameDelta + engineDelta * MatterRunner._timeBufferMargin\r\n );\r\n\r\n // reset count of over budget updates\r\n runner.lastUpdatesDeferred = 0;\r\n\r\n // get max updates per frame\r\n var maxUpdates = runner.maxUpdates || Math.ceil(runner.maxFrameTime / engineDelta);\r\n\r\n var updateStartTime = Common.now();\r\n\r\n // simulate time elapsed between calls\r\n while (engineDelta > 0 && runner.timeBuffer >= engineDelta * MatterRunner._timeBufferMargin)\r\n {\r\n // update the engine\r\n Engine.update(engine, engineDelta);\r\n\r\n // consume time simulated from buffer\r\n runner.timeBuffer -= engineDelta;\r\n updateCount += 1;\r\n\r\n // find elapsed time during this tick\r\n var elapsedTimeTotal = Common.now() - tickStartTime,\r\n elapsedTimeUpdates = Common.now() - updateStartTime,\r\n elapsedNextEstimate = elapsedTimeTotal + MatterRunner._elapsedNextEstimate * elapsedTimeUpdates / updateCount;\r\n\r\n // defer updates if over performance budgets for this frame\r\n if (updateCount >= maxUpdates || elapsedNextEstimate > runner.maxFrameTime)\r\n {\r\n runner.lastUpdatesDeferred = Math.round(Math.max(0, (runner.timeBuffer / engineDelta) - MatterRunner._timeBufferMargin));\r\n break;\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Manually advances the physics simulation by one iteration.\r\n *\r\n * You can optionally pass in the `delta` and `correction` values to be used by Engine.update.\r\n * If undefined they use the Matter defaults of 60Hz and no correction.\r\n *\r\n * Calling `step` directly bypasses any checks of `enabled` or `autoUpdate`.\r\n *\r\n * It also ignores any custom `getDelta` functions, as you should be passing the delta\r\n * value in to this call.\r\n *\r\n * You can adjust the number of iterations that Engine.update performs internally.\r\n * Use the Scene Matter Physics config object to set the following properties:\r\n *\r\n * positionIterations (defaults to 6)\r\n * velocityIterations (defaults to 4)\r\n * constraintIterations (defaults to 2)\r\n *\r\n * Adjusting these values can help performance in certain situations, depending on the physics requirements\r\n * of your game.\r\n *\r\n * @method Phaser.Physics.Matter.World#step\r\n * @since 3.4.0\r\n *\r\n * @param {number} [delta=16.666] - The delta value.\r\n */\r\n step: function (delta)\r\n {\r\n Engine.update(this.engine, delta);\r\n },\r\n\r\n /**\r\n * Runs the Matter Engine.update at a fixed timestep of 60Hz.\r\n *\r\n * @method Phaser.Physics.Matter.World#update60Hz\r\n * @since 3.4.0\r\n *\r\n * @return {number} The delta value to be passed to Engine.update.\r\n */\r\n update60Hz: function ()\r\n {\r\n return 1000 / 60;\r\n },\r\n\r\n /**\r\n * Runs the Matter Engine.update at a fixed timestep of 30Hz.\r\n *\r\n * @method Phaser.Physics.Matter.World#update30Hz\r\n * @since 3.4.0\r\n *\r\n * @return {number} The delta value to be passed to Engine.update.\r\n */\r\n update30Hz: function ()\r\n {\r\n return 1000 / 30;\r\n },\r\n\r\n /**\r\n * Returns `true` if the given body can be found within the World.\r\n *\r\n * @method Phaser.Physics.Matter.World#has\r\n * @since 3.22.0\r\n *\r\n * @param {(MatterJS.Body|Phaser.GameObjects.GameObject)} body - The Matter Body, or Game Object, to search for within the world.\r\n *\r\n * @return {MatterJS.BodyType[]} An array of all the Matter JS Bodies in this World.\r\n */\r\n has: function (body)\r\n {\r\n var src = (body.hasOwnProperty('body')) ? body.body : body;\r\n\r\n return (Composite.get(this.localWorld, src.id, src.type) !== null);\r\n },\r\n\r\n /**\r\n * Returns all the bodies in the Matter World, including all bodies in children, recursively.\r\n *\r\n * @method Phaser.Physics.Matter.World#getAllBodies\r\n * @since 3.22.0\r\n *\r\n * @return {MatterJS.BodyType[]} An array of all the Matter JS Bodies in this World.\r\n */\r\n getAllBodies: function ()\r\n {\r\n return Composite.allBodies(this.localWorld);\r\n },\r\n\r\n /**\r\n * Returns all the constraints in the Matter World, including all constraints in children, recursively.\r\n *\r\n * @method Phaser.Physics.Matter.World#getAllConstraints\r\n * @since 3.22.0\r\n *\r\n * @return {MatterJS.ConstraintType[]} An array of all the Matter JS Constraints in this World.\r\n */\r\n getAllConstraints: function ()\r\n {\r\n return Composite.allConstraints(this.localWorld);\r\n },\r\n\r\n /**\r\n * Returns all the composites in the Matter World, including all composites in children, recursively.\r\n *\r\n * @method Phaser.Physics.Matter.World#getAllComposites\r\n * @since 3.22.0\r\n *\r\n * @return {MatterJS.CompositeType[]} An array of all the Matter JS Composites in this World.\r\n */\r\n getAllComposites: function ()\r\n {\r\n return Composite.allComposites(this.localWorld);\r\n },\r\n\r\n /**\r\n * Handles the rendering of bodies and debug information to the debug Graphics object, if enabled.\r\n *\r\n * This method is called automatically by the Scene after all processing has taken place.\r\n *\r\n * @method Phaser.Physics.Matter.World#postUpdate\r\n * @private\r\n * @since 3.0.0\r\n */\r\n postUpdate: function ()\r\n {\r\n if (!this.drawDebug)\r\n {\r\n return;\r\n }\r\n\r\n var config = this.debugConfig;\r\n var engine = this.engine;\r\n var graphics = this.debugGraphic;\r\n\r\n var bodies = Composite.allBodies(this.localWorld);\r\n\r\n this.debugGraphic.clear();\r\n\r\n if (config.showBroadphase && engine.broadphase.controller)\r\n {\r\n this.renderGrid(engine.broadphase, graphics, config.broadphaseColor, 0.5);\r\n }\r\n\r\n if (config.showBounds)\r\n {\r\n this.renderBodyBounds(bodies, graphics, config.boundsColor, 0.5);\r\n }\r\n\r\n if (config.showBody || config.showStaticBody)\r\n {\r\n this.renderBodies(bodies);\r\n }\r\n\r\n if (config.showJoint)\r\n {\r\n this.renderJoints();\r\n }\r\n\r\n if (config.showAxes || config.showAngleIndicator)\r\n {\r\n this.renderBodyAxes(bodies, graphics, config.showAxes, config.angleColor, 0.5);\r\n }\r\n\r\n if (config.showVelocity)\r\n {\r\n this.renderBodyVelocity(bodies, graphics, config.velocityColor, 1, 2);\r\n }\r\n\r\n if (config.showSeparations)\r\n {\r\n this.renderSeparations(engine.pairs.list, graphics, config.separationColor);\r\n }\r\n\r\n if (config.showCollisions)\r\n {\r\n this.renderCollisions(engine.pairs.list, graphics, config.collisionColor);\r\n }\r\n },\r\n\r\n /**\r\n * Renders the Engine Broadphase Controller Grid to the given Graphics instance.\r\n *\r\n * The debug renderer calls this method if the `showBroadphase` config value is set.\r\n *\r\n * This method is used internally by the Matter Debug Renderer, but is also exposed publically should\r\n * you wish to render the Grid to your own Graphics instance.\r\n *\r\n * @method Phaser.Physics.Matter.World#renderGrid\r\n * @since 3.22.0\r\n *\r\n * @param {MatterJS.Grid} grid - The Matter Grid to be rendered.\r\n * @param {Phaser.GameObjects.Graphics} graphics - The Graphics object to render to.\r\n * @param {number} lineColor - The line color.\r\n * @param {number} lineOpacity - The line opacity, between 0 and 1.\r\n *\r\n * @return {this} This Matter World instance for method chaining.\r\n */\r\n renderGrid: function (grid, graphics, lineColor, lineOpacity)\r\n {\r\n graphics.lineStyle(1, lineColor, lineOpacity);\r\n\r\n var bucketKeys = Common.keys(grid.buckets);\r\n\r\n for (var i = 0; i < bucketKeys.length; i++)\r\n {\r\n var bucketId = bucketKeys[i];\r\n\r\n if (grid.buckets[bucketId].length < 2)\r\n {\r\n continue;\r\n }\r\n\r\n var region = bucketId.split(/C|R/);\r\n\r\n graphics.strokeRect(\r\n parseInt(region[1], 10) * grid.bucketWidth,\r\n parseInt(region[2], 10) * grid.bucketHeight,\r\n grid.bucketWidth,\r\n grid.bucketHeight\r\n );\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Renders the list of Pair separations to the given Graphics instance.\r\n *\r\n * The debug renderer calls this method if the `showSeparations` config value is set.\r\n *\r\n * This method is used internally by the Matter Debug Renderer, but is also exposed publically should\r\n * you wish to render the Grid to your own Graphics instance.\r\n *\r\n * @method Phaser.Physics.Matter.World#renderSeparations\r\n * @since 3.22.0\r\n *\r\n * @param {MatterJS.Pair[]} pairs - An array of Matter Pairs to be rendered.\r\n * @param {Phaser.GameObjects.Graphics} graphics - The Graphics object to render to.\r\n * @param {number} lineColor - The line color.\r\n *\r\n * @return {this} This Matter World instance for method chaining.\r\n */\r\n renderSeparations: function (pairs, graphics, lineColor)\r\n {\r\n graphics.lineStyle(1, lineColor, 1);\r\n\r\n for (var i = 0; i < pairs.length; i++)\r\n {\r\n var pair = pairs[i];\r\n\r\n if (!pair.isActive)\r\n {\r\n continue;\r\n }\r\n\r\n var collision = pair.collision;\r\n var bodyA = collision.bodyA;\r\n var bodyB = collision.bodyB;\r\n var posA = bodyA.position;\r\n var posB = bodyB.position;\r\n var penetration = collision.penetration;\r\n\r\n var k = (!bodyA.isStatic && !bodyB.isStatic) ? 4 : 1;\r\n\r\n if (bodyB.isStatic)\r\n {\r\n k = 0;\r\n }\r\n\r\n graphics.lineBetween(\r\n posB.x,\r\n posB.y,\r\n posB.x - (penetration.x * k),\r\n posB.y - (penetration.y * k)\r\n );\r\n\r\n k = (!bodyA.isStatic && !bodyB.isStatic) ? 4 : 1;\r\n\r\n if (bodyA.isStatic)\r\n {\r\n k = 0;\r\n }\r\n\r\n graphics.lineBetween(\r\n posA.x,\r\n posA.y,\r\n posA.x - (penetration.x * k),\r\n posA.y - (penetration.y * k)\r\n );\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Renders the list of collision points and normals to the given Graphics instance.\r\n *\r\n * The debug renderer calls this method if the `showCollisions` config value is set.\r\n *\r\n * This method is used internally by the Matter Debug Renderer, but is also exposed publically should\r\n * you wish to render the Grid to your own Graphics instance.\r\n *\r\n * @method Phaser.Physics.Matter.World#renderCollisions\r\n * @since 3.22.0\r\n *\r\n * @param {MatterJS.Pair[]} pairs - An array of Matter Pairs to be rendered.\r\n * @param {Phaser.GameObjects.Graphics} graphics - The Graphics object to render to.\r\n * @param {number} lineColor - The line color.\r\n *\r\n * @return {this} This Matter World instance for method chaining.\r\n */\r\n renderCollisions: function (pairs, graphics, lineColor)\r\n {\r\n graphics.lineStyle(1, lineColor, 0.5);\r\n graphics.fillStyle(lineColor, 1);\r\n\r\n var i;\r\n var pair;\r\n\r\n // Collision Positions\r\n\r\n for (i = 0; i < pairs.length; i++)\r\n {\r\n pair = pairs[i];\r\n\r\n if (!pair.isActive)\r\n {\r\n continue;\r\n }\r\n\r\n for (var j = 0; j < pair.contactCount; j++)\r\n {\r\n var contact = pair.contacts[j];\r\n var vertex = contact.vertex;\r\n \r\n if (vertex)\r\n {\r\n graphics.fillRect(vertex.x - 2, vertex.y - 2, 5, 5);\r\n }\r\n }\r\n }\r\n\r\n // Collision Normals\r\n\r\n for (i = 0; i < pairs.length; i++)\r\n {\r\n pair = pairs[i];\r\n\r\n if (!pair.isActive)\r\n {\r\n continue;\r\n }\r\n\r\n var collision = pair.collision;\r\n var contacts = pair.contacts;\r\n\r\n if (pair.contactCount > 0)\r\n {\r\n var normalPosX = contacts[0].vertex.x;\r\n var normalPosY = contacts[0].vertex.y;\r\n\r\n if (pair.contactCount === 2)\r\n {\r\n normalPosX = (contacts[0].vertex.x + contacts[1].vertex.x) / 2;\r\n normalPosY = (contacts[0].vertex.y + contacts[1].vertex.y) / 2;\r\n }\r\n\r\n if (collision.bodyB === collision.supports[0].body || collision.bodyA.isStatic)\r\n {\r\n graphics.lineBetween(\r\n normalPosX - collision.normal.x * 8,\r\n normalPosY - collision.normal.y * 8,\r\n normalPosX,\r\n normalPosY\r\n );\r\n }\r\n else\r\n {\r\n graphics.lineBetween(\r\n normalPosX + collision.normal.x * 8,\r\n normalPosY + collision.normal.y * 8,\r\n normalPosX,\r\n normalPosY\r\n );\r\n }\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Renders the bounds of an array of Bodies to the given Graphics instance.\r\n *\r\n * If the body is a compound body, it will render the bounds for the parent compound.\r\n *\r\n * The debug renderer calls this method if the `showBounds` config value is set.\r\n *\r\n * This method is used internally by the Matter Debug Renderer, but is also exposed publically should\r\n * you wish to render bounds to your own Graphics instance.\r\n *\r\n * @method Phaser.Physics.Matter.World#renderBodyBounds\r\n * @since 3.22.0\r\n *\r\n * @param {array} bodies - An array of bodies from the localWorld.\r\n * @param {Phaser.GameObjects.Graphics} graphics - The Graphics object to render to.\r\n * @param {number} lineColor - The line color.\r\n * @param {number} lineOpacity - The line opacity, between 0 and 1.\r\n */\r\n renderBodyBounds: function (bodies, graphics, lineColor, lineOpacity)\r\n {\r\n graphics.lineStyle(1, lineColor, lineOpacity);\r\n\r\n for (var i = 0; i < bodies.length; i++)\r\n {\r\n var body = bodies[i];\r\n\r\n // 1) Don't show invisible bodies\r\n if (!body.render.visible)\r\n {\r\n continue;\r\n }\r\n\r\n var bounds = body.bounds;\r\n\r\n if (bounds)\r\n {\r\n graphics.strokeRect(\r\n bounds.min.x,\r\n bounds.min.y,\r\n bounds.max.x - bounds.min.x,\r\n bounds.max.y - bounds.min.y\r\n );\r\n }\r\n else\r\n {\r\n var parts = body.parts;\r\n\r\n for (var j = parts.length > 1 ? 1 : 0; j < parts.length; j++)\r\n {\r\n var part = parts[j];\r\n\r\n graphics.strokeRect(\r\n part.bounds.min.x,\r\n part.bounds.min.y,\r\n part.bounds.max.x - part.bounds.min.x,\r\n part.bounds.max.y - part.bounds.min.y\r\n );\r\n }\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Renders either all axes, or a single axis indicator, for an array of Bodies, to the given Graphics instance.\r\n *\r\n * The debug renderer calls this method if the `showAxes` or `showAngleIndicator` config values are set.\r\n *\r\n * This method is used internally by the Matter Debug Renderer, but is also exposed publically should\r\n * you wish to render bounds to your own Graphics instance.\r\n *\r\n * @method Phaser.Physics.Matter.World#renderBodyAxes\r\n * @since 3.22.0\r\n *\r\n * @param {array} bodies - An array of bodies from the localWorld.\r\n * @param {Phaser.GameObjects.Graphics} graphics - The Graphics object to render to.\r\n * @param {boolean} showAxes - If `true` it will render all body axes. If `false` it will render a single axis indicator.\r\n * @param {number} lineColor - The line color.\r\n * @param {number} lineOpacity - The line opacity, between 0 and 1.\r\n */\r\n renderBodyAxes: function (bodies, graphics, showAxes, lineColor, lineOpacity)\r\n {\r\n graphics.lineStyle(1, lineColor, lineOpacity);\r\n\r\n for (var i = 0; i < bodies.length; i++)\r\n {\r\n var body = bodies[i];\r\n var parts = body.parts;\r\n\r\n // 1) Don't show invisible bodies\r\n if (!body.render.visible)\r\n {\r\n continue;\r\n }\r\n\r\n var part;\r\n var j;\r\n var k;\r\n\r\n if (showAxes)\r\n {\r\n for (j = parts.length > 1 ? 1 : 0; j < parts.length; j++)\r\n {\r\n part = parts[j];\r\n\r\n for (k = 0; k < part.axes.length; k++)\r\n {\r\n var axis = part.axes[k];\r\n\r\n graphics.lineBetween(\r\n part.position.x,\r\n part.position.y,\r\n part.position.x + axis.x * 20,\r\n part.position.y + axis.y * 20\r\n );\r\n }\r\n }\r\n }\r\n else\r\n {\r\n for (j = parts.length > 1 ? 1 : 0; j < parts.length; j++)\r\n {\r\n part = parts[j];\r\n\r\n for (k = 0; k < part.axes.length; k++)\r\n {\r\n graphics.lineBetween(\r\n part.position.x,\r\n part.position.y,\r\n (part.vertices[0].x + part.vertices[part.vertices.length - 1].x) / 2,\r\n (part.vertices[0].y + part.vertices[part.vertices.length - 1].y) / 2\r\n );\r\n }\r\n }\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Renders a velocity indicator for an array of Bodies, to the given Graphics instance.\r\n *\r\n * The debug renderer calls this method if the `showVelocity` config value is set.\r\n *\r\n * This method is used internally by the Matter Debug Renderer, but is also exposed publically should\r\n * you wish to render bounds to your own Graphics instance.\r\n *\r\n * @method Phaser.Physics.Matter.World#renderBodyVelocity\r\n * @since 3.22.0\r\n *\r\n * @param {array} bodies - An array of bodies from the localWorld.\r\n * @param {Phaser.GameObjects.Graphics} graphics - The Graphics object to render to.\r\n * @param {number} lineColor - The line color.\r\n * @param {number} lineOpacity - The line opacity, between 0 and 1.\r\n * @param {number} lineThickness - The line thickness.\r\n */\r\n renderBodyVelocity: function (bodies, graphics, lineColor, lineOpacity, lineThickness)\r\n {\r\n graphics.lineStyle(lineThickness, lineColor, lineOpacity);\r\n\r\n for (var i = 0; i < bodies.length; i++)\r\n {\r\n var body = bodies[i];\r\n\r\n // 1) Don't show invisible bodies\r\n if (!body.render.visible)\r\n {\r\n continue;\r\n }\r\n\r\n graphics.lineBetween(\r\n body.position.x,\r\n body.position.y,\r\n body.position.x + (body.position.x - body.positionPrev.x) * 2,\r\n body.position.y + (body.position.y - body.positionPrev.y) * 2\r\n );\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Renders the given array of Bodies to the debug graphics instance.\r\n *\r\n * Called automatically by the `postUpdate` method.\r\n *\r\n * @method Phaser.Physics.Matter.World#renderBodies\r\n * @private\r\n * @since 3.14.0\r\n *\r\n * @param {array} bodies - An array of bodies from the localWorld.\r\n */\r\n renderBodies: function (bodies)\r\n {\r\n var graphics = this.debugGraphic;\r\n\r\n var config = this.debugConfig;\r\n\r\n var showBody = config.showBody;\r\n var showStaticBody = config.showStaticBody;\r\n var showSleeping = config.showSleeping;\r\n var showInternalEdges = config.showInternalEdges;\r\n var showConvexHulls = config.showConvexHulls;\r\n\r\n var renderFill = config.renderFill;\r\n var renderLine = config.renderLine;\r\n\r\n var staticBodySleepOpacity = config.staticBodySleepOpacity;\r\n var sleepFillColor = config.sleepFillColor;\r\n var sleepLineColor = config.sleepLineColor;\r\n\r\n var hullColor = config.hullColor;\r\n\r\n for (var i = 0; i < bodies.length; i++)\r\n {\r\n var body = bodies[i];\r\n\r\n // 1) Don't show invisible bodies\r\n if (!body.render.visible)\r\n {\r\n continue;\r\n }\r\n\r\n // 2) Don't show static bodies, OR\r\n // 3) Don't show dynamic bodies\r\n if ((!showStaticBody && body.isStatic) || (!showBody && !body.isStatic))\r\n {\r\n continue;\r\n }\r\n\r\n var lineColor = body.render.lineColor;\r\n var lineOpacity = body.render.lineOpacity;\r\n var lineThickness = body.render.lineThickness;\r\n var fillColor = body.render.fillColor;\r\n var fillOpacity = body.render.fillOpacity;\r\n\r\n if (showSleeping && body.isSleeping)\r\n {\r\n if (body.isStatic)\r\n {\r\n lineOpacity *= staticBodySleepOpacity;\r\n fillOpacity *= staticBodySleepOpacity;\r\n }\r\n else\r\n {\r\n lineColor = sleepLineColor;\r\n fillColor = sleepFillColor;\r\n }\r\n }\r\n\r\n if (!renderFill)\r\n {\r\n fillColor = null;\r\n }\r\n\r\n if (!renderLine)\r\n {\r\n lineColor = null;\r\n }\r\n\r\n this.renderBody(body, graphics, showInternalEdges, lineColor, lineOpacity, lineThickness, fillColor, fillOpacity);\r\n\r\n var partsLength = body.parts.length;\r\n\r\n if (showConvexHulls && partsLength > 1)\r\n {\r\n this.renderConvexHull(body, graphics, hullColor, lineThickness);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Renders a single Matter Body to the given Phaser Graphics Game Object.\r\n *\r\n * This method is used internally by the Matter Debug Renderer, but is also exposed publically should\r\n * you wish to render a Body to your own Graphics instance.\r\n *\r\n * If you don't wish to render a line around the body, set the `lineColor` parameter to `null`.\r\n * Equally, if you don't wish to render a fill, set the `fillColor` parameter to `null`.\r\n *\r\n * @method Phaser.Physics.Matter.World#renderBody\r\n * @since 3.22.0\r\n *\r\n * @param {MatterJS.BodyType} body - The Matter Body to be rendered.\r\n * @param {Phaser.GameObjects.Graphics} graphics - The Graphics object to render to.\r\n * @param {boolean} showInternalEdges - Render internal edges of the polygon?\r\n * @param {number} [lineColor] - The line color.\r\n * @param {number} [lineOpacity] - The line opacity, between 0 and 1.\r\n * @param {number} [lineThickness=1] - The line thickness.\r\n * @param {number} [fillColor] - The fill color.\r\n * @param {number} [fillOpacity] - The fill opacity, between 0 and 1.\r\n *\r\n * @return {this} This Matter World instance for method chaining.\r\n */\r\n renderBody: function (body, graphics, showInternalEdges, lineColor, lineOpacity, lineThickness, fillColor, fillOpacity)\r\n {\r\n if (lineColor === undefined) { lineColor = null; }\r\n if (lineOpacity === undefined) { lineOpacity = null; }\r\n if (lineThickness === undefined) { lineThickness = 1; }\r\n if (fillColor === undefined) { fillColor = null; }\r\n if (fillOpacity === undefined) { fillOpacity = null; }\r\n\r\n var config = this.debugConfig;\r\n\r\n var sensorFillColor = config.sensorFillColor;\r\n var sensorLineColor = config.sensorLineColor;\r\n\r\n // Handle compound parts\r\n var parts = body.parts;\r\n var partsLength = parts.length;\r\n\r\n for (var k = (partsLength > 1) ? 1 : 0; k < partsLength; k++)\r\n {\r\n var part = parts[k];\r\n var render = part.render;\r\n var opacity = render.opacity;\r\n\r\n if (!render.visible || opacity === 0 || (part.isSensor && !config.showSensors))\r\n {\r\n continue;\r\n }\r\n\r\n // Part polygon\r\n var circleRadius = part.circleRadius;\r\n\r\n graphics.beginPath();\r\n\r\n if (part.isSensor)\r\n {\r\n if (fillColor !== null)\r\n {\r\n graphics.fillStyle(sensorFillColor, fillOpacity * opacity);\r\n }\r\n\r\n if (lineColor !== null)\r\n {\r\n graphics.lineStyle(lineThickness, sensorLineColor, lineOpacity * opacity);\r\n }\r\n }\r\n else\r\n {\r\n if (fillColor !== null)\r\n {\r\n graphics.fillStyle(fillColor, fillOpacity * opacity);\r\n }\r\n\r\n if (lineColor !== null)\r\n {\r\n graphics.lineStyle(lineThickness, lineColor, lineOpacity * opacity);\r\n }\r\n }\r\n\r\n if (circleRadius)\r\n {\r\n graphics.arc(part.position.x, part.position.y, circleRadius, 0, 2 * Math.PI);\r\n }\r\n else\r\n {\r\n var vertices = part.vertices;\r\n var vertLength = vertices.length;\r\n\r\n graphics.moveTo(vertices[0].x, vertices[0].y);\r\n\r\n for (var j = 1; j < vertLength; j++)\r\n {\r\n var vert = vertices[j];\r\n\r\n if (!vertices[j - 1].isInternal || showInternalEdges)\r\n {\r\n graphics.lineTo(vert.x, vert.y);\r\n }\r\n else\r\n {\r\n graphics.moveTo(vert.x, vert.y);\r\n }\r\n\r\n if (j < vertLength && vert.isInternal && !showInternalEdges)\r\n {\r\n var nextIndex = (j + 1) % vertLength;\r\n\r\n graphics.moveTo(vertices[nextIndex].x, vertices[nextIndex].y);\r\n }\r\n }\r\n\r\n graphics.closePath();\r\n }\r\n\r\n if (fillColor !== null)\r\n {\r\n graphics.fillPath();\r\n }\r\n\r\n if (lineColor !== null)\r\n {\r\n graphics.strokePath();\r\n }\r\n }\r\n\r\n if (config.showPositions && !body.isStatic)\r\n {\r\n var px = body.position.x;\r\n var py = body.position.y;\r\n var hs = Math.ceil(config.positionSize / 2);\r\n\r\n graphics.fillStyle(config.positionColor, 1);\r\n graphics.fillRect(px - hs, py - hs, config.positionSize, config.positionSize);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Renders the Convex Hull for a single Matter Body to the given Phaser Graphics Game Object.\r\n *\r\n * This method is used internally by the Matter Debug Renderer, but is also exposed publically should\r\n * you wish to render a Body hull to your own Graphics instance.\r\n *\r\n * @method Phaser.Physics.Matter.World#renderConvexHull\r\n * @since 3.22.0\r\n *\r\n * @param {MatterJS.BodyType} body - The Matter Body to be rendered.\r\n * @param {Phaser.GameObjects.Graphics} graphics - The Graphics object to render to.\r\n * @param {number} hullColor - The color used to render the hull.\r\n * @param {number} [lineThickness=1] - The hull line thickness.\r\n *\r\n * @return {this} This Matter World instance for method chaining.\r\n */\r\n renderConvexHull: function (body, graphics, hullColor, lineThickness)\r\n {\r\n if (lineThickness === undefined) { lineThickness = 1; }\r\n\r\n var parts = body.parts;\r\n var partsLength = parts.length;\r\n\r\n // Render Convex Hulls\r\n if (partsLength > 1)\r\n {\r\n var verts = body.vertices;\r\n\r\n graphics.lineStyle(lineThickness, hullColor);\r\n\r\n graphics.beginPath();\r\n\r\n graphics.moveTo(verts[0].x, verts[0].y);\r\n\r\n for (var v = 1; v < verts.length; v++)\r\n {\r\n graphics.lineTo(verts[v].x, verts[v].y);\r\n }\r\n\r\n graphics.lineTo(verts[0].x, verts[0].y);\r\n\r\n graphics.strokePath();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Renders all of the constraints in the world (unless they are specifically set to invisible).\r\n *\r\n * Called automatically by the `postUpdate` method.\r\n *\r\n * @method Phaser.Physics.Matter.World#renderJoints\r\n * @private\r\n * @since 3.14.0\r\n */\r\n renderJoints: function ()\r\n {\r\n var graphics = this.debugGraphic;\r\n\r\n // Render constraints\r\n var constraints = Composite.allConstraints(this.localWorld);\r\n\r\n for (var i = 0; i < constraints.length; i++)\r\n {\r\n var config = constraints[i].render;\r\n\r\n var lineColor = config.lineColor;\r\n var lineOpacity = config.lineOpacity;\r\n var lineThickness = config.lineThickness;\r\n var pinSize = config.pinSize;\r\n var anchorColor = config.anchorColor;\r\n var anchorSize = config.anchorSize;\r\n\r\n this.renderConstraint(constraints[i], graphics, lineColor, lineOpacity, lineThickness, pinSize, anchorColor, anchorSize);\r\n }\r\n },\r\n\r\n /**\r\n * Renders a single Matter Constraint, such as a Pin or a Spring, to the given Phaser Graphics Game Object.\r\n *\r\n * This method is used internally by the Matter Debug Renderer, but is also exposed publically should\r\n * you wish to render a Constraint to your own Graphics instance.\r\n *\r\n * @method Phaser.Physics.Matter.World#renderConstraint\r\n * @since 3.22.0\r\n *\r\n * @param {MatterJS.ConstraintType} constraint - The Matter Constraint to render.\r\n * @param {Phaser.GameObjects.Graphics} graphics - The Graphics object to render to.\r\n * @param {number} lineColor - The line color.\r\n * @param {number} lineOpacity - The line opacity, between 0 and 1.\r\n * @param {number} lineThickness - The line thickness.\r\n * @param {number} pinSize - If this constraint is a pin, this sets the size of the pin circle.\r\n * @param {number} anchorColor - The color used when rendering this constraints anchors. Set to `null` to not render anchors.\r\n * @param {number} anchorSize - The size of the anchor circle, if this constraint has anchors and is rendering them.\r\n *\r\n * @return {this} This Matter World instance for method chaining.\r\n */\r\n renderConstraint: function (constraint, graphics, lineColor, lineOpacity, lineThickness, pinSize, anchorColor, anchorSize)\r\n {\r\n var render = constraint.render;\r\n\r\n if (!render.visible || !constraint.pointA || !constraint.pointB)\r\n {\r\n return this;\r\n }\r\n\r\n graphics.lineStyle(lineThickness, lineColor, lineOpacity);\r\n\r\n var bodyA = constraint.bodyA;\r\n var bodyB = constraint.bodyB;\r\n var start;\r\n var end;\r\n\r\n if (bodyA)\r\n {\r\n start = Vector.add(bodyA.position, constraint.pointA);\r\n }\r\n else\r\n {\r\n start = constraint.pointA;\r\n }\r\n\r\n if (render.type === 'pin')\r\n {\r\n graphics.strokeCircle(start.x, start.y, pinSize);\r\n }\r\n else\r\n {\r\n if (bodyB)\r\n {\r\n end = Vector.add(bodyB.position, constraint.pointB);\r\n }\r\n else\r\n {\r\n end = constraint.pointB;\r\n }\r\n\r\n graphics.beginPath();\r\n graphics.moveTo(start.x, start.y);\r\n\r\n if (render.type === 'spring')\r\n {\r\n var delta = Vector.sub(end, start);\r\n var normal = Vector.perp(Vector.normalise(delta));\r\n var coils = Math.ceil(Common.clamp(constraint.length / 5, 12, 20));\r\n var offset;\r\n\r\n for (var j = 1; j < coils; j += 1)\r\n {\r\n offset = (j % 2 === 0) ? 1 : -1;\r\n\r\n graphics.lineTo(\r\n start.x + delta.x * (j / coils) + normal.x * offset * 4,\r\n start.y + delta.y * (j / coils) + normal.y * offset * 4\r\n );\r\n }\r\n }\r\n\r\n graphics.lineTo(end.x, end.y);\r\n }\r\n\r\n graphics.strokePath();\r\n\r\n if (render.anchors && anchorSize > 0)\r\n {\r\n graphics.fillStyle(anchorColor);\r\n graphics.fillCircle(start.x, start.y, anchorSize);\r\n graphics.fillCircle(end.x, end.y, anchorSize);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resets the internal collision IDs that Matter.JS uses for Body collision groups.\r\n *\r\n * You should call this before destroying your game if you need to restart the game\r\n * again on the same page, without first reloading the page. Or, if you wish to\r\n * consistently destroy a Scene that contains Matter.js and then run it again\r\n * later in the same game.\r\n *\r\n * @method Phaser.Physics.Matter.World#resetCollisionIDs\r\n * @since 3.17.0\r\n */\r\n resetCollisionIDs: function ()\r\n {\r\n Body._nextCollidingGroupId = 1;\r\n Body._nextNonCollidingGroupId = -1;\r\n Body._nextCategory = 0x0001;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Will remove all Matter physics event listeners and clear the matter physics world,\r\n * engine and any debug graphics, if any.\r\n *\r\n * @method Phaser.Physics.Matter.World#shutdown\r\n * @since 3.0.0\r\n */\r\n shutdown: function ()\r\n {\r\n MatterEvents.off(this.engine);\r\n\r\n this.removeAllListeners();\r\n\r\n MatterWorld.clear(this.localWorld, false);\r\n\r\n Engine.clear(this.engine);\r\n\r\n if (this.drawDebug)\r\n {\r\n this.debugGraphic.destroy();\r\n }\r\n },\r\n\r\n /**\r\n * Will remove all Matter physics event listeners and clear the matter physics world,\r\n * engine and any debug graphics, if any.\r\n *\r\n * After destroying the world it cannot be re-used again.\r\n *\r\n * @method Phaser.Physics.Matter.World#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.shutdown();\r\n }\r\n\r\n});\r\n\r\nmodule.exports = World;\r\n\n\n/***/ }),\n\n/***/ 70410:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * A component to set restitution on objects.\r\n *\r\n * @namespace Phaser.Physics.Matter.Components.Bounce\r\n * @since 3.0.0\r\n */\r\nvar Bounce = {\r\n\r\n /**\r\n * Sets the restitution on the physics object.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Bounce#setBounce\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - A Number that defines the restitution (elasticity) of the body. The value is always positive and is in the range (0, 1). A value of 0 means collisions may be perfectly inelastic and no bouncing may occur. A value of 0.8 means the body may bounce back with approximately 80% of its kinetic energy. Note that collision response is based on pairs of bodies, and that restitution values are combined with the following formula: `Math.max(bodyA.restitution, bodyB.restitution)`\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setBounce: function (value)\r\n {\r\n this.body.restitution = value;\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Bounce;\r\n\n\n/***/ }),\n\n/***/ 66968:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Contains methods for changing the collision filter of a Matter Body. Should be used as a mixin and not called directly.\r\n *\r\n * @namespace Phaser.Physics.Matter.Components.Collision\r\n * @since 3.0.0\r\n */\r\nvar Collision = {\r\n\r\n /**\r\n * Sets the collision category of this Game Object's Matter Body. This number must be a power of two between 2^0 (= 1) and 2^31.\r\n * Two bodies with different collision groups (see {@link #setCollisionGroup}) will only collide if their collision\r\n * categories are included in their collision masks (see {@link #setCollidesWith}).\r\n *\r\n * @method Phaser.Physics.Matter.Components.Collision#setCollisionCategory\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - Unique category bitfield.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setCollisionCategory: function (value)\r\n {\r\n this.body.collisionFilter.category = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the collision group of this Game Object's Matter Body. If this is zero or two Matter Bodies have different values,\r\n * they will collide according to the usual rules (see {@link #setCollisionCategory} and {@link #setCollisionGroup}).\r\n * If two Matter Bodies have the same positive value, they will always collide; if they have the same negative value,\r\n * they will never collide.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Collision#setCollisionGroup\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - Unique group index.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setCollisionGroup: function (value)\r\n {\r\n this.body.collisionFilter.group = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the collision mask for this Game Object's Matter Body. Two Matter Bodies with different collision groups will only\r\n * collide if each one includes the other's category in its mask based on a bitwise AND, i.e. `(categoryA & maskB) !== 0`\r\n * and `(categoryB & maskA) !== 0` are both true.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Collision#setCollidesWith\r\n * @since 3.0.0\r\n *\r\n * @param {(number|number[])} categories - A unique category bitfield, or an array of them.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setCollidesWith: function (categories)\r\n {\r\n var flags = 0;\r\n\r\n if (!Array.isArray(categories))\r\n {\r\n flags = categories;\r\n }\r\n else\r\n {\r\n for (var i = 0; i < categories.length; i++)\r\n {\r\n flags |= categories[i];\r\n }\r\n }\r\n\r\n this.body.collisionFilter.mask = flags;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The callback is sent a `Phaser.Types.Physics.Matter.MatterCollisionData` object.\r\n *\r\n * This does not change the bodies collision category, group or filter. Those must be set in addition\r\n * to the callback.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Collision#setOnCollide\r\n * @since 3.22.0\r\n *\r\n * @param {function} callback - The callback to invoke when this body starts colliding with another.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setOnCollide: function (callback)\r\n {\r\n this.body.onCollideCallback = callback;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The callback is sent a `Phaser.Types.Physics.Matter.MatterCollisionData` object.\r\n *\r\n * This does not change the bodies collision category, group or filter. Those must be set in addition\r\n * to the callback.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Collision#setOnCollideEnd\r\n * @since 3.22.0\r\n *\r\n * @param {function} callback - The callback to invoke when this body stops colliding with another.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setOnCollideEnd: function (callback)\r\n {\r\n this.body.onCollideEndCallback = callback;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The callback is sent a `Phaser.Types.Physics.Matter.MatterCollisionData` object.\r\n *\r\n * This does not change the bodies collision category, group or filter. Those must be set in addition\r\n * to the callback.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Collision#setOnCollideActive\r\n * @since 3.22.0\r\n *\r\n * @param {function} callback - The callback to invoke for the duration of this body colliding with another.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setOnCollideActive: function (callback)\r\n {\r\n this.body.onCollideActiveCallback = callback;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The callback is sent a reference to the other body, along with a `Phaser.Types.Physics.Matter.MatterCollisionData` object.\r\n *\r\n * This does not change the bodies collision category, group or filter. Those must be set in addition\r\n * to the callback.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Collision#setOnCollideWith\r\n * @since 3.22.0\r\n *\r\n * @param {(MatterJS.Body|MatterJS.Body[])} body - The body, or an array of bodies, to test for collisions with.\r\n * @param {function} callback - The callback to invoke when this body collides with the given body or bodies.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setOnCollideWith: function (body, callback)\r\n {\r\n if (!Array.isArray(body))\r\n {\r\n body = [ body ];\r\n }\r\n\r\n for (var i = 0; i < body.length; i++)\r\n {\r\n var src = (body[i].hasOwnProperty('body')) ? body[i].body : body[i];\r\n\r\n this.body.setOnCollideWith(src, callback);\r\n }\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Collision;\r\n\n\n/***/ }),\n\n/***/ 51607:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Body = __webpack_require__(22562);\r\n\r\n/**\r\n * A component to apply force to Matter.js bodies.\r\n *\r\n * @namespace Phaser.Physics.Matter.Components.Force\r\n * @since 3.0.0\r\n */\r\nvar Force = {\r\n\r\n // force = vec2 / point\r\n\r\n /**\r\n * Applies a force to a body.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Force#applyForce\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector2} force - A Vector that specifies the force to apply.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n applyForce: function (force)\r\n {\r\n this._tempVec2.set(this.body.position.x, this.body.position.y);\r\n\r\n Body.applyForce(this.body, this._tempVec2, force);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Applies a force to a body from a given position.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Force#applyForceFrom\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Math.Vector2} position - The position in which the force comes from.\r\n * @param {Phaser.Math.Vector2} force - A Vector that specifies the force to apply.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n applyForceFrom: function (position, force)\r\n {\r\n Body.applyForce(this.body, position, force);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Apply thrust to the forward position of the body.\r\n *\r\n * Use very small values, such as 0.1, depending on the mass and required speed.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Force#thrust\r\n * @since 3.0.0\r\n *\r\n * @param {number} speed - A speed value to be applied to a directional force.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n thrust: function (speed)\r\n {\r\n var angle = this.body.angle;\r\n\r\n this._tempVec2.set(speed * Math.cos(angle), speed * Math.sin(angle));\r\n\r\n Body.applyForce(this.body, { x: this.body.position.x, y: this.body.position.y }, this._tempVec2);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Apply thrust to the left position of the body.\r\n *\r\n * Use very small values, such as 0.1, depending on the mass and required speed.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Force#thrustLeft\r\n * @since 3.0.0\r\n *\r\n * @param {number} speed - A speed value to be applied to a directional force.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n thrustLeft: function (speed)\r\n {\r\n var angle = this.body.angle - Math.PI / 2;\r\n\r\n this._tempVec2.set(speed * Math.cos(angle), speed * Math.sin(angle));\r\n\r\n Body.applyForce(this.body, { x: this.body.position.x, y: this.body.position.y }, this._tempVec2);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Apply thrust to the right position of the body.\r\n *\r\n * Use very small values, such as 0.1, depending on the mass and required speed.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Force#thrustRight\r\n * @since 3.0.0\r\n *\r\n * @param {number} speed - A speed value to be applied to a directional force.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n thrustRight: function (speed)\r\n {\r\n var angle = this.body.angle + Math.PI / 2;\r\n\r\n this._tempVec2.set(speed * Math.cos(angle), speed * Math.sin(angle));\r\n\r\n Body.applyForce(this.body, { x: this.body.position.x, y: this.body.position.y }, this._tempVec2);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Apply thrust to the back position of the body.\r\n *\r\n * Use very small values, such as 0.1, depending on the mass and required speed.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Force#thrustBack\r\n * @since 3.0.0\r\n *\r\n * @param {number} speed - A speed value to be applied to a directional force.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n thrustBack: function (speed)\r\n {\r\n var angle = this.body.angle - Math.PI;\r\n\r\n this._tempVec2.set(speed * Math.cos(angle), speed * Math.sin(angle));\r\n\r\n Body.applyForce(this.body, { x: this.body.position.x, y: this.body.position.y }, this._tempVec2);\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Force;\r\n\n\n/***/ }),\n\n/***/ 5436:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Contains methods for changing the friction of a Game Object's Matter Body. Should be used a mixin, not called directly.\r\n *\r\n * @namespace Phaser.Physics.Matter.Components.Friction\r\n * @since 3.0.0\r\n */\r\nvar Friction = {\r\n\r\n /**\r\n * Sets new friction values for this Game Object's Matter Body.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Friction#setFriction\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The new friction of the body, between 0 and 1, where 0 allows the Body to slide indefinitely, while 1 allows it to stop almost immediately after a force is applied.\r\n * @param {number} [air] - If provided, the new air resistance of the Body. The higher the value, the faster the Body will slow as it moves through space. 0 means the body has no air resistance.\r\n * @param {number} [fstatic] - If provided, the new static friction of the Body. The higher the value (e.g. 10), the more force it will take to initially get the Body moving when it is nearly stationary. 0 means the body will never \"stick\" when it is nearly stationary.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setFriction: function (value, air, fstatic)\r\n {\r\n this.body.friction = value;\r\n\r\n if (air !== undefined)\r\n {\r\n this.body.frictionAir = air;\r\n }\r\n\r\n if (fstatic !== undefined)\r\n {\r\n this.body.frictionStatic = fstatic;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a new air resistance for this Game Object's Matter Body.\r\n * A value of 0 means the Body will never slow as it moves through space.\r\n * The higher the value, the faster a Body slows when moving through space.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Friction#setFrictionAir\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The new air resistance for the Body.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setFrictionAir: function (value)\r\n {\r\n this.body.frictionAir = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a new static friction for this Game Object's Matter Body.\r\n * A value of 0 means the Body will never \"stick\" when it is nearly stationary.\r\n * The higher the value (e.g. 10), the more force it will take to initially get the Body moving when it is nearly stationary.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Friction#setFrictionStatic\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The new static friction for the Body.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setFrictionStatic: function (value)\r\n {\r\n this.body.frictionStatic = value;\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Friction;\r\n\n\n/***/ }),\n\n/***/ 39858:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * A component to manipulate world gravity for Matter.js bodies.\r\n *\r\n * @namespace Phaser.Physics.Matter.Components.Gravity\r\n * @since 3.0.0\r\n */\r\nvar Gravity = {\r\n\r\n /**\r\n * A togglable function for ignoring world gravity in real-time on the current body.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Gravity#setIgnoreGravity\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} value - Set to true to ignore the effect of world gravity, or false to not ignore it.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setIgnoreGravity: function (value)\r\n {\r\n this.body.ignoreGravity = value;\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Gravity;\r\n\n\n/***/ }),\n\n/***/ 37302:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Body = __webpack_require__(22562);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * Allows accessing the mass, density, and center of mass of a Matter-enabled Game Object. Should be used as a mixin and not directly.\r\n *\r\n * @namespace Phaser.Physics.Matter.Components.Mass\r\n * @since 3.0.0\r\n */\r\nvar Mass = {\r\n\r\n /**\r\n * Sets the mass of the Game Object's Matter Body.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Mass#setMass\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The new mass of the body.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setMass: function (value)\r\n {\r\n Body.setMass(this.body, value);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets density of the body.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Mass#setDensity\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The new density of the body.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setDensity: function (value)\r\n {\r\n Body.setDensity(this.body, value);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The body's center of mass.\r\n *\r\n * Calling this creates a new `Vector2 each time to avoid mutation.\r\n *\r\n * If you only need to read the value and won't change it, you can get it from `GameObject.body.centerOfMass`.\r\n *\r\n * @name Phaser.Physics.Matter.Components.Mass#centerOfMass\r\n * @type {Phaser.Math.Vector2}\r\n * @readonly\r\n * @since 3.10.0\r\n *\r\n * @return {Phaser.Math.Vector2} The center of mass.\r\n */\r\n centerOfMass: {\r\n\r\n get: function ()\r\n {\r\n return new Vector2(this.body.centerOfMass.x, this.body.centerOfMass.y);\r\n }\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Mass;\r\n\n\n/***/ }),\n\n/***/ 39132:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Enables a Matter-enabled Game Object to be a sensor. Should be used as a mixin and not directly.\r\n *\r\n * @namespace Phaser.Physics.Matter.Components.Sensor\r\n * @since 3.0.0\r\n */\r\nvar Sensor = {\r\n\r\n /**\r\n * Set the body belonging to this Game Object to be a sensor.\r\n * Sensors trigger collision events, but don't react with colliding body physically.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Sensor#setSensor\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} value - `true` to set the body as a sensor, or `false` to disable it.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setSensor: function (value)\r\n {\r\n this.body.isSensor = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Is the body belonging to this Game Object a sensor or not?\r\n *\r\n * @method Phaser.Physics.Matter.Components.Sensor#isSensor\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} `true` if the body is a sensor, otherwise `false`.\r\n */\r\n isSensor: function ()\r\n {\r\n return this.body.isSensor;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Sensor;\r\n\n\n/***/ }),\n\n/***/ 57772:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Bodies = __webpack_require__(66280);\r\nvar Body = __webpack_require__(22562);\r\nvar FuzzyEquals = __webpack_require__(43855);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar PhysicsEditorParser = __webpack_require__(19496);\r\nvar PhysicsJSONParser = __webpack_require__(85791);\r\nvar Vertices = __webpack_require__(41598);\r\n\r\n/**\r\n * Enables a Matter-enabled Game Object to set its Body. Should be used as a mixin and not directly.\r\n *\r\n * @namespace Phaser.Physics.Matter.Components.SetBody\r\n * @since 3.0.0\r\n */\r\nvar SetBody = {\r\n\r\n /**\r\n * Set this Game Objects Matter physics body to be a rectangle shape.\r\n *\r\n * Calling this methods resets all previous properties you may have set on the body, including\r\n * plugins, mass, friction, collision categories, etc. So be sure to re-apply these as needed.\r\n *\r\n * @method Phaser.Physics.Matter.Components.SetBody#setRectangle\r\n * @since 3.0.0\r\n *\r\n * @param {number} width - Width of the rectangle.\r\n * @param {number} height - Height of the rectangle.\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setRectangle: function (width, height, options)\r\n {\r\n return this.setBody({ type: 'rectangle', width: width, height: height }, options);\r\n },\r\n\r\n /**\r\n * Set this Game Objects Matter physics body to be a circle shape.\r\n *\r\n * Calling this methods resets all previous properties you may have set on the body, including\r\n * plugins, mass, friction, collision categories, etc. So be sure to re-apply these as needed.\r\n *\r\n * @method Phaser.Physics.Matter.Components.SetBody#setCircle\r\n * @since 3.0.0\r\n *\r\n * @param {number} radius - The radius of the circle.\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setCircle: function (radius, options)\r\n {\r\n return this.setBody({ type: 'circle', radius: radius }, options);\r\n },\r\n\r\n /**\r\n * Set this Game Objects Matter physics body to be a polygon shape.\r\n *\r\n * Calling this methods resets all previous properties you may have set on the body, including\r\n * plugins, mass, friction, collision categories, etc. So be sure to re-apply these as needed.\r\n *\r\n * @method Phaser.Physics.Matter.Components.SetBody#setPolygon\r\n * @since 3.0.0\r\n *\r\n * @param {number} radius - The \"radius\" of the polygon, i.e. the distance from its center to any vertex. This is also the radius of its circumcircle.\r\n * @param {number} sides - The number of sides the polygon will have.\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setPolygon: function (radius, sides, options)\r\n {\r\n return this.setBody({ type: 'polygon', sides: sides, radius: radius }, options);\r\n },\r\n\r\n /**\r\n * Set this Game Objects Matter physics body to be a trapezoid shape.\r\n *\r\n * Calling this methods resets all previous properties you may have set on the body, including\r\n * plugins, mass, friction, collision categories, etc. So be sure to re-apply these as needed.\r\n *\r\n * @method Phaser.Physics.Matter.Components.SetBody#setTrapezoid\r\n * @since 3.0.0\r\n *\r\n * @param {number} width - The width of the trapezoid Body.\r\n * @param {number} height - The height of the trapezoid Body.\r\n * @param {number} slope - The slope of the trapezoid. 0 creates a rectangle, while 1 creates a triangle. Positive values make the top side shorter, while negative values make the bottom side shorter.\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setTrapezoid: function (width, height, slope, options)\r\n {\r\n return this.setBody({ type: 'trapezoid', width: width, height: height, slope: slope }, options);\r\n },\r\n\r\n /**\r\n * Set this Game Object to use the given existing Matter Body.\r\n *\r\n * The body is first removed from the world before being added to this Game Object.\r\n *\r\n * @method Phaser.Physics.Matter.Components.SetBody#setExistingBody\r\n * @since 3.0.0\r\n *\r\n * @param {MatterJS.BodyType} body - The Body this Game Object should use.\r\n * @param {boolean} [addToWorld=true] - Should the body be immediately added to the World?\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setExistingBody: function (body, addToWorld)\r\n {\r\n if (addToWorld === undefined) { addToWorld = true; }\r\n\r\n if (this.body)\r\n {\r\n this.world.remove(this.body, true);\r\n }\r\n\r\n this.body = body;\r\n\r\n for (var i = 0; i < body.parts.length; i++)\r\n {\r\n body.parts[i].gameObject = this;\r\n }\r\n\r\n var _this = this;\r\n\r\n body.destroy = function destroy ()\r\n {\r\n _this.world.remove(_this.body, true);\r\n _this.body.gameObject = null;\r\n };\r\n\r\n if (addToWorld)\r\n {\r\n if (this.world.has(body))\r\n {\r\n // Because it could be part of another Composite\r\n this.world.remove(body, true);\r\n }\r\n\r\n this.world.add(body);\r\n }\r\n\r\n if (this._originComponent)\r\n {\r\n var rx = body.render.sprite.xOffset;\r\n var ry = body.render.sprite.yOffset;\r\n\r\n var comx = body.centerOfMass.x;\r\n var comy = body.centerOfMass.y;\r\n\r\n if (FuzzyEquals(comx, 0.5) && FuzzyEquals(comy, 0.5))\r\n {\r\n this.setOrigin(rx + 0.5, ry + 0.5);\r\n }\r\n else\r\n {\r\n var cx = body.centerOffset.x;\r\n var cy = body.centerOffset.y;\r\n\r\n this.setOrigin(rx + (cx / this.displayWidth), ry + (cy / this.displayHeight));\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set this Game Object to create and use a new Body based on the configuration object given.\r\n *\r\n * Calling this methods resets all previous properties you may have set on the body, including\r\n * plugins, mass, friction, collision categories, etc. So be sure to re-apply these as needed.\r\n *\r\n * @method Phaser.Physics.Matter.Components.SetBody#setBody\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Physics.Matter.MatterSetBodyConfig)} config - Either a string, such as `circle`, or a Matter Set Body Configuration object.\r\n * @param {Phaser.Types.Physics.Matter.MatterBodyConfig} [options] - An optional Body configuration object that is used to set initial Body properties on creation.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setBody: function (config, options)\r\n {\r\n if (!config)\r\n {\r\n return this;\r\n }\r\n\r\n var body;\r\n\r\n // Allow them to do: shape: 'circle' instead of shape: { type: 'circle' }\r\n if (typeof config === 'string')\r\n {\r\n // Using defaults\r\n config = { type: config };\r\n }\r\n\r\n var shapeType = GetFastValue(config, 'type', 'rectangle');\r\n var bodyX = GetFastValue(config, 'x', this._tempVec2.x);\r\n var bodyY = GetFastValue(config, 'y', this._tempVec2.y);\r\n var bodyWidth = GetFastValue(config, 'width', this.width);\r\n var bodyHeight = GetFastValue(config, 'height', this.height);\r\n\r\n switch (shapeType)\r\n {\r\n case 'rectangle':\r\n body = Bodies.rectangle(bodyX, bodyY, bodyWidth, bodyHeight, options);\r\n break;\r\n\r\n case 'circle':\r\n var radius = GetFastValue(config, 'radius', Math.max(bodyWidth, bodyHeight) / 2);\r\n var maxSides = GetFastValue(config, 'maxSides', 25);\r\n body = Bodies.circle(bodyX, bodyY, radius, options, maxSides);\r\n break;\r\n\r\n case 'trapezoid':\r\n var slope = GetFastValue(config, 'slope', 0.5);\r\n body = Bodies.trapezoid(bodyX, bodyY, bodyWidth, bodyHeight, slope, options);\r\n break;\r\n\r\n case 'polygon':\r\n var sides = GetFastValue(config, 'sides', 5);\r\n var pRadius = GetFastValue(config, 'radius', Math.max(bodyWidth, bodyHeight) / 2);\r\n body = Bodies.polygon(bodyX, bodyY, sides, pRadius, options);\r\n break;\r\n\r\n case 'fromVertices':\r\n case 'fromVerts':\r\n\r\n var verts = GetFastValue(config, 'verts', null);\r\n\r\n if (verts)\r\n {\r\n // Has the verts array come from Vertices.fromPath, or is it raw?\r\n if (typeof verts === 'string')\r\n {\r\n verts = Vertices.fromPath(verts);\r\n }\r\n\r\n if (this.body && !this.body.hasOwnProperty('temp'))\r\n {\r\n Body.setVertices(this.body, verts);\r\n\r\n body = this.body;\r\n }\r\n else\r\n {\r\n var flagInternal = GetFastValue(config, 'flagInternal', false);\r\n var removeCollinear = GetFastValue(config, 'removeCollinear', 0.01);\r\n var minimumArea = GetFastValue(config, 'minimumArea', 10);\r\n\r\n body = Bodies.fromVertices(bodyX, bodyY, verts, options, flagInternal, removeCollinear, minimumArea);\r\n }\r\n }\r\n\r\n break;\r\n\r\n case 'fromPhysicsEditor':\r\n body = PhysicsEditorParser.parseBody(bodyX, bodyY, config, options);\r\n break;\r\n\r\n case 'fromPhysicsTracer':\r\n body = PhysicsJSONParser.parseBody(bodyX, bodyY, config, options);\r\n break;\r\n }\r\n\r\n if (body)\r\n {\r\n this.setExistingBody(body, config.addToWorld);\r\n }\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = SetBody;\r\n\n\n/***/ }),\n\n/***/ 38083:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Events = __webpack_require__(1121);\r\nvar Sleeping = __webpack_require__(53614);\r\nvar MatterEvents = __webpack_require__(35810);\r\n\r\n/**\r\n * Enables a Matter-enabled Game Object to be able to go to sleep. Should be used as a mixin and not directly.\r\n *\r\n * @namespace Phaser.Physics.Matter.Components.Sleep\r\n * @since 3.0.0\r\n */\r\nvar Sleep = {\r\n\r\n /**\r\n * Sets this Body to sleep.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Sleep#setToSleep\r\n * @since 3.22.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setToSleep: function ()\r\n {\r\n Sleeping.set(this.body, true);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Wakes this Body if asleep.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Sleep#setAwake\r\n * @since 3.22.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setAwake: function ()\r\n {\r\n Sleeping.set(this.body, false);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the number of updates in which this body must have near-zero velocity before it is set as sleeping (if sleeping is enabled by the engine).\r\n *\r\n * @method Phaser.Physics.Matter.Components.Sleep#setSleepThreshold\r\n * @since 3.0.0\r\n *\r\n * @param {number} [value=60] - A `Number` that defines the number of updates in which this body must have near-zero velocity before it is set as sleeping.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setSleepThreshold: function (value)\r\n {\r\n if (value === undefined) { value = 60; }\r\n\r\n this.body.sleepThreshold = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Enable sleep and wake events for this body.\r\n *\r\n * By default when a body goes to sleep, or wakes up, it will not emit any events.\r\n *\r\n * The events are emitted by the Matter World instance and can be listened to via\r\n * the `SLEEP_START` and `SLEEP_END` events.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Sleep#setSleepEvents\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} start - `true` if you want the sleep start event to be emitted for this body.\r\n * @param {boolean} end - `true` if you want the sleep end event to be emitted for this body.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setSleepEvents: function (start, end)\r\n {\r\n this.setSleepStartEvent(start);\r\n this.setSleepEndEvent(end);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Enables or disables the Sleep Start event for this body.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Sleep#setSleepStartEvent\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} value - `true` to enable the sleep event, or `false` to disable it.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setSleepStartEvent: function (value)\r\n {\r\n if (value)\r\n {\r\n var world = this.world;\r\n\r\n MatterEvents.on(this.body, 'sleepStart', function (event)\r\n {\r\n world.emit(Events.SLEEP_START, event, this);\r\n });\r\n }\r\n else\r\n {\r\n MatterEvents.off(this.body, 'sleepStart');\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Enables or disables the Sleep End event for this body.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Sleep#setSleepEndEvent\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} value - `true` to enable the sleep event, or `false` to disable it.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setSleepEndEvent: function (value)\r\n {\r\n if (value)\r\n {\r\n var world = this.world;\r\n\r\n MatterEvents.on(this.body, 'sleepEnd', function (event)\r\n {\r\n world.emit(Events.SLEEP_END, event, this);\r\n });\r\n }\r\n else\r\n {\r\n MatterEvents.off(this.body, 'sleepEnd');\r\n }\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Sleep;\r\n\n\n/***/ }),\n\n/***/ 90556:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Body = __webpack_require__(22562);\r\n\r\n/**\r\n * Provides methods used for getting and setting the static state of a physics body.\r\n *\r\n * @namespace Phaser.Physics.Matter.Components.Static\r\n * @since 3.0.0\r\n */\r\nvar Static = {\r\n\r\n /**\r\n * Changes the physics body to be either static `true` or dynamic `false`.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Static#setStatic\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} value - `true` to set the body as being static, or `false` to make it dynamic.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setStatic: function (value)\r\n {\r\n Body.setStatic(this.body, value);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns `true` if the body is static, otherwise `false` for a dynamic body.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Static#isStatic\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} `true` if the body is static, otherwise `false`.\r\n */\r\n isStatic: function ()\r\n {\r\n return this.body.isStatic;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Static;\r\n\n\n/***/ }),\n\n/***/ 85436:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Body = __webpack_require__(22562);\r\nvar MATH_CONST = __webpack_require__(36383);\r\nvar WrapAngle = __webpack_require__(86554);\r\nvar WrapAngleDegrees = __webpack_require__(30954);\r\n\r\n// global bitmask flag for GameObject.renderMask (used by Scale)\r\nvar _FLAG = 4; // 0100\r\n\r\n// Transform Component\r\n\r\n/**\r\n * Provides methods used for getting and setting the position, scale and rotation of a Game Object.\r\n *\r\n * @namespace Phaser.Physics.Matter.Components.Transform\r\n * @since 3.0.0\r\n */\r\nvar Transform = {\r\n\r\n /**\r\n * The x position of this Game Object.\r\n *\r\n * @name Phaser.Physics.Matter.Components.Transform#x\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n x: {\r\n\r\n get: function ()\r\n {\r\n return this.body.position.x;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._tempVec2.set(value, this.y);\r\n\r\n Body.setPosition(this.body, this._tempVec2);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The y position of this Game Object.\r\n *\r\n * @name Phaser.Physics.Matter.Components.Transform#y\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n y: {\r\n\r\n get: function ()\r\n {\r\n return this.body.position.y;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._tempVec2.set(this.x, value);\r\n\r\n Body.setPosition(this.body, this._tempVec2);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The horizontal scale of this Game Object.\r\n *\r\n * @name Phaser.Physics.Matter.Components.Transform#scaleX\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n scaleX: {\r\n\r\n get: function ()\r\n {\r\n return this._scaleX;\r\n },\r\n\r\n set: function (value)\r\n {\r\n var factorX = 1 / this._scaleX;\r\n var factorY = 1 / this._scaleY;\r\n\r\n this._scaleX = value;\r\n\r\n if (this._scaleX === 0)\r\n {\r\n this.renderFlags &= ~_FLAG;\r\n }\r\n else\r\n {\r\n this.renderFlags |= _FLAG;\r\n }\r\n\r\n // Reset Matter scale back to 1 (sigh)\r\n Body.scale(this.body, factorX, factorY);\r\n\r\n Body.scale(this.body, value, this._scaleY);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The vertical scale of this Game Object.\r\n *\r\n * @name Phaser.Physics.Matter.Components.Transform#scaleY\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n scaleY: {\r\n\r\n get: function ()\r\n {\r\n return this._scaleY;\r\n },\r\n\r\n set: function (value)\r\n {\r\n var factorX = 1 / this._scaleX;\r\n var factorY = 1 / this._scaleY;\r\n\r\n this._scaleY = value;\r\n\r\n if (this._scaleY === 0)\r\n {\r\n this.renderFlags &= ~_FLAG;\r\n }\r\n else\r\n {\r\n this.renderFlags |= _FLAG;\r\n }\r\n\r\n Body.scale(this.body, factorX, factorY);\r\n\r\n Body.scale(this.body, this._scaleX, value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Use `angle` to set or get rotation of the physics body associated to this GameObject.\r\n * Unlike rotation, when using set the value can be in degrees, which will be converted to radians internally.\r\n *\r\n * @name Phaser.Physics.Matter.Components.Transform#angle\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n angle: {\r\n\r\n get: function ()\r\n {\r\n return WrapAngleDegrees(this.body.angle * MATH_CONST.RAD_TO_DEG);\r\n },\r\n\r\n set: function (value)\r\n {\r\n // value is in degrees\r\n this.rotation = WrapAngleDegrees(value) * MATH_CONST.DEG_TO_RAD;\r\n }\r\n },\r\n\r\n /**\r\n * Use `rotation` to set or get the rotation of the physics body associated with this GameObject.\r\n * The value when set must be in radians.\r\n *\r\n * @name Phaser.Physics.Matter.Components.Transform#rotation\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n rotation: {\r\n\r\n get: function ()\r\n {\r\n return this.body.angle;\r\n },\r\n\r\n set: function (value)\r\n {\r\n // value is in radians\r\n this._rotation = WrapAngle(value);\r\n\r\n Body.setAngle(this.body, this._rotation);\r\n }\r\n },\r\n\r\n /**\r\n * Sets the position of the physics body along x and y axes.\r\n * Both the parameters to this function are optional and if not passed any they default to 0.\r\n * Velocity, angle, force etc. are unchanged.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Transform#setPosition\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=0] - The horizontal position of the body.\r\n * @param {number} [y=x] - The vertical position of the body.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setPosition: function (x, y)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = x; }\r\n\r\n this._tempVec2.set(x, y);\r\n\r\n Body.setPosition(this.body, this._tempVec2);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Immediately sets the angle of the Body.\r\n * Angular velocity, position, force etc. are unchanged.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Transform#setRotation\r\n * @since 3.0.0\r\n *\r\n * @param {number} [radians=0] - The angle of the body, in radians.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setRotation: function (radians)\r\n {\r\n if (radians === undefined) { radians = 0; }\r\n\r\n this._rotation = WrapAngle(radians);\r\n\r\n Body.setAngle(this.body, radians);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Setting fixed rotation sets the Body inertia to Infinity, which stops it\r\n * from being able to rotate when forces are applied to it.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Transform#setFixedRotation\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setFixedRotation: function ()\r\n {\r\n Body.setInertia(this.body, Infinity);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Immediately sets the angle of the Body.\r\n * Angular velocity, position, force etc. are unchanged.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Transform#setAngle\r\n * @since 3.0.0\r\n *\r\n * @param {number} [degrees=0] - The angle to set, in degrees.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setAngle: function (degrees)\r\n {\r\n if (degrees === undefined) { degrees = 0; }\r\n\r\n this.angle = degrees;\r\n\r\n Body.setAngle(this.body, this.rotation);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the scale of this Game Object.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Transform#setScale\r\n * @since 3.0.0\r\n *\r\n * @param {number} [x=1] - The horizontal scale of this Game Object.\r\n * @param {number} [y=x] - The vertical scale of this Game Object. If not set it will use the x value.\r\n * @param {Phaser.Math.Vector2} [point] - The point (Vector2) from which scaling will occur.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setScale: function (x, y, point)\r\n {\r\n if (x === undefined) { x = 1; }\r\n if (y === undefined) { y = x; }\r\n\r\n var factorX = 1 / this._scaleX;\r\n var factorY = 1 / this._scaleY;\r\n\r\n this._scaleX = x;\r\n this._scaleY = y;\r\n\r\n Body.scale(this.body, factorX, factorY, point);\r\n\r\n Body.scale(this.body, x, y, point);\r\n\r\n return this;\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Transform;\r\n\n\n/***/ }),\n\n/***/ 42081:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Body = __webpack_require__(22562);\r\n\r\n/**\r\n * Contains methods for changing the velocity of a Matter Body. Should be used as a mixin and not called directly.\r\n *\r\n * @namespace Phaser.Physics.Matter.Components.Velocity\r\n * @since 3.0.0\r\n */\r\nvar Velocity = {\r\n\r\n /**\r\n * Sets the horizontal velocity of the physics body.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Velocity#setVelocityX\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal velocity value.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setVelocityX: function (x)\r\n {\r\n this._tempVec2.set(x, this.body.velocity.y);\r\n\r\n Body.setVelocity(this.body, this._tempVec2);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets vertical velocity of the physics body.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Velocity#setVelocityY\r\n * @since 3.0.0\r\n *\r\n * @param {number} y - The vertical velocity value.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setVelocityY: function (y)\r\n {\r\n this._tempVec2.set(this.body.velocity.x, y);\r\n\r\n Body.setVelocity(this.body, this._tempVec2);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets both the horizontal and vertical velocity of the physics body.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Velocity#setVelocity\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The horizontal velocity value.\r\n * @param {number} [y=x] - The vertical velocity value, it can be either positive or negative. If not given, it will be the same as the `x` value.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setVelocity: function (x, y)\r\n {\r\n this._tempVec2.set(x, y);\r\n\r\n Body.setVelocity(this.body, this._tempVec2);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Gets the current linear velocity of the physics body.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Velocity#getVelocity\r\n * @since 3.60.0\r\n *\r\n * @return {Phaser.Types.Math.Vector2Like} The current linear velocity of the body.\r\n */\r\n getVelocity: function ()\r\n {\r\n return Body.getVelocity(this.body);\r\n },\r\n\r\n /**\r\n * Sets the angular velocity of the body instantly.\r\n * Position, angle, force etc. are unchanged.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Velocity#setAngularVelocity\r\n * @since 3.0.0\r\n *\r\n * @param {number} velocity - The angular velocity.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setAngularVelocity: function (velocity)\r\n {\r\n Body.setAngularVelocity(this.body, velocity);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Gets the current rotational velocity of the body.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Velocity#getAngularVelocity\r\n * @since 3.60.0\r\n *\r\n * @return {number} The current angular velocity of the body.\r\n */\r\n getAngularVelocity: function ()\r\n {\r\n return Body.getAngularVelocity(this.body);\r\n },\r\n\r\n /**\r\n * Sets the current rotational speed of the body.\r\n * Direction is maintained. Affects body angular velocity.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Velocity#setAngularSpeed\r\n * @since 3.60.0\r\n *\r\n * @param {number} speed - The angular speed.\r\n *\r\n * @return {this} This Game Object instance.\r\n */\r\n setAngularSpeed: function (speed)\r\n {\r\n Body.setAngularSpeed(this.body, speed);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Gets the current rotational speed of the body.\r\n * Equivalent to the magnitude of its angular velocity.\r\n *\r\n * @method Phaser.Physics.Matter.Components.Velocity#getAngularSpeed\r\n * @since 3.60.0\r\n *\r\n * @return {number} The current angular velocity of the body.\r\n */\r\n getAngularSpeed: function ()\r\n {\r\n return Body.getAngularSpeed(this.body);\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Velocity;\r\n\n\n/***/ }),\n\n/***/ 31884:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Physics.Matter.Components\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Bounce: __webpack_require__(70410),\r\n Collision: __webpack_require__(66968),\r\n Force: __webpack_require__(51607),\r\n Friction: __webpack_require__(5436),\r\n Gravity: __webpack_require__(39858),\r\n Mass: __webpack_require__(37302),\r\n Sensor: __webpack_require__(39132),\r\n SetBody: __webpack_require__(57772),\r\n Sleep: __webpack_require__(38083),\r\n Static: __webpack_require__(90556),\r\n Transform: __webpack_require__(85436),\r\n Velocity: __webpack_require__(42081)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 85608:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @typedef {object} Phaser.Physics.Matter.Events.AfterAddEvent\r\n *\r\n * @property {any[]} object - An array of the object(s) that have been added. May be a single body, constraint, composite or a mixture of these.\r\n * @property {any} source - The source object of the event.\r\n * @property {string} name - The name of the event.\r\n */\r\n\r\n/**\r\n * The Matter Physics After Add Event.\r\n *\r\n * This event is dispatched by a Matter Physics World instance at the end of the process when a new Body\r\n * or Constraint has just been added to the world.\r\n *\r\n * Listen to it from a Scene using: `this.matter.world.on('afteradd', listener)`.\r\n *\r\n * @event Phaser.Physics.Matter.Events#AFTER_ADD\r\n * @type {string}\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Physics.Matter.Events.AfterAddEvent} event - The Add Event object.\r\n */\r\nmodule.exports = 'afteradd';\r\n\n\n/***/ }),\n\n/***/ 1213:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @typedef {object} Phaser.Physics.Matter.Events.AfterRemoveEvent\r\n *\r\n * @property {any[]} object - An array of the object(s) that were removed. May be a single body, constraint, composite or a mixture of these.\r\n * @property {any} source - The source object of the event.\r\n * @property {string} name - The name of the event.\r\n */\r\n\r\n/**\r\n * The Matter Physics After Remove Event.\r\n *\r\n * This event is dispatched by a Matter Physics World instance at the end of the process when a\r\n * Body or Constraint was removed from the world.\r\n *\r\n * Listen to it from a Scene using: `this.matter.world.on('afterremove', listener)`.\r\n *\r\n * @event Phaser.Physics.Matter.Events#AFTER_REMOVE\r\n * @type {string}\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Physics.Matter.Events.AfterRemoveEvent} event - The Remove Event object.\r\n */\r\nmodule.exports = 'afterremove';\r\n\n\n/***/ }),\n\n/***/ 25968:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @typedef {object} Phaser.Physics.Matter.Events.AfterUpdateEvent\r\n *\r\n * @property {number} timestamp - The Matter Engine `timing.timestamp` value for the event.\r\n * @property {any} source - The source object of the event.\r\n * @property {string} name - The name of the event.\r\n */\r\n\r\n/**\r\n * The Matter Physics After Update Event.\r\n *\r\n * This event is dispatched by a Matter Physics World instance after the engine has updated and all collision events have resolved.\r\n *\r\n * Listen to it from a Scene using: `this.matter.world.on('afterupdate', listener)`.\r\n *\r\n * @event Phaser.Physics.Matter.Events#AFTER_UPDATE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Matter.Events.AfterUpdateEvent} event - The Update Event object.\r\n */\r\nmodule.exports = 'afterupdate';\r\n\n\n/***/ }),\n\n/***/ 67205:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @typedef {object} Phaser.Physics.Matter.Events.BeforeAddEvent\r\n *\r\n * @property {any[]} object - An array of the object(s) to be added. May be a single body, constraint, composite or a mixture of these.\r\n * @property {any} source - The source object of the event.\r\n * @property {string} name - The name of the event.\r\n */\r\n\r\n/**\r\n * The Matter Physics Before Add Event.\r\n *\r\n * This event is dispatched by a Matter Physics World instance at the start of the process when a new Body\r\n * or Constraint is being added to the world.\r\n *\r\n * Listen to it from a Scene using: `this.matter.world.on('beforeadd', listener)`.\r\n *\r\n * @event Phaser.Physics.Matter.Events#BEFORE_ADD\r\n * @type {string}\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Physics.Matter.Events.BeforeAddEvent} event - The Add Event object.\r\n */\r\nmodule.exports = 'beforeadd';\r\n\n\n/***/ }),\n\n/***/ 39438:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @typedef {object} Phaser.Physics.Matter.Events.BeforeRemoveEvent\r\n *\r\n * @property {any[]} object - An array of the object(s) to be removed. May be a single body, constraint, composite or a mixture of these.\r\n * @property {any} source - The source object of the event.\r\n * @property {string} name - The name of the event.\r\n */\r\n\r\n/**\r\n * The Matter Physics Before Remove Event.\r\n *\r\n * This event is dispatched by a Matter Physics World instance at the start of the process when a\r\n * Body or Constraint is being removed from the world.\r\n *\r\n * Listen to it from a Scene using: `this.matter.world.on('beforeremove', listener)`.\r\n *\r\n * @event Phaser.Physics.Matter.Events#BEFORE_REMOVE\r\n * @type {string}\r\n * @since 3.22.0\r\n *\r\n * @param {Phaser.Physics.Matter.Events.BeforeRemoveEvent} event - The Remove Event object.\r\n */\r\nmodule.exports = 'beforeremove';\r\n\n\n/***/ }),\n\n/***/ 44823:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @typedef {object} Phaser.Physics.Matter.Events.BeforeUpdateEvent\r\n *\r\n * @property {number} timestamp - The Matter Engine `timing.timestamp` value for the event.\r\n * @property {any} source - The source object of the event.\r\n * @property {string} name - The name of the event.\r\n */\r\n\r\n/**\r\n * The Matter Physics Before Update Event.\r\n *\r\n * This event is dispatched by a Matter Physics World instance right before all the collision processing takes place.\r\n *\r\n * Listen to it from a Scene using: `this.matter.world.on('beforeupdate', listener)`.\r\n *\r\n * @event Phaser.Physics.Matter.Events#BEFORE_UPDATE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Matter.Events.BeforeUpdateEvent} event - The Update Event object.\r\n */\r\nmodule.exports = 'beforeupdate';\r\n\n\n/***/ }),\n\n/***/ 92593:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @typedef {object} Phaser.Physics.Matter.Events.CollisionActiveEvent\r\n *\r\n * @property {Phaser.Types.Physics.Matter.MatterCollisionData[]} pairs - A list of all affected pairs in the collision.\r\n * @property {number} timestamp - The Matter Engine `timing.timestamp` value for the event.\r\n * @property {any} source - The source object of the event.\r\n * @property {string} name - The name of the event.\r\n */\r\n\r\n/**\r\n * The Matter Physics Collision Active Event.\r\n *\r\n * This event is dispatched by a Matter Physics World instance after the engine has updated.\r\n * It provides a list of all pairs that are colliding in the current tick (if any).\r\n *\r\n * Listen to it from a Scene using: `this.matter.world.on('collisionactive', listener)`.\r\n *\r\n * @event Phaser.Physics.Matter.Events#COLLISION_ACTIVE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Matter.Events.CollisionActiveEvent} event - The Collision Event object.\r\n * @param {MatterJS.BodyType} bodyA - The first body of the first colliding pair. The `event.pairs` array may contain more colliding bodies.\r\n * @param {MatterJS.BodyType} bodyB - The second body of the first colliding pair. The `event.pairs` array may contain more colliding bodies.\r\n */\r\nmodule.exports = 'collisionactive';\r\n\n\n/***/ }),\n\n/***/ 60128:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @typedef {object} Phaser.Physics.Matter.Events.CollisionEndEvent\r\n *\r\n * @property {Phaser.Types.Physics.Matter.MatterCollisionData[]} pairs - A list of all affected pairs in the collision.\r\n * @property {number} timestamp - The Matter Engine `timing.timestamp` value for the event.\r\n * @property {any} source - The source object of the event.\r\n * @property {string} name - The name of the event.\r\n */\r\n\r\n/**\r\n * The Matter Physics Collision End Event.\r\n *\r\n * This event is dispatched by a Matter Physics World instance after the engine has updated.\r\n * It provides a list of all pairs that have finished colliding in the current tick (if any).\r\n *\r\n * Listen to it from a Scene using: `this.matter.world.on('collisionend', listener)`.\r\n *\r\n * @event Phaser.Physics.Matter.Events#COLLISION_END\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Matter.Events.CollisionEndEvent} event - The Collision Event object.\r\n * @param {MatterJS.BodyType} bodyA - The first body of the first colliding pair. The `event.pairs` array may contain more colliding bodies.\r\n * @param {MatterJS.BodyType} bodyB - The second body of the first colliding pair. The `event.pairs` array may contain more colliding bodies.\r\n */\r\nmodule.exports = 'collisionend';\r\n\n\n/***/ }),\n\n/***/ 76861:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @typedef {object} Phaser.Physics.Matter.Events.CollisionStartEvent\r\n *\r\n * @property {Phaser.Types.Physics.Matter.MatterCollisionData[]} pairs - A list of all affected pairs in the collision.\r\n * @property {number} timestamp - The Matter Engine `timing.timestamp` value for the event.\r\n * @property {any} source - The source object of the event.\r\n * @property {string} name - The name of the event.\r\n */\r\n\r\n/**\r\n * The Matter Physics Collision Start Event.\r\n *\r\n * This event is dispatched by a Matter Physics World instance after the engine has updated.\r\n * It provides a list of all pairs that have started to collide in the current tick (if any).\r\n *\r\n * Listen to it from a Scene using: `this.matter.world.on('collisionstart', listener)`.\r\n *\r\n * @event Phaser.Physics.Matter.Events#COLLISION_START\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Matter.Events.CollisionStartEvent} event - The Collision Event object.\r\n * @param {MatterJS.BodyType} bodyA - The first body of the first colliding pair. The `event.pairs` array may contain more colliding bodies.\r\n * @param {MatterJS.BodyType} bodyB - The second body of the first colliding pair. The `event.pairs` array may contain more colliding bodies.\r\n */\r\nmodule.exports = 'collisionstart';\r\n\n\n/***/ }),\n\n/***/ 92362:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Matter Physics Drag End Event.\r\n *\r\n * This event is dispatched by a Matter Physics World instance when a Pointer Constraint\r\n * stops dragging a body.\r\n *\r\n * Listen to it from a Scene using: `this.matter.world.on('dragend', listener)`.\r\n *\r\n * @event Phaser.Physics.Matter.Events#DRAG_END\r\n * @type {string}\r\n * @since 3.16.2\r\n *\r\n * @param {MatterJS.BodyType} body - The Body that has stopped being dragged. This is a Matter Body, not a Phaser Game Object.\r\n * @param {Phaser.Physics.Matter.PointerConstraint} constraint - The Pointer Constraint that was dragging the body.\r\n */\r\nmodule.exports = 'dragend';\r\n\n\n/***/ }),\n\n/***/ 76408:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Matter Physics Drag Event.\r\n *\r\n * This event is dispatched by a Matter Physics World instance when a Pointer Constraint\r\n * is actively dragging a body. It is emitted each time the pointer moves.\r\n *\r\n * Listen to it from a Scene using: `this.matter.world.on('drag', listener)`.\r\n *\r\n * @event Phaser.Physics.Matter.Events#DRAG\r\n * @type {string}\r\n * @since 3.16.2\r\n *\r\n * @param {MatterJS.BodyType} body - The Body that is being dragged. This is a Matter Body, not a Phaser Game Object.\r\n * @param {Phaser.Physics.Matter.PointerConstraint} constraint - The Pointer Constraint that is dragging the body.\r\n */\r\nmodule.exports = 'drag';\r\n\n\n/***/ }),\n\n/***/ 93971:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Matter Physics Drag Start Event.\r\n *\r\n * This event is dispatched by a Matter Physics World instance when a Pointer Constraint\r\n * starts dragging a body.\r\n *\r\n * Listen to it from a Scene using: `this.matter.world.on('dragstart', listener)`.\r\n *\r\n * @event Phaser.Physics.Matter.Events#DRAG_START\r\n * @type {string}\r\n * @since 3.16.2\r\n *\r\n * @param {MatterJS.BodyType} body - The Body that has started being dragged. This is a Matter Body, not a Phaser Game Object.\r\n * @param {MatterJS.BodyType} part - The part of the body that was clicked on.\r\n * @param {Phaser.Physics.Matter.PointerConstraint} constraint - The Pointer Constraint that is dragging the body.\r\n */\r\nmodule.exports = 'dragstart';\r\n\n\n/***/ }),\n\n/***/ 5656:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Matter Physics World Pause Event.\r\n *\r\n * This event is dispatched by an Matter Physics World instance when it is paused.\r\n *\r\n * Listen to it from a Scene using: `this.matter.world.on('pause', listener)`.\r\n *\r\n * @event Phaser.Physics.Matter.Events#PAUSE\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\nmodule.exports = 'pause';\r\n\n\n/***/ }),\n\n/***/ 47861:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Matter Physics World Resume Event.\r\n *\r\n * This event is dispatched by an Matter Physics World instance when it resumes from a paused state.\r\n *\r\n * Listen to it from a Scene using: `this.matter.world.on('resume', listener)`.\r\n *\r\n * @event Phaser.Physics.Matter.Events#RESUME\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\nmodule.exports = 'resume';\r\n\n\n/***/ }),\n\n/***/ 79099:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @typedef {object} Phaser.Physics.Matter.Events.SleepEndEvent\r\n *\r\n * @property {any} source - The source object of the event.\r\n * @property {string} name - The name of the event.\r\n */\r\n\r\n/**\r\n * The Matter Physics Sleep End Event.\r\n *\r\n * This event is dispatched by a Matter Physics World instance when a Body stop sleeping.\r\n *\r\n * Listen to it from a Scene using: `this.matter.world.on('sleepend', listener)`.\r\n *\r\n * @event Phaser.Physics.Matter.Events#SLEEP_END\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Matter.Events.SleepEndEvent} event - The Sleep Event object.\r\n * @param {MatterJS.BodyType} body - The body that has stopped sleeping.\r\n */\r\nmodule.exports = 'sleepend';\r\n\n\n/***/ }),\n\n/***/ 35906:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @typedef {object} Phaser.Physics.Matter.Events.SleepStartEvent\r\n *\r\n * @property {any} source - The source object of the event.\r\n * @property {string} name - The name of the event.\r\n */\r\n\r\n/**\r\n * The Matter Physics Sleep Start Event.\r\n *\r\n * This event is dispatched by a Matter Physics World instance when a Body goes to sleep.\r\n *\r\n * Listen to it from a Scene using: `this.matter.world.on('sleepstart', listener)`.\r\n *\r\n * @event Phaser.Physics.Matter.Events#SLEEP_START\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Physics.Matter.Events.SleepStartEvent} event - The Sleep Event object.\r\n * @param {MatterJS.BodyType} body - The body that has gone to sleep.\r\n */\r\nmodule.exports = 'sleepstart';\r\n\n\n/***/ }),\n\n/***/ 1121:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Physics.Matter.Events\r\n */\r\n\r\nmodule.exports = {\r\n\r\n AFTER_ADD: __webpack_require__(85608),\r\n AFTER_REMOVE: __webpack_require__(1213),\r\n AFTER_UPDATE: __webpack_require__(25968),\r\n BEFORE_ADD: __webpack_require__(67205),\r\n BEFORE_REMOVE: __webpack_require__(39438),\r\n BEFORE_UPDATE: __webpack_require__(44823),\r\n COLLISION_ACTIVE: __webpack_require__(92593),\r\n COLLISION_END: __webpack_require__(60128),\r\n COLLISION_START: __webpack_require__(76861),\r\n DRAG_END: __webpack_require__(92362),\r\n DRAG: __webpack_require__(76408),\r\n DRAG_START: __webpack_require__(93971),\r\n PAUSE: __webpack_require__(5656),\r\n RESUME: __webpack_require__(47861),\r\n SLEEP_END: __webpack_require__(79099),\r\n SLEEP_START: __webpack_require__(35906)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 3875:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Physics.Matter\r\n */\r\n\r\nmodule.exports = {\r\n\r\n BodyBounds: __webpack_require__(68174),\r\n Components: __webpack_require__(31884),\r\n Events: __webpack_require__(1121),\r\n Factory: __webpack_require__(28137),\r\n MatterGameObject: __webpack_require__(75803),\r\n Image: __webpack_require__(23181),\r\n Matter: __webpack_require__(19933),\r\n MatterPhysics: __webpack_require__(42045),\r\n PolyDecomp: __webpack_require__(55973),\r\n Sprite: __webpack_require__(34803),\r\n TileBody: __webpack_require__(73834),\r\n PhysicsEditorParser: __webpack_require__(19496),\r\n PhysicsJSONParser: __webpack_require__(85791),\r\n PointerConstraint: __webpack_require__(98713),\r\n World: __webpack_require__(68243)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 22562:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * The `Matter.Body` module contains methods for creating and manipulating body models.\r\n * A `Matter.Body` is a rigid body that can be simulated by a `Matter.Engine`.\r\n * Factories for commonly used body configurations (such as rectangles, circles and other polygons) can be found in the module `Matter.Bodies`.\r\n *\r\n * See the included usage [examples](https://github.com/liabru/matter-js/tree/master/examples).\r\n * @class Body\r\n */\r\n\r\nvar Body = {};\r\n\r\nmodule.exports = Body;\r\n\r\nvar Vertices = __webpack_require__(41598);\r\nvar Vector = __webpack_require__(31725);\r\nvar Sleeping = __webpack_require__(53614);\r\nvar Common = __webpack_require__(53402);\r\nvar Bounds = __webpack_require__(15647);\r\nvar Axes = __webpack_require__(66615);\r\n\r\n(function() {\r\n\r\n Body._timeCorrection = true;\r\n Body._inertiaScale = 4;\r\n Body._nextCollidingGroupId = 1;\r\n Body._nextNonCollidingGroupId = -1;\r\n Body._nextCategory = 0x0001;\r\n Body._baseDelta = 1000 / 60;\r\n\r\n /**\r\n * Creates a new rigid body model. The options parameter is an object that specifies any properties you wish to override the defaults.\r\n * All properties have default values, and many are pre-calculated automatically based on other properties.\r\n * Vertices must be specified in clockwise order.\r\n * See the properties section below for detailed information on what you can pass via the `options` object.\r\n * @method create\r\n * @param {} options\r\n * @return {body} body\r\n */\r\n Body.create = function(options) {\r\n var defaults = {\r\n id: Common.nextId(),\r\n type: 'body',\r\n label: 'Body',\r\n parts: [],\r\n plugin: {},\r\n attractors: options.attractors || [],\r\n wrapBounds: null,\r\n angle: 0,\r\n vertices: null, // Phaser change: no point calling fromPath if they pass in vertices anyway\r\n position: { x: 0, y: 0 },\r\n force: { x: 0, y: 0 },\r\n torque: 0,\r\n positionImpulse: { x: 0, y: 0 },\r\n constraintImpulse: { x: 0, y: 0, angle: 0 },\r\n totalContacts: 0,\r\n speed: 0,\r\n angularSpeed: 0,\r\n velocity: { x: 0, y: 0 },\r\n angularVelocity: 0,\r\n isSensor: false,\r\n isStatic: false,\r\n isSleeping: false,\r\n motion: 0,\r\n sleepThreshold: 60,\r\n density: 0.001,\r\n restitution: 0,\r\n friction: 0.1,\r\n frictionStatic: 0.5,\r\n frictionAir: 0.01,\r\n collisionFilter: {\r\n category: 0x0001,\r\n mask: 0xFFFFFFFF,\r\n group: 0\r\n },\r\n slop: 0.05,\r\n timeScale: 1,\r\n events: null,\r\n bounds: null,\r\n chamfer: null,\r\n circleRadius: 0,\r\n positionPrev: null,\r\n anglePrev: 0,\r\n parent: null,\r\n axes: null,\r\n area: 0,\r\n mass: 0,\r\n inverseMass: 0,\r\n inertia: 0,\r\n deltaTime: 1000 / 60,\r\n inverseInertia: 0,\r\n _original: null,\r\n render: {\r\n visible: true,\r\n opacity: 1,\r\n sprite: {\r\n xOffset: 0,\r\n yOffset: 0\r\n },\r\n fillColor: null, // custom Phaser property\r\n fillOpacity: null, // custom Phaser property\r\n lineColor: null, // custom Phaser property\r\n lineOpacity: null, // custom Phaser property\r\n lineThickness: null // custom Phaser property\r\n },\r\n gameObject: null, // custom Phaser property\r\n scale: { x: 1, y: 1 }, // custom Phaser property\r\n centerOfMass: { x: 0, y: 0 }, // custom Phaser property (float, 0 - 1)\r\n centerOffset: { x: 0, y: 0 }, // custom Phaser property (pixel values)\r\n gravityScale: { x: 1, y: 1 }, // custom Phaser property\r\n ignoreGravity: false, // custom Phaser property\r\n ignorePointer: false, // custom Phaser property\r\n onCollideCallback: null, // custom Phaser property\r\n onCollideEndCallback: null, // custom Phaser property\r\n onCollideActiveCallback: null, // custom Phaser property\r\n onCollideWith: {} // custom Phaser property\r\n };\r\n\r\n if (!options.hasOwnProperty('position') && options.hasOwnProperty('vertices'))\r\n {\r\n options.position = Vertices.centre(options.vertices);\r\n }\r\n else if (!options.hasOwnProperty('vertices'))\r\n {\r\n defaults.vertices = Vertices.fromPath('L 0 0 L 40 0 L 40 40 L 0 40');\r\n }\r\n\r\n var body = Common.extend(defaults, options);\r\n\r\n _initProperties(body, options);\r\n\r\n // Helper function\r\n body.setOnCollideWith = function (body, callback)\r\n {\r\n if (callback)\r\n {\r\n this.onCollideWith[body.id] = callback;\r\n }\r\n else\r\n {\r\n delete this.onCollideWith[body.id];\r\n }\r\n\r\n return this;\r\n }\r\n\r\n return body;\r\n };\r\n\r\n /**\r\n * Returns the next unique group index for which bodies will collide.\r\n * If `isNonColliding` is `true`, returns the next unique group index for which bodies will _not_ collide.\r\n * See `body.collisionFilter` for more information.\r\n * @method nextGroup\r\n * @param {bool} [isNonColliding=false]\r\n * @return {Number} Unique group index\r\n */\r\n Body.nextGroup = function(isNonColliding) {\r\n if (isNonColliding)\r\n return Body._nextNonCollidingGroupId--;\r\n\r\n return Body._nextCollidingGroupId++;\r\n };\r\n\r\n /**\r\n * Returns the next unique category bitfield (starting after the initial default category `0x0001`).\r\n * There are 32 available. See `body.collisionFilter` for more information.\r\n * @method nextCategory\r\n * @return {Number} Unique category bitfield\r\n */\r\n Body.nextCategory = function() {\r\n Body._nextCategory = Body._nextCategory << 1;\r\n return Body._nextCategory;\r\n };\r\n\r\n /**\r\n * Initialises body properties.\r\n * @method _initProperties\r\n * @private\r\n * @param {body} body\r\n * @param {} [options]\r\n */\r\n var _initProperties = function(body, options) {\r\n options = options || {};\r\n\r\n // init required properties (order is important)\r\n Body.set(body, {\r\n bounds: body.bounds || Bounds.create(body.vertices),\r\n positionPrev: body.positionPrev || Vector.clone(body.position),\r\n anglePrev: body.anglePrev || body.angle,\r\n vertices: body.vertices,\r\n parts: body.parts || [body],\r\n isStatic: body.isStatic,\r\n isSleeping: body.isSleeping,\r\n parent: body.parent || body\r\n });\r\n\r\n Vertices.rotate(body.vertices, body.angle, body.position);\r\n Axes.rotate(body.axes, body.angle);\r\n Bounds.update(body.bounds, body.vertices, body.velocity);\r\n\r\n // allow options to override the automatically calculated properties\r\n Body.set(body, {\r\n axes: options.axes || body.axes,\r\n area: options.area || body.area,\r\n mass: options.mass || body.mass,\r\n inertia: options.inertia || body.inertia\r\n });\r\n\r\n if (body.parts.length === 1)\r\n {\r\n var bounds = body.bounds;\r\n\r\n var centerOfMass = body.centerOfMass;\r\n var centerOffset = body.centerOffset;\r\n\r\n var bodyWidth = bounds.max.x - bounds.min.x;\r\n var bodyHeight = bounds.max.y - bounds.min.y;\r\n\r\n centerOfMass.x = -(bounds.min.x - body.position.x) / bodyWidth;\r\n centerOfMass.y = -(bounds.min.y - body.position.y) / bodyHeight;\r\n\r\n centerOffset.x = bodyWidth * centerOfMass.x;\r\n centerOffset.y = bodyHeight * centerOfMass.y;\r\n }\r\n\r\n // From Matter render code:\r\n // body.render.sprite.xOffset += -(body.bounds.min.x - body.position.x) / (body.bounds.max.x - body.bounds.min.x);\r\n // body.render.sprite.yOffset += -(body.bounds.min.y - body.position.y) / (body.bounds.max.y - body.bounds.min.y);\r\n };\r\n\r\n /**\r\n * Given a property and a value (or map of), sets the property(s) on the body, using the appropriate setter functions if they exist.\r\n * Prefer to use the actual setter functions in performance critical situations.\r\n * @method set\r\n * @param {body} body\r\n * @param {} settings A property name (or map of properties and values) to set on the body.\r\n * @param {} value The value to set if `settings` is a single property name.\r\n */\r\n Body.set = function(body, settings, value) {\r\n var property;\r\n\r\n if (typeof settings === 'string') {\r\n property = settings;\r\n settings = {};\r\n settings[property] = value;\r\n }\r\n\r\n for (property in settings) {\r\n if (!Object.prototype.hasOwnProperty.call(settings, property))\r\n continue;\r\n\r\n value = settings[property];\r\n switch (property) {\r\n\r\n case 'isStatic':\r\n Body.setStatic(body, value);\r\n break;\r\n case 'isSleeping':\r\n Sleeping.set(body, value);\r\n break;\r\n case 'mass':\r\n Body.setMass(body, value);\r\n break;\r\n case 'density':\r\n Body.setDensity(body, value);\r\n break;\r\n case 'inertia':\r\n Body.setInertia(body, value);\r\n break;\r\n case 'vertices':\r\n Body.setVertices(body, value);\r\n break;\r\n case 'position':\r\n Body.setPosition(body, value);\r\n break;\r\n case 'angle':\r\n Body.setAngle(body, value);\r\n break;\r\n case 'velocity':\r\n Body.setVelocity(body, value);\r\n break;\r\n case 'angularVelocity':\r\n Body.setAngularVelocity(body, value);\r\n break;\r\n case 'speed':\r\n Body.setSpeed(body, value);\r\n break;\r\n case 'angularSpeed':\r\n Body.setAngularSpeed(body, value);\r\n break;\r\n case 'parts':\r\n Body.setParts(body, value);\r\n break;\r\n case 'centre':\r\n Body.setCentre(body, value);\r\n break;\r\n default:\r\n body[property] = value;\r\n }\r\n }\r\n };\r\n\r\n /**\r\n * Sets the body as static, including isStatic flag and setting mass and inertia to Infinity.\r\n * @method setStatic\r\n * @param {body} body\r\n * @param {bool} isStatic\r\n */\r\n Body.setStatic = function(body, isStatic) {\r\n for (var i = 0; i < body.parts.length; i++) {\r\n var part = body.parts[i];\r\n\r\n if (isStatic) {\r\n if (!part.isStatic) {\r\n part._original = {\r\n restitution: part.restitution,\r\n friction: part.friction,\r\n mass: part.mass,\r\n inertia: part.inertia,\r\n density: part.density,\r\n inverseMass: part.inverseMass,\r\n inverseInertia: part.inverseInertia\r\n };\r\n }\r\n\r\n part.restitution = 0;\r\n part.friction = 1;\r\n part.mass = part.inertia = part.density = Infinity;\r\n part.inverseMass = part.inverseInertia = 0;\r\n\r\n part.positionPrev.x = part.position.x;\r\n part.positionPrev.y = part.position.y;\r\n part.anglePrev = part.angle;\r\n part.angularVelocity = 0;\r\n part.speed = 0;\r\n part.angularSpeed = 0;\r\n part.motion = 0;\r\n } else if (part._original) {\r\n part.restitution = part._original.restitution;\r\n part.friction = part._original.friction;\r\n part.mass = part._original.mass;\r\n part.inertia = part._original.inertia;\r\n part.density = part._original.density;\r\n part.inverseMass = part._original.inverseMass;\r\n part.inverseInertia = part._original.inverseInertia;\r\n\r\n part._original = null;\r\n }\r\n part.isStatic = isStatic;\r\n }\r\n };\r\n\r\n /**\r\n * Sets the mass of the body. Inverse mass, density and inertia are automatically updated to reflect the change.\r\n * @method setMass\r\n * @param {body} body\r\n * @param {number} mass\r\n */\r\n Body.setMass = function(body, mass) {\r\n var moment = body.inertia / (body.mass / 6);\r\n body.inertia = moment * (mass / 6);\r\n body.inverseInertia = 1 / body.inertia;\r\n\r\n body.mass = mass;\r\n body.inverseMass = 1 / body.mass;\r\n body.density = body.mass / body.area;\r\n };\r\n\r\n /**\r\n * Sets the density of the body. Mass and inertia are automatically updated to reflect the change.\r\n * @method setDensity\r\n * @param {body} body\r\n * @param {number} density\r\n */\r\n Body.setDensity = function(body, density) {\r\n Body.setMass(body, density * body.area);\r\n body.density = density;\r\n };\r\n\r\n /**\r\n * Sets the moment of inertia (i.e. second moment of area) of the body.\r\n * Inverse inertia is automatically updated to reflect the change. Mass is not changed.\r\n * @method setInertia\r\n * @param {body} body\r\n * @param {number} inertia\r\n */\r\n Body.setInertia = function(body, inertia) {\r\n body.inertia = inertia;\r\n body.inverseInertia = 1 / body.inertia;\r\n };\r\n\r\n /**\r\n * Sets the body's vertices and updates body properties accordingly, including inertia, area and mass (with respect to `body.density`).\r\n * Vertices will be automatically transformed to be orientated around their centre of mass as the origin.\r\n * They are then automatically translated to world space based on `body.position`.\r\n *\r\n * The `vertices` argument should be passed as an array of `Matter.Vector` points (or a `Matter.Vertices` array).\r\n * Vertices must form a convex hull, concave hulls are not supported.\r\n *\r\n * @method setVertices\r\n * @param {body} body\r\n * @param {vector[]} vertices\r\n */\r\n Body.setVertices = function(body, vertices) {\r\n // change vertices\r\n if (vertices[0].body === body) {\r\n body.vertices = vertices;\r\n } else {\r\n body.vertices = Vertices.create(vertices, body);\r\n }\r\n\r\n // update properties\r\n body.axes = Axes.fromVertices(body.vertices);\r\n body.area = Vertices.area(body.vertices);\r\n Body.setMass(body, body.density * body.area);\r\n\r\n // orient vertices around the centre of mass at origin (0, 0)\r\n var centre = Vertices.centre(body.vertices);\r\n Vertices.translate(body.vertices, centre, -1);\r\n\r\n // update inertia while vertices are at origin (0, 0)\r\n Body.setInertia(body, Body._inertiaScale * Vertices.inertia(body.vertices, body.mass));\r\n\r\n // update geometry\r\n Vertices.translate(body.vertices, body.position);\r\n\r\n Bounds.update(body.bounds, body.vertices, body.velocity);\r\n };\r\n\r\n /**\r\n * Sets the parts of the `body` and updates mass, inertia and centroid.\r\n * Each part will have its parent set to `body`.\r\n * By default the convex hull will be automatically computed and set on `body`, unless `autoHull` is set to `false.`\r\n * Note that this method will ensure that the first part in `body.parts` will always be the `body`.\r\n * @method setParts\r\n * @param {body} body\r\n * @param [body] parts\r\n * @param {bool} [autoHull=true]\r\n */\r\n Body.setParts = function(body, parts, autoHull) {\r\n var i;\r\n\r\n // add all the parts, ensuring that the first part is always the parent body\r\n parts = parts.slice(0);\r\n body.parts.length = 0;\r\n body.parts.push(body);\r\n body.parent = body;\r\n\r\n for (i = 0; i < parts.length; i++) {\r\n var part = parts[i];\r\n if (part !== body) {\r\n part.parent = body;\r\n body.parts.push(part);\r\n }\r\n }\r\n\r\n if (body.parts.length === 1)\r\n return;\r\n\r\n autoHull = typeof autoHull !== 'undefined' ? autoHull : true;\r\n\r\n // find the convex hull of all parts to set on the parent body\r\n if (autoHull) {\r\n var vertices = [];\r\n for (i = 0; i < parts.length; i++) {\r\n vertices = vertices.concat(parts[i].vertices);\r\n }\r\n\r\n Vertices.clockwiseSort(vertices);\r\n\r\n var hull = Vertices.hull(vertices),\r\n hullCentre = Vertices.centre(hull);\r\n\r\n Body.setVertices(body, hull);\r\n Vertices.translate(body.vertices, hullCentre);\r\n }\r\n\r\n // sum the properties of all compound parts of the parent body\r\n var total = Body._totalProperties(body);\r\n\r\n // Phaser addition\r\n var cx = total.centre.x;\r\n var cy = total.centre.y;\r\n\r\n var bounds = body.bounds;\r\n var centerOfMass = body.centerOfMass;\r\n var centerOffset = body.centerOffset;\r\n\r\n Bounds.update(bounds, body.vertices, body.velocity);\r\n\r\n centerOfMass.x = -(bounds.min.x - cx) / (bounds.max.x - bounds.min.x);\r\n centerOfMass.y = -(bounds.min.y - cy) / (bounds.max.y - bounds.min.y);\r\n\r\n centerOffset.x = cx;\r\n centerOffset.y = cy;\r\n\r\n body.area = total.area;\r\n body.parent = body;\r\n body.position.x = cx;\r\n body.position.y = cy;\r\n body.positionPrev.x = cx;\r\n body.positionPrev.y = cy;\r\n\r\n // Matter.js original\r\n // body.position.x = total.centre.x;\r\n // body.position.y = total.centre.y;\r\n // body.positionPrev.x = total.centre.x;\r\n // body.positionPrev.y = total.centre.y;\r\n\r\n Body.setMass(body, total.mass);\r\n Body.setInertia(body, total.inertia);\r\n Body.setPosition(body, total.centre);\r\n };\r\n\r\n /**\r\n * Set the centre of mass of the body.\r\n * The `centre` is a vector in world-space unless `relative` is set, in which case it is a translation.\r\n * The centre of mass is the point the body rotates about and can be used to simulate non-uniform density.\r\n * This is equal to moving `body.position` but not the `body.vertices`.\r\n * Invalid if the `centre` falls outside the body's convex hull.\r\n * @method setCentre\r\n * @param {body} body\r\n * @param {vector} centre\r\n * @param {bool} relative\r\n */\r\n Body.setCentre = function(body, centre, relative) {\r\n if (!relative) {\r\n body.positionPrev.x = centre.x - (body.position.x - body.positionPrev.x);\r\n body.positionPrev.y = centre.y - (body.position.y - body.positionPrev.y);\r\n body.position.x = centre.x;\r\n body.position.y = centre.y;\r\n } else {\r\n body.positionPrev.x += centre.x;\r\n body.positionPrev.y += centre.y;\r\n body.position.x += centre.x;\r\n body.position.y += centre.y;\r\n }\r\n };\r\n\r\n /**\r\n * Sets the position of the body instantly. Velocity, angle, force etc. are unchanged.\r\n * @method setPosition\r\n * @param {body} body\r\n * @param {vector} position\r\n * @param {boolean} [updateVelocity=false]\r\n */\r\n Body.setPosition = function(body, position, updateVelocity) {\r\n var delta = Vector.sub(position, body.position);\r\n if (updateVelocity) {\r\n body.positionPrev.x = body.position.x;\r\n body.positionPrev.y = body.position.y;\r\n body.velocity.x = delta.x;\r\n body.velocity.y = delta.y;\r\n body.speed = Vector.magnitude(delta);\r\n } else {\r\n body.positionPrev.x += delta.x;\r\n body.positionPrev.y += delta.y;\r\n }\r\n\r\n for (var i = 0; i < body.parts.length; i++) {\r\n var part = body.parts[i];\r\n part.position.x += delta.x;\r\n part.position.y += delta.y;\r\n Vertices.translate(part.vertices, delta);\r\n Bounds.update(part.bounds, part.vertices, body.velocity);\r\n }\r\n };\r\n\r\n /**\r\n * Sets the angle of the body instantly. Angular velocity, position, force etc. are unchanged.\r\n * @method setAngle\r\n * @param {body} body\r\n * @param {number} angle\r\n * @param {boolean} [updateVelocity=false]\r\n */\r\n Body.setAngle = function(body, angle, updateVelocity) {\r\n var delta = angle - body.angle;\r\n if (updateVelocity) {\r\n body.anglePrev = body.angle;\r\n body.angularVelocity = delta;\r\n body.angularSpeed = Math.abs(delta);\r\n } else {\r\n body.anglePrev += delta;\r\n }\r\n\r\n for (var i = 0; i < body.parts.length; i++) {\r\n var part = body.parts[i];\r\n part.angle += delta;\r\n Vertices.rotate(part.vertices, delta, body.position);\r\n Axes.rotate(part.axes, delta);\r\n Bounds.update(part.bounds, part.vertices, body.velocity);\r\n if (i > 0) {\r\n Vector.rotateAbout(part.position, delta, body.position, part.position);\r\n }\r\n }\r\n };\r\n\r\n /**\r\n * Sets the linear velocity of the body instantly. Position, angle, force etc. are unchanged. See also `Body.applyForce`.\r\n * @method setVelocity\r\n * @param {body} body\r\n * @param {vector} velocity\r\n */\r\n Body.setVelocity = function(body, velocity) {\r\n var timeScale = body.deltaTime / Body._baseDelta;\r\n body.positionPrev.x = body.position.x - velocity.x * timeScale;\r\n body.positionPrev.y = body.position.y - velocity.y * timeScale;\r\n body.velocity.x = (body.position.x - body.positionPrev.x) / timeScale;\r\n body.velocity.y = (body.position.y - body.positionPrev.y) / timeScale;\r\n body.speed = Vector.magnitude(body.velocity);\r\n };\r\n\r\n /**\r\n * Gets the current linear velocity of the body.\r\n * @method getVelocity\r\n * @param {body} body\r\n * @return {vector} velocity\r\n */\r\n Body.getVelocity = function(body) {\r\n var timeScale = Body._baseDelta / body.deltaTime;\r\n\r\n return {\r\n x: (body.position.x - body.positionPrev.x) * timeScale,\r\n y: (body.position.y - body.positionPrev.y) * timeScale\r\n };\r\n };\r\n\r\n /**\r\n * Gets the current linear speed of the body.\r\n * Equivalent to the magnitude of its velocity.\r\n * @method getSpeed\r\n * @param {body} body\r\n * @return {number} speed\r\n */\r\n Body.getSpeed = function(body) {\r\n return Vector.magnitude(Body.getVelocity(body));\r\n };\r\n\r\n /**\r\n * Sets the current linear speed of the body.\r\n * Direction is maintained. Affects body velocity.\r\n * @method setSpeed\r\n * @param {body} body\r\n * @param {number} speed\r\n */\r\n Body.setSpeed = function(body, speed) {\r\n Body.setVelocity(body, Vector.mult(Vector.normalise(Body.getVelocity(body)), speed));\r\n };\r\n\r\n /**\r\n * Sets the angular velocity of the body instantly. Position, angle, force etc. are unchanged. See also `Body.applyForce`.\r\n * @method setAngularVelocity\r\n * @param {body} body\r\n * @param {number} velocity\r\n */\r\n Body.setAngularVelocity = function(body, velocity) {\r\n var timeScale = body.deltaTime / Body._baseDelta;\r\n body.anglePrev = body.angle - velocity * timeScale;\r\n body.angularVelocity = (body.angle - body.anglePrev) / timeScale;\r\n body.angularSpeed = Math.abs(body.angularVelocity);\r\n };\r\n\r\n /**\r\n * Gets the current rotational velocity of the body.\r\n * @method getAngularVelocity\r\n * @param {body} body\r\n * @return {number} angular velocity\r\n */\r\n Body.getAngularVelocity = function(body) {\r\n return (body.angle - body.anglePrev) * Body._baseDelta / body.deltaTime;\r\n };\r\n\r\n /**\r\n * Gets the current rotational speed of the body.\r\n * Equivalent to the magnitude of its angular velocity.\r\n * @method getAngularSpeed\r\n * @param {body} body\r\n * @return {number} angular speed\r\n */\r\n Body.getAngularSpeed = function(body) {\r\n return Math.abs(Body.getAngularVelocity(body));\r\n };\r\n\r\n /**\r\n * Sets the current rotational speed of the body.\r\n * Direction is maintained. Affects body angular velocity.\r\n * @method setAngularSpeed\r\n * @param {body} body\r\n * @param {number} speed\r\n */\r\n Body.setAngularSpeed = function(body, speed) {\r\n Body.setAngularVelocity(body, Common.sign(Body.getAngularVelocity(body)) * speed);\r\n };\r\n\r\n /**\r\n * Moves a body by a given vector relative to its current position, without imparting any velocity.\r\n * @method translate\r\n * @param {body} body\r\n * @param {vector} translation\r\n * @param {boolean} [updateVelocity=false]\r\n */\r\n Body.translate = function(body, translation, updateVelocity) {\r\n Body.setPosition(body, Vector.add(body.position, translation), updateVelocity);\r\n };\r\n\r\n /**\r\n * Rotates a body by a given angle relative to its current angle, without imparting any angular velocity.\r\n * @method rotate\r\n * @param {body} body\r\n * @param {number} rotation\r\n * @param {vector} [point]\r\n * @param {boolean} [updateVelocity=false]\r\n */\r\n Body.rotate = function(body, rotation, point, updateVelocity) {\r\n if (!point) {\r\n Body.setAngle(body, body.angle + rotation, updateVelocity);\r\n } else {\r\n var cos = Math.cos(rotation),\r\n sin = Math.sin(rotation),\r\n dx = body.position.x - point.x,\r\n dy = body.position.y - point.y;\r\n\r\n Body.setPosition(body, {\r\n x: point.x + (dx * cos - dy * sin),\r\n y: point.y + (dx * sin + dy * cos)\r\n }, updateVelocity);\r\n\r\n Body.setAngle(body, body.angle + rotation, updateVelocity);\r\n }\r\n };\r\n\r\n /**\r\n * Scales the body, including updating physical properties (mass, area, axes, inertia), from a world-space point (default is body centre).\r\n * @method scale\r\n * @param {body} body\r\n * @param {number} scaleX\r\n * @param {number} scaleY\r\n * @param {vector} [point]\r\n */\r\n Body.scale = function(body, scaleX, scaleY, point) {\r\n var totalArea = 0,\r\n totalInertia = 0;\r\n\r\n point = point || body.position;\r\n\r\n var wasFixedRotation = (body.inertia === Infinity) ? true : false;\r\n\r\n for (var i = 0; i < body.parts.length; i++) {\r\n var part = body.parts[i];\r\n\r\n part.scale.x = scaleX;\r\n part.scale.y = scaleY;\r\n\r\n // scale vertices\r\n Vertices.scale(part.vertices, scaleX, scaleY, point);\r\n\r\n // update properties\r\n part.axes = Axes.fromVertices(part.vertices);\r\n part.area = Vertices.area(part.vertices);\r\n Body.setMass(part, body.density * part.area);\r\n\r\n // update inertia (requires vertices to be at origin)\r\n Vertices.translate(part.vertices, { x: -part.position.x, y: -part.position.y });\r\n Body.setInertia(part, Body._inertiaScale * Vertices.inertia(part.vertices, part.mass));\r\n Vertices.translate(part.vertices, { x: part.position.x, y: part.position.y });\r\n\r\n if (i > 0) {\r\n totalArea += part.area;\r\n totalInertia += part.inertia;\r\n }\r\n\r\n // scale position\r\n part.position.x = point.x + (part.position.x - point.x) * scaleX;\r\n part.position.y = point.y + (part.position.y - point.y) * scaleY;\r\n\r\n // update bounds\r\n Bounds.update(part.bounds, part.vertices, body.velocity);\r\n }\r\n\r\n // handle parent body\r\n if (body.parts.length > 1) {\r\n body.area = totalArea;\r\n\r\n if (!body.isStatic) {\r\n Body.setMass(body, body.density * totalArea);\r\n Body.setInertia(body, totalInertia);\r\n }\r\n }\r\n\r\n // handle circles\r\n if (body.circleRadius) {\r\n if (scaleX === scaleY) {\r\n body.circleRadius *= scaleX;\r\n } else {\r\n // body is no longer a circle\r\n body.circleRadius = null;\r\n }\r\n }\r\n\r\n if (wasFixedRotation)\r\n {\r\n Body.setInertia(body, Infinity);\r\n }\r\n };\r\n\r\n /**\r\n * Performs a simulation step for the given `body`, including updating position and angle using Verlet integration.\r\n * @method update\r\n * @param {body} body\r\n * @param {number} deltaTime\r\n */\r\n Body.update = function(body, deltaTime) {\r\n deltaTime = (typeof deltaTime !== 'undefined' ? deltaTime : (1000 / 60)) * body.timeScale;\r\n var deltaTimeSquared = deltaTime * deltaTime,\r\n correction = Body._timeCorrection ? deltaTime / (body.deltaTime || deltaTime) : 1;\r\n\r\n // from the previous step\r\n var frictionAir = 1 - body.frictionAir * (deltaTime / Common._baseDelta),\r\n velocityPrevX = (body.position.x - body.positionPrev.x) * correction,\r\n velocityPrevY = (body.position.y - body.positionPrev.y) * correction;\r\n\r\n // update velocity with Verlet integration\r\n body.velocity.x = (velocityPrevX * frictionAir) + (body.force.x / body.mass) * deltaTimeSquared;\r\n body.velocity.y = (velocityPrevY * frictionAir) + (body.force.y / body.mass) * deltaTimeSquared;\r\n\r\n body.positionPrev.x = body.position.x;\r\n body.positionPrev.y = body.position.y;\r\n body.position.x += body.velocity.x;\r\n body.position.y += body.velocity.y;\r\n body.deltaTime = deltaTime;\r\n\r\n // update angular velocity with Verlet integration\r\n body.angularVelocity = ((body.angle - body.anglePrev) * frictionAir * correction) + (body.torque / body.inertia) * deltaTimeSquared;\r\n body.anglePrev = body.angle;\r\n body.angle += body.angularVelocity;\r\n\r\n // track speed and acceleration\r\n body.speed = Vector.magnitude(body.velocity);\r\n body.angularSpeed = Math.abs(body.angularVelocity);\r\n\r\n // transform the body geometry\r\n for (var i = 0; i < body.parts.length; i++) {\r\n var part = body.parts[i];\r\n\r\n Vertices.translate(part.vertices, body.velocity);\r\n\r\n if (i > 0) {\r\n part.position.x += body.velocity.x;\r\n part.position.y += body.velocity.y;\r\n }\r\n\r\n if (body.angularVelocity !== 0) {\r\n Vertices.rotate(part.vertices, body.angularVelocity, body.position);\r\n Axes.rotate(part.axes, body.angularVelocity);\r\n if (i > 0) {\r\n Vector.rotateAbout(part.position, body.angularVelocity, body.position, part.position);\r\n }\r\n }\r\n\r\n Bounds.update(part.bounds, part.vertices, body.velocity);\r\n }\r\n };\r\n\r\n /**\r\n * Updates properties `body.velocity`, `body.speed`, `body.angularVelocity` and `body.angularSpeed` which are normalised in relation to `Body._baseDelta`.\r\n * @method updateVelocities\r\n * @param {body} body\r\n */\r\n Body.updateVelocities = function(body) {\r\n var timeScale = Body._baseDelta / body.deltaTime,\r\n bodyVelocity = body.velocity;\r\n\r\n bodyVelocity.x = (body.position.x - body.positionPrev.x) * timeScale;\r\n bodyVelocity.y = (body.position.y - body.positionPrev.y) * timeScale;\r\n body.speed = Math.sqrt((bodyVelocity.x * bodyVelocity.x) + (bodyVelocity.y * bodyVelocity.y));\r\n\r\n body.angularVelocity = (body.angle - body.anglePrev) * timeScale;\r\n body.angularSpeed = Math.abs(body.angularVelocity);\r\n };\r\n\r\n /**\r\n * Applies a force to a body from a given world-space position, including resulting torque.\r\n * @method applyForce\r\n * @param {body} body\r\n * @param {vector} position\r\n * @param {vector} force\r\n */\r\n Body.applyForce = function(body, position, force) {\r\n var offset = { x: position.x - body.position.x, y: position.y - body.position.y };\r\n body.force.x += force.x;\r\n body.force.y += force.y;\r\n body.torque += offset.x * force.y - offset.y * force.x;\r\n };\r\n\r\n /**\r\n * Returns the sums of the properties of all compound parts of the parent body.\r\n * @method _totalProperties\r\n * @private\r\n * @param {body} body\r\n * @return {}\r\n */\r\n Body._totalProperties = function(body) {\r\n // from equations at:\r\n // https://ecourses.ou.edu/cgi-bin/ebook.cgi?doc=&topic=st&chap_sec=07.2&page=theory\r\n // http://output.to/sideway/default.asp?qno=121100087\r\n\r\n var properties = {\r\n mass: 0,\r\n area: 0,\r\n inertia: 0,\r\n centre: { x: 0, y: 0 }\r\n };\r\n\r\n // sum the properties of all compound parts of the parent body\r\n for (var i = body.parts.length === 1 ? 0 : 1; i < body.parts.length; i++) {\r\n var part = body.parts[i],\r\n mass = part.mass !== Infinity ? part.mass : 1;\r\n\r\n properties.mass += mass;\r\n properties.area += part.area;\r\n properties.inertia += part.inertia;\r\n properties.centre = Vector.add(properties.centre, Vector.mult(part.position, mass));\r\n }\r\n\r\n properties.centre = Vector.div(properties.centre, properties.mass);\r\n\r\n return properties;\r\n };\r\n\r\n /**\r\n * Wraps the `body` position such that it always stays within the given bounds.\r\n * Upon crossing a boundary the body will appear on the opposite side of the bounds,\r\n * while maintaining its velocity.\r\n * @function wrap\r\n * @param {body} body The body to wrap.\r\n * @param {Matter.Bounds} bounds The bounds to wrap the body inside.\r\n * @returns {?Matter.Vector} The translation vector that was applied (only if wrapping was required).\r\n */\r\n Body.wrap = function(body, bounds) {\r\n var translation = Bounds.wrap(body.bounds, bounds);\r\n\r\n if (translation) {\r\n Body.translate(body, translation);\r\n }\r\n\r\n return translation;\r\n };\r\n\r\n /*\r\n *\r\n * Events Documentation\r\n *\r\n */\r\n\r\n /**\r\n * Fired when a body starts sleeping (where `this` is the body).\r\n *\r\n * @event sleepStart\r\n * @this {body} The body that has started sleeping\r\n * @param {} event An event object\r\n * @param {} event.source The source object of the event\r\n * @param {} event.name The name of the event\r\n */\r\n\r\n /**\r\n * Fired when a body ends sleeping (where `this` is the body).\r\n *\r\n * @event sleepEnd\r\n * @this {body} The body that has ended sleeping\r\n * @param {} event An event object\r\n * @param {} event.source The source object of the event\r\n * @param {} event.name The name of the event\r\n */\r\n\r\n /*\r\n *\r\n * Properties Documentation\r\n *\r\n */\r\n\r\n /**\r\n * An integer `Number` uniquely identifying number generated in `Body.create` by `Common.nextId`.\r\n *\r\n * @property id\r\n * @type number\r\n */\r\n\r\n /**\r\n * A `String` denoting the type of object.\r\n *\r\n * @property type\r\n * @type string\r\n * @default \"body\"\r\n * @readOnly\r\n */\r\n\r\n /**\r\n * An arbitrary `String` name to help the user identify and manage bodies.\r\n *\r\n * @property label\r\n * @type string\r\n * @default \"Body\"\r\n */\r\n\r\n /**\r\n * An array of bodies that make up this body.\r\n * The first body in the array must always be a self reference to the current body instance.\r\n * All bodies in the `parts` array together form a single rigid compound body.\r\n * Parts are allowed to overlap, have gaps or holes or even form concave bodies.\r\n * Parts themselves should never be added to a `World`, only the parent body should be.\r\n * Use `Body.setParts` when setting parts to ensure correct updates of all properties.\r\n *\r\n * @property parts\r\n * @type body[]\r\n */\r\n\r\n /**\r\n * An object reserved for storing plugin-specific properties.\r\n *\r\n * @property plugin\r\n * @type {}\r\n */\r\n\r\n /**\r\n * A self reference if the body is _not_ a part of another body.\r\n * Otherwise this is a reference to the body that this is a part of.\r\n * See `body.parts`.\r\n *\r\n * @property parent\r\n * @type body\r\n */\r\n\r\n /**\r\n * An object storing axis-aligned bounding boxes (AABB).\r\n *\r\n * @property wrapBounds\r\n * @type {}\r\n */\r\n\r\n /**\r\n * An array of callback functions that will be called automatically\r\n * for every pair of bodies, on every engine update.\r\n *\r\n * @property attractors\r\n * @type Function[]\r\n */\r\n\r\n /**\r\n * A `Number` specifying the angle of the body, in radians.\r\n *\r\n * @property angle\r\n * @type number\r\n * @default 0\r\n */\r\n\r\n /**\r\n * An array of `Vector` objects that specify the convex hull of the rigid body.\r\n * These should be provided about the origin `(0, 0)`. E.g.\r\n *\r\n * [{ x: 0, y: 0 }, { x: 25, y: 50 }, { x: 50, y: 0 }]\r\n *\r\n * When passed via `Body.create`, the vertices are translated relative to `body.position` (i.e. world-space, and constantly updated by `Body.update` during simulation).\r\n * The `Vector` objects are also augmented with additional properties required for efficient collision detection.\r\n *\r\n * Other properties such as `inertia` and `bounds` are automatically calculated from the passed vertices (unless provided via `options`).\r\n * Concave hulls are not currently supported. The module `Matter.Vertices` contains useful methods for working with vertices.\r\n *\r\n * @property vertices\r\n * @type vector[]\r\n */\r\n\r\n /**\r\n * A `Vector` that specifies the current world-space position of the body.\r\n *\r\n * @property position\r\n * @type vector\r\n * @default { x: 0, y: 0 }\r\n */\r\n\r\n /**\r\n * A `Vector` that holds the current scale values as set by `Body.setScale`.\r\n *\r\n * @property scale\r\n * @type vector\r\n * @default { x: 1, y: 1 }\r\n */\r\n\r\n /**\r\n * A `Vector` that specifies the force to apply in the current step. It is zeroed after every `Body.update`. See also `Body.applyForce`.\r\n *\r\n * @property force\r\n * @type vector\r\n * @default { x: 0, y: 0 }\r\n */\r\n\r\n /**\r\n * A `Number` that specifies the torque (turning force) to apply in the current step. It is zeroed after every `Body.update`.\r\n *\r\n * @property torque\r\n * @type number\r\n * @default 0\r\n */\r\n\r\n /**\r\n * A `Number` that _measures_ the current speed of the body after the last `Body.update`. It is read-only and always positive (it's the magnitude of `body.velocity`).\r\n *\r\n * @readOnly\r\n * @property speed\r\n * @type number\r\n * @default 0\r\n */\r\n\r\n /**\r\n * A `Number` that _measures_ the current angular speed of the body after the last `Body.update`. It is read-only and always positive (it's the magnitude of `body.angularVelocity`).\r\n *\r\n * @readOnly\r\n * @property angularSpeed\r\n * @type number\r\n * @default 0\r\n */\r\n\r\n /**\r\n * A `Vector` that _measures_ the current velocity of the body after the last `Body.update`. It is read-only.\r\n * If you need to modify a body's velocity directly, you should either apply a force or simply change the body's `position` (as the engine uses position-Verlet integration).\r\n *\r\n * @readOnly\r\n * @property velocity\r\n * @type vector\r\n * @default { x: 0, y: 0 }\r\n */\r\n\r\n /**\r\n * A `Number` that _measures_ the current angular velocity of the body after the last `Body.update`. It is read-only.\r\n * If you need to modify a body's angular velocity directly, you should apply a torque or simply change the body's `angle` (as the engine uses position-Verlet integration).\r\n *\r\n * @readOnly\r\n * @property angularVelocity\r\n * @type number\r\n * @default 0\r\n */\r\n\r\n /**\r\n * A flag that indicates whether a body is considered static. A static body can never change position or angle and is completely fixed.\r\n * If you need to set a body as static after its creation, you should use `Body.setStatic` as this requires more than just setting this flag.\r\n *\r\n * @property isStatic\r\n * @type boolean\r\n * @default false\r\n */\r\n\r\n /**\r\n * A flag that indicates whether a body is a sensor. Sensor triggers collision events, but doesn't react with colliding body physically.\r\n *\r\n * @property isSensor\r\n * @type boolean\r\n * @default false\r\n */\r\n\r\n /**\r\n * A flag that indicates whether the body is considered sleeping. A sleeping body acts similar to a static body, except it is only temporary and can be awoken.\r\n * If you need to set a body as sleeping, you should use `Sleeping.set` as this requires more than just setting this flag.\r\n *\r\n * @property isSleeping\r\n * @type boolean\r\n * @default false\r\n */\r\n\r\n /**\r\n * A `Number` that _measures_ the amount of movement a body currently has (a combination of `speed` and `angularSpeed`). It is read-only and always positive.\r\n * It is used and updated by the `Matter.Sleeping` module during simulation to decide if a body has come to rest.\r\n *\r\n * @readOnly\r\n * @property motion\r\n * @type number\r\n * @default 0\r\n */\r\n\r\n /**\r\n * A `Number` that defines the number of updates in which this body must have near-zero velocity before it is set as sleeping by the `Matter.Sleeping` module (if sleeping is enabled by the engine).\r\n *\r\n * @property sleepThreshold\r\n * @type number\r\n * @default 60\r\n */\r\n\r\n /**\r\n * A `Number` that defines the density of the body, that is its mass per unit area.\r\n * If you pass the density via `Body.create` the `mass` property is automatically calculated for you based on the size (area) of the object.\r\n * This is generally preferable to simply setting mass and allows for more intuitive definition of materials (e.g. rock has a higher density than wood).\r\n *\r\n * @property density\r\n * @type number\r\n * @default 0.001\r\n */\r\n\r\n /**\r\n * A `Number` that defines the mass of the body, although it may be more appropriate to specify the `density` property instead.\r\n * If you modify this value, you must also modify the `body.inverseMass` property (`1 / mass`).\r\n *\r\n * @property mass\r\n * @type number\r\n */\r\n\r\n /**\r\n * A `Number` that defines the inverse mass of the body (`1 / mass`).\r\n * If you modify this value, you must also modify the `body.mass` property.\r\n *\r\n * @property inverseMass\r\n * @type number\r\n */\r\n\r\n /**\r\n * A `Number` that defines the moment of inertia (i.e. second moment of area) of the body.\r\n * It is automatically calculated from the given convex hull (`vertices` array) and density in `Body.create`.\r\n * If you modify this value, you must also modify the `body.inverseInertia` property (`1 / inertia`).\r\n *\r\n * @property inertia\r\n * @type number\r\n */\r\n\r\n /**\r\n * A `Number` that defines the inverse moment of inertia of the body (`1 / inertia`).\r\n * If you modify this value, you must also modify the `body.inertia` property.\r\n *\r\n * @property inverseInertia\r\n * @type number\r\n */\r\n\r\n /**\r\n * A `Number` that defines the restitution (elasticity) of the body. The value is always positive and is in the range `(0, 1)`.\r\n * A value of `0` means collisions may be perfectly inelastic and no bouncing may occur.\r\n * A value of `0.8` means the body may bounce back with approximately 80% of its kinetic energy.\r\n * Note that collision response is based on _pairs_ of bodies, and that `restitution` values are _combined_ with the following formula:\r\n *\r\n * Math.max(bodyA.restitution, bodyB.restitution)\r\n *\r\n * @property restitution\r\n * @type number\r\n * @default 0\r\n */\r\n\r\n /**\r\n * A `Number` that defines the friction of the body. The value is always positive and is in the range `(0, 1)`.\r\n * A value of `0` means that the body may slide indefinitely.\r\n * A value of `1` means the body may come to a stop almost instantly after a force is applied.\r\n *\r\n * The effects of the value may be non-linear.\r\n * High values may be unstable depending on the body.\r\n * The engine uses a Coulomb friction model including static and kinetic friction.\r\n * Note that collision response is based on _pairs_ of bodies, and that `friction` values are _combined_ with the following formula:\r\n *\r\n * Math.min(bodyA.friction, bodyB.friction)\r\n *\r\n * @property friction\r\n * @type number\r\n * @default 0.1\r\n */\r\n\r\n /**\r\n * A `Number` that defines the static friction of the body (in the Coulomb friction model).\r\n * A value of `0` means the body will never 'stick' when it is nearly stationary and only dynamic `friction` is used.\r\n * The higher the value (e.g. `10`), the more force it will take to initially get the body moving when nearly stationary.\r\n * This value is multiplied with the `friction` property to make it easier to change `friction` and maintain an appropriate amount of static friction.\r\n *\r\n * @property frictionStatic\r\n * @type number\r\n * @default 0.5\r\n */\r\n\r\n /**\r\n * A `Number` that defines the air friction of the body (air resistance).\r\n * A value of `0` means the body will never slow as it moves through space.\r\n * The higher the value, the faster a body slows when moving through space.\r\n * The effects of the value are non-linear.\r\n *\r\n * @property frictionAir\r\n * @type number\r\n * @default 0.01\r\n */\r\n\r\n /**\r\n * An `Object` that specifies the collision filtering properties of this body.\r\n *\r\n * Collisions between two bodies will obey the following rules:\r\n * - If the two bodies have the same non-zero value of `collisionFilter.group`,\r\n * they will always collide if the value is positive, and they will never collide\r\n * if the value is negative.\r\n * - If the two bodies have different values of `collisionFilter.group` or if one\r\n * (or both) of the bodies has a value of 0, then the category/mask rules apply as follows:\r\n *\r\n * Each body belongs to a collision category, given by `collisionFilter.category`. This\r\n * value is used as a bit field and the category should have only one bit set, meaning that\r\n * the value of this property is a power of two in the range [1, 2^31]. Thus, there are 32\r\n * different collision categories available.\r\n *\r\n * Each body also defines a collision bitmask, given by `collisionFilter.mask` which specifies\r\n * the categories it collides with (the value is the bitwise AND value of all these categories).\r\n *\r\n * Using the category/mask rules, two bodies `A` and `B` collide if each includes the other's\r\n * category in its mask, i.e. `(categoryA & maskB) !== 0` and `(categoryB & maskA) !== 0`\r\n * are both true.\r\n *\r\n * @property collisionFilter\r\n * @type object\r\n */\r\n\r\n /**\r\n * An Integer `Number`, that specifies the collision group this body belongs to.\r\n * See `body.collisionFilter` for more information.\r\n *\r\n * @property collisionFilter.group\r\n * @type object\r\n * @default 0\r\n */\r\n\r\n /**\r\n * A bit field that specifies the collision category this body belongs to.\r\n * The category value should have only one bit set, for example `0x0001`.\r\n * This means there are up to 32 unique collision categories available.\r\n * See `body.collisionFilter` for more information.\r\n *\r\n * @property collisionFilter.category\r\n * @type object\r\n * @default 1\r\n */\r\n\r\n /**\r\n * A bit mask that specifies the collision categories this body may collide with.\r\n * See `body.collisionFilter` for more information.\r\n *\r\n * @property collisionFilter.mask\r\n * @type object\r\n * @default -1\r\n */\r\n\r\n /**\r\n * A `Number` that specifies a tolerance on how far a body is allowed to 'sink' or rotate into other bodies.\r\n * Avoid changing this value unless you understand the purpose of `slop` in physics engines.\r\n * The default should generally suffice, although very large bodies may require larger values for stable stacking.\r\n *\r\n * @property slop\r\n * @type number\r\n * @default 0.05\r\n */\r\n\r\n /**\r\n * A `Number` that allows per-body time scaling, e.g. a force-field where bodies inside are in slow-motion, while others are at full speed.\r\n *\r\n * @property timeScale\r\n * @type number\r\n * @default 1\r\n */\r\n\r\n /**\r\n * An `Object` that defines the rendering properties to be consumed by the module `Matter.Render`.\r\n *\r\n * @property render\r\n * @type object\r\n */\r\n\r\n /**\r\n * A flag that indicates if the body should be rendered.\r\n *\r\n * @property render.visible\r\n * @type boolean\r\n * @default true\r\n */\r\n\r\n /**\r\n * Sets the opacity to use when rendering.\r\n *\r\n * @property render.opacity\r\n * @type number\r\n * @default 1\r\n */\r\n\r\n /**\r\n * An `Object` that defines the sprite properties to use when rendering, if any.\r\n *\r\n * @property render.sprite\r\n * @type object\r\n */\r\n\r\n /**\r\n * A `Number` that defines the offset in the x-axis for the sprite (normalised by texture width).\r\n *\r\n * @property render.sprite.xOffset\r\n * @type number\r\n * @default 0\r\n */\r\n\r\n /**\r\n * A `Number` that defines the offset in the y-axis for the sprite (normalised by texture height).\r\n *\r\n * @property render.sprite.yOffset\r\n * @type number\r\n * @default 0\r\n */\r\n\r\n /**\r\n * A hex color value that defines the fill color to use when rendering the body.\r\n *\r\n * @property render.fillColor\r\n * @type number\r\n */\r\n\r\n /**\r\n * A value that defines the fill opacity to use when rendering the body.\r\n *\r\n * @property render.fillOpacity\r\n * @type number\r\n */\r\n\r\n /**\r\n * A hex color value that defines the line color to use when rendering the body.\r\n *\r\n * @property render.lineColor\r\n * @type number\r\n */\r\n\r\n /**\r\n * A value that defines the line opacity to use when rendering the body.\r\n *\r\n * @property render.lineOpacity\r\n * @type number\r\n */\r\n\r\n /**\r\n * A `Number` that defines the line width to use when rendering the body outline.\r\n *\r\n * @property render.lineThickness\r\n * @type number\r\n */\r\n\r\n /**\r\n * An array of unique axis vectors (edge normals) used for collision detection.\r\n * These are automatically calculated from the given convex hull (`vertices` array) in `Body.create`.\r\n * They are constantly updated by `Body.update` during the simulation.\r\n *\r\n * @property axes\r\n * @type vector[]\r\n */\r\n\r\n /**\r\n * A `Number` that _measures_ the area of the body's convex hull, calculated at creation by `Body.create`.\r\n *\r\n * @property area\r\n * @type string\r\n * @default\r\n */\r\n\r\n /**\r\n * A `Bounds` object that defines the AABB region for the body.\r\n * It is automatically calculated from the given convex hull (`vertices` array) in `Body.create` and constantly updated by `Body.update` during simulation.\r\n *\r\n * @property bounds\r\n * @type bounds\r\n */\r\n\r\n /**\r\n * A reference to the Phaser Game Object this body belongs to, if any.\r\n *\r\n * @property gameObject\r\n * @type Phaser.GameObjects.GameObject\r\n */\r\n\r\n /**\r\n * The center of mass of the Body.\r\n *\r\n * @property centerOfMass\r\n * @type vector\r\n * @default { x: 0, y: 0 }\r\n */\r\n\r\n /**\r\n * The center of the body in pixel values.\r\n * Used by Phaser for texture aligment.\r\n *\r\n * @property centerOffset\r\n * @type vector\r\n * @default { x: 0, y: 0 }\r\n */\r\n\r\n /**\r\n * Will this Body ignore World gravity during the Engine update?\r\n *\r\n * @property ignoreGravity\r\n * @type boolean\r\n * @default false\r\n */\r\n\r\n /**\r\n * Scale the influence of World gravity when applied to this body.\r\n *\r\n * @property gravityScale\r\n * @type vector\r\n * @default { x: 1, y: 1 }\r\n */\r\n\r\n /**\r\n * Will this Body ignore Phaser Pointer input events?\r\n *\r\n * @property ignorePointer\r\n * @type boolean\r\n * @default false\r\n */\r\n\r\n /**\r\n * A callback that is invoked when this Body starts colliding with any other Body.\r\n *\r\n * You can register callbacks by providing a function of type `( pair: Matter.Pair) => void`.\r\n *\r\n * @property onCollideCallback\r\n * @type function\r\n * @default null\r\n */\r\n\r\n /**\r\n * A callback that is invoked when this Body stops colliding with any other Body.\r\n *\r\n * You can register callbacks by providing a function of type `( pair: Matter.Pair) => void`.\r\n *\r\n * @property onCollideEndCallback\r\n * @type function\r\n * @default null\r\n */\r\n\r\n /**\r\n * A callback that is invoked for the duration that this Body is colliding with any other Body.\r\n *\r\n * You can register callbacks by providing a function of type `( pair: Matter.Pair) => void`.\r\n *\r\n * @property onCollideActiveCallback\r\n * @type function\r\n * @default null\r\n */\r\n\r\n /**\r\n * A collision callback dictionary used by the `Body.setOnCollideWith` function.\r\n *\r\n * @property onCollideWith\r\n * @type object\r\n * @default null\r\n */\r\n\r\n})();\r\n\n\n/***/ }),\n\n/***/ 69351:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* The `Matter.Composite` module contains methods for creating and manipulating composite bodies.\r\n* A composite body is a collection of `Matter.Body`, `Matter.Constraint` and other `Matter.Composite`, therefore composites form a tree structure.\r\n* It is important to use the functions in this module to modify composites, rather than directly modifying their properties.\r\n* Note that the `Matter.World` object is also a type of `Matter.Composite` and as such all composite methods here can also operate on a `Matter.World`.\r\n*\r\n* See the included usage [examples](https://github.com/liabru/matter-js/tree/master/examples).\r\n*\r\n* @class Composite\r\n*/\r\n\r\nvar Composite = {};\r\n\r\nmodule.exports = Composite;\r\n\r\nvar Events = __webpack_require__(35810);\r\nvar Common = __webpack_require__(53402);\r\nvar Bounds = __webpack_require__(15647);\r\nvar Body = __webpack_require__(22562);\r\n\r\n(function() {\r\n\r\n /**\r\n * Creates a new composite. The options parameter is an object that specifies any properties you wish to override the defaults.\r\n * See the properites section below for detailed information on what you can pass via the `options` object.\r\n * @method create\r\n * @param {} [options]\r\n * @return {composite} A new composite\r\n */\r\n Composite.create = function(options) {\r\n return Common.extend({ \r\n id: Common.nextId(),\r\n type: 'composite',\r\n parent: null,\r\n isModified: false,\r\n bodies: [], \r\n constraints: [], \r\n composites: [],\r\n label: 'Composite',\r\n plugin: {},\r\n wrapBounds: null,\r\n cache: {\r\n allBodies: null,\r\n allConstraints: null,\r\n allComposites: null\r\n }\r\n }, options);\r\n };\r\n\r\n /**\r\n * Sets the composite's `isModified` flag. \r\n * If `updateParents` is true, all parents will be set (default: false).\r\n * If `updateChildren` is true, all children will be set (default: false).\r\n * @method setModified\r\n * @param {composite} composite\r\n * @param {boolean} isModified\r\n * @param {boolean} [updateParents=false]\r\n * @param {boolean} [updateChildren=false]\r\n */\r\n Composite.setModified = function(composite, isModified, updateParents, updateChildren) {\r\n\r\n Events.trigger(composite, 'compositeModified', composite);\r\n\r\n composite.isModified = isModified;\r\n\r\n if (isModified && composite.cache) {\r\n composite.cache.allBodies = null;\r\n composite.cache.allConstraints = null;\r\n composite.cache.allComposites = null;\r\n }\r\n\r\n if (updateParents && composite.parent) {\r\n Composite.setModified(composite.parent, isModified, updateParents, updateChildren);\r\n }\r\n\r\n if (updateChildren) {\r\n for (var i = 0; i < composite.composites.length; i++) {\r\n var childComposite = composite.composites[i];\r\n Composite.setModified(childComposite, isModified, updateParents, updateChildren);\r\n }\r\n }\r\n };\r\n\r\n /**\r\n * Generic single or multi-add function. Adds a single or an array of body(s), constraint(s) or composite(s) to the given composite.\r\n * Triggers `beforeAdd` and `afterAdd` events on the `composite`.\r\n * @method add\r\n * @param {composite} composite\r\n * @param {object|array} object A single or an array of body(s), constraint(s) or composite(s)\r\n * @return {composite} The original composite with the objects added\r\n */\r\n Composite.add = function(composite, object) {\r\n var objects = [].concat(object);\r\n\r\n Events.trigger(composite, 'beforeAdd', { object: object });\r\n\r\n for (var i = 0; i < objects.length; i++) {\r\n var obj = objects[i];\r\n\r\n switch (obj.type) {\r\n\r\n case 'body':\r\n // skip adding compound parts\r\n if (obj.parent !== obj) {\r\n Common.warn('Composite.add: skipped adding a compound body part (you must add its parent instead)');\r\n break;\r\n }\r\n\r\n Composite.addBody(composite, obj);\r\n break;\r\n case 'constraint':\r\n Composite.addConstraint(composite, obj);\r\n break;\r\n case 'composite':\r\n Composite.addComposite(composite, obj);\r\n break;\r\n case 'mouseConstraint':\r\n Composite.addConstraint(composite, obj.constraint);\r\n break;\r\n\r\n }\r\n }\r\n\r\n Events.trigger(composite, 'afterAdd', { object: object });\r\n\r\n return composite;\r\n };\r\n\r\n /**\r\n * Generic remove function. Removes one or many body(s), constraint(s) or a composite(s) to the given composite.\r\n * Optionally searching its children recursively.\r\n * Triggers `beforeRemove` and `afterRemove` events on the `composite`.\r\n * @method remove\r\n * @param {composite} composite\r\n * @param {object|array} object\r\n * @param {boolean} [deep=false]\r\n * @return {composite} The original composite with the objects removed\r\n */\r\n Composite.remove = function(composite, object, deep) {\r\n var objects = [].concat(object);\r\n\r\n Events.trigger(composite, 'beforeRemove', { object: object });\r\n\r\n for (var i = 0; i < objects.length; i++) {\r\n var obj = objects[i];\r\n\r\n switch (obj.type) {\r\n\r\n case 'body':\r\n Composite.removeBody(composite, obj, deep);\r\n break;\r\n case 'constraint':\r\n Composite.removeConstraint(composite, obj, deep);\r\n break;\r\n case 'composite':\r\n Composite.removeComposite(composite, obj, deep);\r\n break;\r\n case 'mouseConstraint':\r\n Composite.removeConstraint(composite, obj.constraint);\r\n break;\r\n\r\n }\r\n }\r\n\r\n Events.trigger(composite, 'afterRemove', { object: object });\r\n\r\n return composite;\r\n };\r\n\r\n /**\r\n * Adds a composite to the given composite.\r\n * @private\r\n * @method addComposite\r\n * @param {composite} compositeA\r\n * @param {composite} compositeB\r\n * @return {composite} The original compositeA with the objects from compositeB added\r\n */\r\n Composite.addComposite = function(compositeA, compositeB) {\r\n compositeA.composites.push(compositeB);\r\n compositeB.parent = compositeA;\r\n Composite.setModified(compositeA, true, true, false);\r\n return compositeA;\r\n };\r\n\r\n /**\r\n * Removes a composite from the given composite, and optionally searching its children recursively.\r\n * @private\r\n * @method removeComposite\r\n * @param {composite} compositeA\r\n * @param {composite} compositeB\r\n * @param {boolean} [deep=false]\r\n * @return {composite} The original compositeA with the composite removed\r\n */\r\n Composite.removeComposite = function(compositeA, compositeB, deep) {\r\n var position = Common.indexOf(compositeA.composites, compositeB);\r\n if (position !== -1) {\r\n var bodies = Composite.allBodies(compositeB);\r\n Composite.removeCompositeAt(compositeA, position);\r\n for (var i = 0; i < bodies.length; i++) {\r\n bodies[i].sleepCounter = 0;\r\n }\r\n }\r\n\r\n if (deep) {\r\n for (var i = 0; i < compositeA.composites.length; i++){\r\n Composite.removeComposite(compositeA.composites[i], compositeB, true);\r\n }\r\n }\r\n\r\n return compositeA;\r\n };\r\n\r\n /**\r\n * Removes a composite from the given composite.\r\n * @private\r\n * @method removeCompositeAt\r\n * @param {composite} composite\r\n * @param {number} position\r\n * @return {composite} The original composite with the composite removed\r\n */\r\n Composite.removeCompositeAt = function(composite, position) {\r\n composite.composites.splice(position, 1);\r\n Composite.setModified(composite, true, true, false);\r\n return composite;\r\n };\r\n\r\n /**\r\n * Adds a body to the given composite.\r\n * @private\r\n * @method addBody\r\n * @param {composite} composite\r\n * @param {body} body\r\n * @return {composite} The original composite with the body added\r\n */\r\n Composite.addBody = function(composite, body) {\r\n composite.bodies.push(body);\r\n Composite.setModified(composite, true, true, false);\r\n return composite;\r\n };\r\n\r\n /**\r\n * Removes a body from the given composite, and optionally searching its children recursively.\r\n * @private\r\n * @method removeBody\r\n * @param {composite} composite\r\n * @param {body} body\r\n * @param {boolean} [deep=false]\r\n * @return {composite} The original composite with the body removed\r\n */\r\n Composite.removeBody = function(composite, body, deep) {\r\n var position = Common.indexOf(composite.bodies, body);\r\n if (position !== -1) {\r\n Composite.removeBodyAt(composite, position);\r\n body.sleepCounter = 0;\r\n }\r\n\r\n if (deep) {\r\n for (var i = 0; i < composite.composites.length; i++){\r\n Composite.removeBody(composite.composites[i], body, true);\r\n }\r\n }\r\n\r\n return composite;\r\n };\r\n\r\n /**\r\n * Removes a body from the given composite.\r\n * @private\r\n * @method removeBodyAt\r\n * @param {composite} composite\r\n * @param {number} position\r\n * @return {composite} The original composite with the body removed\r\n */\r\n Composite.removeBodyAt = function(composite, position) {\r\n composite.bodies.splice(position, 1);\r\n Composite.setModified(composite, true, true, false);\r\n return composite;\r\n };\r\n\r\n /**\r\n * Adds a constraint to the given composite.\r\n * @private\r\n * @method addConstraint\r\n * @param {composite} composite\r\n * @param {constraint} constraint\r\n * @return {composite} The original composite with the constraint added\r\n */\r\n Composite.addConstraint = function(composite, constraint) {\r\n composite.constraints.push(constraint);\r\n Composite.setModified(composite, true, true, false);\r\n return composite;\r\n };\r\n\r\n /**\r\n * Removes a constraint from the given composite, and optionally searching its children recursively.\r\n * @private\r\n * @method removeConstraint\r\n * @param {composite} composite\r\n * @param {constraint} constraint\r\n * @param {boolean} [deep=false]\r\n * @return {composite} The original composite with the constraint removed\r\n */\r\n Composite.removeConstraint = function(composite, constraint, deep) {\r\n var position = Common.indexOf(composite.constraints, constraint);\r\n if (position !== -1) {\r\n Composite.removeConstraintAt(composite, position);\r\n }\r\n\r\n if (deep) {\r\n for (var i = 0; i < composite.composites.length; i++){\r\n Composite.removeConstraint(composite.composites[i], constraint, true);\r\n }\r\n }\r\n\r\n return composite;\r\n };\r\n\r\n /**\r\n * Removes a body from the given composite.\r\n * @private\r\n * @method removeConstraintAt\r\n * @param {composite} composite\r\n * @param {number} position\r\n * @return {composite} The original composite with the constraint removed\r\n */\r\n Composite.removeConstraintAt = function(composite, position) {\r\n composite.constraints.splice(position, 1);\r\n Composite.setModified(composite, true, true, false);\r\n return composite;\r\n };\r\n\r\n /**\r\n * Removes all bodies, constraints and composites from the given composite.\r\n * Optionally clearing its children recursively.\r\n * @method clear\r\n * @param {composite} composite\r\n * @param {boolean} keepStatic\r\n * @param {boolean} [deep=false]\r\n */\r\n Composite.clear = function(composite, keepStatic, deep) {\r\n if (deep) {\r\n for (var i = 0; i < composite.composites.length; i++){\r\n Composite.clear(composite.composites[i], keepStatic, true);\r\n }\r\n }\r\n \r\n if (keepStatic) {\r\n composite.bodies = composite.bodies.filter(function(body) { return body.isStatic; });\r\n } else {\r\n composite.bodies.length = 0;\r\n }\r\n\r\n composite.constraints.length = 0;\r\n composite.composites.length = 0;\r\n\r\n Composite.setModified(composite, true, true, false);\r\n\r\n return composite;\r\n };\r\n\r\n /**\r\n * Returns all bodies in the given composite, including all bodies in its children, recursively.\r\n * @method allBodies\r\n * @param {composite} composite\r\n * @return {body[]} All the bodies\r\n */\r\n Composite.allBodies = function(composite) {\r\n if (composite.cache && composite.cache.allBodies) {\r\n return composite.cache.allBodies;\r\n }\r\n\r\n var bodies = [].concat(composite.bodies);\r\n\r\n for (var i = 0; i < composite.composites.length; i++)\r\n bodies = bodies.concat(Composite.allBodies(composite.composites[i]));\r\n\r\n if (composite.cache) {\r\n composite.cache.allBodies = bodies;\r\n }\r\n\r\n return bodies;\r\n };\r\n\r\n /**\r\n * Returns all constraints in the given composite, including all constraints in its children, recursively.\r\n * @method allConstraints\r\n * @param {composite} composite\r\n * @return {constraint[]} All the constraints\r\n */\r\n Composite.allConstraints = function(composite) {\r\n if (composite.cache && composite.cache.allConstraints) {\r\n return composite.cache.allConstraints;\r\n }\r\n\r\n var constraints = [].concat(composite.constraints);\r\n\r\n for (var i = 0; i < composite.composites.length; i++)\r\n constraints = constraints.concat(Composite.allConstraints(composite.composites[i]));\r\n\r\n if (composite.cache) {\r\n composite.cache.allConstraints = constraints;\r\n }\r\n\r\n return constraints;\r\n };\r\n\r\n /**\r\n * Returns all composites in the given composite, including all composites in its children, recursively.\r\n * @method allComposites\r\n * @param {composite} composite\r\n * @return {composite[]} All the composites\r\n */\r\n Composite.allComposites = function(composite) {\r\n if (composite.cache && composite.cache.allComposites) {\r\n return composite.cache.allComposites;\r\n }\r\n\r\n var composites = [].concat(composite.composites);\r\n\r\n for (var i = 0; i < composite.composites.length; i++)\r\n composites = composites.concat(Composite.allComposites(composite.composites[i]));\r\n\r\n if (composite.cache) {\r\n composite.cache.allComposites = composites;\r\n }\r\n\r\n return composites;\r\n };\r\n\r\n /**\r\n * Searches the composite recursively for an object matching the type and id supplied, null if not found.\r\n * @method get\r\n * @param {composite} composite\r\n * @param {number} id\r\n * @param {string} type\r\n * @return {object} The requested object, if found\r\n */\r\n Composite.get = function(composite, id, type) {\r\n var objects,\r\n object;\r\n\r\n switch (type) {\r\n case 'body':\r\n objects = Composite.allBodies(composite);\r\n break;\r\n case 'constraint':\r\n objects = Composite.allConstraints(composite);\r\n break;\r\n case 'composite':\r\n objects = Composite.allComposites(composite).concat(composite);\r\n break;\r\n }\r\n\r\n if (!objects)\r\n return null;\r\n\r\n object = objects.filter(function(object) { \r\n return object.id.toString() === id.toString(); \r\n });\r\n\r\n return object.length === 0 ? null : object[0];\r\n };\r\n\r\n /**\r\n * Moves the given object(s) from compositeA to compositeB (equal to a remove followed by an add).\r\n * @method move\r\n * @param {compositeA} compositeA\r\n * @param {object[]} objects\r\n * @param {compositeB} compositeB\r\n * @return {composite} Returns compositeA\r\n */\r\n Composite.move = function(compositeA, objects, compositeB) {\r\n Composite.remove(compositeA, objects);\r\n Composite.add(compositeB, objects);\r\n return compositeA;\r\n };\r\n\r\n /**\r\n * Assigns new ids for all objects in the composite, recursively.\r\n * @method rebase\r\n * @param {composite} composite\r\n * @return {composite} Returns composite\r\n */\r\n Composite.rebase = function(composite) {\r\n var objects = Composite.allBodies(composite)\r\n .concat(Composite.allConstraints(composite))\r\n .concat(Composite.allComposites(composite));\r\n\r\n for (var i = 0; i < objects.length; i++) {\r\n objects[i].id = Common.nextId();\r\n }\r\n\r\n return composite;\r\n };\r\n\r\n /**\r\n * Translates all children in the composite by a given vector relative to their current positions, \r\n * without imparting any velocity.\r\n * @method translate\r\n * @param {composite} composite\r\n * @param {vector} translation\r\n * @param {bool} [recursive=true]\r\n */\r\n Composite.translate = function(composite, translation, recursive) {\r\n var bodies = recursive ? Composite.allBodies(composite) : composite.bodies;\r\n\r\n for (var i = 0; i < bodies.length; i++) {\r\n Body.translate(bodies[i], translation);\r\n }\r\n\r\n return composite;\r\n };\r\n\r\n /**\r\n * Rotates all children in the composite by a given angle about the given point, without imparting any angular velocity.\r\n * @method rotate\r\n * @param {composite} composite\r\n * @param {number} rotation\r\n * @param {vector} point\r\n * @param {bool} [recursive=true]\r\n */\r\n Composite.rotate = function(composite, rotation, point, recursive) {\r\n var cos = Math.cos(rotation),\r\n sin = Math.sin(rotation),\r\n bodies = recursive ? Composite.allBodies(composite) : composite.bodies;\r\n\r\n for (var i = 0; i < bodies.length; i++) {\r\n var body = bodies[i],\r\n dx = body.position.x - point.x,\r\n dy = body.position.y - point.y;\r\n \r\n Body.setPosition(body, {\r\n x: point.x + (dx * cos - dy * sin),\r\n y: point.y + (dx * sin + dy * cos)\r\n });\r\n\r\n Body.rotate(body, rotation);\r\n }\r\n\r\n return composite;\r\n };\r\n\r\n /**\r\n * Scales all children in the composite, including updating physical properties (mass, area, axes, inertia), from a world-space point.\r\n * @method scale\r\n * @param {composite} composite\r\n * @param {number} scaleX\r\n * @param {number} scaleY\r\n * @param {vector} point\r\n * @param {bool} [recursive=true]\r\n */\r\n Composite.scale = function(composite, scaleX, scaleY, point, recursive) {\r\n var bodies = recursive ? Composite.allBodies(composite) : composite.bodies;\r\n\r\n for (var i = 0; i < bodies.length; i++) {\r\n var body = bodies[i],\r\n dx = body.position.x - point.x,\r\n dy = body.position.y - point.y;\r\n \r\n Body.setPosition(body, {\r\n x: point.x + dx * scaleX,\r\n y: point.y + dy * scaleY\r\n });\r\n\r\n Body.scale(body, scaleX, scaleY);\r\n }\r\n\r\n return composite;\r\n };\r\n\r\n /**\r\n * Returns the union of the bounds of all of the composite's bodies.\r\n * @method bounds\r\n * @param {composite} composite The composite.\r\n * @returns {bounds} The composite bounds.\r\n */\r\n Composite.bounds = function(composite) {\r\n var bodies = Composite.allBodies(composite),\r\n vertices = [];\r\n\r\n for (var i = 0; i < bodies.length; i += 1) {\r\n var body = bodies[i];\r\n vertices.push(body.bounds.min, body.bounds.max);\r\n }\r\n\r\n return Bounds.create(vertices);\r\n };\r\n \r\n /**\r\n * Wraps the `composite` position such that it always stays within the given bounds.\r\n * Upon crossing a boundary the composite will appear on the opposite side of the bounds,\r\n * while maintaining its velocity.\r\n * This is called automatically by the plugin.\r\n * @function wrap\r\n * @param {composite} composite The composite to wrap.\r\n * @param {bounds} bounds The bounds to wrap the composite inside.\r\n * @returns {?Matter.Vector} The translation vector that was applied (only if wrapping was required).\r\n */\r\n Composite.wrap = function(composite, bounds) {\r\n var translation = Bounds.wrap(\r\n Composite.bounds(composite),\r\n bounds\r\n );\r\n \r\n if (translation) {\r\n Composite.translate(composite, translation);\r\n }\r\n \r\n return translation;\r\n };\r\n\r\n /*\r\n *\r\n * Events Documentation\r\n *\r\n */\r\n\r\n /**\r\n * Fired when a call to `Composite.add` is made, before objects have been added.\r\n *\r\n * @event beforeAdd\r\n * @param {} event An event object\r\n * @param {} event.object The object(s) to be added (may be a single body, constraint, composite or a mixed array of these)\r\n * @param {} event.source The source object of the event\r\n * @param {} event.name The name of the event\r\n */\r\n\r\n /**\r\n * Fired when a call to `Composite.add` is made, after objects have been added.\r\n *\r\n * @event afterAdd\r\n * @param {} event An event object\r\n * @param {} event.object The object(s) that have been added (may be a single body, constraint, composite or a mixed array of these)\r\n * @param {} event.source The source object of the event\r\n * @param {} event.name The name of the event\r\n */\r\n\r\n /**\r\n * Fired when a call to `Composite.remove` is made, before objects have been removed.\r\n *\r\n * @event beforeRemove\r\n * @param {} event An event object\r\n * @param {} event.object The object(s) to be removed (may be a single body, constraint, composite or a mixed array of these)\r\n * @param {} event.source The source object of the event\r\n * @param {} event.name The name of the event\r\n */\r\n\r\n /**\r\n * Fired when a call to `Composite.remove` is made, after objects have been removed.\r\n *\r\n * @event afterRemove\r\n * @param {} event An event object\r\n * @param {} event.object The object(s) that have been removed (may be a single body, constraint, composite or a mixed array of these)\r\n * @param {} event.source The source object of the event\r\n * @param {} event.name The name of the event\r\n */\r\n\r\n /*\r\n *\r\n * Properties Documentation\r\n *\r\n */\r\n\r\n /**\r\n * An integer `Number` uniquely identifying number generated in `Composite.create` by `Common.nextId`.\r\n *\r\n * @property id\r\n * @type number\r\n */\r\n\r\n /**\r\n * A `String` denoting the type of object.\r\n *\r\n * @property type\r\n * @type string\r\n * @default \"composite\"\r\n * @readOnly\r\n */\r\n\r\n /**\r\n * An arbitrary `String` name to help the user identify and manage composites.\r\n *\r\n * @property label\r\n * @type string\r\n * @default \"Composite\"\r\n */\r\n\r\n /**\r\n * A flag that specifies whether the composite has been modified during the current step.\r\n * Most `Matter.Composite` methods will automatically set this flag to `true` to inform the engine of changes to be handled.\r\n * If you need to change it manually, you should use the `Composite.setModified` method.\r\n *\r\n * @property isModified\r\n * @type boolean\r\n * @default false\r\n */\r\n\r\n /**\r\n * The `Composite` that is the parent of this composite. It is automatically managed by the `Matter.Composite` methods.\r\n *\r\n * @property parent\r\n * @type composite\r\n * @default null\r\n */\r\n\r\n /**\r\n * An array of `Body` that are _direct_ children of this composite.\r\n * To add or remove bodies you should use `Composite.add` and `Composite.remove` methods rather than directly modifying this property.\r\n * If you wish to recursively find all descendants, you should use the `Composite.allBodies` method.\r\n *\r\n * @property bodies\r\n * @type body[]\r\n * @default []\r\n */\r\n\r\n /**\r\n * An array of `Constraint` that are _direct_ children of this composite.\r\n * To add or remove constraints you should use `Composite.add` and `Composite.remove` methods rather than directly modifying this property.\r\n * If you wish to recursively find all descendants, you should use the `Composite.allConstraints` method.\r\n *\r\n * @property constraints\r\n * @type constraint[]\r\n * @default []\r\n */\r\n\r\n /**\r\n * An array of `Composite` that are _direct_ children of this composite.\r\n * To add or remove composites you should use `Composite.add` and `Composite.remove` methods rather than directly modifying this property.\r\n * If you wish to recursively find all descendants, you should use the `Composite.allComposites` method.\r\n *\r\n * @property composites\r\n * @type composite[]\r\n * @default []\r\n */\r\n\r\n /**\r\n * An object reserved for storing plugin-specific properties.\r\n *\r\n * @property plugin\r\n * @type {}\r\n */\r\n\r\n /**\r\n * An object storing axis-aligned bounding boxes (AABB).\r\n *\r\n * @property wrapBounds\r\n * @type {}\r\n */\r\n\r\n /**\r\n * An object used for storing cached results for performance reasons.\r\n * This is used internally only and is automatically managed.\r\n *\r\n * @private\r\n * @property cache\r\n * @type {}\r\n */\r\n\r\n})();\r\n\n\n/***/ }),\n\n/***/ 4372:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* This module has now been replaced by `Matter.Composite`.\r\n*\r\n* All usage should be migrated to the equivalent functions found on `Matter.Composite`.\r\n* For example `World.add(world, body)` now becomes `Composite.add(world, body)`.\r\n*\r\n* The property `world.gravity` has been moved to `engine.gravity`.\r\n*\r\n* For back-compatibility purposes this module will remain as a direct alias to `Matter.Composite` in the short term during migration.\r\n* Eventually this alias module will be marked as deprecated and then later removed in a future release.\r\n*\r\n* @class World\r\n* @extends Composite\r\n*/\r\n\r\nvar World = {};\r\n\r\nmodule.exports = World;\r\n\r\nvar Composite = __webpack_require__(69351);\r\n\r\n(function() {\r\n\r\n /**\r\n * See above, aliases for back compatibility only\r\n */\r\n World.create = Composite.create;\r\n World.add = Composite.add;\r\n World.remove = Composite.remove;\r\n World.clear = Composite.clear;\r\n World.addComposite = Composite.addComposite;\r\n World.addBody = Composite.addBody;\r\n World.addConstraint = Composite.addConstraint;\r\n\r\n /*\r\n *\r\n * Properties Documentation\r\n *\r\n */\r\n\r\n /**\r\n * The gravity to apply on the world.\r\n *\r\n * @property gravity\r\n * @type object\r\n */\r\n\r\n /**\r\n * The gravity x component.\r\n *\r\n * @property gravity.x\r\n * @type object\r\n * @default 0\r\n */\r\n\r\n /**\r\n * The gravity y component.\r\n *\r\n * @property gravity.y\r\n * @type object\r\n * @default 1\r\n */\r\n\r\n /**\r\n * The gravity scale factor.\r\n *\r\n * @property gravity.scale\r\n * @type object\r\n * @default 0.001\r\n */\r\n\r\n /**\r\n * A `Bounds` object that defines the world bounds for collision detection.\r\n *\r\n * @property bounds\r\n * @type bounds\r\n * @default { min: { x: -Infinity, y: -Infinity }, max: { x: Infinity, y: Infinity } }\r\n */\r\n\r\n // World is a Composite body\r\n // see src/module/Outro.js for these aliases:\r\n\r\n /**\r\n * An alias for Composite.add\r\n * @method add\r\n * @param {world} world\r\n * @param {} object\r\n * @return {composite} The original world with the objects added\r\n */\r\n\r\n /**\r\n * An alias for Composite.remove\r\n * @method remove\r\n * @param {world} world\r\n * @param {} object\r\n * @param {boolean} [deep=false]\r\n * @return {composite} The original world with the objects removed\r\n */\r\n\r\n /**\r\n * An alias for Composite.clear\r\n * @method clear\r\n * @param {world} world\r\n * @param {boolean} keepStatic\r\n */\r\n\r\n /**\r\n * An alias for Composite.addComposite\r\n * @method addComposite\r\n * @param {world} world\r\n * @param {composite} composite\r\n * @return {world} The original world with the objects from composite added\r\n */\r\n\r\n /**\r\n * An alias for Composite.addBody\r\n * @method addBody\r\n * @param {world} world\r\n * @param {body} body\r\n * @return {world} The original world with the body added\r\n */\r\n\r\n /**\r\n * An alias for Composite.addConstraint\r\n * @method addConstraint\r\n * @param {world} world\r\n * @param {constraint} constraint\r\n * @return {world} The original world with the constraint added\r\n */\r\n\r\n})();\r\n\n\n/***/ }),\n\n/***/ 52284:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* The `Matter.Collision` module contains methods for detecting collisions between a given pair of bodies.\r\n*\r\n* For efficient detection between a list of bodies, see `Matter.Detector` and `Matter.Query`.\r\n*\r\n* See `Matter.Engine` for collision events.\r\n*\r\n* @class Collision\r\n*/\r\n\r\nvar Collision = {};\r\n\r\nmodule.exports = Collision;\r\n\r\nvar Vertices = __webpack_require__(41598);\r\nvar Pair = __webpack_require__(4506);\r\n\r\n(function() {\r\n var _supports = [];\r\n\r\n var _overlapAB = {\r\n overlap: 0,\r\n axis: null\r\n };\r\n\r\n var _overlapBA = {\r\n overlap: 0,\r\n axis: null\r\n };\r\n\r\n /**\r\n * Creates a new collision record.\r\n * @method create\r\n * @param {body} bodyA The first body part represented by the collision record\r\n * @param {body} bodyB The second body part represented by the collision record\r\n * @return {collision} A new collision record\r\n */\r\n Collision.create = function(bodyA, bodyB) {\r\n return { \r\n pair: null,\r\n collided: false,\r\n bodyA: bodyA,\r\n bodyB: bodyB,\r\n parentA: bodyA.parent,\r\n parentB: bodyB.parent,\r\n depth: 0,\r\n normal: { x: 0, y: 0 },\r\n tangent: { x: 0, y: 0 },\r\n penetration: { x: 0, y: 0 },\r\n supports: [null, null],\r\n supportCount: 0\r\n };\r\n };\r\n\r\n /**\r\n * Detect collision between two bodies.\r\n * @method collides\r\n * @param {body} bodyA\r\n * @param {body} bodyB\r\n * @param {pairs} [pairs] Optionally reuse collision records from existing pairs.\r\n * @return {collision|null} A collision record if detected, otherwise null\r\n */\r\n Collision.collides = function(bodyA, bodyB, pairs) {\r\n Collision._overlapAxes(_overlapAB, bodyA.vertices, bodyB.vertices, bodyA.axes);\r\n\r\n if (_overlapAB.overlap <= 0) {\r\n return null;\r\n }\r\n\r\n Collision._overlapAxes(_overlapBA, bodyB.vertices, bodyA.vertices, bodyB.axes);\r\n\r\n if (_overlapBA.overlap <= 0) {\r\n return null;\r\n }\r\n\r\n // reuse collision records for gc efficiency\r\n var pair = pairs && pairs.table[Pair.id(bodyA, bodyB)],\r\n collision;\r\n\r\n if (!pair) {\r\n collision = Collision.create(bodyA, bodyB);\r\n collision.collided = true;\r\n collision.bodyA = bodyA.id < bodyB.id ? bodyA : bodyB;\r\n collision.bodyB = bodyA.id < bodyB.id ? bodyB : bodyA;\r\n collision.parentA = collision.bodyA.parent;\r\n collision.parentB = collision.bodyB.parent;\r\n } else {\r\n collision = pair.collision;\r\n }\r\n\r\n bodyA = collision.bodyA;\r\n bodyB = collision.bodyB;\r\n\r\n var minOverlap;\r\n\r\n if (_overlapAB.overlap < _overlapBA.overlap) {\r\n minOverlap = _overlapAB;\r\n } else {\r\n minOverlap = _overlapBA;\r\n }\r\n\r\n var normal = collision.normal,\r\n tangent = collision.tangent,\r\n penetration = collision.penetration,\r\n supports = collision.supports,\r\n depth = minOverlap.overlap,\r\n minAxis = minOverlap.axis,\r\n normalX = minAxis.x,\r\n normalY = minAxis.y,\r\n deltaX = bodyB.position.x - bodyA.position.x,\r\n deltaY = bodyB.position.y - bodyA.position.y;\r\n\r\n // ensure normal is facing away from bodyA\r\n if (normalX * deltaX + normalY * deltaY >= 0) {\r\n normalX = -normalX;\r\n normalY = -normalY;\r\n }\r\n normal.x = normalX;\r\n normal.y = normalY;\r\n \r\n tangent.x = -normalY;\r\n tangent.y = normalX;\r\n\r\n\r\n penetration.x = normalX * depth;\r\n penetration.y = normalY * depth;\r\n collision.depth = depth;\r\n\r\n // find support points, there is always either exactly one or two\r\n var supportsB = Collision._findSupports(bodyA, bodyB, normal, 1),\r\n supportCount = 0;\r\n\r\n // find the supports from bodyB that are inside bodyA\r\n if (Vertices.contains(bodyA.vertices, supportsB[0])) {\r\n supports[supportCount++] = supportsB[0];\r\n }\r\n\r\n if (Vertices.contains(bodyA.vertices, supportsB[1])) {\r\n supports[supportCount++] = supportsB[1];\r\n }\r\n\r\n // find the supports from bodyA that are inside bodyB\r\n if (supportCount < 2) {\r\n var supportsA = Collision._findSupports(bodyB, bodyA, normal, -1);\r\n\r\n if (Vertices.contains(bodyB.vertices, supportsA[0])) {\r\n supports[supportCount++] = supportsA[0];\r\n }\r\n\r\n if (supportCount < 2 && Vertices.contains(bodyB.vertices, supportsA[1])) {\r\n supports[supportCount++] = supportsA[1];\r\n }\r\n }\r\n\r\n // account for the edge case of overlapping but no vertex containment\r\n if (supportCount === 0) {\r\n supports[supportCount++] = supportsB[0];\r\n }\r\n\r\n // update supports array size\r\n collision.supportCount = supportCount;\r\n\r\n return collision;\r\n };\r\n\r\n /**\r\n * Find the overlap between two sets of vertices.\r\n * @method _overlapAxes\r\n * @private\r\n * @param {object} result\r\n * @param {vertices} verticesA\r\n * @param {vertices} verticesB\r\n * @param {axes} axes\r\n */\r\n Collision._overlapAxes = function(result, verticesA, verticesB, axes) {\r\n var verticesALength = verticesA.length,\r\n verticesBLength = verticesB.length,\r\n verticesAX = verticesA[0].x,\r\n verticesAY = verticesA[0].y,\r\n verticesBX = verticesB[0].x,\r\n verticesBY = verticesB[0].y,\r\n axesLength = axes.length,\r\n overlapMin = Number.MAX_VALUE,\r\n overlapAxisNumber = 0,\r\n overlap,\r\n overlapAB,\r\n overlapBA,\r\n dot,\r\n i,\r\n j;\r\n\r\n for (i = 0; i < axesLength; i++) {\r\n var axis = axes[i],\r\n axisX = axis.x,\r\n axisY = axis.y,\r\n minA = verticesAX * axisX + verticesAY * axisY,\r\n minB = verticesBX * axisX + verticesBY * axisY,\r\n maxA = minA,\r\n maxB = minB;\r\n \r\n for (j = 1; j < verticesALength; j += 1) {\r\n dot = verticesA[j].x * axisX + verticesA[j].y * axisY;\r\n\r\n if (dot > maxA) { \r\n maxA = dot;\r\n } else if (dot < minA) { \r\n minA = dot;\r\n }\r\n }\r\n\r\n for (j = 1; j < verticesBLength; j += 1) {\r\n dot = verticesB[j].x * axisX + verticesB[j].y * axisY;\r\n\r\n if (dot > maxB) { \r\n maxB = dot;\r\n } else if (dot < minB) { \r\n minB = dot;\r\n }\r\n }\r\n\r\n overlapAB = maxA - minB;\r\n overlapBA = maxB - minA;\r\n overlap = overlapAB < overlapBA ? overlapAB : overlapBA;\r\n\r\n if (overlap < overlapMin) {\r\n overlapMin = overlap;\r\n overlapAxisNumber = i;\r\n\r\n if (overlap <= 0) {\r\n // can not be intersecting\r\n break;\r\n }\r\n } \r\n }\r\n\r\n result.axis = axes[overlapAxisNumber];\r\n result.overlap = overlapMin;\r\n };\r\n\r\n /**\r\n * Finds supporting vertices given two bodies along a given direction using hill-climbing.\r\n * @method _findSupports\r\n * @private\r\n * @param {body} bodyA\r\n * @param {body} bodyB\r\n * @param {vector} normal\r\n * @param {number} direction\r\n * @return [vector]\r\n */\r\n Collision._findSupports = function(bodyA, bodyB, normal, direction) {\r\n var vertices = bodyB.vertices,\r\n verticesLength = vertices.length,\r\n bodyAPositionX = bodyA.position.x,\r\n bodyAPositionY = bodyA.position.y,\r\n normalX = normal.x * direction,\r\n normalY = normal.y * direction,\r\n vertexA = vertices[0],\r\n vertexB = vertexA,\r\n nearestDistance = normalX * (bodyAPositionX - vertexB.x) + normalY * (bodyAPositionY - vertexB.y),\r\n vertexC,\r\n distance,\r\n j;\r\n\r\n // find deepest vertex relative to the axis\r\n for (j = 1; j < verticesLength; j += 1) {\r\n vertexB = vertices[j];\r\n distance = normalX * (bodyAPositionX - vertexB.x) + normalY * (bodyAPositionY - vertexB.y);\r\n\r\n // convex hill-climbing\r\n if (distance < nearestDistance) {\r\n nearestDistance = distance;\r\n vertexA = vertexB;\r\n }\r\n }\r\n\r\n // measure next vertex\r\n vertexC = vertices[(verticesLength + vertexA.index - 1) % verticesLength];\r\n nearestDistance = normalX * (bodyAPositionX - vertexC.x) + normalY * (bodyAPositionY - vertexC.y);\r\n\r\n // compare with previous vertex\r\n vertexB = vertices[(vertexA.index + 1) % verticesLength];\r\n if (normalX * (bodyAPositionX - vertexB.x) + normalY * (bodyAPositionY - vertexB.y) < nearestDistance) {\r\n _supports[0] = vertexA;\r\n _supports[1] = vertexB;\r\n\r\n return _supports;\r\n }\r\n\r\n _supports[0] = vertexA;\r\n _supports[1] = vertexC;\r\n\r\n return _supports;\r\n };\r\n\r\n /*\r\n *\r\n * Properties Documentation\r\n *\r\n */\r\n\r\n /**\r\n * A reference to the pair using this collision record, if there is one.\r\n *\r\n * @property pair\r\n * @type {pair|null}\r\n * @default null\r\n */\r\n\r\n /**\r\n * A flag that indicates if the bodies were colliding when the collision was last updated.\r\n * \r\n * @property collided\r\n * @type boolean\r\n * @default false\r\n */\r\n\r\n /**\r\n * The first body part represented by the collision (see also `collision.parentA`).\r\n * \r\n * @property bodyA\r\n * @type body\r\n */\r\n\r\n /**\r\n * The second body part represented by the collision (see also `collision.parentB`).\r\n * \r\n * @property bodyB\r\n * @type body\r\n */\r\n\r\n /**\r\n * The first body represented by the collision (i.e. `collision.bodyA.parent`).\r\n * \r\n * @property parentA\r\n * @type body\r\n */\r\n\r\n /**\r\n * The second body represented by the collision (i.e. `collision.bodyB.parent`).\r\n * \r\n * @property parentB\r\n * @type body\r\n */\r\n\r\n /**\r\n * A `Number` that represents the minimum separating distance between the bodies along the collision normal.\r\n *\r\n * @readOnly\r\n * @property depth\r\n * @type number\r\n * @default 0\r\n */\r\n\r\n /**\r\n * A normalised `Vector` that represents the direction between the bodies that provides the minimum separating distance.\r\n *\r\n * @property normal\r\n * @type vector\r\n * @default { x: 0, y: 0 }\r\n */\r\n\r\n /**\r\n * A normalised `Vector` that is the tangent direction to the collision normal.\r\n *\r\n * @property tangent\r\n * @type vector\r\n * @default { x: 0, y: 0 }\r\n */\r\n\r\n /**\r\n * A `Vector` that represents the direction and depth of the collision.\r\n *\r\n * @property penetration\r\n * @type vector\r\n * @default { x: 0, y: 0 }\r\n */\r\n\r\n /**\r\n * An array of body vertices that represent the support points in the collision.\r\n * These are the deepest vertices (along the collision normal) of each body that are contained by the other body's vertices.\r\n *\r\n * @property supports\r\n * @type vector[]\r\n * @default []\r\n */\r\n\r\n})();\r\n\n\n/***/ }),\n\n/***/ 43424:\n/***/ ((module) => {\n\n/**\r\n* The `Matter.Contact` module contains methods for creating and manipulating collision contacts.\r\n*\r\n* @class Contact\r\n*/\r\n\r\nvar Contact = {};\r\n\r\nmodule.exports = Contact;\r\n\r\n(function() {\r\n\r\n /**\r\n * Creates a new contact.\r\n * @method create\r\n * @param {vertex} vertex\r\n * @return {contact} A new contact\r\n */\r\n Contact.create = function(vertex) {\r\n return {\r\n vertex: vertex,\r\n normalImpulse: 0,\r\n tangentImpulse: 0\r\n };\r\n };\r\n\r\n})();\r\n\n\n/***/ }),\n\n/***/ 81388:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* The `Matter.Detector` module contains methods for efficiently detecting collisions between a list of bodies using a broadphase algorithm.\r\n*\r\n* @class Detector\r\n*/\r\n\r\nvar Detector = {};\r\n\r\nmodule.exports = Detector;\r\n\r\nvar Common = __webpack_require__(53402);\r\nvar Collision = __webpack_require__(52284);\r\n\r\n(function() {\r\n\r\n /**\r\n * Creates a new collision detector.\r\n * @method create\r\n * @param {} options\r\n * @return {detector} A new collision detector\r\n */\r\n Detector.create = function(options) {\r\n var defaults = {\r\n bodies: [],\r\n collisions: [],\r\n pairs: null\r\n };\r\n\r\n return Common.extend(defaults, options);\r\n };\r\n\r\n /**\r\n * Sets the list of bodies in the detector.\r\n * @method setBodies\r\n * @param {detector} detector\r\n * @param {body[]} bodies\r\n */\r\n Detector.setBodies = function(detector, bodies) {\r\n detector.bodies = bodies.slice(0);\r\n };\r\n\r\n /**\r\n * Clears the detector including its list of bodies.\r\n * @method clear\r\n * @param {detector} detector\r\n */\r\n Detector.clear = function(detector) {\r\n detector.bodies = [];\r\n detector.collisions = [];\r\n };\r\n\r\n /**\r\n * Efficiently finds all collisions among all the bodies in `detector.bodies` using a broadphase algorithm.\r\n * \r\n * _Note:_ The specific ordering of collisions returned is not guaranteed between releases and may change for performance reasons.\r\n * If a specific ordering is required then apply a sort to the resulting array.\r\n * @method collisions\r\n * @param {detector} detector\r\n * @return {collision[]} collisions\r\n */\r\n Detector.collisions = function(detector) {\r\n var pairs = detector.pairs,\r\n bodies = detector.bodies,\r\n bodiesLength = bodies.length,\r\n canCollide = Detector.canCollide,\r\n collides = Collision.collides,\r\n collisions = detector.collisions,\r\n collisionIndex = 0,\r\n i,\r\n j;\r\n\r\n bodies.sort(Detector._compareBoundsX);\r\n\r\n for (i = 0; i < bodiesLength; i++) {\r\n var bodyA = bodies[i],\r\n boundsA = bodyA.bounds,\r\n boundXMax = bodyA.bounds.max.x,\r\n boundYMax = bodyA.bounds.max.y,\r\n boundYMin = bodyA.bounds.min.y,\r\n bodyAStatic = bodyA.isStatic || bodyA.isSleeping,\r\n partsALength = bodyA.parts.length,\r\n partsASingle = partsALength === 1;\r\n\r\n for (j = i + 1; j < bodiesLength; j++) {\r\n var bodyB = bodies[j],\r\n boundsB = bodyB.bounds;\r\n\r\n if (boundsB.min.x > boundXMax) {\r\n break;\r\n }\r\n\r\n if (boundYMax < boundsB.min.y || boundYMin > boundsB.max.y) {\r\n continue;\r\n }\r\n\r\n if (bodyAStatic && (bodyB.isStatic || bodyB.isSleeping)) {\r\n continue;\r\n }\r\n\r\n if (!canCollide(bodyA.collisionFilter, bodyB.collisionFilter)) {\r\n continue;\r\n }\r\n\r\n var partsBLength = bodyB.parts.length;\r\n\r\n if (partsASingle && partsBLength === 1) {\r\n var collision = collides(bodyA, bodyB, pairs);\r\n\r\n if (collision) {\r\n collisions[collisionIndex++] = collision;\r\n }\r\n } else {\r\n var partsAStart = partsALength > 1 ? 1 : 0,\r\n partsBStart = partsBLength > 1 ? 1 : 0;\r\n \r\n for (var k = partsAStart; k < partsALength; k++) {\r\n var partA = bodyA.parts[k],\r\n boundsA = partA.bounds;\r\n\r\n for (var z = partsBStart; z < partsBLength; z++) {\r\n var partB = bodyB.parts[z],\r\n boundsB = partB.bounds;\r\n\r\n if (boundsA.min.x > boundsB.max.x || boundsA.max.x < boundsB.min.x\r\n || boundsA.max.y < boundsB.min.y || boundsA.min.y > boundsB.max.y) {\r\n continue;\r\n }\r\n\r\n var collision = collides(partA, partB, pairs);\r\n\r\n if (collision) {\r\n collisions[collisionIndex++] = collision;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if (collisions.length !== collisionIndex) {\r\n collisions.length = collisionIndex;\r\n }\r\n\r\n return collisions;\r\n };\r\n\r\n /**\r\n * Returns `true` if both supplied collision filters will allow a collision to occur.\r\n * See `body.collisionFilter` for more information.\r\n * @method canCollide\r\n * @param {} filterA\r\n * @param {} filterB\r\n * @return {bool} `true` if collision can occur\r\n */\r\n Detector.canCollide = function(filterA, filterB) {\r\n if (filterA.group === filterB.group && filterA.group !== 0)\r\n return filterA.group > 0;\r\n\r\n return (filterA.mask & filterB.category) !== 0 && (filterB.mask & filterA.category) !== 0;\r\n };\r\n\r\n /**\r\n * The comparison function used in the broadphase algorithm.\r\n * Returns the signed delta of the bodies bounds on the x-axis.\r\n * @private\r\n * @method _sortCompare\r\n * @param {body} bodyA\r\n * @param {body} bodyB\r\n * @return {number} The signed delta used for sorting\r\n */\r\n Detector._compareBoundsX = function(bodyA, bodyB) {\r\n return bodyA.bounds.min.x - bodyB.bounds.min.x;\r\n };\r\n\r\n /*\r\n *\r\n * Properties Documentation\r\n *\r\n */\r\n\r\n /**\r\n * The array of `Matter.Body` between which the detector finds collisions.\r\n * \r\n * _Note:_ The order of bodies in this array _is not fixed_ and will be continually managed by the detector.\r\n * @property bodies\r\n * @type body[]\r\n * @default []\r\n */\r\n\r\n /**\r\n * The array of `Matter.Collision` found in the last call to `Detector.collisions` on this detector.\r\n * @property collisions\r\n * @type collision[]\r\n * @default []\r\n */\r\n \r\n /**\r\n * Optional. A `Matter.Pairs` object from which previous collision objects may be reused. Intended for internal `Matter.Engine` usage.\r\n * @property pairs\r\n * @type {pairs|null}\r\n * @default null\r\n */\r\n\r\n})();\r\n\n\n/***/ }),\n\n/***/ 4506:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* The `Matter.Pair` module contains methods for creating and manipulating collision pairs.\r\n*\r\n* @class Pair\r\n*/\r\n\r\nvar Pair = {};\r\n\r\nmodule.exports = Pair;\r\n\r\nvar Contact = __webpack_require__(43424);\r\n\r\n(function() {\r\n \r\n /**\r\n * Creates a pair.\r\n * @method create\r\n * @param {collision} collision\r\n * @param {number} timestamp\r\n * @return {pair} A new pair\r\n */\r\n Pair.create = function(collision, timestamp) {\r\n var bodyA = collision.bodyA,\r\n bodyB = collision.bodyB;\r\n\r\n var pair = {\r\n id: Pair.id(bodyA, bodyB),\r\n bodyA: bodyA,\r\n bodyB: bodyB,\r\n collision: collision,\r\n contacts: [Contact.create(), Contact.create()],\r\n contactCount: 0,\r\n separation: 0,\r\n isActive: true,\r\n isSensor: bodyA.isSensor || bodyB.isSensor,\r\n timeCreated: timestamp,\r\n timeUpdated: timestamp,\r\n inverseMass: 0,\r\n friction: 0,\r\n frictionStatic: 0,\r\n restitution: 0,\r\n slop: 0\r\n };\r\n\r\n Pair.update(pair, collision, timestamp);\r\n\r\n return pair;\r\n };\r\n\r\n /**\r\n * Updates a pair given a collision.\r\n * @method update\r\n * @param {pair} pair\r\n * @param {collision} collision\r\n * @param {number} timestamp\r\n */\r\n Pair.update = function(pair, collision, timestamp) {\r\n var supports = collision.supports,\r\n supportCount = collision.supportCount,\r\n contacts = pair.contacts,\r\n parentA = collision.parentA,\r\n parentB = collision.parentB;\r\n \r\n pair.isActive = true;\r\n pair.timeUpdated = timestamp;\r\n pair.collision = collision;\r\n pair.separation = collision.depth;\r\n pair.inverseMass = parentA.inverseMass + parentB.inverseMass;\r\n pair.friction = parentA.friction < parentB.friction ? parentA.friction : parentB.friction;\r\n pair.frictionStatic = parentA.frictionStatic > parentB.frictionStatic ? parentA.frictionStatic : parentB.frictionStatic;\r\n pair.restitution = parentA.restitution > parentB.restitution ? parentA.restitution : parentB.restitution;\r\n pair.slop = parentA.slop > parentB.slop ? parentA.slop : parentB.slop;\r\n\r\n pair.contactCount = supportCount;\r\n collision.pair = pair;\r\n var supportA = supports[0],\r\n contactA = contacts[0],\r\n \r\n supportB = supports[1],\r\n contactB = contacts[1];\r\n if (contactB.vertex === supportA || contactA.vertex === supportB) {\r\n contacts[1] = contactA;\r\n contacts[0] = contactA = contactB;\r\n\r\n contactB = contacts[1];\r\n }\r\n\r\n contactA.vertex = supportA;\r\n contactB.vertex = supportB;\r\n };\r\n \r\n /**\r\n * Set a pair as active or inactive.\r\n * @method setActive\r\n * @param {pair} pair\r\n * @param {bool} isActive\r\n * @param {number} timestamp\r\n */\r\n Pair.setActive = function(pair, isActive, timestamp) {\r\n if (isActive) {\r\n pair.isActive = true;\r\n pair.timeUpdated = timestamp;\r\n } else {\r\n pair.isActive = false;\r\n pair.contactCount = 0;\r\n }\r\n };\r\n\r\n /**\r\n * Get the id for the given pair.\r\n * @method id\r\n * @param {body} bodyA\r\n * @param {body} bodyB\r\n * @return {string} Unique pairId\r\n */\r\n Pair.id = function(bodyA, bodyB) {\r\n return bodyA.id < bodyB.id ? bodyA.id.toString(36) + ':' + bodyB.id.toString(36) \r\n : bodyB.id.toString(36) + ':' + bodyA.id.toString(36);\r\n };\r\n\r\n})();\r\n\n\n/***/ }),\n\n/***/ 99561:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* The `Matter.Pairs` module contains methods for creating and manipulating collision pair sets.\r\n*\r\n* @class Pairs\r\n*/\r\n\r\nvar Pairs = {};\r\n\r\nmodule.exports = Pairs;\r\n\r\nvar Pair = __webpack_require__(4506);\r\nvar Common = __webpack_require__(53402);\r\n\r\n(function() {\r\n\r\n /**\r\n * Creates a new pairs structure.\r\n * @method create\r\n * @param {object} options\r\n * @return {pairs} A new pairs structure\r\n */\r\n Pairs.create = function(options) {\r\n return Common.extend({ \r\n table: {},\r\n list: [],\r\n collisionStart: [],\r\n collisionActive: [],\r\n collisionEnd: []\r\n }, options);\r\n };\r\n\r\n /**\r\n * Updates pairs given a list of collisions.\r\n * @method update\r\n * @param {object} pairs\r\n * @param {collision[]} collisions\r\n * @param {number} timestamp\r\n */\r\n Pairs.update = function(pairs, collisions, timestamp) {\r\n var pairUpdate = Pair.update,\r\n pairCreate = Pair.create,\r\n pairSetActive = Pair.setActive,\r\n pairsTable = pairs.table,\r\n pairsList = pairs.list,\r\n pairsListLength = pairsList.length,\r\n pairsListIndex = pairsListLength,\r\n collisionStart = pairs.collisionStart,\r\n collisionEnd = pairs.collisionEnd,\r\n collisionActive = pairs.collisionActive,\r\n collisionsLength = collisions.length,\r\n collisionStartIndex = 0,\r\n collisionEndIndex = 0,\r\n collisionActiveIndex = 0,\r\n collision,\r\n pair,\r\n i;\r\n\r\n // clear collision state arrays, but maintain old reference\r\n\r\n\r\n for (i = 0; i < collisionsLength; i++) {\r\n collision = collisions[i];\r\n pair = collision.pair;\r\n\r\n if (pair) {\r\n // pair already exists (but may or may not be active)\r\n if (pair.isActive) {\r\n // pair exists and is active\r\n collisionActive[collisionActiveIndex++] = pair;\r\n // pair exists but was inactive, so a collision has just started again\r\n }\r\n\r\n // update the pair\r\n pairUpdate(pair, collision, timestamp);\r\n } else {\r\n // pair did not exist, create a new pair\r\n pair = pairCreate(collision, timestamp);\r\n pairsTable[pair.id] = pair;\r\n\r\n // push the new pair\r\n collisionStart[collisionStartIndex++] = pair;\r\n pairsList[pairsListIndex++] = pair;\r\n }\r\n }\r\n\r\n // find pairs that are no longer active\r\n pairsListIndex = 0;\r\n pairsListLength = pairsList.length;\r\n\r\n for (i = 0; i < pairsListLength; i++) {\r\n pair = pairsList[i];\r\n \r\n if (pair.timeUpdated >= timestamp) {\r\n pairsList[pairsListIndex++] = pair;\r\n } else {\r\n pairSetActive(pair, false, timestamp);\r\n\r\n if (pair.collision.bodyA.sleepCounter > 0 && pair.collision.bodyB.sleepCounter > 0) {\r\n pairsList[pairsListIndex++] = pair;\r\n } else {\r\n collisionEnd[collisionEndIndex++] = pair;\r\n delete pairsTable[pair.id];\r\n }\r\n }\r\n }\r\n\r\n // remove inactive pairs\r\n if (pairsList.length !== pairsListIndex) {\r\n pairsList.length = pairsListIndex;\r\n }\r\n if (collisionStart.length !== collisionStartIndex) {\r\n collisionStart.length = collisionStartIndex;\r\n }\r\n if (collisionEnd.length !== collisionEndIndex) {\r\n collisionEnd.length = collisionEndIndex;\r\n }\r\n if (collisionActive.length !== collisionActiveIndex) {\r\n collisionActive.length = collisionActiveIndex;\r\n }\r\n };\r\n\r\n /**\r\n * Clears the given pairs structure.\r\n * @method clear\r\n * @param {pairs} pairs\r\n * @return {pairs} pairs\r\n */\r\n Pairs.clear = function(pairs) {\r\n pairs.table = {};\r\n pairs.list.length = 0;\r\n pairs.collisionStart.length = 0;\r\n pairs.collisionActive.length = 0;\r\n pairs.collisionEnd.length = 0;\r\n return pairs;\r\n };\r\n\r\n})();\r\n\n\n/***/ }),\n\n/***/ 73296:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* The `Matter.Query` module contains methods for performing collision queries.\r\n*\r\n* See the included usage [examples](https://github.com/liabru/matter-js/tree/master/examples).\r\n*\r\n* @class Query\r\n*/\r\n\r\nvar Query = {};\r\n\r\nmodule.exports = Query;\r\n\r\nvar Vector = __webpack_require__(31725);\r\nvar Collision = __webpack_require__(52284);\r\nvar Bounds = __webpack_require__(15647);\r\nvar Bodies = __webpack_require__(66280);\r\nvar Vertices = __webpack_require__(41598);\r\n\r\n(function() {\r\n\r\n /**\r\n * Returns a list of collisions between `body` and `bodies`.\r\n * @method collides\r\n * @param {body} body\r\n * @param {body[]} bodies\r\n * @return {collision[]} Collisions\r\n */\r\n Query.collides = function(body, bodies) {\r\n var collisions = [],\r\n bodiesLength = bodies.length,\r\n bounds = body.bounds,\r\n collides = Collision.collides,\r\n overlaps = Bounds.overlaps;\r\n\r\n for (var i = 0; i < bodiesLength; i++) {\r\n var bodyA = bodies[i],\r\n partsALength = bodyA.parts.length,\r\n partsAStart = partsALength === 1 ? 0 : 1;\r\n\r\n // Phaser addition - skip same body checks\r\n if (body === bodyA)\r\n {\r\n continue;\r\n }\r\n\r\n if (overlaps(bodyA.bounds, bounds)) {\r\n for (var j = partsAStart; j < partsALength; j++) {\r\n var part = bodyA.parts[j];\r\n\r\n if (overlaps(part.bounds, bounds)) {\r\n var collision = collides(part, body);\r\n\r\n if (collision) {\r\n collisions.push(collision);\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n return collisions;\r\n };\r\n\r\n /**\r\n * Casts a ray segment against a set of bodies and returns all collisions, ray width is optional. Intersection points are not provided.\r\n * @method ray\r\n * @param {body[]} bodies\r\n * @param {vector} startPoint\r\n * @param {vector} endPoint\r\n * @param {number} [rayWidth]\r\n * @return {collision[]} Collisions\r\n */\r\n Query.ray = function(bodies, startPoint, endPoint, rayWidth) {\r\n rayWidth = rayWidth || 1e-100;\r\n\r\n var rayAngle = Vector.angle(startPoint, endPoint),\r\n rayLength = Vector.magnitude(Vector.sub(startPoint, endPoint)),\r\n rayX = (endPoint.x + startPoint.x) * 0.5,\r\n rayY = (endPoint.y + startPoint.y) * 0.5,\r\n ray = Bodies.rectangle(rayX, rayY, rayLength, rayWidth, { angle: rayAngle }),\r\n collisions = Query.collides(ray, bodies);\r\n\r\n for (var i = 0; i < collisions.length; i += 1) {\r\n var collision = collisions[i];\r\n collision.body = collision.bodyB = collision.bodyA;\r\n }\r\n\r\n return collisions;\r\n };\r\n\r\n /**\r\n * Returns all bodies whose bounds are inside (or outside if set) the given set of bounds, from the given set of bodies.\r\n * @method region\r\n * @param {body[]} bodies\r\n * @param {bounds} bounds\r\n * @param {bool} [outside=false]\r\n * @return {body[]} The bodies matching the query\r\n */\r\n Query.region = function(bodies, bounds, outside) {\r\n var result = [];\r\n\r\n for (var i = 0; i < bodies.length; i++) {\r\n var body = bodies[i],\r\n overlaps = Bounds.overlaps(body.bounds, bounds);\r\n if ((overlaps && !outside) || (!overlaps && outside))\r\n result.push(body);\r\n }\r\n\r\n return result;\r\n };\r\n\r\n /**\r\n * Returns all bodies whose vertices contain the given point, from the given set of bodies.\r\n * @method point\r\n * @param {body[]} bodies\r\n * @param {vector} point\r\n * @return {body[]} The bodies matching the query\r\n */\r\n Query.point = function(bodies, point) {\r\n var result = [];\r\n\r\n for (var i = 0; i < bodies.length; i++) {\r\n var body = bodies[i];\r\n\r\n if (Bounds.contains(body.bounds, point)) {\r\n for (var j = body.parts.length === 1 ? 0 : 1; j < body.parts.length; j++) {\r\n var part = body.parts[j];\r\n\r\n if (Bounds.contains(part.bounds, point)\r\n && Vertices.contains(part.vertices, point)) {\r\n result.push(body);\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return result;\r\n };\r\n\r\n})();\r\n\n\n/***/ }),\n\n/***/ 66272:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* The `Matter.Resolver` module contains methods for resolving collision pairs.\r\n*\r\n* @class Resolver\r\n*/\r\n\r\nvar Resolver = {};\r\n\r\nmodule.exports = Resolver;\r\n\r\nvar Vertices = __webpack_require__(41598);\r\nvar Common = __webpack_require__(53402);\r\nvar Bounds = __webpack_require__(15647);\r\n\r\n(function() {\r\n\r\n Resolver._restingThresh = 2;\r\n Resolver._restingThreshTangent = Math.sqrt(6);\r\n Resolver._positionDampen = 0.9;\r\n Resolver._positionWarming = 0.8;\r\n Resolver._frictionNormalMultiplier = 5;\r\n Resolver._frictionMaxStatic = Number.MAX_VALUE;\r\n\r\n /**\r\n * Prepare pairs for position solving.\r\n * @method preSolvePosition\r\n * @param {pair[]} pairs\r\n */\r\n Resolver.preSolvePosition = function(pairs) {\r\n var i,\r\n pair,\r\n contactCount,\r\n pairsLength = pairs.length;\r\n\r\n // find total contacts on each body\r\n for (i = 0; i < pairsLength; i++) {\r\n pair = pairs[i];\r\n\r\n if (!pair.isActive)\r\n continue;\r\n\r\n contactCount = pair.contactCount;\r\n pair.collision.parentA.totalContacts += contactCount;\r\n pair.collision.parentB.totalContacts += contactCount;\r\n }\r\n };\r\n\r\n /**\r\n * Find a solution for pair positions.\r\n * @method solvePosition\r\n * @param {pair[]} pairs\r\n * @param {number} delta\r\n * @param {number} [damping=1]\r\n */\r\n Resolver.solvePosition = function(pairs, delta, damping) {\r\n var i,\r\n pair,\r\n collision,\r\n bodyA,\r\n bodyB,\r\n normal,\r\n contactShare,\r\n positionImpulse,\r\n positionDampen = Resolver._positionDampen * (damping || 1),\r\n slopDampen = Common.clamp(delta / Common._baseDelta, 0, 1),\r\n pairsLength = pairs.length;\r\n\r\n // find impulses required to resolve penetration\r\n for (i = 0; i < pairsLength; i++) {\r\n pair = pairs[i];\r\n\r\n if (!pair.isActive || pair.isSensor)\r\n continue;\r\n\r\n collision = pair.collision;\r\n bodyA = collision.parentA;\r\n bodyB = collision.parentB;\r\n normal = collision.normal;\r\n\r\n // get current separation between body edges involved in collision\r\n pair.separation =\r\n collision.depth + normal.x * (bodyB.positionImpulse.x - bodyA.positionImpulse.x)\r\n + normal.y * (bodyB.positionImpulse.y - bodyA.positionImpulse.y);\r\n }\r\n\r\n for (i = 0; i < pairsLength; i++) {\r\n pair = pairs[i];\r\n\r\n if (!pair.isActive || pair.isSensor)\r\n continue;\r\n\r\n collision = pair.collision;\r\n bodyA = collision.parentA;\r\n bodyB = collision.parentB;\r\n normal = collision.normal;\r\n positionImpulse = pair.separation - pair.slop * slopDampen;\r\n\r\n if (bodyA.isStatic || bodyB.isStatic)\r\n positionImpulse *= 2;\r\n\r\n if (!(bodyA.isStatic || bodyA.isSleeping)) {\r\n contactShare = positionDampen / bodyA.totalContacts;\r\n bodyA.positionImpulse.x += normal.x * positionImpulse * contactShare;\r\n bodyA.positionImpulse.y += normal.y * positionImpulse * contactShare;\r\n }\r\n\r\n if (!(bodyB.isStatic || bodyB.isSleeping)) {\r\n contactShare = positionDampen / bodyB.totalContacts;\r\n bodyB.positionImpulse.x -= normal.x * positionImpulse * contactShare;\r\n bodyB.positionImpulse.y -= normal.y * positionImpulse * contactShare;\r\n }\r\n }\r\n };\r\n\r\n /**\r\n * Apply position resolution.\r\n * @method postSolvePosition\r\n * @param {body[]} bodies\r\n */\r\n Resolver.postSolvePosition = function(bodies) {\r\n var positionWarming = Resolver._positionWarming,\r\n bodiesLength = bodies.length,\r\n verticesTranslate = Vertices.translate,\r\n boundsUpdate = Bounds.update;\r\n\r\n for (var i = 0; i < bodiesLength; i++) {\r\n var body = bodies[i],\r\n positionImpulse = body.positionImpulse,\r\n positionImpulseX = positionImpulse.x,\r\n positionImpulseY = positionImpulse.y,\r\n velocity = body.velocity;\r\n\r\n // reset contact count\r\n body.totalContacts = 0;\r\n\r\n if (positionImpulseX !== 0 || positionImpulseY !== 0) {\r\n // update body geometry\r\n for (var j = 0; j < body.parts.length; j++) {\r\n var part = body.parts[j];\r\n verticesTranslate(part.vertices, positionImpulse);\r\n boundsUpdate(part.bounds, part.vertices, velocity);\r\n part.position.x += positionImpulseX;\r\n part.position.y += positionImpulseY;\r\n }\r\n\r\n // move the body without changing velocity\r\n body.positionPrev.x += positionImpulseX;\r\n body.positionPrev.y += positionImpulseY;\r\n\r\n if (positionImpulseX * velocity.x + positionImpulseY * velocity.y < 0) {\r\n // reset cached impulse if the body has velocity along it\r\n positionImpulse.x = 0;\r\n positionImpulse.y = 0;\r\n } else {\r\n // warm the next iteration\r\n positionImpulse.x *= positionWarming;\r\n positionImpulse.y *= positionWarming;\r\n }\r\n }\r\n }\r\n };\r\n\r\n /**\r\n * Prepare pairs for velocity solving.\r\n * @method preSolveVelocity\r\n * @param {pair[]} pairs\r\n */\r\n Resolver.preSolveVelocity = function(pairs) {\r\n var pairsLength = pairs.length,\r\n i,\r\n j;\r\n\r\n for (i = 0; i < pairsLength; i++) {\r\n var pair = pairs[i];\r\n\r\n if (!pair.isActive || pair.isSensor)\r\n continue;\r\n\r\n var contacts = pair.contacts,\r\n contactCount = pair.contactCount,\r\n collision = pair.collision,\r\n bodyA = collision.parentA,\r\n bodyB = collision.parentB,\r\n normal = collision.normal,\r\n tangent = collision.tangent;\r\n\r\n // resolve each contact\r\n for (j = 0; j < contactCount; j++) {\r\n var contact = contacts[j],\r\n contactVertex = contact.vertex,\r\n normalImpulse = contact.normalImpulse,\r\n tangentImpulse = contact.tangentImpulse;\r\n\r\n if (normalImpulse !== 0 || tangentImpulse !== 0) {\r\n // total impulse from contact\r\n var impulseX = normal.x * normalImpulse + tangent.x * tangentImpulse,\r\n impulseY = normal.y * normalImpulse + tangent.y * tangentImpulse;\r\n\r\n // apply impulse from contact\r\n if (!(bodyA.isStatic || bodyA.isSleeping)) {\r\n bodyA.positionPrev.x += impulseX * bodyA.inverseMass;\r\n bodyA.positionPrev.y += impulseY * bodyA.inverseMass;\r\n bodyA.anglePrev += bodyA.inverseInertia * (\r\n (contactVertex.x - bodyA.position.x) * impulseY\r\n - (contactVertex.y - bodyA.position.y) * impulseX\r\n );\r\n }\r\n\r\n if (!(bodyB.isStatic || bodyB.isSleeping)) {\r\n bodyB.positionPrev.x -= impulseX * bodyB.inverseMass;\r\n bodyB.positionPrev.y -= impulseY * bodyB.inverseMass;\r\n bodyB.anglePrev -= bodyB.inverseInertia * (\r\n (contactVertex.x - bodyB.position.x) * impulseY\r\n - (contactVertex.y - bodyB.position.y) * impulseX\r\n );\r\n }\r\n }\r\n }\r\n }\r\n };\r\n\r\n /**\r\n * Find a solution for pair velocities.\r\n * @method solveVelocity\r\n * @param {pair[]} pairs\r\n * @param {number} delta\r\n */\r\n Resolver.solveVelocity = function(pairs, delta) {\r\n var timeScale = delta / Common._baseDelta,\r\n timeScaleSquared = timeScale * timeScale,\r\n timeScaleCubed = timeScaleSquared * timeScale,\r\n restingThresh = -Resolver._restingThresh * timeScale,\r\n restingThreshTangent = Resolver._restingThreshTangent,\r\n frictionNormalMultiplier = Resolver._frictionNormalMultiplier * timeScale,\r\n frictionMaxStatic = Resolver._frictionMaxStatic,\r\n pairsLength = pairs.length,\r\n tangentImpulse,\r\n maxFriction,\r\n i,\r\n j;\r\n\r\n for (i = 0; i < pairsLength; i++) {\r\n var pair = pairs[i];\r\n\r\n if (!pair.isActive || pair.isSensor)\r\n continue;\r\n\r\n var collision = pair.collision,\r\n bodyA = collision.parentA,\r\n bodyB = collision.parentB,\r\n normalX = collision.normal.x,\r\n normalY = collision.normal.y,\r\n tangentX = collision.tangent.x,\r\n tangentY = collision.tangent.y,\r\n inverseMassTotal = pair.inverseMass,\r\n friction = pair.friction * pair.frictionStatic * frictionNormalMultiplier,\r\n contacts = pair.contacts,\r\n contactCount = pair.contactCount,\r\n contactShare = 1 / contactCount;\r\n\r\n // update body velocities\r\n var bodyAVelocityX = bodyA.position.x - bodyA.positionPrev.x,\r\n bodyAVelocityY = bodyA.position.y - bodyA.positionPrev.y,\r\n bodyAAngularVelocity = bodyA.angle - bodyA.anglePrev,\r\n bodyBVelocityX = bodyB.position.x - bodyB.positionPrev.x,\r\n bodyBVelocityY = bodyB.position.y - bodyB.positionPrev.y,\r\n bodyBAngularVelocity = bodyB.angle - bodyB.anglePrev;\r\n\r\n // resolve each contact\r\n for (j = 0; j < contactCount; j++) {\r\n var contact = contacts[j],\r\n contactVertex = contact.vertex;\r\n\r\n var offsetAX = contactVertex.x - bodyA.position.x,\r\n offsetAY = contactVertex.y - bodyA.position.y,\r\n offsetBX = contactVertex.x - bodyB.position.x,\r\n offsetBY = contactVertex.y - bodyB.position.y;\r\n\r\n var velocityPointAX = bodyAVelocityX - offsetAY * bodyAAngularVelocity,\r\n velocityPointAY = bodyAVelocityY + offsetAX * bodyAAngularVelocity,\r\n velocityPointBX = bodyBVelocityX - offsetBY * bodyBAngularVelocity,\r\n velocityPointBY = bodyBVelocityY + offsetBX * bodyBAngularVelocity;\r\n\r\n var relativeVelocityX = velocityPointAX - velocityPointBX,\r\n relativeVelocityY = velocityPointAY - velocityPointBY;\r\n\r\n var normalVelocity = normalX * relativeVelocityX + normalY * relativeVelocityY,\r\n tangentVelocity = tangentX * relativeVelocityX + tangentY * relativeVelocityY;\r\n\r\n // coulomb friction\r\n var normalOverlap = pair.separation + normalVelocity;\r\n var normalForce = Math.min(normalOverlap, 1);\r\n normalForce = normalOverlap < 0 ? 0 : normalForce;\r\n\r\n var frictionLimit = normalForce * friction;\r\n\r\n if (tangentVelocity < -frictionLimit || tangentVelocity > frictionLimit) {\r\n maxFriction = (tangentVelocity > 0 ? tangentVelocity : -tangentVelocity);\r\n tangentImpulse = pair.friction * (tangentVelocity > 0 ? 1 : -1) * timeScaleCubed;\r\n\r\n if (tangentImpulse < -maxFriction) {\r\n tangentImpulse = -maxFriction;\r\n } else if (tangentImpulse > maxFriction) {\r\n tangentImpulse = maxFriction;\r\n }\r\n } else {\r\n tangentImpulse = tangentVelocity;\r\n maxFriction = frictionMaxStatic;\r\n }\r\n\r\n // account for mass, inertia and contact offset\r\n var oAcN = offsetAX * normalY - offsetAY * normalX,\r\n oBcN = offsetBX * normalY - offsetBY * normalX,\r\n share = contactShare / (inverseMassTotal + bodyA.inverseInertia * oAcN * oAcN + bodyB.inverseInertia * oBcN * oBcN);\r\n\r\n // raw impulses\r\n var normalImpulse = (1 + pair.restitution) * normalVelocity * share;\r\n tangentImpulse *= share;\r\n\r\n // handle high velocity and resting collisions separately\r\n if (normalVelocity < restingThresh) {\r\n // high normal velocity so clear cached contact normal impulse\r\n contact.normalImpulse = 0;\r\n } else {\r\n // solve resting collision constraints using Erin Catto's method (GDC08)\r\n // impulse constraint tends to 0\r\n var contactNormalImpulse = contact.normalImpulse;\r\n contact.normalImpulse += normalImpulse;\r\n if (contact.normalImpulse > 0) contact.normalImpulse = 0;\r\n normalImpulse = contact.normalImpulse - contactNormalImpulse;\r\n }\r\n\r\n // handle high velocity and resting collisions separately\r\n if (tangentVelocity < -restingThreshTangent || tangentVelocity > restingThreshTangent) {\r\n // high tangent velocity so clear cached contact tangent impulse\r\n contact.tangentImpulse = 0;\r\n } else {\r\n // solve resting collision constraints using Erin Catto's method (GDC08)\r\n // tangent impulse tends to -tangentSpeed or +tangentSpeed\r\n var contactTangentImpulse = contact.tangentImpulse;\r\n contact.tangentImpulse += tangentImpulse;\r\n if (contact.tangentImpulse < -maxFriction) contact.tangentImpulse = -maxFriction;\r\n if (contact.tangentImpulse > maxFriction) contact.tangentImpulse = maxFriction;\r\n tangentImpulse = contact.tangentImpulse - contactTangentImpulse;\r\n }\r\n\r\n // total impulse from contact\r\n var impulseX = normalX * normalImpulse + tangentX * tangentImpulse,\r\n impulseY = normalY * normalImpulse + tangentY * tangentImpulse;\r\n\r\n // apply impulse from contact\r\n if (!(bodyA.isStatic || bodyA.isSleeping)) {\r\n bodyA.positionPrev.x += impulseX * bodyA.inverseMass;\r\n bodyA.positionPrev.y += impulseY * bodyA.inverseMass;\r\n bodyA.anglePrev += (offsetAX * impulseY - offsetAY * impulseX) * bodyA.inverseInertia;\r\n }\r\n\r\n if (!(bodyB.isStatic || bodyB.isSleeping)) {\r\n bodyB.positionPrev.x -= impulseX * bodyB.inverseMass;\r\n bodyB.positionPrev.y -= impulseY * bodyB.inverseMass;\r\n bodyB.anglePrev -= (offsetBX * impulseY - offsetBY * impulseX) * bodyB.inverseInertia;\r\n }\r\n }\r\n }\r\n };\r\n\r\n})();\r\n\n\n/***/ }),\n\n/***/ 48140:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* The `Matter.Constraint` module contains methods for creating and manipulating constraints.\r\n* Constraints are used for specifying that a fixed distance must be maintained between two bodies (or a body and a fixed world-space position).\r\n* The stiffness of constraints can be modified to create springs or elastic.\r\n*\r\n* See the included usage [examples](https://github.com/liabru/matter-js/tree/master/examples).\r\n*\r\n* @class Constraint\r\n*/\r\n\r\nvar Constraint = {};\r\n\r\nmodule.exports = Constraint;\r\n\r\nvar Vertices = __webpack_require__(41598);\r\nvar Vector = __webpack_require__(31725);\r\nvar Sleeping = __webpack_require__(53614);\r\nvar Bounds = __webpack_require__(15647);\r\nvar Axes = __webpack_require__(66615);\r\nvar Common = __webpack_require__(53402);\r\n\r\n(function() {\r\n\r\n Constraint._warming = 0.4;\r\n Constraint._torqueDampen = 1;\r\n Constraint._minLength = 0.000001;\r\n\r\n /**\r\n * Creates a new constraint.\r\n * All properties have default values, and many are pre-calculated automatically based on other properties.\r\n * To simulate a revolute constraint (or pin joint) set `length: 0` and a high `stiffness` value (e.g. `0.7` or above).\r\n * If the constraint is unstable, try lowering the `stiffness` value and / or increasing `engine.constraintIterations`.\r\n * For compound bodies, constraints must be applied to the parent body (not one of its parts).\r\n * See the properties section below for detailed information on what you can pass via the `options` object.\r\n * @method create\r\n * @param {} options\r\n * @return {constraint} constraint\r\n */\r\n Constraint.create = function(options) {\r\n var constraint = options;\r\n\r\n // if bodies defined but no points, use body centre\r\n if (constraint.bodyA && !constraint.pointA)\r\n constraint.pointA = { x: 0, y: 0 };\r\n if (constraint.bodyB && !constraint.pointB)\r\n constraint.pointB = { x: 0, y: 0 };\r\n\r\n // calculate static length using initial world space points\r\n var initialPointA = constraint.bodyA ? Vector.add(constraint.bodyA.position, constraint.pointA) : constraint.pointA,\r\n initialPointB = constraint.bodyB ? Vector.add(constraint.bodyB.position, constraint.pointB) : constraint.pointB,\r\n length = Vector.magnitude(Vector.sub(initialPointA, initialPointB));\r\n \r\n constraint.length = typeof constraint.length !== 'undefined' ? constraint.length : length;\r\n\r\n // option defaults\r\n constraint.id = constraint.id || Common.nextId();\r\n constraint.label = constraint.label || 'Constraint';\r\n constraint.type = 'constraint';\r\n constraint.stiffness = constraint.stiffness || (constraint.length > 0 ? 1 : 0.7);\r\n constraint.damping = constraint.damping || 0;\r\n constraint.angularStiffness = constraint.angularStiffness || 0;\r\n constraint.angleA = constraint.bodyA ? constraint.bodyA.angle : constraint.angleA;\r\n constraint.angleB = constraint.bodyB ? constraint.bodyB.angle : constraint.angleB;\r\n constraint.plugin = {};\r\n\r\n // render\r\n var render = {\r\n visible: true,\r\n type: 'line',\r\n anchors: true,\r\n lineColor: null, // custom Phaser property\r\n lineOpacity: null, // custom Phaser property\r\n lineThickness: null, // custom Phaser property\r\n pinSize: null, // custom Phaser property\r\n anchorColor: null, // custom Phaser property\r\n anchorSize: null // custom Phaser property\r\n };\r\n\r\n if (constraint.length === 0 && constraint.stiffness > 0.1) {\r\n render.type = 'pin';\r\n render.anchors = false;\r\n } else if (constraint.stiffness < 0.9) {\r\n render.type = 'spring';\r\n }\r\n\r\n constraint.render = Common.extend(render, constraint.render);\r\n\r\n return constraint;\r\n };\r\n\r\n /**\r\n * Prepares for solving by constraint warming.\r\n * @private\r\n * @method preSolveAll\r\n * @param {body[]} bodies\r\n */\r\n Constraint.preSolveAll = function(bodies) {\r\n for (var i = 0; i < bodies.length; i += 1) {\r\n var body = bodies[i],\r\n impulse = body.constraintImpulse;\r\n\r\n if (body.isStatic || (impulse.x === 0 && impulse.y === 0 && impulse.angle === 0)) {\r\n continue;\r\n }\r\n\r\n body.position.x += impulse.x;\r\n body.position.y += impulse.y;\r\n body.angle += impulse.angle;\r\n }\r\n };\r\n\r\n /**\r\n * Solves all constraints in a list of collisions.\r\n * @private\r\n * @method solveAll\r\n * @param {constraint[]} constraints\r\n * @param {number} delta\r\n */\r\n Constraint.solveAll = function(constraints, delta) {\r\n var timeScale = Common.clamp(delta / Common._baseDelta, 0, 1);\r\n // Solve fixed constraints first.\r\n for (var i = 0; i < constraints.length; i += 1) {\r\n var constraint = constraints[i],\r\n fixedA = !constraint.bodyA || (constraint.bodyA && constraint.bodyA.isStatic),\r\n fixedB = !constraint.bodyB || (constraint.bodyB && constraint.bodyB.isStatic);\r\n\r\n if (fixedA || fixedB) {\r\n Constraint.solve(constraints[i], timeScale);\r\n }\r\n }\r\n\r\n // Solve free constraints last.\r\n for (i = 0; i < constraints.length; i += 1) {\r\n constraint = constraints[i];\r\n fixedA = !constraint.bodyA || (constraint.bodyA && constraint.bodyA.isStatic);\r\n fixedB = !constraint.bodyB || (constraint.bodyB && constraint.bodyB.isStatic);\r\n\r\n if (!fixedA && !fixedB) {\r\n Constraint.solve(constraints[i], timeScale);\r\n }\r\n }\r\n };\r\n\r\n /**\r\n * Solves a distance constraint with Gauss-Siedel method.\r\n * @private\r\n * @method solve\r\n * @param {constraint} constraint\r\n * @param {number} timeScale\r\n */\r\n Constraint.solve = function(constraint, timeScale) {\r\n var bodyA = constraint.bodyA,\r\n bodyB = constraint.bodyB,\r\n pointA = constraint.pointA,\r\n pointB = constraint.pointB;\r\n\r\n if (!bodyA && !bodyB)\r\n return;\r\n\r\n // update reference angle\r\n if (bodyA && !bodyA.isStatic) {\r\n Vector.rotate(pointA, bodyA.angle - constraint.angleA, pointA);\r\n constraint.angleA = bodyA.angle;\r\n }\r\n \r\n // update reference angle\r\n if (bodyB && !bodyB.isStatic) {\r\n Vector.rotate(pointB, bodyB.angle - constraint.angleB, pointB);\r\n constraint.angleB = bodyB.angle;\r\n }\r\n\r\n var pointAWorld = pointA,\r\n pointBWorld = pointB;\r\n\r\n if (bodyA) pointAWorld = Vector.add(bodyA.position, pointA);\r\n if (bodyB) pointBWorld = Vector.add(bodyB.position, pointB);\r\n\r\n if (!pointAWorld || !pointBWorld)\r\n return;\r\n\r\n var delta = Vector.sub(pointAWorld, pointBWorld),\r\n currentLength = Vector.magnitude(delta);\r\n\r\n // prevent singularity\r\n if (currentLength < Constraint._minLength) {\r\n currentLength = Constraint._minLength;\r\n }\r\n\r\n // solve distance constraint with Gauss-Siedel method\r\n var difference = (currentLength - constraint.length) / currentLength,\r\n isRigid = constraint.stiffness >= 1 || constraint.length === 0,\r\n stiffness = isRigid ? constraint.stiffness * timeScale \r\n : constraint.stiffness * timeScale * timeScale,\r\n damping = constraint.damping * timeScale,\r\n force = Vector.mult(delta, difference * stiffness),\r\n massTotal = (bodyA ? bodyA.inverseMass : 0) + (bodyB ? bodyB.inverseMass : 0),\r\n inertiaTotal = (bodyA ? bodyA.inverseInertia : 0) + (bodyB ? bodyB.inverseInertia : 0),\r\n resistanceTotal = massTotal + inertiaTotal,\r\n torque,\r\n share,\r\n normal,\r\n normalVelocity,\r\n relativeVelocity;\r\n\r\n if (damping > 0) {\r\n var zero = Vector.create();\r\n normal = Vector.div(delta, currentLength);\r\n\r\n relativeVelocity = Vector.sub(\r\n bodyB && Vector.sub(bodyB.position, bodyB.positionPrev) || zero,\r\n bodyA && Vector.sub(bodyA.position, bodyA.positionPrev) || zero\r\n );\r\n\r\n normalVelocity = Vector.dot(normal, relativeVelocity);\r\n }\r\n\r\n if (bodyA && !bodyA.isStatic) {\r\n share = bodyA.inverseMass / massTotal;\r\n\r\n // keep track of applied impulses for post solving\r\n bodyA.constraintImpulse.x -= force.x * share;\r\n bodyA.constraintImpulse.y -= force.y * share;\r\n\r\n // apply forces\r\n bodyA.position.x -= force.x * share;\r\n bodyA.position.y -= force.y * share;\r\n\r\n // apply damping\r\n if (damping > 0) {\r\n bodyA.positionPrev.x -= damping * normal.x * normalVelocity * share;\r\n bodyA.positionPrev.y -= damping * normal.y * normalVelocity * share;\r\n }\r\n\r\n // apply torque\r\n torque = (Vector.cross(pointA, force) / resistanceTotal) * Constraint._torqueDampen * bodyA.inverseInertia * (1 - constraint.angularStiffness);\r\n bodyA.constraintImpulse.angle -= torque;\r\n bodyA.angle -= torque;\r\n }\r\n\r\n if (bodyB && !bodyB.isStatic) {\r\n share = bodyB.inverseMass / massTotal;\r\n\r\n // keep track of applied impulses for post solving\r\n bodyB.constraintImpulse.x += force.x * share;\r\n bodyB.constraintImpulse.y += force.y * share;\r\n \r\n // apply forces\r\n bodyB.position.x += force.x * share;\r\n bodyB.position.y += force.y * share;\r\n\r\n // apply damping\r\n if (damping > 0) {\r\n bodyB.positionPrev.x += damping * normal.x * normalVelocity * share;\r\n bodyB.positionPrev.y += damping * normal.y * normalVelocity * share;\r\n }\r\n\r\n // apply torque\r\n torque = (Vector.cross(pointB, force) / resistanceTotal) * Constraint._torqueDampen * bodyB.inverseInertia * (1 - constraint.angularStiffness);\r\n bodyB.constraintImpulse.angle += torque;\r\n bodyB.angle += torque;\r\n }\r\n\r\n };\r\n\r\n /**\r\n * Performs body updates required after solving constraints.\r\n * @private\r\n * @method postSolveAll\r\n * @param {body[]} bodies\r\n */\r\n Constraint.postSolveAll = function(bodies) {\r\n for (var i = 0; i < bodies.length; i++) {\r\n var body = bodies[i],\r\n impulse = body.constraintImpulse;\r\n\r\n if (body.isStatic || (impulse.x === 0 && impulse.y === 0 && impulse.angle === 0)) {\r\n continue;\r\n }\r\n\r\n Sleeping.set(body, false);\r\n\r\n // update geometry and reset\r\n for (var j = 0; j < body.parts.length; j++) {\r\n var part = body.parts[j];\r\n \r\n Vertices.translate(part.vertices, impulse);\r\n\r\n if (j > 0) {\r\n part.position.x += impulse.x;\r\n part.position.y += impulse.y;\r\n }\r\n\r\n if (impulse.angle !== 0) {\r\n Vertices.rotate(part.vertices, impulse.angle, body.position);\r\n Axes.rotate(part.axes, impulse.angle);\r\n if (j > 0) {\r\n Vector.rotateAbout(part.position, impulse.angle, body.position, part.position);\r\n }\r\n }\r\n\r\n Bounds.update(part.bounds, part.vertices, body.velocity);\r\n }\r\n\r\n // dampen the cached impulse for warming next step\r\n impulse.angle *= Constraint._warming;\r\n impulse.x *= Constraint._warming;\r\n impulse.y *= Constraint._warming;\r\n }\r\n };\r\n\r\n /**\r\n * Returns the world-space position of `constraint.pointA`, accounting for `constraint.bodyA`.\r\n * @method pointAWorld\r\n * @param {constraint} constraint\r\n * @returns {vector} the world-space position\r\n */\r\n Constraint.pointAWorld = function(constraint) {\r\n return {\r\n x: (constraint.bodyA ? constraint.bodyA.position.x : 0) \r\n + (constraint.pointA ? constraint.pointA.x : 0),\r\n y: (constraint.bodyA ? constraint.bodyA.position.y : 0) \r\n + (constraint.pointA ? constraint.pointA.y : 0)\r\n };\r\n };\r\n\r\n /**\r\n * Returns the world-space position of `constraint.pointB`, accounting for `constraint.bodyB`.\r\n * @method pointBWorld\r\n * @param {constraint} constraint\r\n * @returns {vector} the world-space position\r\n */\r\n Constraint.pointBWorld = function(constraint) {\r\n return {\r\n x: (constraint.bodyB ? constraint.bodyB.position.x : 0) \r\n + (constraint.pointB ? constraint.pointB.x : 0),\r\n y: (constraint.bodyB ? constraint.bodyB.position.y : 0) \r\n + (constraint.pointB ? constraint.pointB.y : 0)\r\n };\r\n };\r\n\r\n /**\r\n * Returns the current length of the constraint. \r\n * This is the distance between both of the constraint's end points.\r\n * See `constraint.length` for the target rest length.\r\n * @method currentLength\r\n * @param {constraint} constraint\r\n * @returns {number} the current length\r\n */\r\n Constraint.currentLength = function(constraint) {\r\n var pointAX = (constraint.bodyA ? constraint.bodyA.position.x : 0) \r\n + (constraint.pointA ? constraint.pointA.x : 0);\r\n\r\n var pointAY = (constraint.bodyA ? constraint.bodyA.position.y : 0) \r\n + (constraint.pointA ? constraint.pointA.y : 0);\r\n\r\n var pointBX = (constraint.bodyB ? constraint.bodyB.position.x : 0) \r\n + (constraint.pointB ? constraint.pointB.x : 0);\r\n \r\n var pointBY = (constraint.bodyB ? constraint.bodyB.position.y : 0) \r\n + (constraint.pointB ? constraint.pointB.y : 0);\r\n\r\n var deltaX = pointAX - pointBX;\r\n var deltaY = pointAY - pointBY;\r\n\r\n return Math.sqrt(deltaX * deltaX + deltaY * deltaY);\r\n };\r\n /*\r\n *\r\n * Properties Documentation\r\n *\r\n */\r\n\r\n /**\r\n * An integer `Number` uniquely identifying number generated in `Composite.create` by `Common.nextId`.\r\n *\r\n * @property id\r\n * @type number\r\n */\r\n\r\n /**\r\n * A `String` denoting the type of object.\r\n *\r\n * @property type\r\n * @type string\r\n * @default \"constraint\"\r\n * @readOnly\r\n */\r\n\r\n /**\r\n * An arbitrary `String` name to help the user identify and manage bodies.\r\n *\r\n * @property label\r\n * @type string\r\n * @default \"Constraint\"\r\n */\r\n\r\n /**\r\n * An `Object` that defines the rendering properties to be consumed by the module `Matter.Render`.\r\n *\r\n * @property render\r\n * @type object\r\n */\r\n\r\n /**\r\n * A flag that indicates if the constraint should be rendered.\r\n *\r\n * @property render.visible\r\n * @type boolean\r\n * @default true\r\n */\r\n\r\n /**\r\n * A `Number` that defines the line width to use when rendering the constraint outline.\r\n * A value of `0` means no outline will be rendered.\r\n *\r\n * @property render.lineWidth\r\n * @type number\r\n * @default 2\r\n */\r\n\r\n /**\r\n * A `String` that defines the stroke style to use when rendering the constraint outline.\r\n * It is the same as when using a canvas, so it accepts CSS style property values.\r\n *\r\n * @property render.strokeStyle\r\n * @type string\r\n * @default a random colour\r\n */\r\n\r\n /**\r\n * A `String` that defines the constraint rendering type. \r\n * The possible values are 'line', 'pin', 'spring'.\r\n * An appropriate render type will be automatically chosen unless one is given in options.\r\n *\r\n * @property render.type\r\n * @type string\r\n * @default 'line'\r\n */\r\n\r\n /**\r\n * A `Boolean` that defines if the constraint's anchor points should be rendered.\r\n *\r\n * @property render.anchors\r\n * @type boolean\r\n * @default true\r\n */\r\n\r\n /**\r\n * The first possible `Body` that this constraint is attached to.\r\n *\r\n * @property bodyA\r\n * @type body\r\n * @default null\r\n */\r\n\r\n /**\r\n * The second possible `Body` that this constraint is attached to.\r\n *\r\n * @property bodyB\r\n * @type body\r\n * @default null\r\n */\r\n\r\n /**\r\n * A `Vector` that specifies the offset of the constraint from center of the `constraint.bodyA` if defined, otherwise a world-space position.\r\n *\r\n * @property pointA\r\n * @type vector\r\n * @default { x: 0, y: 0 }\r\n */\r\n\r\n /**\r\n * A `Vector` that specifies the offset of the constraint from center of the `constraint.bodyB` if defined, otherwise a world-space position.\r\n *\r\n * @property pointB\r\n * @type vector\r\n * @default { x: 0, y: 0 }\r\n */\r\n\r\n /**\r\n * A `Number` that specifies the stiffness of the constraint, i.e. the rate at which it returns to its resting `constraint.length`.\r\n * A value of `1` means the constraint should be very stiff.\r\n * A value of `0.2` means the constraint acts like a soft spring.\r\n *\r\n * @property stiffness\r\n * @type number\r\n * @default 1\r\n */\r\n\r\n /**\r\n * A `Number` that specifies the damping of the constraint, \r\n * i.e. the amount of resistance applied to each body based on their velocities to limit the amount of oscillation.\r\n * Damping will only be apparent when the constraint also has a very low `stiffness`.\r\n * A value of `0.1` means the constraint will apply heavy damping, resulting in little to no oscillation.\r\n * A value of `0` means the constraint will apply no damping.\r\n *\r\n * @property damping\r\n * @type number\r\n * @default 0\r\n */\r\n\r\n /**\r\n * A `Number` that specifies the target resting length of the constraint. \r\n * It is calculated automatically in `Constraint.create` from initial positions of the `constraint.bodyA` and `constraint.bodyB`.\r\n *\r\n * @property length\r\n * @type number\r\n */\r\n\r\n /**\r\n * An object reserved for storing plugin-specific properties.\r\n *\r\n * @property plugin\r\n * @type {}\r\n */\r\n\r\n})();\r\n\n\n/***/ }),\n\n/***/ 53402:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* The `Matter.Common` module contains utility functions that are common to all modules.\r\n*\r\n* @class Common\r\n*/\r\n\r\nvar Common = {};\r\n\r\nmodule.exports = Common;\r\n\r\n(function() {\r\n\r\n Common._baseDelta = 1000 / 60;\r\n Common._nextId = 0;\r\n Common._seed = 0;\r\n Common._nowStartTime = +(new Date());\r\n Common._warnedOnce = {};\r\n Common._decomp = null;\r\n \r\n /**\r\n * Extends the object in the first argument using the object in the second argument.\r\n * @method extend\r\n * @param {} obj\r\n * @param {boolean} deep\r\n * @return {} obj extended\r\n */\r\n Common.extend = function(obj, deep) {\r\n var argsStart,\r\n args,\r\n deepClone;\r\n\r\n if (typeof deep === 'boolean') {\r\n argsStart = 2;\r\n deepClone = deep;\r\n } else {\r\n argsStart = 1;\r\n deepClone = true;\r\n }\r\n\r\n for (var i = argsStart; i < arguments.length; i++) {\r\n var source = arguments[i];\r\n\r\n if (source) {\r\n for (var prop in source) {\r\n if (deepClone && source[prop] && source[prop].constructor === Object) {\r\n if (!obj[prop] || obj[prop].constructor === Object) {\r\n obj[prop] = obj[prop] || {};\r\n Common.extend(obj[prop], deepClone, source[prop]);\r\n } else {\r\n obj[prop] = source[prop];\r\n }\r\n } else {\r\n obj[prop] = source[prop];\r\n }\r\n }\r\n }\r\n }\r\n \r\n return obj;\r\n };\r\n\r\n /**\r\n * Creates a new clone of the object, if deep is true references will also be cloned.\r\n * @method clone\r\n * @param {} obj\r\n * @param {bool} deep\r\n * @return {} obj cloned\r\n */\r\n Common.clone = function(obj, deep) {\r\n return Common.extend({}, deep, obj);\r\n };\r\n\r\n /**\r\n * Returns the list of keys for the given object.\r\n * @method keys\r\n * @param {} obj\r\n * @return {string[]} keys\r\n */\r\n Common.keys = function(obj) {\r\n if (Object.keys)\r\n return Object.keys(obj);\r\n\r\n // avoid hasOwnProperty for performance\r\n var keys = [];\r\n for (var key in obj)\r\n keys.push(key);\r\n return keys;\r\n };\r\n\r\n /**\r\n * Returns the list of values for the given object.\r\n * @method values\r\n * @param {} obj\r\n * @return {array} Array of the objects property values\r\n */\r\n Common.values = function(obj) {\r\n var values = [];\r\n \r\n if (Object.keys) {\r\n var keys = Object.keys(obj);\r\n for (var i = 0; i < keys.length; i++) {\r\n values.push(obj[keys[i]]);\r\n }\r\n return values;\r\n }\r\n \r\n // avoid hasOwnProperty for performance\r\n for (var key in obj)\r\n values.push(obj[key]);\r\n return values;\r\n };\r\n\r\n /**\r\n * Gets a value from `base` relative to the `path` string.\r\n * @method get\r\n * @param {} obj The base object\r\n * @param {string} path The path relative to `base`, e.g. 'Foo.Bar.baz'\r\n * @param {number} [begin] Path slice begin\r\n * @param {number} [end] Path slice end\r\n * @return {} The object at the given path\r\n */\r\n Common.get = function(obj, path, begin, end) {\r\n path = path.split('.').slice(begin, end);\r\n\r\n for (var i = 0; i < path.length; i += 1) {\r\n obj = obj[path[i]];\r\n }\r\n\r\n return obj;\r\n };\r\n\r\n /**\r\n * Sets a value on `base` relative to the given `path` string.\r\n * @method set\r\n * @param {} obj The base object\r\n * @param {string} path The path relative to `base`, e.g. 'Foo.Bar.baz'\r\n * @param {} val The value to set\r\n * @param {number} [begin] Path slice begin\r\n * @param {number} [end] Path slice end\r\n * @return {} Pass through `val` for chaining\r\n */\r\n Common.set = function(obj, path, val, begin, end) {\r\n var parts = path.split('.').slice(begin, end);\r\n Common.get(obj, path, 0, -1)[parts[parts.length - 1]] = val;\r\n return val;\r\n };\r\n\r\n /**\r\n * Shuffles the given array in-place.\r\n * The function uses a seeded random generator.\r\n * @method shuffle\r\n * @param {array} array\r\n * @return {array} array shuffled randomly\r\n */\r\n Common.shuffle = function(array) {\r\n for (var i = array.length - 1; i > 0; i--) {\r\n var j = Math.floor(Common.random() * (i + 1));\r\n var temp = array[i];\r\n array[i] = array[j];\r\n array[j] = temp;\r\n }\r\n return array;\r\n };\r\n\r\n /**\r\n * Randomly chooses a value from a list with equal probability.\r\n * The function uses a seeded random generator.\r\n * @method choose\r\n * @param {array} choices\r\n * @return {object} A random choice object from the array\r\n */\r\n Common.choose = function(choices) {\r\n return choices[Math.floor(Common.random() * choices.length)];\r\n };\r\n\r\n /**\r\n * Returns true if the object is a HTMLElement, otherwise false.\r\n * @method isElement\r\n * @param {object} obj\r\n * @return {boolean} True if the object is a HTMLElement, otherwise false\r\n */\r\n Common.isElement = function(obj) {\r\n if (typeof HTMLElement !== 'undefined') {\r\n return obj instanceof HTMLElement;\r\n }\r\n\r\n return !!(obj && obj.nodeType && obj.nodeName);\r\n };\r\n\r\n /**\r\n * Returns true if the object is an array.\r\n * @method isArray\r\n * @param {object} obj\r\n * @return {boolean} True if the object is an array, otherwise false\r\n */\r\n Common.isArray = function(obj) {\r\n return Object.prototype.toString.call(obj) === '[object Array]';\r\n };\r\n\r\n /**\r\n * Returns true if the object is a function.\r\n * @method isFunction\r\n * @param {object} obj\r\n * @return {boolean} True if the object is a function, otherwise false\r\n */\r\n Common.isFunction = function(obj) {\r\n return typeof obj === \"function\";\r\n };\r\n\r\n /**\r\n * Returns true if the object is a plain object.\r\n * @method isPlainObject\r\n * @param {object} obj\r\n * @return {boolean} True if the object is a plain object, otherwise false\r\n */\r\n Common.isPlainObject = function(obj) {\r\n return typeof obj === 'object' && obj.constructor === Object;\r\n };\r\n\r\n /**\r\n * Returns true if the object is a string.\r\n * @method isString\r\n * @param {object} obj\r\n * @return {boolean} True if the object is a string, otherwise false\r\n */\r\n Common.isString = function(obj) {\r\n return toString.call(obj) === '[object String]';\r\n };\r\n \r\n /**\r\n * Returns the given value clamped between a minimum and maximum value.\r\n * @method clamp\r\n * @param {number} value\r\n * @param {number} min\r\n * @param {number} max\r\n * @return {number} The value clamped between min and max inclusive\r\n */\r\n Common.clamp = function(value, min, max) {\r\n if (value < min)\r\n return min;\r\n if (value > max)\r\n return max;\r\n return value;\r\n };\r\n \r\n /**\r\n * Returns the sign of the given value.\r\n * @method sign\r\n * @param {number} value\r\n * @return {number} -1 if negative, +1 if 0 or positive\r\n */\r\n Common.sign = function(value) {\r\n return value < 0 ? -1 : 1;\r\n };\r\n \r\n /**\r\n * Returns the current timestamp since the time origin (e.g. from page load).\r\n * The result is in milliseconds and will use high-resolution timing if available.\r\n * @method now\r\n * @return {number} the current timestamp in milliseconds\r\n */\r\n Common.now = function() {\r\n if (typeof window !== 'undefined' && window.performance) {\r\n if (window.performance.now) {\r\n return window.performance.now();\r\n } else if (window.performance.webkitNow) {\r\n return window.performance.webkitNow();\r\n }\r\n }\r\n\r\n if (Date.now) {\r\n return Date.now();\r\n }\r\n\r\n return (new Date()) - Common._nowStartTime;\r\n };\r\n \r\n /**\r\n * Returns a random value between a minimum and a maximum value inclusive.\r\n * The function uses a seeded random generator.\r\n * @method random\r\n * @param {number} min\r\n * @param {number} max\r\n * @return {number} A random number between min and max inclusive\r\n */\r\n Common.random = function(min, max) {\r\n min = (typeof min !== \"undefined\") ? min : 0;\r\n max = (typeof max !== \"undefined\") ? max : 1;\r\n return min + _seededRandom() * (max - min);\r\n };\r\n\r\n var _seededRandom = function() {\r\n // https://en.wikipedia.org/wiki/Linear_congruential_generator\r\n Common._seed = (Common._seed * 9301 + 49297) % 233280;\r\n return Common._seed / 233280;\r\n };\r\n\r\n /**\r\n * Converts a CSS hex colour string into an integer.\r\n * @method colorToNumber\r\n * @param {string} colorString\r\n * @return {number} An integer representing the CSS hex string\r\n */\r\n Common.colorToNumber = function(colorString) {\r\n colorString = colorString.replace('#','');\r\n\r\n if (colorString.length == 3) {\r\n colorString = colorString.charAt(0) + colorString.charAt(0)\r\n + colorString.charAt(1) + colorString.charAt(1)\r\n + colorString.charAt(2) + colorString.charAt(2);\r\n }\r\n\r\n return parseInt(colorString, 16);\r\n };\r\n\r\n /**\r\n * The console logging level to use, where each level includes all levels above and excludes the levels below.\r\n * The default level is 'debug' which shows all console messages. \r\n *\r\n * Possible level values are:\r\n * - 0 = None\r\n * - 1 = Debug\r\n * - 2 = Info\r\n * - 3 = Warn\r\n * - 4 = Error\r\n * @property Common.logLevel\r\n * @type {Number}\r\n * @default 1\r\n */\r\n Common.logLevel = 1;\r\n\r\n /**\r\n * Shows a `console.log` message only if the current `Common.logLevel` allows it.\r\n * The message will be prefixed with 'matter-js' to make it easily identifiable.\r\n * @method log\r\n * @param ...objs {} The objects to log.\r\n */\r\n Common.log = function() {\r\n if (console && Common.logLevel > 0 && Common.logLevel <= 3) {\r\n console.log.apply(console, ['matter-js:'].concat(Array.prototype.slice.call(arguments)));\r\n }\r\n };\r\n\r\n /**\r\n * Shows a `console.info` message only if the current `Common.logLevel` allows it.\r\n * The message will be prefixed with 'matter-js' to make it easily identifiable.\r\n * @method info\r\n * @param ...objs {} The objects to log.\r\n */\r\n Common.info = function() {\r\n if (console && Common.logLevel > 0 && Common.logLevel <= 2) {\r\n console.info.apply(console, ['matter-js:'].concat(Array.prototype.slice.call(arguments)));\r\n }\r\n };\r\n\r\n /**\r\n * Shows a `console.warn` message only if the current `Common.logLevel` allows it.\r\n * The message will be prefixed with 'matter-js' to make it easily identifiable.\r\n * @method warn\r\n * @param ...objs {} The objects to log.\r\n */\r\n Common.warn = function() {\r\n if (console && Common.logLevel > 0 && Common.logLevel <= 3) {\r\n console.warn.apply(console, ['matter-js:'].concat(Array.prototype.slice.call(arguments)));\r\n }\r\n };\r\n\r\n /**\r\n * Uses `Common.warn` to log the given message one time only.\r\n * @method warnOnce\r\n * @param ...objs {} The objects to log.\r\n */\r\n Common.warnOnce = function() {\r\n var message = Array.prototype.slice.call(arguments).join(' ');\r\n\r\n if (!Common._warnedOnce[message]) {\r\n Common.warn(message);\r\n Common._warnedOnce[message] = true;\r\n }\r\n };\r\n\r\n /**\r\n * Shows a deprecated console warning when the function on the given object is called.\r\n * The target function will be replaced with a new function that first shows the warning\r\n * and then calls the original function.\r\n * @method deprecated\r\n * @param {object} obj The object or module\r\n * @param {string} name The property name of the function on obj\r\n * @param {string} warning The one-time message to show if the function is called\r\n */\r\n Common.deprecated = function(obj, prop, warning) {\r\n obj[prop] = Common.chain(function() {\r\n Common.warnOnce('🔅 deprecated 🔅', warning);\r\n }, obj[prop]);\r\n };\r\n\r\n /**\r\n * Returns the next unique sequential ID.\r\n * @method nextId\r\n * @return {Number} Unique sequential ID\r\n */\r\n Common.nextId = function() {\r\n return Common._nextId++;\r\n };\r\n\r\n /**\r\n * A cross browser compatible indexOf implementation.\r\n * @method indexOf\r\n * @param {array} haystack\r\n * @param {object} needle\r\n * @return {number} The position of needle in haystack, otherwise -1.\r\n */\r\n Common.indexOf = function(haystack, needle) {\r\n if (haystack.indexOf)\r\n return haystack.indexOf(needle);\r\n\r\n for (var i = 0; i < haystack.length; i++) {\r\n if (haystack[i] === needle)\r\n return i;\r\n }\r\n\r\n return -1;\r\n };\r\n\r\n /**\r\n * A cross browser compatible array map implementation.\r\n * @method map\r\n * @param {array} list\r\n * @param {function} func\r\n * @return {array} Values from list transformed by func.\r\n */\r\n Common.map = function(list, func) {\r\n if (list.map) {\r\n return list.map(func);\r\n }\r\n\r\n var mapped = [];\r\n\r\n for (var i = 0; i < list.length; i += 1) {\r\n mapped.push(func(list[i]));\r\n }\r\n\r\n return mapped;\r\n };\r\n\r\n /**\r\n * Takes a directed graph and returns the partially ordered set of vertices in topological order.\r\n * Circular dependencies are allowed.\r\n * @method topologicalSort\r\n * @param {object} graph\r\n * @return {array} Partially ordered set of vertices in topological order.\r\n */\r\n Common.topologicalSort = function(graph) {\r\n // https://github.com/mgechev/javascript-algorithms\r\n // Copyright (c) Minko Gechev (MIT license)\r\n // Modifications: tidy formatting and naming\r\n var result = [],\r\n visited = [],\r\n temp = [];\r\n\r\n for (var node in graph) {\r\n if (!visited[node] && !temp[node]) {\r\n Common._topologicalSort(node, visited, temp, graph, result);\r\n }\r\n }\r\n\r\n return result;\r\n };\r\n\r\n Common._topologicalSort = function(node, visited, temp, graph, result) {\r\n var neighbors = graph[node] || [];\r\n temp[node] = true;\r\n\r\n for (var i = 0; i < neighbors.length; i += 1) {\r\n var neighbor = neighbors[i];\r\n\r\n if (temp[neighbor]) {\r\n // skip circular dependencies\r\n continue;\r\n }\r\n\r\n if (!visited[neighbor]) {\r\n Common._topologicalSort(neighbor, visited, temp, graph, result);\r\n }\r\n }\r\n\r\n temp[node] = false;\r\n visited[node] = true;\r\n\r\n result.push(node);\r\n };\r\n\r\n /**\r\n * Takes _n_ functions as arguments and returns a new function that calls them in order.\r\n * The arguments applied when calling the new function will also be applied to every function passed.\r\n * The value of `this` refers to the last value returned in the chain that was not `undefined`.\r\n * Therefore if a passed function does not return a value, the previously returned value is maintained.\r\n * After all passed functions have been called the new function returns the last returned value (if any).\r\n * If any of the passed functions are a chain, then the chain will be flattened.\r\n * @method chain\r\n * @param ...funcs {function} The functions to chain.\r\n * @return {function} A new function that calls the passed functions in order.\r\n */\r\n Common.chain = function() {\r\n var funcs = [];\r\n\r\n for (var i = 0; i < arguments.length; i += 1) {\r\n var func = arguments[i];\r\n\r\n if (func._chained) {\r\n // flatten already chained functions\r\n funcs.push.apply(funcs, func._chained);\r\n } else {\r\n funcs.push(func);\r\n }\r\n }\r\n\r\n var chain = function() {\r\n // https://github.com/GoogleChrome/devtools-docs/issues/53#issuecomment-51941358\r\n var lastResult,\r\n args = new Array(arguments.length);\r\n\r\n for (var i = 0, l = arguments.length; i < l; i++) {\r\n args[i] = arguments[i];\r\n }\r\n\r\n for (i = 0; i < funcs.length; i += 1) {\r\n var result = funcs[i].apply(lastResult, args);\r\n\r\n if (typeof result !== 'undefined') {\r\n lastResult = result;\r\n }\r\n }\r\n\r\n return lastResult;\r\n };\r\n\r\n chain._chained = funcs;\r\n\r\n return chain;\r\n };\r\n\r\n /**\r\n * Chains a function to excute before the original function on the given `path` relative to `base`.\r\n * See also docs for `Common.chain`.\r\n * @method chainPathBefore\r\n * @param {} base The base object\r\n * @param {string} path The path relative to `base`\r\n * @param {function} func The function to chain before the original\r\n * @return {function} The chained function that replaced the original\r\n */\r\n Common.chainPathBefore = function(base, path, func) {\r\n return Common.set(base, path, Common.chain(\r\n func,\r\n Common.get(base, path)\r\n ));\r\n };\r\n\r\n /**\r\n * Chains a function to excute after the original function on the given `path` relative to `base`.\r\n * See also docs for `Common.chain`.\r\n * @method chainPathAfter\r\n * @param {} base The base object\r\n * @param {string} path The path relative to `base`\r\n * @param {function} func The function to chain after the original\r\n * @return {function} The chained function that replaced the original\r\n */\r\n Common.chainPathAfter = function(base, path, func) {\r\n return Common.set(base, path, Common.chain(\r\n Common.get(base, path),\r\n func\r\n ));\r\n };\r\n\r\n /**\r\n * Provide the [poly-decomp](https://github.com/schteppe/poly-decomp.js) library module to enable\r\n * concave vertex decomposition support when using `Bodies.fromVertices` e.g. `Common.setDecomp(require('poly-decomp'))`.\r\n * @method setDecomp\r\n * @param {} decomp The [poly-decomp](https://github.com/schteppe/poly-decomp.js) library module.\r\n */\r\n Common.setDecomp = function(decomp) {\r\n Common._decomp = decomp;\r\n };\r\n\r\n /**\r\n * Returns the [poly-decomp](https://github.com/schteppe/poly-decomp.js) library module provided through `Common.setDecomp`,\r\n * otherwise returns the global `decomp` if set.\r\n * @method getDecomp\r\n * @return {} The [poly-decomp](https://github.com/schteppe/poly-decomp.js) library module if provided.\r\n */\r\n Common.getDecomp = function() {\r\n // get user provided decomp if set\r\n var decomp = Common._decomp;\r\n\r\n try {\r\n // otherwise from window global\r\n if (!decomp && typeof window !== 'undefined') {\r\n decomp = window.decomp;\r\n }\r\n \r\n // otherwise from node global\r\n if (!decomp && typeof __webpack_require__.g !== 'undefined') {\r\n decomp = __webpack_require__.g.decomp;\r\n }\r\n } catch (e) {\r\n // decomp not available\r\n decomp = null;\r\n }\r\n\r\n return decomp;\r\n };\r\n})();\r\n\n\n/***/ }),\n\n/***/ 48413:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* The `Matter.Engine` module contains methods for creating and manipulating engines.\r\n* An engine is a controller that manages updating the simulation of the world.\r\n* See `Matter.Runner` for an optional game loop utility.\r\n*\r\n* See the included usage [examples](https://github.com/liabru/matter-js/tree/master/examples).\r\n*\r\n* @class Engine\r\n*/\r\n\r\nvar Engine = {};\r\n\r\nmodule.exports = Engine;\r\n\r\nvar Sleeping = __webpack_require__(53614);\r\nvar Resolver = __webpack_require__(66272);\r\nvar Detector = __webpack_require__(81388);\r\nvar Pairs = __webpack_require__(99561);\r\nvar Events = __webpack_require__(35810);\r\nvar Composite = __webpack_require__(69351);\r\nvar Constraint = __webpack_require__(48140);\r\nvar Common = __webpack_require__(53402);\r\nvar Body = __webpack_require__(22562);\r\n\r\n(function() {\r\n\r\n Engine._deltaMax = 1000 / 60;\r\n /**\r\n * Creates a new engine. The options parameter is an object that specifies any properties you wish to override the defaults.\r\n * All properties have default values, and many are pre-calculated automatically based on other properties.\r\n * See the properties section below for detailed information on what you can pass via the `options` object.\r\n * @method create\r\n * @param {object} [options]\r\n * @return {engine} engine\r\n */\r\n Engine.create = function(options) {\r\n options = options || {};\r\n\r\n var defaults = {\r\n positionIterations: 6,\r\n velocityIterations: 4,\r\n constraintIterations: 2,\r\n enableSleeping: false,\r\n events: [],\r\n plugin: {},\r\n gravity: {\r\n x: 0,\r\n y: 1,\r\n scale: 0.001\r\n },\r\n timing: {\r\n timestamp: 0,\r\n timeScale: 1,\r\n lastDelta: 0,\r\n lastElapsed: 0,\r\n lastUpdatesPerFrame: 0\r\n }\r\n };\r\n\r\n var engine = Common.extend(defaults, options);\r\n\r\n engine.world = options.world || Composite.create({ label: 'World' });\r\n engine.pairs = options.pairs || Pairs.create();\r\n engine.detector = options.detector || Detector.create();\r\n engine.detector.pairs = engine.pairs;\r\n\r\n // for temporary back compatibility only\r\n engine.grid = { buckets: [] };\r\n engine.world.gravity = engine.gravity;\r\n engine.broadphase = engine.grid;\r\n engine.metrics = {};\r\n\r\n return engine;\r\n };\r\n\r\n /**\r\n * Moves the simulation forward in time by `delta` ms.\r\n * Triggers `beforeUpdate` and `afterUpdate` events.\r\n * Triggers `collisionStart`, `collisionActive` and `collisionEnd` events.\r\n * @method update\r\n * @param {engine} engine\r\n * @param {number} [delta=16.666]\r\n */\r\n Engine.update = function(engine, delta) {\r\n var startTime = Common.now();\r\n\r\n var world = engine.world,\r\n detector = engine.detector,\r\n pairs = engine.pairs,\r\n timing = engine.timing,\r\n timestamp = timing.timestamp,\r\n i;\r\n if (delta > Engine._deltaMax) {\r\n Common.warnOnce(\r\n 'Matter.Engine.update: delta argument is recommended to be less than or equal to', Engine._deltaMax.toFixed(3), 'ms.'\r\n );\r\n }\r\n\r\n delta = typeof delta !== 'undefined' ? delta : Common._baseDelta;\r\n delta *= timing.timeScale;\r\n\r\n // increment timestamp\r\n timing.timestamp += delta;\r\n timing.lastDelta = delta;\r\n\r\n // create an event object\r\n var event = {\r\n timestamp: timing.timestamp,\r\n delta: delta\r\n };\r\n\r\n Events.trigger(engine, 'beforeUpdate', event);\r\n\r\n // get all bodies and all constraints in the world\r\n var allBodies = Composite.allBodies(world),\r\n allConstraints = Composite.allConstraints(world),\r\n allComposites = Composite.allComposites(world);\r\n\r\n // if the world has changed\r\n if (world.isModified) {\r\n // update the detector bodies\r\n Detector.setBodies(detector, allBodies);\r\n\r\n // reset all composite modified flags\r\n Composite.setModified(world, false, false, true);\r\n }\r\n\r\n // update sleeping if enabled\r\n if (engine.enableSleeping)\r\n Sleeping.update(allBodies, delta);\r\n\r\n // apply gravity to all bodies\r\n Engine._bodiesApplyGravity(allBodies, engine.gravity);\r\n\r\n Engine.wrap(allBodies, allComposites);\r\n Engine.attractors(allBodies);\r\n \r\n // update all body position and rotation by integration\r\n if (delta > 0) {\r\n Engine._bodiesUpdate(allBodies, delta);\r\n }\r\n\r\n Events.trigger(engine, 'beforeSolve', event);\r\n\r\n // update all constraints (first pass)\r\n Constraint.preSolveAll(allBodies);\r\n for (i = 0; i < engine.constraintIterations; i++) {\r\n Constraint.solveAll(allConstraints, delta);\r\n }\r\n Constraint.postSolveAll(allBodies);\r\n\r\n // find all collisions\r\n var collisions = Detector.collisions(detector);\r\n\r\n // update collision pairs\r\n Pairs.update(pairs, collisions, timestamp);\r\n\r\n // wake up bodies involved in collisions\r\n if (engine.enableSleeping)\r\n Sleeping.afterCollisions(pairs.list);\r\n\r\n // trigger collision events\r\n if (pairs.collisionStart.length > 0) {\r\n Events.trigger(engine, 'collisionStart', {\r\n pairs: pairs.collisionStart,\r\n timestamp: timing.timestamp,\r\n delta: delta\r\n });\r\n }\r\n\r\n // iteratively resolve position between collisions\r\n var positionDamping = Common.clamp(20 / engine.positionIterations, 0, 1);\r\n\r\n Resolver.preSolvePosition(pairs.list);\r\n for (i = 0; i < engine.positionIterations; i++) {\r\n Resolver.solvePosition(pairs.list, delta, positionDamping);\r\n }\r\n Resolver.postSolvePosition(allBodies);\r\n\r\n // update all constraints (second pass)\r\n Constraint.preSolveAll(allBodies);\r\n for (i = 0; i < engine.constraintIterations; i++) {\r\n Constraint.solveAll(allConstraints, delta);\r\n }\r\n Constraint.postSolveAll(allBodies);\r\n\r\n // iteratively resolve velocity between collisions\r\n Resolver.preSolveVelocity(pairs.list);\r\n for (i = 0; i < engine.velocityIterations; i++) {\r\n Resolver.solveVelocity(pairs.list, delta);\r\n }\r\n\r\n // update body speed and velocity properties\r\n Engine._bodiesUpdateVelocities(allBodies);\r\n\r\n // trigger collision events\r\n if (pairs.collisionActive.length > 0) {\r\n Events.trigger(engine, 'collisionActive', {\r\n pairs: pairs.collisionActive,\r\n timestamp: timing.timestamp,\r\n delta: delta\r\n });\r\n }\r\n\r\n if (pairs.collisionEnd.length > 0) {\r\n Events.trigger(engine, 'collisionEnd', {\r\n pairs: pairs.collisionEnd,\r\n timestamp: timing.timestamp,\r\n delta: delta\r\n });\r\n }\r\n\r\n // clear force buffers\r\n Engine._bodiesClearForces(allBodies);\r\n\r\n Events.trigger(engine, 'afterUpdate', event);\r\n\r\n // log the time elapsed computing this update\r\n engine.timing.lastElapsed = Common.now() - startTime;\r\n\r\n return engine;\r\n };\r\n\r\n /**\r\n * Merges two engines by keeping the configuration of `engineA` but replacing the world with the one from `engineB`.\r\n * @method merge\r\n * @param {engine} engineA\r\n * @param {engine} engineB\r\n */\r\n Engine.merge = function(engineA, engineB) {\r\n Common.extend(engineA, engineB);\r\n\r\n if (engineB.world) {\r\n engineA.world = engineB.world;\r\n\r\n Engine.clear(engineA);\r\n\r\n var bodies = Composite.allBodies(engineA.world);\r\n\r\n for (var i = 0; i < bodies.length; i++) {\r\n var body = bodies[i];\r\n Sleeping.set(body, false);\r\n body.id = Common.nextId();\r\n }\r\n }\r\n };\r\n\r\n /**\r\n * Clears the engine pairs and detector.\r\n * @method clear\r\n * @param {engine} engine\r\n */\r\n Engine.clear = function(engine) {\r\n Pairs.clear(engine.pairs);\r\n Detector.clear(engine.detector);\r\n };\r\n\r\n /**\r\n * Zeroes the `body.force` and `body.torque` force buffers.\r\n * @method _bodiesClearForces\r\n * @private\r\n * @param {body[]} bodies\r\n */\r\n Engine._bodiesClearForces = function(bodies) {\r\n var bodiesLength = bodies.length;\r\n for (var i = 0; i < bodiesLength; i++) {\r\n var body = bodies[i];\r\n\r\n // reset force buffers\r\n body.force.x = 0;\r\n body.force.y = 0;\r\n body.torque = 0;\r\n }\r\n };\r\n\r\n /**\r\n * Applys a mass dependant force to all given bodies.\r\n * @method _bodiesApplyGravity\r\n * @private\r\n * @param {body[]} bodies\r\n * @param {vector} gravity\r\n */\r\n Engine._bodiesApplyGravity = function(bodies, gravity) {\r\n var gravityScale = typeof gravity.scale !== 'undefined' ? gravity.scale : 0.001,\r\n bodiesLength = bodies.length;\r\n\r\n if ((gravity.x === 0 && gravity.y === 0) || gravityScale === 0) {\r\n return;\r\n }\r\n\r\n for (var i = 0; i < bodiesLength; i++) {\r\n var body = bodies[i];\r\n\r\n if (body.ignoreGravity || body.isStatic || body.isSleeping)\r\n continue;\r\n\r\n // add the resultant force of gravity\r\n body.force.y += body.mass * gravity.y * gravityScale;\r\n body.force.x += body.mass * gravity.x * gravityScale;\r\n }\r\n };\r\n\r\n /**\r\n * Applies `Body.update` to all given `bodies`.\r\n * @method _bodiesUpdate\r\n * @private\r\n * @param {body[]} bodies\r\n * @param {number} delta The amount of time elapsed between updates\r\n */\r\n Engine._bodiesUpdate = function(bodies, delta) {\r\n var bodiesLength = bodies.length;\r\n\r\n for (var i = 0; i < bodiesLength; i++) {\r\n var body = bodies[i];\r\n\r\n if (body.isStatic || body.isSleeping)\r\n continue;\r\n\r\n Body.update(body, delta);\r\n }\r\n };\r\n\r\n /**\r\n * Applies `Body.updateVelocities` to all given `bodies`.\r\n * @method _bodiesUpdateVelocities\r\n * @private\r\n * @param {body[]} bodies\r\n */\r\n Engine._bodiesUpdateVelocities = function(bodies) {\r\n var bodiesLength = bodies.length;\r\n\r\n for (var i = 0; i < bodiesLength; i++) {\r\n Body.updateVelocities(bodies[i]);\r\n }\r\n };\r\n\r\n /**\r\n * Applies `Body.wrap` and `Composite.wrap` and to all given `bodies`.\r\n * @method wrap\r\n * @private\r\n * @param {body[]} bodies\r\n */\r\n Engine.wrap = function(bodies, composites) {\r\n // wrap bodies within the wrapBounds parameters\r\n for (var i = 0; i < bodies.length; i += 1) {\r\n var body = bodies[i];\r\n \r\n if (body.wrapBounds !== null) {\r\n Body.wrap(body, body.wrapBounds);\r\n }\r\n }\r\n\r\n // wrap composites within the wrapBounds parameters\r\n for (i = 0; i < composites.length; i += 1) {\r\n var composite = composites[i];\r\n\r\n if (composite.wrapBounds !== null) {\r\n Composite.wrap(composite, composite.wrapBounds);\r\n }\r\n }\r\n };\r\n\r\n /**\r\n * Applies all attractors for all bodies in the `engine`.\r\n * This is called automatically.\r\n * @method attractors\r\n * @private\r\n * @param {body[]} bodies\r\n */\r\n Engine.attractors = function(bodies) {\r\n for (var i = 0; i < bodies.length; i++)\r\n {\r\n var bodyA = bodies[i];\r\n var attractors = bodyA.attractors;\r\n\r\n if (attractors && attractors.length > 0)\r\n {\r\n for (var j = 0; j < bodies.length; j++)\r\n {\r\n var bodyB = bodies[j];\r\n\r\n if (i !== j)\r\n {\r\n for (var k = 0; k < attractors.length; k++)\r\n {\r\n var attractor = attractors[k];\r\n var forceVector = attractor;\r\n\r\n if (Common.isFunction(attractor))\r\n {\r\n forceVector = attractor(bodyA, bodyB);\r\n }\r\n\r\n if (forceVector)\r\n {\r\n Body.applyForce(bodyB, bodyB.position, forceVector);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n };\r\n\r\n /**\r\n * A deprecated alias for `Runner.run`, use `Matter.Runner.run(engine)` instead and see `Matter.Runner` for more information.\r\n * @deprecated use Matter.Runner.run(engine) instead\r\n * @method run\r\n * @param {engine} engine\r\n */\r\n\r\n /**\r\n * Fired just before an update\r\n *\r\n * @event beforeUpdate\r\n * @param {object} event An event object\r\n * @param {number} event.timestamp The engine.timing.timestamp of the event\r\n * @param {engine} event.source The source object of the event\r\n * @param {string} event.name The name of the event\r\n */\r\n\r\n /**\r\n * Fired after engine update and all collision events\r\n *\r\n * @event afterUpdate\r\n * @param {object} event An event object\r\n * @param {number} event.timestamp The engine.timing.timestamp of the event\r\n * @param {engine} event.source The source object of the event\r\n * @param {string} event.name The name of the event\r\n */\r\n\r\n /**\r\n * Fired after engine update, provides a list of all pairs that have started to collide in the current tick (if any)\r\n *\r\n * @event collisionStart\r\n * @param {object} event An event object\r\n * @param {pair[]} event.pairs List of affected pairs\r\n * @param {number} event.timestamp The engine.timing.timestamp of the event\r\n * @param {engine} event.source The source object of the event\r\n * @param {string} event.name The name of the event\r\n */\r\n\r\n /**\r\n * Fired after engine update, provides a list of all pairs that are colliding in the current tick (if any)\r\n *\r\n * @event collisionActive\r\n * @param {object} event An event object\r\n * @param {pair[]} event.pairs List of affected pairs\r\n * @param {number} event.timestamp The engine.timing.timestamp of the event\r\n * @param {engine} event.source The source object of the event\r\n * @param {string} event.name The name of the event\r\n */\r\n\r\n /**\r\n * Fired after engine update, provides a list of all pairs that have ended collision in the current tick (if any)\r\n *\r\n * @event collisionEnd\r\n * @param {object} event An event object\r\n * @param {pair[]} event.pairs List of affected pairs\r\n * @param {number} event.timestamp The engine.timing.timestamp of the event\r\n * @param {engine} event.source The source object of the event\r\n * @param {string} event.name The name of the event\r\n */\r\n\r\n /*\r\n *\r\n * Properties Documentation\r\n *\r\n */\r\n\r\n /**\r\n * An integer `Number` that specifies the number of position iterations to perform each update.\r\n * The higher the value, the higher quality the simulation will be at the expense of performance.\r\n *\r\n * @property positionIterations\r\n * @type number\r\n * @default 6\r\n */\r\n\r\n /**\r\n * An integer `Number` that specifies the number of velocity iterations to perform each update.\r\n * The higher the value, the higher quality the simulation will be at the expense of performance.\r\n *\r\n * @property velocityIterations\r\n * @type number\r\n * @default 4\r\n */\r\n\r\n /**\r\n * An integer `Number` that specifies the number of constraint iterations to perform each update.\r\n * The higher the value, the higher quality the simulation will be at the expense of performance.\r\n * The default value of `2` is usually very adequate.\r\n *\r\n * @property constraintIterations\r\n * @type number\r\n * @default 2\r\n */\r\n\r\n /**\r\n * A flag that specifies whether the engine should allow sleeping via the `Matter.Sleeping` module.\r\n * Sleeping can improve stability and performance, but often at the expense of accuracy.\r\n *\r\n * @property enableSleeping\r\n * @type boolean\r\n * @default false\r\n */\r\n\r\n /**\r\n * An `Object` containing properties regarding the timing systems of the engine.\r\n *\r\n * @property timing\r\n * @type object\r\n */\r\n\r\n /**\r\n * A `Number` that specifies the global scaling factor of time for all bodies.\r\n * A value of `0` freezes the simulation.\r\n * A value of `0.1` gives a slow-motion effect.\r\n * A value of `1.2` gives a speed-up effect.\r\n *\r\n * @property timing.timeScale\r\n * @type number\r\n * @default 1\r\n */\r\n\r\n /**\r\n * A `Number` that specifies the current simulation-time in milliseconds starting from `0`.\r\n * It is incremented on every `Engine.update` by the given `delta` argument.\r\n *\r\n * @property timing.timestamp\r\n * @type number\r\n * @default 0\r\n */\r\n\r\n /**\r\n * A `Number` that represents the total execution time elapsed during the last `Engine.update` in milliseconds.\r\n * It is updated by timing from the start of the last `Engine.update` call until it ends.\r\n *\r\n * This value will also include the total execution time of all event handlers directly or indirectly triggered by the engine update.\r\n *\r\n * @property timing.lastElapsed\r\n * @type number\r\n * @default 0\r\n */\r\n\r\n /**\r\n * A `Number` that represents the `delta` value used in the last engine update.\r\n *\r\n * @property timing.lastDelta\r\n * @type number\r\n * @default 0\r\n */\r\n\r\n /**\r\n * A `Matter.Detector` instance.\r\n *\r\n * @property detector\r\n * @type detector\r\n * @default a Matter.Detector instance\r\n */\r\n\r\n /**\r\n * A `Matter.Grid` instance.\r\n *\r\n * @deprecated replaced by `engine.detector`\r\n * @property grid\r\n * @type grid\r\n * @default a Matter.Grid instance\r\n */\r\n\r\n /**\r\n * Replaced by and now alias for `engine.grid`.\r\n *\r\n * @deprecated replaced by `engine.detector`\r\n * @property broadphase\r\n * @type grid\r\n * @default a Matter.Grid instance\r\n */\r\n\r\n /**\r\n * The root `Matter.Composite` instance that will contain all bodies, constraints and other composites to be simulated by this engine.\r\n *\r\n * @property world\r\n * @type composite\r\n * @default a Matter.Composite instance\r\n */\r\n\r\n /**\r\n * An object reserved for storing plugin-specific properties.\r\n *\r\n * @property plugin\r\n * @type {}\r\n */\r\n\r\n /**\r\n * The gravity to apply on all bodies in `engine.world`.\r\n *\r\n * @property gravity\r\n * @type object\r\n */\r\n\r\n /**\r\n * The gravity x component.\r\n *\r\n * @property gravity.x\r\n * @type object\r\n * @default 0\r\n */\r\n\r\n /**\r\n * The gravity y component.\r\n *\r\n * @property gravity.y\r\n * @type object\r\n * @default 1\r\n */\r\n\r\n /**\r\n * The gravity scale factor.\r\n *\r\n * @property gravity.scale\r\n * @type object\r\n * @default 0.001\r\n */\r\n\r\n})();\r\n\n\n/***/ }),\n\n/***/ 35810:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* The `Matter.Events` module contains methods to fire and listen to events on other objects.\r\n*\r\n* See the included usage [examples](https://github.com/liabru/matter-js/tree/master/examples).\r\n*\r\n* @class Events\r\n*/\r\n\r\nvar Events = {};\r\n\r\nmodule.exports = Events;\r\n\r\nvar Common = __webpack_require__(53402);\r\n\r\n(function() {\r\n\r\n /**\r\n * Subscribes a callback function to the given object's `eventName`.\r\n * @method on\r\n * @param {} object\r\n * @param {string} eventNames\r\n * @param {function} callback\r\n */\r\n Events.on = function(object, eventNames, callback) {\r\n var names = eventNames.split(' '),\r\n name;\r\n\r\n for (var i = 0; i < names.length; i++) {\r\n name = names[i];\r\n object.events = object.events || {};\r\n object.events[name] = object.events[name] || [];\r\n object.events[name].push(callback);\r\n }\r\n\r\n return callback;\r\n };\r\n\r\n /**\r\n * Removes the given event callback. If no callback, clears all callbacks in `eventNames`. If no `eventNames`, clears all events.\r\n * @method off\r\n * @param {} object\r\n * @param {string} eventNames\r\n * @param {function} callback\r\n */\r\n Events.off = function(object, eventNames, callback) {\r\n if (!eventNames) {\r\n object.events = {};\r\n return;\r\n }\r\n\r\n // handle Events.off(object, callback)\r\n if (typeof eventNames === 'function') {\r\n callback = eventNames;\r\n eventNames = Common.keys(object.events).join(' ');\r\n }\r\n\r\n var names = eventNames.split(' ');\r\n\r\n for (var i = 0; i < names.length; i++) {\r\n var callbacks = object.events[names[i]],\r\n newCallbacks = [];\r\n\r\n if (callback && callbacks) {\r\n for (var j = 0; j < callbacks.length; j++) {\r\n if (callbacks[j] !== callback)\r\n newCallbacks.push(callbacks[j]);\r\n }\r\n }\r\n\r\n object.events[names[i]] = newCallbacks;\r\n }\r\n };\r\n\r\n /**\r\n * Fires all the callbacks subscribed to the given object's `eventName`, in the order they subscribed, if any.\r\n * @method trigger\r\n * @param {} object\r\n * @param {string} eventNames\r\n * @param {} event\r\n */\r\n Events.trigger = function(object, eventNames, event) {\r\n var names,\r\n name,\r\n callbacks,\r\n eventClone;\r\n\r\n var events = object.events;\r\n \r\n if (events && Common.keys(events).length > 0) {\r\n if (!event)\r\n event = {};\r\n\r\n names = eventNames.split(' ');\r\n\r\n for (var i = 0; i < names.length; i++) {\r\n name = names[i];\r\n callbacks = events[name];\r\n\r\n if (callbacks) {\r\n eventClone = Common.clone(event, false);\r\n eventClone.name = name;\r\n eventClone.source = object;\r\n\r\n for (var j = 0; j < callbacks.length; j++) {\r\n callbacks[j].apply(object, [eventClone]);\r\n }\r\n }\r\n }\r\n }\r\n };\r\n\r\n})();\r\n\n\n/***/ }),\n\n/***/ 6790:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* The `Matter` module is the top level namespace. It also includes a function for installing plugins on top of the library.\r\n*\r\n* @class Matter\r\n*/\r\n\r\nvar Matter = {};\r\n\r\nmodule.exports = Matter;\r\n\r\nvar Plugin = __webpack_require__(73832);\r\nvar Common = __webpack_require__(53402);\r\n\r\n(function() {\r\n\r\n /**\r\n * The library name.\r\n * @property name\r\n * @readOnly\r\n * @type {String}\r\n */\r\n Matter.name = 'matter-js';\r\n\r\n /**\r\n * The library version.\r\n * @property version\r\n * @readOnly\r\n * @type {String}\r\n */\r\n Matter.version = '0.20.0';\r\n\r\n /**\r\n * A list of plugin dependencies to be installed. These are normally set and installed through `Matter.use`.\r\n * Alternatively you may set `Matter.uses` manually and install them by calling `Plugin.use(Matter)`.\r\n * @property uses\r\n * @type {Array}\r\n */\r\n Matter.uses = [];\r\n\r\n /**\r\n * The plugins that have been installed through `Matter.Plugin.install`. Read only.\r\n * @property used\r\n * @readOnly\r\n * @type {Array}\r\n */\r\n Matter.used = [];\r\n\r\n /**\r\n * Installs the given plugins on the `Matter` namespace.\r\n * This is a short-hand for `Plugin.use`, see it for more information.\r\n * Call this function once at the start of your code, with all of the plugins you wish to install as arguments.\r\n * Avoid calling this function multiple times unless you intend to manually control installation order.\r\n * @method use\r\n * @param ...plugin {Function} The plugin(s) to install on `base` (multi-argument).\r\n */\r\n Matter.use = function() {\r\n Plugin.use(Matter, Array.prototype.slice.call(arguments));\r\n };\r\n\r\n /**\r\n * Chains a function to excute before the original function on the given `path` relative to `Matter`.\r\n * See also docs for `Common.chain`.\r\n * @method before\r\n * @param {string} path The path relative to `Matter`\r\n * @param {function} func The function to chain before the original\r\n * @return {function} The chained function that replaced the original\r\n */\r\n Matter.before = function(path, func) {\r\n path = path.replace(/^Matter./, '');\r\n return Common.chainPathBefore(Matter, path, func);\r\n };\r\n\r\n /**\r\n * Chains a function to excute after the original function on the given `path` relative to `Matter`.\r\n * See also docs for `Common.chain`.\r\n * @method after\r\n * @param {string} path The path relative to `Matter`\r\n * @param {function} func The function to chain after the original\r\n * @return {function} The chained function that replaced the original\r\n */\r\n Matter.after = function(path, func) {\r\n path = path.replace(/^Matter./, '');\r\n return Common.chainPathAfter(Matter, path, func);\r\n };\r\n\r\n})();\r\n\n\n/***/ }),\n\n/***/ 73832:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* The `Matter.Plugin` module contains functions for registering and installing plugins on modules.\r\n*\r\n* @class Plugin\r\n*/\r\n\r\nvar Plugin = {};\r\n\r\nmodule.exports = Plugin;\r\n\r\nvar Common = __webpack_require__(53402);\r\n\r\n(function() {\r\n\r\n Plugin._registry = {};\r\n\r\n /**\r\n * Registers a plugin object so it can be resolved later by name.\r\n * @method register\r\n * @param plugin {} The plugin to register.\r\n * @return {object} The plugin.\r\n */\r\n Plugin.register = function(plugin) {\r\n if (!Plugin.isPlugin(plugin)) {\r\n Common.warn('Plugin.register:', Plugin.toString(plugin), 'does not implement all required fields.');\r\n }\r\n\r\n if (plugin.name in Plugin._registry) {\r\n var registered = Plugin._registry[plugin.name],\r\n pluginVersion = Plugin.versionParse(plugin.version).number,\r\n registeredVersion = Plugin.versionParse(registered.version).number;\r\n\r\n if (pluginVersion > registeredVersion) {\r\n Common.warn('Plugin.register:', Plugin.toString(registered), 'was upgraded to', Plugin.toString(plugin));\r\n Plugin._registry[plugin.name] = plugin;\r\n } else if (pluginVersion < registeredVersion) {\r\n Common.warn('Plugin.register:', Plugin.toString(registered), 'can not be downgraded to', Plugin.toString(plugin));\r\n } else if (plugin !== registered) {\r\n Common.warn('Plugin.register:', Plugin.toString(plugin), 'is already registered to different plugin object');\r\n }\r\n } else {\r\n Plugin._registry[plugin.name] = plugin;\r\n }\r\n\r\n return plugin;\r\n };\r\n\r\n /**\r\n * Resolves a dependency to a plugin object from the registry if it exists.\r\n * The `dependency` may contain a version, but only the name matters when resolving.\r\n * @method resolve\r\n * @param dependency {string} The dependency.\r\n * @return {object} The plugin if resolved, otherwise `undefined`.\r\n */\r\n Plugin.resolve = function(dependency) {\r\n return Plugin._registry[Plugin.dependencyParse(dependency).name];\r\n };\r\n\r\n /**\r\n * Returns a pretty printed plugin name and version.\r\n * @method toString\r\n * @param plugin {} The plugin.\r\n * @return {string} Pretty printed plugin name and version.\r\n */\r\n Plugin.toString = function(plugin) {\r\n return typeof plugin === 'string' ? plugin : (plugin.name || 'anonymous') + '@' + (plugin.version || plugin.range || '0.0.0');\r\n };\r\n\r\n /**\r\n * Returns `true` if the object meets the minimum standard to be considered a plugin.\r\n * This means it must define the following properties:\r\n * - `name`\r\n * - `version`\r\n * - `install`\r\n * @method isPlugin\r\n * @param obj {} The obj to test.\r\n * @return {boolean} `true` if the object can be considered a plugin otherwise `false`.\r\n */\r\n Plugin.isPlugin = function(obj) {\r\n return obj && obj.name && obj.version && obj.install;\r\n };\r\n\r\n /**\r\n * Returns `true` if a plugin with the given `name` been installed on `module`.\r\n * @method isUsed\r\n * @param module {} The module.\r\n * @param name {string} The plugin name.\r\n * @return {boolean} `true` if a plugin with the given `name` been installed on `module`, otherwise `false`.\r\n */\r\n Plugin.isUsed = function(module, name) {\r\n return module.used.indexOf(name) > -1;\r\n };\r\n\r\n /**\r\n * Returns `true` if `plugin.for` is applicable to `module` by comparing against `module.name` and `module.version`.\r\n * If `plugin.for` is not specified then it is assumed to be applicable.\r\n * The value of `plugin.for` is a string of the format `'module-name'` or `'module-name@version'`.\r\n * @method isFor\r\n * @param plugin {} The plugin.\r\n * @param module {} The module.\r\n * @return {boolean} `true` if `plugin.for` is applicable to `module`, otherwise `false`.\r\n */\r\n Plugin.isFor = function(plugin, module) {\r\n var parsed = plugin.for && Plugin.dependencyParse(plugin.for);\r\n return !plugin.for || (module.name === parsed.name && Plugin.versionSatisfies(module.version, parsed.range));\r\n };\r\n\r\n /**\r\n * Installs the plugins by calling `plugin.install` on each plugin specified in `plugins` if passed, otherwise `module.uses`.\r\n * For installing plugins on `Matter` see the convenience function `Matter.use`.\r\n * Plugins may be specified either by their name or a reference to the plugin object.\r\n * Plugins themselves may specify further dependencies, but each plugin is installed only once.\r\n * Order is important, a topological sort is performed to find the best resulting order of installation.\r\n * This sorting attempts to satisfy every dependency's requested ordering, but may not be exact in all cases.\r\n * This function logs the resulting status of each dependency in the console, along with any warnings.\r\n * - A green tick ✅ indicates a dependency was resolved and installed.\r\n * - An orange diamond 🔶 indicates a dependency was resolved but a warning was thrown for it or one if its dependencies.\r\n * - A red cross ❌ indicates a dependency could not be resolved.\r\n * Avoid calling this function multiple times on the same module unless you intend to manually control installation order.\r\n * @method use\r\n * @param module {} The module install plugins on.\r\n * @param [plugins=module.uses] {} The plugins to install on module (optional, defaults to `module.uses`).\r\n */\r\n Plugin.use = function(module, plugins) {\r\n module.uses = (module.uses || []).concat(plugins || []);\r\n\r\n if (module.uses.length === 0) {\r\n Common.warn('Plugin.use:', Plugin.toString(module), 'does not specify any dependencies to install.');\r\n return;\r\n }\r\n\r\n var dependencies = Plugin.dependencies(module),\r\n sortedDependencies = Common.topologicalSort(dependencies),\r\n status = [];\r\n\r\n for (var i = 0; i < sortedDependencies.length; i += 1) {\r\n if (sortedDependencies[i] === module.name) {\r\n continue;\r\n }\r\n\r\n var plugin = Plugin.resolve(sortedDependencies[i]);\r\n\r\n if (!plugin) {\r\n status.push('❌ ' + sortedDependencies[i]);\r\n continue;\r\n }\r\n\r\n if (Plugin.isUsed(module, plugin.name)) {\r\n continue;\r\n }\r\n\r\n if (!Plugin.isFor(plugin, module)) {\r\n Common.warn('Plugin.use:', Plugin.toString(plugin), 'is for', plugin.for, 'but installed on', Plugin.toString(module) + '.');\r\n plugin._warned = true;\r\n }\r\n\r\n if (plugin.install) {\r\n plugin.install(module);\r\n } else {\r\n Common.warn('Plugin.use:', Plugin.toString(plugin), 'does not specify an install function.');\r\n plugin._warned = true;\r\n }\r\n\r\n if (plugin._warned) {\r\n status.push('🔶 ' + Plugin.toString(plugin));\r\n delete plugin._warned;\r\n } else {\r\n status.push('✅ ' + Plugin.toString(plugin));\r\n }\r\n\r\n module.used.push(plugin.name);\r\n }\r\n\r\n if (status.length > 0 && !plugin.silent) {\r\n Common.info(status.join(' '));\r\n }\r\n };\r\n\r\n /**\r\n * Recursively finds all of a module's dependencies and returns a flat dependency graph.\r\n * @method dependencies\r\n * @param module {} The module.\r\n * @return {object} A dependency graph.\r\n */\r\n Plugin.dependencies = function(module, tracked) {\r\n var parsedBase = Plugin.dependencyParse(module),\r\n name = parsedBase.name;\r\n\r\n tracked = tracked || {};\r\n\r\n if (name in tracked) {\r\n return;\r\n }\r\n\r\n module = Plugin.resolve(module) || module;\r\n\r\n tracked[name] = Common.map(module.uses || [], function(dependency) {\r\n if (Plugin.isPlugin(dependency)) {\r\n Plugin.register(dependency);\r\n }\r\n\r\n var parsed = Plugin.dependencyParse(dependency),\r\n resolved = Plugin.resolve(dependency);\r\n\r\n if (resolved && !Plugin.versionSatisfies(resolved.version, parsed.range)) {\r\n Common.warn(\r\n 'Plugin.dependencies:', Plugin.toString(resolved), 'does not satisfy',\r\n Plugin.toString(parsed), 'used by', Plugin.toString(parsedBase) + '.'\r\n );\r\n\r\n resolved._warned = true;\r\n module._warned = true;\r\n } else if (!resolved) {\r\n Common.warn(\r\n 'Plugin.dependencies:', Plugin.toString(dependency), 'used by',\r\n Plugin.toString(parsedBase), 'could not be resolved.'\r\n );\r\n\r\n module._warned = true;\r\n }\r\n\r\n return parsed.name;\r\n });\r\n\r\n for (var i = 0; i < tracked[name].length; i += 1) {\r\n Plugin.dependencies(tracked[name][i], tracked);\r\n }\r\n\r\n return tracked;\r\n };\r\n\r\n /**\r\n * Parses a dependency string into its components.\r\n * The `dependency` is a string of the format `'module-name'` or `'module-name@version'`.\r\n * See documentation for `Plugin.versionParse` for a description of the format.\r\n * This function can also handle dependencies that are already resolved (e.g. a module object).\r\n * @method dependencyParse\r\n * @param dependency {string} The dependency of the format `'module-name'` or `'module-name@version'`.\r\n * @return {object} The dependency parsed into its components.\r\n */\r\n Plugin.dependencyParse = function(dependency) {\r\n if (Common.isString(dependency)) {\r\n var pattern = /^[\\w-]+(@(\\*|[\\^~]?\\d+\\.\\d+\\.\\d+(-[0-9A-Za-z-+]+)?))?$/;\r\n\r\n if (!pattern.test(dependency)) {\r\n Common.warn('Plugin.dependencyParse:', dependency, 'is not a valid dependency string.');\r\n }\r\n\r\n return {\r\n name: dependency.split('@')[0],\r\n range: dependency.split('@')[1] || '*'\r\n };\r\n }\r\n\r\n return {\r\n name: dependency.name,\r\n range: dependency.range || dependency.version\r\n };\r\n };\r\n\r\n /**\r\n * Parses a version string into its components.\r\n * Versions are strictly of the format `x.y.z` (as in [semver](http://semver.org/)).\r\n * Versions may optionally have a prerelease tag in the format `x.y.z-alpha`.\r\n * Ranges are a strict subset of [npm ranges](https://docs.npmjs.com/misc/semver#advanced-range-syntax).\r\n * Only the following range types are supported:\r\n * - Tilde ranges e.g. `~1.2.3`\r\n * - Caret ranges e.g. `^1.2.3`\r\n * - Greater than ranges e.g. `>1.2.3`\r\n * - Greater than or equal ranges e.g. `>=1.2.3`\r\n * - Exact version e.g. `1.2.3`\r\n * - Any version `*`\r\n * @method versionParse\r\n * @param range {string} The version string.\r\n * @return {object} The version range parsed into its components.\r\n */\r\n Plugin.versionParse = function(range) {\r\n var pattern = /^(\\*)|(\\^|~|>=|>)?\\s*((\\d+)\\.(\\d+)\\.(\\d+))(-[0-9A-Za-z-+]+)?$/;\r\n\r\n if (!pattern.test(range)) {\r\n Common.warn('Plugin.versionParse:', range, 'is not a valid version or range.');\r\n }\r\n\r\n var parts = pattern.exec(range);\r\n var major = Number(parts[4]);\r\n var minor = Number(parts[5]);\r\n var patch = Number(parts[6]);\r\n\r\n return {\r\n isRange: Boolean(parts[1] || parts[2]),\r\n version: parts[3],\r\n range: range,\r\n operator: parts[1] || parts[2] || '',\r\n major: major,\r\n minor: minor,\r\n patch: patch,\r\n parts: [major, minor, patch],\r\n prerelease: parts[7],\r\n number: major * 1e8 + minor * 1e4 + patch\r\n };\r\n };\r\n\r\n /**\r\n * Returns `true` if `version` satisfies the given `range`.\r\n * See documentation for `Plugin.versionParse` for a description of the format.\r\n * If a version or range is not specified, then any version (`*`) is assumed to satisfy.\r\n * @method versionSatisfies\r\n * @param version {string} The version string.\r\n * @param range {string} The range string.\r\n * @return {boolean} `true` if `version` satisfies `range`, otherwise `false`.\r\n */\r\n Plugin.versionSatisfies = function(version, range) {\r\n range = range || '*';\r\n\r\n var r = Plugin.versionParse(range),\r\n v = Plugin.versionParse(version);\r\n\r\n if (r.isRange) {\r\n if (r.operator === '*' || version === '*') {\r\n return true;\r\n }\r\n\r\n if (r.operator === '>') {\r\n return v.number > r.number;\r\n }\r\n\r\n if (r.operator === '>=') {\r\n return v.number >= r.number;\r\n }\r\n\r\n if (r.operator === '~') {\r\n return v.major === r.major && v.minor === r.minor && v.patch >= r.patch;\r\n }\r\n\r\n if (r.operator === '^') {\r\n if (r.major > 0) {\r\n return v.major === r.major && v.number >= r.number;\r\n }\r\n\r\n if (r.minor > 0) {\r\n return v.minor === r.minor && v.patch >= r.patch;\r\n }\r\n\r\n return v.patch === r.patch;\r\n }\r\n }\r\n\r\n return version === range || version === '*';\r\n };\r\n\r\n})();\r\n\n\n/***/ }),\n\n/***/ 13037:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* The `Matter.Runner` module is an optional utility which provides a game loop, \r\n* that handles continuously updating a `Matter.Engine` for you within a browser.\r\n* It is intended for development and debugging purposes, but may also be suitable for simple games.\r\n* If you are using your own game loop instead, then you do not need the `Matter.Runner` module.\r\n* Instead just call `Engine.update(engine, delta)` in your own loop.\r\n*\r\n* See the included usage [examples](https://github.com/liabru/matter-js/tree/master/examples).\r\n*\r\n* @class Runner\r\n*/\r\n\r\nvar Runner = {};\r\n\r\nmodule.exports = Runner;\r\n\r\nvar Events = __webpack_require__(35810);\r\nvar Engine = __webpack_require__(48413);\r\nvar Common = __webpack_require__(53402);\r\n\r\n(function() {\r\n\r\n Runner._maxFrameDelta = 1000 / 15;\r\n Runner._frameDeltaFallback = 1000 / 60;\r\n Runner._timeBufferMargin = 1.5;\r\n Runner._elapsedNextEstimate = 1;\r\n Runner._smoothingLowerBound = 0.1;\r\n Runner._smoothingUpperBound = 0.9;\r\n\r\n\r\n /**\r\n * Creates a new Runner. The options parameter is an object that specifies any properties you wish to override the defaults.\r\n * @method create\r\n * @param {} options\r\n */\r\n Runner.create = function(options) {\r\n var defaults = {\r\n delta: 1000 / 60,\r\n frameDelta: null,\r\n frameDeltaSmoothing: true,\r\n frameDeltaSnapping: true,\r\n frameDeltaHistory: [],\r\n frameDeltaHistorySize: 100,\r\n frameRequestId: null,\r\n timeBuffer: 0,\r\n timeLastTick: null,\r\n maxUpdates: null,\r\n maxFrameTime: 1000 / 30,\r\n lastUpdatesDeferred: 0,\r\n enabled: true\r\n };\r\n\r\n var runner = Common.extend(defaults, options);\r\n\r\n // for temporary back compatibility only\r\n runner.fps = 0;\r\n\r\n return runner;\r\n };\r\n\r\n /**\r\n * Continuously ticks a `Matter.Engine` by calling `Runner.tick` on the `requestAnimationFrame` event.\r\n * @method run\r\n * @param {engine} engine\r\n */\r\n Runner.run = function(runner, engine) {\r\n // create runner if engine is first argument\r\n runner.timeBuffer = Runner._frameDeltaFallback;\r\n\r\n (function onFrame(time){\r\n runner.frameRequestId = Runner._onNextFrame(runner, onFrame);\r\n\r\n if (time && runner.enabled) {\r\n Runner.tick(runner, engine, time);\r\n }\r\n })();\r\n\r\n return runner;\r\n };\r\n\r\n /**\r\n * A game loop utility that updates the engine and renderer by one step (a 'tick').\r\n * Features delta smoothing, time correction and fixed or dynamic timing.\r\n * Consider just `Engine.update(engine, delta)` if you're using your own loop.\r\n * @method tick\r\n * @param {runner} runner\r\n * @param {engine} engine\r\n * @param {number} time\r\n */\r\n Runner.tick = function(runner, engine, time) {\r\n var tickStartTime = Common.now(),\r\n engineDelta = runner.delta,\r\n updateCount = 0;\r\n\r\n // fixed timestep\r\n var frameDelta = time - runner.timeLastTick;\r\n\r\n if (!frameDelta || !runner.timeLastTick || frameDelta > Math.max(Runner._maxFrameDelta, runner.maxFrameTime)) {\r\n // dynamic timestep based on wall clock between calls\r\n frameDelta = runner.frameDelta || Runner._frameDeltaFallback;\r\n }\r\n\r\n if (runner.frameDeltaSmoothing) {\r\n // optimistically filter delta over a few frames, to improve stability\r\n runner.frameDeltaHistory.push(frameDelta);\r\n runner.frameDeltaHistory = runner.frameDeltaHistory.slice(-runner.frameDeltaHistorySize);\r\n var deltaHistorySorted = runner.frameDeltaHistory.slice(0).sort();\r\n\r\n // limit delta\r\n var deltaHistoryWindow = runner.frameDeltaHistory.slice(\r\n deltaHistorySorted.length * Runner._smoothingLowerBound, \r\n deltaHistorySorted.length * Runner._smoothingUpperBound\r\n );\r\n\r\n // update engine timing object\r\n var frameDeltaSmoothed = _mean(deltaHistoryWindow);\r\n frameDelta = frameDeltaSmoothed || frameDelta;\r\n }\r\n\r\n if (runner.frameDeltaSnapping) {\r\n frameDelta = 1000 / Math.round(1000 / frameDelta);\r\n }\r\n runner.frameDelta = frameDelta;\r\n runner.timeLastTick = time;\r\n runner.timeBuffer += runner.frameDelta;\r\n runner.timeBuffer = Common.clamp(\r\n runner.timeBuffer, 0, runner.frameDelta + engineDelta * Runner._timeBufferMargin\r\n );\r\n runner.lastUpdatesDeferred = 0;\r\n var maxUpdates = runner.maxUpdates || Math.ceil(runner.maxFrameTime / engineDelta);\r\n // create an event object\r\n var event = {\r\n timestamp: engine.timing.timestamp\r\n };\r\n\r\n Events.trigger(runner, 'beforeTick', event);\r\n\r\n // fps counter\r\n\r\n Events.trigger(runner, 'tick', event);\r\n\r\n var updateStartTime = Common.now();\r\n while (engineDelta > 0 && runner.timeBuffer >= engineDelta * Runner._timeBufferMargin) {\r\n // update\r\n Events.trigger(runner, 'beforeUpdate', event);\r\n\r\n Engine.update(engine, engineDelta);\r\n Events.trigger(runner, 'afterUpdate', event);\r\n\r\n runner.timeBuffer -= engineDelta;\r\n updateCount += 1;\r\n var elapsedTimeTotal = Common.now() - tickStartTime,\r\n elapsedTimeUpdates = Common.now() - updateStartTime,\r\n elapsedNextEstimate = elapsedTimeTotal + Runner._elapsedNextEstimate * elapsedTimeUpdates / updateCount;\r\n if (updateCount >= maxUpdates || elapsedNextEstimate > runner.maxFrameTime) {\r\n runner.lastUpdatesDeferred = Math.round(Math.max(0, (runner.timeBuffer / engineDelta) - Runner._timeBufferMargin));\r\n break;\r\n }\r\n }\r\n engine.timing.lastUpdatesPerFrame = updateCount;\r\n Events.trigger(runner, 'afterTick', event);\r\n if (runner.frameDeltaHistory.length >= 100) {\r\n if (runner.lastUpdatesDeferred && Math.round(runner.frameDelta / engineDelta) > maxUpdates) {\r\n Common.warnOnce('Matter.Runner: runner reached runner.maxUpdates, see docs.');\r\n } else if (runner.lastUpdatesDeferred) {\r\n Common.warnOnce('Matter.Runner: runner reached runner.maxFrameTime, see docs.');\r\n }\r\n if (typeof runner.isFixed !== 'undefined') {\r\n Common.warnOnce('Matter.Runner: runner.isFixed is now redundant, see docs.');\r\n }\r\n if (runner.deltaMin || runner.deltaMax) {\r\n Common.warnOnce('Matter.Runner: runner.deltaMin and runner.deltaMax were removed, see docs.');\r\n }\r\n if (runner.fps !== 0) {\r\n Common.warnOnce('Matter.Runner: runner.fps was replaced by runner.delta, see docs.');\r\n }\r\n }\r\n };\r\n\r\n /**\r\n * Ends execution of `Runner.run` on the given `runner`, by canceling the animation frame request event loop.\r\n * If you wish to only temporarily pause the engine, see `engine.enabled` instead.\r\n * @method stop\r\n * @param {runner} runner\r\n */\r\n Runner.stop = function(runner) {\r\n Runner._cancelNextFrame(runner);\r\n };\r\n\r\n /**\r\n * Alias for `Runner.run`.\r\n * @method start\r\n * @param {runner} runner\r\n * @param {engine} engine\r\n */\r\n Runner._onNextFrame = function(runner, callback) {\r\n if (typeof window !== 'undefined' && window.requestAnimationFrame) {\r\n runner.frameRequestId = window.requestAnimationFrame(callback);\r\n } else {\r\n throw new Error('Matter.Runner: missing required global window.requestAnimationFrame.');\r\n }\r\n return runner.frameRequestId;\r\n };\r\n Runner._cancelNextFrame = function(runner) {\r\n if (typeof window !== 'undefined' && window.cancelAnimationFrame) {\r\n window.cancelAnimationFrame(runner.frameRequestId);\r\n } else {\r\n throw new Error('Matter.Runner: missing required global window.cancelAnimationFrame.');\r\n }\r\n };\r\n\r\n var _mean = function(values) {\r\n var result = 0,\r\n valuesLength = values.length;\r\n for (var i = 0; i < valuesLength; i += 1) {\r\n result += values[i];\r\n }\r\n return (result / valuesLength) || 0;\r\n };\r\n /*\r\n *\r\n * Events Documentation\r\n *\r\n */\r\n\r\n /**\r\n * Fired at the start of a tick, before any updates to the engine or timing\r\n *\r\n * @event beforeTick\r\n * @param {} event An event object\r\n * @param {number} event.timestamp The engine.timing.timestamp of the event\r\n * @param {} event.source The source object of the event\r\n * @param {} event.name The name of the event\r\n */\r\n\r\n /**\r\n * Fired after engine timing updated, but just before update\r\n *\r\n * @event tick\r\n * @param {} event An event object\r\n * @param {number} event.timestamp The engine.timing.timestamp of the event\r\n * @param {} event.source The source object of the event\r\n * @param {} event.name The name of the event\r\n */\r\n\r\n /**\r\n * Fired at the end of a tick, after engine update and after rendering\r\n *\r\n * @event afterTick\r\n * @param {} event An event object\r\n * @param {number} event.timestamp The engine.timing.timestamp of the event\r\n * @param {} event.source The source object of the event\r\n * @param {} event.name The name of the event\r\n */\r\n\r\n /**\r\n * Fired before update\r\n *\r\n * @event beforeUpdate\r\n * @param {} event An event object\r\n * @param {number} event.timestamp The engine.timing.timestamp of the event\r\n * @param {} event.source The source object of the event\r\n * @param {} event.name The name of the event\r\n */\r\n\r\n /**\r\n * Fired after update\r\n *\r\n * @event afterUpdate\r\n * @param {} event An event object\r\n * @param {number} event.timestamp The engine.timing.timestamp of the event\r\n * @param {} event.source The source object of the event\r\n * @param {} event.name The name of the event\r\n */\r\n\r\n /*\r\n *\r\n * Properties Documentation\r\n *\r\n */\r\n\r\n /**\r\n * A flag that specifies whether the runner is running or not.\r\n *\r\n * @property enabled\r\n * @type boolean\r\n * @default true\r\n */\r\n\r\n /**\r\n * A `Boolean` that specifies if the runner should use a fixed timestep (otherwise it is variable).\r\n * If timing is fixed, then the apparent simulation speed will change depending on the frame rate (but behaviour will be deterministic).\r\n * If the timing is variable, then the apparent simulation speed will be constant (approximately, but at the cost of determininism).\r\n *\r\n * @property isFixed\r\n * @type boolean\r\n * @default false\r\n */\r\n\r\n /**\r\n * A `Number` that specifies the time step between updates in milliseconds.\r\n * If `engine.timing.isFixed` is set to `true`, then `delta` is fixed.\r\n * If it is `false`, then `delta` can dynamically change to maintain the correct apparent simulation speed.\r\n *\r\n * @property delta\r\n * @type number\r\n * @default 1000 / 60\r\n */\r\n\r\n})();\r\n\n\n/***/ }),\n\n/***/ 53614:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* The `Matter.Sleeping` module contains methods to manage the sleeping state of bodies.\r\n*\r\n* @class Sleeping\r\n*/\r\n\r\nvar Sleeping = {};\r\n\r\nmodule.exports = Sleeping;\r\n\r\nvar Body = __webpack_require__(22562);\r\nvar Events = __webpack_require__(35810);\r\nvar Common = __webpack_require__(53402);\r\n\r\n(function() {\r\n\r\n Sleeping._motionWakeThreshold = 0.18;\r\n Sleeping._motionSleepThreshold = 0.08;\r\n Sleeping._minBias = 0.9;\r\n\r\n /**\r\n * Puts bodies to sleep or wakes them up depending on their motion.\r\n * @method update\r\n * @param {body[]} bodies\r\n * @param {number} delta\r\n */\r\n Sleeping.update = function(bodies, delta) {\r\n var timeScale = delta / Common._baseDelta,\r\n motionSleepThreshold = Sleeping._motionSleepThreshold;\r\n \r\n // update bodies sleeping status\r\n for (var i = 0; i < bodies.length; i++) {\r\n var body = bodies[i],\r\n speed = Body.getSpeed(body),\r\n angularSpeed = Body.getAngularSpeed(body),\r\n motion = speed * speed + angularSpeed * angularSpeed;\r\n\r\n // wake up bodies if they have a force applied\r\n if (body.force.x !== 0 || body.force.y !== 0) {\r\n Sleeping.set(body, false);\r\n continue;\r\n }\r\n\r\n var minMotion = Math.min(body.motion, motion),\r\n maxMotion = Math.max(body.motion, motion);\r\n \r\n // biased average motion estimation between frames\r\n body.motion = Sleeping._minBias * minMotion + (1 - Sleeping._minBias) * maxMotion;\r\n\r\n if (body.sleepThreshold > 0 && body.motion < motionSleepThreshold) {\r\n body.sleepCounter += 1;\r\n \r\n if (body.sleepCounter >= body.sleepThreshold / timeScale) {\r\n Sleeping.set(body, true);\r\n }\r\n } else if (body.sleepCounter > 0) {\r\n body.sleepCounter -= 1;\r\n }\r\n }\r\n };\r\n\r\n /**\r\n * Given a set of colliding pairs, wakes the sleeping bodies involved.\r\n * @method afterCollisions\r\n * @param {pair[]} pairs\r\n */\r\n Sleeping.afterCollisions = function(pairs) {\r\n var motionSleepThreshold = Sleeping._motionSleepThreshold;\r\n\r\n // wake up bodies involved in collisions\r\n for (var i = 0; i < pairs.length; i++) {\r\n var pair = pairs[i];\r\n \r\n // don't wake inactive pairs\r\n if (!pair.isActive)\r\n continue;\r\n\r\n var collision = pair.collision,\r\n bodyA = collision.bodyA.parent, \r\n bodyB = collision.bodyB.parent;\r\n \r\n // don't wake if at least one body is static\r\n if ((bodyA.isSleeping && bodyB.isSleeping) || bodyA.isStatic || bodyB.isStatic)\r\n continue;\r\n \r\n if (bodyA.isSleeping || bodyB.isSleeping) {\r\n var sleepingBody = (bodyA.isSleeping && !bodyA.isStatic) ? bodyA : bodyB,\r\n movingBody = sleepingBody === bodyA ? bodyB : bodyA;\r\n\r\n if (!sleepingBody.isStatic && movingBody.motion > motionSleepThreshold) {\r\n Sleeping.set(sleepingBody, false);\r\n }\r\n }\r\n }\r\n };\r\n \r\n /**\r\n * Set a body as sleeping or awake.\r\n * @method set\r\n * @param {body} body\r\n * @param {boolean} isSleeping\r\n */\r\n Sleeping.set = function(body, isSleeping) {\r\n var wasSleeping = body.isSleeping;\r\n\r\n if (isSleeping) {\r\n body.isSleeping = true;\r\n body.sleepCounter = body.sleepThreshold;\r\n\r\n body.positionImpulse.x = 0;\r\n body.positionImpulse.y = 0;\r\n\r\n body.positionPrev.x = body.position.x;\r\n body.positionPrev.y = body.position.y;\r\n\r\n body.anglePrev = body.angle;\r\n body.speed = 0;\r\n body.angularSpeed = 0;\r\n body.motion = 0;\r\n\r\n if (!wasSleeping) {\r\n Events.trigger(body, 'sleepStart');\r\n }\r\n } else {\r\n body.isSleeping = false;\r\n body.sleepCounter = 0;\r\n\r\n if (wasSleeping) {\r\n Events.trigger(body, 'sleepEnd');\r\n }\r\n }\r\n };\r\n\r\n})();\r\n\n\n/***/ }),\n\n/***/ 66280:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* The `Matter.Bodies` module contains factory methods for creating rigid body models\r\n* with commonly used body configurations (such as rectangles, circles and other polygons).\r\n*\r\n* See the included usage [examples](https://github.com/liabru/matter-js/tree/master/examples).\r\n*\r\n* @class Bodies\r\n*/\r\n\r\n// TODO: true circle bodies\r\n\r\nvar Bodies = {};\r\n\r\nmodule.exports = Bodies;\r\n\r\nvar Vertices = __webpack_require__(41598);\r\nvar Common = __webpack_require__(53402);\r\nvar Body = __webpack_require__(22562);\r\nvar Bounds = __webpack_require__(15647);\r\nvar Vector = __webpack_require__(31725);\r\n\r\n(function() {\r\n\r\n /**\r\n * Creates a new rigid body model with a rectangle hull.\r\n * The options parameter is an object that specifies any properties you wish to override the defaults.\r\n * See the properties section of the `Matter.Body` module for detailed information on what you can pass via the `options` object.\r\n * @method rectangle\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {number} width\r\n * @param {number} height\r\n * @param {object} [options]\r\n * @return {body} A new rectangle body\r\n */\r\n Bodies.rectangle = function(x, y, width, height, options) {\r\n options = options || {};\r\n\r\n var rectangle = {\r\n label: 'Rectangle Body',\r\n position: { x: x, y: y },\r\n vertices: Vertices.fromPath('L 0 0 L ' + width + ' 0 L ' + width + ' ' + height + ' L 0 ' + height)\r\n };\r\n\r\n if (options.chamfer) {\r\n var chamfer = options.chamfer;\r\n rectangle.vertices = Vertices.chamfer(rectangle.vertices, chamfer.radius,\r\n chamfer.quality, chamfer.qualityMin, chamfer.qualityMax);\r\n delete options.chamfer;\r\n }\r\n\r\n return Body.create(Common.extend({}, rectangle, options));\r\n };\r\n\r\n /**\r\n * Creates a new rigid body model with a trapezoid hull.\r\n * The `slope` is parameterised as a fraction of `width` and must be < 1 to form a valid trapezoid.\r\n * The options parameter is an object that specifies any properties you wish to override the defaults.\r\n * See the properties section of the `Matter.Body` module for detailed information on what you can pass via the `options` object.\r\n * @method trapezoid\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {number} width\r\n * @param {number} height\r\n * @param {number} slope Must be a number < 1.\r\n * @param {object} [options]\r\n * @return {body} A new trapezoid body\r\n */\r\n Bodies.trapezoid = function(x, y, width, height, slope, options) {\r\n options = options || {};\r\n\r\n if (slope >= 1) {\r\n Common.warn('Bodies.trapezoid: slope parameter must be < 1.');\r\n }\r\n slope *= 0.5;\r\n var roof = (1 - (slope * 2)) * width;\r\n\r\n var x1 = width * slope,\r\n x2 = x1 + roof,\r\n x3 = x2 + x1,\r\n verticesPath;\r\n\r\n if (slope < 0.5) {\r\n verticesPath = 'L 0 0 L ' + x1 + ' ' + (-height) + ' L ' + x2 + ' ' + (-height) + ' L ' + x3 + ' 0';\r\n } else {\r\n verticesPath = 'L 0 0 L ' + x2 + ' ' + (-height) + ' L ' + x3 + ' 0';\r\n }\r\n\r\n var trapezoid = {\r\n label: 'Trapezoid Body',\r\n position: { x: x, y: y },\r\n vertices: Vertices.fromPath(verticesPath)\r\n };\r\n\r\n if (options.chamfer) {\r\n var chamfer = options.chamfer;\r\n trapezoid.vertices = Vertices.chamfer(trapezoid.vertices, chamfer.radius,\r\n chamfer.quality, chamfer.qualityMin, chamfer.qualityMax);\r\n delete options.chamfer;\r\n }\r\n\r\n return Body.create(Common.extend({}, trapezoid, options));\r\n };\r\n\r\n /**\r\n * Creates a new rigid body model with a circle hull.\r\n * The options parameter is an object that specifies any properties you wish to override the defaults.\r\n * See the properties section of the `Matter.Body` module for detailed information on what you can pass via the `options` object.\r\n * @method circle\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {number} radius\r\n * @param {object} [options]\r\n * @param {number} [maxSides]\r\n * @return {body} A new circle body\r\n */\r\n Bodies.circle = function(x, y, radius, options, maxSides) {\r\n options = options || {};\r\n\r\n var circle = {\r\n label: 'Circle Body',\r\n circleRadius: radius\r\n };\r\n\r\n // approximate circles with polygons until true circles implemented in SAT\r\n maxSides = maxSides || 25;\r\n var sides = Math.ceil(Math.max(10, Math.min(maxSides, radius)));\r\n\r\n // optimisation: always use even number of sides (half the number of unique axes)\r\n if (sides % 2 === 1)\r\n sides += 1;\r\n\r\n return Bodies.polygon(x, y, sides, radius, Common.extend({}, circle, options));\r\n };\r\n\r\n /**\r\n * Creates a new rigid body model with a regular polygon hull with the given number of sides.\r\n * The options parameter is an object that specifies any properties you wish to override the defaults.\r\n * See the properties section of the `Matter.Body` module for detailed information on what you can pass via the `options` object.\r\n * @method polygon\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {number} sides\r\n * @param {number} radius\r\n * @param {object} [options]\r\n * @return {body} A new regular polygon body\r\n */\r\n Bodies.polygon = function(x, y, sides, radius, options) {\r\n options = options || {};\r\n\r\n if (sides < 3)\r\n return Bodies.circle(x, y, radius, options);\r\n\r\n var theta = 2 * Math.PI / sides,\r\n path = '',\r\n offset = theta * 0.5;\r\n\r\n for (var i = 0; i < sides; i += 1) {\r\n var angle = offset + (i * theta),\r\n xx = Math.cos(angle) * radius,\r\n yy = Math.sin(angle) * radius;\r\n\r\n path += 'L ' + xx.toFixed(3) + ' ' + yy.toFixed(3) + ' ';\r\n }\r\n\r\n var polygon = {\r\n label: 'Polygon Body',\r\n position: { x: x, y: y },\r\n vertices: Vertices.fromPath(path)\r\n };\r\n\r\n if (options.chamfer) {\r\n var chamfer = options.chamfer;\r\n polygon.vertices = Vertices.chamfer(polygon.vertices, chamfer.radius,\r\n chamfer.quality, chamfer.qualityMin, chamfer.qualityMax);\r\n delete options.chamfer;\r\n }\r\n\r\n return Body.create(Common.extend({}, polygon, options));\r\n };\r\n\r\n /**\r\n * Utility to create a compound body based on set(s) of vertices.\r\n *\r\n * _Note:_ To optionally enable automatic concave vertices decomposition the [poly-decomp](https://github.com/schteppe/poly-decomp.js)\r\n * package must be first installed and provided see `Common.setDecomp`, otherwise the convex hull of each vertex set will be used.\r\n *\r\n * The resulting vertices are reorientated about their centre of mass,\r\n * and offset such that `body.position` corresponds to this point.\r\n *\r\n * The resulting offset may be found if needed by subtracting `body.bounds` from the original input bounds.\r\n * To later move the centre of mass see `Body.setCentre`.\r\n *\r\n * Note that automatic conconcave decomposition results are not always optimal.\r\n * For best results, simplify the input vertices as much as possible first.\r\n * By default this function applies some addtional simplification to help.\r\n *\r\n * Some outputs may also require further manual processing afterwards to be robust.\r\n * In particular some parts may need to be overlapped to avoid collision gaps.\r\n * Thin parts and sharp points should be avoided or removed where possible.\r\n *\r\n * The options parameter object specifies any `Matter.Body` properties you wish to override the defaults.\r\n *\r\n * See the properties section of the `Matter.Body` module for detailed information on what you can pass via the `options` object.\r\n * @method fromVertices\r\n * @param {number} x\r\n * @param {number} y\r\n * @param {array} vertexSets One or more arrays of vertex points e.g. `[[{ x: 0, y: 0 }...], ...]`.\r\n * @param {object} [options] The body options.\r\n * @param {bool} [flagInternal=false] Optionally marks internal edges with `isInternal`.\r\n * @param {number} [removeCollinear=0.01] Threshold when simplifying vertices along the same edge.\r\n * @param {number} [minimumArea=10] Threshold when removing small parts.\r\n * @param {number} [removeDuplicatePoints=0.01] Threshold when simplifying nearby vertices.\r\n * @return {body}\r\n */\r\n Bodies.fromVertices = function(x, y, vertexSets, options, flagInternal, removeCollinear, minimumArea, removeDuplicatePoints) {\r\n var decomp = Common.getDecomp(),\r\n canDecomp,\r\n body,\r\n parts,\r\n isConvex,\r\n isConcave,\r\n vertices,\r\n i,\r\n j,\r\n k,\r\n v,\r\n z;\r\n\r\n // check decomp is as expected\r\n canDecomp = Boolean(decomp && decomp.quickDecomp);\r\n\r\n options = options || {};\r\n parts = [];\r\n\r\n flagInternal = typeof flagInternal !== 'undefined' ? flagInternal : false;\r\n removeCollinear = typeof removeCollinear !== 'undefined' ? removeCollinear : 0.01;\r\n minimumArea = typeof minimumArea !== 'undefined' ? minimumArea : 10;\r\n removeDuplicatePoints = typeof removeDuplicatePoints !== 'undefined' ? removeDuplicatePoints : 0.01;\r\n\r\n // ensure vertexSets is an array of arrays\r\n if (!Common.isArray(vertexSets[0])) {\r\n vertexSets = [vertexSets];\r\n }\r\n\r\n for (v = 0; v < vertexSets.length; v += 1) {\r\n vertices = vertexSets[v];\r\n isConvex = Vertices.isConvex(vertices);\r\n isConcave = !isConvex;\r\n\r\n if (isConcave && !canDecomp) {\r\n Common.warnOnce(\r\n 'Bodies.fromVertices: Install the \\'poly-decomp\\' library and use Common.setDecomp or provide \\'decomp\\' as a global to decompose concave vertices.'\r\n );\r\n }\r\n\r\n if (isConvex || !canDecomp) {\r\n if (isConvex) {\r\n vertices = Vertices.clockwiseSort(vertices);\r\n } else {\r\n // fallback to convex hull when decomposition is not possible\r\n vertices = Vertices.hull(vertices);\r\n }\r\n\r\n parts.push({\r\n position: { x: x, y: y },\r\n vertices: vertices\r\n });\r\n } else {\r\n // initialise a decomposition\r\n var concave = vertices.map(function(vertex) {\r\n return [vertex.x, vertex.y];\r\n });\r\n\r\n // vertices are concave and simple, we can decompose into parts\r\n decomp.makeCCW(concave);\r\n if (removeCollinear !== false)\r\n decomp.removeCollinearPoints(concave, removeCollinear);\r\n if (removeDuplicatePoints !== false && decomp.removeDuplicatePoints)\r\n decomp.removeDuplicatePoints(concave, removeDuplicatePoints);\r\n\r\n // use the quick decomposition algorithm (Bayazit)\r\n var decomposed = decomp.quickDecomp(concave);\r\n\r\n // for each decomposed chunk\r\n for (i = 0; i < decomposed.length; i++) {\r\n var chunk = decomposed[i];\r\n\r\n // convert vertices into the correct structure\r\n var chunkVertices = chunk.map(function(vertices) {\r\n return {\r\n x: vertices[0],\r\n y: vertices[1]\r\n };\r\n });\r\n\r\n // skip small chunks\r\n if (minimumArea > 0 && Vertices.area(chunkVertices) < minimumArea)\r\n continue;\r\n\r\n // create a compound part\r\n parts.push({\r\n position: Vertices.centre(chunkVertices),\r\n vertices: chunkVertices\r\n });\r\n }\r\n }\r\n }\r\n\r\n // create body parts\r\n for (i = 0; i < parts.length; i++) {\r\n parts[i] = Body.create(Common.extend(parts[i], options));\r\n }\r\n\r\n // flag internal edges (coincident part edges)\r\n if (flagInternal) {\r\n var coincident_max_dist = 5;\r\n\r\n for (i = 0; i < parts.length; i++) {\r\n var partA = parts[i];\r\n\r\n for (j = i + 1; j < parts.length; j++) {\r\n var partB = parts[j];\r\n\r\n if (Bounds.overlaps(partA.bounds, partB.bounds)) {\r\n var pav = partA.vertices,\r\n pbv = partB.vertices;\r\n\r\n // iterate vertices of both parts\r\n for (k = 0; k < partA.vertices.length; k++) {\r\n for (z = 0; z < partB.vertices.length; z++) {\r\n // find distances between the vertices\r\n var da = Vector.magnitudeSquared(Vector.sub(pav[(k + 1) % pav.length], pbv[z])),\r\n db = Vector.magnitudeSquared(Vector.sub(pav[k], pbv[(z + 1) % pbv.length]));\r\n\r\n // if both vertices are very close, consider the edge concident (internal)\r\n if (da < coincident_max_dist && db < coincident_max_dist) {\r\n pav[k].isInternal = true;\r\n pbv[z].isInternal = true;\r\n }\r\n }\r\n }\r\n\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (parts.length > 1) {\r\n // create the parent body to be returned, that contains generated compound parts\r\n body = Body.create(Common.extend({ parts: parts.slice(0) }, options));\r\n\r\n // offset such that body.position is at the centre off mass\r\n Body.setPosition(body, { x: x, y: y });\r\n\r\n return body;\r\n } else {\r\n return parts[0];\r\n }\r\n };\r\n\r\n /**\r\n * Takes an array of Body objects and flags all internal edges (coincident parts) based on the maxDistance\r\n * value. The array is changed in-place and returned, so you can pass this function a `Body.parts` property.\r\n *\r\n * @method flagCoincidentParts\r\n * @param {body[]} parts - The Body parts, or array of bodies, to flag.\r\n * @param {number} [maxDistance=5]\r\n * @return {body[]} The modified `parts` parameter.\r\n */\r\n Bodies.flagCoincidentParts = function (parts, maxDistance)\r\n {\r\n if (maxDistance === undefined) { maxDistance = 5; }\r\n\r\n for (var i = 0; i < parts.length; i++)\r\n {\r\n var partA = parts[i];\r\n\r\n for (var j = i + 1; j < parts.length; j++)\r\n {\r\n var partB = parts[j];\r\n\r\n if (Bounds.overlaps(partA.bounds, partB.bounds))\r\n {\r\n var pav = partA.vertices;\r\n var pbv = partB.vertices;\r\n\r\n // iterate vertices of both parts\r\n for (var k = 0; k < partA.vertices.length; k++)\r\n {\r\n for (var z = 0; z < partB.vertices.length; z++)\r\n {\r\n // find distances between the vertices\r\n var da = Vector.magnitudeSquared(Vector.sub(pav[(k + 1) % pav.length], pbv[z]));\r\n var db = Vector.magnitudeSquared(Vector.sub(pav[k], pbv[(z + 1) % pbv.length]));\r\n\r\n // if both vertices are very close, consider the edge concident (internal)\r\n if (da < maxDistance && db < maxDistance)\r\n {\r\n pav[k].isInternal = true;\r\n pbv[z].isInternal = true;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n return parts;\r\n };\r\n\r\n})();\r\n\n\n/***/ }),\n\n/***/ 74116:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* The `Matter.Composites` module contains factory methods for creating composite bodies\r\n* with commonly used configurations (such as stacks and chains).\r\n*\r\n* See the included usage [examples](https://github.com/liabru/matter-js/tree/master/examples).\r\n*\r\n* @class Composites\r\n*/\r\n\r\nvar Composites = {};\r\n\r\nmodule.exports = Composites;\r\n\r\nvar Composite = __webpack_require__(69351);\r\nvar Constraint = __webpack_require__(48140);\r\nvar Common = __webpack_require__(53402);\r\nvar Body = __webpack_require__(22562);\r\nvar Bodies = __webpack_require__(66280);\r\n\r\n(function() {\r\n\r\n /**\r\n * Create a new composite containing bodies created in the callback in a grid arrangement.\r\n * This function uses the body's bounds to prevent overlaps.\r\n * @method stack\r\n * @param {number} x Starting position in X.\r\n * @param {number} y Starting position in Y.\r\n * @param {number} columns\r\n * @param {number} rows\r\n * @param {number} columnGap\r\n * @param {number} rowGap\r\n * @param {function} callback\r\n * @return {composite} A new composite containing objects created in the callback\r\n */\r\n Composites.stack = function(x, y, columns, rows, columnGap, rowGap, callback) {\r\n var stack = Composite.create({ label: 'Stack' }),\r\n currentX = x,\r\n currentY = y,\r\n lastBody,\r\n i = 0;\r\n\r\n for (var row = 0; row < rows; row++) {\r\n var maxHeight = 0;\r\n\r\n for (var column = 0; column < columns; column++) {\r\n var body = callback(currentX, currentY, column, row, lastBody, i);\r\n\r\n if (body) {\r\n var bodyHeight = body.bounds.max.y - body.bounds.min.y,\r\n bodyWidth = body.bounds.max.x - body.bounds.min.x;\r\n\r\n if (bodyHeight > maxHeight)\r\n maxHeight = bodyHeight;\r\n\r\n Body.translate(body, { x: bodyWidth * 0.5, y: bodyHeight * 0.5 });\r\n\r\n currentX = body.bounds.max.x + columnGap;\r\n\r\n Composite.addBody(stack, body);\r\n\r\n lastBody = body;\r\n i += 1;\r\n } else {\r\n currentX += columnGap;\r\n }\r\n }\r\n\r\n currentY += maxHeight + rowGap;\r\n currentX = x;\r\n }\r\n\r\n return stack;\r\n };\r\n\r\n /**\r\n * Chains all bodies in the given composite together using constraints.\r\n * @method chain\r\n * @param {composite} composite\r\n * @param {number} xOffsetA\r\n * @param {number} yOffsetA\r\n * @param {number} xOffsetB\r\n * @param {number} yOffsetB\r\n * @param {object} options\r\n * @return {composite} A new composite containing objects chained together with constraints\r\n */\r\n Composites.chain = function(composite, xOffsetA, yOffsetA, xOffsetB, yOffsetB, options) {\r\n var bodies = composite.bodies;\r\n\r\n for (var i = 1; i < bodies.length; i++) {\r\n var bodyA = bodies[i - 1],\r\n bodyB = bodies[i],\r\n bodyAHeight = bodyA.bounds.max.y - bodyA.bounds.min.y,\r\n bodyAWidth = bodyA.bounds.max.x - bodyA.bounds.min.x,\r\n bodyBHeight = bodyB.bounds.max.y - bodyB.bounds.min.y,\r\n bodyBWidth = bodyB.bounds.max.x - bodyB.bounds.min.x;\r\n\r\n var defaults = {\r\n bodyA: bodyA,\r\n pointA: { x: bodyAWidth * xOffsetA, y: bodyAHeight * yOffsetA },\r\n bodyB: bodyB,\r\n pointB: { x: bodyBWidth * xOffsetB, y: bodyBHeight * yOffsetB }\r\n };\r\n\r\n var constraint = Common.extend(defaults, options);\r\n\r\n Composite.addConstraint(composite, Constraint.create(constraint));\r\n }\r\n\r\n composite.label += ' Chain';\r\n\r\n return composite;\r\n };\r\n\r\n /**\r\n * Connects bodies in the composite with constraints in a grid pattern, with optional cross braces.\r\n * @method mesh\r\n * @param {composite} composite\r\n * @param {number} columns\r\n * @param {number} rows\r\n * @param {boolean} crossBrace\r\n * @param {object} options\r\n * @return {composite} The composite containing objects meshed together with constraints\r\n */\r\n Composites.mesh = function(composite, columns, rows, crossBrace, options) {\r\n var bodies = composite.bodies,\r\n row,\r\n col,\r\n bodyA,\r\n bodyB,\r\n bodyC;\r\n\r\n for (row = 0; row < rows; row++) {\r\n for (col = 1; col < columns; col++) {\r\n bodyA = bodies[(col - 1) + (row * columns)];\r\n bodyB = bodies[col + (row * columns)];\r\n Composite.addConstraint(composite, Constraint.create(Common.extend({ bodyA: bodyA, bodyB: bodyB }, options)));\r\n }\r\n\r\n if (row > 0) {\r\n for (col = 0; col < columns; col++) {\r\n bodyA = bodies[col + ((row - 1) * columns)];\r\n bodyB = bodies[col + (row * columns)];\r\n Composite.addConstraint(composite, Constraint.create(Common.extend({ bodyA: bodyA, bodyB: bodyB }, options)));\r\n\r\n if (crossBrace && col > 0) {\r\n bodyC = bodies[(col - 1) + ((row - 1) * columns)];\r\n Composite.addConstraint(composite, Constraint.create(Common.extend({ bodyA: bodyC, bodyB: bodyB }, options)));\r\n }\r\n\r\n if (crossBrace && col < columns - 1) {\r\n bodyC = bodies[(col + 1) + ((row - 1) * columns)];\r\n Composite.addConstraint(composite, Constraint.create(Common.extend({ bodyA: bodyC, bodyB: bodyB }, options)));\r\n }\r\n }\r\n }\r\n }\r\n\r\n composite.label += ' Mesh';\r\n\r\n return composite;\r\n };\r\n\r\n /**\r\n * Create a new composite containing bodies created in the callback in a pyramid arrangement.\r\n * This function uses the body's bounds to prevent overlaps.\r\n * @method pyramid\r\n * @param {number} x Starting position in X.\r\n * @param {number} y Starting position in Y.\r\n * @param {number} columns\r\n * @param {number} rows\r\n * @param {number} columnGap\r\n * @param {number} rowGap\r\n * @param {function} callback\r\n * @return {composite} A new composite containing objects created in the callback\r\n */\r\n Composites.pyramid = function(x, y, columns, rows, columnGap, rowGap, callback) {\r\n return Composites.stack(x, y, columns, rows, columnGap, rowGap, function(stackX, stackY, column, row, lastBody, i) {\r\n var actualRows = Math.min(rows, Math.ceil(columns / 2)),\r\n lastBodyWidth = lastBody ? lastBody.bounds.max.x - lastBody.bounds.min.x : 0;\r\n\r\n if (row > actualRows)\r\n return;\r\n\r\n // reverse row order\r\n row = actualRows - row;\r\n\r\n var start = row,\r\n end = columns - 1 - row;\r\n\r\n if (column < start || column > end)\r\n return;\r\n\r\n // retroactively fix the first body's position, since width was unknown\r\n if (i === 1) {\r\n Body.translate(lastBody, { x: (column + (columns % 2 === 1 ? 1 : -1)) * lastBodyWidth, y: 0 });\r\n }\r\n\r\n var xOffset = lastBody ? column * lastBodyWidth : 0;\r\n\r\n return callback(x + xOffset + column * columnGap, stackY, column, row, lastBody, i);\r\n });\r\n };\r\n\r\n /**\r\n * This has now moved to the [newtonsCradle example](https://github.com/liabru/matter-js/blob/master/examples/newtonsCradle.js), follow that instead as this function is deprecated here.\r\n * @deprecated moved to newtonsCradle example\r\n * @method newtonsCradle\r\n * @param {number} x Starting position in X.\r\n * @param {number} y Starting position in Y.\r\n * @param {number} number\r\n * @param {number} size\r\n * @param {number} length\r\n * @return {composite} A new composite newtonsCradle body\r\n */\r\n Composites.newtonsCradle = function(x, y, number, size, length) {\r\n var newtonsCradle = Composite.create({ label: 'Newtons Cradle' });\r\n\r\n for (var i = 0; i < number; i++) {\r\n var separation = 1.9,\r\n circle = Bodies.circle(x + i * (size * separation), y + length, size,\r\n { inertia: Infinity, restitution: 1, friction: 0, frictionAir: 0.0001, slop: 1 }),\r\n constraint = Constraint.create({ pointA: { x: x + i * (size * separation), y: y }, bodyB: circle });\r\n\r\n Composite.addBody(newtonsCradle, circle);\r\n Composite.addConstraint(newtonsCradle, constraint);\r\n }\r\n\r\n return newtonsCradle;\r\n };\r\n\r\n /**\r\n * This has now moved to the [car example](https://github.com/liabru/matter-js/blob/master/examples/car.js), follow that instead as this function is deprecated here.\r\n * @deprecated moved to car example\r\n * @method car\r\n * @param {number} x Starting position in X.\r\n * @param {number} y Starting position in Y.\r\n * @param {number} width\r\n * @param {number} height\r\n * @param {number} wheelSize\r\n * @return {composite} A new composite car body\r\n */\r\n Composites.car = function(x, y, width, height, wheelSize) {\r\n var group = Body.nextGroup(true),\r\n wheelBase = 20,\r\n wheelAOffset = -width * 0.5 + wheelBase,\r\n wheelBOffset = width * 0.5 - wheelBase,\r\n wheelYOffset = 0;\r\n\r\n var car = Composite.create({ label: 'Car' }),\r\n body = Bodies.rectangle(x, y, width, height, {\r\n collisionFilter: {\r\n group: group\r\n },\r\n chamfer: {\r\n radius: height * 0.5\r\n },\r\n density: 0.0002\r\n });\r\n\r\n var wheelA = Bodies.circle(x + wheelAOffset, y + wheelYOffset, wheelSize, {\r\n collisionFilter: {\r\n group: group\r\n },\r\n friction: 0.8\r\n });\r\n\r\n var wheelB = Bodies.circle(x + wheelBOffset, y + wheelYOffset, wheelSize, {\r\n collisionFilter: {\r\n group: group\r\n },\r\n friction: 0.8\r\n });\r\n\r\n var axelA = Constraint.create({\r\n bodyB: body,\r\n pointB: { x: wheelAOffset, y: wheelYOffset },\r\n bodyA: wheelA,\r\n stiffness: 1,\r\n length: 0\r\n });\r\n\r\n var axelB = Constraint.create({\r\n bodyB: body,\r\n pointB: { x: wheelBOffset, y: wheelYOffset },\r\n bodyA: wheelB,\r\n stiffness: 1,\r\n length: 0\r\n });\r\n\r\n Composite.addBody(car, body);\r\n Composite.addBody(car, wheelA);\r\n Composite.addBody(car, wheelB);\r\n Composite.addConstraint(car, axelA);\r\n Composite.addConstraint(car, axelB);\r\n\r\n return car;\r\n };\r\n\r\n /**\r\n * This has now moved to the [softBody example](https://github.com/liabru/matter-js/blob/master/examples/softBody.js)\r\n * and the [cloth example](https://github.com/liabru/matter-js/blob/master/examples/cloth.js), follow those instead as this function is deprecated here.\r\n * @deprecated moved to softBody and cloth examples\r\n * @method softBody\r\n * @param {number} x Starting position in X.\r\n * @param {number} y Starting position in Y.\r\n * @param {number} columns\r\n * @param {number} rows\r\n * @param {number} columnGap\r\n * @param {number} rowGap\r\n * @param {boolean} crossBrace\r\n * @param {number} particleRadius\r\n * @param {} particleOptions\r\n * @param {} constraintOptions\r\n * @return {composite} A new composite softBody\r\n */\r\n Composites.softBody = function(x, y, columns, rows, columnGap, rowGap, crossBrace, particleRadius, particleOptions, constraintOptions) {\r\n particleOptions = Common.extend({ inertia: Infinity }, particleOptions);\r\n constraintOptions = Common.extend({ stiffness: 0.2, render: { type: 'line', anchors: false } }, constraintOptions);\r\n\r\n var softBody = Composites.stack(x, y, columns, rows, columnGap, rowGap, function(stackX, stackY) {\r\n return Bodies.circle(stackX, stackY, particleRadius, particleOptions);\r\n });\r\n\r\n Composites.mesh(softBody, columns, rows, crossBrace, constraintOptions);\r\n\r\n softBody.label = 'Soft Body';\r\n\r\n return softBody;\r\n };\r\n\r\n})();\r\n\n\n/***/ }),\n\n/***/ 66615:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* The `Matter.Axes` module contains methods for creating and manipulating sets of axes.\r\n*\r\n* @class Axes\r\n*/\r\n\r\nvar Axes = {};\r\n\r\nmodule.exports = Axes;\r\n\r\nvar Vector = __webpack_require__(31725);\r\nvar Common = __webpack_require__(53402);\r\n\r\n(function() {\r\n\r\n /**\r\n * Creates a new set of axes from the given vertices.\r\n * @method fromVertices\r\n * @param {vertices} vertices\r\n * @return {axes} A new axes from the given vertices\r\n */\r\n Axes.fromVertices = function(vertices) {\r\n var axes = {};\r\n\r\n // find the unique axes, using edge normal gradients\r\n for (var i = 0; i < vertices.length; i++) {\r\n var j = (i + 1) % vertices.length, \r\n normal = Vector.normalise({ \r\n x: vertices[j].y - vertices[i].y, \r\n y: vertices[i].x - vertices[j].x\r\n }),\r\n gradient = (normal.y === 0) ? Infinity : (normal.x / normal.y);\r\n \r\n // limit precision\r\n gradient = gradient.toFixed(3).toString();\r\n axes[gradient] = normal;\r\n }\r\n\r\n return Common.values(axes);\r\n };\r\n\r\n /**\r\n * Rotates a set of axes by the given angle.\r\n * @method rotate\r\n * @param {axes} axes\r\n * @param {number} angle\r\n */\r\n Axes.rotate = function(axes, angle) {\r\n if (angle === 0)\r\n return;\r\n \r\n var cos = Math.cos(angle),\r\n sin = Math.sin(angle);\r\n\r\n for (var i = 0; i < axes.length; i++) {\r\n var axis = axes[i],\r\n xx;\r\n xx = axis.x * cos - axis.y * sin;\r\n axis.y = axis.x * sin + axis.y * cos;\r\n axis.x = xx;\r\n }\r\n };\r\n\r\n})();\r\n\n\n/***/ }),\n\n/***/ 15647:\n/***/ ((module) => {\n\n/**\r\n* The `Matter.Bounds` module contains methods for creating and manipulating axis-aligned bounding boxes (AABB).\r\n*\r\n* @class Bounds\r\n*/\r\n\r\nvar Bounds = {};\r\n\r\nmodule.exports = Bounds;\r\n\r\n(function() {\r\n\r\n /**\r\n * Creates a new axis-aligned bounding box (AABB) for the given vertices.\r\n * @method create\r\n * @param {vertices} vertices\r\n * @return {bounds} A new bounds object\r\n */\r\n Bounds.create = function(vertices) {\r\n var bounds = { \r\n min: { x: 0, y: 0 }, \r\n max: { x: 0, y: 0 }\r\n };\r\n\r\n if (vertices)\r\n Bounds.update(bounds, vertices);\r\n \r\n return bounds;\r\n };\r\n\r\n /**\r\n * Updates bounds using the given vertices and extends the bounds given a velocity.\r\n * @method update\r\n * @param {bounds} bounds\r\n * @param {vertices} vertices\r\n * @param {vector} velocity\r\n */\r\n Bounds.update = function(bounds, vertices, velocity) {\r\n bounds.min.x = Infinity;\r\n bounds.max.x = -Infinity;\r\n bounds.min.y = Infinity;\r\n bounds.max.y = -Infinity;\r\n\r\n for (var i = 0; i < vertices.length; i++) {\r\n var vertex = vertices[i];\r\n if (vertex.x > bounds.max.x) bounds.max.x = vertex.x;\r\n if (vertex.x < bounds.min.x) bounds.min.x = vertex.x;\r\n if (vertex.y > bounds.max.y) bounds.max.y = vertex.y;\r\n if (vertex.y < bounds.min.y) bounds.min.y = vertex.y;\r\n }\r\n \r\n if (velocity) {\r\n if (velocity.x > 0) {\r\n bounds.max.x += velocity.x;\r\n } else {\r\n bounds.min.x += velocity.x;\r\n }\r\n \r\n if (velocity.y > 0) {\r\n bounds.max.y += velocity.y;\r\n } else {\r\n bounds.min.y += velocity.y;\r\n }\r\n }\r\n };\r\n\r\n /**\r\n * Returns true if the bounds contains the given point.\r\n * @method contains\r\n * @param {bounds} bounds\r\n * @param {vector} point\r\n * @return {boolean} True if the bounds contain the point, otherwise false\r\n */\r\n Bounds.contains = function(bounds, point) {\r\n return point.x >= bounds.min.x && point.x <= bounds.max.x \r\n && point.y >= bounds.min.y && point.y <= bounds.max.y;\r\n };\r\n\r\n /**\r\n * Returns true if the two bounds intersect.\r\n * @method overlaps\r\n * @param {bounds} boundsA\r\n * @param {bounds} boundsB\r\n * @return {boolean} True if the bounds overlap, otherwise false\r\n */\r\n Bounds.overlaps = function(boundsA, boundsB) {\r\n return (boundsA.min.x <= boundsB.max.x && boundsA.max.x >= boundsB.min.x\r\n && boundsA.max.y >= boundsB.min.y && boundsA.min.y <= boundsB.max.y);\r\n };\r\n\r\n /**\r\n * Translates the bounds by the given vector.\r\n * @method translate\r\n * @param {bounds} bounds\r\n * @param {vector} vector\r\n */\r\n Bounds.translate = function(bounds, vector) {\r\n bounds.min.x += vector.x;\r\n bounds.max.x += vector.x;\r\n bounds.min.y += vector.y;\r\n bounds.max.y += vector.y;\r\n };\r\n\r\n /**\r\n * Shifts the bounds to the given position.\r\n * @method shift\r\n * @param {bounds} bounds\r\n * @param {vector} position\r\n */\r\n Bounds.shift = function(bounds, position) {\r\n var deltaX = bounds.max.x - bounds.min.x,\r\n deltaY = bounds.max.y - bounds.min.y;\r\n \r\n bounds.min.x = position.x;\r\n bounds.max.x = position.x + deltaX;\r\n bounds.min.y = position.y;\r\n bounds.max.y = position.y + deltaY;\r\n };\r\n\r\n /**\r\n * Returns a translation vector that wraps the `objectBounds` inside the `bounds`.\r\n * @method wrap\r\n * @param {bounds} objectBounds The bounds of the object to wrap inside the bounds.\r\n * @param {bounds} bounds The bounds to wrap the body inside.\r\n * @param {number} [padding=0] - An amount added to the boundary.\r\n * @returns {?Matter.Vector} A translation vector (only if wrapping is required).\r\n */\r\n Bounds.wrap = function(objectBounds, bounds, padding) {\r\n var x = null,\r\n y = null;\r\n\r\n if (typeof bounds.min.x !== 'undefined' && typeof bounds.max.x !== 'undefined') {\r\n if (objectBounds.min.x > bounds.max.x) {\r\n x = bounds.min.x - objectBounds.max.x;\r\n } else if (objectBounds.max.x < bounds.min.x) {\r\n x = bounds.max.x - objectBounds.min.x;\r\n }\r\n }\r\n \r\n if (typeof bounds.min.y !== 'undefined' && typeof bounds.max.y !== 'undefined') {\r\n if (objectBounds.min.y > bounds.max.y) {\r\n y = bounds.min.y - objectBounds.max.y;\r\n } else if (objectBounds.max.y < bounds.min.y) {\r\n y = bounds.max.y - objectBounds.min.y;\r\n }\r\n }\r\n \r\n if (x !== null || y !== null) {\r\n return {\r\n x: x || 0,\r\n y: y || 0\r\n };\r\n }\r\n };\r\n \r\n})();\r\n\n\n/***/ }),\n\n/***/ 74058:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* The `Matter.Svg` module contains methods for converting SVG images into an array of vector points.\r\n*\r\n* To use this module you also need the SVGPathSeg polyfill: https://github.com/progers/pathseg\r\n*\r\n* See the included usage [examples](https://github.com/liabru/matter-js/tree/master/examples).\r\n*\r\n* @class Svg\r\n*/\r\n\r\nvar Svg = {};\r\n\r\nmodule.exports = Svg;\r\n\r\nvar Bounds = __webpack_require__(15647);\r\nvar Common = __webpack_require__(53402);\r\n\r\n(function() {\r\n\r\n /**\r\n * Converts an SVG path into an array of vector points.\r\n * If the input path forms a concave shape, you must decompose the result into convex parts before use.\r\n * See `Bodies.fromVertices` which provides support for this.\r\n * Note that this function is not guaranteed to support complex paths (such as those with holes).\r\n * You must load the `pathseg.js` polyfill on newer browsers.\r\n * @method pathToVertices\r\n * @param {SVGPathElement} path\r\n * @param {Number} [sampleLength=15]\r\n * @return {Vector[]} points\r\n */\r\n Svg.pathToVertices = function(path, sampleLength) {\r\n if (typeof window !== 'undefined' && !('SVGPathSeg' in window)) {\r\n Common.warn('Svg.pathToVertices: SVGPathSeg not defined, a polyfill is required.');\r\n }\r\n\r\n // https://github.com/wout/svg.topoly.js/blob/master/svg.topoly.js\r\n var i, il, total, point, segment, segments, \r\n segmentsQueue, lastSegment, \r\n lastPoint, segmentIndex, points = [],\r\n lx, ly, length = 0, x = 0, y = 0;\r\n\r\n sampleLength = sampleLength || 15;\r\n\r\n var addPoint = function(px, py, pathSegType) {\r\n // all odd-numbered path types are relative except PATHSEG_CLOSEPATH (1)\r\n var isRelative = pathSegType % 2 === 1 && pathSegType > 1;\r\n\r\n // when the last point doesn't equal the current point add the current point\r\n if (!lastPoint || px != lastPoint.x || py != lastPoint.y) {\r\n if (lastPoint && isRelative) {\r\n lx = lastPoint.x;\r\n ly = lastPoint.y;\r\n } else {\r\n lx = 0;\r\n ly = 0;\r\n }\r\n\r\n var point = {\r\n x: lx + px,\r\n y: ly + py\r\n };\r\n\r\n // set last point\r\n if (isRelative || !lastPoint) {\r\n lastPoint = point;\r\n }\r\n\r\n points.push(point);\r\n\r\n x = lx + px;\r\n y = ly + py;\r\n }\r\n };\r\n\r\n var addSegmentPoint = function(segment) {\r\n var segType = segment.pathSegTypeAsLetter.toUpperCase();\r\n\r\n // skip path ends\r\n if (segType === 'Z') \r\n return;\r\n\r\n // map segment to x and y\r\n switch (segType) {\r\n\r\n case 'M':\r\n case 'L':\r\n case 'T':\r\n case 'C':\r\n case 'S':\r\n case 'Q':\r\n x = segment.x;\r\n y = segment.y;\r\n break;\r\n case 'H':\r\n x = segment.x;\r\n break;\r\n case 'V':\r\n y = segment.y;\r\n break;\r\n }\r\n\r\n addPoint(x, y, segment.pathSegType);\r\n };\r\n\r\n // ensure path is absolute\r\n Svg._svgPathToAbsolute(path);\r\n\r\n // get total length\r\n total = path.getTotalLength();\r\n\r\n // queue segments\r\n segments = [];\r\n for (i = 0; i < path.pathSegList.numberOfItems; i += 1)\r\n segments.push(path.pathSegList.getItem(i));\r\n\r\n segmentsQueue = segments.concat();\r\n\r\n // sample through path\r\n while (length < total) {\r\n // get segment at position\r\n segmentIndex = path.getPathSegAtLength(length);\r\n segment = segments[segmentIndex];\r\n\r\n // new segment\r\n if (segment != lastSegment) {\r\n while (segmentsQueue.length && segmentsQueue[0] != segment)\r\n addSegmentPoint(segmentsQueue.shift());\r\n\r\n lastSegment = segment;\r\n }\r\n\r\n // add points in between when curving\r\n // TODO: adaptive sampling\r\n switch (segment.pathSegTypeAsLetter.toUpperCase()) {\r\n\r\n case 'C':\r\n case 'T':\r\n case 'S':\r\n case 'Q':\r\n case 'A':\r\n point = path.getPointAtLength(length);\r\n addPoint(point.x, point.y, 0);\r\n break;\r\n\r\n }\r\n\r\n // increment by sample value\r\n length += sampleLength;\r\n }\r\n\r\n // add remaining segments not passed by sampling\r\n for (i = 0, il = segmentsQueue.length; i < il; ++i)\r\n addSegmentPoint(segmentsQueue[i]);\r\n\r\n return points;\r\n };\r\n\r\n Svg._svgPathToAbsolute = function(path) {\r\n // http://phrogz.net/convert-svg-path-to-all-absolute-commands\r\n // Copyright (c) Gavin Kistner\r\n // http://phrogz.net/js/_ReuseLicense.txt\r\n // Modifications: tidy formatting and naming\r\n var x0, y0, x1, y1, x2, y2, segs = path.pathSegList,\r\n x = 0, y = 0, len = segs.numberOfItems;\r\n\r\n for (var i = 0; i < len; ++i) {\r\n var seg = segs.getItem(i),\r\n segType = seg.pathSegTypeAsLetter;\r\n\r\n if (/[MLHVCSQTA]/.test(segType)) {\r\n if ('x' in seg) x = seg.x;\r\n if ('y' in seg) y = seg.y;\r\n } else {\r\n if ('x1' in seg) x1 = x + seg.x1;\r\n if ('x2' in seg) x2 = x + seg.x2;\r\n if ('y1' in seg) y1 = y + seg.y1;\r\n if ('y2' in seg) y2 = y + seg.y2;\r\n if ('x' in seg) x += seg.x;\r\n if ('y' in seg) y += seg.y;\r\n\r\n switch (segType) {\r\n\r\n case 'm':\r\n segs.replaceItem(path.createSVGPathSegMovetoAbs(x, y), i);\r\n break;\r\n case 'l':\r\n segs.replaceItem(path.createSVGPathSegLinetoAbs(x, y), i);\r\n break;\r\n case 'h':\r\n segs.replaceItem(path.createSVGPathSegLinetoHorizontalAbs(x), i);\r\n break;\r\n case 'v':\r\n segs.replaceItem(path.createSVGPathSegLinetoVerticalAbs(y), i);\r\n break;\r\n case 'c':\r\n segs.replaceItem(path.createSVGPathSegCurvetoCubicAbs(x, y, x1, y1, x2, y2), i);\r\n break;\r\n case 's':\r\n segs.replaceItem(path.createSVGPathSegCurvetoCubicSmoothAbs(x, y, x2, y2), i);\r\n break;\r\n case 'q':\r\n segs.replaceItem(path.createSVGPathSegCurvetoQuadraticAbs(x, y, x1, y1), i);\r\n break;\r\n case 't':\r\n segs.replaceItem(path.createSVGPathSegCurvetoQuadraticSmoothAbs(x, y), i);\r\n break;\r\n case 'a':\r\n segs.replaceItem(path.createSVGPathSegArcAbs(x, y, seg.r1, seg.r2, seg.angle, seg.largeArcFlag, seg.sweepFlag), i);\r\n break;\r\n case 'z':\r\n case 'Z':\r\n x = x0;\r\n y = y0;\r\n break;\r\n\r\n }\r\n }\r\n\r\n if (segType == 'M' || segType == 'm') {\r\n x0 = x;\r\n y0 = y;\r\n }\r\n }\r\n };\r\n\r\n})();\n\n/***/ }),\n\n/***/ 31725:\n/***/ ((module) => {\n\n/**\r\n* The `Matter.Vector` module contains methods for creating and manipulating vectors.\r\n* Vectors are the basis of all the geometry related operations in the engine.\r\n* A `Matter.Vector` object is of the form `{ x: 0, y: 0 }`.\r\n*\r\n* See the included usage [examples](https://github.com/liabru/matter-js/tree/master/examples).\r\n*\r\n* @class Vector\r\n*/\r\n\r\n// TODO: consider params for reusing vector objects\r\n\r\nvar Vector = {};\r\n\r\nmodule.exports = Vector;\r\n\r\n(function() {\r\n\r\n /**\r\n * Creates a new vector.\r\n * @method create\r\n * @param {number} x\r\n * @param {number} y\r\n * @return {vector} A new vector\r\n */\r\n Vector.create = function(x, y) {\r\n return { x: x || 0, y: y || 0 };\r\n };\r\n\r\n /**\r\n * Returns a new vector with `x` and `y` copied from the given `vector`.\r\n * @method clone\r\n * @param {vector} vector\r\n * @return {vector} A new cloned vector\r\n */\r\n Vector.clone = function(vector) {\r\n return { x: vector.x, y: vector.y };\r\n };\r\n\r\n /**\r\n * Returns the magnitude (length) of a vector.\r\n * @method magnitude\r\n * @param {vector} vector\r\n * @return {number} The magnitude of the vector\r\n */\r\n Vector.magnitude = function(vector) {\r\n return Math.sqrt((vector.x * vector.x) + (vector.y * vector.y));\r\n };\r\n\r\n /**\r\n * Returns the magnitude (length) of a vector (therefore saving a `sqrt` operation).\r\n * @method magnitudeSquared\r\n * @param {vector} vector\r\n * @return {number} The squared magnitude of the vector\r\n */\r\n Vector.magnitudeSquared = function(vector) {\r\n return (vector.x * vector.x) + (vector.y * vector.y);\r\n };\r\n\r\n /**\r\n * Rotates the vector about (0, 0) by specified angle.\r\n * @method rotate\r\n * @param {vector} vector\r\n * @param {number} angle\r\n * @param {vector} [output]\r\n * @return {vector} The vector rotated about (0, 0)\r\n */\r\n Vector.rotate = function(vector, angle, output) {\r\n var cos = Math.cos(angle), sin = Math.sin(angle);\r\n if (!output) output = {};\r\n var x = vector.x * cos - vector.y * sin;\r\n output.y = vector.x * sin + vector.y * cos;\r\n output.x = x;\r\n return output;\r\n };\r\n\r\n /**\r\n * Rotates the vector about a specified point by specified angle.\r\n * @method rotateAbout\r\n * @param {vector} vector\r\n * @param {number} angle\r\n * @param {vector} point\r\n * @param {vector} [output]\r\n * @return {vector} A new vector rotated about the point\r\n */\r\n Vector.rotateAbout = function(vector, angle, point, output) {\r\n var cos = Math.cos(angle), sin = Math.sin(angle);\r\n if (!output) output = {};\r\n var x = point.x + ((vector.x - point.x) * cos - (vector.y - point.y) * sin);\r\n output.y = point.y + ((vector.x - point.x) * sin + (vector.y - point.y) * cos);\r\n output.x = x;\r\n return output;\r\n };\r\n\r\n /**\r\n * Normalises a vector (such that its magnitude is `1`).\r\n * @method normalise\r\n * @param {vector} vector\r\n * @return {vector} A new vector normalised\r\n */\r\n Vector.normalise = function(vector) {\r\n var magnitude = Vector.magnitude(vector);\r\n if (magnitude === 0)\r\n return { x: 0, y: 0 };\r\n return { x: vector.x / magnitude, y: vector.y / magnitude };\r\n };\r\n\r\n /**\r\n * Returns the dot-product of two vectors.\r\n * @method dot\r\n * @param {vector} vectorA\r\n * @param {vector} vectorB\r\n * @return {number} The dot product of the two vectors\r\n */\r\n Vector.dot = function(vectorA, vectorB) {\r\n return (vectorA.x * vectorB.x) + (vectorA.y * vectorB.y);\r\n };\r\n\r\n /**\r\n * Returns the cross-product of two vectors.\r\n * @method cross\r\n * @param {vector} vectorA\r\n * @param {vector} vectorB\r\n * @return {number} The cross product of the two vectors\r\n */\r\n Vector.cross = function(vectorA, vectorB) {\r\n return (vectorA.x * vectorB.y) - (vectorA.y * vectorB.x);\r\n };\r\n\r\n /**\r\n * Returns the cross-product of three vectors.\r\n * @method cross3\r\n * @param {vector} vectorA\r\n * @param {vector} vectorB\r\n * @param {vector} vectorC\r\n * @return {number} The cross product of the three vectors\r\n */\r\n Vector.cross3 = function(vectorA, vectorB, vectorC) {\r\n return (vectorB.x - vectorA.x) * (vectorC.y - vectorA.y) - (vectorB.y - vectorA.y) * (vectorC.x - vectorA.x);\r\n };\r\n\r\n /**\r\n * Adds the two vectors.\r\n * @method add\r\n * @param {vector} vectorA\r\n * @param {vector} vectorB\r\n * @param {vector} [output]\r\n * @return {vector} A new vector of vectorA and vectorB added\r\n */\r\n Vector.add = function(vectorA, vectorB, output) {\r\n if (!output) output = {};\r\n output.x = vectorA.x + vectorB.x;\r\n output.y = vectorA.y + vectorB.y;\r\n return output;\r\n };\r\n\r\n /**\r\n * Subtracts the two vectors.\r\n * @method sub\r\n * @param {vector} vectorA\r\n * @param {vector} vectorB\r\n * @param {vector} [output]\r\n * @return {vector} A new vector of vectorA and vectorB subtracted\r\n */\r\n Vector.sub = function(vectorA, vectorB, output) {\r\n if (!output) output = {};\r\n output.x = vectorA.x - vectorB.x;\r\n output.y = vectorA.y - vectorB.y;\r\n return output;\r\n };\r\n\r\n /**\r\n * Multiplies a vector and a scalar.\r\n * @method mult\r\n * @param {vector} vector\r\n * @param {number} scalar\r\n * @return {vector} A new vector multiplied by scalar\r\n */\r\n Vector.mult = function(vector, scalar) {\r\n return { x: vector.x * scalar, y: vector.y * scalar };\r\n };\r\n\r\n /**\r\n * Divides a vector and a scalar.\r\n * @method div\r\n * @param {vector} vector\r\n * @param {number} scalar\r\n * @return {vector} A new vector divided by scalar\r\n */\r\n Vector.div = function(vector, scalar) {\r\n return { x: vector.x / scalar, y: vector.y / scalar };\r\n };\r\n\r\n /**\r\n * Returns the perpendicular vector. Set `negate` to true for the perpendicular in the opposite direction.\r\n * @method perp\r\n * @param {vector} vector\r\n * @param {bool} [negate=false]\r\n * @return {vector} The perpendicular vector\r\n */\r\n Vector.perp = function(vector, negate) {\r\n negate = negate === true ? -1 : 1;\r\n return { x: negate * -vector.y, y: negate * vector.x };\r\n };\r\n\r\n /**\r\n * Negates both components of a vector such that it points in the opposite direction.\r\n * @method neg\r\n * @param {vector} vector\r\n * @return {vector} The negated vector\r\n */\r\n Vector.neg = function(vector) {\r\n return { x: -vector.x, y: -vector.y };\r\n };\r\n\r\n /**\r\n * Returns the angle between the vector `vectorB - vectorA` and the x-axis in radians.\r\n * @method angle\r\n * @param {vector} vectorA\r\n * @param {vector} vectorB\r\n * @return {number} The angle in radians\r\n */\r\n Vector.angle = function(vectorA, vectorB) {\r\n return Math.atan2(vectorB.y - vectorA.y, vectorB.x - vectorA.x);\r\n };\r\n\r\n /**\r\n * Temporary vector pool (not thread-safe).\r\n * @property _temp\r\n * @type {vector[]}\r\n * @private\r\n */\r\n Vector._temp = [\r\n Vector.create(), Vector.create(), \r\n Vector.create(), Vector.create(), \r\n Vector.create(), Vector.create()\r\n ];\r\n\r\n})();\n\n/***/ }),\n\n/***/ 41598:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* The `Matter.Vertices` module contains methods for creating and manipulating sets of vertices.\r\n* A set of vertices is an array of `Matter.Vector` with additional indexing properties inserted by `Vertices.create`.\r\n* A `Matter.Body` maintains a set of vertices to represent the shape of the object (its convex hull).\r\n*\r\n* See the included usage [examples](https://github.com/liabru/matter-js/tree/master/examples).\r\n*\r\n* @class Vertices\r\n*/\r\n\r\nvar Vertices = {};\r\n\r\nmodule.exports = Vertices;\r\n\r\nvar Vector = __webpack_require__(31725);\r\nvar Common = __webpack_require__(53402);\r\n\r\n(function() {\r\n\r\n /**\r\n * Creates a new set of `Matter.Body` compatible vertices.\r\n * The `points` argument accepts an array of `Matter.Vector` points orientated around the origin `(0, 0)`, for example:\r\n *\r\n * [{ x: 0, y: 0 }, { x: 25, y: 50 }, { x: 50, y: 0 }]\r\n *\r\n * The `Vertices.create` method returns a new array of vertices, which are similar to Matter.Vector objects,\r\n * but with some additional references required for efficient collision detection routines.\r\n *\r\n * Vertices must be specified in clockwise order.\r\n *\r\n * Note that the `body` argument is not optional, a `Matter.Body` reference must be provided.\r\n *\r\n * @method create\r\n * @param {vector[]} points\r\n * @param {body} body\r\n */\r\n Vertices.create = function(points, body) {\r\n var vertices = [];\r\n\r\n for (var i = 0; i < points.length; i++) {\r\n var point = points[i],\r\n vertex = {\r\n x: point.x,\r\n y: point.y,\r\n index: i,\r\n body: body,\r\n isInternal: false\r\n };\r\n\r\n vertices.push(vertex);\r\n }\r\n\r\n return vertices;\r\n };\r\n\r\n /**\r\n * Parses a string containing ordered x y pairs separated by spaces (and optionally commas), \r\n * into a `Matter.Vertices` object for the given `Matter.Body`.\r\n * For parsing SVG paths, see `Svg.pathToVertices`.\r\n * @method fromPath\r\n * @param {string} path\r\n * @param {body} body\r\n * @return {vertices} vertices\r\n */\r\n Vertices.fromPath = function(path, body) {\r\n var pathPattern = /L?\\s*([-\\d.e]+)[\\s,]*([-\\d.e]+)*/ig,\r\n points = [];\r\n\r\n path.replace(pathPattern, function(match, x, y) {\r\n points.push({ x: parseFloat(x), y: parseFloat(y) });\r\n });\r\n\r\n return Vertices.create(points, body);\r\n };\r\n\r\n /**\r\n * Returns the centre (centroid) of the set of vertices.\r\n * @method centre\r\n * @param {vertices} vertices\r\n * @return {vector} The centre point\r\n */\r\n Vertices.centre = function(vertices) {\r\n var area = Vertices.area(vertices, true),\r\n centre = { x: 0, y: 0 },\r\n cross,\r\n temp,\r\n j;\r\n\r\n for (var i = 0; i < vertices.length; i++) {\r\n j = (i + 1) % vertices.length;\r\n cross = Vector.cross(vertices[i], vertices[j]);\r\n temp = Vector.mult(Vector.add(vertices[i], vertices[j]), cross);\r\n centre = Vector.add(centre, temp);\r\n }\r\n\r\n return Vector.div(centre, 6 * area);\r\n };\r\n\r\n /**\r\n * Returns the average (mean) of the set of vertices.\r\n * @method mean\r\n * @param {vertices} vertices\r\n * @return {vector} The average point\r\n */\r\n Vertices.mean = function(vertices) {\r\n var average = { x: 0, y: 0 };\r\n\r\n for (var i = 0; i < vertices.length; i++) {\r\n average.x += vertices[i].x;\r\n average.y += vertices[i].y;\r\n }\r\n\r\n return Vector.div(average, vertices.length);\r\n };\r\n\r\n /**\r\n * Returns the area of the set of vertices.\r\n * @method area\r\n * @param {vertices} vertices\r\n * @param {bool} signed\r\n * @return {number} The area\r\n */\r\n Vertices.area = function(vertices, signed) {\r\n var area = 0,\r\n j = vertices.length - 1;\r\n\r\n for (var i = 0; i < vertices.length; i++) {\r\n area += (vertices[j].x - vertices[i].x) * (vertices[j].y + vertices[i].y);\r\n j = i;\r\n }\r\n\r\n if (signed)\r\n return area / 2;\r\n\r\n return Math.abs(area) / 2;\r\n };\r\n\r\n /**\r\n * Returns the moment of inertia (second moment of area) of the set of vertices given the total mass.\r\n * @method inertia\r\n * @param {vertices} vertices\r\n * @param {number} mass\r\n * @return {number} The polygon's moment of inertia\r\n */\r\n Vertices.inertia = function(vertices, mass) {\r\n var numerator = 0,\r\n denominator = 0,\r\n v = vertices,\r\n cross,\r\n j;\r\n\r\n // find the polygon's moment of inertia, using second moment of area\r\n // from equations at http://www.physicsforums.com/showthread.php?t=25293\r\n for (var n = 0; n < v.length; n++) {\r\n j = (n + 1) % v.length;\r\n cross = Math.abs(Vector.cross(v[j], v[n]));\r\n numerator += cross * (Vector.dot(v[j], v[j]) + Vector.dot(v[j], v[n]) + Vector.dot(v[n], v[n]));\r\n denominator += cross;\r\n }\r\n\r\n return (mass / 6) * (numerator / denominator);\r\n };\r\n\r\n /**\r\n * Translates the set of vertices in-place.\r\n * @method translate\r\n * @param {vertices} vertices\r\n * @param {vector} vector\r\n * @param {number} scalar\r\n */\r\n Vertices.translate = function(vertices, vector, scalar) {\r\n scalar = typeof scalar !== 'undefined' ? scalar : 1;\r\n\r\n var verticesLength = vertices.length,\r\n translateX = vector.x * scalar,\r\n translateY = vector.y * scalar,\r\n i;\r\n \r\n for (i = 0; i < verticesLength; i++) {\r\n vertices[i].x += translateX;\r\n vertices[i].y += translateY;\r\n }\r\n\r\n return vertices;\r\n };\r\n\r\n /**\r\n * Rotates the set of vertices in-place.\r\n * @method rotate\r\n * @param {vertices} vertices\r\n * @param {number} angle\r\n * @param {vector} point\r\n */\r\n Vertices.rotate = function(vertices, angle, point) {\r\n if (angle === 0)\r\n return;\r\n\r\n var cos = Math.cos(angle),\r\n sin = Math.sin(angle),\r\n pointX = point.x,\r\n pointY = point.y,\r\n verticesLength = vertices.length,\r\n vertex,\r\n dx,\r\n dy,\r\n i;\r\n\r\n for (i = 0; i < verticesLength; i++) {\r\n vertex = vertices[i];\r\n dx = vertex.x - pointX;\r\n dy = vertex.y - pointY;\r\n vertex.x = pointX + (dx * cos - dy * sin);\r\n vertex.y = pointY + (dx * sin + dy * cos);\r\n }\r\n\r\n return vertices;\r\n };\r\n\r\n /**\r\n * Returns `true` if the `point` is inside the set of `vertices`.\r\n * @method contains\r\n * @param {vertices} vertices\r\n * @param {vector} point\r\n * @return {boolean} True if the vertices contains point, otherwise false\r\n */\r\n Vertices.contains = function(vertices, point) {\r\n var pointX = point.x,\r\n pointY = point.y,\r\n verticesLength = vertices.length,\r\n vertex = vertices[verticesLength - 1],\r\n nextVertex;\r\n\r\n for (var i = 0; i < verticesLength; i++) {\r\n nextVertex = vertices[i];\r\n\r\n if ((pointX - vertex.x) * (nextVertex.y - vertex.y) \r\n + (pointY - vertex.y) * (vertex.x - nextVertex.x) > 0) {\r\n return false;\r\n }\r\n\r\n vertex = nextVertex;\r\n }\r\n\r\n return true;\r\n };\r\n\r\n /**\r\n * Scales the vertices from a point (default is centre) in-place.\r\n * @method scale\r\n * @param {vertices} vertices\r\n * @param {number} scaleX\r\n * @param {number} scaleY\r\n * @param {vector} point\r\n */\r\n Vertices.scale = function(vertices, scaleX, scaleY, point) {\r\n if (scaleX === 1 && scaleY === 1)\r\n return vertices;\r\n\r\n point = point || Vertices.centre(vertices);\r\n\r\n var vertex,\r\n delta;\r\n\r\n for (var i = 0; i < vertices.length; i++) {\r\n vertex = vertices[i];\r\n delta = Vector.sub(vertex, point);\r\n vertices[i].x = point.x + delta.x * scaleX;\r\n vertices[i].y = point.y + delta.y * scaleY;\r\n }\r\n\r\n return vertices;\r\n };\r\n\r\n /**\r\n * Chamfers a set of vertices by giving them rounded corners, returns a new set of vertices.\r\n * The radius parameter is a single number or an array to specify the radius for each vertex.\r\n * @method chamfer\r\n * @param {vertices} vertices\r\n * @param {number[]} radius\r\n * @param {number} quality\r\n * @param {number} qualityMin\r\n * @param {number} qualityMax\r\n */\r\n Vertices.chamfer = function(vertices, radius, quality, qualityMin, qualityMax) {\r\n if (typeof radius === 'number') {\r\n radius = [radius];\r\n } else {\r\n radius = radius || [8];\r\n }\r\n\r\n // quality defaults to -1, which is auto\r\n quality = (typeof quality !== 'undefined') ? quality : -1;\r\n qualityMin = qualityMin || 2;\r\n qualityMax = qualityMax || 14;\r\n\r\n var newVertices = [];\r\n\r\n for (var i = 0; i < vertices.length; i++) {\r\n var prevVertex = vertices[i - 1 >= 0 ? i - 1 : vertices.length - 1],\r\n vertex = vertices[i],\r\n nextVertex = vertices[(i + 1) % vertices.length],\r\n currentRadius = radius[i < radius.length ? i : radius.length - 1];\r\n\r\n if (currentRadius === 0) {\r\n newVertices.push(vertex);\r\n continue;\r\n }\r\n\r\n var prevNormal = Vector.normalise({ \r\n x: vertex.y - prevVertex.y, \r\n y: prevVertex.x - vertex.x\r\n });\r\n\r\n var nextNormal = Vector.normalise({ \r\n x: nextVertex.y - vertex.y, \r\n y: vertex.x - nextVertex.x\r\n });\r\n\r\n var diagonalRadius = Math.sqrt(2 * Math.pow(currentRadius, 2)),\r\n radiusVector = Vector.mult(Common.clone(prevNormal), currentRadius),\r\n midNormal = Vector.normalise(Vector.mult(Vector.add(prevNormal, nextNormal), 0.5)),\r\n scaledVertex = Vector.sub(vertex, Vector.mult(midNormal, diagonalRadius));\r\n\r\n var precision = quality;\r\n\r\n if (quality === -1) {\r\n // automatically decide precision\r\n precision = Math.pow(currentRadius, 0.32) * 1.75;\r\n }\r\n\r\n precision = Common.clamp(precision, qualityMin, qualityMax);\r\n\r\n // use an even value for precision, more likely to reduce axes by using symmetry\r\n if (precision % 2 === 1)\r\n precision += 1;\r\n\r\n var alpha = Math.acos(Vector.dot(prevNormal, nextNormal)),\r\n theta = alpha / precision;\r\n\r\n for (var j = 0; j < precision; j++) {\r\n newVertices.push(Vector.add(Vector.rotate(radiusVector, theta * j), scaledVertex));\r\n }\r\n }\r\n\r\n return newVertices;\r\n };\r\n\r\n /**\r\n * Sorts the input vertices into clockwise order in place.\r\n * @method clockwiseSort\r\n * @param {vertices} vertices\r\n * @return {vertices} vertices\r\n */\r\n Vertices.clockwiseSort = function(vertices) {\r\n var centre = Vertices.mean(vertices);\r\n\r\n vertices.sort(function(vertexA, vertexB) {\r\n return Vector.angle(centre, vertexA) - Vector.angle(centre, vertexB);\r\n });\r\n\r\n return vertices;\r\n };\r\n\r\n /**\r\n * Returns true if the vertices form a convex shape (vertices must be in clockwise order).\r\n * @method isConvex\r\n * @param {vertices} vertices\r\n * @return {bool} `true` if the `vertices` are convex, `false` if not (or `null` if not computable).\r\n */\r\n Vertices.isConvex = function(vertices) {\r\n // http://paulbourke.net/geometry/polygonmesh/\r\n // Copyright (c) Paul Bourke (use permitted)\r\n\r\n var flag = 0,\r\n n = vertices.length,\r\n i,\r\n j,\r\n k,\r\n z;\r\n\r\n if (n < 3)\r\n return null;\r\n\r\n for (i = 0; i < n; i++) {\r\n j = (i + 1) % n;\r\n k = (i + 2) % n;\r\n z = (vertices[j].x - vertices[i].x) * (vertices[k].y - vertices[j].y);\r\n z -= (vertices[j].y - vertices[i].y) * (vertices[k].x - vertices[j].x);\r\n\r\n if (z < 0) {\r\n flag |= 1;\r\n } else if (z > 0) {\r\n flag |= 2;\r\n }\r\n\r\n if (flag === 3) {\r\n return false;\r\n }\r\n }\r\n\r\n if (flag !== 0){\r\n return true;\r\n } else {\r\n return null;\r\n }\r\n };\r\n\r\n /**\r\n * Returns the convex hull of the input vertices as a new array of points.\r\n * @method hull\r\n * @param {vertices} vertices\r\n * @return [vertex] vertices\r\n */\r\n Vertices.hull = function(vertices) {\r\n // http://geomalgorithms.com/a10-_hull-1.html\r\n\r\n var upper = [],\r\n lower = [], \r\n vertex,\r\n i;\r\n\r\n // sort vertices on x-axis (y-axis for ties)\r\n vertices = vertices.slice(0);\r\n vertices.sort(function(vertexA, vertexB) {\r\n var dx = vertexA.x - vertexB.x;\r\n return dx !== 0 ? dx : vertexA.y - vertexB.y;\r\n });\r\n\r\n // build lower hull\r\n for (i = 0; i < vertices.length; i += 1) {\r\n vertex = vertices[i];\r\n\r\n while (lower.length >= 2 \r\n && Vector.cross3(lower[lower.length - 2], lower[lower.length - 1], vertex) <= 0) {\r\n lower.pop();\r\n }\r\n\r\n lower.push(vertex);\r\n }\r\n\r\n // build upper hull\r\n for (i = vertices.length - 1; i >= 0; i -= 1) {\r\n vertex = vertices[i];\r\n\r\n while (upper.length >= 2 \r\n && Vector.cross3(upper[upper.length - 2], upper[upper.length - 1], vertex) <= 0) {\r\n upper.pop();\r\n }\r\n\r\n upper.push(vertex);\r\n }\r\n\r\n // concatenation of the lower and upper hulls gives the convex hull\r\n // omit last points because they are repeated at the beginning of the other list\r\n upper.pop();\r\n lower.pop();\r\n\r\n return upper.concat(lower);\r\n };\r\n\r\n})();\r\n\n\n/***/ }),\n\n/***/ 55973:\n/***/ ((module) => {\n\n/**\r\n * @author Stefan Hedman (http://steffe.se)\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// v0.3.0\r\n\r\nmodule.exports = {\r\n decomp: polygonDecomp,\r\n quickDecomp: polygonQuickDecomp,\r\n isSimple: polygonIsSimple,\r\n removeCollinearPoints: polygonRemoveCollinearPoints,\r\n removeDuplicatePoints: polygonRemoveDuplicatePoints,\r\n makeCCW: polygonMakeCCW\r\n};\r\n\r\n/**\r\n * Compute the intersection between two lines.\r\n * @static\r\n * @method lineInt\r\n * @param {Array} l1 Line vector 1\r\n * @param {Array} l2 Line vector 2\r\n * @param {Number} precision Precision to use when checking if the lines are parallel\r\n * @return {Array} The intersection point.\r\n */\r\nfunction lineInt(l1,l2,precision){\r\n precision = precision || 0;\r\n var i = [0,0]; // point\r\n var a1, b1, c1, a2, b2, c2, det; // scalars\r\n a1 = l1[1][1] - l1[0][1];\r\n b1 = l1[0][0] - l1[1][0];\r\n c1 = a1 * l1[0][0] + b1 * l1[0][1];\r\n a2 = l2[1][1] - l2[0][1];\r\n b2 = l2[0][0] - l2[1][0];\r\n c2 = a2 * l2[0][0] + b2 * l2[0][1];\r\n det = a1 * b2 - a2*b1;\r\n if (!scalar_eq(det, 0, precision)) { // lines are not parallel\r\n i[0] = (b2 * c1 - b1 * c2) / det;\r\n i[1] = (a1 * c2 - a2 * c1) / det;\r\n }\r\n return i;\r\n}\r\n\r\n/**\r\n * Checks if two line segments intersects.\r\n * @method segmentsIntersect\r\n * @param {Array} p1 The start vertex of the first line segment.\r\n * @param {Array} p2 The end vertex of the first line segment.\r\n * @param {Array} q1 The start vertex of the second line segment.\r\n * @param {Array} q2 The end vertex of the second line segment.\r\n * @return {Boolean} True if the two line segments intersect\r\n */\r\nfunction lineSegmentsIntersect(p1, p2, q1, q2){\r\n\tvar dx = p2[0] - p1[0];\r\n\tvar dy = p2[1] - p1[1];\r\n\tvar da = q2[0] - q1[0];\r\n\tvar db = q2[1] - q1[1];\r\n\r\n\t// segments are parallel\r\n\tif((da*dy - db*dx) === 0){\r\n\t\treturn false;\r\n\t}\r\n\r\n\tvar s = (dx * (q1[1] - p1[1]) + dy * (p1[0] - q1[0])) / (da * dy - db * dx);\r\n\tvar t = (da * (p1[1] - q1[1]) + db * (q1[0] - p1[0])) / (db * dx - da * dy);\r\n\r\n\treturn (s>=0 && s<=1 && t>=0 && t<=1);\r\n}\r\n\r\n/**\r\n * Get the area of a triangle spanned by the three given points. Note that the area will be negative if the points are not given in counter-clockwise order.\r\n * @static\r\n * @method area\r\n * @param {Array} a\r\n * @param {Array} b\r\n * @param {Array} c\r\n * @return {Number}\r\n */\r\nfunction triangleArea(a,b,c){\r\n return (((b[0] - a[0])*(c[1] - a[1]))-((c[0] - a[0])*(b[1] - a[1])));\r\n}\r\n\r\nfunction isLeft(a,b,c){\r\n return triangleArea(a,b,c) > 0;\r\n}\r\n\r\nfunction isLeftOn(a,b,c) {\r\n return triangleArea(a, b, c) >= 0;\r\n}\r\n\r\nfunction isRight(a,b,c) {\r\n return triangleArea(a, b, c) < 0;\r\n}\r\n\r\nfunction isRightOn(a,b,c) {\r\n return triangleArea(a, b, c) <= 0;\r\n}\r\n\r\nvar tmpPoint1 = [],\r\n tmpPoint2 = [];\r\n\r\n/**\r\n * Check if three points are collinear\r\n * @method collinear\r\n * @param {Array} a\r\n * @param {Array} b\r\n * @param {Array} c\r\n * @param {Number} [thresholdAngle=0] Threshold angle to use when comparing the vectors. The function will return true if the angle between the resulting vectors is less than this value. Use zero for max precision.\r\n * @return {Boolean}\r\n */\r\nfunction collinear(a,b,c,thresholdAngle) {\r\n if(!thresholdAngle){\r\n return triangleArea(a, b, c) === 0;\r\n } else {\r\n var ab = tmpPoint1,\r\n bc = tmpPoint2;\r\n\r\n ab[0] = b[0]-a[0];\r\n ab[1] = b[1]-a[1];\r\n bc[0] = c[0]-b[0];\r\n bc[1] = c[1]-b[1];\r\n\r\n var dot = ab[0]*bc[0] + ab[1]*bc[1],\r\n magA = Math.sqrt(ab[0]*ab[0] + ab[1]*ab[1]),\r\n magB = Math.sqrt(bc[0]*bc[0] + bc[1]*bc[1]),\r\n angle = Math.acos(dot/(magA*magB));\r\n return angle < thresholdAngle;\r\n }\r\n}\r\n\r\nfunction sqdist(a,b){\r\n var dx = b[0] - a[0];\r\n var dy = b[1] - a[1];\r\n return dx * dx + dy * dy;\r\n}\r\n\r\n/**\r\n * Get a vertex at position i. It does not matter if i is out of bounds, this function will just cycle.\r\n * @method at\r\n * @param {Number} i\r\n * @return {Array}\r\n */\r\nfunction polygonAt(polygon, i){\r\n var s = polygon.length;\r\n return polygon[i < 0 ? i % s + s : i % s];\r\n}\r\n\r\n/**\r\n * Clear the polygon data\r\n * @method clear\r\n * @return {Array}\r\n */\r\nfunction polygonClear(polygon){\r\n polygon.length = 0;\r\n}\r\n\r\n/**\r\n * Append points \"from\" to \"to\"-1 from an other polygon \"poly\" onto this one.\r\n * @method append\r\n * @param {Polygon} poly The polygon to get points from.\r\n * @param {Number} from The vertex index in \"poly\".\r\n * @param {Number} to The end vertex index in \"poly\". Note that this vertex is NOT included when appending.\r\n * @return {Array}\r\n */\r\nfunction polygonAppend(polygon, poly, from, to){\r\n for(var i=from; i v[br][0])) {\r\n br = i;\r\n }\r\n }\r\n\r\n // reverse poly if clockwise\r\n if (!isLeft(polygonAt(polygon, br - 1), polygonAt(polygon, br), polygonAt(polygon, br + 1))) {\r\n polygonReverse(polygon);\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n}\r\n\r\n/**\r\n * Reverse the vertices in the polygon\r\n * @method reverse\r\n */\r\nfunction polygonReverse(polygon){\r\n var tmp = [];\r\n var N = polygon.length;\r\n for(var i=0; i!==N; i++){\r\n tmp.push(polygon.pop());\r\n }\r\n for(var i=0; i!==N; i++){\r\n\t\tpolygon[i] = tmp[i];\r\n }\r\n}\r\n\r\n/**\r\n * Check if a point in the polygon is a reflex point\r\n * @method isReflex\r\n * @param {Number} i\r\n * @return {Boolean}\r\n */\r\nfunction polygonIsReflex(polygon, i){\r\n return isRight(polygonAt(polygon, i - 1), polygonAt(polygon, i), polygonAt(polygon, i + 1));\r\n}\r\n\r\nvar tmpLine1=[],\r\n tmpLine2=[];\r\n\r\n/**\r\n * Check if two vertices in the polygon can see each other\r\n * @method canSee\r\n * @param {Number} a Vertex index 1\r\n * @param {Number} b Vertex index 2\r\n * @return {Boolean}\r\n */\r\nfunction polygonCanSee(polygon, a,b) {\r\n var p, dist, l1=tmpLine1, l2=tmpLine2;\r\n\r\n if (isLeftOn(polygonAt(polygon, a + 1), polygonAt(polygon, a), polygonAt(polygon, b)) && isRightOn(polygonAt(polygon, a - 1), polygonAt(polygon, a), polygonAt(polygon, b))) {\r\n return false;\r\n }\r\n dist = sqdist(polygonAt(polygon, a), polygonAt(polygon, b));\r\n for (var i = 0; i !== polygon.length; ++i) { // for each edge\r\n if ((i + 1) % polygon.length === a || i === a){ // ignore incident edges\r\n continue;\r\n }\r\n if (isLeftOn(polygonAt(polygon, a), polygonAt(polygon, b), polygonAt(polygon, i + 1)) && isRightOn(polygonAt(polygon, a), polygonAt(polygon, b), polygonAt(polygon, i))) { // if diag intersects an edge\r\n l1[0] = polygonAt(polygon, a);\r\n l1[1] = polygonAt(polygon, b);\r\n l2[0] = polygonAt(polygon, i);\r\n l2[1] = polygonAt(polygon, i + 1);\r\n p = lineInt(l1,l2);\r\n if (sqdist(polygonAt(polygon, a), p) < dist) { // if edge is blocking visibility to b\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n return true;\r\n}\r\n\r\n/**\r\n * Check if two vertices in the polygon can see each other\r\n * @method canSee2\r\n * @param {Number} a Vertex index 1\r\n * @param {Number} b Vertex index 2\r\n * @return {Boolean}\r\n */\r\nfunction polygonCanSee2(polygon, a,b) {\r\n // for each edge\r\n for (var i = 0; i !== polygon.length; ++i) {\r\n // ignore incident edges\r\n if (i === a || i === b || (i + 1) % polygon.length === a || (i + 1) % polygon.length === b){\r\n continue;\r\n }\r\n if( lineSegmentsIntersect(polygonAt(polygon, a), polygonAt(polygon, b), polygonAt(polygon, i), polygonAt(polygon, i+1)) ){\r\n return false;\r\n }\r\n }\r\n return true;\r\n}\r\n\r\n/**\r\n * Copy the polygon from vertex i to vertex j.\r\n * @method copy\r\n * @param {Number} i\r\n * @param {Number} j\r\n * @param {Polygon} [targetPoly] Optional target polygon to save in.\r\n * @return {Polygon} The resulting copy.\r\n */\r\nfunction polygonCopy(polygon, i,j,targetPoly){\r\n var p = targetPoly || [];\r\n polygonClear(p);\r\n if (i < j) {\r\n // Insert all vertices from i to j\r\n for(var k=i; k<=j; k++){\r\n p.push(polygon[k]);\r\n }\r\n\r\n } else {\r\n\r\n // Insert vertices 0 to j\r\n for(var k=0; k<=j; k++){\r\n p.push(polygon[k]);\r\n }\r\n\r\n // Insert vertices i to end\r\n for(var k=i; k 0){\r\n return polygonSlice(polygon, edges);\r\n } else {\r\n return [polygon];\r\n }\r\n}\r\n\r\n/**\r\n * Slices the polygon given one or more cut edges. If given one, this function will return two polygons (false on failure). If many, an array of polygons.\r\n * @method slice\r\n * @param {Array} cutEdges A list of edges, as returned by .getCutEdges()\r\n * @return {Array}\r\n */\r\nfunction polygonSlice(polygon, cutEdges){\r\n if(cutEdges.length === 0){\r\n\t\treturn [polygon];\r\n }\r\n if(cutEdges instanceof Array && cutEdges.length && cutEdges[0] instanceof Array && cutEdges[0].length===2 && cutEdges[0][0] instanceof Array){\r\n\r\n var polys = [polygon];\r\n\r\n for(var i=0; i maxlevel){\r\n console.warn(\"quickDecomp: max level (\"+maxlevel+\") reached.\");\r\n return result;\r\n }\r\n\r\n for (var i = 0; i < polygon.length; ++i) {\r\n if (polygonIsReflex(poly, i)) {\r\n reflexVertices.push(poly[i]);\r\n upperDist = lowerDist = Number.MAX_VALUE;\r\n\r\n\r\n for (var j = 0; j < polygon.length; ++j) {\r\n if (isLeft(polygonAt(poly, i - 1), polygonAt(poly, i), polygonAt(poly, j)) && isRightOn(polygonAt(poly, i - 1), polygonAt(poly, i), polygonAt(poly, j - 1))) { // if line intersects with an edge\r\n p = getIntersectionPoint(polygonAt(poly, i - 1), polygonAt(poly, i), polygonAt(poly, j), polygonAt(poly, j - 1)); // find the point of intersection\r\n if (isRight(polygonAt(poly, i + 1), polygonAt(poly, i), p)) { // make sure it's inside the poly\r\n d = sqdist(poly[i], p);\r\n if (d < lowerDist) { // keep only the closest intersection\r\n lowerDist = d;\r\n lowerInt = p;\r\n lowerIndex = j;\r\n }\r\n }\r\n }\r\n if (isLeft(polygonAt(poly, i + 1), polygonAt(poly, i), polygonAt(poly, j + 1)) && isRightOn(polygonAt(poly, i + 1), polygonAt(poly, i), polygonAt(poly, j))) {\r\n p = getIntersectionPoint(polygonAt(poly, i + 1), polygonAt(poly, i), polygonAt(poly, j), polygonAt(poly, j + 1));\r\n if (isLeft(polygonAt(poly, i - 1), polygonAt(poly, i), p)) {\r\n d = sqdist(poly[i], p);\r\n if (d < upperDist) {\r\n upperDist = d;\r\n upperInt = p;\r\n upperIndex = j;\r\n }\r\n }\r\n }\r\n }\r\n\r\n // if there are no vertices to connect to, choose a point in the middle\r\n if (lowerIndex === (upperIndex + 1) % polygon.length) {\r\n //console.log(\"Case 1: Vertex(\"+i+\"), lowerIndex(\"+lowerIndex+\"), upperIndex(\"+upperIndex+\"), poly.size(\"+polygon.length+\")\");\r\n p[0] = (lowerInt[0] + upperInt[0]) / 2;\r\n p[1] = (lowerInt[1] + upperInt[1]) / 2;\r\n steinerPoints.push(p);\r\n\r\n if (i < upperIndex) {\r\n //lowerPoly.insert(lowerPoly.end(), poly.begin() + i, poly.begin() + upperIndex + 1);\r\n polygonAppend(lowerPoly, poly, i, upperIndex+1);\r\n lowerPoly.push(p);\r\n upperPoly.push(p);\r\n if (lowerIndex !== 0){\r\n //upperPoly.insert(upperPoly.end(), poly.begin() + lowerIndex, poly.end());\r\n polygonAppend(upperPoly, poly,lowerIndex,poly.length);\r\n }\r\n //upperPoly.insert(upperPoly.end(), poly.begin(), poly.begin() + i + 1);\r\n polygonAppend(upperPoly, poly,0,i+1);\r\n } else {\r\n if (i !== 0){\r\n //lowerPoly.insert(lowerPoly.end(), poly.begin() + i, poly.end());\r\n polygonAppend(lowerPoly, poly,i,poly.length);\r\n }\r\n //lowerPoly.insert(lowerPoly.end(), poly.begin(), poly.begin() + upperIndex + 1);\r\n polygonAppend(lowerPoly, poly,0,upperIndex+1);\r\n lowerPoly.push(p);\r\n upperPoly.push(p);\r\n //upperPoly.insert(upperPoly.end(), poly.begin() + lowerIndex, poly.begin() + i + 1);\r\n polygonAppend(upperPoly, poly,lowerIndex,i+1);\r\n }\r\n } else {\r\n // connect to the closest point within the triangle\r\n //console.log(\"Case 2: Vertex(\"+i+\"), closestIndex(\"+closestIndex+\"), poly.size(\"+polygon.length+\")\\n\");\r\n\r\n if (lowerIndex > upperIndex) {\r\n upperIndex += polygon.length;\r\n }\r\n closestDist = Number.MAX_VALUE;\r\n\r\n if(upperIndex < lowerIndex){\r\n return result;\r\n }\r\n\r\n for (var j = lowerIndex; j <= upperIndex; ++j) {\r\n if (\r\n isLeftOn(polygonAt(poly, i - 1), polygonAt(poly, i), polygonAt(poly, j)) &&\r\n isRightOn(polygonAt(poly, i + 1), polygonAt(poly, i), polygonAt(poly, j))\r\n ) {\r\n d = sqdist(polygonAt(poly, i), polygonAt(poly, j));\r\n if (d < closestDist && polygonCanSee2(poly, i, j)) {\r\n closestDist = d;\r\n closestIndex = j % polygon.length;\r\n }\r\n }\r\n }\r\n\r\n if (i < closestIndex) {\r\n polygonAppend(lowerPoly, poly,i,closestIndex+1);\r\n if (closestIndex !== 0){\r\n polygonAppend(upperPoly, poly,closestIndex,v.length);\r\n }\r\n polygonAppend(upperPoly, poly,0,i+1);\r\n } else {\r\n if (i !== 0){\r\n polygonAppend(lowerPoly, poly,i,v.length);\r\n }\r\n polygonAppend(lowerPoly, poly,0,closestIndex+1);\r\n polygonAppend(upperPoly, poly,closestIndex,i+1);\r\n }\r\n }\r\n\r\n // solve smallest poly first\r\n if (lowerPoly.length < upperPoly.length) {\r\n polygonQuickDecomp(lowerPoly,result,reflexVertices,steinerPoints,delta,maxlevel,level);\r\n polygonQuickDecomp(upperPoly,result,reflexVertices,steinerPoints,delta,maxlevel,level);\r\n } else {\r\n polygonQuickDecomp(upperPoly,result,reflexVertices,steinerPoints,delta,maxlevel,level);\r\n polygonQuickDecomp(lowerPoly,result,reflexVertices,steinerPoints,delta,maxlevel,level);\r\n }\r\n\r\n return result;\r\n }\r\n }\r\n result.push(polygon);\r\n\r\n return result;\r\n}\r\n\r\n/**\r\n * Remove collinear points in the polygon.\r\n * @method removeCollinearPoints\r\n * @param {Number} [precision] The threshold angle to use when determining whether two edges are collinear. Use zero for finest precision.\r\n * @return {Number} The number of points removed\r\n */\r\nfunction polygonRemoveCollinearPoints(polygon, precision){\r\n var num = 0;\r\n for(var i=polygon.length-1; polygon.length>3 && i>=0; --i){\r\n if(collinear(polygonAt(polygon, i-1),polygonAt(polygon, i),polygonAt(polygon, i+1),precision)){\r\n // Remove the middle point\r\n polygon.splice(i%polygon.length,1);\r\n num++;\r\n }\r\n }\r\n return num;\r\n}\r\n\r\n/**\r\n * Remove duplicate points in the polygon.\r\n * @method removeDuplicatePoints\r\n * @param {Number} [precision] The threshold to use when determining whether two points are the same. Use zero for best precision.\r\n */\r\nfunction polygonRemoveDuplicatePoints(polygon, precision){\r\n for(var i=polygon.length-1; i>=1; --i){\r\n var pi = polygon[i];\r\n for(var j=i-1; j>=0; --j){\r\n if(points_eq(pi, polygon[j], precision)){\r\n polygon.splice(i,1);\r\n continue;\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * Check if two scalars are equal\r\n * @static\r\n * @method eq\r\n * @param {Number} a\r\n * @param {Number} b\r\n * @param {Number} [precision]\r\n * @return {Boolean}\r\n */\r\nfunction scalar_eq(a,b,precision){\r\n precision = precision || 0;\r\n return Math.abs(a-b) <= precision;\r\n}\r\n\r\n/**\r\n * Check if two points are equal\r\n * @static\r\n * @method points_eq\r\n * @param {Array} a\r\n * @param {Array} b\r\n * @param {Number} [precision]\r\n * @return {Boolean}\r\n */\r\nfunction points_eq(a,b,precision){\r\n return scalar_eq(a[0],b[0],precision) && scalar_eq(a[1],b[1],precision);\r\n}\r\n\n\n/***/ }),\n\n/***/ 52018:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* @author Richard Davey \r\n* @copyright 2013-2024 Phaser Studio Inc.\r\n* @license {@link https://github.com/photonstorm/phaser3-plugin-template/blob/master/LICENSE|MIT License}\r\n*/\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n/**\r\n * @classdesc\r\n * A Global Plugin is installed just once into the Game owned Plugin Manager.\r\n * It can listen for Game events and respond to them.\r\n *\r\n * @class BasePlugin\r\n * @memberof Phaser.Plugins\r\n * @constructor\r\n * @since 3.8.0\r\n *\r\n * @param {Phaser.Plugins.PluginManager} pluginManager - A reference to the Plugin Manager.\r\n */\r\nvar BasePlugin = new Class({\r\n\r\n initialize:\r\n\r\n function BasePlugin (pluginManager)\r\n {\r\n /**\r\n * A handy reference to the Plugin Manager that is responsible for this plugin.\r\n * Can be used as a route to gain access to game systems and events.\r\n *\r\n * @name Phaser.Plugins.BasePlugin#pluginManager\r\n * @type {Phaser.Plugins.PluginManager}\r\n * @protected\r\n * @since 3.8.0\r\n */\r\n this.pluginManager = pluginManager;\r\n\r\n /**\r\n * A reference to the Game instance this plugin is running under.\r\n *\r\n * @name Phaser.Plugins.BasePlugin#game\r\n * @type {Phaser.Game}\r\n * @protected\r\n * @since 3.8.0\r\n */\r\n this.game = pluginManager.game;\r\n },\r\n\r\n /**\r\n * The PluginManager calls this method on a Global Plugin when the plugin is first instantiated.\r\n * It will never be called again on this instance.\r\n * In here you can set-up whatever you need for this plugin to run.\r\n * If a plugin is set to automatically start then `BasePlugin.start` will be called immediately after this.\r\n * On a Scene Plugin, this method is never called. Use {@link Phaser.Plugins.ScenePlugin#boot} instead.\r\n *\r\n * @method Phaser.Plugins.BasePlugin#init\r\n * @since 3.8.0\r\n *\r\n * @param {?any} [data] - A value specified by the user, if any, from the `data` property of the plugin's configuration object (if started at game boot) or passed in the PluginManager's `install` method (if started manually).\r\n */\r\n init: function ()\r\n {\r\n },\r\n\r\n /**\r\n * The PluginManager calls this method on a Global Plugin when the plugin is started.\r\n * If a plugin is stopped, and then started again, this will get called again.\r\n * Typically called immediately after `BasePlugin.init`.\r\n * On a Scene Plugin, this method is never called.\r\n *\r\n * @method Phaser.Plugins.BasePlugin#start\r\n * @since 3.8.0\r\n */\r\n start: function ()\r\n {\r\n // Here are the game-level events you can listen to.\r\n // At the very least you should offer a destroy handler for when the game closes down.\r\n\r\n // var eventEmitter = this.game.events;\r\n\r\n // eventEmitter.once('destroy', this.gameDestroy, this);\r\n // eventEmitter.on('pause', this.gamePause, this);\r\n // eventEmitter.on('resume', this.gameResume, this);\r\n // eventEmitter.on('resize', this.gameResize, this);\r\n // eventEmitter.on('prestep', this.gamePreStep, this);\r\n // eventEmitter.on('step', this.gameStep, this);\r\n // eventEmitter.on('poststep', this.gamePostStep, this);\r\n // eventEmitter.on('prerender', this.gamePreRender, this);\r\n // eventEmitter.on('postrender', this.gamePostRender, this);\r\n },\r\n\r\n /**\r\n * The PluginManager calls this method on a Global Plugin when the plugin is stopped.\r\n * The game code has requested that your plugin stop doing whatever it does.\r\n * It is now considered as 'inactive' by the PluginManager.\r\n * Handle that process here (i.e. stop listening for events, etc)\r\n * If the plugin is started again then `BasePlugin.start` will be called again.\r\n * On a Scene Plugin, this method is never called.\r\n *\r\n * @method Phaser.Plugins.BasePlugin#stop\r\n * @since 3.8.0\r\n */\r\n stop: function ()\r\n {\r\n },\r\n\r\n /**\r\n * Game instance has been destroyed.\r\n * You must release everything in here, all references, all objects, free it all up.\r\n *\r\n * @method Phaser.Plugins.BasePlugin#destroy\r\n * @since 3.8.0\r\n */\r\n destroy: function ()\r\n {\r\n this.pluginManager = null;\r\n this.game = null;\r\n this.scene = null;\r\n this.systems = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = BasePlugin;\r\n\n\n/***/ }),\n\n/***/ 42363:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Default Plugins.\r\n *\r\n * @namespace Phaser.Plugins.DefaultPlugins\r\n * @memberof Phaser.Plugins\r\n * @since 3.0.0\r\n */\r\n\r\nvar DefaultPlugins = {\r\n\r\n /**\r\n * These are the Global Managers that are created by the Phaser.Game instance.\r\n * They are referenced from Scene.Systems so that plugins can use them.\r\n *\r\n * @name Phaser.Plugins.DefaultPlugins.Global\r\n * @type {array}\r\n * @since 3.0.0\r\n */\r\n Global: [\r\n\r\n 'game',\r\n 'anims',\r\n 'cache',\r\n 'plugins',\r\n 'registry',\r\n 'scale',\r\n 'sound',\r\n 'textures',\r\n 'renderer'\r\n\r\n ],\r\n\r\n /**\r\n * These are the core plugins that are installed into every Scene.Systems instance, no matter what.\r\n * They are optionally exposed in the Scene as well (see the InjectionMap for details)\r\n *\r\n * They are created in the order in which they appear in this array and EventEmitter is always first.\r\n *\r\n * @name Phaser.Plugins.DefaultPlugins.CoreScene\r\n * @type {array}\r\n * @since 3.0.0\r\n */\r\n CoreScene: [\r\n\r\n 'EventEmitter',\r\n\r\n 'CameraManager',\r\n 'GameObjectCreator',\r\n 'GameObjectFactory',\r\n 'ScenePlugin',\r\n 'DisplayList',\r\n 'UpdateList'\r\n\r\n ],\r\n\r\n /**\r\n * These plugins are created in Scene.Systems in addition to the CoreScenePlugins.\r\n *\r\n * You can elect not to have these plugins by either creating a DefaultPlugins object as part\r\n * of the Game Config, by creating a Plugins object as part of a Scene Config, or by modifying this array\r\n * and building your own bundle.\r\n *\r\n * They are optionally exposed in the Scene as well (see the InjectionMap for details)\r\n *\r\n * They are always created in the order in which they appear in the array.\r\n *\r\n * @name Phaser.Plugins.DefaultPlugins.DefaultScene\r\n * @type {array}\r\n * @since 3.0.0\r\n */\r\n DefaultScene: [\r\n\r\n 'Clock',\r\n 'DataManagerPlugin',\r\n 'InputPlugin',\r\n 'Loader',\r\n 'TweenManager',\r\n 'LightsPlugin'\r\n\r\n ]\r\n\r\n};\r\n\r\nif (false)\r\n{}\r\n\r\nif (false)\r\n{}\r\n\r\nmodule.exports = DefaultPlugins;\r\n\n\n/***/ }),\n\n/***/ 37277:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// Contains the plugins that Phaser uses globally and locally.\r\n// These are the source objects, not instantiated.\r\nvar corePlugins = {};\r\n\r\n// Contains the plugins that the dev has loaded into their game\r\n// These are the source objects, not instantiated.\r\nvar customPlugins = {};\r\n\r\nvar PluginCache = {};\r\n\r\n/**\r\n * @namespace Phaser.Plugins.PluginCache\r\n */\r\n\r\n/**\r\n * Static method called directly by the Core internal Plugins.\r\n * Key is a reference used to get the plugin from the plugins object (i.e. InputPlugin)\r\n * Plugin is the object to instantiate to create the plugin\r\n * Mapping is what the plugin is injected into the Scene.Systems as (i.e. input)\r\n *\r\n * @method Phaser.Plugins.PluginCache.register\r\n * @since 3.8.0\r\n *\r\n * @param {string} key - A reference used to get this plugin from the plugin cache.\r\n * @param {function} plugin - The plugin to be stored. Should be the core object, not instantiated.\r\n * @param {string} mapping - If this plugin is to be injected into the Scene Systems, this is the property key map used.\r\n * @param {boolean} [custom=false] - Core Scene plugin or a Custom Scene plugin?\r\n */\r\nPluginCache.register = function (key, plugin, mapping, custom)\r\n{\r\n if (custom === undefined) { custom = false; }\r\n\r\n corePlugins[key] = { plugin: plugin, mapping: mapping, custom: custom };\r\n};\r\n\r\n/**\r\n * Stores a custom plugin in the global plugin cache.\r\n * The key must be unique, within the scope of the cache.\r\n *\r\n * @method Phaser.Plugins.PluginCache.registerCustom\r\n * @since 3.8.0\r\n *\r\n * @param {string} key - A reference used to get this plugin from the plugin cache.\r\n * @param {function} plugin - The plugin to be stored. Should be the core object, not instantiated.\r\n * @param {string} mapping - If this plugin is to be injected into the Scene Systems, this is the property key map used.\r\n * @param {?any} data - A value to be passed to the plugin's `init` method.\r\n */\r\nPluginCache.registerCustom = function (key, plugin, mapping, data)\r\n{\r\n customPlugins[key] = { plugin: plugin, mapping: mapping, data: data };\r\n};\r\n\r\n/**\r\n * Checks if the given key is already being used in the core plugin cache.\r\n *\r\n * @method Phaser.Plugins.PluginCache.hasCore\r\n * @since 3.8.0\r\n *\r\n * @param {string} key - The key to check for.\r\n *\r\n * @return {boolean} `true` if the key is already in use in the core cache, otherwise `false`.\r\n */\r\nPluginCache.hasCore = function (key)\r\n{\r\n return corePlugins.hasOwnProperty(key);\r\n};\r\n\r\n/**\r\n * Checks if the given key is already being used in the custom plugin cache.\r\n *\r\n * @method Phaser.Plugins.PluginCache.hasCustom\r\n * @since 3.8.0\r\n *\r\n * @param {string} key - The key to check for.\r\n *\r\n * @return {boolean} `true` if the key is already in use in the custom cache, otherwise `false`.\r\n */\r\nPluginCache.hasCustom = function (key)\r\n{\r\n return customPlugins.hasOwnProperty(key);\r\n};\r\n\r\n/**\r\n * Returns the core plugin object from the cache based on the given key.\r\n *\r\n * @method Phaser.Plugins.PluginCache.getCore\r\n * @since 3.8.0\r\n *\r\n * @param {string} key - The key of the core plugin to get.\r\n *\r\n * @return {Phaser.Types.Plugins.CorePluginContainer} The core plugin object.\r\n */\r\nPluginCache.getCore = function (key)\r\n{\r\n return corePlugins[key];\r\n};\r\n\r\n/**\r\n * Returns the custom plugin object from the cache based on the given key.\r\n *\r\n * @method Phaser.Plugins.PluginCache.getCustom\r\n * @since 3.8.0\r\n *\r\n * @param {string} key - The key of the custom plugin to get.\r\n *\r\n * @return {Phaser.Types.Plugins.CustomPluginContainer} The custom plugin object.\r\n */\r\nPluginCache.getCustom = function (key)\r\n{\r\n return customPlugins[key];\r\n};\r\n\r\n/**\r\n * Returns an object from the custom cache based on the given key that can be instantiated.\r\n *\r\n * @method Phaser.Plugins.PluginCache.getCustomClass\r\n * @since 3.8.0\r\n *\r\n * @param {string} key - The key of the custom plugin to get.\r\n *\r\n * @return {function} The custom plugin object.\r\n */\r\nPluginCache.getCustomClass = function (key)\r\n{\r\n return (customPlugins.hasOwnProperty(key)) ? customPlugins[key].plugin : null;\r\n};\r\n\r\n/**\r\n * Removes a core plugin based on the given key.\r\n *\r\n * @method Phaser.Plugins.PluginCache.remove\r\n * @since 3.8.0\r\n *\r\n * @param {string} key - The key of the core plugin to remove.\r\n */\r\nPluginCache.remove = function (key)\r\n{\r\n if (corePlugins.hasOwnProperty(key))\r\n {\r\n delete corePlugins[key];\r\n }\r\n};\r\n\r\n/**\r\n * Removes a custom plugin based on the given key.\r\n *\r\n * @method Phaser.Plugins.PluginCache.removeCustom\r\n * @since 3.8.0\r\n *\r\n * @param {string} key - The key of the custom plugin to remove.\r\n */\r\nPluginCache.removeCustom = function (key)\r\n{\r\n if (customPlugins.hasOwnProperty(key))\r\n {\r\n delete customPlugins[key];\r\n }\r\n};\r\n\r\n/**\r\n * Removes all Core Plugins.\r\n *\r\n * This includes all of the internal system plugins that Phaser needs, like the Input Plugin and Loader Plugin.\r\n * So be sure you only call this if you do not wish to run Phaser again.\r\n *\r\n * @method Phaser.Plugins.PluginCache.destroyCorePlugins\r\n * @since 3.12.0\r\n */\r\nPluginCache.destroyCorePlugins = function ()\r\n{\r\n for (var key in corePlugins)\r\n {\r\n if (corePlugins.hasOwnProperty(key))\r\n {\r\n delete corePlugins[key];\r\n }\r\n }\r\n};\r\n\r\n/**\r\n * Removes all Custom Plugins.\r\n *\r\n * @method Phaser.Plugins.PluginCache.destroyCustomPlugins\r\n * @since 3.12.0\r\n */\r\nPluginCache.destroyCustomPlugins = function ()\r\n{\r\n for (var key in customPlugins)\r\n {\r\n if (customPlugins.hasOwnProperty(key))\r\n {\r\n delete customPlugins[key];\r\n }\r\n }\r\n};\r\n\r\nmodule.exports = PluginCache;\r\n\n\n/***/ }),\n\n/***/ 77332:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar GameEvents = __webpack_require__(8443);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar FileTypesManager = __webpack_require__(74099);\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar PluginCache = __webpack_require__(37277);\r\nvar Remove = __webpack_require__(72905);\r\n\r\n/**\r\n * @classdesc\r\n * The PluginManager is responsible for installing and adding plugins to Phaser.\r\n *\r\n * It is a global system and therefore belongs to the Game instance, not a specific Scene.\r\n *\r\n * It works in conjunction with the PluginCache. Core internal plugins automatically register themselves\r\n * with the Cache, but it's the Plugin Manager that is responsible for injecting them into the Scenes.\r\n *\r\n * There are two types of plugin:\r\n *\r\n * 1. A Global Plugin\r\n * 2. A Scene Plugin\r\n *\r\n * A Global Plugin is a plugin that lives within the Plugin Manager rather than a Scene. You can get\r\n * access to it by calling `PluginManager.get` and providing a key. Any Scene that requests a plugin in\r\n * this way will all get access to the same plugin instance, allowing you to use a single plugin across\r\n * multiple Scenes.\r\n *\r\n * A Scene Plugin is a plugin dedicated to running within a Scene. These are different to Global Plugins\r\n * in that their instances do not live within the Plugin Manager, but within the Scene Systems class instead.\r\n * And that every Scene created is given its own unique instance of a Scene Plugin. Examples of core Scene\r\n * Plugins include the Input Plugin, the Tween Plugin and the physics Plugins.\r\n *\r\n * You can add a plugin to Phaser in three different ways:\r\n *\r\n * 1. Preload it\r\n * 2. Include it in your source code and install it via the Game Config\r\n * 3. Include it in your source code and install it within a Scene\r\n *\r\n * For examples of all of these approaches please see the Phaser 3 Examples Repo `plugins` folder.\r\n *\r\n * For information on creating your own plugin please see the Phaser 3 Plugin Template.\r\n *\r\n * @class PluginManager\r\n * @memberof Phaser.Plugins\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Game} game - The game instance that owns this Plugin Manager.\r\n */\r\nvar PluginManager = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function PluginManager (game)\r\n {\r\n EventEmitter.call(this);\r\n\r\n /**\r\n * The game instance that owns this Plugin Manager.\r\n *\r\n * @name Phaser.Plugins.PluginManager#game\r\n * @type {Phaser.Game}\r\n * @since 3.0.0\r\n */\r\n this.game = game;\r\n\r\n /**\r\n * The global plugins currently running and managed by this Plugin Manager.\r\n * A plugin must have been started at least once in order to appear in this list.\r\n *\r\n * @name Phaser.Plugins.PluginManager#plugins\r\n * @type {Phaser.Types.Plugins.GlobalPlugin[]}\r\n * @since 3.8.0\r\n */\r\n this.plugins = [];\r\n\r\n /**\r\n * A list of plugin keys that should be installed into Scenes as well as the Core Plugins.\r\n *\r\n * @name Phaser.Plugins.PluginManager#scenePlugins\r\n * @type {string[]}\r\n * @since 3.8.0\r\n */\r\n this.scenePlugins = [];\r\n\r\n /**\r\n * A temporary list of plugins to install when the game has booted.\r\n *\r\n * @name Phaser.Plugins.PluginManager#_pendingGlobal\r\n * @private\r\n * @type {array}\r\n * @since 3.8.0\r\n */\r\n this._pendingGlobal = [];\r\n\r\n /**\r\n * A temporary list of scene plugins to install when the game has booted.\r\n *\r\n * @name Phaser.Plugins.PluginManager#_pendingScene\r\n * @private\r\n * @type {array}\r\n * @since 3.8.0\r\n */\r\n this._pendingScene = [];\r\n\r\n if (game.isBooted)\r\n {\r\n this.boot();\r\n }\r\n else\r\n {\r\n game.events.once(GameEvents.BOOT, this.boot, this);\r\n }\r\n },\r\n\r\n /**\r\n * Run once the game has booted and installs all of the plugins configured in the Game Config.\r\n *\r\n * @method Phaser.Plugins.PluginManager#boot\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n boot: function ()\r\n {\r\n var i;\r\n var entry;\r\n var key;\r\n var plugin;\r\n var start;\r\n var mapping;\r\n var data;\r\n var config = this.game.config;\r\n\r\n // Any plugins to install?\r\n var list = config.installGlobalPlugins;\r\n\r\n // Any plugins added outside of the game config, but before the game booted?\r\n list = list.concat(this._pendingGlobal);\r\n\r\n for (i = 0; i < list.length; i++)\r\n {\r\n entry = list[i];\r\n\r\n // { key: 'TestPlugin', plugin: TestPlugin, start: true, mapping: 'test', data: { msg: 'The plugin is alive' } }\r\n\r\n key = GetFastValue(entry, 'key', null);\r\n plugin = GetFastValue(entry, 'plugin', null);\r\n start = GetFastValue(entry, 'start', false);\r\n mapping = GetFastValue(entry, 'mapping', null);\r\n data = GetFastValue(entry, 'data', null);\r\n\r\n if (key)\r\n {\r\n if (plugin)\r\n {\r\n this.install(key, plugin, start, mapping, data);\r\n }\r\n else\r\n {\r\n console.warn('Missing `plugin` for key: ' + key);\r\n }\r\n\r\n }\r\n }\r\n\r\n // Any scene plugins to install?\r\n list = config.installScenePlugins;\r\n\r\n // Any plugins added outside of the game config, but before the game booted?\r\n list = list.concat(this._pendingScene);\r\n\r\n for (i = 0; i < list.length; i++)\r\n {\r\n entry = list[i];\r\n\r\n // { key: 'moveSpritePlugin', plugin: MoveSpritePlugin, , mapping: 'move' }\r\n\r\n key = GetFastValue(entry, 'key', null);\r\n plugin = GetFastValue(entry, 'plugin', null);\r\n mapping = GetFastValue(entry, 'mapping', null);\r\n\r\n if (key)\r\n {\r\n if (plugin)\r\n {\r\n this.installScenePlugin(key, plugin, mapping);\r\n }\r\n else\r\n {\r\n console.warn('Missing `plugin` for key: ' + key);\r\n }\r\n }\r\n }\r\n\r\n this._pendingGlobal = [];\r\n this._pendingScene = [];\r\n\r\n this.game.events.once(GameEvents.DESTROY, this.destroy, this);\r\n },\r\n\r\n /**\r\n * Called by the Scene Systems class. Tells the plugin manager to install all Scene plugins into it.\r\n *\r\n * First it will install global references, i.e. references from the Game systems into the Scene Systems (and Scene if mapped.)\r\n * Then it will install Core Scene Plugins followed by Scene Plugins registered with the PluginManager.\r\n * Finally it will install any references to Global Plugins that have a Scene mapping property into the Scene itself.\r\n *\r\n * @method Phaser.Plugins.PluginManager#addToScene\r\n * @protected\r\n * @since 3.8.0\r\n *\r\n * @param {Phaser.Scenes.Systems} sys - The Scene Systems class to install all the plugins in to.\r\n * @param {array} globalPlugins - An array of global plugins to install.\r\n * @param {array} scenePlugins - An array of scene plugins to install.\r\n */\r\n addToScene: function (sys, globalPlugins, scenePlugins)\r\n {\r\n var i;\r\n var pluginKey;\r\n var pluginList;\r\n var game = this.game;\r\n var scene = sys.scene;\r\n var map = sys.settings.map;\r\n var isBooted = sys.settings.isBooted;\r\n\r\n // Reference the GlobalPlugins from Game into Scene.Systems\r\n for (i = 0; i < globalPlugins.length; i++)\r\n {\r\n pluginKey = globalPlugins[i];\r\n\r\n if (game[pluginKey])\r\n {\r\n sys[pluginKey] = game[pluginKey];\r\n\r\n // Scene level injection\r\n if (map.hasOwnProperty(pluginKey))\r\n {\r\n scene[map[pluginKey]] = sys[pluginKey];\r\n }\r\n }\r\n else if (pluginKey === 'game' && map.hasOwnProperty(pluginKey))\r\n {\r\n scene[map[pluginKey]] = game;\r\n }\r\n }\r\n\r\n for (var s = 0; s < scenePlugins.length; s++)\r\n {\r\n pluginList = scenePlugins[s];\r\n\r\n for (i = 0; i < pluginList.length; i++)\r\n {\r\n pluginKey = pluginList[i];\r\n\r\n if (!PluginCache.hasCore(pluginKey))\r\n {\r\n continue;\r\n }\r\n\r\n var source = PluginCache.getCore(pluginKey);\r\n\r\n var mapKey = source.mapping;\r\n\r\n var plugin = new source.plugin(scene, this, mapKey);\r\n\r\n sys[mapKey] = plugin;\r\n\r\n // Scene level injection\r\n if (source.custom)\r\n {\r\n scene[mapKey] = plugin;\r\n }\r\n else if (map.hasOwnProperty(mapKey))\r\n {\r\n scene[map[mapKey]] = plugin;\r\n }\r\n\r\n // Scene is already booted, usually because this method is being called at run-time, so boot the plugin\r\n if (isBooted)\r\n {\r\n plugin.boot();\r\n }\r\n }\r\n }\r\n\r\n // And finally, inject any 'global scene plugins'\r\n pluginList = this.plugins;\r\n\r\n for (i = 0; i < pluginList.length; i++)\r\n {\r\n var entry = pluginList[i];\r\n\r\n if (entry.mapping)\r\n {\r\n scene[entry.mapping] = entry.plugin;\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Called by the Scene Systems class. Returns a list of plugins to be installed.\r\n *\r\n * @method Phaser.Plugins.PluginManager#getDefaultScenePlugins\r\n * @protected\r\n * @since 3.8.0\r\n *\r\n * @return {string[]} A list keys of all the Scene Plugins to install.\r\n */\r\n getDefaultScenePlugins: function ()\r\n {\r\n var list = this.game.config.defaultPlugins;\r\n\r\n // Merge in custom Scene plugins\r\n list = list.concat(this.scenePlugins);\r\n\r\n return list;\r\n },\r\n\r\n /**\r\n * Installs a new Scene Plugin into the Plugin Manager and optionally adds it\r\n * to the given Scene as well. A Scene Plugin added to the manager in this way\r\n * will be automatically installed into all new Scenes using the key and mapping given.\r\n *\r\n * The `key` property is what the plugin is injected into Scene.Systems as.\r\n * The `mapping` property is optional, and if specified is what the plugin is installed into\r\n * the Scene as. For example:\r\n *\r\n * ```javascript\r\n * this.plugins.installScenePlugin('powerupsPlugin', pluginCode, 'powerups');\r\n *\r\n * // and from within the scene:\r\n * this.sys.powerupsPlugin; // key value\r\n * this.powerups; // mapping value\r\n * ```\r\n *\r\n * This method is called automatically by Phaser if you install your plugins using either the\r\n * Game Configuration object, or by preloading them via the Loader.\r\n *\r\n * @method Phaser.Plugins.PluginManager#installScenePlugin\r\n * @since 3.8.0\r\n *\r\n * @param {string} key - The property key that will be used to add this plugin to Scene.Systems.\r\n * @param {function} plugin - The plugin code. This should be the non-instantiated version.\r\n * @param {string} [mapping] - If this plugin is injected into the Phaser.Scene class, this is the property key to use.\r\n * @param {Phaser.Scene} [addToScene] - Optionally automatically add this plugin to the given Scene.\r\n * @param {boolean} [fromLoader=false] - Is this being called by the Loader?\r\n */\r\n installScenePlugin: function (key, plugin, mapping, addToScene, fromLoader)\r\n {\r\n if (fromLoader === undefined) { fromLoader = false; }\r\n\r\n if (typeof plugin !== 'function')\r\n {\r\n console.warn('Invalid Scene Plugin: ' + key);\r\n return;\r\n }\r\n\r\n if (!PluginCache.hasCore(key))\r\n {\r\n // Plugin is freshly loaded\r\n PluginCache.register(key, plugin, mapping, true);\r\n }\r\n\r\n if (this.scenePlugins.indexOf(key) === -1)\r\n {\r\n this.scenePlugins.push(key);\r\n }\r\n else if (!fromLoader && PluginCache.hasCore(key))\r\n {\r\n // Plugin wasn't from the loader but already exists\r\n console.warn('Scene Plugin key in use: ' + key);\r\n return;\r\n }\r\n\r\n if (addToScene)\r\n {\r\n var instance = new plugin(addToScene, this, key);\r\n\r\n addToScene.sys[key] = instance;\r\n\r\n if (mapping && mapping !== '')\r\n {\r\n addToScene[mapping] = instance;\r\n }\r\n\r\n instance.boot();\r\n }\r\n },\r\n\r\n /**\r\n * Installs a new Global Plugin into the Plugin Manager and optionally starts it running.\r\n * A global plugin belongs to the Plugin Manager, rather than a specific Scene, and can be accessed\r\n * and used by all Scenes in your game.\r\n *\r\n * The `key` property is what you use to access this plugin from the Plugin Manager.\r\n *\r\n * ```javascript\r\n * this.plugins.install('powerupsPlugin', pluginCode);\r\n *\r\n * // and from within the scene:\r\n * this.plugins.get('powerupsPlugin');\r\n * ```\r\n *\r\n * This method is called automatically by Phaser if you install your plugins using either the\r\n * Game Configuration object, or by preloading them via the Loader.\r\n *\r\n * The same plugin can be installed multiple times into the Plugin Manager by simply giving each\r\n * instance its own unique key.\r\n *\r\n * @method Phaser.Plugins.PluginManager#install\r\n * @since 3.8.0\r\n *\r\n * @param {string} key - The unique handle given to this plugin within the Plugin Manager.\r\n * @param {function} plugin - The plugin code. This should be the non-instantiated version.\r\n * @param {boolean} [start=false] - Automatically start the plugin running? This is always `true` if you provide a mapping value.\r\n * @param {string} [mapping] - If this plugin is injected into the Phaser.Scene class, this is the property key to use.\r\n * @param {any} [data] - A value passed to the plugin's `init` method.\r\n *\r\n * @return {?Phaser.Plugins.BasePlugin} The plugin that was started, or `null` if `start` was false, or game isn't yet booted.\r\n */\r\n install: function (key, plugin, start, mapping, data)\r\n {\r\n if (start === undefined) { start = false; }\r\n if (mapping === undefined) { mapping = null; }\r\n if (data === undefined) { data = null; }\r\n\r\n if (typeof plugin !== 'function')\r\n {\r\n console.warn('Invalid Plugin: ' + key);\r\n return null;\r\n }\r\n\r\n if (PluginCache.hasCustom(key))\r\n {\r\n console.warn('Plugin key in use: ' + key);\r\n return null;\r\n }\r\n\r\n if (mapping !== null)\r\n {\r\n start = true;\r\n }\r\n\r\n if (!this.game.isBooted)\r\n {\r\n this._pendingGlobal.push({ key: key, plugin: plugin, start: start, mapping: mapping, data: data });\r\n }\r\n else\r\n {\r\n // Add it to the plugin store\r\n PluginCache.registerCustom(key, plugin, mapping, data);\r\n\r\n if (start)\r\n {\r\n return this.start(key);\r\n }\r\n }\r\n\r\n return null;\r\n },\r\n\r\n /**\r\n * Gets an index of a global plugin based on the given key.\r\n *\r\n * @method Phaser.Plugins.PluginManager#getIndex\r\n * @protected\r\n * @since 3.8.0\r\n *\r\n * @param {string} key - The unique plugin key.\r\n *\r\n * @return {number} The index of the plugin within the plugins array.\r\n */\r\n getIndex: function (key)\r\n {\r\n var list = this.plugins;\r\n\r\n for (var i = 0; i < list.length; i++)\r\n {\r\n var entry = list[i];\r\n\r\n if (entry.key === key)\r\n {\r\n return i;\r\n }\r\n }\r\n\r\n return -1;\r\n },\r\n\r\n /**\r\n * Gets a global plugin based on the given key.\r\n *\r\n * @method Phaser.Plugins.PluginManager#getEntry\r\n * @protected\r\n * @since 3.8.0\r\n *\r\n * @param {string} key - The unique plugin key.\r\n *\r\n * @return {Phaser.Types.Plugins.GlobalPlugin} The plugin entry.\r\n */\r\n getEntry: function (key)\r\n {\r\n var idx = this.getIndex(key);\r\n\r\n if (idx !== -1)\r\n {\r\n return this.plugins[idx];\r\n }\r\n },\r\n\r\n /**\r\n * Checks if the given global plugin, based on its key, is active or not.\r\n *\r\n * @method Phaser.Plugins.PluginManager#isActive\r\n * @since 3.8.0\r\n *\r\n * @param {string} key - The unique plugin key.\r\n *\r\n * @return {boolean} `true` if the plugin is active, otherwise `false`.\r\n */\r\n isActive: function (key)\r\n {\r\n var entry = this.getEntry(key);\r\n\r\n return (entry && entry.active);\r\n },\r\n\r\n /**\r\n * Starts a global plugin running.\r\n *\r\n * If the plugin was previously active then calling `start` will reset it to an active state and then\r\n * call its `start` method.\r\n *\r\n * If the plugin has never been run before a new instance of it will be created within the Plugin Manager,\r\n * its active state set and then both of its `init` and `start` methods called, in that order.\r\n *\r\n * If the plugin is already running under the given key then nothing happens.\r\n *\r\n * @method Phaser.Plugins.PluginManager#start\r\n * @since 3.8.0\r\n *\r\n * @param {string} key - The key of the plugin to start.\r\n * @param {string} [runAs] - Run the plugin under a new key. This allows you to run one plugin multiple times.\r\n *\r\n * @return {?Phaser.Plugins.BasePlugin} The plugin that was started, or `null` if invalid key given or plugin is already stopped.\r\n */\r\n start: function (key, runAs)\r\n {\r\n if (runAs === undefined) { runAs = key; }\r\n\r\n var entry = this.getEntry(runAs);\r\n\r\n // Plugin already running under this key?\r\n if (entry && !entry.active)\r\n {\r\n // It exists, we just need to start it up again\r\n entry.active = true;\r\n entry.plugin.start();\r\n }\r\n else if (!entry)\r\n {\r\n entry = this.createEntry(key, runAs);\r\n }\r\n\r\n return (entry) ? entry.plugin : null;\r\n },\r\n\r\n /**\r\n * Creates a new instance of a global plugin, adds an entry into the plugins array and returns it.\r\n *\r\n * @method Phaser.Plugins.PluginManager#createEntry\r\n * @private\r\n * @since 3.9.0\r\n *\r\n * @param {string} key - The key of the plugin to create an instance of.\r\n * @param {string} [runAs] - Run the plugin under a new key. This allows you to run one plugin multiple times.\r\n *\r\n * @return {?Phaser.Plugins.BasePlugin} The plugin that was started, or `null` if invalid key given.\r\n */\r\n createEntry: function (key, runAs)\r\n {\r\n var entry = PluginCache.getCustom(key);\r\n\r\n if (entry)\r\n {\r\n var instance = new entry.plugin(this);\r\n\r\n entry = {\r\n key: runAs,\r\n plugin: instance,\r\n active: true,\r\n mapping: entry.mapping,\r\n data: entry.data\r\n };\r\n\r\n this.plugins.push(entry);\r\n\r\n instance.init(entry.data);\r\n instance.start();\r\n }\r\n\r\n return entry;\r\n },\r\n\r\n /**\r\n * Stops a global plugin from running.\r\n *\r\n * If the plugin is active then its active state will be set to false and the plugins `stop` method\r\n * will be called.\r\n *\r\n * If the plugin is not already running, nothing will happen.\r\n *\r\n * @method Phaser.Plugins.PluginManager#stop\r\n * @since 3.8.0\r\n *\r\n * @param {string} key - The key of the plugin to stop.\r\n *\r\n * @return {this} The Plugin Manager.\r\n */\r\n stop: function (key)\r\n {\r\n var entry = this.getEntry(key);\r\n\r\n if (entry && entry.active)\r\n {\r\n entry.active = false;\r\n entry.plugin.stop();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Gets a global plugin from the Plugin Manager based on the given key and returns it.\r\n *\r\n * If it cannot find an active plugin based on the key, but there is one in the Plugin Cache with the same key,\r\n * then it will create a new instance of the cached plugin and return that.\r\n *\r\n * @method Phaser.Plugins.PluginManager#get\r\n * @since 3.8.0\r\n *\r\n * @param {string} key - The key of the plugin to get.\r\n * @param {boolean} [autoStart=true] - Automatically start a new instance of the plugin if found in the cache, but not actively running.\r\n *\r\n * @return {?(Phaser.Plugins.BasePlugin|function)} The plugin, or `null` if no plugin was found matching the key.\r\n */\r\n get: function (key, autoStart)\r\n {\r\n if (autoStart === undefined) { autoStart = true; }\r\n\r\n var entry = this.getEntry(key);\r\n\r\n if (entry)\r\n {\r\n return entry.plugin;\r\n }\r\n else\r\n {\r\n var plugin = this.getClass(key);\r\n\r\n if (plugin && autoStart)\r\n {\r\n entry = this.createEntry(key, key);\r\n\r\n return (entry) ? entry.plugin : null;\r\n }\r\n else if (plugin)\r\n {\r\n return plugin;\r\n }\r\n }\r\n\r\n return null;\r\n },\r\n\r\n /**\r\n * Returns the plugin class from the cache.\r\n * Used internally by the Plugin Manager.\r\n *\r\n * @method Phaser.Plugins.PluginManager#getClass\r\n * @since 3.8.0\r\n *\r\n * @param {string} key - The key of the plugin to get.\r\n *\r\n * @return {Phaser.Plugins.BasePlugin} A Plugin object\r\n */\r\n getClass: function (key)\r\n {\r\n return PluginCache.getCustomClass(key);\r\n },\r\n\r\n /**\r\n * Removes a global plugin from the Plugin Manager and Plugin Cache.\r\n *\r\n * It is up to you to remove all references to this plugin that you may hold within your game code.\r\n *\r\n * @method Phaser.Plugins.PluginManager#removeGlobalPlugin\r\n * @since 3.8.0\r\n *\r\n * @param {string} key - The key of the plugin to remove.\r\n */\r\n removeGlobalPlugin: function (key)\r\n {\r\n var entry = this.getEntry(key);\r\n\r\n if (entry)\r\n {\r\n Remove(this.plugins, entry);\r\n }\r\n\r\n PluginCache.removeCustom(key);\r\n },\r\n\r\n /**\r\n * Removes a scene plugin from the Plugin Manager and Plugin Cache.\r\n *\r\n * This will not remove the plugin from any active Scenes that are already using it.\r\n *\r\n * It is up to you to remove all references to this plugin that you may hold within your game code.\r\n *\r\n * @method Phaser.Plugins.PluginManager#removeScenePlugin\r\n * @since 3.8.0\r\n *\r\n * @param {string} key - The key of the plugin to remove.\r\n */\r\n removeScenePlugin: function (key)\r\n {\r\n Remove(this.scenePlugins, key);\r\n\r\n PluginCache.remove(key);\r\n },\r\n\r\n /**\r\n * Registers a new type of Game Object with the global Game Object Factory and / or Creator.\r\n * This is usually called from within your Plugin code and is a helpful short-cut for creating\r\n * new Game Objects.\r\n *\r\n * The key is the property that will be injected into the factories and used to create the\r\n * Game Object. For example:\r\n *\r\n * ```javascript\r\n * this.plugins.registerGameObject('clown', clownFactoryCallback, clownCreatorCallback);\r\n * // later in your game code:\r\n * this.add.clown();\r\n * this.make.clown();\r\n * ```\r\n *\r\n * The callbacks are what are called when the factories try to create a Game Object\r\n * matching the given key. It's important to understand that the callbacks are invoked within\r\n * the context of the GameObjectFactory. In this context there are several properties available\r\n * to use:\r\n *\r\n * this.scene - A reference to the Scene that owns the GameObjectFactory.\r\n * this.displayList - A reference to the Display List the Scene owns.\r\n * this.updateList - A reference to the Update List the Scene owns.\r\n *\r\n * See the GameObjectFactory and GameObjectCreator classes for more details.\r\n * Any public property or method listed is available from your callbacks under `this`.\r\n *\r\n * @method Phaser.Plugins.PluginManager#registerGameObject\r\n * @since 3.8.0\r\n *\r\n * @param {string} key - The key of the Game Object that the given callbacks will create, i.e. `image`, `sprite`.\r\n * @param {function} [factoryCallback] - The callback to invoke when the Game Object Factory is called.\r\n * @param {function} [creatorCallback] - The callback to invoke when the Game Object Creator is called.\r\n */\r\n registerGameObject: function (key, factoryCallback, creatorCallback)\r\n {\r\n if (factoryCallback)\r\n {\r\n GameObjectFactory.register(key, factoryCallback);\r\n }\r\n\r\n if (creatorCallback)\r\n {\r\n GameObjectCreator.register(key, creatorCallback);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes a previously registered Game Object from the global Game Object Factory and / or Creator.\r\n * This is usually called from within your Plugin destruction code to help clean-up after your plugin has been removed.\r\n *\r\n * @method Phaser.Plugins.PluginManager#removeGameObject\r\n * @since 3.19.0\r\n *\r\n * @param {string} key - The key of the Game Object to be removed from the factories.\r\n * @param {boolean} [removeFromFactory=true] - Should the Game Object be removed from the Game Object Factory?\r\n * @param {boolean} [removeFromCreator=true] - Should the Game Object be removed from the Game Object Creator?\r\n */\r\n removeGameObject: function (key, removeFromFactory, removeFromCreator)\r\n {\r\n if (removeFromFactory === undefined) { removeFromFactory = true; }\r\n if (removeFromCreator === undefined) { removeFromCreator = true; }\r\n\r\n if (removeFromFactory)\r\n {\r\n GameObjectFactory.remove(key);\r\n }\r\n\r\n if (removeFromCreator)\r\n {\r\n GameObjectCreator.remove(key);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Registers a new file type with the global File Types Manager, making it available to all Loader\r\n * Plugins created after this.\r\n *\r\n * This is usually called from within your Plugin code and is a helpful short-cut for creating\r\n * new loader file types.\r\n *\r\n * The key is the property that will be injected into the Loader Plugin and used to load the\r\n * files. For example:\r\n *\r\n * ```javascript\r\n * this.plugins.registerFileType('wad', doomWadLoaderCallback);\r\n * // later in your preload code:\r\n * this.load.wad();\r\n * ```\r\n *\r\n * The callback is what is called when the loader tries to load a file matching the given key.\r\n * It's important to understand that the callback is invoked within\r\n * the context of the LoaderPlugin. In this context there are several properties / methods available\r\n * to use:\r\n *\r\n * this.addFile - A method to add the new file to the load queue.\r\n * this.scene - The Scene that owns the Loader Plugin instance.\r\n *\r\n * See the LoaderPlugin class for more details. Any public property or method listed is available from\r\n * your callback under `this`.\r\n *\r\n * @method Phaser.Plugins.PluginManager#registerFileType\r\n * @since 3.8.0\r\n *\r\n * @param {string} key - The key of the Game Object that the given callbacks will create, i.e. `image`, `sprite`.\r\n * @param {function} callback - The callback to invoke when the Game Object Factory is called.\r\n * @param {Phaser.Scene} [addToScene] - Optionally add this file type into the Loader Plugin owned by the given Scene.\r\n */\r\n registerFileType: function (key, callback, addToScene)\r\n {\r\n FileTypesManager.register(key, callback);\r\n\r\n if (addToScene && addToScene.sys.load)\r\n {\r\n addToScene.sys.load[key] = callback;\r\n }\r\n },\r\n\r\n /**\r\n * Destroys this Plugin Manager and all associated plugins.\r\n * It will iterate all plugins found and call their `destroy` methods.\r\n *\r\n * The PluginCache will remove all custom plugins.\r\n *\r\n * @method Phaser.Plugins.PluginManager#destroy\r\n * @since 3.8.0\r\n */\r\n destroy: function ()\r\n {\r\n for (var i = 0; i < this.plugins.length; i++)\r\n {\r\n this.plugins[i].plugin.destroy();\r\n }\r\n\r\n PluginCache.destroyCustomPlugins();\r\n\r\n if (this.game.noReturn)\r\n {\r\n PluginCache.destroyCorePlugins();\r\n }\r\n\r\n this.game = null;\r\n this.plugins = [];\r\n this.scenePlugins = [];\r\n }\r\n\r\n});\r\n\r\n/*\r\n * \"Sometimes, the elegant implementation is just a function.\r\n * Not a method. Not a class. Not a framework. Just a function.\"\r\n * -- John Carmack\r\n */\r\n\r\nmodule.exports = PluginManager;\r\n\n\n/***/ }),\n\n/***/ 45145:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n* @author Richard Davey \r\n* @copyright 2013-2024 Phaser Studio Inc.\r\n* @license {@link https://github.com/photonstorm/phaser3-plugin-template/blob/master/LICENSE|MIT License}\r\n*/\r\n\r\nvar BasePlugin = __webpack_require__(52018);\r\nvar Class = __webpack_require__(83419);\r\nvar SceneEvents = __webpack_require__(44594);\r\n\r\n/**\r\n * @classdesc\r\n * A Scene Level Plugin is installed into every Scene and belongs to that Scene.\r\n * It can listen for Scene events and respond to them.\r\n * It can map itself to a Scene property, or into the Scene Systems, or both.\r\n *\r\n * @class ScenePlugin\r\n * @memberof Phaser.Plugins\r\n * @extends Phaser.Plugins.BasePlugin\r\n * @constructor\r\n * @since 3.8.0\r\n *\r\n * @param {Phaser.Scene} scene - A reference to the Scene that has installed this plugin.\r\n * @param {Phaser.Plugins.PluginManager} pluginManager - A reference to the Plugin Manager.\r\n * @param {string} pluginKey - The key under which this plugin has been installed into the Scene Systems.\r\n */\r\nvar ScenePlugin = new Class({\r\n\r\n Extends: BasePlugin,\r\n\r\n initialize:\r\n\r\n function ScenePlugin (scene, pluginManager, pluginKey)\r\n {\r\n BasePlugin.call(this, pluginManager);\r\n\r\n /**\r\n * A reference to the Scene that has installed this plugin.\r\n * Only set if it's a Scene Plugin, otherwise `null`.\r\n * This property is only set when the plugin is instantiated and added to the Scene, not before.\r\n * You can use it during the `boot` method.\r\n *\r\n * @name Phaser.Plugins.ScenePlugin#scene\r\n * @type {?Phaser.Scene}\r\n * @protected\r\n * @since 3.8.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * A reference to the Scene Systems of the Scene that has installed this plugin.\r\n * Only set if it's a Scene Plugin, otherwise `null`.\r\n * This property is only set when the plugin is instantiated and added to the Scene, not before.\r\n * You can use it during the `boot` method.\r\n *\r\n * @name Phaser.Plugins.ScenePlugin#systems\r\n * @type {?Phaser.Scenes.Systems}\r\n * @protected\r\n * @since 3.8.0\r\n */\r\n this.systems = scene.sys;\r\n\r\n /**\r\n * The key under which this plugin was installed into the Scene Systems.\r\n *\r\n * This property is only set when the plugin is instantiated and added to the Scene, not before.\r\n * You can use it during the `boot` method.\r\n *\r\n * @name Phaser.Plugins.ScenePlugin#pluginKey\r\n * @type {string}\r\n * @readonly\r\n * @since 3.54.0\r\n */\r\n this.pluginKey = pluginKey;\r\n\r\n scene.sys.events.once(SceneEvents.BOOT, this.boot, this);\r\n },\r\n\r\n /**\r\n * This method is called when the Scene boots. It is only ever called once.\r\n *\r\n * By this point the plugin properties `scene` and `systems` will have already been set.\r\n *\r\n * In here you can listen for {@link Phaser.Scenes.Events Scene events} and set-up whatever you need for this plugin to run.\r\n * Here are the Scene events you can listen to:\r\n *\r\n * - start\r\n * - ready\r\n * - preupdate\r\n * - update\r\n * - postupdate\r\n * - resize\r\n * - pause\r\n * - resume\r\n * - sleep\r\n * - wake\r\n * - transitioninit\r\n * - transitionstart\r\n * - transitioncomplete\r\n * - transitionout\r\n * - shutdown\r\n * - destroy\r\n *\r\n * At the very least you should offer a destroy handler for when the Scene closes down, i.e:\r\n *\r\n * ```javascript\r\n * var eventEmitter = this.systems.events;\r\n * eventEmitter.once('destroy', this.sceneDestroy, this);\r\n * ```\r\n *\r\n * @method Phaser.Plugins.ScenePlugin#boot\r\n * @since 3.8.0\r\n */\r\n boot: function ()\r\n {\r\n },\r\n\r\n /**\r\n * Game instance has been destroyed.\r\n *\r\n * You must release everything in here, all references, all objects, free it all up.\r\n *\r\n * @method Phaser.Plugins.ScenePlugin#destroy\r\n * @since 3.8.0\r\n */\r\n destroy: function ()\r\n {\r\n this.pluginManager = null;\r\n this.game = null;\r\n this.scene = null;\r\n this.systems = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = ScenePlugin;\r\n\n\n/***/ }),\n\n/***/ 18922:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Plugins\r\n */\r\n\r\nmodule.exports = {\r\n\r\n BasePlugin: __webpack_require__(52018),\r\n DefaultPlugins: __webpack_require__(42363),\r\n PluginCache: __webpack_require__(37277),\r\n PluginManager: __webpack_require__(77332),\r\n ScenePlugin: __webpack_require__(45145)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 63595:\n/***/ (() => {\n\n// From https://github.com/ThaUnknown/rvfc-polyfill\r\n\r\nif (typeof HTMLVideoElement !== 'undefined' && !('requestVideoFrameCallback' in HTMLVideoElement.prototype) && 'getVideoPlaybackQuality' in HTMLVideoElement.prototype)\r\n{\r\n HTMLVideoElement.prototype._rvfcpolyfillmap = {}\r\n HTMLVideoElement.prototype.requestVideoFrameCallback = function (callback) {\r\n const handle = performance.now()\r\n const quality = this.getVideoPlaybackQuality()\r\n const baseline = this.mozPresentedFrames || this.mozPaintedFrames || quality.totalVideoFrames - quality.droppedVideoFrames\r\n\r\n const check = (old, now) => {\r\n const newquality = this.getVideoPlaybackQuality()\r\n const presentedFrames = this.mozPresentedFrames || this.mozPaintedFrames || newquality.totalVideoFrames - newquality.droppedVideoFrames\r\n if (presentedFrames > baseline) {\r\n const processingDuration = this.mozFrameDelay || (newquality.totalFrameDelay - quality.totalFrameDelay) || 0\r\n const timediff = now - old // HighRes diff\r\n callback(now, {\r\n presentationTime: now + processingDuration * 1000,\r\n expectedDisplayTime: now + timediff,\r\n width: this.videoWidth,\r\n height: this.videoHeight,\r\n mediaTime: Math.max(0, this.currentTime || 0) + timediff / 1000,\r\n presentedFrames,\r\n processingDuration\r\n })\r\n delete this._rvfcpolyfillmap[handle]\r\n } else {\r\n this._rvfcpolyfillmap[handle] = requestAnimationFrame(newer => check(now, newer))\r\n }\r\n }\r\n this._rvfcpolyfillmap[handle] = requestAnimationFrame(newer => check(handle, newer))\r\n return handle\r\n }\r\n\r\n HTMLVideoElement.prototype.cancelVideoFrameCallback = function (handle) {\r\n cancelAnimationFrame(this._rvfcpolyfillmap[handle])\r\n delete this._rvfcpolyfillmap[handle]\r\n }\r\n}\r\n\n\n/***/ }),\n\n/***/ 10312:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Phaser Blend Modes.\r\n *\r\n * @namespace Phaser.BlendModes\r\n * @since 3.0.0\r\n */\r\n\r\nmodule.exports = {\r\n\r\n /**\r\n * Skips the Blend Mode check in the renderer.\r\n *\r\n * @name Phaser.BlendModes.SKIP_CHECK\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n SKIP_CHECK: -1,\r\n\r\n /**\r\n * Normal blend mode. For Canvas and WebGL.\r\n * This is the default setting and draws new shapes on top of the existing canvas content.\r\n *\r\n * @name Phaser.BlendModes.NORMAL\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n NORMAL: 0,\r\n\r\n /**\r\n * Add blend mode. For Canvas and WebGL.\r\n * Where both shapes overlap the color is determined by adding color values.\r\n *\r\n * @name Phaser.BlendModes.ADD\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n ADD: 1,\r\n\r\n /**\r\n * Multiply blend mode. For Canvas and WebGL.\r\n * The pixels are of the top layer are multiplied with the corresponding pixel of the bottom layer. A darker picture is the result.\r\n *\r\n * @name Phaser.BlendModes.MULTIPLY\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n MULTIPLY: 2,\r\n\r\n /**\r\n * Screen blend mode. For Canvas and WebGL.\r\n * The pixels are inverted, multiplied, and inverted again. A lighter picture is the result (opposite of multiply)\r\n *\r\n * @name Phaser.BlendModes.SCREEN\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n SCREEN: 3,\r\n\r\n /**\r\n * Overlay blend mode. For Canvas only.\r\n * A combination of multiply and screen. Dark parts on the base layer become darker, and light parts become lighter.\r\n *\r\n * @name Phaser.BlendModes.OVERLAY\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n OVERLAY: 4,\r\n\r\n /**\r\n * Darken blend mode. For Canvas only.\r\n * Retains the darkest pixels of both layers.\r\n *\r\n * @name Phaser.BlendModes.DARKEN\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n DARKEN: 5,\r\n\r\n /**\r\n * Lighten blend mode. For Canvas only.\r\n * Retains the lightest pixels of both layers.\r\n *\r\n * @name Phaser.BlendModes.LIGHTEN\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n LIGHTEN: 6,\r\n\r\n /**\r\n * Color Dodge blend mode. For Canvas only.\r\n * Divides the bottom layer by the inverted top layer.\r\n *\r\n * @name Phaser.BlendModes.COLOR_DODGE\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n COLOR_DODGE: 7,\r\n\r\n /**\r\n * Color Burn blend mode. For Canvas only.\r\n * Divides the inverted bottom layer by the top layer, and then inverts the result.\r\n *\r\n * @name Phaser.BlendModes.COLOR_BURN\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n COLOR_BURN: 8,\r\n\r\n /**\r\n * Hard Light blend mode. For Canvas only.\r\n * A combination of multiply and screen like overlay, but with top and bottom layer swapped.\r\n *\r\n * @name Phaser.BlendModes.HARD_LIGHT\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n HARD_LIGHT: 9,\r\n\r\n /**\r\n * Soft Light blend mode. For Canvas only.\r\n * A softer version of hard-light. Pure black or white does not result in pure black or white.\r\n *\r\n * @name Phaser.BlendModes.SOFT_LIGHT\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n SOFT_LIGHT: 10,\r\n\r\n /**\r\n * Difference blend mode. For Canvas only.\r\n * Subtracts the bottom layer from the top layer or the other way round to always get a positive value.\r\n *\r\n * @name Phaser.BlendModes.DIFFERENCE\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n DIFFERENCE: 11,\r\n\r\n /**\r\n * Exclusion blend mode. For Canvas only.\r\n * Like difference, but with lower contrast.\r\n *\r\n * @name Phaser.BlendModes.EXCLUSION\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n EXCLUSION: 12,\r\n\r\n /**\r\n * Hue blend mode. For Canvas only.\r\n * Preserves the luma and chroma of the bottom layer, while adopting the hue of the top layer.\r\n *\r\n * @name Phaser.BlendModes.HUE\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n HUE: 13,\r\n\r\n /**\r\n * Saturation blend mode. For Canvas only.\r\n * Preserves the luma and hue of the bottom layer, while adopting the chroma of the top layer.\r\n *\r\n * @name Phaser.BlendModes.SATURATION\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n SATURATION: 14,\r\n\r\n /**\r\n * Color blend mode. For Canvas only.\r\n * Preserves the luma of the bottom layer, while adopting the hue and chroma of the top layer.\r\n *\r\n * @name Phaser.BlendModes.COLOR\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n COLOR: 15,\r\n\r\n /**\r\n * Luminosity blend mode. For Canvas only.\r\n * Preserves the hue and chroma of the bottom layer, while adopting the luma of the top layer.\r\n *\r\n * @name Phaser.BlendModes.LUMINOSITY\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n LUMINOSITY: 16,\r\n\r\n /**\r\n * Alpha erase blend mode. For Canvas and WebGL.\r\n *\r\n * @name Phaser.BlendModes.ERASE\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n ERASE: 17,\r\n\r\n /**\r\n * Source-in blend mode. For Canvas only.\r\n * The new shape is drawn only where both the new shape and the destination canvas overlap. Everything else is made transparent.\r\n *\r\n * @name Phaser.BlendModes.SOURCE_IN\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n SOURCE_IN: 18,\r\n\r\n /**\r\n * Source-out blend mode. For Canvas only.\r\n * The new shape is drawn where it doesn't overlap the existing canvas content.\r\n *\r\n * @name Phaser.BlendModes.SOURCE_OUT\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n SOURCE_OUT: 19,\r\n\r\n /**\r\n * Source-out blend mode. For Canvas only.\r\n * The new shape is only drawn where it overlaps the existing canvas content.\r\n *\r\n * @name Phaser.BlendModes.SOURCE_ATOP\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n SOURCE_ATOP: 20,\r\n\r\n /**\r\n * Destination-over blend mode. For Canvas only.\r\n * New shapes are drawn behind the existing canvas content.\r\n *\r\n * @name Phaser.BlendModes.DESTINATION_OVER\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n DESTINATION_OVER: 21,\r\n\r\n /**\r\n * Destination-in blend mode. For Canvas only.\r\n * The existing canvas content is kept where both the new shape and existing canvas content overlap. Everything else is made transparent.\r\n *\r\n * @name Phaser.BlendModes.DESTINATION_IN\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n DESTINATION_IN: 22,\r\n\r\n /**\r\n * Destination-out blend mode. For Canvas only.\r\n * The existing content is kept where it doesn't overlap the new shape.\r\n *\r\n * @name Phaser.BlendModes.DESTINATION_OUT\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n DESTINATION_OUT: 23,\r\n\r\n /**\r\n * Destination-out blend mode. For Canvas only.\r\n * The existing canvas is only kept where it overlaps the new shape. The new shape is drawn behind the canvas content.\r\n *\r\n * @name Phaser.BlendModes.DESTINATION_ATOP\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n DESTINATION_ATOP: 24,\r\n\r\n /**\r\n * Lighten blend mode. For Canvas only.\r\n * Where both shapes overlap the color is determined by adding color values.\r\n *\r\n * @name Phaser.BlendModes.LIGHTER\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n LIGHTER: 25,\r\n\r\n /**\r\n * Copy blend mode. For Canvas only.\r\n * Only the new shape is shown.\r\n *\r\n * @name Phaser.BlendModes.COPY\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n COPY: 26,\r\n\r\n /**\r\n * Xor blend mode. For Canvas only.\r\n * Shapes are made transparent where both overlap and drawn normal everywhere else.\r\n *\r\n * @name Phaser.BlendModes.XOR\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n XOR: 27\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 29795:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Phaser Scale Modes.\r\n *\r\n * @namespace Phaser.ScaleModes\r\n * @since 3.0.0\r\n */\r\n\r\nvar ScaleModes = {\r\n\r\n /**\r\n * Default Scale Mode (Linear).\r\n *\r\n * @name Phaser.ScaleModes.DEFAULT\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n DEFAULT: 0,\r\n\r\n /**\r\n * Linear Scale Mode.\r\n *\r\n * @name Phaser.ScaleModes.LINEAR\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n LINEAR: 0,\r\n\r\n /**\r\n * Nearest Scale Mode.\r\n *\r\n * @name Phaser.ScaleModes.NEAREST\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n NEAREST: 1\r\n\r\n};\r\n\r\nmodule.exports = ScaleModes;\r\n\n\n/***/ }),\n\n/***/ 68627:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Felipe Alfonso <@bitnenfer>\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CameraEvents = __webpack_require__(19715);\r\nvar CanvasSnapshot = __webpack_require__(32880);\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(8054);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Events = __webpack_require__(92503);\r\nvar GetBlendModes = __webpack_require__(56373);\r\nvar ScaleEvents = __webpack_require__(97480);\r\nvar TextureEvents = __webpack_require__(69442);\r\nvar TransformMatrix = __webpack_require__(61340);\r\n\r\n/**\r\n * @classdesc\r\n * The Canvas Renderer is responsible for managing 2D canvas rendering contexts,\r\n * including the one used by the Games canvas. It tracks the internal state of a\r\n * given context and can renderer textured Game Objects to it, taking into\r\n * account alpha, blending, and scaling.\r\n *\r\n * @class CanvasRenderer\r\n * @extends Phaser.Events.EventEmitter\r\n * @memberof Phaser.Renderer.Canvas\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Game} game - The Phaser Game instance that owns this renderer.\r\n */\r\nvar CanvasRenderer = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function CanvasRenderer (game)\r\n {\r\n EventEmitter.call(this);\r\n\r\n var gameConfig = game.config;\r\n\r\n /**\r\n * The local configuration settings of the CanvasRenderer.\r\n *\r\n * @name Phaser.Renderer.Canvas.CanvasRenderer#config\r\n * @type {object}\r\n * @since 3.0.0\r\n */\r\n this.config = {\r\n clearBeforeRender: gameConfig.clearBeforeRender,\r\n backgroundColor: gameConfig.backgroundColor,\r\n antialias: gameConfig.antialias,\r\n roundPixels: gameConfig.roundPixels\r\n };\r\n\r\n /**\r\n * The Phaser Game instance that owns this renderer.\r\n *\r\n * @name Phaser.Renderer.Canvas.CanvasRenderer#game\r\n * @type {Phaser.Game}\r\n * @since 3.0.0\r\n */\r\n this.game = game;\r\n\r\n /**\r\n * A constant which allows the renderer to be easily identified as a Canvas Renderer.\r\n *\r\n * @name Phaser.Renderer.Canvas.CanvasRenderer#type\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.type = CONST.CANVAS;\r\n\r\n /**\r\n * The total number of Game Objects which were rendered in a frame.\r\n *\r\n * @name Phaser.Renderer.Canvas.CanvasRenderer#drawCount\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.drawCount = 0;\r\n\r\n /**\r\n * The width of the canvas being rendered to.\r\n *\r\n * @name Phaser.Renderer.Canvas.CanvasRenderer#width\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.width = 0;\r\n\r\n /**\r\n * The height of the canvas being rendered to.\r\n *\r\n * @name Phaser.Renderer.Canvas.CanvasRenderer#height\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.height = 0;\r\n\r\n /**\r\n * The canvas element which the Game uses.\r\n *\r\n * @name Phaser.Renderer.Canvas.CanvasRenderer#gameCanvas\r\n * @type {HTMLCanvasElement}\r\n * @since 3.0.0\r\n */\r\n this.gameCanvas = game.canvas;\r\n\r\n var contextOptions = {\r\n alpha: game.config.transparent,\r\n desynchronized: game.config.desynchronized,\r\n willReadFrequently: false\r\n };\r\n\r\n /**\r\n * The canvas context used to render all Cameras in all Scenes during the game loop.\r\n *\r\n * @name Phaser.Renderer.Canvas.CanvasRenderer#gameContext\r\n * @type {CanvasRenderingContext2D}\r\n * @since 3.0.0\r\n */\r\n this.gameContext = (gameConfig.context) ? gameConfig.context : this.gameCanvas.getContext('2d', contextOptions);\r\n\r\n /**\r\n * The canvas context currently used by the CanvasRenderer for all rendering operations.\r\n *\r\n * @name Phaser.Renderer.Canvas.CanvasRenderer#currentContext\r\n * @type {CanvasRenderingContext2D}\r\n * @since 3.0.0\r\n */\r\n this.currentContext = this.gameContext;\r\n\r\n /**\r\n * Should the Canvas use Image Smoothing or not when drawing Sprites?\r\n *\r\n * @name Phaser.Renderer.Canvas.CanvasRenderer#antialias\r\n * @type {boolean}\r\n * @since 3.20.0\r\n */\r\n this.antialias = game.config.antialias;\r\n\r\n /**\r\n * The blend modes supported by the Canvas Renderer.\r\n *\r\n * This object maps the {@link Phaser.BlendModes} to canvas compositing operations.\r\n *\r\n * @name Phaser.Renderer.Canvas.CanvasRenderer#blendModes\r\n * @type {array}\r\n * @since 3.0.0\r\n */\r\n this.blendModes = GetBlendModes();\r\n\r\n /**\r\n * Details about the currently scheduled snapshot.\r\n *\r\n * If a non-null `callback` is set in this object, a snapshot of the canvas will be taken after the current frame is fully rendered.\r\n *\r\n * @name Phaser.Renderer.Canvas.CanvasRenderer#snapshotState\r\n * @type {Phaser.Types.Renderer.Snapshot.SnapshotState}\r\n * @since 3.16.0\r\n */\r\n this.snapshotState = {\r\n x: 0,\r\n y: 0,\r\n width: 1,\r\n height: 1,\r\n getPixel: false,\r\n callback: null,\r\n type: 'image/png',\r\n encoder: 0.92\r\n };\r\n\r\n /**\r\n * A temporary Transform Matrix, re-used internally during batching.\r\n *\r\n * @name Phaser.Renderer.Canvas.CanvasRenderer#_tempMatrix1\r\n * @private\r\n * @type {Phaser.GameObjects.Components.TransformMatrix}\r\n * @since 3.11.0\r\n */\r\n this._tempMatrix1 = new TransformMatrix();\r\n\r\n /**\r\n * A temporary Transform Matrix, re-used internally during batching.\r\n *\r\n * @name Phaser.Renderer.Canvas.CanvasRenderer#_tempMatrix2\r\n * @private\r\n * @type {Phaser.GameObjects.Components.TransformMatrix}\r\n * @since 3.11.0\r\n */\r\n this._tempMatrix2 = new TransformMatrix();\r\n\r\n /**\r\n * A temporary Transform Matrix, re-used internally during batching.\r\n *\r\n * @name Phaser.Renderer.Canvas.CanvasRenderer#_tempMatrix3\r\n * @private\r\n * @type {Phaser.GameObjects.Components.TransformMatrix}\r\n * @since 3.11.0\r\n */\r\n this._tempMatrix3 = new TransformMatrix();\r\n\r\n /**\r\n * Has this renderer fully booted yet?\r\n *\r\n * @name Phaser.Renderer.Canvas.CanvasRenderer#isBooted\r\n * @type {boolean}\r\n * @since 3.50.0\r\n */\r\n this.isBooted = false;\r\n\r\n this.init();\r\n },\r\n\r\n /**\r\n * Prepares the game canvas for rendering.\r\n *\r\n * @method Phaser.Renderer.Canvas.CanvasRenderer#init\r\n * @since 3.0.0\r\n */\r\n init: function ()\r\n {\r\n this.game.textures.once(TextureEvents.READY, this.boot, this);\r\n },\r\n\r\n /**\r\n * Internal boot handler.\r\n *\r\n * @method Phaser.Renderer.Canvas.CanvasRenderer#boot\r\n * @private\r\n * @since 3.50.0\r\n */\r\n boot: function ()\r\n {\r\n var game = this.game;\r\n\r\n var baseSize = game.scale.baseSize;\r\n\r\n this.width = baseSize.width;\r\n this.height = baseSize.height;\r\n\r\n this.isBooted = true;\r\n\r\n game.scale.on(ScaleEvents.RESIZE, this.onResize, this);\r\n\r\n this.resize(baseSize.width, baseSize.height);\r\n },\r\n\r\n /**\r\n * The event handler that manages the `resize` event dispatched by the Scale Manager.\r\n *\r\n * @method Phaser.Renderer.Canvas.CanvasRenderer#onResize\r\n * @since 3.16.0\r\n *\r\n * @param {Phaser.Structs.Size} gameSize - The default Game Size object. This is the un-modified game dimensions.\r\n * @param {Phaser.Structs.Size} baseSize - The base Size object. The game dimensions multiplied by the resolution. The canvas width / height values match this.\r\n */\r\n onResize: function (gameSize, baseSize)\r\n {\r\n // Has the underlying canvas size changed?\r\n if (baseSize.width !== this.width || baseSize.height !== this.height)\r\n {\r\n this.resize(baseSize.width, baseSize.height);\r\n }\r\n },\r\n\r\n /**\r\n * Resize the main game canvas.\r\n *\r\n * @method Phaser.Renderer.Canvas.CanvasRenderer#resize\r\n * @fires Phaser.Renderer.Events#RESIZE\r\n * @since 3.0.0\r\n *\r\n * @param {number} [width] - The new width of the renderer.\r\n * @param {number} [height] - The new height of the renderer.\r\n */\r\n resize: function (width, height)\r\n {\r\n this.width = width;\r\n this.height = height;\r\n\r\n this.emit(Events.RESIZE, width, height);\r\n },\r\n\r\n /**\r\n * Resets the transformation matrix of the current context to the identity matrix, thus resetting any transformation.\r\n *\r\n * @method Phaser.Renderer.Canvas.CanvasRenderer#resetTransform\r\n * @since 3.0.0\r\n */\r\n resetTransform: function ()\r\n {\r\n this.currentContext.setTransform(1, 0, 0, 1, 0, 0);\r\n },\r\n\r\n /**\r\n * Sets the blend mode (compositing operation) of the current context.\r\n *\r\n * @method Phaser.Renderer.Canvas.CanvasRenderer#setBlendMode\r\n * @since 3.0.0\r\n *\r\n * @param {string} blendMode - The new blend mode which should be used.\r\n *\r\n * @return {this} This CanvasRenderer object.\r\n */\r\n setBlendMode: function (blendMode)\r\n {\r\n this.currentContext.globalCompositeOperation = blendMode;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Changes the Canvas Rendering Context that all draw operations are performed against.\r\n *\r\n * @method Phaser.Renderer.Canvas.CanvasRenderer#setContext\r\n * @since 3.12.0\r\n *\r\n * @param {?CanvasRenderingContext2D} [ctx] - The new Canvas Rendering Context to draw everything to. Leave empty to reset to the Game Canvas.\r\n *\r\n * @return {this} The Canvas Renderer instance.\r\n */\r\n setContext: function (ctx)\r\n {\r\n this.currentContext = (ctx) ? ctx : this.gameContext;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the global alpha of the current context.\r\n *\r\n * @method Phaser.Renderer.Canvas.CanvasRenderer#setAlpha\r\n * @since 3.0.0\r\n *\r\n * @param {number} alpha - The new alpha to use, where 0 is fully transparent and 1 is fully opaque.\r\n *\r\n * @return {this} This CanvasRenderer object.\r\n */\r\n setAlpha: function (alpha)\r\n {\r\n this.currentContext.globalAlpha = alpha;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Called at the start of the render loop.\r\n *\r\n * @method Phaser.Renderer.Canvas.CanvasRenderer#preRender\r\n * @fires Phaser.Renderer.Events#PRE_RENDER_CLEAR\r\n * @fires Phaser.Renderer.Events#PRE_RENDER\r\n * @since 3.0.0\r\n */\r\n preRender: function ()\r\n {\r\n var ctx = this.gameContext;\r\n var config = this.config;\r\n\r\n var width = this.width;\r\n var height = this.height;\r\n\r\n ctx.globalAlpha = 1;\r\n ctx.globalCompositeOperation = 'source-over';\r\n ctx.setTransform(1, 0, 0, 1, 0, 0);\r\n\r\n this.emit(Events.PRE_RENDER_CLEAR);\r\n\r\n if (config.clearBeforeRender)\r\n {\r\n ctx.clearRect(0, 0, width, height);\r\n\r\n if (!config.transparent)\r\n {\r\n ctx.fillStyle = config.backgroundColor.rgba;\r\n ctx.fillRect(0, 0, width, height);\r\n }\r\n }\r\n\r\n ctx.save();\r\n\r\n this.drawCount = 0;\r\n\r\n this.emit(Events.PRE_RENDER);\r\n },\r\n\r\n /**\r\n * The core render step for a Scene Camera.\r\n *\r\n * Iterates through the given array of Game Objects and renders them with the given Camera.\r\n *\r\n * This is called by the `CameraManager.render` method. The Camera Manager instance belongs to a Scene, and is invoked\r\n * by the Scene Systems.render method.\r\n *\r\n * This method is not called if `Camera.visible` is `false`, or `Camera.alpha` is zero.\r\n *\r\n * @method Phaser.Renderer.Canvas.CanvasRenderer#render\r\n * @fires Phaser.Renderer.Events#RENDER\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to render.\r\n * @param {Phaser.GameObjects.GameObject[]} children - An array of filtered Game Objects that can be rendered by the given Camera.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Scene Camera to render with.\r\n */\r\n render: function (scene, children, camera)\r\n {\r\n var childCount = children.length;\r\n\r\n this.emit(Events.RENDER, scene, camera);\r\n\r\n var cx = camera.x;\r\n var cy = camera.y;\r\n var cw = camera.width;\r\n var ch = camera.height;\r\n\r\n var ctx = (camera.renderToTexture) ? camera.context : scene.sys.context;\r\n\r\n // Save context pre-clip\r\n ctx.save();\r\n\r\n if (this.game.scene.customViewports)\r\n {\r\n ctx.beginPath();\r\n ctx.rect(cx, cy, cw, ch);\r\n ctx.clip();\r\n }\r\n\r\n camera.emit(CameraEvents.PRE_RENDER, camera);\r\n\r\n this.currentContext = ctx;\r\n\r\n var mask = camera.mask;\r\n\r\n if (mask)\r\n {\r\n mask.preRenderCanvas(this, null, camera._maskCamera);\r\n }\r\n\r\n if (!camera.transparent)\r\n {\r\n ctx.fillStyle = camera.backgroundColor.rgba;\r\n ctx.fillRect(cx, cy, cw, ch);\r\n }\r\n\r\n ctx.globalAlpha = camera.alpha;\r\n\r\n ctx.globalCompositeOperation = 'source-over';\r\n\r\n this.drawCount += childCount;\r\n\r\n if (camera.renderToTexture)\r\n {\r\n camera.emit(CameraEvents.PRE_RENDER, camera);\r\n }\r\n\r\n camera.matrix.copyToContext(ctx);\r\n\r\n for (var i = 0; i < childCount; i++)\r\n {\r\n var child = children[i];\r\n\r\n if (child.mask)\r\n {\r\n child.mask.preRenderCanvas(this, child, camera);\r\n }\r\n\r\n child.renderCanvas(this, child, camera);\r\n\r\n if (child.mask)\r\n {\r\n child.mask.postRenderCanvas(this, child, camera);\r\n }\r\n }\r\n\r\n ctx.setTransform(1, 0, 0, 1, 0, 0);\r\n ctx.globalCompositeOperation = 'source-over';\r\n ctx.globalAlpha = 1;\r\n\r\n camera.flashEffect.postRenderCanvas(ctx);\r\n camera.fadeEffect.postRenderCanvas(ctx);\r\n\r\n camera.dirty = false;\r\n\r\n if (mask)\r\n {\r\n mask.postRenderCanvas(this);\r\n }\r\n\r\n // Restore pre-clip context\r\n ctx.restore();\r\n\r\n if (camera.renderToTexture)\r\n {\r\n camera.emit(CameraEvents.POST_RENDER, camera);\r\n\r\n if (camera.renderToGame)\r\n {\r\n scene.sys.context.drawImage(camera.canvas, cx, cy);\r\n }\r\n }\r\n\r\n camera.emit(CameraEvents.POST_RENDER, camera);\r\n },\r\n\r\n /**\r\n * Restores the game context's global settings and takes a snapshot if one is scheduled.\r\n *\r\n * The post-render step happens after all Cameras in all Scenes have been rendered.\r\n *\r\n * @method Phaser.Renderer.Canvas.CanvasRenderer#postRender\r\n * @fires Phaser.Renderer.Events#POST_RENDER\r\n * @since 3.0.0\r\n */\r\n postRender: function ()\r\n {\r\n var ctx = this.gameContext;\r\n\r\n ctx.restore();\r\n\r\n this.emit(Events.POST_RENDER);\r\n\r\n var state = this.snapshotState;\r\n\r\n if (state.callback)\r\n {\r\n CanvasSnapshot(this.gameCanvas, state);\r\n\r\n state.callback = null;\r\n }\r\n },\r\n\r\n /**\r\n * Takes a snapshot of the given area of the given canvas.\r\n *\r\n * Unlike the other snapshot methods, this one is processed immediately and doesn't wait for the next render.\r\n *\r\n * Snapshots work by creating an Image object from the canvas data, this is a blocking process, which gets\r\n * more expensive the larger the canvas size gets, so please be careful how you employ this in your game.\r\n *\r\n * @method Phaser.Renderer.Canvas.CanvasRenderer#snapshotCanvas\r\n * @since 3.19.0\r\n *\r\n * @param {HTMLCanvasElement} canvas - The canvas to grab from.\r\n * @param {Phaser.Types.Renderer.Snapshot.SnapshotCallback} callback - The Function to invoke after the snapshot image is created.\r\n * @param {boolean} [getPixel=false] - Grab a single pixel as a Color object, or an area as an Image object?\r\n * @param {number} [x=0] - The x coordinate to grab from.\r\n * @param {number} [y=0] - The y coordinate to grab from.\r\n * @param {number} [width=canvas.width] - The width of the area to grab.\r\n * @param {number} [height=canvas.height] - The height of the area to grab.\r\n * @param {string} [type='image/png'] - The format of the image to create, usually `image/png` or `image/jpeg`.\r\n * @param {number} [encoderOptions=0.92] - The image quality, between 0 and 1. Used for image formats with lossy compression, such as `image/jpeg`.\r\n *\r\n * @return {this} This Canvas Renderer.\r\n */\r\n snapshotCanvas: function (canvas, callback, getPixel, x, y, width, height, type, encoderOptions)\r\n {\r\n if (getPixel === undefined) { getPixel = false; }\r\n\r\n this.snapshotArea(x, y, width, height, callback, type, encoderOptions);\r\n\r\n var state = this.snapshotState;\r\n\r\n state.getPixel = getPixel;\r\n\r\n CanvasSnapshot(canvas, state);\r\n\r\n state.callback = null;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Schedules a snapshot of the entire game viewport to be taken after the current frame is rendered.\r\n *\r\n * To capture a specific area see the `snapshotArea` method. To capture a specific pixel, see `snapshotPixel`.\r\n *\r\n * Only one snapshot can be active _per frame_. If you have already called `snapshotPixel`, for example, then\r\n * calling this method will override it.\r\n *\r\n * Snapshots work by creating an Image object from the canvas data, this is a blocking process, which gets\r\n * more expensive the larger the canvas size gets, so please be careful how you employ this in your game.\r\n *\r\n * @method Phaser.Renderer.Canvas.CanvasRenderer#snapshot\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Renderer.Snapshot.SnapshotCallback} callback - The Function to invoke after the snapshot image is created.\r\n * @param {string} [type='image/png'] - The format of the image to create, usually `image/png` or `image/jpeg`.\r\n * @param {number} [encoderOptions=0.92] - The image quality, between 0 and 1. Used for image formats with lossy compression, such as `image/jpeg`.\r\n *\r\n * @return {this} This WebGL Renderer.\r\n */\r\n snapshot: function (callback, type, encoderOptions)\r\n {\r\n return this.snapshotArea(0, 0, this.gameCanvas.width, this.gameCanvas.height, callback, type, encoderOptions);\r\n },\r\n\r\n /**\r\n * Schedules a snapshot of the given area of the game viewport to be taken after the current frame is rendered.\r\n *\r\n * To capture the whole game viewport see the `snapshot` method. To capture a specific pixel, see `snapshotPixel`.\r\n *\r\n * Only one snapshot can be active _per frame_. If you have already called `snapshotPixel`, for example, then\r\n * calling this method will override it.\r\n *\r\n * Snapshots work by creating an Image object from the canvas data, this is a blocking process, which gets\r\n * more expensive the larger the canvas size gets, so please be careful how you employ this in your game.\r\n *\r\n * @method Phaser.Renderer.Canvas.CanvasRenderer#snapshotArea\r\n * @since 3.16.0\r\n *\r\n * @param {number} x - The x coordinate to grab from.\r\n * @param {number} y - The y coordinate to grab from.\r\n * @param {number} width - The width of the area to grab.\r\n * @param {number} height - The height of the area to grab.\r\n * @param {Phaser.Types.Renderer.Snapshot.SnapshotCallback} callback - The Function to invoke after the snapshot image is created.\r\n * @param {string} [type='image/png'] - The format of the image to create, usually `image/png` or `image/jpeg`.\r\n * @param {number} [encoderOptions=0.92] - The image quality, between 0 and 1. Used for image formats with lossy compression, such as `image/jpeg`.\r\n *\r\n * @return {this} This WebGL Renderer.\r\n */\r\n snapshotArea: function (x, y, width, height, callback, type, encoderOptions)\r\n {\r\n var state = this.snapshotState;\r\n\r\n state.callback = callback;\r\n state.type = type;\r\n state.encoder = encoderOptions;\r\n state.getPixel = false;\r\n state.x = x;\r\n state.y = y;\r\n state.width = Math.min(width, this.gameCanvas.width);\r\n state.height = Math.min(height, this.gameCanvas.height);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Schedules a snapshot of the given pixel from the game viewport to be taken after the current frame is rendered.\r\n *\r\n * To capture the whole game viewport see the `snapshot` method. To capture a specific area, see `snapshotArea`.\r\n *\r\n * Only one snapshot can be active _per frame_. If you have already called `snapshotArea`, for example, then\r\n * calling this method will override it.\r\n *\r\n * Unlike the other two snapshot methods, this one will return a `Color` object containing the color data for\r\n * the requested pixel. It doesn't need to create an internal Canvas or Image object, so is a lot faster to execute,\r\n * using less memory.\r\n *\r\n * @method Phaser.Renderer.Canvas.CanvasRenderer#snapshotPixel\r\n * @since 3.16.0\r\n *\r\n * @param {number} x - The x coordinate of the pixel to get.\r\n * @param {number} y - The y coordinate of the pixel to get.\r\n * @param {Phaser.Types.Renderer.Snapshot.SnapshotCallback} callback - The Function to invoke after the snapshot pixel data is extracted.\r\n *\r\n * @return {this} This WebGL Renderer.\r\n */\r\n snapshotPixel: function (x, y, callback)\r\n {\r\n this.snapshotArea(x, y, 1, 1, callback);\r\n\r\n this.snapshotState.getPixel = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes a Sprite Game Object, or any object that extends it, and draws it to the current context.\r\n *\r\n * @method Phaser.Renderer.Canvas.CanvasRenderer#batchSprite\r\n * @since 3.12.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} sprite - The texture based Game Object to draw.\r\n * @param {Phaser.Textures.Frame} frame - The frame to draw, doesn't have to be that owned by the Game Object.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use for the rendering transform.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} [parentTransformMatrix] - The transform matrix of the parent container, if set.\r\n */\r\n batchSprite: function (sprite, frame, camera, parentTransformMatrix)\r\n {\r\n var alpha = camera.alpha * sprite.alpha;\r\n\r\n if (alpha === 0)\r\n {\r\n // Nothing to see, so abort early\r\n return;\r\n }\r\n\r\n var ctx = this.currentContext;\r\n\r\n var camMatrix = this._tempMatrix1;\r\n var spriteMatrix = this._tempMatrix2;\r\n\r\n var cd = frame.canvasData;\r\n\r\n var frameX = cd.x;\r\n var frameY = cd.y;\r\n var frameWidth = frame.cutWidth;\r\n var frameHeight = frame.cutHeight;\r\n var customPivot = frame.customPivot;\r\n\r\n var res = frame.source.resolution;\r\n\r\n var displayOriginX = sprite.displayOriginX;\r\n var displayOriginY = sprite.displayOriginY;\r\n\r\n var x = -displayOriginX + frame.x;\r\n var y = -displayOriginY + frame.y;\r\n\r\n if (sprite.isCropped)\r\n {\r\n var crop = sprite._crop;\r\n\r\n if (crop.flipX !== sprite.flipX || crop.flipY !== sprite.flipY)\r\n {\r\n frame.updateCropUVs(crop, sprite.flipX, sprite.flipY);\r\n }\r\n\r\n frameWidth = crop.cw;\r\n frameHeight = crop.ch;\r\n\r\n frameX = crop.cx;\r\n frameY = crop.cy;\r\n\r\n x = -displayOriginX + crop.x;\r\n y = -displayOriginY + crop.y;\r\n\r\n if (sprite.flipX)\r\n {\r\n if (x >= 0)\r\n {\r\n x = -(x + frameWidth);\r\n }\r\n else if (x < 0)\r\n {\r\n x = (Math.abs(x) - frameWidth);\r\n }\r\n }\r\n\r\n if (sprite.flipY)\r\n {\r\n if (y >= 0)\r\n {\r\n y = -(y + frameHeight);\r\n }\r\n else if (y < 0)\r\n {\r\n y = (Math.abs(y) - frameHeight);\r\n }\r\n }\r\n }\r\n\r\n var flipX = 1;\r\n var flipY = 1;\r\n\r\n if (sprite.flipX)\r\n {\r\n if (!customPivot)\r\n {\r\n x += (-frame.realWidth + (displayOriginX * 2));\r\n }\r\n\r\n flipX = -1;\r\n }\r\n\r\n // Auto-invert the flipY if this is coming from a GLTexture\r\n if (sprite.flipY)\r\n {\r\n if (!customPivot)\r\n {\r\n y += (-frame.realHeight + (displayOriginY * 2));\r\n }\r\n\r\n flipY = -1;\r\n }\r\n\r\n var gx = sprite.x;\r\n var gy = sprite.y;\r\n\r\n if (camera.roundPixels)\r\n {\r\n gx = Math.floor(gx);\r\n gy = Math.floor(gy);\r\n }\r\n \r\n spriteMatrix.applyITRS(gx, gy, sprite.rotation, sprite.scaleX * flipX, sprite.scaleY * flipY);\r\n\r\n camMatrix.copyFrom(camera.matrix);\r\n\r\n if (parentTransformMatrix)\r\n {\r\n // Multiply the camera by the parent matrix\r\n camMatrix.multiplyWithOffset(parentTransformMatrix, -camera.scrollX * sprite.scrollFactorX, -camera.scrollY * sprite.scrollFactorY);\r\n\r\n // Undo the camera scroll\r\n spriteMatrix.e = gx;\r\n spriteMatrix.f = gy;\r\n }\r\n else\r\n {\r\n spriteMatrix.e -= camera.scrollX * sprite.scrollFactorX;\r\n spriteMatrix.f -= camera.scrollY * sprite.scrollFactorY;\r\n }\r\n\r\n // Multiply by the Sprite matrix\r\n camMatrix.multiply(spriteMatrix);\r\n\r\n if (camera.renderRoundPixels)\r\n {\r\n camMatrix.e = Math.floor(camMatrix.e + 0.5);\r\n camMatrix.f = Math.floor(camMatrix.f + 0.5);\r\n }\r\n\r\n ctx.save();\r\n\r\n camMatrix.setToContext(ctx);\r\n\r\n ctx.globalCompositeOperation = this.blendModes[sprite.blendMode];\r\n\r\n ctx.globalAlpha = alpha;\r\n\r\n ctx.imageSmoothingEnabled = !frame.source.scaleMode;\r\n\r\n if (sprite.mask)\r\n {\r\n sprite.mask.preRenderCanvas(this, sprite, camera);\r\n }\r\n\r\n if (frameWidth > 0 && frameHeight > 0)\r\n {\r\n var fw = frameWidth / res;\r\n var fh = frameHeight / res;\r\n\r\n if (camera.roundPixels)\r\n {\r\n x = Math.floor(x + 0.5);\r\n y = Math.floor(y + 0.5);\r\n fw += 0.5;\r\n fh += 0.5;\r\n }\r\n\r\n ctx.drawImage(\r\n frame.source.image,\r\n frameX, frameY,\r\n frameWidth, frameHeight,\r\n x, y,\r\n fw, fh\r\n );\r\n }\r\n\r\n if (sprite.mask)\r\n {\r\n sprite.mask.postRenderCanvas(this, sprite, camera);\r\n }\r\n\r\n ctx.restore();\r\n },\r\n\r\n /**\r\n * Destroys all object references in the Canvas Renderer.\r\n *\r\n * @method Phaser.Renderer.Canvas.CanvasRenderer#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.removeAllListeners();\r\n\r\n this.game = null;\r\n this.gameCanvas = null;\r\n this.gameContext = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = CanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 55830:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Renderer.Canvas\r\n */\r\n\r\nmodule.exports = {\r\n\r\n CanvasRenderer: __webpack_require__(68627),\r\n GetBlendModes: __webpack_require__(56373),\r\n SetTransform: __webpack_require__(20926)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 56373:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar modes = __webpack_require__(10312);\r\nvar CanvasFeatures = __webpack_require__(89289);\r\n\r\n/**\r\n * Returns an array which maps the default blend modes to supported Canvas blend modes.\r\n *\r\n * If the browser doesn't support a blend mode, it will default to the normal `source-over` blend mode.\r\n *\r\n * @function Phaser.Renderer.Canvas.GetBlendModes\r\n * @since 3.0.0\r\n *\r\n * @return {array} Which Canvas blend mode corresponds to which default Phaser blend mode.\r\n */\r\nvar GetBlendModes = function ()\r\n{\r\n var output = [];\r\n var useNew = CanvasFeatures.supportNewBlendModes;\r\n var so = 'source-over';\r\n\r\n output[modes.NORMAL] = so;\r\n output[modes.ADD] = 'lighter';\r\n output[modes.MULTIPLY] = (useNew) ? 'multiply' : so;\r\n output[modes.SCREEN] = (useNew) ? 'screen' : so;\r\n output[modes.OVERLAY] = (useNew) ? 'overlay' : so;\r\n output[modes.DARKEN] = (useNew) ? 'darken' : so;\r\n output[modes.LIGHTEN] = (useNew) ? 'lighten' : so;\r\n output[modes.COLOR_DODGE] = (useNew) ? 'color-dodge' : so;\r\n output[modes.COLOR_BURN] = (useNew) ? 'color-burn' : so;\r\n output[modes.HARD_LIGHT] = (useNew) ? 'hard-light' : so;\r\n output[modes.SOFT_LIGHT] = (useNew) ? 'soft-light' : so;\r\n output[modes.DIFFERENCE] = (useNew) ? 'difference' : so;\r\n output[modes.EXCLUSION] = (useNew) ? 'exclusion' : so;\r\n output[modes.HUE] = (useNew) ? 'hue' : so;\r\n output[modes.SATURATION] = (useNew) ? 'saturation' : so;\r\n output[modes.COLOR] = (useNew) ? 'color' : so;\r\n output[modes.LUMINOSITY] = (useNew) ? 'luminosity' : so;\r\n output[modes.ERASE] = 'destination-out';\r\n output[modes.SOURCE_IN] = 'source-in';\r\n output[modes.SOURCE_OUT] = 'source-out';\r\n output[modes.SOURCE_ATOP] = 'source-atop';\r\n output[modes.DESTINATION_OVER] = 'destination-over';\r\n output[modes.DESTINATION_IN] = 'destination-in';\r\n output[modes.DESTINATION_OUT] = 'destination-out';\r\n output[modes.DESTINATION_ATOP] = 'destination-atop';\r\n output[modes.LIGHTER] = 'lighter';\r\n output[modes.COPY] = 'copy';\r\n output[modes.XOR] = 'xor';\r\n\r\n return output;\r\n};\r\n\r\nmodule.exports = GetBlendModes;\r\n\n\n/***/ }),\n\n/***/ 20926:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetCalcMatrix = __webpack_require__(91296);\r\n\r\n/**\r\n * Takes a reference to the Canvas Renderer, a Canvas Rendering Context, a Game Object, a Camera and a parent matrix\r\n * and then performs the following steps:\r\n *\r\n * 1. Checks the alpha of the source combined with the Camera alpha. If 0 or less it aborts.\r\n * 2. Takes the Camera and Game Object matrix and multiplies them, combined with the parent matrix if given.\r\n * 3. Sets the blend mode of the context to be that used by the Game Object.\r\n * 4. Sets the alpha value of the context to be that used by the Game Object combined with the Camera.\r\n * 5. Saves the context state.\r\n * 6. Sets the final matrix values into the context via setTransform.\r\n * 7. If the Game Object has a texture frame, imageSmoothingEnabled is set based on frame.source.scaleMode.\r\n * 8. If the Game Object does not have a texture frame, imageSmoothingEnabled is set based on Renderer.antialias.\r\n *\r\n * This function is only meant to be used internally. Most of the Canvas Renderer classes use it.\r\n *\r\n * @function Phaser.Renderer.Canvas.SetTransform\r\n * @since 3.12.0\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {CanvasRenderingContext2D} ctx - The canvas context to set the transform on.\r\n * @param {Phaser.GameObjects.GameObject} src - The Game Object being rendered. Can be any type that extends the base class.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} [parentMatrix] - A parent transform matrix to apply to the Game Object before rendering.\r\n *\r\n * @return {boolean} `true` if the Game Object context was set, otherwise `false`.\r\n */\r\nvar SetTransform = function (renderer, ctx, src, camera, parentMatrix)\r\n{\r\n var alpha = camera.alpha * src.alpha;\r\n\r\n if (alpha <= 0)\r\n {\r\n // Nothing to see, so don't waste time calculating stuff\r\n return false;\r\n }\r\n\r\n var calcMatrix = GetCalcMatrix(src, camera, parentMatrix).calc;\r\n\r\n // Blend Mode\r\n ctx.globalCompositeOperation = renderer.blendModes[src.blendMode];\r\n\r\n // Alpha\r\n ctx.globalAlpha = alpha;\r\n\r\n ctx.save();\r\n\r\n calcMatrix.setToContext(ctx);\r\n\r\n ctx.imageSmoothingEnabled = src.frame ? !src.frame.source.scaleMode : renderer.antialias;\r\n\r\n return true;\r\n};\r\n\r\nmodule.exports = SetTransform;\r\n\n\n/***/ }),\n\n/***/ 63899:\n/***/ ((module) => {\n\n/**\r\n * @author Benjamin D. Richards \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Lose WebGL Event.\r\n *\r\n * This event is dispatched by the WebGLRenderer when the WebGL context\r\n * is lost.\r\n *\r\n * Context can be lost for a variety of reasons, like leaving the browser tab.\r\n * The game canvas DOM object will dispatch `webglcontextlost`.\r\n * All WebGL resources get wiped, and the context is reset.\r\n *\r\n * While WebGL is lost, the game will continue to run, but all WebGL resources\r\n * are lost, and new ones cannot be created.\r\n *\r\n * Once the context is restored and the renderer has automatically restored\r\n * the state, the renderer will emit a `RESTORE_WEBGL` event. At that point,\r\n * it is safe to continue.\r\n *\r\n * @event Phaser.Renderer.Events#LOSE_WEBGL\r\n * @type {string}\r\n * @since 3.80.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - the renderer that owns the WebGL context\r\n */\r\nmodule.exports = 'losewebgl';\r\n\n\n/***/ }),\n\n/***/ 6119:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Post-Render Event.\r\n *\r\n * This event is dispatched by the Renderer when all rendering, for all cameras in all Scenes,\r\n * has completed, but before any pending snap shots have been taken.\r\n *\r\n * @event Phaser.Renderer.Events#POST_RENDER\r\n * @type {string}\r\n * @since 3.50.0\r\n */\r\nmodule.exports = 'postrender';\r\n\n\n/***/ }),\n\n/***/ 48070:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Pre-Render Event.\r\n *\r\n * This event is dispatched by the Phaser Renderer. This happens right at the start of the render\r\n * process, after the context has been cleared, the scissors enabled (WebGL only) and everything has been\r\n * reset ready for the render.\r\n *\r\n * @event Phaser.Renderer.Events#PRE_RENDER\r\n * @type {string}\r\n * @since 3.50.0\r\n */\r\nmodule.exports = 'prerender';\r\n\n\n/***/ }),\n\n/***/ 15640:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Render Event.\r\n *\r\n * This event is dispatched by the Phaser Renderer for every camera in every Scene.\r\n *\r\n * It is dispatched before any of the children in the Scene have been rendered.\r\n *\r\n * @event Phaser.Renderer.Events#RENDER\r\n * @type {string}\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene being rendered.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Scene Camera being rendered.\r\n */\r\nmodule.exports = 'render';\r\n\n\n/***/ }),\n\n/***/ 8912:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Renderer Resize Event.\r\n *\r\n * This event is dispatched by the Phaser Renderer when it is resized, usually as a result\r\n * of the Scale Manager resizing.\r\n *\r\n * @event Phaser.Renderer.Events#RESIZE\r\n * @type {string}\r\n * @since 3.50.0\r\n *\r\n * @param {number} width - The new width of the renderer.\r\n * @param {number} height - The new height of the renderer.\r\n */\r\nmodule.exports = 'resize';\r\n\n\n/***/ }),\n\n/***/ 87124:\n/***/ ((module) => {\n\n/**\r\n * @author Benjamin D. Richards \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Restore WebGL Event.\r\n *\r\n * This event is dispatched by the WebGLRenderer when the WebGL context\r\n * is restored.\r\n *\r\n * It is dispatched after all WebGL resources have been recreated.\r\n * Most resources should come back automatically, but you will need to redraw\r\n * dynamic textures that were GPU bound.\r\n * Listen to this event to know when you can safely do that.\r\n *\r\n * Context can be lost for a variety of reasons, like leaving the browser tab.\r\n * The game canvas DOM object will dispatch `webglcontextlost`.\r\n * All WebGL resources get wiped, and the context is reset.\r\n *\r\n * Once the context is restored, the canvas will dispatch\r\n * `webglcontextrestored`. Phaser uses this to re-create necessary resources.\r\n * Please wait for Phaser to dispatch the `RESTORE_WEBGL` event before\r\n * re-creating any resources of your own.\r\n *\r\n * @event Phaser.Renderer.Events#RESTORE_WEBGL\r\n * @type {string}\r\n * @since 3.80.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - the renderer that owns the WebGL context\r\n */\r\nmodule.exports = 'restorewebgl';\r\n\n\n/***/ }),\n\n/***/ 92503:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Renderer.Events\r\n */\r\n\r\nmodule.exports = {\r\n\r\n LOSE_WEBGL: __webpack_require__(63899),\r\n POST_RENDER: __webpack_require__(6119),\r\n PRE_RENDER: __webpack_require__(48070),\r\n RENDER: __webpack_require__(15640),\r\n RESIZE: __webpack_require__(8912),\r\n RESTORE_WEBGL: __webpack_require__(87124)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 36909:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Renderer\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Types.Renderer\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Events: __webpack_require__(92503),\r\n Snapshot: __webpack_require__(89966)\r\n\r\n};\r\n\r\nif (true)\r\n{\r\n module.exports.Canvas = __webpack_require__(55830);\r\n}\r\n\r\nif (true)\r\n{\r\n module.exports.WebGL = __webpack_require__(4159);\r\n}\r\n\n\n/***/ }),\n\n/***/ 32880:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CanvasPool = __webpack_require__(27919);\r\nvar Color = __webpack_require__(40987);\r\nvar GetFastValue = __webpack_require__(95540);\r\n\r\n/**\r\n * Takes a snapshot of an area from the current frame displayed by a canvas.\r\n *\r\n * This is then copied to an Image object. When this loads, the results are sent\r\n * to the callback provided in the Snapshot Configuration object.\r\n *\r\n * @function Phaser.Renderer.Snapshot.Canvas\r\n * @since 3.0.0\r\n *\r\n * @param {HTMLCanvasElement} sourceCanvas - The canvas to take a snapshot of.\r\n * @param {Phaser.Types.Renderer.Snapshot.SnapshotState} config - The snapshot configuration object.\r\n */\r\nvar CanvasSnapshot = function (canvas, config)\r\n{\r\n var callback = GetFastValue(config, 'callback');\r\n var type = GetFastValue(config, 'type', 'image/png');\r\n var encoderOptions = GetFastValue(config, 'encoder', 0.92);\r\n var x = Math.abs(Math.round(GetFastValue(config, 'x', 0)));\r\n var y = Math.abs(Math.round(GetFastValue(config, 'y', 0)));\r\n var width = Math.floor(GetFastValue(config, 'width', canvas.width));\r\n var height = Math.floor(GetFastValue(config, 'height', canvas.height));\r\n var getPixel = GetFastValue(config, 'getPixel', false);\r\n\r\n if (getPixel)\r\n {\r\n var context = canvas.getContext('2d', { willReadFrequently: false });\r\n var imageData = context.getImageData(x, y, 1, 1);\r\n var data = imageData.data;\r\n\r\n callback.call(null, new Color(data[0], data[1], data[2], data[3]));\r\n }\r\n else if (x !== 0 || y !== 0 || width !== canvas.width || height !== canvas.height)\r\n {\r\n // Area Grab\r\n var copyCanvas = CanvasPool.createWebGL(this, width, height);\r\n var ctx = copyCanvas.getContext('2d', { willReadFrequently: true });\r\n\r\n if (width > 0 && height > 0)\r\n {\r\n ctx.drawImage(canvas, x, y, width, height, 0, 0, width, height);\r\n }\r\n\r\n var image1 = new Image();\r\n\r\n image1.onerror = function ()\r\n {\r\n callback.call(null);\r\n\r\n CanvasPool.remove(copyCanvas);\r\n };\r\n\r\n image1.onload = function ()\r\n {\r\n callback.call(null, image1);\r\n\r\n CanvasPool.remove(copyCanvas);\r\n };\r\n\r\n image1.src = copyCanvas.toDataURL(type, encoderOptions);\r\n }\r\n else\r\n {\r\n // Full Grab\r\n var image2 = new Image();\r\n\r\n image2.onerror = function ()\r\n {\r\n callback.call(null);\r\n };\r\n\r\n image2.onload = function ()\r\n {\r\n callback.call(null, image2);\r\n };\r\n\r\n image2.src = canvas.toDataURL(type, encoderOptions);\r\n }\r\n};\r\n\r\nmodule.exports = CanvasSnapshot;\r\n\n\n/***/ }),\n\n/***/ 88815:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CanvasPool = __webpack_require__(27919);\r\nvar Color = __webpack_require__(40987);\r\nvar GetFastValue = __webpack_require__(95540);\r\n\r\n/**\r\n * Takes a snapshot of an area from the current frame displayed by a WebGL canvas.\r\n *\r\n * This is then copied to an Image object. When this loads, the results are sent\r\n * to the callback provided in the Snapshot Configuration object.\r\n *\r\n * @function Phaser.Renderer.Snapshot.WebGL\r\n * @since 3.0.0\r\n *\r\n * @param {WebGLRenderingContext} sourceContext - The WebGL context to take a snapshot of.\r\n * @param {Phaser.Types.Renderer.Snapshot.SnapshotState} config - The snapshot configuration object.\r\n */\r\nvar WebGLSnapshot = function (sourceContext, config)\r\n{\r\n var gl = sourceContext;\r\n\r\n var callback = GetFastValue(config, 'callback');\r\n var type = GetFastValue(config, 'type', 'image/png');\r\n var encoderOptions = GetFastValue(config, 'encoder', 0.92);\r\n var x = Math.abs(Math.round(GetFastValue(config, 'x', 0)));\r\n var y = Math.abs(Math.round(GetFastValue(config, 'y', 0)));\r\n\r\n var getPixel = GetFastValue(config, 'getPixel', false);\r\n\r\n var isFramebuffer = GetFastValue(config, 'isFramebuffer', false);\r\n\r\n var bufferWidth = (isFramebuffer) ? GetFastValue(config, 'bufferWidth', 1) : gl.drawingBufferWidth;\r\n var bufferHeight = (isFramebuffer) ? GetFastValue(config, 'bufferHeight', 1) : gl.drawingBufferHeight;\r\n\r\n if (getPixel)\r\n {\r\n var pixel = new Uint8Array(4);\r\n\r\n var destY = (isFramebuffer) ? y : bufferHeight - y;\r\n\r\n gl.readPixels(x, destY, 1, 1, gl.RGBA, gl.UNSIGNED_BYTE, pixel);\r\n\r\n callback.call(null, new Color(pixel[0], pixel[1], pixel[2], pixel[3]));\r\n }\r\n else\r\n {\r\n var width = Math.floor(GetFastValue(config, 'width', bufferWidth));\r\n var height = Math.floor(GetFastValue(config, 'height', bufferHeight));\r\n\r\n var total = width * height * 4;\r\n\r\n var pixels = new Uint8Array(total);\r\n\r\n gl.readPixels(x, bufferHeight - y - height, width, height, gl.RGBA, gl.UNSIGNED_BYTE, pixels);\r\n\r\n var canvas = CanvasPool.createWebGL(this, width, height);\r\n var ctx = canvas.getContext('2d', { willReadFrequently: true });\r\n\r\n var imageData = ctx.getImageData(0, 0, width, height);\r\n\r\n var data = imageData.data;\r\n\r\n for (var py = 0; py < height; py++)\r\n {\r\n for (var px = 0; px < width; px++)\r\n {\r\n var sourceIndex = ((height - py - 1) * width + px) * 4;\r\n\r\n var destIndex = (isFramebuffer) ? total - ((py * width + (width - px)) * 4) : (py * width + px) * 4;\r\n\r\n data[destIndex + 0] = pixels[sourceIndex + 0];\r\n data[destIndex + 1] = pixels[sourceIndex + 1];\r\n data[destIndex + 2] = pixels[sourceIndex + 2];\r\n data[destIndex + 3] = pixels[sourceIndex + 3];\r\n }\r\n }\r\n\r\n ctx.putImageData(imageData, 0, 0);\r\n\r\n var image = new Image();\r\n\r\n image.onerror = function ()\r\n {\r\n callback.call(null);\r\n\r\n CanvasPool.remove(canvas);\r\n };\r\n\r\n image.onload = function ()\r\n {\r\n callback.call(null, image);\r\n\r\n CanvasPool.remove(canvas);\r\n };\r\n\r\n image.src = canvas.toDataURL(type, encoderOptions);\r\n }\r\n};\r\n\r\nmodule.exports = WebGLSnapshot;\r\n\n\n/***/ }),\n\n/***/ 89966:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Renderer.Snapshot\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Canvas: __webpack_require__(32880),\r\n WebGL: __webpack_require__(88815)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 7530:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(36060);\r\nvar CustomMap = __webpack_require__(90330);\r\nvar Device = __webpack_require__(82264);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar RenderTarget = __webpack_require__(32302);\r\nvar SnapCeil = __webpack_require__(63448);\r\n\r\n// Default Phaser 3 Pipelines\r\nvar BitmapMaskPipeline = __webpack_require__(31302);\r\nvar FX = __webpack_require__(58918);\r\nvar FX_CONST = __webpack_require__(14811);\r\nvar FXPipeline = __webpack_require__(92651);\r\nvar LightPipeline = __webpack_require__(96569);\r\nvar MobilePipeline = __webpack_require__(56527);\r\nvar MultiPipeline = __webpack_require__(57516);\r\nvar PointLightPipeline = __webpack_require__(43439);\r\nvar RopePipeline = __webpack_require__(81041);\r\nvar SinglePipeline = __webpack_require__(12385);\r\nvar UtilityPipeline = __webpack_require__(7589);\r\nvar ArrayEach = __webpack_require__(95428);\r\nvar ArrayRemove = __webpack_require__(72905);\r\n\r\n/**\r\n * @classdesc\r\n * The Pipeline Manager is responsible for the creation, activation, running and destruction\r\n * of WebGL Pipelines and Post FX Pipelines in Phaser 3.\r\n *\r\n * The `WebGLRenderer` owns a single instance of the Pipeline Manager, which you can access\r\n * via the `WebGLRenderer.pipelines` property.\r\n *\r\n * By default, there are 9 pipelines installed into the Pipeline Manager when Phaser boots:\r\n *\r\n * 1. The Multi Pipeline. Responsible for all multi-texture rendering, i.e. Sprites and Tilemaps.\r\n * 2. The Rope Pipeline. Responsible for rendering the Rope Game Object.\r\n * 3. The Light Pipeline. Responsible for rendering the Light Game Object.\r\n * 4. The Point Light Pipeline. Responsible for rendering the Point Light Game Object.\r\n * 5. The Single Pipeline. Responsible for rendering Game Objects that explicitly require one bound texture.\r\n * 6. The Bitmap Mask Pipeline. Responsible for Bitmap Mask rendering.\r\n * 7. The Utility Pipeline. Responsible for providing lots of handy texture manipulation functions.\r\n * 8. The Mobile Pipeline. Responsible for rendering on mobile with single-bound textures.\r\n * 9. The FX Pipeline. Responsible for rendering Game Objects with special FX applied to them.\r\n *\r\n * You can add your own custom pipeline via the `PipelineManager.add` method. Pipelines are\r\n * identified by unique string-based keys.\r\n *\r\n * @class PipelineManager\r\n * @memberof Phaser.Renderer.WebGL\r\n * @constructor\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the WebGL Renderer that owns this Pipeline Manager.\r\n */\r\nvar PipelineManager = new Class({\r\n\r\n initialize:\r\n\r\n function PipelineManager (renderer)\r\n {\r\n /**\r\n * A reference to the Game instance.\r\n *\r\n * @name Phaser.Renderer.WebGL.PipelineManager#game\r\n * @type {Phaser.Game}\r\n * @since 3.50.0\r\n */\r\n this.game = renderer.game;\r\n\r\n /**\r\n * A reference to the WebGL Renderer instance.\r\n *\r\n * @name Phaser.Renderer.WebGL.PipelineManager#renderer\r\n * @type {Phaser.Renderer.WebGL.WebGLRenderer}\r\n * @since 3.50.0\r\n */\r\n this.renderer = renderer;\r\n\r\n /**\r\n * This map stores all pipeline classes available in this manager.\r\n *\r\n * The Utility Class must always come first.\r\n *\r\n * @name Phaser.Renderer.WebGL.PipelineManager#classes\r\n * @type {Phaser.Structs.Map.}\r\n * @since 3.50.0\r\n */\r\n this.classes = new CustomMap([\r\n [ CONST.UTILITY_PIPELINE, UtilityPipeline ],\r\n [ CONST.MULTI_PIPELINE, MultiPipeline ],\r\n [ CONST.BITMAPMASK_PIPELINE, BitmapMaskPipeline ],\r\n [ CONST.SINGLE_PIPELINE, SinglePipeline ],\r\n [ CONST.ROPE_PIPELINE, RopePipeline ],\r\n [ CONST.LIGHT_PIPELINE, LightPipeline ],\r\n [ CONST.POINTLIGHT_PIPELINE, PointLightPipeline ],\r\n [ CONST.MOBILE_PIPELINE, MobilePipeline ]\r\n ]);\r\n\r\n /**\r\n * This map stores all Post FX Pipeline classes available in this manager.\r\n *\r\n * As of v3.60 this is now populated by default with the following\r\n * Post FX Pipelines:\r\n *\r\n * * Barrel\r\n * * Bloom\r\n * * Blur\r\n * * Bokeh / TiltShift\r\n * * Circle\r\n * * ColorMatrix\r\n * * Displacement\r\n * * Glow\r\n * * Gradient\r\n * * Pixelate\r\n * * Shadow\r\n * * Shine\r\n * * Vignette\r\n * * Wipe\r\n *\r\n * These are added as part of the boot process.\r\n *\r\n * If you do not wish to add them, specify `disableFX: true` in your game config.\r\n *\r\n * See the FX Controller class for more details about each FX.\r\n *\r\n * @name Phaser.Renderer.WebGL.PipelineManager#postPipelineClasses\r\n * @type {Phaser.Structs.Map.}\r\n * @since 3.50.0\r\n */\r\n this.postPipelineClasses = new CustomMap();\r\n\r\n /**\r\n * This map stores all pipeline instances in this manager.\r\n *\r\n * This is populated with the default pipelines in the `boot` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.PipelineManager#pipelines\r\n * @type {Phaser.Structs.Map.}\r\n * @since 3.50.0\r\n */\r\n this.pipelines = new CustomMap();\r\n\r\n /**\r\n * An array of all post-pipelines that are created by this manager.\r\n * \r\n * @name Phaser.Renderer.WebGL.PipelineManager#postPipelineInstances\r\n * @type {Phaser.Renderer.WebGL.Pipelines.PostFXPipeline[]}\r\n */\r\n this.postPipelineInstances = [];\r\n\r\n /**\r\n * The default Game Object pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.PipelineManager#default\r\n * @type {Phaser.Renderer.WebGL.WebGLPipeline}\r\n * @default null\r\n * @since 3.60.0\r\n */\r\n this.default = null;\r\n\r\n /**\r\n * Current pipeline in use by the WebGLRenderer.\r\n *\r\n * @name Phaser.Renderer.WebGL.PipelineManager#current\r\n * @type {Phaser.Renderer.WebGL.WebGLPipeline}\r\n * @default null\r\n * @since 3.50.0\r\n */\r\n this.current = null;\r\n\r\n /**\r\n * The previous WebGLPipeline that was in use.\r\n *\r\n * This is set when `clearPipeline` is called and restored in `rebindPipeline` if none is given.\r\n *\r\n * @name Phaser.Renderer.WebGL.PipelineManager#previous\r\n * @type {Phaser.Renderer.WebGL.WebGLPipeline}\r\n * @default null\r\n * @since 3.50.0\r\n */\r\n this.previous = null;\r\n\r\n /**\r\n * A constant-style reference to the Multi Pipeline Instance.\r\n *\r\n * This is the default Phaser 3 pipeline and is used by the WebGL Renderer to manage\r\n * camera effects and more. This property is set during the `boot` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.PipelineManager#MULTI_PIPELINE\r\n * @type {Phaser.Renderer.WebGL.Pipelines.MultiPipeline}\r\n * @default null\r\n * @since 3.50.0\r\n */\r\n this.MULTI_PIPELINE = null;\r\n\r\n /**\r\n * A constant-style reference to the Bitmap Mask Pipeline Instance.\r\n *\r\n * This is the default Phaser 3 mask pipeline and is used Game Objects using\r\n * a Bitmap Mask. This property is set during the `boot` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.PipelineManager#BITMAPMASK_PIPELINE\r\n * @type {Phaser.Renderer.WebGL.Pipelines.BitmapMaskPipeline}\r\n * @default null\r\n * @since 3.50.0\r\n */\r\n this.BITMAPMASK_PIPELINE = null;\r\n\r\n /**\r\n * A constant-style reference to the Utility Pipeline Instance.\r\n *\r\n * @name Phaser.Renderer.WebGL.PipelineManager#UTILITY_PIPELINE\r\n * @type {Phaser.Renderer.WebGL.Pipelines.UtilityPipeline}\r\n * @default null\r\n * @since 3.50.0\r\n */\r\n this.UTILITY_PIPELINE = null;\r\n\r\n /**\r\n * A constant-style reference to the Mobile Pipeline Instance.\r\n *\r\n * This is the default Phaser 3 mobile pipeline and is used by the WebGL Renderer to manage\r\n * camera effects and more on mobile devices. This property is set during the `boot` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.PipelineManager#MOBILE_PIPELINE\r\n * @type {Phaser.Renderer.WebGL.Pipelines.MobilePipeline}\r\n * @default null\r\n * @since 3.60.0\r\n */\r\n this.MOBILE_PIPELINE = null;\r\n\r\n /**\r\n * A constant-style reference to the FX Pipeline Instance.\r\n *\r\n * This is the default Phaser 3 FX pipeline and is used by the WebGL Renderer to manage\r\n * Game Objects with special effects enabled. This property is set during the `boot` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.PipelineManager#FX_PIPELINE\r\n * @type {Phaser.Renderer.WebGL.Pipelines.FXPipeline}\r\n * @default null\r\n * @since 3.60.0\r\n */\r\n this.FX_PIPELINE = null;\r\n\r\n /**\r\n * A reference to the Full Frame 1 Render Target that belongs to the\r\n * Utility Pipeline. This property is set during the `boot` method.\r\n *\r\n * This Render Target is the full size of the renderer.\r\n *\r\n * You can use this directly in Post FX Pipelines for multi-target effects.\r\n * However, be aware that these targets are shared between all post fx pipelines.\r\n *\r\n * @name Phaser.Renderer.WebGL.PipelineManager#fullFrame1\r\n * @type {Phaser.Renderer.WebGL.RenderTarget}\r\n * @default null\r\n * @since 3.50.0\r\n */\r\n this.fullFrame1;\r\n\r\n /**\r\n * A reference to the Full Frame 2 Render Target that belongs to the\r\n * Utility Pipeline. This property is set during the `boot` method.\r\n *\r\n * This Render Target is the full size of the renderer.\r\n *\r\n * You can use this directly in Post FX Pipelines for multi-target effects.\r\n * However, be aware that these targets are shared between all post fx pipelines.\r\n *\r\n * @name Phaser.Renderer.WebGL.PipelineManager#fullFrame2\r\n * @type {Phaser.Renderer.WebGL.RenderTarget}\r\n * @default null\r\n * @since 3.50.0\r\n */\r\n this.fullFrame2;\r\n\r\n /**\r\n * A reference to the Half Frame 1 Render Target that belongs to the\r\n * Utility Pipeline. This property is set during the `boot` method.\r\n *\r\n * This Render Target is half the size of the renderer.\r\n *\r\n * You can use this directly in Post FX Pipelines for multi-target effects.\r\n * However, be aware that these targets are shared between all post fx pipelines.\r\n *\r\n * @name Phaser.Renderer.WebGL.PipelineManager#halfFrame1\r\n * @type {Phaser.Renderer.WebGL.RenderTarget}\r\n * @default null\r\n * @since 3.50.0\r\n */\r\n this.halfFrame1;\r\n\r\n /**\r\n * A reference to the Half Frame 2 Render Target that belongs to the\r\n * Utility Pipeline. This property is set during the `boot` method.\r\n *\r\n * This Render Target is half the size of the renderer.\r\n *\r\n * You can use this directly in Post FX Pipelines for multi-target effects.\r\n * However, be aware that these targets are shared between all post fx pipelines.\r\n *\r\n * @name Phaser.Renderer.WebGL.PipelineManager#halfFrame2\r\n * @type {Phaser.Renderer.WebGL.RenderTarget}\r\n * @default null\r\n * @since 3.50.0\r\n */\r\n this.halfFrame2;\r\n\r\n /**\r\n * An array of RenderTarget instances that belong to this pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.PipelineManager#renderTargets\r\n * @type {Phaser.Renderer.WebGL.RenderTarget[]}\r\n * @since 3.60.0\r\n */\r\n this.renderTargets = [];\r\n\r\n /**\r\n * The largest render target dimension before we just use a full-screen target.\r\n *\r\n * @name Phaser.Renderer.WebGL.PipelineManager#maxDimension\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.maxDimension = 0;\r\n\r\n /**\r\n * The amount in which each target frame will increase.\r\n *\r\n * Defaults to 32px but can be overridden in the config.\r\n *\r\n * @name Phaser.Renderer.WebGL.PipelineManager#frameInc\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.frameInc = 32;\r\n\r\n /**\r\n * The Render Target index. Used internally by the methods\r\n * in this class. Do not modify directly.\r\n *\r\n * @name Phaser.Renderer.WebGL.PipelineManager#targetIndex\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.targetIndex = 0;\r\n },\r\n\r\n /**\r\n * Internal boot handler, called by the WebGLRenderer durings its boot process.\r\n *\r\n * Adds all of the default pipelines, based on the game config, and then calls\r\n * the `boot` method on each one of them.\r\n *\r\n * Finally, the default pipeline is set.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#boot\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Types.Core.PipelineConfig} pipelineConfig - The pipeline configuration object as set in the Game Config.\r\n * @param {string} defaultPipeline - The name of the default Game Object pipeline, as set in the Game Config\r\n * @param {boolean} autoMobilePipeline - Automatically set the default pipeline to mobile if non-desktop detected?\r\n */\r\n boot: function (pipelineConfig, defaultPipeline, autoMobilePipeline)\r\n {\r\n // Create the default RenderTextures\r\n var renderer = this.renderer;\r\n var targets = this.renderTargets;\r\n\r\n this.frameInc = Math.floor(GetFastValue(pipelineConfig, 'frameInc', 32));\r\n\r\n var renderWidth = renderer.width;\r\n var renderHeight = renderer.height;\r\n\r\n var disablePreFX = this.game.config.disablePreFX;\r\n var disablePostFX = this.game.config.disablePostFX;\r\n\r\n if (!disablePostFX)\r\n {\r\n this.postPipelineClasses.setAll([\r\n [ String(FX_CONST.BARREL), FX.Barrel ],\r\n [ String(FX_CONST.BLOOM), FX.Bloom ],\r\n [ String(FX_CONST.BLUR), FX.Blur ],\r\n [ String(FX_CONST.BOKEH), FX.Bokeh ],\r\n [ String(FX_CONST.CIRCLE), FX.Circle ],\r\n [ String(FX_CONST.COLOR_MATRIX), FX.ColorMatrix ],\r\n [ String(FX_CONST.DISPLACEMENT), FX.Displacement ],\r\n [ String(FX_CONST.GLOW), FX.Glow ],\r\n [ String(FX_CONST.GRADIENT), FX.Gradient ],\r\n [ String(FX_CONST.PIXELATE), FX.Pixelate ],\r\n [ String(FX_CONST.SHADOW), FX.Shadow ],\r\n [ String(FX_CONST.SHINE), FX.Shine ],\r\n [ String(FX_CONST.VIGNETTE), FX.Vignette ],\r\n [ String(FX_CONST.WIPE), FX.Wipe ]\r\n ]);\r\n }\r\n\r\n if (!disablePreFX)\r\n {\r\n this.classes.set(CONST.FX_PIPELINE, FXPipeline);\r\n\r\n var minDimension = Math.min(renderWidth, renderHeight);\r\n\r\n var qty = Math.ceil(minDimension / this.frameInc);\r\n\r\n // These RenderTargets are all shared by the PreFXPipelines\r\n for (var i = 1; i < qty; i++)\r\n {\r\n var targetWidth = i * this.frameInc;\r\n\r\n targets.push(new RenderTarget(renderer, targetWidth, targetWidth));\r\n\r\n // Duplicate RT for swap frame\r\n targets.push(new RenderTarget(renderer, targetWidth, targetWidth));\r\n\r\n // Duplicate RT for alt swap frame\r\n targets.push(new RenderTarget(renderer, targetWidth, targetWidth));\r\n\r\n this.maxDimension = targetWidth;\r\n }\r\n\r\n // Full-screen RTs\r\n targets.push(new RenderTarget(renderer, renderWidth, renderHeight, 1, 0, true, true));\r\n targets.push(new RenderTarget(renderer, renderWidth, renderHeight, 1, 0, true, true));\r\n targets.push(new RenderTarget(renderer, renderWidth, renderHeight, 1, 0, true, true));\r\n }\r\n\r\n // Install each of the default pipelines\r\n\r\n var instance;\r\n var pipelineName;\r\n\r\n var _this = this;\r\n var game = this.game;\r\n\r\n this.classes.each(function (pipelineName, pipeline)\r\n {\r\n instance = _this.add(pipelineName, new pipeline({ game: game }));\r\n\r\n if (pipelineName === CONST.UTILITY_PIPELINE)\r\n {\r\n _this.UTILITY_PIPELINE = instance;\r\n\r\n // FBO references\r\n _this.fullFrame1 = instance.fullFrame1;\r\n _this.fullFrame2 = instance.fullFrame2;\r\n _this.halfFrame1 = instance.halfFrame1;\r\n _this.halfFrame2 = instance.halfFrame2;\r\n }\r\n });\r\n\r\n // Our const-like references\r\n this.MULTI_PIPELINE = this.get(CONST.MULTI_PIPELINE);\r\n this.BITMAPMASK_PIPELINE = this.get(CONST.BITMAPMASK_PIPELINE);\r\n this.MOBILE_PIPELINE = this.get(CONST.MOBILE_PIPELINE);\r\n\r\n if (!disablePreFX)\r\n {\r\n this.FX_PIPELINE = this.get(CONST.FX_PIPELINE);\r\n }\r\n\r\n // And now the ones in the config, if any\r\n\r\n if (pipelineConfig)\r\n {\r\n for (pipelineName in pipelineConfig)\r\n {\r\n var pipelineClass = pipelineConfig[pipelineName];\r\n\r\n instance = new pipelineClass(game);\r\n\r\n instance.name = pipelineName;\r\n\r\n if (instance.isPostFX)\r\n {\r\n this.postPipelineClasses.set(pipelineName, pipelineClass);\r\n }\r\n else if (!this.has(pipelineName))\r\n {\r\n this.classes.set(pipelineName, pipelineClass);\r\n\r\n this.add(pipelineName, instance);\r\n }\r\n }\r\n }\r\n\r\n // Finally, set the Default Game Object pipeline\r\n this.default = this.get(defaultPipeline);\r\n\r\n if (autoMobilePipeline && !Device.os.desktop)\r\n {\r\n this.default = this.MOBILE_PIPELINE;\r\n }\r\n },\r\n\r\n /**\r\n * Sets the default pipeline being used by Game Objects.\r\n *\r\n * If no instance, or matching name, exists in this manager, it returns `undefined`.\r\n *\r\n * You can use this to override the default pipeline, for example by forcing\r\n * the Mobile or Multi Tint Pipelines, which is especially useful for development\r\n * testing.\r\n *\r\n * Make sure you call this method _before_ creating any Game Objects, as it will\r\n * only impact Game Objects created after you call it.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#setDefaultPipeline\r\n * @since 3.60.0\r\n *\r\n * @param {(string|Phaser.Renderer.WebGL.WebGLPipeline)} pipeline - Either the string-based name of the pipeline to get, or a pipeline instance to look-up.\r\n *\r\n * @return {Phaser.Renderer.WebGL.WebGLPipeline} The pipeline instance that was set as default, or `undefined` if not found.\r\n */\r\n setDefaultPipeline: function (pipeline)\r\n {\r\n var instance = this.get(pipeline);\r\n\r\n if (instance)\r\n {\r\n this.default = instance;\r\n }\r\n\r\n return instance;\r\n },\r\n\r\n /**\r\n * Adds a pipeline instance to this Pipeline Manager.\r\n *\r\n * The name of the instance must be unique within this manager.\r\n *\r\n * Make sure to pass an instance to this method, not a base class.\r\n *\r\n * For example, you should pass it like this:\r\n *\r\n * ```javascript\r\n * this.add('yourName', new CustomPipeline(game));`\r\n * ```\r\n *\r\n * and **not** like this:\r\n *\r\n * ```javascript\r\n * this.add('yourName', CustomPipeline);`\r\n * ```\r\n *\r\n * To add a **Post Pipeline**, see `addPostPipeline` instead.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#add\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - A unique string-based key for the pipeline within the manager.\r\n * @param {Phaser.Renderer.WebGL.WebGLPipeline} pipeline - A pipeline _instance_ which must extend `WebGLPipeline`.\r\n *\r\n * @return {Phaser.Renderer.WebGL.WebGLPipeline} The pipeline instance that was passed.\r\n */\r\n add: function (name, pipeline)\r\n {\r\n if (pipeline.isPostFX)\r\n {\r\n console.warn(name + ' is a Post Pipeline. Use `addPostPipeline` instead');\r\n\r\n return;\r\n }\r\n\r\n var pipelines = this.pipelines;\r\n var renderer = this.renderer;\r\n\r\n if (!pipelines.has(name))\r\n {\r\n pipeline.name = name;\r\n pipeline.manager = this;\r\n\r\n pipelines.set(name, pipeline);\r\n }\r\n else\r\n {\r\n console.warn('Pipeline exists: ' + name);\r\n }\r\n\r\n if (!pipeline.hasBooted)\r\n {\r\n pipeline.boot();\r\n }\r\n\r\n if (renderer.width !== 0 && renderer.height !== 0 && !pipeline.isPreFX)\r\n {\r\n pipeline.resize(renderer.width, renderer.height);\r\n }\r\n\r\n return pipeline;\r\n },\r\n\r\n /**\r\n * Adds a Post Pipeline to this Pipeline Manager.\r\n *\r\n * Make sure to pass a base class to this method, not an instance.\r\n *\r\n * For example, you should pass it like this:\r\n *\r\n * ```javascript\r\n * this.addPostPipeline('yourName', CustomPipeline);`\r\n * ```\r\n *\r\n * and **not** like this:\r\n *\r\n * ```javascript\r\n * this.addPostPipeline('yourName', new CustomPipeline());`\r\n * ```\r\n *\r\n * To add a regular pipeline, see the `add` method instead.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#addPostPipeline\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - A unique string-based key for the pipeline within the manager.\r\n * @param {function} pipeline - A pipeline class which must extend `PostFXPipeline`.\r\n *\r\n * @return {this} This Pipeline Manager.\r\n */\r\n addPostPipeline: function (name, pipeline)\r\n {\r\n if (!this.postPipelineClasses.has(name))\r\n {\r\n this.postPipelineClasses.set(name, pipeline);\r\n }\r\n },\r\n\r\n /**\r\n * Flushes the current pipeline, if one is bound.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#flush\r\n * @since 3.50.0\r\n */\r\n flush: function ()\r\n {\r\n if (this.current)\r\n {\r\n this.current.flush();\r\n }\r\n },\r\n\r\n /**\r\n * Checks if a pipeline is present in this Pipeline Manager.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#has\r\n * @since 3.50.0\r\n *\r\n * @param {(string|Phaser.Renderer.WebGL.WebGLPipeline)} pipeline - Either the string-based name of the pipeline to get, or a pipeline instance to look-up.\r\n *\r\n * @return {boolean} `true` if the given pipeline is loaded, otherwise `false`.\r\n */\r\n has: function (pipeline)\r\n {\r\n var pipelines = this.pipelines;\r\n\r\n if (typeof pipeline === 'string')\r\n {\r\n return pipelines.has(pipeline);\r\n }\r\n else if (pipelines.contains(pipeline))\r\n {\r\n return true;\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Returns the pipeline instance based on the given name, or instance.\r\n *\r\n * If no instance, or matching name, exists in this manager, it returns `undefined`.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#get\r\n * @since 3.50.0\r\n *\r\n * @param {(string|Phaser.Renderer.WebGL.WebGLPipeline)} pipeline - Either the string-based name of the pipeline to get, or a pipeline instance to look-up.\r\n *\r\n * @return {Phaser.Renderer.WebGL.WebGLPipeline} The pipeline instance, or `undefined` if not found.\r\n */\r\n get: function (pipeline)\r\n {\r\n var pipelines = this.pipelines;\r\n\r\n if (typeof pipeline === 'string')\r\n {\r\n return pipelines.get(pipeline);\r\n }\r\n else if (pipelines.contains(pipeline))\r\n {\r\n return pipeline;\r\n }\r\n },\r\n\r\n /**\r\n * Returns a _new instance_ of the post pipeline based on the given name, or class.\r\n *\r\n * If no instance, or matching name, exists in this manager, it returns `undefined`.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#getPostPipeline\r\n * @since 3.50.0\r\n *\r\n * @param {(string|function|Phaser.Renderer.WebGL.Pipelines.PostFXPipeline)} pipeline - Either the string-based name of the pipeline to get, or a pipeline instance, or class to look-up.\r\n * @param {Phaser.GameObjects.GameObject} [gameObject] - If this post pipeline is being installed into a Game Object or Camera, this is a reference to it.\r\n * @param {object} [config] - Optional pipeline data object that is set in to the `postPipelineData` property of this Game Object.\r\n *\r\n * @return {Phaser.Renderer.WebGL.Pipelines.PostFXPipeline} The pipeline instance, or `undefined` if not found.\r\n */\r\n getPostPipeline: function (pipeline, gameObject, config)\r\n {\r\n var pipelineClasses = this.postPipelineClasses;\r\n\r\n var instance;\r\n var pipelineName = '';\r\n var pipetype = typeof pipeline;\r\n\r\n if (pipetype === 'string' || pipetype === 'number')\r\n {\r\n instance = pipelineClasses.get(pipeline);\r\n pipelineName = pipeline;\r\n }\r\n else if (pipetype === 'function')\r\n {\r\n // A class\r\n if (pipelineClasses.contains(pipeline))\r\n {\r\n instance = pipeline;\r\n }\r\n\r\n pipelineName = pipeline.name;\r\n }\r\n else if (pipetype === 'object')\r\n {\r\n // Instance\r\n instance = pipelineClasses.get(pipeline.name);\r\n\r\n pipelineName = pipeline.name;\r\n }\r\n\r\n if (instance)\r\n {\r\n var newPipeline = new instance(this.game, config);\r\n\r\n newPipeline.name = pipelineName;\r\n\r\n if (gameObject)\r\n {\r\n newPipeline.gameObject = gameObject;\r\n }\r\n\r\n this.postPipelineInstances.push(newPipeline);\r\n\r\n return newPipeline;\r\n }\r\n },\r\n\r\n /**\r\n * Removes a PostFXPipeline instance from this Pipeline Manager.\r\n *\r\n * Note that the pipeline will not be flushed or destroyed, it's simply removed from\r\n * this manager.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#removePostPipeline\r\n * @since 3.80.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.Pipelines.PostFXPipeline} pipeline - The pipeline instance to be removed.\r\n */\r\n removePostPipeline: function (pipeline)\r\n {\r\n ArrayRemove(this.postPipelineInstances, pipeline);\r\n },\r\n\r\n /**\r\n * Removes a pipeline instance based on the given name.\r\n *\r\n * If no pipeline matches the name, this method does nothing.\r\n *\r\n * Note that the pipeline will not be flushed or destroyed, it's simply removed from\r\n * this manager.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#remove\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the pipeline to be removed.\r\n * @param {boolean} [removeClass=true] - Remove the pipeline class as well as the instance?\r\n * @param {boolean} [removePostPipelineClass=true] - Remove the post pipeline class as well as the instance?\r\n */\r\n remove: function (name, removeClass, removePostPipelineClass)\r\n {\r\n if (removeClass === undefined) { removeClass = true; }\r\n if (removePostPipelineClass === undefined) { removePostPipelineClass = true; }\r\n\r\n this.pipelines.delete(name);\r\n\r\n if (removeClass)\r\n {\r\n this.classes.delete(name);\r\n }\r\n\r\n if (removePostPipelineClass)\r\n {\r\n this.postPipelineClasses.delete(name);\r\n }\r\n },\r\n\r\n /**\r\n * Sets the current pipeline to be used by the `WebGLRenderer`.\r\n *\r\n * This method accepts a pipeline instance as its parameter, not the name.\r\n *\r\n * If the pipeline isn't already the current one it will call `WebGLPipeline.bind` and then `onBind`.\r\n *\r\n * You cannot set Post FX Pipelines using this method. To use a Post FX Pipeline, you should\r\n * apply it to either a Camera, Container or other supporting Game Object.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#set\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLPipeline} pipeline - The pipeline instance to be set as current.\r\n * @param {Phaser.GameObjects.GameObject} [gameObject] - The Game Object that invoked this pipeline, if any.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [currentShader] - The shader to set as being current.\r\n *\r\n * @return {Phaser.Renderer.WebGL.WebGLPipeline} The pipeline that was set, or undefined if it couldn't be set.\r\n */\r\n set: function (pipeline, gameObject, currentShader)\r\n {\r\n if (pipeline.isPostFX)\r\n {\r\n return;\r\n }\r\n\r\n if (!this.isCurrent(pipeline, currentShader))\r\n {\r\n this.flush();\r\n\r\n if (this.current)\r\n {\r\n this.current.unbind();\r\n }\r\n\r\n this.current = pipeline;\r\n\r\n pipeline.bind(currentShader);\r\n }\r\n\r\n pipeline.updateProjectionMatrix();\r\n\r\n pipeline.onBind(gameObject);\r\n\r\n return pipeline;\r\n },\r\n\r\n /**\r\n * This method is called by the `WebGLPipeline.batchQuad` method, right before a quad\r\n * belonging to a Game Object is about to be added to the batch.\r\n *\r\n * It is also called directly bu custom Game Objects, such as Nine Slice or Mesh,\r\n * from their render methods.\r\n *\r\n * It causes a batch flush, then calls the `preBatch` method on the Post FX Pipelines\r\n * belonging to the Game Object.\r\n *\r\n * It should be followed by a call to `postBatch` to complete the process.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#preBatch\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object about to be batched.\r\n */\r\n preBatch: function (gameObject)\r\n {\r\n if (gameObject.hasPostPipeline)\r\n {\r\n this.flush();\r\n\r\n var pipelines = gameObject.postPipelines;\r\n\r\n // Iterate in reverse because we need them stacked in the order they're in the array\r\n for (var i = pipelines.length - 1; i >= 0; i--)\r\n {\r\n var pipeline = pipelines[i];\r\n\r\n if (pipeline.active)\r\n {\r\n pipeline.preBatch(gameObject);\r\n }\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * This method is called by the `WebGLPipeline.batchQuad` method, right after a quad\r\n * belonging to a Game Object has been added to the batch.\r\n *\r\n * It is also called directly bu custom Game Objects, such as Nine Slice or Mesh,\r\n * from their render methods.\r\n *\r\n * It causes a batch flush, then calls the `postBatch` method on the Post FX Pipelines\r\n * belonging to the Game Object.\r\n *\r\n * It should be preceeded by a call to `preBatch` to start the process.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#postBatch\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that was just added to the batch.\r\n */\r\n postBatch: function (gameObject)\r\n {\r\n if (gameObject.hasPostPipeline)\r\n {\r\n this.flush();\r\n\r\n var pipelines = gameObject.postPipelines;\r\n\r\n for (var i = 0; i < pipelines.length; i++)\r\n {\r\n var pipeline = pipelines[i];\r\n\r\n if (pipeline.active)\r\n {\r\n pipeline.postBatch(gameObject);\r\n }\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Called at the start of the `WebGLRenderer.preRenderCamera` method.\r\n *\r\n * If the Camera has post pipelines set, it will flush the batch and then call the\r\n * `preBatch` method on the post-fx pipelines belonging to the Camera.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#preBatchCamera\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera about to be rendered.\r\n */\r\n preBatchCamera: function (camera)\r\n {\r\n if (camera.hasPostPipeline)\r\n {\r\n this.flush();\r\n\r\n var pipelines = camera.postPipelines;\r\n\r\n // Iterate in reverse because we need them stacked in the order they're in the array\r\n for (var i = pipelines.length - 1; i >= 0; i--)\r\n {\r\n var pipeline = pipelines[i];\r\n\r\n if (pipeline.active)\r\n {\r\n pipeline.preBatch(camera);\r\n }\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Called at the end of the `WebGLRenderer.postRenderCamera` method.\r\n *\r\n * If the Camera has post pipelines set, it will flush the batch and then call the\r\n * `postBatch` method on the post-fx pipelines belonging to the Camera.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#postBatchCamera\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that was just rendered.\r\n */\r\n postBatchCamera: function (camera)\r\n {\r\n if (camera.hasPostPipeline)\r\n {\r\n this.flush();\r\n\r\n var pipelines = camera.postPipelines;\r\n\r\n for (var i = 0; i < pipelines.length; i++)\r\n {\r\n var pipeline = pipelines[i];\r\n\r\n if (pipeline.active)\r\n {\r\n pipeline.postBatch(camera);\r\n }\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Checks to see if the given pipeline is already the active pipeline, both within this\r\n * Pipeline Manager and also has the same shader set in the Renderer.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#isCurrent\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLPipeline} pipeline - The pipeline instance to be checked.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [currentShader] - The shader to set as being current.\r\n *\r\n * @return {boolean} `true` if the given pipeline is already the current pipeline, otherwise `false`.\r\n */\r\n isCurrent: function (pipeline, currentShader)\r\n {\r\n var renderer = this.renderer;\r\n var current = this.current;\r\n\r\n if (current && !currentShader)\r\n {\r\n currentShader = current.currentShader;\r\n }\r\n\r\n return !(current !== pipeline || currentShader.program !== renderer.currentProgram);\r\n },\r\n\r\n /**\r\n * Copy the `source` Render Target to the `target` Render Target.\r\n *\r\n * You can optionally set the brightness factor of the copy.\r\n *\r\n * The difference between this method and `drawFrame` is that this method\r\n * uses a faster copy shader, where only the brightness can be modified.\r\n * If you need color level manipulation, see `drawFrame` instead.\r\n *\r\n * The copy itself is handled by the Utility Pipeline.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#copyFrame\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} [target] - The target Render Target.\r\n * @param {number} [brightness=1] - The brightness value applied to the frame copy.\r\n * @param {boolean} [clear=true] - Clear the target before copying?\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n *\r\n * @return {this} This Pipeline Manager instance.\r\n */\r\n copyFrame: function (source, target, brightness, clear, clearAlpha)\r\n {\r\n this.setUtility(this.UTILITY_PIPELINE.copyShader).copyFrame(source, target, brightness, clear, clearAlpha);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Pops the framebuffer from the renderers FBO stack and sets that as the active target,\r\n * then draws the `source` Render Target to it. It then resets the renderer textures.\r\n *\r\n * This should be done when you need to draw the _final_ results of a pipeline to the game\r\n * canvas, or the next framebuffer in line on the FBO stack. You should only call this once\r\n * in the `onDraw` handler and it should be the final thing called. Be careful not to call\r\n * this if you need to actually use the pipeline shader, instead of the copy shader. In\r\n * those cases, use the `bindAndDraw` method.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#copyToGame\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The Render Target to draw from.\r\n */\r\n copyToGame: function (source)\r\n {\r\n this.setUtility(this.UTILITY_PIPELINE.copyShader).copyToGame(source);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Copy the `source` Render Target to the `target` Render Target, using the\r\n * given Color Matrix.\r\n *\r\n * The difference between this method and `copyFrame` is that this method\r\n * uses a color matrix shader, where you have full control over the luminance\r\n * values used during the copy. If you don't need this, you can use the faster\r\n * `copyFrame` method instead.\r\n *\r\n * The copy itself is handled by the Utility Pipeline.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#drawFrame\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} [target] - The target Render Target.\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n * @param {Phaser.Display.ColorMatrix} [colorMatrix] - The Color Matrix to use when performing the draw.\r\n *\r\n * @return {this} This Pipeline Manager instance.\r\n */\r\n drawFrame: function (source, target, clearAlpha, colorMatrix)\r\n {\r\n this.setUtility(this.UTILITY_PIPELINE.colorMatrixShader).drawFrame(source, target, clearAlpha, colorMatrix);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Draws the `source1` and `source2` Render Targets to the `target` Render Target\r\n * using a linear blend effect, which is controlled by the `strength` parameter.\r\n *\r\n * The draw itself is handled by the Utility Pipeline.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#blendFrames\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source1 - The first source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source2 - The second source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} [target] - The target Render Target.\r\n * @param {number} [strength=1] - The strength of the blend.\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n *\r\n * @return {this} This Pipeline Manager instance.\r\n */\r\n blendFrames: function (source1, source2, target, strength, clearAlpha)\r\n {\r\n this.setUtility(this.UTILITY_PIPELINE.linearShader).blendFrames(source1, source2, target, strength, clearAlpha);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Draws the `source1` and `source2` Render Targets to the `target` Render Target\r\n * using an additive blend effect, which is controlled by the `strength` parameter.\r\n *\r\n * The draw itself is handled by the Utility Pipeline.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#blendFramesAdditive\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source1 - The first source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source2 - The second source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} [target] - The target Render Target.\r\n * @param {number} [strength=1] - The strength of the blend.\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n *\r\n * @return {this} This Pipeline Manager instance.\r\n */\r\n blendFramesAdditive: function (source1, source2, target, strength, clearAlpha)\r\n {\r\n this.setUtility(this.UTILITY_PIPELINE.addShader).blendFramesAdditive(source1, source2, target, strength, clearAlpha);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Clears the given Render Target.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#clearFrame\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} target - The Render Target to clear.\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n *\r\n * @return {this} This Pipeline Manager instance.\r\n */\r\n clearFrame: function (target, clearAlpha)\r\n {\r\n this.UTILITY_PIPELINE.clearFrame(target, clearAlpha);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Copy the `source` Render Target to the `target` Render Target.\r\n *\r\n * The difference with this copy is that no resizing takes place. If the `source`\r\n * Render Target is larger than the `target` then only a portion the same size as\r\n * the `target` dimensions is copied across.\r\n *\r\n * You can optionally set the brightness factor of the copy.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#blitFrame\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} target - The target Render Target.\r\n * @param {number} [brightness=1] - The brightness value applied to the frame copy.\r\n * @param {boolean} [clear=true] - Clear the target before copying?\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n * @param {boolean} [eraseMode=false] - Erase source from target using ERASE Blend Mode?\r\n *\r\n * @return {this} This Pipeline Manager instance.\r\n */\r\n blitFrame: function (source, target, brightness, clear, clearAlpha, eraseMode)\r\n {\r\n this.setUtility(this.UTILITY_PIPELINE.copyShader).blitFrame(source, target, brightness, clear, clearAlpha, eraseMode);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Binds the `source` Render Target and then copies a section of it to the `target` Render Target.\r\n *\r\n * This method is extremely fast because it uses `gl.copyTexSubImage2D` and doesn't\r\n * require the use of any shaders. Remember the coordinates are given in standard WebGL format,\r\n * where x and y specify the lower-left corner of the section, not the top-left. Also, the\r\n * copy entirely replaces the contents of the target texture, no 'merging' or 'blending' takes\r\n * place.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#copyFrameRect\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} target - The target Render Target.\r\n * @param {number} x - The x coordinate of the lower left corner where to start copying.\r\n * @param {number} y - The y coordinate of the lower left corner where to start copying.\r\n * @param {number} width - The width of the texture.\r\n * @param {number} height - The height of the texture.\r\n * @param {boolean} [clear=true] - Clear the target before copying?\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n *\r\n * @return {this} This Pipeline Manager instance.\r\n */\r\n copyFrameRect: function (source, target, x, y, width, height, clear, clearAlpha)\r\n {\r\n this.UTILITY_PIPELINE.copyFrameRect(source, target, x, y, width, height, clear, clearAlpha);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns `true` if the current pipeline is forced to use texture unit zero.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#forceZero\r\n * @since 3.50.0\r\n *\r\n * @return {boolean} `true` if the current pipeline is forced to use texture unit zero.\r\n */\r\n forceZero: function ()\r\n {\r\n return (this.current && this.current.forceZero);\r\n },\r\n\r\n /**\r\n * Sets the Multi Pipeline to be the currently bound pipeline.\r\n *\r\n * This is the default Phaser 3 rendering pipeline.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#setMulti\r\n * @since 3.50.0\r\n *\r\n * @return {Phaser.Renderer.WebGL.Pipelines.MultiPipeline} The Multi Pipeline instance.\r\n */\r\n setMulti: function ()\r\n {\r\n return this.set(this.MULTI_PIPELINE);\r\n },\r\n\r\n /**\r\n * Sets the Utility Pipeline to be the currently bound pipeline.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#setUtility\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [currentShader] - The shader to set as being current.\r\n *\r\n * @return {Phaser.Renderer.WebGL.Pipelines.UtilityPipeline} The Utility Pipeline instance.\r\n */\r\n setUtility: function (currentShader)\r\n {\r\n return this.UTILITY_PIPELINE.bind(currentShader);\r\n },\r\n\r\n /**\r\n * Sets the FX Pipeline to be the currently bound pipeline.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#setFX\r\n * @since 3.60.0\r\n *\r\n * @return {Phaser.Renderer.WebGL.Pipelines.FXPipeline} The FX Pipeline instance.\r\n */\r\n setFX: function ()\r\n {\r\n return this.set(this.FX_PIPELINE);\r\n },\r\n\r\n /**\r\n * Restore WebGL resources after context was lost.\r\n * \r\n * Calls `rebind` on this Pipeline Manager.\r\n * Then calls `restoreContext` on each pipeline in turn.\r\n * \r\n * @method Phaser.Renderer.WebGL.PipelineManager#restoreContext\r\n * @since 3.80.0\r\n */\r\n restoreContext: function ()\r\n {\r\n this.rebind();\r\n this.pipelines.each(function (_, pipeline)\r\n {\r\n pipeline.restoreContext();\r\n });\r\n ArrayEach(this.postPipelineInstances, function (pipeline)\r\n {\r\n pipeline.restoreContext();\r\n });\r\n },\r\n\r\n /**\r\n * Use this to reset the gl context to the state that Phaser requires to continue rendering.\r\n *\r\n * Calling this will:\r\n *\r\n * * Disable `DEPTH_TEST`, `CULL_FACE` and `STENCIL_TEST`.\r\n * * Clear the depth buffer and stencil buffers.\r\n * * Reset the viewport size.\r\n * * Reset the blend mode.\r\n * * Bind a blank texture as the active texture on texture unit zero.\r\n * * Rebinds the given pipeline instance.\r\n *\r\n * You should call this if you have previously called `clear`, and then wish to return\r\n * rendering control to Phaser again.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#rebind\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLPipeline} [pipeline] - The pipeline instance to be rebound. If not given, the previous pipeline will be bound.\r\n */\r\n rebind: function (pipeline)\r\n {\r\n if (pipeline === undefined && this.previous)\r\n {\r\n pipeline = this.previous;\r\n }\r\n\r\n var renderer = this.renderer;\r\n var gl = renderer.gl;\r\n\r\n gl.disable(gl.DEPTH_TEST);\r\n gl.disable(gl.CULL_FACE);\r\n\r\n if (renderer.hasActiveStencilMask())\r\n {\r\n gl.clear(gl.DEPTH_BUFFER_BIT);\r\n }\r\n else\r\n {\r\n // If there wasn't a stencil mask set before this call, we can disable it safely\r\n gl.disable(gl.STENCIL_TEST);\r\n gl.clear(gl.DEPTH_BUFFER_BIT | gl.STENCIL_BUFFER_BIT);\r\n }\r\n\r\n gl.viewport(0, 0, renderer.width, renderer.height);\r\n\r\n renderer.currentProgram = null;\r\n\r\n renderer.setBlendMode(0, true);\r\n\r\n var vao = renderer.vaoExtension;\r\n\r\n if (vao)\r\n {\r\n vao.bindVertexArrayOES(null);\r\n }\r\n\r\n var entries = this.pipelines.entries;\r\n\r\n for (var key in entries)\r\n {\r\n entries[key].glReset = true;\r\n }\r\n\r\n if (pipeline)\r\n {\r\n this.current = pipeline;\r\n\r\n pipeline.rebind();\r\n }\r\n },\r\n\r\n /**\r\n * Flushes the current pipeline being used and then clears it, along with the\r\n * the current shader program and vertex buffer from the `WebGLRenderer`.\r\n *\r\n * Then resets the blend mode to NORMAL.\r\n *\r\n * Call this before jumping to your own gl context handler, and then call `rebind` when\r\n * you wish to return control to Phaser again.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#clear\r\n * @since 3.50.0\r\n */\r\n clear: function ()\r\n {\r\n var renderer = this.renderer;\r\n\r\n this.flush();\r\n\r\n if (this.current)\r\n {\r\n this.current.unbind();\r\n this.previous = this.current;\r\n this.current = null;\r\n }\r\n else\r\n {\r\n this.previous = null;\r\n }\r\n\r\n renderer.currentProgram = null;\r\n\r\n renderer.setBlendMode(0, true);\r\n\r\n var vao = renderer.vaoExtension;\r\n\r\n if (vao)\r\n {\r\n vao.bindVertexArrayOES(null);\r\n }\r\n },\r\n\r\n /**\r\n * Gets a Render Target the right size to render the Sprite on.\r\n *\r\n * If the Sprite exceeds the size of the renderer, the Render Target will only ever be the maximum\r\n * size of the renderer.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#getRenderTarget\r\n * @since 3.60.0\r\n *\r\n * @param {number} size - The maximum dimension required.\r\n *\r\n * @return {Phaser.Renderer.WebGL.RenderTarget} A Render Target large enough to fit the sprite.\r\n */\r\n getRenderTarget: function (size)\r\n {\r\n var targets = this.renderTargets;\r\n\r\n // 2 for just swap\r\n // 3 for swap + alt swap\r\n var offset = 3;\r\n\r\n if (size > this.maxDimension)\r\n {\r\n this.targetIndex = targets.length - offset;\r\n\r\n return targets[this.targetIndex];\r\n }\r\n else\r\n {\r\n var index = (SnapCeil(size, this.frameInc, 0, true) - 1) * offset;\r\n\r\n this.targetIndex = index;\r\n\r\n return targets[index];\r\n }\r\n },\r\n\r\n /**\r\n * Gets a matching Render Target, the same size as the one the Sprite was drawn to,\r\n * useful for double-buffer style effects such as blurs.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#getSwapRenderTarget\r\n * @since 3.60.0\r\n *\r\n * @return {Phaser.Renderer.WebGL.RenderTarget} The Render Target swap frame.\r\n */\r\n getSwapRenderTarget: function ()\r\n {\r\n return this.renderTargets[this.targetIndex + 1];\r\n },\r\n\r\n /**\r\n * Gets a matching Render Target, the same size as the one the Sprite was drawn to,\r\n * useful for double-buffer style effects such as blurs.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#getAltSwapRenderTarget\r\n * @since 3.60.0\r\n *\r\n * @return {Phaser.Renderer.WebGL.RenderTarget} The Render Target swap frame.\r\n */\r\n getAltSwapRenderTarget: function ()\r\n {\r\n return this.renderTargets[this.targetIndex + 2];\r\n },\r\n\r\n /**\r\n * Destroy the Pipeline Manager, cleaning up all related resources and references.\r\n *\r\n * @method Phaser.Renderer.WebGL.PipelineManager#destroy\r\n * @since 3.50.0\r\n */\r\n destroy: function ()\r\n {\r\n this.flush();\r\n\r\n this.classes.clear();\r\n this.postPipelineClasses.clear();\r\n this.pipelines.clear();\r\n\r\n this.renderer = null;\r\n this.game = null;\r\n this.classes = null;\r\n this.postPipelineClasses = null;\r\n this.pipelines = null;\r\n this.default = null;\r\n this.current = null;\r\n this.previous = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = PipelineManager;\r\n\n\n/***/ }),\n\n/***/ 32302:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Events = __webpack_require__(92503);\r\n\r\n/**\r\n * @classdesc\r\n * A Render Target encapsulates a WebGL framebuffer and the WebGL Texture that displays it.\r\n *\r\n * Instances of this class are typically created by, and belong to WebGL Pipelines, however\r\n * other Game Objects and classes can take advantage of Render Targets as well.\r\n *\r\n * @class RenderTarget\r\n * @memberof Phaser.Renderer.WebGL\r\n * @constructor\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the WebGLRenderer.\r\n * @param {number} width - The width of this Render Target.\r\n * @param {number} height - The height of this Render Target.\r\n * @param {number} [scale=1] - A value between 0 and 1. Controls the size of this Render Target in relation to the Renderer.\r\n * @param {number} [minFilter=0] - The minFilter mode of the texture when created. 0 is `LINEAR`, 1 is `NEAREST`.\r\n * @param {boolean} [autoClear=true] - Automatically clear this framebuffer when bound?\r\n * @param {boolean} [autoResize=false] - Automatically resize this Render Target if the WebGL Renderer resizes?\r\n * @param {boolean} [addDepthBuffer=true] - Add a DEPTH_STENCIL and attachment to this Render Target?\r\n * @param {boolean} [forceClamp=true] - Force the texture to use the CLAMP_TO_EDGE wrap mode, even if a power of two?\r\n */\r\nvar RenderTarget = new Class({\r\n\r\n initialize:\r\n\r\n function RenderTarget (renderer, width, height, scale, minFilter, autoClear, autoResize, addDepthBuffer, forceClamp)\r\n {\r\n if (scale === undefined) { scale = 1; }\r\n if (minFilter === undefined) { minFilter = 0; }\r\n if (autoClear === undefined) { autoClear = true; }\r\n if (autoResize === undefined) { autoResize = false; }\r\n if (addDepthBuffer === undefined) { addDepthBuffer = true; }\r\n if (forceClamp === undefined) { forceClamp = true; }\r\n\r\n /**\r\n * A reference to the WebGLRenderer instance.\r\n *\r\n * @name Phaser.Renderer.WebGL.RenderTarget#renderer\r\n * @type {Phaser.Renderer.WebGL.WebGLRenderer}\r\n * @since 3.50.0\r\n */\r\n this.renderer = renderer;\r\n\r\n /**\r\n * The Framebuffer of this Render Target.\r\n *\r\n * This is created in the `RenderTarget.resize` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.RenderTarget#framebuffer\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLFramebufferWrapper}\r\n * @since 3.50.0\r\n */\r\n this.framebuffer = null;\r\n\r\n /**\r\n * The WebGLTextureWrapper of this Render Target.\r\n *\r\n * This is created in the `RenderTarget.resize` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.RenderTarget#texture\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper}\r\n * @since 3.50.0\r\n */\r\n this.texture = null;\r\n\r\n /**\r\n * The width of the texture.\r\n *\r\n * @name Phaser.Renderer.WebGL.RenderTarget#width\r\n * @type {number}\r\n * @readonly\r\n * @since 3.50.0\r\n */\r\n this.width = 0;\r\n\r\n /**\r\n * The height of the texture.\r\n *\r\n * @name Phaser.Renderer.WebGL.RenderTarget#height\r\n * @type {number}\r\n * @readonly\r\n * @since 3.50.0\r\n */\r\n this.height = 0;\r\n\r\n /**\r\n * A value between 0 and 1. Controls the size of this Render Target in relation to the Renderer.\r\n *\r\n * A value of 1 matches it. 0.5 makes the Render Target half the size of the renderer, etc.\r\n *\r\n * @name Phaser.Renderer.WebGL.RenderTarget#scale\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.scale = scale;\r\n\r\n /**\r\n * The minFilter mode of the texture. 0 is `LINEAR`, 1 is `NEAREST`.\r\n *\r\n * @name Phaser.Renderer.WebGL.RenderTarget#minFilter\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.minFilter = minFilter;\r\n\r\n /**\r\n * Controls if this Render Target is automatically cleared (via `gl.COLOR_BUFFER_BIT`)\r\n * during the `RenderTarget.bind` method.\r\n *\r\n * If you need more control over how, or if, the target is cleared, you can disable\r\n * this via the config on creation, or even toggle it directly at runtime.\r\n *\r\n * @name Phaser.Renderer.WebGL.RenderTarget#autoClear\r\n * @type {boolean}\r\n * @since 3.50.0\r\n */\r\n this.autoClear = autoClear;\r\n\r\n /**\r\n * Does this Render Target automatically resize when the WebGL Renderer does?\r\n *\r\n * Modify this property via the `setAutoResize` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.RenderTarget#autoResize\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.50.0\r\n */\r\n this.autoResize = true;\r\n\r\n /**\r\n * Does this Render Target have a Depth Buffer?\r\n *\r\n * @name Phaser.Renderer.WebGL.RenderTarget#hasDepthBuffer\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.hasDepthBuffer = addDepthBuffer;\r\n\r\n /**\r\n * Force the WebGL Texture to use the CLAMP_TO_EDGE wrap mode, even if a power of two?\r\n *\r\n * If `false` it will use `gl.REPEAT` instead, which may be required for some effects, such\r\n * as using this Render Target as a texture for a Shader.\r\n *\r\n * @name Phaser.Renderer.WebGL.RenderTarget#forceClamp\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.forceClamp = forceClamp;\r\n\r\n this.init(width, height);\r\n\r\n if (autoResize)\r\n {\r\n this.renderer.on(Events.RESIZE, this.resize, this);\r\n }\r\n else\r\n {\r\n // Block resizing unless this RT allows it\r\n this.autoResize = false;\r\n }\r\n },\r\n\r\n /**\r\n * Sets up this Render Target to the given width and height, creating a new\r\n * frame buffer and texture. This method is called automatically by the constructor\r\n * and at no other time.\r\n *\r\n * @method Phaser.Renderer.WebGL.RenderTarget#init\r\n * @since 3.86.0\r\n *\r\n * @param {number} width - The new width of this Render Target.\r\n * @param {number} height - The new height of this Render Target.\r\n */\r\n init: function (width, height)\r\n {\r\n var renderer = this.renderer;\r\n\r\n this.texture = renderer.createTextureFromSource(null, width, height, this.minFilter, this.forceClamp);\r\n this.framebuffer = renderer.createFramebuffer(width, height, this.texture, this.hasDepthBuffer);\r\n\r\n this.width = width;\r\n this.height = height;\r\n },\r\n\r\n /**\r\n * Sets if this Render Target should automatically resize when the WebGL Renderer\r\n * emits a resize event.\r\n *\r\n * @method Phaser.Renderer.WebGL.RenderTarget#setAutoResize\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} autoResize - Automatically resize this Render Target when the WebGL Renderer resizes?\r\n *\r\n * @return {this} This RenderTarget instance.\r\n */\r\n setAutoResize: function (autoResize)\r\n {\r\n if (autoResize && !this.autoResize)\r\n {\r\n this.renderer.on(Events.RESIZE, this.resize, this);\r\n\r\n this.autoResize = true;\r\n }\r\n else if (!autoResize && this.autoResize)\r\n {\r\n this.renderer.off(Events.RESIZE, this.resize, this);\r\n\r\n this.autoResize = false;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resizes this Render Target as long as the given width and height are different\r\n * to the current width and height.\r\n *\r\n * Deletes both the frame buffer and texture, if they exist and then re-creates\r\n * them using the new sizes.\r\n *\r\n * This method is called automatically by the pipeline during its resize handler.\r\n *\r\n * @method Phaser.Renderer.WebGL.RenderTarget#resize\r\n * @since 3.50.0\r\n *\r\n * @param {number} width - The new width of this Render Target.\r\n * @param {number} height - The new height of this Render Target.\r\n *\r\n * @return {this} This RenderTarget instance.\r\n */\r\n resize: function (width, height)\r\n {\r\n if (this.autoResize && this.willResize(width, height))\r\n {\r\n var renderer = this.renderer;\r\n\r\n renderer.deleteFramebuffer(this.framebuffer);\r\n\r\n renderer.deleteTexture(this.texture);\r\n\r\n this.texture = renderer.createTextureFromSource(null, width, height, this.minFilter, this.forceClamp);\r\n this.framebuffer = renderer.createFramebuffer(width, height, this.texture, this.hasDepthBuffer);\r\n\r\n this.width = width;\r\n this.height = height;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Checks if this Render Target will resize, or not, if given the new\r\n * width and height values.\r\n *\r\n * @method Phaser.Renderer.WebGL.RenderTarget#willResize\r\n * @since 3.70.0\r\n *\r\n * @param {number} width - The new width of this Render Target.\r\n * @param {number} height - The new height of this Render Target.\r\n *\r\n * @return {boolean} `true` if the Render Target will resize, otherwise `false`.\r\n */\r\n willResize: function (width, height)\r\n {\r\n if (typeof width !== 'number' || typeof height !== 'number')\r\n {\r\n return false;\r\n }\r\n\r\n width = Math.round(width * this.scale);\r\n height = Math.round(height * this.scale);\r\n\r\n width = Math.max(width, 1);\r\n height = Math.max(height, 1);\r\n \r\n return (width !== this.width || height !== this.height);\r\n },\r\n\r\n /**\r\n * Pushes this Render Target as the current frame buffer of the renderer.\r\n *\r\n * If `autoClear` is set, then clears the texture.\r\n *\r\n * If `adjustViewport` is `true` then it will flush the renderer and then adjust the GL viewport.\r\n *\r\n * @method Phaser.Renderer.WebGL.RenderTarget#bind\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [adjustViewport=false] - Adjust the GL viewport by calling `RenderTarget.adjustViewport` ?\r\n * @param {number} [width] - Optional new width of this Render Target.\r\n * @param {number} [height] - Optional new height of this Render Target.\r\n */\r\n bind: function (adjustViewport, width, height)\r\n {\r\n if (adjustViewport === undefined) { adjustViewport = false; }\r\n\r\n var renderer = this.renderer;\r\n\r\n if (adjustViewport)\r\n {\r\n renderer.flush();\r\n }\r\n\r\n if (width && height)\r\n {\r\n this.resize(width, height);\r\n }\r\n\r\n renderer.pushFramebuffer(this.framebuffer, false, false);\r\n\r\n if (adjustViewport)\r\n {\r\n this.adjustViewport();\r\n }\r\n\r\n if (this.autoClear)\r\n {\r\n var gl = this.renderer.gl;\r\n\r\n gl.clearColor(0, 0, 0, 0);\r\n\r\n gl.clear(gl.COLOR_BUFFER_BIT);\r\n }\r\n\r\n renderer.clearStencilMask();\r\n },\r\n\r\n /**\r\n * Adjusts the GL viewport to match the width and height of this Render Target.\r\n *\r\n * Also disables `SCISSOR_TEST`.\r\n *\r\n * @method Phaser.Renderer.WebGL.RenderTarget#adjustViewport\r\n * @since 3.50.0\r\n */\r\n adjustViewport: function ()\r\n {\r\n var gl = this.renderer.gl;\r\n\r\n gl.viewport(0, 0, this.width, this.height);\r\n\r\n gl.disable(gl.SCISSOR_TEST);\r\n },\r\n\r\n /**\r\n * Clears a portion or everything from this Render Target. To clear an area,\r\n * specify the `x`, `y`, `width` and `height`.\r\n * \r\n * @param {number} [x=0] - The left coordinate of the fill rectangle.\r\n * @param {number} [y=0] - The top coordinate of the fill rectangle.\r\n * @param {number} [width=this.width] - The width of the fill rectangle.\r\n * @param {number} [height=this.height] - The height of the fill rectangle.\r\n *\r\n * @method Phaser.Renderer.WebGL.RenderTarget#clear\r\n * @since 3.50.0\r\n */\r\n clear: function (x, y, width, height)\r\n {\r\n var renderer = this.renderer;\r\n var gl = renderer.gl;\r\n\r\n renderer.pushFramebuffer(this.framebuffer);\r\n\r\n if (x !== undefined && y !== undefined && width !== undefined && height !== undefined)\r\n {\r\n gl.enable(gl.SCISSOR_TEST);\r\n gl.scissor(x, y, width, height);\r\n }\r\n else\r\n {\r\n gl.disable(gl.SCISSOR_TEST);\r\n }\r\n\r\n gl.clearColor(0, 0, 0, 0);\r\n\r\n gl.clear(gl.COLOR_BUFFER_BIT);\r\n\r\n renderer.popFramebuffer();\r\n\r\n renderer.resetScissor();\r\n },\r\n\r\n /**\r\n * Unbinds this Render Target and optionally flushes the WebGL Renderer first.\r\n *\r\n * @name Phaser.Renderer.WebGL.RenderTarget#unbind\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [flush=false] - Flush the WebGL Renderer before unbinding?\r\n *\r\n * @return {Phaser.Renderer.WebGL.Wrappers.WebGLFramebufferWrapper} The Framebuffer that was set, or `null` if there aren't any more in the stack.\r\n */\r\n unbind: function (flush)\r\n {\r\n if (flush === undefined) { flush = false; }\r\n\r\n var renderer = this.renderer;\r\n\r\n if (flush)\r\n {\r\n renderer.flush();\r\n }\r\n\r\n return renderer.popFramebuffer();\r\n },\r\n\r\n /**\r\n * Removes all external references from this class and deletes the\r\n * WebGL framebuffer and texture instances.\r\n *\r\n * Does not remove this Render Target from the parent pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.RenderTarget#destroy\r\n * @since 3.50.0\r\n */\r\n destroy: function ()\r\n {\r\n var renderer = this.renderer;\r\n\r\n renderer.off(Events.RESIZE, this.resize, this);\r\n\r\n renderer.deleteFramebuffer(this.framebuffer);\r\n renderer.deleteTexture(this.texture);\r\n\r\n this.renderer = null;\r\n this.framebuffer = null;\r\n this.texture = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = RenderTarget;\r\n\n\n/***/ }),\n\n/***/ 70554:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Felipe Alfonso <@bitnenfer>\r\n * @author Matthew Groves <@doormat>\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Renderer.WebGL.Utils\r\n * @since 3.0.0\r\n */\r\nmodule.exports = {\r\n\r\n /**\r\n * Packs four floats on a range from 0.0 to 1.0 into a single Uint32\r\n *\r\n * @function Phaser.Renderer.WebGL.Utils.getTintFromFloats\r\n * @since 3.0.0\r\n *\r\n * @param {number} r - Red component in a range from 0.0 to 1.0\r\n * @param {number} g - Green component in a range from 0.0 to 1.0\r\n * @param {number} b - Blue component in a range from 0.0 to 1.0\r\n * @param {number} a - Alpha component in a range from 0.0 to 1.0\r\n *\r\n * @return {number} The packed RGBA values as a Uint32.\r\n */\r\n getTintFromFloats: function (r, g, b, a)\r\n {\r\n var ur = ((r * 255) | 0) & 0xff;\r\n var ug = ((g * 255) | 0) & 0xff;\r\n var ub = ((b * 255) | 0) & 0xff;\r\n var ua = ((a * 255) | 0) & 0xff;\r\n\r\n return ((ua << 24) | (ur << 16) | (ug << 8) | ub) >>> 0;\r\n },\r\n\r\n /**\r\n * Packs a Uint24, representing RGB components, with a Float32, representing\r\n * the alpha component, with a range between 0.0 and 1.0 and return a Uint32\r\n *\r\n * @function Phaser.Renderer.WebGL.Utils.getTintAppendFloatAlpha\r\n * @since 3.0.0\r\n *\r\n * @param {number} rgb - Uint24 representing RGB components\r\n * @param {number} a - Float32 representing Alpha component\r\n *\r\n * @return {number} Packed RGBA as Uint32\r\n */\r\n getTintAppendFloatAlpha: function (rgb, a)\r\n {\r\n var ua = ((a * 255) | 0) & 0xff;\r\n\r\n return ((ua << 24) | rgb) >>> 0;\r\n },\r\n\r\n /**\r\n * Packs a Uint24, representing RGB components, with a Float32, representing\r\n * the alpha component, with a range between 0.0 and 1.0 and return a\r\n * swizzled Uint32\r\n *\r\n * @function Phaser.Renderer.WebGL.Utils.getTintAppendFloatAlphaAndSwap\r\n * @since 3.0.0\r\n *\r\n * @param {number} rgb - Uint24 representing RGB components\r\n * @param {number} a - Float32 representing Alpha component\r\n *\r\n * @return {number} Packed RGBA as Uint32\r\n */\r\n getTintAppendFloatAlphaAndSwap: function (rgb, a)\r\n {\r\n var ur = ((rgb >> 16) | 0) & 0xff;\r\n var ug = ((rgb >> 8) | 0) & 0xff;\r\n var ub = (rgb | 0) & 0xff;\r\n var ua = ((a * 255) | 0) & 0xff;\r\n\r\n return ((ua << 24) | (ub << 16) | (ug << 8) | ur) >>> 0;\r\n },\r\n\r\n /**\r\n * Unpacks a Uint24 RGB into an array of floats of ranges of 0.0 and 1.0\r\n *\r\n * @function Phaser.Renderer.WebGL.Utils.getFloatsFromUintRGB\r\n * @since 3.0.0\r\n *\r\n * @param {number} rgb - RGB packed as a Uint24\r\n *\r\n * @return {array} Array of floats representing each component as a float\r\n */\r\n getFloatsFromUintRGB: function (rgb)\r\n {\r\n var ur = ((rgb >> 16) | 0) & 0xff;\r\n var ug = ((rgb >> 8) | 0) & 0xff;\r\n var ub = (rgb | 0) & 0xff;\r\n\r\n return [ ur / 255, ug / 255, ub / 255 ];\r\n },\r\n\r\n /**\r\n * Check to see how many texture units the GPU supports in a fragment shader\r\n * and if the value specific in the game config is allowed.\r\n *\r\n * This value is hard-clamped to 16 for performance reasons on Android devices.\r\n *\r\n * @function Phaser.Renderer.WebGL.Utils.checkShaderMax\r\n * @since 3.50.0\r\n *\r\n * @param {WebGLRenderingContext} gl - The WebGLContext used to create the shaders.\r\n * @param {number} maxTextures - The Game Config maxTextures value.\r\n *\r\n * @return {number} The number of texture units that is supported by this browser and GPU.\r\n */\r\n checkShaderMax: function (gl, maxTextures)\r\n {\r\n // Note: This is the maximum number of TIUs that a _fragment_ shader supports\r\n // https://www.khronos.org/opengl/wiki/Common_Mistakes#Texture_Unit\r\n\r\n // Hard-clamp this to 16 to avoid run-away texture counts such as on Android\r\n var gpuMax = Math.min(16, gl.getParameter(gl.MAX_TEXTURE_IMAGE_UNITS));\r\n\r\n if (!maxTextures || maxTextures === -1)\r\n {\r\n return gpuMax;\r\n }\r\n else\r\n {\r\n return Math.min(gpuMax, maxTextures);\r\n }\r\n },\r\n\r\n /**\r\n * Checks the given Fragment Shader Source for `%count%` and `%forloop%` declarations and\r\n * replaces those with GLSL code for setting `texture = texture2D(uMainSampler[i], outTexCoord)`.\r\n *\r\n * @function Phaser.Renderer.WebGL.Utils.parseFragmentShaderMaxTextures\r\n * @since 3.50.0\r\n *\r\n * @param {string} fragmentShaderSource - The Fragment Shader source code to operate on.\r\n * @param {number} maxTextures - The number of maxTextures value.\r\n *\r\n * @return {string} The modified Fragment Shader source.\r\n */\r\n parseFragmentShaderMaxTextures: function (fragmentShaderSource, maxTextures)\r\n {\r\n if (!fragmentShaderSource)\r\n {\r\n return '';\r\n }\r\n\r\n var src = '';\r\n\r\n for (var i = 0; i < maxTextures; i++)\r\n {\r\n if (i > 0)\r\n {\r\n src += '\\n\\telse ';\r\n }\r\n\r\n if (i < maxTextures - 1)\r\n {\r\n src += 'if (outTexId < ' + i + '.5)';\r\n }\r\n\r\n src += '\\n\\t{';\r\n src += '\\n\\t\\ttexture = texture2D(uMainSampler[' + i + '], outTexCoord);';\r\n src += '\\n\\t}';\r\n }\r\n\r\n fragmentShaderSource = fragmentShaderSource.replace(/%count%/gi, maxTextures.toString());\r\n\r\n return fragmentShaderSource.replace(/%forloop%/gi, src);\r\n },\r\n\r\n /**\r\n * Takes the Glow FX Shader source and parses out the __SIZE__ and __DIST__\r\n * consts with the configuration values.\r\n *\r\n * @function Phaser.Renderer.WebGL.Utils.setGlowQuality\r\n * @since 3.60.0\r\n *\r\n * @param {string} shader - The Fragment Shader source code to operate on.\r\n * @param {Phaser.Game} game - The Phaser Game instance.\r\n * @param {number} [quality] - The quality of the glow (defaults to 0.1)\r\n * @param {number} [distance] - The distance of the glow (defaults to 10)\r\n *\r\n * @return {string} The modified Fragment Shader source.\r\n */\r\n setGlowQuality: function (shader, game, quality, distance)\r\n {\r\n if (quality === undefined)\r\n {\r\n quality = game.config.glowFXQuality;\r\n }\r\n\r\n if (distance === undefined)\r\n {\r\n distance = game.config.glowFXDistance;\r\n }\r\n\r\n shader = shader.replace(/__SIZE__/gi, (1 / quality / distance).toFixed(7));\r\n shader = shader.replace(/__DIST__/gi, distance.toFixed(0) + '.0');\r\n\r\n return shader;\r\n }\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 29100:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar DeepCopy = __webpack_require__(62644);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Events = __webpack_require__(77085);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar Matrix4 = __webpack_require__(37867);\r\nvar RendererEvents = __webpack_require__(92503);\r\nvar RenderTarget = __webpack_require__(32302);\r\nvar Utils = __webpack_require__(70554);\r\nvar WebGLShader = __webpack_require__(38683);\r\n\r\n/**\r\n * @classdesc\r\n * The `WebGLPipeline` is a base class used by all of the core Phaser pipelines.\r\n *\r\n * It describes the way elements will be rendered in WebGL. Internally, it handles\r\n * compiling the shaders, creating vertex buffers, assigning primitive topology and\r\n * binding vertex attributes, all based on the given configuration data.\r\n *\r\n * The pipeline is configured by passing in a `WebGLPipelineConfig` object. Please\r\n * see the documentation for this type to fully understand the configuration options\r\n * available to you.\r\n *\r\n * Usually, you would not extend from this class directly, but would instead extend\r\n * from one of the core pipelines, such as the Multi Pipeline.\r\n *\r\n * The pipeline flow per render-step is as follows:\r\n *\r\n * 1) onPreRender - called once at the start of the render step\r\n * 2) onRender - call for each Scene Camera that needs to render (so can be multiple times per render step)\r\n * 3) Internal flow:\r\n * 3a) bind (only called if a Game Object is using this pipeline and it's not currently active)\r\n * 3b) onBind (called for every Game Object that uses this pipeline)\r\n * 3c) flush (can be called by a Game Object, internal method or from outside by changing pipeline)\r\n * 4) onPostRender - called once at the end of the render step\r\n *\r\n * @class WebGLPipeline\r\n * @extends Phaser.Events.EventEmitter\r\n * @memberof Phaser.Renderer.WebGL\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Renderer.WebGL.WebGLPipelineConfig} config - The configuration object for this WebGL Pipeline.\r\n */\r\nvar WebGLPipeline = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function WebGLPipeline (config)\r\n {\r\n EventEmitter.call(this);\r\n\r\n var game = config.game;\r\n var renderer = game.renderer;\r\n var gl = renderer.gl;\r\n\r\n /**\r\n * Name of the pipeline. Used for identification and setting from Game Objects.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#name\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.name = GetFastValue(config, 'name', 'WebGLPipeline');\r\n\r\n /**\r\n * The Phaser Game instance to which this pipeline is bound.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#game\r\n * @type {Phaser.Game}\r\n * @since 3.0.0\r\n */\r\n this.game = game;\r\n\r\n /**\r\n * The WebGL Renderer instance to which this pipeline is bound.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#renderer\r\n * @type {Phaser.Renderer.WebGL.WebGLRenderer}\r\n * @since 3.0.0\r\n */\r\n this.renderer = renderer;\r\n\r\n /**\r\n * A reference to the WebGL Pipeline Manager.\r\n *\r\n * This is initially undefined and only set when this pipeline is added\r\n * to the manager.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#manager\r\n * @type {?Phaser.Renderer.WebGL.PipelineManager}\r\n * @since 3.50.0\r\n */\r\n this.manager;\r\n\r\n /**\r\n * The WebGL context this WebGL Pipeline uses.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#gl\r\n * @type {WebGLRenderingContext}\r\n * @since 3.0.0\r\n */\r\n this.gl = gl;\r\n\r\n /**\r\n * The canvas which this WebGL Pipeline renders to.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#view\r\n * @type {HTMLCanvasElement}\r\n * @since 3.0.0\r\n */\r\n this.view = game.canvas;\r\n\r\n /**\r\n * Width of the current viewport.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#width\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.width = 0;\r\n\r\n /**\r\n * Height of the current viewport.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#height\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.height = 0;\r\n\r\n /**\r\n * The current number of vertices that have been added to the pipeline batch.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#vertexCount\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.vertexCount = 0;\r\n\r\n /**\r\n * The total number of vertices that this pipeline batch can hold before it will flush.\r\n *\r\n * This defaults to `renderer batchSize * 6`, where `batchSize` is defined in the Renderer Game Config.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#vertexCapacity\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.vertexCapacity = 0;\r\n\r\n /**\r\n * Raw byte buffer of vertices.\r\n *\r\n * Either set via the config object `vertices` property, or generates a new Array Buffer of\r\n * size `vertexCapacity * vertexSize`.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#vertexData\r\n * @type {ArrayBuffer}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.vertexData;\r\n\r\n /**\r\n * The WebGLBuffer that holds the vertex data.\r\n *\r\n * Created from the `vertexData` ArrayBuffer. If `vertices` are set in the config, a `STATIC_DRAW` buffer\r\n * is created. If not, a `DYNAMIC_DRAW` buffer is created.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#vertexBuffer\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLBufferWrapper}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.vertexBuffer;\r\n\r\n /**\r\n * The currently active WebGLBuffer.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#activeBuffer\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLBufferWrapper}\r\n * @since 3.60.0\r\n */\r\n this.activeBuffer;\r\n\r\n /**\r\n * The primitive topology which the pipeline will use to submit draw calls.\r\n *\r\n * Defaults to GL_TRIANGLES if not otherwise set in the config.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#topology\r\n * @type {GLenum}\r\n * @since 3.0.0\r\n */\r\n this.topology = GetFastValue(config, 'topology', gl.TRIANGLES);\r\n\r\n /**\r\n * Uint8 view to the `vertexData` ArrayBuffer. Used for uploading vertex buffer resources to the GPU.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#bytes\r\n * @type {Uint8Array}\r\n * @since 3.0.0\r\n */\r\n this.bytes;\r\n\r\n /**\r\n * Float32 view of the array buffer containing the pipeline's vertices.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#vertexViewF32\r\n * @type {Float32Array}\r\n * @since 3.0.0\r\n */\r\n this.vertexViewF32;\r\n\r\n /**\r\n * Uint32 view of the array buffer containing the pipeline's vertices.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#vertexViewU32\r\n * @type {Uint32Array}\r\n * @since 3.0.0\r\n */\r\n this.vertexViewU32;\r\n\r\n /**\r\n * Indicates if the current pipeline is active, or not.\r\n *\r\n * Toggle this property to enable or disable a pipeline from rendering anything.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#active\r\n * @type {boolean}\r\n * @since 3.10.0\r\n */\r\n this.active = true;\r\n\r\n /**\r\n * Some pipelines require the forced use of texture zero (like the light pipeline).\r\n *\r\n * This property should be set when that is the case.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#forceZero\r\n * @type {boolean}\r\n * @since 3.50.0\r\n */\r\n this.forceZero = GetFastValue(config, 'forceZero', false);\r\n\r\n /**\r\n * Indicates if this pipeline has booted or not.\r\n *\r\n * A pipeline boots only when the Game instance itself, and all associated systems, is\r\n * fully ready.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#hasBooted\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.50.0\r\n */\r\n this.hasBooted = false;\r\n\r\n /**\r\n * Indicates if this is a Post FX Pipeline, or not.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#isPostFX\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.50.0\r\n */\r\n this.isPostFX = false;\r\n\r\n /**\r\n * Indicates if this is a Pre FX Pipeline, or not.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#isPreFX\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.isPreFX = false;\r\n\r\n /**\r\n * An array of RenderTarget instances that belong to this pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#renderTargets\r\n * @type {Phaser.Renderer.WebGL.RenderTarget[]}\r\n * @since 3.50.0\r\n */\r\n this.renderTargets = [];\r\n\r\n /**\r\n * A reference to the currently bound Render Target instance from the `WebGLPipeline.renderTargets` array.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#currentRenderTarget\r\n * @type {Phaser.Renderer.WebGL.RenderTarget}\r\n * @since 3.50.0\r\n */\r\n this.currentRenderTarget;\r\n\r\n /**\r\n * An array of all the WebGLShader instances that belong to this pipeline.\r\n *\r\n * Shaders manage their own attributes and uniforms, but share the same vertex data buffer,\r\n * which belongs to this pipeline.\r\n *\r\n * Shaders are set in a call to the `setShadersFromConfig` method, which happens automatically,\r\n * but can also be called at any point in your game. See the method documentation for details.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#shaders\r\n * @type {Phaser.Renderer.WebGL.WebGLShader[]}\r\n * @since 3.50.0\r\n */\r\n this.shaders = [];\r\n\r\n /**\r\n * A reference to the currently bound WebGLShader instance from the `WebGLPipeline.shaders` array.\r\n *\r\n * For lots of pipelines, this is the only shader, so it is a quick way to reference it without\r\n * an array look-up.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#currentShader\r\n * @type {Phaser.Renderer.WebGL.WebGLShader}\r\n * @since 3.50.0\r\n */\r\n this.currentShader;\r\n\r\n /**\r\n * The Projection matrix, used by shaders as 'uProjectionMatrix' uniform.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#projectionMatrix\r\n * @type {Phaser.Math.Matrix4}\r\n * @since 3.50.0\r\n */\r\n this.projectionMatrix;\r\n\r\n /**\r\n * The cached width of the Projection matrix.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#projectionWidth\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.projectionWidth = 0;\r\n\r\n /**\r\n * The cached height of the Projection matrix.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#projectionHeight\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.projectionHeight = 0;\r\n\r\n /**\r\n * The configuration object that was used to create this pipeline.\r\n *\r\n * Treat this object as 'read only', because changing it post-creation will not\r\n * impact this pipeline in any way. However, it is used internally for cloning\r\n * and post-boot set-up.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#config\r\n * @type {Phaser.Types.Renderer.WebGL.WebGLPipelineConfig}\r\n * @since 3.50.0\r\n */\r\n this.config = config;\r\n\r\n /**\r\n * Has the GL Context been reset to the Phaser defaults since the last time\r\n * this pipeline was bound? This is set automatically when the Pipeline Manager\r\n * resets itself, usually after handing off to a 3rd party renderer like Spine.\r\n *\r\n * You should treat this property as read-only.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#glReset\r\n * @type {boolean}\r\n * @since 3.53.0\r\n */\r\n this.glReset = false;\r\n\r\n /**\r\n * The temporary Pipeline batch. This array contains the batch entries for\r\n * the current frame, which is a package of textures and vertex offsets used\r\n * for drawing. This package is built dynamically as the frame is built\r\n * and cleared during the flush method.\r\n *\r\n * Treat this array and all of its contents as read-only.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#batch\r\n * @type {Phaser.Types.Renderer.WebGL.WebGLPipelineBatchEntry[]}\r\n * @since 3.60.0\r\n */\r\n this.batch = [];\r\n\r\n /**\r\n * The most recently created Pipeline batch entry.\r\n *\r\n * Reset to null as part of the flush method.\r\n *\r\n * Treat this value as read-only.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#currentBatch\r\n * @type {?Phaser.Types.Renderer.WebGL.WebGLPipelineBatchEntry}\r\n * @since 3.60.0\r\n */\r\n this.currentBatch = null;\r\n\r\n /**\r\n * The most recently bound texture, used as part of the batch process.\r\n *\r\n * Reset to null as part of the flush method.\r\n *\r\n * Treat this value as read-only.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#currentTexture\r\n * @type {?Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper}\r\n * @since 3.60.0\r\n */\r\n this.currentTexture = null;\r\n\r\n /**\r\n * Holds the most recently assigned texture unit.\r\n *\r\n * Treat this value as read-only.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#currentUnit\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.currentUnit = 0;\r\n\r\n /**\r\n * The currently active WebGLTextures, used as part of the batch process.\r\n *\r\n * Reset to empty as part of the bind method.\r\n *\r\n * Treat this array as read-only.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#activeTextures\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper[]}\r\n * @since 3.60.0\r\n */\r\n this.activeTextures = [];\r\n\r\n /**\r\n * If the WebGL Renderer changes size, this uniform will be set with the new width and height values\r\n * as part of the pipeline resize method. Various built-in pipelines, such as the MultiPipeline, set\r\n * this property automatically to `uResolution`.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLPipeline#resizeUniform\r\n * @type {string}\r\n * @since 3.80.0\r\n */\r\n this.resizeUniform = GetFastValue(config, 'resizeUniform', '');\r\n },\r\n\r\n /**\r\n * Called when the Game has fully booted and the Renderer has finished setting up.\r\n *\r\n * By this stage all Game level systems are now in place. You can perform any final tasks that the\r\n * pipeline may need, that relies on game systems such as the Texture Manager being ready.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#boot\r\n * @fires Phaser.Renderer.WebGL.Pipelines.Events#BOOT\r\n * @since 3.11.0\r\n */\r\n boot: function ()\r\n {\r\n var i;\r\n var gl = this.gl;\r\n var config = this.config;\r\n var renderer = this.renderer;\r\n\r\n if (!this.isPostFX)\r\n {\r\n this.projectionMatrix = new Matrix4().identity();\r\n }\r\n\r\n // Create the Render Targets\r\n\r\n var renderTargets = this.renderTargets;\r\n\r\n var targets = GetFastValue(config, 'renderTarget', false);\r\n\r\n // If boolean, set to number = 1\r\n if (typeof(targets) === 'boolean' && targets)\r\n {\r\n targets = 1;\r\n }\r\n\r\n var width = renderer.width;\r\n var height = renderer.height;\r\n\r\n if (typeof(targets) === 'number')\r\n {\r\n // Create this many default RTs\r\n for (i = 0; i < targets; i++)\r\n {\r\n renderTargets.push(new RenderTarget(renderer, width, height, 1, 0, true));\r\n }\r\n }\r\n else if (Array.isArray(targets))\r\n {\r\n for (i = 0; i < targets.length; i++)\r\n {\r\n var scale = GetFastValue(targets[i], 'scale', 1);\r\n var minFilter = GetFastValue(targets[i], 'minFilter', 0);\r\n var autoClear = GetFastValue(targets[i], 'autoClear', 1);\r\n var autoResize = GetFastValue(targets[i], 'autoResize', false);\r\n var targetWidth = GetFastValue(targets[i], 'width', null);\r\n var targetHeight = GetFastValue(targets[i], 'height', targetWidth);\r\n\r\n if (targetWidth)\r\n {\r\n renderTargets.push(new RenderTarget(renderer, targetWidth, targetHeight, 1, minFilter, autoClear, autoResize));\r\n }\r\n else\r\n {\r\n renderTargets.push(new RenderTarget(renderer, width, height, scale, minFilter, autoClear, autoResize));\r\n }\r\n }\r\n }\r\n\r\n if (renderTargets.length)\r\n {\r\n // Default to the first one in the array\r\n this.currentRenderTarget = renderTargets[0];\r\n }\r\n\r\n // Create the Shaders\r\n\r\n this.setShadersFromConfig(config);\r\n\r\n // Which shader has the largest vertex size?\r\n var shaders = this.shaders;\r\n var vertexSize = 0;\r\n\r\n for (i = 0; i < shaders.length; i++)\r\n {\r\n if (shaders[i].vertexSize > vertexSize)\r\n {\r\n vertexSize = shaders[i].vertexSize;\r\n }\r\n }\r\n\r\n var batchSize = GetFastValue(config, 'batchSize', renderer.config.batchSize);\r\n\r\n // * 6 because there are 6 vertices in a quad and 'batchSize' represents the quantity of quads in the batch\r\n\r\n this.vertexCapacity = batchSize * 6;\r\n\r\n var data = new ArrayBuffer(this.vertexCapacity * vertexSize);\r\n\r\n this.vertexData = data;\r\n this.bytes = new Uint8Array(data);\r\n this.vertexViewF32 = new Float32Array(data);\r\n this.vertexViewU32 = new Uint32Array(data);\r\n\r\n var configVerts = GetFastValue(config, 'vertices', null);\r\n\r\n if (configVerts)\r\n {\r\n this.vertexViewF32.set(configVerts);\r\n\r\n this.vertexBuffer = renderer.createVertexBuffer(data, gl.STATIC_DRAW);\r\n }\r\n else\r\n {\r\n this.vertexBuffer = renderer.createVertexBuffer(data.byteLength, gl.DYNAMIC_DRAW);\r\n }\r\n\r\n // Set-up shaders\r\n\r\n this.setVertexBuffer();\r\n\r\n for (i = shaders.length - 1; i >= 0; i--)\r\n {\r\n shaders[i].rebind();\r\n }\r\n\r\n this.hasBooted = true;\r\n\r\n renderer.on(RendererEvents.RESIZE, this.resize, this);\r\n renderer.on(RendererEvents.PRE_RENDER, this.onPreRender, this);\r\n renderer.on(RendererEvents.RENDER, this.onRender, this);\r\n renderer.on(RendererEvents.POST_RENDER, this.onPostRender, this);\r\n\r\n this.emit(Events.BOOT, this);\r\n\r\n this.onBoot();\r\n },\r\n\r\n /**\r\n * This method is called once when this pipeline has finished being set-up\r\n * at the end of the boot process. By the time this method is called, all\r\n * of the shaders are ready and configured.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#onBoot\r\n * @since 3.50.0\r\n */\r\n onBoot: function ()\r\n {\r\n },\r\n\r\n /**\r\n * This method is called once when this pipeline has finished being set-up\r\n * at the end of the boot process. By the time this method is called, all\r\n * of the shaders are ready and configured. It's also called if the renderer\r\n * changes size.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#onResize\r\n * @since 3.50.0\r\n *\r\n * @param {number} width - The new width of this WebGL Pipeline.\r\n * @param {number} height - The new height of this WebGL Pipeline.\r\n */\r\n onResize: function ()\r\n {\r\n },\r\n\r\n /**\r\n * Sets the currently active shader within this pipeline.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#setShader\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} shader - The shader to set as being current.\r\n * @param {boolean} [setAttributes=false] - Should the vertex attribute pointers be set?\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLBufferWrapper} [vertexBuffer] - The vertex buffer to be set before the shader is bound. Defaults to the one owned by this pipeline.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n setShader: function (shader, setAttributes, vertexBuffer)\r\n {\r\n var renderer = this.renderer;\r\n\r\n if (shader !== this.currentShader || renderer.currentProgram !== this.currentShader.program)\r\n {\r\n this.flush();\r\n\r\n var wasBound = this.setVertexBuffer(vertexBuffer);\r\n\r\n if (wasBound && !setAttributes)\r\n {\r\n setAttributes = true;\r\n }\r\n\r\n shader.bind(setAttributes, false);\r\n\r\n this.currentShader = shader;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Searches all shaders in this pipeline for one matching the given name, then returns it.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#getShaderByName\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The index of the shader to set.\r\n *\r\n * @return {Phaser.Renderer.WebGL.WebGLShader} The WebGLShader instance, if found.\r\n */\r\n getShaderByName: function (name)\r\n {\r\n var shaders = this.shaders;\r\n\r\n for (var i = 0; i < shaders.length; i++)\r\n {\r\n if (shaders[i].name === name)\r\n {\r\n return shaders[i];\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Destroys all shaders currently set in the `WebGLPipeline.shaders` array and then parses the given\r\n * `config` object, extracting the shaders from it, creating `WebGLShader` instances and finally\r\n * setting them into the `shaders` array of this pipeline.\r\n *\r\n * This is a destructive process. Be very careful when you call it, should you need to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#setShadersFromConfig\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Types.Renderer.WebGL.WebGLPipelineConfig} config - The configuration object for this WebGL Pipeline.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n setShadersFromConfig: function (config)\r\n {\r\n var i;\r\n var shaders = this.shaders;\r\n var renderer = this.renderer;\r\n\r\n for (i = 0; i < shaders.length; i++)\r\n {\r\n shaders[i].destroy();\r\n }\r\n\r\n var vName = 'vertShader';\r\n var fName = 'fragShader';\r\n var aName = 'attributes';\r\n\r\n var defaultVertShader = GetFastValue(config, vName, null);\r\n var defaultFragShader = Utils.parseFragmentShaderMaxTextures(GetFastValue(config, fName, null), renderer.maxTextures);\r\n var defaultAttribs = GetFastValue(config, aName, null);\r\n\r\n var configShaders = GetFastValue(config, 'shaders', []);\r\n\r\n var len = configShaders.length;\r\n\r\n if (len === 0)\r\n {\r\n if (defaultVertShader && defaultFragShader)\r\n {\r\n this.shaders = [ new WebGLShader(this, 'default', defaultVertShader, defaultFragShader, DeepCopy(defaultAttribs)) ];\r\n }\r\n }\r\n else\r\n {\r\n var newShaders = [];\r\n\r\n for (i = 0; i < len; i++)\r\n {\r\n var shaderEntry = configShaders[i];\r\n\r\n var name;\r\n var vertShader;\r\n var fragShader;\r\n var attributes;\r\n\r\n if (typeof shaderEntry === 'string')\r\n {\r\n name = 'default';\r\n vertShader = defaultVertShader;\r\n fragShader = Utils.parseFragmentShaderMaxTextures(shaderEntry, renderer.maxTextures);\r\n attributes = defaultAttribs;\r\n }\r\n else\r\n {\r\n name = GetFastValue(shaderEntry, 'name', 'default');\r\n vertShader = GetFastValue(shaderEntry, vName, defaultVertShader);\r\n fragShader = Utils.parseFragmentShaderMaxTextures(GetFastValue(shaderEntry, fName, defaultFragShader), renderer.maxTextures);\r\n attributes = GetFastValue(shaderEntry, aName, defaultAttribs);\r\n }\r\n\r\n if (name === 'default')\r\n {\r\n var lines = fragShader.split('\\n');\r\n var test = lines[0].trim();\r\n\r\n if (test.indexOf('#define SHADER_NAME') > -1)\r\n {\r\n name = test.substring(20);\r\n }\r\n }\r\n\r\n if (vertShader && fragShader)\r\n {\r\n newShaders.push(new WebGLShader(this, name, vertShader, fragShader, DeepCopy(attributes)));\r\n }\r\n }\r\n\r\n this.shaders = newShaders;\r\n }\r\n\r\n if (this.shaders.length === 0)\r\n {\r\n console.warn('Pipeline: ' + this.name + ' - Invalid shader config');\r\n }\r\n else\r\n {\r\n this.currentShader = this.shaders[0];\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Creates a new WebGL Pipeline Batch Entry, sets the texture unit as zero\r\n * and pushes the entry into the batch.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#createBatch\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} texture - The texture assigned to this batch entry.\r\n *\r\n * @return {number} The texture unit that was bound.\r\n */\r\n createBatch: function (texture)\r\n {\r\n this.currentBatch = {\r\n start: this.vertexCount,\r\n count: 0,\r\n texture: [ texture ],\r\n unit: 0,\r\n maxUnit: 0\r\n };\r\n\r\n this.currentUnit = 0;\r\n this.currentTexture = texture;\r\n\r\n this.batch.push(this.currentBatch);\r\n\r\n return 0;\r\n },\r\n\r\n /**\r\n * Adds the given texture to the current WebGL Pipeline Batch Entry and\r\n * increases the batch entry unit and maxUnit values by 1.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#addTextureToBatch\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} texture - The texture assigned to this batch entry.\r\n */\r\n addTextureToBatch: function (texture)\r\n {\r\n var batch = this.currentBatch;\r\n\r\n if (batch)\r\n {\r\n batch.texture.push(texture);\r\n batch.unit++;\r\n batch.maxUnit++;\r\n }\r\n },\r\n\r\n /**\r\n * Takes the given WebGLTextureWrapper and determines what to do with it.\r\n *\r\n * If there is no current batch (i.e. after a flush) it will create a new\r\n * batch from it.\r\n *\r\n * If the texture is already bound, it will return the current texture unit.\r\n *\r\n * If the texture already exists in the current batch, the unit gets reset\r\n * to match it.\r\n *\r\n * If the texture cannot be found in the current batch, and it supports\r\n * multiple textures, it's added into the batch and the unit indexes are\r\n * advanced.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#pushBatch\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} texture - The texture assigned to this batch entry.\r\n *\r\n * @return {number} The texture unit that was bound.\r\n */\r\n pushBatch: function (texture)\r\n {\r\n // No current batch? Create one and return\r\n if (!this.currentBatch || (this.forceZero && texture !== this.currentTexture))\r\n {\r\n return this.createBatch(texture);\r\n }\r\n\r\n // Otherwise, check if the texture is in the current batch\r\n if (texture === this.currentTexture)\r\n {\r\n return this.currentUnit;\r\n }\r\n else\r\n {\r\n var current = this.currentBatch;\r\n\r\n var idx = current.texture.indexOf(texture);\r\n\r\n if (idx === -1)\r\n {\r\n // This is a brand new texture, not in the current batch\r\n\r\n // Have we exceed our limit?\r\n if (current.texture.length === this.renderer.maxTextures)\r\n {\r\n return this.createBatch(texture);\r\n }\r\n else\r\n {\r\n // We're good, push it in\r\n current.unit++;\r\n current.maxUnit++;\r\n current.texture.push(texture);\r\n\r\n this.currentUnit = current.unit;\r\n this.currentTexture = texture;\r\n\r\n return current.unit;\r\n }\r\n }\r\n else\r\n {\r\n this.currentUnit = idx;\r\n this.currentTexture = texture;\r\n\r\n return idx;\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Custom pipelines can use this method in order to perform any required pre-batch tasks\r\n * for the given Game Object. It must return the texture unit the Game Object was assigned.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#setGameObject\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object being rendered or added to the batch.\r\n * @param {Phaser.Textures.Frame} [frame] - Optional frame to use. Can override that of the Game Object.\r\n *\r\n * @return {number} The texture unit the Game Object has been assigned.\r\n */\r\n setGameObject: function (gameObject, frame)\r\n {\r\n if (frame === undefined) { frame = gameObject.frame; }\r\n\r\n return this.pushBatch(frame.source.glTexture);\r\n },\r\n\r\n /**\r\n * Check if the current batch of vertices is full.\r\n *\r\n * You can optionally provide an `amount` parameter. If given, it will check if the batch\r\n * needs to flush _if_ the `amount` is added to it. This allows you to test if you should\r\n * flush before populating the batch.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#shouldFlush\r\n * @since 3.0.0\r\n *\r\n * @param {number} [amount=0] - Will the batch need to flush if this many vertices are added to it?\r\n *\r\n * @return {boolean} `true` if the current batch should be flushed, otherwise `false`.\r\n */\r\n shouldFlush: function (amount)\r\n {\r\n if (amount === undefined) { amount = 0; }\r\n\r\n return (this.vertexCount + amount > this.vertexCapacity);\r\n },\r\n\r\n /**\r\n * Returns the number of vertices that can be added to the current batch before\r\n * it will trigger a flush to happen.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#vertexAvailable\r\n * @since 3.60.0\r\n *\r\n * @return {number} The number of vertices that can still be added to the current batch before it will flush.\r\n */\r\n vertexAvailable: function ()\r\n {\r\n return this.vertexCapacity - this.vertexCount;\r\n },\r\n\r\n /**\r\n * Resizes the properties used to describe the viewport.\r\n *\r\n * This method is called automatically by the renderer during its resize handler.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#resize\r\n * @fires Phaser.Renderer.WebGL.Pipelines.Events#RESIZE\r\n * @since 3.0.0\r\n *\r\n * @param {number} width - The new width of this WebGL Pipeline.\r\n * @param {number} height - The new height of this WebGL Pipeline.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n resize: function (width, height)\r\n {\r\n if (width !== this.width || height !== this.height)\r\n {\r\n this.flush();\r\n }\r\n\r\n this.width = width;\r\n this.height = height;\r\n\r\n var targets = this.renderTargets;\r\n\r\n for (var i = 0; i < targets.length; i++)\r\n {\r\n targets[i].resize(width, height);\r\n }\r\n\r\n this.setProjectionMatrix(width, height);\r\n\r\n if (this.resizeUniform)\r\n {\r\n this.set2f(this.resizeUniform, width, height);\r\n }\r\n\r\n this.emit(Events.RESIZE, width, height, this);\r\n\r\n this.onResize(width, height);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adjusts this pipelines ortho Projection Matrix to use the given dimensions\r\n * and resets the `uProjectionMatrix` uniform on all bound shaders.\r\n *\r\n * This method is called automatically by the renderer during its resize handler.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#setProjectionMatrix\r\n * @since 3.50.0\r\n *\r\n * @param {number} width - The new width of this WebGL Pipeline.\r\n * @param {number} height - The new height of this WebGL Pipeline.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n setProjectionMatrix: function (width, height)\r\n {\r\n var projectionMatrix = this.projectionMatrix;\r\n\r\n // Because not all pipelines have them\r\n if (!projectionMatrix)\r\n {\r\n return this;\r\n }\r\n\r\n this.projectionWidth = width;\r\n this.projectionHeight = height;\r\n\r\n projectionMatrix.ortho(0, width, height, 0, -1000, 1000);\r\n\r\n var shaders = this.shaders;\r\n\r\n var name = 'uProjectionMatrix';\r\n\r\n for (var i = 0; i < shaders.length; i++)\r\n {\r\n var shader = shaders[i];\r\n\r\n if (shader.hasUniform(name))\r\n {\r\n shader.resetUniform(name);\r\n\r\n shader.setMatrix4fv(name, false, projectionMatrix.val, shader);\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adjusts this pipelines ortho Projection Matrix to flip the y\r\n * and bottom values. Call with 'false' as the parameter to flip\r\n * them back again.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#flipProjectionMatrix\r\n * @since 3.60.0\r\n *\r\n * @param {boolean} [flipY=true] - Flip the y and bottom values?\r\n */\r\n flipProjectionMatrix: function (flipY)\r\n {\r\n if (flipY === undefined) { flipY = true; }\r\n\r\n var projectionMatrix = this.projectionMatrix;\r\n\r\n // Because not all pipelines have them\r\n if (!projectionMatrix)\r\n {\r\n return this;\r\n }\r\n\r\n var width = this.projectionWidth;\r\n var height = this.projectionHeight;\r\n\r\n if (flipY)\r\n {\r\n projectionMatrix.ortho(0, width, 0, height, -1000, 1000);\r\n }\r\n else\r\n {\r\n projectionMatrix.ortho(0, width, height, 0, -1000, 1000);\r\n }\r\n\r\n this.setMatrix4fv('uProjectionMatrix', false, projectionMatrix.val);\r\n },\r\n\r\n /**\r\n * Adjusts this pipelines ortho Projection Matrix to match that of the global\r\n * WebGL Renderer Projection Matrix.\r\n *\r\n * This method is called automatically by the Pipeline Manager when this\r\n * pipeline is set.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#updateProjectionMatrix\r\n * @since 3.50.0\r\n */\r\n updateProjectionMatrix: function ()\r\n {\r\n if (this.projectionMatrix)\r\n {\r\n var globalWidth = this.renderer.projectionWidth;\r\n var globalHeight = this.renderer.projectionHeight;\r\n\r\n if (this.projectionWidth !== globalWidth || this.projectionHeight !== globalHeight)\r\n {\r\n this.setProjectionMatrix(globalWidth, globalHeight);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * This method is called every time the Pipeline Manager makes this pipeline the currently active one.\r\n *\r\n * It binds the resources and shader needed for this pipeline, including setting the vertex buffer\r\n * and attribute pointers.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#bind\r\n * @fires Phaser.Renderer.WebGL.Pipelines.Events#BIND\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [currentShader] - The shader to set as being current.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n bind: function (currentShader)\r\n {\r\n if (currentShader === undefined) { currentShader = this.currentShader; }\r\n\r\n if (this.glReset)\r\n {\r\n return this.rebind(currentShader);\r\n }\r\n\r\n var wasBound = false;\r\n\r\n var gl = this.gl;\r\n\r\n if (gl.getParameter(gl.ARRAY_BUFFER_BINDING) !== this.vertexBuffer)\r\n {\r\n gl.bindBuffer(gl.ARRAY_BUFFER, this.vertexBuffer.webGLBuffer);\r\n\r\n this.activeBuffer = this.vertexBuffer;\r\n\r\n wasBound = true;\r\n }\r\n\r\n currentShader.bind(wasBound);\r\n\r\n this.currentShader = currentShader;\r\n\r\n this.activeTextures.length = 0;\r\n\r\n this.emit(Events.BIND, this, currentShader);\r\n\r\n this.onActive(currentShader);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * This method is called every time the Pipeline Manager rebinds this pipeline.\r\n *\r\n * It resets all shaders this pipeline uses, setting their attributes again.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#rebind\r\n * @fires Phaser.Renderer.WebGL.Pipelines.Events#REBIND\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [currentShader] - The shader to set as being current.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n rebind: function (currentShader)\r\n {\r\n this.activeBuffer = null;\r\n\r\n this.setVertexBuffer();\r\n\r\n var shaders = this.shaders;\r\n\r\n // Loop in reverse, so the first shader in the array is left as being bound\r\n for (var i = shaders.length - 1; i >= 0; i--)\r\n {\r\n var shader = shaders[i].rebind();\r\n\r\n if (!currentShader || shader === currentShader)\r\n {\r\n this.currentShader = shader;\r\n }\r\n }\r\n\r\n this.activeTextures.length = 0;\r\n\r\n this.emit(Events.REBIND, this.currentShader);\r\n\r\n this.onActive(this.currentShader);\r\n\r\n this.onRebind();\r\n\r\n this.glReset = false;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * This method is called if the WebGL context is lost and restored.\r\n * It ensures that uniforms are synced back to the GPU\r\n * for all shaders in this pipeline.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#restoreContext\r\n * @since 3.80.0\r\n */\r\n restoreContext: function ()\r\n {\r\n var shaders = this.shaders;\r\n var hasVertexBuffer = !!this.vertexBuffer;\r\n\r\n // Deactivate all invalidated state.\r\n this.activeBuffer = null;\r\n this.activeTextures.length = 0;\r\n this.batch.length = 0;\r\n this.currentBatch = null;\r\n this.currentTexture = null;\r\n this.currentUnit = 0;\r\n\r\n if (hasVertexBuffer)\r\n {\r\n this.setVertexBuffer();\r\n }\r\n\r\n for (var i = 0; i < shaders.length; i++)\r\n {\r\n var shader = shaders[i];\r\n shader.syncUniforms();\r\n if (hasVertexBuffer)\r\n {\r\n shader.rebind();\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Binds the vertex buffer to be the active ARRAY_BUFFER on the WebGL context.\r\n *\r\n * It first checks to see if it's already set as the active buffer and only\r\n * binds itself if not.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#setVertexBuffer\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLBufferWrapper} [buffer] - The Vertex Buffer to be bound. Defaults to the one owned by this pipeline.\r\n *\r\n * @return {boolean} `true` if the vertex buffer was bound, or `false` if it was already bound.\r\n */\r\n setVertexBuffer: function (buffer)\r\n {\r\n if (buffer === undefined) { buffer = this.vertexBuffer; }\r\n\r\n if (buffer !== this.activeBuffer)\r\n {\r\n var gl = this.gl;\r\n\r\n this.gl.bindBuffer(gl.ARRAY_BUFFER, buffer.webGLBuffer);\r\n\r\n this.activeBuffer = buffer;\r\n\r\n return true;\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * This method is called as a result of the `WebGLPipeline.batchQuad` method, right before a quad\r\n * belonging to a Game Object is about to be added to the batch. When this is called, the\r\n * renderer has just performed a flush. It will bind the current render target, if any are set\r\n * and finally call the `onPreBatch` hook.\r\n *\r\n * It is also called as part of the `PipelineManager.preBatch` method when processing Post FX Pipelines.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#preBatch\r\n * @since 3.50.0\r\n *\r\n * @param {(Phaser.GameObjects.GameObject|Phaser.Cameras.Scene2D.Camera)} [gameObject] - The Game Object or Camera that invoked this pipeline, if any.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n preBatch: function (gameObject)\r\n {\r\n if (this.currentRenderTarget)\r\n {\r\n this.currentRenderTarget.bind();\r\n }\r\n\r\n this.onPreBatch(gameObject);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * This method is called as a result of the `WebGLPipeline.batchQuad` method, right after a quad\r\n * belonging to a Game Object has been added to the batch. When this is called, the\r\n * renderer has just performed a flush.\r\n *\r\n * It calls the `onDraw` hook followed by the `onPostBatch` hook, which can be used to perform\r\n * additional Post FX Pipeline processing.\r\n *\r\n * It is also called as part of the `PipelineManager.postBatch` method when processing Post FX Pipelines.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#postBatch\r\n * @since 3.50.0\r\n *\r\n * @param {(Phaser.GameObjects.GameObject|Phaser.Cameras.Scene2D.Camera)} [gameObject] - The Game Object or Camera that invoked this pipeline, if any.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n postBatch: function (gameObject)\r\n {\r\n this.onDraw(this.currentRenderTarget);\r\n\r\n this.onPostBatch(gameObject);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * This method is only used by Sprite FX and Post FX Pipelines and those that extend from them.\r\n *\r\n * This method is called every time the `postBatch` method is called and is passed a\r\n * reference to the current render target.\r\n *\r\n * At the very least a Post FX Pipeline should call `this.bindAndDraw(renderTarget)`,\r\n * however, you can do as much additional processing as you like in this method if\r\n * you override it from within your own pipelines.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#onDraw\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} renderTarget - The Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} [swapTarget] - A Swap Render Target, useful for double-buffer effects. Only set by SpriteFX Pipelines.\r\n */\r\n onDraw: function ()\r\n {\r\n },\r\n\r\n /**\r\n * This method is called every time the Pipeline Manager deactivates this pipeline, swapping from\r\n * it to another one. This happens after a call to `flush` and before the new pipeline is bound.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#unbind\r\n * @since 3.50.0\r\n */\r\n unbind: function ()\r\n {\r\n if (this.currentRenderTarget)\r\n {\r\n this.currentRenderTarget.unbind();\r\n }\r\n },\r\n\r\n /**\r\n * Uploads the vertex data and emits a draw call for the current batch of vertices.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#flush\r\n * @fires Phaser.Renderer.WebGL.Pipelines.Events#BEFORE_FLUSH\r\n * @fires Phaser.Renderer.WebGL.Pipelines.Events#AFTER_FLUSH\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [isPostFlush=false] - Was this flush invoked as part of a post-process, or not?\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n flush: function (isPostFlush)\r\n {\r\n if (isPostFlush === undefined) { isPostFlush = false; }\r\n\r\n if (this.vertexCount > 0)\r\n {\r\n this.emit(Events.BEFORE_FLUSH, this, isPostFlush);\r\n\r\n this.onBeforeFlush(isPostFlush);\r\n\r\n var gl = this.gl;\r\n var vertexCount = this.vertexCount;\r\n var vertexSize = this.currentShader.vertexSize;\r\n var topology = this.topology;\r\n\r\n if (this.active)\r\n {\r\n this.setVertexBuffer();\r\n\r\n if (vertexCount === this.vertexCapacity)\r\n {\r\n gl.bufferData(gl.ARRAY_BUFFER, this.vertexData, gl.DYNAMIC_DRAW);\r\n }\r\n else\r\n {\r\n gl.bufferSubData(gl.ARRAY_BUFFER, 0, this.bytes.subarray(0, vertexCount * vertexSize));\r\n }\r\n\r\n var i;\r\n var entry;\r\n var texture;\r\n var batch = this.batch;\r\n var activeTextures = this.activeTextures;\r\n\r\n if (this.forceZero)\r\n {\r\n // Single Texture Pipeline\r\n if (!activeTextures[0])\r\n {\r\n gl.activeTexture(gl.TEXTURE0);\r\n }\r\n\r\n for (i = 0; i < batch.length; i++)\r\n {\r\n entry = batch[i];\r\n texture = entry.texture[0];\r\n\r\n if (activeTextures[0] !== texture)\r\n {\r\n gl.bindTexture(gl.TEXTURE_2D, texture.webGLTexture);\r\n\r\n activeTextures[0] = texture;\r\n }\r\n\r\n gl.drawArrays(topology, entry.start, entry.count);\r\n }\r\n }\r\n else\r\n {\r\n for (i = 0; i < batch.length; i++)\r\n {\r\n entry = batch[i];\r\n\r\n for (var t = 0; t <= entry.maxUnit; t++)\r\n {\r\n texture = entry.texture[t];\r\n\r\n if (activeTextures[t] !== texture)\r\n {\r\n gl.activeTexture(gl.TEXTURE0 + t);\r\n gl.bindTexture(gl.TEXTURE_2D, texture.webGLTexture);\r\n\r\n activeTextures[t] = texture;\r\n }\r\n }\r\n\r\n gl.drawArrays(topology, entry.start, entry.count);\r\n }\r\n }\r\n }\r\n\r\n this.vertexCount = 0;\r\n\r\n this.batch.length = 0;\r\n this.currentBatch = null;\r\n this.currentTexture = null;\r\n this.currentUnit = 0;\r\n\r\n this.emit(Events.AFTER_FLUSH, this, isPostFlush);\r\n\r\n this.onAfterFlush(isPostFlush);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * By default this is an empty method hook that you can override and use in your own custom pipelines.\r\n *\r\n * This method is called every time the Pipeline Manager makes this the active pipeline. It is called\r\n * at the end of the `WebGLPipeline.bind` method, after the current shader has been set. The current\r\n * shader is passed to this hook.\r\n *\r\n * For example, if a display list has 3 Sprites in it that all use the same pipeline, this hook will\r\n * only be called for the first one, as the 2nd and 3rd Sprites do not cause the pipeline to be changed.\r\n *\r\n * If you need to listen for that event instead, use the `onBind` hook.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#onActive\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} currentShader - The shader that was set as current.\r\n */\r\n onActive: function ()\r\n {\r\n },\r\n\r\n /**\r\n * By default this is an empty method hook that you can override and use in your own custom pipelines.\r\n *\r\n * This method is called every time a **Game Object** asks the Pipeline Manager to use this pipeline,\r\n * even if the pipeline is already active.\r\n *\r\n * Unlike the `onActive` method, which is only called when the Pipeline Manager makes this pipeline\r\n * active, this hook is called for every Game Object that requests use of this pipeline, allowing you to\r\n * perform per-object set-up, such as loading shader uniform data.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#onBind\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} [gameObject] - The Game Object that invoked this pipeline, if any.\r\n */\r\n onBind: function ()\r\n {\r\n },\r\n\r\n /**\r\n * By default this is an empty method hook that you can override and use in your own custom pipelines.\r\n *\r\n * This method is called when the Pipeline Manager needs to rebind this pipeline. This happens after a\r\n * pipeline has been cleared, usually when passing control over to a 3rd party WebGL library, like Spine,\r\n * and then returing to Phaser again.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#onRebind\r\n * @since 3.50.0\r\n */\r\n onRebind: function ()\r\n {\r\n },\r\n\r\n /**\r\n * By default this is an empty method hook that you can override and use in your own custom pipelines.\r\n *\r\n * This method is called every time the `batchQuad` or `batchTri` methods are called. If this was\r\n * as a result of a Game Object, then the Game Object reference is passed to this hook too.\r\n *\r\n * This hook is called _after_ the quad (or tri) has been added to the batch, so you can safely\r\n * call 'flush' from within this.\r\n *\r\n * Note that Game Objects may call `batchQuad` or `batchTri` multiple times for a single draw,\r\n * for example the Graphics Game Object.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#onBatch\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} [gameObject] - The Game Object that invoked this pipeline, if any.\r\n */\r\n onBatch: function ()\r\n {\r\n },\r\n\r\n /**\r\n * By default this is an empty method hook that you can override and use in your own custom pipelines.\r\n *\r\n * This method is called immediately before a **Game Object** is about to add itself to the batch.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#onPreBatch\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} [gameObject] - The Game Object that invoked this pipeline, if any.\r\n */\r\n onPreBatch: function ()\r\n {\r\n },\r\n\r\n /**\r\n * By default this is an empty method hook that you can override and use in your own custom pipelines.\r\n *\r\n * This method is called immediately after a **Game Object** has been added to the batch.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#onPostBatch\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} [gameObject] - The Game Object that invoked this pipeline, if any.\r\n */\r\n onPostBatch: function ()\r\n {\r\n },\r\n\r\n /**\r\n * By default this is an empty method hook that you can override and use in your own custom pipelines.\r\n *\r\n * This method is called once per frame, right before anything has been rendered, but after the canvas\r\n * has been cleared. If this pipeline has a render target, it will also have been cleared by this point.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#onPreRender\r\n * @since 3.50.0\r\n */\r\n onPreRender: function ()\r\n {\r\n },\r\n\r\n /**\r\n * By default this is an empty method hook that you can override and use in your own custom pipelines.\r\n *\r\n * This method is called _once per frame_, by every Camera in a Scene that wants to render.\r\n *\r\n * It is called at the start of the rendering process, before anything has been drawn to the Camera.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#onRender\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene being rendered.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Scene Camera being rendered with.\r\n */\r\n onRender: function ()\r\n {\r\n },\r\n\r\n /**\r\n * By default this is an empty method hook that you can override and use in your own custom pipelines.\r\n *\r\n * This method is called _once per frame_, after all rendering has happened and snapshots have been taken.\r\n *\r\n * It is called at the very end of the rendering process, once all Cameras, for all Scenes, have\r\n * been rendered.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#onPostRender\r\n * @since 3.50.0\r\n */\r\n onPostRender: function ()\r\n {\r\n },\r\n\r\n /**\r\n * By default this is an empty method hook that you can override and use in your own custom pipelines.\r\n *\r\n * This method is called every time this pipeline is asked to flush its batch.\r\n *\r\n * It is called immediately before the `gl.bufferData` and `gl.drawArrays` calls are made, so you can\r\n * perform any final pre-render modifications. To apply changes post-render, see `onAfterFlush`.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#onBeforeFlush\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [isPostFlush=false] - Was this flush invoked as part of a post-process, or not?\r\n */\r\n onBeforeFlush: function ()\r\n {\r\n },\r\n\r\n /**\r\n * By default this is an empty method hook that you can override and use in your own custom pipelines.\r\n *\r\n * This method is called immediately after this pipeline has finished flushing its batch.\r\n *\r\n * It is called after the `gl.drawArrays` call.\r\n *\r\n * You can perform additional post-render effects, but be careful not to call `flush`\r\n * on this pipeline from within this method, or you'll cause an infinite loop.\r\n *\r\n * To apply changes pre-render, see `onBeforeFlush`.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#onAfterFlush\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [isPostFlush=false] - Was this flush invoked as part of a post-process, or not?\r\n */\r\n onAfterFlush: function ()\r\n {\r\n },\r\n\r\n /**\r\n * Adds a single vertex to the current vertex buffer and increments the\r\n * `vertexCount` property by 1.\r\n *\r\n * This method is called directly by `batchTri` and `batchQuad`.\r\n *\r\n * It does not perform any batch limit checking itself, so if you need to call\r\n * this method directly, do so in the same way that `batchQuad` does, for example.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#batchVert\r\n * @since 3.50.0\r\n *\r\n * @param {number} x - The vertex x position.\r\n * @param {number} y - The vertex y position.\r\n * @param {number} u - UV u value.\r\n * @param {number} v - UV v value.\r\n * @param {number} unit - Texture unit to which the texture needs to be bound.\r\n * @param {(number|boolean)} tintEffect - The tint effect for the shader to use.\r\n * @param {number} tint - The tint color value.\r\n */\r\n batchVert: function (x, y, u, v, unit, tintEffect, tint)\r\n {\r\n var vertexViewF32 = this.vertexViewF32;\r\n var vertexViewU32 = this.vertexViewU32;\r\n\r\n var vertexOffset = (this.vertexCount * this.currentShader.vertexComponentCount) - 1;\r\n\r\n vertexViewF32[++vertexOffset] = x;\r\n vertexViewF32[++vertexOffset] = y;\r\n vertexViewF32[++vertexOffset] = u;\r\n vertexViewF32[++vertexOffset] = v;\r\n vertexViewF32[++vertexOffset] = unit;\r\n vertexViewF32[++vertexOffset] = tintEffect;\r\n vertexViewU32[++vertexOffset] = tint;\r\n\r\n this.vertexCount++;\r\n\r\n this.currentBatch.count = (this.vertexCount - this.currentBatch.start);\r\n },\r\n\r\n /**\r\n * Adds the vertices data into the batch and flushes if full.\r\n *\r\n * Assumes 6 vertices in the following arrangement:\r\n *\r\n * ```\r\n * 0----3\r\n * |\\ B|\r\n * | \\ |\r\n * | \\ |\r\n * | A \\|\r\n * | \\\r\n * 1----2\r\n * ```\r\n *\r\n * Where tx0/ty0 = 0, tx1/ty1 = 1, tx2/ty2 = 2 and tx3/ty3 = 3\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#batchQuad\r\n * @since 3.50.0\r\n *\r\n * @param {(Phaser.GameObjects.GameObject|null)} gameObject - The Game Object, if any, drawing this quad.\r\n * @param {number} x0 - The top-left x position.\r\n * @param {number} y0 - The top-left y position.\r\n * @param {number} x1 - The bottom-left x position.\r\n * @param {number} y1 - The bottom-left y position.\r\n * @param {number} x2 - The bottom-right x position.\r\n * @param {number} y2 - The bottom-right y position.\r\n * @param {number} x3 - The top-right x position.\r\n * @param {number} y3 - The top-right y position.\r\n * @param {number} u0 - UV u0 value.\r\n * @param {number} v0 - UV v0 value.\r\n * @param {number} u1 - UV u1 value.\r\n * @param {number} v1 - UV v1 value.\r\n * @param {number} tintTL - The top-left tint color value.\r\n * @param {number} tintTR - The top-right tint color value.\r\n * @param {number} tintBL - The bottom-left tint color value.\r\n * @param {number} tintBR - The bottom-right tint color value.\r\n * @param {(number|boolean)} tintEffect - The tint effect for the shader to use.\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} [texture] - Texture that will be assigned to the current batch if a flush occurs.\r\n * @param {number} [unit=0] - Texture unit to which the texture needs to be bound.\r\n *\r\n * @return {boolean} `true` if this method caused the batch to flush, otherwise `false`.\r\n */\r\n batchQuad: function (gameObject, x0, y0, x1, y1, x2, y2, x3, y3, u0, v0, u1, v1, tintTL, tintTR, tintBL, tintBR, tintEffect, texture, unit)\r\n {\r\n if (unit === undefined) { unit = this.currentUnit; }\r\n\r\n var hasFlushed = false;\r\n\r\n if (this.shouldFlush(6))\r\n {\r\n this.flush();\r\n\r\n hasFlushed = true;\r\n }\r\n\r\n if (!this.currentBatch)\r\n {\r\n unit = this.setTexture2D(texture);\r\n }\r\n\r\n var vertexViewF32 = this.vertexViewF32;\r\n var vertexViewU32 = this.vertexViewU32;\r\n\r\n var vertexOffset = (this.vertexCount * this.currentShader.vertexComponentCount) - 1;\r\n\r\n vertexViewF32[++vertexOffset] = x0;\r\n vertexViewF32[++vertexOffset] = y0;\r\n vertexViewF32[++vertexOffset] = u0;\r\n vertexViewF32[++vertexOffset] = v0;\r\n vertexViewF32[++vertexOffset] = unit;\r\n vertexViewF32[++vertexOffset] = tintEffect;\r\n vertexViewU32[++vertexOffset] = tintTL;\r\n\r\n vertexViewF32[++vertexOffset] = x1;\r\n vertexViewF32[++vertexOffset] = y1;\r\n vertexViewF32[++vertexOffset] = u0;\r\n vertexViewF32[++vertexOffset] = v1;\r\n vertexViewF32[++vertexOffset] = unit;\r\n vertexViewF32[++vertexOffset] = tintEffect;\r\n vertexViewU32[++vertexOffset] = tintBL;\r\n\r\n vertexViewF32[++vertexOffset] = x2;\r\n vertexViewF32[++vertexOffset] = y2;\r\n vertexViewF32[++vertexOffset] = u1;\r\n vertexViewF32[++vertexOffset] = v1;\r\n vertexViewF32[++vertexOffset] = unit;\r\n vertexViewF32[++vertexOffset] = tintEffect;\r\n vertexViewU32[++vertexOffset] = tintBR;\r\n\r\n vertexViewF32[++vertexOffset] = x0;\r\n vertexViewF32[++vertexOffset] = y0;\r\n vertexViewF32[++vertexOffset] = u0;\r\n vertexViewF32[++vertexOffset] = v0;\r\n vertexViewF32[++vertexOffset] = unit;\r\n vertexViewF32[++vertexOffset] = tintEffect;\r\n vertexViewU32[++vertexOffset] = tintTL;\r\n\r\n vertexViewF32[++vertexOffset] = x2;\r\n vertexViewF32[++vertexOffset] = y2;\r\n vertexViewF32[++vertexOffset] = u1;\r\n vertexViewF32[++vertexOffset] = v1;\r\n vertexViewF32[++vertexOffset] = unit;\r\n vertexViewF32[++vertexOffset] = tintEffect;\r\n vertexViewU32[++vertexOffset] = tintBR;\r\n\r\n vertexViewF32[++vertexOffset] = x3;\r\n vertexViewF32[++vertexOffset] = y3;\r\n vertexViewF32[++vertexOffset] = u1;\r\n vertexViewF32[++vertexOffset] = v0;\r\n vertexViewF32[++vertexOffset] = unit;\r\n vertexViewF32[++vertexOffset] = tintEffect;\r\n vertexViewU32[++vertexOffset] = tintTR;\r\n\r\n this.vertexCount += 6;\r\n\r\n this.currentBatch.count = (this.vertexCount - this.currentBatch.start);\r\n\r\n this.onBatch(gameObject);\r\n\r\n return hasFlushed;\r\n },\r\n\r\n /**\r\n * Adds the vertices data into the batch and flushes if full.\r\n *\r\n * Assumes 3 vertices in the following arrangement:\r\n *\r\n * ```\r\n * 0\r\n * |\\\r\n * | \\\r\n * | \\\r\n * | \\\r\n * | \\\r\n * 1-----2\r\n * ```\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#batchTri\r\n * @since 3.50.0\r\n *\r\n * @param {(Phaser.GameObjects.GameObject|null)} gameObject - The Game Object, if any, drawing this quad.\r\n * @param {number} x1 - The bottom-left x position.\r\n * @param {number} y1 - The bottom-left y position.\r\n * @param {number} x2 - The bottom-right x position.\r\n * @param {number} y2 - The bottom-right y position.\r\n * @param {number} x3 - The top-right x position.\r\n * @param {number} y3 - The top-right y position.\r\n * @param {number} u0 - UV u0 value.\r\n * @param {number} v0 - UV v0 value.\r\n * @param {number} u1 - UV u1 value.\r\n * @param {number} v1 - UV v1 value.\r\n * @param {number} tintTL - The top-left tint color value.\r\n * @param {number} tintTR - The top-right tint color value.\r\n * @param {number} tintBL - The bottom-left tint color value.\r\n * @param {(number|boolean)} tintEffect - The tint effect for the shader to use.\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} [texture] - Texture that will be assigned to the current batch if a flush occurs.\r\n * @param {number} [unit=0] - Texture unit to which the texture needs to be bound.\r\n *\r\n * @return {boolean} `true` if this method caused the batch to flush, otherwise `false`.\r\n */\r\n batchTri: function (gameObject, x0, y0, x1, y1, x2, y2, u0, v0, u1, v1, tintTL, tintTR, tintBL, tintEffect, texture, unit)\r\n {\r\n if (unit === undefined) { unit = this.currentUnit; }\r\n\r\n var hasFlushed = false;\r\n\r\n if (this.shouldFlush(3))\r\n {\r\n this.flush();\r\n\r\n hasFlushed = true;\r\n }\r\n\r\n if (!this.currentBatch)\r\n {\r\n unit = this.setTexture2D(texture);\r\n }\r\n\r\n var vertexViewF32 = this.vertexViewF32;\r\n var vertexViewU32 = this.vertexViewU32;\r\n\r\n var vertexOffset = (this.vertexCount * this.currentShader.vertexComponentCount) - 1;\r\n\r\n vertexViewF32[++vertexOffset] = x0;\r\n vertexViewF32[++vertexOffset] = y0;\r\n vertexViewF32[++vertexOffset] = u0;\r\n vertexViewF32[++vertexOffset] = v0;\r\n vertexViewF32[++vertexOffset] = unit;\r\n vertexViewF32[++vertexOffset] = tintEffect;\r\n vertexViewU32[++vertexOffset] = tintTL;\r\n\r\n vertexViewF32[++vertexOffset] = x1;\r\n vertexViewF32[++vertexOffset] = y1;\r\n vertexViewF32[++vertexOffset] = u0;\r\n vertexViewF32[++vertexOffset] = v1;\r\n vertexViewF32[++vertexOffset] = unit;\r\n vertexViewF32[++vertexOffset] = tintEffect;\r\n vertexViewU32[++vertexOffset] = tintTR;\r\n\r\n vertexViewF32[++vertexOffset] = x2;\r\n vertexViewF32[++vertexOffset] = y2;\r\n vertexViewF32[++vertexOffset] = u1;\r\n vertexViewF32[++vertexOffset] = v1;\r\n vertexViewF32[++vertexOffset] = unit;\r\n vertexViewF32[++vertexOffset] = tintEffect;\r\n vertexViewU32[++vertexOffset] = tintBL;\r\n\r\n this.vertexCount += 3;\r\n\r\n this.currentBatch.count = (this.vertexCount - this.currentBatch.start);\r\n\r\n this.onBatch(gameObject);\r\n\r\n return hasFlushed;\r\n },\r\n\r\n /**\r\n * Pushes a filled rectangle into the vertex batch.\r\n *\r\n * The dimensions are run through `Math.floor` before the quad is generated.\r\n *\r\n * Rectangle has no transform values and isn't transformed into the local space.\r\n *\r\n * Used for directly batching untransformed rectangles, such as Camera background colors.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#drawFillRect\r\n * @since 3.50.0\r\n *\r\n * @param {number} x - Horizontal top left coordinate of the rectangle.\r\n * @param {number} y - Vertical top left coordinate of the rectangle.\r\n * @param {number} width - Width of the rectangle.\r\n * @param {number} height - Height of the rectangle.\r\n * @param {number} color - Color of the rectangle to draw.\r\n * @param {number} alpha - Alpha value of the rectangle to draw.\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} [texture] - texture that will be assigned to the current batch if a flush occurs.\r\n * @param {boolean} [flipUV=true] - Flip the vertical UV coordinates of the texture before rendering?\r\n */\r\n drawFillRect: function (x, y, width, height, color, alpha, texture, flipUV)\r\n {\r\n if (texture === undefined) { texture = this.renderer.whiteTexture; }\r\n if (flipUV === undefined) { flipUV = true; }\r\n\r\n x = Math.floor(x);\r\n y = Math.floor(y);\r\n\r\n var xw = Math.floor(x + width);\r\n var yh = Math.floor(y + height);\r\n\r\n var unit = this.setTexture2D(texture);\r\n\r\n var tint = Utils.getTintAppendFloatAlphaAndSwap(color, alpha);\r\n\r\n var u0 = 0;\r\n var v0 = 0;\r\n var u1 = 1;\r\n var v1 = 1;\r\n\r\n if (flipUV)\r\n {\r\n v0 = 1;\r\n v1 = 0;\r\n }\r\n\r\n this.batchQuad(null, x, y, x, yh, xw, yh, xw, y, u0, v0, u1, v1, tint, tint, tint, tint, 0, texture, unit);\r\n },\r\n\r\n /**\r\n * Sets the texture to be bound to the next available texture unit and returns\r\n * the unit id.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#setTexture2D\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} [texture] - Texture that will be assigned to the current batch. If not given uses `whiteTexture`.\r\n *\r\n * @return {number} The assigned texture unit.\r\n */\r\n setTexture2D: function (texture)\r\n {\r\n if (texture === undefined) { texture = this.renderer.whiteTexture; }\r\n\r\n return this.pushBatch(texture);\r\n },\r\n\r\n /**\r\n * Activates the given WebGL Texture and binds it to the requested texture slot.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#bindTexture\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} [target] - Texture to activate and bind.\r\n * @param {number} [unit=0] - The WebGL texture ID to activate. Defaults to `gl.TEXTURE0`.\r\n *\r\n * @return {this} This WebGL Pipeline instance.\r\n */\r\n bindTexture: function (texture, unit)\r\n {\r\n if (unit === undefined) { unit = 0; }\r\n\r\n var gl = this.gl;\r\n\r\n gl.activeTexture(gl.TEXTURE0 + unit);\r\n\r\n gl.bindTexture(gl.TEXTURE_2D, texture.webGLTexture);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Activates the given Render Target texture and binds it to the\r\n * requested WebGL texture slot.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#bindRenderTarget\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} [target] - The Render Target to activate and bind.\r\n * @param {number} [unit=0] - The WebGL texture ID to activate. Defaults to `gl.TEXTURE0`.\r\n *\r\n * @return {this} This WebGL Pipeline instance.\r\n */\r\n bindRenderTarget: function (target, unit)\r\n {\r\n return this.bindTexture(target.texture, unit);\r\n },\r\n\r\n /**\r\n * Sets the current duration into a 1f uniform value based on the given name.\r\n *\r\n * This can be used for mapping time uniform values, such as `iTime`.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#setTime\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [shader] - The shader to set the value on. If not given, the `currentShader` is used.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n setTime: function (name, shader)\r\n {\r\n this.set1f(name, this.game.loop.getDuration(), shader);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a boolean uniform value based on the given name on the currently set shader.\r\n *\r\n * The current shader is bound, before the uniform is set, making it active within the\r\n * WebGLRenderer. This means you can safely call this method from a location such as\r\n * a Scene `create` or `update` method. However, when working within a Shader file\r\n * directly, use the `WebGLShader` method equivalent instead, to avoid the program\r\n * being set.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#setBoolean\r\n * @since 3.60.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {boolean} value - The new value of the `boolean` uniform.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [shader] - The shader to set the value on. If not given, the `currentShader` is used.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n setBoolean: function (name, value, shader)\r\n {\r\n if (shader === undefined) { shader = this.currentShader; }\r\n\r\n shader.setBoolean(name, value);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a 1f uniform value based on the given name on the currently set shader.\r\n *\r\n * The current shader is bound, before the uniform is set, making it active within the\r\n * WebGLRenderer. This means you can safely call this method from a location such as\r\n * a Scene `create` or `update` method. However, when working within a Shader file\r\n * directly, use the `WebGLShader` method equivalent instead, to avoid the program\r\n * being set.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#set1f\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number} x - The new value of the `float` uniform.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [shader] - The shader to set the value on. If not given, the `currentShader` is used.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n set1f: function (name, x, shader)\r\n {\r\n if (shader === undefined) { shader = this.currentShader; }\r\n\r\n shader.set1f(name, x);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a 2f uniform value based on the given name on the currently set shader.\r\n *\r\n * The current shader is bound, before the uniform is set, making it active within the\r\n * WebGLRenderer. This means you can safely call this method from a location such as\r\n * a Scene `create` or `update` method. However, when working within a Shader file\r\n * directly, use the `WebGLShader` method equivalent instead, to avoid the program\r\n * being set.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#set2f\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number} x - The new X component of the `vec2` uniform.\r\n * @param {number} y - The new Y component of the `vec2` uniform.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [shader] - The shader to set the value on. If not given, the `currentShader` is used.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n set2f: function (name, x, y, shader)\r\n {\r\n if (shader === undefined) { shader = this.currentShader; }\r\n\r\n shader.set2f(name, x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a 3f uniform value based on the given name on the currently set shader.\r\n *\r\n * The current shader is bound, before the uniform is set, making it active within the\r\n * WebGLRenderer. This means you can safely call this method from a location such as\r\n * a Scene `create` or `update` method. However, when working within a Shader file\r\n * directly, use the `WebGLShader` method equivalent instead, to avoid the program\r\n * being set.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#set3f\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number} x - The new X component of the `vec3` uniform.\r\n * @param {number} y - The new Y component of the `vec3` uniform.\r\n * @param {number} z - The new Z component of the `vec3` uniform.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [shader] - The shader to set the value on. If not given, the `currentShader` is used.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n set3f: function (name, x, y, z, shader)\r\n {\r\n if (shader === undefined) { shader = this.currentShader; }\r\n\r\n shader.set3f(name, x, y, z);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a 4f uniform value based on the given name on the currently set shader.\r\n *\r\n * The current shader is bound, before the uniform is set, making it active within the\r\n * WebGLRenderer. This means you can safely call this method from a location such as\r\n * a Scene `create` or `update` method. However, when working within a Shader file\r\n * directly, use the `WebGLShader` method equivalent instead, to avoid the program\r\n * being set.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#set4f\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number} x - X component of the uniform\r\n * @param {number} y - Y component of the uniform\r\n * @param {number} z - Z component of the uniform\r\n * @param {number} w - W component of the uniform\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [shader] - The shader to set the value on. If not given, the `currentShader` is used.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n set4f: function (name, x, y, z, w, shader)\r\n {\r\n if (shader === undefined) { shader = this.currentShader; }\r\n\r\n shader.set4f(name, x, y, z, w);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a 1fv uniform value based on the given name on the currently set shader.\r\n *\r\n * The current shader is bound, before the uniform is set, making it active within the\r\n * WebGLRenderer. This means you can safely call this method from a location such as\r\n * a Scene `create` or `update` method. However, when working within a Shader file\r\n * directly, use the `WebGLShader` method equivalent instead, to avoid the program\r\n * being set.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#set1fv\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number[]|Float32Array} arr - The new value to be used for the uniform variable.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [shader] - The shader to set the value on. If not given, the `currentShader` is used.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n set1fv: function (name, arr, shader)\r\n {\r\n if (shader === undefined) { shader = this.currentShader; }\r\n\r\n shader.set1fv(name, arr);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a 2fv uniform value based on the given name on the currently set shader.\r\n *\r\n * The current shader is bound, before the uniform is set, making it active within the\r\n * WebGLRenderer. This means you can safely call this method from a location such as\r\n * a Scene `create` or `update` method. However, when working within a Shader file\r\n * directly, use the `WebGLShader` method equivalent instead, to avoid the program\r\n * being set.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#set2fv\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number[]|Float32Array} arr - The new value to be used for the uniform variable.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [shader] - The shader to set the value on. If not given, the `currentShader` is used.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n set2fv: function (name, arr, shader)\r\n {\r\n if (shader === undefined) { shader = this.currentShader; }\r\n\r\n shader.set2fv(name, arr);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a 3fv uniform value based on the given name on the currently set shader.\r\n *\r\n * The current shader is bound, before the uniform is set, making it active within the\r\n * WebGLRenderer. This means you can safely call this method from a location such as\r\n * a Scene `create` or `update` method. However, when working within a Shader file\r\n * directly, use the `WebGLShader` method equivalent instead, to avoid the program\r\n * being set.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#set3fv\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number[]|Float32Array} arr - The new value to be used for the uniform variable.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [shader] - The shader to set the value on. If not given, the `currentShader` is used.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n set3fv: function (name, arr, shader)\r\n {\r\n if (shader === undefined) { shader = this.currentShader; }\r\n\r\n shader.set3fv(name, arr);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a 4fv uniform value based on the given name on the currently set shader.\r\n *\r\n * The current shader is bound, before the uniform is set, making it active within the\r\n * WebGLRenderer. This means you can safely call this method from a location such as\r\n * a Scene `create` or `update` method. However, when working within a Shader file\r\n * directly, use the `WebGLShader` method equivalent instead, to avoid the program\r\n * being set.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#set4fv\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number[]|Float32Array} arr - The new value to be used for the uniform variable.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [shader] - The shader to set the value on. If not given, the `currentShader` is used.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n set4fv: function (name, arr, shader)\r\n {\r\n if (shader === undefined) { shader = this.currentShader; }\r\n\r\n shader.set4fv(name, arr);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a 1iv uniform value based on the given name on the currently set shader.\r\n *\r\n * The current shader is bound, before the uniform is set, making it active within the\r\n * WebGLRenderer. This means you can safely call this method from a location such as\r\n * a Scene `create` or `update` method. However, when working within a Shader file\r\n * directly, use the `WebGLShader` method equivalent instead, to avoid the program\r\n * being set.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#set1iv\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number[]|Float32Array} arr - The new value to be used for the uniform variable.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [shader] - The shader to set the value on. If not given, the `currentShader` is used.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n set1iv: function (name, arr, shader)\r\n {\r\n if (shader === undefined) { shader = this.currentShader; }\r\n\r\n shader.set1iv(name, arr);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a 2iv uniform value based on the given name on the currently set shader.\r\n *\r\n * The current shader is bound, before the uniform is set, making it active within the\r\n * WebGLRenderer. This means you can safely call this method from a location such as\r\n * a Scene `create` or `update` method. However, when working within a Shader file\r\n * directly, use the `WebGLShader` method equivalent instead, to avoid the program\r\n * being set.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#set2iv\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number[]|Float32Array} arr - The new value to be used for the uniform variable.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [shader] - The shader to set the value on. If not given, the `currentShader` is used.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n set2iv: function (name, arr, shader)\r\n {\r\n if (shader === undefined) { shader = this.currentShader; }\r\n\r\n shader.set2iv(name, arr);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a 3iv uniform value based on the given name on the currently set shader.\r\n *\r\n * The current shader is bound, before the uniform is set, making it active within the\r\n * WebGLRenderer. This means you can safely call this method from a location such as\r\n * a Scene `create` or `update` method. However, when working within a Shader file\r\n * directly, use the `WebGLShader` method equivalent instead, to avoid the program\r\n * being set.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#set3iv\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number[]|Float32Array} arr - The new value to be used for the uniform variable.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [shader] - The shader to set the value on. If not given, the `currentShader` is used.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n set3iv: function (name, arr, shader)\r\n {\r\n if (shader === undefined) { shader = this.currentShader; }\r\n\r\n shader.set3iv(name, arr);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a 4iv uniform value based on the given name on the currently set shader.\r\n *\r\n * The current shader is bound, before the uniform is set, making it active within the\r\n * WebGLRenderer. This means you can safely call this method from a location such as\r\n * a Scene `create` or `update` method. However, when working within a Shader file\r\n * directly, use the `WebGLShader` method equivalent instead, to avoid the program\r\n * being set.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#set4iv\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number[]|Float32Array} arr - The new value to be used for the uniform variable.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [shader] - The shader to set the value on. If not given, the `currentShader` is used.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n set4iv: function (name, arr, shader)\r\n {\r\n if (shader === undefined) { shader = this.currentShader; }\r\n\r\n shader.set4iv(name, arr);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a 1i uniform value based on the given name on the currently set shader.\r\n *\r\n * The current shader is bound, before the uniform is set, making it active within the\r\n * WebGLRenderer. This means you can safely call this method from a location such as\r\n * a Scene `create` or `update` method. However, when working within a Shader file\r\n * directly, use the `WebGLShader` method equivalent instead, to avoid the program\r\n * being set.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#set1i\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number} x - The new value of the `int` uniform.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [shader] - The shader to set the value on. If not given, the `currentShader` is used.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n set1i: function (name, x, shader)\r\n {\r\n if (shader === undefined) { shader = this.currentShader; }\r\n\r\n shader.set1i(name, x);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a 2i uniform value based on the given name on the currently set shader.\r\n *\r\n * The current shader is bound, before the uniform is set, making it active within the\r\n * WebGLRenderer. This means you can safely call this method from a location such as\r\n * a Scene `create` or `update` method. However, when working within a Shader file\r\n * directly, use the `WebGLShader` method equivalent instead, to avoid the program\r\n * being set.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#set2i\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number} x - The new X component of the `ivec2` uniform.\r\n * @param {number} y - The new Y component of the `ivec2` uniform.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [shader] - The shader to set the value on. If not given, the `currentShader` is used.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n set2i: function (name, x, y, shader)\r\n {\r\n if (shader === undefined) { shader = this.currentShader; }\r\n\r\n shader.set2i(name, x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a 3i uniform value based on the given name on the currently set shader.\r\n *\r\n * The current shader is bound, before the uniform is set, making it active within the\r\n * WebGLRenderer. This means you can safely call this method from a location such as\r\n * a Scene `create` or `update` method. However, when working within a Shader file\r\n * directly, use the `WebGLShader` method equivalent instead, to avoid the program\r\n * being set.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#set3i\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number} x - The new X component of the `ivec3` uniform.\r\n * @param {number} y - The new Y component of the `ivec3` uniform.\r\n * @param {number} z - The new Z component of the `ivec3` uniform.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [shader] - The shader to set the value on. If not given, the `currentShader` is used.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n set3i: function (name, x, y, z, shader)\r\n {\r\n if (shader === undefined) { shader = this.currentShader; }\r\n\r\n shader.set3i(name, x, y, z);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a 4i uniform value based on the given name on the currently set shader.\r\n *\r\n * The current shader is bound, before the uniform is set, making it active within the\r\n * WebGLRenderer. This means you can safely call this method from a location such as\r\n * a Scene `create` or `update` method. However, when working within a Shader file\r\n * directly, use the `WebGLShader` method equivalent instead, to avoid the program\r\n * being set.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#set4i\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number} x - X component of the uniform.\r\n * @param {number} y - Y component of the uniform.\r\n * @param {number} z - Z component of the uniform.\r\n * @param {number} w - W component of the uniform.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [shader] - The shader to set the value on. If not given, the `currentShader` is used.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n set4i: function (name, x, y, z, w, shader)\r\n {\r\n if (shader === undefined) { shader = this.currentShader; }\r\n\r\n shader.set4i(name, x, y, z, w);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a matrix 2fv uniform value based on the given name on the currently set shader.\r\n *\r\n * The current shader is bound, before the uniform is set, making it active within the\r\n * WebGLRenderer. This means you can safely call this method from a location such as\r\n * a Scene `create` or `update` method. However, when working within a Shader file\r\n * directly, use the `WebGLShader` method equivalent instead, to avoid the program\r\n * being set.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#setMatrix2fv\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {boolean} transpose - Whether to transpose the matrix. Should be `false`.\r\n * @param {number[]|Float32Array} matrix - The new values for the `mat2` uniform.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [shader] - The shader to set the value on. If not given, the `currentShader` is used.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n setMatrix2fv: function (name, transpose, matrix, shader)\r\n {\r\n if (shader === undefined) { shader = this.currentShader; }\r\n\r\n shader.setMatrix2fv(name, transpose, matrix);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a matrix 3fv uniform value based on the given name on the currently set shader.\r\n *\r\n * The current shader is bound, before the uniform is set, making it active within the\r\n * WebGLRenderer. This means you can safely call this method from a location such as\r\n * a Scene `create` or `update` method. However, when working within a Shader file\r\n * directly, use the `WebGLShader` method equivalent instead, to avoid the program\r\n * being set.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#setMatrix3fv\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {boolean} transpose - Whether to transpose the matrix. Should be `false`.\r\n * @param {Float32Array} matrix - The new values for the `mat3` uniform.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [shader] - The shader to set the value on. If not given, the `currentShader` is used.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n setMatrix3fv: function (name, transpose, matrix, shader)\r\n {\r\n if (shader === undefined) { shader = this.currentShader; }\r\n\r\n shader.setMatrix3fv(name, transpose, matrix);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a matrix 4fv uniform value based on the given name on the currently set shader.\r\n *\r\n * The current shader is bound, before the uniform is set, making it active within the\r\n * WebGLRenderer. This means you can safely call this method from a location such as\r\n * a Scene `create` or `update` method. However, when working within a Shader file\r\n * directly, use the `WebGLShader` method equivalent instead, to avoid the program\r\n * being set.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#setMatrix4fv\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {boolean} transpose - Whether to transpose the matrix. Should be `false`.\r\n * @param {Float32Array} matrix - The matrix data. If using a Matrix4 this should be the `Matrix4.val` property.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [shader] - The shader to set the value on. If not given, the `currentShader` is used.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n setMatrix4fv: function (name, transpose, matrix, shader)\r\n {\r\n if (shader === undefined) { shader = this.currentShader; }\r\n\r\n shader.setMatrix4fv(name, transpose, matrix);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Destroys all shader instances, removes all object references and nulls all external references.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLPipeline#destroy\r\n * @fires Phaser.Renderer.WebGL.Pipelines.Events#DESTROY\r\n * @since 3.0.0\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n destroy: function ()\r\n {\r\n this.emit(Events.DESTROY, this);\r\n\r\n var i;\r\n\r\n var shaders = this.shaders;\r\n\r\n for (i = 0; i < shaders.length; i++)\r\n {\r\n shaders[i].destroy();\r\n }\r\n\r\n var targets = this.renderTargets;\r\n\r\n for (i = 0; i < targets.length; i++)\r\n {\r\n targets[i].destroy();\r\n }\r\n\r\n var renderer = this.renderer;\r\n\r\n renderer.deleteBuffer(this.vertexBuffer);\r\n\r\n renderer.off(RendererEvents.RESIZE, this.resize, this);\r\n renderer.off(RendererEvents.PRE_RENDER, this.onPreRender, this);\r\n renderer.off(RendererEvents.RENDER, this.onRender, this);\r\n renderer.off(RendererEvents.POST_RENDER, this.onPostRender, this);\r\n\r\n this.removeAllListeners();\r\n\r\n this.game = null;\r\n this.renderer = null;\r\n this.manager = null;\r\n this.gl = null;\r\n this.view = null;\r\n this.shaders = null;\r\n this.renderTargets = null;\r\n this.bytes = null;\r\n this.vertexViewF32 = null;\r\n this.vertexViewU32 = null;\r\n this.vertexData = null;\r\n this.vertexBuffer = null;\r\n this.currentShader = null;\r\n this.currentRenderTarget = null;\r\n this.activeTextures = null;\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = WebGLPipeline;\r\n\n\n/***/ }),\n\n/***/ 74797:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Felipe Alfonso <@bitnenfer>\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar ArrayEach = __webpack_require__(95428);\r\nvar ArrayRemove = __webpack_require__(72905);\r\nvar CameraEvents = __webpack_require__(19715);\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(8054);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Events = __webpack_require__(92503);\r\nvar IsSizePowerOfTwo = __webpack_require__(50030);\r\nvar Matrix4 = __webpack_require__(37867);\r\nvar NOOP = __webpack_require__(29747);\r\nvar PipelineManager = __webpack_require__(7530);\r\nvar RenderTarget = __webpack_require__(32302);\r\nvar ScaleEvents = __webpack_require__(97480);\r\nvar TextureEvents = __webpack_require__(69442);\r\nvar Utils = __webpack_require__(70554);\r\nvar WebGLSnapshot = __webpack_require__(88815);\r\nvar WebGLBufferWrapper = __webpack_require__(26128);\r\nvar WebGLProgramWrapper = __webpack_require__(1482);\r\nvar WebGLTextureWrapper = __webpack_require__(82751);\r\nvar WebGLFramebufferWrapper = __webpack_require__(84387);\r\nvar WebGLAttribLocationWrapper = __webpack_require__(93567);\r\nvar WebGLUniformLocationWrapper = __webpack_require__(57183);\r\n\r\nvar DEBUG = false;\r\n\r\nif (false)\r\n{ var SPECTOR; }\r\n\r\n/**\r\n * @callback WebGLContextCallback\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - The WebGL Renderer which owns the context.\r\n */\r\n\r\n/**\r\n * @classdesc\r\n * WebGLRenderer is a class that contains the needed functionality to keep the\r\n * WebGLRenderingContext state clean. The main idea of the WebGLRenderer is to keep track of\r\n * any context change that happens for WebGL rendering inside of Phaser. This means\r\n * if raw webgl functions are called outside the WebGLRenderer of the Phaser WebGL\r\n * rendering ecosystem they might pollute the current WebGLRenderingContext state producing\r\n * unexpected behavior. It's recommended that WebGL interaction is done through\r\n * WebGLRenderer and/or WebGLPipeline.\r\n *\r\n * @class WebGLRenderer\r\n * @extends Phaser.Events.EventEmitter\r\n * @memberof Phaser.Renderer.WebGL\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Game} game - The Game instance which owns this WebGL Renderer.\r\n */\r\nvar WebGLRenderer = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function WebGLRenderer (game)\r\n {\r\n EventEmitter.call(this);\r\n\r\n var gameConfig = game.config;\r\n\r\n var contextCreationConfig = {\r\n alpha: gameConfig.transparent,\r\n desynchronized: gameConfig.desynchronized,\r\n depth: true,\r\n antialias: gameConfig.antialiasGL,\r\n premultipliedAlpha: gameConfig.premultipliedAlpha,\r\n stencil: true,\r\n failIfMajorPerformanceCaveat: gameConfig.failIfMajorPerformanceCaveat,\r\n powerPreference: gameConfig.powerPreference,\r\n preserveDrawingBuffer: gameConfig.preserveDrawingBuffer,\r\n willReadFrequently: false\r\n };\r\n\r\n /**\r\n * The local configuration settings of this WebGL Renderer.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#config\r\n * @type {object}\r\n * @since 3.0.0\r\n */\r\n this.config = {\r\n clearBeforeRender: gameConfig.clearBeforeRender,\r\n antialias: gameConfig.antialias,\r\n backgroundColor: gameConfig.backgroundColor,\r\n contextCreation: contextCreationConfig,\r\n roundPixels: gameConfig.roundPixels,\r\n maxTextures: gameConfig.maxTextures,\r\n maxTextureSize: gameConfig.maxTextureSize,\r\n batchSize: gameConfig.batchSize,\r\n maxLights: gameConfig.maxLights,\r\n mipmapFilter: gameConfig.mipmapFilter\r\n };\r\n\r\n /**\r\n * The Game instance which owns this WebGL Renderer.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#game\r\n * @type {Phaser.Game}\r\n * @since 3.0.0\r\n */\r\n this.game = game;\r\n\r\n /**\r\n * A constant which allows the renderer to be easily identified as a WebGL Renderer.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#type\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.type = CONST.WEBGL;\r\n\r\n /**\r\n * An instance of the Pipeline Manager class, that handles all WebGL Pipelines.\r\n *\r\n * Use this to manage all of your interactions with pipelines, such as adding, getting,\r\n * setting and rendering them.\r\n *\r\n * The Pipeline Manager class is created in the `init` method and then populated\r\n * with pipelines during the `boot` method.\r\n *\r\n * Prior to Phaser v3.50.0 this was just a plain JavaScript object, not a class.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#pipelines\r\n * @type {Phaser.Renderer.WebGL.PipelineManager}\r\n * @since 3.50.0\r\n */\r\n this.pipelines = null;\r\n\r\n /**\r\n * The width of the canvas being rendered to.\r\n * This is populated in the onResize event handler.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#width\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.width = 0;\r\n\r\n /**\r\n * The height of the canvas being rendered to.\r\n * This is populated in the onResize event handler.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#height\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.height = 0;\r\n\r\n /**\r\n * The canvas which this WebGL Renderer draws to.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#canvas\r\n * @type {HTMLCanvasElement}\r\n * @since 3.0.0\r\n */\r\n this.canvas = game.canvas;\r\n\r\n /**\r\n * An array of blend modes supported by the WebGL Renderer.\r\n *\r\n * This array includes the default blend modes as well as any custom blend modes added through {@link #addBlendMode}.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#blendModes\r\n * @type {array}\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this.blendModes = [];\r\n\r\n /**\r\n * This property is set to `true` if the WebGL context of the renderer is lost.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#contextLost\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.contextLost = false;\r\n\r\n /**\r\n * Details about the currently scheduled snapshot.\r\n *\r\n * If a non-null `callback` is set in this object, a snapshot of the canvas will be taken after the current frame is fully rendered.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#snapshotState\r\n * @type {Phaser.Types.Renderer.Snapshot.SnapshotState}\r\n * @since 3.0.0\r\n */\r\n this.snapshotState = {\r\n x: 0,\r\n y: 0,\r\n width: 1,\r\n height: 1,\r\n getPixel: false,\r\n callback: null,\r\n type: 'image/png',\r\n encoder: 0.92,\r\n isFramebuffer: false,\r\n bufferWidth: 0,\r\n bufferHeight: 0\r\n };\r\n\r\n /**\r\n * The maximum number of textures the GPU can handle. The minimum under the WebGL1 spec is 8.\r\n * This is set via the Game Config `maxTextures` property and should never be changed after boot.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#maxTextures\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.maxTextures = 0;\r\n\r\n /**\r\n * An array of the available WebGL texture units, used to populate the uSampler uniforms.\r\n *\r\n * This array is populated during the init phase and should never be changed after boot.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#textureIndexes\r\n * @type {array}\r\n * @since 3.50.0\r\n */\r\n this.textureIndexes;\r\n\r\n /**\r\n * A list of all WebGLBufferWrappers that have been created by this renderer.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#glBufferWrappers\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLBufferWrapper[]}\r\n * @since 3.80.0\r\n */\r\n this.glBufferWrappers = [];\r\n\r\n /**\r\n * A list of all WebGLProgramWrappers that have been created by this renderer.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#glProgramWrappers\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLProgramWrapper[]}\r\n * @since 3.80.0\r\n */\r\n this.glProgramWrappers = [];\r\n\r\n /**\r\n * A list of all WebGLTextureWrappers that have been created by this renderer.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#glTextureWrappers\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper[]}\r\n * @since 3.80.0\r\n */\r\n this.glTextureWrappers = [];\r\n\r\n /**\r\n * A list of all WebGLFramebufferWrappers that have been created by this renderer.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#glFramebufferWrappers\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLFramebufferWrapper[]}\r\n * @since 3.80.0\r\n */\r\n this.glFramebufferWrappers = [];\r\n\r\n /**\r\n * A list of all WebGLAttribLocationWrappers that have been created by this renderer.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#glAttribLocationWrappers\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLAttribLocationWrapper[]}\r\n * @since 3.80.0\r\n */\r\n this.glAttribLocationWrappers = [];\r\n\r\n /**\r\n * A list of all WebGLUniformLocationWrappers that have been created by this renderer.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#glUniformLocationWrappers\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLUniformLocationWrapper[]}\r\n * @since 3.80.0\r\n */\r\n this.glUniformLocationWrappers = [];\r\n\r\n /**\r\n * The currently bound framebuffer in use.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#currentFramebuffer\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLFramebufferWrapper}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.currentFramebuffer = null;\r\n\r\n /**\r\n * A stack into which the frame buffer objects are pushed and popped.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#fboStack\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLFramebufferWrapper[]}\r\n * @since 3.50.0\r\n */\r\n this.fboStack = [];\r\n\r\n /**\r\n * Current WebGLProgram in use.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#currentProgram\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLProgramWrapper}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.currentProgram = null;\r\n\r\n /**\r\n * Current blend mode in use\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#currentBlendMode\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.currentBlendMode = Infinity;\r\n\r\n /**\r\n * Indicates if the the scissor state is enabled in WebGLRenderingContext\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#currentScissorEnabled\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.currentScissorEnabled = false;\r\n\r\n /**\r\n * Stores the current scissor data\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#currentScissor\r\n * @type {Uint32Array}\r\n * @since 3.0.0\r\n */\r\n this.currentScissor = null;\r\n\r\n /**\r\n * Stack of scissor data\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#scissorStack\r\n * @type {Uint32Array}\r\n * @since 3.0.0\r\n */\r\n this.scissorStack = [];\r\n\r\n /**\r\n * The handler to invoke when the context is lost.\r\n * This should not be changed and is set in the init method.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#contextLostHandler\r\n * @type {function}\r\n * @since 3.19.0\r\n */\r\n this.contextLostHandler = NOOP;\r\n\r\n /**\r\n * The handler to invoke when the context is restored.\r\n * This should not be changed and is set in the init method.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#contextRestoredHandler\r\n * @type {function}\r\n * @since 3.19.0\r\n */\r\n this.contextRestoredHandler = NOOP;\r\n\r\n /**\r\n * The previous contextLostHandler that was in use.\r\n * This is set when `setContextHandlers` is called.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#previousContextLostHandler\r\n * @type {function}\r\n * @since 3.19.0\r\n */\r\n this.previousContextLostHandler = NOOP;\r\n\r\n /**\r\n * The previous contextRestoredHandler that was in use.\r\n * This is set when `setContextHandlers` is called.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#previousContextRestoredHandler\r\n * @type {function}\r\n * @since 3.19.0\r\n */\r\n this.previousContextRestoredHandler = NOOP;\r\n\r\n /**\r\n * The underlying WebGL context of the renderer.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#gl\r\n * @type {WebGLRenderingContext}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.gl = null;\r\n\r\n /**\r\n * Array of strings that indicate which WebGL extensions are supported by the browser.\r\n * This is populated in the `setExtensions` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#supportedExtensions\r\n * @type {string[]}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.supportedExtensions = null;\r\n\r\n /**\r\n * If the browser supports the `ANGLE_instanced_arrays` extension, this property will hold\r\n * a reference to the glExtension for it.\r\n * \r\n * This is populated in the `setExtensions` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#instancedArraysExtension\r\n * @type {ANGLE_instanced_arrays}\r\n * @default null\r\n * @since 3.50.0\r\n */\r\n this.instancedArraysExtension = null;\r\n\r\n /**\r\n * If the browser supports the `OES_vertex_array_object` extension, this property will hold\r\n * a reference to the glExtension for it.\r\n * \r\n * This is populated in the `setExtensions` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#vaoExtension\r\n * @type {OES_vertex_array_object}\r\n * @default null\r\n * @since 3.50.0\r\n */\r\n this.vaoExtension = null;\r\n\r\n /**\r\n * The WebGL Extensions loaded into the current context.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#extensions\r\n * @type {object}\r\n * @default {}\r\n * @since 3.0.0\r\n */\r\n this.extensions = {};\r\n\r\n /**\r\n * Stores the current WebGL component formats for further use.\r\n *\r\n * This array is populated in the `init` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#glFormats\r\n * @type {array}\r\n * @since 3.2.0\r\n */\r\n this.glFormats;\r\n\r\n /**\r\n * Stores the WebGL texture compression formats that this device and browser supports.\r\n *\r\n * Support for using compressed texture formats was added in Phaser version 3.60.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#compression\r\n * @type {Phaser.Types.Renderer.WebGL.WebGLTextureCompression}\r\n * @since 3.8.0\r\n */\r\n this.compression;\r\n\r\n /**\r\n * Cached drawing buffer height to reduce gl calls.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#drawingBufferHeight\r\n * @type {number}\r\n * @readonly\r\n * @since 3.11.0\r\n */\r\n this.drawingBufferHeight = 0;\r\n\r\n /**\r\n * A blank 32x32 transparent texture, as used by the Graphics system where needed.\r\n * This is set in the `boot` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#blankTexture\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper}\r\n * @readonly\r\n * @since 3.12.0\r\n */\r\n this.blankTexture = null;\r\n\r\n /**\r\n * A blank 1x1 #7f7fff texture, a flat normal map,\r\n * as used by the Graphics system where needed.\r\n * This is set in the `boot` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#normalTexture\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper}\r\n * @readonly\r\n * @since 3.80.0\r\n */\r\n this.normalTexture = null;\r\n\r\n /**\r\n * A pure white 4x4 texture, as used by the Graphics system where needed.\r\n * This is set in the `boot` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#whiteTexture\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper}\r\n * @readonly\r\n * @since 3.50.0\r\n */\r\n this.whiteTexture = null;\r\n\r\n /**\r\n * The total number of masks currently stacked.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#maskCount\r\n * @type {number}\r\n * @since 3.17.0\r\n */\r\n this.maskCount = 0;\r\n\r\n /**\r\n * The mask stack.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#maskStack\r\n * @type {Phaser.Display.Masks.GeometryMask[]}\r\n * @since 3.17.0\r\n */\r\n this.maskStack = [];\r\n\r\n /**\r\n * Internal property that tracks the currently set mask.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#currentMask\r\n * @type {any}\r\n * @since 3.17.0\r\n */\r\n this.currentMask = { mask: null, camera: null };\r\n\r\n /**\r\n * Internal property that tracks the currently set camera mask.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#currentCameraMask\r\n * @type {any}\r\n * @since 3.17.0\r\n */\r\n this.currentCameraMask = { mask: null, camera: null };\r\n\r\n /**\r\n * Internal gl function mapping for uniform look-up.\r\n * https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#glFuncMap\r\n * @type {any}\r\n * @since 3.17.0\r\n */\r\n this.glFuncMap = null;\r\n\r\n /**\r\n * The `type` of the Game Object being currently rendered.\r\n * This can be used by advanced render functions for batching look-ahead.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#currentType\r\n * @type {string}\r\n * @since 3.19.0\r\n */\r\n this.currentType = '';\r\n\r\n /**\r\n * Is the `type` of the Game Object being currently rendered different than the\r\n * type of the object before it in the display list? I.e. it's a 'new' type.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#newType\r\n * @type {boolean}\r\n * @since 3.19.0\r\n */\r\n this.newType = false;\r\n\r\n /**\r\n * Does the `type` of the next Game Object in the display list match that\r\n * of the object being currently rendered?\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#nextTypeMatch\r\n * @type {boolean}\r\n * @since 3.19.0\r\n */\r\n this.nextTypeMatch = false;\r\n\r\n /**\r\n * Is the Game Object being currently rendered the final one in the list?\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#finalType\r\n * @type {boolean}\r\n * @since 3.50.0\r\n */\r\n this.finalType = false;\r\n\r\n /**\r\n * The mipmap magFilter to be used when creating textures.\r\n *\r\n * You can specify this as a string in the game config, i.e.:\r\n *\r\n * `render: { mipmapFilter: 'NEAREST_MIPMAP_LINEAR' }`\r\n *\r\n * The 6 options for WebGL1 are, in order from least to most computationally expensive:\r\n *\r\n * NEAREST (for pixel art)\r\n * LINEAR (the default)\r\n * NEAREST_MIPMAP_NEAREST\r\n * LINEAR_MIPMAP_NEAREST\r\n * NEAREST_MIPMAP_LINEAR\r\n * LINEAR_MIPMAP_LINEAR\r\n *\r\n * Mipmaps only work with textures that are fully power-of-two in size.\r\n *\r\n * For more details see https://webglfundamentals.org/webgl/lessons/webgl-3d-textures.html\r\n *\r\n * As of v3.60 no mipmaps will be generated unless a string is given in\r\n * the game config. This saves on VRAM use when it may not be required.\r\n * To obtain the previous result set the property to `LINEAR` in the config.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#mipmapFilter\r\n * @type {GLenum}\r\n * @since 3.21.0\r\n */\r\n this.mipmapFilter = null;\r\n\r\n /**\r\n * The default scissor, set during `preRender` and modified during `resize`.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#defaultScissor\r\n * @type {number[]}\r\n * @private\r\n * @since 3.50.0\r\n */\r\n this.defaultScissor = [ 0, 0, 0, 0 ];\r\n\r\n /**\r\n * Has this renderer fully booted yet?\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#isBooted\r\n * @type {boolean}\r\n * @since 3.50.0\r\n */\r\n this.isBooted = false;\r\n\r\n /**\r\n * A Render Target you can use to capture the current state of the Renderer.\r\n *\r\n * A Render Target encapsulates a framebuffer and texture for the WebGL Renderer.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#renderTarget\r\n * @type {Phaser.Renderer.WebGL.RenderTarget}\r\n * @since 3.50.0\r\n */\r\n this.renderTarget = null;\r\n\r\n /**\r\n * The global game Projection matrix, used by shaders as 'uProjectionMatrix' uniform.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#projectionMatrix\r\n * @type {Phaser.Math.Matrix4}\r\n * @since 3.50.0\r\n */\r\n this.projectionMatrix;\r\n\r\n /**\r\n * The cached width of the Projection matrix.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#projectionWidth\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.projectionWidth = 0;\r\n\r\n /**\r\n * The cached height of the Projection matrix.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#projectionHeight\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.projectionHeight = 0;\r\n\r\n /**\r\n * A RenderTarget used by the BitmapMask Pipeline.\r\n *\r\n * This is the source, i.e. the masked Game Object itself.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#maskSource\r\n * @type {Phaser.Renderer.WebGL.RenderTarget}\r\n * @since 3.60.0\r\n */\r\n this.maskSource = null;\r\n\r\n /**\r\n * A RenderTarget used by the BitmapMask Pipeline.\r\n *\r\n * This is the target, i.e. the framebuffer the masked objects are drawn to.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#maskTarget\r\n * @type {Phaser.Renderer.WebGL.RenderTarget}\r\n * @since 3.60.0\r\n */\r\n this.maskTarget = null;\r\n\r\n /**\r\n * An instance of SpectorJS used for WebGL Debugging.\r\n *\r\n * Only available in the Phaser Debug build.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#spector\r\n * @type {function}\r\n * @since 3.60.0\r\n */\r\n this.spector = null;\r\n\r\n /**\r\n * Is Spector currently capturing a WebGL frame?\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLRenderer#_debugCapture\r\n * @type {boolean}\r\n * @private\r\n * @since 3.60.0\r\n */\r\n this._debugCapture = false;\r\n\r\n this.init(this.config);\r\n },\r\n\r\n /**\r\n * Creates a new WebGLRenderingContext and initializes all internal state.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#init\r\n * @since 3.0.0\r\n *\r\n * @param {object} config - The configuration object for the renderer.\r\n *\r\n * @return {this} This WebGLRenderer instance.\r\n */\r\n init: function (config)\r\n {\r\n var gl;\r\n var game = this.game;\r\n var canvas = this.canvas;\r\n var clearColor = config.backgroundColor;\r\n\r\n if (DEBUG)\r\n {\r\n this.spector = new SPECTOR.Spector();\r\n\r\n this.spector.onCapture.add(this.onCapture.bind(this));\r\n }\r\n\r\n // Did they provide their own context?\r\n if (game.config.context)\r\n {\r\n gl = game.config.context;\r\n }\r\n else\r\n {\r\n gl = canvas.getContext('webgl', config.contextCreation) || canvas.getContext('experimental-webgl', config.contextCreation);\r\n }\r\n\r\n if (!gl || gl.isContextLost())\r\n {\r\n this.contextLost = true;\r\n\r\n throw new Error('WebGL unsupported');\r\n }\r\n\r\n this.gl = gl;\r\n\r\n this.setExtensions();\r\n\r\n this.setContextHandlers();\r\n\r\n // Set it back into the Game, so developers can access it from there too\r\n game.context = gl;\r\n\r\n for (var i = 0; i <= 27; i++)\r\n {\r\n this.blendModes.push({ func: [ gl.ONE, gl.ONE_MINUS_SRC_ALPHA ], equation: gl.FUNC_ADD });\r\n }\r\n\r\n // ADD\r\n this.blendModes[1].func = [ gl.ONE, gl.DST_ALPHA ];\r\n\r\n // MULTIPLY\r\n this.blendModes[2].func = [ gl.DST_COLOR, gl.ONE_MINUS_SRC_ALPHA ];\r\n\r\n // SCREEN\r\n this.blendModes[3].func = [ gl.ONE, gl.ONE_MINUS_SRC_COLOR ];\r\n\r\n // ERASE\r\n this.blendModes[17] = { func: [ gl.ZERO, gl.ONE_MINUS_SRC_ALPHA ], equation: gl.FUNC_REVERSE_SUBTRACT };\r\n\r\n this.glFormats = [ gl.BYTE, gl.SHORT, gl.UNSIGNED_BYTE, gl.UNSIGNED_SHORT, gl.FLOAT ];\r\n\r\n // Set the gl function map\r\n this.glFuncMap = {\r\n\r\n mat2: { func: gl.uniformMatrix2fv, length: 1, matrix: true },\r\n mat3: { func: gl.uniformMatrix3fv, length: 1, matrix: true },\r\n mat4: { func: gl.uniformMatrix4fv, length: 1, matrix: true },\r\n\r\n '1f': { func: gl.uniform1f, length: 1 },\r\n '1fv': { func: gl.uniform1fv, length: 1 },\r\n '1i': { func: gl.uniform1i, length: 1 },\r\n '1iv': { func: gl.uniform1iv, length: 1 },\r\n\r\n '2f': { func: gl.uniform2f, length: 2 },\r\n '2fv': { func: gl.uniform2fv, length: 1 },\r\n '2i': { func: gl.uniform2i, length: 2 },\r\n '2iv': { func: gl.uniform2iv, length: 1 },\r\n\r\n '3f': { func: gl.uniform3f, length: 3 },\r\n '3fv': { func: gl.uniform3fv, length: 1 },\r\n '3i': { func: gl.uniform3i, length: 3 },\r\n '3iv': { func: gl.uniform3iv, length: 1 },\r\n\r\n '4f': { func: gl.uniform4f, length: 4 },\r\n '4fv': { func: gl.uniform4fv, length: 1 },\r\n '4i': { func: gl.uniform4i, length: 4 },\r\n '4iv': { func: gl.uniform4iv, length: 1 }\r\n\r\n };\r\n\r\n if (!config.maxTextures || config.maxTextures === -1)\r\n {\r\n config.maxTextures = gl.getParameter(gl.MAX_TEXTURE_IMAGE_UNITS);\r\n }\r\n\r\n if (!config.maxTextureSize)\r\n {\r\n config.maxTextureSize = gl.getParameter(gl.MAX_TEXTURE_SIZE);\r\n }\r\n\r\n this.compression = this.getCompressedTextures();\r\n\r\n // Setup initial WebGL state\r\n gl.disable(gl.DEPTH_TEST);\r\n gl.disable(gl.CULL_FACE);\r\n\r\n gl.enable(gl.BLEND);\r\n\r\n gl.clearColor(clearColor.redGL, clearColor.greenGL, clearColor.blueGL, clearColor.alphaGL);\r\n\r\n // Mipmaps\r\n var validMipMaps = [ 'NEAREST', 'LINEAR', 'NEAREST_MIPMAP_NEAREST', 'LINEAR_MIPMAP_NEAREST', 'NEAREST_MIPMAP_LINEAR', 'LINEAR_MIPMAP_LINEAR' ];\r\n\r\n if (validMipMaps.indexOf(config.mipmapFilter) !== -1)\r\n {\r\n this.mipmapFilter = gl[config.mipmapFilter];\r\n }\r\n\r\n // Check maximum supported textures\r\n this.maxTextures = Utils.checkShaderMax(gl, config.maxTextures);\r\n\r\n this.textureIndexes = [];\r\n\r\n this.createTemporaryTextures();\r\n\r\n this.pipelines = new PipelineManager(this);\r\n\r\n this.setBlendMode(CONST.BlendModes.NORMAL);\r\n\r\n this.projectionMatrix = new Matrix4().identity();\r\n\r\n game.textures.once(TextureEvents.READY, this.boot, this);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal boot handler. Calls 'boot' on each pipeline.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#boot\r\n * @private\r\n * @since 3.11.0\r\n */\r\n boot: function ()\r\n {\r\n var game = this.game;\r\n var pipelineManager = this.pipelines;\r\n\r\n var baseSize = game.scale.baseSize;\r\n\r\n var width = baseSize.width;\r\n var height = baseSize.height;\r\n\r\n this.width = width;\r\n this.height = height;\r\n\r\n this.isBooted = true;\r\n\r\n this.renderTarget = new RenderTarget(this, width, height, 1, 0, true, true);\r\n\r\n this.maskTarget = new RenderTarget(this, width, height, 1, 0, true, true);\r\n this.maskSource = new RenderTarget(this, width, height, 1, 0, true, true);\r\n\r\n // Set-up pipelines\r\n var config = game.config;\r\n\r\n pipelineManager.boot(config.pipeline, config.defaultPipeline, config.autoMobilePipeline);\r\n\r\n // Set-up default textures, fbo and scissor\r\n\r\n this.blankTexture = game.textures.getFrame('__DEFAULT').glTexture;\r\n this.normalTexture = game.textures.getFrame('__NORMAL').glTexture;\r\n this.whiteTexture = game.textures.getFrame('__WHITE').glTexture;\r\n\r\n var gl = this.gl;\r\n\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, null);\r\n\r\n gl.enable(gl.SCISSOR_TEST);\r\n\r\n game.scale.on(ScaleEvents.RESIZE, this.onResize, this);\r\n\r\n this.resize(width, height);\r\n },\r\n\r\n /**\r\n * Queries the GL context to get the supported extensions.\r\n * \r\n * Then sets them into the `supportedExtensions`, `instancedArraysExtension` and `vaoExtension` properties.\r\n * \r\n * Called automatically during the `init` method.\r\n * \r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#setExtensions\r\n * @since 3.85.2\r\n */\r\n setExtensions: function ()\r\n {\r\n var gl = this.gl;\r\n\r\n var exts = gl.getSupportedExtensions();\r\n\r\n this.supportedExtensions = exts;\r\n\r\n var angleString = 'ANGLE_instanced_arrays';\r\n\r\n this.instancedArraysExtension = (exts.indexOf(angleString) > -1) ? gl.getExtension(angleString) : null;\r\n\r\n var vaoString = 'OES_vertex_array_object';\r\n\r\n this.vaoExtension = (exts.indexOf(vaoString) > -1) ? gl.getExtension(vaoString) : null;\r\n },\r\n\r\n /**\r\n * Sets the handlers that are called when WebGL context is lost or restored by the browser.\r\n * \r\n * The default handlers are referenced via the properties `WebGLRenderer.contextLostHandler` and `WebGLRenderer.contextRestoredHandler`.\r\n * By default, these map to the methods `WebGLRenderer.dispatchContextLost` and `WebGLRenderer.dispatchContextRestored`.\r\n * \r\n * You can override these handlers with your own via this method.\r\n * \r\n * If you do override them, make sure that your handlers invoke the methods `WebGLRenderer.dispatchContextLost` and `WebGLRenderer.dispatchContextRestored` in due course, otherwise the renderer will not be able to restore itself fully.\r\n * \r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#setContextHandlers\r\n * @since 3.85.0\r\n *\r\n * @param {function} [contextLost] - Custom handler for responding to the WebGL context lost event. Set as `undefined` to use the default handler.\r\n * @param {function} [contextRestored] - Custom handler for responding to the WebGL context restored event. Set as `undefined` to use the default handler.\r\n */\r\n setContextHandlers: function (contextLost, contextRestored)\r\n {\r\n if (this.previousContextLostHandler)\r\n {\r\n this.canvas.removeEventListener('webglcontextlost', this.previousContextLostHandler, false);\r\n }\r\n if (this.previousContextRestoredHandler)\r\n {\r\n this.canvas.removeEventListener('webglcontextlost', this.previousContextRestoredHandler, false);\r\n }\r\n \r\n if (typeof contextLost === 'function')\r\n {\r\n this.contextLostHandler = contextLost.bind(this);\r\n }\r\n else\r\n {\r\n this.contextLostHandler = this.dispatchContextLost.bind(this);\r\n }\r\n\r\n if (typeof contextRestored === 'function')\r\n {\r\n this.contextRestoredHandler = contextRestored.bind(this);\r\n }\r\n else\r\n {\r\n this.contextRestoredHandler = this.dispatchContextRestored.bind(this);\r\n }\r\n\r\n this.canvas.addEventListener('webglcontextlost', this.contextLostHandler, false);\r\n this.canvas.addEventListener('webglcontextrestored', this.contextRestoredHandler, false);\r\n\r\n this.previousContextLostHandler = this.contextLostHandler;\r\n this.previousContextRestoredHandler = this.contextRestoredHandler;\r\n },\r\n\r\n /**\r\n * This method is called when the WebGL context is lost. By default this is bound to the property `WebGLRenderer.contextLostHandler`.\r\n * If you override the context loss handler via the `setContextHandlers` method then be sure to invoke this method in due course.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#dispatchContextLost\r\n * @since 3.85.0\r\n * \r\n * @param {WebGLContextEvent } event - The WebGL context lost Event.\r\n */\r\n dispatchContextLost: function (event)\r\n {\r\n this.contextLost = true;\r\n\r\n if (console)\r\n {\r\n console.warn('WebGL Context lost. Renderer disabled');\r\n }\r\n\r\n this.emit(Events.LOSE_WEBGL, this);\r\n\r\n event.preventDefault();\r\n },\r\n\r\n /**\r\n * This method is called when the WebGL context is restored. By default this is bound to the property `WebGLRenderer.contextRestoredHandler`.\r\n * If you override the context restored handler via the `setContextHandlers` method then be sure to invoke this method in due course.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#dispatchContextRestored\r\n * @since 3.85.0\r\n * \r\n * @param {WebGLContextEvent } event - The WebGL context restored Event.\r\n */\r\n dispatchContextRestored: function (event)\r\n {\r\n var gl = this.gl;\r\n\r\n if (gl.isContextLost())\r\n {\r\n if (console)\r\n {\r\n console.log('WebGL Context restored, but context is still lost');\r\n }\r\n\r\n return;\r\n }\r\n\r\n // Clear \"current\" settings so they can be set again.\r\n this.currentProgram = null;\r\n this.currentFramebuffer = null;\r\n this.setBlendMode(CONST.BlendModes.NORMAL);\r\n\r\n // Settings we DON'T need to reset:\r\n // Scissor is set during preRender.\r\n // Mask is set during preRender.\r\n // Camera mask is set during preRenderCamera.\r\n\r\n // Restore GL flags.\r\n gl.disable(gl.BLEND);\r\n gl.disable(gl.DEPTH_TEST);\r\n gl.enable(gl.CULL_FACE);\r\n\r\n // Re-enable compressed texture formats.\r\n this.compression = this.getCompressedTextures();\r\n\r\n // Restore wrapped GL objects.\r\n // Order matters, as some wrappers depend on others.\r\n var wrapperCreateResource = function (wrapper)\r\n {\r\n wrapper.createResource();\r\n };\r\n\r\n ArrayEach(this.glTextureWrappers, wrapperCreateResource);\r\n ArrayEach(this.glBufferWrappers, wrapperCreateResource);\r\n ArrayEach(this.glFramebufferWrappers, wrapperCreateResource);\r\n ArrayEach(this.glProgramWrappers, wrapperCreateResource);\r\n ArrayEach(this.glAttribLocationWrappers, wrapperCreateResource);\r\n ArrayEach(this.glUniformLocationWrappers, wrapperCreateResource);\r\n\r\n // Create temporary textures.\r\n this.createTemporaryTextures();\r\n\r\n // Restore pipelines.\r\n this.pipelines.restoreContext();\r\n\r\n // Apply resize.\r\n this.resize(this.game.scale.baseSize.width, this.game.scale.baseSize.height);\r\n\r\n // Restore GL extensions.\r\n this.setExtensions();\r\n\r\n // Context has been restored.\r\n\r\n this.contextLost = false;\r\n\r\n if (console)\r\n {\r\n console.warn('WebGL Context restored. Renderer running again.');\r\n }\r\n\r\n this.emit(Events.RESTORE_WEBGL, this);\r\n\r\n event.preventDefault();\r\n },\r\n \r\n /**\r\n * Create temporary WebGL textures to stop WebGL errors on macOS.\r\n * \r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#createTemporaryTextures\r\n * @since 3.60.0\r\n */\r\n createTemporaryTextures: function ()\r\n {\r\n var gl = this.gl;\r\n\r\n for (var index = 0; index < this.maxTextures; index++)\r\n {\r\n var tempTexture = gl.createTexture();\r\n\r\n gl.activeTexture(gl.TEXTURE0 + index);\r\n\r\n gl.bindTexture(gl.TEXTURE_2D, tempTexture);\r\n\r\n gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGBA, 1, 1, 0, gl.RGBA, gl.UNSIGNED_BYTE, new Uint8Array([ 0, 0, 255, 255 ]));\r\n\r\n this.textureIndexes.push(index);\r\n }\r\n },\r\n\r\n /**\r\n * This method is only available in the Debug Build of Phaser, or a build with the\r\n * `WEBGL_DEBUG` flag set in the Webpack Config.\r\n *\r\n * Phaser v3.60 Debug has a build of Spector.js embedded in it, which is a WebGL inspector\r\n * that allows for live inspection of your WebGL calls. Although it's easy to add the Spector\r\n * extension to a desktop browsr, by embedding it in Phaser we can make it available in mobile\r\n * browsers too, making it a powerful tool for debugging WebGL games on mobile devices where\r\n * extensions are not permitted.\r\n *\r\n * See https://github.com/BabylonJS/Spector.js for more details.\r\n *\r\n * This method will capture the current WebGL frame and send it to the Spector.js tool for inspection.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#captureFrame\r\n * @since 3.60.0\r\n *\r\n * @param {boolean} [quickCapture=false] - If `true` thumbnails are not captured in order to speed up the capture.\r\n * @param {boolean} [fullCapture=false] - If `true` all details are captured.\r\n */\r\n captureFrame: function (quickCapture, fullCapture)\r\n {\r\n if (quickCapture === undefined) { quickCapture = false; }\r\n if (fullCapture === undefined) { fullCapture = false; }\r\n\r\n if (DEBUG && this.spector && !this._debugCapture)\r\n {\r\n this.spector.captureCanvas(this.canvas, 0, quickCapture, fullCapture);\r\n\r\n this._debugCapture = true;\r\n }\r\n },\r\n\r\n /**\r\n * This method is only available in the Debug Build of Phaser, or a build with the\r\n * `WEBGL_DEBUG` flag set in the Webpack Config.\r\n *\r\n * Phaser v3.60 Debug has a build of Spector.js embedded in it, which is a WebGL inspector\r\n * that allows for live inspection of your WebGL calls. Although it's easy to add the Spector\r\n * extension to a desktop browsr, by embedding it in Phaser we can make it available in mobile\r\n * browsers too, making it a powerful tool for debugging WebGL games on mobile devices where\r\n * extensions are not permitted.\r\n *\r\n * See https://github.com/BabylonJS/Spector.js for more details.\r\n *\r\n * This method will capture the next WebGL frame and send it to the Spector.js tool for inspection.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#captureNextFrame\r\n * @since 3.60.0\r\n */\r\n captureNextFrame: function ()\r\n {\r\n if (DEBUG && this.spector && !this._debugCapture)\r\n {\r\n this._debugCapture = true;\r\n\r\n this.spector.captureNextFrame(this.canvas);\r\n }\r\n },\r\n\r\n /**\r\n * This method is only available in the Debug Build of Phaser, or a build with the\r\n * `WEBGL_DEBUG` flag set in the Webpack Config.\r\n *\r\n * Phaser v3.60 Debug has a build of Spector.js embedded in it, which is a WebGL inspector\r\n * that allows for live inspection of your WebGL calls. Although it's easy to add the Spector\r\n * extension to a desktop browsr, by embedding it in Phaser we can make it available in mobile\r\n * browsers too, making it a powerful tool for debugging WebGL games on mobile devices where\r\n * extensions are not permitted.\r\n *\r\n * See https://github.com/BabylonJS/Spector.js for more details.\r\n *\r\n * This method will return the current FPS of the WebGL canvas.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#getFps\r\n * @since 3.60.0\r\n *\r\n * @return {number} The current FPS of the WebGL canvas.\r\n */\r\n getFps: function ()\r\n {\r\n if (DEBUG && this.spector)\r\n {\r\n return this.spector.getFps();\r\n }\r\n },\r\n\r\n /**\r\n * This method is only available in the Debug Build of Phaser, or a build with the\r\n * `WEBGL_DEBUG` flag set in the Webpack Config.\r\n *\r\n * Phaser v3.60 Debug has a build of Spector.js embedded in it, which is a WebGL inspector\r\n * that allows for live inspection of your WebGL calls. Although it's easy to add the Spector\r\n * extension to a desktop browsr, by embedding it in Phaser we can make it available in mobile\r\n * browsers too, making it a powerful tool for debugging WebGL games on mobile devices where\r\n * extensions are not permitted.\r\n *\r\n * See https://github.com/BabylonJS/Spector.js for more details.\r\n *\r\n * This method adds a command with the name value in the list. This can be filtered in the search.\r\n * All logs can be filtered searching for \"LOG\".\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#log\r\n * @since 3.60.0\r\n *\r\n * @param {...*} arguments - The arguments to log to Spector.\r\n *\r\n * @return {string} The current log.\r\n */\r\n log: function ()\r\n {\r\n if (DEBUG && this.spector)\r\n {\r\n var t = Array.prototype.slice.call(arguments).join(' ');\r\n\r\n return this.spector.log(t);\r\n }\r\n },\r\n\r\n /**\r\n * This method is only available in the Debug Build of Phaser, or a build with the\r\n * `WEBGL_DEBUG` flag set in the Webpack Config.\r\n *\r\n * Phaser v3.60 Debug has a build of Spector.js embedded in it, which is a WebGL inspector\r\n * that allows for live inspection of your WebGL calls. Although it's easy to add the Spector\r\n * extension to a desktop browsr, by embedding it in Phaser we can make it available in mobile\r\n * browsers too, making it a powerful tool for debugging WebGL games on mobile devices where\r\n * extensions are not permitted.\r\n *\r\n * See https://github.com/BabylonJS/Spector.js for more details.\r\n *\r\n * This method will start a capture on the Phaser canvas. The capture will stop once it reaches\r\n * the number of commands specified as a parameter, or after 10 seconds. If quick capture is true,\r\n * the thumbnails are not captured in order to speed up the capture.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#startCapture\r\n * @since 3.60.0\r\n *\r\n * @param {number} [commandCount=0] - The number of commands to capture. If zero it will capture for 10 seconds.\r\n * @param {boolean} [quickCapture=false] - If `true` thumbnails are not captured in order to speed up the capture.\r\n * @param {boolean} [fullCapture=false] - If `true` all details are captured.\r\n */\r\n startCapture: function (commandCount, quickCapture, fullCapture)\r\n {\r\n if (commandCount === undefined) { commandCount = 0; }\r\n if (quickCapture === undefined) { quickCapture = false; }\r\n if (fullCapture === undefined) { fullCapture = false; }\r\n\r\n if (DEBUG && this.spector && !this._debugCapture)\r\n {\r\n this.spector.startCapture(this.canvas, commandCount, quickCapture, fullCapture);\r\n\r\n this._debugCapture = true;\r\n }\r\n },\r\n\r\n /**\r\n * This method is only available in the Debug Build of Phaser, or a build with the\r\n * `WEBGL_DEBUG` flag set in the Webpack Config.\r\n *\r\n * Phaser v3.60 Debug has a build of Spector.js embedded in it, which is a WebGL inspector\r\n * that allows for live inspection of your WebGL calls. Although it's easy to add the Spector\r\n * extension to a desktop browsr, by embedding it in Phaser we can make it available in mobile\r\n * browsers too, making it a powerful tool for debugging WebGL games on mobile devices where\r\n * extensions are not permitted.\r\n *\r\n * See https://github.com/BabylonJS/Spector.js for more details.\r\n *\r\n * This method will stop the current capture and returns the result in JSON. It displays the\r\n * result if the UI has been displayed. This returns undefined if the capture has not been completed\r\n * or did not find any commands.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#stopCapture\r\n * @since 3.60.0\r\n *\r\n * @return {object} The current capture.\r\n */\r\n stopCapture: function ()\r\n {\r\n if (DEBUG && this.spector && this._debugCapture)\r\n {\r\n return this.spector.stopCapture();\r\n }\r\n },\r\n\r\n /**\r\n * This method is only available in the Debug Build of Phaser, or a build with the\r\n * `WEBGL_DEBUG` flag set in the Webpack Config.\r\n *\r\n * Internal onCapture handler.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#onCapture\r\n * @private\r\n * @since 3.60.0\r\n *\r\n * @param {object} capture - The capture data.\r\n */\r\n onCapture: function (capture)\r\n {\r\n if (DEBUG)\r\n {\r\n var view = this.spector.getResultUI();\r\n\r\n view.display(capture);\r\n\r\n this._debugCapture = false;\r\n }\r\n },\r\n\r\n /**\r\n * The event handler that manages the `resize` event dispatched by the Scale Manager.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#onResize\r\n * @since 3.16.0\r\n *\r\n * @param {Phaser.Structs.Size} gameSize - The default Game Size object. This is the un-modified game dimensions.\r\n * @param {Phaser.Structs.Size} baseSize - The base Size object. The game dimensions. The canvas width / height values match this.\r\n */\r\n onResize: function (gameSize, baseSize)\r\n {\r\n // Has the underlying canvas size changed?\r\n if (baseSize.width !== this.width || baseSize.height !== this.height)\r\n {\r\n this.resize(baseSize.width, baseSize.height);\r\n }\r\n },\r\n\r\n /**\r\n * Binds the WebGL Renderers Render Target, so all drawn content is now redirected to it.\r\n *\r\n * Make sure to call `endCapture` when you are finished.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#beginCapture\r\n * @since 3.50.0\r\n *\r\n * @param {number} [width] - Optional new width of the Render Target.\r\n * @param {number} [height] - Optional new height of the Render Target.\r\n */\r\n beginCapture: function (width, height)\r\n {\r\n if (width === undefined) { width = this.width; }\r\n if (height === undefined) { height = this.height; }\r\n\r\n this.renderTarget.bind(true, width, height);\r\n\r\n this.setProjectionMatrix(width, height);\r\n },\r\n\r\n /**\r\n * Unbinds the WebGL Renderers Render Target and returns it, stopping any further content being drawn to it.\r\n *\r\n * If the viewport or scissors were modified during the capture, you should reset them by calling\r\n * `resetViewport` and `resetScissor` accordingly.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#endCapture\r\n * @since 3.50.0\r\n *\r\n * @return {Phaser.Renderer.WebGL.RenderTarget} A reference to the WebGL Renderer Render Target.\r\n */\r\n endCapture: function ()\r\n {\r\n this.renderTarget.unbind(true);\r\n\r\n this.resetProjectionMatrix();\r\n\r\n return this.renderTarget;\r\n },\r\n\r\n /**\r\n * Resizes the drawing buffer to match that required by the Scale Manager.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#resize\r\n * @fires Phaser.Renderer.Events#RESIZE\r\n * @since 3.0.0\r\n *\r\n * @param {number} [width] - The new width of the renderer.\r\n * @param {number} [height] - The new height of the renderer.\r\n *\r\n * @return {this} This WebGLRenderer instance.\r\n */\r\n resize: function (width, height)\r\n {\r\n var gl = this.gl;\r\n\r\n this.width = width;\r\n this.height = height;\r\n\r\n this.setProjectionMatrix(width, height);\r\n\r\n gl.viewport(0, 0, width, height);\r\n\r\n this.drawingBufferHeight = gl.drawingBufferHeight;\r\n\r\n gl.scissor(0, (gl.drawingBufferHeight - height), width, height);\r\n\r\n this.defaultScissor[2] = width;\r\n this.defaultScissor[3] = height;\r\n\r\n this.emit(Events.RESIZE, width, height);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Determines which compressed texture formats this browser and device supports.\r\n *\r\n * Called automatically as part of the WebGL Renderer init process. If you need to investigate\r\n * which formats it supports, see the `Phaser.Renderer.WebGL.WebGLRenderer#compression` property instead.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#getCompressedTextures\r\n * @since 3.60.0\r\n *\r\n * @return {Phaser.Types.Renderer.WebGL.WebGLTextureCompression} The compression object.\r\n */\r\n getCompressedTextures: function ()\r\n {\r\n var extString = 'WEBGL_compressed_texture_';\r\n var wkExtString = 'WEBKIT_' + extString;\r\n var extEXTString = 'EXT_texture_compression_';\r\n\r\n var hasExt = function (gl, format)\r\n {\r\n var results = gl.getExtension(extString + format) || gl.getExtension(wkExtString + format) || gl.getExtension(extEXTString + format);\r\n\r\n if (results)\r\n {\r\n var glEnums = {};\r\n\r\n for (var key in results)\r\n {\r\n glEnums[results[key]] = key;\r\n }\r\n\r\n return glEnums;\r\n }\r\n };\r\n\r\n var gl = this.gl;\r\n\r\n return {\r\n ETC: hasExt(gl, 'etc'),\r\n ETC1: hasExt(gl, 'etc1'),\r\n ATC: hasExt(gl, 'atc'),\r\n ASTC: hasExt(gl, 'astc'),\r\n BPTC: hasExt(gl, 'bptc'),\r\n RGTC: hasExt(gl, 'rgtc'),\r\n PVRTC: hasExt(gl, 'pvrtc'),\r\n S3TC: hasExt(gl, 's3tc'),\r\n S3TCSRGB: hasExt(gl, 's3tc_srgb'),\r\n IMG: true\r\n };\r\n },\r\n\r\n /**\r\n * Returns a compressed texture format GLenum name based on the given format.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#getCompressedTextureName\r\n * @since 3.60.0\r\n *\r\n * @param {string} baseFormat - The Base Format to check.\r\n * @param {GLenum} [format] - An optional GLenum format to check within the base format.\r\n *\r\n * @return {string} The compressed texture format name, as a string.\r\n */\r\n getCompressedTextureName: function (baseFormat, format)\r\n {\r\n var supportedFormats = this.compression[baseFormat.toUpperCase()];\r\n\r\n if (format in supportedFormats)\r\n {\r\n return supportedFormats[format];\r\n }\r\n },\r\n\r\n /**\r\n * Checks if the given compressed texture format is supported, or not.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#supportsCompressedTexture\r\n * @since 3.60.0\r\n *\r\n * @param {string} baseFormat - The Base Format to check.\r\n * @param {GLenum} [format] - An optional GLenum format to check within the base format.\r\n *\r\n * @return {boolean} True if the format is supported, otherwise false.\r\n */\r\n supportsCompressedTexture: function (baseFormat, format)\r\n {\r\n var supportedFormats = this.compression[baseFormat.toUpperCase()];\r\n\r\n if (supportedFormats)\r\n {\r\n if (format)\r\n {\r\n return format in supportedFormats;\r\n }\r\n else\r\n {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Gets the aspect ratio of the WebGLRenderer dimensions.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#getAspectRatio\r\n * @since 3.50.0\r\n *\r\n * @return {number} The aspect ratio of the WebGLRenderer dimensions.\r\n */\r\n getAspectRatio: function ()\r\n {\r\n return this.width / this.height;\r\n },\r\n\r\n /**\r\n * Sets the Projection Matrix of this renderer to the given dimensions.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#setProjectionMatrix\r\n * @since 3.50.0\r\n *\r\n * @param {number} width - The new width of the Projection Matrix.\r\n * @param {number} height - The new height of the Projection Matrix.\r\n *\r\n * @return {this} This WebGLRenderer instance.\r\n */\r\n setProjectionMatrix: function (width, height)\r\n {\r\n if (width !== this.projectionWidth || height !== this.projectionHeight)\r\n {\r\n this.projectionWidth = width;\r\n this.projectionHeight = height;\r\n\r\n this.projectionMatrix.ortho(0, width, height, 0, -1000, 1000);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resets the Projection Matrix back to this renderers width and height.\r\n *\r\n * This is called during `endCapture`, should the matrix have been changed\r\n * as a result of the capture process.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#resetProjectionMatrix\r\n * @since 3.50.0\r\n *\r\n * @return {this} This WebGLRenderer instance.\r\n */\r\n resetProjectionMatrix: function ()\r\n {\r\n return this.setProjectionMatrix(this.width, this.height);\r\n },\r\n\r\n /**\r\n * Checks if a WebGL extension is supported\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#hasExtension\r\n * @since 3.0.0\r\n *\r\n * @param {string} extensionName - Name of the WebGL extension\r\n *\r\n * @return {boolean} `true` if the extension is supported, otherwise `false`.\r\n */\r\n hasExtension: function (extensionName)\r\n {\r\n return this.supportedExtensions ? this.supportedExtensions.indexOf(extensionName) : false;\r\n },\r\n\r\n /**\r\n * Loads a WebGL extension\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#getExtension\r\n * @since 3.0.0\r\n *\r\n * @param {string} extensionName - The name of the extension to load.\r\n *\r\n * @return {object} WebGL extension if the extension is supported\r\n */\r\n getExtension: function (extensionName)\r\n {\r\n if (!this.hasExtension(extensionName)) { return null; }\r\n\r\n if (!(extensionName in this.extensions))\r\n {\r\n this.extensions[extensionName] = this.gl.getExtension(extensionName);\r\n }\r\n\r\n return this.extensions[extensionName];\r\n },\r\n\r\n /**\r\n * Flushes the current pipeline if the pipeline is bound\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#flush\r\n * @since 3.0.0\r\n */\r\n flush: function ()\r\n {\r\n this.pipelines.flush();\r\n },\r\n\r\n /**\r\n * Pushes a new scissor state. This is used to set nested scissor states.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#pushScissor\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x position of the scissor.\r\n * @param {number} y - The y position of the scissor.\r\n * @param {number} width - The width of the scissor.\r\n * @param {number} height - The height of the scissor.\r\n * @param {number} [drawingBufferHeight] - Optional drawingBufferHeight override value.\r\n *\r\n * @return {number[]} An array containing the scissor values.\r\n */\r\n pushScissor: function (x, y, width, height, drawingBufferHeight)\r\n {\r\n if (drawingBufferHeight === undefined) { drawingBufferHeight = this.drawingBufferHeight; }\r\n\r\n var scissorStack = this.scissorStack;\r\n\r\n var scissor = [ x, y, width, height ];\r\n\r\n scissorStack.push(scissor);\r\n\r\n this.setScissor(x, y, width, height, drawingBufferHeight);\r\n\r\n this.currentScissor = scissor;\r\n\r\n return scissor;\r\n },\r\n\r\n /**\r\n * Sets the current scissor state.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#setScissor\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x position of the scissor.\r\n * @param {number} y - The y position of the scissor.\r\n * @param {number} width - The width of the scissor.\r\n * @param {number} height - The height of the scissor.\r\n * @param {number} [drawingBufferHeight] - Optional drawingBufferHeight override value.\r\n */\r\n setScissor: function (x, y, width, height, drawingBufferHeight)\r\n {\r\n if (drawingBufferHeight === undefined) { drawingBufferHeight = this.drawingBufferHeight; }\r\n\r\n var gl = this.gl;\r\n\r\n var current = this.currentScissor;\r\n\r\n var setScissor = (width > 0 && height > 0);\r\n\r\n if (current && setScissor)\r\n {\r\n var cx = current[0];\r\n var cy = current[1];\r\n var cw = current[2];\r\n var ch = current[3];\r\n\r\n setScissor = (cx !== x || cy !== y || cw !== width || ch !== height);\r\n }\r\n\r\n if (setScissor)\r\n {\r\n this.flush();\r\n\r\n // https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/scissor\r\n gl.scissor(x, (drawingBufferHeight - y - height), width, height);\r\n }\r\n },\r\n\r\n /**\r\n * Resets the gl scissor state to be whatever the current scissor is, if there is one, without\r\n * modifying the scissor stack.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#resetScissor\r\n * @since 3.50.0\r\n */\r\n resetScissor: function ()\r\n {\r\n var gl = this.gl;\r\n\r\n gl.enable(gl.SCISSOR_TEST);\r\n\r\n var current = this.currentScissor;\r\n\r\n if (current)\r\n {\r\n var x = current[0];\r\n var y = current[1];\r\n var width = current[2];\r\n var height = current[3];\r\n\r\n if (width > 0 && height > 0)\r\n {\r\n gl.scissor(x, (this.drawingBufferHeight - y - height), width, height);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Pops the last scissor state and sets it.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#popScissor\r\n * @since 3.0.0\r\n */\r\n popScissor: function ()\r\n {\r\n var scissorStack = this.scissorStack;\r\n\r\n // Remove the current scissor\r\n scissorStack.pop();\r\n\r\n // Reset the previous scissor\r\n var scissor = scissorStack[scissorStack.length - 1];\r\n\r\n if (scissor)\r\n {\r\n this.setScissor(scissor[0], scissor[1], scissor[2], scissor[3]);\r\n }\r\n\r\n this.currentScissor = scissor;\r\n },\r\n\r\n /**\r\n * Is there an active stencil mask?\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#hasActiveStencilMask\r\n * @since 3.17.0\r\n *\r\n * @return {boolean} `true` if there is an active stencil mask, otherwise `false`.\r\n */\r\n hasActiveStencilMask: function ()\r\n {\r\n var mask = this.currentMask.mask;\r\n var camMask = this.currentCameraMask.mask;\r\n\r\n return ((mask && mask.isStencil) || (camMask && camMask.isStencil));\r\n },\r\n\r\n /**\r\n * Resets the gl viewport to the current renderer dimensions.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#resetViewport\r\n * @since 3.50.0\r\n */\r\n resetViewport: function ()\r\n {\r\n var gl = this.gl;\r\n\r\n gl.viewport(0, 0, this.width, this.height);\r\n\r\n this.drawingBufferHeight = gl.drawingBufferHeight;\r\n },\r\n\r\n /**\r\n * Sets the blend mode to the value given.\r\n *\r\n * If the current blend mode is different from the one given, the pipeline is flushed and the new\r\n * blend mode is enabled.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#setBlendMode\r\n * @since 3.0.0\r\n *\r\n * @param {number} blendModeId - The blend mode to be set. Can be a `BlendModes` const or an integer value.\r\n * @param {boolean} [force=false] - Force the blend mode to be set, regardless of the currently set blend mode.\r\n *\r\n * @return {boolean} `true` if the blend mode was changed as a result of this call, forcing a flush, otherwise `false`.\r\n */\r\n setBlendMode: function (blendModeId, force)\r\n {\r\n if (force === undefined) { force = false; }\r\n\r\n var gl = this.gl;\r\n var blendMode = this.blendModes[blendModeId];\r\n\r\n if (force || (blendModeId !== CONST.BlendModes.SKIP_CHECK && this.currentBlendMode !== blendModeId))\r\n {\r\n this.flush();\r\n\r\n gl.enable(gl.BLEND);\r\n gl.blendEquation(blendMode.equation);\r\n\r\n if (blendMode.func.length > 2)\r\n {\r\n gl.blendFuncSeparate(blendMode.func[0], blendMode.func[1], blendMode.func[2], blendMode.func[3]);\r\n }\r\n else\r\n {\r\n gl.blendFunc(blendMode.func[0], blendMode.func[1]);\r\n }\r\n\r\n this.currentBlendMode = blendModeId;\r\n\r\n return true;\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Creates a new custom blend mode for the renderer.\r\n *\r\n * See https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/Constants#Blending_modes\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#addBlendMode\r\n * @since 3.0.0\r\n *\r\n * @param {GLenum[]} func - An array containing the WebGL functions to use for the source and the destination blending factors, respectively. See the possible constants for {@link WebGLRenderingContext#blendFunc()}.\r\n * @param {GLenum} equation - The equation to use for combining the RGB and alpha components of a new pixel with a rendered one. See the possible constants for {@link WebGLRenderingContext#blendEquation()}.\r\n *\r\n * @return {number} The index of the new blend mode, used for referencing it in the future.\r\n */\r\n addBlendMode: function (func, equation)\r\n {\r\n var index = this.blendModes.push({ func: func, equation: equation });\r\n\r\n return index - 1;\r\n },\r\n\r\n /**\r\n * Updates the function bound to a given custom blend mode.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#updateBlendMode\r\n * @since 3.0.0\r\n *\r\n * @param {number} index - The index of the custom blend mode.\r\n * @param {function} func - The function to use for the blend mode.\r\n * @param {function} equation - The equation to use for the blend mode.\r\n *\r\n * @return {this} This WebGLRenderer instance.\r\n */\r\n updateBlendMode: function (index, func, equation)\r\n {\r\n if (this.blendModes[index])\r\n {\r\n this.blendModes[index].func = func;\r\n\r\n if (equation)\r\n {\r\n this.blendModes[index].equation = equation;\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes a custom blend mode from the renderer.\r\n * Any Game Objects still using this blend mode will error, so be sure to clear them first.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#removeBlendMode\r\n * @since 3.0.0\r\n *\r\n * @param {number} index - The index of the custom blend mode to be removed.\r\n *\r\n * @return {this} This WebGLRenderer instance.\r\n */\r\n removeBlendMode: function (index)\r\n {\r\n if (index > 17 && this.blendModes[index])\r\n {\r\n this.blendModes.splice(index, 1);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Pushes a new framebuffer onto the FBO stack and makes it the currently bound framebuffer.\r\n *\r\n * If there was another framebuffer already bound it will force a pipeline flush.\r\n *\r\n * Call `popFramebuffer` to remove it again.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#pushFramebuffer\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLFramebufferWrapper} framebuffer - The framebuffer that needs to be bound.\r\n * @param {boolean} [updateScissor=false] - Set the gl scissor to match the frame buffer size? Or, if `null` given, pop the scissor from the stack.\r\n * @param {boolean} [setViewport=true] - Should the WebGL viewport be set?\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} [texture=null] - Bind the given frame buffer texture?\r\n * @param {boolean} [clear=false] - Clear the frame buffer after binding?\r\n *\r\n * @return {this} This WebGLRenderer instance.\r\n */\r\n pushFramebuffer: function (framebuffer, updateScissor, setViewport, texture, clear)\r\n {\r\n if (framebuffer === this.currentFramebuffer)\r\n {\r\n return this;\r\n }\r\n\r\n this.fboStack.push(framebuffer);\r\n\r\n return this.setFramebuffer(framebuffer, updateScissor, setViewport, texture, clear);\r\n },\r\n\r\n /**\r\n * Sets the given framebuffer as the active and currently bound framebuffer.\r\n *\r\n * If there was another framebuffer already bound it will force a pipeline flush.\r\n *\r\n * Typically, you should call `pushFramebuffer` instead of this method.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#setFramebuffer\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Renderer.WebGL.Wrappers.WebGLFramebufferWrapper|null)} framebuffer - The framebuffer that needs to be bound, or `null` to bind back to the default framebuffer.\r\n * @param {boolean} [updateScissor=false] - If a framebuffer is given, set the gl scissor to match the frame buffer size? Or, if `null` given, pop the scissor from the stack.\r\n * @param {boolean} [setViewport=true] - Should the WebGL viewport be set?\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} [texture=null] - Bind the given frame buffer texture?\r\n * @param {boolean} [clear=false] - Clear the frame buffer after binding?\r\n *\r\n * @return {this} This WebGLRenderer instance.\r\n */\r\n setFramebuffer: function (framebuffer, updateScissor, setViewport, texture, clear)\r\n {\r\n if (updateScissor === undefined) { updateScissor = false; }\r\n if (setViewport === undefined) { setViewport = true; }\r\n if (texture === undefined) { texture = null; }\r\n if (clear === undefined) { clear = false; }\r\n\r\n if (framebuffer === this.currentFramebuffer)\r\n {\r\n return this;\r\n }\r\n\r\n var gl = this.gl;\r\n\r\n var width = this.width;\r\n var height = this.height;\r\n\r\n if (framebuffer && framebuffer.renderTexture && setViewport)\r\n {\r\n width = framebuffer.renderTexture.width;\r\n height = framebuffer.renderTexture.height;\r\n }\r\n else\r\n {\r\n this.flush();\r\n }\r\n\r\n if (framebuffer)\r\n {\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, framebuffer.webGLFramebuffer);\r\n }\r\n else\r\n {\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, null);\r\n }\r\n\r\n if (setViewport)\r\n {\r\n gl.viewport(0, 0, width, height);\r\n }\r\n\r\n if (texture)\r\n {\r\n gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, texture.webGLTexture, 0);\r\n }\r\n\r\n if (clear)\r\n {\r\n gl.clearColor(0, 0, 0, 0);\r\n gl.clear(gl.COLOR_BUFFER_BIT);\r\n }\r\n\r\n if (updateScissor)\r\n {\r\n if (framebuffer)\r\n {\r\n this.drawingBufferHeight = height;\r\n\r\n this.pushScissor(0, 0, width, height);\r\n }\r\n else\r\n {\r\n this.drawingBufferHeight = this.height;\r\n\r\n this.popScissor();\r\n }\r\n }\r\n\r\n this.currentFramebuffer = framebuffer;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Pops the previous framebuffer from the fbo stack and sets it.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#popFramebuffer\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [updateScissor=false] - If a framebuffer is given, set the gl scissor to match the frame buffer size? Or, if `null` given, pop the scissor from the stack.\r\n * @param {boolean} [setViewport=true] - Should the WebGL viewport be set?\r\n *\r\n * @return {Phaser.Renderer.WebGL.Wrappers.WebGLFramebufferWrapper} The Framebuffer that was set, or `null` if there aren't any more in the stack.\r\n */\r\n popFramebuffer: function (updateScissor, setViewport)\r\n {\r\n if (updateScissor === undefined) { updateScissor = false; }\r\n if (setViewport === undefined) { setViewport = true; }\r\n\r\n var fboStack = this.fboStack;\r\n\r\n // Remove the current fbo\r\n fboStack.pop();\r\n\r\n // Reset the previous framebuffer\r\n var framebuffer = fboStack[fboStack.length - 1];\r\n\r\n if (!framebuffer)\r\n {\r\n framebuffer = null;\r\n }\r\n\r\n this.setFramebuffer(framebuffer, updateScissor, setViewport);\r\n\r\n return framebuffer;\r\n },\r\n\r\n /**\r\n * Restores the previous framebuffer from the fbo stack and sets it.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#restoreFramebuffer\r\n * @since 3.60.0\r\n *\r\n * @param {boolean} [updateScissor=false] - If a framebuffer is given, set the gl scissor to match the frame buffer size? Or, if `null` given, pop the scissor from the stack.\r\n * @param {boolean} [setViewport=true] - Should the WebGL viewport be set?\r\n */\r\n restoreFramebuffer: function (updateScissor, setViewport)\r\n {\r\n if (updateScissor === undefined) { updateScissor = false; }\r\n if (setViewport === undefined) { setViewport = true; }\r\n\r\n var fboStack = this.fboStack;\r\n\r\n var framebuffer = fboStack[fboStack.length - 1];\r\n\r\n if (!framebuffer)\r\n {\r\n framebuffer = null;\r\n }\r\n\r\n this.currentFramebuffer = null;\r\n\r\n this.setFramebuffer(framebuffer, updateScissor, setViewport);\r\n },\r\n\r\n /**\r\n * Binds a shader program.\r\n *\r\n * If there was a different program already bound it will force a pipeline flush first.\r\n *\r\n * If the same program given to this method is already set as the current program, no change\r\n * will take place and this method will return `false`.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#setProgram\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLProgramWrapper} program - The program that needs to be bound.\r\n *\r\n * @return {boolean} `true` if the given program was bound, otherwise `false`.\r\n */\r\n setProgram: function (program)\r\n {\r\n if (program !== this.currentProgram)\r\n {\r\n this.flush();\r\n\r\n this.gl.useProgram(program.webGLProgram);\r\n\r\n this.currentProgram = program;\r\n\r\n return true;\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Rebinds whatever program `WebGLRenderer.currentProgram` is set as, without\r\n * changing anything, or flushing.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#resetProgram\r\n * @since 3.50.0\r\n *\r\n * @return {this} This WebGLRenderer instance.\r\n */\r\n resetProgram: function ()\r\n {\r\n this.gl.useProgram(this.currentProgram.webGLProgramWrapper);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Creates a texture from an image source. If the source is not valid it creates an empty texture.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#createTextureFromSource\r\n * @since 3.0.0\r\n *\r\n * @param {object} source - The source of the texture.\r\n * @param {number} width - The width of the texture.\r\n * @param {number} height - The height of the texture.\r\n * @param {number} scaleMode - The scale mode to be used by the texture.\r\n * @param {boolean} [forceClamp=false] - Force the texture to use the CLAMP_TO_EDGE wrap mode, even if a power of two?\r\n *\r\n * @return {?Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} The WebGLTextureWrapper that was created, or `null` if it couldn't be created.\r\n */\r\n createTextureFromSource: function (source, width, height, scaleMode, forceClamp)\r\n {\r\n if (forceClamp === undefined) { forceClamp = false; }\r\n\r\n var gl = this.gl;\r\n var minFilter = gl.NEAREST;\r\n var magFilter = gl.NEAREST;\r\n var wrap = gl.CLAMP_TO_EDGE;\r\n var texture = null;\r\n\r\n width = source ? source.width : width;\r\n height = source ? source.height : height;\r\n\r\n var pow = IsSizePowerOfTwo(width, height);\r\n\r\n if (pow && !forceClamp)\r\n {\r\n wrap = gl.REPEAT;\r\n }\r\n\r\n if (scaleMode === CONST.ScaleModes.LINEAR && this.config.antialias)\r\n {\r\n var isCompressed = source && source.compressed;\r\n var isMip = (!isCompressed && pow) || (isCompressed && source.mipmaps.length > 1);\r\n\r\n // Filters above LINEAR only work with MIPmaps.\r\n // These are only generated for power of two (POT) textures.\r\n // Compressed textures with mipmaps are always POT,\r\n // but POT compressed textures might not have mipmaps.\r\n minFilter = (this.mipmapFilter && isMip) ? this.mipmapFilter : gl.LINEAR;\r\n magFilter = gl.LINEAR;\r\n }\r\n\r\n if (!source && typeof width === 'number' && typeof height === 'number')\r\n {\r\n texture = this.createTexture2D(0, minFilter, magFilter, wrap, wrap, gl.RGBA, null, width, height);\r\n }\r\n else\r\n {\r\n texture = this.createTexture2D(0, minFilter, magFilter, wrap, wrap, gl.RGBA, source);\r\n }\r\n\r\n return texture;\r\n },\r\n\r\n /**\r\n * A wrapper for creating a WebGLTextureWrapper. If no pixel data is passed it will create an empty texture.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#createTexture2D\r\n * @since 3.0.0\r\n *\r\n * @param {number} mipLevel - Mip level of the texture.\r\n * @param {number} minFilter - Filtering of the texture.\r\n * @param {number} magFilter - Filtering of the texture.\r\n * @param {number} wrapT - Wrapping mode of the texture.\r\n * @param {number} wrapS - Wrapping mode of the texture.\r\n * @param {number} format - Which format does the texture use.\r\n * @param {?object} pixels - pixel data.\r\n * @param {?number} width - Width of the texture in pixels. If not supplied, it must be derived from `pixels`.\r\n * @param {?number} height - Height of the texture in pixels. If not supplied, it must be derived from `pixels`.\r\n * @param {boolean} [pma=true] - Does the texture have premultiplied alpha?\r\n * @param {boolean} [forceSize=false] - If `true` it will use the width and height passed to this method, regardless of the pixels dimension.\r\n * @param {boolean} [flipY=false] - Sets the `UNPACK_FLIP_Y_WEBGL` flag the WebGL Texture uses during upload.\r\n *\r\n * @return {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} The WebGLTextureWrapper that was created.\r\n */\r\n createTexture2D: function (mipLevel, minFilter, magFilter, wrapT, wrapS, format, pixels, width, height, pma, forceSize, flipY)\r\n {\r\n if (typeof width !== 'number') { width = pixels ? pixels.width : 1; }\r\n if (typeof height !== 'number') { height = pixels ? pixels.height : 1; }\r\n\r\n var texture = new WebGLTextureWrapper(this.gl, mipLevel, minFilter, magFilter, wrapT, wrapS, format, pixels, width, height, pma, forceSize, flipY);\r\n\r\n this.glTextureWrappers.push(texture);\r\n\r\n return texture;\r\n },\r\n\r\n /**\r\n * Creates a WebGL Framebuffer object and optionally binds a depth stencil render buffer.\r\n *\r\n * This will unbind any currently bound framebuffer.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#createFramebuffer\r\n * @since 3.0.0\r\n *\r\n * @param {number} width - If `addDepthStencilBuffer` is true, this controls the width of the depth stencil.\r\n * @param {number} height - If `addDepthStencilBuffer` is true, this controls the height of the depth stencil.\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} renderTexture - The color texture where the color pixels are written.\r\n * @param {boolean} [addDepthStencilBuffer=false] - Create a Renderbuffer for the depth stencil?\r\n *\r\n * @return {Phaser.Renderer.WebGL.Wrappers.WebGLFramebufferWrapper} Wrapped framebuffer which is safe to use with the renderer.\r\n */\r\n createFramebuffer: function (width, height, renderTexture, addDepthStencilBuffer)\r\n {\r\n this.currentFramebuffer = null;\r\n var framebuffer = new WebGLFramebufferWrapper(this.gl, width, height, renderTexture, addDepthStencilBuffer);\r\n\r\n this.glFramebufferWrappers.push(framebuffer);\r\n\r\n return framebuffer;\r\n },\r\n\r\n /**\r\n * Binds necessary resources and renders the mask to a separated framebuffer.\r\n * The framebuffer for the masked object is also bound for further use.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#beginBitmapMask\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Display.Masks.BitmapMask} mask - The BitmapMask instance that called beginMask.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera rendering the current mask.\r\n */\r\n beginBitmapMask: function (bitmapMask, camera)\r\n {\r\n var gl = this.gl;\r\n\r\n if (gl)\r\n {\r\n this.flush();\r\n\r\n this.maskTarget.bind(true);\r\n\r\n if (this.currentCameraMask.mask !== bitmapMask)\r\n {\r\n this.currentMask.mask = bitmapMask;\r\n this.currentMask.camera = camera;\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Binds necessary resources and renders the mask to a separated framebuffer.\r\n * The framebuffer for the masked object is also bound for further use.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#drawBitmapMask\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Display.Masks.BitmapMask} mask - The BitmapMask instance that called beginMask.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera rendering the current mask.\r\n * @param {Phaser.Renderer.WebGL.Pipelines.BitmapMaskPipeline} bitmapMaskPipeline - The BitmapMask Pipeline instance that is requesting the draw.\r\n */\r\n drawBitmapMask: function (bitmapMask, camera, bitmapMaskPipeline)\r\n {\r\n // mask.mainFramebuffer should now contain all the Game Objects we want masked\r\n this.flush();\r\n\r\n this.maskSource.bind();\r\n\r\n this.setBlendMode(0, true);\r\n\r\n bitmapMask.renderWebGL(this, bitmapMask, camera);\r\n\r\n this.maskSource.unbind(true);\r\n this.maskTarget.unbind();\r\n\r\n // Is there a stencil further up the stack?\r\n var gl = this.gl;\r\n var prev = this.getCurrentStencilMask();\r\n\r\n if (prev)\r\n {\r\n gl.enable(gl.STENCIL_TEST);\r\n\r\n prev.mask.applyStencil(this, prev.camera, true);\r\n }\r\n else\r\n {\r\n this.currentMask.mask = null;\r\n }\r\n\r\n // Bind this pipeline and draw\r\n this.pipelines.set(bitmapMaskPipeline);\r\n\r\n gl.activeTexture(gl.TEXTURE0);\r\n gl.bindTexture(gl.TEXTURE_2D, this.maskTarget.texture.webGLTexture);\r\n\r\n gl.activeTexture(gl.TEXTURE1);\r\n gl.bindTexture(gl.TEXTURE_2D, this.maskSource.texture.webGLTexture);\r\n },\r\n\r\n /**\r\n * Creates a WebGLProgram instance based on the given vertex and fragment shader source.\r\n *\r\n * Then compiles, attaches and links the program before wrapping and returning it.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#createProgram\r\n * @since 3.0.0\r\n *\r\n * @param {string} vertexShader - The vertex shader source code as a single string.\r\n * @param {string} fragmentShader - The fragment shader source code as a single string.\r\n *\r\n * @return {Phaser.Renderer.WebGL.Wrappers.WebGLProgramWrapper} The wrapped, linked WebGLProgram created from the given shader source.\r\n */\r\n createProgram: function (vertexShader, fragmentShader)\r\n {\r\n var wrapper = new WebGLProgramWrapper(this.gl, vertexShader, fragmentShader);\r\n this.glProgramWrappers.push(wrapper);\r\n return wrapper;\r\n },\r\n\r\n /**\r\n * Wrapper for creating a vertex buffer.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#createVertexBuffer\r\n * @since 3.0.0\r\n *\r\n * @param {ArrayBuffer} initialDataOrSize - It's either ArrayBuffer or an integer indicating the size of the vbo\r\n * @param {number} bufferUsage - How the buffer is used. gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW\r\n *\r\n * @return {Phaser.Renderer.WebGL.Wrappers.WebGLBufferWrapper} Wrapped vertex buffer\r\n */\r\n createVertexBuffer: function (initialDataOrSize, bufferUsage)\r\n {\r\n var gl = this.gl;\r\n var vertexBuffer = new WebGLBufferWrapper(gl, initialDataOrSize, gl.ARRAY_BUFFER, bufferUsage);\r\n this.glBufferWrappers.push(vertexBuffer);\r\n return vertexBuffer;\r\n },\r\n\r\n /**\r\n * Creates a WebGLAttribLocationWrapper instance based on the given WebGLProgramWrapper and attribute name.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#createAttribLocation\r\n * @since 3.80.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLProgramWrapper} program - The WebGLProgramWrapper instance.\r\n * @param {string} name - The name of the attribute.\r\n */\r\n createAttribLocation: function (program, name)\r\n {\r\n var attrib = new WebGLAttribLocationWrapper(this.gl, program, name);\r\n this.glAttribLocationWrappers.push(attrib);\r\n return attrib;\r\n },\r\n\r\n /**\r\n * Creates a WebGLUniformLocationWrapper instance based on the given WebGLProgramWrapper and uniform name.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#createUniformLocation\r\n * @since 3.80.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLProgramWrapper} program - The WebGLProgramWrapper instance.\r\n * @param {string} name - The name of the uniform.\r\n */\r\n createUniformLocation: function (program, name)\r\n {\r\n var uniform = new WebGLUniformLocationWrapper(this.gl, program, name);\r\n this.glUniformLocationWrappers.push(uniform);\r\n return uniform;\r\n },\r\n\r\n /**\r\n * Wrapper for creating a vertex buffer.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#createIndexBuffer\r\n * @since 3.0.0\r\n *\r\n * @param {ArrayBuffer} initialDataOrSize - Either ArrayBuffer or an integer indicating the size of the vbo.\r\n * @param {number} bufferUsage - How the buffer is used. gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW.\r\n *\r\n * @return {Phaser.Renderer.WebGL.Wrappers.WebGLBufferWrapper} Wrapped index buffer\r\n */\r\n createIndexBuffer: function (initialDataOrSize, bufferUsage)\r\n {\r\n var gl = this.gl;\r\n var indexBuffer = new WebGLBufferWrapper(gl, initialDataOrSize, gl.ELEMENT_ARRAY_BUFFER, bufferUsage);\r\n this.glBufferWrappers.push(indexBuffer);\r\n return indexBuffer;\r\n },\r\n\r\n /**\r\n * Removes a texture from the GPU.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#deleteTexture\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} texture - The WebGL Texture to be deleted.\r\n *\r\n * @return {this} This WebGLRenderer instance.\r\n */\r\n deleteTexture: function (texture)\r\n {\r\n if (!texture)\r\n {\r\n return;\r\n }\r\n ArrayRemove(this.glTextureWrappers, texture);\r\n texture.destroy();\r\n return this;\r\n },\r\n\r\n /**\r\n * Deletes a Framebuffer from the GL instance.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#deleteFramebuffer\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Renderer.WebGL.Wrappers.WebGLFramebufferWrapper|null)} framebuffer - The Framebuffer to be deleted.\r\n *\r\n * @return {this} This WebGLRenderer instance.\r\n */\r\n deleteFramebuffer: function (framebuffer)\r\n {\r\n if (!framebuffer)\r\n {\r\n return this;\r\n }\r\n ArrayRemove(this.fboStack, framebuffer);\r\n ArrayRemove(this.glFramebufferWrappers, framebuffer);\r\n framebuffer.destroy();\r\n return this;\r\n },\r\n\r\n /**\r\n * Deletes a WebGLProgram from the GL instance.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#deleteProgram\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLProgramWrapper} program - The shader program to be deleted.\r\n *\r\n * @return {this} This WebGLRenderer instance.\r\n */\r\n deleteProgram: function (program)\r\n {\r\n if (program)\r\n {\r\n ArrayRemove(this.glProgramWrappers, program);\r\n program.destroy();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Deletes a WebGLAttribLocation from the GL instance.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#deleteAttribLocation\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLAttribLocationWrapper} attrib - The attrib location to be deleted.\r\n * @since 3.80.0\r\n */\r\n deleteAttribLocation: function (attrib)\r\n {\r\n if (attrib)\r\n {\r\n ArrayRemove(this.glAttribLocationWrappers, attrib);\r\n attrib.destroy();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Deletes a WebGLUniformLocation from the GL instance.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#deleteUniformLocation\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLUniformLocationWrapper} uniform - The uniform location to be deleted.\r\n * @since 3.80.0\r\n */\r\n deleteUniformLocation: function (uniform)\r\n {\r\n if (uniform)\r\n {\r\n ArrayRemove(this.glUniformLocationWrappers, uniform);\r\n uniform.destroy();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Deletes a WebGLBuffer from the GL instance.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#deleteBuffer\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLBufferWrapper} vertexBuffer - The WebGLBuffer to be deleted.\r\n *\r\n * @return {this} This WebGLRenderer instance.\r\n */\r\n deleteBuffer: function (buffer)\r\n {\r\n if (!buffer) { return this; }\r\n ArrayRemove(this.glBufferWrappers, buffer);\r\n buffer.destroy();\r\n return this;\r\n },\r\n\r\n /**\r\n * Controls the pre-render operations for the given camera.\r\n * Handles any clipping needed by the camera and renders the background color if a color is visible.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#preRenderCamera\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to pre-render.\r\n */\r\n preRenderCamera: function (camera)\r\n {\r\n var cx = camera.x;\r\n var cy = camera.y;\r\n var cw = camera.width;\r\n var ch = camera.height;\r\n\r\n var color = camera.backgroundColor;\r\n\r\n camera.emit(CameraEvents.PRE_RENDER, camera);\r\n\r\n this.pipelines.preBatchCamera(camera);\r\n\r\n this.pushScissor(cx, cy, cw, ch);\r\n\r\n if (camera.mask)\r\n {\r\n this.currentCameraMask.mask = camera.mask;\r\n this.currentCameraMask.camera = camera._maskCamera;\r\n\r\n camera.mask.preRenderWebGL(this, camera, camera._maskCamera);\r\n }\r\n\r\n if (color.alphaGL > 0)\r\n {\r\n var pipeline = this.pipelines.setMulti();\r\n\r\n pipeline.drawFillRect(\r\n cx, cy, cw, ch,\r\n Utils.getTintFromFloats(color.blueGL, color.greenGL, color.redGL, 1),\r\n color.alphaGL\r\n );\r\n }\r\n },\r\n\r\n /**\r\n * Return the current stencil mask.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#getCurrentStencilMask\r\n * @private\r\n * @since 3.50.0\r\n */\r\n getCurrentStencilMask: function ()\r\n {\r\n var prev = null;\r\n var stack = this.maskStack;\r\n var cameraMask = this.currentCameraMask;\r\n\r\n if (stack.length > 0)\r\n {\r\n prev = stack[stack.length - 1];\r\n }\r\n else if (cameraMask.mask && cameraMask.mask.isStencil)\r\n {\r\n prev = cameraMask;\r\n }\r\n\r\n return prev;\r\n },\r\n\r\n /**\r\n * Controls the post-render operations for the given camera.\r\n *\r\n * Renders the foreground camera effects like flash and fading, then resets the current scissor state.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#postRenderCamera\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to post-render.\r\n */\r\n postRenderCamera: function (camera)\r\n {\r\n var flashEffect = camera.flashEffect;\r\n var fadeEffect = camera.fadeEffect;\r\n\r\n if (flashEffect.isRunning || (fadeEffect.isRunning || fadeEffect.isComplete))\r\n {\r\n var pipeline = this.pipelines.setMulti();\r\n\r\n flashEffect.postRenderWebGL(pipeline, Utils.getTintFromFloats);\r\n fadeEffect.postRenderWebGL(pipeline, Utils.getTintFromFloats);\r\n }\r\n\r\n camera.dirty = false;\r\n\r\n this.popScissor();\r\n\r\n if (camera.mask)\r\n {\r\n this.currentCameraMask.mask = null;\r\n\r\n camera.mask.postRenderWebGL(this, camera._maskCamera);\r\n }\r\n\r\n this.pipelines.postBatchCamera(camera);\r\n\r\n camera.emit(CameraEvents.POST_RENDER, camera);\r\n },\r\n\r\n /**\r\n * Clears the current vertex buffer and updates pipelines.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#preRender\r\n * @fires Phaser.Renderer.Events#PRE_RENDER_CLEAR\r\n * @fires Phaser.Renderer.Events#PRE_RENDER\r\n * @since 3.0.0\r\n */\r\n preRender: function ()\r\n {\r\n if (this.contextLost) { return; }\r\n\r\n var gl = this.gl;\r\n\r\n // Make sure we are bound to the main frame buffer\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, null);\r\n\r\n this.emit(Events.PRE_RENDER_CLEAR);\r\n\r\n if (this.config.clearBeforeRender)\r\n {\r\n var clearColor = this.config.backgroundColor;\r\n\r\n gl.clearColor(clearColor.redGL, clearColor.greenGL, clearColor.blueGL, clearColor.alphaGL);\r\n\r\n gl.clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT | gl.STENCIL_BUFFER_BIT);\r\n }\r\n\r\n gl.enable(gl.SCISSOR_TEST);\r\n\r\n this.currentScissor = this.defaultScissor;\r\n\r\n this.scissorStack.length = 0;\r\n this.scissorStack.push(this.currentScissor);\r\n\r\n if (this.game.scene.customViewports)\r\n {\r\n gl.scissor(0, (this.drawingBufferHeight - this.height), this.width, this.height);\r\n }\r\n\r\n this.currentMask.mask = null;\r\n this.currentCameraMask.mask = null;\r\n this.maskStack.length = 0;\r\n\r\n this.emit(Events.PRE_RENDER);\r\n },\r\n\r\n /**\r\n * The core render step for a Scene Camera.\r\n *\r\n * Iterates through the given array of Game Objects and renders them with the given Camera.\r\n *\r\n * This is called by the `CameraManager.render` method. The Camera Manager instance belongs to a Scene, and is invoked\r\n * by the Scene Systems.render method.\r\n *\r\n * This method is not called if `Camera.visible` is `false`, or `Camera.alpha` is zero.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#render\r\n * @fires Phaser.Renderer.Events#RENDER\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to render.\r\n * @param {Phaser.GameObjects.GameObject[]} children - An array of filtered Game Objects that can be rendered by the given Camera.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Scene Camera to render with.\r\n */\r\n render: function (scene, children, camera)\r\n {\r\n if (this.contextLost) { return; }\r\n\r\n var childCount = children.length;\r\n\r\n this.emit(Events.RENDER, scene, camera);\r\n\r\n // Apply scissor for cam region + render background color, if not transparent\r\n this.preRenderCamera(camera);\r\n\r\n // Nothing to render, so bail out\r\n if (childCount === 0)\r\n {\r\n this.setBlendMode(CONST.BlendModes.NORMAL);\r\n\r\n // Applies camera effects and pops the scissor, if set\r\n this.postRenderCamera(camera);\r\n\r\n return;\r\n }\r\n\r\n // Reset the current type\r\n this.currentType = '';\r\n\r\n var current = this.currentMask;\r\n\r\n for (var i = 0; i < childCount; i++)\r\n {\r\n this.finalType = (i === childCount - 1);\r\n\r\n var child = children[i];\r\n\r\n var mask = child.mask;\r\n\r\n current = this.currentMask;\r\n\r\n if (current.mask && current.mask !== mask)\r\n {\r\n // Render out the previously set mask\r\n current.mask.postRenderWebGL(this, current.camera);\r\n }\r\n\r\n if (mask && current.mask !== mask)\r\n {\r\n mask.preRenderWebGL(this, child, camera);\r\n }\r\n\r\n if (child.blendMode !== this.currentBlendMode)\r\n {\r\n this.setBlendMode(child.blendMode);\r\n }\r\n\r\n var type = child.type;\r\n\r\n if (type !== this.currentType)\r\n {\r\n this.newType = true;\r\n this.currentType = type;\r\n }\r\n\r\n if (!this.finalType)\r\n {\r\n this.nextTypeMatch = (children[i + 1].type === this.currentType);\r\n }\r\n else\r\n {\r\n this.nextTypeMatch = false;\r\n }\r\n\r\n child.renderWebGL(this, child, camera);\r\n\r\n this.newType = false;\r\n }\r\n\r\n current = this.currentMask;\r\n\r\n if (current.mask)\r\n {\r\n // Render out the previously set mask, if it was the last item in the display list\r\n current.mask.postRenderWebGL(this, current.camera);\r\n }\r\n\r\n this.setBlendMode(CONST.BlendModes.NORMAL);\r\n\r\n // Applies camera effects and pops the scissor, if set\r\n this.postRenderCamera(camera);\r\n },\r\n\r\n /**\r\n * The post-render step happens after all Cameras in all Scenes have been rendered.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#postRender\r\n * @fires Phaser.Renderer.Events#POST_RENDER\r\n * @since 3.0.0\r\n */\r\n postRender: function ()\r\n {\r\n if (this.contextLost) { return; }\r\n\r\n this.flush();\r\n\r\n this.emit(Events.POST_RENDER);\r\n\r\n var state = this.snapshotState;\r\n\r\n if (state.callback)\r\n {\r\n WebGLSnapshot(this.gl, state);\r\n\r\n state.callback = null;\r\n }\r\n },\r\n\r\n /**\r\n * Disables the STENCIL_TEST but does not change the status\r\n * of the current stencil mask.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#clearStencilMask\r\n * @since 3.60.0\r\n */\r\n clearStencilMask: function ()\r\n {\r\n this.gl.disable(this.gl.STENCIL_TEST);\r\n },\r\n\r\n /**\r\n * Restores the current stencil function to the one that was in place\r\n * before `clearStencilMask` was called.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#restoreStencilMask\r\n * @since 3.60.0\r\n */\r\n restoreStencilMask: function ()\r\n {\r\n var gl = this.gl;\r\n\r\n var current = this.getCurrentStencilMask();\r\n\r\n if (current)\r\n {\r\n var mask = current.mask;\r\n\r\n gl.enable(gl.STENCIL_TEST);\r\n\r\n // colorMask + stencilOp(KEEP)\r\n\r\n if (mask.invertAlpha)\r\n {\r\n gl.stencilFunc(gl.NOTEQUAL, mask.level, 0xff);\r\n }\r\n else\r\n {\r\n gl.stencilFunc(gl.EQUAL, mask.level, 0xff);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Schedules a snapshot of the entire game viewport to be taken after the current frame is rendered.\r\n *\r\n * To capture a specific area see the `snapshotArea` method. To capture a specific pixel, see `snapshotPixel`.\r\n *\r\n * Only one snapshot can be active _per frame_. If you have already called `snapshotPixel`, for example, then\r\n * calling this method will override it.\r\n *\r\n * Snapshots work by using the WebGL `readPixels` feature to grab every pixel from the frame buffer into an ArrayBufferView.\r\n * It then parses this, copying the contents to a temporary Canvas and finally creating an Image object from it,\r\n * which is the image returned to the callback provided. All in all, this is a computationally expensive and blocking process,\r\n * which gets more expensive the larger the canvas size gets, so please be careful how you employ this in your game.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#snapshot\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Renderer.Snapshot.SnapshotCallback} callback - The Function to invoke after the snapshot image is created.\r\n * @param {string} [type='image/png'] - The format of the image to create, usually `image/png` or `image/jpeg`.\r\n * @param {number} [encoderOptions=0.92] - The image quality, between 0 and 1. Used for image formats with lossy compression, such as `image/jpeg`.\r\n *\r\n * @return {this} This WebGL Renderer.\r\n */\r\n snapshot: function (callback, type, encoderOptions)\r\n {\r\n return this.snapshotArea(0, 0, this.gl.drawingBufferWidth, this.gl.drawingBufferHeight, callback, type, encoderOptions);\r\n },\r\n\r\n /**\r\n * Schedules a snapshot of the given area of the game viewport to be taken after the current frame is rendered.\r\n *\r\n * To capture the whole game viewport see the `snapshot` method. To capture a specific pixel, see `snapshotPixel`.\r\n *\r\n * Only one snapshot can be active _per frame_. If you have already called `snapshotPixel`, for example, then\r\n * calling this method will override it.\r\n *\r\n * Snapshots work by using the WebGL `readPixels` feature to grab every pixel from the frame buffer into an ArrayBufferView.\r\n * It then parses this, copying the contents to a temporary Canvas and finally creating an Image object from it,\r\n * which is the image returned to the callback provided. All in all, this is a computationally expensive and blocking process,\r\n * which gets more expensive the larger the canvas size gets, so please be careful how you employ this in your game.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#snapshotArea\r\n * @since 3.16.0\r\n *\r\n * @param {number} x - The x coordinate to grab from. This is based on the game viewport, not the world.\r\n * @param {number} y - The y coordinate to grab from. This is based on the game viewport, not the world.\r\n * @param {number} width - The width of the area to grab.\r\n * @param {number} height - The height of the area to grab.\r\n * @param {Phaser.Types.Renderer.Snapshot.SnapshotCallback} callback - The Function to invoke after the snapshot image is created.\r\n * @param {string} [type='image/png'] - The format of the image to create, usually `image/png` or `image/jpeg`.\r\n * @param {number} [encoderOptions=0.92] - The image quality, between 0 and 1. Used for image formats with lossy compression, such as `image/jpeg`.\r\n *\r\n * @return {this} This WebGL Renderer.\r\n */\r\n snapshotArea: function (x, y, width, height, callback, type, encoderOptions)\r\n {\r\n var state = this.snapshotState;\r\n\r\n state.callback = callback;\r\n state.type = type;\r\n state.encoder = encoderOptions;\r\n state.getPixel = false;\r\n state.x = x;\r\n state.y = y;\r\n state.width = width;\r\n state.height = height;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Schedules a snapshot of the given pixel from the game viewport to be taken after the current frame is rendered.\r\n *\r\n * To capture the whole game viewport see the `snapshot` method. To capture a specific area, see `snapshotArea`.\r\n *\r\n * Only one snapshot can be active _per frame_. If you have already called `snapshotArea`, for example, then\r\n * calling this method will override it.\r\n *\r\n * Unlike the other two snapshot methods, this one will return a `Color` object containing the color data for\r\n * the requested pixel. It doesn't need to create an internal Canvas or Image object, so is a lot faster to execute,\r\n * using less memory.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#snapshotPixel\r\n * @since 3.16.0\r\n *\r\n * @param {number} x - The x coordinate of the pixel to get. This is based on the game viewport, not the world.\r\n * @param {number} y - The y coordinate of the pixel to get. This is based on the game viewport, not the world.\r\n * @param {Phaser.Types.Renderer.Snapshot.SnapshotCallback} callback - The Function to invoke after the snapshot pixel data is extracted.\r\n *\r\n * @return {this} This WebGL Renderer.\r\n */\r\n snapshotPixel: function (x, y, callback)\r\n {\r\n this.snapshotArea(x, y, 1, 1, callback);\r\n\r\n this.snapshotState.getPixel = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes a snapshot of the given area of the given frame buffer.\r\n *\r\n * Unlike the other snapshot methods, this one is processed immediately and doesn't wait for the next render.\r\n *\r\n * Snapshots work by using the WebGL `readPixels` feature to grab every pixel from the frame buffer into an ArrayBufferView.\r\n * It then parses this, copying the contents to a temporary Canvas and finally creating an Image object from it,\r\n * which is the image returned to the callback provided. All in all, this is a computationally expensive and blocking process,\r\n * which gets more expensive the larger the canvas size gets, so please be careful how you employ this in your game.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#snapshotFramebuffer\r\n * @since 3.19.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLFramebufferWrapper} framebuffer - The framebuffer to grab from.\r\n * @param {number} bufferWidth - The width of the framebuffer.\r\n * @param {number} bufferHeight - The height of the framebuffer.\r\n * @param {Phaser.Types.Renderer.Snapshot.SnapshotCallback} callback - The Function to invoke after the snapshot image is created.\r\n * @param {boolean} [getPixel=false] - Grab a single pixel as a Color object, or an area as an Image object?\r\n * @param {number} [x=0] - The x coordinate to grab from. This is based on the framebuffer, not the world.\r\n * @param {number} [y=0] - The y coordinate to grab from. This is based on the framebuffer, not the world.\r\n * @param {number} [width=bufferWidth] - The width of the area to grab.\r\n * @param {number} [height=bufferHeight] - The height of the area to grab.\r\n * @param {string} [type='image/png'] - The format of the image to create, usually `image/png` or `image/jpeg`.\r\n * @param {number} [encoderOptions=0.92] - The image quality, between 0 and 1. Used for image formats with lossy compression, such as `image/jpeg`.\r\n *\r\n * @return {this} This WebGL Renderer.\r\n */\r\n snapshotFramebuffer: function (framebuffer, bufferWidth, bufferHeight, callback, getPixel, x, y, width, height, type, encoderOptions)\r\n {\r\n if (getPixel === undefined) { getPixel = false; }\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (width === undefined) { width = bufferWidth; }\r\n if (height === undefined) { height = bufferHeight; }\r\n\r\n if (type === 'pixel')\r\n {\r\n getPixel = true;\r\n type = 'image/png';\r\n }\r\n\r\n var currentFramebuffer = this.currentFramebuffer;\r\n\r\n this.snapshotArea(x, y, width, height, callback, type, encoderOptions);\r\n\r\n var state = this.snapshotState;\r\n\r\n state.getPixel = getPixel;\r\n\r\n state.isFramebuffer = true;\r\n state.bufferWidth = bufferWidth;\r\n state.bufferHeight = bufferHeight;\r\n\r\n // Ensure they're not trying to grab an area larger than the framebuffer\r\n state.width = Math.min(state.width, bufferWidth);\r\n state.height = Math.min(state.height, bufferHeight);\r\n\r\n this.setFramebuffer(framebuffer);\r\n\r\n WebGLSnapshot(this.gl, state);\r\n\r\n this.setFramebuffer(currentFramebuffer);\r\n\r\n state.callback = null;\r\n state.isFramebuffer = false;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Creates a new WebGL Texture based on the given Canvas Element.\r\n *\r\n * If the `dstTexture` parameter is given, the WebGL Texture is updated, rather than created fresh.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#canvasToTexture\r\n * @since 3.0.0\r\n *\r\n * @param {HTMLCanvasElement} srcCanvas - The Canvas to create the WebGL Texture from\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} [dstTexture] - The destination WebGLTextureWrapper to set.\r\n * @param {boolean} [noRepeat=false] - Should this canvas be allowed to set `REPEAT` (such as for Text objects?)\r\n * @param {boolean} [flipY=false] - Should the WebGL Texture set `UNPACK_MULTIPLY_FLIP_Y`?\r\n *\r\n * @return {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} The newly created, or updated, WebGLTextureWrapper.\r\n */\r\n canvasToTexture: function (srcCanvas, dstTexture, noRepeat, flipY)\r\n {\r\n if (noRepeat === undefined) { noRepeat = false; }\r\n if (flipY === undefined) { flipY = false; }\r\n\r\n var gl = this.gl;\r\n var minFilter = gl.NEAREST;\r\n var magFilter = gl.NEAREST;\r\n\r\n var width = srcCanvas.width;\r\n var height = srcCanvas.height;\r\n\r\n var wrapping = gl.CLAMP_TO_EDGE;\r\n\r\n var pow = IsSizePowerOfTwo(width, height);\r\n\r\n if (!noRepeat && pow)\r\n {\r\n wrapping = gl.REPEAT;\r\n }\r\n\r\n if (this.config.antialias)\r\n {\r\n minFilter = (pow && this.mipmapFilter) ? this.mipmapFilter : gl.LINEAR;\r\n magFilter = gl.LINEAR;\r\n }\r\n\r\n if (!dstTexture)\r\n {\r\n return this.createTexture2D(0, minFilter, magFilter, wrapping, wrapping, gl.RGBA, srcCanvas, width, height, true, false, flipY);\r\n }\r\n else\r\n {\r\n dstTexture.update(srcCanvas, width, height, flipY, wrapping, wrapping, minFilter, magFilter, dstTexture.format);\r\n\r\n return dstTexture;\r\n }\r\n },\r\n\r\n /**\r\n * Creates a new WebGL Texture based on the given Canvas Element.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#createCanvasTexture\r\n * @since 3.20.0\r\n *\r\n * @param {HTMLCanvasElement} srcCanvas - The Canvas to create the WebGL Texture from.\r\n * @param {boolean} [noRepeat=false] - Should this canvas be allowed to set `REPEAT` (such as for Text objects?)\r\n * @param {boolean} [flipY=false] - Should the WebGL Texture set `UNPACK_MULTIPLY_FLIP_Y`?\r\n *\r\n * @return {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} The newly created WebGLTextureWrapper.\r\n */\r\n createCanvasTexture: function (srcCanvas, noRepeat, flipY)\r\n {\r\n if (noRepeat === undefined) { noRepeat = false; }\r\n if (flipY === undefined) { flipY = false; }\r\n\r\n return this.canvasToTexture(srcCanvas, null, noRepeat, flipY);\r\n },\r\n\r\n /**\r\n * Updates a WebGL Texture based on the given Canvas Element.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#updateCanvasTexture\r\n * @since 3.20.0\r\n *\r\n * @param {HTMLCanvasElement} srcCanvas - The Canvas to update the WebGL Texture from.\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} dstTexture - The destination WebGLTextureWrapper to update.\r\n * @param {boolean} [flipY=false] - Should the WebGL Texture set `UNPACK_MULTIPLY_FLIP_Y`?\r\n * @param {boolean} [noRepeat=false] - Should this canvas be allowed to set `REPEAT` (such as for Text objects?)\r\n *\r\n * @return {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} The updated WebGLTextureWrapper. This is the same wrapper object as `dstTexture`.\r\n */\r\n updateCanvasTexture: function (srcCanvas, dstTexture, flipY, noRepeat)\r\n {\r\n if (flipY === undefined) { flipY = false; }\r\n if (noRepeat === undefined) { noRepeat = false; }\r\n\r\n return this.canvasToTexture(srcCanvas, dstTexture, noRepeat, flipY);\r\n },\r\n\r\n /**\r\n * Creates or updates a WebGL Texture based on the given HTML Video Element.\r\n *\r\n * If the `dstTexture` parameter is given, the WebGL Texture is updated, rather than created fresh.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#videoToTexture\r\n * @since 3.85.0\r\n *\r\n * @param {HTMLVideoElement} srcVideo - The Video to create the WebGL Texture from\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} [dstTexture] - The destination WebGLTextureWrapper to set.\r\n * @param {boolean} [noRepeat=false] - Should this canvas be allowed to set `REPEAT`?\r\n * @param {boolean} [flipY=false] - Should the WebGL Texture set `UNPACK_MULTIPLY_FLIP_Y`?\r\n *\r\n * @return {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} The newly created, or updated, WebGLTextureWrapper.\r\n */\r\n videoToTexture: function (srcVideo, dstTexture, noRepeat, flipY)\r\n {\r\n if (noRepeat === undefined) { noRepeat = false; }\r\n if (flipY === undefined) { flipY = false; }\r\n\r\n var gl = this.gl;\r\n var minFilter = gl.NEAREST;\r\n var magFilter = gl.NEAREST;\r\n\r\n var width = srcVideo.videoWidth;\r\n var height = srcVideo.videoHeight;\r\n\r\n var wrapping = gl.CLAMP_TO_EDGE;\r\n\r\n var pow = IsSizePowerOfTwo(width, height);\r\n\r\n if (!noRepeat && pow)\r\n {\r\n wrapping = gl.REPEAT;\r\n }\r\n\r\n if (this.config.antialias)\r\n {\r\n minFilter = (pow && this.mipmapFilter) ? this.mipmapFilter : gl.LINEAR;\r\n magFilter = gl.LINEAR;\r\n }\r\n\r\n if (!dstTexture)\r\n {\r\n return this.createTexture2D(0, minFilter, magFilter, wrapping, wrapping, gl.RGBA, srcVideo, width, height, true, true, flipY);\r\n }\r\n else\r\n {\r\n dstTexture.update(srcVideo, width, height, flipY, wrapping, wrapping, minFilter, magFilter, dstTexture.format);\r\n\r\n return dstTexture;\r\n }\r\n },\r\n\r\n /**\r\n * Creates a new WebGL Texture based on the given HTML Video Element.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#createVideoTexture\r\n * @since 3.20.0\r\n *\r\n * @param {HTMLVideoElement} srcVideo - The Video to create the WebGL Texture from\r\n * @param {boolean} [noRepeat=false] - Should this canvas be allowed to set `REPEAT`?\r\n * @param {boolean} [flipY=false] - Should the WebGL Texture set `UNPACK_MULTIPLY_FLIP_Y`?\r\n *\r\n * @return {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} The newly created WebGLTextureWrapper.\r\n */\r\n createVideoTexture: function (srcVideo, noRepeat, flipY)\r\n {\r\n if (noRepeat === undefined) { noRepeat = false; }\r\n if (flipY === undefined) { flipY = false; }\r\n\r\n return this.videoToTexture(srcVideo, null, noRepeat, flipY);\r\n },\r\n\r\n /**\r\n * Updates a WebGL Texture based on the given HTML Video Element.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#updateVideoTexture\r\n * @since 3.20.0\r\n *\r\n * @param {HTMLVideoElement} srcVideo - The Video to update the WebGL Texture with.\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} dstTexture - The destination WebGLTextureWrapper to update.\r\n * @param {boolean} [flipY=false] - Should the WebGL Texture set `UNPACK_MULTIPLY_FLIP_Y`?\r\n * @param {boolean} [noRepeat=false] - Should this canvas be allowed to set `REPEAT`?\r\n *\r\n * @return {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} The updated WebGLTextureWrapper. This is the same wrapper object as `dstTexture`.\r\n */\r\n updateVideoTexture: function (srcVideo, dstTexture, flipY, noRepeat)\r\n {\r\n if (flipY === undefined) { flipY = false; }\r\n if (noRepeat === undefined) { noRepeat = false; }\r\n\r\n return this.videoToTexture(srcVideo, dstTexture, noRepeat, flipY);\r\n },\r\n\r\n /**\r\n * Create a WebGLTexture from a Uint8Array.\r\n *\r\n * The Uint8Array is assumed to be RGBA values, one byte per color component.\r\n *\r\n * The texture will be filtered with `gl.NEAREST` and will not be mipped.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#createUint8ArrayTexture\r\n * @since 3.80.0\r\n * @param {Uint8Array} data - The Uint8Array to create the texture from.\r\n * @param {number} width - The width of the texture.\r\n * @param {number} height - The height of the texture.\r\n * @return {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} The newly created WebGLTextureWrapper.\r\n */\r\n createUint8ArrayTexture: function (data, width, height)\r\n {\r\n var gl = this.gl;\r\n var minFilter = gl.NEAREST;\r\n var magFilter = gl.NEAREST;\r\n var wrap = gl.CLAMP_TO_EDGE;\r\n\r\n var pow = IsSizePowerOfTwo(width, height);\r\n\r\n if (pow)\r\n {\r\n wrap = gl.REPEAT;\r\n }\r\n\r\n return this.createTexture2D(0, minFilter, magFilter, wrap, wrap, gl.RGBA, data, width, height);\r\n },\r\n\r\n /**\r\n * Sets the minification and magnification filter for a texture.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#setTextureFilter\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} texture - The texture to set the filter for.\r\n * @param {number} filter - The filter to set. 0 for linear filtering, 1 for nearest neighbor (blocky) filtering.\r\n *\r\n * @return {this} This WebGL Renderer instance.\r\n */\r\n setTextureFilter: function (texture, filter)\r\n {\r\n var gl = this.gl;\r\n\r\n var glFilter = (filter === 0) ? gl.LINEAR : gl.NEAREST;\r\n\r\n gl.activeTexture(gl.TEXTURE0);\r\n\r\n var currentTexture = gl.getParameter(gl.TEXTURE_BINDING_2D);\r\n\r\n gl.bindTexture(gl.TEXTURE_2D, texture.webGLTexture);\r\n\r\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, glFilter);\r\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, glFilter);\r\n\r\n // Update wrapper.\r\n texture.minFilter = glFilter;\r\n texture.magFilter = glFilter;\r\n\r\n if (currentTexture)\r\n {\r\n gl.bindTexture(gl.TEXTURE_2D, currentTexture);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns the largest texture size (either width or height) that can be created.\r\n * Note that VRAM may not allow a texture of any given size, it just expresses\r\n * hardware / driver support for a given size.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#getMaxTextureSize\r\n * @since 3.8.0\r\n *\r\n * @return {number} The maximum supported texture size.\r\n */\r\n getMaxTextureSize: function ()\r\n {\r\n return this.config.maxTextureSize;\r\n },\r\n\r\n /**\r\n * Destroy this WebGLRenderer, cleaning up all related resources such as pipelines, native textures, etc.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.canvas.removeEventListener('webglcontextlost', this.contextLostHandler, false);\r\n\r\n this.canvas.removeEventListener('webglcontextrestored', this.contextRestoredHandler, false);\r\n\r\n var wrapperDestroy = function (wrapper)\r\n {\r\n wrapper.destroy();\r\n };\r\n ArrayEach(this.glAttribLocationWrappers, wrapperDestroy);\r\n ArrayEach(this.glBufferWrappers, wrapperDestroy);\r\n ArrayEach(this.glFramebufferWrappers, wrapperDestroy);\r\n ArrayEach(this.glProgramWrappers, wrapperDestroy);\r\n ArrayEach(this.glTextureWrappers, wrapperDestroy);\r\n ArrayEach(this.glUniformLocationWrappers, wrapperDestroy);\r\n\r\n this.maskTarget.destroy();\r\n this.maskSource.destroy();\r\n\r\n this.pipelines.destroy();\r\n\r\n this.removeAllListeners();\r\n\r\n this.fboStack = [];\r\n this.maskStack = [];\r\n this.extensions = {};\r\n this.textureIndexes = [];\r\n\r\n this.gl = null;\r\n this.game = null;\r\n this.canvas = null;\r\n this.contextLost = true;\r\n this.currentMask = null;\r\n this.currentCameraMask = null;\r\n\r\n if (DEBUG)\r\n {\r\n this.spector = null;\r\n }\r\n }\r\n\r\n});\r\n\r\nmodule.exports = WebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 38683:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar ArrayEach = __webpack_require__(95428);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar WEBGL_CONST = __webpack_require__(14500);\r\n\r\n/**\r\n * @classdesc\r\n * Instances of the WebGLShader class belong to the WebGL Pipeline classes. When the pipeline is\r\n * created it will create an instance of this class for each one of its shaders, as defined in\r\n * the pipeline configuration.\r\n *\r\n * This class encapsulates everything needed to manage a shader in a pipeline, including the\r\n * shader attributes and uniforms, as well as lots of handy methods such as `set2f`, for setting\r\n * uniform values on this shader.\r\n *\r\n * Typically, you do not create an instance of this class directly, as it works in unison with\r\n * the pipeline to which it belongs. You can gain access to this class via a pipeline's `shaders`\r\n * array, post-creation.\r\n *\r\n * @class WebGLShader\r\n * @memberof Phaser.Renderer.WebGL\r\n * @constructor\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLPipeline} pipeline - The WebGLPipeline to which this Shader belongs.\r\n * @param {string} name - The name of this Shader.\r\n * @param {string} vertexShader - The vertex shader source code as a single string.\r\n * @param {string} fragmentShader - The fragment shader source code as a single string.\r\n * @param {Phaser.Types.Renderer.WebGL.WebGLPipelineAttributeConfig[]} attributes - An array of attributes.\r\n */\r\nvar WebGLShader = new Class({\r\n\r\n initialize:\r\n\r\n function WebGLShader (pipeline, name, vertexShader, fragmentShader, attributes)\r\n {\r\n /**\r\n * A reference to the WebGLPipeline that owns this Shader.\r\n *\r\n * A Shader class can only belong to a single pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLShader#pipeline\r\n * @type {Phaser.Renderer.WebGL.WebGLPipeline}\r\n * @since 3.50.0\r\n */\r\n this.pipeline = pipeline;\r\n\r\n /**\r\n * The name of this shader.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLShader#name\r\n * @type {string}\r\n * @since 3.50.0\r\n */\r\n this.name = name;\r\n\r\n /**\r\n * A reference to the WebGLRenderer instance.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLShader#renderer\r\n * @type {Phaser.Renderer.WebGL.WebGLRenderer}\r\n * @since 3.50.0\r\n */\r\n this.renderer = pipeline.renderer;\r\n\r\n /**\r\n * A reference to the WebGL Rendering Context the WebGL Renderer is using.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLShader#gl\r\n * @type {WebGLRenderingContext}\r\n * @since 3.50.0\r\n */\r\n this.gl = this.renderer.gl;\r\n\r\n /**\r\n * The fragment shader source code.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLShader#fragSrc\r\n * @type {string}\r\n * @since 3.60.0\r\n */\r\n this.fragSrc = fragmentShader;\r\n\r\n /**\r\n * The vertex shader source code.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLShader#vertSrc\r\n * @type {string}\r\n * @since 3.60.0\r\n */\r\n this.vertSrc = vertexShader;\r\n\r\n /**\r\n * The WebGLProgram created from the vertex and fragment shaders.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLShader#program\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLProgramWrapper}\r\n * @since 3.50.0\r\n */\r\n this.program = this.renderer.createProgram(vertexShader, fragmentShader);\r\n\r\n /**\r\n * Array of objects that describe the vertex attributes.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLShader#attributes\r\n * @type {Phaser.Types.Renderer.WebGL.WebGLPipelineAttribute[]}\r\n * @since 3.50.0\r\n */\r\n this.attributes;\r\n\r\n /**\r\n * The amount of vertex attribute components of 32 bit length.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLShader#vertexComponentCount\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.vertexComponentCount = 0;\r\n\r\n /**\r\n * The size, in bytes, of a single vertex.\r\n *\r\n * This is derived by adding together all of the vertex attributes.\r\n *\r\n * For example, the Multi Pipeline has the following attributes:\r\n *\r\n * inPosition - (size 2 x gl.FLOAT) = 8\r\n * inTexCoord - (size 2 x gl.FLOAT) = 8\r\n * inTexId - (size 1 x gl.FLOAT) = 4\r\n * inTintEffect - (size 1 x gl.FLOAT) = 4\r\n * inTint - (size 4 x gl.UNSIGNED_BYTE) = 4\r\n *\r\n * The total, in this case, is 8 + 8 + 4 + 4 + 4 = 28.\r\n *\r\n * This is calculated automatically during the `createAttributes` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLShader#vertexSize\r\n * @type {number}\r\n * @readonly\r\n * @since 3.50.0\r\n */\r\n this.vertexSize = 0;\r\n\r\n /**\r\n * The active uniforms that this shader has.\r\n *\r\n * This is an object that maps the uniform names to their WebGL location and cached values.\r\n *\r\n * It is populated automatically via the `createUniforms` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.WebGLShader#uniforms\r\n * @type {Phaser.Types.Renderer.WebGL.WebGLPipelineUniformsConfig}\r\n * @since 3.50.0\r\n */\r\n this.uniforms = {};\r\n\r\n this.createAttributes(attributes);\r\n this.createUniforms();\r\n },\r\n\r\n /**\r\n * Takes the vertex attributes config and parses it, creating the resulting array that is stored\r\n * in this shaders `attributes` property, calculating the offset, normalization and location\r\n * in the process.\r\n *\r\n * Calling this method resets `WebGLShader.attributes`, `WebGLShader.vertexSize` and\r\n * `WebGLShader.vertexComponentCount`.\r\n *\r\n * It is called automatically when this class is created, but can be called manually if required.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#createAttributes\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Types.Renderer.WebGL.WebGLPipelineAttributeConfig[]} attributes - An array of attributes configs.\r\n */\r\n createAttributes: function (attributes)\r\n {\r\n var count = 0;\r\n var offset = 0;\r\n var result = [];\r\n\r\n this.vertexComponentCount = 0;\r\n\r\n for (var i = 0; i < attributes.length; i++)\r\n {\r\n var element = attributes[i];\r\n\r\n var name = element.name;\r\n var size = GetFastValue(element, 'size', 1); // i.e. 1 for a float, 2 for a vec2, 4 for a vec4, etc\r\n var glType = GetFastValue(element, 'type', WEBGL_CONST.FLOAT);\r\n var type = glType.enum; // The GLenum\r\n var typeSize = glType.size; // The size in bytes of the type\r\n\r\n var normalized = (element.normalized) ? true : false;\r\n\r\n result.push({\r\n name: name,\r\n size: size,\r\n type: type,\r\n normalized: normalized,\r\n offset: offset,\r\n enabled: false,\r\n location: -1\r\n });\r\n\r\n if (typeSize === 4)\r\n {\r\n count += size;\r\n }\r\n else\r\n {\r\n count++;\r\n }\r\n\r\n offset += size * typeSize;\r\n }\r\n\r\n this.vertexSize = offset;\r\n this.vertexComponentCount = count;\r\n this.attributes = result;\r\n },\r\n\r\n /**\r\n * Sets the program this shader uses as being the active shader in the WebGL Renderer.\r\n *\r\n * This method is called every time the parent pipeline is made the current active pipeline.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#bind\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [setAttributes=false] - Should the vertex attribute pointers be set?\r\n * @param {boolean} [flush=false] - Flush the pipeline before binding this shader?\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n bind: function (setAttributes, flush)\r\n {\r\n if (setAttributes === undefined) { setAttributes = false; }\r\n if (flush === undefined) { flush = false; }\r\n\r\n if (flush)\r\n {\r\n this.pipeline.flush();\r\n }\r\n\r\n this.renderer.setProgram(this.program);\r\n\r\n if (setAttributes)\r\n {\r\n this.setAttribPointers();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the program this shader uses as being the active shader in the WebGL Renderer.\r\n *\r\n * Then resets all of the attribute pointers.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#rebind\r\n * @since 3.50.0\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n rebind: function ()\r\n {\r\n this.renderer.setProgram(this.program);\r\n\r\n this.setAttribPointers(true);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the vertex attribute pointers.\r\n *\r\n * This should only be called after the vertex buffer has been bound.\r\n *\r\n * It is called automatically during the `bind` method.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#setAttribPointers\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [reset=false] - Reset the vertex attribute locations?\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n setAttribPointers: function (reset)\r\n {\r\n if (reset === undefined) { reset = false; }\r\n\r\n var gl = this.gl;\r\n var renderer = this.renderer;\r\n var vertexSize = this.vertexSize;\r\n var attributes = this.attributes;\r\n var program = this.program;\r\n\r\n for (var i = 0; i < attributes.length; i++)\r\n {\r\n var element = attributes[i];\r\n\r\n var size = element.size;\r\n var type = element.type;\r\n var offset = element.offset;\r\n var enabled = element.enabled;\r\n var location = element.location;\r\n var normalized = (element.normalized) ? true : false;\r\n\r\n if (reset)\r\n {\r\n if (location !== -1)\r\n {\r\n renderer.deleteAttribLocation(location);\r\n }\r\n var attribLocation = this.renderer.createAttribLocation(program, element.name);\r\n\r\n if (attribLocation.webGLAttribLocation >= 0)\r\n {\r\n gl.enableVertexAttribArray(attribLocation.webGLAttribLocation);\r\n\r\n gl.vertexAttribPointer(attribLocation.webGLAttribLocation, size, type, normalized, vertexSize, offset);\r\n\r\n element.enabled = true;\r\n element.location = attribLocation;\r\n }\r\n else if (attribLocation.webGLAttribLocation !== -1)\r\n {\r\n gl.disableVertexAttribArray(attribLocation.webGLAttribLocation);\r\n }\r\n }\r\n else if (enabled)\r\n {\r\n gl.vertexAttribPointer(location.webGLAttribLocation, size, type, normalized, vertexSize, offset);\r\n }\r\n else if (!enabled && location !== -1 && location.webGLAttribLocation > -1)\r\n {\r\n gl.disableVertexAttribArray(location.webGLAttribLocation);\r\n\r\n element.location = -1;\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets up the `WebGLShader.uniforms` object, populating it with the names\r\n * and locations of the shader uniforms this shader requires.\r\n *\r\n * It works by first calling `gl.getProgramParameter(program.webGLProgram, gl.ACTIVE_UNIFORMS)` to\r\n * find out how many active uniforms this shader has. It then iterates through them,\r\n * calling `gl.getActiveUniform` to get the WebGL Active Info from each one. Finally,\r\n * the name and location are stored in the local array.\r\n *\r\n * This method is called automatically when this class is created.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#createUniforms\r\n * @since 3.50.0\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n createUniforms: function ()\r\n {\r\n var gl = this.gl;\r\n var program = this.program;\r\n var uniforms = this.uniforms;\r\n\r\n var i;\r\n var name;\r\n var location;\r\n\r\n // Look-up all active uniforms\r\n\r\n var totalUniforms = gl.getProgramParameter(program.webGLProgram, gl.ACTIVE_UNIFORMS);\r\n\r\n for (i = 0; i < totalUniforms; i++)\r\n {\r\n var info = gl.getActiveUniform(program.webGLProgram, i);\r\n\r\n if (info)\r\n {\r\n name = info.name;\r\n\r\n location = this.renderer.createUniformLocation(program, name);\r\n\r\n if (location !== null)\r\n {\r\n uniforms[name] =\r\n {\r\n name: name,\r\n location: location,\r\n setter: null,\r\n value1: null,\r\n value2: null,\r\n value3: null,\r\n value4: null\r\n };\r\n }\r\n\r\n // If the uniform name contains [] for an array struct,\r\n // we'll add an entry for the non-struct name as well.\r\n // Such as uMainSampler[12] = uMainSampler\r\n\r\n var struct = name.indexOf('[');\r\n\r\n if (struct > 0)\r\n {\r\n name = name.substr(0, struct);\r\n\r\n if (!uniforms.hasOwnProperty(name))\r\n {\r\n location = this.renderer.createUniformLocation(program, name);\r\n\r\n if (location !== null)\r\n {\r\n uniforms[name] =\r\n {\r\n name: name,\r\n location: location,\r\n setter: null,\r\n value1: null,\r\n value2: null,\r\n value3: null,\r\n value4: null\r\n };\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Repopulate uniforms on the GPU.\r\n * \r\n * This is called automatically by the pipeline when the context is\r\n * lost and then recovered. By the time this method is called,\r\n * the WebGL resources are already recreated, so we just need to\r\n * re-populate them.\r\n * \r\n * @method Phaser.Renderer.WebGL.WebGLShader#syncUniforms\r\n * @since 3.80.0\r\n */\r\n syncUniforms: function ()\r\n {\r\n var gl = this.gl;\r\n this.renderer.setProgram(this.program);\r\n for (var name in this.uniforms)\r\n {\r\n var uniform = this.uniforms[name];\r\n\r\n // A uniform that hasn't been set doesn't need to be synced.\r\n if (uniform.setter)\r\n {\r\n uniform.setter.call(gl, uniform.location.webGLUniformLocation, uniform.value1, uniform.value2, uniform.value3, uniform.value4);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Checks to see if the given uniform name exists and is active in this shader.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#hasUniform\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to check for.\r\n *\r\n * @return {boolean} `true` if the uniform exists, otherwise `false`.\r\n */\r\n hasUniform: function (name)\r\n {\r\n return this.uniforms.hasOwnProperty(name);\r\n },\r\n\r\n /**\r\n * Resets the cached values of the given uniform.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#resetUniform\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to reset.\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n resetUniform: function (name)\r\n {\r\n var uniform = this.uniforms[name];\r\n\r\n if (uniform)\r\n {\r\n uniform.value1 = null;\r\n uniform.value2 = null;\r\n uniform.value3 = null;\r\n uniform.value4 = null;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the given uniform value/s based on the name and GL function.\r\n *\r\n * This method is called internally by other methods such as `set1f` and `set3iv`.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#setUniform1\r\n * @since 3.50.0\r\n *\r\n * @param {function} setter - The GL function to call.\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {(boolean|number|number[]|Float32Array)} value1 - The new value of the uniform.\r\n * @param {boolean} [skipCheck=false] - Skip the value comparison?\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n setUniform1: function (setter, name, value1, skipCheck)\r\n {\r\n var uniform = this.uniforms[name];\r\n\r\n if (!uniform)\r\n {\r\n return this;\r\n }\r\n\r\n if (skipCheck || uniform.value1 !== value1)\r\n {\r\n if (!uniform.setter)\r\n {\r\n uniform.setter = setter;\r\n }\r\n\r\n uniform.value1 = value1;\r\n\r\n this.renderer.setProgram(this.program);\r\n\r\n setter.call(this.gl, uniform.location.webGLUniformLocation, value1);\r\n\r\n this.pipeline.currentShader = this;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the given uniform value/s based on the name and GL function.\r\n *\r\n * This method is called internally by other methods such as `set1f` and `set3iv`.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#setUniform2\r\n * @since 3.50.0\r\n *\r\n * @param {function} setter - The GL function to call.\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {(boolean|number|number[]|Float32Array)} value1 - The new value of the uniform.\r\n * @param {(boolean|number|number[]|Float32Array)} value2 - The new value of the uniform.\r\n * @param {boolean} [skipCheck=false] - Skip the value comparison?\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n setUniform2: function (setter, name, value1, value2, skipCheck)\r\n {\r\n var uniform = this.uniforms[name];\r\n\r\n if (!uniform)\r\n {\r\n return this;\r\n }\r\n\r\n if (skipCheck || uniform.value1 !== value1 || uniform.value2 !== value2)\r\n {\r\n if (!uniform.setter)\r\n {\r\n uniform.setter = setter;\r\n }\r\n\r\n uniform.value1 = value1;\r\n uniform.value2 = value2;\r\n\r\n this.renderer.setProgram(this.program);\r\n\r\n setter.call(this.gl, uniform.location.webGLUniformLocation, value1, value2);\r\n\r\n this.pipeline.currentShader = this;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the given uniform value/s based on the name and GL function.\r\n *\r\n * This method is called internally by other methods such as `set1f` and `set3iv`.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#setUniform3\r\n * @since 3.50.0\r\n *\r\n * @param {function} setter - The GL function to call.\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {(boolean|number|number[]|Float32Array)} value1 - The new value of the uniform.\r\n * @param {(boolean|number|number[]|Float32Array)} value2 - The new value of the uniform.\r\n * @param {(boolean|number|number[]|Float32Array)} value3 - The new value of the uniform.\r\n * @param {boolean} [skipCheck=false] - Skip the value comparison?\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n setUniform3: function (setter, name, value1, value2, value3, skipCheck)\r\n {\r\n var uniform = this.uniforms[name];\r\n\r\n if (!uniform)\r\n {\r\n return this;\r\n }\r\n\r\n if (skipCheck || uniform.value1 !== value1 || uniform.value2 !== value2 || uniform.value3 !== value3)\r\n {\r\n if (!uniform.setter)\r\n {\r\n uniform.setter = setter;\r\n }\r\n\r\n uniform.value1 = value1;\r\n uniform.value2 = value2;\r\n uniform.value3 = value3;\r\n\r\n this.renderer.setProgram(this.program);\r\n\r\n setter.call(this.gl, uniform.location.webGLUniformLocation, value1, value2, value3);\r\n\r\n this.pipeline.currentShader = this;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the given uniform value/s based on the name and GL function.\r\n *\r\n * This method is called internally by other methods such as `set1f` and `set3iv`.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#setUniform4\r\n * @since 3.50.0\r\n *\r\n * @param {function} setter - The GL function to call.\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {(boolean|number|number[]|Float32Array)} value1 - The new value of the uniform.\r\n * @param {(boolean|number|number[]|Float32Array)} value2 - The new value of the uniform.\r\n * @param {(boolean|number|number[]|Float32Array)} value3 - The new value of the uniform.\r\n * @param {(boolean|number|number[]|Float32Array)} value4 - The new value of the uniform.\r\n * @param {boolean} [skipCheck=false] - Skip the value comparison?\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n setUniform4: function (setter, name, value1, value2, value3, value4, skipCheck)\r\n {\r\n var uniform = this.uniforms[name];\r\n\r\n if (!uniform)\r\n {\r\n return this;\r\n }\r\n\r\n if (skipCheck || uniform.value1 !== value1 || uniform.value2 !== value2 || uniform.value3 !== value3 || uniform.value4 !== value4)\r\n {\r\n if (!uniform.setter)\r\n {\r\n uniform.setter = setter;\r\n }\r\n\r\n uniform.value1 = value1;\r\n uniform.value2 = value2;\r\n uniform.value3 = value3;\r\n uniform.value4 = value4;\r\n\r\n this.renderer.setProgram(this.program);\r\n\r\n setter.call(this.gl, uniform.location.webGLUniformLocation, value1, value2, value3, value4);\r\n\r\n this.pipeline.currentShader = this;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a boolean uniform value based on the given name on this shader.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#setBoolean\r\n * @since 3.60.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {boolean} value - The new value of the `boolean` uniform.\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n setBoolean: function (name, value)\r\n {\r\n return this.setUniform1(this.gl.uniform1i, name, Number(value));\r\n },\r\n\r\n /**\r\n * Sets a 1f uniform value based on the given name on this shader.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#set1f\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number} x - The new value of the `float` uniform.\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n set1f: function (name, x)\r\n {\r\n return this.setUniform1(this.gl.uniform1f, name, x);\r\n },\r\n\r\n /**\r\n * Sets a 2f uniform value based on the given name on this shader.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#set2f\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number} x - The new X component of the `vec2` uniform.\r\n * @param {number} y - The new Y component of the `vec2` uniform.\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n set2f: function (name, x, y)\r\n {\r\n return this.setUniform2(this.gl.uniform2f, name, x, y);\r\n },\r\n\r\n /**\r\n * Sets a 3f uniform value based on the given name on this shader.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#set3f\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number} x - The new X component of the `vec3` uniform.\r\n * @param {number} y - The new Y component of the `vec3` uniform.\r\n * @param {number} z - The new Z component of the `vec3` uniform.\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n set3f: function (name, x, y, z)\r\n {\r\n return this.setUniform3(this.gl.uniform3f, name, x, y, z);\r\n },\r\n\r\n /**\r\n * Sets a 4f uniform value based on the given name on this shader.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#set4f\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number} x - X component of the uniform\r\n * @param {number} y - Y component of the uniform\r\n * @param {number} z - Z component of the uniform\r\n * @param {number} w - W component of the uniform\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n set4f: function (name, x, y, z, w)\r\n {\r\n return this.setUniform4(this.gl.uniform4f, name, x, y, z, w);\r\n },\r\n\r\n /**\r\n * Sets a 1fv uniform value based on the given name on this shader.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#set1fv\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number[]|Float32Array} arr - The new value to be used for the uniform variable.\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n set1fv: function (name, arr)\r\n {\r\n return this.setUniform1(this.gl.uniform1fv, name, arr, true);\r\n },\r\n\r\n /**\r\n * Sets a 2fv uniform value based on the given name on this shader.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#set2fv\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number[]|Float32Array} arr - The new value to be used for the uniform variable.\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n set2fv: function (name, arr)\r\n {\r\n return this.setUniform1(this.gl.uniform2fv, name, arr, true);\r\n },\r\n\r\n /**\r\n * Sets a 3fv uniform value based on the given name on this shader.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#set3fv\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number[]|Float32Array} arr - The new value to be used for the uniform variable.\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n set3fv: function (name, arr)\r\n {\r\n return this.setUniform1(this.gl.uniform3fv, name, arr, true);\r\n },\r\n\r\n /**\r\n * Sets a 4fv uniform value based on the given name on this shader.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#set4fv\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number[]|Float32Array} arr - The new value to be used for the uniform variable.\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n set4fv: function (name, arr)\r\n {\r\n return this.setUniform1(this.gl.uniform4fv, name, arr, true);\r\n },\r\n\r\n /**\r\n * Sets a 1iv uniform value based on the given name on this shader.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#set1iv\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number[]|Float32Array} arr - The new value to be used for the uniform variable.\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n set1iv: function (name, arr)\r\n {\r\n return this.setUniform1(this.gl.uniform1iv, name, arr, true);\r\n },\r\n\r\n /**\r\n * Sets a 2iv uniform value based on the given name on this shader.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#set2iv\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number[]|Float32Array} arr - The new value to be used for the uniform variable.\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n set2iv: function (name, arr)\r\n {\r\n return this.setUniform1(this.gl.uniform2iv, name, arr, true);\r\n },\r\n\r\n /**\r\n * Sets a 3iv uniform value based on the given name on this shader.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#set3iv\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number[]|Float32Array} arr - The new value to be used for the uniform variable.\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n set3iv: function (name, arr)\r\n {\r\n return this.setUniform1(this.gl.uniform3iv, name, arr, true);\r\n },\r\n\r\n /**\r\n * Sets a 4iv uniform value based on the given name on this shader.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#set4iv\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number[]|Float32Array} arr - The new value to be used for the uniform variable.\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n set4iv: function (name, arr)\r\n {\r\n return this.setUniform1(this.gl.uniform4iv, name, arr, true);\r\n },\r\n\r\n /**\r\n * Sets a 1i uniform value based on the given name on this shader.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#set1i\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number} x - The new value of the `int` uniform.\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n set1i: function (name, x)\r\n {\r\n return this.setUniform1(this.gl.uniform1i, name, x);\r\n },\r\n\r\n /**\r\n * Sets a 2i uniform value based on the given name on this shader.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#set2i\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number} x - The new X component of the `ivec2` uniform.\r\n * @param {number} y - The new Y component of the `ivec2` uniform.\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n set2i: function (name, x, y)\r\n {\r\n return this.setUniform2(this.gl.uniform2i, name, x, y);\r\n },\r\n\r\n /**\r\n * Sets a 3i uniform value based on the given name on this shader.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#set3i\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number} x - The new X component of the `ivec3` uniform.\r\n * @param {number} y - The new Y component of the `ivec3` uniform.\r\n * @param {number} z - The new Z component of the `ivec3` uniform.\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n set3i: function (name, x, y, z)\r\n {\r\n return this.setUniform3(this.gl.uniform3i, name, x, y, z);\r\n },\r\n\r\n /**\r\n * Sets a 4i uniform value based on the given name on this shader.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#set4i\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {number} x - X component of the uniform\r\n * @param {number} y - Y component of the uniform\r\n * @param {number} z - Z component of the uniform\r\n * @param {number} w - W component of the uniform\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n set4i: function (name, x, y, z, w)\r\n {\r\n return this.setUniform4(this.gl.uniform4i, name, x, y, z, w);\r\n },\r\n\r\n /**\r\n * Sets a matrix 2fv uniform value based on the given name on this shader.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#setMatrix2fv\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {boolean} transpose - Whether to transpose the matrix. Should be `false`.\r\n * @param {number[]|Float32Array} matrix - The new values for the `mat2` uniform.\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n setMatrix2fv: function (name, transpose, matrix)\r\n {\r\n return this.setUniform2(this.gl.uniformMatrix2fv, name, transpose, matrix, true);\r\n },\r\n\r\n /**\r\n * Sets a matrix 3fv uniform value based on the given name on this shader.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#setMatrix3fv\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {boolean} transpose - Whether to transpose the matrix. Should be `false`.\r\n * @param {Float32Array} matrix - The new values for the `mat3` uniform.\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n setMatrix3fv: function (name, transpose, matrix)\r\n {\r\n return this.setUniform2(this.gl.uniformMatrix3fv, name, transpose, matrix, true);\r\n },\r\n\r\n /**\r\n * Sets a matrix 4fv uniform value based on the given name on this shader.\r\n *\r\n * The uniform is only set if the value/s given are different to those previously set.\r\n *\r\n * This method works by first setting this shader as being the current shader within the\r\n * WebGL Renderer, if it isn't already. It also sets this shader as being the current\r\n * one within the pipeline it belongs to.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#setMatrix4fv\r\n * @since 3.50.0\r\n *\r\n * @param {string} name - The name of the uniform to set.\r\n * @param {boolean} transpose - Should the matrix be transpose\r\n * @param {Float32Array} matrix - Matrix data\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n setMatrix4fv: function (name, transpose, matrix)\r\n {\r\n return this.setUniform2(this.gl.uniformMatrix4fv, name, transpose, matrix, true);\r\n },\r\n\r\n /**\r\n * This method will create the Shader Program on the current GL context.\r\n *\r\n * If a program already exists, it will be destroyed and the new one will take its place.\r\n *\r\n * After the program is created the uniforms will be reset and\r\n * this shader will be rebound.\r\n *\r\n * This is a very expensive process and if your shader is referenced elsewhere in\r\n * your game those references may then be lost, so be sure to use this carefully.\r\n *\r\n * However, if you need to update say the fragment shader source, then you can pass\r\n * the new source into this method and it'll rebuild the program using it. If you\r\n * don't want to change the vertex shader src, pass `undefined` as the parameter.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#createProgram\r\n * @since 3.60.0\r\n *\r\n * @param {string} [vertSrc] - The source code of the vertex shader. If not given, uses the source already defined in this Shader.\r\n * @param {string} [fragSrc] - The source code of the fragment shader. If not given, uses the source already defined in this Shader.\r\n *\r\n * @return {this} This WebGLShader instance.\r\n */\r\n createProgram: function (vertSrc, fragSrc)\r\n {\r\n if (vertSrc === undefined) { vertSrc = this.vertSrc; }\r\n if (fragSrc === undefined) { fragSrc = this.fragSrc; }\r\n\r\n if (this.program)\r\n {\r\n this.renderer.deleteProgram(this.program);\r\n }\r\n\r\n this.vertSrc = vertSrc;\r\n this.fragSrc = fragSrc;\r\n\r\n this.program = this.renderer.createProgram(vertSrc, fragSrc);\r\n\r\n this.createUniforms();\r\n\r\n return this.rebind();\r\n },\r\n\r\n /**\r\n * Removes all external references from this class and deletes the WebGL program from the WebGL context.\r\n *\r\n * Does not remove this shader from the parent pipeline.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLShader#destroy\r\n * @since 3.50.0\r\n */\r\n destroy: function ()\r\n {\r\n var renderer = this.renderer;\r\n ArrayEach(this.uniforms, function (uniform)\r\n {\r\n renderer.deleteUniformLocation(uniform.location);\r\n });\r\n this.uniforms = null;\r\n\r\n ArrayEach(this.attributes, function (attrib)\r\n {\r\n renderer.deleteAttribLocation(attrib.location);\r\n });\r\n this.attributes = null;\r\n\r\n renderer.deleteProgram(this.program);\r\n\r\n this.pipeline = null;\r\n this.renderer = null;\r\n this.gl = null;\r\n this.program = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = WebGLShader;\r\n\n\n/***/ }),\n\n/***/ 14500:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar WEBGL_CONST = {\r\n\r\n /**\r\n * \t8-bit twos complement signed integer.\r\n *\r\n * @name Phaser.Renderer.WebGL.BYTE\r\n * @type {Phaser.Types.Renderer.WebGL.WebGLConst}\r\n * @since 3.50.0\r\n */\r\n BYTE: { enum: 0x1400, size: 1 },\r\n\r\n /**\r\n * 8-bit twos complement unsigned integer.\r\n *\r\n * @name Phaser.Renderer.WebGL.UNSIGNED_BYTE\r\n * @type {Phaser.Types.Renderer.WebGL.WebGLConst}\r\n * @since 3.50.0\r\n */\r\n UNSIGNED_BYTE: { enum: 0x1401, size: 1 },\r\n\r\n /**\r\n * 16-bit twos complement signed integer.\r\n *\r\n * @name Phaser.Renderer.WebGL.SHORT\r\n * @type {Phaser.Types.Renderer.WebGL.WebGLConst}\r\n * @since 3.50.0\r\n */\r\n SHORT: { enum: 0x1402, size: 2 },\r\n\r\n /**\r\n * 16-bit twos complement unsigned integer.\r\n *\r\n * @name Phaser.Renderer.WebGL.UNSIGNED_SHORT\r\n * @type {Phaser.Types.Renderer.WebGL.WebGLConst}\r\n * @since 3.50.0\r\n */\r\n UNSIGNED_SHORT: { enum: 0x1403, size: 2 },\r\n\r\n /**\r\n * 32-bit twos complement signed integer.\r\n *\r\n * @name Phaser.Renderer.WebGL.INT\r\n * @type {Phaser.Types.Renderer.WebGL.WebGLConst}\r\n * @since 3.50.0\r\n */\r\n INT: { enum: 0x1404, size: 4 },\r\n\r\n /**\r\n * 32-bit twos complement unsigned integer.\r\n *\r\n * @name Phaser.Renderer.WebGL.UNSIGNED_INT\r\n * @type {Phaser.Types.Renderer.WebGL.WebGLConst}\r\n * @since 3.50.0\r\n */\r\n UNSIGNED_INT: { enum: 0x1405, size: 4 },\r\n\r\n /**\r\n * 32-bit IEEE floating point number.\r\n *\r\n * @name Phaser.Renderer.WebGL.FLOAT\r\n * @type {Phaser.Types.Renderer.WebGL.WebGLConst}\r\n * @since 3.50.0\r\n */\r\n FLOAT: { enum: 0x1406, size: 4 }\r\n\r\n};\r\n\r\nmodule.exports = WEBGL_CONST;\r\n\n\n/***/ }),\n\n/***/ 4159:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar WEBGL_CONST = __webpack_require__(14500);\r\nvar Extend = __webpack_require__(79291);\r\n\r\n/**\r\n * @namespace Phaser.Renderer.WebGL\r\n */\r\n\r\nvar WebGL = {\r\n\r\n PipelineManager: __webpack_require__(7530),\r\n Pipelines: __webpack_require__(96615),\r\n RenderTarget: __webpack_require__(32302),\r\n Utils: __webpack_require__(70554),\r\n WebGLPipeline: __webpack_require__(29100),\r\n WebGLRenderer: __webpack_require__(74797),\r\n WebGLShader: __webpack_require__(38683),\r\n Wrappers: __webpack_require__(9503)\r\n\r\n};\r\n\r\n// Merge in the consts\r\n\r\nWebGL = Extend(false, WebGL, WEBGL_CONST);\r\n\r\n// Export it\r\n\r\nmodule.exports = WebGL;\r\n\n\n/***/ }),\n\n/***/ 31302:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Felipe Alfonso <@bitnenfer>\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar ShaderSourceFS = __webpack_require__(78908);\r\nvar ShaderSourceVS = __webpack_require__(85191);\r\nvar WEBGL_CONST = __webpack_require__(14500);\r\nvar WebGLPipeline = __webpack_require__(29100);\r\n\r\n/**\r\n * @classdesc\r\n * The Bitmap Mask Pipeline handles all of the bitmap mask rendering in WebGL for applying\r\n * alpha masks to Game Objects. It works by sampling two texture on the fragment shader and\r\n * using the fragments alpha to clip the region.\r\n *\r\n * The fragment shader it uses can be found in `shaders/src/BitmapMask.frag`.\r\n * The vertex shader it uses can be found in `shaders/src/BitmapMask.vert`.\r\n *\r\n * The default shader attributes for this pipeline are:\r\n *\r\n * `inPosition` (vec2, offset 0)\r\n *\r\n * The default shader uniforms for this pipeline are:\r\n *\r\n * `uResolution` (vec2)\r\n * `uMainSampler` (sampler2D)\r\n * `uMaskSampler` (sampler2D)\r\n * `uInvertMaskAlpha` (bool)\r\n *\r\n * @class BitmapMaskPipeline\r\n * @extends Phaser.Renderer.WebGL.WebGLPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Renderer.WebGL.WebGLPipelineConfig} config - The configuration options for this pipeline.\r\n */\r\nvar BitmapMaskPipeline = new Class({\r\n\r\n Extends: WebGLPipeline,\r\n\r\n initialize:\r\n\r\n function BitmapMaskPipeline (config)\r\n {\r\n config.fragShader = GetFastValue(config, 'fragShader', ShaderSourceFS),\r\n config.vertShader = GetFastValue(config, 'vertShader', ShaderSourceVS),\r\n config.batchSize = GetFastValue(config, 'batchSize', 1),\r\n config.vertices = GetFastValue(config, 'vertices', [ -1, 1, -1, -7, 7, 1 ]),\r\n config.attributes = GetFastValue(config, 'attributes', [\r\n {\r\n name: 'inPosition',\r\n size: 2,\r\n type: WEBGL_CONST.FLOAT\r\n }\r\n ]);\r\n\r\n WebGLPipeline.call(this, config);\r\n },\r\n\r\n boot: function ()\r\n {\r\n WebGLPipeline.prototype.boot.call(this);\r\n\r\n this.set1i('uMainSampler', 0);\r\n this.set1i('uMaskSampler', 1);\r\n },\r\n\r\n resize: function (width, height)\r\n {\r\n WebGLPipeline.prototype.resize.call(this, width, height);\r\n\r\n this.set2f('uResolution', width, height);\r\n },\r\n\r\n /**\r\n * Binds necessary resources and renders the mask to a separated framebuffer.\r\n * The framebuffer for the masked object is also bound for further use.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.BitmapMaskPipeline#beginMask\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Display.Masks.BitmapMask} mask - The BitmapMask instance that called beginMask.\r\n * @param {Phaser.GameObjects.GameObject} maskedObject - GameObject masked by the mask GameObject.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera rendering the current mask.\r\n */\r\n beginMask: function (mask, maskedObject, camera)\r\n {\r\n this.renderer.beginBitmapMask(mask, camera);\r\n },\r\n\r\n /**\r\n * The masked game objects framebuffer is unbound and its texture\r\n * is bound together with the mask texture and the mask shader and\r\n * a draw call with a single quad is processed. Here is where the\r\n * masking effect is applied.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.BitmapMaskPipeline#endMask\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Display.Masks.BitmapMask} mask - The BitmapMask instance that called endMask.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to render to.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} [renderTarget] - Optional WebGL RenderTarget.\r\n */\r\n endMask: function (mask, camera, renderTarget)\r\n {\r\n var gl = this.gl;\r\n var renderer = this.renderer;\r\n\r\n // The renderable Game Object that is being used for the bitmap mask\r\n var bitmapMask = mask.bitmapMask;\r\n\r\n if (bitmapMask && gl)\r\n {\r\n renderer.drawBitmapMask(bitmapMask, camera, this);\r\n\r\n if (renderTarget)\r\n {\r\n this.set2f('uResolution', renderTarget.width, renderTarget.height);\r\n }\r\n\r\n this.set1i('uInvertMaskAlpha', mask.invertAlpha);\r\n\r\n // Finally, draw a triangle filling the whole screen\r\n gl.drawArrays(this.topology, 0, 3);\r\n\r\n if (renderTarget)\r\n {\r\n this.set2f('uResolution', this.width, this.height);\r\n }\r\n\r\n // Clear gl.TEXTURE1\r\n gl.bindTexture(gl.TEXTURE_2D, null);\r\n }\r\n }\r\n\r\n});\r\n\r\nmodule.exports = BitmapMaskPipeline;\r\n\n\n/***/ }),\n\n/***/ 92651:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar FX = __webpack_require__(58918);\r\nvar FX_CONST = __webpack_require__(14811);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar PreFXPipeline = __webpack_require__(43558);\r\nvar Shaders = __webpack_require__(89350);\r\nvar Utils = __webpack_require__(70554);\r\n\r\n/**\r\n * @classdesc\r\n * The FXPipeline is a built-in pipeline that controls the application of FX Controllers during\r\n * the rendering process. It maintains all of the FX shaders, instances of Post FX Pipelines and\r\n * is responsible for rendering.\r\n *\r\n * You should rarely interact with this pipeline directly. Instead, use the FX Controllers that\r\n * is part of the Game Object class in order to manage the effects.\r\n *\r\n * @class FXPipeline\r\n * @extends Phaser.Renderer.WebGL.Pipelines.PreFXPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Game} game - A reference to the Phaser game instance.\r\n */\r\nvar FXPipeline = new Class({\r\n\r\n Extends: PreFXPipeline,\r\n\r\n initialize:\r\n\r\n function FXPipeline (config)\r\n {\r\n // This order is fixed to match with the FX_CONST. Do not adjust.\r\n config.shaders = [\r\n Utils.setGlowQuality(Shaders.FXGlowFrag, config.game),\r\n Shaders.FXShadowFrag,\r\n Shaders.FXPixelateFrag,\r\n Shaders.FXVignetteFrag,\r\n Shaders.FXShineFrag,\r\n Shaders.FXBlurLowFrag,\r\n Shaders.FXBlurMedFrag,\r\n Shaders.FXBlurHighFrag,\r\n Shaders.FXGradientFrag,\r\n Shaders.FXBloomFrag,\r\n Shaders.ColorMatrixFrag,\r\n Shaders.FXCircleFrag,\r\n Shaders.FXBarrelFrag,\r\n Shaders.FXDisplacementFrag,\r\n Shaders.FXWipeFrag,\r\n Shaders.FXBokehFrag\r\n ];\r\n\r\n PreFXPipeline.call(this, config);\r\n\r\n var game = this.game;\r\n\r\n /**\r\n * An instance of the Glow Post FX Pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FXPipeline#glow\r\n * @type {Phaser.Renderer.WebGL.Pipelines.FX.GlowFXPipeline}\r\n * @since 3.60.0\r\n */\r\n this.glow = new FX.Glow(game);\r\n\r\n /**\r\n * An instance of the Shadow Post FX Pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FXPipeline#shadow\r\n * @type {Phaser.Renderer.WebGL.Pipelines.FX.ShadowFXPipeline}\r\n * @since 3.60.0\r\n */\r\n this.shadow = new FX.Shadow(game);\r\n\r\n /**\r\n * An instance of the Pixelate Post FX Pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FXPipeline#pixelate\r\n * @type {Phaser.Renderer.WebGL.Pipelines.FX.PixelateFXPipeline}\r\n * @since 3.60.0\r\n */\r\n this.pixelate = new FX.Pixelate(game);\r\n\r\n /**\r\n * An instance of the Vignette Post FX Pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FXPipeline#vignette\r\n * @type {Phaser.Renderer.WebGL.Pipelines.FX.VignetteFXPipeline}\r\n * @since 3.60.0\r\n */\r\n this.vignette = new FX.Vignette(game);\r\n\r\n /**\r\n * An instance of the Shine Post FX Pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FXPipeline#shine\r\n * @type {Phaser.Renderer.WebGL.Pipelines.FX.ShineFXPipeline}\r\n * @since 3.60.0\r\n */\r\n this.shine = new FX.Shine(game);\r\n\r\n /**\r\n * An instance of the Gradient Post FX Pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FXPipeline#gradient\r\n * @type {Phaser.Renderer.WebGL.Pipelines.FX.GradientFXPipeline}\r\n * @since 3.60.0\r\n */\r\n this.gradient = new FX.Gradient(game);\r\n\r\n /**\r\n * An instance of the Circle Post FX Pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FXPipeline#circle\r\n * @type {Phaser.Renderer.WebGL.Pipelines.FX.CircleFXPipeline}\r\n * @since 3.60.0\r\n */\r\n this.circle = new FX.Circle(game);\r\n\r\n /**\r\n * An instance of the Barrel Post FX Pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FXPipeline#barrel\r\n * @type {Phaser.Renderer.WebGL.Pipelines.FX.BarrelFXPipeline}\r\n * @since 3.60.0\r\n */\r\n this.barrel = new FX.Barrel(game);\r\n\r\n /**\r\n * An instance of the Wipe Post FX Pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FXPipeline#wipe\r\n * @type {Phaser.Renderer.WebGL.Pipelines.FX.WipeFXPipeline}\r\n * @since 3.60.0\r\n */\r\n this.wipe = new FX.Wipe(game);\r\n\r\n /**\r\n * An instance of the Bokeh Post FX Pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FXPipeline#bokeh\r\n * @type {Phaser.Renderer.WebGL.Pipelines.FX.BokehFXPipeline}\r\n * @since 3.60.0\r\n */\r\n this.bokeh = new FX.Bokeh(game);\r\n\r\n // This array is intentionally sparse. Do not adjust.\r\n var fxHandlers = [];\r\n\r\n fxHandlers[FX_CONST.GLOW] = this.onGlow;\r\n fxHandlers[FX_CONST.SHADOW] = this.onShadow;\r\n fxHandlers[FX_CONST.PIXELATE] = this.onPixelate;\r\n fxHandlers[FX_CONST.VIGNETTE] = this.onVignette;\r\n fxHandlers[FX_CONST.SHINE] = this.onShine;\r\n fxHandlers[FX_CONST.BLUR] = this.onBlur;\r\n fxHandlers[FX_CONST.GRADIENT] = this.onGradient;\r\n fxHandlers[FX_CONST.BLOOM] = this.onBloom;\r\n fxHandlers[FX_CONST.COLOR_MATRIX] = this.onColorMatrix;\r\n fxHandlers[FX_CONST.CIRCLE] = this.onCircle;\r\n fxHandlers[FX_CONST.BARREL] = this.onBarrel;\r\n fxHandlers[FX_CONST.DISPLACEMENT] = this.onDisplacement;\r\n fxHandlers[FX_CONST.WIPE] = this.onWipe;\r\n fxHandlers[FX_CONST.BOKEH] = this.onBokeh;\r\n\r\n /**\r\n * An array containing references to the methods that map to the FX CONSTs.\r\n *\r\n * This array is intentionally sparse. Do not adjust.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FXPipeline#fxHandlers\r\n * @type {function[]}\r\n * @since 3.60.0\r\n */\r\n this.fxHandlers = fxHandlers;\r\n\r\n /**\r\n * The source Render Target.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FXPipeline#source\r\n * @type {Phaser.Renderer.WebGL.RenderTarget}\r\n * @since 3.60.0\r\n */\r\n this.source;\r\n\r\n /**\r\n * The target Render Target.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FXPipeline#target\r\n * @type {Phaser.Renderer.WebGL.RenderTarget}\r\n * @since 3.60.0\r\n */\r\n this.target;\r\n\r\n /**\r\n * The swap Render Target.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FXPipeline#swap\r\n * @type {Phaser.Renderer.WebGL.RenderTarget}\r\n * @since 3.60.0\r\n */\r\n this.swap;\r\n },\r\n\r\n /**\r\n * Takes the currently bound Game Object and runs all of its pre-render effects,\r\n * using the given Render Target as the source.\r\n *\r\n * Finally calls `drawToGame` to copy the result to the Game Canvas.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.FXPipeline#onDraw\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} target1 - The source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} target2 - The target Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} target3 - The swap Render Target.\r\n */\r\n onDraw: function (target1, target2, target3)\r\n {\r\n this.source = target1;\r\n this.target = target2;\r\n this.swap = target3;\r\n\r\n var width = target1.width;\r\n var height = target1.height;\r\n\r\n var sprite = this.tempSprite;\r\n var handlers = this.fxHandlers;\r\n\r\n if (sprite && sprite.preFX)\r\n {\r\n var fx = sprite.preFX.list;\r\n\r\n for (var i = 0; i < fx.length; i++)\r\n {\r\n var controller = fx[i];\r\n\r\n if (controller.active)\r\n {\r\n handlers[controller.type].call(this, controller, width, height);\r\n }\r\n }\r\n }\r\n\r\n this.drawToGame(this.source);\r\n },\r\n\r\n /**\r\n * Takes the source and target and runs a copy from source to target.\r\n *\r\n * This will use the current shader and pipeline.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.FXPipeline#runDraw\r\n * @since 3.60.0\r\n */\r\n runDraw: function ()\r\n {\r\n var source = this.source;\r\n var target = this.target;\r\n\r\n this.copy(source, target);\r\n\r\n this.source = target;\r\n this.target = source;\r\n },\r\n\r\n /**\r\n * Runs the Glow FX controller.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.FXPipeline#onGlow\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.FX.Glow} config - The Glow FX controller.\r\n * @param {number} width - The width of the target.\r\n * @param {number} height - The height of the target.\r\n */\r\n onGlow: function (config, width, height)\r\n {\r\n var shader = this.shaders[FX_CONST.GLOW];\r\n\r\n this.setShader(shader);\r\n\r\n this.glow.onPreRender(config, shader, width, height);\r\n\r\n this.runDraw();\r\n },\r\n\r\n /**\r\n * Runs the Shadow FX controller.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.FXPipeline#onShadow\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.FX.Shadow} config - The Shadow FX controller.\r\n */\r\n onShadow: function (config)\r\n {\r\n var shader = this.shaders[FX_CONST.SHADOW];\r\n\r\n this.setShader(shader);\r\n\r\n this.shadow.onPreRender(config, shader);\r\n\r\n this.runDraw();\r\n },\r\n\r\n /**\r\n * Runs the Pixelate FX controller.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.FXPipeline#onPixelate\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.FX.Pixelate} config - The Pixelate FX controller.\r\n * @param {number} width - The width of the target.\r\n * @param {number} height - The height of the target.\r\n */\r\n onPixelate: function (config, width, height)\r\n {\r\n var shader = this.shaders[FX_CONST.PIXELATE];\r\n\r\n this.setShader(shader);\r\n\r\n this.pixelate.onPreRender(config, shader, width, height);\r\n\r\n this.runDraw();\r\n },\r\n\r\n /**\r\n * Runs the Vignette FX controller.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.FXPipeline#onVignette\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.FX.Vignette} config - The Vignette FX controller.\r\n */\r\n onVignette: function (config)\r\n {\r\n var shader = this.shaders[FX_CONST.VIGNETTE];\r\n\r\n this.setShader(shader);\r\n\r\n this.vignette.onPreRender(config, shader);\r\n\r\n this.runDraw();\r\n },\r\n\r\n /**\r\n * Runs the Shine FX controller.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.FXPipeline#onShine\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.FX.Shine} config - The Shine FX controller.\r\n * @param {number} width - The width of the target.\r\n * @param {number} height - The height of the target.\r\n */\r\n onShine: function (config, width, height)\r\n {\r\n var shader = this.shaders[FX_CONST.SHINE];\r\n\r\n this.setShader(shader);\r\n\r\n this.shine.onPreRender(config, shader, width, height);\r\n\r\n this.runDraw();\r\n },\r\n\r\n /**\r\n * Runs the Blur FX controller.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.FXPipeline#onBlur\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.FX.Blur} config - The Blur FX controller.\r\n * @param {number} width - The width of the target.\r\n * @param {number} height - The height of the target.\r\n */\r\n onBlur: function (config, width, height)\r\n {\r\n var quality = GetFastValue(config, 'quality');\r\n\r\n var shader = this.shaders[FX_CONST.BLUR + quality];\r\n\r\n this.setShader(shader);\r\n\r\n this.set1i('uMainSampler', 0);\r\n this.set2f('resolution', width, height);\r\n this.set1f('strength', GetFastValue(config, 'strength'));\r\n this.set3fv('color', GetFastValue(config, 'glcolor'));\r\n\r\n var x = GetFastValue(config, 'x');\r\n var y = GetFastValue(config, 'y');\r\n var steps = GetFastValue(config, 'steps');\r\n\r\n for (var i = 0; i < steps; i++)\r\n {\r\n this.set2f('offset', x, 0);\r\n this.runDraw();\r\n\r\n this.set2f('offset', 0, y);\r\n this.runDraw();\r\n }\r\n },\r\n\r\n /**\r\n * Runs the Gradient FX controller.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.FXPipeline#onGradient\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.FX.Gradient} config - The Gradient FX controller.\r\n */\r\n onGradient: function (config)\r\n {\r\n var shader = this.shaders[FX_CONST.GRADIENT];\r\n\r\n this.setShader(shader);\r\n\r\n this.gradient.onPreRender(config, shader);\r\n\r\n this.runDraw();\r\n },\r\n\r\n /**\r\n * Runs the Bloom FX controller.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.FXPipeline#onBloom\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.FX.Bloom} config - The Bloom FX controller.\r\n * @param {number} width - The width of the target.\r\n * @param {number} height - The height of the target.\r\n */\r\n onBloom: function (config, width, height)\r\n {\r\n var shader = this.shaders[FX_CONST.BLOOM];\r\n\r\n this.copySprite(this.source, this.swap);\r\n\r\n this.setShader(shader);\r\n\r\n this.set1i('uMainSampler', 0);\r\n this.set1f('strength', GetFastValue(config, 'blurStrength'));\r\n this.set3fv('color', GetFastValue(config, 'glcolor'));\r\n\r\n var x = (2 / width) * GetFastValue(config, 'offsetX');\r\n var y = (2 / height) * GetFastValue(config, 'offsetY');\r\n var steps = GetFastValue(config, 'steps');\r\n\r\n for (var i = 0; i < steps; i++)\r\n {\r\n this.set2f('offset', x, 0);\r\n this.runDraw();\r\n\r\n this.set2f('offset', 0, y);\r\n this.runDraw();\r\n }\r\n\r\n this.blendFrames(this.swap, this.source, this.target, GetFastValue(config, 'strength'));\r\n this.copySprite(this.target, this.source);\r\n },\r\n\r\n /**\r\n * Runs the ColorMatrix FX controller.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.FXPipeline#onColorMatrix\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.FX.ColorMatrix} config - The ColorMatrix FX controller.\r\n */\r\n onColorMatrix: function (config)\r\n {\r\n this.setShader(this.colorMatrixShader);\r\n\r\n this.set1fv('uColorMatrix', config.getData());\r\n this.set1f('uAlpha', config.alpha);\r\n\r\n this.runDraw();\r\n },\r\n\r\n /**\r\n * Runs the Circle FX controller.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.FXPipeline#onCircle\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.FX.Circle} config - The Circle FX controller.\r\n * @param {number} width - The width of the target.\r\n * @param {number} height - The height of the target.\r\n */\r\n onCircle: function (config, width, height)\r\n {\r\n var shader = this.shaders[FX_CONST.CIRCLE];\r\n\r\n this.setShader(shader);\r\n\r\n this.circle.onPreRender(config, shader, width, height);\r\n\r\n this.runDraw();\r\n },\r\n\r\n /**\r\n * Runs the Barrel FX controller.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.FXPipeline#onBarrel\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.FX.Barrel} config - The Barrel FX controller.\r\n */\r\n onBarrel: function (config)\r\n {\r\n var shader = this.shaders[FX_CONST.BARREL];\r\n\r\n this.setShader(shader);\r\n\r\n this.barrel.onPreRender(config, shader);\r\n\r\n this.runDraw();\r\n },\r\n\r\n /**\r\n * Runs the Displacement FX controller.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.FXPipeline#onDisplacement\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.FX.Displacement} config - The Displacement FX controller.\r\n */\r\n onDisplacement: function (config)\r\n {\r\n this.setShader(this.shaders[FX_CONST.DISPLACEMENT]);\r\n\r\n this.set1i('uDisplacementSampler', 1);\r\n this.set2f('amount', config.x, config.y);\r\n\r\n this.bindTexture(config.glTexture, 1);\r\n\r\n this.runDraw();\r\n },\r\n\r\n /**\r\n * Runs the Wipe FX controller.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.FXPipeline#onWipe\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.FX.Wipe} config - The Wipe FX controller.\r\n */\r\n onWipe: function (config)\r\n {\r\n var shader = this.shaders[FX_CONST.WIPE];\r\n\r\n this.setShader(shader);\r\n\r\n this.wipe.onPreRender(config, shader);\r\n\r\n this.runDraw();\r\n },\r\n\r\n /**\r\n * Runs the Bokeh FX controller.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.FXPipeline#onBokeh\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.FX.Bokeh} config - The Bokeh FX controller.\r\n */\r\n onBokeh: function (config, width, height)\r\n {\r\n var shader = this.shaders[FX_CONST.BOKEH];\r\n\r\n this.setShader(shader);\r\n\r\n this.bokeh.onPreRender(config, shader, width, height);\r\n\r\n this.runDraw();\r\n },\r\n\r\n /**\r\n * Destroys all shader instances, removes all object references and nulls all external references.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.FXPipeline#destroy\r\n * @since 3.60.0\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n destroy: function ()\r\n {\r\n this.glow.destroy();\r\n this.shadow.destroy();\r\n this.pixelate.destroy();\r\n this.vignette.destroy();\r\n this.shine.destroy();\r\n this.gradient.destroy();\r\n this.circle.destroy();\r\n this.barrel.destroy();\r\n this.wipe.destroy();\r\n this.bokeh.destroy();\r\n\r\n this.fxHandlers = null;\r\n this.source = null;\r\n this.target = null;\r\n this.swap = null;\r\n\r\n PreFXPipeline.prototype.destroy.call(this);\r\n\r\n return this;\r\n }\r\n});\r\n\r\nmodule.exports = FXPipeline;\r\n\n\n/***/ }),\n\n/***/ 96569:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Felipe Alfonso <@bitnenfer>\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar LightShaderSourceFS = __webpack_require__(31063);\r\nvar MultiPipeline = __webpack_require__(57516);\r\nvar TransformMatrix = __webpack_require__(61340);\r\nvar Vec2 = __webpack_require__(26099);\r\nvar WebGLPipeline = __webpack_require__(29100);\r\n\r\n/**\r\n * @classdesc\r\n * The Light Pipeline is an extension of the Multi Pipeline and uses a custom shader\r\n * designed to handle forward diffused rendering of 2D lights in a Scene.\r\n *\r\n * The shader works in tandem with Light Game Objects, and optionally texture normal maps,\r\n * to provide an ambient illumination effect.\r\n *\r\n * If you wish to provide your own shader, you can use the `%LIGHT_COUNT%` declaration in the source,\r\n * and it will be automatically replaced at run-time with the total number of configured lights.\r\n *\r\n * The maximum number of lights can be set in the Render Config `maxLights` property and defaults to 10.\r\n *\r\n * Prior to Phaser v3.50 this pipeline was called the `ForwardDiffuseLightPipeline`.\r\n *\r\n * The fragment shader it uses can be found in `shaders/src/Light.frag`.\r\n * The vertex shader it uses can be found in `shaders/src/Multi.vert`.\r\n *\r\n * The default shader attributes for this pipeline are:\r\n *\r\n * `inPosition` (vec2, offset 0)\r\n * `inTexCoord` (vec2, offset 8)\r\n * `inTexId` (float, offset 16)\r\n * `inTintEffect` (float, offset 20)\r\n * `inTint` (vec4, offset 24, normalized)\r\n *\r\n * The default shader uniforms for this pipeline are those from the Multi Pipeline, plus:\r\n *\r\n * `uMainSampler` (sampler2D)\r\n * `uNormSampler` (sampler2D)\r\n * `uCamera` (vec4)\r\n * `uResolution` (vec2)\r\n * `uAmbientLightColor` (vec3)\r\n * `uInverseRotationMatrix` (mat3)\r\n * `uLights` (Light struct)\r\n *\r\n * @class LightPipeline\r\n * @extends Phaser.Renderer.WebGL.Pipelines.MultiPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines\r\n * @constructor\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Types.Renderer.WebGL.WebGLPipelineConfig} config - The configuration options for this pipeline.\r\n */\r\nvar LightPipeline = new Class({\r\n\r\n Extends: MultiPipeline,\r\n\r\n initialize:\r\n\r\n function LightPipeline (config)\r\n {\r\n var fragShader = GetFastValue(config, 'fragShader', LightShaderSourceFS);\r\n\r\n config.fragShader = fragShader.replace('%LIGHT_COUNT%', config.game.renderer.config.maxLights);\r\n\r\n MultiPipeline.call(this, config);\r\n\r\n /**\r\n * Inverse rotation matrix for normal map rotations.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.LightPipeline#inverseRotationMatrix\r\n * @type {Float32Array}\r\n * @private\r\n * @since 3.16.0\r\n */\r\n this.inverseRotationMatrix = new Float32Array([\r\n 1, 0, 0,\r\n 0, 1, 0,\r\n 0, 0, 1\r\n ]);\r\n\r\n /**\r\n * The currently bound normal map texture at texture unit one, if any.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.LightPipeline#currentNormalMap;\r\n * @type {?Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper}\r\n * @since 3.60.0\r\n */\r\n this.currentNormalMap;\r\n\r\n /**\r\n * A boolean that is set automatically during `onRender` that determines\r\n * if the Scene LightManager is active, or not.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.LightPipeline#lightsActive\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.53.0\r\n */\r\n this.lightsActive = true;\r\n\r\n /**\r\n * A persistent calculation vector used when processing the lights.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.LightPipeline#tempVec2\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.60.0\r\n */\r\n this.tempVec2 = new Vec2();\r\n\r\n /**\r\n * A temporary Transform Matrix used for parent Container calculations without them needing their own local copy.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.LightPipeline#_tempMatrix\r\n * @type {Phaser.GameObjects.Components.TransformMatrix}\r\n * @private\r\n * @since 3.60.0\r\n */\r\n this._tempMatrix = new TransformMatrix();\r\n\r\n /**\r\n * A temporary Transform Matrix used for parent Container calculations without them needing their own local copy.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.LightPipeline#_tempMatrix2\r\n * @type {Phaser.GameObjects.Components.TransformMatrix}\r\n * @private\r\n * @since 3.60.0\r\n */\r\n this._tempMatrix2 = new TransformMatrix();\r\n },\r\n\r\n /**\r\n * Called when the Game has fully booted and the Renderer has finished setting up.\r\n *\r\n * By this stage all Game level systems are now in place and you can perform any final\r\n * tasks that the pipeline may need that relied on game systems such as the Texture Manager.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.LightPipeline#boot\r\n * @since 3.11.0\r\n */\r\n boot: function ()\r\n {\r\n WebGLPipeline.prototype.boot.call(this);\r\n },\r\n\r\n /**\r\n * This function sets all the needed resources for each camera pass.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.LightPipeline#onRender\r\n * @ignore\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene being rendered.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Scene Camera being rendered with.\r\n */\r\n onRender: function (scene, camera)\r\n {\r\n var lightManager = scene.sys.lights;\r\n\r\n this.lightsActive = false;\r\n\r\n if (!lightManager || !lightManager.active)\r\n {\r\n return;\r\n }\r\n\r\n var lights = lightManager.getLights(camera);\r\n var lightsCount = lights.length;\r\n\r\n // Ok, we're good to go ...\r\n\r\n this.lightsActive = true;\r\n\r\n var i;\r\n var renderer = this.renderer;\r\n var height = renderer.height;\r\n var cameraMatrix = camera.matrix;\r\n var tempVec2 = this.tempVec2;\r\n\r\n this.set1i('uMainSampler', 0);\r\n this.set1i('uNormSampler', 1);\r\n this.set2f('uResolution', this.width / 2, this.height / 2);\r\n this.set4f('uCamera', camera.x, camera.y, camera.rotation, camera.zoom);\r\n this.set3f('uAmbientLightColor', lightManager.ambientColor.r, lightManager.ambientColor.g, lightManager.ambientColor.b);\r\n this.set1i('uLightCount', lightsCount);\r\n\r\n for (i = 0; i < lightsCount; i++)\r\n {\r\n var light = lights[i].light;\r\n var color = light.color;\r\n\r\n var lightName = 'uLights[' + i + '].';\r\n\r\n cameraMatrix.transformPoint(light.x, light.y, tempVec2);\r\n\r\n this.set2f(lightName + 'position', tempVec2.x - (camera.scrollX * light.scrollFactorX * camera.zoom), height - (tempVec2.y - (camera.scrollY * light.scrollFactorY) * camera.zoom));\r\n this.set3f(lightName + 'color', color.r, color.g, color.b);\r\n this.set1f(lightName + 'intensity', light.intensity);\r\n this.set1f(lightName + 'radius', light.radius);\r\n }\r\n\r\n this.currentNormalMapRotation = null;\r\n },\r\n\r\n /**\r\n * Rotates the normal map vectors inversely by the given angle.\r\n * Only works in 2D space.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.LightPipeline#setNormalMapRotation\r\n * @since 3.16.0\r\n *\r\n * @param {number} rotation - The angle of rotation in radians.\r\n */\r\n setNormalMapRotation: function (rotation)\r\n {\r\n if (rotation !== this.currentNormalMapRotation || this.vertexCount === 0)\r\n {\r\n if (this.vertexCount > 0)\r\n {\r\n this.flush();\r\n }\r\n\r\n var inverseRotationMatrix = this.inverseRotationMatrix;\r\n\r\n if (rotation)\r\n {\r\n var rot = -rotation;\r\n var c = Math.cos(rot);\r\n var s = Math.sin(rot);\r\n\r\n inverseRotationMatrix[1] = s;\r\n inverseRotationMatrix[3] = -s;\r\n inverseRotationMatrix[0] = inverseRotationMatrix[4] = c;\r\n }\r\n else\r\n {\r\n inverseRotationMatrix[0] = inverseRotationMatrix[4] = 1;\r\n inverseRotationMatrix[1] = inverseRotationMatrix[3] = 0;\r\n }\r\n\r\n this.setMatrix3fv('uInverseRotationMatrix', false, inverseRotationMatrix);\r\n\r\n this.currentNormalMapRotation = rotation;\r\n }\r\n },\r\n\r\n /**\r\n * Assigns a texture to the current batch. If a different texture is already set it creates a new batch object.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.LightPipeline#setTexture2D\r\n * @ignore\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} [texture] - Texture that will be assigned to the current batch. If not given uses blankTexture.\r\n * @param {Phaser.GameObjects.GameObject} [gameObject] - The Game Object being rendered or added to the batch.\r\n */\r\n setTexture2D: function (texture, gameObject)\r\n {\r\n var renderer = this.renderer;\r\n\r\n if (texture === undefined) { texture = renderer.whiteTexture; }\r\n\r\n var normalMap = this.getNormalMap(gameObject);\r\n\r\n if (this.isNewNormalMap(texture, normalMap))\r\n {\r\n this.flush();\r\n\r\n this.createBatch(texture);\r\n\r\n this.addTextureToBatch(normalMap);\r\n\r\n this.currentNormalMap = normalMap;\r\n }\r\n\r\n var rotation = 0;\r\n\r\n if (gameObject && gameObject.parentContainer)\r\n {\r\n var matrix = gameObject.getWorldTransformMatrix(this._tempMatrix, this._tempMatrix2);\r\n\r\n rotation = matrix.rotationNormalized;\r\n }\r\n else if (gameObject)\r\n {\r\n rotation = gameObject.rotation;\r\n }\r\n\r\n if (this.currentBatch === null)\r\n {\r\n this.createBatch(texture);\r\n\r\n this.addTextureToBatch(normalMap);\r\n }\r\n\r\n this.setNormalMapRotation(rotation);\r\n\r\n return 0;\r\n },\r\n\r\n /**\r\n * Custom pipelines can use this method in order to perform any required pre-batch tasks\r\n * for the given Game Object. It must return the texture unit the Game Object was assigned.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.LightPipeline#setGameObject\r\n * @ignore\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object being rendered or added to the batch.\r\n * @param {Phaser.Textures.Frame} [frame] - Optional frame to use. Can override that of the Game Object.\r\n *\r\n * @return {number} The texture unit the Game Object has been assigned.\r\n */\r\n setGameObject: function (gameObject, frame)\r\n {\r\n if (frame === undefined) { frame = gameObject.frame; }\r\n\r\n var texture = frame.glTexture;\r\n var normalMap = this.getNormalMap(gameObject);\r\n\r\n if (this.isNewNormalMap(texture, normalMap))\r\n {\r\n this.flush();\r\n\r\n this.createBatch(texture);\r\n\r\n this.addTextureToBatch(normalMap);\r\n\r\n this.currentNormalMap = normalMap;\r\n }\r\n\r\n if (gameObject.parentContainer)\r\n {\r\n var matrix = gameObject.getWorldTransformMatrix(this._tempMatrix, this._tempMatrix2);\r\n\r\n this.setNormalMapRotation(matrix.rotationNormalized);\r\n }\r\n else\r\n {\r\n this.setNormalMapRotation(gameObject.rotation);\r\n }\r\n\r\n if (this.currentBatch === null)\r\n {\r\n this.createBatch(texture);\r\n\r\n this.addTextureToBatch(normalMap);\r\n }\r\n\r\n return 0;\r\n },\r\n\r\n /**\r\n * Checks to see if the given diffuse and normal map textures are already bound, or not.\r\n *\r\n * @method Phaser.Renderer.WebGL.WebGLRenderer#isNewNormalMap\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} texture - The diffuse texture.\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} normalMap - The normal map texture.\r\n *\r\n * @return {boolean} Returns `false` if this combination is already set, or `true` if it's a new combination.\r\n */\r\n isNewNormalMap: function (texture, normalMap)\r\n {\r\n return (this.currentTexture !== texture || this.currentNormalMap !== normalMap);\r\n },\r\n\r\n /**\r\n * Returns the normal map WebGLTextureWrapper from the given Game Object.\r\n * If the Game Object doesn't have one, it returns the default normal map from this pipeline instead.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.LightPipeline#getNormalMap\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} [gameObject] - The Game Object to get the normal map from.\r\n *\r\n * @return {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} The normal map texture.\r\n */\r\n getNormalMap: function (gameObject)\r\n {\r\n var normalMap;\r\n\r\n if (!gameObject)\r\n {\r\n return this.renderer.normalTexture;\r\n }\r\n else if (gameObject.displayTexture)\r\n {\r\n normalMap = gameObject.displayTexture.dataSource[gameObject.displayFrame.sourceIndex];\r\n }\r\n else if (gameObject.texture)\r\n {\r\n normalMap = gameObject.texture.dataSource[gameObject.frame.sourceIndex];\r\n }\r\n else if (gameObject.tileset)\r\n {\r\n if (Array.isArray(gameObject.tileset))\r\n {\r\n normalMap = gameObject.tileset[0].image.dataSource[0];\r\n }\r\n else\r\n {\r\n normalMap = gameObject.tileset.image.dataSource[0];\r\n }\r\n }\r\n\r\n if (!normalMap)\r\n {\r\n return this.renderer.normalTexture;\r\n }\r\n\r\n return normalMap.glTexture;\r\n },\r\n\r\n /**\r\n * Takes a Sprite Game Object, or any object that extends it, and adds it to the batch.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.LightPipeline#batchSprite\r\n * @since 3.50.0\r\n *\r\n * @param {(Phaser.GameObjects.Image|Phaser.GameObjects.Sprite)} gameObject - The texture based Game Object to add to the batch.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use for the rendering transform.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} [parentTransformMatrix] - The transform matrix of the parent container, if set.\r\n */\r\n batchSprite: function (gameObject, camera, parentTransformMatrix)\r\n {\r\n if (this.lightsActive)\r\n {\r\n MultiPipeline.prototype.batchSprite.call(this, gameObject, camera, parentTransformMatrix);\r\n }\r\n },\r\n\r\n /**\r\n * Generic function for batching a textured quad using argument values instead of a Game Object.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.LightPipeline#batchTexture\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - Source GameObject.\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} texture - Texture associated with the quad.\r\n * @param {number} textureWidth - Real texture width.\r\n * @param {number} textureHeight - Real texture height.\r\n * @param {number} srcX - X coordinate of the quad.\r\n * @param {number} srcY - Y coordinate of the quad.\r\n * @param {number} srcWidth - Width of the quad.\r\n * @param {number} srcHeight - Height of the quad.\r\n * @param {number} scaleX - X component of scale.\r\n * @param {number} scaleY - Y component of scale.\r\n * @param {number} rotation - Rotation of the quad.\r\n * @param {boolean} flipX - Indicates if the quad is horizontally flipped.\r\n * @param {boolean} flipY - Indicates if the quad is vertically flipped.\r\n * @param {number} scrollFactorX - By which factor is the quad affected by the camera horizontal scroll.\r\n * @param {number} scrollFactorY - By which factor is the quad effected by the camera vertical scroll.\r\n * @param {number} displayOriginX - Horizontal origin in pixels.\r\n * @param {number} displayOriginY - Vertical origin in pixels.\r\n * @param {number} frameX - X coordinate of the texture frame.\r\n * @param {number} frameY - Y coordinate of the texture frame.\r\n * @param {number} frameWidth - Width of the texture frame.\r\n * @param {number} frameHeight - Height of the texture frame.\r\n * @param {number} tintTL - Tint for top left.\r\n * @param {number} tintTR - Tint for top right.\r\n * @param {number} tintBL - Tint for bottom left.\r\n * @param {number} tintBR - Tint for bottom right.\r\n * @param {number} tintEffect - The tint effect.\r\n * @param {number} uOffset - Horizontal offset on texture coordinate.\r\n * @param {number} vOffset - Vertical offset on texture coordinate.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - Current used camera.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentTransformMatrix - Parent container.\r\n * @param {boolean} [skipFlip=false] - Skip the renderTexture check.\r\n * @param {number} [textureUnit] - Use the currently bound texture unit?\r\n */\r\n batchTexture: function (\r\n gameObject,\r\n texture,\r\n textureWidth, textureHeight,\r\n srcX, srcY,\r\n srcWidth, srcHeight,\r\n scaleX, scaleY,\r\n rotation,\r\n flipX, flipY,\r\n scrollFactorX, scrollFactorY,\r\n displayOriginX, displayOriginY,\r\n frameX, frameY, frameWidth, frameHeight,\r\n tintTL, tintTR, tintBL, tintBR, tintEffect,\r\n uOffset, vOffset,\r\n camera,\r\n parentTransformMatrix,\r\n skipFlip,\r\n textureUnit)\r\n {\r\n if (this.lightsActive)\r\n {\r\n MultiPipeline.prototype.batchTexture.call(\r\n this,\r\n gameObject,\r\n texture,\r\n textureWidth, textureHeight,\r\n srcX, srcY,\r\n srcWidth, srcHeight,\r\n scaleX, scaleY,\r\n rotation,\r\n flipX, flipY,\r\n scrollFactorX, scrollFactorY,\r\n displayOriginX, displayOriginY,\r\n frameX, frameY, frameWidth, frameHeight,\r\n tintTL, tintTR, tintBL, tintBR, tintEffect,\r\n uOffset, vOffset,\r\n camera,\r\n parentTransformMatrix,\r\n skipFlip,\r\n textureUnit\r\n );\r\n }\r\n },\r\n\r\n /**\r\n * Adds a Texture Frame into the batch for rendering.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.LightPipeline#batchTextureFrame\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Textures.Frame} frame - The Texture Frame to be rendered.\r\n * @param {number} x - The horizontal position to render the texture at.\r\n * @param {number} y - The vertical position to render the texture at.\r\n * @param {number} tint - The tint color.\r\n * @param {number} alpha - The alpha value.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} transformMatrix - The Transform Matrix to use for the texture.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} [parentTransformMatrix] - A parent Transform Matrix.\r\n */\r\n batchTextureFrame: function (\r\n frame,\r\n x, y,\r\n tint, alpha,\r\n transformMatrix,\r\n parentTransformMatrix\r\n )\r\n {\r\n if (this.lightsActive)\r\n {\r\n MultiPipeline.prototype.batchTextureFrame.call(\r\n this,\r\n frame,\r\n x, y,\r\n tint, alpha,\r\n transformMatrix,\r\n parentTransformMatrix\r\n );\r\n }\r\n }\r\n\r\n});\r\n\r\nmodule.exports = LightPipeline;\r\n\n\n/***/ }),\n\n/***/ 56527:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar MultiPipeline = __webpack_require__(57516);\r\nvar ShaderSourceFS = __webpack_require__(45561);\r\nvar ShaderSourceVS = __webpack_require__(60722);\r\nvar WEBGL_CONST = __webpack_require__(14500);\r\nvar WebGLPipeline = __webpack_require__(29100);\r\n\r\n/**\r\n * @classdesc\r\n * The Mobile Pipeline is the core 2D texture rendering pipeline used by Phaser in WebGL\r\n * when the device running the game is detected to be a mobile.\r\n *\r\n * You can control the use of this pipeline by setting the Game Configuration\r\n * property `autoMobilePipeline`. If set to `false` then all devices will use\r\n * the Multi Tint Pipeline. You can also call the `PipelineManager.setDefaultPipeline`\r\n * method at run-time, rather than boot-time, to modify the default Game Object\r\n * pipeline.\r\n *\r\n * Virtually all Game Objects use this pipeline by default, including Sprites, Graphics\r\n * and Tilemaps. It handles the batching of quads and tris, as well as methods for\r\n * drawing and batching geometry data.\r\n *\r\n * The fragment shader it uses can be found in `shaders/src/Mobile.frag`.\r\n * The vertex shader it uses can be found in `shaders/src/Mobile.vert`.\r\n *\r\n * The default shader attributes for this pipeline are:\r\n *\r\n * `inPosition` (vec2, offset 0)\r\n * `inTexCoord` (vec2, offset 8)\r\n * `inTexId` (float, offset 16)\r\n * `inTintEffect` (float, offset 20)\r\n * `inTint` (vec4, offset 24, normalized)\r\n *\r\n * Note that `inTexId` isn't used in the shader, it's just kept to allow us\r\n * to piggy-back on the Multi Tint Pipeline functions.\r\n *\r\n * The default shader uniforms for this pipeline are:\r\n *\r\n * `uProjectionMatrix` (mat4)\r\n * `uResolution` (vec2)\r\n * `uMainSampler` (sampler2D, or sampler2D array)\r\n *\r\n * @class MobilePipeline\r\n * @extends Phaser.Renderer.WebGL.Pipelines.MultiPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.Renderer.WebGL.WebGLPipelineConfig} config - The configuration options for this pipeline.\r\n */\r\nvar MobilePipeline = new Class({\r\n\r\n Extends: MultiPipeline,\r\n\r\n initialize:\r\n\r\n function MobilePipeline (config)\r\n {\r\n config.fragShader = GetFastValue(config, 'fragShader', ShaderSourceFS);\r\n config.vertShader = GetFastValue(config, 'vertShader', ShaderSourceVS);\r\n config.attributes = GetFastValue(config, 'attributes', [\r\n {\r\n name: 'inPosition',\r\n size: 2\r\n },\r\n {\r\n name: 'inTexCoord',\r\n size: 2\r\n },\r\n {\r\n name: 'inTexId'\r\n },\r\n {\r\n name: 'inTintEffect'\r\n },\r\n {\r\n name: 'inTint',\r\n size: 4,\r\n type: WEBGL_CONST.UNSIGNED_BYTE,\r\n normalized: true\r\n }\r\n ]);\r\n config.forceZero = true;\r\n config.resizeUniform = 'uResolution';\r\n\r\n MultiPipeline.call(this, config);\r\n },\r\n\r\n /**\r\n * Called when the Game has fully booted and the Renderer has finished setting up.\r\n *\r\n * By this stage all Game level systems are now in place and you can perform any final\r\n * tasks that the pipeline may need that relied on game systems such as the Texture Manager.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.MobilePipeline#boot\r\n * @since 3.60.0\r\n */\r\n boot: function ()\r\n {\r\n WebGLPipeline.prototype.boot.call(this);\r\n\r\n var renderer = this.renderer;\r\n\r\n this.set1i('uMainSampler', 0);\r\n this.set2f('uResolution', renderer.width, renderer.height);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = MobilePipeline;\r\n\n\n/***/ }),\n\n/***/ 57516:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Felipe Alfonso <@bitnenfer>\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Earcut = __webpack_require__(94811);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar ShaderSourceFS = __webpack_require__(98840);\r\nvar ShaderSourceVS = __webpack_require__(44667);\r\nvar TransformMatrix = __webpack_require__(61340);\r\nvar Utils = __webpack_require__(70554);\r\nvar WEBGL_CONST = __webpack_require__(14500);\r\nvar WebGLPipeline = __webpack_require__(29100);\r\n\r\n/**\r\n * @classdesc\r\n * The Multi Pipeline is the core 2D texture rendering pipeline used by Phaser in WebGL.\r\n * Virtually all Game Objects use this pipeline by default, including Sprites, Graphics\r\n * and Tilemaps. It handles the batching of quads and tris, as well as methods for\r\n * drawing and batching geometry data.\r\n *\r\n * Prior to Phaser v3.50 this pipeline was called the `TextureTintPipeline`.\r\n *\r\n * In previous versions of Phaser only one single texture unit was supported at any one time.\r\n * The Multi Pipeline is an evolution of the old Texture Tint Pipeline, updated to support\r\n * multi-textures for increased performance.\r\n *\r\n * The fragment shader it uses can be found in `shaders/src/Multi.frag`.\r\n * The vertex shader it uses can be found in `shaders/src/Multi.vert`.\r\n *\r\n * The default shader attributes for this pipeline are:\r\n *\r\n * `inPosition` (vec2, offset 0)\r\n * `inTexCoord` (vec2, offset 8)\r\n * `inTexId` (float, offset 16)\r\n * `inTintEffect` (float, offset 20)\r\n * `inTint` (vec4, offset 24, normalized)\r\n *\r\n * The default shader uniforms for this pipeline are:\r\n *\r\n * `uProjectionMatrix` (mat4)\r\n * `uResolution` (vec2)\r\n * `uMainSampler` (sampler2D, or sampler2D array)\r\n *\r\n * If you wish to create a custom pipeline extending from this one, you can use two string\r\n * declarations in your fragment shader source: `%count%` and `%forloop%`, where `count` is\r\n * used to set the number of `sampler2Ds` available, and `forloop` is a block of GLSL code\r\n * that will get the currently bound texture unit.\r\n *\r\n * This pipeline will automatically inject that code for you, should those values exist\r\n * in your shader source. If you wish to handle this yourself, you can also use the\r\n * function `Utils.parseFragmentShaderMaxTextures`.\r\n *\r\n * The following fragment shader shows how to use the two variables:\r\n *\r\n * ```glsl\r\n * #define SHADER_NAME PHASER_MULTI_FS\r\n *\r\n * #ifdef GL_FRAGMENT_PRECISION_HIGH\r\n * precision highp float;\r\n * #else\r\n * precision mediump float;\r\n * #endif\r\n *\r\n * uniform sampler2D uMainSampler[%count%];\r\n *\r\n * varying vec2 outTexCoord;\r\n * varying float outTexId;\r\n * varying float outTintEffect;\r\n * varying vec4 outTint;\r\n *\r\n * void main ()\r\n * {\r\n * vec4 texture;\r\n *\r\n * %forloop%\r\n *\r\n * vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);\r\n *\r\n * // Multiply texture tint\r\n * vec4 color = texture * texel;\r\n *\r\n * if (outTintEffect == 1.0)\r\n * {\r\n * // Solid color + texture alpha\r\n * color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);\r\n * }\r\n * else if (outTintEffect == 2.0)\r\n * {\r\n * // Solid color, no texture\r\n * color = texel;\r\n * }\r\n *\r\n * gl_FragColor = color;\r\n * }\r\n * ```\r\n *\r\n * If you wish to create a pipeline that works from a single texture, or that doesn't have\r\n * internal texture iteration, please see the `SinglePipeline` instead. If you wish to create\r\n * a special effect, especially one that can impact the pixels around a texture (i.e. such as\r\n * a glitch effect) then you should use the PreFX and PostFX Pipelines for this task.\r\n *\r\n * @class MultiPipeline\r\n * @extends Phaser.Renderer.WebGL.WebGLPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines\r\n * @constructor\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Types.Renderer.WebGL.WebGLPipelineConfig} config - The configuration options for this pipeline.\r\n */\r\nvar MultiPipeline = new Class({\r\n\r\n Extends: WebGLPipeline,\r\n\r\n initialize:\r\n\r\n function MultiPipeline (config)\r\n {\r\n var renderer = config.game.renderer;\r\n\r\n var fragmentShaderSource = GetFastValue(config, 'fragShader', ShaderSourceFS);\r\n\r\n config.fragShader = Utils.parseFragmentShaderMaxTextures(fragmentShaderSource, renderer.maxTextures);\r\n config.vertShader = GetFastValue(config, 'vertShader', ShaderSourceVS);\r\n config.attributes = GetFastValue(config, 'attributes', [\r\n {\r\n name: 'inPosition',\r\n size: 2\r\n },\r\n {\r\n name: 'inTexCoord',\r\n size: 2\r\n },\r\n {\r\n name: 'inTexId'\r\n },\r\n {\r\n name: 'inTintEffect'\r\n },\r\n {\r\n name: 'inTint',\r\n size: 4,\r\n type: WEBGL_CONST.UNSIGNED_BYTE,\r\n normalized: true\r\n }\r\n ]);\r\n config.resizeUniform = 'uResolution';\r\n\r\n WebGLPipeline.call(this, config);\r\n\r\n /**\r\n * A temporary Transform Matrix, re-used internally during batching.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.MultiPipeline#_tempMatrix1\r\n * @private\r\n * @type {Phaser.GameObjects.Components.TransformMatrix}\r\n * @since 3.11.0\r\n */\r\n this._tempMatrix1 = new TransformMatrix();\r\n\r\n /**\r\n * A temporary Transform Matrix, re-used internally during batching.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.MultiPipeline#_tempMatrix2\r\n * @private\r\n * @type {Phaser.GameObjects.Components.TransformMatrix}\r\n * @since 3.11.0\r\n */\r\n this._tempMatrix2 = new TransformMatrix();\r\n\r\n /**\r\n * A temporary Transform Matrix, re-used internally during batching.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.MultiPipeline#_tempMatrix3\r\n * @private\r\n * @type {Phaser.GameObjects.Components.TransformMatrix}\r\n * @since 3.11.0\r\n */\r\n this._tempMatrix3 = new TransformMatrix();\r\n\r\n /**\r\n * A temporary Transform Matrix, re-used internally during batching by the\r\n * Shape Game Objects.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.MultiPipeline#calcMatrix\r\n * @type {Phaser.GameObjects.Components.TransformMatrix}\r\n * @since 3.55.0\r\n */\r\n this.calcMatrix = new TransformMatrix();\r\n\r\n /**\r\n * Used internally to draw stroked triangles.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.MultiPipeline#tempTriangle\r\n * @type {array}\r\n * @private\r\n * @since 3.55.0\r\n */\r\n this.tempTriangle = [\r\n { x: 0, y: 0, width: 0 },\r\n { x: 0, y: 0, width: 0 },\r\n { x: 0, y: 0, width: 0 },\r\n { x: 0, y: 0, width: 0 }\r\n ];\r\n\r\n /**\r\n * Cached stroke tint.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.MultiPipeline#strokeTint\r\n * @type {object}\r\n * @private\r\n * @since 3.55.0\r\n */\r\n this.strokeTint = { TL: 0, TR: 0, BL: 0, BR: 0 };\r\n\r\n /**\r\n * Cached fill tint.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.MultiPipeline#fillTint\r\n * @type {object}\r\n * @private\r\n * @since 3.55.0\r\n */\r\n this.fillTint = { TL: 0, TR: 0, BL: 0, BR: 0 };\r\n\r\n /**\r\n * Internal texture frame reference.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.MultiPipeline#currentFrame\r\n * @type {Phaser.Textures.Frame}\r\n * @private\r\n * @since 3.55.0\r\n */\r\n this.currentFrame = { u0: 0, v0: 0, u1: 1, v1: 1 };\r\n\r\n /**\r\n * Internal path quad cache.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.MultiPipeline#firstQuad\r\n * @type {number[]}\r\n * @private\r\n * @since 3.55.0\r\n */\r\n this.firstQuad = [ 0, 0, 0, 0, 0 ];\r\n\r\n /**\r\n * Internal path quad cache.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.MultiPipeline#prevQuad\r\n * @type {number[]}\r\n * @private\r\n * @since 3.55.0\r\n */\r\n this.prevQuad = [ 0, 0, 0, 0, 0 ];\r\n\r\n /**\r\n * Used internally for triangulating a polygon.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.MultiPipeline#polygonCache\r\n * @type {array}\r\n * @private\r\n * @since 3.55.0\r\n */\r\n this.polygonCache = [];\r\n },\r\n\r\n /**\r\n * Called every time the pipeline is bound by the renderer.\r\n * Sets the shader program, vertex buffer and other resources.\r\n * Should only be called when changing pipeline.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.MultiPipeline#boot\r\n * @since 3.50.0\r\n */\r\n boot: function ()\r\n {\r\n WebGLPipeline.prototype.boot.call(this);\r\n\r\n var renderer = this.renderer;\r\n\r\n this.set1iv('uMainSampler', renderer.textureIndexes);\r\n this.set2f('uResolution', renderer.width, renderer.height);\r\n },\r\n\r\n /**\r\n * Takes a Sprite Game Object, or any object that extends it, and adds it to the batch.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.MultiPipeline#batchSprite\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.GameObjects.Image|Phaser.GameObjects.Sprite)} gameObject - The texture based Game Object to add to the batch.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use for the rendering transform.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} [parentTransformMatrix] - The transform matrix of the parent container, if set.\r\n */\r\n batchSprite: function (gameObject, camera, parentTransformMatrix)\r\n {\r\n this.manager.set(this, gameObject);\r\n\r\n var camMatrix = this._tempMatrix1;\r\n var spriteMatrix = this._tempMatrix2;\r\n var calcMatrix = this._tempMatrix3;\r\n\r\n var frame = gameObject.frame;\r\n var texture = frame.glTexture;\r\n\r\n var u0 = frame.u0;\r\n var v0 = frame.v0;\r\n var u1 = frame.u1;\r\n var v1 = frame.v1;\r\n var frameX = frame.x;\r\n var frameY = frame.y;\r\n var frameWidth = frame.cutWidth;\r\n var frameHeight = frame.cutHeight;\r\n var customPivot = frame.customPivot;\r\n\r\n var displayOriginX = gameObject.displayOriginX;\r\n var displayOriginY = gameObject.displayOriginY;\r\n\r\n var x = -displayOriginX + frameX;\r\n var y = -displayOriginY + frameY;\r\n\r\n if (gameObject.isCropped)\r\n {\r\n var crop = gameObject._crop;\r\n\r\n if (crop.flipX !== gameObject.flipX || crop.flipY !== gameObject.flipY)\r\n {\r\n frame.updateCropUVs(crop, gameObject.flipX, gameObject.flipY);\r\n }\r\n\r\n u0 = crop.u0;\r\n v0 = crop.v0;\r\n u1 = crop.u1;\r\n v1 = crop.v1;\r\n\r\n frameWidth = crop.width;\r\n frameHeight = crop.height;\r\n\r\n frameX = crop.x;\r\n frameY = crop.y;\r\n\r\n x = -displayOriginX + frameX;\r\n y = -displayOriginY + frameY;\r\n }\r\n\r\n var flipX = 1;\r\n var flipY = 1;\r\n\r\n if (gameObject.flipX)\r\n {\r\n if (!customPivot)\r\n {\r\n x += (-frame.realWidth + (displayOriginX * 2));\r\n }\r\n\r\n flipX = -1;\r\n }\r\n\r\n if (gameObject.flipY)\r\n {\r\n if (!customPivot)\r\n {\r\n y += (-frame.realHeight + (displayOriginY * 2));\r\n }\r\n\r\n flipY = -1;\r\n }\r\n\r\n var gx = gameObject.x;\r\n var gy = gameObject.y;\r\n\r\n if (camera.roundPixels)\r\n {\r\n gx = Math.floor(gx);\r\n gy = Math.floor(gy);\r\n }\r\n\r\n spriteMatrix.applyITRS(gx, gy, gameObject.rotation, gameObject.scaleX * flipX, gameObject.scaleY * flipY);\r\n\r\n camMatrix.copyFrom(camera.matrix);\r\n\r\n if (parentTransformMatrix)\r\n {\r\n // Multiply the camera by the parent matrix\r\n camMatrix.multiplyWithOffset(parentTransformMatrix, -camera.scrollX * gameObject.scrollFactorX, -camera.scrollY * gameObject.scrollFactorY);\r\n\r\n // Undo the camera scroll\r\n spriteMatrix.e = gx;\r\n spriteMatrix.f = gy;\r\n }\r\n else\r\n {\r\n spriteMatrix.e -= camera.scrollX * gameObject.scrollFactorX;\r\n spriteMatrix.f -= camera.scrollY * gameObject.scrollFactorY;\r\n }\r\n\r\n // Multiply by the Sprite matrix, store result in calcMatrix\r\n camMatrix.multiply(spriteMatrix, calcMatrix);\r\n\r\n var quad = calcMatrix.setQuad(x, y, x + frameWidth, y + frameHeight, camera.renderRoundPixels);\r\n\r\n var getTint = Utils.getTintAppendFloatAlpha;\r\n var cameraAlpha = camera.alpha;\r\n\r\n var tintTL = getTint(gameObject.tintTopLeft, cameraAlpha * gameObject._alphaTL);\r\n var tintTR = getTint(gameObject.tintTopRight, cameraAlpha * gameObject._alphaTR);\r\n var tintBL = getTint(gameObject.tintBottomLeft, cameraAlpha * gameObject._alphaBL);\r\n var tintBR = getTint(gameObject.tintBottomRight, cameraAlpha * gameObject._alphaBR);\r\n\r\n if (this.shouldFlush(6))\r\n {\r\n this.flush();\r\n }\r\n\r\n var unit = this.setGameObject(gameObject, frame);\r\n\r\n this.manager.preBatch(gameObject);\r\n\r\n this.batchQuad(gameObject, quad[0], quad[1], quad[2], quad[3], quad[4], quad[5], quad[6], quad[7], u0, v0, u1, v1, tintTL, tintTR, tintBL, tintBR, gameObject.tintFill, texture, unit);\r\n\r\n this.manager.postBatch(gameObject);\r\n },\r\n\r\n /**\r\n * Generic function for batching a textured quad using argument values instead of a Game Object.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.MultiPipeline#batchTexture\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - Source GameObject.\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} texture - Texture associated with the quad.\r\n * @param {number} textureWidth - Real texture width.\r\n * @param {number} textureHeight - Real texture height.\r\n * @param {number} srcX - X coordinate of the quad.\r\n * @param {number} srcY - Y coordinate of the quad.\r\n * @param {number} srcWidth - Width of the quad.\r\n * @param {number} srcHeight - Height of the quad.\r\n * @param {number} scaleX - X component of scale.\r\n * @param {number} scaleY - Y component of scale.\r\n * @param {number} rotation - Rotation of the quad.\r\n * @param {boolean} flipX - Indicates if the quad is horizontally flipped.\r\n * @param {boolean} flipY - Indicates if the quad is vertically flipped.\r\n * @param {number} scrollFactorX - By which factor is the quad affected by the camera horizontal scroll.\r\n * @param {number} scrollFactorY - By which factor is the quad effected by the camera vertical scroll.\r\n * @param {number} displayOriginX - Horizontal origin in pixels.\r\n * @param {number} displayOriginY - Vertical origin in pixels.\r\n * @param {number} frameX - X coordinate of the texture frame.\r\n * @param {number} frameY - Y coordinate of the texture frame.\r\n * @param {number} frameWidth - Width of the texture frame.\r\n * @param {number} frameHeight - Height of the texture frame.\r\n * @param {number} tintTL - Tint for top left.\r\n * @param {number} tintTR - Tint for top right.\r\n * @param {number} tintBL - Tint for bottom left.\r\n * @param {number} tintBR - Tint for bottom right.\r\n * @param {number} tintEffect - The tint effect.\r\n * @param {number} uOffset - Horizontal offset on texture coordinate.\r\n * @param {number} vOffset - Vertical offset on texture coordinate.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - Current used camera.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentTransformMatrix - Parent container.\r\n * @param {boolean} [skipFlip=false] - Skip the renderTexture check.\r\n * @param {number} [textureUnit] - The texture unit to set (defaults to currently bound if undefined or null)\r\n * @param {boolean} [skipPrePost=false] - Skip the pre and post manager calls?\r\n */\r\n batchTexture: function (\r\n gameObject,\r\n texture,\r\n textureWidth, textureHeight,\r\n srcX, srcY,\r\n srcWidth, srcHeight,\r\n scaleX, scaleY,\r\n rotation,\r\n flipX, flipY,\r\n scrollFactorX, scrollFactorY,\r\n displayOriginX, displayOriginY,\r\n frameX, frameY, frameWidth, frameHeight,\r\n tintTL, tintTR, tintBL, tintBR, tintEffect,\r\n uOffset, vOffset,\r\n camera,\r\n parentTransformMatrix,\r\n skipFlip,\r\n textureUnit,\r\n skipPrePost)\r\n {\r\n if (skipPrePost === undefined) { skipPrePost = false; }\r\n\r\n this.manager.set(this, gameObject);\r\n\r\n var camMatrix = this._tempMatrix1;\r\n var spriteMatrix = this._tempMatrix2;\r\n var calcMatrix = this._tempMatrix3;\r\n\r\n var u0 = (frameX / textureWidth) + uOffset;\r\n var v0 = (frameY / textureHeight) + vOffset;\r\n var u1 = (frameX + frameWidth) / textureWidth + uOffset;\r\n var v1 = (frameY + frameHeight) / textureHeight + vOffset;\r\n\r\n var width = srcWidth;\r\n var height = srcHeight;\r\n\r\n var x = -displayOriginX;\r\n var y = -displayOriginY;\r\n\r\n if (gameObject.isCropped)\r\n {\r\n var crop = gameObject._crop;\r\n\r\n var cropWidth = crop.width;\r\n var cropHeight = crop.height;\r\n\r\n width = cropWidth;\r\n height = cropHeight;\r\n\r\n srcWidth = cropWidth;\r\n srcHeight = cropHeight;\r\n\r\n frameX = crop.x;\r\n frameY = crop.y;\r\n\r\n var ox = frameX;\r\n var oy = frameY;\r\n\r\n if (flipX)\r\n {\r\n ox = (frameWidth - crop.x - cropWidth);\r\n }\r\n\r\n if (flipY)\r\n {\r\n oy = (frameHeight - crop.y - cropHeight);\r\n }\r\n\r\n u0 = (ox / textureWidth) + uOffset;\r\n v0 = (oy / textureHeight) + vOffset;\r\n u1 = (ox + cropWidth) / textureWidth + uOffset;\r\n v1 = (oy + cropHeight) / textureHeight + vOffset;\r\n\r\n x = -displayOriginX + frameX;\r\n y = -displayOriginY + frameY;\r\n }\r\n\r\n // Invert the flipY if this is a RenderTexture\r\n flipY = flipY ^ (!skipFlip && texture.isRenderTexture ? 1 : 0);\r\n\r\n if (flipX)\r\n {\r\n width *= -1;\r\n x += srcWidth;\r\n }\r\n\r\n if (flipY)\r\n {\r\n height *= -1;\r\n y += srcHeight;\r\n }\r\n\r\n if (camera.roundPixels)\r\n {\r\n srcX = Math.floor(srcX);\r\n srcY = Math.floor(srcY);\r\n }\r\n \r\n spriteMatrix.applyITRS(srcX, srcY, rotation, scaleX, scaleY);\r\n\r\n camMatrix.copyFrom(camera.matrix);\r\n\r\n if (parentTransformMatrix)\r\n {\r\n // Multiply the camera by the parent matrix\r\n camMatrix.multiplyWithOffset(parentTransformMatrix, -camera.scrollX * scrollFactorX, -camera.scrollY * scrollFactorY);\r\n\r\n // Undo the camera scroll\r\n spriteMatrix.e = srcX;\r\n spriteMatrix.f = srcY;\r\n }\r\n else\r\n {\r\n spriteMatrix.e -= camera.scrollX * scrollFactorX;\r\n spriteMatrix.f -= camera.scrollY * scrollFactorY;\r\n }\r\n\r\n // Multiply by the Sprite matrix, store result in calcMatrix\r\n camMatrix.multiply(spriteMatrix, calcMatrix);\r\n\r\n var quad = calcMatrix.setQuad(x, y, x + width, y + height, camera.renderRoundPixels);\r\n\r\n if (textureUnit === undefined || textureUnit === null)\r\n {\r\n textureUnit = this.setTexture2D(texture);\r\n }\r\n\r\n if (gameObject && !skipPrePost)\r\n {\r\n this.manager.preBatch(gameObject);\r\n }\r\n\r\n this.batchQuad(gameObject, quad[0], quad[1], quad[2], quad[3], quad[4], quad[5], quad[6], quad[7], u0, v0, u1, v1, tintTL, tintTR, tintBL, tintBR, tintEffect, texture, textureUnit);\r\n\r\n if (gameObject && !skipPrePost)\r\n {\r\n this.manager.postBatch(gameObject);\r\n }\r\n },\r\n\r\n /**\r\n * Adds a Texture Frame into the batch for rendering.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.MultiPipeline#batchTextureFrame\r\n * @since 3.12.0\r\n *\r\n * @param {Phaser.Textures.Frame} frame - The Texture Frame to be rendered.\r\n * @param {number} x - The horizontal position to render the texture at.\r\n * @param {number} y - The vertical position to render the texture at.\r\n * @param {number} tint - The tint color.\r\n * @param {number} alpha - The alpha value.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} transformMatrix - The Transform Matrix to use for the texture.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} [parentTransformMatrix] - A parent Transform Matrix.\r\n */\r\n batchTextureFrame: function (\r\n frame,\r\n x, y,\r\n tint, alpha,\r\n transformMatrix,\r\n parentTransformMatrix\r\n )\r\n {\r\n this.manager.set(this);\r\n\r\n var spriteMatrix = this._tempMatrix1.copyFrom(transformMatrix);\r\n var calcMatrix = this._tempMatrix2;\r\n\r\n if (parentTransformMatrix)\r\n {\r\n spriteMatrix.multiply(parentTransformMatrix, calcMatrix);\r\n }\r\n else\r\n {\r\n calcMatrix = spriteMatrix;\r\n }\r\n\r\n var quad = calcMatrix.setQuad(x, y, x + frame.width, y + frame.height);\r\n\r\n var unit = this.setTexture2D(frame.source.glTexture);\r\n\r\n tint = Utils.getTintAppendFloatAlpha(tint, alpha);\r\n\r\n this.batchQuad(null, quad[0], quad[1], quad[2], quad[3], quad[4], quad[5], quad[6], quad[7], frame.u0, frame.v0, frame.u1, frame.v1, tint, tint, tint, tint, 0, frame.glTexture, unit);\r\n },\r\n\r\n /**\r\n * Pushes a filled rectangle into the vertex batch.\r\n *\r\n * Rectangle factors in the given transform matrices before adding to the batch.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.MultiPipeline#batchFillRect\r\n * @since 3.55.0\r\n *\r\n * @param {number} x - Horizontal top left coordinate of the rectangle.\r\n * @param {number} y - Vertical top left coordinate of the rectangle.\r\n * @param {number} width - Width of the rectangle.\r\n * @param {number} height - Height of the rectangle.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} currentMatrix - The current transform.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - The parent transform.\r\n */\r\n batchFillRect: function (x, y, width, height, currentMatrix, parentMatrix)\r\n {\r\n this.renderer.pipelines.set(this);\r\n\r\n var calcMatrix = this.calcMatrix;\r\n\r\n // Multiply and store result in calcMatrix, only if the parentMatrix is set, otherwise we'll use whatever values are already in the calcMatrix\r\n if (parentMatrix)\r\n {\r\n parentMatrix.multiply(currentMatrix, calcMatrix);\r\n }\r\n\r\n var quad = calcMatrix.setQuad(x, y, x + width, y + height);\r\n\r\n var tint = this.fillTint;\r\n\r\n this.batchQuad(null, quad[0], quad[1], quad[2], quad[3], quad[4], quad[5], quad[6], quad[7], 0, 0, 1, 1, tint.TL, tint.TR, tint.BL, tint.BR, 2);\r\n },\r\n\r\n /**\r\n * Pushes a filled triangle into the vertex batch.\r\n *\r\n * Triangle factors in the given transform matrices before adding to the batch.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.MultiPipeline#batchFillTriangle\r\n * @since 3.55.0\r\n *\r\n * @param {number} x0 - Point 0 x coordinate.\r\n * @param {number} y0 - Point 0 y coordinate.\r\n * @param {number} x1 - Point 1 x coordinate.\r\n * @param {number} y1 - Point 1 y coordinate.\r\n * @param {number} x2 - Point 2 x coordinate.\r\n * @param {number} y2 - Point 2 y coordinate.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} currentMatrix - The current transform.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - The parent transform.\r\n */\r\n batchFillTriangle: function (x0, y0, x1, y1, x2, y2, currentMatrix, parentMatrix)\r\n {\r\n this.renderer.pipelines.set(this);\r\n\r\n var calcMatrix = this.calcMatrix;\r\n\r\n // Multiply and store result in calcMatrix, only if the parentMatrix is set, otherwise we'll use whatever values are already in the calcMatrix\r\n if (parentMatrix)\r\n {\r\n parentMatrix.multiply(currentMatrix, calcMatrix);\r\n }\r\n\r\n var tx0 = calcMatrix.getX(x0, y0);\r\n var ty0 = calcMatrix.getY(x0, y0);\r\n\r\n var tx1 = calcMatrix.getX(x1, y1);\r\n var ty1 = calcMatrix.getY(x1, y1);\r\n\r\n var tx2 = calcMatrix.getX(x2, y2);\r\n var ty2 = calcMatrix.getY(x2, y2);\r\n\r\n var tint = this.fillTint;\r\n\r\n this.batchTri(null, tx0, ty0, tx1, ty1, tx2, ty2, 0, 0, 1, 1, tint.TL, tint.TR, tint.BL, 2);\r\n },\r\n\r\n /**\r\n * Pushes a stroked triangle into the vertex batch.\r\n *\r\n * Triangle factors in the given transform matrices before adding to the batch.\r\n *\r\n * The triangle is created from 3 lines and drawn using the `batchStrokePath` method.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.MultiPipeline#batchStrokeTriangle\r\n * @since 3.55.0\r\n *\r\n * @param {number} x0 - Point 0 x coordinate.\r\n * @param {number} y0 - Point 0 y coordinate.\r\n * @param {number} x1 - Point 1 x coordinate.\r\n * @param {number} y1 - Point 1 y coordinate.\r\n * @param {number} x2 - Point 2 x coordinate.\r\n * @param {number} y2 - Point 2 y coordinate.\r\n * @param {number} lineWidth - The width of the line in pixels.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} currentMatrix - The current transform.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - The parent transform.\r\n */\r\n batchStrokeTriangle: function (x0, y0, x1, y1, x2, y2, lineWidth, currentMatrix, parentMatrix)\r\n {\r\n var tempTriangle = this.tempTriangle;\r\n\r\n tempTriangle[0].x = x0;\r\n tempTriangle[0].y = y0;\r\n tempTriangle[0].width = lineWidth;\r\n\r\n tempTriangle[1].x = x1;\r\n tempTriangle[1].y = y1;\r\n tempTriangle[1].width = lineWidth;\r\n\r\n tempTriangle[2].x = x2;\r\n tempTriangle[2].y = y2;\r\n tempTriangle[2].width = lineWidth;\r\n\r\n tempTriangle[3].x = x0;\r\n tempTriangle[3].y = y0;\r\n tempTriangle[3].width = lineWidth;\r\n\r\n this.batchStrokePath(tempTriangle, lineWidth, false, currentMatrix, parentMatrix);\r\n },\r\n\r\n /**\r\n * Adds the given path to the vertex batch for rendering.\r\n *\r\n * It works by taking the array of path data and then passing it through Earcut, which\r\n * creates a list of polygons. Each polygon is then added to the batch.\r\n *\r\n * The path is always automatically closed because it's filled.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.MultiPipeline#batchFillPath\r\n * @since 3.55.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like[]} path - Collection of points that represent the path.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} currentMatrix - The current transform.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - The parent transform.\r\n */\r\n batchFillPath: function (path, currentMatrix, parentMatrix)\r\n {\r\n this.renderer.pipelines.set(this);\r\n\r\n var calcMatrix = this.calcMatrix;\r\n\r\n // Multiply and store result in calcMatrix, only if the parentMatrix is set, otherwise we'll use whatever values are already in the calcMatrix\r\n if (parentMatrix)\r\n {\r\n parentMatrix.multiply(currentMatrix, calcMatrix);\r\n }\r\n\r\n var length = path.length;\r\n var polygonCache = this.polygonCache;\r\n var polygonIndexArray;\r\n var point;\r\n\r\n var tintTL = this.fillTint.TL;\r\n var tintTR = this.fillTint.TR;\r\n var tintBL = this.fillTint.BL;\r\n\r\n for (var pathIndex = 0; pathIndex < length; ++pathIndex)\r\n {\r\n point = path[pathIndex];\r\n polygonCache.push(point.x, point.y);\r\n }\r\n\r\n polygonIndexArray = Earcut(polygonCache);\r\n length = polygonIndexArray.length;\r\n\r\n for (var index = 0; index < length; index += 3)\r\n {\r\n var p0 = polygonIndexArray[index + 0] * 2;\r\n var p1 = polygonIndexArray[index + 1] * 2;\r\n var p2 = polygonIndexArray[index + 2] * 2;\r\n\r\n var x0 = polygonCache[p0 + 0];\r\n var y0 = polygonCache[p0 + 1];\r\n var x1 = polygonCache[p1 + 0];\r\n var y1 = polygonCache[p1 + 1];\r\n var x2 = polygonCache[p2 + 0];\r\n var y2 = polygonCache[p2 + 1];\r\n\r\n var tx0 = calcMatrix.getX(x0, y0);\r\n var ty0 = calcMatrix.getY(x0, y0);\r\n\r\n var tx1 = calcMatrix.getX(x1, y1);\r\n var ty1 = calcMatrix.getY(x1, y1);\r\n\r\n var tx2 = calcMatrix.getX(x2, y2);\r\n var ty2 = calcMatrix.getY(x2, y2);\r\n\r\n this.batchTri(null, tx0, ty0, tx1, ty1, tx2, ty2, 0, 0, 1, 1, tintTL, tintTR, tintBL, 2);\r\n }\r\n\r\n polygonCache.length = 0;\r\n },\r\n\r\n /**\r\n * Adds the given path to the vertex batch for rendering.\r\n *\r\n * It works by taking the array of path data and calling `batchLine` for each section\r\n * of the path.\r\n *\r\n * The path is optionally closed at the end.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.MultiPipeline#batchStrokePath\r\n * @since 3.55.0\r\n *\r\n * @param {Phaser.Types.Math.Vector2Like[]} path - Collection of points that represent the path.\r\n * @param {number} lineWidth - The width of the line segments in pixels.\r\n * @param {boolean} pathOpen - Indicates if the path should be closed or left open.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} currentMatrix - The current transform.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - The parent transform.\r\n */\r\n batchStrokePath: function (path, lineWidth, pathOpen, currentMatrix, parentMatrix)\r\n {\r\n this.renderer.pipelines.set(this);\r\n\r\n // Reset the closePath booleans\r\n this.prevQuad[4] = 0;\r\n this.firstQuad[4] = 0;\r\n\r\n var pathLength = path.length - 1;\r\n\r\n for (var pathIndex = 0; pathIndex < pathLength; pathIndex++)\r\n {\r\n var point0 = path[pathIndex];\r\n var point1 = path[pathIndex + 1];\r\n\r\n this.batchLine(\r\n point0.x,\r\n point0.y,\r\n point1.x,\r\n point1.y,\r\n point0.width / 2,\r\n point1.width / 2,\r\n lineWidth,\r\n pathIndex,\r\n !pathOpen && (pathIndex === pathLength - 1),\r\n currentMatrix,\r\n parentMatrix\r\n );\r\n }\r\n },\r\n\r\n /**\r\n * Creates a line out of 4 quads and adds it to the vertex batch based on the given line values.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.MultiPipeline#batchLine\r\n * @since 3.55.0\r\n *\r\n * @param {number} ax - x coordinate of the start of the line.\r\n * @param {number} ay - y coordinate of the start of the line.\r\n * @param {number} bx - x coordinate of the end of the line.\r\n * @param {number} by - y coordinate of the end of the line.\r\n * @param {number} aLineWidth - Width of the start of the line.\r\n * @param {number} bLineWidth - Width of the end of the line.\r\n * @param {number} index - If this line is part of a multi-line draw, the index of the line in the draw.\r\n * @param {boolean} closePath - Does this line close a multi-line path?\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} currentMatrix - The current transform.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - The parent transform.\r\n */\r\n batchLine: function (ax, ay, bx, by, aLineWidth, bLineWidth, lineWidth, index, closePath, currentMatrix, parentMatrix)\r\n {\r\n this.renderer.pipelines.set(this);\r\n\r\n var calcMatrix = this.calcMatrix;\r\n\r\n // Multiply and store result in calcMatrix, only if the parentMatrix is set, otherwise we'll use whatever values are already in the calcMatrix\r\n if (parentMatrix)\r\n {\r\n parentMatrix.multiply(currentMatrix, calcMatrix);\r\n }\r\n\r\n var dx = bx - ax;\r\n var dy = by - ay;\r\n\r\n var len = Math.sqrt(dx * dx + dy * dy);\r\n\r\n if (len === 0)\r\n {\r\n // Because we cannot (and should not) divide by zero!\r\n return;\r\n }\r\n\r\n var al0 = aLineWidth * (by - ay) / len;\r\n var al1 = aLineWidth * (ax - bx) / len;\r\n var bl0 = bLineWidth * (by - ay) / len;\r\n var bl1 = bLineWidth * (ax - bx) / len;\r\n\r\n var lx0 = bx - bl0;\r\n var ly0 = by - bl1;\r\n var lx1 = ax - al0;\r\n var ly1 = ay - al1;\r\n var lx2 = bx + bl0;\r\n var ly2 = by + bl1;\r\n var lx3 = ax + al0;\r\n var ly3 = ay + al1;\r\n\r\n // tx0 = bottom right\r\n var brX = calcMatrix.getX(lx0, ly0);\r\n var brY = calcMatrix.getY(lx0, ly0);\r\n\r\n // tx1 = bottom left\r\n var blX = calcMatrix.getX(lx1, ly1);\r\n var blY = calcMatrix.getY(lx1, ly1);\r\n\r\n // tx2 = top right\r\n var trX = calcMatrix.getX(lx2, ly2);\r\n var trY = calcMatrix.getY(lx2, ly2);\r\n\r\n // tx3 = top left\r\n var tlX = calcMatrix.getX(lx3, ly3);\r\n var tlY = calcMatrix.getY(lx3, ly3);\r\n\r\n var tint = this.strokeTint;\r\n\r\n var tintTL = tint.TL;\r\n var tintTR = tint.TR;\r\n var tintBL = tint.BL;\r\n var tintBR = tint.BR;\r\n\r\n // TL, BL, BR, TR\r\n this.batchQuad(null, tlX, tlY, blX, blY, brX, brY, trX, trY, 0, 0, 1, 1, tintTL, tintTR, tintBL, tintBR, 2);\r\n\r\n if (lineWidth <= 2)\r\n {\r\n // No point doing a linejoin if the line isn't thick enough\r\n return;\r\n }\r\n\r\n var prev = this.prevQuad;\r\n var first = this.firstQuad;\r\n\r\n if (index > 0 && prev[4])\r\n {\r\n this.batchQuad(null, tlX, tlY, blX, blY, prev[0], prev[1], prev[2], prev[3], 0, 0, 1, 1, tintTL, tintTR, tintBL, tintBR, 2);\r\n }\r\n else\r\n {\r\n first[0] = tlX;\r\n first[1] = tlY;\r\n first[2] = blX;\r\n first[3] = blY;\r\n first[4] = 1;\r\n }\r\n\r\n if (closePath && first[4])\r\n {\r\n // Add a join for the final path segment\r\n this.batchQuad(null, brX, brY, trX, trY, first[0], first[1], first[2], first[3], 0, 0, 1, 1, tintTL, tintTR, tintBL, tintBR, 2);\r\n }\r\n else\r\n {\r\n // Store it\r\n\r\n prev[0] = brX;\r\n prev[1] = brY;\r\n prev[2] = trX;\r\n prev[3] = trY;\r\n prev[4] = 1;\r\n }\r\n },\r\n\r\n /**\r\n * Destroys all shader instances, removes all object references and nulls all external references.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.MultiPipeline#destroy\r\n * @fires Phaser.Renderer.WebGL.Pipelines.Events#DESTROY\r\n * @since 3.60.0\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n destroy: function ()\r\n {\r\n this._tempMatrix1.destroy();\r\n this._tempMatrix2.destroy();\r\n this._tempMatrix3.destroy();\r\n\r\n this._tempMatrix1 = null;\r\n this._tempMatrix1 = null;\r\n this._tempMatrix1 = null;\r\n\r\n WebGLPipeline.prototype.destroy.call(this);\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = MultiPipeline;\r\n\n\n/***/ }),\n\n/***/ 43439:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar PointLightShaderSourceFS = __webpack_require__(4127);\r\nvar PointLightShaderSourceVS = __webpack_require__(89924);\r\nvar WebGLPipeline = __webpack_require__(29100);\r\n\r\n/**\r\n * @classdesc\r\n * The Point Light Pipeline handles rendering the Point Light Game Objects in WebGL.\r\n *\r\n * The fragment shader it uses can be found in `shaders/src/PointLight.frag`.\r\n * The vertex shader it uses can be found in `shaders/src/PointLight.vert`.\r\n *\r\n * The default shader attributes for this pipeline are:\r\n *\r\n * `inPosition` (vec2)\r\n * `inLightPosition` (vec2)\r\n * `inLightRadius` (float)\r\n * `inLightAttenuation` (float)\r\n * `inLightColor` (vec4)\r\n *\r\n * The default shader uniforms for this pipeline are:\r\n *\r\n * `uProjectionMatrix` (mat4)\r\n * `uResolution` (vec2)\r\n * `uCameraZoom` (sampler2D)\r\n *\r\n * @class PointLightPipeline\r\n * @extends Phaser.Renderer.WebGL.WebGLPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines\r\n * @constructor\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Types.Renderer.WebGL.WebGLPipelineConfig} config - The configuration options for this pipeline.\r\n */\r\nvar PointLightPipeline = new Class({\r\n\r\n Extends: WebGLPipeline,\r\n\r\n initialize:\r\n\r\n function PointLightPipeline (config)\r\n {\r\n config.vertShader = GetFastValue(config, 'vertShader', PointLightShaderSourceVS);\r\n config.fragShader = GetFastValue(config, 'fragShader', PointLightShaderSourceFS);\r\n config.attributes = GetFastValue(config, 'attributes', [\r\n {\r\n name: 'inPosition',\r\n size: 2\r\n },\r\n {\r\n name: 'inLightPosition',\r\n size: 2\r\n },\r\n {\r\n name: 'inLightRadius'\r\n },\r\n {\r\n name: 'inLightAttenuation'\r\n },\r\n {\r\n name: 'inLightColor',\r\n size: 4\r\n }\r\n ]);\r\n\r\n WebGLPipeline.call(this, config);\r\n },\r\n\r\n onRender: function (scene, camera)\r\n {\r\n this.set2f('uResolution', this.width, this.height);\r\n this.set1f('uCameraZoom', camera.zoom);\r\n },\r\n\r\n /**\r\n * Adds a Point Light Game Object to the batch, flushing if required.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PointLightPipeline#batchPointLight\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.PointLight} light - The Point Light Game Object.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The camera rendering the Point Light.\r\n * @param {number} x0 - The top-left x position.\r\n * @param {number} y0 - The top-left y position.\r\n * @param {number} x1 - The bottom-left x position.\r\n * @param {number} y1 - The bottom-left y position.\r\n * @param {number} x2 - The bottom-right x position.\r\n * @param {number} y2 - The bottom-right y position.\r\n * @param {number} x3 - The top-right x position.\r\n * @param {number} y3 - The top-right y position.\r\n * @param {number} lightX - The horizontal center of the light.\r\n * @param {number} lightY - The vertical center of the light.\r\n */\r\n batchPointLight: function (light, camera, x0, y0, x1, y1, x2, y2, x3, y3, lightX, lightY)\r\n {\r\n var color = light.color;\r\n var intensity = light.intensity;\r\n var radius = light.radius;\r\n var attenuation = light.attenuation;\r\n\r\n var r = color.r * intensity;\r\n var g = color.g * intensity;\r\n var b = color.b * intensity;\r\n var a = camera.alpha * light.alpha;\r\n\r\n if (this.shouldFlush(6))\r\n {\r\n this.flush();\r\n }\r\n\r\n if (!this.currentBatch)\r\n {\r\n this.setTexture2D();\r\n }\r\n\r\n this.batchLightVert(x0, y0, lightX, lightY, radius, attenuation, r, g, b, a);\r\n this.batchLightVert(x1, y1, lightX, lightY, radius, attenuation, r, g, b, a);\r\n this.batchLightVert(x2, y2, lightX, lightY, radius, attenuation, r, g, b, a);\r\n this.batchLightVert(x0, y0, lightX, lightY, radius, attenuation, r, g, b, a);\r\n this.batchLightVert(x2, y2, lightX, lightY, radius, attenuation, r, g, b, a);\r\n this.batchLightVert(x3, y3, lightX, lightY, radius, attenuation, r, g, b, a);\r\n\r\n this.currentBatch.count = (this.vertexCount - this.currentBatch.start);\r\n },\r\n\r\n /**\r\n * Adds a single Point Light vertex to the current vertex buffer and increments the\r\n * `vertexCount` property by 1.\r\n *\r\n * This method is called directly by `batchPointLight`.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PointLightPipeline#batchLightVert\r\n * @since 3.50.0\r\n *\r\n * @param {number} x - The vertex x position.\r\n * @param {number} y - The vertex y position.\r\n * @param {number} lightX - The horizontal center of the light.\r\n * @param {number} lightY - The vertical center of the light.\r\n * @param {number} radius - The radius of the light.\r\n * @param {number} attenuation - The attenuation of the light.\r\n * @param {number} r - The red color channel of the light.\r\n * @param {number} g - The green color channel of the light.\r\n * @param {number} b - The blue color channel of the light.\r\n * @param {number} a - The alpha color channel of the light.\r\n */\r\n batchLightVert: function (x, y, lightX, lightY, radius, attenuation, r, g, b, a)\r\n {\r\n var vertexViewF32 = this.vertexViewF32;\r\n\r\n var vertexOffset = (this.vertexCount * this.currentShader.vertexComponentCount) - 1;\r\n\r\n vertexViewF32[++vertexOffset] = x;\r\n vertexViewF32[++vertexOffset] = y;\r\n vertexViewF32[++vertexOffset] = lightX;\r\n vertexViewF32[++vertexOffset] = lightY;\r\n vertexViewF32[++vertexOffset] = radius;\r\n vertexViewF32[++vertexOffset] = attenuation;\r\n vertexViewF32[++vertexOffset] = r;\r\n vertexViewF32[++vertexOffset] = g;\r\n vertexViewF32[++vertexOffset] = b;\r\n vertexViewF32[++vertexOffset] = a;\r\n\r\n this.vertexCount++;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = PointLightPipeline;\r\n\n\n/***/ }),\n\n/***/ 84057:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar ColorMatrix = __webpack_require__(89422);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar ShaderSourceFS = __webpack_require__(27681);\r\nvar ShaderSourceVS = __webpack_require__(49627);\r\nvar WebGLPipeline = __webpack_require__(29100);\r\n\r\n/**\r\n * @classdesc\r\n * The Post FX Pipeline is a special kind of pipeline specifically for handling post\r\n * processing effects. Where-as a standard Pipeline allows you to control the process\r\n * of rendering Game Objects by configuring the shaders and attributes used to draw them,\r\n * a Post FX Pipeline is designed to allow you to apply processing _after_ the Game Object/s\r\n * have been rendered. Typical examples of post processing effects are bloom filters,\r\n * blurs, light effects and color manipulation.\r\n *\r\n * The pipeline works by creating a tiny vertex buffer with just one single hard-coded quad\r\n * in it. Game Objects can have a Post Pipeline set on them. Those objects are then rendered\r\n * using their standard pipeline, but are redirected to the Render Targets owned by the\r\n * post pipeline, which can then apply their own shaders and effects, before passing them\r\n * back to the main renderer.\r\n *\r\n * Please see the Phaser 3 examples for further details on this extensive subject.\r\n *\r\n * The default fragment shader it uses can be found in `shaders/src/PostFX.frag`.\r\n * The default vertex shader it uses can be found in `shaders/src/Quad.vert`.\r\n *\r\n * The default shader attributes for this pipeline are:\r\n *\r\n * `inPosition` (vec2, offset 0)\r\n * `inTexCoord` (vec2, offset 8)\r\n *\r\n * The vertices array layout is:\r\n *\r\n * -1, 1 B----C 1, 1\r\n * 0, 1 | /| 1, 1\r\n * | / |\r\n * | / |\r\n * |/ |\r\n * -1, -1 A----D 1, -1\r\n * 0, 0 1, 0\r\n *\r\n * A = -1, -1 (pos) and 0, 0 (uv)\r\n * B = -1, 1 (pos) and 0, 1 (uv)\r\n * C = 1, 1 (pos) and 1, 1 (uv)\r\n * D = 1, -1 (pos) and 1, 0 (uv)\r\n *\r\n * First tri: A, B, C\r\n * Second tri: A, C, D\r\n *\r\n * Array index:\r\n *\r\n * 0 = Tri 1 - Vert A - x pos\r\n * 1 = Tri 1 - Vert A - y pos\r\n * 2 = Tri 1 - Vert A - uv u\r\n * 3 = Tri 1 - Vert A - uv v\r\n *\r\n * 4 = Tri 1 - Vert B - x pos\r\n * 5 = Tri 1 - Vert B - y pos\r\n * 6 = Tri 1 - Vert B - uv u\r\n * 7 = Tri 1 - Vert B - uv v\r\n *\r\n * 8 = Tri 1 - Vert C - x pos\r\n * 9 = Tri 1 - Vert C - y pos\r\n * 10 = Tri 1 - Vert C - uv u\r\n * 11 = Tri 1 - Vert C - uv v\r\n *\r\n * 12 = Tri 2 - Vert A - x pos\r\n * 13 = Tri 2 - Vert A - y pos\r\n * 14 = Tri 2 - Vert A - uv u\r\n * 15 = Tri 2 - Vert A - uv v\r\n *\r\n * 16 = Tri 2 - Vert C - x pos\r\n * 17 = Tri 2 - Vert C - y pos\r\n * 18 = Tri 2 - Vert C - uv u\r\n * 19 = Tri 2 - Vert C - uv v\r\n *\r\n * 20 = Tri 2 - Vert D - x pos\r\n * 21 = Tri 2 - Vert D - y pos\r\n * 22 = Tri 2 - Vert D - uv u\r\n * 23 = Tri 2 - Vert D - uv v\r\n *\r\n * @class PostFXPipeline\r\n * @extends Phaser.Renderer.WebGL.WebGLPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines\r\n * @constructor\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Types.Renderer.WebGL.WebGLPipelineConfig} config - The configuration options for this pipeline.\r\n */\r\nvar PostFXPipeline = new Class({\r\n\r\n Extends: WebGLPipeline,\r\n\r\n initialize:\r\n\r\n function PostFXPipeline (config)\r\n {\r\n config.renderTarget = GetFastValue(config, 'renderTarget', 1);\r\n config.fragShader = GetFastValue(config, 'fragShader', ShaderSourceFS);\r\n config.vertShader = GetFastValue(config, 'vertShader', ShaderSourceVS);\r\n config.attributes = GetFastValue(config, 'attributes', [\r\n {\r\n name: 'inPosition',\r\n size: 2\r\n },\r\n {\r\n name: 'inTexCoord',\r\n size: 2\r\n }\r\n ]);\r\n config.batchSize = 1;\r\n config.vertices = [\r\n -1, -1, 0, 0,\r\n -1, 1, 0, 1,\r\n 1, 1, 1, 1,\r\n -1, -1, 0, 0,\r\n 1, 1, 1, 1,\r\n 1, -1, 1, 0\r\n ];\r\n\r\n WebGLPipeline.call(this, config);\r\n\r\n this.isPostFX = true;\r\n\r\n /**\r\n * If this Post Pipeline belongs to a Game Object or Camera,\r\n * this property contains a reference to it.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.PostFXPipeline#gameObject\r\n * @type {(Phaser.GameObjects.GameObject|Phaser.Cameras.Scene2D.Camera)}\r\n * @since 3.50.0\r\n */\r\n this.gameObject;\r\n\r\n /**\r\n * If this Post Pipeline belongs to an FX Controller, this is a\r\n * reference to it.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.PostFXPipeline#controller\r\n * @type {Phaser.FX.Controller}\r\n * @since 3.60.0\r\n */\r\n this.controller;\r\n\r\n /**\r\n * A Color Matrix instance belonging to this pipeline.\r\n *\r\n * Used during calls to the `drawFrame` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.PostFXPipeline#colorMatrix\r\n * @type {Phaser.Display.ColorMatrix}\r\n * @since 3.50.0\r\n */\r\n this.colorMatrix = new ColorMatrix();\r\n\r\n /**\r\n * A reference to the Full Frame 1 Render Target that belongs to the\r\n * Utility Pipeline. This property is set during the `boot` method.\r\n *\r\n * This Render Target is the full size of the renderer.\r\n *\r\n * You can use this directly in Post FX Pipelines for multi-target effects.\r\n * However, be aware that these targets are shared between all post fx pipelines.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.PostFXPipeline#fullFrame1\r\n * @type {Phaser.Renderer.WebGL.RenderTarget}\r\n * @default null\r\n * @since 3.50.0\r\n */\r\n this.fullFrame1;\r\n\r\n /**\r\n * A reference to the Full Frame 2 Render Target that belongs to the\r\n * Utility Pipeline. This property is set during the `boot` method.\r\n *\r\n * This Render Target is the full size of the renderer.\r\n *\r\n * You can use this directly in Post FX Pipelines for multi-target effects.\r\n * However, be aware that these targets are shared between all post fx pipelines.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.PostFXPipeline#fullFrame2\r\n * @type {Phaser.Renderer.WebGL.RenderTarget}\r\n * @default null\r\n * @since 3.50.0\r\n */\r\n this.fullFrame2;\r\n\r\n /**\r\n * A reference to the Half Frame 1 Render Target that belongs to the\r\n * Utility Pipeline. This property is set during the `boot` method.\r\n *\r\n * This Render Target is half the size of the renderer.\r\n *\r\n * You can use this directly in Post FX Pipelines for multi-target effects.\r\n * However, be aware that these targets are shared between all post fx pipelines.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.PostFXPipeline#halfFrame1\r\n * @type {Phaser.Renderer.WebGL.RenderTarget}\r\n * @default null\r\n * @since 3.50.0\r\n */\r\n this.halfFrame1;\r\n\r\n /**\r\n * A reference to the Half Frame 2 Render Target that belongs to the\r\n * Utility Pipeline. This property is set during the `boot` method.\r\n *\r\n * This Render Target is half the size of the renderer.\r\n *\r\n * You can use this directly in Post FX Pipelines for multi-target effects.\r\n * However, be aware that these targets are shared between all post fx pipelines.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.PostFXPipeline#halfFrame2\r\n * @type {Phaser.Renderer.WebGL.RenderTarget}\r\n * @default null\r\n * @since 3.50.0\r\n */\r\n this.halfFrame2;\r\n\r\n if (this.renderer.isBooted)\r\n {\r\n this.manager = this.renderer.pipelines;\r\n }\r\n },\r\n\r\n /**\r\n * This method is called once, when this Post FX Pipeline needs to be used.\r\n *\r\n * Normally, pipelines will boot automatically, ready for instant-use, but Post FX\r\n * Pipelines create quite a lot of internal resources, such as Render Targets, so\r\n * they don't boot until they are told to do so by the Pipeline Manager, when an\r\n * actual Game Object needs to use them.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PostFXPipeline#bootFX\r\n * @since 3.70.0\r\n */\r\n bootFX: function ()\r\n {\r\n WebGLPipeline.prototype.boot.call(this);\r\n\r\n var utility = this.manager.UTILITY_PIPELINE;\r\n\r\n this.fullFrame1 = utility.fullFrame1;\r\n this.fullFrame2 = utility.fullFrame2;\r\n this.halfFrame1 = utility.halfFrame1;\r\n this.halfFrame2 = utility.halfFrame2;\r\n\r\n var renderer = this.renderer;\r\n\r\n this.set1i('uMainSampler', 0);\r\n this.set2f('uResolution', renderer.width, renderer.height);\r\n\r\n var targets = this.renderTargets;\r\n\r\n for (var i = 0; i < targets.length; i++)\r\n {\r\n targets[i].autoResize = true;\r\n }\r\n },\r\n\r\n /**\r\n * This method is called as a result of the `WebGLPipeline.batchQuad` method, right after a quad\r\n * belonging to a Game Object has been added to the batch. When this is called, the\r\n * renderer has just performed a flush.\r\n *\r\n * It calls the `onDraw` hook followed by the `onPostBatch` hook, which can be used to perform\r\n * additional Post FX Pipeline processing.\r\n *\r\n * It is also called as part of the `PipelineManager.postBatch` method when processing Post FX Pipelines.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PostFXPipeline#postBatch\r\n * @since 3.70.0\r\n *\r\n * @param {(Phaser.GameObjects.GameObject|Phaser.Cameras.Scene2D.Camera)} [gameObject] - The Game Object or Camera that invoked this pipeline, if any.\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n postBatch: function (gameObject)\r\n {\r\n if (!this.hasBooted)\r\n {\r\n this.bootFX();\r\n\r\n if (this.currentRenderTarget)\r\n {\r\n this.currentRenderTarget.bind();\r\n }\r\n }\r\n\r\n this.onDraw(this.currentRenderTarget);\r\n\r\n this.onPostBatch(gameObject);\r\n\r\n return this;\r\n },\r\n\r\n onDraw: function (renderTarget)\r\n {\r\n this.bindAndDraw(renderTarget);\r\n },\r\n\r\n /**\r\n * Returns the FX Controller for this Post FX Pipeline.\r\n *\r\n * This is called internally and not typically required outside.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PostFXPipeline#getController\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.FX.Controller} [controller] - An FX Controller, or undefined.\r\n *\r\n * @return {Phaser.FX.Controller|Phaser.Renderer.WebGL.Pipelines.PostFXPipeline} The FX Controller responsible, or this Pipeline.\r\n */\r\n getController: function (controller)\r\n {\r\n if (controller !== undefined)\r\n {\r\n return controller;\r\n }\r\n else if (this.controller)\r\n {\r\n return this.controller;\r\n }\r\n else\r\n {\r\n return this;\r\n }\r\n },\r\n\r\n /**\r\n * Copy the `source` Render Target to the `target` Render Target.\r\n *\r\n * This method does _not_ bind a shader. It uses whatever shader\r\n * is currently bound in this pipeline. It also does _not_ clear\r\n * the frame buffers after use. You should take care of both of\r\n * these things if you call this method directly.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PostFXPipeline#copySprite\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} target - The target Render Target.\r\n */\r\n copySprite: function (source, target, reset)\r\n {\r\n if (reset === undefined) { reset = false; }\r\n\r\n var gl = this.gl;\r\n\r\n gl.activeTexture(gl.TEXTURE0);\r\n gl.bindTexture(gl.TEXTURE_2D, source.texture.webGLTexture);\r\n\r\n var currentFBO = gl.getParameter(gl.FRAMEBUFFER_BINDING);\r\n\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, target.framebuffer.webGLFramebuffer);\r\n gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, target.texture.webGLTexture, 0);\r\n\r\n gl.clearColor(0, 0, 0, 0);\r\n gl.clear(gl.COLOR_BUFFER_BIT);\r\n\r\n gl.bufferData(gl.ARRAY_BUFFER, this.vertexData, gl.STATIC_DRAW);\r\n gl.drawArrays(gl.TRIANGLES, 0, 6);\r\n\r\n if (reset)\r\n {\r\n gl.bindTexture(gl.TEXTURE_2D, null);\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, currentFBO);\r\n }\r\n },\r\n\r\n /**\r\n * Copy the `source` Render Target to the `target` Render Target.\r\n *\r\n * You can optionally set the brightness factor of the copy.\r\n *\r\n * The difference between this method and `drawFrame` is that this method\r\n * uses a faster copy shader, where only the brightness can be modified.\r\n * If you need color level manipulation, see `drawFrame` instead.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PostFXPipeline#copyFrame\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} [target] - The target Render Target.\r\n * @param {number} [brightness=1] - The brightness value applied to the frame copy.\r\n * @param {boolean} [clear=true] - Clear the target before copying?\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n */\r\n copyFrame: function (source, target, brightness, clear, clearAlpha)\r\n {\r\n this.manager.copyFrame(source, target, brightness, clear, clearAlpha);\r\n },\r\n\r\n /**\r\n * Pops the framebuffer from the renderers FBO stack and sets that as the active target,\r\n * then draws the `source` Render Target to it. It then resets the renderer textures.\r\n *\r\n * This should be done when you need to draw the _final_ results of a pipeline to the game\r\n * canvas, or the next framebuffer in line on the FBO stack. You should only call this once\r\n * in the `onDraw` handler and it should be the final thing called. Be careful not to call\r\n * this if you need to actually use the pipeline shader, instead of the copy shader. In\r\n * those cases, use the `bindAndDraw` method.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PostFXPipeline#copyToGame\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The Render Target to draw from.\r\n */\r\n copyToGame: function (source)\r\n {\r\n this.manager.copyToGame(source);\r\n },\r\n\r\n /**\r\n * Copy the `source` Render Target to the `target` Render Target, using this pipelines\r\n * Color Matrix.\r\n *\r\n * The difference between this method and `copyFrame` is that this method\r\n * uses a color matrix shader, where you have full control over the luminance\r\n * values used during the copy. If you don't need this, you can use the faster\r\n * `copyFrame` method instead.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PostFXPipeline#drawFrame\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} [target] - The target Render Target.\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n */\r\n drawFrame: function (source, target, clearAlpha)\r\n {\r\n this.manager.drawFrame(source, target, clearAlpha, this.colorMatrix);\r\n },\r\n\r\n /**\r\n * Draws the `source1` and `source2` Render Targets to the `target` Render Target\r\n * using a linear blend effect, which is controlled by the `strength` parameter.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PostFXPipeline#blendFrames\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source1 - The first source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source2 - The second source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} [target] - The target Render Target.\r\n * @param {number} [strength=1] - The strength of the blend.\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n */\r\n blendFrames: function (source1, source2, target, strength, clearAlpha)\r\n {\r\n this.manager.blendFrames(source1, source2, target, strength, clearAlpha);\r\n },\r\n\r\n /**\r\n * Draws the `source1` and `source2` Render Targets to the `target` Render Target\r\n * using an additive blend effect, which is controlled by the `strength` parameter.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PostFXPipeline#blendFramesAdditive\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source1 - The first source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source2 - The second source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} [target] - The target Render Target.\r\n * @param {number} [strength=1] - The strength of the blend.\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n */\r\n blendFramesAdditive: function (source1, source2, target, strength, clearAlpha)\r\n {\r\n this.manager.blendFramesAdditive(source1, source2, target, strength, clearAlpha);\r\n },\r\n\r\n /**\r\n * Clears the given Render Target.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PostFXPipeline#clearFrame\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} target - The Render Target to clear.\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n */\r\n clearFrame: function (target, clearAlpha)\r\n {\r\n this.manager.clearFrame(target, clearAlpha);\r\n },\r\n\r\n /**\r\n * Copy the `source` Render Target to the `target` Render Target.\r\n *\r\n * The difference with this copy is that no resizing takes place. If the `source`\r\n * Render Target is larger than the `target` then only a portion the same size as\r\n * the `target` dimensions is copied across.\r\n *\r\n * You can optionally set the brightness factor of the copy.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PostFXPipeline#blitFrame\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} target - The target Render Target.\r\n * @param {number} [brightness=1] - The brightness value applied to the frame copy.\r\n * @param {boolean} [clear=true] - Clear the target before copying?\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n * @param {boolean} [eraseMode=false] - Erase source from target using ERASE Blend Mode?\r\n */\r\n blitFrame: function (source, target, brightness, clear, clearAlpha, eraseMode)\r\n {\r\n this.manager.blitFrame(source, target, brightness, clear, clearAlpha, eraseMode);\r\n },\r\n\r\n /**\r\n * Binds the `source` Render Target and then copies a section of it to the `target` Render Target.\r\n *\r\n * This method is extremely fast because it uses `gl.copyTexSubImage2D` and doesn't\r\n * require the use of any shaders. Remember the coordinates are given in standard WebGL format,\r\n * where x and y specify the lower-left corner of the section, not the top-left. Also, the\r\n * copy entirely replaces the contents of the target texture, no 'merging' or 'blending' takes\r\n * place.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PostFXPipeline#copyFrameRect\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} target - The target Render Target.\r\n * @param {number} x - The x coordinate of the lower left corner where to start copying.\r\n * @param {number} y - The y coordinate of the lower left corner where to start copying.\r\n * @param {number} width - The width of the texture.\r\n * @param {number} height - The height of the texture.\r\n * @param {boolean} [clear=true] - Clear the target before copying?\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n */\r\n copyFrameRect: function (source, target, x, y, width, height, clear, clearAlpha)\r\n {\r\n this.manager.copyFrameRect(source, target, x, y, width, height, clear, clearAlpha);\r\n },\r\n\r\n /**\r\n * Binds this pipeline and draws the `source` Render Target to the `target` Render Target.\r\n *\r\n * If no `target` is specified, it will pop the framebuffer from the Renderers FBO stack\r\n * and use that instead, which should be done when you need to draw the final results of\r\n * this pipeline to the game canvas.\r\n *\r\n * You can optionally set the shader to be used for the draw here, if this is a multi-shader\r\n * pipeline. By default `currentShader` will be used. If you need to set a shader but not\r\n * a target, just pass `null` as the `target` parameter.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PostFXPipeline#bindAndDraw\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The Render Target to draw from.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} [target] - The Render Target to draw to. If not set, it will pop the fbo from the stack.\r\n * @param {boolean} [clear=true] - Clear the target before copying? Only used if `target` parameter is set.\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [currentShader] - The shader to use during the draw.\r\n */\r\n bindAndDraw: function (source, target, clear, clearAlpha, currentShader)\r\n {\r\n if (clear === undefined) { clear = true; }\r\n if (clearAlpha === undefined) { clearAlpha = true; }\r\n\r\n var gl = this.gl;\r\n var renderer = this.renderer;\r\n\r\n this.bind(currentShader);\r\n\r\n this.set1i('uMainSampler', 0);\r\n\r\n if (target)\r\n {\r\n gl.viewport(0, 0, target.width, target.height);\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, target.framebuffer.webGLFramebuffer);\r\n gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, target.texture.webGLTexture, 0);\r\n\r\n if (clear)\r\n {\r\n if (clearAlpha)\r\n {\r\n gl.clearColor(0, 0, 0, 0);\r\n }\r\n else\r\n {\r\n gl.clearColor(0, 0, 0, 1);\r\n }\r\n\r\n gl.clear(gl.COLOR_BUFFER_BIT);\r\n }\r\n }\r\n else\r\n {\r\n renderer.popFramebuffer(false, false);\r\n\r\n if (!renderer.currentFramebuffer)\r\n {\r\n gl.viewport(0, 0, renderer.width, renderer.height);\r\n }\r\n }\r\n\r\n renderer.restoreStencilMask();\r\n\r\n gl.activeTexture(gl.TEXTURE0);\r\n gl.bindTexture(gl.TEXTURE_2D, source.texture.webGLTexture);\r\n\r\n gl.bufferData(gl.ARRAY_BUFFER, this.vertexData, gl.STATIC_DRAW);\r\n gl.drawArrays(gl.TRIANGLES, 0, 6);\r\n\r\n if (target)\r\n {\r\n gl.bindTexture(gl.TEXTURE_2D, null);\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, renderer.currentFramebuffer.webGLFramebuffer);\r\n }\r\n },\r\n\r\n /**\r\n * Destroys all shader instances, removes all object references and nulls all external references.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PostFXPipeline#destroy\r\n * @since 3.60.0\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n destroy: function ()\r\n {\r\n if (this.controller)\r\n {\r\n this.controller.destroy();\r\n }\r\n\r\n this.gameObject = null;\r\n this.controller = null;\r\n this.colorMatrix = null;\r\n this.fullFrame1 = null;\r\n this.fullFrame2 = null;\r\n this.halfFrame1 = null;\r\n this.halfFrame2 = null;\r\n\r\n this.manager.removePostPipeline(this);\r\n\r\n WebGLPipeline.prototype.destroy.call(this);\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = PostFXPipeline;\r\n\n\n/***/ }),\n\n/***/ 43558:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BlendModes = __webpack_require__(10312);\r\nvar CenterOn = __webpack_require__(67502);\r\nvar Class = __webpack_require__(83419);\r\nvar ColorMatrixFS = __webpack_require__(96293);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar MultiPipeline = __webpack_require__(57516);\r\nvar PostFXFS = __webpack_require__(27681);\r\nvar Rectangle = __webpack_require__(87841);\r\nvar RenderTarget = __webpack_require__(32302);\r\nvar SingleQuadFS = __webpack_require__(45561);\r\nvar SingleQuadVS = __webpack_require__(60722);\r\nvar WebGLPipeline = __webpack_require__(29100);\r\n\r\n/**\r\n * @classdesc\r\n * The Pre FX Pipeline is a special kind of pipeline designed specifically for applying\r\n * special effects to Game Objects before they are rendered. Where-as the Post FX Pipeline applies an effect _after_ the\r\n * object has been rendered, the Pre FX Pipeline allows you to control the rendering of\r\n * the object itself - passing it off to its own texture, where multi-buffer compositing\r\n * can take place.\r\n *\r\n * You can only use the PreFX Pipeline on the following types of Game Objects, or those\r\n * that extend from them:\r\n *\r\n * Sprite\r\n * Image\r\n * Text\r\n * TileSprite\r\n * RenderTexture\r\n * Video\r\n *\r\n * @class PreFXPipeline\r\n * @extends Phaser.Renderer.WebGL.WebGLPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.Renderer.WebGL.WebGLPipelineConfig} config - The configuration options for this pipeline.\r\n */\r\nvar PreFXPipeline = new Class({\r\n\r\n Extends: MultiPipeline,\r\n\r\n initialize:\r\n\r\n function PreFXPipeline (config)\r\n {\r\n var fragShader = GetFastValue(config, 'fragShader', PostFXFS);\r\n var vertShader = GetFastValue(config, 'vertShader', SingleQuadVS);\r\n var drawShader = GetFastValue(config, 'drawShader', PostFXFS);\r\n\r\n var defaultShaders = [\r\n {\r\n name: 'DrawSprite',\r\n fragShader: SingleQuadFS,\r\n vertShader: SingleQuadVS\r\n },\r\n {\r\n name: 'CopySprite',\r\n fragShader: fragShader,\r\n vertShader: vertShader\r\n },\r\n {\r\n name: 'DrawGame',\r\n fragShader: drawShader,\r\n vertShader: SingleQuadVS\r\n },\r\n {\r\n name: 'ColorMatrix',\r\n fragShader: ColorMatrixFS\r\n }\r\n ];\r\n\r\n var configShaders = GetFastValue(config, 'shaders', []);\r\n\r\n config.shaders = defaultShaders.concat(configShaders);\r\n\r\n if (!config.vertShader)\r\n {\r\n config.vertShader = vertShader;\r\n }\r\n\r\n config.batchSize = 1;\r\n\r\n MultiPipeline.call(this, config);\r\n\r\n this.isPreFX = true;\r\n\r\n this.customMainSampler = null;\r\n\r\n /**\r\n * A reference to the Draw Sprite Shader belonging to this Pipeline.\r\n *\r\n * This shader is used when the sprite is drawn to this fbo (or to the game if drawToFrame is false)\r\n *\r\n * This property is set during the `boot` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#drawSpriteShader\r\n * @type {Phaser.Renderer.WebGL.WebGLShader}\r\n * @default null\r\n * @since 3.60.0\r\n */\r\n this.drawSpriteShader;\r\n\r\n /**\r\n * A reference to the Copy Shader belonging to this Pipeline.\r\n *\r\n * This shader is used when you call the `copySprite` method.\r\n *\r\n * This property is set during the `boot` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#copyShader\r\n * @type {Phaser.Renderer.WebGL.WebGLShader}\r\n * @default null\r\n * @since 3.60.0\r\n */\r\n this.copyShader;\r\n\r\n /**\r\n * A reference to the Game Draw Shader belonging to this Pipeline.\r\n *\r\n * This shader draws the fbo to the game.\r\n *\r\n * This property is set during the `boot` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#gameShader\r\n * @type {Phaser.Renderer.WebGL.WebGLShader}\r\n * @default null\r\n * @since 3.60.0\r\n */\r\n this.gameShader;\r\n\r\n /**\r\n * A reference to the Color Matrix Shader belonging to this Pipeline.\r\n *\r\n * This property is set during the `boot` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#colorMatrixShader\r\n * @type {Phaser.Renderer.WebGL.WebGLShader}\r\n * @since 3.60.0\r\n */\r\n this.colorMatrixShader;\r\n\r\n /**\r\n * Raw byte buffer of vertices used specifically during the copySprite method.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#quadVertexData\r\n * @type {ArrayBuffer}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.quadVertexData;\r\n\r\n /**\r\n * The WebGLBuffer that holds the quadVertexData.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#quadVertexBuffer\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLBufferWrapper}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.quadVertexBuffer;\r\n\r\n /**\r\n * Float32 view of the quad array buffer.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#quadVertexViewF32\r\n * @type {Float32Array}\r\n * @since 3.60.0\r\n */\r\n this.quadVertexViewF32;\r\n\r\n /**\r\n * A temporary Rectangle object re-used internally during sprite drawing.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#spriteBounds\r\n * @type {Phaser.Geom.Rectangle}\r\n * @private\r\n * @since 3.60.0\r\n */\r\n this.spriteBounds = new Rectangle();\r\n\r\n /**\r\n * A temporary Rectangle object re-used internally during sprite drawing.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#targetBounds\r\n * @type {Phaser.Geom.Rectangle}\r\n * @private\r\n * @since 3.60.0\r\n */\r\n this.targetBounds = new Rectangle();\r\n\r\n /**\r\n * The full-screen Render Target that the sprite is first drawn to.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#fsTarget\r\n * @type {Phaser.Renderer.WebGL.RenderTarget}\r\n * @since 3.60.0\r\n */\r\n this.fsTarget;\r\n\r\n /**\r\n * The most recent Game Object drawn.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#tempSprite\r\n * @type {Phaser.GameObjects.Sprite}\r\n * @private\r\n * @since 3.60.0\r\n */\r\n this.tempSprite;\r\n\r\n if (this.renderer.isBooted)\r\n {\r\n this.manager = this.renderer.pipelines;\r\n\r\n this.boot();\r\n }\r\n },\r\n\r\n boot: function ()\r\n {\r\n WebGLPipeline.prototype.boot.call(this);\r\n\r\n var shaders = this.shaders;\r\n var renderer = this.renderer;\r\n\r\n this.drawSpriteShader = shaders[0];\r\n this.copyShader = shaders[1];\r\n this.gameShader = shaders[2];\r\n this.colorMatrixShader = shaders[3];\r\n\r\n // Our full-screen target (exclusive to this pipeline)\r\n this.fsTarget = new RenderTarget(renderer, renderer.width, renderer.height, 1, 0, true, true);\r\n\r\n // Copy by reference the RTs in the PipelineManager, plus add our fsTarget\r\n this.renderTargets = this.manager.renderTargets.concat(this.fsTarget);\r\n\r\n // 6 verts * 28 bytes\r\n var data = new ArrayBuffer(168);\r\n\r\n this.quadVertexData = data;\r\n\r\n this.quadVertexViewF32 = new Float32Array(data);\r\n\r\n this.quadVertexBuffer = renderer.createVertexBuffer(data, this.gl.STATIC_DRAW);\r\n\r\n this.onResize(renderer.width, renderer.height);\r\n\r\n // So calls to set uniforms in onPreRender target the right shader:\r\n this.currentShader = this.copyShader;\r\n\r\n this.set2f('uResolution', renderer.width, renderer.height);\r\n },\r\n\r\n /**\r\n * Handles the resizing of the quad vertex data.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#onResize\r\n * @since 3.60.0\r\n *\r\n * @param {number} width - The new width of the quad.\r\n * @param {number} height - The new height of the quad.\r\n */\r\n onResize: function (width, height)\r\n {\r\n var vertexViewF32 = this.quadVertexViewF32;\r\n\r\n // vertexBuffer indexes:\r\n\r\n // Each vert: [ x, y, u, v, unit, mode, tint ]\r\n\r\n // 0 - 6 - vert 1 - x0/y0\r\n // 7 - 13 - vert 2 - x1/y1\r\n // 14 - 20 - vert 3 - x2/y2\r\n // 21 - 27 - vert 4 - x0/y0\r\n // 28 - 34 - vert 5 - x2/y2\r\n // 35 - 41 - vert 6 - x3/y3\r\n\r\n // Verts\r\n vertexViewF32[1] = height; // y0\r\n vertexViewF32[22] = height; // y0\r\n vertexViewF32[14] = width; // x2\r\n vertexViewF32[28] = width; // x2\r\n vertexViewF32[35] = width; // x3\r\n vertexViewF32[36] = height; // y3\r\n },\r\n\r\n /**\r\n * Adds the vertices data into the batch and flushes if full.\r\n *\r\n * Assumes 6 vertices in the following arrangement:\r\n *\r\n * ```\r\n * 0----3\r\n * |\\ B|\r\n * | \\ |\r\n * | \\ |\r\n * | A \\|\r\n * | \\\r\n * 1----2\r\n * ```\r\n *\r\n * Where x0 / y0 = 0, x1 / y1 = 1, x2 / y2 = 2 and x3 / y3 = 3\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#batchQuad\r\n * @since 3.60.0\r\n *\r\n * @param {(Phaser.GameObjects.GameObject|null)} gameObject - The Game Object, if any, drawing this quad.\r\n * @param {number} x0 - The top-left x position.\r\n * @param {number} y0 - The top-left y position.\r\n * @param {number} x1 - The bottom-left x position.\r\n * @param {number} y1 - The bottom-left y position.\r\n * @param {number} x2 - The bottom-right x position.\r\n * @param {number} y2 - The bottom-right y position.\r\n * @param {number} x3 - The top-right x position.\r\n * @param {number} y3 - The top-right y position.\r\n * @param {number} u0 - UV u0 value.\r\n * @param {number} v0 - UV v0 value.\r\n * @param {number} u1 - UV u1 value.\r\n * @param {number} v1 - UV v1 value.\r\n * @param {number} tintTL - The top-left tint color value.\r\n * @param {number} tintTR - The top-right tint color value.\r\n * @param {number} tintBL - The bottom-left tint color value.\r\n * @param {number} tintBR - The bottom-right tint color value.\r\n * @param {(number|boolean)} tintEffect - The tint effect for the shader to use.\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} [texture] - Texture that will be assigned to the current batch if a flush occurs.\r\n *\r\n * @return {boolean} `true` if this method caused the batch to flush, otherwise `false`.\r\n */\r\n batchQuad: function (gameObject, x0, y0, x1, y1, x2, y2, x3, y3, u0, v0, u1, v1, tintTL, tintTR, tintBL, tintBR, tintEffect, texture)\r\n {\r\n var bx = Math.min(x0, x1, x2, x3);\r\n var by = Math.min(y0, y1, y2, y3);\r\n var br = Math.max(x0, x1, x2, x3);\r\n var bb = Math.max(y0, y1, y2, y3);\r\n var bw = br - bx;\r\n var bh = bb - by;\r\n\r\n var bounds = this.spriteBounds.setTo(bx, by, bw, bh);\r\n\r\n var padding = (gameObject) ? gameObject.preFX.padding : 0;\r\n var width = bw + (padding * 2);\r\n var height = bh + (padding * 2);\r\n var maxDimension = Math.abs(Math.max(width, height));\r\n\r\n var target = this.manager.getRenderTarget(maxDimension);\r\n\r\n var targetBounds = this.targetBounds.setTo(0, 0, target.width, target.height);\r\n\r\n // targetBounds is the same size as the fbo and centered on the spriteBounds\r\n // so we can use it when we re-render this back to the game\r\n CenterOn(targetBounds, Math.round(bounds.centerX), Math.round(bounds.centerY));\r\n\r\n this.tempSprite = gameObject;\r\n\r\n // Now draw the quad\r\n var gl = this.gl;\r\n var renderer = this.renderer;\r\n\r\n renderer.clearStencilMask();\r\n\r\n this.setShader(this.drawSpriteShader);\r\n\r\n this.set1i('uMainSampler', 0);\r\n this.set2f('uResolution', renderer.width, renderer.height);\r\n\r\n this.flipProjectionMatrix(true);\r\n\r\n if (gameObject)\r\n {\r\n this.onDrawSprite(gameObject, target);\r\n\r\n gameObject.preFX.onFX(this);\r\n }\r\n\r\n var fsTarget = this.fsTarget;\r\n\r\n this.flush();\r\n\r\n gl.viewport(0, 0, renderer.width, renderer.height);\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, fsTarget.framebuffer.webGLFramebuffer);\r\n gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, fsTarget.texture.webGLTexture, 0);\r\n\r\n gl.clearColor(0, 0, 0, 0);\r\n gl.clear(gl.COLOR_BUFFER_BIT);\r\n\r\n this.setTexture2D(texture);\r\n\r\n this.batchVert(x0, y0, u0, v0, 0, tintEffect, tintTL);\r\n this.batchVert(x1, y1, u0, v1, 0, tintEffect, tintBL);\r\n this.batchVert(x2, y2, u1, v1, 0, tintEffect, tintBR);\r\n\r\n this.batchVert(x0, y0, u0, v0, 0, tintEffect, tintTL);\r\n this.batchVert(x2, y2, u1, v1, 0, tintEffect, tintBR);\r\n this.batchVert(x3, y3, u1, v0, 0, tintEffect, tintTR);\r\n\r\n this.flush();\r\n\r\n this.flipProjectionMatrix(false);\r\n\r\n // Now we've got the sprite drawn to our screen-sized fbo, copy the rect we need to our target\r\n\r\n gl.activeTexture(gl.TEXTURE0);\r\n gl.bindTexture(gl.TEXTURE_2D, target.texture.webGLTexture);\r\n gl.copyTexSubImage2D(gl.TEXTURE_2D, 0, 0, 0, targetBounds.x, targetBounds.y, targetBounds.width, targetBounds.height);\r\n\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, null);\r\n gl.bindTexture(gl.TEXTURE_2D, null);\r\n\r\n // We've drawn the sprite to the target (using our pipeline shader)\r\n // we can pass it to the pipeline in case they want to do further\r\n // manipulations with it, post-fx style, then we need to draw the\r\n // results back to the game in the correct position\r\n\r\n this.onBatch(gameObject);\r\n\r\n // Set this here, so we can immediately call the set uniform functions and it'll work on the correct shader\r\n this.currentShader = this.copyShader;\r\n\r\n this.onDraw(target, this.manager.getSwapRenderTarget(), this.manager.getAltSwapRenderTarget());\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * This callback is invoked when a sprite is drawn by this pipeline.\r\n *\r\n * It will fire after the shader has been set, but before the sprite has been drawn,\r\n * so use it to set any additional uniforms you may need.\r\n *\r\n * Note: Manipulating the Sprite during this callback will _not_ change how it is drawn to the Render Target.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#onDrawSprite\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.Sprite} gameObject - The Sprite being drawn.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} target - The Render Target the Sprite will be drawn to.\r\n */\r\n onDrawSprite: function ()\r\n {\r\n },\r\n\r\n /**\r\n * This callback is invoked when you call the `copySprite` method.\r\n *\r\n * It will fire after the shader has been set, but before the source target has been copied,\r\n * so use it to set any additional uniforms you may need.\r\n *\r\n * Note: Manipulating the Sprite during this callback will _not_ change the Render Targets.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#onCopySprite\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The source Render Target being copied from.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} target - The target Render Target that will be copied to.\r\n * @param {Phaser.GameObjects.Sprite} gameObject - The Sprite being copied.\r\n */\r\n onCopySprite: function ()\r\n {\r\n },\r\n\r\n /**\r\n * Copy the `source` Render Target to the `target` Render Target.\r\n *\r\n * No target resizing takes place. If the `source` Render Target is larger than the `target`,\r\n * then only a portion the same size as the `target` dimensions is copied across.\r\n *\r\n * Calling this method will invoke the `onCopySprite` handler and will also call\r\n * the `onFXCopy` callback on the Sprite. Both of these happen prior to the copy, allowing you\r\n * to use them to set shader uniforms and other values.\r\n *\r\n * You can optionally pass in a ColorMatrix. If so, it will use the ColorMatrix shader\r\n * during the copy, allowing you to manipulate the colors to a fine degree.\r\n * See the `ColorMatrix` class for more details.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#copySprite\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The source Render Target being copied from.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} target - The target Render Target that will be copied to.\r\n * @param {boolean} [clear=true] - Clear the target before copying?\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n * @param {boolean} [eraseMode=false] - Erase source from target using ERASE Blend Mode?\r\n * @param {Phaser.Display.ColorMatrix} [colorMatrix] - Optional ColorMatrix to use when copying the Sprite.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [shader] - The shader to use to copy the target. Defaults to the `copyShader`.\r\n */\r\n copySprite: function (source, target, clear, clearAlpha, eraseMode, colorMatrix, shader)\r\n {\r\n if (clear === undefined) { clear = true; }\r\n if (clearAlpha === undefined) { clearAlpha = true; }\r\n if (eraseMode === undefined) { eraseMode = false; }\r\n if (shader === undefined) { shader = this.copyShader; }\r\n\r\n var gl = this.gl;\r\n var sprite = this.tempSprite;\r\n\r\n if (colorMatrix)\r\n {\r\n shader = this.colorMatrixShader;\r\n }\r\n\r\n this.currentShader = shader;\r\n\r\n var wasBound = this.setVertexBuffer(this.quadVertexBuffer);\r\n\r\n shader.bind(wasBound, false);\r\n\r\n var renderer = this.renderer;\r\n\r\n this.set1i('uMainSampler', 0);\r\n this.set2f('uResolution', renderer.width, renderer.height);\r\n\r\n sprite.preFX.onFXCopy(this);\r\n\r\n this.onCopySprite(source, target, sprite);\r\n\r\n if (colorMatrix)\r\n {\r\n this.set1fv('uColorMatrix', colorMatrix.getData());\r\n this.set1f('uAlpha', colorMatrix.alpha);\r\n }\r\n\r\n gl.activeTexture(gl.TEXTURE0);\r\n gl.bindTexture(gl.TEXTURE_2D, source.texture.webGLTexture);\r\n\r\n if (source.height > target.height)\r\n {\r\n gl.viewport(0, 0, source.width, source.height);\r\n\r\n this.setTargetUVs(source, target);\r\n }\r\n else\r\n {\r\n var diff = target.height - source.height;\r\n\r\n gl.viewport(0, diff, source.width, source.height);\r\n\r\n this.resetUVs();\r\n }\r\n\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, target.framebuffer.webGLFramebuffer);\r\n gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, target.texture.webGLTexture, 0);\r\n\r\n if (clear)\r\n {\r\n gl.clearColor(0, 0, 0, Number(!clearAlpha));\r\n\r\n gl.clear(gl.COLOR_BUFFER_BIT);\r\n }\r\n\r\n if (eraseMode)\r\n {\r\n var blendMode = this.renderer.currentBlendMode;\r\n\r\n this.renderer.setBlendMode(BlendModes.ERASE);\r\n }\r\n\r\n gl.bufferData(gl.ARRAY_BUFFER, this.quadVertexData, gl.STATIC_DRAW);\r\n gl.drawArrays(gl.TRIANGLES, 0, 6);\r\n\r\n if (eraseMode)\r\n {\r\n this.renderer.setBlendMode(blendMode);\r\n }\r\n\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, null);\r\n },\r\n\r\n /**\r\n * Draws the `source` Render Target to the `target` Render Target.\r\n *\r\n * This is done using whatever the currently bound shader is. This method does\r\n * not set a shader. All it does is bind the source texture, set the viewport and UVs\r\n * then bind the target framebuffer, clears it and draws the source to it.\r\n *\r\n * At the end a null framebuffer is bound. No other clearing-up takes place, so\r\n * use this method carefully.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#copy\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} target - The target Render Target.\r\n */\r\n copy: function (source, target)\r\n {\r\n var gl = this.gl;\r\n\r\n this.set1i('uMainSampler', 0);\r\n\r\n gl.activeTexture(gl.TEXTURE0);\r\n gl.bindTexture(gl.TEXTURE_2D, source.texture.webGLTexture);\r\n\r\n // source and target must always be the same size\r\n gl.viewport(0, 0, source.width, source.height);\r\n\r\n this.setUVs(0, 0, 0, 1, 1, 1, 1, 0);\r\n\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, target.framebuffer.webGLFramebuffer);\r\n gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, target.texture.webGLTexture, 0);\r\n\r\n gl.clearColor(0, 0, 0, 0);\r\n gl.clear(gl.COLOR_BUFFER_BIT);\r\n\r\n gl.bufferData(gl.ARRAY_BUFFER, this.quadVertexData, gl.STATIC_DRAW);\r\n gl.drawArrays(gl.TRIANGLES, 0, 6);\r\n\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, null);\r\n },\r\n\r\n /**\r\n * Draws the `source1` and `source2` Render Targets to the `target` Render Target\r\n * using a linear blend effect, which is controlled by the `strength` parameter.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#blendFrames\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source1 - The first source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source2 - The second source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} [target] - The target Render Target.\r\n * @param {number} [strength=1] - The strength of the blend.\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n */\r\n blendFrames: function (source1, source2, target, strength, clearAlpha)\r\n {\r\n this.manager.blendFrames(source1, source2, target, strength, clearAlpha);\r\n },\r\n\r\n /**\r\n * Draws the `source1` and `source2` Render Targets to the `target` Render Target\r\n * using an additive blend effect, which is controlled by the `strength` parameter.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#blendFramesAdditive\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source1 - The first source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source2 - The second source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} [target] - The target Render Target.\r\n * @param {number} [strength=1] - The strength of the blend.\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n */\r\n blendFramesAdditive: function (source1, source2, target, strength, clearAlpha)\r\n {\r\n this.manager.blendFramesAdditive(source1, source2, target, strength, clearAlpha);\r\n },\r\n\r\n /**\r\n * This method will copy the given Render Target to the game canvas using the `copyShader`.\r\n *\r\n * This applies the results of the copy shader during the draw.\r\n *\r\n * If you wish to copy the target without any effects see the `copyToGame` method instead.\r\n *\r\n * This method should be the final thing called in your pipeline.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#drawToGame\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The Render Target to draw to the game.\r\n */\r\n drawToGame: function (source)\r\n {\r\n this.currentShader = null;\r\n\r\n this.setShader(this.copyShader);\r\n\r\n this.bindAndDraw(source);\r\n },\r\n\r\n /**\r\n * This method will copy the given Render Target to the game canvas using the `gameShader`.\r\n *\r\n * Unless you've changed it, the `gameShader` copies the target without modifying it, just\r\n * ensuring it is placed in the correct location on the canvas.\r\n *\r\n * If you wish to draw the target with and apply the fragment shader at the same time,\r\n * see the `drawToGame` method instead.\r\n *\r\n * This method should be the final thing called in your pipeline.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#copyToGame\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The Render Target to copy to the game.\r\n */\r\n copyToGame: function (source)\r\n {\r\n this.currentShader = null;\r\n\r\n this.setShader(this.gameShader);\r\n\r\n this.bindAndDraw(source);\r\n },\r\n\r\n /**\r\n * This method is called by `drawToGame` and `copyToGame`. It takes the source Render Target\r\n * and copies it back to the game canvas, or the next frame buffer in the stack, and should\r\n * be considered the very last thing this pipeline does.\r\n *\r\n * You don't normally need to call this method, or override it, however it is left public\r\n * should you wish to do so.\r\n *\r\n * Note that it does _not_ set a shader. You should do this yourself if invoking this.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#bindAndDraw\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The Render Target to draw to the game.\r\n */\r\n bindAndDraw: function (source)\r\n {\r\n var gl = this.gl;\r\n var renderer = this.renderer;\r\n\r\n this.set1i('uMainSampler', 0);\r\n\r\n if (this.customMainSampler)\r\n {\r\n this.setTexture2D(this.customMainSampler);\r\n }\r\n else\r\n {\r\n this.setTexture2D(source.texture);\r\n }\r\n\r\n var matrix = this._tempMatrix1.loadIdentity();\r\n\r\n var x = this.targetBounds.x;\r\n var y = this.targetBounds.y;\r\n\r\n var xw = x + source.width;\r\n var yh = y + source.height;\r\n\r\n var x0 = matrix.getX(x, y);\r\n var x1 = matrix.getX(x, yh);\r\n var x2 = matrix.getX(xw, yh);\r\n var x3 = matrix.getX(xw, y);\r\n\r\n // Regular verts\r\n var y0 = matrix.getY(x, y);\r\n var y1 = matrix.getY(x, yh);\r\n var y2 = matrix.getY(xw, yh);\r\n var y3 = matrix.getY(xw, y);\r\n\r\n // Flip verts:\r\n // var y0 = matrix.getY(x, yh);\r\n // var y1 = matrix.getY(x, y);\r\n // var y2 = matrix.getY(xw, y);\r\n // var y3 = matrix.getY(xw, yh);\r\n\r\n var white = 0xffffff;\r\n\r\n this.batchVert(x0, y0, 0, 0, 0, 0, white);\r\n this.batchVert(x1, y1, 0, 1, 0, 0, white);\r\n this.batchVert(x2, y2, 1, 1, 0, 0, white);\r\n this.batchVert(x0, y0, 0, 0, 0, 0, white);\r\n this.batchVert(x2, y2, 1, 1, 0, 0, white);\r\n this.batchVert(x3, y3, 1, 0, 0, 0, white);\r\n\r\n renderer.restoreFramebuffer(false, true);\r\n\r\n if (!renderer.currentFramebuffer)\r\n {\r\n gl.viewport(0, 0, renderer.width, renderer.height);\r\n }\r\n\r\n renderer.restoreStencilMask();\r\n\r\n this.flush();\r\n\r\n // Clear the source framebuffer out, ready for the next pass\r\n // gl.clearColor(0, 0, 0, 0);\r\n // gl.bindFramebuffer(gl.FRAMEBUFFER, source.framebuffer.webGLFramebuffer);\r\n // gl.clear(gl.COLOR_BUFFER_BIT);\r\n // gl.bindFramebuffer(gl.FRAMEBUFFER, null);\r\n\r\n // No hanging references\r\n this.tempSprite = null;\r\n },\r\n\r\n /**\r\n * This method is called every time the `batchSprite` method is called and is passed a\r\n * reference to the current render target.\r\n *\r\n * If you override this method, then it should make sure it calls either the\r\n * `drawToGame` or `copyToGame` methods as the final thing it does. However, you can do as\r\n * much additional processing as you like prior to this.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#onDraw\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} target - The Render Target to draw to the game.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} [swapTarget] - The Swap Render Target, useful for double-buffer effects.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} [altSwapTarget] - The Swap Render Target, useful for double-buffer effects.\r\n */\r\n onDraw: function (target)\r\n {\r\n this.drawToGame(target);\r\n },\r\n\r\n /**\r\n * Set the UV values for the 6 vertices that make up the quad used by the copy shader.\r\n *\r\n * Be sure to call `resetUVs` once you have finished manipulating the UV coordinates.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#setUVs\r\n * @since 3.60.0\r\n *\r\n * @param {number} uA - The u value of vertex A.\r\n * @param {number} vA - The v value of vertex A.\r\n * @param {number} uB - The u value of vertex B.\r\n * @param {number} vB - The v value of vertex B.\r\n * @param {number} uC - The u value of vertex C.\r\n * @param {number} vC - The v value of vertex C.\r\n * @param {number} uD - The u value of vertex D.\r\n * @param {number} vD - The v value of vertex D.\r\n */\r\n setUVs: function (uA, vA, uB, vB, uC, vC, uD, vD)\r\n {\r\n var vertexViewF32 = this.quadVertexViewF32;\r\n\r\n vertexViewF32[2] = uA;\r\n vertexViewF32[3] = vA;\r\n\r\n vertexViewF32[9] = uB;\r\n vertexViewF32[10] = vB;\r\n\r\n vertexViewF32[16] = uC;\r\n vertexViewF32[17] = vC;\r\n\r\n vertexViewF32[23] = uA;\r\n vertexViewF32[24] = vA;\r\n\r\n vertexViewF32[30] = uC;\r\n vertexViewF32[31] = vC;\r\n\r\n vertexViewF32[37] = uD;\r\n vertexViewF32[38] = vD;\r\n },\r\n\r\n /**\r\n * Sets the vertex UV coordinates of the quad used by the copy shaders\r\n * so that they correctly adjust the texture coordinates for a blit frame effect.\r\n *\r\n * Be sure to call `resetUVs` once you have finished manipulating the UV coordinates.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#setTargetUVs\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} target - The target Render Target.\r\n */\r\n setTargetUVs: function (source, target)\r\n {\r\n var diff = (target.height / source.height);\r\n\r\n if (diff > 0.5)\r\n {\r\n diff = 0.5 - (diff - 0.5);\r\n }\r\n else\r\n {\r\n diff = 0.5 + (0.5 - diff);\r\n }\r\n\r\n this.setUVs(0, diff, 0, 1 + diff, 1, 1 + diff, 1, diff);\r\n },\r\n\r\n /**\r\n * Resets the quad vertice UV values to their default settings.\r\n *\r\n * The quad is used by the copy shader in this pipeline.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#resetUVs\r\n * @since 3.60.0\r\n */\r\n resetUVs: function ()\r\n {\r\n this.setUVs(0, 0, 0, 1, 1, 1, 1, 0);\r\n },\r\n\r\n /**\r\n * Destroys all shader instances, removes all object references and nulls all external references.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.PreFXPipeline#destroy\r\n * @fires Phaser.Renderer.WebGL.Pipelines.Events#DESTROY\r\n * @since 3.60.0\r\n *\r\n * @return {this} This WebGLPipeline instance.\r\n */\r\n destroy: function ()\r\n {\r\n this.renderer.deleteBuffer(this.quadVertexBuffer);\r\n\r\n this.drawSpriteShader = null;\r\n this.copyShader = null;\r\n this.gameShader = null;\r\n this.colorMatrixShader = null;\r\n\r\n this.quadVertexData = null;\r\n this.quadVertexBuffer = null;\r\n this.quadVertexViewF32 = null;\r\n\r\n this.fsTarget = null;\r\n this.tempSprite = null;\r\n\r\n MultiPipeline.prototype.destroy.call(this);\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = PreFXPipeline;\r\n\n\n/***/ }),\n\n/***/ 81041:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar MultiPipeline = __webpack_require__(57516);\r\n\r\n/**\r\n * @classdesc\r\n * The Rope Pipeline is a variation of the Multi Pipeline that uses a `TRIANGLE_STRIP` for\r\n * its topology, instead of TRIANGLES. This is primarily used by the Rope Game Object,\r\n * or anything that extends it.\r\n *\r\n * Prior to Phaser v3.50 this pipeline was called the `TextureTintStripPipeline`.\r\n *\r\n * The fragment shader it uses can be found in `shaders/src/Multi.frag`.\r\n * The vertex shader it uses can be found in `shaders/src/Multi.vert`.\r\n *\r\n * The default shader attributes for this pipeline are:\r\n *\r\n * `inPosition` (vec2, offset 0)\r\n * `inTexCoord` (vec2, offset 8)\r\n * `inTexId` (float, offset 16)\r\n * `inTintEffect` (float, offset 20)\r\n * `inTint` (vec4, offset 24, normalized)\r\n *\r\n * The default shader uniforms for this pipeline are:\r\n *\r\n * `uProjectionMatrix` (mat4)\r\n * `uResolution` (vec2)\r\n * `uMainSampler` (sampler2D, or sampler2D array)\r\n *\r\n * The pipeline is structurally identical to the Multi Pipeline and should be treated as such.\r\n *\r\n * @class RopePipeline\r\n * @extends Phaser.Renderer.WebGL.Pipelines.MultiPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines\r\n * @constructor\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Types.Renderer.WebGL.WebGLPipelineConfig} config - The configuration options for this pipeline.\r\n */\r\nvar RopePipeline = new Class({\r\n\r\n Extends: MultiPipeline,\r\n\r\n initialize:\r\n\r\n function RopePipeline (config)\r\n {\r\n // GLenum 5 = TRIANGLE_STRIP\r\n config.topology = 5;\r\n config.batchSize = GetFastValue(config, 'batchSize', 256);\r\n\r\n MultiPipeline.call(this, config);\r\n }\r\n});\r\n\r\nmodule.exports = RopePipeline;\r\n\n\n/***/ }),\n\n/***/ 12385:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar MultiPipeline = __webpack_require__(57516);\r\nvar ShaderSourceFS = __webpack_require__(45561);\r\nvar ShaderSourceVS = __webpack_require__(60722);\r\nvar WebGLPipeline = __webpack_require__(29100);\r\n\r\n/**\r\n * @classdesc\r\n * The Single Pipeline is a special version of the Multi Pipeline that only ever\r\n * uses one texture, bound to texture unit zero. Although not as efficient as the\r\n * Multi Pipeline, it provides an easier way to create custom pipelines that only require\r\n * a single bound texture.\r\n *\r\n * Prior to Phaser v3.50 this pipeline didn't exist, but could be compared to the old `TextureTintPipeline`.\r\n *\r\n * The fragment shader it uses can be found in `shaders/src/Single.frag`.\r\n * The vertex shader it uses can be found in `shaders/src/Single.vert`.\r\n *\r\n * The default shader attributes for this pipeline are:\r\n *\r\n * `inPosition` (vec2, offset 0)\r\n * `inTexCoord` (vec2, offset 8)\r\n * `inTexId` (float, offset 16) - this value is always zero in the Single Pipeline\r\n * `inTintEffect` (float, offset 20)\r\n * `inTint` (vec4, offset 24, normalized)\r\n *\r\n * The default shader uniforms for this pipeline are:\r\n *\r\n * `uProjectionMatrix` (mat4)\r\n * `uResolution` (vec2)\r\n * `uMainSampler` (sampler2D, or sampler2D array)\r\n *\r\n * @class SinglePipeline\r\n * @extends Phaser.Renderer.WebGL.Pipelines.MultiPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines\r\n * @constructor\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Types.Renderer.WebGL.WebGLPipelineConfig} config - The configuration options for this pipeline.\r\n */\r\nvar SinglePipeline = new Class({\r\n\r\n Extends: MultiPipeline,\r\n\r\n initialize:\r\n\r\n function SinglePipeline (config)\r\n {\r\n config.fragShader = GetFastValue(config, 'fragShader', ShaderSourceFS),\r\n config.vertShader = GetFastValue(config, 'vertShader', ShaderSourceVS),\r\n config.forceZero = true;\r\n\r\n MultiPipeline.call(this, config);\r\n },\r\n\r\n boot: function ()\r\n {\r\n WebGLPipeline.prototype.boot.call(this);\r\n\r\n var renderer = this.renderer;\r\n\r\n this.set1i('uMainSampler', 0);\r\n this.set2f('uResolution', renderer.width, renderer.height);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = SinglePipeline;\r\n\n\n/***/ }),\n\n/***/ 7589:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar AddBlendFS = __webpack_require__(35407);\r\nvar BlendModes = __webpack_require__(10312);\r\nvar Class = __webpack_require__(83419);\r\nvar ColorMatrix = __webpack_require__(89422);\r\nvar ColorMatrixFS = __webpack_require__(96293);\r\nvar CopyFS = __webpack_require__(36682);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar LinearBlendFS = __webpack_require__(48247);\r\nvar QuadVS = __webpack_require__(49627);\r\nvar WebGLPipeline = __webpack_require__(29100);\r\n\r\n/**\r\n * @classdesc\r\n * The Utility Pipeline is a special-use pipeline that belongs to the Pipeline Manager.\r\n *\r\n * It provides 4 shaders and handy associated methods:\r\n *\r\n * 1) Copy Shader. A fast texture to texture copy shader with optional brightness setting.\r\n * 2) Additive Blend Mode Shader. Blends two textures using an additive blend mode.\r\n * 3) Linear Blend Mode Shader. Blends two textures using a linear blend mode.\r\n * 4) Color Matrix Copy Shader. Draws a texture to a target using a Color Matrix.\r\n *\r\n * You do not extend this pipeline, but instead get a reference to it from the Pipeline\r\n * Manager via the `setUtility` method. You can also access methods such as `copyFrame`\r\n * directly from the Pipeline Manager.\r\n *\r\n * This pipeline provides methods for manipulating framebuffer backed textures, such as\r\n * copying or blending one texture to another, copying a portion of a texture, additively\r\n * blending two textures, flipping textures and more.\r\n *\r\n * The default shader attributes for this pipeline are:\r\n *\r\n * `inPosition` (vec2, offset 0)\r\n * `inTexCoord` (vec2, offset 8)\r\n *\r\n * This pipeline has a hard-coded batch size of 1 and a hard coded set of vertices.\r\n *\r\n * @class UtilityPipeline\r\n * @extends Phaser.Renderer.WebGL.WebGLPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines\r\n * @constructor\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Types.Renderer.WebGL.WebGLPipelineConfig} config - The configuration options for this pipeline.\r\n */\r\nvar UtilityPipeline = new Class({\r\n\r\n Extends: WebGLPipeline,\r\n\r\n initialize:\r\n\r\n function UtilityPipeline (config)\r\n {\r\n config.renderTarget = GetFastValue(config, 'renderTarget', [\r\n {\r\n scale: 1,\r\n autoResize: true\r\n },\r\n {\r\n scale: 1,\r\n autoResize: true\r\n },\r\n {\r\n scale: 0.5,\r\n autoResize: true\r\n },\r\n {\r\n scale: 0.5,\r\n autoResize: true\r\n }\r\n ]);\r\n\r\n config.vertShader = GetFastValue(config, 'vertShader', QuadVS);\r\n\r\n config.shaders = GetFastValue(config, 'shaders', [\r\n {\r\n name: 'Copy',\r\n fragShader: CopyFS\r\n },\r\n {\r\n name: 'AddBlend',\r\n fragShader: AddBlendFS\r\n },\r\n {\r\n name: 'LinearBlend',\r\n fragShader: LinearBlendFS\r\n },\r\n {\r\n name: 'ColorMatrix',\r\n fragShader: ColorMatrixFS\r\n }\r\n ]);\r\n\r\n config.attributes = GetFastValue(config, 'attributes', [\r\n {\r\n name: 'inPosition',\r\n size: 2\r\n },\r\n {\r\n name: 'inTexCoord',\r\n size: 2\r\n }\r\n ]);\r\n\r\n config.vertices = [\r\n -1, -1, 0, 0,\r\n -1, 1, 0, 1,\r\n 1, 1, 1, 1,\r\n -1, -1, 0, 0,\r\n 1, 1, 1, 1,\r\n 1, -1, 1, 0\r\n ];\r\n\r\n config.batchSize = 1;\r\n\r\n WebGLPipeline.call(this, config);\r\n\r\n /**\r\n * A default Color Matrix, used by the Color Matrix Shader when one\r\n * isn't provided.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#colorMatrix\r\n * @type {Phaser.Display.ColorMatrix}\r\n * @since 3.50.0\r\n */\r\n this.colorMatrix = new ColorMatrix();\r\n\r\n /**\r\n * A reference to the Copy Shader belonging to this Utility Pipeline.\r\n *\r\n * This property is set during the `boot` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#copyShader\r\n * @type {Phaser.Renderer.WebGL.WebGLShader}\r\n * @default null\r\n * @since 3.50.0\r\n */\r\n this.copyShader;\r\n\r\n /**\r\n * A reference to the Additive Blend Shader belonging to this Utility Pipeline.\r\n *\r\n * This property is set during the `boot` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#addShader\r\n * @type {Phaser.Renderer.WebGL.WebGLShader}\r\n * @since 3.50.0\r\n */\r\n this.addShader;\r\n\r\n /**\r\n * A reference to the Linear Blend Shader belonging to this Utility Pipeline.\r\n *\r\n * This property is set during the `boot` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#linearShader\r\n * @type {Phaser.Renderer.WebGL.WebGLShader}\r\n * @since 3.50.0\r\n */\r\n this.linearShader;\r\n\r\n /**\r\n * A reference to the Color Matrix Shader belonging to this Utility Pipeline.\r\n *\r\n * This property is set during the `boot` method.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#colorMatrixShader\r\n * @type {Phaser.Renderer.WebGL.WebGLShader}\r\n * @since 3.50.0\r\n */\r\n this.colorMatrixShader;\r\n\r\n /**\r\n * A reference to the Full Frame 1 Render Target.\r\n *\r\n * This property is set during the `boot` method.\r\n *\r\n * This Render Target is the full size of the renderer.\r\n *\r\n * You can use this directly in Post FX Pipelines for multi-target effects.\r\n * However, be aware that these targets are shared between all post fx pipelines.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#fullFrame1\r\n * @type {Phaser.Renderer.WebGL.RenderTarget}\r\n * @since 3.50.0\r\n */\r\n this.fullFrame1;\r\n\r\n /**\r\n * A reference to the Full Frame 2 Render Target.\r\n *\r\n * This property is set during the `boot` method.\r\n *\r\n * This Render Target is the full size of the renderer.\r\n *\r\n * You can use this directly in Post FX Pipelines for multi-target effects.\r\n * However, be aware that these targets are shared between all post fx pipelines.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#fullFrame2\r\n * @type {Phaser.Renderer.WebGL.RenderTarget}\r\n * @since 3.50.0\r\n */\r\n this.fullFrame2;\r\n\r\n /**\r\n * A reference to the Half Frame 1 Render Target.\r\n *\r\n * This property is set during the `boot` method.\r\n *\r\n * This Render Target is half the size of the renderer.\r\n *\r\n * You can use this directly in Post FX Pipelines for multi-target effects.\r\n * However, be aware that these targets are shared between all post fx pipelines.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#halfFrame1\r\n * @type {Phaser.Renderer.WebGL.RenderTarget}\r\n * @since 3.50.0\r\n */\r\n this.halfFrame1;\r\n\r\n /**\r\n * A reference to the Half Frame 2 Render Target.\r\n *\r\n * This property is set during the `boot` method.\r\n *\r\n * This Render Target is half the size of the renderer.\r\n *\r\n * You can use this directly in Post FX Pipelines for multi-target effects.\r\n * However, be aware that these targets are shared between all post fx pipelines.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#halfFrame2\r\n * @type {Phaser.Renderer.WebGL.RenderTarget}\r\n * @since 3.50.0\r\n */\r\n this.halfFrame2;\r\n },\r\n\r\n boot: function ()\r\n {\r\n WebGLPipeline.prototype.boot.call(this);\r\n\r\n var shaders = this.shaders;\r\n var targets = this.renderTargets;\r\n\r\n this.copyShader = shaders[0];\r\n this.addShader = shaders[1];\r\n this.linearShader = shaders[2];\r\n this.colorMatrixShader = shaders[3];\r\n\r\n this.fullFrame1 = targets[0];\r\n this.fullFrame2 = targets[1];\r\n this.halfFrame1 = targets[2];\r\n this.halfFrame2 = targets[3];\r\n },\r\n\r\n /**\r\n * Copy the `source` Render Target to the `target` Render Target.\r\n *\r\n * You can optionally set the brightness factor of the copy.\r\n *\r\n * The difference between this method and `drawFrame` is that this method\r\n * uses a faster copy shader, where only the brightness can be modified.\r\n * If you need color level manipulation, see `drawFrame` instead.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#copyFrame\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} [target] - The target Render Target.\r\n * @param {number} [brightness=1] - The brightness value applied to the frame copy.\r\n * @param {boolean} [clear=true] - Clear the target before copying?\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n */\r\n copyFrame: function (source, target, brightness, clear, clearAlpha)\r\n {\r\n if (brightness === undefined) { brightness = 1; }\r\n if (clear === undefined) { clear = true; }\r\n if (clearAlpha === undefined) { clearAlpha = true; }\r\n\r\n var gl = this.gl;\r\n\r\n this.setShader(this.copyShader);\r\n\r\n this.set1i('uMainSampler', 0);\r\n this.set1f('uBrightness', brightness);\r\n\r\n gl.activeTexture(gl.TEXTURE0);\r\n gl.bindTexture(gl.TEXTURE_2D, source.texture.webGLTexture);\r\n\r\n if (target)\r\n {\r\n gl.viewport(0, 0, target.width, target.height);\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, target.framebuffer.webGLFramebuffer);\r\n gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, target.texture.webGLTexture, 0);\r\n }\r\n else\r\n {\r\n gl.viewport(0, 0, source.width, source.height);\r\n }\r\n\r\n if (clear)\r\n {\r\n if (clearAlpha)\r\n {\r\n gl.clearColor(0, 0, 0, 0);\r\n }\r\n else\r\n {\r\n gl.clearColor(0, 0, 0, 1);\r\n }\r\n\r\n gl.clear(gl.COLOR_BUFFER_BIT);\r\n }\r\n\r\n gl.bufferData(gl.ARRAY_BUFFER, this.vertexData, gl.STATIC_DRAW);\r\n gl.drawArrays(gl.TRIANGLES, 0, 6);\r\n\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, null);\r\n gl.bindTexture(gl.TEXTURE_2D, null);\r\n },\r\n\r\n /**\r\n * Copy the `source` Render Target to the `target` Render Target.\r\n *\r\n * The difference with this copy is that no resizing takes place. If the `source`\r\n * Render Target is larger than the `target` then only a portion the same size as\r\n * the `target` dimensions is copied across.\r\n *\r\n * You can optionally set the brightness factor of the copy.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#blitFrame\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} target - The target Render Target.\r\n * @param {number} [brightness=1] - The brightness value applied to the frame copy.\r\n * @param {boolean} [clear=true] - Clear the target before copying?\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n * @param {boolean} [eraseMode=false] - Erase source from target using ERASE Blend Mode?\r\n * @param {boolean} [flipY=false] - Flip the UV on the Y axis before drawing?\r\n */\r\n blitFrame: function (source, target, brightness, clear, clearAlpha, eraseMode, flipY)\r\n {\r\n if (brightness === undefined) { brightness = 1; }\r\n if (clear === undefined) { clear = true; }\r\n if (clearAlpha === undefined) { clearAlpha = true; }\r\n if (eraseMode === undefined) { eraseMode = false; }\r\n if (flipY === undefined) { flipY = false; }\r\n\r\n var gl = this.gl;\r\n\r\n this.setShader(this.copyShader);\r\n\r\n this.set1i('uMainSampler', 0);\r\n this.set1f('uBrightness', brightness);\r\n\r\n gl.activeTexture(gl.TEXTURE0);\r\n gl.bindTexture(gl.TEXTURE_2D, source.texture.webGLTexture);\r\n\r\n if (source.height > target.height)\r\n {\r\n gl.viewport(0, 0, source.width, source.height);\r\n\r\n this.setTargetUVs(source, target);\r\n }\r\n else\r\n {\r\n var diff = target.height - source.height;\r\n\r\n gl.viewport(0, diff, source.width, source.height);\r\n }\r\n\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, target.framebuffer.webGLFramebuffer);\r\n gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, target.texture.webGLTexture, 0);\r\n\r\n if (clear)\r\n {\r\n if (clearAlpha)\r\n {\r\n gl.clearColor(0, 0, 0, 0);\r\n }\r\n else\r\n {\r\n gl.clearColor(0, 0, 0, 1);\r\n }\r\n\r\n gl.clear(gl.COLOR_BUFFER_BIT);\r\n }\r\n\r\n if (eraseMode)\r\n {\r\n var blendMode = this.renderer.currentBlendMode;\r\n\r\n this.renderer.setBlendMode(BlendModes.ERASE);\r\n }\r\n\r\n if (flipY)\r\n {\r\n this.flipY();\r\n }\r\n\r\n gl.bufferData(gl.ARRAY_BUFFER, this.vertexData, gl.STATIC_DRAW);\r\n gl.drawArrays(gl.TRIANGLES, 0, 6);\r\n\r\n if (eraseMode)\r\n {\r\n this.renderer.setBlendMode(blendMode);\r\n }\r\n\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, null);\r\n gl.bindTexture(gl.TEXTURE_2D, null);\r\n\r\n this.resetUVs();\r\n },\r\n\r\n /**\r\n * Binds the `source` Render Target and then copies a section of it to the `target` Render Target.\r\n *\r\n * This method is extremely fast because it uses `gl.copyTexSubImage2D` and doesn't\r\n * require the use of any shaders. Remember the coordinates are given in standard WebGL format,\r\n * where x and y specify the lower-left corner of the section, not the top-left. Also, the\r\n * copy entirely replaces the contents of the target texture, no 'merging' or 'blending' takes\r\n * place.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#copyFrameRect\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} target - The target Render Target.\r\n * @param {number} x - The x coordinate of the lower left corner where to start copying.\r\n * @param {number} y - The y coordinate of the lower left corner where to start copying.\r\n * @param {number} width - The width of the texture.\r\n * @param {number} height - The height of the texture.\r\n * @param {boolean} [clear=true] - Clear the target before copying?\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n */\r\n copyFrameRect: function (source, target, x, y, width, height, clear, clearAlpha)\r\n {\r\n if (clear === undefined) { clear = true; }\r\n if (clearAlpha === undefined) { clearAlpha = true; }\r\n\r\n var gl = this.gl;\r\n\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, source.framebuffer.webGLFramebuffer);\r\n gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, source.texture.webGLTexture, 0);\r\n\r\n if (clear)\r\n {\r\n if (clearAlpha)\r\n {\r\n gl.clearColor(0, 0, 0, 0);\r\n }\r\n else\r\n {\r\n gl.clearColor(0, 0, 0, 1);\r\n }\r\n\r\n gl.clear(gl.COLOR_BUFFER_BIT);\r\n }\r\n\r\n gl.activeTexture(gl.TEXTURE0);\r\n gl.bindTexture(gl.TEXTURE_2D, target.texture.webGLTexture);\r\n\r\n gl.copyTexSubImage2D(gl.TEXTURE_2D, 0, 0, 0, x, y, width, height);\r\n\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, null);\r\n gl.bindTexture(gl.TEXTURE_2D, null);\r\n },\r\n\r\n /**\r\n * Pops the framebuffer from the renderers FBO stack and sets that as the active target,\r\n * then draws the `source` Render Target to it. It then resets the renderer textures.\r\n *\r\n * This should be done when you need to draw the _final_ results of a pipeline to the game\r\n * canvas, or the next framebuffer in line on the FBO stack. You should only call this once\r\n * in the `onDraw` handler and it should be the final thing called. Be careful not to call\r\n * this if you need to actually use the pipeline shader, instead of the copy shader. In\r\n * those cases, use the `bindAndDraw` method.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#copyToGame\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The Render Target to draw from.\r\n */\r\n copyToGame: function (source)\r\n {\r\n var gl = this.gl;\r\n\r\n this.setShader(this.copyShader);\r\n\r\n this.set1i('uMainSampler', 0);\r\n this.set1f('uBrightness', 1);\r\n\r\n this.renderer.popFramebuffer();\r\n\r\n gl.activeTexture(gl.TEXTURE0);\r\n gl.bindTexture(gl.TEXTURE_2D, source.texture.webGLTexture);\r\n\r\n gl.bufferData(gl.ARRAY_BUFFER, this.vertexData, gl.STATIC_DRAW);\r\n gl.drawArrays(gl.TRIANGLES, 0, 6);\r\n },\r\n\r\n /**\r\n * Copy the `source` Render Target to the `target` Render Target, using the\r\n * given Color Matrix.\r\n *\r\n * The difference between this method and `copyFrame` is that this method\r\n * uses a color matrix shader, where you have full control over the luminance\r\n * values used during the copy. If you don't need this, you can use the faster\r\n * `copyFrame` method instead.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#drawFrame\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} [target] - The target Render Target.\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n * @param {Phaser.Display.ColorMatrix} [colorMatrix] - The Color Matrix to use when performing the draw.\r\n */\r\n drawFrame: function (source, target, clearAlpha, colorMatrix)\r\n {\r\n if (clearAlpha === undefined) { clearAlpha = true; }\r\n if (colorMatrix === undefined) { colorMatrix = this.colorMatrix; }\r\n\r\n var gl = this.gl;\r\n\r\n this.setShader(this.colorMatrixShader);\r\n\r\n this.set1i('uMainSampler', 0);\r\n this.set1fv('uColorMatrix', colorMatrix.getData());\r\n this.set1f('uAlpha', colorMatrix.alpha);\r\n\r\n gl.activeTexture(gl.TEXTURE0);\r\n gl.bindTexture(gl.TEXTURE_2D, source.texture.webGLTexture);\r\n\r\n if (target)\r\n {\r\n gl.viewport(0, 0, target.width, target.height);\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, target.framebuffer.webGLFramebuffer);\r\n gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, target.texture.webGLTexture, 0);\r\n }\r\n else\r\n {\r\n gl.viewport(0, 0, source.width, source.height);\r\n }\r\n\r\n if (clearAlpha)\r\n {\r\n gl.clearColor(0, 0, 0, 0);\r\n }\r\n else\r\n {\r\n gl.clearColor(0, 0, 0, 1);\r\n }\r\n\r\n gl.clear(gl.COLOR_BUFFER_BIT);\r\n\r\n gl.bufferData(gl.ARRAY_BUFFER, this.vertexData, gl.STATIC_DRAW);\r\n gl.drawArrays(gl.TRIANGLES, 0, 6);\r\n\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, null);\r\n gl.bindTexture(gl.TEXTURE_2D, null);\r\n },\r\n\r\n /**\r\n * Draws the `source1` and `source2` Render Targets to the `target` Render Target\r\n * using a linear blend effect, which is controlled by the `strength` parameter.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#blendFrames\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source1 - The first source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source2 - The second source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} [target] - The target Render Target.\r\n * @param {number} [strength=1] - The strength of the blend.\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} [blendShader] - The shader to use during the blend copy.\r\n */\r\n blendFrames: function (source1, source2, target, strength, clearAlpha, blendShader)\r\n {\r\n if (strength === undefined) { strength = 1; }\r\n if (clearAlpha === undefined) { clearAlpha = true; }\r\n if (blendShader === undefined) { blendShader = this.linearShader; }\r\n\r\n var gl = this.gl;\r\n\r\n this.setShader(blendShader);\r\n\r\n this.set1i('uMainSampler1', 0);\r\n this.set1i('uMainSampler2', 1);\r\n this.set1f('uStrength', strength);\r\n\r\n gl.activeTexture(gl.TEXTURE0);\r\n gl.bindTexture(gl.TEXTURE_2D, source1.texture.webGLTexture);\r\n\r\n gl.activeTexture(gl.TEXTURE1);\r\n gl.bindTexture(gl.TEXTURE_2D, source2.texture.webGLTexture);\r\n\r\n if (target)\r\n {\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, target.framebuffer.webGLFramebuffer);\r\n gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, target.texture.webGLTexture, 0);\r\n gl.viewport(0, 0, target.width, target.height);\r\n }\r\n else\r\n {\r\n gl.viewport(0, 0, source1.width, source1.height);\r\n }\r\n\r\n if (clearAlpha)\r\n {\r\n gl.clearColor(0, 0, 0, 0);\r\n }\r\n else\r\n {\r\n gl.clearColor(0, 0, 0, 1);\r\n }\r\n\r\n gl.clear(gl.COLOR_BUFFER_BIT);\r\n\r\n gl.bufferData(gl.ARRAY_BUFFER, this.vertexData, gl.STATIC_DRAW);\r\n gl.drawArrays(gl.TRIANGLES, 0, 6);\r\n\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, null);\r\n gl.bindTexture(gl.TEXTURE_2D, null);\r\n },\r\n\r\n /**\r\n * Draws the `source1` and `source2` Render Targets to the `target` Render Target\r\n * using an additive blend effect, which is controlled by the `strength` parameter.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#blendFramesAdditive\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source1 - The first source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source2 - The second source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} [target] - The target Render Target.\r\n * @param {number} [strength=1] - The strength of the blend.\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n */\r\n blendFramesAdditive: function (source1, source2, target, strength, clearAlpha)\r\n {\r\n this.blendFrames(source1, source2, target, strength, clearAlpha, this.addShader);\r\n },\r\n\r\n /**\r\n * Clears the given Render Target.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#clearFrame\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} target - The Render Target to clear.\r\n * @param {boolean} [clearAlpha=true] - Clear the alpha channel when running `gl.clear` on the target?\r\n */\r\n clearFrame: function (target, clearAlpha)\r\n {\r\n if (clearAlpha === undefined) { clearAlpha = true; }\r\n\r\n var gl = this.gl;\r\n\r\n gl.viewport(0, 0, target.width, target.height);\r\n\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, target.framebuffer.webGLFramebuffer);\r\n\r\n if (clearAlpha)\r\n {\r\n gl.clearColor(0, 0, 0, 0);\r\n }\r\n else\r\n {\r\n gl.clearColor(0, 0, 0, 1);\r\n }\r\n\r\n gl.clear(gl.COLOR_BUFFER_BIT);\r\n\r\n var fbo = this.renderer.currentFramebuffer;\r\n\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, fbo.webGLFramebuffer);\r\n },\r\n\r\n /**\r\n * Set the UV values for the 6 vertices that make up the quad used by the shaders\r\n * in the Utility Pipeline.\r\n *\r\n * Be sure to call `resetUVs` once you have finished manipulating the UV coordinates.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#setUVs\r\n * @since 3.50.0\r\n *\r\n * @param {number} uA - The u value of vertex A.\r\n * @param {number} vA - The v value of vertex A.\r\n * @param {number} uB - The u value of vertex B.\r\n * @param {number} vB - The v value of vertex B.\r\n * @param {number} uC - The u value of vertex C.\r\n * @param {number} vC - The v value of vertex C.\r\n * @param {number} uD - The u value of vertex D.\r\n * @param {number} vD - The v value of vertex D.\r\n */\r\n setUVs: function (uA, vA, uB, vB, uC, vC, uD, vD)\r\n {\r\n var vertexViewF32 = this.vertexViewF32;\r\n\r\n vertexViewF32[2] = uA;\r\n vertexViewF32[3] = vA;\r\n vertexViewF32[6] = uB;\r\n vertexViewF32[7] = vB;\r\n vertexViewF32[10] = uC;\r\n vertexViewF32[11] = vC;\r\n vertexViewF32[14] = uA;\r\n vertexViewF32[15] = vA;\r\n vertexViewF32[18] = uC;\r\n vertexViewF32[19] = vC;\r\n vertexViewF32[22] = uD;\r\n vertexViewF32[23] = vD;\r\n },\r\n\r\n /**\r\n * Sets the vertex UV coordinates of the quad used by the shaders in the Utility Pipeline\r\n * so that they correctly adjust the texture coordinates for a blit frame effect.\r\n *\r\n * Be sure to call `resetUVs` once you have finished manipulating the UV coordinates.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#setTargetUVs\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} source - The source Render Target.\r\n * @param {Phaser.Renderer.WebGL.RenderTarget} target - The target Render Target.\r\n */\r\n setTargetUVs: function (source, target)\r\n {\r\n var diff = (target.height / source.height);\r\n\r\n if (diff > 0.5)\r\n {\r\n diff = 0.5 - (diff - 0.5);\r\n }\r\n else\r\n {\r\n diff = 0.5 + (0.5 - diff);\r\n }\r\n\r\n this.setUVs(0, diff, 0, 1 + diff, 1, 1 + diff, 1, diff);\r\n },\r\n\r\n /**\r\n * Horizontally flips the UV coordinates of the quad used by the shaders in this\r\n * Utility Pipeline.\r\n *\r\n * Be sure to call `resetUVs` once you have finished manipulating the UV coordinates.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#flipX\r\n * @since 3.50.0\r\n */\r\n flipX: function ()\r\n {\r\n this.setUVs(1, 0, 1, 1, 0, 1, 0, 0);\r\n },\r\n\r\n /**\r\n * Vertically flips the UV coordinates of the quad used by the shaders in this\r\n * Utility Pipeline.\r\n *\r\n * Be sure to call `resetUVs` once you have finished manipulating the UV coordinates.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#flipY\r\n * @since 3.50.0\r\n */\r\n flipY: function ()\r\n {\r\n this.setUVs(0, 1, 0, 0, 1, 0, 1, 1);\r\n },\r\n\r\n /**\r\n * Resets the quad vertice UV values to their default settings.\r\n *\r\n * The quad is used by all shaders of the Utility Pipeline.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.UtilityPipeline#resetUVs\r\n * @since 3.50.0\r\n */\r\n resetUVs: function ()\r\n {\r\n this.setUVs(0, 0, 0, 1, 1, 1, 1, 0);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = UtilityPipeline;\r\n\n\n/***/ }),\n\n/***/ 36060:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PIPELINE_CONST = {\r\n\r\n /**\r\n * The Bitmap Mask Pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.BITMAPMASK_PIPELINE\r\n * @type {string}\r\n * @const\r\n * @since 3.50.0\r\n */\r\n BITMAPMASK_PIPELINE: 'BitmapMaskPipeline',\r\n\r\n /**\r\n * The Light 2D Pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.LIGHT_PIPELINE\r\n * @type {string}\r\n * @const\r\n * @since 3.50.0\r\n */\r\n LIGHT_PIPELINE: 'Light2D',\r\n\r\n /**\r\n * The Point Light Pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.POINTLIGHT_PIPELINE\r\n * @type {string}\r\n * @const\r\n * @since 3.50.0\r\n */\r\n POINTLIGHT_PIPELINE: 'PointLightPipeline',\r\n\r\n /**\r\n * The Single Texture Pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.SINGLE_PIPELINE\r\n * @type {string}\r\n * @const\r\n * @since 3.50.0\r\n */\r\n SINGLE_PIPELINE: 'SinglePipeline',\r\n\r\n /**\r\n * The Multi Texture Pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.MULTI_PIPELINE\r\n * @type {string}\r\n * @const\r\n * @since 3.50.0\r\n */\r\n MULTI_PIPELINE: 'MultiPipeline',\r\n\r\n /**\r\n * The Rope Pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.ROPE_PIPELINE\r\n * @type {string}\r\n * @const\r\n * @since 3.50.0\r\n */\r\n ROPE_PIPELINE: 'RopePipeline',\r\n\r\n /**\r\n * The Graphics and Shapes Pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.GRAPHICS_PIPELINE\r\n * @type {string}\r\n * @const\r\n * @since 3.50.0\r\n */\r\n GRAPHICS_PIPELINE: 'GraphicsPipeline',\r\n\r\n /**\r\n * The Post FX Pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.POSTFX_PIPELINE\r\n * @type {string}\r\n * @const\r\n * @since 3.50.0\r\n */\r\n POSTFX_PIPELINE: 'PostFXPipeline',\r\n\r\n /**\r\n * The Utility Pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.UTILITY_PIPELINE\r\n * @type {string}\r\n * @const\r\n * @since 3.50.0\r\n */\r\n UTILITY_PIPELINE: 'UtilityPipeline',\r\n\r\n /**\r\n * The Mobile Texture Pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.MOBILE_PIPELINE\r\n * @type {string}\r\n * @const\r\n * @since 3.60.0\r\n */\r\n MOBILE_PIPELINE: 'MobilePipeline',\r\n\r\n /**\r\n * The Special FX Pipeline.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX_PIPELINE\r\n * @type {string}\r\n * @const\r\n * @since 3.60.0\r\n */\r\n FX_PIPELINE: 'FxPipeline'\r\n\r\n};\r\n\r\nmodule.exports = PIPELINE_CONST;\r\n\n\n/***/ }),\n\n/***/ 84817:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The WebGLPipeline After Flush Event.\r\n *\r\n * This event is dispatched by a WebGLPipeline right after it has issued a drawArrays command\r\n * and cleared its vertex count.\r\n *\r\n * @event Phaser.Renderer.WebGL.Pipelines.Events#AFTER_FLUSH\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLPipeline} pipeline - The pipeline that has flushed.\r\n * @param {boolean} isPostFlush - Was this flush invoked as part of a post-process, or not?\r\n */\r\nmodule.exports = 'pipelineafterflush';\r\n\n\n/***/ }),\n\n/***/ 36712:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The WebGLPipeline Before Flush Event.\r\n *\r\n * This event is dispatched by a WebGLPipeline right before it is about to\r\n * flush and issue a bufferData and drawArrays command.\r\n *\r\n * @event Phaser.Renderer.WebGL.Pipelines.Events#BEFORE_FLUSH\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLPipeline} pipeline - The pipeline that is about to flush.\r\n * @param {boolean} isPostFlush - Was this flush invoked as part of a post-process, or not?\r\n */\r\nmodule.exports = 'pipelinebeforeflush';\r\n\n\n/***/ }),\n\n/***/ 40285:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The WebGLPipeline Bind Event.\r\n *\r\n * This event is dispatched by a WebGLPipeline when it is bound by the Pipeline Manager.\r\n *\r\n * @event Phaser.Renderer.WebGL.Pipelines.Events#BIND\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLPipeline} pipeline - The pipeline that was bound.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} currentShader - The shader that was set as being current.\r\n */\r\nmodule.exports = 'pipelinebind';\r\n\n\n/***/ }),\n\n/***/ 65918:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The WebGLPipeline Boot Event.\r\n *\r\n * This event is dispatched by a WebGLPipeline when it has completed its `boot` phase.\r\n *\r\n * @event Phaser.Renderer.WebGL.Pipelines.Events#BOOT\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLPipeline} pipeline - The pipeline that booted.\r\n */\r\nmodule.exports = 'pipelineboot';\r\n\n\n/***/ }),\n\n/***/ 92852:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The WebGLPipeline Destroy Event.\r\n *\r\n * This event is dispatched by a WebGLPipeline when it is starting its destroy process.\r\n *\r\n * @event Phaser.Renderer.WebGL.Pipelines.Events#DESTROY\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLPipeline} pipeline - The pipeline that has flushed.\r\n */\r\nmodule.exports = 'pipelinedestroy';\r\n\n\n/***/ }),\n\n/***/ 56072:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The WebGLPipeline ReBind Event.\r\n *\r\n * This event is dispatched by a WebGLPipeline when it is re-bound by the Pipeline Manager.\r\n *\r\n * @event Phaser.Renderer.WebGL.Pipelines.Events#REBIND\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLPipeline} pipeline - The pipeline that was rebound.\r\n * @param {Phaser.Renderer.WebGL.WebGLShader} currentShader - The shader that was set as being current.\r\n */\r\nmodule.exports = 'pipelinerebind';\r\n\n\n/***/ }),\n\n/***/ 57566:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The WebGLPipeline Resize Event.\r\n *\r\n * This event is dispatched by a WebGLPipeline when it is resized, usually as a result\r\n * of the Renderer resizing.\r\n *\r\n * @event Phaser.Renderer.WebGL.Pipelines.Events#RESIZE\r\n * @since 3.50.0\r\n *\r\n * @param {number} width - The new width of the pipeline.\r\n * @param {number} height - The new height of the pipeline.\r\n * @param {Phaser.Renderer.WebGL.WebGLPipeline} pipeline - The pipeline that was resized.\r\n */\r\nmodule.exports = 'pipelineresize';\r\n\n\n/***/ }),\n\n/***/ 77085:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Renderer.WebGL.Pipelines.Events\r\n */\r\n\r\nmodule.exports = {\r\n\r\n AFTER_FLUSH: __webpack_require__(84817),\r\n BEFORE_FLUSH: __webpack_require__(36712),\r\n BIND: __webpack_require__(40285),\r\n BOOT: __webpack_require__(65918),\r\n DESTROY: __webpack_require__(92852),\r\n REBIND: __webpack_require__(56072),\r\n RESIZE: __webpack_require__(57566)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 54812:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar BarrelFrag = __webpack_require__(99155);\r\nvar PostFXPipeline = __webpack_require__(84057);\r\n\r\n/**\r\n * @classdesc\r\n * The Barrel FX Pipeline.\r\n *\r\n * A barrel effect allows you to apply either a 'pinch' or 'expand' distortion to\r\n * a Game Object. The amount of the effect can be modified in real-time.\r\n *\r\n * A Barrel effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.postFX.addBarrel();\r\n * ```\r\n *\r\n * @class BarrelFXPipeline\r\n * @extends Phaser.Renderer.WebGL.Pipelines.PostFXPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Game} game - A reference to the Phaser Game instance.\r\n */\r\nvar BarrelFXPipeline = new Class({\r\n\r\n Extends: PostFXPipeline,\r\n\r\n initialize:\r\n\r\n function BarrelFXPipeline (game)\r\n {\r\n PostFXPipeline.call(this, {\r\n game: game,\r\n fragShader: BarrelFrag\r\n });\r\n\r\n /**\r\n * The amount of distortion applied to the barrel effect.\r\n *\r\n * Typically keep this within the range 1 (no distortion) to +- 1.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.BarrelFXPipeline#amount\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.amount = 1;\r\n },\r\n\r\n onPreRender: function (controller, shader)\r\n {\r\n controller = this.getController(controller);\r\n\r\n this.set1f('amount', controller.amount, shader);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = BarrelFXPipeline;\r\n\n\n/***/ }),\n\n/***/ 67329:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar BloomFrag = __webpack_require__(24400);\r\nvar PostFXPipeline = __webpack_require__(84057);\r\n\r\n/**\r\n * @classdesc\r\n * The Bloom FX Pipeline.\r\n *\r\n * Bloom is an effect used to reproduce an imaging artifact of real-world cameras.\r\n * The effect produces fringes of light extending from the borders of bright areas in an image,\r\n * contributing to the illusion of an extremely bright light overwhelming the\r\n * camera or eye capturing the scene.\r\n *\r\n * A Bloom effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.postFX.addBloom();\r\n * ```\r\n *\r\n * @class BloomFXPipeline\r\n * @extends Phaser.Renderer.WebGL.Pipelines.PostFXPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Game} game - A reference to the Phaser Game instance.\r\n */\r\nvar BloomFXPipeline = new Class({\r\n\r\n Extends: PostFXPipeline,\r\n\r\n initialize:\r\n\r\n function BloomFXPipeline (game)\r\n {\r\n PostFXPipeline.call(this, {\r\n game: game,\r\n fragShader: BloomFrag\r\n });\r\n\r\n /**\r\n * The number of steps to run the Bloom effect for.\r\n *\r\n * This value should always be an integer.\r\n *\r\n * It defaults to 4. The higher the value, the smoother the Bloom,\r\n * but at the cost of exponentially more gl operations.\r\n *\r\n * Keep this to the lowest possible number you can have it, while\r\n * still looking correct for your game.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.BloomFXPipeline#steps\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.steps = 4;\r\n\r\n /**\r\n * The horizontal offset of the bloom effect.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.BloomFXPipeline#offsetX\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.offsetX = 1;\r\n\r\n /**\r\n * The vertical offset of the bloom effect.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.BloomFXPipeline#offsetY\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.offsetY = 1;\r\n\r\n /**\r\n * The strength of the blur process of the bloom effect.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.BloomFXPipeline#blurStrength\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.blurStrength = 1;\r\n\r\n /**\r\n * The strength of the blend process of the bloom effect.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.BloomFXPipeline#strength\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.strength = 1;\r\n\r\n /**\r\n * The internal gl color array.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.BloomFXPipeline#glcolor\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\n this.glcolor = [ 1, 1, 1 ];\r\n },\r\n\r\n onPreRender: function (controller)\r\n {\r\n controller = this.getController(controller);\r\n\r\n this.set1f('strength', controller.blurStrength);\r\n this.set3fv('color', controller.glcolor);\r\n },\r\n\r\n onDraw: function (target1)\r\n {\r\n var controller = this.getController();\r\n\r\n var target2 = this.fullFrame1;\r\n var target3 = this.fullFrame2;\r\n\r\n this.copyFrame(target1, target3);\r\n\r\n var x = (2 / target1.width) * controller.offsetX;\r\n var y = (2 / target1.height) * controller.offsetY;\r\n\r\n for (var i = 0; i < controller.steps; i++)\r\n {\r\n this.set2f('offset', x, 0);\r\n this.copySprite(target1, target2);\r\n\r\n this.set2f('offset', 0, y);\r\n this.copySprite(target2, target1);\r\n }\r\n\r\n this.blendFrames(target3, target1, target2, controller.strength);\r\n\r\n this.copyToGame(target2);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = BloomFXPipeline;\r\n\n\n/***/ }),\n\n/***/ 8861:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar BlurLowFrag = __webpack_require__(41514);\r\nvar BlurMedFrag = __webpack_require__(51078);\r\nvar BlurHighFrag = __webpack_require__(94328);\r\nvar PostFXPipeline = __webpack_require__(84057);\r\n\r\n/**\r\n * @classdesc\r\n * The Blur FX Pipeline.\r\n *\r\n * A Gaussian blur is the result of blurring an image by a Gaussian function. It is a widely used effect,\r\n * typically to reduce image noise and reduce detail. The visual effect of this blurring technique is a\r\n * smooth blur resembling that of viewing the image through a translucent screen, distinctly different\r\n * from the bokeh effect produced by an out-of-focus lens or the shadow of an object under usual illumination.\r\n *\r\n * A Blur effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.postFX.addBlur();\r\n * ```\r\n *\r\n * @class BlurFXPipeline\r\n * @extends Phaser.Renderer.WebGL.Pipelines.PostFXPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Game} game - A reference to the Phaser Game instance.\r\n */\r\nvar BlurFXPipeline = new Class({\r\n\r\n Extends: PostFXPipeline,\r\n\r\n initialize:\r\n\r\n function BlurFXPipeline (game)\r\n {\r\n PostFXPipeline.call(this, {\r\n game: game,\r\n shaders: [\r\n {\r\n name: 'Gaussian5',\r\n fragShader: BlurLowFrag\r\n },\r\n {\r\n name: 'Gaussian9',\r\n fragShader: BlurMedFrag\r\n },\r\n {\r\n name: 'Gaussian13',\r\n fragShader: BlurHighFrag\r\n }\r\n ]\r\n });\r\n\r\n this.activeShader = this.shaders[0];\r\n\r\n /**\r\n * The horizontal offset of the blur effect.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.BlurFXPipeline#x\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.x = 2;\r\n\r\n /**\r\n * The vertical offset of the blur effect.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.BlurFXPipeline#y\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.y = 2;\r\n\r\n /**\r\n * The number of steps to run the Blur effect for.\r\n *\r\n * This value should always be an integer.\r\n *\r\n * It defaults to 4. The higher the value, the smoother the blur,\r\n * but at the cost of exponentially more gl operations.\r\n *\r\n * Keep this to the lowest possible number you can have it, while\r\n * still looking correct for your game.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.BlurFXPipeline#steps\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.steps = 4;\r\n\r\n /**\r\n * The strength of the blur effect.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.BlurFXPipeline#strength\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.strength = 1;\r\n\r\n /**\r\n * The internal gl color array.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.BlurFXPipeline#glcolor\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\n this.glcolor = [ 1, 1, 1 ];\r\n },\r\n\r\n /**\r\n * Sets the quality of the blur effect to low.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.FX.BlurFXPipeline#setQualityLow\r\n * @since 3.60.0\r\n *\r\n * @return {this} This FX Pipeline.\r\n */\r\n setQualityLow: function ()\r\n {\r\n this.activeShader = this.shaders[0];\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the quality of the blur effect to medium.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.FX.BlurFXPipeline#setQualityMedium\r\n * @since 3.60.0\r\n *\r\n * @return {this} This FX Pipeline.\r\n */\r\n setQualityMedium: function ()\r\n {\r\n this.activeShader = this.shaders[1];\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the quality of the blur effect to high.\r\n *\r\n * @method Phaser.Renderer.WebGL.Pipelines.FX.BlurFXPipeline#setQualityHigh\r\n * @since 3.60.0\r\n *\r\n * @return {this} This FX Pipeline.\r\n */\r\n setQualityHigh: function ()\r\n {\r\n this.activeShader = this.shaders[2];\r\n\r\n return this;\r\n },\r\n\r\n onDraw: function (target1)\r\n {\r\n var controller = this.getController();\r\n\r\n var gl = this.gl;\r\n var target2 = this.fullFrame1;\r\n\r\n var currentFBO = gl.getParameter(gl.FRAMEBUFFER_BINDING);\r\n\r\n this.bind(this.shaders[controller.quality]);\r\n\r\n gl.activeTexture(gl.TEXTURE0);\r\n gl.viewport(0, 0, target1.width, target1.height);\r\n\r\n this.set1i('uMainSampler', 0);\r\n this.set2f('resolution', target1.width, target1.height);\r\n this.set1f('strength', controller.strength);\r\n this.set3fv('color', controller.glcolor);\r\n\r\n for (var i = 0; i < controller.steps; i++)\r\n {\r\n this.set2f('offset', controller.x, 0);\r\n this.copySprite(target1, target2);\r\n\r\n this.set2f('offset', 0, controller.y);\r\n this.copySprite(target2, target1);\r\n }\r\n\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, currentFBO);\r\n gl.bindTexture(gl.TEXTURE_2D, null);\r\n\r\n this.copyToGame(target1);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = BlurFXPipeline;\r\n\n\n/***/ }),\n\n/***/ 51051:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar BokehFrag = __webpack_require__(90610);\r\nvar PostFXPipeline = __webpack_require__(84057);\r\n\r\n/**\r\n * @classdesc\r\n * The Bokeh FX Pipeline.\r\n *\r\n * Bokeh refers to a visual effect that mimics the photographic technique of creating a shallow depth of field.\r\n * This effect is used to emphasize the game's main subject or action, by blurring the background or foreground\r\n * elements, resulting in a more immersive and visually appealing experience. It is achieved through rendering\r\n * techniques that simulate the out-of-focus areas, giving a sense of depth and realism to the game's graphics.\r\n *\r\n * This effect can also be used to generate a Tilt Shift effect, which is a technique used to create a miniature\r\n * effect by blurring everything except a small area of the image. This effect is achieved by blurring the\r\n * top and bottom elements, while keeping the center area in focus.\r\n *\r\n * A Bokeh effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.postFX.addBokeh();\r\n * ```\r\n *\r\n * @class BokehFXPipeline\r\n * @extends Phaser.Renderer.WebGL.Pipelines.PostFXPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Game} game - A reference to the Phaser Game instance.\r\n */\r\nvar BokehFXPipeline = new Class({\r\n\r\n Extends: PostFXPipeline,\r\n\r\n initialize:\r\n\r\n function BokehFXPipeline (game)\r\n {\r\n PostFXPipeline.call(this, {\r\n game: game,\r\n fragShader: BokehFrag\r\n });\r\n\r\n /**\r\n * Is this a Tilt Shift effect or a standard bokeh effect?\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.BokehFXPipeline#isTiltShift\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.isTiltShift = false;\r\n\r\n /**\r\n * If a Tilt Shift effect this controls the strength of the blur.\r\n *\r\n * Setting this value on a non-Tilt Shift effect will have no effect.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.BokehFXPipeline#strength\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.strength = 1;\r\n\r\n /**\r\n * If a Tilt Shift effect this controls the amount of horizontal blur.\r\n *\r\n * Setting this value on a non-Tilt Shift effect will have no effect.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.BokehFXPipeline#blurX\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.blurX = 1;\r\n\r\n /**\r\n * If a Tilt Shift effect this controls the amount of vertical blur.\r\n *\r\n * Setting this value on a non-Tilt Shift effect will have no effect.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.BokehFXPipeline#blurY\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.blurY = 1;\r\n\r\n /**\r\n * The radius of the bokeh effect.\r\n *\r\n * This is a float value, where a radius of 0 will result in no effect being applied,\r\n * and a radius of 1 will result in a strong bokeh. However, you can exceed this value\r\n * for even stronger effects.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.BokehFXPipeline#radius\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.radius = 0.5;\r\n\r\n /**\r\n * The amount, or strength, of the bokeh effect. Defaults to 1.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.BokehFXPipeline#amount\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.amount = 1;\r\n\r\n /**\r\n * The color contrast, or brightness, of the bokeh effect. Defaults to 0.2.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.BokehFXPipeline#contrast\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.contrast = 0.2;\r\n },\r\n\r\n onPreRender: function (controller, shader, width, height)\r\n {\r\n controller = this.getController(controller);\r\n\r\n this.set1f('radius', controller.radius, shader);\r\n this.set1f('amount', controller.amount, shader);\r\n this.set1f('contrast', controller.contrast, shader);\r\n this.set1f('strength', controller.strength, shader);\r\n this.set2f('blur', controller.blurX, controller.blurY, shader);\r\n this.setBoolean('isTiltShift', controller.isTiltShift, shader);\r\n\r\n if (width && height)\r\n {\r\n this.set2f('resolution', width, height, shader);\r\n }\r\n },\r\n\r\n onDraw: function (target)\r\n {\r\n this.set2f('resolution', target.width, target.height);\r\n\r\n this.bindAndDraw(target);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = BokehFXPipeline;\r\n\n\n/***/ }),\n\n/***/ 89428:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CircleFrag = __webpack_require__(91899);\r\nvar PostFXPipeline = __webpack_require__(84057);\r\n\r\n/**\r\n * @classdesc\r\n * The Circle FX Pipeline.\r\n *\r\n * This effect will draw a circle around the texture of the Game Object, effectively masking off\r\n * any area outside of the circle without the need for an actual mask. You can control the thickness\r\n * of the circle, the color of the circle and the color of the background, should the texture be\r\n * transparent. You can also control the feathering applied to the circle, allowing for a harsh or soft edge.\r\n *\r\n * Please note that adding this effect to a Game Object will not change the input area or physics body of\r\n * the Game Object, should it have one.\r\n *\r\n * A Circle effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.postFX.addCircle();\r\n * ```\r\n *\r\n * @class CircleFXPipeline\r\n * @extends Phaser.Renderer.WebGL.Pipelines.PostFXPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Game} game - A reference to the Phaser Game instance.\r\n */\r\nvar CircleFXPipeline = new Class({\r\n\r\n Extends: PostFXPipeline,\r\n\r\n initialize:\r\n\r\n function CircleFXPipeline (game)\r\n {\r\n PostFXPipeline.call(this, {\r\n game: game,\r\n fragShader: CircleFrag\r\n });\r\n\r\n /**\r\n * The scale of the circle. The default scale is 1, which is a circle\r\n * the full size of the underlying texture. Reduce this value to create\r\n * a smaller circle, or increase it to create a circle that extends off\r\n * the edges of the texture.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.CircleFXPipeline#scale\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.scale = 1;\r\n\r\n /**\r\n * The amount of feathering to apply to the circle from the ring,\r\n * extending into the middle of the circle. The default is 0.005,\r\n * which is a very low amount of feathering just making sure the ring\r\n * has a smooth edge. Increase this amount to a value such as 0.5\r\n * or 0.025 for larger amounts of feathering.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.CircleFXPipeline#feather\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.feather = 0.005;\r\n\r\n /**\r\n * The width of the circle around the texture, in pixels. This value\r\n * doesn't factor in the feather, which can extend the thickness\r\n * internally depending on its value.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.CircleFXPipeline#thickness\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.thickness = 8;\r\n\r\n /**\r\n * The internal gl color array for the ring color.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.CircleFXPipeline#glcolor\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\n this.glcolor = [ 1, 0.2, 0.7 ];\r\n\r\n /**\r\n * The internal gl color array for the background color.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.CircleFXPipeline#glcolor2\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\n this.glcolor2 = [ 1, 0, 0, 0.4 ];\r\n },\r\n\r\n onPreRender: function (controller, shader, width, height)\r\n {\r\n controller = this.getController(controller);\r\n\r\n this.set1f('scale', controller.scale, shader);\r\n this.set1f('feather', controller.feather, shader);\r\n this.set1f('thickness', controller.thickness, shader);\r\n this.set3fv('color', controller.glcolor, shader);\r\n this.set4fv('backgroundColor', controller.glcolor2, shader);\r\n\r\n if (width && height)\r\n {\r\n this.set2f('resolution', width, height, shader);\r\n }\r\n },\r\n\r\n onDraw: function (target)\r\n {\r\n this.set2f('resolution', target.width, target.height);\r\n\r\n this.bindAndDraw(target);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = CircleFXPipeline;\r\n\n\n/***/ }),\n\n/***/ 88904:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar PostFXPipeline = __webpack_require__(84057);\r\n\r\n/**\r\n * @classdesc\r\n * The ColorMatrix FX Pipeline.\r\n *\r\n * The color matrix effect is a visual technique that involves manipulating the colors of an image\r\n * or scene using a mathematical matrix. This process can adjust hue, saturation, brightness, and contrast,\r\n * allowing developers to create various stylistic appearances or mood settings within the game.\r\n * Common applications include simulating different lighting conditions, applying color filters,\r\n * or achieving a specific visual style.\r\n *\r\n * A ColorMatrix effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.postFX.addColorMatrix();\r\n * ```\r\n *\r\n * @class ColorMatrixFXPipeline\r\n * @extends Phaser.Renderer.WebGL.Pipelines.PostFXPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Game} game - A reference to the Phaser Game instance.\r\n */\r\nvar ColorMatrixFXPipeline = new Class({\r\n\r\n Extends: PostFXPipeline,\r\n\r\n initialize:\r\n\r\n function ColorMatrixFXPipeline (game)\r\n {\r\n PostFXPipeline.call(this, {\r\n game: game\r\n });\r\n },\r\n\r\n onDraw: function (source)\r\n {\r\n var target = this.fullFrame1;\r\n\r\n if (this.controller)\r\n {\r\n this.manager.drawFrame(source, target, true, this.controller);\r\n }\r\n else\r\n {\r\n this.drawFrame(source, target);\r\n }\r\n\r\n this.copyToGame(target);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = ColorMatrixFXPipeline;\r\n\n\n/***/ }),\n\n/***/ 63563:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar DisplacementFrag = __webpack_require__(47838);\r\nvar PostFXPipeline = __webpack_require__(84057);\r\n\r\n/**\r\n * @classdesc\r\n * The Displacement FX Pipeline.\r\n *\r\n * The displacement effect is a visual technique that alters the position of pixels in an image\r\n * or texture based on the values of a displacement map. This effect is used to create the illusion\r\n * of depth, surface irregularities, or distortion in otherwise flat elements. It can be applied to\r\n * characters, objects, or backgrounds to enhance realism, convey movement, or achieve various\r\n * stylistic appearances.\r\n *\r\n * A Displacement effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.postFX.addDisplacement();\r\n * ```\r\n *\r\n * @class DisplacementFXPipeline\r\n * @extends Phaser.Renderer.WebGL.Pipelines.PostFXPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Game} game - A reference to the Phaser Game instance.\r\n */\r\nvar DisplacementFXPipeline = new Class({\r\n\r\n Extends: PostFXPipeline,\r\n\r\n initialize:\r\n\r\n function DisplacementFXPipeline (game)\r\n {\r\n PostFXPipeline.call(this, {\r\n game: game,\r\n fragShader: DisplacementFrag\r\n });\r\n\r\n /**\r\n * The amount of horizontal displacement to apply.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.DisplacementFXPipeline#x\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.x = 0.005;\r\n\r\n /**\r\n * The amount of vertical displacement to apply.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.DisplacementFXPipeline#y\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.y = 0.005;\r\n\r\n /**\r\n * The underlying texture used for displacement.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.DisplacementFXPipeline#glTexture\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper}\r\n * @since 3.60.0\r\n */\r\n this.glTexture;\r\n },\r\n\r\n onBoot: function ()\r\n {\r\n this.setTexture('__WHITE');\r\n },\r\n\r\n setTexture: function (texture)\r\n {\r\n var phaserTexture = this.game.textures.getFrame(texture);\r\n\r\n if (phaserTexture)\r\n {\r\n this.glTexture = phaserTexture.glTexture;\r\n }\r\n },\r\n\r\n onDraw: function (source)\r\n {\r\n var controller = this.getController();\r\n\r\n var target = this.fullFrame1;\r\n\r\n this.bind();\r\n\r\n this.set1i('uMainSampler', 0);\r\n this.set1i('uDisplacementSampler', 1);\r\n this.set2f('amount', controller.x, controller.y);\r\n\r\n this.bindTexture(controller.glTexture, 1);\r\n\r\n this.copySprite(source, target);\r\n\r\n this.copyToGame(target);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = DisplacementFXPipeline;\r\n\n\n/***/ }),\n\n/***/ 94045:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar GlowFrag = __webpack_require__(98656);\r\nvar PostFXPipeline = __webpack_require__(84057);\r\nvar Utils = __webpack_require__(70554);\r\n\r\n/**\r\n * @classdesc\r\n * The Glow FX Pipeline.\r\n *\r\n * The glow effect is a visual technique that creates a soft, luminous halo around game objects,\r\n * characters, or UI elements. This effect is used to emphasize importance, enhance visual appeal,\r\n * or convey a sense of energy, magic, or otherworldly presence. The effect can also be set on\r\n * the inside of the Game Object. The color and strength of the glow can be modified.\r\n *\r\n * A Glow effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.postFX.addGlow();\r\n * ```\r\n *\r\n * @class GlowFXPipeline\r\n * @extends Phaser.Renderer.WebGL.Pipelines.PostFXPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Game} game - A reference to the Phaser Game instance.\r\n * @param {object} config - The configuration options for this pipeline.\r\n */\r\nvar GlowFXPipeline = new Class({\r\n\r\n Extends: PostFXPipeline,\r\n\r\n initialize:\r\n\r\n function GlowFXPipeline (game, config)\r\n {\r\n var quality = GetFastValue(config, 'quality', 0.1);\r\n var distance = GetFastValue(config, 'distance', 10);\r\n\r\n PostFXPipeline.call(this, {\r\n game: game,\r\n fragShader: Utils.setGlowQuality(GlowFrag, game, quality, distance)\r\n });\r\n\r\n /**\r\n * The strength of the glow outward from the edge of the Sprite.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.GlowFXPipeline#outerStrength\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.outerStrength = 4;\r\n\r\n /**\r\n * The strength of the glow inward from the edge of the Sprite.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.GlowFXPipeline#innerStrength\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.innerStrength = 0;\r\n\r\n /**\r\n * If `true` only the glow is drawn, not the texture itself.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.GlowFXPipeline#knockout\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.knockout = false;\r\n\r\n /**\r\n * A 4 element array of gl color values.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.GlowFXPipeline#glcolor\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\n this.glcolor = [ 1, 1, 1, 1 ];\r\n },\r\n\r\n onPreRender: function (controller, shader, width, height)\r\n {\r\n controller = this.getController(controller);\r\n\r\n this.set1f('outerStrength', controller.outerStrength, shader);\r\n this.set1f('innerStrength', controller.innerStrength, shader);\r\n this.set4fv('glowColor', controller.glcolor, shader);\r\n this.setBoolean('knockout', controller.knockout, shader);\r\n\r\n if (width && height)\r\n {\r\n this.set2f('resolution', width, height, shader);\r\n }\r\n },\r\n\r\n onDraw: function (target)\r\n {\r\n this.set2f('resolution', target.width, target.height);\r\n\r\n this.bindAndDraw(target);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = GlowFXPipeline;\r\n\n\n/***/ }),\n\n/***/ 74088:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar GradientFrag = __webpack_require__(70463);\r\nvar PostFXPipeline = __webpack_require__(84057);\r\n\r\n/**\r\n * @classdesc\r\n * The Gradient FX Pipeline.\r\n *\r\n * The gradient overlay effect is a visual technique where a smooth color transition is applied over Game Objects,\r\n * such as sprites or UI components. This effect is used to enhance visual appeal, emphasize depth, or create\r\n * stylistic and atmospheric variations. It can also be utilized to convey information, such as representing\r\n * progress or health status through color changes.\r\n *\r\n * A Gradient effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.postFX.addGradient();\r\n * ```\r\n *\r\n * @class GradientFXPipeline\r\n * @extends Phaser.Renderer.WebGL.Pipelines.PostFXPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Game} game - A reference to the Phaser Game instance.\r\n */\r\nvar GradientFXPipeline = new Class({\r\n\r\n Extends: PostFXPipeline,\r\n\r\n initialize:\r\n\r\n function GradientFXPipeline (game)\r\n {\r\n PostFXPipeline.call(this, {\r\n game: game,\r\n fragShader: GradientFrag\r\n });\r\n\r\n /**\r\n * The alpha value of the gradient effect.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.GradientFXPipeline#alpha\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.alpha = 0.2;\r\n\r\n /**\r\n * Sets how many 'chunks' the gradient is divided in to, as spread over the\r\n * entire height of the texture. Leave this at zero for a smooth gradient,\r\n * or set to a higher number to split the gradient into that many sections, giving\r\n * a more banded 'retro' effect.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.GradientFXPipeline#size\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.size = 0;\r\n\r\n /**\r\n * The horizontal position the gradient will start from. This value is normalized, between 0 and 1 and is not in pixels.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.GradientFXPipeline#fromX\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.fromX = 0;\r\n\r\n /**\r\n * The vertical position the gradient will start from. This value is normalized, between 0 and 1 and is not in pixels.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.GradientFXPipeline#fromY\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.fromY = 0;\r\n\r\n /**\r\n * The horizontal position the gradient will end. This value is normalized, between 0 and 1 and is not in pixels.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.GradientFXPipeline#toX\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.toX = 0;\r\n\r\n /**\r\n * The vertical position the gradient will end. This value is normalized, between 0 and 1 and is not in pixels.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.GradientFXPipeline#toY\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.toY = 1;\r\n\r\n /**\r\n * The internal gl color array for the starting color.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.GradientFXPipeline#glcolor1\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\n this.glcolor1 = [ 255, 0, 0 ];\r\n\r\n /**\r\n * The internal gl color array for the ending color.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.GradientFXPipeline#glcolor2\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\n this.glcolor2 = [ 0, 255, 0 ];\r\n },\r\n\r\n onPreRender: function (controller, shader)\r\n {\r\n controller = this.getController(controller);\r\n\r\n this.set1f('alpha', controller.alpha, shader);\r\n this.set1i('size', controller.size, shader);\r\n this.set3fv('color1', controller.glcolor1, shader);\r\n this.set3fv('color2', controller.glcolor2, shader);\r\n this.set2f('positionFrom', controller.fromX, controller.fromY, shader);\r\n this.set2f('positionTo', controller.toX, controller.toY, shader);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = GradientFXPipeline;\r\n\n\n/***/ }),\n\n/***/ 99636:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar PixelateFrag = __webpack_require__(50831);\r\nvar PostFXPipeline = __webpack_require__(84057);\r\n\r\n/**\r\n * @classdesc\r\n * The Pixelate FX Pipeline.\r\n *\r\n * The pixelate effect is a visual technique that deliberately reduces the resolution or detail of an image,\r\n * creating a blocky or mosaic appearance composed of large, visible pixels. This effect can be used for stylistic\r\n * purposes, as a homage to retro gaming, or as a means to obscure certain elements within the game, such as\r\n * during a transition or to censor specific content.\r\n *\r\n * A Pixelate effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.postFX.addPixelate();\r\n * ```\r\n *\r\n * @class PixelateFXPipeline\r\n * @extends Phaser.Renderer.WebGL.Pipelines.PostFXPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Game} game - A reference to the Phaser Game instance.\r\n */\r\nvar PixelateFXPipeline = new Class({\r\n\r\n Extends: PostFXPipeline,\r\n\r\n initialize:\r\n\r\n function PixelateFXPipeline (game)\r\n {\r\n PostFXPipeline.call(this, {\r\n game: game,\r\n fragShader: PixelateFrag\r\n });\r\n\r\n /**\r\n * The amount of pixelation to apply.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.PixelateFXPipeline#amount\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.amount = 1;\r\n },\r\n\r\n onPreRender: function (controller, shader, width, height)\r\n {\r\n controller = this.getController(controller);\r\n\r\n this.set1f('amount', controller.amount, shader);\r\n\r\n if (width && height)\r\n {\r\n this.set2f('resolution', width, height, shader);\r\n }\r\n },\r\n\r\n onDraw: function (target)\r\n {\r\n this.set2f('resolution', target.width, target.height);\r\n\r\n this.bindAndDraw(target);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = PixelateFXPipeline;\r\n\n\n/***/ }),\n\n/***/ 34700:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar ShadowFrag = __webpack_require__(92595);\r\nvar PostFXPipeline = __webpack_require__(84057);\r\n\r\n/**\r\n * @classdesc\r\n * The Shadow FX Pipeline.\r\n *\r\n * The shadow effect is a visual technique used to create the illusion of depth and realism by adding darker,\r\n * offset silhouettes or shapes beneath game objects, characters, or environments. These simulated shadows\r\n * help to enhance the visual appeal and immersion, making the 2D game world appear more dynamic and three-dimensional.\r\n *\r\n * A Shadow effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.postFX.addShadow();\r\n * ```\r\n *\r\n * @class ShadowFXPipeline\r\n * @extends Phaser.Renderer.WebGL.Pipelines.PostFXPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Game} game - A reference to the Phaser Game instance.\r\n */\r\nvar ShadowFXPipeline = new Class({\r\n\r\n Extends: PostFXPipeline,\r\n\r\n initialize:\r\n\r\n function ShadowFXPipeline (game)\r\n {\r\n PostFXPipeline.call(this, {\r\n game: game,\r\n fragShader: ShadowFrag\r\n });\r\n\r\n /**\r\n * The horizontal offset of the shadow effect.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.ShadowFXPipeline#x\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.x = 0;\r\n\r\n /**\r\n * The vertical offset of the shadow effect.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.ShadowFXPipeline#y\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.y = 0;\r\n\r\n /**\r\n * The amount of decay for the shadow effect.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.ShadowFXPipeline#decay\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.decay = 0.1;\r\n\r\n /**\r\n * The power of the shadow effect.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.ShadowFXPipeline#power\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.power = 1;\r\n\r\n /**\r\n * The internal gl color array.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.ShadowFXPipeline#glcolor\r\n * @type {number[]}\r\n * @since 3.60.0\r\n */\r\n this.glcolor = [ 0, 0, 0, 1 ];\r\n\r\n /**\r\n * The number of samples that the shadow effect will run for.\r\n *\r\n * This should be an integer with a minimum value of 1 and a maximum of 12.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.ShadowFXPipeline#samples\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.samples = 6;\r\n\r\n /**\r\n * The intensity of the shadow effect.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.ShadowFXPipeline#intensity\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.intensity = 1;\r\n },\r\n\r\n onPreRender: function (controller, shader)\r\n {\r\n controller = this.getController(controller);\r\n\r\n var samples = controller.samples;\r\n\r\n this.set1i('samples', samples, shader);\r\n this.set1f('intensity', controller.intensity, shader);\r\n this.set1f('decay', controller.decay, shader);\r\n this.set1f('power', (controller.power / samples), shader);\r\n this.set2f('lightPosition', controller.x, controller.y, shader);\r\n this.set4fv('color', controller.glcolor, shader);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = ShadowFXPipeline;\r\n\n\n/***/ }),\n\n/***/ 91157:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar ShineFrag = __webpack_require__(72464);\r\nvar PostFXPipeline = __webpack_require__(84057);\r\n\r\n/**\r\n * @classdesc\r\n * The Shine FX Pipeline.\r\n *\r\n * The shine effect is a visual technique that simulates the appearance of reflective\r\n * or glossy surfaces by passing a light beam across a Game Object. This effect is used to\r\n * enhance visual appeal, emphasize certain features, and create a sense of depth or\r\n * material properties.\r\n *\r\n * A Shine effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.postFX.addShine();\r\n * ```\r\n *\r\n * @class ShineFXPipeline\r\n * @extends Phaser.Renderer.WebGL.Pipelines.PostFXPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Game} game - A reference to the Phaser Game instance.\r\n */\r\nvar ShineFXPipeline = new Class({\r\n\r\n Extends: PostFXPipeline,\r\n\r\n initialize:\r\n\r\n function ShineFXPipeline (game)\r\n {\r\n PostFXPipeline.call(this, {\r\n game: game,\r\n fragShader: ShineFrag\r\n });\r\n\r\n /**\r\n * The speed of the Shine effect.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.ShineFXPipeline#speed\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.speed = 0.5;\r\n\r\n /**\r\n * The line width of the Shine effect.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.ShineFXPipeline#lineWidth\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.lineWidth = 0.5;\r\n\r\n /**\r\n * The gradient of the Shine effect.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.ShineFXPipeline#gradient\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.gradient = 3;\r\n\r\n /**\r\n * Does this Shine effect reveal or get added to its target?\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.ShineFXPipeline#reveal\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.reveal = false;\r\n },\r\n\r\n onPreRender: function (controller, shader, width, height)\r\n {\r\n controller = this.getController(controller);\r\n\r\n this.setTime('time', shader);\r\n\r\n this.set1f('speed', controller.speed, shader);\r\n this.set1f('lineWidth', controller.lineWidth, shader);\r\n this.set1f('gradient', controller.gradient, shader);\r\n this.setBoolean('reveal', controller.reveal, shader);\r\n\r\n if (width && height)\r\n {\r\n this.set2f('resolution', width, height, shader);\r\n }\r\n },\r\n\r\n onDraw: function (target)\r\n {\r\n this.set2f('resolution', target.width, target.height);\r\n\r\n this.bindAndDraw(target);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = ShineFXPipeline;\r\n\n\n/***/ }),\n\n/***/ 27797:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar VignetteFrag = __webpack_require__(39249);\r\nvar PostFXPipeline = __webpack_require__(84057);\r\n\r\n/**\r\n * @classdesc\r\n * The Vignette FX Pipeline.\r\n *\r\n * The vignette effect is a visual technique where the edges of the screen, or a Game Object, gradually darken or blur,\r\n * creating a frame-like appearance. This effect is used to draw the player's focus towards the central action or subject,\r\n * enhance immersion, and provide a cinematic or artistic quality to the game's visuals.\r\n *\r\n * A Vignette effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.postFX.addVignette();\r\n * ```\r\n *\r\n * @class VignetteFXPipeline\r\n * @extends Phaser.Renderer.WebGL.Pipelines.PostFXPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Game} game - A reference to the Phaser Game instance.\r\n */\r\nvar VignetteFXPipeline = new Class({\r\n\r\n Extends: PostFXPipeline,\r\n\r\n initialize:\r\n\r\n function VignetteFXPipeline (game)\r\n {\r\n PostFXPipeline.call(this, {\r\n game: game,\r\n fragShader: VignetteFrag\r\n });\r\n\r\n /**\r\n * The horizontal offset of the vignette effect. This value is normalized to the range 0 to 1.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.VignetteFXPipeline#x\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.x = 0.5;\r\n\r\n /**\r\n * The vertical offset of the vignette effect. This value is normalized to the range 0 to 1.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.VignetteFXPipeline#y\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.y = 0.5;\r\n\r\n /**\r\n * The radius of the vignette effect. This value is normalized to the range 0 to 1.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.VignetteFXPipeline#radius\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.radius = 0.5;\r\n\r\n /**\r\n * The strength of the vignette effect.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.VignetteFXPipeline#strength\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.strength = 0.5;\r\n },\r\n\r\n onPreRender: function (controller, shader)\r\n {\r\n controller = this.getController(controller);\r\n\r\n this.set1f('radius', controller.radius, shader);\r\n this.set1f('strength', controller.strength, shader);\r\n this.set2f('position', controller.x, controller.y, shader);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = VignetteFXPipeline;\r\n\n\n/***/ }),\n\n/***/ 67603:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar WipeFrag = __webpack_require__(2878);\r\nvar PostFXPipeline = __webpack_require__(84057);\r\n\r\n/**\r\n * @classdesc\r\n * The Wipe FX Pipeline.\r\n *\r\n * The wipe or reveal effect is a visual technique that gradually uncovers or conceals elements\r\n * in the game, such as images, text, or scene transitions. This effect is often used to create\r\n * a sense of progression, reveal hidden content, or provide a smooth and visually appealing transition\r\n * between game states.\r\n *\r\n * You can set both the direction and the axis of the wipe effect. The following combinations are possible:\r\n *\r\n * * left to right: direction 0, axis 0\r\n * * right to left: direction 1, axis 0\r\n * * top to bottom: direction 1, axis 1\r\n * * bottom to top: direction 1, axis 0\r\n *\r\n * It is up to you to set the `progress` value yourself, i.e. via a Tween, in order to transition the effect.\r\n *\r\n * A Wipe effect is added to a Game Object via the FX component:\r\n *\r\n * ```js\r\n * const sprite = this.add.sprite();\r\n *\r\n * sprite.postFX.addWipe();\r\n * sprite.postFX.addReveal();\r\n * ```\r\n *\r\n * @class WipeFXPipeline\r\n * @extends Phaser.Renderer.WebGL.Pipelines.PostFXPipeline\r\n * @memberof Phaser.Renderer.WebGL.Pipelines.FX\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Game} game - A reference to the Phaser Game instance.\r\n */\r\nvar WipeFXPipeline = new Class({\r\n\r\n Extends: PostFXPipeline,\r\n\r\n initialize:\r\n\r\n function WipeFXPipeline (game)\r\n {\r\n PostFXPipeline.call(this, {\r\n game: game,\r\n fragShader: WipeFrag\r\n });\r\n\r\n /**\r\n * The progress of the Wipe effect. This value is normalized to the range 0 to 1.\r\n *\r\n * Adjust this value to make the wipe transition (i.e. via a Tween)\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.WipeFXPipeline#progress\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.progress = 0;\r\n\r\n /**\r\n * The width of the wipe effect. This value is normalized in the range 0 to 1.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.WipeFXPipeline#wipeWidth\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.wipeWidth = 0.1;\r\n\r\n /**\r\n * The direction of the wipe effect. Either 0 or 1. Set in conjunction with the axis property.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.WipeFXPipeline#direction\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.direction = 0;\r\n\r\n /**\r\n * The axis of the wipe effect. Either 0 or 1. Set in conjunction with the direction property.\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.WipeFXPipeline#axis\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.axis = 0;\r\n\r\n /**\r\n * Is this a reveal (true) or a fade (false) effect?\r\n *\r\n * @name Phaser.Renderer.WebGL.Pipelines.FX.WipeFXPipeline#reveal\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.reveal = false;\r\n },\r\n\r\n onPreRender: function (controller, shader)\r\n {\r\n controller = this.getController(controller);\r\n\r\n var progress = controller.progress;\r\n var wipeWidth = controller.wipeWidth;\r\n var direction = controller.direction;\r\n var axis = controller.axis;\r\n\r\n this.set4f('config', progress, wipeWidth, direction, axis, shader);\r\n this.setBoolean('reveal', controller.reveal, shader);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = WipeFXPipeline;\r\n\n\n/***/ }),\n\n/***/ 58918:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Renderer.WebGL.Pipelines.FX\r\n */\r\n\r\nvar FX = {\r\n\r\n Barrel: __webpack_require__(54812),\r\n Bloom: __webpack_require__(67329),\r\n Blur: __webpack_require__(8861),\r\n Bokeh: __webpack_require__(51051),\r\n Circle: __webpack_require__(89428),\r\n ColorMatrix: __webpack_require__(88904),\r\n Displacement: __webpack_require__(63563),\r\n Glow: __webpack_require__(94045),\r\n Gradient: __webpack_require__(74088),\r\n Pixelate: __webpack_require__(99636),\r\n Shadow: __webpack_require__(34700),\r\n Shine: __webpack_require__(91157),\r\n Vignette: __webpack_require__(27797),\r\n Wipe: __webpack_require__(67603)\r\n\r\n};\r\n\r\n// Export it\r\n\r\nmodule.exports = FX;\r\n\n\n/***/ }),\n\n/***/ 96615:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(36060);\r\nvar Extend = __webpack_require__(79291);\r\n\r\n/**\r\n * @namespace Phaser.Renderer.WebGL.Pipelines\r\n */\r\n\r\nvar Pipelines = {\r\n\r\n FX: __webpack_require__(58918),\r\n\r\n BitmapMaskPipeline: __webpack_require__(31302),\r\n Events: __webpack_require__(77085),\r\n FXPipeline: __webpack_require__(92651),\r\n LightPipeline: __webpack_require__(96569),\r\n MobilePipeline: __webpack_require__(56527),\r\n MultiPipeline: __webpack_require__(57516),\r\n PointLightPipeline: __webpack_require__(43439),\r\n PostFXPipeline: __webpack_require__(84057),\r\n PreFXPipeline: __webpack_require__(43558),\r\n RopePipeline: __webpack_require__(81041),\r\n SinglePipeline: __webpack_require__(12385),\r\n UtilityPipeline: __webpack_require__(7589)\r\n\r\n};\r\n\r\n// Merge in the consts\r\n\r\nPipelines = Extend(false, Pipelines, CONST);\r\n\r\n// Export it\r\n\r\nmodule.exports = Pipelines;\r\n\n\n/***/ }),\n\n/***/ 35407:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME PHASER_ADD_BLEND_FS',\n 'precision mediump float;',\n 'uniform sampler2D uMainSampler1;',\n 'uniform sampler2D uMainSampler2;',\n 'uniform float uStrength;',\n 'varying vec2 outTexCoord;',\n 'void main ()',\n '{',\n ' vec4 frame1 = texture2D(uMainSampler1, outTexCoord);',\n ' vec4 frame2 = texture2D(uMainSampler2, outTexCoord);',\n ' gl_FragColor = frame1 + frame2 * uStrength;',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 78908:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME PHASER_BITMAP_MASK_FS',\n 'precision mediump float;',\n 'uniform vec2 uResolution;',\n 'uniform sampler2D uMainSampler;',\n 'uniform sampler2D uMaskSampler;',\n 'uniform bool uInvertMaskAlpha;',\n 'void main ()',\n '{',\n ' vec2 uv = gl_FragCoord.xy / uResolution;',\n ' vec4 mainColor = texture2D(uMainSampler, uv);',\n ' vec4 maskColor = texture2D(uMaskSampler, uv);',\n ' if (!uInvertMaskAlpha)',\n ' {',\n ' mainColor *= maskColor.a;',\n ' }',\n ' else',\n ' {',\n ' mainColor *= (1.0 - maskColor.a);',\n ' }',\n ' gl_FragColor = mainColor;',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 85191:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME PHASER_BITMAP_MASK_VS',\n 'precision mediump float;',\n 'attribute vec2 inPosition;',\n 'void main ()',\n '{',\n ' gl_Position = vec4(inPosition, 0.0, 1.0);',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 96293:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME PHASER_COLORMATRIX_FS',\n 'precision mediump float;',\n 'uniform sampler2D uMainSampler;',\n 'uniform float uColorMatrix[20];',\n 'uniform float uAlpha;',\n 'varying vec2 outTexCoord;',\n 'void main ()',\n '{',\n ' vec4 c = texture2D(uMainSampler, outTexCoord);',\n ' if (uAlpha == 0.0)',\n ' {',\n ' gl_FragColor = c;',\n ' return;',\n ' }',\n ' if (c.a > 0.0)',\n ' {',\n ' c.rgb /= c.a;',\n ' }',\n ' vec4 result;',\n ' result.r = (uColorMatrix[0] * c.r) + (uColorMatrix[1] * c.g) + (uColorMatrix[2] * c.b) + (uColorMatrix[3] * c.a) + uColorMatrix[4];',\n ' result.g = (uColorMatrix[5] * c.r) + (uColorMatrix[6] * c.g) + (uColorMatrix[7] * c.b) + (uColorMatrix[8] * c.a) + uColorMatrix[9];',\n ' result.b = (uColorMatrix[10] * c.r) + (uColorMatrix[11] * c.g) + (uColorMatrix[12] * c.b) + (uColorMatrix[13] * c.a) + uColorMatrix[14];',\n ' result.a = (uColorMatrix[15] * c.r) + (uColorMatrix[16] * c.g) + (uColorMatrix[17] * c.b) + (uColorMatrix[18] * c.a) + uColorMatrix[19];',\n ' vec3 rgb = mix(c.rgb, result.rgb, uAlpha);',\n ' rgb *= result.a;',\n ' gl_FragColor = vec4(rgb, result.a);',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 36682:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME PHASER_COPY_FS',\n 'precision mediump float;',\n 'uniform sampler2D uMainSampler;',\n 'uniform float uBrightness;',\n 'varying vec2 outTexCoord;',\n 'void main ()',\n '{',\n ' gl_FragColor = texture2D(uMainSampler, outTexCoord) * uBrightness;',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 99155:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME BARREL_FS',\n 'precision mediump float;',\n 'uniform sampler2D uMainSampler;',\n 'uniform float amount;',\n 'varying vec2 outTexCoord;',\n 'vec2 Distort(vec2 p)',\n '{',\n ' float theta = atan(p.y, p.x);',\n ' float radius = length(p);',\n ' radius = pow(radius, amount);',\n ' p.x = radius * cos(theta);',\n ' p.y = radius * sin(theta);',\n ' return 0.5 * (p + 1.0);',\n '}',\n 'void main()',\n '{',\n ' vec2 xy = 2.0 * outTexCoord - 1.0;',\n ' vec2 texCoord = outTexCoord;',\n ' if (length(xy) < 1.0)',\n ' {',\n ' texCoord = Distort(xy);',\n ' }',\n ' gl_FragColor = texture2D(uMainSampler, texCoord);',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 24400:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME BLOOM_FS',\n 'precision mediump float;',\n 'uniform sampler2D uMainSampler;',\n 'uniform vec2 offset;',\n 'uniform float strength;',\n 'uniform vec3 color;',\n 'varying vec2 outTexCoord;',\n 'void main ()',\n '{',\n ' vec4 sum = texture2D(uMainSampler, outTexCoord) * 0.204164 * strength;',\n ' sum = sum + texture2D(uMainSampler, outTexCoord + offset * 1.407333) * 0.304005;',\n ' sum = sum + texture2D(uMainSampler, outTexCoord - offset * 1.407333) * 0.304005;',\n ' sum = sum + texture2D(uMainSampler, outTexCoord + offset * 3.294215) * 0.093913;',\n ' gl_FragColor = (sum + texture2D(uMainSampler, outTexCoord - offset * 3.294215) * 0.093913) * vec4(color, 1);',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 94328:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME BLUR_HIGH_FS',\n 'precision mediump float;',\n 'uniform sampler2D uMainSampler;',\n 'uniform vec2 resolution;',\n 'uniform vec2 offset;',\n 'uniform float strength;',\n 'uniform vec3 color;',\n 'varying vec2 outTexCoord;',\n 'void main ()',\n '{',\n ' vec2 uv = outTexCoord;',\n ' vec4 col = vec4(0.0);',\n ' vec2 off1 = vec2(1.411764705882353) * offset * strength;',\n ' vec2 off2 = vec2(3.2941176470588234) * offset * strength;',\n ' vec2 off3 = vec2(5.176470588235294) * offset * strength;',\n ' col += texture2D(uMainSampler, uv) * 0.1964825501511404;',\n ' col += texture2D(uMainSampler, uv + (off1 / resolution)) * 0.2969069646728344;',\n ' col += texture2D(uMainSampler, uv - (off1 / resolution)) * 0.2969069646728344;',\n ' col += texture2D(uMainSampler, uv + (off2 / resolution)) * 0.09447039785044732;',\n ' col += texture2D(uMainSampler, uv - (off2 / resolution)) * 0.09447039785044732;',\n ' col += texture2D(uMainSampler, uv + (off3 / resolution)) * 0.010381362401148057;',\n ' col += texture2D(uMainSampler, uv - (off3 / resolution)) * 0.010381362401148057;',\n ' gl_FragColor = col * vec4(color, 1.0);',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 41514:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME BLUR_LOW_FS',\n 'precision mediump float;',\n 'uniform sampler2D uMainSampler;',\n 'uniform vec2 resolution;',\n 'uniform vec2 offset;',\n 'uniform float strength;',\n 'uniform vec3 color;',\n 'varying vec2 outTexCoord;',\n 'void main ()',\n '{',\n ' vec2 uv = outTexCoord;',\n ' vec4 col = vec4(0.0);',\n ' vec2 offset = vec2(1.333) * offset * strength;',\n ' col += texture2D(uMainSampler, uv) * 0.29411764705882354;',\n ' col += texture2D(uMainSampler, uv + (offset / resolution)) * 0.35294117647058826;',\n ' col += texture2D(uMainSampler, uv - (offset / resolution)) * 0.35294117647058826;',\n ' gl_FragColor = col * vec4(color, 1.0);',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 51078:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME BLUR_MED_FS',\n 'precision mediump float;',\n 'uniform sampler2D uMainSampler;',\n 'uniform vec2 resolution;',\n 'uniform vec2 offset;',\n 'uniform float strength;',\n 'uniform vec3 color;',\n 'varying vec2 outTexCoord;',\n 'void main ()',\n '{',\n ' vec2 uv = outTexCoord;',\n ' vec4 col = vec4(0.0);',\n ' vec2 off1 = vec2(1.3846153846) * offset * strength;',\n ' vec2 off2 = vec2(3.2307692308) * offset * strength;',\n ' col += texture2D(uMainSampler, uv) * 0.2270270270;',\n ' col += texture2D(uMainSampler, uv + (off1 / resolution)) * 0.3162162162;',\n ' col += texture2D(uMainSampler, uv - (off1 / resolution)) * 0.3162162162;',\n ' col += texture2D(uMainSampler, uv + (off2 / resolution)) * 0.0702702703;',\n ' col += texture2D(uMainSampler, uv - (off2 / resolution)) * 0.0702702703;',\n ' gl_FragColor = col * vec4(color, 1.0);',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 90610:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME BOKEH_FS',\n 'precision mediump float;',\n '#define ITERATIONS 100.0',\n '#define ONEOVER_ITR 1.0 / ITERATIONS',\n '#define PI 3.141596',\n '#define GOLDEN_ANGLE 2.39996323',\n 'uniform sampler2D uMainSampler;',\n 'uniform vec2 resolution;',\n 'uniform float radius;',\n 'uniform float amount;',\n 'uniform float contrast;',\n 'uniform bool isTiltShift;',\n 'uniform float strength;',\n 'uniform vec2 blur;',\n 'varying vec2 outTexCoord;',\n 'vec2 Sample (in float theta, inout float r)',\n '{',\n ' r += 1.0 / r;',\n ' return (r - 1.0) * vec2(cos(theta), sin(theta)) * 0.06;',\n '}',\n 'vec3 Bokeh (sampler2D tex, vec2 uv, float radius)',\n '{',\n ' vec3 acc = vec3(0.0);',\n ' vec3 div = vec3(0.0);',\n ' vec2 pixel = vec2(resolution.y / resolution.x, 1.0) * radius * .025;',\n ' float r = 1.0;',\n ' for (float j = 0.0; j < GOLDEN_ANGLE * ITERATIONS; j += GOLDEN_ANGLE)',\n ' {',\n ' vec3 col = texture2D(tex, uv + pixel * Sample(j, r)).xyz;',\n ' col = contrast > 0.0 ? col * col * (1.0 + contrast) : col;',\n ' vec3 bokeh = vec3(0.5) + pow(col, vec3(10.0)) * amount;',\n ' acc += col * bokeh;',\n ' div += bokeh;',\n ' }',\n ' return acc / div;',\n '}',\n 'void main ()',\n '{',\n ' float shift = 1.0;',\n ' if (isTiltShift)',\n ' {',\n ' vec2 uv = vec2(gl_FragCoord.xy / resolution + vec2(-0.5, -0.5)) * 2.0;',\n ' float centerStrength = 1.0;',\n ' shift = length(uv * blur * strength) * centerStrength;',\n ' }',\n ' gl_FragColor = vec4(Bokeh(uMainSampler, outTexCoord * vec2(1.0, 1.0), radius * shift), 0.0);',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 91899:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME CIRCLE_FS',\n 'precision mediump float;',\n 'uniform sampler2D uMainSampler;',\n 'uniform vec2 resolution;',\n 'uniform vec3 color;',\n 'uniform vec4 backgroundColor;',\n 'uniform float thickness;',\n 'uniform float scale;',\n 'uniform float feather;',\n 'varying vec2 outTexCoord;',\n 'void main ()',\n '{',\n ' vec4 texture = texture2D(uMainSampler, outTexCoord);',\n ' vec2 position = (gl_FragCoord.xy / resolution.xy) * 2.0 - 1.0;',\n ' float aspectRatio = resolution.x / resolution.y;',\n ' position.x *= aspectRatio;',\n ' float grad = length(position);',\n ' float outer = aspectRatio;',\n ' float inner = outer - (thickness * 2.0 / resolution.y);',\n ' if (aspectRatio >= 1.0)',\n ' {',\n ' float f = 2.0 + (resolution.y / resolution.x);',\n ' outer = 1.0;',\n ' inner = 1.0 - (thickness * f / resolution.x);',\n ' }',\n ' outer *= scale;',\n ' inner *= scale;',\n ' float circle = smoothstep(outer, outer - 0.01, grad);',\n ' float ring = circle - smoothstep(inner, inner - feather, grad);',\n ' texture = mix(backgroundColor * backgroundColor.a, texture, texture.a);',\n ' texture = (texture * (circle - ring));',\n ' gl_FragColor = vec4(texture.rgb + (ring * color), texture.a);',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 47838:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME DISPLACEMENT_FS',\n 'precision mediump float;',\n 'uniform sampler2D uMainSampler;',\n 'uniform sampler2D uDisplacementSampler;',\n 'uniform vec2 amount;',\n 'varying vec2 outTexCoord;',\n 'void main ()',\n '{',\n ' vec2 disp = (-vec2(0.5, 0.5) + texture2D(uDisplacementSampler, outTexCoord).rr) * amount;',\n ' gl_FragColor = texture2D(uMainSampler, outTexCoord + disp).rgba;',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 98656:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME GLOW_FS',\n 'precision mediump float;',\n 'uniform sampler2D uMainSampler;',\n 'varying vec2 outTexCoord;',\n 'uniform float outerStrength;',\n 'uniform float innerStrength;',\n 'uniform vec2 resolution;',\n 'uniform vec4 glowColor;',\n 'uniform bool knockout;',\n 'const float PI = 3.14159265358979323846264;',\n 'const float DIST = __DIST__;',\n 'const float SIZE = min(__SIZE__, PI * 2.0);',\n 'const float STEP = ceil(PI * 2.0 / SIZE);',\n 'const float MAX_ALPHA = STEP * DIST * (DIST + 1.0) / 2.0;',\n 'void main ()',\n '{',\n ' vec2 px = vec2(1.0 / resolution.x, 1.0 / resolution.y);',\n ' float totalAlpha = 0.0;',\n ' vec2 direction;',\n ' vec2 displaced;',\n ' vec4 color;',\n ' for (float angle = 0.0; angle < PI * 2.0; angle += SIZE)',\n ' {',\n ' direction = vec2(cos(angle), sin(angle)) * px;',\n ' for (float curDistance = 0.0; curDistance < DIST; curDistance++)',\n ' {',\n ' displaced = outTexCoord + direction * (curDistance + 1.0);',\n ' color = texture2D(uMainSampler, displaced);',\n ' totalAlpha += (DIST - curDistance) * color.a;',\n ' }',\n ' }',\n ' color = texture2D(uMainSampler, outTexCoord);',\n ' float alphaRatio = (totalAlpha / MAX_ALPHA);',\n ' float innerGlowAlpha = (1.0 - alphaRatio) * innerStrength * color.a;',\n ' float innerGlowStrength = min(1.0, innerGlowAlpha);',\n ' vec4 innerColor = mix(color, glowColor, innerGlowStrength);',\n ' float outerGlowAlpha = alphaRatio * outerStrength * (1.0 - color.a);',\n ' float outerGlowStrength = min(1.0 - innerColor.a, outerGlowAlpha);',\n ' vec4 outerGlowColor = outerGlowStrength * glowColor.rgba;',\n ' if (knockout)',\n ' {',\n ' float resultAlpha = outerGlowAlpha + innerGlowAlpha;',\n ' gl_FragColor = vec4(glowColor.rgb * resultAlpha, resultAlpha);',\n ' }',\n ' else',\n ' {',\n ' gl_FragColor = innerColor + outerGlowColor;',\n ' }',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 70463:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME GRADIENT_FS',\n '#define SRGB_TO_LINEAR(c) pow((c), vec3(2.2))',\n '#define LINEAR_TO_SRGB(c) pow((c), vec3(1.0 / 2.2))',\n '#define SRGB(r, g, b) SRGB_TO_LINEAR(vec3(float(r), float(g), float(b)) / 255.0)',\n 'precision mediump float;',\n 'uniform sampler2D uMainSampler;',\n 'uniform vec2 positionFrom;',\n 'uniform vec2 positionTo;',\n 'uniform vec3 color1;',\n 'uniform vec3 color2;',\n 'uniform float alpha;',\n 'uniform int size;',\n 'varying vec2 outTexCoord;',\n 'float gradientNoise(in vec2 uv)',\n '{',\n ' const vec3 magic = vec3(0.06711056, 0.00583715, 52.9829189);',\n ' return fract(magic.z * fract(dot(uv, magic.xy)));',\n '}',\n 'float stepped (in float s, in float scale, in int steps)',\n '{',\n ' return steps > 0 ? floor( s / ((1.0 * scale) / float(steps))) * 1.0 / float(steps - 1) : s;',\n '}',\n 'void main ()',\n '{',\n ' vec2 a = positionFrom;',\n ' vec2 b = positionTo;',\n ' vec2 ba = b - a;',\n ' float d = dot(outTexCoord - a, ba) / dot(ba, ba);',\n ' float t = size > 0 ? stepped(d, 1.0, size) : d;',\n ' t = smoothstep(0.0, 1.0, clamp(t, 0.0, 1.0));',\n ' vec3 color = mix(SRGB(color1.r, color1.g, color1.b), SRGB(color2.r, color2.g, color2.b), t);',\n ' color = LINEAR_TO_SRGB(color);',\n ' color += (1.0 / 255.0) * gradientNoise(outTexCoord) - (0.5 / 255.0);',\n ' vec4 texture = texture2D(uMainSampler, outTexCoord);',\n ' gl_FragColor = vec4(mix(color.rgb, texture.rgb, alpha), 1.0) * texture.a;',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 50831:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME PIXELATE_FS',\n 'precision mediump float;',\n 'uniform sampler2D uMainSampler;',\n 'uniform vec2 resolution;',\n 'uniform float amount;',\n 'varying vec2 outTexCoord;',\n 'void main ()',\n '{',\n ' float pixelSize = floor(2.0 + amount);',\n ' vec2 center = pixelSize * floor(outTexCoord * resolution / pixelSize) + pixelSize * vec2(0.5, 0.5);',\n ' vec2 corner1 = center + pixelSize * vec2(-0.5, -0.5);',\n ' vec2 corner2 = center + pixelSize * vec2(+0.5, -0.5);',\n ' vec2 corner3 = center + pixelSize * vec2(+0.5, +0.5);',\n ' vec2 corner4 = center + pixelSize * vec2(-0.5, +0.5);',\n ' vec4 pixel = 0.4 * texture2D(uMainSampler, center / resolution);',\n ' pixel += 0.15 * texture2D(uMainSampler, corner1 / resolution);',\n ' pixel += 0.15 * texture2D(uMainSampler, corner2 / resolution);',\n ' pixel += 0.15 * texture2D(uMainSampler, corner3 / resolution);',\n ' pixel += 0.15 * texture2D(uMainSampler, corner4 / resolution);',\n ' gl_FragColor = pixel;',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 92595:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME SHADOW_FS',\n 'precision mediump float;',\n 'uniform sampler2D uMainSampler;',\n 'varying vec2 outTexCoord;',\n 'uniform vec2 lightPosition;',\n 'uniform vec4 color;',\n 'uniform float decay;',\n 'uniform float power;',\n 'uniform float intensity;',\n 'uniform int samples;',\n 'const int MAX = 12;',\n 'void main ()',\n '{',\n ' vec4 texture = texture2D(uMainSampler, outTexCoord);',\n ' vec2 pc = (lightPosition - outTexCoord) * intensity;',\n ' float shadow = 0.0;',\n ' float limit = max(float(MAX), float(samples));',\n ' for (int i = 0; i < MAX; ++i)',\n ' {',\n ' if (i >= samples)',\n ' {',\n ' break;',\n ' }',\n ' shadow += texture2D(uMainSampler, outTexCoord + float(i) * decay / limit * pc).a * power;',\n ' }',\n ' float mask = 1.0 - texture.a;',\n ' gl_FragColor = mix(texture, color, shadow * mask);',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 72464:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME SHINE_FS',\n 'precision mediump float;',\n 'uniform sampler2D uMainSampler;',\n 'uniform vec2 resolution;',\n 'uniform bool reveal;',\n 'uniform float speed;',\n 'uniform float time;',\n 'uniform float lineWidth;',\n 'uniform float gradient;',\n 'varying vec2 outTexCoord;',\n 'void main ()',\n '{',\n '\tvec2 uv = gl_FragCoord.xy / resolution.xy;',\n ' vec4 tex = texture2D(uMainSampler, outTexCoord);',\n ' vec4 col1 = vec4(0.3, 0.0, 0.0, 1.0);',\n ' vec4 col2 = vec4(0.85, 0.85, 0.85, 1.0);',\n ' uv.x = uv.x - mod(time * speed, 2.0) + 0.5;',\n ' float y = uv.x * gradient;',\n ' float s = smoothstep(y - lineWidth, y, uv.y) - smoothstep(y, y + lineWidth, uv.y);',\n ' gl_FragColor = (((s * col1) + (s * col2)) * tex);',\n ' if (!reveal)',\n ' {',\n ' gl_FragColor += tex;',\n ' }',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 39249:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME VIGNETTE_FS',\n 'precision mediump float;',\n 'uniform sampler2D uMainSampler;',\n 'uniform float radius;',\n 'uniform float strength;',\n 'uniform vec2 position;',\n 'varying vec2 outTexCoord;',\n 'void main ()',\n '{',\n ' vec4 col = vec4(1.0);',\n ' float d = length(outTexCoord - position);',\n ' if (d <= radius)',\n ' {',\n ' float g = d / radius;',\n ' g = sin(g * 3.14 * strength);',\n ' \tcol = vec4(g * g * g);',\n ' }',\n ' vec4 texture = texture2D(uMainSampler, outTexCoord);',\n ' gl_FragColor = texture * (1.0 - col);',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 2878:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME WIPE_FS',\n 'precision mediump float;',\n 'uniform sampler2D uMainSampler;',\n 'uniform vec4 config;',\n 'uniform bool reveal;',\n 'varying vec2 outTexCoord;',\n 'void main ()',\n '{',\n ' vec2 uv = outTexCoord;',\n ' vec4 color0;',\n ' vec4 color1;',\n ' if (reveal)',\n ' {',\n ' color0 = vec4(0);',\n ' color1 = texture2D(uMainSampler, uv);',\n ' }',\n ' else',\n ' {',\n ' color0 = texture2D(uMainSampler, uv);',\n ' color1 = vec4(0);',\n ' }',\n ' float distance = config.x;',\n ' float width = config.y;',\n ' float direction = config.z;',\n ' float axis = uv.x;',\n ' if (config.w == 1.0)',\n ' {',\n ' axis = uv.y;',\n ' }',\n ' float adjust = mix(width, -width, distance);',\n ' float value = smoothstep(distance - width, distance + width, abs(direction - axis) + adjust);',\n ' gl_FragColor = mix(color1, color0, value);',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 31063:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME PHASER_LIGHT_FS',\n 'precision mediump float;',\n 'struct Light',\n '{',\n ' vec2 position;',\n ' vec3 color;',\n ' float intensity;',\n ' float radius;',\n '};',\n 'const int kMaxLights = %LIGHT_COUNT%;',\n 'uniform vec4 uCamera; /* x, y, rotation, zoom */',\n 'uniform vec2 uResolution;',\n 'uniform sampler2D uMainSampler;',\n 'uniform sampler2D uNormSampler;',\n 'uniform vec3 uAmbientLightColor;',\n 'uniform Light uLights[kMaxLights];',\n 'uniform mat3 uInverseRotationMatrix;',\n 'uniform int uLightCount;',\n 'varying vec2 outTexCoord;',\n 'varying float outTexId;',\n 'varying float outTintEffect;',\n 'varying vec4 outTint;',\n 'void main ()',\n '{',\n ' vec3 finalColor = vec3(0.0, 0.0, 0.0);',\n ' vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);',\n ' vec4 texture = texture2D(uMainSampler, outTexCoord);',\n ' vec4 color = texture * texel;',\n ' if (outTintEffect == 1.0)',\n ' {',\n ' color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);',\n ' }',\n ' else if (outTintEffect == 2.0)',\n ' {',\n ' color = texel;',\n ' }',\n ' vec3 normalMap = texture2D(uNormSampler, outTexCoord).rgb;',\n ' vec3 normal = normalize(uInverseRotationMatrix * vec3(normalMap * 2.0 - 1.0));',\n ' vec2 res = vec2(min(uResolution.x, uResolution.y)) * uCamera.w;',\n ' for (int index = 0; index < kMaxLights; ++index)',\n ' {',\n ' if (index < uLightCount)',\n ' {',\n ' Light light = uLights[index];',\n ' vec3 lightDir = vec3((light.position.xy / res) - (gl_FragCoord.xy / res), 0.1);',\n ' vec3 lightNormal = normalize(lightDir);',\n ' float distToSurf = length(lightDir) * uCamera.w;',\n ' float diffuseFactor = max(dot(normal, lightNormal), 0.0);',\n ' float radius = (light.radius / res.x * uCamera.w) * uCamera.w;',\n ' float attenuation = clamp(1.0 - distToSurf * distToSurf / (radius * radius), 0.0, 1.0);',\n ' vec3 diffuse = light.color * diffuseFactor;',\n ' finalColor += (attenuation * diffuse) * light.intensity;',\n ' }',\n ' }',\n ' vec4 colorOutput = vec4(uAmbientLightColor + finalColor, 1.0);',\n ' gl_FragColor = color * vec4(colorOutput.rgb * colorOutput.a, colorOutput.a);',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 48247:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME PHASER_LINEAR_BLEND_FS',\n 'precision mediump float;',\n 'uniform sampler2D uMainSampler1;',\n 'uniform sampler2D uMainSampler2;',\n 'uniform float uStrength;',\n 'varying vec2 outTexCoord;',\n 'void main ()',\n '{',\n ' vec4 frame1 = texture2D(uMainSampler1, outTexCoord);',\n ' vec4 frame2 = texture2D(uMainSampler2, outTexCoord);',\n ' gl_FragColor = mix(frame1, frame2 * uStrength, 0.5);',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 41214:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME PHASER_MESH_FS',\n 'precision mediump float;',\n 'uniform vec3 uLightPosition;',\n 'uniform vec3 uLightAmbient;',\n 'uniform vec3 uLightDiffuse;',\n 'uniform vec3 uLightSpecular;',\n 'uniform vec3 uFogColor;',\n 'uniform float uFogNear;',\n 'uniform float uFogFar;',\n 'uniform vec3 uMaterialAmbient;',\n 'uniform vec3 uMaterialDiffuse;',\n 'uniform vec3 uMaterialSpecular;',\n 'uniform float uMaterialShine;',\n 'uniform vec3 uCameraPosition;',\n 'uniform sampler2D uTexture;',\n 'varying vec2 vTextureCoord;',\n 'varying vec3 vNormal;',\n 'varying vec3 vPosition;',\n 'void main (void)',\n '{',\n ' vec4 color = texture2D(uTexture, vTextureCoord);',\n ' vec3 ambient = uLightAmbient * uMaterialAmbient;',\n ' vec3 norm = normalize(vNormal);',\n ' vec3 lightDir = normalize(uLightPosition - vPosition);',\n ' float diff = max(dot(norm, lightDir), 0.0);',\n ' vec3 diffuse = uLightDiffuse * (diff * uMaterialDiffuse);',\n ' vec3 viewDir = normalize(uCameraPosition - vPosition);',\n ' vec3 reflectDir = reflect(-lightDir, norm);',\n ' float spec = pow(max(dot(viewDir, reflectDir), 0.0), uMaterialShine);',\n ' vec3 specular = uLightSpecular * (spec * uMaterialSpecular);',\n ' vec3 result = (ambient + diffuse + specular) * color.rgb;',\n ' float depth = gl_FragCoord.z / gl_FragCoord.w;',\n ' float fogFactor = smoothstep(uFogNear, uFogFar, depth);',\n ' gl_FragColor.rgb = mix(result.rgb, uFogColor, fogFactor);',\n ' gl_FragColor.a = color.a;',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 39653:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME PHASER_MESH_VS',\n 'precision mediump float;',\n 'attribute vec3 aVertexPosition;',\n 'attribute vec3 aVertexNormal;',\n 'attribute vec2 aTextureCoord;',\n 'uniform mat4 uViewProjectionMatrix;',\n 'uniform mat4 uModelMatrix;',\n 'uniform mat4 uNormalMatrix;',\n 'varying vec2 vTextureCoord;',\n 'varying vec3 vNormal;',\n 'varying vec3 vPosition;',\n 'void main ()',\n '{',\n ' vTextureCoord = aTextureCoord;',\n ' vPosition = vec3(uModelMatrix * vec4(aVertexPosition, 1.0));',\n ' vNormal = vec3(uNormalMatrix * vec4(aVertexNormal, 1.0));',\n ' gl_Position = uViewProjectionMatrix * uModelMatrix * vec4(aVertexPosition, 1.0);',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 62143:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME PHASER_MOBILE_FS',\n '#ifdef GL_FRAGMENT_PRECISION_HIGH',\n 'precision highp float;',\n '#else',\n 'precision mediump float;',\n '#endif',\n 'uniform sampler2D uMainSampler;',\n 'varying vec2 outTexCoord;',\n 'varying float outTintEffect;',\n 'varying vec4 outTint;',\n 'void main ()',\n '{',\n ' vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);',\n ' vec4 texture = texture2D(uMainSampler, outTexCoord);',\n ' vec4 color = texture * texel;',\n ' if (outTintEffect == 1.0)',\n ' {',\n ' color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);',\n ' }',\n ' else if (outTintEffect == 2.0)',\n ' {',\n ' color = texel;',\n ' }',\n ' gl_FragColor = color;',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 47940:\n/***/ ((module) => {\n\nmodule.exports = [\r\n '#define SHADER_NAME PHASER_MOBILE_VS',\r\n 'precision mediump float;',\r\n 'uniform mat4 uProjectionMatrix;',\r\n 'uniform vec2 uResolution;',\r\n 'attribute vec2 inPosition;',\r\n 'attribute vec2 inTexCoord;',\r\n 'attribute float inTexId;',\r\n 'attribute float inTintEffect;',\r\n 'attribute vec4 inTint;',\r\n 'varying vec2 outTexCoord;',\r\n 'varying float outTintEffect;',\r\n 'varying vec4 outTint;',\r\n 'void main ()',\r\n '{',\r\n ' gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);',\r\n ' outTexCoord = inTexCoord;',\r\n ' outTint = inTint;',\r\n ' outTintEffect = inTintEffect;',\r\n '}',\r\n].join('\\n');\r\n\n\n/***/ }),\n\n/***/ 98840:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME PHASER_MULTI_FS',\n '#ifdef GL_FRAGMENT_PRECISION_HIGH',\n 'precision highp float;',\n '#else',\n 'precision mediump float;',\n '#endif',\n 'uniform sampler2D uMainSampler[%count%];',\n 'varying vec2 outTexCoord;',\n 'varying float outTexId;',\n 'varying float outTintEffect;',\n 'varying vec4 outTint;',\n 'void main ()',\n '{',\n ' vec4 texture;',\n ' %forloop%',\n ' vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);',\n ' vec4 color = texture * texel;',\n ' if (outTintEffect == 1.0)',\n ' {',\n ' color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);',\n ' }',\n ' else if (outTintEffect == 2.0)',\n ' {',\n ' color = texel;',\n ' }',\n ' gl_FragColor = color;',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 44667:\n/***/ ((module) => {\n\nmodule.exports = [\r\n '#define SHADER_NAME PHASER_MULTI_VS',\r\n 'precision mediump float;',\r\n 'uniform mat4 uProjectionMatrix;',\r\n 'uniform vec2 uResolution;',\r\n 'attribute vec2 inPosition;',\r\n 'attribute vec2 inTexCoord;',\r\n 'attribute float inTexId;',\r\n 'attribute float inTintEffect;',\r\n 'attribute vec4 inTint;',\r\n 'varying vec2 outTexCoord;',\r\n 'varying float outTexId;',\r\n 'varying float outTintEffect;',\r\n 'varying vec4 outTint;',\r\n 'void main ()',\r\n '{',\r\n ' gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);',\r\n ' outTexCoord = inTexCoord;',\r\n ' outTexId = inTexId;',\r\n ' outTint = inTint;',\r\n ' outTintEffect = inTintEffect;',\r\n '}',\r\n].join('\\n');\r\n\n\n/***/ }),\n\n/***/ 4127:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME PHASER_POINTLIGHT_FS',\n 'precision mediump float;',\n 'uniform vec2 uResolution;',\n 'uniform float uCameraZoom;',\n 'varying vec4 lightPosition;',\n 'varying vec4 lightColor;',\n 'varying float lightRadius;',\n 'varying float lightAttenuation;',\n 'void main ()',\n '{',\n ' vec2 center = (lightPosition.xy + 1.0) * (uResolution.xy * 0.5);',\n ' float distToSurf = length(center - gl_FragCoord.xy);',\n ' float radius = 1.0 - distToSurf / (lightRadius * uCameraZoom);',\n ' float intensity = smoothstep(0.0, 1.0, radius * lightAttenuation);',\n ' vec4 color = vec4(intensity, intensity, intensity, 0.0) * lightColor;',\n ' gl_FragColor = vec4(color.rgb * lightColor.a, color.a);',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 89924:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME PHASER_POINTLIGHT_VS',\n 'precision mediump float;',\n 'uniform mat4 uProjectionMatrix;',\n 'attribute vec2 inPosition;',\n 'attribute vec2 inLightPosition;',\n 'attribute vec4 inLightColor;',\n 'attribute float inLightRadius;',\n 'attribute float inLightAttenuation;',\n 'varying vec4 lightPosition;',\n 'varying vec4 lightColor;',\n 'varying float lightRadius;',\n 'varying float lightAttenuation;',\n 'void main ()',\n '{',\n ' lightColor = inLightColor;',\n ' lightRadius = inLightRadius;',\n ' lightAttenuation = inLightAttenuation;',\n ' lightPosition = uProjectionMatrix * vec4(inLightPosition, 1.0, 1.0);',\n ' gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 27681:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME PHASER_POSTFX_FS',\n 'precision mediump float;',\n 'uniform sampler2D uMainSampler;',\n 'varying vec2 outTexCoord;',\n 'void main ()',\n '{',\n ' gl_FragColor = texture2D(uMainSampler, outTexCoord);',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 49627:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME PHASER_QUAD_VS',\n 'precision mediump float;',\n 'attribute vec2 inPosition;',\n 'attribute vec2 inTexCoord;',\n 'varying vec2 outFragCoord;',\n 'varying vec2 outTexCoord;',\n 'void main ()',\n '{',\n ' outFragCoord = inPosition.xy * 0.5 + 0.5;',\n ' outTexCoord = inTexCoord;',\n ' gl_Position = vec4(inPosition, 0, 1);',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 45561:\n/***/ ((module) => {\n\nmodule.exports = [\n '#define SHADER_NAME PHASER_SINGLE_FS',\n '#ifdef GL_FRAGMENT_PRECISION_HIGH',\n 'precision highp float;',\n '#else',\n 'precision mediump float;',\n '#endif',\n 'uniform sampler2D uMainSampler;',\n 'varying vec2 outTexCoord;',\n 'varying float outTintEffect;',\n 'varying vec4 outTint;',\n 'void main ()',\n '{',\n ' vec4 texture = texture2D(uMainSampler, outTexCoord);',\n ' vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);',\n ' vec4 color = texture * texel;',\n ' if (outTintEffect == 1.0)',\n ' {',\n ' color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);',\n ' }',\n ' else if (outTintEffect == 2.0)',\n ' {',\n ' color = texel;',\n ' }',\n ' gl_FragColor = color;',\n '}',\n].join('\\n');\n\n\n/***/ }),\n\n/***/ 60722:\n/***/ ((module) => {\n\nmodule.exports = [\r\n '#define SHADER_NAME PHASER_SINGLE_VS',\r\n 'precision mediump float;',\r\n 'uniform mat4 uProjectionMatrix;',\r\n 'uniform vec2 uResolution;',\r\n 'attribute vec2 inPosition;',\r\n 'attribute vec2 inTexCoord;',\r\n 'attribute float inTexId;',\r\n 'attribute float inTintEffect;',\r\n 'attribute vec4 inTint;',\r\n 'varying vec2 outTexCoord;',\r\n 'varying float outTintEffect;',\r\n 'varying vec4 outTint;',\r\n 'void main ()',\r\n '{',\r\n ' gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);',\r\n ' outTexCoord = inTexCoord;',\r\n ' outTint = inTint;',\r\n ' outTintEffect = inTintEffect;',\r\n '}',\r\n].join('\\n');\r\n\n\n/***/ }),\n\n/***/ 89350:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2023 Photon Storm Ltd.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Renderer.WebGL.Shaders\r\n */\r\n\r\nmodule.exports = {\r\n\r\n AddBlendFrag: __webpack_require__(35407),\r\n BitmapMaskFrag: __webpack_require__(78908),\r\n BitmapMaskVert: __webpack_require__(85191),\r\n ColorMatrixFrag: __webpack_require__(96293),\r\n CopyFrag: __webpack_require__(36682),\r\n FXBarrelFrag: __webpack_require__(99155),\r\n FXBloomFrag: __webpack_require__(24400),\r\n FXBlurHighFrag: __webpack_require__(94328),\r\n FXBlurLowFrag: __webpack_require__(41514),\r\n FXBlurMedFrag: __webpack_require__(51078),\r\n FXBokehFrag: __webpack_require__(90610),\r\n FXCircleFrag: __webpack_require__(91899),\r\n FXDisplacementFrag: __webpack_require__(47838),\r\n FXGlowFrag: __webpack_require__(98656),\r\n FXGradientFrag: __webpack_require__(70463),\r\n FXPixelateFrag: __webpack_require__(50831),\r\n FXShadowFrag: __webpack_require__(92595),\r\n FXShineFrag: __webpack_require__(72464),\r\n FXVignetteFrag: __webpack_require__(39249),\r\n FXWipeFrag: __webpack_require__(2878),\r\n LightFrag: __webpack_require__(31063),\r\n LinearBlendFrag: __webpack_require__(48247),\r\n MeshFrag: __webpack_require__(41214),\r\n MeshVert: __webpack_require__(39653),\r\n MobileFrag: __webpack_require__(62143),\r\n MobileVert: __webpack_require__(47940),\r\n MultiFrag: __webpack_require__(98840),\r\n MultiVert: __webpack_require__(44667),\r\n PointLightFrag: __webpack_require__(4127),\r\n PointLightVert: __webpack_require__(89924),\r\n PostFXFrag: __webpack_require__(27681),\r\n QuadVert: __webpack_require__(49627),\r\n SingleFrag: __webpack_require__(45561),\r\n SingleVert: __webpack_require__(60722)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 93567:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Benjamin D. Richards \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n/**\r\n * @classdesc\r\n * Wrapper for a WebGL attribute location, containing all the information that was used to create it.\r\n *\r\n * A WebGLAttribLocation should never be exposed outside the WebGLRenderer,\r\n * so the WebGLRenderer can handle context loss and other events without other systems having to be aware of it.\r\n * Always use WebGLAttribLocationWrapper instead.\r\n *\r\n * @class WebGLAttribLocationWrapper\r\n * @memberof Phaser.Renderer.WebGL.Wrappers\r\n * @constructor\r\n * @since 3.80.0\r\n *\r\n * @param {WebGLRenderingContext} gl - The WebGLRenderingContext to create the WebGLAttribLocation for.\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLProgramWrapper} program - The WebGLProgram that this location refers to. This must be created first.\r\n * @param {string} name - The name of this location, as defined in the shader source code.\r\n */\r\nvar WebGLAttribLocationWrapper = new Class({\r\n\r\n initialize:\r\n\r\n function WebGLAttribLocationWrapper (gl, program, name)\r\n {\r\n /**\r\n * The WebGLAttribLocation being wrapped by this class.\r\n *\r\n * This property could change at any time.\r\n * Therefore, you should never store a reference to this value.\r\n * It should only be passed directly to the WebGL API for drawing.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLAttribLocationWrapper#webGLAttribLocation\r\n * @type {GLint}\r\n * @default -1\r\n * @since 3.80.0\r\n */\r\n this.webGLAttribLocation = -1;\r\n\r\n /**\r\n * The WebGLRenderingContext that owns this location.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLAttribLocationWrapper#gl\r\n * @type {WebGLRenderingContext}\r\n * @since 3.80.0\r\n */\r\n this.gl = gl;\r\n\r\n /**\r\n * The WebGLProgram that this location refers to.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLAttribLocationWrapper#program\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLProgramWrapper}\r\n * @since 3.80.0\r\n */\r\n this.program = program;\r\n\r\n /**\r\n * The name of this location, as defined in the shader source code.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLAttribLocationWrapper#name\r\n * @type {string}\r\n * @since 3.80.0\r\n */\r\n this.name = name;\r\n\r\n this.createResource();\r\n },\r\n\r\n /**\r\n * Creates the WebGLAttribLocation.\r\n *\r\n * @method Phaser.Renderer.WebGL.Wrappers.WebGLAttribLocationWrapper#createResource\r\n * @since 3.80.0\r\n */\r\n createResource: function ()\r\n {\r\n if (this.program.webGLProgram === null)\r\n {\r\n this.webGLAttribLocation = -1;\r\n return;\r\n }\r\n\r\n var gl = this.gl;\r\n\r\n if (gl.isContextLost())\r\n {\r\n // GL state can't be updated right now.\r\n // `createResource` will run when the context is restored.\r\n return;\r\n }\r\n\r\n this.webGLAttribLocation = gl.getAttribLocation(this.program.webGLProgram, this.name);\r\n },\r\n\r\n /**\r\n * Destroys this WebGLAttribLocationWrapper.\r\n *\r\n * @method Phaser.Renderer.WebGL.Wrappers.WebGLAttribLocationWrapper#destroy\r\n * @since 3.80.0\r\n */\r\n destroy: function ()\r\n {\r\n this.gl = null;\r\n this.program = null;\r\n this.name = null;\r\n this.webGLAttribLocation = -1;\r\n }\r\n});\r\n\r\nmodule.exports = WebGLAttribLocationWrapper;\r\n\n\n/***/ }),\n\n/***/ 26128:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Benjamin D. Richards \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n/**\r\n * @classdesc\r\n * Wrapper for a WebGL buffer, containing all the information that was used\r\n * to create it. This can be a VertexBuffer or IndexBuffer.\r\n *\r\n * A WebGLBuffer should never be exposed outside the WebGLRenderer, so the\r\n * WebGLRenderer can handle context loss and other events without other\r\n * systems having to be aware of it. Always use WebGLBufferWrapper instead.\r\n *\r\n * @class WebGLBufferWrapper\r\n * @memberof Phaser.Renderer.WebGL.Wrappers\r\n * @constructor\r\n * @since 3.80.0\r\n *\r\n * @param {WebGLRenderingContext} gl - The WebGLRenderingContext to create the WebGLBuffer for.\r\n * @param {ArrayBuffer|number} initialDataOrSize - Either an ArrayBuffer of data, or the size of the buffer to create.\r\n * @param {GLenum} bufferType - The type of the buffer being created.\r\n * @param {GLenum} bufferUsage - The usage of the buffer being created. gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW.\r\n */\r\nvar WebGLBufferWrapper = new Class({\r\n\r\n initialize:\r\n\r\n function WebGLBufferWrapper (gl, initialDataOrSize, bufferType, bufferUsage)\r\n {\r\n /**\r\n * The WebGLBuffer being wrapped by this class.\r\n *\r\n * This property could change at any time.\r\n * Therefore, you should never store a reference to this value.\r\n * It should only be passed directly to the WebGL API for drawing.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLBufferWrapper#webGLBuffer\r\n * @type {?WebGLBuffer}\r\n * @default null\r\n * @since 3.80.0\r\n */\r\n this.webGLBuffer = null;\r\n\r\n /**\r\n * The WebGLRenderingContext that owns this WebGLBuffer.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLBufferWrapper#gl\r\n * @type {WebGLRenderingContext}\r\n * @since 3.80.0\r\n */\r\n this.gl = gl;\r\n\r\n /**\r\n * The initial data or size of the buffer.\r\n *\r\n * Note that this will be used to recreate the buffer if the WebGL context is lost.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLBufferWrapper#initialDataOrSize\r\n * @type {ArrayBuffer|number}\r\n * @since 3.80.0\r\n */\r\n this.initialDataOrSize = initialDataOrSize;\r\n\r\n /**\r\n * The type of the buffer.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLBufferWrapper#bufferType\r\n * @type {GLenum}\r\n * @since 3.80.0\r\n */\r\n this.bufferType = bufferType;\r\n\r\n /**\r\n * The usage of the buffer. gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLBufferWrapper#bufferUsage\r\n * @type {GLenum}\r\n * @since 3.80.0\r\n */\r\n this.bufferUsage = bufferUsage;\r\n\r\n this.createResource();\r\n },\r\n\r\n /**\r\n * Creates a WebGLBuffer for this WebGLBufferWrapper.\r\n *\r\n * This is called automatically by the constructor. It may also be\r\n * called again if the WebGLBuffer needs re-creating.\r\n *\r\n * @method Phaser.Renderer.WebGL.Wrappers.WebGLBufferWrapper#createResource\r\n * @since 3.80.0\r\n */\r\n createResource: function ()\r\n {\r\n if (this.initialDataOrSize === null)\r\n {\r\n return;\r\n }\r\n\r\n var gl = this.gl;\r\n\r\n if (gl.isContextLost())\r\n {\r\n // GL state can't be updated right now.\r\n // `createResource` will run when the context is restored.\r\n return;\r\n }\r\n\r\n var bufferType = this.bufferType;\r\n var webGLBuffer = gl.createBuffer();\r\n\r\n this.webGLBuffer = webGLBuffer;\r\n\r\n gl.bindBuffer(bufferType, this.webGLBuffer);\r\n gl.bufferData(bufferType, this.initialDataOrSize, this.bufferUsage);\r\n gl.bindBuffer(bufferType, null);\r\n },\r\n\r\n /**\r\n * Remove this WebGLBufferWrapper from the GL context.\r\n *\r\n * @method Phaser.Renderer.WebGL.Wrappers.WebGLBufferWrapper#destroy\r\n * @since 3.80.0\r\n */\r\n destroy: function ()\r\n {\r\n var gl = this.gl;\r\n if (!gl.isContextLost())\r\n {\r\n gl.deleteBuffer(this.webGLBuffer);\r\n }\r\n this.webGLBuffer = null;\r\n this.initialDataOrSize = null;\r\n this.gl = null;\r\n }\r\n});\r\n\r\nmodule.exports = WebGLBufferWrapper;\r\n\n\n/***/ }),\n\n/***/ 84387:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Benjamin D. Richards \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n// Possible errors that can be thrown by `gl.checkFramebufferStatus()`.\r\n/**\r\n * @ignore \r\n */\r\nvar errors = {\r\n 36054: 'Incomplete Attachment',\r\n 36055: 'Missing Attachment',\r\n 36057: 'Incomplete Dimensions',\r\n 36061: 'Framebuffer Unsupported'\r\n};\r\n\r\n/**\r\n * @classdesc\r\n * Wrapper for a WebGL frame buffer,\r\n * containing all the information that was used to create it.\r\n *\r\n * A WebGLFramebuffer should never be exposed outside the WebGLRenderer,\r\n * so the WebGLRenderer can handle context loss and other events\r\n * without other systems having to be aware of it.\r\n * Always use WebGLFramebufferWrapper instead.\r\n *\r\n * @class WebGLFramebufferWrapper\r\n * @memberof Phaser.Renderer.WebGL.Wrappers\r\n * @constructor\r\n * @since 3.80.0\r\n *\r\n * @param {WebGLRenderingContext} gl - The WebGLRenderingContext to create the WebGLFramebuffer for.\r\n * @param {number} width - If `addDepthStencilBuffer` is true, this controls the width of the depth stencil.\r\n * @param {number} height - If `addDepthStencilBuffer` is true, this controls the height of the depth stencil.\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} renderTexture - The color texture where the color pixels are written.\r\n * @param {boolean} [addDepthStencilBuffer=false] - Create a Renderbuffer for the depth stencil?\r\n */\r\nvar WebGLFramebufferWrapper = new Class({\r\n\r\n initialize:\r\n\r\n function WebGLFramebufferWrapper (gl, width, height, renderTexture, addDepthStencilBuffer)\r\n {\r\n /**\r\n * The WebGLFramebuffer being wrapped by this class.\r\n *\r\n * This property could change at any time.\r\n * Therefore, you should never store a reference to this value.\r\n * It should only be passed directly to the WebGL API for drawing.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLFramebufferWrapper#webGLFramebuffer\r\n * @type {?WebGLFramebuffer}\r\n * @default null\r\n * @since 3.80.0\r\n */\r\n this.webGLFramebuffer = null;\r\n\r\n /**\r\n * The WebGL context this WebGLFramebuffer belongs to.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLFramebufferWrapper#gl\r\n * @type {WebGLRenderingContext}\r\n * @since 3.80.0\r\n */\r\n this.gl = gl;\r\n\r\n /**\r\n * Width of the depth stencil.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLFramebufferWrapper#width\r\n * @type {number}\r\n * @since 3.80.0\r\n */\r\n this.width = width;\r\n\r\n /**\r\n * Height of the depth stencil.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLFramebufferWrapper#height\r\n * @type {number}\r\n * @since 3.80.0\r\n */\r\n this.height = height;\r\n\r\n /**\r\n * The color texture where the color pixels are written.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLFramebufferWrapper#renderTexture\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper}\r\n * @since 3.80.0\r\n */\r\n this.renderTexture = renderTexture;\r\n\r\n /**\r\n * Create a Renderbuffer for the depth stencil?\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLFramebufferWrapper#addDepthStencilBuffer\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.80.0\r\n */\r\n this.addDepthStencilBuffer = !!addDepthStencilBuffer;\r\n\r\n this.createResource();\r\n },\r\n\r\n /**\r\n * Creates a WebGLFramebuffer from the given parameters.\r\n *\r\n * This is called automatically by the constructor. It may also be\r\n * called again if the WebGLFramebuffer needs re-creating.\r\n *\r\n * @method Phaser.Renderer.WebGL.Wrappers.WebGLFramebufferWrapper#createResource\r\n * @since 3.80.0\r\n */\r\n createResource: function ()\r\n {\r\n var gl = this.gl;\r\n\r\n if (gl.isContextLost())\r\n {\r\n // GL state can't be updated right now.\r\n // `createResource` will run when the context is restored.\r\n return;\r\n }\r\n\r\n var renderTexture = this.renderTexture;\r\n var complete = 0;\r\n var framebuffer = gl.createFramebuffer();\r\n\r\n this.webGLFramebuffer = framebuffer;\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, framebuffer);\r\n\r\n renderTexture.isRenderTexture = true;\r\n renderTexture.isAlphaPremultiplied = false;\r\n\r\n gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, renderTexture.webGLTexture, 0);\r\n\r\n complete = gl.checkFramebufferStatus(gl.FRAMEBUFFER);\r\n\r\n if (complete !== gl.FRAMEBUFFER_COMPLETE)\r\n {\r\n throw new Error('Framebuffer status: ' + (errors[complete] || complete));\r\n }\r\n\r\n if (this.addDepthStencilBuffer)\r\n {\r\n var depthStencilBuffer = gl.createRenderbuffer();\r\n\r\n gl.bindRenderbuffer(gl.RENDERBUFFER, depthStencilBuffer);\r\n gl.renderbufferStorage(gl.RENDERBUFFER, gl.DEPTH_STENCIL, this.width, this.height);\r\n gl.framebufferRenderbuffer(gl.FRAMEBUFFER, gl.DEPTH_STENCIL_ATTACHMENT, gl.RENDERBUFFER, depthStencilBuffer);\r\n }\r\n\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, null);\r\n },\r\n\r\n /**\r\n * Destroys this WebGLFramebufferWrapper.\r\n *\r\n * @method Phaser.Renderer.WebGL.Wrappers.WebGLFramebufferWrapper#destroy\r\n * @since 3.80.0\r\n */\r\n destroy: function ()\r\n {\r\n if (this.webGLFramebuffer === null)\r\n {\r\n return;\r\n }\r\n\r\n var gl = this.gl;\r\n\r\n if (!gl.isContextLost())\r\n {\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, this.webGLFramebuffer);\r\n\r\n // Check for a color attachment and remove it\r\n var colorAttachment = gl.getFramebufferAttachmentParameter(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME);\r\n\r\n if (colorAttachment !== null)\r\n {\r\n gl.framebufferTexture2D(gl.FRAMEBUFFER, gl.COLOR_ATTACHMENT0, gl.TEXTURE_2D, null, 0);\r\n\r\n gl.deleteTexture(colorAttachment);\r\n }\r\n\r\n // Check for a depth-stencil attachment and remove it\r\n var depthStencilAttachment = gl.getFramebufferAttachmentParameter(gl.FRAMEBUFFER, gl.DEPTH_STENCIL_ATTACHMENT, gl.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME);\r\n\r\n if (depthStencilAttachment !== null)\r\n {\r\n gl.deleteRenderbuffer(depthStencilAttachment);\r\n }\r\n\r\n gl.bindFramebuffer(gl.FRAMEBUFFER, null);\r\n\r\n gl.deleteFramebuffer(this.webGLFramebuffer);\r\n }\r\n\r\n this.renderTexture = null;\r\n this.webGLFramebuffer = null;\r\n this.gl = null;\r\n }\r\n});\r\n\r\nmodule.exports = WebGLFramebufferWrapper;\r\n\n\n/***/ }),\n\n/***/ 1482:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Benjamin D. Richards \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n/**\r\n * @classdesc\r\n * Wrapper for a WebGL program, containing all the information that was used to create it.\r\n *\r\n * A WebGLProgram should never be exposed outside the WebGLRenderer, so the WebGLRenderer\r\n * can handle context loss and other events without other systems having to be aware of it.\r\n * Always use WebGLProgramWrapper instead.\r\n *\r\n * @class WebGLProgramWrapper\r\n * @memberof Phaser.Renderer.WebGL.Wrappers\r\n * @constructor\r\n * @since 3.80.0\r\n *\r\n * @param {WebGLRenderingContext} gl - The WebGLRenderingContext to create the WebGLProgram for.\r\n * @param {string} vertexSource - The vertex shader source code as a string.\r\n * @param {string} fragmentShader - The fragment shader source code as a string.\r\n */\r\nvar WebGLProgramWrapper = new Class({\r\n\r\n initialize:\r\n\r\n function WebGLProgramWrapper (gl, vertexSource, fragmentSource)\r\n {\r\n /**\r\n * The WebGLProgram being wrapped by this class.\r\n *\r\n * This property could change at any time.\r\n * Therefore, you should never store a reference to this value.\r\n * It should only be passed directly to the WebGL API for drawing.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLProgramWrapper#webGLProgram\r\n * @type {?WebGLProgram}\r\n * @default null\r\n * @since 3.80.0\r\n */\r\n this.webGLProgram = null;\r\n\r\n /**\r\n * The WebGLRenderingContext that owns this WebGLProgram.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLProgramWrapper#gl\r\n * @type {WebGLRenderingContext}\r\n * @since 3.80.0\r\n */\r\n this.gl = gl;\r\n\r\n /**\r\n * The vertex shader source code as a string.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLProgramWrapper#vertexSource\r\n * @type {string}\r\n * @since 3.80.0\r\n */\r\n this.vertexSource = vertexSource;\r\n\r\n /**\r\n * The fragment shader source code as a string.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLProgramWrapper#fragmentSource\r\n * @type {string}\r\n * @since 3.80.0\r\n */\r\n this.fragmentSource = fragmentSource;\r\n\r\n this.createResource();\r\n },\r\n\r\n /**\r\n * Creates a WebGLProgram from the given vertex and fragment shaders.\r\n *\r\n * This is called automatically by the constructor. It may also be\r\n * called again if the WebGLProgram needs re-creating.\r\n *\r\n * @method Phaser.Renderer.WebGL.Wrappers.WebGLProgramWrapper#createResource\r\n * @throws {Error} If the shaders failed to compile or link.\r\n * @since 3.80.0\r\n */\r\n createResource: function ()\r\n {\r\n var gl = this.gl;\r\n\r\n if (gl.isContextLost())\r\n {\r\n // GL state can't be updated right now.\r\n // `createResource` will run when the context is restored.\r\n return;\r\n }\r\n\r\n var program = gl.createProgram();\r\n\r\n var vs = gl.createShader(gl.VERTEX_SHADER);\r\n var fs = gl.createShader(gl.FRAGMENT_SHADER);\r\n\r\n gl.shaderSource(vs, this.vertexSource);\r\n gl.shaderSource(fs, this.fragmentSource);\r\n\r\n gl.compileShader(vs);\r\n gl.compileShader(fs);\r\n\r\n var failed = 'Shader failed:\\n';\r\n\r\n if (!gl.getShaderParameter(vs, gl.COMPILE_STATUS))\r\n {\r\n throw new Error('Vertex ' + failed + gl.getShaderInfoLog(vs));\r\n }\r\n\r\n if (!gl.getShaderParameter(fs, gl.COMPILE_STATUS))\r\n {\r\n throw new Error('Fragment ' + failed + gl.getShaderInfoLog(fs));\r\n }\r\n\r\n gl.attachShader(program, vs);\r\n gl.attachShader(program, fs);\r\n\r\n gl.linkProgram(program);\r\n\r\n if (!gl.getProgramParameter(program, gl.LINK_STATUS))\r\n {\r\n throw new Error('Link ' + failed + gl.getProgramInfoLog(program));\r\n }\r\n\r\n gl.useProgram(program);\r\n\r\n this.webGLProgram = program;\r\n },\r\n\r\n /**\r\n * Remove this WebGLProgram from the GL context.\r\n *\r\n * @method Phaser.Renderer.WebGL.Wrappers.WebGLProgramWrapper#destroy\r\n * @since 3.80.0\r\n */\r\n destroy: function ()\r\n {\r\n if (!this.webGLProgram)\r\n {\r\n return;\r\n }\r\n\r\n if (!this.gl.isContextLost())\r\n {\r\n this.gl.deleteProgram(this.webGLProgram);\r\n }\r\n\r\n this.webGLProgram = null;\r\n this.gl = null;\r\n }\r\n});\r\n\r\nmodule.exports = WebGLProgramWrapper;\r\n\n\n/***/ }),\n\n/***/ 82751:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Benjamin D. Richards \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar IsSizePowerOfTwo = __webpack_require__(50030);\r\n\r\n/**\r\n * @classdesc\r\n * Wrapper for a WebGL texture, containing all the information that was used\r\n * to create it.\r\n *\r\n * A WebGLTexture should never be exposed outside the WebGLRenderer,\r\n * so the WebGLRenderer can handle context loss and other events\r\n * without other systems having to be aware of it.\r\n * Always use WebGLTextureWrapper instead.\r\n *\r\n * @class WebGLTextureWrapper\r\n * @memberof Phaser.Renderer.WebGL.Wrappers\r\n * @constructor\r\n * @since 3.80.0\r\n *\r\n * @param {WebGLRenderingContext} gl - WebGL context the texture belongs to.\r\n * @param {number} mipLevel - Mip level of the texture.\r\n * @param {number} minFilter - Filtering of the texture.\r\n * @param {number} magFilter - Filtering of the texture.\r\n * @param {number} wrapT - Wrapping mode of the texture.\r\n * @param {number} wrapS - Wrapping mode of the texture.\r\n * @param {number} format - Which format does the texture use.\r\n * @param {?object} pixels - pixel data.\r\n * @param {number} width - Width of the texture in pixels.\r\n * @param {number} height - Height of the texture in pixels.\r\n * @param {boolean} [pma=true] - Does the texture have premultiplied alpha?\r\n * @param {boolean} [forceSize=false] - If `true` it will use the width and height passed to this method, regardless of the pixels dimension.\r\n * @param {boolean} [flipY=false] - Sets the `UNPACK_FLIP_Y_WEBGL` flag the WebGL Texture uses during upload.\r\n */\r\nvar WebGLTextureWrapper = new Class({\r\n\r\n initialize:\r\n\r\n function WebGLTextureWrapper (gl, mipLevel, minFilter, magFilter, wrapT, wrapS, format, pixels, width, height, pma, forceSize, flipY)\r\n {\r\n /**\r\n * The WebGLTexture that this wrapper is wrapping.\r\n *\r\n * This property could change at any time.\r\n * Therefore, you should never store a reference to this value.\r\n * It should only be passed directly to the WebGL API for drawing.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper#webGLTexture\r\n * @type {?WebGLTexture}\r\n * @default null\r\n * @since 3.80.0\r\n */\r\n this.webGLTexture = null;\r\n\r\n /**\r\n * Whether this is used as a RenderTexture.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper#isRenderTexture\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.80.0\r\n */\r\n this.isRenderTexture = false;\r\n\r\n /**\r\n * The WebGL context this WebGLTexture belongs to.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper#gl\r\n * @type {WebGLRenderingContext}\r\n * @since 3.80.0\r\n */\r\n this.gl = gl;\r\n\r\n /**\r\n * Mip level of the texture.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper#mipLevel\r\n * @type {number}\r\n * @since 3.80.0\r\n */\r\n this.mipLevel = mipLevel;\r\n\r\n /**\r\n * Filtering of the texture.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper#minFilter\r\n * @type {number}\r\n * @since 3.80.0\r\n */\r\n this.minFilter = minFilter;\r\n\r\n /**\r\n * Filtering of the texture.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper#magFilter\r\n * @type {number}\r\n * @since 3.80.0\r\n */\r\n this.magFilter = magFilter;\r\n\r\n /**\r\n * Wrapping mode of the texture.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper#wrapT\r\n * @type {number}\r\n * @since 3.80.0\r\n */\r\n this.wrapT = wrapT;\r\n\r\n /**\r\n * Wrapping mode of the texture.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper#wrapS\r\n * @type {number}\r\n * @since 3.80.0\r\n */\r\n this.wrapS = wrapS;\r\n\r\n /**\r\n * Which format does the texture use.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper#format\r\n * @type {number}\r\n * @since 3.80.0\r\n */\r\n this.format = format;\r\n\r\n /**\r\n * Pixel data. This is the source data used to create the WebGLTexture.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper#pixels\r\n * @type {?object}\r\n * @since 3.80.0\r\n */\r\n this.pixels = pixels;\r\n\r\n /**\r\n * Width of the texture in pixels.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper#width\r\n * @type {number}\r\n * @since 3.80.0\r\n */\r\n this.width = width;\r\n\r\n /**\r\n * Height of the texture in pixels.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper#height\r\n * @type {number}\r\n * @since 3.80.0\r\n */\r\n this.height = height;\r\n\r\n /**\r\n * Does the texture have premultiplied alpha?\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper#pma\r\n * @type {boolean}\r\n * @since 3.80.0\r\n */\r\n this.pma = (pma === undefined || pma === null) ? true : pma;\r\n\r\n /**\r\n * Whether to use the width and height properties, regardless of pixel dimensions.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper#forceSize\r\n * @type {boolean}\r\n * @since 3.80.0\r\n */\r\n this.forceSize = !!forceSize;\r\n\r\n /**\r\n * Sets the `UNPACK_FLIP_Y_WEBGL` flag the WebGL Texture uses during upload.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper#flipY\r\n * @type {boolean}\r\n * @since 3.80.0\r\n */\r\n this.flipY = !!flipY;\r\n\r\n /**\r\n * Metadata for the SpectorJS tool, set if debug is enabled.\r\n * You should set this via the `spectorMetadata` property,\r\n * which will update the `__SPECTOR_Metadata` property on the WebGLTexture.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper#__SPECTOR_Metadata\r\n * @type {object}\r\n * @private\r\n * @since 3.80.0\r\n */\r\n // eslint-disable-next-line camelcase\r\n this.__SPECTOR_Metadata = {};\r\n\r\n this.createResource();\r\n },\r\n\r\n /**\r\n * Creates a WebGLTexture from the given parameters.\r\n *\r\n * This is called automatically by the constructor. It may also be\r\n * called again if the WebGLTexture needs re-creating.\r\n *\r\n * @method Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper#createResource\r\n * @since 3.80.0\r\n */\r\n createResource: function ()\r\n {\r\n var gl = this.gl;\r\n\r\n if (gl.isContextLost())\r\n {\r\n // GL state can't be updated right now.\r\n // `createResource` will run when the context is restored.\r\n return;\r\n }\r\n\r\n if (this.pixels instanceof WebGLTextureWrapper)\r\n {\r\n // Use the source texture directly.\r\n this.webGLTexture = this.pixels.webGLTexture;\r\n return;\r\n }\r\n\r\n var texture = gl.createTexture();\r\n\r\n // Set Spector metadata.\r\n // eslint-disable-next-line camelcase\r\n texture.__SPECTOR_Metadata = this.__SPECTOR_Metadata;\r\n\r\n // Assign the texture to our wrapper.\r\n this.webGLTexture = texture;\r\n\r\n this._processTexture();\r\n },\r\n\r\n /**\r\n * Updates the WebGLTexture from an updated source.\r\n *\r\n * This should only be used when the source is a Canvas or Video element.\r\n *\r\n * @method Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper#update\r\n * @since 3.80.0\r\n *\r\n * @param {?object} source - The source to update the WebGLTexture with.\r\n * @param {number} width - The new width of the WebGLTexture.\r\n * @param {number} height - The new height of the WebGLTexture.\r\n * @param {boolean} flipY - Should the WebGLTexture set `UNPACK_MULTIPLY_FLIP_Y`?\r\n * @param {number} wrapS - The new wrapping mode for the WebGLTexture.\r\n * @param {number} wrapT - The new wrapping mode for the WebGLTexture.\r\n * @param {number} minFilter - The new minification filter for the WebGLTexture.\r\n * @param {number} magFilter - The new magnification filter for the WebGLTexture.\r\n * @param {number} format - The new format for the WebGLTexture.\r\n */\r\n update: function (source, width, height, flipY, wrapS, wrapT, minFilter, magFilter, format)\r\n {\r\n if (width === 0 || height === 0)\r\n {\r\n return;\r\n }\r\n\r\n // Assume that the source might change.\r\n this.pixels = source;\r\n this.width = width;\r\n this.height = height;\r\n this.flipY = flipY;\r\n this.wrapS = wrapS;\r\n this.wrapT = wrapT;\r\n this.minFilter = minFilter;\r\n this.magFilter = magFilter;\r\n this.format = format;\r\n\r\n var gl = this.gl;\r\n\r\n if (gl.isContextLost())\r\n {\r\n // GL state can't be updated right now.\r\n // `createResource` will run when the context is restored.\r\n return;\r\n }\r\n\r\n this._processTexture();\r\n },\r\n\r\n /**\r\n * Set all parameters of this WebGLTexture per the stored values.\r\n *\r\n * @function Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper#_processTexture\r\n * @protected\r\n * @since 3.85.0\r\n * @ignore\r\n */\r\n _processTexture: function ()\r\n {\r\n var gl = this.gl;\r\n\r\n gl.activeTexture(gl.TEXTURE0);\r\n\r\n var currentTexture = gl.getParameter(gl.TEXTURE_BINDING_2D);\r\n\r\n gl.bindTexture(gl.TEXTURE_2D, this.webGLTexture);\r\n\r\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, this.minFilter);\r\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, this.magFilter);\r\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, this.wrapS);\r\n gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, this.wrapT);\r\n\r\n gl.pixelStorei(gl.UNPACK_PREMULTIPLY_ALPHA_WEBGL, this.pma);\r\n gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, this.flipY);\r\n\r\n var pixels = this.pixels;\r\n var mipLevel = this.mipLevel;\r\n var width = this.width;\r\n var height = this.height;\r\n var format = this.format;\r\n\r\n var generateMipmap = false;\r\n\r\n if (pixels === null || pixels === undefined)\r\n {\r\n gl.texImage2D(gl.TEXTURE_2D, mipLevel, format, width, height, 0, format, gl.UNSIGNED_BYTE, null);\r\n\r\n generateMipmap = IsSizePowerOfTwo(width, height);\r\n }\r\n else if (pixels.compressed)\r\n {\r\n width = pixels.width;\r\n height = pixels.height;\r\n generateMipmap = pixels.generateMipmap;\r\n\r\n for (var i = 0; i < pixels.mipmaps.length; i++)\r\n {\r\n gl.compressedTexImage2D(gl.TEXTURE_2D, i, pixels.internalFormat, pixels.mipmaps[i].width, pixels.mipmaps[i].height, 0, pixels.mipmaps[i].data);\r\n }\r\n }\r\n else if (pixels instanceof Uint8Array)\r\n {\r\n gl.texImage2D(gl.TEXTURE_2D, mipLevel, format, width, height, 0, format, gl.UNSIGNED_BYTE, pixels);\r\n\r\n generateMipmap = IsSizePowerOfTwo(width, height);\r\n }\r\n else\r\n {\r\n if (!this.forceSize)\r\n {\r\n width = pixels.width;\r\n height = pixels.height;\r\n }\r\n\r\n gl.texImage2D(gl.TEXTURE_2D, mipLevel, format, format, gl.UNSIGNED_BYTE, pixels);\r\n\r\n generateMipmap = IsSizePowerOfTwo(width, height);\r\n }\r\n\r\n if (generateMipmap)\r\n {\r\n gl.generateMipmap(gl.TEXTURE_2D);\r\n }\r\n\r\n // Restore previous texture bind.\r\n if (currentTexture)\r\n {\r\n gl.bindTexture(gl.TEXTURE_2D, currentTexture);\r\n }\r\n else\r\n {\r\n gl.bindTexture(gl.TEXTURE_2D, null);\r\n }\r\n },\r\n\r\n /**\r\n * The `__SPECTOR_Metadata` property of the `WebGLTexture`,\r\n * used to add extra data to the debug SpectorJS integration.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper#spectorMetadata\r\n * @type {object}\r\n * @since 3.80.0\r\n */\r\n spectorMetadata: {\r\n\r\n get: function ()\r\n {\r\n return this.__SPECTOR_Metadata;\r\n },\r\n\r\n set: function (value)\r\n {\r\n // eslint-disable-next-line camelcase\r\n this.__SPECTOR_Metadata = value;\r\n\r\n if (!this.gl.isContextLost())\r\n {\r\n // eslint-disable-next-line camelcase\r\n this.webGLTexture.__SPECTOR_Metadata = value;\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Deletes the WebGLTexture from the GPU, if it has not been already.\r\n *\r\n * @method Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper#destroy\r\n * @since 3.80.0\r\n */\r\n destroy: function ()\r\n {\r\n if (this.webGLTexture === null)\r\n {\r\n return;\r\n }\r\n\r\n if (!this.gl.isContextLost())\r\n {\r\n if (!(this.pixels instanceof WebGLTextureWrapper))\r\n {\r\n // Do not delete a texture that belongs to another wrapper.\r\n this.gl.deleteTexture(this.webGLTexture);\r\n }\r\n }\r\n\r\n this.pixels = null;\r\n this.webGLTexture = null;\r\n this.gl = null;\r\n }\r\n});\r\n\r\nmodule.exports = WebGLTextureWrapper;\r\n\n\n/***/ }),\n\n/***/ 57183:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Benjamin D. Richards \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n/**\r\n * @classdesc\r\n * Wrapper for a WebGL uniform location, containing all the information that was used to create it.\r\n *\r\n * A WebGLUniformLocation should never be exposed outside the WebGLRenderer,\r\n * so the WebGLRenderer can handle context loss and other events without other systems having to be aware of it.\r\n * Always use WebGLUniformLocationWrapper instead.\r\n *\r\n * @class WebGLUniformLocationWrapper\r\n * @memberof Phaser.Renderer.WebGL.Wrappers\r\n * @constructor\r\n * @since 3.80.0\r\n *\r\n * @param {WebGLRenderingContext} gl - The WebGLRenderingContext to create the WebGLUniformLocation for.\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLProgramWrapper} program - The WebGLProgram that this location refers to. This must be created first.\r\n * @param {string} name - The name of this location, as defined in the shader source code.\r\n */\r\nvar WebGLUniformLocationWrapper = new Class({\r\n\r\n initialize:\r\n\r\n function WebGLUniformLocationWrapper (gl, program, name)\r\n {\r\n /**\r\n * The WebGLUniformLocation being wrapped by this class.\r\n *\r\n * This property could change at any time.\r\n * Therefore, you should never store a reference to this value.\r\n * It should only be passed directly to the WebGL API for drawing.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLUniformLocationWrapper#webGLUniformLocation\r\n * @type {?WebGLUniformLocation}\r\n * @default null\r\n * @since 3.80.0\r\n */\r\n this.webGLUniformLocation = null;\r\n\r\n /**\r\n * The WebGLRenderingContext that owns this location.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLUniformLocationWrapper#gl\r\n * @type {WebGLRenderingContext}\r\n * @since 3.80.0\r\n */\r\n this.gl = gl;\r\n\r\n /**\r\n * The WebGLProgram that this location refers to.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLUniformLocationWrapper#program\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLProgramWrapper}\r\n * @since 3.80.0\r\n */\r\n this.program = program;\r\n\r\n /**\r\n * The name of this location, as defined in the shader source code.\r\n *\r\n * @name Phaser.Renderer.WebGL.Wrappers.WebGLUniformLocationWrapper#name\r\n * @type {string}\r\n * @since 3.80.0\r\n */\r\n this.name = name;\r\n\r\n this.createResource();\r\n },\r\n\r\n /**\r\n * Creates the WebGLUniformLocation.\r\n *\r\n * @method Phaser.Renderer.WebGL.Wrappers.WebGLUniformLocationWrapper#createResource\r\n * @since 3.80.0\r\n */\r\n createResource: function ()\r\n {\r\n if (this.program.webGLProgram === null)\r\n {\r\n this.webGLUniformLocation = null;\r\n return;\r\n }\r\n\r\n var gl = this.gl;\r\n\r\n if (gl.isContextLost())\r\n {\r\n // GL state can't be updated right now.\r\n // `createResource` will run when the context is restored.\r\n return;\r\n }\r\n\r\n this.webGLUniformLocation = gl.getUniformLocation(this.program.webGLProgram, this.name);\r\n },\r\n\r\n /**\r\n * Destroys this WebGLUniformLocationWrapper.\r\n *\r\n * @method Phaser.Renderer.WebGL.Wrappers.WebGLUniformLocationWrapper#destroy\r\n * @since 3.80.0\r\n */\r\n destroy: function ()\r\n {\r\n this.gl = null;\r\n this.program = null;\r\n this.name = null;\r\n this.webGLUniformLocation = null;\r\n }\r\n});\r\n\r\nmodule.exports = WebGLUniformLocationWrapper;\r\n\n\n/***/ }),\n\n/***/ 9503:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Benjamin D. Richards \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Renderer.WebGL.Wrappers\r\n */\r\n\r\nvar Wrappers = {\r\n WebGLAttribLocationWrapper: __webpack_require__(93567),\r\n WebGLBufferWrapper: __webpack_require__(26128),\r\n WebGLProgramWrapper: __webpack_require__(1482),\r\n WebGLTextureWrapper: __webpack_require__(82751),\r\n WebGLFramebufferWrapper: __webpack_require__(84387),\r\n WebGLUniformLocationWrapper: __webpack_require__(57183)\r\n};\r\n\r\nmodule.exports = Wrappers;\r\n\n\n/***/ }),\n\n/***/ 76531:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(13560);\r\nvar Class = __webpack_require__(83419);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Events = __webpack_require__(97480);\r\nvar GameEvents = __webpack_require__(8443);\r\nvar GetInnerHeight = __webpack_require__(57811);\r\nvar GetTarget = __webpack_require__(74403);\r\nvar GetScreenOrientation = __webpack_require__(45818);\r\nvar NOOP = __webpack_require__(29747);\r\nvar Rectangle = __webpack_require__(87841);\r\nvar Size = __webpack_require__(86555);\r\nvar SnapFloor = __webpack_require__(56583);\r\nvar Vector2 = __webpack_require__(26099);\r\nvar Camera = __webpack_require__(38058);\r\n\r\n/**\r\n * @classdesc\r\n * The Scale Manager handles the scaling, resizing and alignment of the game canvas.\r\n *\r\n * The way scaling is handled is by setting the game canvas to a fixed size, which is defined in the\r\n * game configuration. You also define the parent container in the game config. If no parent is given,\r\n * it will default to using the document body. The Scale Manager will then look at the available space\r\n * within the _parent_ and scale the canvas accordingly. Scaling is handled by setting the canvas CSS\r\n * width and height properties, leaving the width and height of the canvas element itself untouched.\r\n * Scaling is therefore achieved by keeping the core canvas the same size and 'stretching'\r\n * it via its CSS properties. This gives the same result and speed as using the `transform-scale` CSS\r\n * property, without the need for browser prefix handling.\r\n *\r\n * The calculations for the scale are heavily influenced by the bounding parent size, which is the computed\r\n * dimensions of the canvas's parent. The CSS rules of the parent element play an important role in the\r\n * operation of the Scale Manager. For example, if the parent has no defined width or height, then actions\r\n * like auto-centering will fail to achieve the required result. The Scale Manager works in tandem with the\r\n * CSS you set-up on the page hosting your game, rather than taking control of it.\r\n *\r\n * #### Parent and Display canvas containment guidelines:\r\n *\r\n * - Style the Parent element (of the game canvas) to control the Parent size and thus the games size and layout.\r\n *\r\n * - The Parent element's CSS styles should _effectively_ apply maximum (and minimum) bounding behavior.\r\n *\r\n * - The Parent element should _not_ apply a padding as this is not accounted for.\r\n * If a padding is required apply it to the Parent's parent or apply a margin to the Parent.\r\n * If you need to add a border, margin or any other CSS around your game container, then use a parent element and\r\n * apply the CSS to this instead, otherwise you'll be constantly resizing the shape of the game container.\r\n *\r\n * - The Display canvas layout CSS styles (i.e. margins, size) should not be altered / specified as\r\n * they may be updated by the Scale Manager.\r\n *\r\n * #### Scale Modes\r\n *\r\n * The way the scaling is handled is determined by the `scaleMode` property. The default is `NONE`,\r\n * which prevents Phaser from scaling or touching the canvas, or its parent, at all. In this mode, you are\r\n * responsible for all scaling. The other scaling modes afford you automatic scaling.\r\n *\r\n * If you wish to scale your game so that it always fits into the available space within the parent, you\r\n * should use the scale mode `FIT`. Look at the documentation for other scale modes to see what options are\r\n * available. Here is a basic config showing how to set this scale mode:\r\n *\r\n * ```javascript\r\n * scale: {\r\n * parent: 'yourgamediv',\r\n * mode: Phaser.Scale.FIT,\r\n * width: 800,\r\n * height: 600\r\n * }\r\n * ```\r\n *\r\n * Place the `scale` config object within your game config.\r\n *\r\n * If you wish for the canvas to be resized directly, so that the canvas itself fills the available space\r\n * (i.e. it isn't scaled, it's resized) then use the `RESIZE` scale mode. This will give you a 1:1 mapping\r\n * of canvas pixels to game size. In this mode CSS isn't used to scale the canvas, it's literally adjusted\r\n * to fill all available space within the parent. You should be extremely careful about the size of the\r\n * canvas you're creating when doing this, as the larger the area, the more work the GPU has to do and it's\r\n * very easy to hit fill-rate limits quickly.\r\n *\r\n * For complex, custom-scaling requirements, you should probably consider using the `RESIZE` scale mode,\r\n * with your own limitations in place re: canvas dimensions and managing the scaling with the game scenes\r\n * yourself. For the vast majority of games, however, the `FIT` mode is likely to be the most used.\r\n *\r\n * Please appreciate that the Scale Manager cannot perform miracles. All it does is scale your game canvas\r\n * as best it can, based on what it can infer from its surrounding area. There are all kinds of environments\r\n * where it's up to you to guide and help the canvas position itself, especially when built into rendering\r\n * frameworks like React and Vue. If your page requires meta tags to prevent user scaling gestures, or such\r\n * like, then it's up to you to ensure they are present in the html.\r\n *\r\n * #### Centering\r\n *\r\n * You can also have the game canvas automatically centered. Again, this relies heavily on the parent being\r\n * properly configured and styled, as the centering offsets are based entirely on the available space\r\n * within the parent element. Centering is disabled by default, or can be applied horizontally, vertically,\r\n * or both. Here's an example:\r\n *\r\n * ```javascript\r\n * scale: {\r\n * parent: 'yourgamediv',\r\n * autoCenter: Phaser.Scale.CENTER_BOTH,\r\n * width: 800,\r\n * height: 600\r\n * }\r\n * ```\r\n *\r\n * #### Fullscreen API\r\n *\r\n * If the browser supports it, you can send your game into fullscreen mode. In this mode, the game will fill\r\n * the entire display, removing all browser UI and anything else present on the screen. It will remain in this\r\n * mode until your game either disables it, or until the user tabs out or presses ESCape if on desktop. It's a\r\n * great way to achieve a desktop-game like experience from the browser, but it does require a modern browser\r\n * to handle it. Some mobile browsers also support this.\r\n *\r\n * @class ScaleManager\r\n * @memberof Phaser.Scale\r\n * @extends Phaser.Events.EventEmitter\r\n * @constructor\r\n * @since 3.16.0\r\n *\r\n * @param {Phaser.Game} game - A reference to the Phaser.Game instance.\r\n */\r\nvar ScaleManager = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function ScaleManager (game)\r\n {\r\n EventEmitter.call(this);\r\n\r\n /**\r\n * A reference to the Phaser.Game instance.\r\n *\r\n * @name Phaser.Scale.ScaleManager#game\r\n * @type {Phaser.Game}\r\n * @readonly\r\n * @since 3.15.0\r\n */\r\n this.game = game;\r\n\r\n /**\r\n * A reference to the HTML Canvas Element that Phaser uses to render the game.\r\n *\r\n * @name Phaser.Scale.ScaleManager#canvas\r\n * @type {HTMLCanvasElement}\r\n * @since 3.16.0\r\n */\r\n this.canvas;\r\n\r\n /**\r\n * The DOM bounds of the canvas element.\r\n *\r\n * @name Phaser.Scale.ScaleManager#canvasBounds\r\n * @type {Phaser.Geom.Rectangle}\r\n * @since 3.16.0\r\n */\r\n this.canvasBounds = new Rectangle();\r\n\r\n /**\r\n * The parent object of the Canvas. Often a div, or the browser window, or nothing in non-browser environments.\r\n *\r\n * This is set in the Game Config as the `parent` property. If undefined (or just not present), it will default\r\n * to use the document body. If specifically set to `null` Phaser will ignore all parent operations.\r\n *\r\n * @name Phaser.Scale.ScaleManager#parent\r\n * @type {?any}\r\n * @since 3.16.0\r\n */\r\n this.parent = null;\r\n\r\n /**\r\n * Is the parent element the browser window?\r\n *\r\n * @name Phaser.Scale.ScaleManager#parentIsWindow\r\n * @type {boolean}\r\n * @since 3.16.0\r\n */\r\n this.parentIsWindow = false;\r\n\r\n /**\r\n * The Parent Size component.\r\n *\r\n * @name Phaser.Scale.ScaleManager#parentSize\r\n * @type {Phaser.Structs.Size}\r\n * @since 3.16.0\r\n */\r\n this.parentSize = new Size();\r\n\r\n /**\r\n * The Game Size component.\r\n *\r\n * The un-modified game size, as requested in the game config (the raw width / height),\r\n * as used for world bounds, cameras, etc\r\n *\r\n * @name Phaser.Scale.ScaleManager#gameSize\r\n * @type {Phaser.Structs.Size}\r\n * @since 3.16.0\r\n */\r\n this.gameSize = new Size();\r\n\r\n /**\r\n * The Base Size component.\r\n *\r\n * The modified game size, which is the auto-rounded gameSize, used to set the canvas width and height\r\n * (but not the CSS style)\r\n *\r\n * @name Phaser.Scale.ScaleManager#baseSize\r\n * @type {Phaser.Structs.Size}\r\n * @since 3.16.0\r\n */\r\n this.baseSize = new Size();\r\n\r\n /**\r\n * The Display Size component.\r\n *\r\n * The size used for the canvas style, factoring in the scale mode, parent and other values.\r\n *\r\n * @name Phaser.Scale.ScaleManager#displaySize\r\n * @type {Phaser.Structs.Size}\r\n * @since 3.16.0\r\n */\r\n this.displaySize = new Size();\r\n\r\n /**\r\n * The game scale mode.\r\n *\r\n * @name Phaser.Scale.ScaleManager#scaleMode\r\n * @type {Phaser.Scale.ScaleModeType}\r\n * @since 3.16.0\r\n */\r\n this.scaleMode = CONST.SCALE_MODE.NONE;\r\n\r\n /**\r\n * The game zoom factor.\r\n *\r\n * This value allows you to multiply your games base size by the given zoom factor.\r\n * This is then used when calculating the display size, even in `NONE` situations.\r\n * If you don't want Phaser to touch the canvas style at all, this value should be 1.\r\n *\r\n * Can also be set to `MAX_ZOOM` in which case the zoom value will be derived based\r\n * on the game size and available space within the parent.\r\n *\r\n * @name Phaser.Scale.ScaleManager#zoom\r\n * @type {number}\r\n * @since 3.16.0\r\n */\r\n this.zoom = 1;\r\n\r\n /**\r\n * Internal flag set when the game zoom factor is modified.\r\n *\r\n * @name Phaser.Scale.ScaleManager#_resetZoom\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.19.0\r\n */\r\n this._resetZoom = false;\r\n\r\n /**\r\n * The scale factor between the baseSize and the canvasBounds.\r\n *\r\n * @name Phaser.Scale.ScaleManager#displayScale\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.16.0\r\n */\r\n this.displayScale = new Vector2(1, 1);\r\n\r\n /**\r\n * If set, the canvas sizes will be automatically passed through Math.floor.\r\n * This results in rounded pixel display values, which is important for performance on legacy\r\n * and low powered devices, but at the cost of not achieving a 'perfect' fit in some browser windows.\r\n *\r\n * @name Phaser.Scale.ScaleManager#autoRound\r\n * @type {boolean}\r\n * @since 3.16.0\r\n */\r\n this.autoRound = false;\r\n\r\n /**\r\n * Automatically center the canvas within the parent? The different centering modes are:\r\n *\r\n * 1. No centering.\r\n * 2. Center both horizontally and vertically.\r\n * 3. Center horizontally.\r\n * 4. Center vertically.\r\n *\r\n * Please be aware that in order to center the game canvas, you must have specified a parent\r\n * that has a size set, or the canvas parent is the document.body.\r\n *\r\n * @name Phaser.Scale.ScaleManager#autoCenter\r\n * @type {Phaser.Scale.CenterType}\r\n * @since 3.16.0\r\n */\r\n this.autoCenter = CONST.CENTER.NO_CENTER;\r\n\r\n /**\r\n * The current device orientation.\r\n *\r\n * Orientation events are dispatched via the Device Orientation API, typically only on mobile browsers.\r\n *\r\n * @name Phaser.Scale.ScaleManager#orientation\r\n * @type {Phaser.Scale.OrientationType}\r\n * @since 3.16.0\r\n */\r\n this.orientation = CONST.ORIENTATION.LANDSCAPE;\r\n\r\n /**\r\n * A reference to the Device.Fullscreen object.\r\n *\r\n * @name Phaser.Scale.ScaleManager#fullscreen\r\n * @type {Phaser.Device.Fullscreen}\r\n * @since 3.16.0\r\n */\r\n this.fullscreen;\r\n\r\n /**\r\n * The DOM Element which is sent into fullscreen mode.\r\n *\r\n * @name Phaser.Scale.ScaleManager#fullscreenTarget\r\n * @type {?any}\r\n * @since 3.16.0\r\n */\r\n this.fullscreenTarget = null;\r\n\r\n /**\r\n * Did Phaser create the fullscreen target div, or was it provided in the game config?\r\n *\r\n * @name Phaser.Scale.ScaleManager#_createdFullscreenTarget\r\n * @type {boolean}\r\n * @private\r\n * @since 3.16.0\r\n */\r\n this._createdFullscreenTarget = false;\r\n\r\n /**\r\n * The dirty state of the Scale Manager.\r\n * Set if there is a change between the parent size and the current size.\r\n *\r\n * @name Phaser.Scale.ScaleManager#dirty\r\n * @type {boolean}\r\n * @since 3.16.0\r\n */\r\n this.dirty = false;\r\n\r\n /**\r\n * How many milliseconds should elapse before checking if the browser size has changed?\r\n *\r\n * Most modern browsers dispatch a 'resize' event, which the Scale Manager will listen for.\r\n * However, older browsers fail to do this, or do it consistently, so we fall back to a\r\n * more traditional 'size check' based on a time interval. You can control how often it is\r\n * checked here.\r\n *\r\n * @name Phaser.Scale.ScaleManager#resizeInterval\r\n * @type {number}\r\n * @since 3.16.0\r\n */\r\n this.resizeInterval = 500;\r\n\r\n /**\r\n * Internal size interval tracker.\r\n *\r\n * @name Phaser.Scale.ScaleManager#_lastCheck\r\n * @type {number}\r\n * @private\r\n * @since 3.16.0\r\n */\r\n this._lastCheck = 0;\r\n\r\n /**\r\n * Internal flag to check orientation state.\r\n *\r\n * @name Phaser.Scale.ScaleManager#_checkOrientation\r\n * @type {boolean}\r\n * @private\r\n * @since 3.16.0\r\n */\r\n this._checkOrientation = false;\r\n\r\n /**\r\n * Internal object containing our defined event listeners.\r\n *\r\n * @name Phaser.Scale.ScaleManager#domlisteners\r\n * @type {object}\r\n * @private\r\n * @since 3.16.0\r\n */\r\n this.domlisteners = {\r\n\r\n orientationChange: NOOP,\r\n windowResize: NOOP,\r\n fullScreenChange: NOOP,\r\n fullScreenError: NOOP\r\n\r\n };\r\n },\r\n\r\n /**\r\n * Called _before_ the canvas object is created and added to the DOM.\r\n *\r\n * @method Phaser.Scale.ScaleManager#preBoot\r\n * @protected\r\n * @listens Phaser.Core.Events#BOOT\r\n * @since 3.16.0\r\n */\r\n preBoot: function ()\r\n {\r\n // Parse the config to get the scaling values we need\r\n this.parseConfig(this.game.config);\r\n\r\n this.game.events.once(GameEvents.BOOT, this.boot, this);\r\n },\r\n\r\n /**\r\n * The Boot handler is called by Phaser.Game when it first starts up.\r\n * The renderer is available by now and the canvas has been added to the DOM.\r\n *\r\n * @method Phaser.Scale.ScaleManager#boot\r\n * @protected\r\n * @fires Phaser.Scale.Events#RESIZE\r\n * @since 3.16.0\r\n */\r\n boot: function ()\r\n {\r\n var game = this.game;\r\n\r\n this.canvas = game.canvas;\r\n\r\n this.fullscreen = game.device.fullscreen;\r\n\r\n var scaleMode = this.scaleMode;\r\n\r\n if (scaleMode !== CONST.SCALE_MODE.RESIZE && scaleMode !== CONST.SCALE_MODE.EXPAND)\r\n {\r\n this.displaySize.setAspectMode(scaleMode);\r\n }\r\n\r\n if (scaleMode === CONST.SCALE_MODE.NONE)\r\n {\r\n this.resize(this.width, this.height);\r\n }\r\n else\r\n {\r\n this.getParentBounds();\r\n\r\n // Only set the parent bounds if the parent has an actual size\r\n if (this.parentSize.width > 0 && this.parentSize.height > 0)\r\n {\r\n this.displaySize.setParent(this.parentSize);\r\n }\r\n\r\n this.refresh();\r\n }\r\n\r\n game.events.on(GameEvents.PRE_STEP, this.step, this);\r\n game.events.once(GameEvents.READY, this.refresh, this);\r\n game.events.once(GameEvents.DESTROY, this.destroy, this);\r\n\r\n this.startListeners();\r\n },\r\n\r\n /**\r\n * Parses the game configuration to set-up the scale defaults.\r\n *\r\n * @method Phaser.Scale.ScaleManager#parseConfig\r\n * @protected\r\n * @since 3.16.0\r\n *\r\n * @param {Phaser.Types.Core.GameConfig} config - The Game configuration object.\r\n */\r\n parseConfig: function (config)\r\n {\r\n // Get the parent element, if any\r\n this.getParent(config);\r\n\r\n // Get the size of the parent element\r\n // This can often set a height of zero (especially for un-styled divs)\r\n this.getParentBounds();\r\n\r\n var width = config.width;\r\n var height = config.height;\r\n var scaleMode = config.scaleMode;\r\n var zoom = config.zoom;\r\n var autoRound = config.autoRound;\r\n\r\n // If width = '100%', or similar value\r\n if (typeof width === 'string')\r\n {\r\n // Does width have a % character at the end? If not, we use it as a numeric value.\r\n if (width.substr(-1) !== '%')\r\n {\r\n width = parseInt(width, 10);\r\n }\r\n else\r\n {\r\n // If we have a parent with a width, we'll work it out from that\r\n var parentWidth = this.parentSize.width;\r\n\r\n if (parentWidth === 0)\r\n {\r\n parentWidth = window.innerWidth;\r\n }\r\n\r\n var parentScaleX = parseInt(width, 10) / 100;\r\n\r\n width = Math.floor(parentWidth * parentScaleX);\r\n }\r\n\r\n }\r\n\r\n // If height = '100%', or similar value\r\n if (typeof height === 'string')\r\n {\r\n // Does height have a % character at the end? If not, we use it as a numeric value.\r\n if (height.substr(-1) !== '%')\r\n {\r\n height = parseInt(height, 10);\r\n }\r\n else\r\n {\r\n // If we have a parent with a height, we'll work it out from that\r\n var parentHeight = this.parentSize.height;\r\n\r\n if (parentHeight === 0)\r\n {\r\n parentHeight = window.innerHeight;\r\n }\r\n\r\n var parentScaleY = parseInt(height, 10) / 100;\r\n\r\n height = Math.floor(parentHeight * parentScaleY);\r\n }\r\n }\r\n\r\n this.scaleMode = scaleMode;\r\n\r\n this.autoRound = autoRound;\r\n\r\n this.autoCenter = config.autoCenter;\r\n\r\n this.resizeInterval = config.resizeInterval;\r\n\r\n if (autoRound)\r\n {\r\n width = Math.floor(width);\r\n height = Math.floor(height);\r\n }\r\n\r\n // The un-modified game size, as requested in the game config (the raw width / height) as used for world bounds, etc\r\n this.gameSize.setSize(width, height);\r\n\r\n if (zoom === CONST.ZOOM.MAX_ZOOM)\r\n {\r\n zoom = this.getMaxZoom();\r\n }\r\n\r\n this.zoom = zoom;\r\n\r\n if (zoom !== 1)\r\n {\r\n this._resetZoom = true;\r\n }\r\n\r\n // The modified game size\r\n this.baseSize.setSize(width, height);\r\n\r\n if (autoRound)\r\n {\r\n this.baseSize.width = Math.floor(this.baseSize.width);\r\n this.baseSize.height = Math.floor(this.baseSize.height);\r\n }\r\n\r\n if (config.minWidth > 0)\r\n {\r\n this.displaySize.setMin(config.minWidth * zoom, config.minHeight * zoom);\r\n }\r\n\r\n if (config.maxWidth > 0)\r\n {\r\n this.displaySize.setMax(config.maxWidth * zoom, config.maxHeight * zoom);\r\n }\r\n\r\n // The size used for the canvas style, factoring in the scale mode and parent and zoom value\r\n // We just use the w/h here as this is what sets the aspect ratio (which doesn't then change)\r\n this.displaySize.setSize(width, height);\r\n\r\n if (config.snapWidth > 0 || config.snapHeight > 0)\r\n {\r\n this.displaySize.setSnap(config.snapWidth, config.snapHeight);\r\n }\r\n\r\n this.orientation = GetScreenOrientation(width, height);\r\n },\r\n\r\n /**\r\n * Determines the parent element of the game canvas, if any, based on the game configuration.\r\n *\r\n * @method Phaser.Scale.ScaleManager#getParent\r\n * @since 3.16.0\r\n *\r\n * @param {Phaser.Types.Core.GameConfig} config - The Game configuration object.\r\n */\r\n getParent: function (config)\r\n {\r\n var parent = config.parent;\r\n\r\n if (parent === null)\r\n {\r\n // User is responsible for managing the parent\r\n return;\r\n }\r\n\r\n this.parent = GetTarget(parent);\r\n this.parentIsWindow = (this.parent === document.body);\r\n\r\n if (config.expandParent && config.scaleMode !== CONST.SCALE_MODE.NONE)\r\n {\r\n var DOMRect = this.parent.getBoundingClientRect();\r\n\r\n if (this.parentIsWindow || DOMRect.height === 0)\r\n {\r\n document.documentElement.style.height = '100%';\r\n document.body.style.height = '100%';\r\n\r\n DOMRect = this.parent.getBoundingClientRect();\r\n\r\n // The parent STILL has no height, clearly no CSS\r\n // has been set on it even though we fixed the body :(\r\n if (!this.parentIsWindow && DOMRect.height === 0)\r\n {\r\n this.parent.style.overflow = 'hidden';\r\n this.parent.style.width = '100%';\r\n this.parent.style.height = '100%';\r\n }\r\n }\r\n }\r\n\r\n // And now get the fullscreenTarget\r\n if (config.fullscreenTarget && !this.fullscreenTarget)\r\n {\r\n this.fullscreenTarget = GetTarget(config.fullscreenTarget);\r\n }\r\n },\r\n\r\n /**\r\n * Calculates the size of the parent bounds and updates the `parentSize`\r\n * properties, only if the canvas has a dom parent.\r\n *\r\n * @method Phaser.Scale.ScaleManager#getParentBounds\r\n * @since 3.16.0\r\n *\r\n * @return {boolean} `true` if the parent bounds have changed size or position, otherwise `false`.\r\n */\r\n getParentBounds: function ()\r\n {\r\n if (!this.parent)\r\n {\r\n return false;\r\n }\r\n\r\n var parentSize = this.parentSize;\r\n\r\n // Ref. http://msdn.microsoft.com/en-us/library/hh781509(v=vs.85).aspx for getBoundingClientRect\r\n\r\n // The returned value is a DOMRect object which is the smallest rectangle which contains the entire element,\r\n // including its padding and border-width. The left, top, right, bottom, x, y, width, and height properties\r\n // describe the position and size of the overall rectangle in pixels. Properties other than width and height\r\n // are relative to the top-left of the viewport.\r\n\r\n var DOMRect = this.parent.getBoundingClientRect();\r\n\r\n if (this.parentIsWindow && this.game.device.os.iOS)\r\n {\r\n DOMRect.height = GetInnerHeight(true);\r\n }\r\n\r\n var newWidth = DOMRect.width;\r\n var newHeight = DOMRect.height;\r\n\r\n if (parentSize.width !== newWidth || parentSize.height !== newHeight)\r\n {\r\n parentSize.setSize(newWidth, newHeight);\r\n\r\n return true;\r\n }\r\n else if (this.canvas)\r\n {\r\n var canvasBounds = this.canvasBounds;\r\n var canvasRect = this.canvas.getBoundingClientRect();\r\n\r\n if (canvasRect.x !== canvasBounds.x || canvasRect.y !== canvasBounds.y)\r\n {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Attempts to lock the orientation of the web browser using the Screen Orientation API.\r\n *\r\n * This API is only available on modern mobile browsers.\r\n * See https://developer.mozilla.org/en-US/docs/Web/API/Screen/lockOrientation for details.\r\n *\r\n * @method Phaser.Scale.ScaleManager#lockOrientation\r\n * @since 3.16.0\r\n *\r\n * @param {string} orientation - The orientation you'd like to lock the browser in. Should be an API string such as 'landscape', 'landscape-primary', 'portrait', etc.\r\n *\r\n * @return {boolean} `true` if the orientation was successfully locked, otherwise `false`.\r\n */\r\n lockOrientation: function (orientation)\r\n {\r\n var lock = screen.lockOrientation || screen.mozLockOrientation || screen.msLockOrientation;\r\n\r\n if (lock)\r\n {\r\n return lock.call(screen, orientation);\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * This method will set the size of the Parent Size component, which is used in scaling\r\n * and centering calculations. You only need to call this method if you have explicitly\r\n * disabled the use of a parent in your game config, but still wish to take advantage of\r\n * other Scale Manager features.\r\n *\r\n * @method Phaser.Scale.ScaleManager#setParentSize\r\n * @fires Phaser.Scale.Events#RESIZE\r\n * @since 3.16.0\r\n *\r\n * @param {number} width - The new width of the parent.\r\n * @param {number} height - The new height of the parent.\r\n *\r\n * @return {this} The Scale Manager instance.\r\n */\r\n setParentSize: function (width, height)\r\n {\r\n this.parentSize.setSize(width, height);\r\n\r\n return this.refresh();\r\n },\r\n\r\n /**\r\n * This method will set a new size for your game.\r\n *\r\n * It should only be used if you're looking to change the base size of your game and are using\r\n * one of the Scale Manager scaling modes, i.e. `FIT`. If you're using `NONE` and wish to\r\n * change the game and canvas size directly, then please use the `resize` method instead.\r\n *\r\n * @method Phaser.Scale.ScaleManager#setGameSize\r\n * @fires Phaser.Scale.Events#RESIZE\r\n * @since 3.16.0\r\n *\r\n * @param {number} width - The new width of the game.\r\n * @param {number} height - The new height of the game.\r\n *\r\n * @return {this} The Scale Manager instance.\r\n */\r\n setGameSize: function (width, height)\r\n {\r\n var autoRound = this.autoRound;\r\n\r\n if (autoRound)\r\n {\r\n width = Math.floor(width);\r\n height = Math.floor(height);\r\n }\r\n\r\n var previousWidth = this.width;\r\n var previousHeight = this.height;\r\n\r\n // The un-modified game size, as requested in the game config (the raw width / height) as used for world bounds, etc\r\n this.gameSize.resize(width, height);\r\n\r\n // The modified game size\r\n this.baseSize.resize(width, height);\r\n\r\n if (autoRound)\r\n {\r\n this.baseSize.width = Math.floor(this.baseSize.width);\r\n this.baseSize.height = Math.floor(this.baseSize.height);\r\n }\r\n\r\n // The size used for the canvas style, factoring in the scale mode and parent and zoom value\r\n // Update the aspect ratio\r\n this.displaySize.setAspectRatio(width / height);\r\n\r\n this.canvas.width = this.baseSize.width;\r\n this.canvas.height = this.baseSize.height;\r\n\r\n return this.refresh(previousWidth, previousHeight);\r\n },\r\n\r\n /**\r\n * Call this to modify the size of the Phaser canvas element directly.\r\n * You should only use this if you are using the `NONE` scale mode,\r\n * it will update all internal components completely.\r\n *\r\n * If all you want to do is change the size of the parent, see the `setParentSize` method.\r\n *\r\n * If all you want is to change the base size of the game, but still have the Scale Manager\r\n * manage all the scaling (i.e. you're **not** using `NONE`), then see the `setGameSize` method.\r\n *\r\n * This method will set the `gameSize`, `baseSize` and `displaySize` components to the given\r\n * dimensions. It will then resize the canvas width and height to the values given, by\r\n * directly setting the properties. Finally, if you have set the Scale Manager zoom value\r\n * to anything other than 1 (the default), it will set the canvas CSS width and height to\r\n * be the given size multiplied by the zoom factor (the canvas pixel size remains untouched).\r\n *\r\n * If you have enabled `autoCenter`, it is then passed to the `updateCenter` method and\r\n * the margins are set, allowing the canvas to be centered based on its parent element\r\n * alone. Finally, the `displayScale` is adjusted and the RESIZE event dispatched.\r\n *\r\n * @method Phaser.Scale.ScaleManager#resize\r\n * @fires Phaser.Scale.Events#RESIZE\r\n * @since 3.16.0\r\n *\r\n * @param {number} width - The new width of the game.\r\n * @param {number} height - The new height of the game.\r\n *\r\n * @return {this} The Scale Manager instance.\r\n */\r\n resize: function (width, height)\r\n {\r\n var zoom = this.zoom;\r\n var autoRound = this.autoRound;\r\n\r\n if (autoRound)\r\n {\r\n width = Math.floor(width);\r\n height = Math.floor(height);\r\n }\r\n\r\n var previousWidth = this.width;\r\n var previousHeight = this.height;\r\n\r\n // The un-modified game size, as requested in the game config (the raw width / height) as used for world bounds, etc\r\n this.gameSize.resize(width, height);\r\n\r\n // The modified game size\r\n this.baseSize.resize(width, height);\r\n\r\n if (autoRound)\r\n {\r\n this.baseSize.width = Math.floor(this.baseSize.width);\r\n this.baseSize.height = Math.floor(this.baseSize.height);\r\n }\r\n\r\n // The size used for the canvas style, factoring in the scale mode and parent and zoom value\r\n // We just use the w/h here as this is what sets the aspect ratio (which doesn't then change)\r\n this.displaySize.setSize((width * zoom), (height * zoom));\r\n\r\n this.canvas.width = this.baseSize.width;\r\n this.canvas.height = this.baseSize.height;\r\n\r\n var style = this.canvas.style;\r\n\r\n var styleWidth = width * zoom;\r\n var styleHeight = height * zoom;\r\n\r\n if (autoRound)\r\n {\r\n styleWidth = Math.floor(styleWidth);\r\n styleHeight = Math.floor(styleHeight);\r\n }\r\n\r\n if (styleWidth !== width || styleHeight !== height)\r\n {\r\n style.width = styleWidth + 'px';\r\n style.height = styleHeight + 'px';\r\n }\r\n\r\n return this.refresh(previousWidth, previousHeight);\r\n },\r\n\r\n /**\r\n * Sets the zoom value of the Scale Manager.\r\n *\r\n * @method Phaser.Scale.ScaleManager#setZoom\r\n * @fires Phaser.Scale.Events#RESIZE\r\n * @since 3.16.0\r\n *\r\n * @param {number} value - The new zoom value of the game.\r\n *\r\n * @return {this} The Scale Manager instance.\r\n */\r\n setZoom: function (value)\r\n {\r\n this.zoom = value;\r\n this._resetZoom = true;\r\n\r\n return this.refresh();\r\n },\r\n\r\n /**\r\n * Sets the zoom to be the maximum possible based on the _current_ parent size.\r\n *\r\n * @method Phaser.Scale.ScaleManager#setMaxZoom\r\n * @fires Phaser.Scale.Events#RESIZE\r\n * @since 3.16.0\r\n *\r\n * @return {this} The Scale Manager instance.\r\n */\r\n setMaxZoom: function ()\r\n {\r\n this.zoom = this.getMaxZoom();\r\n this._resetZoom = true;\r\n\r\n return this.refresh();\r\n },\r\n\r\n /**\r\n * By setting a Snap value, when the browser size is modified, its dimensions will automatically\r\n * be snapped to the nearest grid slice, using floor. For example, if you have snap value of 16,\r\n * and the width changes to 68, then it will snap down to 64 (the closest multiple of 16 when floored)\r\n *\r\n * This mode is best used with the `FIT` scale mode.\r\n *\r\n * Call this method with no arguments to reset the snap values.\r\n *\r\n * Calling this method automatically invokes `ScaleManager.refresh` which emits a `RESIZE` event.\r\n *\r\n * @method Phaser.Scale.ScaleManager#setSnap\r\n * @fires Phaser.Scale.Events#RESIZE\r\n * @since 3.80.0\r\n *\r\n * @param {number} [snapWidth=0] - The amount to snap the width to. If you don't want to snap the width, pass a value of zero.\r\n * @param {number} [snapHeight=snapWidth] - The amount to snap the height to. If not provided it will use the `snapWidth` value. If you don't want to snap the height, pass a value of zero.\r\n *\r\n * @return {this} The Scale Manager instance.\r\n */\r\n setSnap: function (snapWidth, snapHeight)\r\n {\r\n if (snapWidth === undefined) { snapWidth = 0; }\r\n if (snapHeight === undefined) { snapHeight = snapWidth; }\r\n\r\n this.displaySize.setSnap(snapWidth, snapHeight);\r\n\r\n return this.refresh();\r\n },\r\n\r\n /**\r\n * Refreshes the internal scale values, bounds sizes and orientation checks.\r\n *\r\n * Once finished, dispatches the resize event.\r\n *\r\n * This is called automatically by the Scale Manager when the browser window size changes,\r\n * as long as it is using a Scale Mode other than 'NONE'.\r\n *\r\n * @method Phaser.Scale.ScaleManager#refresh\r\n * @fires Phaser.Scale.Events#RESIZE\r\n * @since 3.16.0\r\n *\r\n * @param {number} [previousWidth] - The previous width of the game. Only set if the gameSize has changed.\r\n * @param {number} [previousHeight] - The previous height of the game. Only set if the gameSize has changed.\r\n *\r\n * @return {this} The Scale Manager instance.\r\n */\r\n refresh: function (previousWidth, previousHeight)\r\n {\r\n if (previousWidth === undefined) { previousWidth = this.width; }\r\n if (previousHeight === undefined) { previousHeight = this.height; }\r\n\r\n this.updateScale();\r\n this.updateBounds();\r\n this.updateOrientation();\r\n\r\n this.displayScale.set(this.baseSize.width / this.canvasBounds.width, this.baseSize.height / this.canvasBounds.height);\r\n\r\n var domContainer = this.game.domContainer;\r\n\r\n if (domContainer)\r\n {\r\n this.baseSize.setCSS(domContainer);\r\n\r\n var canvasStyle = this.canvas.style;\r\n var domStyle = domContainer.style;\r\n\r\n domStyle.transform = 'scale(' + this.displaySize.width / this.baseSize.width + ',' + this.displaySize.height / this.baseSize.height + ')';\r\n\r\n domStyle.marginLeft = canvasStyle.marginLeft;\r\n domStyle.marginTop = canvasStyle.marginTop;\r\n }\r\n\r\n this.emit(Events.RESIZE, this.gameSize, this.baseSize, this.displaySize, previousWidth, previousHeight);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal method that checks the current screen orientation, only if the internal check flag is set.\r\n *\r\n * If the orientation has changed it updates the orientation property and then dispatches the orientation change event.\r\n *\r\n * @method Phaser.Scale.ScaleManager#updateOrientation\r\n * @fires Phaser.Scale.Events#ORIENTATION_CHANGE\r\n * @since 3.16.0\r\n */\r\n updateOrientation: function ()\r\n {\r\n if (this._checkOrientation)\r\n {\r\n this._checkOrientation = false;\r\n\r\n var newOrientation = GetScreenOrientation(this.width, this.height);\r\n\r\n if (newOrientation !== this.orientation)\r\n {\r\n this.orientation = newOrientation;\r\n\r\n this.emit(Events.ORIENTATION_CHANGE, newOrientation);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Internal method that manages updating the size components based on the scale mode.\r\n *\r\n * @method Phaser.Scale.ScaleManager#updateScale\r\n * @since 3.16.0\r\n */\r\n updateScale: function ()\r\n {\r\n var style = this.canvas.style;\r\n\r\n var width = this.gameSize.width;\r\n var height = this.gameSize.height;\r\n\r\n var styleWidth;\r\n var styleHeight;\r\n\r\n var zoom = this.zoom;\r\n var autoRound = this.autoRound;\r\n\r\n if (this.scaleMode === CONST.SCALE_MODE.NONE)\r\n {\r\n // No scale\r\n this.displaySize.setSize((width * zoom), (height * zoom));\r\n\r\n styleWidth = this.displaySize.width;\r\n styleHeight = this.displaySize.height;\r\n\r\n if (autoRound)\r\n {\r\n styleWidth = Math.floor(styleWidth);\r\n styleHeight = Math.floor(styleHeight);\r\n }\r\n\r\n if (this._resetZoom)\r\n {\r\n style.width = styleWidth + 'px';\r\n style.height = styleHeight + 'px';\r\n\r\n this._resetZoom = false;\r\n }\r\n }\r\n else if (this.scaleMode === CONST.SCALE_MODE.RESIZE)\r\n {\r\n // Resize to match parent\r\n\r\n // This will constrain using min/max\r\n this.displaySize.setSize(this.parentSize.width, this.parentSize.height);\r\n\r\n this.gameSize.setSize(this.displaySize.width, this.displaySize.height);\r\n\r\n this.baseSize.setSize(this.displaySize.width, this.displaySize.height);\r\n\r\n styleWidth = this.displaySize.width;\r\n styleHeight = this.displaySize.height;\r\n\r\n if (autoRound)\r\n {\r\n styleWidth = Math.floor(styleWidth);\r\n styleHeight = Math.floor(styleHeight);\r\n }\r\n\r\n this.canvas.width = styleWidth;\r\n this.canvas.height = styleHeight;\r\n }\r\n else if (this.scaleMode === CONST.SCALE_MODE.EXPAND)\r\n {\r\n var baseWidth = this.game.config.width;\r\n var baseHeight = this.game.config.height;\r\n\r\n // Resize to match parent, like RESIZE mode\r\n\r\n // This will constrain using min/max\r\n this.displaySize.setSize(this.parentSize.width, this.parentSize.height);\r\n\r\n styleWidth = this.displaySize.width;\r\n styleHeight = this.displaySize.height;\r\n\r\n if (autoRound)\r\n {\r\n styleWidth = Math.floor(styleWidth);\r\n styleHeight = Math.floor(styleHeight);\r\n }\r\n\r\n style.width = styleWidth + 'px';\r\n style.height = styleHeight + 'px';\r\n\r\n // Expand canvas size to fit game size's width or height\r\n\r\n var scaleX = this.parentSize.width / baseWidth;\r\n var scaleY = this.parentSize.height / baseHeight;\r\n\r\n if (scaleX < scaleY && scaleX !== 0)\r\n {\r\n this.baseSize.setSize(baseWidth, this.parentSize.height / scaleX);\r\n }\r\n else if (scaleY !== 0)\r\n {\r\n this.baseSize.setSize(this.displaySize.width / scaleY, baseHeight);\r\n }\r\n\r\n this.gameSize.setSize(this.baseSize.width, this.baseSize.height);\r\n\r\n styleWidth = this.baseSize.width;\r\n styleHeight = this.baseSize.height;\r\n\r\n if (autoRound)\r\n {\r\n styleWidth = Math.floor(styleWidth);\r\n styleHeight = Math.floor(styleHeight);\r\n }\r\n\r\n this.canvas.width = styleWidth;\r\n this.canvas.height = styleHeight;\r\n }\r\n else\r\n {\r\n // All other scale modes\r\n this.displaySize.setSize(this.parentSize.width, this.parentSize.height);\r\n\r\n styleWidth = this.displaySize.width;\r\n styleHeight = this.displaySize.height;\r\n\r\n if (autoRound)\r\n {\r\n styleWidth = Math.floor(styleWidth);\r\n styleHeight = Math.floor(styleHeight);\r\n }\r\n\r\n style.width = styleWidth + 'px';\r\n style.height = styleHeight + 'px';\r\n }\r\n\r\n // Update the parentSize in case the canvas / style change modified it\r\n this.getParentBounds();\r\n\r\n // Finally, update the centering\r\n this.updateCenter();\r\n },\r\n\r\n /**\r\n * Calculates and returns the largest possible zoom factor, based on the current\r\n * parent and game sizes. If the parent has no dimensions (i.e. an unstyled div),\r\n * or is smaller than the un-zoomed game, then this will return a value of 1 (no zoom)\r\n *\r\n * @method Phaser.Scale.ScaleManager#getMaxZoom\r\n * @since 3.16.0\r\n *\r\n * @return {number} The maximum possible zoom factor. At a minimum this value is always at least 1.\r\n */\r\n getMaxZoom: function ()\r\n {\r\n var zoomH = SnapFloor(this.parentSize.width, this.gameSize.width, 0, true);\r\n var zoomV = SnapFloor(this.parentSize.height, this.gameSize.height, 0, true);\r\n\r\n return Math.max(Math.min(zoomH, zoomV), 1);\r\n },\r\n\r\n /**\r\n * Calculates and updates the canvas CSS style in order to center it within the\r\n * bounds of its parent. If you have explicitly set parent to be `null` in your\r\n * game config then this method will likely give incorrect results unless you have called the\r\n * `setParentSize` method first.\r\n *\r\n * It works by modifying the canvas CSS `marginLeft` and `marginTop` properties.\r\n *\r\n * If they have already been set by your own style sheet, or code, this will overwrite them.\r\n *\r\n * To prevent the Scale Manager from centering the canvas, either do not set the\r\n * `autoCenter` property in your game config, or make sure it is set to `NO_CENTER`.\r\n *\r\n * @method Phaser.Scale.ScaleManager#updateCenter\r\n * @since 3.16.0\r\n */\r\n updateCenter: function ()\r\n {\r\n var autoCenter = this.autoCenter;\r\n\r\n if (autoCenter === CONST.CENTER.NO_CENTER)\r\n {\r\n return;\r\n }\r\n\r\n var canvas = this.canvas;\r\n\r\n var style = canvas.style;\r\n\r\n var bounds = canvas.getBoundingClientRect();\r\n\r\n // var width = parseInt(canvas.style.width, 10) || canvas.width;\r\n // var height = parseInt(canvas.style.height, 10) || canvas.height;\r\n\r\n var width = bounds.width;\r\n var height = bounds.height;\r\n\r\n var offsetX = Math.floor((this.parentSize.width - width) / 2);\r\n var offsetY = Math.floor((this.parentSize.height - height) / 2);\r\n\r\n if (autoCenter === CONST.CENTER.CENTER_HORIZONTALLY)\r\n {\r\n offsetY = 0;\r\n }\r\n else if (autoCenter === CONST.CENTER.CENTER_VERTICALLY)\r\n {\r\n offsetX = 0;\r\n }\r\n\r\n style.marginLeft = offsetX + 'px';\r\n style.marginTop = offsetY + 'px';\r\n },\r\n\r\n /**\r\n * Updates the `canvasBounds` rectangle to match the bounding client rectangle of the\r\n * canvas element being used to track input events.\r\n *\r\n * @method Phaser.Scale.ScaleManager#updateBounds\r\n * @since 3.16.0\r\n */\r\n updateBounds: function ()\r\n {\r\n var bounds = this.canvasBounds;\r\n var clientRect = this.canvas.getBoundingClientRect();\r\n\r\n bounds.x = clientRect.left + (window.pageXOffset || 0) - (document.documentElement.clientLeft || 0);\r\n bounds.y = clientRect.top + (window.pageYOffset || 0) - (document.documentElement.clientTop || 0);\r\n bounds.width = clientRect.width;\r\n bounds.height = clientRect.height;\r\n },\r\n\r\n /**\r\n * Transforms the pageX value into the scaled coordinate space of the Scale Manager.\r\n *\r\n * @method Phaser.Scale.ScaleManager#transformX\r\n * @since 3.16.0\r\n *\r\n * @param {number} pageX - The DOM pageX value.\r\n *\r\n * @return {number} The translated value.\r\n */\r\n transformX: function (pageX)\r\n {\r\n return (pageX - this.canvasBounds.left) * this.displayScale.x;\r\n },\r\n\r\n /**\r\n * Transforms the pageY value into the scaled coordinate space of the Scale Manager.\r\n *\r\n * @method Phaser.Scale.ScaleManager#transformY\r\n * @since 3.16.0\r\n *\r\n * @param {number} pageY - The DOM pageY value.\r\n *\r\n * @return {number} The translated value.\r\n */\r\n transformY: function (pageY)\r\n {\r\n return (pageY - this.canvasBounds.top) * this.displayScale.y;\r\n },\r\n\r\n /**\r\n * Sends a request to the browser to ask it to go in to full screen mode, using the {@link https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API Fullscreen API}.\r\n *\r\n * If the browser does not support this, a `FULLSCREEN_UNSUPPORTED` event will be emitted.\r\n *\r\n * This method _must_ be called from a `pointerup` user-input gesture (**not** `pointerdown`). You cannot launch\r\n * games fullscreen without this, as most browsers block it. Games within an iframe will also be blocked\r\n * from fullscreen unless the iframe has the `allowfullscreen` attribute.\r\n *\r\n * On touch devices, such as Android and iOS Safari, you should always use `pointerup` and NOT `pointerdown`,\r\n * otherwise the request will fail unless the document in which your game is embedded has already received\r\n * some form of touch input, which you cannot guarantee. Activating fullscreen via `pointerup` circumvents\r\n * this issue.\r\n *\r\n * Performing an action that navigates to another page, or opens another tab, will automatically cancel\r\n * fullscreen mode, as will the user pressing the ESC key. To cancel fullscreen mode directly from your game,\r\n * i.e. by clicking an icon, call the `stopFullscreen` method.\r\n *\r\n * A browser can only send one DOM element into fullscreen. You can control which element this is by\r\n * setting the `fullscreenTarget` property in your game config, or changing the property in the Scale Manager.\r\n * Note that the game canvas _must_ be a child of the target. If you do not give a target, Phaser will\r\n * automatically create a blank `
` element and move the canvas into it, before going fullscreen.\r\n * When it leaves fullscreen, the div will be removed.\r\n *\r\n * @method Phaser.Scale.ScaleManager#startFullscreen\r\n * @fires Phaser.Scale.Events#ENTER_FULLSCREEN\r\n * @fires Phaser.Scale.Events#FULLSCREEN_FAILED\r\n * @fires Phaser.Scale.Events#FULLSCREEN_UNSUPPORTED\r\n * @fires Phaser.Scale.Events#RESIZE\r\n * @since 3.16.0\r\n *\r\n * @param {object} [fullscreenOptions] - The FullscreenOptions dictionary is used to provide configuration options when entering full screen.\r\n */\r\n startFullscreen: function (fullscreenOptions)\r\n {\r\n if (fullscreenOptions === undefined) { fullscreenOptions = { navigationUI: 'hide' }; }\r\n\r\n var fullscreen = this.fullscreen;\r\n\r\n if (!fullscreen.available)\r\n {\r\n this.emit(Events.FULLSCREEN_UNSUPPORTED);\r\n\r\n return;\r\n }\r\n\r\n if (!fullscreen.active)\r\n {\r\n var fsTarget = this.getFullscreenTarget();\r\n\r\n if (fullscreen.keyboard)\r\n {\r\n fsTarget[fullscreen.request](Element.ALLOW_KEYBOARD_INPUT);\r\n }\r\n else\r\n {\r\n fsTarget[fullscreen.request](fullscreenOptions);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * The browser has successfully entered fullscreen mode.\r\n *\r\n * @method Phaser.Scale.ScaleManager#fullscreenSuccessHandler\r\n * @private\r\n * @fires Phaser.Scale.Events#ENTER_FULLSCREEN\r\n * @fires Phaser.Scale.Events#RESIZE\r\n * @since 3.17.0\r\n */\r\n fullscreenSuccessHandler: function ()\r\n {\r\n this.getParentBounds();\r\n\r\n this.refresh();\r\n\r\n this.emit(Events.ENTER_FULLSCREEN);\r\n },\r\n\r\n /**\r\n * The browser failed to enter fullscreen mode.\r\n *\r\n * @method Phaser.Scale.ScaleManager#fullscreenErrorHandler\r\n * @private\r\n * @fires Phaser.Scale.Events#FULLSCREEN_FAILED\r\n * @fires Phaser.Scale.Events#RESIZE\r\n * @since 3.17.0\r\n *\r\n * @param {any} error - The DOM error event.\r\n */\r\n fullscreenErrorHandler: function (error)\r\n {\r\n this.removeFullscreenTarget();\r\n\r\n this.emit(Events.FULLSCREEN_FAILED, error);\r\n },\r\n\r\n /**\r\n * An internal method that gets the target element that is used when entering fullscreen mode.\r\n *\r\n * @method Phaser.Scale.ScaleManager#getFullscreenTarget\r\n * @since 3.16.0\r\n *\r\n * @return {object} The fullscreen target element.\r\n */\r\n getFullscreenTarget: function ()\r\n {\r\n if (!this.fullscreenTarget)\r\n {\r\n var fsTarget = document.createElement('div');\r\n\r\n fsTarget.style.margin = '0';\r\n fsTarget.style.padding = '0';\r\n fsTarget.style.width = '100%';\r\n fsTarget.style.height = '100%';\r\n\r\n this.fullscreenTarget = fsTarget;\r\n\r\n this._createdFullscreenTarget = true;\r\n }\r\n\r\n if (this._createdFullscreenTarget)\r\n {\r\n var canvasParent = this.canvas.parentNode;\r\n\r\n canvasParent.insertBefore(this.fullscreenTarget, this.canvas);\r\n\r\n this.fullscreenTarget.appendChild(this.canvas);\r\n }\r\n\r\n return this.fullscreenTarget;\r\n },\r\n\r\n /**\r\n * Removes the fullscreen target that was added to the DOM.\r\n *\r\n * @method Phaser.Scale.ScaleManager#removeFullscreenTarget\r\n * @since 3.17.0\r\n */\r\n removeFullscreenTarget: function ()\r\n {\r\n if (this._createdFullscreenTarget)\r\n {\r\n var fsTarget = this.fullscreenTarget;\r\n\r\n if (fsTarget && fsTarget.parentNode)\r\n {\r\n var parent = fsTarget.parentNode;\r\n\r\n parent.insertBefore(this.canvas, fsTarget);\r\n\r\n parent.removeChild(fsTarget);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Calling this method will cancel fullscreen mode, if the browser has entered it.\r\n *\r\n * @method Phaser.Scale.ScaleManager#stopFullscreen\r\n * @fires Phaser.Scale.Events#FULLSCREEN_UNSUPPORTED\r\n * @since 3.16.0\r\n */\r\n stopFullscreen: function ()\r\n {\r\n var fullscreen = this.fullscreen;\r\n\r\n if (!fullscreen.available)\r\n {\r\n this.emit(Events.FULLSCREEN_UNSUPPORTED);\r\n\r\n return false;\r\n }\r\n\r\n if (fullscreen.active)\r\n {\r\n document[fullscreen.cancel]();\r\n }\r\n\r\n this.removeFullscreenTarget();\r\n },\r\n\r\n /**\r\n * The browser has successfully left fullscreen mode.\r\n *\r\n * @method Phaser.Scale.ScaleManager#leaveFullScreenSuccessHandler\r\n * @fires Phaser.Scale.Events#LEAVE_FULLSCREEN\r\n * @since 3.85.0\r\n */\r\n leaveFullScreenSuccessHandler: function ()\r\n {\r\n // Get the parent size again as it will have changed\r\n this.getParentBounds();\r\n\r\n this.emit(Events.LEAVE_FULLSCREEN);\r\n\r\n this.refresh();\r\n },\r\n\r\n /**\r\n * Toggles the fullscreen mode. If already in fullscreen, calling this will cancel it.\r\n * If not in fullscreen, this will request the browser to enter fullscreen mode.\r\n *\r\n * If the browser does not support this, a `FULLSCREEN_UNSUPPORTED` event will be emitted.\r\n *\r\n * This method _must_ be called from a user-input gesture, such as `pointerdown`. You cannot launch\r\n * games fullscreen without this, as most browsers block it. Games within an iframe will also be blocked\r\n * from fullscreen unless the iframe has the `allowfullscreen` attribute.\r\n *\r\n * @method Phaser.Scale.ScaleManager#toggleFullscreen\r\n * @fires Phaser.Scale.Events#ENTER_FULLSCREEN\r\n * @fires Phaser.Scale.Events#LEAVE_FULLSCREEN\r\n * @fires Phaser.Scale.Events#FULLSCREEN_UNSUPPORTED\r\n * @fires Phaser.Scale.Events#RESIZE\r\n * @since 3.16.0\r\n *\r\n * @param {object} [fullscreenOptions] - The FullscreenOptions dictionary is used to provide configuration options when entering full screen.\r\n */\r\n toggleFullscreen: function (fullscreenOptions)\r\n {\r\n if (this.fullscreen.active)\r\n {\r\n this.stopFullscreen();\r\n }\r\n else\r\n {\r\n this.startFullscreen(fullscreenOptions);\r\n }\r\n },\r\n\r\n /**\r\n * An internal method that starts the different DOM event listeners running.\r\n *\r\n * @method Phaser.Scale.ScaleManager#startListeners\r\n * @since 3.16.0\r\n */\r\n startListeners: function ()\r\n {\r\n var _this = this;\r\n var listeners = this.domlisteners;\r\n\r\n listeners.orientationChange = function ()\r\n {\r\n _this.updateBounds();\r\n\r\n _this._checkOrientation = true;\r\n _this.dirty = true;\r\n\r\n _this.refresh();\r\n };\r\n\r\n listeners.windowResize = function ()\r\n {\r\n _this.updateBounds();\r\n\r\n _this.dirty = true;\r\n };\r\n\r\n // Only dispatched on mobile devices\r\n if (screen.orientation && screen.orientation.addEventListener)\r\n {\r\n screen.orientation.addEventListener('change', listeners.orientationChange, false);\r\n }\r\n else\r\n {\r\n window.addEventListener('orientationchange', listeners.orientationChange, false);\r\n }\r\n\r\n window.addEventListener('resize', listeners.windowResize, false);\r\n\r\n if (this.fullscreen.available)\r\n {\r\n listeners.fullScreenChange = function (event)\r\n {\r\n return _this.onFullScreenChange(event);\r\n };\r\n\r\n listeners.fullScreenError = function (event)\r\n {\r\n return _this.onFullScreenError(event);\r\n };\r\n\r\n var vendors = [ 'webkit', 'moz', '' ];\r\n\r\n vendors.forEach(function (prefix)\r\n {\r\n document.addEventListener(prefix + 'fullscreenchange', listeners.fullScreenChange, false);\r\n document.addEventListener(prefix + 'fullscreenerror', listeners.fullScreenError, false);\r\n });\r\n\r\n // MS Specific\r\n document.addEventListener('MSFullscreenChange', listeners.fullScreenChange, false);\r\n document.addEventListener('MSFullscreenError', listeners.fullScreenError, false);\r\n }\r\n },\r\n\r\n /**\r\n * Triggered when a fullscreenchange event is dispatched by the DOM.\r\n *\r\n * @method Phaser.Scale.ScaleManager#onFullScreenChange\r\n * @protected\r\n * @since 3.16.0\r\n */\r\n onFullScreenChange: function ()\r\n {\r\n if (document.fullscreenElement || document.webkitFullscreenElement || document.msFullscreenElement || document.mozFullScreenElement)\r\n {\r\n this.fullscreenSuccessHandler();\r\n }\r\n else\r\n {\r\n // They pressed ESC while in fullscreen mode\r\n this.stopFullscreen();\r\n this.leaveFullScreenSuccessHandler();\r\n }\r\n },\r\n\r\n /**\r\n * Triggered when a fullscreenerror event is dispatched by the DOM.\r\n *\r\n * @method Phaser.Scale.ScaleManager#onFullScreenError\r\n * @since 3.16.0\r\n */\r\n onFullScreenError: function ()\r\n {\r\n this.removeFullscreenTarget();\r\n },\r\n\r\n /**\r\n * Get Rectange of visible area.\r\n *\r\n * @method Phaser.Scale.ScaleManager#getViewPort\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The camera this viewport is respond upon.\r\n * @param {Phaser.Geom.Rectangle} [out] - The Rectangle of visible area.\r\n *\r\n * @return {Phaser.Geom.Rectangle} The Rectangle of visible area.\r\n */\r\n getViewPort: function (camera, out)\r\n {\r\n if (!(camera instanceof Camera))\r\n {\r\n out = camera;\r\n camera = undefined;\r\n }\r\n\r\n if (out === undefined)\r\n {\r\n out = new Rectangle();\r\n }\r\n\r\n var baseSize = this.baseSize;\r\n var parentSize = this.parentSize;\r\n var canvasBounds = this.canvasBounds;\r\n var displayScale = this.displayScale;\r\n\r\n var x = (canvasBounds.x >= 0) ? 0 : -(canvasBounds.x * displayScale.x);\r\n\r\n var y = (canvasBounds.y >= 0) ? 0 : -(canvasBounds.y * displayScale.y);\r\n\r\n var width;\r\n if (parentSize.width >= canvasBounds.width)\r\n {\r\n width = baseSize.width;\r\n }\r\n else\r\n {\r\n width = baseSize.width - (canvasBounds.width - parentSize.width) * displayScale.x;\r\n }\r\n\r\n var height;\r\n if (parentSize.height >= canvasBounds.height)\r\n {\r\n height = baseSize.height;\r\n }\r\n else\r\n {\r\n height = baseSize.height - (canvasBounds.height - parentSize.height) * displayScale.y;\r\n }\r\n\r\n out.setTo(x, y, width, height);\r\n\r\n if (camera)\r\n {\r\n out.width /= camera.zoomX;\r\n out.height /= camera.zoomY;\r\n out.centerX = camera.centerX + camera.scrollX;\r\n out.centerY = camera.centerY + camera.scrollY;\r\n }\r\n\r\n return out;\r\n },\r\n\r\n /**\r\n * Internal method, called automatically by the game step.\r\n * Monitors the elapsed time and resize interval to see if a parent bounds check needs to take place.\r\n *\r\n * @method Phaser.Scale.ScaleManager#step\r\n * @since 3.16.0\r\n *\r\n * @param {number} time - The time value from the most recent Game step. Typically a high-resolution timer value, or Date.now().\r\n * @param {number} delta - The delta value since the last frame. This is smoothed to avoid delta spikes by the TimeStep class.\r\n */\r\n step: function (time, delta)\r\n {\r\n if (!this.parent)\r\n {\r\n return;\r\n }\r\n\r\n this._lastCheck += delta;\r\n\r\n if (this.dirty || this._lastCheck > this.resizeInterval)\r\n {\r\n // Returns true if the parent bounds have changed size\r\n if (this.getParentBounds())\r\n {\r\n this.refresh();\r\n }\r\n\r\n this.dirty = false;\r\n this._lastCheck = 0;\r\n }\r\n },\r\n\r\n /**\r\n * Stops all DOM event listeners.\r\n *\r\n * @method Phaser.Scale.ScaleManager#stopListeners\r\n * @since 3.16.0\r\n */\r\n stopListeners: function ()\r\n {\r\n var listeners = this.domlisteners;\r\n\r\n if (screen.orientation && screen.orientation.addEventListener)\r\n {\r\n screen.orientation.removeEventListener('change', listeners.orientationChange, false);\r\n }\r\n else\r\n {\r\n window.removeEventListener('orientationchange', listeners.orientationChange, false);\r\n }\r\n \r\n window.removeEventListener('resize', listeners.windowResize, false);\r\n\r\n var vendors = [ 'webkit', 'moz', '' ];\r\n\r\n vendors.forEach(function (prefix)\r\n {\r\n document.removeEventListener(prefix + 'fullscreenchange', listeners.fullScreenChange, false);\r\n document.removeEventListener(prefix + 'fullscreenerror', listeners.fullScreenError, false);\r\n });\r\n\r\n // MS Specific\r\n document.removeEventListener('MSFullscreenChange', listeners.fullScreenChange, false);\r\n document.removeEventListener('MSFullscreenError', listeners.fullScreenError, false);\r\n },\r\n\r\n /**\r\n * Destroys this Scale Manager, releasing all references to external resources.\r\n * Once destroyed, the Scale Manager cannot be used again.\r\n *\r\n * @method Phaser.Scale.ScaleManager#destroy\r\n * @since 3.16.0\r\n */\r\n destroy: function ()\r\n {\r\n this.removeAllListeners();\r\n\r\n this.stopListeners();\r\n\r\n this.game = null;\r\n this.canvas = null;\r\n this.canvasBounds = null;\r\n this.parent = null;\r\n this.fullscreenTarget = null;\r\n\r\n this.parentSize.destroy();\r\n this.gameSize.destroy();\r\n this.baseSize.destroy();\r\n this.displaySize.destroy();\r\n },\r\n\r\n /**\r\n * Is the browser currently in fullscreen mode or not?\r\n *\r\n * @name Phaser.Scale.ScaleManager#isFullscreen\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.16.0\r\n */\r\n isFullscreen: {\r\n\r\n get: function ()\r\n {\r\n return this.fullscreen.active;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The game width.\r\n *\r\n * This is typically the size given in the game configuration.\r\n *\r\n * @name Phaser.Scale.ScaleManager#width\r\n * @type {number}\r\n * @readonly\r\n * @since 3.16.0\r\n */\r\n width: {\r\n\r\n get: function ()\r\n {\r\n return this.gameSize.width;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The game height.\r\n *\r\n * This is typically the size given in the game configuration.\r\n *\r\n * @name Phaser.Scale.ScaleManager#height\r\n * @type {number}\r\n * @readonly\r\n * @since 3.16.0\r\n */\r\n height: {\r\n\r\n get: function ()\r\n {\r\n return this.gameSize.height;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Is the device in a portrait orientation as reported by the Orientation API?\r\n * This value is usually only available on mobile devices.\r\n *\r\n * @name Phaser.Scale.ScaleManager#isPortrait\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.16.0\r\n */\r\n isPortrait: {\r\n\r\n get: function ()\r\n {\r\n return (this.orientation === CONST.ORIENTATION.PORTRAIT);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Is the device in a landscape orientation as reported by the Orientation API?\r\n * This value is usually only available on mobile devices.\r\n *\r\n * @name Phaser.Scale.ScaleManager#isLandscape\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.16.0\r\n */\r\n isLandscape: {\r\n\r\n get: function ()\r\n {\r\n return (this.orientation === CONST.ORIENTATION.LANDSCAPE);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Are the game dimensions portrait? (i.e. taller than they are wide)\r\n *\r\n * This is different to the device itself being in a portrait orientation.\r\n *\r\n * @name Phaser.Scale.ScaleManager#isGamePortrait\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.16.0\r\n */\r\n isGamePortrait: {\r\n\r\n get: function ()\r\n {\r\n return (this.height > this.width);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Are the game dimensions landscape? (i.e. wider than they are tall)\r\n *\r\n * This is different to the device itself being in a landscape orientation.\r\n *\r\n * @name Phaser.Scale.ScaleManager#isGameLandscape\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.16.0\r\n */\r\n isGameLandscape: {\r\n\r\n get: function ()\r\n {\r\n return (this.width > this.height);\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = ScaleManager;\r\n\n\n/***/ }),\n\n/***/ 64743:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Phaser Scale Manager constants for centering the game canvas.\r\n *\r\n * @namespace Phaser.Scale.Center\r\n * @memberof Phaser.Scale\r\n * @since 3.16.0\r\n */\r\n\r\n/**\r\n * Phaser Scale Manager constants for centering the game canvas.\r\n *\r\n * To find out what each mode does please see [Phaser.Scale.Center]{@link Phaser.Scale.Center}.\r\n *\r\n * @typedef {Phaser.Scale.Center} Phaser.Scale.CenterType\r\n * @memberof Phaser.Scale\r\n * @since 3.16.0\r\n */\r\n\r\nmodule.exports = {\r\n\r\n /**\r\n * The game canvas is not centered within the parent by Phaser.\r\n * You can still center it yourself via CSS.\r\n *\r\n * @name Phaser.Scale.Center.NO_CENTER\r\n * @type {number}\r\n * @const\r\n * @since 3.16.0\r\n */\r\n NO_CENTER: 0,\r\n\r\n /**\r\n * The game canvas is centered both horizontally and vertically within the parent.\r\n * To do this, the parent has to have a bounds that can be calculated and not be empty.\r\n *\r\n * Centering is achieved by setting the margin left and top properties of the\r\n * game canvas, and does not factor in any other CSS styles you may have applied.\r\n *\r\n * @name Phaser.Scale.Center.CENTER_BOTH\r\n * @type {number}\r\n * @const\r\n * @since 3.16.0\r\n */\r\n CENTER_BOTH: 1,\r\n\r\n /**\r\n * The game canvas is centered horizontally within the parent.\r\n * To do this, the parent has to have a bounds that can be calculated and not be empty.\r\n *\r\n * Centering is achieved by setting the margin left and top properties of the\r\n * game canvas, and does not factor in any other CSS styles you may have applied.\r\n *\r\n * @name Phaser.Scale.Center.CENTER_HORIZONTALLY\r\n * @type {number}\r\n * @const\r\n * @since 3.16.0\r\n */\r\n CENTER_HORIZONTALLY: 2,\r\n\r\n /**\r\n * The game canvas is centered both vertically within the parent.\r\n * To do this, the parent has to have a bounds that can be calculated and not be empty.\r\n *\r\n * Centering is achieved by setting the margin left and top properties of the\r\n * game canvas, and does not factor in any other CSS styles you may have applied.\r\n *\r\n * @name Phaser.Scale.Center.CENTER_VERTICALLY\r\n * @type {number}\r\n * @const\r\n * @since 3.16.0\r\n */\r\n CENTER_VERTICALLY: 3\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 39218:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Phaser Scale Manager constants for orientation.\r\n *\r\n * @namespace Phaser.Scale.Orientation\r\n * @memberof Phaser.Scale\r\n * @since 3.16.0\r\n */\r\n\r\n/**\r\n * Phaser Scale Manager constants for orientation.\r\n *\r\n * To find out what each mode does please see [Phaser.Scale.Orientation]{@link Phaser.Scale.Orientation}.\r\n *\r\n * @typedef {Phaser.Scale.Orientation} Phaser.Scale.OrientationType\r\n * @memberof Phaser.Scale\r\n * @since 3.16.0\r\n */\r\n\r\nmodule.exports = {\r\n\r\n /**\r\n * The primary landscape orientation.\r\n *\r\n * @name Phaser.Scale.Orientation.LANDSCAPE\r\n * @type {string}\r\n * @const\r\n * @since 3.16.0\r\n */\r\n LANDSCAPE: 'landscape-primary',\r\n\r\n /**\r\n * The secondary landscape orientation.\r\n *\r\n * @name Phaser.Scale.Orientation.LANDSCAPE_SECONDARY\r\n * @type {string}\r\n * @const\r\n * @since 3.85.0\r\n */\r\n LANDSCAPE_SECONDARY: 'landscape-secondary',\r\n\r\n /**\r\n * The primary portrait orientation.\r\n *\r\n * @name Phaser.Scale.Orientation.PORTRAIT\r\n * @type {string}\r\n * @const\r\n * @since 3.16.0\r\n */\r\n PORTRAIT: 'portrait-primary',\r\n\r\n /**\r\n * The secondary portrait orientation.\r\n *\r\n * @name Phaser.Scale.Orientation.PORTRAIT_SECONDARY\r\n * @type {string}\r\n * @const\r\n * @since 3.16.0\r\n */\r\n PORTRAIT_SECONDARY: 'portrait-secondary'\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 81050:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Phaser Scale Manager constants for the different scale modes available.\r\n *\r\n * @namespace Phaser.Scale.ScaleModes\r\n * @memberof Phaser.Scale\r\n * @since 3.16.0\r\n */\r\n\r\n/**\r\n * Phaser Scale Manager constants for the different scale modes available.\r\n *\r\n * To find out what each mode does please see [Phaser.Scale.ScaleModes]{@link Phaser.Scale.ScaleModes}.\r\n *\r\n * @typedef {Phaser.Scale.ScaleModes} Phaser.Scale.ScaleModeType\r\n * @memberof Phaser.Scale\r\n * @since 3.16.0\r\n */\r\n\r\nmodule.exports = {\r\n\r\n /**\r\n * No scaling happens at all. The canvas is set to the size given in the game config and Phaser doesn't change it\r\n * again from that point on. If you change the canvas size, either via CSS, or directly via code, then you need\r\n * to call the Scale Managers `resize` method to give the new dimensions, or input events will stop working.\r\n *\r\n * @name Phaser.Scale.ScaleModes.NONE\r\n * @type {number}\r\n * @const\r\n * @since 3.16.0\r\n */\r\n NONE: 0,\r\n\r\n /**\r\n * The height is automatically adjusted based on the width.\r\n *\r\n * @name Phaser.Scale.ScaleModes.WIDTH_CONTROLS_HEIGHT\r\n * @type {number}\r\n * @const\r\n * @since 3.16.0\r\n */\r\n WIDTH_CONTROLS_HEIGHT: 1,\r\n\r\n /**\r\n * The width is automatically adjusted based on the height.\r\n *\r\n * @name Phaser.Scale.ScaleModes.HEIGHT_CONTROLS_WIDTH\r\n * @type {number}\r\n * @const\r\n * @since 3.16.0\r\n */\r\n HEIGHT_CONTROLS_WIDTH: 2,\r\n\r\n /**\r\n * The width and height are automatically adjusted to fit inside the given target area,\r\n * while keeping the aspect ratio. Depending on the aspect ratio there may be some space\r\n * inside the area which is not covered.\r\n *\r\n * @name Phaser.Scale.ScaleModes.FIT\r\n * @type {number}\r\n * @const\r\n * @since 3.16.0\r\n */\r\n FIT: 3,\r\n\r\n /**\r\n * The width and height are automatically adjusted to make the size cover the entire target\r\n * area while keeping the aspect ratio. This may extend further out than the target size.\r\n *\r\n * @name Phaser.Scale.ScaleModes.ENVELOP\r\n * @type {number}\r\n * @const\r\n * @since 3.16.0\r\n */\r\n ENVELOP: 4,\r\n\r\n /**\r\n * The Canvas is resized to fit all available _parent_ space, regardless of aspect ratio.\r\n *\r\n * @name Phaser.Scale.ScaleModes.RESIZE\r\n * @type {number}\r\n * @const\r\n * @since 3.16.0\r\n */\r\n RESIZE: 5,\r\n\r\n /**\r\n * The Canvas's visible area is resized to fit all available _parent_ space like RESIZE mode,\r\n * and scale canvas size to fit inside the visible area like FIT mode.\r\n *\r\n * @name Phaser.Scale.ScaleModes.EXPAND\r\n * @type {number}\r\n * @const\r\n * @since 3.80.0\r\n */\r\n EXPAND: 6\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 80805:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Phaser Scale Manager constants for zoom modes.\r\n *\r\n * @namespace Phaser.Scale.Zoom\r\n * @memberof Phaser.Scale\r\n * @since 3.16.0\r\n */\r\n\r\n/**\r\n * Phaser Scale Manager constants for zoom modes.\r\n *\r\n * To find out what each mode does please see [Phaser.Scale.Zoom]{@link Phaser.Scale.Zoom}.\r\n *\r\n * @typedef {Phaser.Scale.Zoom} Phaser.Scale.ZoomType\r\n * @memberof Phaser.Scale\r\n * @since 3.16.0\r\n */\r\n\r\nmodule.exports = {\r\n\r\n /**\r\n * The game canvas will not be zoomed by Phaser.\r\n *\r\n * @name Phaser.Scale.Zoom.NO_ZOOM\r\n * @type {number}\r\n * @const\r\n * @since 3.16.0\r\n */\r\n NO_ZOOM: 1,\r\n\r\n /**\r\n * The game canvas will be 2x zoomed by Phaser.\r\n *\r\n * @name Phaser.Scale.Zoom.ZOOM_2X\r\n * @type {number}\r\n * @const\r\n * @since 3.16.0\r\n */\r\n ZOOM_2X: 2,\r\n\r\n /**\r\n * The game canvas will be 4x zoomed by Phaser.\r\n *\r\n * @name Phaser.Scale.Zoom.ZOOM_4X\r\n * @type {number}\r\n * @const\r\n * @since 3.16.0\r\n */\r\n ZOOM_4X: 4,\r\n\r\n /**\r\n * Calculate the zoom value based on the maximum multiplied game size that will\r\n * fit into the parent, or browser window if no parent is set.\r\n *\r\n * @name Phaser.Scale.Zoom.MAX_ZOOM\r\n * @type {number}\r\n * @const\r\n * @since 3.16.0\r\n */\r\n MAX_ZOOM: -1\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 13560:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = {\r\n\r\n CENTER: __webpack_require__(64743),\r\n ORIENTATION: __webpack_require__(39218),\r\n SCALE_MODE: __webpack_require__(81050),\r\n ZOOM: __webpack_require__(80805)\r\n\r\n};\r\n\r\nmodule.exports = CONST;\r\n\n\n/***/ }),\n\n/***/ 56139:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scale Manager has successfully entered fullscreen mode.\r\n *\r\n * @event Phaser.Scale.Events#ENTER_FULLSCREEN\r\n * @type {string}\r\n * @since 3.16.1\r\n */\r\nmodule.exports = 'enterfullscreen';\r\n\n\n/***/ }),\n\n/***/ 2336:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scale Manager tried to enter fullscreen mode but failed.\r\n *\r\n * @event Phaser.Scale.Events#FULLSCREEN_FAILED\r\n * @type {string}\r\n * @since 3.17.0\r\n */\r\nmodule.exports = 'fullscreenfailed';\r\n\n\n/***/ }),\n\n/***/ 47412:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scale Manager tried to enter fullscreen mode, but it is unsupported by the browser.\r\n *\r\n * @event Phaser.Scale.Events#FULLSCREEN_UNSUPPORTED\r\n * @type {string}\r\n * @since 3.16.1\r\n */\r\nmodule.exports = 'fullscreenunsupported';\r\n\n\n/***/ }),\n\n/***/ 51452:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scale Manager was in fullscreen mode, but has since left, either directly via game code,\r\n * or via a user gestured, such as pressing the ESC key.\r\n *\r\n * @event Phaser.Scale.Events#LEAVE_FULLSCREEN\r\n * @type {string}\r\n * @since 3.16.1\r\n */\r\nmodule.exports = 'leavefullscreen';\r\n\n\n/***/ }),\n\n/***/ 20666:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scale Manager Orientation Change Event.\r\n *\r\n * This event is dispatched whenever the Scale Manager detects an orientation change event from the browser.\r\n *\r\n * @event Phaser.Scale.Events#ORIENTATION_CHANGE\r\n * @type {string}\r\n * @since 3.16.1\r\n *\r\n * @param {string} orientation - The new orientation value. Either `Phaser.Scale.Orientation.LANDSCAPE` or `Phaser.Scale.Orientation.PORTRAIT`.\r\n */\r\nmodule.exports = 'orientationchange';\r\n\n\n/***/ }),\n\n/***/ 47945:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scale Manager Resize Event.\r\n *\r\n * This event is dispatched whenever the Scale Manager detects a resize event from the browser.\r\n * It sends three parameters to the callback, each of them being Size components. You can read\r\n * the `width`, `height`, `aspectRatio` and other properties of these components to help with\r\n * scaling your own game content.\r\n *\r\n * @event Phaser.Scale.Events#RESIZE\r\n * @type {string}\r\n * @since 3.16.1\r\n *\r\n * @param {Phaser.Structs.Size} gameSize - A reference to the Game Size component. This is the un-scaled size of your game canvas.\r\n * @param {Phaser.Structs.Size} baseSize - A reference to the Base Size component. This is the game size.\r\n * @param {Phaser.Structs.Size} displaySize - A reference to the Display Size component. This is the scaled canvas size, after applying zoom and scale mode.\r\n * @param {number} previousWidth - If the `gameSize` has changed, this value contains its previous width, otherwise it contains the current width.\r\n * @param {number} previousHeight - If the `gameSize` has changed, this value contains its previous height, otherwise it contains the current height.\r\n */\r\nmodule.exports = 'resize';\r\n\n\n/***/ }),\n\n/***/ 97480:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Scale.Events\r\n */\r\n\r\nmodule.exports = {\r\n\r\n ENTER_FULLSCREEN: __webpack_require__(56139),\r\n FULLSCREEN_FAILED: __webpack_require__(2336),\r\n FULLSCREEN_UNSUPPORTED: __webpack_require__(47412),\r\n LEAVE_FULLSCREEN: __webpack_require__(51452),\r\n ORIENTATION_CHANGE: __webpack_require__(20666),\r\n RESIZE: __webpack_require__(47945)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 93364:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Extend = __webpack_require__(79291);\r\nvar CONST = __webpack_require__(13560);\r\n\r\n/**\r\n * @namespace Phaser.Scale\r\n *\r\n * @borrows Phaser.Scale.Center.NO_CENTER as NO_CENTER\r\n * @borrows Phaser.Scale.Center.CENTER_BOTH as CENTER_BOTH\r\n * @borrows Phaser.Scale.Center.CENTER_HORIZONTALLY as CENTER_HORIZONTALLY\r\n * @borrows Phaser.Scale.Center.CENTER_VERTICALLY as CENTER_VERTICALLY\r\n *\r\n * @borrows Phaser.Scale.Orientation.LANDSCAPE as LANDSCAPE\r\n * @borrows Phaser.Scale.Orientation.PORTRAIT as PORTRAIT\r\n *\r\n * @borrows Phaser.Scale.ScaleModes.NONE as NONE\r\n * @borrows Phaser.Scale.ScaleModes.WIDTH_CONTROLS_HEIGHT as WIDTH_CONTROLS_HEIGHT\r\n * @borrows Phaser.Scale.ScaleModes.HEIGHT_CONTROLS_WIDTH as HEIGHT_CONTROLS_WIDTH\r\n * @borrows Phaser.Scale.ScaleModes.FIT as FIT\r\n * @borrows Phaser.Scale.ScaleModes.ENVELOP as ENVELOP\r\n * @borrows Phaser.Scale.ScaleModes.RESIZE as RESIZE\r\n * @borrows Phaser.Scale.ScaleModes.EXPAND as EXPAND \r\n *\r\n * @borrows Phaser.Scale.Zoom.NO_ZOOM as NO_ZOOM\r\n * @borrows Phaser.Scale.Zoom.ZOOM_2X as ZOOM_2X\r\n * @borrows Phaser.Scale.Zoom.ZOOM_4X as ZOOM_4X\r\n * @borrows Phaser.Scale.Zoom.MAX_ZOOM as MAX_ZOOM\r\n */\r\n\r\nvar Scale = {\r\n\r\n Center: __webpack_require__(64743),\r\n Events: __webpack_require__(97480),\r\n Orientation: __webpack_require__(39218),\r\n ScaleManager: __webpack_require__(76531),\r\n ScaleModes: __webpack_require__(81050),\r\n Zoom: __webpack_require__(80805)\r\n\r\n};\r\n\r\nScale = Extend(false, Scale, CONST.CENTER);\r\nScale = Extend(false, Scale, CONST.ORIENTATION);\r\nScale = Extend(false, Scale, CONST.SCALE_MODE);\r\nScale = Extend(false, Scale, CONST.ZOOM);\r\n\r\nmodule.exports = Scale;\r\n\n\n/***/ }),\n\n/***/ 27397:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar UppercaseFirst = __webpack_require__(35355);\r\n\r\n/**\r\n * Builds an array of which physics plugins should be activated for the given Scene.\r\n *\r\n * @function Phaser.Scenes.GetPhysicsPlugins\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scenes.Systems} sys - The scene system to get the physics systems of.\r\n *\r\n * @return {array} An array of Physics systems to start for this Scene.\r\n */\r\nvar GetPhysicsPlugins = function (sys)\r\n{\r\n var defaultSystem = sys.game.config.defaultPhysicsSystem;\r\n var sceneSystems = GetFastValue(sys.settings, 'physics', false);\r\n\r\n if (!defaultSystem && !sceneSystems)\r\n {\r\n // No default physics system or systems in this scene\r\n return;\r\n }\r\n\r\n // Let's build the systems array\r\n var output = [];\r\n\r\n if (defaultSystem)\r\n {\r\n output.push(UppercaseFirst(defaultSystem + 'Physics'));\r\n }\r\n\r\n if (sceneSystems)\r\n {\r\n for (var key in sceneSystems)\r\n {\r\n key = UppercaseFirst(key.concat('Physics'));\r\n\r\n if (output.indexOf(key) === -1)\r\n {\r\n output.push(key);\r\n }\r\n }\r\n }\r\n\r\n // An array of Physics systems to start for this Scene\r\n return output;\r\n};\r\n\r\nmodule.exports = GetPhysicsPlugins;\r\n\n\n/***/ }),\n\n/***/ 52106:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetFastValue = __webpack_require__(95540);\r\n\r\n/**\r\n * Builds an array of which plugins (not including physics plugins) should be activated for the given Scene.\r\n *\r\n * @function Phaser.Scenes.GetScenePlugins\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scenes.Systems} sys - The Scene Systems object to check for plugins.\r\n *\r\n * @return {array} An array of all plugins which should be activated, either the default ones or the ones configured in the Scene Systems object.\r\n */\r\nvar GetScenePlugins = function (sys)\r\n{\r\n var defaultPlugins = sys.plugins.getDefaultScenePlugins();\r\n\r\n var scenePlugins = GetFastValue(sys.settings, 'plugins', false);\r\n\r\n // Scene Plugins always override Default Plugins\r\n if (Array.isArray(scenePlugins))\r\n {\r\n return scenePlugins;\r\n }\r\n else if (defaultPlugins)\r\n {\r\n return defaultPlugins;\r\n }\r\n else\r\n {\r\n // No default plugins or plugins in this scene\r\n return [];\r\n }\r\n};\r\n\r\nmodule.exports = GetScenePlugins;\r\n\n\n/***/ }),\n\n/***/ 87033:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// These properties get injected into the Scene and map to local systems\r\n// The map value is the property that is injected into the Scene, the key is the Scene.Systems reference.\r\n// These defaults can be modified via the Scene config object\r\n// var config = {\r\n// map: {\r\n// add: 'makeStuff',\r\n// load: 'loader'\r\n// }\r\n// };\r\n\r\nvar InjectionMap = {\r\n\r\n game: 'game',\r\n renderer: 'renderer',\r\n\r\n anims: 'anims',\r\n cache: 'cache',\r\n plugins: 'plugins',\r\n registry: 'registry',\r\n scale: 'scale',\r\n sound: 'sound',\r\n textures: 'textures',\r\n\r\n events: 'events',\r\n cameras: 'cameras',\r\n add: 'add',\r\n make: 'make',\r\n scenePlugin: 'scene',\r\n displayList: 'children',\r\n lights: 'lights',\r\n\r\n data: 'data',\r\n input: 'input',\r\n load: 'load',\r\n time: 'time',\r\n tweens: 'tweens',\r\n\r\n arcadePhysics: 'physics',\r\n impactPhysics: 'impact',\r\n matterPhysics: 'matter'\r\n\r\n};\r\n\r\nif (false)\r\n{}\r\n\r\nif (false)\r\n{}\r\n\r\nmodule.exports = InjectionMap;\r\n\n\n/***/ }),\n\n/***/ 97482:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Systems = __webpack_require__(2368);\r\n\r\n/**\r\n * @classdesc\r\n * A base Phaser.Scene class which can be extended for your own use.\r\n *\r\n * You can also define the optional methods {@link Phaser.Types.Scenes.SceneInitCallback init()}, {@link Phaser.Types.Scenes.ScenePreloadCallback preload()}, and {@link Phaser.Types.Scenes.SceneCreateCallback create()}.\r\n *\r\n * @class Scene\r\n * @memberof Phaser\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Scenes.SettingsConfig)} [config] - The scene key or scene specific configuration settings.\r\n */\r\nvar Scene = new Class({\r\n\r\n initialize:\r\n\r\n function Scene (config)\r\n {\r\n /**\r\n * The Scene Systems. You must never overwrite this property, or all hell will break lose.\r\n *\r\n * @name Phaser.Scene#sys\r\n * @type {Phaser.Scenes.Systems}\r\n * @since 3.0.0\r\n */\r\n this.sys = new Systems(this, config);\r\n\r\n /**\r\n * A reference to the Phaser.Game instance.\r\n *\r\n * This property will only be available if defined in the Scene Injection Map.\r\n *\r\n * @name Phaser.Scene#game\r\n * @type {Phaser.Game}\r\n * @since 3.0.0\r\n */\r\n this.game;\r\n\r\n /**\r\n * A reference to the global Animation Manager.\r\n *\r\n * This property will only be available if defined in the Scene Injection Map.\r\n *\r\n * @name Phaser.Scene#anims\r\n * @type {Phaser.Animations.AnimationManager}\r\n * @since 3.0.0\r\n */\r\n this.anims;\r\n\r\n /**\r\n * A reference to the global Cache.\r\n *\r\n * This property will only be available if defined in the Scene Injection Map.\r\n *\r\n * @name Phaser.Scene#cache\r\n * @type {Phaser.Cache.CacheManager}\r\n * @since 3.0.0\r\n */\r\n this.cache;\r\n\r\n /**\r\n * A reference to the global Data Manager.\r\n *\r\n * This property will only be available if defined in the Scene Injection Map.\r\n *\r\n * @name Phaser.Scene#registry\r\n * @type {Phaser.Data.DataManager}\r\n * @since 3.0.0\r\n */\r\n this.registry;\r\n\r\n /**\r\n * A reference to the Sound Manager.\r\n *\r\n * This property will only be available if defined in the Scene Injection Map and the plugin is installed.\r\n *\r\n * @name Phaser.Scene#sound\r\n * @type {(Phaser.Sound.NoAudioSoundManager|Phaser.Sound.HTML5AudioSoundManager|Phaser.Sound.WebAudioSoundManager)}\r\n * @since 3.0.0\r\n */\r\n this.sound;\r\n\r\n /**\r\n * A reference to the Texture Manager.\r\n *\r\n * This property will only be available if defined in the Scene Injection Map.\r\n *\r\n * @name Phaser.Scene#textures\r\n * @type {Phaser.Textures.TextureManager}\r\n * @since 3.0.0\r\n */\r\n this.textures;\r\n\r\n /**\r\n * A Scene specific Event Emitter.\r\n *\r\n * This property will only be available if defined in the Scene Injection Map.\r\n *\r\n * @name Phaser.Scene#events\r\n * @type {Phaser.Events.EventEmitter}\r\n * @since 3.0.0\r\n */\r\n this.events;\r\n\r\n /**\r\n * The Scene Camera Manager.\r\n *\r\n * This property will only be available if defined in the Scene Injection Map.\r\n *\r\n * @name Phaser.Scene#cameras\r\n * @type {Phaser.Cameras.Scene2D.CameraManager}\r\n * @since 3.0.0\r\n */\r\n this.cameras;\r\n\r\n /**\r\n * The Scene Game Object Factory.\r\n *\r\n * This property will only be available if defined in the Scene Injection Map.\r\n *\r\n * @name Phaser.Scene#add\r\n * @type {Phaser.GameObjects.GameObjectFactory}\r\n * @since 3.0.0\r\n */\r\n this.add;\r\n\r\n /**\r\n * The Scene Game Object Creator.\r\n *\r\n * This property will only be available if defined in the Scene Injection Map.\r\n *\r\n * @name Phaser.Scene#make\r\n * @type {Phaser.GameObjects.GameObjectCreator}\r\n * @since 3.0.0\r\n */\r\n this.make;\r\n\r\n /**\r\n * A reference to the Scene Manager Plugin.\r\n *\r\n * This property will only be available if defined in the Scene Injection Map.\r\n *\r\n * @name Phaser.Scene#scene\r\n * @type {Phaser.Scenes.ScenePlugin}\r\n * @since 3.0.0\r\n */\r\n this.scene;\r\n\r\n /**\r\n * The Game Object Display List belonging to this Scene.\r\n *\r\n * This property will only be available if defined in the Scene Injection Map.\r\n *\r\n * @name Phaser.Scene#children\r\n * @type {Phaser.GameObjects.DisplayList}\r\n * @since 3.0.0\r\n */\r\n this.children;\r\n\r\n /**\r\n * The Scene Lights Manager Plugin.\r\n *\r\n * This property will only be available if defined in the Scene Injection Map and the plugin is installed.\r\n *\r\n * @name Phaser.Scene#lights\r\n * @type {Phaser.GameObjects.LightsManager}\r\n * @since 3.0.0\r\n */\r\n this.lights;\r\n\r\n /**\r\n * A Scene specific Data Manager Plugin.\r\n *\r\n * See the `registry` property for the global Data Manager.\r\n *\r\n * This property will only be available if defined in the Scene Injection Map and the plugin is installed.\r\n *\r\n * @name Phaser.Scene#data\r\n * @type {Phaser.Data.DataManager}\r\n * @since 3.0.0\r\n */\r\n this.data;\r\n\r\n /**\r\n * The Scene Input Manager Plugin.\r\n *\r\n * This property will only be available if defined in the Scene Injection Map and the plugin is installed.\r\n *\r\n * @name Phaser.Scene#input\r\n * @type {Phaser.Input.InputPlugin}\r\n * @since 3.0.0\r\n */\r\n this.input;\r\n\r\n /**\r\n * The Scene Loader Plugin.\r\n *\r\n * This property will only be available if defined in the Scene Injection Map and the plugin is installed.\r\n *\r\n * @name Phaser.Scene#load\r\n * @type {Phaser.Loader.LoaderPlugin}\r\n * @since 3.0.0\r\n */\r\n this.load;\r\n\r\n /**\r\n * The Scene Time and Clock Plugin.\r\n *\r\n * This property will only be available if defined in the Scene Injection Map and the plugin is installed.\r\n *\r\n * @name Phaser.Scene#time\r\n * @type {Phaser.Time.Clock}\r\n * @since 3.0.0\r\n */\r\n this.time;\r\n\r\n /**\r\n * The Scene Tween Manager Plugin.\r\n *\r\n * This property will only be available if defined in the Scene Injection Map and the plugin is installed.\r\n *\r\n * @name Phaser.Scene#tweens\r\n * @type {Phaser.Tweens.TweenManager}\r\n * @since 3.0.0\r\n */\r\n this.tweens;\r\n\r\n /**\r\n * The Scene Arcade Physics Plugin.\r\n *\r\n * This property will only be available if defined in the Scene Injection Map, the plugin is installed and configured.\r\n *\r\n * @name Phaser.Scene#physics\r\n * @type {Phaser.Physics.Arcade.ArcadePhysics}\r\n * @since 3.0.0\r\n */\r\n this.physics;\r\n\r\n /**\r\n * The Scene Matter Physics Plugin.\r\n *\r\n * This property will only be available if defined in the Scene Injection Map, the plugin is installed and configured.\r\n *\r\n * @name Phaser.Scene#matter\r\n * @type {Phaser.Physics.Matter.MatterPhysics}\r\n * @since 3.0.0\r\n */\r\n this.matter;\r\n\r\n if (false)\r\n {}\r\n\r\n /**\r\n * A reference to the global Scale Manager.\r\n *\r\n * This property will only be available if defined in the Scene Injection Map.\r\n *\r\n * @name Phaser.Scene#scale\r\n * @type {Phaser.Scale.ScaleManager}\r\n * @since 3.16.2\r\n */\r\n this.scale;\r\n\r\n /**\r\n * A reference to the global Plugin Manager.\r\n *\r\n * The Plugin Manager is a global system that allows plugins to register themselves with it, and can then install\r\n * those plugins into Scenes as required.\r\n *\r\n * @name Phaser.Scene#plugins\r\n * @type {Phaser.Plugins.PluginManager}\r\n * @since 3.0.0\r\n */\r\n this.plugins;\r\n\r\n /**\r\n * A reference to the renderer instance Phaser is using, either Canvas Renderer or WebGL Renderer.\r\n *\r\n * @name Phaser.Scene#renderer\r\n * @type {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)}\r\n * @since 3.50.0\r\n */\r\n this.renderer;\r\n },\r\n\r\n /**\r\n * This method should be overridden by your own Scenes.\r\n *\r\n * This method is called once per game step while the scene is running.\r\n *\r\n * @method Phaser.Scene#update\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n */\r\n update: function ()\r\n {\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Scene;\r\n\n\n/***/ }),\n\n/***/ 60903:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(89993);\r\nvar Events = __webpack_require__(44594);\r\nvar GameEvents = __webpack_require__(8443);\r\nvar GetValue = __webpack_require__(35154);\r\nvar LoaderEvents = __webpack_require__(54899);\r\nvar NOOP = __webpack_require__(29747);\r\nvar Scene = __webpack_require__(97482);\r\nvar Systems = __webpack_require__(2368);\r\n\r\n/**\r\n * @classdesc\r\n * The Scene Manager.\r\n *\r\n * The Scene Manager is a Game level system, responsible for creating, processing and updating all of the\r\n * Scenes in a Game instance.\r\n *\r\n * You should not usually interact directly with the Scene Manager at all. Instead, you should use\r\n * the Scene Plugin, which is available from every Scene in your game via the `this.scene` property.\r\n *\r\n * Using methods in this Scene Manager directly will break queued operations and can cause runtime\r\n * errors. Instead, go via the Scene Plugin. Every feature this Scene Manager provides is also\r\n * available via the Scene Plugin.\r\n *\r\n * @class SceneManager\r\n * @memberof Phaser.Scenes\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Game} game - The Phaser.Game instance this Scene Manager belongs to.\r\n * @param {object} sceneConfig - Scene specific configuration settings.\r\n */\r\nvar SceneManager = new Class({\r\n\r\n initialize:\r\n\r\n function SceneManager (game, sceneConfig)\r\n {\r\n /**\r\n * The Game that this SceneManager belongs to.\r\n *\r\n * @name Phaser.Scenes.SceneManager#game\r\n * @type {Phaser.Game}\r\n * @since 3.0.0\r\n */\r\n this.game = game;\r\n\r\n /**\r\n * An object that maps the keys to the scene so we can quickly get a scene from a key without iteration.\r\n *\r\n * @name Phaser.Scenes.SceneManager#keys\r\n * @type {Record}\r\n * @since 3.0.0\r\n */\r\n this.keys = {};\r\n\r\n /**\r\n * The array in which all of the scenes are kept.\r\n *\r\n * @name Phaser.Scenes.SceneManager#scenes\r\n * @type {Phaser.Scene[]}\r\n * @since 3.0.0\r\n */\r\n this.scenes = [];\r\n\r\n /**\r\n * Scenes pending to be added are stored in here until the manager has time to add it.\r\n *\r\n * @name Phaser.Scenes.SceneManager#_pending\r\n * @type {array}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._pending = [];\r\n\r\n /**\r\n * An array of scenes waiting to be started once the game has booted.\r\n *\r\n * @name Phaser.Scenes.SceneManager#_start\r\n * @type {array}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._start = [];\r\n\r\n /**\r\n * An operations queue, because we don't manipulate the scenes array during processing.\r\n *\r\n * @name Phaser.Scenes.SceneManager#_queue\r\n * @type {array}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._queue = [];\r\n\r\n /**\r\n * Boot time data to merge.\r\n *\r\n * @name Phaser.Scenes.SceneManager#_data\r\n * @type {object}\r\n * @private\r\n * @since 3.4.0\r\n */\r\n this._data = {};\r\n\r\n /**\r\n * Is the Scene Manager actively processing the Scenes list?\r\n *\r\n * @name Phaser.Scenes.SceneManager#isProcessing\r\n * @type {boolean}\r\n * @default false\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.isProcessing = false;\r\n\r\n /**\r\n * Has the Scene Manager properly started?\r\n *\r\n * @name Phaser.Scenes.SceneManager#isBooted\r\n * @type {boolean}\r\n * @default false\r\n * @readonly\r\n * @since 3.4.0\r\n */\r\n this.isBooted = false;\r\n\r\n /**\r\n * Do any of the Cameras in any of the Scenes require a custom viewport?\r\n * If not we can skip scissor tests.\r\n *\r\n * @name Phaser.Scenes.SceneManager#customViewports\r\n * @type {number}\r\n * @default 0\r\n * @since 3.12.0\r\n */\r\n this.customViewports = 0;\r\n\r\n /**\r\n * This system Scene is created during `bootQueue` and is a default\r\n * empty Scene that lives outside of the Scene list, but can be used\r\n * by plugins and managers that need access to a live Scene, without\r\n * being tied to one.\r\n *\r\n * @name Phaser.Scenes.SceneManager#systemScene\r\n * @type {Phaser.Scene}\r\n * @since 3.60.0\r\n */\r\n this.systemScene;\r\n\r\n if (sceneConfig)\r\n {\r\n if (!Array.isArray(sceneConfig))\r\n {\r\n sceneConfig = [ sceneConfig ];\r\n }\r\n\r\n for (var i = 0; i < sceneConfig.length; i++)\r\n {\r\n // The i === 0 part just autostarts the first Scene given (unless it says otherwise in its config)\r\n this._pending.push({\r\n key: 'default',\r\n scene: sceneConfig[i],\r\n autoStart: (i === 0),\r\n data: {}\r\n });\r\n }\r\n }\r\n\r\n game.events.once(GameEvents.READY, this.bootQueue, this);\r\n },\r\n\r\n /**\r\n * Internal first-time Scene boot handler.\r\n *\r\n * @method Phaser.Scenes.SceneManager#bootQueue\r\n * @private\r\n * @fires Phaser.Core.Events#SYSTEM_READY\r\n * @since 3.2.0\r\n */\r\n bootQueue: function ()\r\n {\r\n if (this.isBooted)\r\n {\r\n return;\r\n }\r\n\r\n // Create the system Scene\r\n this.systemScene = this.createSceneFromInstance('__SYSTEM', new Scene());\r\n\r\n this.game.events.emit(GameEvents.SYSTEM_READY, this.systemScene, this);\r\n\r\n var i;\r\n var entry;\r\n var key;\r\n var sceneConfig;\r\n\r\n for (i = 0; i < this._pending.length; i++)\r\n {\r\n entry = this._pending[i];\r\n\r\n key = entry.key;\r\n sceneConfig = entry.scene;\r\n\r\n var newScene;\r\n\r\n if (sceneConfig instanceof Scene)\r\n {\r\n newScene = this.createSceneFromInstance(key, sceneConfig);\r\n }\r\n else if (typeof sceneConfig === 'object')\r\n {\r\n newScene = this.createSceneFromObject(key, sceneConfig);\r\n }\r\n else if (typeof sceneConfig === 'function')\r\n {\r\n newScene = this.createSceneFromFunction(key, sceneConfig);\r\n }\r\n\r\n // Replace key in case the scene changed it\r\n key = newScene.sys.settings.key;\r\n\r\n this.keys[key] = newScene;\r\n\r\n this.scenes.push(newScene);\r\n\r\n // Any data to inject?\r\n if (this._data[key])\r\n {\r\n newScene.sys.settings.data = this._data[key].data;\r\n\r\n if (this._data[key].autoStart)\r\n {\r\n entry.autoStart = true;\r\n }\r\n }\r\n\r\n if (entry.autoStart || newScene.sys.settings.active)\r\n {\r\n this._start.push(key);\r\n }\r\n }\r\n\r\n // Clear the pending lists\r\n this._pending.length = 0;\r\n\r\n this._data = {};\r\n\r\n this.isBooted = true;\r\n\r\n // _start might have been populated by the above\r\n for (i = 0; i < this._start.length; i++)\r\n {\r\n entry = this._start[i];\r\n\r\n this.start(entry);\r\n }\r\n\r\n this._start.length = 0;\r\n },\r\n\r\n /**\r\n * Process the Scene operations queue.\r\n *\r\n * @method Phaser.Scenes.SceneManager#processQueue\r\n * @since 3.0.0\r\n */\r\n processQueue: function ()\r\n {\r\n var pendingLength = this._pending.length;\r\n var queueLength = this._queue.length;\r\n\r\n if (pendingLength === 0 && queueLength === 0)\r\n {\r\n return;\r\n }\r\n\r\n var i;\r\n var entry;\r\n\r\n if (pendingLength)\r\n {\r\n for (i = 0; i < pendingLength; i++)\r\n {\r\n entry = this._pending[i];\r\n\r\n this.add(entry.key, entry.scene, entry.autoStart, entry.data);\r\n }\r\n\r\n // _start might have been populated by this.add\r\n for (i = 0; i < this._start.length; i++)\r\n {\r\n entry = this._start[i];\r\n\r\n this.start(entry);\r\n }\r\n\r\n // Clear the pending lists\r\n this._start.length = 0;\r\n this._pending.length = 0;\r\n }\r\n\r\n for (i = 0; i < this._queue.length; i++)\r\n {\r\n entry = this._queue[i];\r\n\r\n this[entry.op](entry.keyA, entry.keyB, entry.data);\r\n }\r\n\r\n this._queue.length = 0;\r\n },\r\n\r\n /**\r\n * Adds a new Scene into the SceneManager.\r\n * You must give each Scene a unique key by which you'll identify it.\r\n *\r\n * The `sceneConfig` can be:\r\n *\r\n * * A `Phaser.Scene` object, or an object that extends it.\r\n * * A plain JavaScript object\r\n * * A JavaScript ES6 Class that extends `Phaser.Scene`\r\n * * A JavaScript ES5 prototype based Class\r\n * * A JavaScript function\r\n *\r\n * If a function is given then a new Scene will be created by calling it.\r\n *\r\n * @method Phaser.Scenes.SceneManager#add\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - A unique key used to reference the Scene, i.e. `MainMenu` or `Level1`.\r\n * @param {(Phaser.Types.Scenes.SceneType)} sceneConfig - The config for the Scene\r\n * @param {boolean} [autoStart=false] - If `true` the Scene will be started immediately after being added.\r\n * @param {object} [data] - Optional data object. This will be set as `Scene.settings.data` and passed to `Scene.init`, and `Scene.create`.\r\n *\r\n * @return {?Phaser.Scene} The added Scene, if it was added immediately, otherwise `null`.\r\n */\r\n add: function (key, sceneConfig, autoStart, data)\r\n {\r\n if (autoStart === undefined) { autoStart = false; }\r\n if (data === undefined) { data = {}; }\r\n\r\n // If processing or not booted then put scene into a holding pattern\r\n if (this.isProcessing || !this.isBooted)\r\n {\r\n this._pending.push({\r\n key: key,\r\n scene: sceneConfig,\r\n autoStart: autoStart,\r\n data: data\r\n });\r\n\r\n if (!this.isBooted)\r\n {\r\n this._data[key] = { data: data };\r\n }\r\n\r\n return null;\r\n }\r\n\r\n key = this.getKey(key, sceneConfig);\r\n\r\n var newScene;\r\n\r\n if (sceneConfig instanceof Scene)\r\n {\r\n newScene = this.createSceneFromInstance(key, sceneConfig);\r\n }\r\n else if (typeof sceneConfig === 'object')\r\n {\r\n sceneConfig.key = key;\r\n\r\n newScene = this.createSceneFromObject(key, sceneConfig);\r\n }\r\n else if (typeof sceneConfig === 'function')\r\n {\r\n newScene = this.createSceneFromFunction(key, sceneConfig);\r\n }\r\n\r\n // Any data to inject?\r\n newScene.sys.settings.data = data;\r\n\r\n // Replace key in case the scene changed it\r\n key = newScene.sys.settings.key;\r\n\r\n this.keys[key] = newScene;\r\n\r\n this.scenes.push(newScene);\r\n\r\n if (autoStart || newScene.sys.settings.active)\r\n {\r\n if (this._pending.length)\r\n {\r\n this._start.push(key);\r\n }\r\n else\r\n {\r\n this.start(key);\r\n }\r\n }\r\n\r\n return newScene;\r\n },\r\n\r\n /**\r\n * Removes a Scene from the SceneManager.\r\n *\r\n * The Scene is removed from the local scenes array, it's key is cleared from the keys\r\n * cache and Scene.Systems.destroy is then called on it.\r\n *\r\n * If the SceneManager is processing the Scenes when this method is called it will\r\n * queue the operation for the next update sequence.\r\n *\r\n * @method Phaser.Scenes.SceneManager#remove\r\n * @since 3.2.0\r\n *\r\n * @param {string} key - A unique key used to reference the Scene, i.e. `MainMenu` or `Level1`.\r\n *\r\n * @return {this} This Scene Manager instance.\r\n */\r\n remove: function (key)\r\n {\r\n if (this.isProcessing)\r\n {\r\n return this.queueOp('remove', key);\r\n }\r\n\r\n var sceneToRemove = this.getScene(key);\r\n\r\n if (!sceneToRemove || sceneToRemove.sys.isTransitioning())\r\n {\r\n return this;\r\n }\r\n\r\n var index = this.scenes.indexOf(sceneToRemove);\r\n var sceneKey = sceneToRemove.sys.settings.key;\r\n\r\n if (index > -1)\r\n {\r\n delete this.keys[sceneKey];\r\n this.scenes.splice(index, 1);\r\n\r\n if (this._start.indexOf(sceneKey) > -1)\r\n {\r\n index = this._start.indexOf(sceneKey);\r\n this._start.splice(index, 1);\r\n }\r\n\r\n sceneToRemove.sys.destroy();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Boot the given Scene.\r\n *\r\n * @method Phaser.Scenes.SceneManager#bootScene\r\n * @private\r\n * @fires Phaser.Scenes.Events#TRANSITION_INIT\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to boot.\r\n */\r\n bootScene: function (scene)\r\n {\r\n var sys = scene.sys;\r\n var settings = sys.settings;\r\n\r\n sys.sceneUpdate = NOOP;\r\n\r\n if (scene.init)\r\n {\r\n scene.init.call(scene, settings.data);\r\n\r\n settings.status = CONST.INIT;\r\n\r\n if (settings.isTransition)\r\n {\r\n sys.events.emit(Events.TRANSITION_INIT, settings.transitionFrom, settings.transitionDuration);\r\n }\r\n }\r\n\r\n var loader;\r\n\r\n if (sys.load)\r\n {\r\n loader = sys.load;\r\n\r\n loader.reset();\r\n }\r\n\r\n if (loader && scene.preload)\r\n {\r\n scene.preload.call(scene);\r\n\r\n settings.status = CONST.LOADING;\r\n\r\n // Start the loader going as we have something in the queue\r\n loader.once(LoaderEvents.COMPLETE, this.loadComplete, this);\r\n\r\n loader.start();\r\n }\r\n else\r\n {\r\n // No preload? Then there was nothing to load either\r\n this.create(scene);\r\n }\r\n },\r\n\r\n /**\r\n * Handles load completion for a Scene's Loader.\r\n *\r\n * Starts the Scene that the Loader belongs to.\r\n *\r\n * @method Phaser.Scenes.SceneManager#loadComplete\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - The loader that has completed loading.\r\n */\r\n loadComplete: function (loader)\r\n {\r\n this.create(loader.scene);\r\n },\r\n\r\n /**\r\n * Handle payload completion for a Scene.\r\n *\r\n * @method Phaser.Scenes.SceneManager#payloadComplete\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Loader.LoaderPlugin} loader - The loader that has completed loading its Scene's payload.\r\n */\r\n payloadComplete: function (loader)\r\n {\r\n this.bootScene(loader.scene);\r\n },\r\n\r\n /**\r\n * Updates the Scenes.\r\n *\r\n * @method Phaser.Scenes.SceneManager#update\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - Time elapsed.\r\n * @param {number} delta - Delta time from the last update.\r\n */\r\n update: function (time, delta)\r\n {\r\n this.processQueue();\r\n\r\n this.isProcessing = true;\r\n\r\n // Loop through the active scenes in reverse order\r\n for (var i = this.scenes.length - 1; i >= 0; i--)\r\n {\r\n var sys = this.scenes[i].sys;\r\n\r\n if (sys.settings.status > CONST.START && sys.settings.status <= CONST.RUNNING)\r\n {\r\n sys.step(time, delta);\r\n }\r\n\r\n if (sys.scenePlugin && sys.scenePlugin._target)\r\n {\r\n sys.scenePlugin.step(time, delta);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Renders the Scenes.\r\n *\r\n * @method Phaser.Scenes.SceneManager#render\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)} renderer - The renderer to use.\r\n */\r\n render: function (renderer)\r\n {\r\n // Loop through the scenes in forward order\r\n for (var i = 0; i < this.scenes.length; i++)\r\n {\r\n var sys = this.scenes[i].sys;\r\n\r\n if (sys.settings.visible && sys.settings.status >= CONST.LOADING && sys.settings.status < CONST.SLEEPING)\r\n {\r\n sys.render(renderer);\r\n }\r\n }\r\n\r\n this.isProcessing = false;\r\n },\r\n\r\n /**\r\n * Calls the given Scene's {@link Phaser.Scene#create} method and updates its status.\r\n *\r\n * @method Phaser.Scenes.SceneManager#create\r\n * @private\r\n * @fires Phaser.Scenes.Events#CREATE\r\n * @fires Phaser.Scenes.Events#TRANSITION_INIT\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to create.\r\n */\r\n create: function (scene)\r\n {\r\n var sys = scene.sys;\r\n var settings = sys.settings;\r\n\r\n if (scene.create)\r\n {\r\n settings.status = CONST.CREATING;\r\n\r\n scene.create.call(scene, settings.data);\r\n\r\n if (settings.status === CONST.DESTROYED)\r\n {\r\n return;\r\n }\r\n }\r\n\r\n if (settings.isTransition)\r\n {\r\n sys.events.emit(Events.TRANSITION_START, settings.transitionFrom, settings.transitionDuration);\r\n }\r\n\r\n // If the Scene has an update function we'll set it now, otherwise it'll remain as NOOP\r\n if (scene.update)\r\n {\r\n sys.sceneUpdate = scene.update;\r\n }\r\n\r\n settings.status = CONST.RUNNING;\r\n\r\n sys.events.emit(Events.CREATE, scene);\r\n },\r\n\r\n /**\r\n * Creates and initializes a Scene from a function.\r\n *\r\n * @method Phaser.Scenes.SceneManager#createSceneFromFunction\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key of the Scene.\r\n * @param {function} scene - The function to create the Scene from.\r\n *\r\n * @return {Phaser.Scene} The created Scene.\r\n */\r\n createSceneFromFunction: function (key, scene)\r\n {\r\n var newScene = new scene();\r\n\r\n if (newScene instanceof Scene)\r\n {\r\n var configKey = newScene.sys.settings.key;\r\n\r\n if (configKey !== '')\r\n {\r\n key = configKey;\r\n }\r\n\r\n if (this.keys.hasOwnProperty(key))\r\n {\r\n throw new Error('Cannot add Scene with duplicate key: ' + key);\r\n }\r\n\r\n return this.createSceneFromInstance(key, newScene);\r\n }\r\n else\r\n {\r\n newScene.sys = new Systems(newScene);\r\n\r\n newScene.sys.settings.key = key;\r\n\r\n newScene.sys.init(this.game);\r\n\r\n return newScene;\r\n }\r\n },\r\n\r\n /**\r\n * Creates and initializes a Scene instance.\r\n *\r\n * @method Phaser.Scenes.SceneManager#createSceneFromInstance\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key of the Scene.\r\n * @param {Phaser.Scene} newScene - The Scene instance.\r\n *\r\n * @return {Phaser.Scene} The created Scene.\r\n */\r\n createSceneFromInstance: function (key, newScene)\r\n {\r\n var configKey = newScene.sys.settings.key;\r\n\r\n if (configKey === '')\r\n {\r\n newScene.sys.settings.key = key;\r\n }\r\n\r\n newScene.sys.init(this.game);\r\n\r\n return newScene;\r\n },\r\n\r\n /**\r\n * Creates and initializes a Scene from an Object definition.\r\n *\r\n * @method Phaser.Scenes.SceneManager#createSceneFromObject\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key of the Scene.\r\n * @param {(string|Phaser.Types.Scenes.SettingsConfig|Phaser.Types.Scenes.CreateSceneFromObjectConfig)} sceneConfig - The Scene config.\r\n *\r\n * @return {Phaser.Scene} The created Scene.\r\n */\r\n createSceneFromObject: function (key, sceneConfig)\r\n {\r\n var newScene = new Scene(sceneConfig);\r\n\r\n var configKey = newScene.sys.settings.key;\r\n\r\n if (configKey !== '')\r\n {\r\n key = configKey;\r\n }\r\n else\r\n {\r\n newScene.sys.settings.key = key;\r\n }\r\n\r\n newScene.sys.init(this.game);\r\n\r\n // Extract callbacks\r\n\r\n var defaults = [ 'init', 'preload', 'create', 'update', 'render' ];\r\n\r\n for (var i = 0; i < defaults.length; i++)\r\n {\r\n var sceneCallback = GetValue(sceneConfig, defaults[i], null);\r\n\r\n if (sceneCallback)\r\n {\r\n newScene[defaults[i]] = sceneCallback;\r\n }\r\n }\r\n\r\n // Now let's move across any other functions or properties that may exist in the extend object:\r\n\r\n /*\r\n scene: {\r\n preload: preload,\r\n create: create,\r\n extend: {\r\n hello: 1,\r\n test: 'atari',\r\n addImage: addImage\r\n }\r\n }\r\n */\r\n\r\n if (sceneConfig.hasOwnProperty('extend'))\r\n {\r\n for (var propertyKey in sceneConfig.extend)\r\n {\r\n if (!sceneConfig.extend.hasOwnProperty(propertyKey))\r\n {\r\n continue;\r\n }\r\n\r\n var value = sceneConfig.extend[propertyKey];\r\n\r\n if (propertyKey === 'data' && newScene.hasOwnProperty('data') && typeof value === 'object')\r\n {\r\n // Populate the DataManager\r\n newScene.data.merge(value);\r\n }\r\n else if (propertyKey !== 'sys')\r\n {\r\n newScene[propertyKey] = value;\r\n }\r\n }\r\n }\r\n\r\n return newScene;\r\n },\r\n\r\n /**\r\n * Retrieves the key of a Scene from a Scene config.\r\n *\r\n * @method Phaser.Scenes.SceneManager#getKey\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key to check in the Scene config.\r\n * @param {(Phaser.Scene|Phaser.Types.Scenes.SettingsConfig|function)} sceneConfig - The Scene config.\r\n *\r\n * @return {string} The Scene key.\r\n */\r\n getKey: function (key, sceneConfig)\r\n {\r\n if (!key) { key = 'default'; }\r\n\r\n if (typeof sceneConfig === 'function')\r\n {\r\n return key;\r\n }\r\n else if (sceneConfig instanceof Scene)\r\n {\r\n key = sceneConfig.sys.settings.key;\r\n }\r\n else if (typeof sceneConfig === 'object' && sceneConfig.hasOwnProperty('key'))\r\n {\r\n key = sceneConfig.key;\r\n }\r\n\r\n // By this point it's either 'default' or extracted from the Scene\r\n\r\n if (this.keys.hasOwnProperty(key))\r\n {\r\n throw new Error('Cannot add Scene with duplicate key: ' + key);\r\n }\r\n else\r\n {\r\n return key;\r\n }\r\n },\r\n\r\n /**\r\n * Returns an array of all the current Scenes being managed by this Scene Manager.\r\n *\r\n * You can filter the output by the active state of the Scene and choose to have\r\n * the array returned in normal or reversed order.\r\n *\r\n * @method Phaser.Scenes.SceneManager#getScenes\r\n * @since 3.16.0\r\n *\r\n * @generic {Phaser.Scene[]} T - [$return]\r\n *\r\n * @param {boolean} [isActive=true] - Only include Scene's that are currently active?\r\n * @param {boolean} [inReverse=false] - Return the array of Scenes in reverse?\r\n *\r\n * @return {Phaser.Scene[]} An array containing all of the Scenes in the Scene Manager.\r\n */\r\n getScenes: function (isActive, inReverse)\r\n {\r\n if (isActive === undefined) { isActive = true; }\r\n if (inReverse === undefined) { inReverse = false; }\r\n\r\n var out = [];\r\n var scenes = this.scenes;\r\n\r\n for (var i = 0; i < scenes.length; i++)\r\n {\r\n var scene = scenes[i];\r\n\r\n if (scene && (!isActive || (isActive && scene.sys.isActive())))\r\n {\r\n out.push(scene);\r\n }\r\n }\r\n\r\n return (inReverse) ? out.reverse() : out;\r\n },\r\n\r\n /**\r\n * Retrieves a Scene based on the given key.\r\n *\r\n * If an actual Scene is passed to this method, it can be used to check if\r\n * its currently within the Scene Manager, or not.\r\n *\r\n * @method Phaser.Scenes.SceneManager#getScene\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} key - The key of the Scene to retrieve.\r\n *\r\n * @return {?Phaser.Scene} The Scene, or `null` if no matching Scene was found.\r\n */\r\n getScene: function (key)\r\n {\r\n if (typeof key === 'string')\r\n {\r\n if (this.keys[key])\r\n {\r\n return this.keys[key];\r\n }\r\n }\r\n else\r\n {\r\n for (var i = 0; i < this.scenes.length; i++)\r\n {\r\n if (key === this.scenes[i])\r\n {\r\n return key;\r\n }\r\n }\r\n }\r\n\r\n return null;\r\n },\r\n\r\n /**\r\n * Determines whether a Scene is running.\r\n *\r\n * @method Phaser.Scenes.SceneManager#isActive\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} key - The Scene to check.\r\n *\r\n * @return {boolean} Whether the Scene is running, or `null` if no matching Scene was found.\r\n */\r\n isActive: function (key)\r\n {\r\n var scene = this.getScene(key);\r\n\r\n if (scene)\r\n {\r\n return scene.sys.isActive();\r\n }\r\n\r\n return null;\r\n },\r\n\r\n /**\r\n * Determines whether a Scene is paused.\r\n *\r\n * @method Phaser.Scenes.SceneManager#isPaused\r\n * @since 3.17.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} key - The Scene to check.\r\n *\r\n * @return {boolean} Whether the Scene is paused, or `null` if no matching Scene was found.\r\n */\r\n isPaused: function (key)\r\n {\r\n var scene = this.getScene(key);\r\n\r\n if (scene)\r\n {\r\n return scene.sys.isPaused();\r\n }\r\n\r\n return null;\r\n },\r\n\r\n /**\r\n * Determines whether a Scene is visible.\r\n *\r\n * @method Phaser.Scenes.SceneManager#isVisible\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} key - The Scene to check.\r\n *\r\n * @return {boolean} Whether the Scene is visible, or `null` if no matching Scene was found.\r\n */\r\n isVisible: function (key)\r\n {\r\n var scene = this.getScene(key);\r\n\r\n if (scene)\r\n {\r\n return scene.sys.isVisible();\r\n }\r\n\r\n return null;\r\n },\r\n\r\n /**\r\n * Determines whether a Scene is sleeping.\r\n *\r\n * @method Phaser.Scenes.SceneManager#isSleeping\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} key - The Scene to check.\r\n *\r\n * @return {boolean} Whether the Scene is sleeping, or `null` if no matching Scene was found.\r\n */\r\n isSleeping: function (key)\r\n {\r\n var scene = this.getScene(key);\r\n\r\n if (scene)\r\n {\r\n return scene.sys.isSleeping();\r\n }\r\n\r\n return null;\r\n },\r\n\r\n /**\r\n * Pauses the given Scene.\r\n *\r\n * @method Phaser.Scenes.SceneManager#pause\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} key - The Scene to pause.\r\n * @param {object} [data] - An optional data object that will be passed to the Scene and emitted by its pause event.\r\n *\r\n * @return {this} This Scene Manager instance.\r\n */\r\n pause: function (key, data)\r\n {\r\n var scene = this.getScene(key);\r\n\r\n if (scene)\r\n {\r\n scene.sys.pause(data);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resumes the given Scene.\r\n *\r\n * @method Phaser.Scenes.SceneManager#resume\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} key - The Scene to resume.\r\n * @param {object} [data] - An optional data object that will be passed to the Scene and emitted by its resume event.\r\n *\r\n * @return {this} This Scene Manager instance.\r\n */\r\n resume: function (key, data)\r\n {\r\n var scene = this.getScene(key);\r\n\r\n if (scene)\r\n {\r\n scene.sys.resume(data);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Puts the given Scene to sleep.\r\n *\r\n * @method Phaser.Scenes.SceneManager#sleep\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} key - The Scene to put to sleep.\r\n * @param {object} [data] - An optional data object that will be passed to the Scene and emitted by its sleep event.\r\n *\r\n * @return {this} This Scene Manager instance.\r\n */\r\n sleep: function (key, data)\r\n {\r\n var scene = this.getScene(key);\r\n\r\n if (scene && !scene.sys.isTransitioning())\r\n {\r\n scene.sys.sleep(data);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Awakens the given Scene.\r\n *\r\n * @method Phaser.Scenes.SceneManager#wake\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} key - The Scene to wake up.\r\n * @param {object} [data] - An optional data object that will be passed to the Scene and emitted by its wake event.\r\n *\r\n * @return {this} This Scene Manager instance.\r\n */\r\n wake: function (key, data)\r\n {\r\n var scene = this.getScene(key);\r\n\r\n if (scene)\r\n {\r\n scene.sys.wake(data);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Runs the given Scene.\r\n *\r\n * If the given Scene is paused, it will resume it. If sleeping, it will wake it.\r\n * If not running at all, it will be started.\r\n *\r\n * Use this if you wish to open a modal Scene by calling `pause` on the current\r\n * Scene, then `run` on the modal Scene.\r\n *\r\n * @method Phaser.Scenes.SceneManager#run\r\n * @since 3.10.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} key - The Scene to run.\r\n * @param {object} [data] - A data object that will be passed to the Scene on start, wake, or resume.\r\n *\r\n * @return {this} This Scene Manager instance.\r\n */\r\n run: function (key, data)\r\n {\r\n var scene = this.getScene(key);\r\n\r\n if (!scene)\r\n {\r\n for (var i = 0; i < this._pending.length; i++)\r\n {\r\n if (this._pending[i].key === key)\r\n {\r\n this.queueOp('start', key, data);\r\n break;\r\n }\r\n }\r\n return this;\r\n }\r\n\r\n if (scene.sys.isSleeping())\r\n {\r\n // Sleeping?\r\n scene.sys.wake(data);\r\n }\r\n else if (scene.sys.isPaused())\r\n {\r\n // Paused?\r\n scene.sys.resume(data);\r\n }\r\n else\r\n {\r\n // Not actually running?\r\n this.start(key, data);\r\n }\r\n },\r\n\r\n /**\r\n * Starts the given Scene, if it is not starting, loading, or creating.\r\n *\r\n * If the Scene is running, paused, or sleeping, it will be shutdown and then started.\r\n *\r\n * @method Phaser.Scenes.SceneManager#start\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} key - The Scene to start.\r\n * @param {object} [data] - Optional data object to pass to `Scene.Settings` and `Scene.init`, and `Scene.create`.\r\n *\r\n * @return {this} This Scene Manager instance.\r\n */\r\n start: function (key, data)\r\n {\r\n // If the Scene Manager is not running, then put the Scene into a holding pattern\r\n if (!this.isBooted)\r\n {\r\n this._data[key] = {\r\n autoStart: true,\r\n data: data\r\n };\r\n\r\n return this;\r\n }\r\n\r\n var scene = this.getScene(key);\r\n\r\n if (!scene)\r\n {\r\n console.warn('Scene key not found: ' + key);\r\n return this;\r\n }\r\n\r\n var sys = scene.sys;\r\n var status = sys.settings.status;\r\n\r\n // If the scene is already started but not yet running,\r\n // let it continue.\r\n if (status >= CONST.START && status <= CONST.CREATING)\r\n {\r\n return this;\r\n }\r\n\r\n // If the Scene is already running, paused, or sleeping,\r\n // close it down before starting it again.\r\n else if (status >= CONST.RUNNING && status <= CONST.SLEEPING)\r\n {\r\n sys.shutdown();\r\n\r\n sys.sceneUpdate = NOOP;\r\n\r\n sys.start(data);\r\n }\r\n\r\n // If the Scene is INIT or SHUTDOWN,\r\n // start it directly.\r\n else\r\n {\r\n sys.sceneUpdate = NOOP;\r\n\r\n sys.start(data);\r\n\r\n var loader;\r\n\r\n if (sys.load)\r\n {\r\n loader = sys.load;\r\n }\r\n\r\n // Files payload?\r\n if (loader && sys.settings.hasOwnProperty('pack'))\r\n {\r\n loader.reset();\r\n\r\n if (loader.addPack({ payload: sys.settings.pack }))\r\n {\r\n sys.settings.status = CONST.LOADING;\r\n\r\n loader.once(LoaderEvents.COMPLETE, this.payloadComplete, this);\r\n\r\n loader.start();\r\n\r\n return this;\r\n }\r\n }\r\n }\r\n\r\n this.bootScene(scene);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Stops the given Scene.\r\n *\r\n * @method Phaser.Scenes.SceneManager#stop\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} key - The Scene to stop.\r\n * @param {object} [data] - Optional data object to pass to Scene.shutdown.\r\n *\r\n * @return {this} This Scene Manager instance.\r\n */\r\n stop: function (key, data)\r\n {\r\n var scene = this.getScene(key);\r\n\r\n if (scene && !scene.sys.isTransitioning() && scene.sys.settings.status !== CONST.SHUTDOWN)\r\n {\r\n var loader = scene.sys.load;\r\n\r\n if (loader)\r\n {\r\n loader.off(LoaderEvents.COMPLETE, this.loadComplete, this);\r\n loader.off(LoaderEvents.COMPLETE, this.payloadComplete, this);\r\n }\r\n\r\n scene.sys.shutdown(data);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sleeps one one Scene and starts the other.\r\n *\r\n * @method Phaser.Scenes.SceneManager#switch\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [from,to]\r\n *\r\n * @param {(string|Phaser.Scene)} from - The Scene to sleep.\r\n * @param {(string|Phaser.Scene)} to - The Scene to start.\r\n * @param {object} [data] - Optional data object to pass to `Scene.Settings` and `Scene.init`, and `Scene.create`. It is only passed when the scene starts for the first time.\r\n *\r\n * @return {this} This Scene Manager instance.\r\n */\r\n switch: function (from, to, data)\r\n {\r\n var sceneA = this.getScene(from);\r\n var sceneB = this.getScene(to);\r\n\r\n if (sceneA && sceneB && sceneA !== sceneB)\r\n {\r\n this.sleep(from);\r\n\r\n if (this.isSleeping(to))\r\n {\r\n this.wake(to, data);\r\n }\r\n else\r\n {\r\n this.start(to, data);\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Retrieves a Scene by numeric index.\r\n *\r\n * @method Phaser.Scenes.SceneManager#getAt\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {T} - [$return]\r\n *\r\n * @param {number} index - The index of the Scene to retrieve.\r\n *\r\n * @return {(Phaser.Scene|undefined)} The Scene.\r\n */\r\n getAt: function (index)\r\n {\r\n return this.scenes[index];\r\n },\r\n\r\n /**\r\n * Retrieves the numeric index of a Scene.\r\n *\r\n * @method Phaser.Scenes.SceneManager#getIndex\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} key - The key of the Scene.\r\n *\r\n * @return {number} The index of the Scene.\r\n */\r\n getIndex: function (key)\r\n {\r\n var scene = this.getScene(key);\r\n\r\n return this.scenes.indexOf(scene);\r\n },\r\n\r\n /**\r\n * Brings a Scene to the top of the Scenes list.\r\n *\r\n * This means it will render above all other Scenes.\r\n *\r\n * @method Phaser.Scenes.SceneManager#bringToTop\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} key - The Scene to move.\r\n *\r\n * @return {this} This Scene Manager instance.\r\n */\r\n bringToTop: function (key)\r\n {\r\n if (this.isProcessing)\r\n {\r\n return this.queueOp('bringToTop', key);\r\n }\r\n\r\n var index = this.getIndex(key);\r\n var scenes = this.scenes;\r\n\r\n if (index !== -1 && index < scenes.length)\r\n {\r\n var scene = this.getScene(key);\r\n\r\n scenes.splice(index, 1);\r\n scenes.push(scene);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sends a Scene to the back of the Scenes list.\r\n *\r\n * This means it will render below all other Scenes.\r\n *\r\n * @method Phaser.Scenes.SceneManager#sendToBack\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} key - The Scene to move.\r\n *\r\n * @return {this} This Scene Manager instance.\r\n */\r\n sendToBack: function (key)\r\n {\r\n if (this.isProcessing)\r\n {\r\n return this.queueOp('sendToBack', key);\r\n }\r\n\r\n var index = this.getIndex(key);\r\n\r\n if (index !== -1 && index > 0)\r\n {\r\n var scene = this.getScene(key);\r\n\r\n this.scenes.splice(index, 1);\r\n this.scenes.unshift(scene);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Moves a Scene down one position in the Scenes list.\r\n *\r\n * @method Phaser.Scenes.SceneManager#moveDown\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} key - The Scene to move.\r\n *\r\n * @return {this} This Scene Manager instance.\r\n */\r\n moveDown: function (key)\r\n {\r\n if (this.isProcessing)\r\n {\r\n return this.queueOp('moveDown', key);\r\n }\r\n\r\n var indexA = this.getIndex(key);\r\n\r\n if (indexA > 0)\r\n {\r\n var indexB = indexA - 1;\r\n var sceneA = this.getScene(key);\r\n var sceneB = this.getAt(indexB);\r\n\r\n this.scenes[indexA] = sceneB;\r\n this.scenes[indexB] = sceneA;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Moves a Scene up one position in the Scenes list.\r\n *\r\n * @method Phaser.Scenes.SceneManager#moveUp\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} key - The Scene to move.\r\n *\r\n * @return {this} This Scene Manager instance.\r\n */\r\n moveUp: function (key)\r\n {\r\n if (this.isProcessing)\r\n {\r\n return this.queueOp('moveUp', key);\r\n }\r\n\r\n var indexA = this.getIndex(key);\r\n\r\n if (indexA < this.scenes.length - 1)\r\n {\r\n var indexB = indexA + 1;\r\n var sceneA = this.getScene(key);\r\n var sceneB = this.getAt(indexB);\r\n\r\n this.scenes[indexA] = sceneB;\r\n this.scenes[indexB] = sceneA;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Moves a Scene so it is immediately above another Scene in the Scenes list.\r\n * If the Scene is already above the other, it isn't moved.\r\n *\r\n * This means it will render over the top of the other Scene.\r\n *\r\n * @method Phaser.Scenes.SceneManager#moveAbove\r\n * @since 3.2.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [keyA,keyB]\r\n *\r\n * @param {(string|Phaser.Scene)} keyA - The Scene that Scene B will be moved above.\r\n * @param {(string|Phaser.Scene)} keyB - The Scene to be moved.\r\n *\r\n * @return {this} This Scene Manager instance.\r\n */\r\n moveAbove: function (keyA, keyB)\r\n {\r\n if (keyA === keyB)\r\n {\r\n return this;\r\n }\r\n\r\n if (this.isProcessing)\r\n {\r\n return this.queueOp('moveAbove', keyA, keyB);\r\n }\r\n\r\n var indexA = this.getIndex(keyA);\r\n var indexB = this.getIndex(keyB);\r\n\r\n if (indexA !== -1 && indexB !== -1 && indexB < indexA)\r\n {\r\n var tempScene = this.getAt(indexB);\r\n\r\n // Remove\r\n this.scenes.splice(indexB, 1);\r\n\r\n // Add in new location\r\n this.scenes.splice(indexA + (indexB > indexA), 0, tempScene);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Moves a Scene so it is immediately below another Scene in the Scenes list.\r\n * If the Scene is already below the other, it isn't moved.\r\n *\r\n * This means it will render behind the other Scene.\r\n *\r\n * @method Phaser.Scenes.SceneManager#moveBelow\r\n * @since 3.2.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [keyA,keyB]\r\n *\r\n * @param {(string|Phaser.Scene)} keyA - The Scene that Scene B will be moved below.\r\n * @param {(string|Phaser.Scene)} keyB - The Scene to be moved.\r\n *\r\n * @return {this} This Scene Manager instance.\r\n */\r\n moveBelow: function (keyA, keyB)\r\n {\r\n if (keyA === keyB)\r\n {\r\n return this;\r\n }\r\n\r\n if (this.isProcessing)\r\n {\r\n return this.queueOp('moveBelow', keyA, keyB);\r\n }\r\n\r\n var indexA = this.getIndex(keyA);\r\n var indexB = this.getIndex(keyB);\r\n\r\n if (indexA !== -1 && indexB !== -1 && indexB > indexA)\r\n {\r\n var tempScene = this.getAt(indexB);\r\n\r\n // Remove\r\n this.scenes.splice(indexB, 1);\r\n\r\n if (indexA === 0)\r\n {\r\n this.scenes.unshift(tempScene);\r\n }\r\n else\r\n {\r\n // Add in new location\r\n this.scenes.splice(indexA - (indexB < indexA), 0, tempScene);\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Queue a Scene operation for the next update.\r\n *\r\n * @method Phaser.Scenes.SceneManager#queueOp\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {string} op - The operation to perform.\r\n * @param {(string|Phaser.Scene)} keyA - Scene A.\r\n * @param {(any|string|Phaser.Scene)} [keyB] - Scene B, or a data object.\r\n * @param {any} [data] - Optional data object to pass.\r\n *\r\n * @return {this} This Scene Manager instance.\r\n */\r\n queueOp: function (op, keyA, keyB, data)\r\n {\r\n this._queue.push({ op: op, keyA: keyA, keyB: keyB, data: data });\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Swaps the positions of two Scenes in the Scenes list.\r\n *\r\n * @method Phaser.Scenes.SceneManager#swapPosition\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [keyA,keyB]\r\n *\r\n * @param {(string|Phaser.Scene)} keyA - The first Scene to swap.\r\n * @param {(string|Phaser.Scene)} keyB - The second Scene to swap.\r\n *\r\n * @return {this} This Scene Manager instance.\r\n */\r\n swapPosition: function (keyA, keyB)\r\n {\r\n if (keyA === keyB)\r\n {\r\n return this;\r\n }\r\n\r\n if (this.isProcessing)\r\n {\r\n return this.queueOp('swapPosition', keyA, keyB);\r\n }\r\n\r\n var indexA = this.getIndex(keyA);\r\n var indexB = this.getIndex(keyB);\r\n\r\n if (indexA !== indexB && indexA !== -1 && indexB !== -1)\r\n {\r\n var tempScene = this.getAt(indexA);\r\n\r\n this.scenes[indexA] = this.scenes[indexB];\r\n this.scenes[indexB] = tempScene;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Dumps debug information about each Scene to the developer console.\r\n *\r\n * @method Phaser.Scenes.SceneManager#dump\r\n * @since 3.2.0\r\n */\r\n dump: function ()\r\n {\r\n var out = [];\r\n var map = [ 'pending', 'init', 'start', 'loading', 'creating', 'running', 'paused', 'sleeping', 'shutdown', 'destroyed' ];\r\n\r\n for (var i = 0; i < this.scenes.length; i++)\r\n {\r\n var sys = this.scenes[i].sys;\r\n\r\n var key = (sys.settings.visible && (sys.settings.status === CONST.RUNNING || sys.settings.status === CONST.PAUSED)) ? '[*] ' : '[-] ';\r\n key += sys.settings.key + ' (' + map[sys.settings.status] + ')';\r\n\r\n out.push(key);\r\n }\r\n\r\n console.log(out.join('\\n'));\r\n },\r\n\r\n /**\r\n * Destroy this Scene Manager and all of its systems.\r\n *\r\n * This process cannot be reversed.\r\n *\r\n * This method is called automatically when a Phaser Game instance is destroyed.\r\n *\r\n * @method Phaser.Scenes.SceneManager#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n for (var i = 0; i < this.scenes.length; i++)\r\n {\r\n var sys = this.scenes[i].sys;\r\n\r\n sys.destroy();\r\n }\r\n\r\n this.systemScene.sys.destroy();\r\n\r\n this.update = NOOP;\r\n\r\n this.scenes = [];\r\n\r\n this._pending = [];\r\n this._start = [];\r\n this._queue = [];\r\n\r\n this.game = null;\r\n this.systemScene = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = SceneManager;\r\n\n\n/***/ }),\n\n/***/ 52209:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Clamp = __webpack_require__(45319);\r\nvar Class = __webpack_require__(83419);\r\nvar Events = __webpack_require__(44594);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar PluginCache = __webpack_require__(37277);\r\n\r\n/**\r\n * @classdesc\r\n * The Scene Plugin is the main interface to the Scene Manager and allows you to control\r\n * any Scene running in your game. You should always use this plugin. By default, it is\r\n * mapped to the Scene property `this.scene`. Meaning, from within a Scene, you can call\r\n * methods such as `this.scene.start()`.\r\n *\r\n * Note that nearly all methods in this class are run on a queue-basis and not\r\n * immediately. For example, calling `this.scene.launch('SceneB')` will try to\r\n * launch SceneB when the Scene Manager next updates, which is at the start of the game\r\n * step. All operations are queued and run in the order in which they are invoked here.\r\n *\r\n * @class ScenePlugin\r\n * @memberof Phaser.Scenes\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene that this ScenePlugin belongs to.\r\n */\r\nvar ScenePlugin = new Class({\r\n\r\n initialize:\r\n\r\n function ScenePlugin (scene)\r\n {\r\n /**\r\n * The Scene that this ScenePlugin belongs to.\r\n *\r\n * @name Phaser.Scenes.ScenePlugin#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.0.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * The Scene Systems instance of the Scene that this ScenePlugin belongs to.\r\n *\r\n * @name Phaser.Scenes.ScenePlugin#systems\r\n * @type {Phaser.Scenes.Systems}\r\n * @since 3.0.0\r\n */\r\n this.systems = scene.sys;\r\n\r\n /**\r\n * The settings of the Scene this ScenePlugin belongs to.\r\n *\r\n * @name Phaser.Scenes.ScenePlugin#settings\r\n * @type {Phaser.Types.Scenes.SettingsObject}\r\n * @since 3.0.0\r\n */\r\n this.settings = scene.sys.settings;\r\n\r\n /**\r\n * The key of the Scene this ScenePlugin belongs to.\r\n *\r\n * @name Phaser.Scenes.ScenePlugin#key\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.key = scene.sys.settings.key;\r\n\r\n /**\r\n * The Game's SceneManager.\r\n *\r\n * @name Phaser.Scenes.ScenePlugin#manager\r\n * @type {Phaser.Scenes.SceneManager}\r\n * @since 3.0.0\r\n */\r\n this.manager = scene.sys.game.scene;\r\n\r\n /**\r\n * If this Scene is currently transitioning to another, this holds\r\n * the current percentage of the transition progress, between 0 and 1.\r\n *\r\n * @name Phaser.Scenes.ScenePlugin#transitionProgress\r\n * @type {number}\r\n * @since 3.5.0\r\n */\r\n this.transitionProgress = 0;\r\n\r\n /**\r\n * Transition elapsed timer.\r\n *\r\n * @name Phaser.Scenes.ScenePlugin#_elapsed\r\n * @type {number}\r\n * @private\r\n * @since 3.5.0\r\n */\r\n this._elapsed = 0;\r\n\r\n /**\r\n * Transition elapsed timer.\r\n *\r\n * @name Phaser.Scenes.ScenePlugin#_target\r\n * @type {?Phaser.Scene}\r\n * @private\r\n * @since 3.5.0\r\n */\r\n this._target = null;\r\n\r\n /**\r\n * Transition duration.\r\n *\r\n * @name Phaser.Scenes.ScenePlugin#_duration\r\n * @type {number}\r\n * @private\r\n * @since 3.5.0\r\n */\r\n this._duration = 0;\r\n\r\n /**\r\n * Transition callback.\r\n *\r\n * @name Phaser.Scenes.ScenePlugin#_onUpdate\r\n * @type {function}\r\n * @private\r\n * @since 3.5.0\r\n */\r\n this._onUpdate;\r\n\r\n /**\r\n * Transition callback scope.\r\n *\r\n * @name Phaser.Scenes.ScenePlugin#_onUpdateScope\r\n * @type {object}\r\n * @private\r\n * @since 3.5.0\r\n */\r\n this._onUpdateScope;\r\n\r\n /**\r\n * Will this Scene sleep (true) after the transition, or stop (false)\r\n *\r\n * @name Phaser.Scenes.ScenePlugin#_willSleep\r\n * @type {boolean}\r\n * @private\r\n * @since 3.5.0\r\n */\r\n this._willSleep = false;\r\n\r\n /**\r\n * Will this Scene be removed from the Scene Manager after the transition completes?\r\n *\r\n * @name Phaser.Scenes.ScenePlugin#_willRemove\r\n * @type {boolean}\r\n * @private\r\n * @since 3.5.0\r\n */\r\n this._willRemove = false;\r\n\r\n scene.sys.events.once(Events.BOOT, this.boot, this);\r\n scene.sys.events.on(Events.START, this.pluginStart, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically, only once, when the Scene is first created.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#boot\r\n * @private\r\n * @since 3.0.0\r\n */\r\n boot: function ()\r\n {\r\n this.systems.events.once(Events.DESTROY, this.destroy, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically by the Scene when it is starting up.\r\n * It is responsible for creating local systems, properties and listening for Scene events.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#pluginStart\r\n * @private\r\n * @since 3.5.0\r\n */\r\n pluginStart: function ()\r\n {\r\n this._target = null;\r\n\r\n this.systems.events.once(Events.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * Shutdown this Scene and run the given one.\r\n *\r\n * This will happen at the next Scene Manager update, not immediately.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#start\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} [key] - The Scene to start.\r\n * @param {object} [data] - The Scene data. If no value is given it will not overwrite any previous data that may exist.\r\n *\r\n * @return {this} This Scene Plugin instance.\r\n */\r\n start: function (key, data)\r\n {\r\n if (key === undefined) { key = this.key; }\r\n\r\n this.manager.queueOp('stop', this.key);\r\n this.manager.queueOp('start', key, data);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Restarts this Scene.\r\n *\r\n * This will happen at the next Scene Manager update, not immediately.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#restart\r\n * @since 3.4.0\r\n *\r\n * @param {object} [data] - The Scene data. If no value is given it will not overwrite any previous data that may exist.\r\n *\r\n * @return {this} This Scene Plugin instance.\r\n */\r\n restart: function (data)\r\n {\r\n var key = this.key;\r\n\r\n this.manager.queueOp('stop', key);\r\n this.manager.queueOp('start', key, data);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * This will start a transition from the current Scene to the target Scene given.\r\n *\r\n * The target Scene cannot be the same as the current Scene.\r\n *\r\n * The transition will last for the duration specified in milliseconds.\r\n *\r\n * You can have the target Scene moved above or below this one in the display list.\r\n *\r\n * You can specify an update callback. This callback will be invoked _every frame_ for the duration\r\n * of the transition.\r\n *\r\n * This Scene can either be sent to sleep at the end of the transition, or stopped. The default is to stop.\r\n *\r\n * There are also 5 transition related events: This scene will emit the event `transitionout` when\r\n * the transition begins, which is typically the frame after calling this method.\r\n *\r\n * The target Scene will emit the event `transitioninit` when that Scene's `init` method is called.\r\n * It will then emit the event `transitionstart` when its `create` method is called.\r\n * If the Scene was sleeping and has been woken up, it will emit the event `transitionwake` instead of these two,\r\n * as the Scenes `init` and `create` methods are not invoked when a Scene wakes up.\r\n *\r\n * When the duration of the transition has elapsed it will emit the event `transitioncomplete`.\r\n * These events are cleared of all listeners when the Scene shuts down, but not if it is sent to sleep.\r\n *\r\n * It's important to understand that the duration of the transition begins the moment you call this method.\r\n * If the Scene you are transitioning to includes delayed processes, such as waiting for files to load, the\r\n * time still counts down even while that is happening. If the game itself pauses, or something else causes\r\n * this Scenes update loop to stop, then the transition will also pause for that duration. There are\r\n * checks in place to prevent you accidentally stopping a transitioning Scene but if you've got code to\r\n * override this understand that until the target Scene completes it might never be unlocked for input events.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#transition\r\n * @fires Phaser.Scenes.Events#TRANSITION_OUT\r\n * @since 3.5.0\r\n *\r\n * @param {Phaser.Types.Scenes.SceneTransitionConfig} config - The transition configuration object.\r\n *\r\n * @return {boolean} `true` is the transition was started, otherwise `false`.\r\n */\r\n transition: function (config)\r\n {\r\n if (config === undefined) { config = {}; }\r\n\r\n var key = GetFastValue(config, 'target', false);\r\n\r\n var target = this.manager.getScene(key);\r\n\r\n if (!key || !this.checkValidTransition(target))\r\n {\r\n return false;\r\n }\r\n\r\n var duration = GetFastValue(config, 'duration', 1000);\r\n\r\n this._elapsed = 0;\r\n this._target = target;\r\n this._duration = duration;\r\n this._willSleep = GetFastValue(config, 'sleep', false);\r\n this._willRemove = GetFastValue(config, 'remove', false);\r\n\r\n var callback = GetFastValue(config, 'onUpdate', null);\r\n\r\n if (callback)\r\n {\r\n this._onUpdate = callback;\r\n this._onUpdateScope = GetFastValue(config, 'onUpdateScope', this.scene);\r\n }\r\n\r\n var allowInput = GetFastValue(config, 'allowInput', false);\r\n\r\n this.settings.transitionAllowInput = allowInput;\r\n\r\n var targetSettings = target.sys.settings;\r\n\r\n targetSettings.isTransition = true;\r\n targetSettings.transitionFrom = this.scene;\r\n targetSettings.transitionDuration = duration;\r\n targetSettings.transitionAllowInput = allowInput;\r\n\r\n if (GetFastValue(config, 'moveAbove', false))\r\n {\r\n this.manager.moveAbove(this.key, key);\r\n }\r\n else if (GetFastValue(config, 'moveBelow', false))\r\n {\r\n this.manager.moveBelow(this.key, key);\r\n }\r\n\r\n if (target.sys.isSleeping())\r\n {\r\n target.sys.wake(GetFastValue(config, 'data'));\r\n }\r\n else\r\n {\r\n this.manager.start(key, GetFastValue(config, 'data'));\r\n }\r\n\r\n var onStartCallback = GetFastValue(config, 'onStart', null);\r\n\r\n var onStartScope = GetFastValue(config, 'onStartScope', this.scene);\r\n\r\n if (onStartCallback)\r\n {\r\n onStartCallback.call(onStartScope, this.scene, target, duration);\r\n }\r\n\r\n this.systems.events.emit(Events.TRANSITION_OUT, target, duration);\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * Checks to see if this Scene can transition to the target Scene or not.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#checkValidTransition\r\n * @private\r\n * @since 3.5.0\r\n *\r\n * @param {Phaser.Scene} target - The Scene to test against.\r\n *\r\n * @return {boolean} `true` if this Scene can transition, otherwise `false`.\r\n */\r\n checkValidTransition: function (target)\r\n {\r\n // Not a valid target if it doesn't exist, isn't active or is already transitioning in or out\r\n if (!target || target.sys.isActive() || target.sys.isTransitioning() || target === this.scene || this.systems.isTransitioning())\r\n {\r\n return false;\r\n }\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * A single game step. This is only called if the parent Scene is transitioning\r\n * out to another Scene.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#step\r\n * @private\r\n * @since 3.5.0\r\n *\r\n * @param {number} time - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n */\r\n step: function (time, delta)\r\n {\r\n this._elapsed += delta;\r\n\r\n this.transitionProgress = Clamp(this._elapsed / this._duration, 0, 1);\r\n\r\n if (this._onUpdate)\r\n {\r\n this._onUpdate.call(this._onUpdateScope, this.transitionProgress);\r\n }\r\n\r\n if (this._elapsed >= this._duration)\r\n {\r\n this.transitionComplete();\r\n }\r\n },\r\n\r\n /**\r\n * Called by `step` when the transition out of this scene to another is over.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#transitionComplete\r\n * @private\r\n * @fires Phaser.Scenes.Events#TRANSITION_COMPLETE\r\n * @since 3.5.0\r\n */\r\n transitionComplete: function ()\r\n {\r\n var targetSys = this._target.sys;\r\n var targetSettings = this._target.sys.settings;\r\n\r\n // Notify target scene\r\n targetSys.events.emit(Events.TRANSITION_COMPLETE, this.scene);\r\n\r\n // Clear target scene settings\r\n targetSettings.isTransition = false;\r\n targetSettings.transitionFrom = null;\r\n\r\n // Clear local settings\r\n this._duration = 0;\r\n this._target = null;\r\n this._onUpdate = null;\r\n this._onUpdateScope = null;\r\n\r\n // Now everything is clear we can handle what happens to this Scene\r\n if (this._willRemove)\r\n {\r\n this.manager.remove(this.key);\r\n }\r\n else if (this._willSleep)\r\n {\r\n this.systems.sleep();\r\n }\r\n else\r\n {\r\n this.manager.stop(this.key);\r\n }\r\n },\r\n\r\n /**\r\n * Add the Scene into the Scene Manager and start it if 'autoStart' is true or the Scene config 'active' property is set.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#add\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - A unique key used to reference the Scene, i.e. `MainMenu` or `Level1`.\r\n * @param {(Phaser.Types.Scenes.SceneType)} sceneConfig - The config for the Scene\r\n * @param {boolean} [autoStart=false] - If `true` the Scene will be started immediately after being added.\r\n * @param {object} [data] - Optional data object. This will be set as `Scene.settings.data` and passed to `Scene.init`, and `Scene.create`.\r\n *\r\n * @return {?Phaser.Scene} The added Scene, if it was added immediately, otherwise `null`.\r\n */\r\n add: function (key, sceneConfig, autoStart, data)\r\n {\r\n return this.manager.add(key, sceneConfig, autoStart, data);\r\n },\r\n\r\n /**\r\n * Launch the given Scene and run it in parallel with this one.\r\n *\r\n * This will happen at the next Scene Manager update, not immediately.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#launch\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} key - The Scene to launch.\r\n * @param {object} [data] - The Scene data.\r\n *\r\n * @return {this} This Scene Plugin instance.\r\n */\r\n launch: function (key, data)\r\n {\r\n if (key && key !== this.key)\r\n {\r\n this.manager.queueOp('start', key, data);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Runs the given Scene, but does not change the state of this Scene.\r\n *\r\n * This will happen at the next Scene Manager update, not immediately.\r\n *\r\n * If the given Scene is paused, it will resume it. If sleeping, it will wake it.\r\n * If not running at all, it will be started.\r\n *\r\n * Use this if you wish to open a modal Scene by calling `pause` on the current\r\n * Scene, then `run` on the modal Scene.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#run\r\n * @since 3.10.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} key - The Scene to run.\r\n * @param {object} [data] - A data object that will be passed to the Scene and emitted in its ready, wake, or resume events.\r\n *\r\n * @return {this} This Scene Plugin instance.\r\n */\r\n run: function (key, data)\r\n {\r\n if (key && key !== this.key)\r\n {\r\n this.manager.queueOp('run', key, data);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Pause the Scene - this stops the update step from happening but it still renders.\r\n *\r\n * This will happen at the next Scene Manager update, not immediately.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#pause\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} [key] - The Scene to pause.\r\n * @param {object} [data] - An optional data object that will be passed to the Scene and emitted in its pause event.\r\n *\r\n * @return {this} This Scene Plugin instance.\r\n */\r\n pause: function (key, data)\r\n {\r\n if (key === undefined) { key = this.key; }\r\n\r\n this.manager.queueOp('pause', key, data);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resume the Scene - starts the update loop again.\r\n *\r\n * This will happen at the next Scene Manager update, not immediately.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#resume\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} [key] - The Scene to resume.\r\n * @param {object} [data] - An optional data object that will be passed to the Scene and emitted in its resume event.\r\n *\r\n * @return {this} This Scene Plugin instance.\r\n */\r\n resume: function (key, data)\r\n {\r\n if (key === undefined) { key = this.key; }\r\n\r\n this.manager.queueOp('resume', key, data);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Makes the Scene sleep (no update, no render) but doesn't shutdown.\r\n *\r\n * This will happen at the next Scene Manager update, not immediately.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#sleep\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} [key] - The Scene to put to sleep.\r\n * @param {object} [data] - An optional data object that will be passed to the Scene and emitted in its sleep event.\r\n *\r\n * @return {this} This Scene Plugin instance.\r\n */\r\n sleep: function (key, data)\r\n {\r\n if (key === undefined) { key = this.key; }\r\n\r\n this.manager.queueOp('sleep', key, data);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Makes the Scene wake-up (starts update and render)\r\n *\r\n * This will happen at the next Scene Manager update, not immediately.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#wake\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} [key] - The Scene to wake up.\r\n * @param {object} [data] - An optional data object that will be passed to the Scene and emitted in its wake event.\r\n *\r\n * @return {this} This Scene Plugin instance.\r\n */\r\n wake: function (key, data)\r\n {\r\n if (key === undefined) { key = this.key; }\r\n\r\n this.manager.queueOp('wake', key, data);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Makes this Scene sleep then starts the Scene given.\r\n *\r\n * This will happen at the next Scene Manager update, not immediately.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#switch\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} key - The Scene to start.\r\n * @param {any} [data] - Optional data object to pass to either the Scene `wake` or `start` method.\r\n *\r\n * @return {this} This Scene Plugin instance.\r\n */\r\n switch: function (key, data)\r\n {\r\n if (key !== this.key)\r\n {\r\n this.manager.queueOp('switch', this.key, key, data);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Shutdown the Scene, clearing display list, timers, etc.\r\n *\r\n * This happens at the next Scene Manager update, not immediately.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#stop\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} [key] - The Scene to stop.\r\n * @param {any} [data] - Optional data object to pass to Scene.Systems.shutdown.\r\n *\r\n * @return {this} This Scene Plugin instance.\r\n */\r\n stop: function (key, data)\r\n {\r\n if (key === undefined) { key = this.key; }\r\n\r\n this.manager.queueOp('stop', key, data);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the active state of the given Scene.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#setActive\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {boolean} value - If `true` the Scene will be resumed. If `false` it will be paused.\r\n * @param {(string|Phaser.Scene)} [key] - The Scene to set the active state of.\r\n * @param {object} [data] - An optional data object that will be passed to the Scene and emitted with its events.\r\n *\r\n * @return {this} This Scene Plugin instance.\r\n */\r\n setActive: function (value, key, data)\r\n {\r\n if (key === undefined) { key = this.key; }\r\n\r\n var scene = this.manager.getScene(key);\r\n\r\n if (scene)\r\n {\r\n scene.sys.setActive(value, data);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the visible state of the given Scene.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#setVisible\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {boolean} value - The visible value.\r\n * @param {(string|Phaser.Scene)} [key] - The Scene to set the visible state for.\r\n *\r\n * @return {this} This Scene Plugin instance.\r\n */\r\n setVisible: function (value, key)\r\n {\r\n if (key === undefined) { key = this.key; }\r\n\r\n var scene = this.manager.getScene(key);\r\n\r\n if (scene)\r\n {\r\n scene.sys.setVisible(value);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Checks if the given Scene is sleeping or not?\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#isSleeping\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} [key] - The Scene to check.\r\n *\r\n * @return {boolean} Whether the Scene is sleeping, or `null` if no matching Scene was found.\r\n */\r\n isSleeping: function (key)\r\n {\r\n if (key === undefined) { key = this.key; }\r\n\r\n return this.manager.isSleeping(key);\r\n },\r\n\r\n /**\r\n * Checks if the given Scene is running or not?\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#isActive\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} [key] - The Scene to check.\r\n *\r\n * @return {boolean} Whether the Scene is running, or `null` if no matching Scene was found.\r\n */\r\n isActive: function (key)\r\n {\r\n if (key === undefined) { key = this.key; }\r\n\r\n return this.manager.isActive(key);\r\n },\r\n\r\n /**\r\n * Checks if the given Scene is paused or not?\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#isPaused\r\n * @since 3.17.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} [key] - The Scene to check.\r\n *\r\n * @return {boolean} Whether the Scene is paused, or `null` if no matching Scene was found.\r\n */\r\n isPaused: function (key)\r\n {\r\n if (key === undefined) { key = this.key; }\r\n\r\n return this.manager.isPaused(key);\r\n },\r\n\r\n /**\r\n * Checks if the given Scene is visible or not?\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#isVisible\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} [key] - The Scene to check.\r\n *\r\n * @return {boolean} Whether the Scene is visible, or `null` if no matching Scene was found.\r\n */\r\n isVisible: function (key)\r\n {\r\n if (key === undefined) { key = this.key; }\r\n\r\n return this.manager.isVisible(key);\r\n },\r\n\r\n /**\r\n * Swaps the position of two scenes in the Scenes list.\r\n *\r\n * This controls the order in which they are rendered and updated.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#swapPosition\r\n * @since 3.2.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [keyA,keyB]\r\n *\r\n * @param {(string|Phaser.Scene)} keyA - The first Scene to swap.\r\n * @param {(string|Phaser.Scene)} [keyB] - The second Scene to swap. If none is given it defaults to this Scene.\r\n *\r\n * @return {this} This Scene Plugin instance.\r\n */\r\n swapPosition: function (keyA, keyB)\r\n {\r\n if (keyB === undefined) { keyB = this.key; }\r\n\r\n if (keyA !== keyB)\r\n {\r\n this.manager.swapPosition(keyA, keyB);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Moves a Scene so it is immediately above another Scene in the Scenes list.\r\n * If the Scene is already above the other, it isn't moved.\r\n *\r\n * This means it will render over the top of the other Scene.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#moveAbove\r\n * @since 3.2.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [keyA,keyB]\r\n *\r\n * @param {(string|Phaser.Scene)} keyA - The Scene that Scene B will be moved to be above.\r\n * @param {(string|Phaser.Scene)} [keyB] - The Scene to be moved. If none is given it defaults to this Scene.\r\n *\r\n * @return {this} This Scene Plugin instance.\r\n */\r\n moveAbove: function (keyA, keyB)\r\n {\r\n if (keyB === undefined) { keyB = this.key; }\r\n\r\n if (keyA !== keyB)\r\n {\r\n this.manager.moveAbove(keyA, keyB);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Moves a Scene so it is immediately below another Scene in the Scenes list.\r\n * If the Scene is already below the other, it isn't moved.\r\n *\r\n * This means it will render behind the other Scene.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#moveBelow\r\n * @since 3.2.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [keyA,keyB]\r\n *\r\n * @param {(string|Phaser.Scene)} keyA - The Scene that Scene B will be moved to be below.\r\n * @param {(string|Phaser.Scene)} [keyB] - The Scene to be moved. If none is given it defaults to this Scene.\r\n *\r\n * @return {this} This Scene Plugin instance.\r\n */\r\n moveBelow: function (keyA, keyB)\r\n {\r\n if (keyB === undefined) { keyB = this.key; }\r\n\r\n if (keyA !== keyB)\r\n {\r\n this.manager.moveBelow(keyA, keyB);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes a Scene from the SceneManager.\r\n *\r\n * The Scene is removed from the local scenes array, it's key is cleared from the keys\r\n * cache and Scene.Systems.destroy is then called on it.\r\n *\r\n * If the SceneManager is processing the Scenes when this method is called it will\r\n * queue the operation for the next update sequence.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#remove\r\n * @since 3.2.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} [key] - The Scene to be removed.\r\n *\r\n * @return {this} This Scene Plugin instance.\r\n */\r\n remove: function (key)\r\n {\r\n if (key === undefined) { key = this.key; }\r\n\r\n this.manager.remove(key);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Moves a Scene up one position in the Scenes list.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#moveUp\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} [key] - The Scene to move.\r\n *\r\n * @return {this} This Scene Plugin instance.\r\n */\r\n moveUp: function (key)\r\n {\r\n if (key === undefined) { key = this.key; }\r\n\r\n this.manager.moveUp(key);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Moves a Scene down one position in the Scenes list.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#moveDown\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} [key] - The Scene to move.\r\n *\r\n * @return {this} This Scene Plugin instance.\r\n */\r\n moveDown: function (key)\r\n {\r\n if (key === undefined) { key = this.key; }\r\n\r\n this.manager.moveDown(key);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Brings a Scene to the top of the Scenes list.\r\n *\r\n * This means it will render above all other Scenes.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#bringToTop\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} [key] - The Scene to move.\r\n *\r\n * @return {this} This Scene Plugin instance.\r\n */\r\n bringToTop: function (key)\r\n {\r\n if (key === undefined) { key = this.key; }\r\n\r\n this.manager.bringToTop(key);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sends a Scene to the back of the Scenes list.\r\n *\r\n * This means it will render below all other Scenes.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#sendToBack\r\n * @since 3.0.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} [key] - The Scene to move.\r\n *\r\n * @return {this} This Scene Plugin instance.\r\n */\r\n sendToBack: function (key)\r\n {\r\n if (key === undefined) { key = this.key; }\r\n\r\n this.manager.sendToBack(key);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Retrieves a Scene based on the given key.\r\n *\r\n * If an actual Scene is passed to this method, it can be used to check if\r\n * its currently within the Scene Manager, or not.\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#get\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Scene)} key - The Scene to retrieve.\r\n *\r\n * @return {Phaser.Scene} The Scene.\r\n */\r\n get: function (key)\r\n {\r\n return this.manager.getScene(key);\r\n },\r\n\r\n /**\r\n * Return the status of the Scene.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#getStatus\r\n * @since 3.60.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} key - The Scene to get the status from.\r\n *\r\n * @return {number} The Scene status. This maps to the `Phaser.Scene` constants, such as `Phaser.Scene.LOADING`.\r\n */\r\n getStatus: function (key)\r\n {\r\n var scene = this.manager.getScene(key);\r\n\r\n if (scene)\r\n {\r\n return scene.sys.getStatus();\r\n }\r\n },\r\n\r\n /**\r\n * Retrieves the numeric index of a Scene in the Scenes list.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#getIndex\r\n * @since 3.7.0\r\n *\r\n * @generic {Phaser.Scene} T\r\n * @genericUse {(T|string)} - [key]\r\n *\r\n * @param {(string|Phaser.Scene)} [key] - The Scene to get the index of.\r\n *\r\n * @return {number} The index of the Scene.\r\n */\r\n getIndex: function (key)\r\n {\r\n if (key === undefined) { key = this.key; }\r\n\r\n return this.manager.getIndex(key);\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is shutting down.\r\n *\r\n * We need to kill and reset all internal properties as well as stop listening to Scene events.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#shutdown\r\n * @private\r\n * @since 3.0.0\r\n */\r\n shutdown: function ()\r\n {\r\n var eventEmitter = this.systems.events;\r\n\r\n eventEmitter.off(Events.SHUTDOWN, this.shutdown, this);\r\n eventEmitter.off(Events.TRANSITION_OUT);\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is being destroyed.\r\n *\r\n * We need to shutdown and then kill off all external references.\r\n *\r\n * @method Phaser.Scenes.ScenePlugin#destroy\r\n * @private\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.shutdown();\r\n\r\n this.scene.sys.events.off(Events.START, this.start, this);\r\n\r\n this.scene = null;\r\n this.systems = null;\r\n this.settings = null;\r\n this.manager = null;\r\n }\r\n\r\n});\r\n\r\nPluginCache.register('ScenePlugin', ScenePlugin, 'scenePlugin');\r\n\r\nmodule.exports = ScenePlugin;\r\n\n\n/***/ }),\n\n/***/ 55681:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(89993);\r\nvar GetValue = __webpack_require__(35154);\r\nvar Merge = __webpack_require__(46975);\r\nvar InjectionMap = __webpack_require__(87033);\r\n\r\n/**\r\n * @namespace Phaser.Scenes.Settings\r\n */\r\n\r\nvar Settings = {\r\n\r\n /**\r\n * Takes a Scene configuration object and returns a fully formed System Settings object.\r\n *\r\n * @function Phaser.Scenes.Settings.create\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Scenes.SettingsConfig)} config - The Scene configuration object used to create this Scene Settings.\r\n *\r\n * @return {Phaser.Types.Scenes.SettingsObject} The Scene Settings object created as a result of the config and default settings.\r\n */\r\n create: function (config)\r\n {\r\n if (typeof config === 'string')\r\n {\r\n config = { key: config };\r\n }\r\n else if (config === undefined)\r\n {\r\n // Pass the 'hasOwnProperty' checks\r\n config = {};\r\n }\r\n\r\n return {\r\n\r\n status: CONST.PENDING,\r\n\r\n key: GetValue(config, 'key', ''),\r\n active: GetValue(config, 'active', false),\r\n visible: GetValue(config, 'visible', true),\r\n\r\n isBooted: false,\r\n\r\n isTransition: false,\r\n transitionFrom: null,\r\n transitionDuration: 0,\r\n transitionAllowInput: true,\r\n\r\n // Loader payload array\r\n\r\n data: {},\r\n\r\n pack: GetValue(config, 'pack', false),\r\n\r\n // Cameras\r\n\r\n cameras: GetValue(config, 'cameras', null),\r\n\r\n // Scene Property Injection Map\r\n\r\n map: GetValue(config, 'map', Merge(InjectionMap, GetValue(config, 'mapAdd', {}))),\r\n\r\n // Physics\r\n\r\n physics: GetValue(config, 'physics', {}),\r\n\r\n // Loader\r\n\r\n loader: GetValue(config, 'loader', {}),\r\n\r\n // Plugins\r\n\r\n plugins: GetValue(config, 'plugins', false),\r\n\r\n // Input\r\n\r\n input: GetValue(config, 'input', {})\r\n\r\n };\r\n }\r\n\r\n};\r\n\r\nmodule.exports = Settings;\r\n\n\n/***/ }),\n\n/***/ 2368:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(89993);\r\nvar DefaultPlugins = __webpack_require__(42363);\r\nvar Events = __webpack_require__(44594);\r\nvar GetPhysicsPlugins = __webpack_require__(27397);\r\nvar GetScenePlugins = __webpack_require__(52106);\r\nvar NOOP = __webpack_require__(29747);\r\nvar Settings = __webpack_require__(55681);\r\n\r\n/**\r\n * @classdesc\r\n * The Scene Systems class.\r\n *\r\n * This class is available from within a Scene under the property `sys`.\r\n * It is responsible for managing all of the plugins a Scene has running, including the display list, and\r\n * handling the update step and renderer. It also contains references to global systems belonging to Game.\r\n *\r\n * @class Systems\r\n * @memberof Phaser.Scenes\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene that owns this Systems instance.\r\n * @param {(string|Phaser.Types.Scenes.SettingsConfig)} config - Scene specific configuration settings.\r\n */\r\nvar Systems = new Class({\r\n\r\n initialize:\r\n\r\n function Systems (scene, config)\r\n {\r\n /**\r\n * A reference to the Scene that these Systems belong to.\r\n *\r\n * @name Phaser.Scenes.Systems#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.0.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * A reference to the Phaser Game instance.\r\n *\r\n * @name Phaser.Scenes.Systems#game\r\n * @type {Phaser.Game}\r\n * @since 3.0.0\r\n */\r\n this.game;\r\n\r\n /**\r\n * A reference to either the Canvas or WebGL Renderer that this Game is using.\r\n *\r\n * @name Phaser.Scenes.Systems#renderer\r\n * @type {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)}\r\n * @since 3.17.0\r\n */\r\n this.renderer;\r\n\r\n if (false)\r\n {}\r\n\r\n /**\r\n * The Scene Configuration object, as passed in when creating the Scene.\r\n *\r\n * @name Phaser.Scenes.Systems#config\r\n * @type {(string|Phaser.Types.Scenes.SettingsConfig)}\r\n * @since 3.0.0\r\n */\r\n this.config = config;\r\n\r\n /**\r\n * The Scene Settings. This is the parsed output based on the Scene configuration.\r\n *\r\n * @name Phaser.Scenes.Systems#settings\r\n * @type {Phaser.Types.Scenes.SettingsObject}\r\n * @since 3.0.0\r\n */\r\n this.settings = Settings.create(config);\r\n\r\n /**\r\n * A handy reference to the Scene canvas / context.\r\n *\r\n * @name Phaser.Scenes.Systems#canvas\r\n * @type {HTMLCanvasElement}\r\n * @since 3.0.0\r\n */\r\n this.canvas;\r\n\r\n /**\r\n * A reference to the Canvas Rendering Context being used by the renderer.\r\n *\r\n * @name Phaser.Scenes.Systems#context\r\n * @type {CanvasRenderingContext2D}\r\n * @since 3.0.0\r\n */\r\n this.context;\r\n\r\n // Global Systems - these are single-instance global managers that belong to Game\r\n\r\n /**\r\n * A reference to the global Animations Manager.\r\n *\r\n * In the default set-up you can access this from within a Scene via the `this.anims` property.\r\n *\r\n * @name Phaser.Scenes.Systems#anims\r\n * @type {Phaser.Animations.AnimationManager}\r\n * @since 3.0.0\r\n */\r\n this.anims;\r\n\r\n /**\r\n * A reference to the global Cache. The Cache stores all files bought in to Phaser via\r\n * the Loader, with the exception of images. Images are stored in the Texture Manager.\r\n *\r\n * In the default set-up you can access this from within a Scene via the `this.cache` property.\r\n *\r\n * @name Phaser.Scenes.Systems#cache\r\n * @type {Phaser.Cache.CacheManager}\r\n * @since 3.0.0\r\n */\r\n this.cache;\r\n\r\n /**\r\n * A reference to the global Plugins Manager.\r\n *\r\n * In the default set-up you can access this from within a Scene via the `this.plugins` property.\r\n *\r\n * @name Phaser.Scenes.Systems#plugins\r\n * @type {Phaser.Plugins.PluginManager}\r\n * @since 3.0.0\r\n */\r\n this.plugins;\r\n\r\n /**\r\n * A reference to the global registry. This is a game-wide instance of the Data Manager, allowing\r\n * you to exchange data between Scenes via a universal and shared point.\r\n *\r\n * In the default set-up you can access this from within a Scene via the `this.registry` property.\r\n *\r\n * @name Phaser.Scenes.Systems#registry\r\n * @type {Phaser.Data.DataManager}\r\n * @since 3.0.0\r\n */\r\n this.registry;\r\n\r\n /**\r\n * A reference to the global Scale Manager.\r\n *\r\n * In the default set-up you can access this from within a Scene via the `this.scale` property.\r\n *\r\n * @name Phaser.Scenes.Systems#scale\r\n * @type {Phaser.Scale.ScaleManager}\r\n * @since 3.15.0\r\n */\r\n this.scale;\r\n\r\n /**\r\n * A reference to the global Sound Manager.\r\n *\r\n * In the default set-up you can access this from within a Scene via the `this.sound` property.\r\n *\r\n * @name Phaser.Scenes.Systems#sound\r\n * @type {(Phaser.Sound.NoAudioSoundManager|Phaser.Sound.HTML5AudioSoundManager|Phaser.Sound.WebAudioSoundManager)}\r\n * @since 3.0.0\r\n */\r\n this.sound;\r\n\r\n /**\r\n * A reference to the global Texture Manager.\r\n *\r\n * In the default set-up you can access this from within a Scene via the `this.textures` property.\r\n *\r\n * @name Phaser.Scenes.Systems#textures\r\n * @type {Phaser.Textures.TextureManager}\r\n * @since 3.0.0\r\n */\r\n this.textures;\r\n\r\n // Core Plugins - these are non-optional Scene plugins, needed by lots of the other systems\r\n\r\n /**\r\n * A reference to the Scene's Game Object Factory.\r\n *\r\n * Use this to quickly and easily create new Game Object's.\r\n *\r\n * In the default set-up you can access this from within a Scene via the `this.add` property.\r\n *\r\n * @name Phaser.Scenes.Systems#add\r\n * @type {Phaser.GameObjects.GameObjectFactory}\r\n * @since 3.0.0\r\n */\r\n this.add;\r\n\r\n /**\r\n * A reference to the Scene's Camera Manager.\r\n *\r\n * Use this to manipulate and create Cameras for this specific Scene.\r\n *\r\n * In the default set-up you can access this from within a Scene via the `this.cameras` property.\r\n *\r\n * @name Phaser.Scenes.Systems#cameras\r\n * @type {Phaser.Cameras.Scene2D.CameraManager}\r\n * @since 3.0.0\r\n */\r\n this.cameras;\r\n\r\n /**\r\n * A reference to the Scene's Display List.\r\n *\r\n * Use this to organize the children contained in the display list.\r\n *\r\n * In the default set-up you can access this from within a Scene via the `this.children` property.\r\n *\r\n * @name Phaser.Scenes.Systems#displayList\r\n * @type {Phaser.GameObjects.DisplayList}\r\n * @since 3.0.0\r\n */\r\n this.displayList;\r\n\r\n /**\r\n * A reference to the Scene's Event Manager.\r\n *\r\n * Use this to listen for Scene specific events, such as `pause` and `shutdown`.\r\n *\r\n * In the default set-up you can access this from within a Scene via the `this.events` property.\r\n *\r\n * @name Phaser.Scenes.Systems#events\r\n * @type {Phaser.Events.EventEmitter}\r\n * @since 3.0.0\r\n */\r\n this.events;\r\n\r\n /**\r\n * A reference to the Scene's Game Object Creator.\r\n *\r\n * Use this to quickly and easily create new Game Object's. The difference between this and the\r\n * Game Object Factory, is that the Creator just creates and returns Game Object instances, it\r\n * doesn't then add them to the Display List or Update List.\r\n *\r\n * In the default set-up you can access this from within a Scene via the `this.make` property.\r\n *\r\n * @name Phaser.Scenes.Systems#make\r\n * @type {Phaser.GameObjects.GameObjectCreator}\r\n * @since 3.0.0\r\n */\r\n this.make;\r\n\r\n /**\r\n * A reference to the Scene Manager Plugin.\r\n *\r\n * Use this to manipulate both this and other Scene's in your game, for example to launch a parallel Scene,\r\n * or pause or resume a Scene, or switch from this Scene to another.\r\n *\r\n * In the default set-up you can access this from within a Scene via the `this.scene` property.\r\n *\r\n * @name Phaser.Scenes.Systems#scenePlugin\r\n * @type {Phaser.Scenes.ScenePlugin}\r\n * @since 3.0.0\r\n */\r\n this.scenePlugin;\r\n\r\n /**\r\n * A reference to the Scene's Update List.\r\n *\r\n * Use this to organize the children contained in the update list.\r\n *\r\n * The Update List is responsible for managing children that need their `preUpdate` methods called,\r\n * in order to process so internal components, such as Sprites with Animations.\r\n *\r\n * In the default set-up there is no reference to this from within the Scene itself.\r\n *\r\n * @name Phaser.Scenes.Systems#updateList\r\n * @type {Phaser.GameObjects.UpdateList}\r\n * @since 3.0.0\r\n */\r\n this.updateList;\r\n\r\n /**\r\n * The Scene Update function.\r\n *\r\n * This starts out as NOOP during init, preload and create, and at the end of create\r\n * it swaps to be whatever the Scene.update function is.\r\n *\r\n * @name Phaser.Scenes.Systems#sceneUpdate\r\n * @type {function}\r\n * @private\r\n * @since 3.10.0\r\n */\r\n this.sceneUpdate = NOOP;\r\n },\r\n\r\n /**\r\n * This method is called only once by the Scene Manager when the Scene is instantiated.\r\n * It is responsible for setting up all of the Scene plugins and references.\r\n * It should never be called directly.\r\n *\r\n * @method Phaser.Scenes.Systems#init\r\n * @protected\r\n * @fires Phaser.Scenes.Events#BOOT\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Game} game - A reference to the Phaser Game instance.\r\n */\r\n init: function (game)\r\n {\r\n this.settings.status = CONST.INIT;\r\n\r\n // This will get replaced by the SceneManager with the actual update function, if it exists, once create is over.\r\n this.sceneUpdate = NOOP;\r\n\r\n this.game = game;\r\n this.renderer = game.renderer;\r\n\r\n this.canvas = game.canvas;\r\n this.context = game.context;\r\n\r\n var pluginManager = game.plugins;\r\n\r\n this.plugins = pluginManager;\r\n\r\n pluginManager.addToScene(this, DefaultPlugins.Global, [ DefaultPlugins.CoreScene, GetScenePlugins(this), GetPhysicsPlugins(this) ]);\r\n\r\n this.events.emit(Events.BOOT, this);\r\n\r\n this.settings.isBooted = true;\r\n },\r\n\r\n /**\r\n * A single game step. Called automatically by the Scene Manager as a result of a Request Animation\r\n * Frame or Set Timeout call to the main Game instance.\r\n *\r\n * @method Phaser.Scenes.Systems#step\r\n * @fires Phaser.Scenes.Events#PRE_UPDATE\r\n * @fires Phaser.Scenes.Events#UPDATE\r\n * @fires Phaser.Scenes.Events#POST_UPDATE\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The time value from the most recent Game step. Typically a high-resolution timer value, or Date.now().\r\n * @param {number} delta - The delta value since the last frame. This is smoothed to avoid delta spikes by the TimeStep class.\r\n */\r\n step: function (time, delta)\r\n {\r\n var events = this.events;\r\n\r\n events.emit(Events.PRE_UPDATE, time, delta);\r\n\r\n events.emit(Events.UPDATE, time, delta);\r\n\r\n this.sceneUpdate.call(this.scene, time, delta);\r\n\r\n events.emit(Events.POST_UPDATE, time, delta);\r\n },\r\n\r\n /**\r\n * Called automatically by the Scene Manager.\r\n * Instructs the Scene to render itself via its Camera Manager to the renderer given.\r\n *\r\n * @method Phaser.Scenes.Systems#render\r\n * @fires Phaser.Scenes.Events#PRE_RENDER\r\n * @fires Phaser.Scenes.Events#RENDER\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)} renderer - The renderer that invoked the render call.\r\n */\r\n render: function (renderer)\r\n {\r\n var displayList = this.displayList;\r\n\r\n displayList.depthSort();\r\n\r\n this.events.emit(Events.PRE_RENDER, renderer);\r\n\r\n this.cameras.render(renderer, displayList);\r\n\r\n this.events.emit(Events.RENDER, renderer);\r\n },\r\n\r\n /**\r\n * Force a sort of the display list on the next render.\r\n *\r\n * @method Phaser.Scenes.Systems#queueDepthSort\r\n * @since 3.0.0\r\n */\r\n queueDepthSort: function ()\r\n {\r\n this.displayList.queueDepthSort();\r\n },\r\n\r\n /**\r\n * Immediately sorts the display list if the flag is set.\r\n *\r\n * @method Phaser.Scenes.Systems#depthSort\r\n * @since 3.0.0\r\n */\r\n depthSort: function ()\r\n {\r\n this.displayList.depthSort();\r\n },\r\n\r\n /**\r\n * Pause this Scene.\r\n *\r\n * A paused Scene still renders, it just doesn't run any of its update handlers or systems.\r\n *\r\n * @method Phaser.Scenes.Systems#pause\r\n * @fires Phaser.Scenes.Events#PAUSE\r\n * @since 3.0.0\r\n *\r\n * @param {object} [data] - A data object that will be passed in the 'pause' event.\r\n *\r\n * @return {Phaser.Scenes.Systems} This Systems object.\r\n */\r\n pause: function (data)\r\n {\r\n var settings = this.settings;\r\n var status = this.getStatus();\r\n\r\n if (status !== CONST.CREATING && status !== CONST.RUNNING)\r\n {\r\n console.warn('Cannot pause non-running Scene', settings.key);\r\n }\r\n else if (this.settings.active)\r\n {\r\n settings.status = CONST.PAUSED;\r\n\r\n settings.active = false;\r\n\r\n this.events.emit(Events.PAUSE, this, data);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resume this Scene from a paused state.\r\n *\r\n * @method Phaser.Scenes.Systems#resume\r\n * @fires Phaser.Scenes.Events#RESUME\r\n * @since 3.0.0\r\n *\r\n * @param {object} [data] - A data object that will be passed in the 'resume' event.\r\n *\r\n * @return {Phaser.Scenes.Systems} This Systems object.\r\n */\r\n resume: function (data)\r\n {\r\n var events = this.events;\r\n var settings = this.settings;\r\n\r\n if (!this.settings.active)\r\n {\r\n settings.status = CONST.RUNNING;\r\n\r\n settings.active = true;\r\n\r\n events.emit(Events.RESUME, this, data);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Send this Scene to sleep.\r\n *\r\n * A sleeping Scene doesn't run its update step or render anything, but it also isn't shut down\r\n * or has any of its systems or children removed, meaning it can be re-activated at any point and\r\n * will carry on from where it left off. It also keeps everything in memory and events and callbacks\r\n * from other Scenes may still invoke changes within it, so be careful what is left active.\r\n *\r\n * @method Phaser.Scenes.Systems#sleep\r\n * @fires Phaser.Scenes.Events#SLEEP\r\n * @since 3.0.0\r\n *\r\n * @param {object} [data] - A data object that will be passed in the 'sleep' event.\r\n *\r\n * @return {Phaser.Scenes.Systems} This Systems object.\r\n */\r\n sleep: function (data)\r\n {\r\n var settings = this.settings;\r\n var status = this.getStatus();\r\n\r\n if (status !== CONST.CREATING && status !== CONST.RUNNING)\r\n {\r\n console.warn('Cannot sleep non-running Scene', settings.key);\r\n }\r\n else\r\n {\r\n settings.status = CONST.SLEEPING;\r\n\r\n settings.active = false;\r\n settings.visible = false;\r\n\r\n this.events.emit(Events.SLEEP, this, data);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Wake-up this Scene if it was previously asleep.\r\n *\r\n * @method Phaser.Scenes.Systems#wake\r\n * @fires Phaser.Scenes.Events#WAKE\r\n * @since 3.0.0\r\n *\r\n * @param {object} [data] - A data object that will be passed in the 'wake' event.\r\n *\r\n * @return {Phaser.Scenes.Systems} This Systems object.\r\n */\r\n wake: function (data)\r\n {\r\n var events = this.events;\r\n var settings = this.settings;\r\n\r\n settings.status = CONST.RUNNING;\r\n\r\n settings.active = true;\r\n settings.visible = true;\r\n\r\n events.emit(Events.WAKE, this, data);\r\n\r\n if (settings.isTransition)\r\n {\r\n events.emit(Events.TRANSITION_WAKE, settings.transitionFrom, settings.transitionDuration);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns any data that was sent to this Scene by another Scene.\r\n *\r\n * The data is also passed to `Scene.init` and in various Scene events, but\r\n * you can access it at any point via this method.\r\n *\r\n * @method Phaser.Scenes.Systems#getData\r\n * @since 3.22.0\r\n *\r\n * @return {any} The Scene Data.\r\n */\r\n getData: function ()\r\n {\r\n return this.settings.data;\r\n },\r\n\r\n /**\r\n * Returns the current status of this Scene.\r\n *\r\n * @method Phaser.Scenes.Systems#getStatus\r\n * @since 3.60.0\r\n *\r\n * @return {number} The status of this Scene. One of the `Phaser.Scene` constants.\r\n */\r\n getStatus: function ()\r\n {\r\n return this.settings.status;\r\n },\r\n\r\n /**\r\n * Can this Scene receive Input events?\r\n *\r\n * @method Phaser.Scenes.Systems#canInput\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if this Scene can receive Input events.\r\n */\r\n canInput: function ()\r\n {\r\n var status = this.settings.status;\r\n\r\n return (status > CONST.PENDING && status <= CONST.RUNNING);\r\n },\r\n\r\n /**\r\n * Is this Scene sleeping?\r\n *\r\n * @method Phaser.Scenes.Systems#isSleeping\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} `true` if this Scene is asleep, otherwise `false`.\r\n */\r\n isSleeping: function ()\r\n {\r\n return (this.settings.status === CONST.SLEEPING);\r\n },\r\n\r\n /**\r\n * Is this Scene running?\r\n *\r\n * @method Phaser.Scenes.Systems#isActive\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} `true` if this Scene is running, otherwise `false`.\r\n */\r\n isActive: function ()\r\n {\r\n return (this.settings.status === CONST.RUNNING);\r\n },\r\n\r\n /**\r\n * Is this Scene paused?\r\n *\r\n * @method Phaser.Scenes.Systems#isPaused\r\n * @since 3.13.0\r\n *\r\n * @return {boolean} `true` if this Scene is paused, otherwise `false`.\r\n */\r\n isPaused: function ()\r\n {\r\n return (this.settings.status === CONST.PAUSED);\r\n },\r\n\r\n /**\r\n * Is this Scene currently transitioning out to, or in from another Scene?\r\n *\r\n * @method Phaser.Scenes.Systems#isTransitioning\r\n * @since 3.5.0\r\n *\r\n * @return {boolean} `true` if this Scene is currently transitioning, otherwise `false`.\r\n */\r\n isTransitioning: function ()\r\n {\r\n return (this.settings.isTransition || this.scenePlugin._target !== null);\r\n },\r\n\r\n /**\r\n * Is this Scene currently transitioning out from itself to another Scene?\r\n *\r\n * @method Phaser.Scenes.Systems#isTransitionOut\r\n * @since 3.5.0\r\n *\r\n * @return {boolean} `true` if this Scene is in transition to another Scene, otherwise `false`.\r\n */\r\n isTransitionOut: function ()\r\n {\r\n return (this.scenePlugin._target !== null && this.scenePlugin._duration > 0);\r\n },\r\n\r\n /**\r\n * Is this Scene currently transitioning in from another Scene?\r\n *\r\n * @method Phaser.Scenes.Systems#isTransitionIn\r\n * @since 3.5.0\r\n *\r\n * @return {boolean} `true` if this Scene is transitioning in from another Scene, otherwise `false`.\r\n */\r\n isTransitionIn: function ()\r\n {\r\n return (this.settings.isTransition);\r\n },\r\n\r\n /**\r\n * Is this Scene visible and rendering?\r\n *\r\n * @method Phaser.Scenes.Systems#isVisible\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} `true` if this Scene is visible, otherwise `false`.\r\n */\r\n isVisible: function ()\r\n {\r\n return this.settings.visible;\r\n },\r\n\r\n /**\r\n * Sets the visible state of this Scene.\r\n * An invisible Scene will not render, but will still process updates.\r\n *\r\n * @method Phaser.Scenes.Systems#setVisible\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} value - `true` to render this Scene, otherwise `false`.\r\n *\r\n * @return {Phaser.Scenes.Systems} This Systems object.\r\n */\r\n setVisible: function (value)\r\n {\r\n this.settings.visible = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set the active state of this Scene.\r\n *\r\n * An active Scene will run its core update loop.\r\n *\r\n * @method Phaser.Scenes.Systems#setActive\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} value - If `true` the Scene will be resumed, if previously paused. If `false` it will be paused.\r\n * @param {object} [data] - A data object that will be passed in the 'resume' or 'pause' events.\r\n *\r\n * @return {Phaser.Scenes.Systems} This Systems object.\r\n */\r\n setActive: function (value, data)\r\n {\r\n if (value)\r\n {\r\n return this.resume(data);\r\n }\r\n else\r\n {\r\n return this.pause(data);\r\n }\r\n },\r\n\r\n /**\r\n * Start this Scene running and rendering.\r\n * Called automatically by the SceneManager.\r\n *\r\n * @method Phaser.Scenes.Systems#start\r\n * @fires Phaser.Scenes.Events#START\r\n * @fires Phaser.Scenes.Events#READY\r\n * @since 3.0.0\r\n *\r\n * @param {object} data - Optional data object that may have been passed to this Scene from another.\r\n */\r\n start: function (data)\r\n {\r\n var events = this.events;\r\n var settings = this.settings;\r\n\r\n if (data)\r\n {\r\n settings.data = data;\r\n }\r\n\r\n settings.status = CONST.START;\r\n\r\n settings.active = true;\r\n settings.visible = true;\r\n\r\n // For plugins to listen out for\r\n events.emit(Events.START, this);\r\n\r\n // For user-land code to listen out for\r\n events.emit(Events.READY, this, data);\r\n },\r\n\r\n /**\r\n * Shutdown this Scene and send a shutdown event to all of its systems.\r\n * A Scene that has been shutdown will not run its update loop or render, but it does\r\n * not destroy any of its plugins or references. It is put into hibernation for later use.\r\n * If you don't ever plan to use this Scene again, then it should be destroyed instead\r\n * to free-up resources.\r\n *\r\n * @method Phaser.Scenes.Systems#shutdown\r\n * @fires Phaser.Scenes.Events#SHUTDOWN\r\n * @since 3.0.0\r\n *\r\n * @param {object} [data] - A data object that will be passed in the 'shutdown' event.\r\n */\r\n shutdown: function (data)\r\n {\r\n var events = this.events;\r\n var settings = this.settings;\r\n\r\n events.off(Events.TRANSITION_INIT);\r\n events.off(Events.TRANSITION_START);\r\n events.off(Events.TRANSITION_COMPLETE);\r\n events.off(Events.TRANSITION_OUT);\r\n\r\n settings.status = CONST.SHUTDOWN;\r\n\r\n settings.active = false;\r\n settings.visible = false;\r\n\r\n events.emit(Events.SHUTDOWN, this, data);\r\n },\r\n\r\n /**\r\n * Destroy this Scene and send a destroy event all of its systems.\r\n * A destroyed Scene cannot be restarted.\r\n * You should not call this directly, instead use `SceneManager.remove`.\r\n *\r\n * @method Phaser.Scenes.Systems#destroy\r\n * @private\r\n * @fires Phaser.Scenes.Events#DESTROY\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n var events = this.events;\r\n var settings = this.settings;\r\n\r\n settings.status = CONST.DESTROYED;\r\n\r\n settings.active = false;\r\n settings.visible = false;\r\n\r\n events.emit(Events.DESTROY, this);\r\n\r\n events.removeAllListeners();\r\n\r\n var props = [ 'scene', 'game', 'anims', 'cache', 'plugins', 'registry', 'sound', 'textures', 'add', 'camera', 'displayList', 'events', 'make', 'scenePlugin', 'updateList' ];\r\n\r\n for (var i = 0; i < props.length; i++)\r\n {\r\n this[props[i]] = null;\r\n }\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Systems;\r\n\n\n/***/ }),\n\n/***/ 89993:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Scene consts.\r\n *\r\n * @ignore\r\n */\r\n\r\nvar CONST = {\r\n\r\n /**\r\n * Scene state.\r\n *\r\n * @name Phaser.Scenes.PENDING\r\n * @readonly\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n PENDING: 0,\r\n\r\n /**\r\n * Scene state.\r\n *\r\n * @name Phaser.Scenes.INIT\r\n * @readonly\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n INIT: 1,\r\n\r\n /**\r\n * Scene state.\r\n *\r\n * @name Phaser.Scenes.START\r\n * @readonly\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n START: 2,\r\n\r\n /**\r\n * Scene state.\r\n *\r\n * @name Phaser.Scenes.LOADING\r\n * @readonly\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n LOADING: 3,\r\n\r\n /**\r\n * Scene state.\r\n *\r\n * @name Phaser.Scenes.CREATING\r\n * @readonly\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n CREATING: 4,\r\n\r\n /**\r\n * Scene state.\r\n *\r\n * @name Phaser.Scenes.RUNNING\r\n * @readonly\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n RUNNING: 5,\r\n\r\n /**\r\n * Scene state.\r\n *\r\n * @name Phaser.Scenes.PAUSED\r\n * @readonly\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n PAUSED: 6,\r\n\r\n /**\r\n * Scene state.\r\n *\r\n * @name Phaser.Scenes.SLEEPING\r\n * @readonly\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n SLEEPING: 7,\r\n\r\n /**\r\n * Scene state.\r\n *\r\n * @name Phaser.Scenes.SHUTDOWN\r\n * @readonly\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n SHUTDOWN: 8,\r\n\r\n /**\r\n * Scene state.\r\n *\r\n * @name Phaser.Scenes.DESTROYED\r\n * @readonly\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n DESTROYED: 9\r\n\r\n};\r\n\r\nmodule.exports = CONST;\r\n\n\n/***/ }),\n\n/***/ 69830:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Added to Scene Event.\r\n *\r\n * This event is dispatched when a Game Object is added to a Scene.\r\n *\r\n * Listen for it from a Scene using `this.events.on('addedtoscene', listener)`.\r\n *\r\n * @event Phaser.Scenes.Events#ADDED_TO_SCENE\r\n * @type {string}\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that was added to the Scene.\r\n * @param {Phaser.Scene} scene - The Scene to which the Game Object was added.\r\n */\r\nmodule.exports = 'addedtoscene';\r\n\n\n/***/ }),\n\n/***/ 7919:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scene Systems Boot Event.\r\n *\r\n * This event is dispatched by a Scene during the Scene Systems boot process. Primarily used by Scene Plugins.\r\n *\r\n * Listen to it from a Scene using `this.events.on('boot', listener)`.\r\n *\r\n * @event Phaser.Scenes.Events#BOOT\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scenes.Systems} sys - A reference to the Scene Systems class of the Scene that emitted this event.\r\n */\r\nmodule.exports = 'boot';\r\n\n\n/***/ }),\n\n/***/ 46763:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scene Create Event.\r\n *\r\n * This event is dispatched by a Scene after it has been created by the Scene Manager.\r\n *\r\n * If a Scene has a `create` method then this event is emitted _after_ that has run.\r\n *\r\n * If there is a transition, this event will be fired after the `TRANSITION_START` event.\r\n *\r\n * Listen to it from a Scene using `this.events.on('create', listener)`.\r\n *\r\n * @event Phaser.Scenes.Events#CREATE\r\n * @type {string}\r\n * @since 3.17.0\r\n *\r\n * @param {Phaser.Scene} scene - A reference to the Scene that emitted this event.\r\n */\r\nmodule.exports = 'create';\r\n\n\n/***/ }),\n\n/***/ 11763:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scene Systems Destroy Event.\r\n *\r\n * This event is dispatched by a Scene during the Scene Systems destroy process.\r\n *\r\n * Listen to it from a Scene using `this.events.on('destroy', listener)`.\r\n *\r\n * You should destroy any resources that may be in use by your Scene in this event handler.\r\n *\r\n * @event Phaser.Scenes.Events#DESTROY\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scenes.Systems} sys - A reference to the Scene Systems class of the Scene that emitted this event.\r\n */\r\nmodule.exports = 'destroy';\r\n\n\n/***/ }),\n\n/***/ 71555:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scene Systems Pause Event.\r\n *\r\n * This event is dispatched by a Scene when it is paused, either directly via the `pause` method, or as an\r\n * action from another Scene.\r\n *\r\n * Listen to it from a Scene using `this.events.on('pause', listener)`.\r\n *\r\n * @event Phaser.Scenes.Events#PAUSE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scenes.Systems} sys - A reference to the Scene Systems class of the Scene that emitted this event.\r\n * @param {any} [data] - An optional data object that was passed to this Scene when it was paused.\r\n */\r\nmodule.exports = 'pause';\r\n\n\n/***/ }),\n\n/***/ 36735:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scene Systems Post Update Event.\r\n *\r\n * This event is dispatched by a Scene during the main game loop step.\r\n *\r\n * The event flow for a single step of a Scene is as follows:\r\n *\r\n * 1. [PRE_UPDATE]{@linkcode Phaser.Scenes.Events#event:PRE_UPDATE}\r\n * 2. [UPDATE]{@linkcode Phaser.Scenes.Events#event:UPDATE}\r\n * 3. The `Scene.update` method is called, if it exists\r\n * 4. [POST_UPDATE]{@linkcode Phaser.Scenes.Events#event:POST_UPDATE}\r\n * 5. [PRE_RENDER]{@linkcode Phaser.Scenes.Events#event:PRE_RENDER}\r\n * 6. [RENDER]{@linkcode Phaser.Scenes.Events#event:RENDER}\r\n *\r\n * Listen to it from a Scene using `this.events.on('postupdate', listener)`.\r\n *\r\n * A Scene will only run its step if it is active.\r\n *\r\n * @event Phaser.Scenes.Events#POST_UPDATE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n */\r\nmodule.exports = 'postupdate';\r\n\n\n/***/ }),\n\n/***/ 3809:\n/***/ ((module) => {\n\n/**\r\n * @author samme\r\n * @copyright 2021 Photon Storm Ltd.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scene Systems Pre-Render Event.\r\n *\r\n * This event is dispatched by a Scene during the main game loop step.\r\n *\r\n * The event flow for a single step of a Scene is as follows:\r\n *\r\n * 1. [PRE_UPDATE]{@linkcode Phaser.Scenes.Events#event:PRE_UPDATE}\r\n * 2. [UPDATE]{@linkcode Phaser.Scenes.Events#event:UPDATE}\r\n * 3. The `Scene.update` method is called, if it exists\r\n * 4. [POST_UPDATE]{@linkcode Phaser.Scenes.Events#event:POST_UPDATE}\r\n * 5. [PRE_RENDER]{@linkcode Phaser.Scenes.Events#event:PRE_RENDER}\r\n * 6. [RENDER]{@linkcode Phaser.Scenes.Events#event:RENDER}\r\n *\r\n * Listen to this event from a Scene using `this.events.on('prerender', listener)`.\r\n *\r\n * A Scene will only render if it is visible.\r\n *\r\n * This event is dispatched after the Scene Display List is sorted and before the Scene is rendered.\r\n *\r\n * @event Phaser.Scenes.Events#PRE_RENDER\r\n * @type {string}\r\n * @since 3.53.0\r\n *\r\n * @param {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)} renderer - The renderer that rendered the Scene.\r\n */\r\nmodule.exports = 'prerender';\r\n\n\n/***/ }),\n\n/***/ 90716:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scene Systems Pre Update Event.\r\n *\r\n * This event is dispatched by a Scene during the main game loop step.\r\n *\r\n * The event flow for a single step of a Scene is as follows:\r\n *\r\n * 1. [PRE_UPDATE]{@linkcode Phaser.Scenes.Events#event:PRE_UPDATE}\r\n * 2. [UPDATE]{@linkcode Phaser.Scenes.Events#event:UPDATE}\r\n * 3. The `Scene.update` method is called, if it exists\r\n * 4. [POST_UPDATE]{@linkcode Phaser.Scenes.Events#event:POST_UPDATE}\r\n * 5. [PRE_RENDER]{@linkcode Phaser.Scenes.Events#event:PRE_RENDER}\r\n * 6. [RENDER]{@linkcode Phaser.Scenes.Events#event:RENDER}\r\n *\r\n * Listen to it from a Scene using `this.events.on('preupdate', listener)`.\r\n *\r\n * A Scene will only run its step if it is active.\r\n *\r\n * @event Phaser.Scenes.Events#PRE_UPDATE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n */\r\nmodule.exports = 'preupdate';\r\n\n\n/***/ }),\n\n/***/ 58262:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scene Systems Ready Event.\r\n *\r\n * This event is dispatched by a Scene during the Scene Systems start process.\r\n * By this point in the process the Scene is now fully active and rendering.\r\n * This event is meant for your game code to use, as all plugins have responded to the earlier 'start' event.\r\n *\r\n * Listen to it from a Scene using `this.events.on('ready', listener)`.\r\n *\r\n * @event Phaser.Scenes.Events#READY\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scenes.Systems} sys - A reference to the Scene Systems class of the Scene that emitted this event.\r\n * @param {any} [data] - An optional data object that was passed to this Scene when it was started.\r\n */\r\nmodule.exports = 'ready';\r\n\n\n/***/ }),\n\n/***/ 91633:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Game Object Removed from Scene Event.\r\n *\r\n * This event is dispatched when a Game Object is removed from a Scene.\r\n *\r\n * Listen for it from a Scene using `this.events.on('removedfromscene', listener)`.\r\n *\r\n * @event Phaser.Scenes.Events#REMOVED_FROM_SCENE\r\n * @type {string}\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object that was removed from the Scene.\r\n * @param {Phaser.Scene} scene - The Scene from which the Game Object was removed.\r\n */\r\nmodule.exports = 'removedfromscene';\r\n\n\n/***/ }),\n\n/***/ 10319:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scene Systems Render Event.\r\n *\r\n * This event is dispatched by a Scene during the main game loop step.\r\n *\r\n * The event flow for a single step of a Scene is as follows:\r\n *\r\n * 1. [PRE_UPDATE]{@linkcode Phaser.Scenes.Events#event:PRE_UPDATE}\r\n * 2. [UPDATE]{@linkcode Phaser.Scenes.Events#event:UPDATE}\r\n * 3. The `Scene.update` method is called, if it exists\r\n * 4. [POST_UPDATE]{@linkcode Phaser.Scenes.Events#event:POST_UPDATE}\r\n * 5. [PRE_RENDER]{@linkcode Phaser.Scenes.Events#event:PRE_RENDER}\r\n * 6. [RENDER]{@linkcode Phaser.Scenes.Events#event:RENDER}\r\n *\r\n * Listen to it from a Scene using `this.events.on('render', listener)`.\r\n *\r\n * A Scene will only render if it is visible.\r\n *\r\n * By the time this event is dispatched, the Scene will have already been rendered.\r\n *\r\n * @event Phaser.Scenes.Events#RENDER\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)} renderer - The renderer that rendered the Scene.\r\n */\r\nmodule.exports = 'render';\r\n\n\n/***/ }),\n\n/***/ 87132:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scene Systems Resume Event.\r\n *\r\n * This event is dispatched by a Scene when it is resumed from a paused state, either directly via the `resume` method,\r\n * or as an action from another Scene.\r\n *\r\n * Listen to it from a Scene using `this.events.on('resume', listener)`.\r\n *\r\n * @event Phaser.Scenes.Events#RESUME\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scenes.Systems} sys - A reference to the Scene Systems class of the Scene that emitted this event.\r\n * @param {any} [data] - An optional data object that was passed to this Scene when it was resumed.\r\n */\r\nmodule.exports = 'resume';\r\n\n\n/***/ }),\n\n/***/ 81961:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scene Systems Shutdown Event.\r\n *\r\n * This event is dispatched by a Scene during the Scene Systems shutdown process.\r\n *\r\n * Listen to it from a Scene using `this.events.on('shutdown', listener)`.\r\n *\r\n * You should free-up any resources that may be in use by your Scene in this event handler, on the understanding\r\n * that the Scene may, at any time, become active again. A shutdown Scene is not 'destroyed', it's simply not\r\n * currently active. Use the [DESTROY]{@linkcode Phaser.Scenes.Events#event:DESTROY} event to completely clear resources.\r\n *\r\n * @event Phaser.Scenes.Events#SHUTDOWN\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scenes.Systems} sys - A reference to the Scene Systems class of the Scene that emitted this event.\r\n * @param {any} [data] - An optional data object that was passed to this Scene when it was shutdown.\r\n */\r\nmodule.exports = 'shutdown';\r\n\n\n/***/ }),\n\n/***/ 90194:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scene Systems Sleep Event.\r\n *\r\n * This event is dispatched by a Scene when it is sent to sleep, either directly via the `sleep` method,\r\n * or as an action from another Scene.\r\n *\r\n * Listen to it from a Scene using `this.events.on('sleep', listener)`.\r\n *\r\n * @event Phaser.Scenes.Events#SLEEP\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scenes.Systems} sys - A reference to the Scene Systems class of the Scene that emitted this event.\r\n * @param {any} [data] - An optional data object that was passed to this Scene when it was sent to sleep.\r\n */\r\nmodule.exports = 'sleep';\r\n\n\n/***/ }),\n\n/***/ 6265:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scene Systems Start Event.\r\n *\r\n * This event is dispatched by a Scene during the Scene Systems start process. Primarily used by Scene Plugins.\r\n *\r\n * Listen to it from a Scene using `this.events.on('start', listener)`.\r\n *\r\n * @event Phaser.Scenes.Events#START\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scenes.Systems} sys - A reference to the Scene Systems class of the Scene that emitted this event.\r\n */\r\nmodule.exports = 'start';\r\n\n\n/***/ }),\n\n/***/ 33178:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scene Transition Complete Event.\r\n *\r\n * This event is dispatched by the Target Scene of a transition.\r\n *\r\n * It happens when the transition process has completed. This occurs when the duration timer equals or exceeds the duration\r\n * of the transition.\r\n *\r\n * Listen to it from a Scene using `this.events.on('transitioncomplete', listener)`.\r\n *\r\n * The Scene Transition event flow is as follows:\r\n *\r\n * 1. [TRANSITION_OUT]{@linkcode Phaser.Scenes.Events#event:TRANSITION_OUT} - the Scene that started the transition will emit this event.\r\n * 2. [TRANSITION_INIT]{@linkcode Phaser.Scenes.Events#event:TRANSITION_INIT} - the Target Scene will emit this event if it has an `init` method.\r\n * 3. [TRANSITION_START]{@linkcode Phaser.Scenes.Events#event:TRANSITION_START} - the Target Scene will emit this event after its `create` method is called, OR ...\r\n * 4. [TRANSITION_WAKE]{@linkcode Phaser.Scenes.Events#event:TRANSITION_WAKE} - the Target Scene will emit this event if it was asleep and has been woken-up to be transitioned to.\r\n * 5. [TRANSITION_COMPLETE]{@linkcode Phaser.Scenes.Events#event:TRANSITION_COMPLETE} - the Target Scene will emit this event when the transition finishes.\r\n *\r\n * @event Phaser.Scenes.Events#TRANSITION_COMPLETE\r\n * @type {string}\r\n * @since 3.5.0\r\n *\r\n * @param {Phaser.Scene} scene -The Scene on which the transitioned completed.\r\n */\r\nmodule.exports = 'transitioncomplete';\r\n\n\n/***/ }),\n\n/***/ 43063:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scene Transition Init Event.\r\n *\r\n * This event is dispatched by the Target Scene of a transition.\r\n *\r\n * It happens immediately after the `Scene.init` method is called. If the Scene does not have an `init` method,\r\n * this event is not dispatched.\r\n *\r\n * Listen to it from a Scene using `this.events.on('transitioninit', listener)`.\r\n *\r\n * The Scene Transition event flow is as follows:\r\n *\r\n * 1. [TRANSITION_OUT]{@linkcode Phaser.Scenes.Events#event:TRANSITION_OUT} - the Scene that started the transition will emit this event.\r\n * 2. [TRANSITION_INIT]{@linkcode Phaser.Scenes.Events#event:TRANSITION_INIT} - the Target Scene will emit this event if it has an `init` method.\r\n * 3. [TRANSITION_START]{@linkcode Phaser.Scenes.Events#event:TRANSITION_START} - the Target Scene will emit this event after its `create` method is called, OR ...\r\n * 4. [TRANSITION_WAKE]{@linkcode Phaser.Scenes.Events#event:TRANSITION_WAKE} - the Target Scene will emit this event if it was asleep and has been woken-up to be transitioned to.\r\n * 5. [TRANSITION_COMPLETE]{@linkcode Phaser.Scenes.Events#event:TRANSITION_COMPLETE} - the Target Scene will emit this event when the transition finishes.\r\n *\r\n * @event Phaser.Scenes.Events#TRANSITION_INIT\r\n * @type {string}\r\n * @since 3.5.0\r\n *\r\n * @param {Phaser.Scene} from - A reference to the Scene that is being transitioned from.\r\n * @param {number} duration - The duration of the transition in ms.\r\n */\r\nmodule.exports = 'transitioninit';\r\n\n\n/***/ }),\n\n/***/ 11259:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scene Transition Out Event.\r\n *\r\n * This event is dispatched by a Scene when it initiates a transition to another Scene.\r\n *\r\n * Listen to it from a Scene using `this.events.on('transitionout', listener)`.\r\n *\r\n * The Scene Transition event flow is as follows:\r\n *\r\n * 1. [TRANSITION_OUT]{@linkcode Phaser.Scenes.Events#event:TRANSITION_OUT} - the Scene that started the transition will emit this event.\r\n * 2. [TRANSITION_INIT]{@linkcode Phaser.Scenes.Events#event:TRANSITION_INIT} - the Target Scene will emit this event if it has an `init` method.\r\n * 3. [TRANSITION_START]{@linkcode Phaser.Scenes.Events#event:TRANSITION_START} - the Target Scene will emit this event after its `create` method is called, OR ...\r\n * 4. [TRANSITION_WAKE]{@linkcode Phaser.Scenes.Events#event:TRANSITION_WAKE} - the Target Scene will emit this event if it was asleep and has been woken-up to be transitioned to.\r\n * 5. [TRANSITION_COMPLETE]{@linkcode Phaser.Scenes.Events#event:TRANSITION_COMPLETE} - the Target Scene will emit this event when the transition finishes.\r\n *\r\n * @event Phaser.Scenes.Events#TRANSITION_OUT\r\n * @type {string}\r\n * @since 3.5.0\r\n *\r\n * @param {Phaser.Scene} target - A reference to the Scene that is being transitioned to.\r\n * @param {number} duration - The duration of the transition in ms.\r\n */\r\nmodule.exports = 'transitionout';\r\n\n\n/***/ }),\n\n/***/ 61611:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scene Transition Start Event.\r\n *\r\n * This event is dispatched by the Target Scene of a transition, only if that Scene was not asleep.\r\n *\r\n * It happens immediately after the `Scene.create` method is called. If the Scene does not have a `create` method,\r\n * this event is dispatched anyway.\r\n *\r\n * If the Target Scene was sleeping then the [TRANSITION_WAKE]{@linkcode Phaser.Scenes.Events#event:TRANSITION_WAKE} event is\r\n * dispatched instead of this event.\r\n *\r\n * Listen to it from a Scene using `this.events.on('transitionstart', listener)`.\r\n *\r\n * The Scene Transition event flow is as follows:\r\n *\r\n * 1. [TRANSITION_OUT]{@linkcode Phaser.Scenes.Events#event:TRANSITION_OUT} - the Scene that started the transition will emit this event.\r\n * 2. [TRANSITION_INIT]{@linkcode Phaser.Scenes.Events#event:TRANSITION_INIT} - the Target Scene will emit this event if it has an `init` method.\r\n * 3. [TRANSITION_START]{@linkcode Phaser.Scenes.Events#event:TRANSITION_START} - the Target Scene will emit this event after its `create` method is called, OR ...\r\n * 4. [TRANSITION_WAKE]{@linkcode Phaser.Scenes.Events#event:TRANSITION_WAKE} - the Target Scene will emit this event if it was asleep and has been woken-up to be transitioned to.\r\n * 5. [TRANSITION_COMPLETE]{@linkcode Phaser.Scenes.Events#event:TRANSITION_COMPLETE} - the Target Scene will emit this event when the transition finishes.\r\n *\r\n * @event Phaser.Scenes.Events#TRANSITION_START\r\n * @type {string}\r\n * @since 3.5.0\r\n *\r\n * @param {Phaser.Scene} from - A reference to the Scene that is being transitioned from.\r\n * @param {number} duration - The duration of the transition in ms.\r\n */\r\nmodule.exports = 'transitionstart';\r\n\n\n/***/ }),\n\n/***/ 45209:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scene Transition Wake Event.\r\n *\r\n * This event is dispatched by the Target Scene of a transition, only if that Scene was asleep before\r\n * the transition began. If the Scene was not asleep the [TRANSITION_START]{@linkcode Phaser.Scenes.Events#event:TRANSITION_START} event is dispatched instead.\r\n *\r\n * Listen to it from a Scene using `this.events.on('transitionwake', listener)`.\r\n *\r\n * The Scene Transition event flow is as follows:\r\n *\r\n * 1. [TRANSITION_OUT]{@linkcode Phaser.Scenes.Events#event:TRANSITION_OUT} - the Scene that started the transition will emit this event.\r\n * 2. [TRANSITION_INIT]{@linkcode Phaser.Scenes.Events#event:TRANSITION_INIT} - the Target Scene will emit this event if it has an `init` method.\r\n * 3. [TRANSITION_START]{@linkcode Phaser.Scenes.Events#event:TRANSITION_START} - the Target Scene will emit this event after its `create` method is called, OR ...\r\n * 4. [TRANSITION_WAKE]{@linkcode Phaser.Scenes.Events#event:TRANSITION_WAKE} - the Target Scene will emit this event if it was asleep and has been woken-up to be transitioned to.\r\n * 5. [TRANSITION_COMPLETE]{@linkcode Phaser.Scenes.Events#event:TRANSITION_COMPLETE} - the Target Scene will emit this event when the transition finishes.\r\n *\r\n * @event Phaser.Scenes.Events#TRANSITION_WAKE\r\n * @type {string}\r\n * @since 3.5.0\r\n *\r\n * @param {Phaser.Scene} from - A reference to the Scene that is being transitioned from.\r\n * @param {number} duration - The duration of the transition in ms.\r\n */\r\nmodule.exports = 'transitionwake';\r\n\n\n/***/ }),\n\n/***/ 22966:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scene Systems Update Event.\r\n *\r\n * This event is dispatched by a Scene during the main game loop step.\r\n *\r\n * The event flow for a single step of a Scene is as follows:\r\n *\r\n * 1. [PRE_UPDATE]{@linkcode Phaser.Scenes.Events#event:PRE_UPDATE}\r\n * 2. [UPDATE]{@linkcode Phaser.Scenes.Events#event:UPDATE}\r\n * 3. The `Scene.update` method is called, if it exists and the Scene is in a Running state, otherwise this is skipped.\r\n * 4. [POST_UPDATE]{@linkcode Phaser.Scenes.Events#event:POST_UPDATE}\r\n * 5. [PRE_RENDER]{@linkcode Phaser.Scenes.Events#event:PRE_RENDER}\r\n * 6. [RENDER]{@linkcode Phaser.Scenes.Events#event:RENDER}\r\n *\r\n * Listen to it from a Scene using `this.events.on('update', listener)`.\r\n *\r\n * A Scene will only run its step if it is active.\r\n *\r\n * @event Phaser.Scenes.Events#UPDATE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n */\r\nmodule.exports = 'update';\r\n\n\n/***/ }),\n\n/***/ 21747:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Scene Systems Wake Event.\r\n *\r\n * This event is dispatched by a Scene when it is woken from sleep, either directly via the `wake` method,\r\n * or as an action from another Scene.\r\n *\r\n * Listen to it from a Scene using `this.events.on('wake', listener)`.\r\n *\r\n * @event Phaser.Scenes.Events#WAKE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scenes.Systems} sys - A reference to the Scene Systems class of the Scene that emitted this event.\r\n * @param {any} [data] - An optional data object that was passed to this Scene when it was woken up.\r\n */\r\nmodule.exports = 'wake';\r\n\n\n/***/ }),\n\n/***/ 44594:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Scenes.Events\r\n */\r\n\r\nmodule.exports = {\r\n\r\n ADDED_TO_SCENE: __webpack_require__(69830),\r\n BOOT: __webpack_require__(7919),\r\n CREATE: __webpack_require__(46763),\r\n DESTROY: __webpack_require__(11763),\r\n PAUSE: __webpack_require__(71555),\r\n POST_UPDATE: __webpack_require__(36735),\r\n PRE_RENDER: __webpack_require__(3809),\r\n PRE_UPDATE: __webpack_require__(90716),\r\n READY: __webpack_require__(58262),\r\n REMOVED_FROM_SCENE: __webpack_require__(91633),\r\n RENDER: __webpack_require__(10319),\r\n RESUME: __webpack_require__(87132),\r\n SHUTDOWN: __webpack_require__(81961),\r\n SLEEP: __webpack_require__(90194),\r\n START: __webpack_require__(6265),\r\n TRANSITION_COMPLETE: __webpack_require__(33178),\r\n TRANSITION_INIT: __webpack_require__(43063),\r\n TRANSITION_OUT: __webpack_require__(11259),\r\n TRANSITION_START: __webpack_require__(61611),\r\n TRANSITION_WAKE: __webpack_require__(45209),\r\n UPDATE: __webpack_require__(22966),\r\n WAKE: __webpack_require__(21747)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 62194:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(89993);\r\nvar Extend = __webpack_require__(79291);\r\n\r\n/**\r\n * @namespace Phaser.Scenes\r\n */\r\n\r\nvar Scene = {\r\n\r\n Events: __webpack_require__(44594),\r\n GetPhysicsPlugins: __webpack_require__(27397),\r\n GetScenePlugins: __webpack_require__(52106),\r\n SceneManager: __webpack_require__(60903),\r\n ScenePlugin: __webpack_require__(52209),\r\n Settings: __webpack_require__(55681),\r\n Systems: __webpack_require__(2368)\r\n\r\n};\r\n\r\n// Merge in the consts\r\nScene = Extend(false, Scene, CONST);\r\n\r\nmodule.exports = Scene;\r\n\n\n/***/ }),\n\n/***/ 30341:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Pavle Goloskokovic (http://prunegames.com)\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Events = __webpack_require__(14463);\r\nvar Extend = __webpack_require__(79291);\r\nvar NOOP = __webpack_require__(29747);\r\n\r\n/**\r\n * @classdesc\r\n * Class containing all the shared state and behavior of a sound object, independent of the implementation.\r\n *\r\n * @class BaseSound\r\n * @extends Phaser.Events.EventEmitter\r\n * @memberof Phaser.Sound\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Sound.BaseSoundManager} manager - Reference to the current sound manager instance.\r\n * @param {string} key - Asset key for the sound.\r\n * @param {Phaser.Types.Sound.SoundConfig} [config] - An optional config object containing default sound settings.\r\n */\r\nvar BaseSound = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function BaseSound (manager, key, config)\r\n {\r\n EventEmitter.call(this);\r\n\r\n /**\r\n * Local reference to the sound manager.\r\n *\r\n * @name Phaser.Sound.BaseSound#manager\r\n * @type {Phaser.Sound.BaseSoundManager}\r\n * @since 3.0.0\r\n */\r\n this.manager = manager;\r\n\r\n /**\r\n * Asset key for the sound.\r\n *\r\n * @name Phaser.Sound.BaseSound#key\r\n * @type {string}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.key = key;\r\n\r\n /**\r\n * Flag indicating if sound is currently playing.\r\n *\r\n * @name Phaser.Sound.BaseSound#isPlaying\r\n * @type {boolean}\r\n * @default false\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.isPlaying = false;\r\n\r\n /**\r\n * Flag indicating if sound is currently paused.\r\n *\r\n * @name Phaser.Sound.BaseSound#isPaused\r\n * @type {boolean}\r\n * @default false\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.isPaused = false;\r\n\r\n /**\r\n * A property that holds the value of sound's actual playback rate,\r\n * after its rate and detune values has been combined with global\r\n * rate and detune values.\r\n *\r\n * @name Phaser.Sound.BaseSound#totalRate\r\n * @type {number}\r\n * @default 1\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.totalRate = 1;\r\n\r\n /**\r\n * A value representing the duration, in seconds.\r\n * It could be total sound duration or a marker duration.\r\n *\r\n * @name Phaser.Sound.BaseSound#duration\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.duration = this.duration || 0;\r\n\r\n /**\r\n * The total duration of the sound in seconds.\r\n *\r\n * @name Phaser.Sound.BaseSound#totalDuration\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.totalDuration = this.totalDuration || 0;\r\n\r\n /**\r\n * A config object used to store default sound settings' values.\r\n * Default values will be set by properties' setters.\r\n *\r\n * @name Phaser.Sound.BaseSound#config\r\n * @type {Phaser.Types.Sound.SoundConfig}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this.config = {\r\n\r\n mute: false,\r\n volume: 1,\r\n rate: 1,\r\n detune: 0,\r\n seek: 0,\r\n loop: false,\r\n delay: 0,\r\n pan: 0\r\n\r\n };\r\n\r\n /**\r\n * Reference to the currently used config.\r\n * It could be default config or marker config.\r\n *\r\n * @name Phaser.Sound.BaseSound#currentConfig\r\n * @type {Phaser.Types.Sound.SoundConfig}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this.currentConfig = this.config;\r\n\r\n this.config = Extend(this.config, config);\r\n\r\n /**\r\n * Object containing markers definitions.\r\n *\r\n * @name Phaser.Sound.BaseSound#markers\r\n * @type {Object.}\r\n * @default {}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.markers = {};\r\n\r\n /**\r\n * Currently playing marker.\r\n * 'null' if whole sound is playing.\r\n *\r\n * @name Phaser.Sound.BaseSound#currentMarker\r\n * @type {Phaser.Types.Sound.SoundMarker}\r\n * @default null\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.currentMarker = null;\r\n\r\n /**\r\n * Flag indicating if destroy method was called on this sound.\r\n *\r\n * @name Phaser.Sound.BaseSound#pendingRemove\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.pendingRemove = false;\r\n },\r\n\r\n /**\r\n * Adds a marker into the current sound. A marker is represented by name, start time, duration, and optionally config object.\r\n * This allows you to bundle multiple sounds together into a single audio file and use markers to jump between them for playback.\r\n *\r\n * @method Phaser.Sound.BaseSound#addMarker\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Sound.SoundMarker} marker - Marker object.\r\n *\r\n * @return {boolean} Whether the marker was added successfully.\r\n */\r\n addMarker: function (marker)\r\n {\r\n if (!marker || !marker.name || typeof marker.name !== 'string')\r\n {\r\n return false;\r\n }\r\n\r\n if (this.markers[marker.name])\r\n {\r\n // eslint-disable-next-line no-console\r\n console.error('addMarker ' + marker.name + ' already exists in Sound');\r\n\r\n return false;\r\n }\r\n\r\n marker = Extend(true, {\r\n name: '',\r\n start: 0,\r\n duration: this.totalDuration - (marker.start || 0),\r\n config: {\r\n mute: false,\r\n volume: 1,\r\n rate: 1,\r\n detune: 0,\r\n seek: 0,\r\n loop: false,\r\n delay: 0,\r\n pan: 0\r\n }\r\n }, marker);\r\n\r\n this.markers[marker.name] = marker;\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * Updates previously added marker.\r\n *\r\n * @method Phaser.Sound.BaseSound#updateMarker\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Sound.SoundMarker} marker - Marker object with updated values.\r\n *\r\n * @return {boolean} Whether the marker was updated successfully.\r\n */\r\n updateMarker: function (marker)\r\n {\r\n if (!marker || !marker.name || typeof marker.name !== 'string')\r\n {\r\n return false;\r\n }\r\n\r\n if (!this.markers[marker.name])\r\n {\r\n // eslint-disable-next-line no-console\r\n console.warn('Audio Marker: ' + marker.name + ' missing in Sound: ' + this.key);\r\n\r\n return false;\r\n }\r\n\r\n this.markers[marker.name] = Extend(true, this.markers[marker.name], marker);\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * Removes a marker from the sound.\r\n *\r\n * @method Phaser.Sound.BaseSound#removeMarker\r\n * @since 3.0.0\r\n *\r\n * @param {string} markerName - The name of the marker to remove.\r\n *\r\n * @return {?Phaser.Types.Sound.SoundMarker} Removed marker object or 'null' if there was no marker with provided name.\r\n */\r\n removeMarker: function (markerName)\r\n {\r\n var marker = this.markers[markerName];\r\n\r\n if (!marker)\r\n {\r\n return null;\r\n }\r\n\r\n this.markers[markerName] = null;\r\n\r\n return marker;\r\n },\r\n\r\n /**\r\n * Play this sound, or a marked section of it.\r\n *\r\n * It always plays the sound from the start. If you want to start playback from a specific time\r\n * you can set 'seek' setting of the config object, provided to this call, to that value.\r\n *\r\n * @method Phaser.Sound.BaseSound#play\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Sound.SoundConfig)} [markerName=''] - If you want to play a marker then provide the marker name here. Alternatively, this parameter can be a SoundConfig object.\r\n * @param {Phaser.Types.Sound.SoundConfig} [config] - Optional sound config object to be applied to this marker or entire sound if no marker name is provided. It gets memorized for future plays of current section of the sound.\r\n *\r\n * @return {boolean} Whether the sound started playing successfully.\r\n */\r\n play: function (markerName, config)\r\n {\r\n if (markerName === undefined) { markerName = ''; }\r\n\r\n if (typeof markerName === 'object')\r\n {\r\n config = markerName;\r\n markerName = '';\r\n }\r\n\r\n if (typeof markerName !== 'string')\r\n {\r\n return false;\r\n }\r\n\r\n if (!markerName)\r\n {\r\n this.currentMarker = null;\r\n this.currentConfig = this.config;\r\n this.duration = this.totalDuration;\r\n }\r\n else\r\n {\r\n if (!this.markers[markerName])\r\n {\r\n // eslint-disable-next-line no-console\r\n console.warn('Marker: ' + markerName + ' missing in Sound: ' + this.key);\r\n\r\n return false;\r\n }\r\n\r\n this.currentMarker = this.markers[markerName];\r\n this.currentConfig = this.currentMarker.config;\r\n this.duration = this.currentMarker.duration;\r\n }\r\n\r\n this.resetConfig();\r\n\r\n this.currentConfig = Extend(this.currentConfig, config);\r\n\r\n this.isPlaying = true;\r\n this.isPaused = false;\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * Pauses the sound. This only works if the sound is currently playing.\r\n *\r\n * You can inspect the `isPlaying` and `isPaused` properties to check the state.\r\n *\r\n * @method Phaser.Sound.BaseSound#pause\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} Whether the sound was paused successfully.\r\n */\r\n pause: function ()\r\n {\r\n if (this.isPaused || !this.isPlaying)\r\n {\r\n return false;\r\n }\r\n\r\n this.isPlaying = false;\r\n this.isPaused = true;\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * Resumes the sound. This only works if the sound is paused and not already playing.\r\n *\r\n * You can inspect the `isPlaying` and `isPaused` properties to check the state.\r\n *\r\n * @method Phaser.Sound.BaseSound#resume\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} Whether the sound was resumed successfully.\r\n */\r\n resume: function ()\r\n {\r\n if (!this.isPaused || this.isPlaying)\r\n {\r\n return false;\r\n }\r\n\r\n this.isPlaying = true;\r\n this.isPaused = false;\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * Stop playing this sound.\r\n *\r\n * @method Phaser.Sound.BaseSound#stop\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} Whether the sound was stopped successfully.\r\n */\r\n stop: function ()\r\n {\r\n if (!this.isPaused && !this.isPlaying)\r\n {\r\n return false;\r\n }\r\n\r\n this.isPlaying = false;\r\n this.isPaused = false;\r\n\r\n this.resetConfig();\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * Method used internally for applying config values to some of the sound properties.\r\n *\r\n * @method Phaser.Sound.BaseSound#applyConfig\r\n * @since 3.0.0\r\n */\r\n applyConfig: function ()\r\n {\r\n this.mute = this.currentConfig.mute;\r\n this.volume = this.currentConfig.volume;\r\n this.rate = this.currentConfig.rate;\r\n this.detune = this.currentConfig.detune;\r\n this.loop = this.currentConfig.loop;\r\n this.pan = this.currentConfig.pan;\r\n },\r\n\r\n /**\r\n * Method used internally for resetting values of some of the config properties.\r\n *\r\n * @method Phaser.Sound.BaseSound#resetConfig\r\n * @since 3.0.0\r\n */\r\n resetConfig: function ()\r\n {\r\n this.currentConfig.seek = 0;\r\n this.currentConfig.delay = 0;\r\n },\r\n\r\n /**\r\n * Update method called automatically by sound manager on every game step.\r\n *\r\n * @method Phaser.Sound.BaseSound#update\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current timestamp as generated by the Request Animation Frame or SetTimeout.\r\n * @param {number} delta - The delta time elapsed since the last frame.\r\n */\r\n update: NOOP,\r\n\r\n /**\r\n * Method used internally to calculate total playback rate of the sound.\r\n *\r\n * @method Phaser.Sound.BaseSound#calculateRate\r\n * @since 3.0.0\r\n */\r\n calculateRate: function ()\r\n {\r\n var cent = 1.0005777895065548; // Math.pow(2, 1/1200);\r\n var totalDetune = this.currentConfig.detune + this.manager.detune;\r\n var detuneRate = Math.pow(cent, totalDetune);\r\n\r\n this.totalRate = this.currentConfig.rate * this.manager.rate * detuneRate;\r\n },\r\n\r\n /**\r\n * Destroys this sound and all associated events and marks it for removal from the sound manager.\r\n *\r\n * @method Phaser.Sound.BaseSound#destroy\r\n * @fires Phaser.Sound.Events#DESTROY\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n if (this.pendingRemove)\r\n {\r\n return;\r\n }\r\n\r\n this.stop();\r\n\r\n this.emit(Events.DESTROY, this);\r\n\r\n this.removeAllListeners();\r\n\r\n this.pendingRemove = true;\r\n\r\n this.manager = null;\r\n this.config = null;\r\n this.currentConfig = null;\r\n this.markers = null;\r\n this.currentMarker = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = BaseSound;\r\n\n\n/***/ }),\n\n/***/ 85034:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Pavle Goloskokovic (http://prunegames.com)\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Clone = __webpack_require__(41786);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Events = __webpack_require__(14463);\r\nvar GameEvents = __webpack_require__(8443);\r\nvar GetAll = __webpack_require__(46710);\r\nvar GetFirst = __webpack_require__(58731);\r\nvar NOOP = __webpack_require__(29747);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * Base class for other Sound Manager classes.\r\n *\r\n * @class BaseSoundManager\r\n * @extends Phaser.Events.EventEmitter\r\n * @memberof Phaser.Sound\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Game} game - Reference to the current game instance.\r\n *\r\n * @see Phaser.Sound.HTML5AudioSoundManager\r\n * @see Phaser.Sound.NoAudioSoundManager\r\n * @see Phaser.Sound.WebAudioSoundManager\r\n */\r\nvar BaseSoundManager = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function BaseSoundManager (game)\r\n {\r\n EventEmitter.call(this);\r\n\r\n /**\r\n * Local reference to game.\r\n *\r\n * @name Phaser.Sound.BaseSoundManager#game\r\n * @type {Phaser.Game}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.game = game;\r\n\r\n /**\r\n * Local reference to the JSON Cache, as used by Audio Sprites.\r\n *\r\n * @name Phaser.Sound.BaseSoundManager#jsonCache\r\n * @type {Phaser.Cache.BaseCache}\r\n * @readonly\r\n * @since 3.7.0\r\n */\r\n this.jsonCache = game.cache.json;\r\n\r\n /**\r\n * An array containing all added sounds.\r\n *\r\n * @name Phaser.Sound.BaseSoundManager#sounds\r\n * @type {Phaser.Sound.BaseSound[]}\r\n * @default []\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this.sounds = [];\r\n\r\n /**\r\n * Global mute setting.\r\n *\r\n * @name Phaser.Sound.BaseSoundManager#mute\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.mute = false;\r\n\r\n /**\r\n * Global volume setting.\r\n *\r\n * @name Phaser.Sound.BaseSoundManager#volume\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n this.volume = 1;\r\n\r\n /**\r\n * Flag indicating if sounds should be paused when game looses focus,\r\n * for instance when user switches to another tab/program/app.\r\n *\r\n * @name Phaser.Sound.BaseSoundManager#pauseOnBlur\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.pauseOnBlur = true;\r\n\r\n /**\r\n * Property that actually holds the value of global playback rate.\r\n *\r\n * @name Phaser.Sound.BaseSoundManager#_rate\r\n * @type {number}\r\n * @private\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n this._rate = 1;\r\n\r\n /**\r\n * Property that actually holds the value of global detune.\r\n *\r\n * @name Phaser.Sound.BaseSoundManager#_detune\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this._detune = 0;\r\n\r\n /**\r\n * Mobile devices require sounds to be triggered from an explicit user action,\r\n * such as a tap, before any sound can be loaded/played on a web page.\r\n * Set to true if the audio system is currently locked awaiting user interaction.\r\n *\r\n * @name Phaser.Sound.BaseSoundManager#locked\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.locked = this.locked || false;\r\n\r\n /**\r\n * Flag used internally for handling when the audio system\r\n * has been unlocked, if there ever was a need for it.\r\n *\r\n * @name Phaser.Sound.BaseSoundManager#unlocked\r\n * @type {boolean}\r\n * @default false\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this.unlocked = false;\r\n\r\n /**\r\n * Flag used to track if the game has lost focus.\r\n *\r\n * @name Phaser.Sound.BaseSoundManager#gameLostFocus\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.60.0\r\n */\r\n this.gameLostFocus = false;\r\n\r\n /**\r\n * The Spatial Audio listener position.\r\n *\r\n * Only available with WebAudio.\r\n *\r\n * You can modify the x/y properties of this Vec2 directly to\r\n * adjust the listener position within the game world.\r\n *\r\n * @name Phaser.Sound.BaseSoundManager#listenerPosition\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.60.0\r\n */\r\n this.listenerPosition = new Vector2();\r\n\r\n game.events.on(GameEvents.BLUR, this.onGameBlur, this);\r\n game.events.on(GameEvents.FOCUS, this.onGameFocus, this);\r\n game.events.on(GameEvents.PRE_STEP, this.update, this);\r\n game.events.once(GameEvents.DESTROY, this.destroy, this);\r\n },\r\n\r\n /**\r\n * Adds a new sound into the sound manager.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#add\r\n * @override\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - Asset key for the sound.\r\n * @param {Phaser.Types.Sound.SoundConfig} [config] - An optional config object containing default sound settings.\r\n *\r\n * @return {Phaser.Sound.BaseSound} The new sound instance.\r\n */\r\n add: NOOP,\r\n\r\n /**\r\n * Adds a new audio sprite sound into the sound manager.\r\n * Audio Sprites are a combination of audio files and a JSON configuration.\r\n * The JSON follows the format of that created by https://github.com/tonistiigi/audiosprite\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#addAudioSprite\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - Asset key for the sound.\r\n * @param {Phaser.Types.Sound.SoundConfig} [config] - An optional config object containing default sound settings.\r\n *\r\n * @return {(Phaser.Sound.NoAudioSound|Phaser.Sound.HTML5AudioSound|Phaser.Sound.WebAudioSound)} The new audio sprite sound instance.\r\n */\r\n addAudioSprite: function (key, config)\r\n {\r\n if (config === undefined) { config = {}; }\r\n\r\n var sound = this.add(key, config);\r\n\r\n sound.spritemap = this.jsonCache.get(key).spritemap;\r\n\r\n for (var markerName in sound.spritemap)\r\n {\r\n if (!sound.spritemap.hasOwnProperty(markerName))\r\n {\r\n continue;\r\n }\r\n\r\n var markerConfig = Clone(config);\r\n\r\n var marker = sound.spritemap[markerName];\r\n\r\n markerConfig.loop = (marker.hasOwnProperty('loop')) ? marker.loop : false;\r\n\r\n sound.addMarker({\r\n name: markerName,\r\n start: marker.start,\r\n duration: marker.end - marker.start,\r\n config: markerConfig\r\n });\r\n }\r\n\r\n return sound;\r\n },\r\n\r\n /**\r\n * Gets the first sound in this Sound Manager that matches the given key.\r\n * If none can be found it returns `null`.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#get\r\n * @since 3.23.0\r\n *\r\n * @generic {Phaser.Sound.BaseSound} T\r\n * @genericUse {T} - [$return]\r\n *\r\n * @param {string} key - Sound asset key.\r\n *\r\n * @return {?Phaser.Sound.BaseSound} - The sound, or null.\r\n */\r\n get: function (key)\r\n {\r\n return GetFirst(this.sounds, 'key', key);\r\n },\r\n\r\n /**\r\n * Gets all sounds in this Sound Manager.\r\n *\r\n * You can optionally specify a key, in which case only Sound instances that match the given key\r\n * will be returned.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#getAll\r\n * @since 3.23.0\r\n *\r\n * @generic {Phaser.Sound.BaseSound} T\r\n * @genericUse {T[]} - [$return]\r\n *\r\n * @param {string} [key] - Optional asset key. If given, only Sound instances with this key will be returned.\r\n *\r\n * @return {Phaser.Sound.BaseSound[]} - The sounds, or an empty array.\r\n */\r\n getAll: function (key)\r\n {\r\n if (key)\r\n {\r\n return GetAll(this.sounds, 'key', key);\r\n }\r\n else\r\n {\r\n return GetAll(this.sounds);\r\n }\r\n },\r\n\r\n /**\r\n * Returns all sounds from this Sound Manager that are currently\r\n * playing. That is, Sound instances that have their `isPlaying`\r\n * property set to `true`.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#getAllPlaying\r\n * @since 3.60.0\r\n *\r\n * @generic {Phaser.Sound.BaseSound} T\r\n * @genericUse {T[]} - [$return]\r\n *\r\n * @return {Phaser.Sound.BaseSound[]} - All currently playing sounds, or an empty array.\r\n */\r\n getAllPlaying: function ()\r\n {\r\n return GetAll(this.sounds, 'isPlaying', true);\r\n },\r\n\r\n /**\r\n * Adds a new sound to the sound manager and plays it.\r\n *\r\n * The sound will be automatically removed (destroyed) once playback ends.\r\n *\r\n * This lets you play a new sound on the fly without the need to keep a reference to it.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#play\r\n * @listens Phaser.Sound.Events#COMPLETE\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - Asset key for the sound.\r\n * @param {(Phaser.Types.Sound.SoundConfig|Phaser.Types.Sound.SoundMarker)} [extra] - An optional additional object containing settings to be applied to the sound. It could be either config or marker object.\r\n *\r\n * @return {boolean} Whether the sound started playing successfully.\r\n */\r\n play: function (key, extra)\r\n {\r\n var sound = this.add(key);\r\n\r\n sound.once(Events.COMPLETE, sound.destroy, sound);\r\n\r\n if (extra)\r\n {\r\n if (extra.name)\r\n {\r\n sound.addMarker(extra);\r\n\r\n return sound.play(extra.name);\r\n }\r\n else\r\n {\r\n return sound.play(extra);\r\n }\r\n }\r\n else\r\n {\r\n return sound.play();\r\n }\r\n },\r\n\r\n /**\r\n * Adds a new audio sprite sound to the sound manager and plays it.\r\n * The sprite will be automatically removed (destroyed) once playback ends.\r\n * This lets you play a new sound on the fly without the need to keep a reference to it.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#playAudioSprite\r\n * @listens Phaser.Sound.Events#COMPLETE\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - Asset key for the sound.\r\n * @param {string} spriteName - The name of the sound sprite to play.\r\n * @param {Phaser.Types.Sound.SoundConfig} [config] - An optional config object containing default sound settings.\r\n *\r\n * @return {boolean} Whether the audio sprite sound started playing successfully.\r\n */\r\n playAudioSprite: function (key, spriteName, config)\r\n {\r\n var sound = this.addAudioSprite(key);\r\n\r\n sound.once(Events.COMPLETE, sound.destroy, sound);\r\n\r\n return sound.play(spriteName, config);\r\n },\r\n\r\n /**\r\n * Removes a sound from the sound manager.\r\n * The removed sound is destroyed before removal.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#remove\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Sound.BaseSound} sound - The sound object to remove.\r\n *\r\n * @return {boolean} True if the sound was removed successfully, otherwise false.\r\n */\r\n remove: function (sound)\r\n {\r\n var index = this.sounds.indexOf(sound);\r\n\r\n if (index !== -1)\r\n {\r\n sound.destroy();\r\n\r\n this.sounds.splice(index, 1);\r\n\r\n return true;\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Removes all sounds from the manager, destroying the sounds.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#removeAll\r\n * @since 3.23.0\r\n */\r\n removeAll: function ()\r\n {\r\n this.sounds.forEach(function (sound)\r\n {\r\n sound.destroy();\r\n });\r\n\r\n this.sounds.length = 0;\r\n },\r\n\r\n /**\r\n * Removes all sounds from the sound manager that have an asset key matching the given value.\r\n * The removed sounds are destroyed before removal.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#removeByKey\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key to match when removing sound objects.\r\n *\r\n * @return {number} The number of matching sound objects that were removed.\r\n */\r\n removeByKey: function (key)\r\n {\r\n var removed = 0;\r\n\r\n for (var i = this.sounds.length - 1; i >= 0; i--)\r\n {\r\n var sound = this.sounds[i];\r\n\r\n if (sound.key === key)\r\n {\r\n sound.destroy();\r\n\r\n this.sounds.splice(i, 1);\r\n\r\n removed++;\r\n }\r\n }\r\n\r\n return removed;\r\n },\r\n\r\n /**\r\n * Pauses all the sounds in the game.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#pauseAll\r\n * @fires Phaser.Sound.Events#PAUSE_ALL\r\n * @since 3.0.0\r\n */\r\n pauseAll: function ()\r\n {\r\n this.forEachActiveSound(function (sound)\r\n {\r\n sound.pause();\r\n });\r\n\r\n this.emit(Events.PAUSE_ALL, this);\r\n },\r\n\r\n /**\r\n * Resumes all the sounds in the game.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#resumeAll\r\n * @fires Phaser.Sound.Events#RESUME_ALL\r\n * @since 3.0.0\r\n */\r\n resumeAll: function ()\r\n {\r\n this.forEachActiveSound(function (sound)\r\n {\r\n sound.resume();\r\n });\r\n\r\n this.emit(Events.RESUME_ALL, this);\r\n },\r\n\r\n /**\r\n * Sets the X and Y position of the Spatial Audio listener on this Web Audios context.\r\n *\r\n * If you call this method with no parameters it will default to the center-point of\r\n * the game canvas. Depending on the type of game you're making, you may need to call\r\n * this method constantly to reset the listener position as the camera scrolls.\r\n *\r\n * Calling this method does nothing on HTML5Audio.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#setListenerPosition\r\n * @since 3.60.0\r\n *\r\n * @param {number} [x] - The x position of the Spatial Audio listener.\r\n * @param {number} [y] - The y position of the Spatial Audio listener.\r\n */\r\n setListenerPosition: NOOP,\r\n\r\n /**\r\n * Stops all the sounds in the game.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#stopAll\r\n * @fires Phaser.Sound.Events#STOP_ALL\r\n * @since 3.0.0\r\n */\r\n stopAll: function ()\r\n {\r\n this.forEachActiveSound(function (sound)\r\n {\r\n sound.stop();\r\n });\r\n\r\n this.emit(Events.STOP_ALL, this);\r\n },\r\n\r\n /**\r\n * Stops any sounds matching the given key.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#stopByKey\r\n * @since 3.23.0\r\n *\r\n * @param {string} key - Sound asset key.\r\n *\r\n * @return {number} - How many sounds were stopped.\r\n */\r\n stopByKey: function (key)\r\n {\r\n var stopped = 0;\r\n\r\n this.getAll(key).forEach(function (sound)\r\n {\r\n if (sound.stop()) { stopped++; }\r\n });\r\n\r\n return stopped;\r\n },\r\n\r\n /**\r\n * When a key is given, returns true if any sound with that key is playing.\r\n *\r\n * When no key is given, returns true if any sound is playing.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#isPlaying\r\n * @since 3.85.0\r\n *\r\n * @param {?string} key - Sound asset key.\r\n *\r\n * @return {boolean} - Per the key argument, true if any matching sound is playing, otherwise false.\r\n */\r\n isPlaying: function (key)\r\n {\r\n var sounds = this.sounds;\r\n var i = sounds.length - 1;\r\n var sound;\r\n\r\n if (key === undefined)\r\n {\r\n for (; i >= 0; i--)\r\n {\r\n sound = this.sounds[i];\r\n\r\n if (sound.isPlaying)\r\n {\r\n return true;\r\n }\r\n }\r\n }\r\n else\r\n {\r\n for (; i >= 0; i--)\r\n {\r\n sound = this.sounds[i];\r\n\r\n if (sound.key === key && sound.isPlaying)\r\n {\r\n return true;\r\n }\r\n }\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Method used internally for unlocking audio playback on devices that\r\n * require user interaction before any sound can be played on a web page.\r\n *\r\n * Read more about how this issue is handled here in [this article](https://medium.com/@pgoloskokovic/unlocking-web-audio-the-smarter-way-8858218c0e09).\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#unlock\r\n * @override\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n unlock: NOOP,\r\n\r\n /**\r\n * Method used internally for pausing sound manager if\r\n * Phaser.Sound.BaseSoundManager#pauseOnBlur is set to true.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#onBlur\r\n * @override\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n onBlur: NOOP,\r\n\r\n /**\r\n * Method used internally for resuming sound manager if\r\n * Phaser.Sound.BaseSoundManager#pauseOnBlur is set to true.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#onFocus\r\n * @override\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n onFocus: NOOP,\r\n\r\n /**\r\n * Internal handler for Phaser.Core.Events#BLUR.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#onGameBlur\r\n * @private\r\n * @since 3.23.0\r\n */\r\n onGameBlur: function ()\r\n {\r\n this.gameLostFocus = true;\r\n\r\n if (this.pauseOnBlur)\r\n {\r\n this.onBlur();\r\n }\r\n },\r\n\r\n /**\r\n * Internal handler for Phaser.Core.Events#FOCUS.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#onGameFocus\r\n * @private\r\n * @since 3.23.0\r\n */\r\n onGameFocus: function ()\r\n {\r\n this.gameLostFocus = false;\r\n\r\n if (this.pauseOnBlur)\r\n {\r\n this.onFocus();\r\n }\r\n },\r\n\r\n /**\r\n * Update method called on every game step.\r\n * Removes destroyed sounds and updates every active sound in the game.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#update\r\n * @protected\r\n * @fires Phaser.Sound.Events#UNLOCKED\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current timestamp as generated by the Request Animation Frame or SetTimeout.\r\n * @param {number} delta - The delta time elapsed since the last frame.\r\n */\r\n update: function (time, delta)\r\n {\r\n if (this.unlocked)\r\n {\r\n this.unlocked = false;\r\n this.locked = false;\r\n\r\n this.emit(Events.UNLOCKED, this);\r\n }\r\n\r\n for (var i = this.sounds.length - 1; i >= 0; i--)\r\n {\r\n if (this.sounds[i].pendingRemove)\r\n {\r\n this.sounds.splice(i, 1);\r\n }\r\n }\r\n\r\n this.sounds.forEach(function (sound)\r\n {\r\n sound.update(time, delta);\r\n });\r\n },\r\n\r\n /**\r\n * Destroys all the sounds in the game and all associated events.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.game.events.off(GameEvents.BLUR, this.onGameBlur, this);\r\n this.game.events.off(GameEvents.FOCUS, this.onGameFocus, this);\r\n this.game.events.off(GameEvents.PRE_STEP, this.update, this);\r\n\r\n this.removeAllListeners();\r\n\r\n this.removeAll();\r\n\r\n this.sounds.length = 0;\r\n this.sounds = null;\r\n this.listenerPosition = null;\r\n this.game = null;\r\n },\r\n\r\n /**\r\n * Method used internally for iterating only over active sounds and skipping sounds that are marked for removal.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#forEachActiveSound\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Sound.EachActiveSoundCallback} callback - Callback function. (manager: Phaser.Sound.BaseSoundManager, sound: Phaser.Sound.BaseSound, index: number, sounds: Phaser.Manager.BaseSound[]) => void\r\n * @param {*} [scope] - Callback context.\r\n */\r\n forEachActiveSound: function (callback, scope)\r\n {\r\n var _this = this;\r\n\r\n this.sounds.forEach(function (sound, index)\r\n {\r\n if (sound && !sound.pendingRemove)\r\n {\r\n callback.call(scope || _this, sound, index, _this.sounds);\r\n }\r\n });\r\n },\r\n\r\n /**\r\n * Sets the global playback rate at which all the sounds will be played.\r\n *\r\n * For example, a value of 1.0 plays the audio at full speed, 0.5 plays the audio at half speed\r\n * and 2.0 doubles the audios playback speed.\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#setRate\r\n * @fires Phaser.Sound.Events#GLOBAL_RATE\r\n * @since 3.3.0\r\n *\r\n * @param {number} value - Global playback rate at which all the sounds will be played.\r\n *\r\n * @return {this} This Sound Manager.\r\n */\r\n setRate: function (value)\r\n {\r\n this.rate = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Global playback rate at which all the sounds will be played.\r\n * Value of 1.0 plays the audio at full speed, 0.5 plays the audio at half speed\r\n * and 2.0 doubles the audio's playback speed.\r\n *\r\n * @name Phaser.Sound.BaseSoundManager#rate\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n rate: {\r\n\r\n get: function ()\r\n {\r\n return this._rate;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._rate = value;\r\n\r\n this.forEachActiveSound(function (sound)\r\n {\r\n sound.calculateRate();\r\n });\r\n\r\n this.emit(Events.GLOBAL_RATE, this, value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Sets the global detuning of all sounds in [cents](https://en.wikipedia.org/wiki/Cent_%28music%29).\r\n * The range of the value is -1200 to 1200, but we recommend setting it to [50](https://en.wikipedia.org/wiki/50_Cent).\r\n *\r\n * @method Phaser.Sound.BaseSoundManager#setDetune\r\n * @fires Phaser.Sound.Events#GLOBAL_DETUNE\r\n * @since 3.3.0\r\n *\r\n * @param {number} value - The range of the value is -1200 to 1200, but we recommend setting it to [50](https://en.wikipedia.org/wiki/50_Cent).\r\n *\r\n * @return {this} This Sound Manager.\r\n */\r\n setDetune: function (value)\r\n {\r\n this.detune = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Global detuning of all sounds in [cents](https://en.wikipedia.org/wiki/Cent_%28music%29).\r\n * The range of the value is -1200 to 1200, but we recommend setting it to [50](https://en.wikipedia.org/wiki/50_Cent).\r\n *\r\n * @name Phaser.Sound.BaseSoundManager#detune\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n detune: {\r\n\r\n get: function ()\r\n {\r\n return this._detune;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._detune = value;\r\n\r\n this.forEachActiveSound(function (sound)\r\n {\r\n sound.calculateRate();\r\n });\r\n\r\n this.emit(Events.GLOBAL_DETUNE, this, value);\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = BaseSoundManager;\r\n\n\n/***/ }),\n\n/***/ 14747:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Pavle Goloskokovic (http://prunegames.com)\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar HTML5AudioSoundManager = __webpack_require__(33684);\r\nvar NoAudioSoundManager = __webpack_require__(25960);\r\nvar WebAudioSoundManager = __webpack_require__(57490);\r\n\r\n/**\r\n * Creates a Web Audio, HTML5 Audio or No Audio Sound Manager based on config and device settings.\r\n *\r\n * Be aware of https://developers.google.com/web/updates/2017/09/autoplay-policy-changes\r\n *\r\n * @function Phaser.Sound.SoundManagerCreator\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Game} game - Reference to the current game instance.\r\n *\r\n * @return {(Phaser.Sound.HTML5AudioSoundManager|Phaser.Sound.WebAudioSoundManager|Phaser.Sound.NoAudioSoundManager)} The Sound Manager instance that was created.\r\n */\r\nvar SoundManagerCreator = {\r\n\r\n create: function (game)\r\n {\r\n var audioConfig = game.config.audio;\r\n var deviceAudio = game.device.audio;\r\n\r\n if (audioConfig.noAudio || (!deviceAudio.webAudio && !deviceAudio.audioData))\r\n {\r\n return new NoAudioSoundManager(game);\r\n }\r\n\r\n if (deviceAudio.webAudio && !audioConfig.disableWebAudio)\r\n {\r\n return new WebAudioSoundManager(game);\r\n }\r\n\r\n return new HTML5AudioSoundManager(game);\r\n }\r\n\r\n};\r\n\r\nmodule.exports = SoundManagerCreator;\r\n\n\n/***/ }),\n\n/***/ 19723:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Sound Complete Event.\r\n *\r\n * This event is dispatched by both Web Audio and HTML5 Audio Sound objects when they complete playback.\r\n *\r\n * Listen to it from a Sound instance using `Sound.on('complete', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var music = this.sound.add('key');\r\n * music.on('complete', listener);\r\n * music.play();\r\n * ```\r\n *\r\n * @event Phaser.Sound.Events#COMPLETE\r\n * @type {string}\r\n * @since 3.16.1\r\n *\r\n * @param {(Phaser.Sound.WebAudioSound|Phaser.Sound.HTML5AudioSound)} sound - A reference to the Sound that emitted the event.\r\n */\r\nmodule.exports = 'complete';\r\n\n\n/***/ }),\n\n/***/ 98882:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Audio Data Decoded All Event.\r\n *\r\n * This event is dispatched by the Web Audio Sound Manager as a result of calling the `decodeAudio` method,\r\n * once all files passed to the method have been decoded (or errored).\r\n *\r\n * Use `Phaser.Sound.Events#DECODED` to listen for single sounds being decoded, and `DECODED_ALL` to\r\n * listen for them all completing.\r\n *\r\n * Listen to it from the Sound Manager in a Scene using `this.sound.on('decodedall', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * this.sound.once('decodedall', handler);\r\n * this.sound.decodeAudio([ audioFiles ]);\r\n * ```\r\n *\r\n * @event Phaser.Sound.Events#DECODED_ALL\r\n * @type {string}\r\n * @since 3.18.0\r\n */\r\nmodule.exports = 'decodedall';\r\n\n\n/***/ }),\n\n/***/ 57506:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Audio Data Decoded Event.\r\n *\r\n * This event is dispatched by the Web Audio Sound Manager as a result of calling the `decodeAudio` method.\r\n *\r\n * Listen to it from the Sound Manager in a Scene using `this.sound.on('decoded', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * this.sound.on('decoded', handler);\r\n * this.sound.decodeAudio(key, audioData);\r\n * ```\r\n *\r\n * @event Phaser.Sound.Events#DECODED\r\n * @type {string}\r\n * @since 3.18.0\r\n *\r\n * @param {string} key - The key of the audio file that was decoded and added to the audio cache.\r\n */\r\nmodule.exports = 'decoded';\r\n\n\n/***/ }),\n\n/***/ 73146:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Sound Destroy Event.\r\n *\r\n * This event is dispatched by both Web Audio and HTML5 Audio Sound objects when they are destroyed, either\r\n * directly or via a Sound Manager.\r\n *\r\n * Listen to it from a Sound instance using `Sound.on('destroy', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var music = this.sound.add('key');\r\n * music.on('destroy', listener);\r\n * music.destroy();\r\n * ```\r\n *\r\n * @event Phaser.Sound.Events#DESTROY\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Sound.WebAudioSound|Phaser.Sound.HTML5AudioSound)} sound - A reference to the Sound that emitted the event.\r\n */\r\nmodule.exports = 'destroy';\r\n\n\n/***/ }),\n\n/***/ 11305:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Sound Detune Event.\r\n *\r\n * This event is dispatched by both Web Audio and HTML5 Audio Sound objects when their detune value changes.\r\n *\r\n * Listen to it from a Sound instance using `Sound.on('detune', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var music = this.sound.add('key');\r\n * music.on('detune', listener);\r\n * music.play();\r\n * music.setDetune(200);\r\n * ```\r\n *\r\n * @event Phaser.Sound.Events#DETUNE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Sound.WebAudioSound|Phaser.Sound.HTML5AudioSound)} sound - A reference to the Sound that emitted the event.\r\n * @param {number} detune - The new detune value of the Sound.\r\n */\r\nmodule.exports = 'detune';\r\n\n\n/***/ }),\n\n/***/ 40577:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Sound Manager Global Detune Event.\r\n *\r\n * This event is dispatched by the Base Sound Manager, or more typically, an instance of the Web Audio Sound Manager,\r\n * or the HTML5 Audio Manager. It is dispatched when the `detune` property of the Sound Manager is changed, which globally\r\n * adjusts the detuning of all active sounds.\r\n *\r\n * Listen to it from a Scene using: `this.sound.on('rate', listener)`.\r\n *\r\n * @event Phaser.Sound.Events#GLOBAL_DETUNE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Sound.BaseSoundManager} soundManager - A reference to the sound manager that emitted the event.\r\n * @param {number} detune - The updated detune value.\r\n */\r\nmodule.exports = 'detune';\r\n\n\n/***/ }),\n\n/***/ 30333:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Sound Manager Global Mute Event.\r\n *\r\n * This event is dispatched by the Sound Manager when its `mute` property is changed, either directly\r\n * or via the `setMute` method. This changes the mute state of all active sounds.\r\n *\r\n * Listen to it from a Scene using: `this.sound.on('mute', listener)`.\r\n *\r\n * @event Phaser.Sound.Events#GLOBAL_MUTE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Sound.WebAudioSoundManager|Phaser.Sound.HTML5AudioSoundManager)} soundManager - A reference to the Sound Manager that emitted the event.\r\n * @param {boolean} mute - The mute value. `true` if the Sound Manager is now muted, otherwise `false`.\r\n */\r\nmodule.exports = 'mute';\r\n\n\n/***/ }),\n\n/***/ 20394:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Sound Manager Global Rate Event.\r\n *\r\n * This event is dispatched by the Base Sound Manager, or more typically, an instance of the Web Audio Sound Manager,\r\n * or the HTML5 Audio Manager. It is dispatched when the `rate` property of the Sound Manager is changed, which globally\r\n * adjusts the playback rate of all active sounds.\r\n *\r\n * Listen to it from a Scene using: `this.sound.on('rate', listener)`.\r\n *\r\n * @event Phaser.Sound.Events#GLOBAL_RATE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Sound.BaseSoundManager} soundManager - A reference to the sound manager that emitted the event.\r\n * @param {number} rate - The updated rate value.\r\n */\r\nmodule.exports = 'rate';\r\n\n\n/***/ }),\n\n/***/ 21802:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Sound Manager Global Volume Event.\r\n *\r\n * This event is dispatched by the Sound Manager when its `volume` property is changed, either directly\r\n * or via the `setVolume` method. This changes the volume of all active sounds.\r\n *\r\n * Listen to it from a Scene using: `this.sound.on('volume', listener)`.\r\n *\r\n * @event Phaser.Sound.Events#GLOBAL_VOLUME\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Sound.WebAudioSoundManager|Phaser.Sound.HTML5AudioSoundManager)} soundManager - A reference to the sound manager that emitted the event.\r\n * @param {number} volume - The new global volume of the Sound Manager.\r\n */\r\nmodule.exports = 'volume';\r\n\n\n/***/ }),\n\n/***/ 1299:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Sound Looped Event.\r\n *\r\n * This event is dispatched by both Web Audio and HTML5 Audio Sound objects when they loop during playback.\r\n *\r\n * Listen to it from a Sound instance using `Sound.on('looped', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var music = this.sound.add('key');\r\n * music.on('looped', listener);\r\n * music.setLoop(true);\r\n * music.play();\r\n * ```\r\n *\r\n * This is not to be confused with the [LOOP]{@linkcode Phaser.Sound.Events#event:LOOP} event, which only emits when the loop state of a Sound is changed.\r\n *\r\n * @event Phaser.Sound.Events#LOOPED\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Sound.WebAudioSound|Phaser.Sound.HTML5AudioSound)} sound - A reference to the Sound that emitted the event.\r\n */\r\nmodule.exports = 'looped';\r\n\n\n/***/ }),\n\n/***/ 99190:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Sound Loop Event.\r\n *\r\n * This event is dispatched by both Web Audio and HTML5 Audio Sound objects when their loop state is changed.\r\n *\r\n * Listen to it from a Sound instance using `Sound.on('loop', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var music = this.sound.add('key');\r\n * music.on('loop', listener);\r\n * music.setLoop(true);\r\n * ```\r\n *\r\n * This is not to be confused with the [LOOPED]{@linkcode Phaser.Sound.Events#event:LOOPED} event, which emits each time a Sound loops during playback.\r\n *\r\n * @event Phaser.Sound.Events#LOOP\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Sound.WebAudioSound|Phaser.Sound.HTML5AudioSound)} sound - A reference to the Sound that emitted the event.\r\n * @param {boolean} loop - The new loop value. `true` if the Sound will loop, otherwise `false`.\r\n */\r\nmodule.exports = 'loop';\r\n\n\n/***/ }),\n\n/***/ 97125:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Sound Mute Event.\r\n *\r\n * This event is dispatched by both Web Audio and HTML5 Audio Sound objects when their mute state changes.\r\n *\r\n * Listen to it from a Sound instance using `Sound.on('mute', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var music = this.sound.add('key');\r\n * music.on('mute', listener);\r\n * music.play();\r\n * music.setMute(true);\r\n * ```\r\n *\r\n * @event Phaser.Sound.Events#MUTE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Sound.WebAudioSound|Phaser.Sound.HTML5AudioSound)} sound - A reference to the Sound that emitted the event.\r\n * @param {boolean} mute - The mute value. `true` if the Sound is now muted, otherwise `false`.\r\n */\r\nmodule.exports = 'mute';\r\n\n\n/***/ }),\n\n/***/ 89259:\n/***/ ((module) => {\n\n/**\r\n * @author pi-kei\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Sound Pan Event.\r\n *\r\n * This event is dispatched by both Web Audio and HTML5 Audio Sound objects when their pan changes.\r\n *\r\n * Listen to it from a Sound instance using `Sound.on('pan', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var sound = this.sound.add('key');\r\n * sound.on('pan', listener);\r\n * sound.play();\r\n * sound.setPan(0.5);\r\n * ```\r\n *\r\n * @event Phaser.Sound.Events#PAN\r\n * @type {string}\r\n * @since 3.50.0\r\n *\r\n * @param {(Phaser.Sound.WebAudioSound|Phaser.Sound.HTML5AudioSound)} sound - A reference to the Sound that emitted the event.\r\n * @param {number} pan - The new pan of the Sound.\r\n */\r\nmodule.exports = 'pan';\r\n\n\n/***/ }),\n\n/***/ 79986:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Pause All Sounds Event.\r\n *\r\n * This event is dispatched by the Base Sound Manager, or more typically, an instance of the Web Audio Sound Manager,\r\n * or the HTML5 Audio Manager. It is dispatched when the `pauseAll` method is invoked and after all current Sounds\r\n * have been paused.\r\n *\r\n * Listen to it from a Scene using: `this.sound.on('pauseall', listener)`.\r\n *\r\n * @event Phaser.Sound.Events#PAUSE_ALL\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Sound.BaseSoundManager} soundManager - A reference to the sound manager that emitted the event.\r\n */\r\nmodule.exports = 'pauseall';\r\n\n\n/***/ }),\n\n/***/ 17586:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Sound Pause Event.\r\n *\r\n * This event is dispatched by both Web Audio and HTML5 Audio Sound objects when they are paused.\r\n *\r\n * Listen to it from a Sound instance using `Sound.on('pause', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var music = this.sound.add('key');\r\n * music.on('pause', listener);\r\n * music.play();\r\n * music.pause();\r\n * ```\r\n *\r\n * @event Phaser.Sound.Events#PAUSE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Sound.WebAudioSound|Phaser.Sound.HTML5AudioSound)} sound - A reference to the Sound that emitted the event.\r\n */\r\nmodule.exports = 'pause';\r\n\n\n/***/ }),\n\n/***/ 19618:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Sound Play Event.\r\n *\r\n * This event is dispatched by both Web Audio and HTML5 Audio Sound objects when they are played.\r\n *\r\n * Listen to it from a Sound instance using `Sound.on('play', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var music = this.sound.add('key');\r\n * music.on('play', listener);\r\n * music.play();\r\n * ```\r\n *\r\n * @event Phaser.Sound.Events#PLAY\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Sound.WebAudioSound|Phaser.Sound.HTML5AudioSound)} sound - A reference to the Sound that emitted the event.\r\n */\r\nmodule.exports = 'play';\r\n\n\n/***/ }),\n\n/***/ 42306:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Sound Rate Change Event.\r\n *\r\n * This event is dispatched by both Web Audio and HTML5 Audio Sound objects when their rate changes.\r\n *\r\n * Listen to it from a Sound instance using `Sound.on('rate', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var music = this.sound.add('key');\r\n * music.on('rate', listener);\r\n * music.play();\r\n * music.setRate(0.5);\r\n * ```\r\n *\r\n * @event Phaser.Sound.Events#RATE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Sound.WebAudioSound|Phaser.Sound.HTML5AudioSound)} sound - A reference to the Sound that emitted the event.\r\n * @param {number} rate - The new rate of the Sound.\r\n */\r\nmodule.exports = 'rate';\r\n\n\n/***/ }),\n\n/***/ 10387:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Resume All Sounds Event.\r\n *\r\n * This event is dispatched by the Base Sound Manager, or more typically, an instance of the Web Audio Sound Manager,\r\n * or the HTML5 Audio Manager. It is dispatched when the `resumeAll` method is invoked and after all current Sounds\r\n * have been resumed.\r\n *\r\n * Listen to it from a Scene using: `this.sound.on('resumeall', listener)`.\r\n *\r\n * @event Phaser.Sound.Events#RESUME_ALL\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Sound.BaseSoundManager} soundManager - A reference to the sound manager that emitted the event.\r\n */\r\nmodule.exports = 'resumeall';\r\n\n\n/***/ }),\n\n/***/ 48959:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Sound Resume Event.\r\n *\r\n * This event is dispatched by both Web Audio and HTML5 Audio Sound objects when they are resumed from a paused state.\r\n *\r\n * Listen to it from a Sound instance using `Sound.on('resume', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var music = this.sound.add('key');\r\n * music.on('resume', listener);\r\n * music.play();\r\n * music.pause();\r\n * music.resume();\r\n * ```\r\n *\r\n * @event Phaser.Sound.Events#RESUME\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Sound.WebAudioSound|Phaser.Sound.HTML5AudioSound)} sound - A reference to the Sound that emitted the event.\r\n */\r\nmodule.exports = 'resume';\r\n\n\n/***/ }),\n\n/***/ 9960:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Sound Seek Event.\r\n *\r\n * This event is dispatched by both Web Audio and HTML5 Audio Sound objects when they are seeked to a new position.\r\n *\r\n * Listen to it from a Sound instance using `Sound.on('seek', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var music = this.sound.add('key');\r\n * music.on('seek', listener);\r\n * music.play();\r\n * music.setSeek(5000);\r\n * ```\r\n *\r\n * @event Phaser.Sound.Events#SEEK\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Sound.WebAudioSound|Phaser.Sound.HTML5AudioSound)} sound - A reference to the Sound that emitted the event.\r\n * @param {number} detune - The new detune value of the Sound.\r\n */\r\nmodule.exports = 'seek';\r\n\n\n/***/ }),\n\n/***/ 19180:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Stop All Sounds Event.\r\n *\r\n * This event is dispatched by the Base Sound Manager, or more typically, an instance of the Web Audio Sound Manager,\r\n * or the HTML5 Audio Manager. It is dispatched when the `stopAll` method is invoked and after all current Sounds\r\n * have been stopped.\r\n *\r\n * Listen to it from a Scene using: `this.sound.on('stopall', listener)`.\r\n *\r\n * @event Phaser.Sound.Events#STOP_ALL\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Sound.BaseSoundManager} soundManager - A reference to the sound manager that emitted the event.\r\n */\r\nmodule.exports = 'stopall';\r\n\n\n/***/ }),\n\n/***/ 98328:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Sound Stop Event.\r\n *\r\n * This event is dispatched by both Web Audio and HTML5 Audio Sound objects when they are stopped.\r\n *\r\n * Listen to it from a Sound instance using `Sound.on('stop', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var music = this.sound.add('key');\r\n * music.on('stop', listener);\r\n * music.play();\r\n * music.stop();\r\n * ```\r\n *\r\n * @event Phaser.Sound.Events#STOP\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Sound.WebAudioSound|Phaser.Sound.HTML5AudioSound)} sound - A reference to the Sound that emitted the event.\r\n */\r\nmodule.exports = 'stop';\r\n\n\n/***/ }),\n\n/***/ 50401:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Sound Manager Unlocked Event.\r\n *\r\n * This event is dispatched by the Base Sound Manager, or more typically, an instance of the Web Audio Sound Manager,\r\n * or the HTML5 Audio Manager. It is dispatched during the update loop when the Sound Manager becomes unlocked. For\r\n * Web Audio this is on the first user gesture on the page.\r\n *\r\n * Listen to it from a Scene using: `this.sound.on('unlocked', listener)`.\r\n *\r\n * @event Phaser.Sound.Events#UNLOCKED\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Sound.BaseSoundManager} soundManager - A reference to the sound manager that emitted the event.\r\n */\r\nmodule.exports = 'unlocked';\r\n\n\n/***/ }),\n\n/***/ 52498:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Sound Volume Event.\r\n *\r\n * This event is dispatched by both Web Audio and HTML5 Audio Sound objects when their volume changes.\r\n *\r\n * Listen to it from a Sound instance using `Sound.on('volume', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var music = this.sound.add('key');\r\n * music.on('volume', listener);\r\n * music.play();\r\n * music.setVolume(0.5);\r\n * ```\r\n *\r\n * @event Phaser.Sound.Events#VOLUME\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Sound.WebAudioSound|Phaser.Sound.HTML5AudioSound)} sound - A reference to the Sound that emitted the event.\r\n * @param {number} volume - The new volume of the Sound.\r\n */\r\nmodule.exports = 'volume';\r\n\n\n/***/ }),\n\n/***/ 14463:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Sound.Events\r\n */\r\n\r\nmodule.exports = {\r\n\r\n COMPLETE: __webpack_require__(19723),\r\n DECODED: __webpack_require__(57506),\r\n DECODED_ALL: __webpack_require__(98882),\r\n DESTROY: __webpack_require__(73146),\r\n DETUNE: __webpack_require__(11305),\r\n GLOBAL_DETUNE: __webpack_require__(40577),\r\n GLOBAL_MUTE: __webpack_require__(30333),\r\n GLOBAL_RATE: __webpack_require__(20394),\r\n GLOBAL_VOLUME: __webpack_require__(21802),\r\n LOOP: __webpack_require__(99190),\r\n LOOPED: __webpack_require__(1299),\r\n MUTE: __webpack_require__(97125),\r\n PAN: __webpack_require__(89259),\r\n PAUSE_ALL: __webpack_require__(79986),\r\n PAUSE: __webpack_require__(17586),\r\n PLAY: __webpack_require__(19618),\r\n RATE: __webpack_require__(42306),\r\n RESUME_ALL: __webpack_require__(10387),\r\n RESUME: __webpack_require__(48959),\r\n SEEK: __webpack_require__(9960),\r\n STOP_ALL: __webpack_require__(19180),\r\n STOP: __webpack_require__(98328),\r\n UNLOCKED: __webpack_require__(50401),\r\n VOLUME: __webpack_require__(52498)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 64895:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Pavle Goloskokovic (http://prunegames.com)\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BaseSound = __webpack_require__(30341);\r\nvar Class = __webpack_require__(83419);\r\nvar Events = __webpack_require__(14463);\r\nvar Clamp = __webpack_require__(45319);\r\n\r\n/**\r\n * @classdesc\r\n * HTML5 Audio implementation of the sound.\r\n *\r\n * @class HTML5AudioSound\r\n * @extends Phaser.Sound.BaseSound\r\n * @memberof Phaser.Sound\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Sound.HTML5AudioSoundManager} manager - Reference to the current sound manager instance.\r\n * @param {string} key - Asset key for the sound.\r\n * @param {Phaser.Types.Sound.SoundConfig} [config={}] - An optional config object containing default sound settings.\r\n */\r\nvar HTML5AudioSound = new Class({\r\n\r\n Extends: BaseSound,\r\n\r\n initialize:\r\n\r\n function HTML5AudioSound (manager, key, config)\r\n {\r\n if (config === undefined) { config = {}; }\r\n\r\n /**\r\n * An array containing all HTML5 Audio tags that could be used for individual\r\n * sound playback. Number of instances depends on the config value passed\r\n * to the `Loader#audio` method call, default is 1.\r\n *\r\n * @name Phaser.Sound.HTML5AudioSound#tags\r\n * @type {HTMLAudioElement[]}\r\n * @since 3.0.0\r\n */\r\n this.tags = manager.game.cache.audio.get(key);\r\n\r\n if (!this.tags)\r\n {\r\n throw new Error('No cached audio asset with key \"' + key);\r\n }\r\n\r\n /**\r\n * Reference to an HTML5 Audio tag used for playing sound.\r\n *\r\n * @name Phaser.Sound.HTML5AudioSound#audio\r\n * @type {HTMLAudioElement}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.audio = null;\r\n\r\n /**\r\n * Timestamp as generated by the Request Animation Frame or SetTimeout\r\n * representing the time at which the delayed sound playback should start.\r\n * Set to 0 if sound playback is not delayed.\r\n *\r\n * @name Phaser.Sound.HTML5AudioSound#startTime\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.startTime = 0;\r\n\r\n /**\r\n * Audio tag's playback position recorded on previous\r\n * update method call. Set to 0 if sound is not playing.\r\n *\r\n * @name Phaser.Sound.HTML5AudioSound#previousTime\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.previousTime = 0;\r\n\r\n this.duration = this.tags[0].duration;\r\n\r\n this.totalDuration = this.tags[0].duration;\r\n\r\n BaseSound.call(this, manager, key, config);\r\n },\r\n\r\n /**\r\n * Play this sound, or a marked section of it.\r\n *\r\n * It always plays the sound from the start. If you want to start playback from a specific time\r\n * you can set 'seek' setting of the config object, provided to this call, to that value.\r\n *\r\n * If you want to play the same sound simultaneously, then you need to create another instance\r\n * of it and play that Sound. For HTML5 Audio this also requires creating multiple audio instances\r\n * when loading the audio files.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#play\r\n * @fires Phaser.Sound.Events#PLAY\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Sound.SoundConfig)} [markerName=''] - If you want to play a marker then provide the marker name here. Alternatively, this parameter can be a SoundConfig object.\r\n * @param {Phaser.Types.Sound.SoundConfig} [config] - Optional sound config object to be applied to this marker or entire sound if no marker name is provided. It gets memorized for future plays of current section of the sound.\r\n *\r\n * @return {boolean} Whether the sound started playing successfully.\r\n */\r\n play: function (markerName, config)\r\n {\r\n if (this.manager.isLocked(this, 'play', [ markerName, config ]))\r\n {\r\n return false;\r\n }\r\n\r\n if (!BaseSound.prototype.play.call(this, markerName, config))\r\n {\r\n return false;\r\n }\r\n\r\n // \\/\\/\\/ isPlaying = true, isPaused = false \\/\\/\\/\r\n if (!this.pickAndPlayAudioTag())\r\n {\r\n return false;\r\n }\r\n\r\n this.emit(Events.PLAY, this);\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * Pauses the sound.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#pause\r\n * @fires Phaser.Sound.Events#PAUSE\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} Whether the sound was paused successfully.\r\n */\r\n pause: function ()\r\n {\r\n if (this.manager.isLocked(this, 'pause'))\r\n {\r\n return false;\r\n }\r\n\r\n if (this.startTime > 0)\r\n {\r\n return false;\r\n }\r\n\r\n if (!BaseSound.prototype.pause.call(this))\r\n {\r\n return false;\r\n }\r\n\r\n // \\/\\/\\/ isPlaying = false, isPaused = true \\/\\/\\/\r\n this.currentConfig.seek = this.audio.currentTime - (this.currentMarker ? this.currentMarker.start : 0);\r\n\r\n this.stopAndReleaseAudioTag();\r\n\r\n this.emit(Events.PAUSE, this);\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * Resumes the sound.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#resume\r\n * @fires Phaser.Sound.Events#RESUME\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} Whether the sound was resumed successfully.\r\n */\r\n resume: function ()\r\n {\r\n if (this.manager.isLocked(this, 'resume'))\r\n {\r\n return false;\r\n }\r\n\r\n if (this.startTime > 0)\r\n {\r\n return false;\r\n }\r\n\r\n if (!BaseSound.prototype.resume.call(this))\r\n {\r\n return false;\r\n }\r\n\r\n // \\/\\/\\/ isPlaying = true, isPaused = false \\/\\/\\/\r\n if (!this.pickAndPlayAudioTag())\r\n {\r\n return false;\r\n }\r\n\r\n this.emit(Events.RESUME, this);\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * Stop playing this sound.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#stop\r\n * @fires Phaser.Sound.Events#STOP\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} Whether the sound was stopped successfully.\r\n */\r\n stop: function ()\r\n {\r\n if (this.manager.isLocked(this, 'stop'))\r\n {\r\n return false;\r\n }\r\n\r\n if (!BaseSound.prototype.stop.call(this))\r\n {\r\n return false;\r\n }\r\n\r\n // \\/\\/\\/ isPlaying = false, isPaused = false \\/\\/\\/\r\n this.stopAndReleaseAudioTag();\r\n\r\n this.emit(Events.STOP, this);\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * This method is used internally to pick and play the next available audio tag.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#pickAndPlayAudioTag\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} Whether the sound was assigned an audio tag successfully.\r\n */\r\n pickAndPlayAudioTag: function ()\r\n {\r\n if (!this.pickAudioTag())\r\n {\r\n this.reset();\r\n\r\n return false;\r\n }\r\n\r\n var seek = this.currentConfig.seek;\r\n var delay = this.currentConfig.delay;\r\n var offset = (this.currentMarker ? this.currentMarker.start : 0) + seek;\r\n\r\n this.previousTime = offset;\r\n this.audio.currentTime = offset;\r\n this.applyConfig();\r\n\r\n if (delay === 0)\r\n {\r\n this.startTime = 0;\r\n\r\n if (this.audio.paused)\r\n {\r\n this.playCatchPromise();\r\n }\r\n }\r\n else\r\n {\r\n this.startTime = window.performance.now() + delay * 1000;\r\n\r\n if (!this.audio.paused)\r\n {\r\n this.audio.pause();\r\n }\r\n }\r\n\r\n this.resetConfig();\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * This method performs the audio tag pooling logic. It first looks for\r\n * unused audio tag to assign to this sound object. If there are no unused\r\n * audio tags, based on HTML5AudioSoundManager#override property value, it\r\n * looks for sound with most advanced playback and hijacks its audio tag or\r\n * does nothing.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#pickAudioTag\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} Whether the sound was assigned an audio tag successfully.\r\n */\r\n pickAudioTag: function ()\r\n {\r\n if (this.audio)\r\n {\r\n return true;\r\n }\r\n\r\n for (var i = 0; i < this.tags.length; i++)\r\n {\r\n var audio = this.tags[i];\r\n\r\n if (audio.dataset.used === 'false')\r\n {\r\n audio.dataset.used = 'true';\r\n this.audio = audio;\r\n return true;\r\n }\r\n }\r\n\r\n if (!this.manager.override)\r\n {\r\n return false;\r\n }\r\n\r\n var otherSounds = [];\r\n\r\n this.manager.forEachActiveSound(function (sound)\r\n {\r\n if (sound.key === this.key && sound.audio)\r\n {\r\n otherSounds.push(sound);\r\n }\r\n }, this);\r\n\r\n otherSounds.sort(function (a1, a2)\r\n {\r\n if (a1.loop === a2.loop)\r\n {\r\n // sort by progress\r\n return (a2.seek / a2.duration) - (a1.seek / a1.duration);\r\n }\r\n return a1.loop ? 1 : -1;\r\n });\r\n\r\n var selectedSound = otherSounds[0];\r\n\r\n this.audio = selectedSound.audio;\r\n\r\n selectedSound.reset();\r\n selectedSound.audio = null;\r\n selectedSound.startTime = 0;\r\n selectedSound.previousTime = 0;\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * Method used for playing audio tag and catching possible exceptions\r\n * thrown from rejected Promise returned from play method call.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#playCatchPromise\r\n * @since 3.0.0\r\n */\r\n playCatchPromise: function ()\r\n {\r\n var playPromise = this.audio.play();\r\n\r\n if (playPromise)\r\n {\r\n // eslint-disable-next-line no-unused-vars\r\n playPromise.catch(function (reason)\r\n {\r\n console.warn(reason);\r\n });\r\n }\r\n },\r\n\r\n /**\r\n * This method is used internally to stop and release the current audio tag.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#stopAndReleaseAudioTag\r\n * @since 3.0.0\r\n */\r\n stopAndReleaseAudioTag: function ()\r\n {\r\n this.startTime = 0;\r\n this.previousTime = 0;\r\n\r\n if (this.audio)\r\n {\r\n this.audio.pause();\r\n this.audio.dataset.used = 'false';\r\n this.audio = null;\r\n }\r\n },\r\n\r\n /**\r\n * Method used internally to reset sound state, usually when stopping sound\r\n * or when hijacking audio tag from another sound.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#reset\r\n * @since 3.0.0\r\n */\r\n reset: function ()\r\n {\r\n BaseSound.prototype.stop.call(this);\r\n },\r\n\r\n /**\r\n * Method used internally by sound manager for pausing sound if\r\n * Phaser.Sound.HTML5AudioSoundManager#pauseOnBlur is set to true.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#onBlur\r\n * @since 3.0.0\r\n */\r\n onBlur: function ()\r\n {\r\n this.isPlaying = false;\r\n this.isPaused = true;\r\n\r\n this.currentConfig.seek = this.audio.currentTime - (this.currentMarker ? this.currentMarker.start : 0);\r\n\r\n this.currentConfig.delay = Math.max(0, (this.startTime - window.performance.now()) / 1000);\r\n\r\n this.stopAndReleaseAudioTag();\r\n },\r\n\r\n /**\r\n * Method used internally by sound manager for resuming sound if\r\n * Phaser.Sound.HTML5AudioSoundManager#pauseOnBlur is set to true.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#onFocus\r\n * @since 3.0.0\r\n */\r\n onFocus: function ()\r\n {\r\n this.isPlaying = true;\r\n this.isPaused = false;\r\n this.pickAndPlayAudioTag();\r\n },\r\n\r\n /**\r\n * Update method called automatically by sound manager on every game step.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#update\r\n * @fires Phaser.Sound.Events#COMPLETE\r\n * @fires Phaser.Sound.Events#LOOPED\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current timestamp as generated by the Request Animation Frame or SetTimeout.\r\n */\r\n update: function (time)\r\n {\r\n if (!this.isPlaying)\r\n {\r\n return;\r\n }\r\n\r\n // handling delayed playback\r\n if (this.startTime > 0)\r\n {\r\n if (this.startTime < time - this.manager.audioPlayDelay)\r\n {\r\n this.audio.currentTime += Math.max(0, time - this.startTime) / 1000;\r\n this.startTime = 0;\r\n this.previousTime = this.audio.currentTime;\r\n this.playCatchPromise();\r\n }\r\n\r\n return;\r\n }\r\n\r\n // handle looping and ending\r\n var startTime = this.currentMarker ? this.currentMarker.start : 0;\r\n var endTime = startTime + this.duration;\r\n var currentTime = this.audio.currentTime;\r\n\r\n if (this.currentConfig.loop)\r\n {\r\n if (currentTime >= endTime - this.manager.loopEndOffset)\r\n {\r\n this.audio.currentTime = startTime + Math.max(0, currentTime - endTime);\r\n currentTime = this.audio.currentTime;\r\n }\r\n else if (currentTime < startTime)\r\n {\r\n this.audio.currentTime += startTime;\r\n currentTime = this.audio.currentTime;\r\n }\r\n\r\n if (currentTime < this.previousTime)\r\n {\r\n this.emit(Events.LOOPED, this);\r\n }\r\n }\r\n else if (currentTime >= endTime)\r\n {\r\n this.reset();\r\n\r\n this.stopAndReleaseAudioTag();\r\n\r\n this.emit(Events.COMPLETE, this);\r\n\r\n return;\r\n }\r\n\r\n this.previousTime = currentTime;\r\n },\r\n\r\n /**\r\n * Calls Phaser.Sound.BaseSound#destroy method\r\n * and cleans up all HTML5 Audio related stuff.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n BaseSound.prototype.destroy.call(this);\r\n\r\n this.tags = null;\r\n\r\n if (this.audio)\r\n {\r\n this.stopAndReleaseAudioTag();\r\n }\r\n },\r\n\r\n /**\r\n * This method is used internally to update the mute setting of this sound.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#updateMute\r\n * @since 3.0.0\r\n */\r\n updateMute: function ()\r\n {\r\n if (this.audio)\r\n {\r\n this.audio.muted = this.currentConfig.mute || this.manager.mute;\r\n }\r\n },\r\n\r\n /**\r\n * This method is used internally to update the volume of this sound.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#updateVolume\r\n * @since 3.0.0\r\n */\r\n updateVolume: function ()\r\n {\r\n if (this.audio)\r\n {\r\n this.audio.volume = Clamp(this.currentConfig.volume * this.manager.volume, 0, 1);\r\n }\r\n },\r\n\r\n /**\r\n * This method is used internally to update the playback rate of this sound.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#calculateRate\r\n * @since 3.0.0\r\n */\r\n calculateRate: function ()\r\n {\r\n BaseSound.prototype.calculateRate.call(this);\r\n\r\n if (this.audio)\r\n {\r\n this.audio.playbackRate = this.totalRate;\r\n }\r\n },\r\n\r\n /**\r\n * Boolean indicating whether the sound is muted or not.\r\n * Gets or sets the muted state of this sound.\r\n *\r\n * @name Phaser.Sound.HTML5AudioSound#mute\r\n * @type {boolean}\r\n * @default false\r\n * @fires Phaser.Sound.Events#MUTE\r\n * @since 3.0.0\r\n */\r\n mute: {\r\n\r\n get: function ()\r\n {\r\n return this.currentConfig.mute;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.currentConfig.mute = value;\r\n\r\n if (this.manager.isLocked(this, 'mute', value))\r\n {\r\n return;\r\n }\r\n\r\n this.updateMute();\r\n\r\n this.emit(Events.MUTE, this, value);\r\n }\r\n },\r\n\r\n /**\r\n * Sets the muted state of this Sound.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#setMute\r\n * @fires Phaser.Sound.Events#MUTE\r\n * @since 3.4.0\r\n *\r\n * @param {boolean} value - `true` to mute this sound, `false` to unmute it.\r\n *\r\n * @return {this} This Sound instance.\r\n */\r\n setMute: function (value)\r\n {\r\n this.mute = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Gets or sets the volume of this sound, a value between 0 (silence) and 1 (full volume).\r\n *\r\n * @name Phaser.Sound.HTML5AudioSound#volume\r\n * @type {number}\r\n * @default 1\r\n * @fires Phaser.Sound.Events#VOLUME\r\n * @since 3.0.0\r\n */\r\n volume: {\r\n\r\n get: function ()\r\n {\r\n return this.currentConfig.volume;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.currentConfig.volume = value;\r\n\r\n if (this.manager.isLocked(this, 'volume', value))\r\n {\r\n return;\r\n }\r\n\r\n this.updateVolume();\r\n\r\n this.emit(Events.VOLUME, this, value);\r\n }\r\n },\r\n\r\n /**\r\n * Sets the volume of this Sound.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#setVolume\r\n * @fires Phaser.Sound.Events#VOLUME\r\n * @since 3.4.0\r\n *\r\n * @param {number} value - The volume of the sound.\r\n *\r\n * @return {this} This Sound instance.\r\n */\r\n setVolume: function (value)\r\n {\r\n this.volume = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Rate at which this Sound will be played.\r\n * Value of 1.0 plays the audio at full speed, 0.5 plays the audio at half speed\r\n * and 2.0 doubles the audios playback speed.\r\n *\r\n * @name Phaser.Sound.HTML5AudioSound#rate\r\n * @type {number}\r\n * @default 1\r\n * @fires Phaser.Sound.Events#RATE\r\n * @since 3.0.0\r\n */\r\n rate: {\r\n\r\n get: function ()\r\n {\r\n return this.currentConfig.rate;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.currentConfig.rate = value;\r\n\r\n if (this.manager.isLocked(this, Events.RATE, value))\r\n {\r\n return;\r\n }\r\n else\r\n {\r\n this.calculateRate();\r\n\r\n this.emit(Events.RATE, this, value);\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Sets the playback rate of this Sound.\r\n *\r\n * For example, a value of 1.0 plays the audio at full speed, 0.5 plays the audio at half speed\r\n * and 2.0 doubles the audios playback speed.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#setRate\r\n * @fires Phaser.Sound.Events#RATE\r\n * @since 3.3.0\r\n *\r\n * @param {number} value - The playback rate at of this Sound.\r\n *\r\n * @return {this} This Sound instance.\r\n */\r\n setRate: function (value)\r\n {\r\n this.rate = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The detune value of this Sound, given in [cents](https://en.wikipedia.org/wiki/Cent_%28music%29).\r\n * The range of the value is -1200 to 1200, but we recommend setting it to [50](https://en.wikipedia.org/wiki/50_Cent).\r\n *\r\n * @name Phaser.Sound.HTML5AudioSound#detune\r\n * @type {number}\r\n * @default 0\r\n * @fires Phaser.Sound.Events#DETUNE\r\n * @since 3.0.0\r\n */\r\n detune: {\r\n\r\n get: function ()\r\n {\r\n return this.currentConfig.detune;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.currentConfig.detune = value;\r\n\r\n if (this.manager.isLocked(this, Events.DETUNE, value))\r\n {\r\n return;\r\n }\r\n else\r\n {\r\n this.calculateRate();\r\n\r\n this.emit(Events.DETUNE, this, value);\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Sets the detune value of this Sound, given in [cents](https://en.wikipedia.org/wiki/Cent_%28music%29).\r\n * The range of the value is -1200 to 1200, but we recommend setting it to [50](https://en.wikipedia.org/wiki/50_Cent).\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#setDetune\r\n * @fires Phaser.Sound.Events#DETUNE\r\n * @since 3.3.0\r\n *\r\n * @param {number} value - The range of the value is -1200 to 1200, but we recommend setting it to [50](https://en.wikipedia.org/wiki/50_Cent).\r\n *\r\n * @return {this} This Sound instance.\r\n */\r\n setDetune: function (value)\r\n {\r\n this.detune = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Property representing the position of playback for this sound, in seconds.\r\n * Setting it to a specific value moves current playback to that position.\r\n * The value given is clamped to the range 0 to current marker duration.\r\n * Setting seek of a stopped sound has no effect.\r\n *\r\n * @name Phaser.Sound.HTML5AudioSound#seek\r\n * @type {number}\r\n * @fires Phaser.Sound.Events#SEEK\r\n * @since 3.0.0\r\n */\r\n seek: {\r\n\r\n get: function ()\r\n {\r\n if (this.isPlaying)\r\n {\r\n return this.audio.currentTime - (this.currentMarker ? this.currentMarker.start : 0);\r\n }\r\n else if (this.isPaused)\r\n {\r\n return this.currentConfig.seek;\r\n }\r\n else\r\n {\r\n return 0;\r\n }\r\n },\r\n\r\n set: function (value)\r\n {\r\n if (this.manager.isLocked(this, 'seek', value))\r\n {\r\n return;\r\n }\r\n\r\n if (this.startTime > 0)\r\n {\r\n return;\r\n }\r\n\r\n if (this.isPlaying || this.isPaused)\r\n {\r\n value = Math.min(Math.max(0, value), this.duration);\r\n\r\n if (this.isPlaying)\r\n {\r\n this.previousTime = value;\r\n this.audio.currentTime = value;\r\n }\r\n else if (this.isPaused)\r\n {\r\n this.currentConfig.seek = value;\r\n }\r\n\r\n this.emit(Events.SEEK, this, value);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Seeks to a specific point in this sound.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#setSeek\r\n * @fires Phaser.Sound.Events#SEEK\r\n * @since 3.4.0\r\n *\r\n * @param {number} value - The point in the sound to seek to.\r\n *\r\n * @return {this} This Sound instance.\r\n */\r\n setSeek: function (value)\r\n {\r\n this.seek = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Flag indicating whether or not the sound or current sound marker will loop.\r\n *\r\n * @name Phaser.Sound.HTML5AudioSound#loop\r\n * @type {boolean}\r\n * @default false\r\n * @fires Phaser.Sound.Events#LOOP\r\n * @since 3.0.0\r\n */\r\n loop: {\r\n\r\n get: function ()\r\n {\r\n return this.currentConfig.loop;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.currentConfig.loop = value;\r\n\r\n if (this.manager.isLocked(this, 'loop', value))\r\n {\r\n return;\r\n }\r\n\r\n if (this.audio)\r\n {\r\n this.audio.loop = value;\r\n }\r\n\r\n this.emit(Events.LOOP, this, value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Sets the loop state of this Sound.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#setLoop\r\n * @fires Phaser.Sound.Events#LOOP\r\n * @since 3.4.0\r\n *\r\n * @param {boolean} value - `true` to loop this sound, `false` to not loop it.\r\n *\r\n * @return {Phaser.Sound.HTML5AudioSound} This Sound instance.\r\n */\r\n setLoop: function (value)\r\n {\r\n this.loop = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Gets or sets the pan of this sound, a value between -1 (full left pan) and 1 (full right pan).\r\n *\r\n * Has no audible effect on HTML5 Audio Sound, but still generates the PAN Event.\r\n *\r\n * @name Phaser.Sound.HTML5AudioSound#pan\r\n * @type {number}\r\n * @default 0\r\n * @fires Phaser.Sound.Events#PAN\r\n * @since 3.50.0\r\n */\r\n pan: {\r\n\r\n get: function ()\r\n {\r\n return this.currentConfig.pan;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.currentConfig.pan = value;\r\n\r\n this.emit(Events.PAN, this, value);\r\n }\r\n },\r\n\r\n /**\r\n * Sets the pan of this sound, a value between -1 (full left pan) and 1 (full right pan).\r\n *\r\n * Has no audible effect on HTML5 Audio Sound, but still generates the PAN Event.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSound#setPan\r\n * @fires Phaser.Sound.Events#PAN\r\n * @since 3.50.0\r\n *\r\n * @param {number} value - The pan of the sound. A value between -1 (full left pan) and 1 (full right pan).\r\n *\r\n * @return {this} This Sound instance.\r\n */\r\n setPan: function (value)\r\n {\r\n this.pan = value;\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = HTML5AudioSound;\r\n\n\n/***/ }),\n\n/***/ 33684:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Pavle Goloskokovic (http://prunegames.com)\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BaseSoundManager = __webpack_require__(85034);\r\nvar Class = __webpack_require__(83419);\r\nvar Events = __webpack_require__(14463);\r\nvar HTML5AudioSound = __webpack_require__(64895);\r\n\r\n/**\r\n * HTML5 Audio implementation of the Sound Manager.\r\n *\r\n * To play multiple instances of the same HTML5 Audio sound, you need to provide an `instances` value when\r\n * loading the sound with the Loader:\r\n *\r\n * ```javascript\r\n * this.load.audio('explosion', 'explosion.mp3', {\r\n * instances: 2\r\n * });\r\n * ```\r\n *\r\n * Not all browsers can play all audio formats.\r\n *\r\n * There is a good guide to what's supported: [Cross-browser audio basics: Audio codec support](https://developer.mozilla.org/en-US/Apps/Fundamentals/Audio_and_video_delivery/Cross-browser_audio_basics#Audio_Codec_Support).\r\n *\r\n * @class HTML5AudioSoundManager\r\n * @extends Phaser.Sound.BaseSoundManager\r\n * @memberof Phaser.Sound\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Game} game - Reference to the current game instance.\r\n */\r\nvar HTML5AudioSoundManager = new Class({\r\n\r\n Extends: BaseSoundManager,\r\n\r\n initialize:\r\n\r\n function HTML5AudioSoundManager (game)\r\n {\r\n /**\r\n * Flag indicating whether if there are no idle instances of HTML5 Audio tag,\r\n * for any particular sound, if one of the used tags should be hijacked and used\r\n * for succeeding playback or if succeeding Phaser.Sound.HTML5AudioSound#play\r\n * call should be ignored.\r\n *\r\n * @name Phaser.Sound.HTML5AudioSoundManager#override\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.0.0\r\n */\r\n this.override = true;\r\n\r\n /**\r\n * Value representing time difference, in seconds, between calling\r\n * play method on an audio tag and when it actually starts playing.\r\n * It is used to achieve more accurate delayed sound playback.\r\n *\r\n * You might need to tweak this value to get the desired results\r\n * since audio play delay varies depending on the browser/platform.\r\n *\r\n * @name Phaser.Sound.HTML5AudioSoundManager#audioPlayDelay\r\n * @type {number}\r\n * @default 0.1\r\n * @since 3.0.0\r\n */\r\n this.audioPlayDelay = 0.1;\r\n\r\n /**\r\n * A value by which we should offset the loop end marker of the\r\n * looping sound to compensate for lag, caused by changing audio\r\n * tag playback position, in order to achieve gapless looping.\r\n *\r\n * You might need to tweak this value to get the desired results\r\n * since loop lag varies depending on the browser/platform.\r\n *\r\n * @name Phaser.Sound.HTML5AudioSoundManager#loopEndOffset\r\n * @type {number}\r\n * @default 0.05\r\n * @since 3.0.0\r\n */\r\n this.loopEndOffset = 0.05;\r\n\r\n /**\r\n * An array for keeping track of all the sounds\r\n * that were paused when game lost focus.\r\n *\r\n * @name Phaser.Sound.HTML5AudioSoundManager#onBlurPausedSounds\r\n * @type {Phaser.Sound.HTML5AudioSound[]}\r\n * @private\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this.onBlurPausedSounds = [];\r\n\r\n this.locked = 'ontouchstart' in window;\r\n\r\n /**\r\n * A queue of all actions performed on sound objects while audio was locked.\r\n * Once the audio gets unlocked, after an explicit user interaction,\r\n * all actions will be performed in chronological order.\r\n * Array of object types: { sound: Phaser.Sound.HTML5AudioSound, name: string, value?: * }\r\n *\r\n * @name Phaser.Sound.HTML5AudioSoundManager#lockedActionsQueue\r\n * @type {array}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this.lockedActionsQueue = this.locked ? [] : null;\r\n\r\n /**\r\n * Property that actually holds the value of global mute\r\n * for HTML5 Audio sound manager implementation.\r\n *\r\n * @name Phaser.Sound.HTML5AudioSoundManager#_mute\r\n * @type {boolean}\r\n * @private\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this._mute = false;\r\n\r\n /**\r\n * Property that actually holds the value of global volume\r\n * for HTML5 Audio sound manager implementation.\r\n *\r\n * @name Phaser.Sound.HTML5AudioSoundManager#_volume\r\n * @type {boolean}\r\n * @private\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n this._volume = 1;\r\n\r\n BaseSoundManager.call(this, game);\r\n },\r\n\r\n /**\r\n * Adds a new sound into the sound manager.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSoundManager#add\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - Asset key for the sound.\r\n * @param {Phaser.Types.Sound.SoundConfig} [config] - An optional config object containing default sound settings.\r\n *\r\n * @return {Phaser.Sound.HTML5AudioSound} The new sound instance.\r\n */\r\n add: function (key, config)\r\n {\r\n var sound = new HTML5AudioSound(this, key, config);\r\n\r\n this.sounds.push(sound);\r\n\r\n return sound;\r\n },\r\n\r\n /**\r\n * Unlocks HTML5 Audio loading and playback on mobile\r\n * devices on the initial explicit user interaction.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSoundManager#unlock\r\n * @since 3.0.0\r\n */\r\n unlock: function ()\r\n {\r\n this.locked = false;\r\n\r\n var _this = this;\r\n\r\n this.game.cache.audio.entries.each(function (key, tags)\r\n {\r\n for (var i = 0; i < tags.length; i++)\r\n {\r\n if (tags[i].dataset.locked === 'true')\r\n {\r\n _this.locked = true;\r\n\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n });\r\n\r\n if (!this.locked)\r\n {\r\n return;\r\n }\r\n\r\n var moved = false;\r\n\r\n var detectMove = function ()\r\n {\r\n moved = true;\r\n };\r\n\r\n var unlock = function ()\r\n {\r\n if (moved)\r\n {\r\n moved = false;\r\n return;\r\n }\r\n\r\n document.body.removeEventListener('touchmove', detectMove);\r\n document.body.removeEventListener('touchend', unlock);\r\n\r\n var lockedTags = [];\r\n\r\n _this.game.cache.audio.entries.each(function (key, tags)\r\n {\r\n for (var i = 0; i < tags.length; i++)\r\n {\r\n var tag = tags[i];\r\n\r\n if (tag.dataset.locked === 'true')\r\n {\r\n lockedTags.push(tag);\r\n }\r\n }\r\n\r\n return true;\r\n });\r\n\r\n if (lockedTags.length === 0)\r\n {\r\n return;\r\n }\r\n\r\n var lastTag = lockedTags[lockedTags.length - 1];\r\n\r\n lastTag.oncanplaythrough = function ()\r\n {\r\n lastTag.oncanplaythrough = null;\r\n\r\n lockedTags.forEach(function (tag)\r\n {\r\n tag.dataset.locked = 'false';\r\n });\r\n\r\n _this.unlocked = true;\r\n };\r\n\r\n lockedTags.forEach(function (tag)\r\n {\r\n tag.load();\r\n });\r\n };\r\n\r\n this.once(Events.UNLOCKED, function ()\r\n {\r\n this.forEachActiveSound(function (sound)\r\n {\r\n if (sound.currentMarker === null && sound.duration === 0)\r\n {\r\n sound.duration = sound.tags[0].duration;\r\n }\r\n\r\n sound.totalDuration = sound.tags[0].duration;\r\n });\r\n\r\n while (this.lockedActionsQueue.length)\r\n {\r\n var lockedAction = this.lockedActionsQueue.shift();\r\n\r\n if (lockedAction.sound[lockedAction.prop].apply)\r\n {\r\n lockedAction.sound[lockedAction.prop].apply(lockedAction.sound, lockedAction.value || []);\r\n }\r\n else\r\n {\r\n lockedAction.sound[lockedAction.prop] = lockedAction.value;\r\n }\r\n }\r\n\r\n }, this);\r\n\r\n document.body.addEventListener('touchmove', detectMove, false);\r\n document.body.addEventListener('touchend', unlock, false);\r\n },\r\n\r\n /**\r\n * Method used internally for pausing sound manager if\r\n * Phaser.Sound.HTML5AudioSoundManager#pauseOnBlur is set to true.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSoundManager#onBlur\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n onBlur: function ()\r\n {\r\n this.forEachActiveSound(function (sound)\r\n {\r\n if (sound.isPlaying)\r\n {\r\n this.onBlurPausedSounds.push(sound);\r\n sound.onBlur();\r\n }\r\n });\r\n },\r\n\r\n /**\r\n * Method used internally for resuming sound manager if\r\n * Phaser.Sound.HTML5AudioSoundManager#pauseOnBlur is set to true.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSoundManager#onFocus\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n onFocus: function ()\r\n {\r\n this.onBlurPausedSounds.forEach(function (sound)\r\n {\r\n sound.onFocus();\r\n });\r\n\r\n this.onBlurPausedSounds.length = 0;\r\n },\r\n\r\n /**\r\n * Calls Phaser.Sound.BaseSoundManager#destroy method\r\n * and cleans up all HTML5 Audio related stuff.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSoundManager#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n BaseSoundManager.prototype.destroy.call(this);\r\n\r\n this.onBlurPausedSounds.length = 0;\r\n this.onBlurPausedSounds = null;\r\n },\r\n\r\n /**\r\n * Method used internally by Phaser.Sound.HTML5AudioSound class methods and property setters\r\n * to check if sound manager is locked and then either perform action immediately or queue it\r\n * to be performed once the sound manager gets unlocked.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSoundManager#isLocked\r\n * @protected\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Sound.HTML5AudioSound} sound - Sound object on which to perform queued action.\r\n * @param {string} prop - Name of the method to be called or property to be assigned a value to.\r\n * @param {*} [value] - An optional parameter that either holds an array of arguments to be passed to the method call or value to be set to the property.\r\n *\r\n * @return {boolean} Whether the sound manager is locked.\r\n */\r\n isLocked: function (sound, prop, value)\r\n {\r\n if (sound.tags[0].dataset.locked === 'true')\r\n {\r\n this.lockedActionsQueue.push({\r\n sound: sound,\r\n prop: prop,\r\n value: value\r\n });\r\n\r\n return true;\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Sets the muted state of all this Sound Manager.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSoundManager#setMute\r\n * @fires Phaser.Sound.Events#GLOBAL_MUTE\r\n * @since 3.3.0\r\n *\r\n * @param {boolean} value - `true` to mute all sounds, `false` to unmute them.\r\n *\r\n * @return {Phaser.Sound.HTML5AudioSoundManager} This Sound Manager.\r\n */\r\n setMute: function (value)\r\n {\r\n this.mute = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * @name Phaser.Sound.HTML5AudioSoundManager#mute\r\n * @type {boolean}\r\n * @fires Phaser.Sound.Events#GLOBAL_MUTE\r\n * @since 3.0.0\r\n */\r\n mute: {\r\n\r\n get: function ()\r\n {\r\n return this._mute;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._mute = value;\r\n\r\n this.forEachActiveSound(function (sound)\r\n {\r\n sound.updateMute();\r\n });\r\n\r\n this.emit(Events.GLOBAL_MUTE, this, value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Sets the volume of this Sound Manager.\r\n *\r\n * @method Phaser.Sound.HTML5AudioSoundManager#setVolume\r\n * @fires Phaser.Sound.Events#GLOBAL_VOLUME\r\n * @since 3.3.0\r\n *\r\n * @param {number} value - The global volume of this Sound Manager.\r\n *\r\n * @return {Phaser.Sound.HTML5AudioSoundManager} This Sound Manager.\r\n */\r\n setVolume: function (value)\r\n {\r\n this.volume = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * @name Phaser.Sound.HTML5AudioSoundManager#volume\r\n * @type {number}\r\n * @fires Phaser.Sound.Events#GLOBAL_VOLUME\r\n * @since 3.0.0\r\n */\r\n volume: {\r\n\r\n get: function ()\r\n {\r\n return this._volume;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this._volume = value;\r\n\r\n this.forEachActiveSound(function (sound)\r\n {\r\n sound.updateVolume();\r\n });\r\n\r\n this.emit(Events.GLOBAL_VOLUME, this, value);\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = HTML5AudioSoundManager;\r\n\n\n/***/ }),\n\n/***/ 23717:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Pavle Goloskokovic (http://prunegames.com)\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Sound\r\n */\r\n\r\nmodule.exports = {\r\n\r\n SoundManagerCreator: __webpack_require__(14747),\r\n\r\n Events: __webpack_require__(14463),\r\n\r\n BaseSound: __webpack_require__(30341),\r\n BaseSoundManager: __webpack_require__(85034),\r\n\r\n WebAudioSound: __webpack_require__(71741),\r\n WebAudioSoundManager: __webpack_require__(57490),\r\n\r\n HTML5AudioSound: __webpack_require__(64895),\r\n HTML5AudioSoundManager: __webpack_require__(33684),\r\n\r\n NoAudioSound: __webpack_require__(4603),\r\n NoAudioSoundManager: __webpack_require__(25960)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 4603:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Pavle Goloskokovic (http://prunegames.com)\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BaseSound = __webpack_require__(30341);\r\nvar Class = __webpack_require__(83419);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Extend = __webpack_require__(79291);\r\nvar NOOP = __webpack_require__(29747);\r\n\r\nvar returnFalse = function ()\r\n{\r\n return false;\r\n};\r\n\r\nvar returnNull = function ()\r\n{\r\n return null;\r\n};\r\n\r\nvar returnThis = function ()\r\n{\r\n return this;\r\n};\r\n\r\n/**\r\n * @classdesc\r\n * No audio implementation of the sound. It is used if audio has been\r\n * disabled in the game config or the device doesn't support any audio.\r\n *\r\n * It represents a graceful degradation of sound logic that provides\r\n * minimal functionality and prevents Phaser projects that use audio from\r\n * breaking on devices that don't support any audio playback technologies.\r\n *\r\n * @class NoAudioSound\r\n * @extends Phaser.Events.EventEmitter\r\n * @memberof Phaser.Sound\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Sound.NoAudioSoundManager} manager - Reference to the current sound manager instance.\r\n * @param {string} key - Asset key for the sound.\r\n * @param {Phaser.Types.Sound.SoundConfig} [config={}] - An optional config object containing default sound settings.\r\n */\r\nvar NoAudioSound = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function NoAudioSound (manager, key, config)\r\n {\r\n if (config === void 0) { config = {}; }\r\n\r\n EventEmitter.call(this);\r\n\r\n /**\r\n * Local reference to the sound manager.\r\n *\r\n * @name Phaser.Sound.NoAudioSound#manager\r\n * @type {Phaser.Sound.BaseSoundManager}\r\n * @since 3.0.0\r\n */\r\n this.manager = manager;\r\n\r\n /**\r\n * Asset key for the sound.\r\n *\r\n * @name Phaser.Sound.NoAudioSound#key\r\n * @type {string}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.key = key;\r\n\r\n /**\r\n * Flag indicating if sound is currently playing.\r\n *\r\n * @name Phaser.Sound.NoAudioSound#isPlaying\r\n * @type {boolean}\r\n * @default false\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.isPlaying = false;\r\n\r\n /**\r\n * Flag indicating if sound is currently paused.\r\n *\r\n * @name Phaser.Sound.NoAudioSound#isPaused\r\n * @type {boolean}\r\n * @default false\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.isPaused = false;\r\n\r\n /**\r\n * A property that holds the value of sound's actual playback rate,\r\n * after its rate and detune values has been combined with global\r\n * rate and detune values.\r\n *\r\n * @name Phaser.Sound.NoAudioSound#totalRate\r\n * @type {number}\r\n * @default 1\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.totalRate = 1;\r\n\r\n /**\r\n * A value representing the duration, in seconds.\r\n * It could be total sound duration or a marker duration.\r\n *\r\n * @name Phaser.Sound.NoAudioSound#duration\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.duration = 0;\r\n\r\n /**\r\n * The total duration of the sound in seconds.\r\n *\r\n * @name Phaser.Sound.NoAudioSound#totalDuration\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.totalDuration = 0;\r\n\r\n /**\r\n * A config object used to store default sound settings' values.\r\n * Default values will be set by properties' setters.\r\n *\r\n * @name Phaser.Sound.NoAudioSound#config\r\n * @type {Phaser.Types.Sound.SoundConfig}\r\n * @since 3.0.0\r\n */\r\n this.config = Extend({\r\n mute: false,\r\n volume: 1,\r\n rate: 1,\r\n detune: 0,\r\n seek: 0,\r\n loop: false,\r\n delay: 0,\r\n pan: 0\r\n }, config);\r\n\r\n /**\r\n * Reference to the currently used config.\r\n * It could be default config or marker config.\r\n *\r\n * @name Phaser.Sound.NoAudioSound#currentConfig\r\n * @type {Phaser.Types.Sound.SoundConfig}\r\n * @since 3.0.0\r\n */\r\n this.currentConfig = this.config;\r\n\r\n /**\r\n * Boolean indicating whether the sound is muted or not.\r\n * Gets or sets the muted state of this sound.\r\n *\r\n * @name Phaser.Sound.NoAudioSound#mute\r\n * @type {boolean}\r\n * @default false\r\n * @fires Phaser.Sound.Events#MUTE\r\n * @since 3.0.0\r\n */\r\n this.mute = false;\r\n\r\n /**\r\n * Gets or sets the volume of this sound, a value between 0 (silence) and 1 (full volume).\r\n *\r\n * @name Phaser.Sound.NoAudioSound#volume\r\n * @type {number}\r\n * @default 1\r\n * @fires Phaser.Sound.Events#VOLUME\r\n * @since 3.0.0\r\n */\r\n this.volume = 1;\r\n\r\n /**\r\n * Rate at which this Sound will be played.\r\n * Value of 1.0 plays the audio at full speed, 0.5 plays the audio at half speed\r\n * and 2.0 doubles the audios playback speed.\r\n *\r\n * @name Phaser.Sound.NoAudioSound#rate\r\n * @type {number}\r\n * @default 1\r\n * @fires Phaser.Sound.Events#RATE\r\n * @since 3.0.0\r\n */\r\n this.rate = 1;\r\n\r\n /**\r\n * The detune value of this Sound, given in [cents](https://en.wikipedia.org/wiki/Cent_%28music%29).\r\n * The range of the value is -1200 to 1200, but we recommend setting it to [50](https://en.wikipedia.org/wiki/50_Cent).\r\n *\r\n * @name Phaser.Sound.NoAudioSound#detune\r\n * @type {number}\r\n * @default 0\r\n * @fires Phaser.Sound.Events#DETUNE\r\n * @since 3.0.0\r\n */\r\n this.detune = 0;\r\n\r\n /**\r\n * Property representing the position of playback for this sound, in seconds.\r\n * Setting it to a specific value moves current playback to that position.\r\n * The value given is clamped to the range 0 to current marker duration.\r\n * Setting seek of a stopped sound has no effect.\r\n *\r\n * @name Phaser.Sound.NoAudioSound#seek\r\n * @type {number}\r\n * @fires Phaser.Sound.Events#SEEK\r\n * @since 3.0.0\r\n */\r\n this.seek = 0;\r\n\r\n /**\r\n * Flag indicating whether or not the sound or current sound marker will loop.\r\n *\r\n * @name Phaser.Sound.NoAudioSound#loop\r\n * @type {boolean}\r\n * @default false\r\n * @fires Phaser.Sound.Events#LOOP\r\n * @since 3.0.0\r\n */\r\n this.loop = false;\r\n\r\n /**\r\n * Gets or sets the pan of this sound, a value between -1 (full left pan) and 1 (full right pan).\r\n *\r\n * Always returns zero on iOS / Safari as it doesn't support the stereo panner node.\r\n *\r\n * @name Phaser.Sound.NoAudioSound#pan\r\n * @type {number}\r\n * @default 0\r\n * @fires Phaser.Sound.Events#PAN\r\n * @since 3.50.0\r\n */\r\n this.pan = 0;\r\n\r\n /**\r\n * Object containing markers definitions.\r\n *\r\n * @name Phaser.Sound.NoAudioSound#markers\r\n * @type {Object.}\r\n * @default {}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.markers = {};\r\n\r\n /**\r\n * Currently playing marker.\r\n * 'null' if whole sound is playing.\r\n *\r\n * @name Phaser.Sound.NoAudioSound#currentMarker\r\n * @type {Phaser.Types.Sound.SoundMarker}\r\n * @default null\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.currentMarker = null;\r\n\r\n /**\r\n * Flag indicating if destroy method was called on this sound.\r\n *\r\n * @name Phaser.Sound.NoAudioSound#pendingRemove\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.pendingRemove = false;\r\n },\r\n\r\n /**\r\n * @method Phaser.Sound.NoAudioSound#addMarker\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Sound.SoundMarker} marker - Marker object.\r\n *\r\n * @return {boolean} false\r\n */\r\n addMarker: returnFalse,\r\n\r\n /**\r\n * @method Phaser.Sound.NoAudioSound#updateMarker\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Sound.SoundMarker} marker - Marker object with updated values.\r\n *\r\n * @return {boolean} false\r\n */\r\n updateMarker: returnFalse,\r\n\r\n /**\r\n * @method Phaser.Sound.NoAudioSound#removeMarker\r\n * @since 3.0.0\r\n *\r\n * @param {string} markerName - The name of the marker to remove.\r\n *\r\n * @return {null} null\r\n */\r\n removeMarker: returnNull,\r\n\r\n /**\r\n * @method Phaser.Sound.NoAudioSound#play\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Sound.SoundConfig)} [markerName=''] - If you want to play a marker then provide the marker name here. Alternatively, this parameter can be a SoundConfig object.\r\n * @param {Phaser.Types.Sound.SoundConfig} [config] - Optional sound config object to be applied to this marker or entire sound if no marker name is provided. It gets memorized for future plays of current section of the sound.\r\n *\r\n * @return {boolean} false\r\n */\r\n play: returnFalse,\r\n\r\n /**\r\n * @method Phaser.Sound.NoAudioSound#pause\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} false\r\n */\r\n pause: returnFalse,\r\n\r\n /**\r\n * Resumes the sound.\r\n *\r\n * @method Phaser.Sound.NoAudioSound#resume\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} false\r\n */\r\n resume: returnFalse,\r\n\r\n /**\r\n * Stop playing this sound.\r\n *\r\n * @method Phaser.Sound.NoAudioSound#stop\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} false\r\n */\r\n stop: returnFalse,\r\n\r\n /**\r\n * Sets the muted state of this Sound.\r\n *\r\n * @method Phaser.Sound.NoAudioSound#setMute\r\n * @since 3.4.0\r\n *\r\n * @param {boolean} value - `true` to mute this sound, `false` to unmute it.\r\n *\r\n * @return {this} This Sound instance.\r\n */\r\n setMute: returnThis,\r\n\r\n /**\r\n * Sets the volume of this Sound.\r\n *\r\n * @method Phaser.Sound.NoAudioSound#setVolume\r\n * @since 3.4.0\r\n *\r\n * @param {number} value - The volume of the sound.\r\n *\r\n * @return {this} This Sound instance.\r\n */\r\n setVolume: returnThis,\r\n\r\n /**\r\n * Sets the playback rate of this Sound.\r\n *\r\n * For example, a value of 1.0 plays the audio at full speed, 0.5 plays the audio at half speed\r\n * and 2.0 doubles the audios playback speed.\r\n *\r\n * @method Phaser.Sound.NoAudioSound#setRate\r\n * @since 3.3.0\r\n *\r\n * @param {number} value - The playback rate at of this Sound.\r\n *\r\n * @return {this} This Sound instance.\r\n */\r\n setRate: returnThis,\r\n\r\n /**\r\n * Sets the detune value of this Sound, given in [cents](https://en.wikipedia.org/wiki/Cent_%28music%29).\r\n * The range of the value is -1200 to 1200, but we recommend setting it to [50](https://en.wikipedia.org/wiki/50_Cent).\r\n *\r\n * @method Phaser.Sound.NoAudioSound#setDetune\r\n * @since 3.3.0\r\n *\r\n * @param {number} value - The range of the value is -1200 to 1200, but we recommend setting it to [50](https://en.wikipedia.org/wiki/50_Cent).\r\n *\r\n * @return {this} This Sound instance.\r\n */\r\n setDetune: returnThis,\r\n\r\n /**\r\n * Seeks to a specific point in this sound.\r\n *\r\n * @method Phaser.Sound.NoAudioSound#setSeek\r\n * @since 3.4.0\r\n *\r\n * @param {number} value - The point in the sound to seek to.\r\n *\r\n * @return {this} This Sound instance.\r\n */\r\n setSeek: returnThis,\r\n\r\n /**\r\n * Sets the loop state of this Sound.\r\n *\r\n * @method Phaser.Sound.NoAudioSound#setLoop\r\n * @since 3.4.0\r\n *\r\n * @param {boolean} value - `true` to loop this sound, `false` to not loop it.\r\n *\r\n * @return {this} This Sound instance.\r\n */\r\n setLoop: returnThis,\r\n\r\n /**\r\n * Sets the pan of this sound, a value between -1 (full left pan) and 1 (full right pan).\r\n *\r\n * Note: iOS / Safari doesn't support the stereo panner node.\r\n *\r\n * @method Phaser.Sound.NoAudioSound#setPan\r\n * @since 3.50.0\r\n *\r\n * @param {number} value - The pan of the sound. A value between -1 (full left pan) and 1 (full right pan).\r\n *\r\n * @return {this} This Sound instance.\r\n */\r\n setPan: returnThis,\r\n\r\n /**\r\n * Method used internally for applying config values to some of the sound properties.\r\n *\r\n * @method Phaser.Sound.NoAudioSound#applyConfig\r\n * @since 3.0.0\r\n */\r\n applyConfig: returnNull,\r\n\r\n /**\r\n * Method used internally for resetting values of some of the config properties.\r\n *\r\n * @method Phaser.Sound.NoAudioSound#resetConfig\r\n * @since 3.0.0\r\n */\r\n resetConfig: returnNull,\r\n\r\n /**\r\n * Update method called automatically by sound manager on every game step.\r\n *\r\n * @method Phaser.Sound.NoAudioSound#update\r\n * @override\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current timestamp as generated by the Request Animation Frame or SetTimeout.\r\n * @param {number} delta - The delta time elapsed since the last frame.\r\n */\r\n update: NOOP,\r\n\r\n /**\r\n * Method used internally to calculate total playback rate of the sound.\r\n *\r\n * @method Phaser.Sound.NoAudioSound#calculateRate\r\n * @since 3.0.0\r\n */\r\n calculateRate: returnNull,\r\n\r\n /**\r\n * Destroys this sound and all associated events and marks it for removal from the sound manager.\r\n *\r\n * @method Phaser.Sound.NoAudioSound#destroy\r\n * @fires Phaser.Sound.Events#DESTROY\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n BaseSound.prototype.destroy.call(this);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = NoAudioSound;\r\n\n\n/***/ }),\n\n/***/ 25960:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Pavle Goloskokovic (http://prunegames.com)\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BaseSoundManager = __webpack_require__(85034);\r\nvar Class = __webpack_require__(83419);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar NoAudioSound = __webpack_require__(4603);\r\nvar NOOP = __webpack_require__(29747);\r\n\r\n/**\r\n * @classdesc\r\n * No-audio implementation of the Sound Manager. It is used if audio has been\r\n * disabled in the game config or the device doesn't support any audio.\r\n *\r\n * It represents a graceful degradation of Sound Manager logic that provides\r\n * minimal functionality and prevents Phaser projects that use audio from\r\n * breaking on devices that don't support any audio playback technologies.\r\n *\r\n * @class NoAudioSoundManager\r\n * @extends Phaser.Sound.BaseSoundManager\r\n * @memberof Phaser.Sound\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Game} game - Reference to the current game instance.\r\n */\r\nvar NoAudioSoundManager = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function NoAudioSoundManager (game)\r\n {\r\n EventEmitter.call(this);\r\n\r\n this.game = game;\r\n this.sounds = [];\r\n this.mute = false;\r\n this.volume = 1;\r\n this.rate = 1;\r\n this.detune = 0;\r\n this.pauseOnBlur = true;\r\n this.locked = false;\r\n },\r\n\r\n /**\r\n * Adds a new sound into the sound manager.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#add\r\n * @since 3.60.0\r\n *\r\n * @param {string} key - Asset key for the sound.\r\n * @param {Phaser.Types.Sound.SoundConfig} [config] - An optional config object containing default sound settings.\r\n *\r\n * @return {Phaser.Sound.NoAudioSound} The new sound instance.\r\n */\r\n add: function (key, config)\r\n {\r\n var sound = new NoAudioSound(this, key, config);\r\n\r\n this.sounds.push(sound);\r\n\r\n return sound;\r\n },\r\n\r\n /**\r\n * Adds a new audio sprite sound into the sound manager.\r\n * Audio Sprites are a combination of audio files and a JSON configuration.\r\n * The JSON follows the format of that created by https://github.com/tonistiigi/audiosprite\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#addAudioSprite\r\n * @since 3.60.0\r\n *\r\n * @param {string} key - Asset key for the sound.\r\n * @param {Phaser.Types.Sound.SoundConfig} [config] - An optional config object containing default sound settings.\r\n *\r\n * @return {Phaser.Sound.NoAudioSound} The new audio sprite sound instance.\r\n */\r\n addAudioSprite: function (key, config)\r\n {\r\n var sound = this.add(key, config);\r\n\r\n sound.spritemap = {};\r\n\r\n return sound;\r\n },\r\n\r\n /**\r\n * Gets the first sound in the manager matching the given key, if any.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#get\r\n * @since 3.23.0\r\n *\r\n * @generic {Phaser.Sound.BaseSound} T\r\n * @genericUse {T} - [$return]\r\n *\r\n * @param {string} key - Sound asset key.\r\n *\r\n * @return {?Phaser.Sound.BaseSound} - The sound, or null.\r\n */\r\n get: function (key)\r\n {\r\n return BaseSoundManager.prototype.get.call(this, key);\r\n },\r\n\r\n /**\r\n * Gets any sounds in the manager matching the given key.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#getAll\r\n * @since 3.23.0\r\n *\r\n * @generic {Phaser.Sound.BaseSound} T\r\n * @genericUse {T[]} - [$return]\r\n *\r\n * @param {string} key - Sound asset key.\r\n *\r\n * @return {Phaser.Sound.BaseSound[]} - The sounds, or an empty array.\r\n */\r\n getAll: function (key)\r\n {\r\n return BaseSoundManager.prototype.getAll.call(this, key);\r\n },\r\n\r\n /**\r\n * This method does nothing but return 'false' for the No Audio Sound Manager, to maintain\r\n * compatibility with the other Sound Managers.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#play\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - Asset key for the sound.\r\n * @param {(Phaser.Types.Sound.SoundConfig|Phaser.Types.Sound.SoundMarker)} [extra] - An optional additional object containing settings to be applied to the sound. It could be either config or marker object.\r\n *\r\n * @return {boolean} Always 'false' for the No Audio Sound Manager.\r\n */\r\n // eslint-disable-next-line no-unused-vars\r\n play: function (key, extra)\r\n {\r\n return false;\r\n },\r\n\r\n /**\r\n * This method does nothing but return 'false' for the No Audio Sound Manager, to maintain\r\n * compatibility with the other Sound Managers.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#playAudioSprite\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - Asset key for the sound.\r\n * @param {string} spriteName - The name of the sound sprite to play.\r\n * @param {Phaser.Types.Sound.SoundConfig} [config] - An optional config object containing default sound settings.\r\n *\r\n * @return {boolean} Always 'false' for the No Audio Sound Manager.\r\n */\r\n // eslint-disable-next-line no-unused-vars\r\n playAudioSprite: function (key, spriteName, config)\r\n {\r\n return false;\r\n },\r\n\r\n /**\r\n * Removes a sound from the sound manager.\r\n * The removed sound is destroyed before removal.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#remove\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Sound.BaseSound} sound - The sound object to remove.\r\n *\r\n * @return {boolean} True if the sound was removed successfully, otherwise false.\r\n */\r\n remove: function (sound)\r\n {\r\n return BaseSoundManager.prototype.remove.call(this, sound);\r\n },\r\n\r\n /**\r\n * Removes all sounds from the manager, destroying the sounds.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#removeAll\r\n * @since 3.23.0\r\n */\r\n removeAll: function ()\r\n {\r\n return BaseSoundManager.prototype.removeAll.call(this);\r\n },\r\n\r\n /**\r\n * Removes all sounds from the sound manager that have an asset key matching the given value.\r\n * The removed sounds are destroyed before removal.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#removeByKey\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key to match when removing sound objects.\r\n *\r\n * @return {number} The number of matching sound objects that were removed.\r\n */\r\n removeByKey: function (key)\r\n {\r\n return BaseSoundManager.prototype.removeByKey.call(this, key);\r\n },\r\n\r\n /**\r\n * Stops any sounds matching the given key.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#stopByKey\r\n * @since 3.23.0\r\n *\r\n * @param {string} key - Sound asset key.\r\n *\r\n * @return {number} - How many sounds were stopped.\r\n */\r\n stopByKey: function (key)\r\n {\r\n return BaseSoundManager.prototype.stopByKey.call(this, key);\r\n },\r\n\r\n /**\r\n * Empty function for the No Audio Sound Manager.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#onBlur\r\n * @since 3.0.0\r\n */\r\n onBlur: NOOP,\r\n\r\n /**\r\n * Empty function for the No Audio Sound Manager.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#onFocus\r\n * @since 3.0.0\r\n */\r\n onFocus: NOOP,\r\n\r\n /**\r\n * Empty function for the No Audio Sound Manager.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#onGameBlur\r\n * @since 3.0.0\r\n */\r\n onGameBlur: NOOP,\r\n\r\n /**\r\n * Empty function for the No Audio Sound Manager.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#onGameFocus\r\n * @since 3.0.0\r\n */\r\n onGameFocus: NOOP,\r\n\r\n /**\r\n * Empty function for the No Audio Sound Manager.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#pauseAll\r\n * @since 3.0.0\r\n */\r\n pauseAll: NOOP,\r\n\r\n /**\r\n * Empty function for the No Audio Sound Manager.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#resumeAll\r\n * @since 3.0.0\r\n */\r\n resumeAll: NOOP,\r\n\r\n /**\r\n * Empty function for the No Audio Sound Manager.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#stopAll\r\n * @since 3.0.0\r\n */\r\n stopAll: NOOP,\r\n\r\n /**\r\n * Empty function for the No Audio Sound Manager.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#update\r\n * @since 3.0.0\r\n */\r\n update: NOOP,\r\n\r\n /**\r\n * Empty function for the No Audio Sound Manager.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#setRate\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Sound Manager.\r\n */\r\n setRate: NOOP,\r\n\r\n /**\r\n * Empty function for the No Audio Sound Manager.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#setDetune\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Sound Manager.\r\n */\r\n setDetune: NOOP,\r\n\r\n /**\r\n * Empty function for the No Audio Sound Manager.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#setMute\r\n * @since 3.0.0\r\n */\r\n setMute: NOOP,\r\n\r\n /**\r\n * Empty function for the No Audio Sound Manager.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#setVolume\r\n * @since 3.0.0\r\n */\r\n setVolume: NOOP,\r\n\r\n /**\r\n * Empty function for the No Audio Sound Manager.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#unlock\r\n * @since 3.0.0\r\n */\r\n unlock: NOOP,\r\n\r\n /**\r\n * Method used internally for iterating only over active sounds and skipping sounds that are marked for removal.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#forEachActiveSound\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Sound.EachActiveSoundCallback} callback - Callback function. (manager: Phaser.Sound.BaseSoundManager, sound: Phaser.Sound.BaseSound, index: number, sounds: Phaser.Manager.BaseSound[]) => void\r\n * @param {*} [scope] - Callback context.\r\n */\r\n forEachActiveSound: function (callbackfn, scope)\r\n {\r\n BaseSoundManager.prototype.forEachActiveSound.call(this, callbackfn, scope);\r\n },\r\n\r\n /**\r\n * Destroys all the sounds in the game and all associated events.\r\n *\r\n * @method Phaser.Sound.NoAudioSoundManager#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n BaseSoundManager.prototype.destroy.call(this);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = NoAudioSoundManager;\r\n\n\n/***/ }),\n\n/***/ 71741:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Pavle Goloskokovic (http://prunegames.com)\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BaseSound = __webpack_require__(30341);\r\nvar Class = __webpack_require__(83419);\r\nvar Events = __webpack_require__(14463);\r\nvar GetFastValue = __webpack_require__(95540);\r\n\r\n/**\r\n * @classdesc\r\n * Web Audio API implementation of the sound.\r\n *\r\n * @class WebAudioSound\r\n * @extends Phaser.Sound.BaseSound\r\n * @memberof Phaser.Sound\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Sound.WebAudioSoundManager} manager - Reference to the WebAudio Sound Manager that owns this Sound instance.\r\n * @param {string} key - Asset key for the sound.\r\n * @param {Phaser.Types.Sound.SoundConfig} [config={}] - An optional config object containing default sound settings.\r\n */\r\nvar WebAudioSound = new Class({\r\n\r\n Extends: BaseSound,\r\n\r\n initialize:\r\n\r\n function WebAudioSound (manager, key, config)\r\n {\r\n if (config === undefined) { config = {}; }\r\n\r\n /**\r\n * Audio buffer containing decoded data of the audio asset to be played.\r\n *\r\n * @name Phaser.Sound.WebAudioSound#audioBuffer\r\n * @type {AudioBuffer}\r\n * @since 3.0.0\r\n */\r\n this.audioBuffer = manager.game.cache.audio.get(key);\r\n\r\n if (!this.audioBuffer)\r\n {\r\n throw new Error('Audio key \"' + key + '\" not found in cache');\r\n }\r\n\r\n /**\r\n * A reference to an audio source node used for playing back audio from\r\n * audio data stored in Phaser.Sound.WebAudioSound#audioBuffer.\r\n *\r\n * @name Phaser.Sound.WebAudioSound#source\r\n * @type {AudioBufferSourceNode}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.source = null;\r\n\r\n /**\r\n * A reference to a second audio source used for gapless looped playback.\r\n *\r\n * @name Phaser.Sound.WebAudioSound#loopSource\r\n * @type {AudioBufferSourceNode}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.loopSource = null;\r\n\r\n /**\r\n * Gain node responsible for controlling this sound's muting.\r\n *\r\n * @name Phaser.Sound.WebAudioSound#muteNode\r\n * @type {GainNode}\r\n * @since 3.0.0\r\n */\r\n this.muteNode = manager.context.createGain();\r\n\r\n /**\r\n * Gain node responsible for controlling this sound's volume.\r\n *\r\n * @name Phaser.Sound.WebAudioSound#volumeNode\r\n * @type {GainNode}\r\n * @since 3.0.0\r\n */\r\n this.volumeNode = manager.context.createGain();\r\n\r\n /**\r\n * Panner node responsible for controlling this sound's pan.\r\n *\r\n * Doesn't work on iOS / Safari.\r\n *\r\n * @name Phaser.Sound.WebAudioSound#pannerNode\r\n * @type {StereoPannerNode}\r\n * @since 3.50.0\r\n */\r\n this.pannerNode = null;\r\n\r\n /**\r\n * The Stereo Spatial Panner node.\r\n *\r\n * @name Phaser.Sound.WebAudioSound#spatialNode\r\n * @type {PannerNode}\r\n * @since 3.60.0\r\n */\r\n this.spatialNode = null;\r\n\r\n /**\r\n * If the Spatial Panner node has been set to track a vector or\r\n * Game Object, this retains a reference to it.\r\n *\r\n * @name Phaser.Sound.WebAudioSound#spatialSource\r\n * @type {Phaser.Types.Math.Vector2Like}\r\n * @since 3.60.0\r\n */\r\n this.spatialSource = null;\r\n\r\n /**\r\n * The time at which the sound should have started playback from the beginning.\r\n *\r\n * Treat this property as read-only.\r\n *\r\n * Based on `BaseAudioContext.currentTime` value.\r\n *\r\n * @name Phaser.Sound.WebAudioSound#playTime\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.playTime = 0;\r\n\r\n /**\r\n * The time at which the sound source should have actually started playback.\r\n *\r\n * Treat this property as read-only.\r\n *\r\n * Based on `BaseAudioContext.currentTime` value.\r\n *\r\n * @name Phaser.Sound.WebAudioSound#startTime\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.startTime = 0;\r\n\r\n /**\r\n * The time at which the sound loop source should actually start playback.\r\n *\r\n * Based on `BaseAudioContext.currentTime` value.\r\n *\r\n * @name Phaser.Sound.WebAudioSound#loopTime\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.loopTime = 0;\r\n\r\n /**\r\n * An array where we keep track of all rate updates during playback.\r\n *\r\n * Treat this property as read-only.\r\n *\r\n * Array of object types: `{ time: number, rate: number }`\r\n *\r\n * @name Phaser.Sound.WebAudioSound#rateUpdates\r\n * @type {array}\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this.rateUpdates = [];\r\n\r\n /**\r\n * Used for keeping track when sound source playback has ended\r\n * so its state can be updated accordingly.\r\n *\r\n * @name Phaser.Sound.WebAudioSound#hasEnded\r\n * @type {boolean}\r\n * @readonly\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.hasEnded = false;\r\n\r\n /**\r\n * Used for keeping track when sound source has looped\r\n * so its state can be updated accordingly.\r\n *\r\n * @name Phaser.Sound.WebAudioSound#hasLooped\r\n * @type {boolean}\r\n * @readonly\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.hasLooped = false;\r\n\r\n this.muteNode.connect(this.volumeNode);\r\n\r\n if (manager.context.createPanner)\r\n {\r\n this.spatialNode = manager.context.createPanner();\r\n\r\n this.volumeNode.connect(this.spatialNode);\r\n }\r\n\r\n if (manager.context.createStereoPanner)\r\n {\r\n this.pannerNode = manager.context.createStereoPanner();\r\n\r\n if (manager.context.createPanner)\r\n {\r\n this.spatialNode.connect(this.pannerNode);\r\n }\r\n else\r\n {\r\n this.volumeNode.connect(this.pannerNode);\r\n }\r\n\r\n this.pannerNode.connect(manager.destination);\r\n }\r\n else if (manager.context.createPanner)\r\n {\r\n this.spatialNode.connect(manager.destination);\r\n }\r\n else\r\n {\r\n this.volumeNode.connect(manager.destination);\r\n }\r\n\r\n this.duration = this.audioBuffer.duration;\r\n\r\n this.totalDuration = this.audioBuffer.duration;\r\n\r\n BaseSound.call(this, manager, key, config);\r\n },\r\n\r\n /**\r\n * Play this sound, or a marked section of it.\r\n *\r\n * It always plays the sound from the start. If you want to start playback from a specific time\r\n * you can set 'seek' setting of the config object, provided to this call, to that value.\r\n *\r\n * If you want to play the same sound simultaneously, then you need to create another instance\r\n * of it and play that Sound.\r\n *\r\n * @method Phaser.Sound.WebAudioSound#play\r\n * @fires Phaser.Sound.Events#PLAY\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Types.Sound.SoundConfig)} [markerName=''] - If you want to play a marker then provide the marker name here. Alternatively, this parameter can be a SoundConfig object.\r\n * @param {Phaser.Types.Sound.SoundConfig} [config] - Optional sound config object to be applied to this marker or entire sound if no marker name is provided. It gets memorized for future plays of current section of the sound.\r\n *\r\n * @return {boolean} Whether the sound started playing successfully.\r\n */\r\n play: function (markerName, config)\r\n {\r\n if (!BaseSound.prototype.play.call(this, markerName, config))\r\n {\r\n return false;\r\n }\r\n\r\n // \\/\\/\\/ isPlaying = true, isPaused = false \\/\\/\\/\r\n this.stopAndRemoveBufferSource();\r\n this.createAndStartBufferSource();\r\n\r\n this.emit(Events.PLAY, this);\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * Pauses the sound.\r\n *\r\n * @method Phaser.Sound.WebAudioSound#pause\r\n * @fires Phaser.Sound.Events#PAUSE\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} Whether the sound was paused successfully.\r\n */\r\n pause: function ()\r\n {\r\n if (this.manager.context.currentTime < this.startTime)\r\n {\r\n return false;\r\n }\r\n\r\n if (!BaseSound.prototype.pause.call(this))\r\n {\r\n return false;\r\n }\r\n\r\n // \\/\\/\\/ isPlaying = false, isPaused = true \\/\\/\\/\r\n this.currentConfig.seek = this.getCurrentTime(); // Equivalent to setting paused time\r\n this.stopAndRemoveBufferSource();\r\n\r\n this.emit(Events.PAUSE, this);\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * Resumes the sound.\r\n *\r\n * @method Phaser.Sound.WebAudioSound#resume\r\n * @fires Phaser.Sound.Events#RESUME\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} Whether the sound was resumed successfully.\r\n */\r\n resume: function ()\r\n {\r\n if (this.manager.context.currentTime < this.startTime)\r\n {\r\n return false;\r\n }\r\n\r\n if (!BaseSound.prototype.resume.call(this))\r\n {\r\n return false;\r\n }\r\n\r\n // \\/\\/\\/ isPlaying = true, isPaused = false \\/\\/\\/\r\n this.createAndStartBufferSource();\r\n\r\n this.emit(Events.RESUME, this);\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * Stop playing this sound.\r\n *\r\n * @method Phaser.Sound.WebAudioSound#stop\r\n * @fires Phaser.Sound.Events#STOP\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} Whether the sound was stopped successfully.\r\n */\r\n stop: function ()\r\n {\r\n if (!BaseSound.prototype.stop.call(this))\r\n {\r\n return false;\r\n }\r\n\r\n // \\/\\/\\/ isPlaying = false, isPaused = false \\/\\/\\/\r\n this.stopAndRemoveBufferSource();\r\n\r\n this.emit(Events.STOP, this);\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * Used internally.\r\n *\r\n * @method Phaser.Sound.WebAudioSound#createAndStartBufferSource\r\n * @private\r\n * @since 3.0.0\r\n */\r\n createAndStartBufferSource: function ()\r\n {\r\n var seek = this.currentConfig.seek;\r\n var delay = this.currentConfig.delay;\r\n var when = this.manager.context.currentTime + delay;\r\n var offset = (this.currentMarker ? this.currentMarker.start : 0) + seek;\r\n var duration = this.duration - seek;\r\n\r\n this.playTime = when - seek;\r\n this.startTime = when;\r\n this.source = this.createBufferSource();\r\n\r\n this.applyConfig();\r\n\r\n this.source.start(Math.max(0, when), Math.max(0, offset), Math.max(0, duration));\r\n\r\n this.resetConfig();\r\n },\r\n\r\n /**\r\n * This method is only used internally and it creates a looping buffer source.\r\n *\r\n * @method Phaser.Sound.WebAudioSound#createAndStartLoopBufferSource\r\n * @since 3.0.0\r\n */\r\n createAndStartLoopBufferSource: function ()\r\n {\r\n var when = this.getLoopTime();\r\n var offset = this.currentMarker ? this.currentMarker.start : 0;\r\n var duration = this.duration;\r\n\r\n this.loopTime = when;\r\n this.loopSource = this.createBufferSource();\r\n this.loopSource.playbackRate.setValueAtTime(this.totalRate, 0);\r\n this.loopSource.start(Math.max(0, when), Math.max(0, offset), Math.max(0, duration));\r\n },\r\n\r\n /**\r\n * This method is only used internally and it creates a buffer source.\r\n *\r\n * @method Phaser.Sound.WebAudioSound#createBufferSource\r\n * @since 3.0.0\r\n *\r\n * @return {AudioBufferSourceNode}\r\n */\r\n createBufferSource: function ()\r\n {\r\n var _this = this;\r\n var source = this.manager.context.createBufferSource();\r\n\r\n source.buffer = this.audioBuffer;\r\n\r\n source.connect(this.muteNode);\r\n\r\n source.onended = function (ev)\r\n {\r\n var target = ev.target;\r\n\r\n if (target === _this.source || target === _this.loopSource)\r\n {\r\n // sound ended\r\n if (_this.currentConfig.loop)\r\n {\r\n _this.hasLooped = true;\r\n }\r\n else\r\n {\r\n _this.hasEnded = true;\r\n }\r\n }\r\n\r\n // else was stopped\r\n };\r\n\r\n return source;\r\n },\r\n\r\n /**\r\n * This method is only used internally and it stops and removes a buffer source.\r\n *\r\n * @method Phaser.Sound.WebAudioSound#stopAndRemoveBufferSource\r\n * @since 3.0.0\r\n */\r\n stopAndRemoveBufferSource: function ()\r\n {\r\n if (this.source)\r\n {\r\n var tempSource = this.source;\r\n\r\n this.source = null;\r\n\r\n tempSource.stop();\r\n tempSource.disconnect();\r\n }\r\n\r\n this.playTime = 0;\r\n this.startTime = 0;\r\n this.hasEnded = false;\r\n\r\n this.stopAndRemoveLoopBufferSource();\r\n },\r\n\r\n /**\r\n * This method is only used internally and it stops and removes a looping buffer source.\r\n *\r\n * @method Phaser.Sound.WebAudioSound#stopAndRemoveLoopBufferSource\r\n * @since 3.0.0\r\n */\r\n stopAndRemoveLoopBufferSource: function ()\r\n {\r\n if (this.loopSource)\r\n {\r\n this.loopSource.stop();\r\n this.loopSource.disconnect();\r\n this.loopSource = null;\r\n }\r\n\r\n this.loopTime = 0;\r\n },\r\n\r\n /**\r\n * Method used internally for applying config values to some of the sound properties.\r\n *\r\n * @method Phaser.Sound.WebAudioSound#applyConfig\r\n * @since 3.0.0\r\n */\r\n applyConfig: function ()\r\n {\r\n this.rateUpdates.length = 0;\r\n\r\n this.rateUpdates.push({\r\n time: 0,\r\n rate: 1\r\n });\r\n\r\n var source = this.currentConfig.source;\r\n\r\n if (source && this.manager.context.createPanner)\r\n {\r\n var node = this.spatialNode;\r\n\r\n node.panningModel = GetFastValue(source, 'panningModel', 'equalpower');\r\n node.distanceModel = GetFastValue(source, 'distanceModel', 'inverse');\r\n node.orientationX.value = GetFastValue(source, 'orientationX', 0);\r\n node.orientationY.value = GetFastValue(source, 'orientationY', 0);\r\n node.orientationZ.value = GetFastValue(source, 'orientationZ', -1);\r\n node.refDistance = GetFastValue(source, 'refDistance', 1);\r\n node.maxDistance = GetFastValue(source, 'maxDistance', 10000);\r\n node.rolloffFactor = GetFastValue(source, 'rolloffFactor', 1);\r\n node.coneInnerAngle = GetFastValue(source, 'coneInnerAngle', 360);\r\n node.coneOuterAngle = GetFastValue(source, 'coneOuterAngle', 0);\r\n node.coneOuterGain = GetFastValue(source, 'coneOuterGain', 0);\r\n\r\n this.spatialSource = GetFastValue(source, 'follow', null);\r\n\r\n if (!this.spatialSource)\r\n {\r\n node.positionX.value = GetFastValue(source, 'x', 0);\r\n node.positionY.value = GetFastValue(source, 'y', 0);\r\n node.positionZ.value = GetFastValue(source, 'z', 0);\r\n }\r\n }\r\n\r\n BaseSound.prototype.applyConfig.call(this);\r\n },\r\n\r\n /**\r\n * Sets the x position of this Sound in Spatial Audio space.\r\n *\r\n * This only has any effect if the sound was created with a SpatialSoundConfig object.\r\n *\r\n * Also see the `WebAudioSoundManager.setListenerPosition` method.\r\n *\r\n * If you find that the sound becomes too quiet, too quickly, as it moves away from\r\n * the listener, then try different `refDistance` property values when configuring\r\n * the spatial sound.\r\n *\r\n * @name Phaser.Sound.WebAudioSound#x\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n x: {\r\n\r\n get: function ()\r\n {\r\n if (this.spatialNode)\r\n {\r\n return this.spatialNode.positionX;\r\n }\r\n else\r\n {\r\n return 0;\r\n }\r\n },\r\n\r\n set: function (value)\r\n {\r\n if (this.spatialNode)\r\n {\r\n this.spatialNode.positionX.value = value;\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Sets the y position of this Sound in Spatial Audio space.\r\n *\r\n * This only has any effect if the sound was created with a SpatialSoundConfig object.\r\n *\r\n * Also see the `WebAudioSoundManager.setListenerPosition` method.\r\n *\r\n * If you find that the sound becomes too quiet, too quickly, as it moves away from\r\n * the listener, then try different `refDistance` property values when configuring\r\n * the spatial sound.\r\n *\r\n * @name Phaser.Sound.WebAudioSound#y\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n y: {\r\n\r\n get: function ()\r\n {\r\n if (this.spatialNode)\r\n {\r\n return this.spatialNode.positionY;\r\n }\r\n else\r\n {\r\n return 0;\r\n }\r\n },\r\n\r\n set: function (value)\r\n {\r\n if (this.spatialNode)\r\n {\r\n this.spatialNode.positionY.value = value;\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Update method called automatically by sound manager on every game step.\r\n *\r\n * @method Phaser.Sound.WebAudioSound#update\r\n * @fires Phaser.Sound.Events#COMPLETE\r\n * @fires Phaser.Sound.Events#LOOPED\r\n * @since 3.0.0\r\n */\r\n update: function ()\r\n {\r\n if (this.isPlaying && this.spatialSource)\r\n {\r\n var x = GetFastValue(this.spatialSource, 'x', null);\r\n var y = GetFastValue(this.spatialSource, 'y', null);\r\n\r\n if (x && x !== this._spatialx)\r\n {\r\n this._spatialx = this.spatialNode.positionX.value = x;\r\n }\r\n if (y && y !== this._spatialy)\r\n {\r\n this._spatialy = this.spatialNode.positionY.value = y;\r\n }\r\n }\r\n\r\n if (this.hasEnded)\r\n {\r\n BaseSound.prototype.stop.call(this);\r\n\r\n this.stopAndRemoveBufferSource();\r\n\r\n this.emit(Events.COMPLETE, this);\r\n }\r\n else if (this.hasLooped)\r\n {\r\n this.hasLooped = false;\r\n this.source = this.loopSource;\r\n this.loopSource = null;\r\n this.playTime = this.startTime = this.loopTime;\r\n this.rateUpdates.length = 0;\r\n\r\n this.rateUpdates.push({\r\n time: 0,\r\n rate: this.totalRate\r\n });\r\n\r\n this.createAndStartLoopBufferSource();\r\n\r\n this.emit(Events.LOOPED, this);\r\n }\r\n },\r\n\r\n /**\r\n * Calls Phaser.Sound.BaseSound#destroy method\r\n * and cleans up all Web Audio API related stuff.\r\n *\r\n * @method Phaser.Sound.WebAudioSound#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n if (this.pendingRemove)\r\n {\r\n return;\r\n }\r\n\r\n BaseSound.prototype.destroy.call(this);\r\n\r\n this.audioBuffer = null;\r\n this.stopAndRemoveBufferSource();\r\n this.muteNode.disconnect();\r\n this.muteNode = null;\r\n this.volumeNode.disconnect();\r\n this.volumeNode = null;\r\n\r\n if (this.pannerNode)\r\n {\r\n this.pannerNode.disconnect();\r\n this.pannerNode = null;\r\n }\r\n\r\n if (this.spatialNode)\r\n {\r\n this.spatialNode.disconnect();\r\n this.spatialNode = null;\r\n this.spatialSource = null;\r\n }\r\n\r\n this.rateUpdates.length = 0;\r\n this.rateUpdates = null;\r\n },\r\n\r\n /**\r\n * Method used internally to calculate total playback rate of the sound.\r\n *\r\n * @method Phaser.Sound.WebAudioSound#calculateRate\r\n * @since 3.0.0\r\n */\r\n calculateRate: function ()\r\n {\r\n BaseSound.prototype.calculateRate.call(this);\r\n\r\n var now = this.manager.context.currentTime;\r\n\r\n if (this.source && typeof this.totalRate === 'number')\r\n {\r\n this.source.playbackRate.setValueAtTime(this.totalRate, now);\r\n }\r\n\r\n if (this.isPlaying)\r\n {\r\n this.rateUpdates.push({\r\n time: Math.max(this.startTime, now) - this.playTime,\r\n rate: this.totalRate\r\n });\r\n\r\n if (this.loopSource)\r\n {\r\n this.stopAndRemoveLoopBufferSource();\r\n this.createAndStartLoopBufferSource();\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Method used internally for calculating current playback time of a playing sound.\r\n *\r\n * @method Phaser.Sound.WebAudioSound#getCurrentTime\r\n * @since 3.0.0\r\n */\r\n getCurrentTime: function ()\r\n {\r\n var currentTime = 0;\r\n\r\n for (var i = 0; i < this.rateUpdates.length; i++)\r\n {\r\n var nextTime = 0;\r\n\r\n if (i < this.rateUpdates.length - 1)\r\n {\r\n nextTime = this.rateUpdates[i + 1].time;\r\n }\r\n else\r\n {\r\n nextTime = this.manager.context.currentTime - this.playTime;\r\n }\r\n\r\n currentTime += (nextTime - this.rateUpdates[i].time) * this.rateUpdates[i].rate;\r\n }\r\n\r\n return currentTime;\r\n },\r\n\r\n /**\r\n * Method used internally for calculating the time\r\n * at witch the loop source should start playing.\r\n *\r\n * @method Phaser.Sound.WebAudioSound#getLoopTime\r\n * @since 3.0.0\r\n */\r\n getLoopTime: function ()\r\n {\r\n var lastRateUpdateCurrentTime = 0;\r\n\r\n for (var i = 0; i < this.rateUpdates.length - 1; i++)\r\n {\r\n lastRateUpdateCurrentTime += (this.rateUpdates[i + 1].time - this.rateUpdates[i].time) * this.rateUpdates[i].rate;\r\n }\r\n\r\n var lastRateUpdate = this.rateUpdates[this.rateUpdates.length - 1];\r\n\r\n return this.playTime + lastRateUpdate.time + (this.duration - lastRateUpdateCurrentTime) / lastRateUpdate.rate;\r\n },\r\n\r\n /**\r\n * Rate at which this Sound will be played.\r\n * Value of 1.0 plays the audio at full speed, 0.5 plays the audio at half speed\r\n * and 2.0 doubles the audios playback speed.\r\n *\r\n * @name Phaser.Sound.WebAudioSound#rate\r\n * @type {number}\r\n * @default 1\r\n * @fires Phaser.Sound.Events#RATE\r\n * @since 3.0.0\r\n */\r\n rate: {\r\n\r\n get: function ()\r\n {\r\n return this.currentConfig.rate;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.currentConfig.rate = value;\r\n\r\n this.calculateRate();\r\n\r\n this.emit(Events.RATE, this, value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Sets the playback rate of this Sound.\r\n *\r\n * For example, a value of 1.0 plays the audio at full speed, 0.5 plays the audio at half speed\r\n * and 2.0 doubles the audios playback speed.\r\n *\r\n * @method Phaser.Sound.WebAudioSound#setRate\r\n * @fires Phaser.Sound.Events#RATE\r\n * @since 3.3.0\r\n *\r\n * @param {number} value - The playback rate at of this Sound.\r\n *\r\n * @return {this} This Sound instance.\r\n */\r\n setRate: function (value)\r\n {\r\n this.rate = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The detune value of this Sound, given in [cents](https://en.wikipedia.org/wiki/Cent_%28music%29).\r\n * The range of the value is -1200 to 1200, but we recommend setting it to [50](https://en.wikipedia.org/wiki/50_Cent).\r\n *\r\n * @name Phaser.Sound.WebAudioSound#detune\r\n * @type {number}\r\n * @default 0\r\n * @fires Phaser.Sound.Events#DETUNE\r\n * @since 3.0.0\r\n */\r\n detune: {\r\n\r\n get: function ()\r\n {\r\n return this.currentConfig.detune;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.currentConfig.detune = value;\r\n\r\n this.calculateRate();\r\n\r\n this.emit(Events.DETUNE, this, value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Sets the detune value of this Sound, given in [cents](https://en.wikipedia.org/wiki/Cent_%28music%29).\r\n * The range of the value is -1200 to 1200, but we recommend setting it to [50](https://en.wikipedia.org/wiki/50_Cent).\r\n *\r\n * @method Phaser.Sound.WebAudioSound#setDetune\r\n * @fires Phaser.Sound.Events#DETUNE\r\n * @since 3.3.0\r\n *\r\n * @param {number} value - The range of the value is -1200 to 1200, but we recommend setting it to [50](https://en.wikipedia.org/wiki/50_Cent).\r\n *\r\n * @return {this} This Sound instance.\r\n */\r\n setDetune: function (value)\r\n {\r\n this.detune = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Boolean indicating whether the sound is muted or not.\r\n * Gets or sets the muted state of this sound.\r\n *\r\n * @name Phaser.Sound.WebAudioSound#mute\r\n * @type {boolean}\r\n * @default false\r\n * @fires Phaser.Sound.Events#MUTE\r\n * @since 3.0.0\r\n */\r\n mute: {\r\n\r\n get: function ()\r\n {\r\n return (this.muteNode.gain.value === 0);\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.currentConfig.mute = value;\r\n this.muteNode.gain.setValueAtTime(value ? 0 : 1, 0);\r\n\r\n this.emit(Events.MUTE, this, value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Sets the muted state of this Sound.\r\n *\r\n * @method Phaser.Sound.WebAudioSound#setMute\r\n * @fires Phaser.Sound.Events#MUTE\r\n * @since 3.4.0\r\n *\r\n * @param {boolean} value - `true` to mute this sound, `false` to unmute it.\r\n *\r\n * @return {this} This Sound instance.\r\n */\r\n setMute: function (value)\r\n {\r\n this.mute = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Gets or sets the volume of this sound, a value between 0 (silence) and 1 (full volume).\r\n *\r\n * @name Phaser.Sound.WebAudioSound#volume\r\n * @type {number}\r\n * @default 1\r\n * @fires Phaser.Sound.Events#VOLUME\r\n * @since 3.0.0\r\n */\r\n volume: {\r\n\r\n get: function ()\r\n {\r\n return this.volumeNode.gain.value;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.currentConfig.volume = value;\r\n this.volumeNode.gain.setValueAtTime(value, 0);\r\n\r\n this.emit(Events.VOLUME, this, value);\r\n }\r\n },\r\n\r\n /**\r\n * Sets the volume of this Sound.\r\n *\r\n * @method Phaser.Sound.WebAudioSound#setVolume\r\n * @fires Phaser.Sound.Events#VOLUME\r\n * @since 3.4.0\r\n *\r\n * @param {number} value - The volume of the sound.\r\n *\r\n * @return {this} This Sound instance.\r\n */\r\n setVolume: function (value)\r\n {\r\n this.volume = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Property representing the position of playback for this sound, in seconds.\r\n * Setting it to a specific value moves current playback to that position.\r\n * The value given is clamped to the range 0 to current marker duration.\r\n * Setting seek of a stopped sound has no effect.\r\n *\r\n * @name Phaser.Sound.WebAudioSound#seek\r\n * @type {number}\r\n * @fires Phaser.Sound.Events#SEEK\r\n * @since 3.0.0\r\n */\r\n seek: {\r\n\r\n get: function ()\r\n {\r\n if (this.isPlaying)\r\n {\r\n if (this.manager.context.currentTime < this.startTime)\r\n {\r\n return this.startTime - this.playTime;\r\n }\r\n\r\n return this.getCurrentTime();\r\n }\r\n else if (this.isPaused)\r\n {\r\n return this.currentConfig.seek;\r\n }\r\n else\r\n {\r\n return 0;\r\n }\r\n },\r\n\r\n set: function (value)\r\n {\r\n if (this.manager.context.currentTime < this.startTime)\r\n {\r\n return;\r\n }\r\n\r\n if (this.isPlaying || this.isPaused)\r\n {\r\n value = Math.min(Math.max(0, value), this.duration);\r\n\r\n this.currentConfig.seek = value;\r\n\r\n if (this.isPlaying)\r\n {\r\n this.stopAndRemoveBufferSource();\r\n this.createAndStartBufferSource();\r\n }\r\n\r\n this.emit(Events.SEEK, this, value);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Seeks to a specific point in this sound.\r\n *\r\n * @method Phaser.Sound.WebAudioSound#setSeek\r\n * @fires Phaser.Sound.Events#SEEK\r\n * @since 3.4.0\r\n *\r\n * @param {number} value - The point in the sound to seek to.\r\n *\r\n * @return {this} This Sound instance.\r\n */\r\n setSeek: function (value)\r\n {\r\n this.seek = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Flag indicating whether or not the sound or current sound marker will loop.\r\n *\r\n * @name Phaser.Sound.WebAudioSound#loop\r\n * @type {boolean}\r\n * @default false\r\n * @fires Phaser.Sound.Events#LOOP\r\n * @since 3.0.0\r\n */\r\n loop: {\r\n\r\n get: function ()\r\n {\r\n return this.currentConfig.loop;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.currentConfig.loop = value;\r\n\r\n if (this.isPlaying)\r\n {\r\n this.stopAndRemoveLoopBufferSource();\r\n\r\n if (value)\r\n {\r\n this.createAndStartLoopBufferSource();\r\n }\r\n }\r\n\r\n this.emit(Events.LOOP, this, value);\r\n }\r\n },\r\n\r\n /**\r\n * Sets the loop state of this Sound.\r\n *\r\n * @method Phaser.Sound.WebAudioSound#setLoop\r\n * @fires Phaser.Sound.Events#LOOP\r\n * @since 3.4.0\r\n *\r\n * @param {boolean} value - `true` to loop this sound, `false` to not loop it.\r\n *\r\n * @return {this} This Sound instance.\r\n */\r\n setLoop: function (value)\r\n {\r\n this.loop = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Gets or sets the pan of this sound, a value between -1 (full left pan) and 1 (full right pan).\r\n *\r\n * Always returns zero on iOS / Safari as it doesn't support the stereo panner node.\r\n *\r\n * @name Phaser.Sound.WebAudioSound#pan\r\n * @type {number}\r\n * @default 0\r\n * @fires Phaser.Sound.Events#PAN\r\n * @since 3.50.0\r\n */\r\n pan: {\r\n\r\n get: function ()\r\n {\r\n if (this.pannerNode)\r\n {\r\n return this.pannerNode.pan.value;\r\n }\r\n else\r\n {\r\n return 0;\r\n }\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.currentConfig.pan = value;\r\n\r\n if (this.pannerNode)\r\n {\r\n this.pannerNode.pan.setValueAtTime(value, this.manager.context.currentTime);\r\n }\r\n\r\n this.emit(Events.PAN, this, value);\r\n }\r\n },\r\n\r\n /**\r\n * Sets the pan of this sound, a value between -1 (full left pan) and 1 (full right pan).\r\n *\r\n * Note: iOS / Safari doesn't support the stereo panner node.\r\n *\r\n * @method Phaser.Sound.WebAudioSound#setPan\r\n * @fires Phaser.Sound.Events#PAN\r\n * @since 3.50.0\r\n *\r\n * @param {number} value - The pan of the sound. A value between -1 (full left pan) and 1 (full right pan).\r\n *\r\n * @return {this} This Sound instance.\r\n */\r\n setPan: function (value)\r\n {\r\n this.pan = value;\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = WebAudioSound;\r\n\n\n/***/ }),\n\n/***/ 57490:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Pavle Goloskokovic (http://prunegames.com)\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Base64ToArrayBuffer = __webpack_require__(53134);\r\nvar BaseSoundManager = __webpack_require__(85034);\r\nvar Class = __webpack_require__(83419);\r\nvar Events = __webpack_require__(14463);\r\nvar GameEvents = __webpack_require__(8443);\r\nvar WebAudioSound = __webpack_require__(71741);\r\nvar GetFastValue = __webpack_require__(95540);\r\n\r\n/**\r\n * @classdesc\r\n * Web Audio API implementation of the Sound Manager.\r\n *\r\n * Not all browsers can play all audio formats.\r\n *\r\n * There is a good guide to what's supported: [Cross-browser audio basics: Audio codec support](https://developer.mozilla.org/en-US/Apps/Fundamentals/Audio_and_video_delivery/Cross-browser_audio_basics#Audio_Codec_Support).\r\n *\r\n * @class WebAudioSoundManager\r\n * @extends Phaser.Sound.BaseSoundManager\r\n * @memberof Phaser.Sound\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Game} game - Reference to the current game instance.\r\n */\r\nvar WebAudioSoundManager = new Class({\r\n\r\n Extends: BaseSoundManager,\r\n\r\n initialize:\r\n\r\n function WebAudioSoundManager (game)\r\n {\r\n /**\r\n * The AudioContext being used for playback.\r\n *\r\n * @name Phaser.Sound.WebAudioSoundManager#context\r\n * @type {AudioContext}\r\n * @since 3.0.0\r\n */\r\n this.context = this.createAudioContext(game);\r\n\r\n /**\r\n * Gain node responsible for controlling global muting.\r\n *\r\n * @name Phaser.Sound.WebAudioSoundManager#masterMuteNode\r\n * @type {GainNode}\r\n * @since 3.0.0\r\n */\r\n this.masterMuteNode = this.context.createGain();\r\n\r\n /**\r\n * Gain node responsible for controlling global volume.\r\n *\r\n * @name Phaser.Sound.WebAudioSoundManager#masterVolumeNode\r\n * @type {GainNode}\r\n * @since 3.0.0\r\n */\r\n this.masterVolumeNode = this.context.createGain();\r\n\r\n this.masterMuteNode.connect(this.masterVolumeNode);\r\n\r\n this.masterVolumeNode.connect(this.context.destination);\r\n\r\n /**\r\n * Destination node for connecting individual sounds to.\r\n *\r\n * @name Phaser.Sound.WebAudioSoundManager#destination\r\n * @type {AudioNode}\r\n * @since 3.0.0\r\n */\r\n this.destination = this.masterMuteNode;\r\n\r\n this.locked = this.context.state === 'suspended' && ('ontouchstart' in window || 'onclick' in window);\r\n\r\n BaseSoundManager.call(this, game);\r\n\r\n if (this.locked && game.isBooted)\r\n {\r\n this.unlock();\r\n }\r\n else\r\n {\r\n game.events.once(GameEvents.BOOT, this.unlock, this);\r\n }\r\n },\r\n\r\n /**\r\n * Method responsible for instantiating and returning AudioContext instance.\r\n * If an instance of an AudioContext class was provided through the game config,\r\n * that instance will be returned instead. This can come in handy if you are reloading\r\n * a Phaser game on a page that never properly refreshes (such as in an SPA project)\r\n * and you want to reuse already instantiated AudioContext.\r\n *\r\n * @method Phaser.Sound.WebAudioSoundManager#createAudioContext\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Game} game - Reference to the current game instance.\r\n *\r\n * @return {AudioContext} The AudioContext instance to be used for playback.\r\n */\r\n createAudioContext: function (game)\r\n {\r\n var audioConfig = game.config.audio;\r\n\r\n if (audioConfig.context)\r\n {\r\n audioConfig.context.resume();\r\n\r\n return audioConfig.context;\r\n }\r\n\r\n if (window.hasOwnProperty('AudioContext'))\r\n {\r\n return new AudioContext();\r\n }\r\n else if (window.hasOwnProperty('webkitAudioContext'))\r\n {\r\n return new window.webkitAudioContext();\r\n }\r\n },\r\n\r\n /**\r\n * This method takes a new AudioContext reference and then sets\r\n * this Sound Manager to use that context for all playback.\r\n *\r\n * As part of this call it also disconnects the master mute and volume\r\n * nodes and then re-creates them on the new given context.\r\n *\r\n * @method Phaser.Sound.WebAudioSoundManager#setAudioContext\r\n * @since 3.21.0\r\n *\r\n * @param {AudioContext} context - Reference to an already created AudioContext instance.\r\n *\r\n * @return {this} The WebAudioSoundManager instance.\r\n */\r\n setAudioContext: function (context)\r\n {\r\n if (this.context)\r\n {\r\n this.context.close();\r\n }\r\n\r\n if (this.masterMuteNode)\r\n {\r\n this.masterMuteNode.disconnect();\r\n }\r\n\r\n if (this.masterVolumeNode)\r\n {\r\n this.masterVolumeNode.disconnect();\r\n }\r\n\r\n this.context = context;\r\n\r\n this.masterMuteNode = context.createGain();\r\n this.masterVolumeNode = context.createGain();\r\n\r\n this.masterMuteNode.connect(this.masterVolumeNode);\r\n this.masterVolumeNode.connect(context.destination);\r\n\r\n this.destination = this.masterMuteNode;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds a new sound into the sound manager.\r\n *\r\n * @method Phaser.Sound.WebAudioSoundManager#add\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - Asset key for the sound.\r\n * @param {Phaser.Types.Sound.SoundConfig} [config] - An optional config object containing default sound settings.\r\n *\r\n * @return {Phaser.Sound.WebAudioSound} The new sound instance.\r\n */\r\n add: function (key, config)\r\n {\r\n var sound = new WebAudioSound(this, key, config);\r\n\r\n this.sounds.push(sound);\r\n\r\n return sound;\r\n },\r\n\r\n /**\r\n * Decode audio data into a format ready for playback via Web Audio.\r\n *\r\n * The audio data can be a base64 encoded string, an audio media-type data uri, or an ArrayBuffer instance.\r\n *\r\n * The `audioKey` is the key that will be used to save the decoded audio to the audio cache.\r\n *\r\n * Instead of passing a single entry you can instead pass an array of `Phaser.Types.Sound.DecodeAudioConfig`\r\n * objects as the first and only argument.\r\n *\r\n * Decoding is an async process, so be sure to listen for the events to know when decoding has completed.\r\n *\r\n * Once the audio has decoded it can be added to the Sound Manager or played via its key.\r\n *\r\n * @method Phaser.Sound.WebAudioSoundManager#decodeAudio\r\n * @fires Phaser.Sound.Events#DECODED\r\n * @fires Phaser.Sound.Events#DECODED_ALL\r\n * @since 3.18.0\r\n *\r\n * @param {(Phaser.Types.Sound.DecodeAudioConfig[]|string)} [audioKey] - The string-based key to be used to reference the decoded audio in the audio cache, or an array of audio config objects.\r\n * @param {(ArrayBuffer|string)} [audioData] - The audio data, either a base64 encoded string, an audio media-type data uri, or an ArrayBuffer instance.\r\n */\r\n decodeAudio: function (audioKey, audioData)\r\n {\r\n var audioFiles;\r\n\r\n if (!Array.isArray(audioKey))\r\n {\r\n audioFiles = [ { key: audioKey, data: audioData } ];\r\n }\r\n else\r\n {\r\n audioFiles = audioKey;\r\n }\r\n\r\n var cache = this.game.cache.audio;\r\n var remaining = audioFiles.length;\r\n\r\n for (var i = 0; i < audioFiles.length; i++)\r\n {\r\n var entry = audioFiles[i];\r\n\r\n var key = entry.key;\r\n var data = entry.data;\r\n\r\n if (typeof data === 'string')\r\n {\r\n data = Base64ToArrayBuffer(data);\r\n }\r\n\r\n var success = function (key, audioBuffer)\r\n {\r\n cache.add(key, audioBuffer);\r\n\r\n this.emit(Events.DECODED, key);\r\n\r\n remaining--;\r\n\r\n if (remaining === 0)\r\n {\r\n this.emit(Events.DECODED_ALL);\r\n }\r\n }.bind(this, key);\r\n\r\n var failure = function (key, error)\r\n {\r\n // eslint-disable-next-line no-console\r\n console.error('Error decoding audio: ' + key + ' - ', error ? error.message : '');\r\n\r\n remaining--;\r\n\r\n if (remaining === 0)\r\n {\r\n this.emit(Events.DECODED_ALL);\r\n }\r\n }.bind(this, key);\r\n\r\n this.context.decodeAudioData(data, success, failure);\r\n }\r\n },\r\n\r\n /**\r\n * Sets the X and Y position of the Spatial Audio listener on this Web Audios context.\r\n *\r\n * If you call this method with no parameters it will default to the center-point of\r\n * the game canvas. Depending on the type of game you're making, you may need to call\r\n * this method constantly to reset the listener position as the camera scrolls.\r\n *\r\n * Calling this method does nothing on HTML5Audio.\r\n *\r\n * @method Phaser.Sound.WebAudioSoundManager#setListenerPosition\r\n * @since 3.60.0\r\n *\r\n * @param {number} [x] - The x position of the Spatial Audio listener.\r\n * @param {number} [y] - The y position of the Spatial Audio listener.\r\n */\r\n setListenerPosition: function (x, y)\r\n {\r\n if (x === undefined) { x = this.game.scale.width / 2; }\r\n if (y === undefined) { y = this.game.scale.height / 2; }\r\n\r\n this.listenerPosition.set(x, y);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Unlocks Web Audio API on the initial input event.\r\n *\r\n * Read more about how this issue is handled here in [this article](https://medium.com/@pgoloskokovic/unlocking-web-audio-the-smarter-way-8858218c0e09).\r\n *\r\n * @method Phaser.Sound.WebAudioSoundManager#unlock\r\n * @since 3.0.0\r\n */\r\n unlock: function ()\r\n {\r\n var _this = this;\r\n\r\n var body = document.body;\r\n\r\n var unlockHandler = function unlockHandler ()\r\n {\r\n if (_this.context && body)\r\n {\r\n var bodyRemove = body.removeEventListener.bind(body);\r\n\r\n _this.context.resume().then(function ()\r\n {\r\n bodyRemove('touchstart', unlockHandler);\r\n bodyRemove('touchend', unlockHandler);\r\n bodyRemove('click', unlockHandler);\r\n bodyRemove('keydown', unlockHandler);\r\n\r\n _this.unlocked = true;\r\n }, function ()\r\n {\r\n bodyRemove('touchstart', unlockHandler);\r\n bodyRemove('touchend', unlockHandler);\r\n bodyRemove('click', unlockHandler);\r\n bodyRemove('keydown', unlockHandler);\r\n });\r\n }\r\n };\r\n\r\n if (body)\r\n {\r\n body.addEventListener('touchstart', unlockHandler, false);\r\n body.addEventListener('touchend', unlockHandler, false);\r\n body.addEventListener('click', unlockHandler, false);\r\n body.addEventListener('keydown', unlockHandler, false);\r\n }\r\n },\r\n\r\n /**\r\n * Method used internally for pausing sound manager if\r\n * Phaser.Sound.WebAudioSoundManager#pauseOnBlur is set to true.\r\n *\r\n * @method Phaser.Sound.WebAudioSoundManager#onBlur\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n onBlur: function ()\r\n {\r\n if (!this.locked)\r\n {\r\n this.context.suspend();\r\n }\r\n },\r\n\r\n /**\r\n * Method used internally for resuming sound manager if\r\n * Phaser.Sound.WebAudioSoundManager#pauseOnBlur is set to true.\r\n *\r\n * @method Phaser.Sound.WebAudioSoundManager#onFocus\r\n * @protected\r\n * @since 3.0.0\r\n */\r\n onFocus: function ()\r\n {\r\n var context = this.context;\r\n\r\n if (context && !this.locked && (context.state === 'suspended' || context.state === 'interrupted'))\r\n {\r\n context.resume();\r\n }\r\n },\r\n\r\n /**\r\n * Update method called on every game step.\r\n *\r\n * Removes destroyed sounds and updates every active sound in the game.\r\n *\r\n * @method Phaser.Sound.WebAudioSoundManager#update\r\n * @protected\r\n * @fires Phaser.Sound.Events#UNLOCKED\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current timestamp as generated by the Request Animation Frame or SetTimeout.\r\n * @param {number} delta - The delta time elapsed since the last frame.\r\n */\r\n update: function (time, delta)\r\n {\r\n var listener = this.context.listener;\r\n\r\n if (listener && listener.positionX !== undefined)\r\n {\r\n var x = GetFastValue(this.listenerPosition, 'x', null);\r\n var y = GetFastValue(this.listenerPosition, 'y', null);\r\n\r\n if (x && x !== this._spatialx)\r\n {\r\n this._spatialx = listener.positionX.value = x;\r\n }\r\n if (y && y !== this._spatialy)\r\n {\r\n this._spatialy = listener.positionY.value = y;\r\n }\r\n }\r\n\r\n BaseSoundManager.prototype.update.call(this, time, delta);\r\n\r\n // Resume interrupted audio on iOS only if the game has focus\r\n if (!this.gameLostFocus)\r\n {\r\n this.onFocus();\r\n }\r\n },\r\n\r\n /**\r\n * Calls Phaser.Sound.BaseSoundManager#destroy method\r\n * and cleans up all Web Audio API related stuff.\r\n *\r\n * @method Phaser.Sound.WebAudioSoundManager#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.destination = null;\r\n this.masterVolumeNode.disconnect();\r\n this.masterVolumeNode = null;\r\n this.masterMuteNode.disconnect();\r\n this.masterMuteNode = null;\r\n\r\n if (this.game.config.audio.context)\r\n {\r\n this.context.suspend();\r\n }\r\n else\r\n {\r\n var _this = this;\r\n\r\n this.context.close().then(function ()\r\n {\r\n _this.context = null;\r\n });\r\n }\r\n\r\n BaseSoundManager.prototype.destroy.call(this);\r\n },\r\n\r\n /**\r\n * Sets the muted state of all this Sound Manager.\r\n *\r\n * @method Phaser.Sound.WebAudioSoundManager#setMute\r\n * @fires Phaser.Sound.Events#GLOBAL_MUTE\r\n * @since 3.3.0\r\n *\r\n * @param {boolean} value - `true` to mute all sounds, `false` to unmute them.\r\n *\r\n * @return {Phaser.Sound.WebAudioSoundManager} This Sound Manager.\r\n */\r\n setMute: function (value)\r\n {\r\n this.mute = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * @name Phaser.Sound.WebAudioSoundManager#mute\r\n * @type {boolean}\r\n * @fires Phaser.Sound.Events#GLOBAL_MUTE\r\n * @since 3.0.0\r\n */\r\n mute: {\r\n\r\n get: function ()\r\n {\r\n return (this.masterMuteNode.gain.value === 0);\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.masterMuteNode.gain.setValueAtTime(value ? 0 : 1, 0);\r\n\r\n this.emit(Events.GLOBAL_MUTE, this, value);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Sets the volume of this Sound Manager.\r\n *\r\n * @method Phaser.Sound.WebAudioSoundManager#setVolume\r\n * @fires Phaser.Sound.Events#GLOBAL_VOLUME\r\n * @since 3.3.0\r\n *\r\n * @param {number} value - The global volume of this Sound Manager.\r\n *\r\n * @return {Phaser.Sound.WebAudioSoundManager} This Sound Manager.\r\n */\r\n setVolume: function (value)\r\n {\r\n this.volume = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * @name Phaser.Sound.WebAudioSoundManager#volume\r\n * @type {number}\r\n * @fires Phaser.Sound.Events#GLOBAL_VOLUME\r\n * @since 3.0.0\r\n */\r\n volume: {\r\n\r\n get: function ()\r\n {\r\n return this.masterVolumeNode.gain.value;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.masterVolumeNode.gain.setValueAtTime(value, 0);\r\n\r\n this.emit(Events.GLOBAL_VOLUME, this, value);\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = WebAudioSoundManager;\r\n\n\n/***/ }),\n\n/***/ 73162:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar ArrayUtils = __webpack_require__(37105);\r\nvar Class = __webpack_require__(83419);\r\nvar NOOP = __webpack_require__(29747);\r\nvar StableSort = __webpack_require__(19186);\r\n\r\n/**\r\n * @callback EachListCallback\r\n *\r\n * @param {I} item - The item which is currently being processed.\r\n * @param {...*} [args] - Additional arguments that will be passed to the callback, after the child.\r\n */\r\n\r\n/**\r\n * @classdesc\r\n * List is a generic implementation of an ordered list which contains utility methods for retrieving, manipulating, and iterating items.\r\n *\r\n * @class List\r\n * @memberof Phaser.Structs\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @generic T\r\n *\r\n * @param {*} parent - The parent of this list.\r\n */\r\nvar List = new Class({\r\n\r\n initialize:\r\n\r\n function List (parent)\r\n {\r\n /**\r\n * The parent of this list.\r\n *\r\n * @name Phaser.Structs.List#parent\r\n * @type {*}\r\n * @since 3.0.0\r\n */\r\n this.parent = parent;\r\n\r\n /**\r\n * The objects that belong to this collection.\r\n *\r\n * @genericUse {T[]} - [$type]\r\n *\r\n * @name Phaser.Structs.List#list\r\n * @type {Array.<*>}\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this.list = [];\r\n\r\n /**\r\n * The index of the current element.\r\n *\r\n * This is used internally when iterating through the list with the {@link #first}, {@link #last}, {@link #get}, and {@link #previous} properties.\r\n *\r\n * @name Phaser.Structs.List#position\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.position = 0;\r\n\r\n /**\r\n * A callback that is invoked every time a child is added to this list.\r\n *\r\n * @name Phaser.Structs.List#addCallback\r\n * @type {function}\r\n * @since 3.4.0\r\n */\r\n this.addCallback = NOOP;\r\n\r\n /**\r\n * A callback that is invoked every time a child is removed from this list.\r\n *\r\n * @name Phaser.Structs.List#removeCallback\r\n * @type {function}\r\n * @since 3.4.0\r\n */\r\n this.removeCallback = NOOP;\r\n\r\n /**\r\n * The property key to sort by.\r\n *\r\n * @name Phaser.Structs.List#_sortKey\r\n * @type {string}\r\n * @since 3.4.0\r\n */\r\n this._sortKey = '';\r\n },\r\n\r\n /**\r\n * Adds the given item to the end of the list. Each item must be unique.\r\n *\r\n * @method Phaser.Structs.List#add\r\n * @since 3.0.0\r\n *\r\n * @param {*|Array.<*>} child - The item, or array of items, to add to the list.\r\n * @param {boolean} [skipCallback=false] - Skip calling the List.addCallback if this child is added successfully.\r\n *\r\n * @return {*} The list's underlying array.\r\n */\r\n add: function (child, skipCallback)\r\n {\r\n if (skipCallback)\r\n {\r\n return ArrayUtils.Add(this.list, child);\r\n }\r\n else\r\n {\r\n return ArrayUtils.Add(this.list, child, 0, this.addCallback, this);\r\n }\r\n },\r\n\r\n /**\r\n * Adds an item to list, starting at a specified index. Each item must be unique within the list.\r\n *\r\n * @method Phaser.Structs.List#addAt\r\n * @since 3.0.0\r\n *\r\n * @genericUse {(T|T[])} - [child,$return]\r\n *\r\n * @param {*} child - The item, or array of items, to add to the list.\r\n * @param {number} [index=0] - The index in the list at which the element(s) will be inserted.\r\n * @param {boolean} [skipCallback=false] - Skip calling the List.addCallback if this child is added successfully.\r\n *\r\n * @return {*} The List's underlying array.\r\n */\r\n addAt: function (child, index, skipCallback)\r\n {\r\n if (skipCallback)\r\n {\r\n return ArrayUtils.AddAt(this.list, child, index);\r\n }\r\n else\r\n {\r\n return ArrayUtils.AddAt(this.list, child, index, 0, this.addCallback, this);\r\n }\r\n },\r\n\r\n /**\r\n * Retrieves the item at a given position inside the List.\r\n *\r\n * @method Phaser.Structs.List#getAt\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T} - [$return]\r\n *\r\n * @param {number} index - The index of the item.\r\n *\r\n * @return {*} The retrieved item, or `undefined` if it's outside the List's bounds.\r\n */\r\n getAt: function (index)\r\n {\r\n return this.list[index];\r\n },\r\n\r\n /**\r\n * Locates an item within the List and returns its index.\r\n *\r\n * @method Phaser.Structs.List#getIndex\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T} - [child]\r\n *\r\n * @param {*} child - The item to locate.\r\n *\r\n * @return {number} The index of the item within the List, or -1 if it's not in the List.\r\n */\r\n getIndex: function (child)\r\n {\r\n // Return -1 if given child isn't a child of this display list\r\n return this.list.indexOf(child);\r\n },\r\n\r\n /**\r\n * Sort the contents of this List so the items are in order based on the given property.\r\n * For example, `sort('alpha')` would sort the List contents based on the value of their `alpha` property.\r\n *\r\n * @method Phaser.Structs.List#sort\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T[]} - [children,$return]\r\n *\r\n * @param {string} property - The property to lexically sort by.\r\n * @param {function} [handler] - Provide your own custom handler function. Will receive 2 children which it should compare and return a boolean.\r\n *\r\n * @return {Phaser.Structs.List} This List object.\r\n */\r\n sort: function (property, handler)\r\n {\r\n if (!property)\r\n {\r\n return this;\r\n }\r\n\r\n if (handler === undefined)\r\n {\r\n handler = function (childA, childB)\r\n {\r\n return childA[property] - childB[property];\r\n };\r\n }\r\n\r\n StableSort(this.list, handler);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Searches for the first instance of a child with its `name`\r\n * property matching the given argument. Should more than one child have\r\n * the same name only the first is returned.\r\n *\r\n * @method Phaser.Structs.List#getByName\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T | null} - [$return]\r\n *\r\n * @param {string} name - The name to search for.\r\n *\r\n * @return {?*} The first child with a matching name, or null if none were found.\r\n */\r\n getByName: function (name)\r\n {\r\n return ArrayUtils.GetFirst(this.list, 'name', name);\r\n },\r\n\r\n /**\r\n * Returns a random child from the group.\r\n *\r\n * @method Phaser.Structs.List#getRandom\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T | null} - [$return]\r\n *\r\n * @param {number} [startIndex=0] - Offset from the front of the group (lowest child).\r\n * @param {number} [length=(to top)] - Restriction on the number of values you want to randomly select from.\r\n *\r\n * @return {?*} A random child of this Group.\r\n */\r\n getRandom: function (startIndex, length)\r\n {\r\n return ArrayUtils.GetRandom(this.list, startIndex, length);\r\n },\r\n\r\n /**\r\n * Returns the first element in a given part of the List which matches a specific criterion.\r\n *\r\n * @method Phaser.Structs.List#getFirst\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T | null} - [$return]\r\n *\r\n * @param {string} property - The name of the property to test or a falsey value to have no criterion.\r\n * @param {*} value - The value to test the `property` against, or `undefined` to allow any value and only check for existence.\r\n * @param {number} [startIndex=0] - The position in the List to start the search at.\r\n * @param {number} [endIndex] - The position in the List to optionally stop the search at. It won't be checked.\r\n *\r\n * @return {?*} The first item which matches the given criterion, or `null` if no such item exists.\r\n */\r\n getFirst: function (property, value, startIndex, endIndex)\r\n {\r\n return ArrayUtils.GetFirst(this.list, property, value, startIndex, endIndex);\r\n },\r\n\r\n /**\r\n * Returns all children in this List.\r\n *\r\n * You can optionally specify a matching criteria using the `property` and `value` arguments.\r\n *\r\n * For example: `getAll('parent')` would return only children that have a property called `parent`.\r\n *\r\n * You can also specify a value to compare the property to:\r\n *\r\n * `getAll('visible', true)` would return only children that have their visible property set to `true`.\r\n *\r\n * Optionally you can specify a start and end index. For example if this List had 100 children,\r\n * and you set `startIndex` to 0 and `endIndex` to 50, it would return matches from only\r\n * the first 50 children in the List.\r\n *\r\n * @method Phaser.Structs.List#getAll\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T[]} - [$return]\r\n *\r\n * @param {string} [property] - An optional property to test against the value argument.\r\n * @param {any} [value] - If property is set then Child.property must strictly equal this value to be included in the results.\r\n * @param {number} [startIndex] - The first child index to start the search from.\r\n * @param {number} [endIndex] - The last child index to search up until.\r\n *\r\n * @return {Array.<*>} All items of the List which match the given criterion, if any.\r\n */\r\n getAll: function (property, value, startIndex, endIndex)\r\n {\r\n return ArrayUtils.GetAll(this.list, property, value, startIndex, endIndex);\r\n },\r\n\r\n /**\r\n * Returns the total number of items in the List which have a property matching the given value.\r\n *\r\n * @method Phaser.Structs.List#count\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T} - [value]\r\n *\r\n * @param {string} property - The property to test on each item.\r\n * @param {*} value - The value to test the property against.\r\n *\r\n * @return {number} The total number of matching elements.\r\n */\r\n count: function (property, value)\r\n {\r\n return ArrayUtils.CountAllMatching(this.list, property, value);\r\n },\r\n\r\n /**\r\n * Swaps the positions of two items in the list.\r\n *\r\n * @method Phaser.Structs.List#swap\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T} - [child1,child2]\r\n *\r\n * @param {*} child1 - The first item to swap.\r\n * @param {*} child2 - The second item to swap.\r\n */\r\n swap: function (child1, child2)\r\n {\r\n ArrayUtils.Swap(this.list, child1, child2);\r\n },\r\n\r\n /**\r\n * Moves an item in the List to a new position.\r\n *\r\n * @method Phaser.Structs.List#moveTo\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T} - [child,$return]\r\n *\r\n * @param {*} child - The item to move.\r\n * @param {number} index - Moves an item in the List to a new position.\r\n *\r\n * @return {*} The item that was moved.\r\n */\r\n moveTo: function (child, index)\r\n {\r\n return ArrayUtils.MoveTo(this.list, child, index);\r\n },\r\n\r\n /**\r\n * Moves an item above another one in the List.\r\n * If the given item is already above the other, it isn't moved.\r\n * Above means toward the end of the List.\r\n *\r\n * @method Phaser.Structs.List#moveAbove\r\n * @since 3.55.0\r\n *\r\n * @genericUse {T} - [child1,child2]\r\n *\r\n * @param {*} child1 - The element to move above base element.\r\n * @param {*} child2 - The base element.\r\n */\r\n moveAbove: function (child1, child2)\r\n {\r\n return ArrayUtils.MoveAbove(this.list, child1, child2);\r\n },\r\n\r\n /**\r\n * Moves an item below another one in the List.\r\n * If the given item is already below the other, it isn't moved.\r\n * Below means toward the start of the List.\r\n *\r\n * @method Phaser.Structs.List#moveBelow\r\n * @since 3.55.0\r\n *\r\n * @genericUse {T} - [child1,child2]\r\n *\r\n * @param {*} child1 - The element to move below base element.\r\n * @param {*} child2 - The base element.\r\n */\r\n moveBelow: function (child1, child2)\r\n {\r\n return ArrayUtils.MoveBelow(this.list, child1, child2);\r\n },\r\n\r\n /**\r\n * Removes one or many items from the List.\r\n *\r\n * @method Phaser.Structs.List#remove\r\n * @since 3.0.0\r\n *\r\n * @param {*} child - The item, or array of items, to remove.\r\n * @param {boolean} [skipCallback=false] - Skip calling the List.removeCallback.\r\n *\r\n * @return {*} The item, or array of items, which were successfully removed from the List.\r\n */\r\n remove: function (child, skipCallback)\r\n {\r\n if (skipCallback)\r\n {\r\n return ArrayUtils.Remove(this.list, child);\r\n }\r\n else\r\n {\r\n return ArrayUtils.Remove(this.list, child, this.removeCallback, this);\r\n }\r\n },\r\n\r\n /**\r\n * Removes the item at the given position in the List.\r\n *\r\n * @method Phaser.Structs.List#removeAt\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T} - [$return]\r\n *\r\n * @param {number} index - The position to remove the item from.\r\n * @param {boolean} [skipCallback=false] - Skip calling the List.removeCallback.\r\n *\r\n * @return {*} The item that was removed.\r\n */\r\n removeAt: function (index, skipCallback)\r\n {\r\n if (skipCallback)\r\n {\r\n return ArrayUtils.RemoveAt(this.list, index);\r\n }\r\n else\r\n {\r\n return ArrayUtils.RemoveAt(this.list, index, this.removeCallback, this);\r\n }\r\n },\r\n\r\n /**\r\n * Removes the items within the given range in the List.\r\n *\r\n * @method Phaser.Structs.List#removeBetween\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T[]} - [$return]\r\n *\r\n * @param {number} [startIndex=0] - The index to start removing from.\r\n * @param {number} [endIndex] - The position to stop removing at. The item at this position won't be removed.\r\n * @param {boolean} [skipCallback=false] - Skip calling the List.removeCallback.\r\n *\r\n * @return {Array.<*>} An array of the items which were removed.\r\n */\r\n removeBetween: function (startIndex, endIndex, skipCallback)\r\n {\r\n if (skipCallback)\r\n {\r\n return ArrayUtils.RemoveBetween(this.list, startIndex, endIndex);\r\n }\r\n else\r\n {\r\n return ArrayUtils.RemoveBetween(this.list, startIndex, endIndex, this.removeCallback, this);\r\n }\r\n },\r\n\r\n /**\r\n * Removes all the items.\r\n *\r\n * @method Phaser.Structs.List#removeAll\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [skipCallback=false] - Skip calling the List.removeCallback.\r\n *\r\n * @return {this} This List object.\r\n */\r\n removeAll: function (skipCallback)\r\n {\r\n var i = this.list.length;\r\n\r\n while (i--)\r\n {\r\n this.remove(this.list[i], skipCallback);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Brings the given child to the top of this List.\r\n *\r\n * @method Phaser.Structs.List#bringToTop\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T} - [child,$return]\r\n *\r\n * @param {*} child - The item to bring to the top of the List.\r\n *\r\n * @return {*} The item which was moved.\r\n */\r\n bringToTop: function (child)\r\n {\r\n return ArrayUtils.BringToTop(this.list, child);\r\n },\r\n\r\n /**\r\n * Sends the given child to the bottom of this List.\r\n *\r\n * @method Phaser.Structs.List#sendToBack\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T} - [child,$return]\r\n *\r\n * @param {*} child - The item to send to the back of the list.\r\n *\r\n * @return {*} The item which was moved.\r\n */\r\n sendToBack: function (child)\r\n {\r\n return ArrayUtils.SendToBack(this.list, child);\r\n },\r\n\r\n /**\r\n * Moves the given child up one place in this group unless it's already at the top.\r\n *\r\n * @method Phaser.Structs.List#moveUp\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T} - [child,$return]\r\n *\r\n * @param {*} child - The item to move up.\r\n *\r\n * @return {*} The item which was moved.\r\n */\r\n moveUp: function (child)\r\n {\r\n ArrayUtils.MoveUp(this.list, child);\r\n\r\n return child;\r\n },\r\n\r\n /**\r\n * Moves the given child down one place in this group unless it's already at the bottom.\r\n *\r\n * @method Phaser.Structs.List#moveDown\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T} - [child,$return]\r\n *\r\n * @param {*} child - The item to move down.\r\n *\r\n * @return {*} The item which was moved.\r\n */\r\n moveDown: function (child)\r\n {\r\n ArrayUtils.MoveDown(this.list, child);\r\n\r\n return child;\r\n },\r\n\r\n /**\r\n * Reverses the order of all children in this List.\r\n *\r\n * @method Phaser.Structs.List#reverse\r\n * @since 3.0.0\r\n *\r\n * @genericUse {Phaser.Structs.List.} - [$return]\r\n *\r\n * @return {Phaser.Structs.List} This List object.\r\n */\r\n reverse: function ()\r\n {\r\n this.list.reverse();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Shuffles the items in the list.\r\n *\r\n * @method Phaser.Structs.List#shuffle\r\n * @since 3.0.0\r\n *\r\n * @genericUse {Phaser.Structs.List.} - [$return]\r\n *\r\n * @return {Phaser.Structs.List} This List object.\r\n */\r\n shuffle: function ()\r\n {\r\n ArrayUtils.Shuffle(this.list);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Replaces a child of this List with the given newChild. The newChild cannot be a member of this List.\r\n *\r\n * @method Phaser.Structs.List#replace\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T} - [oldChild,newChild,$return]\r\n *\r\n * @param {*} oldChild - The child in this List that will be replaced.\r\n * @param {*} newChild - The child to be inserted into this List.\r\n *\r\n * @return {*} Returns the oldChild that was replaced within this group.\r\n */\r\n replace: function (oldChild, newChild)\r\n {\r\n return ArrayUtils.Replace(this.list, oldChild, newChild);\r\n },\r\n\r\n /**\r\n * Checks if an item exists within the List.\r\n *\r\n * @method Phaser.Structs.List#exists\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T} - [child]\r\n *\r\n * @param {*} child - The item to check for the existence of.\r\n *\r\n * @return {boolean} `true` if the item is found in the list, otherwise `false`.\r\n */\r\n exists: function (child)\r\n {\r\n return (this.list.indexOf(child) > -1);\r\n },\r\n\r\n /**\r\n * Sets the property `key` to the given value on all members of this List.\r\n *\r\n * @method Phaser.Structs.List#setAll\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T} - [value]\r\n *\r\n * @param {string} property - The name of the property to set.\r\n * @param {*} value - The value to set the property to.\r\n * @param {number} [startIndex] - The first child index to start the search from.\r\n * @param {number} [endIndex] - The last child index to search up until.\r\n */\r\n setAll: function (property, value, startIndex, endIndex)\r\n {\r\n ArrayUtils.SetAll(this.list, property, value, startIndex, endIndex);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Passes all children to the given callback.\r\n *\r\n * @method Phaser.Structs.List#each\r\n * @since 3.0.0\r\n *\r\n * @genericUse {EachListCallback.} - [callback]\r\n *\r\n * @param {EachListCallback} callback - The function to call.\r\n * @param {*} [context] - Value to use as `this` when executing callback.\r\n * @param {...*} [args] - Additional arguments that will be passed to the callback, after the child.\r\n */\r\n each: function (callback, context)\r\n {\r\n var args = [ null ];\r\n\r\n for (var i = 2; i < arguments.length; i++)\r\n {\r\n args.push(arguments[i]);\r\n }\r\n\r\n for (i = 0; i < this.list.length; i++)\r\n {\r\n args[0] = this.list[i];\r\n\r\n callback.apply(context, args);\r\n }\r\n },\r\n\r\n /**\r\n * Clears the List and recreates its internal array.\r\n *\r\n * @method Phaser.Structs.List#shutdown\r\n * @since 3.0.0\r\n */\r\n shutdown: function ()\r\n {\r\n this.removeAll();\r\n\r\n this.list = [];\r\n },\r\n\r\n /**\r\n * Destroys this List.\r\n *\r\n * @method Phaser.Structs.List#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.removeAll();\r\n\r\n this.parent = null;\r\n this.addCallback = null;\r\n this.removeCallback = null;\r\n },\r\n\r\n /**\r\n * The number of items inside the List.\r\n *\r\n * @name Phaser.Structs.List#length\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n length: {\r\n\r\n get: function ()\r\n {\r\n return this.list.length;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The first item in the List or `null` for an empty List.\r\n *\r\n * @name Phaser.Structs.List#first\r\n * @genericUse {T} - [$type]\r\n * @type {*}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n first: {\r\n\r\n get: function ()\r\n {\r\n this.position = 0;\r\n\r\n if (this.list.length > 0)\r\n {\r\n return this.list[0];\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The last item in the List, or `null` for an empty List.\r\n *\r\n * @name Phaser.Structs.List#last\r\n * @genericUse {T} - [$type]\r\n * @type {*}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n last: {\r\n\r\n get: function ()\r\n {\r\n if (this.list.length > 0)\r\n {\r\n this.position = this.list.length - 1;\r\n\r\n return this.list[this.position];\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The next item in the List, or `null` if the entire List has been traversed.\r\n *\r\n * This property can be read successively after reading {@link #first} or manually setting the {@link #position} to iterate the List.\r\n *\r\n * @name Phaser.Structs.List#next\r\n * @genericUse {T} - [$type]\r\n * @type {*}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n next: {\r\n\r\n get: function ()\r\n {\r\n if (this.position < this.list.length)\r\n {\r\n this.position++;\r\n\r\n return this.list[this.position];\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The previous item in the List, or `null` if the entire List has been traversed.\r\n *\r\n * This property can be read successively after reading {@link #last} or manually setting the {@link #position} to iterate the List backwards.\r\n *\r\n * @name Phaser.Structs.List#previous\r\n * @genericUse {T} - [$type]\r\n * @type {*}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n previous: {\r\n\r\n get: function ()\r\n {\r\n if (this.position > 0)\r\n {\r\n this.position--;\r\n\r\n return this.list[this.position];\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = List;\r\n\n\n/***/ }),\n\n/***/ 90330:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n/**\r\n * @callback EachMapCallback\r\n *\r\n * @param {string} key - The key of the Map entry.\r\n * @param {E} entry - The value of the Map entry.\r\n *\r\n * @return {?boolean} The callback result.\r\n */\r\n\r\n/**\r\n * @classdesc\r\n * The keys of a Map can be arbitrary values.\r\n *\r\n * ```javascript\r\n * var map = new Map([\r\n * [ 1, 'one' ],\r\n * [ 2, 'two' ],\r\n * [ 3, 'three' ]\r\n * ]);\r\n * ```\r\n *\r\n * @class Map\r\n * @memberof Phaser.Structs\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @generic K\r\n * @generic V\r\n * @genericUse {V[]} - [elements]\r\n *\r\n * @param {Array.<*>} elements - An optional array of key-value pairs to populate this Map with.\r\n */\r\nvar Map = new Class({\r\n\r\n initialize:\r\n\r\n function Map (elements)\r\n {\r\n /**\r\n * The entries in this Map.\r\n *\r\n * @genericUse {Object.} - [$type]\r\n *\r\n * @name Phaser.Structs.Map#entries\r\n * @type {Object.}\r\n * @default {}\r\n * @since 3.0.0\r\n */\r\n this.entries = {};\r\n\r\n /**\r\n * The number of key / value pairs in this Map.\r\n *\r\n * @name Phaser.Structs.Map#size\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.size = 0;\r\n\r\n this.setAll(elements);\r\n },\r\n\r\n /**\r\n * Adds all the elements in the given array to this Map.\r\n *\r\n * If the element already exists, the value will be skipped.\r\n *\r\n * @method Phaser.Structs.Map#setAll\r\n * @since 3.70.0\r\n *\r\n * @generic K\r\n * @generic V\r\n * @genericUse {V[]} - [elements]\r\n *\r\n * @param {Array.<*>} elements - An array of key-value pairs to populate this Map with.\r\n *\r\n * @return {this} This Map object.\r\n */\r\n setAll: function (elements)\r\n {\r\n if (Array.isArray(elements))\r\n {\r\n for (var i = 0; i < elements.length; i++)\r\n {\r\n this.set(elements[i][0], elements[i][1]);\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds an element with a specified `key` and `value` to this Map.\r\n *\r\n * If the `key` already exists, the value will be replaced.\r\n *\r\n * If you wish to add multiple elements in a single call, use the `setAll` method instead.\r\n *\r\n * @method Phaser.Structs.Map#set\r\n * @since 3.0.0\r\n *\r\n * @genericUse {K} - [key]\r\n * @genericUse {V} - [value]\r\n * @genericUse {Phaser.Structs.Map.} - [$return]\r\n *\r\n * @param {string} key - The key of the element to be added to this Map.\r\n * @param {*} value - The value of the element to be added to this Map.\r\n *\r\n * @return {this} This Map object.\r\n */\r\n set: function (key, value)\r\n {\r\n if (!this.has(key))\r\n {\r\n this.size++;\r\n }\r\n\r\n this.entries[key] = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns the value associated to the `key`, or `undefined` if there is none.\r\n *\r\n * @method Phaser.Structs.Map#get\r\n * @since 3.0.0\r\n *\r\n * @genericUse {K} - [key]\r\n * @genericUse {V} - [$return]\r\n *\r\n * @param {string} key - The key of the element to return from the `Map` object.\r\n *\r\n * @return {*} The element associated with the specified key or `undefined` if the key can't be found in this Map object.\r\n */\r\n get: function (key)\r\n {\r\n if (this.has(key))\r\n {\r\n return this.entries[key];\r\n }\r\n },\r\n\r\n /**\r\n * Returns an `Array` of all the values stored in this Map.\r\n *\r\n * @method Phaser.Structs.Map#getArray\r\n * @since 3.0.0\r\n *\r\n * @genericUse {V[]} - [$return]\r\n *\r\n * @return {Array.<*>} An array of the values stored in this Map.\r\n */\r\n getArray: function ()\r\n {\r\n var output = [];\r\n var entries = this.entries;\r\n\r\n for (var key in entries)\r\n {\r\n output.push(entries[key]);\r\n }\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Returns a boolean indicating whether an element with the specified key exists or not.\r\n *\r\n * @method Phaser.Structs.Map#has\r\n * @since 3.0.0\r\n *\r\n * @genericUse {K} - [key]\r\n *\r\n * @param {string} key - The key of the element to test for presence of in this Map.\r\n *\r\n * @return {boolean} Returns `true` if an element with the specified key exists in this Map, otherwise `false`.\r\n */\r\n has: function (key)\r\n {\r\n return (this.entries.hasOwnProperty(key));\r\n },\r\n\r\n /**\r\n * Delete the specified element from this Map.\r\n *\r\n * @method Phaser.Structs.Map#delete\r\n * @since 3.0.0\r\n *\r\n * @genericUse {K} - [key]\r\n * @genericUse {Phaser.Structs.Map.} - [$return]\r\n *\r\n * @param {string} key - The key of the element to delete from this Map.\r\n *\r\n * @return {this} This Map object.\r\n */\r\n delete: function (key)\r\n {\r\n if (this.has(key))\r\n {\r\n delete this.entries[key];\r\n this.size--;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Delete all entries from this Map.\r\n *\r\n * @method Phaser.Structs.Map#clear\r\n * @since 3.0.0\r\n *\r\n * @genericUse {Phaser.Structs.Map.} - [$return]\r\n *\r\n * @return {this} This Map object.\r\n */\r\n clear: function ()\r\n {\r\n Object.keys(this.entries).forEach(function (prop)\r\n {\r\n delete this.entries[prop];\r\n\r\n }, this);\r\n\r\n this.size = 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns all entries keys in this Map.\r\n *\r\n * @method Phaser.Structs.Map#keys\r\n * @since 3.0.0\r\n *\r\n * @genericUse {K[]} - [$return]\r\n *\r\n * @return {string[]} Array containing entries' keys.\r\n */\r\n keys: function ()\r\n {\r\n return Object.keys(this.entries);\r\n },\r\n\r\n /**\r\n * Returns an `Array` of all entries.\r\n *\r\n * @method Phaser.Structs.Map#values\r\n * @since 3.0.0\r\n *\r\n * @genericUse {V[]} - [$return]\r\n *\r\n * @return {Array.<*>} An `Array` of entries.\r\n */\r\n values: function ()\r\n {\r\n var output = [];\r\n var entries = this.entries;\r\n\r\n for (var key in entries)\r\n {\r\n output.push(entries[key]);\r\n }\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Dumps the contents of this Map to the console via `console.group`.\r\n *\r\n * @method Phaser.Structs.Map#dump\r\n * @since 3.0.0\r\n */\r\n dump: function ()\r\n {\r\n var entries = this.entries;\r\n\r\n // eslint-disable-next-line no-console\r\n console.group('Map');\r\n\r\n for (var key in entries)\r\n {\r\n console.log(key, entries[key]);\r\n }\r\n\r\n // eslint-disable-next-line no-console\r\n console.groupEnd();\r\n },\r\n\r\n /**\r\n * Iterates through all entries in this Map, passing each one to the given callback.\r\n *\r\n * If the callback returns `false`, the iteration will break.\r\n *\r\n * @method Phaser.Structs.Map#each\r\n * @since 3.0.0\r\n *\r\n * @genericUse {EachMapCallback.} - [callback]\r\n * @genericUse {Phaser.Structs.Map.} - [$return]\r\n *\r\n * @param {EachMapCallback} callback - The callback which will receive the keys and entries held in this Map.\r\n *\r\n * @return {this} This Map object.\r\n */\r\n each: function (callback)\r\n {\r\n var entries = this.entries;\r\n\r\n for (var key in entries)\r\n {\r\n if (callback(key, entries[key]) === false)\r\n {\r\n break;\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns `true` if the value exists within this Map. Otherwise, returns `false`.\r\n *\r\n * @method Phaser.Structs.Map#contains\r\n * @since 3.0.0\r\n *\r\n * @genericUse {V} - [value]\r\n *\r\n * @param {*} value - The value to search for.\r\n *\r\n * @return {boolean} `true` if the value is found, otherwise `false`.\r\n */\r\n contains: function (value)\r\n {\r\n var entries = this.entries;\r\n\r\n for (var key in entries)\r\n {\r\n if (entries[key] === value)\r\n {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Merges all new keys from the given Map into this one.\r\n * If it encounters a key that already exists it will be skipped unless override is set to `true`.\r\n *\r\n * @method Phaser.Structs.Map#merge\r\n * @since 3.0.0\r\n *\r\n * @genericUse {Phaser.Structs.Map.} - [map,$return]\r\n *\r\n * @param {Phaser.Structs.Map} map - The Map to merge in to this Map.\r\n * @param {boolean} [override=false] - Set to `true` to replace values in this Map with those from the source map, or `false` to skip them.\r\n *\r\n * @return {this} This Map object.\r\n */\r\n merge: function (map, override)\r\n {\r\n if (override === undefined) { override = false; }\r\n\r\n var local = this.entries;\r\n var source = map.entries;\r\n\r\n for (var key in source)\r\n {\r\n if (local.hasOwnProperty(key) && override)\r\n {\r\n local[key] = source[key];\r\n }\r\n else\r\n {\r\n this.set(key, source[key]);\r\n }\r\n }\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Map;\r\n\n\n/***/ }),\n\n/***/ 25774:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Events = __webpack_require__(82348);\r\n\r\n/**\r\n * @classdesc\r\n * A Process Queue maintains three internal lists.\r\n *\r\n * The `pending` list is a selection of items which are due to be made 'active' in the next update.\r\n * The `active` list is a selection of items which are considered active and should be updated.\r\n * The `destroy` list is a selection of items that were active and are awaiting being destroyed in the next update.\r\n *\r\n * When new items are added to a Process Queue they are put in the pending list, rather than being added\r\n * immediately the active list. Equally, items that are removed are put into the destroy list, rather than\r\n * being destroyed immediately. This allows the Process Queue to carefully process each item at a specific, fixed\r\n * time, rather than at the time of the request from the API.\r\n *\r\n * @class ProcessQueue\r\n * @extends Phaser.Events.EventEmitter\r\n * @memberof Phaser.Structs\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @generic T\r\n */\r\nvar ProcessQueue = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function ProcessQueue ()\r\n {\r\n EventEmitter.call(this);\r\n\r\n /**\r\n * The `pending` list is a selection of items which are due to be made 'active' in the next update.\r\n *\r\n * @genericUse {T[]} - [$type]\r\n *\r\n * @name Phaser.Structs.ProcessQueue#_pending\r\n * @type {Array.<*>}\r\n * @private\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this._pending = [];\r\n\r\n /**\r\n * The `active` list is a selection of items which are considered active and should be updated.\r\n *\r\n * @genericUse {T[]} - [$type]\r\n *\r\n * @name Phaser.Structs.ProcessQueue#_active\r\n * @type {Array.<*>}\r\n * @private\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this._active = [];\r\n\r\n /**\r\n * The `destroy` list is a selection of items that were active and are awaiting being destroyed in the next update.\r\n *\r\n * @genericUse {T[]} - [$type]\r\n *\r\n * @name Phaser.Structs.ProcessQueue#_destroy\r\n * @type {Array.<*>}\r\n * @private\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this._destroy = [];\r\n\r\n /**\r\n * The total number of items awaiting processing.\r\n *\r\n * @name Phaser.Structs.ProcessQueue#_toProcess\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this._toProcess = 0;\r\n\r\n /**\r\n * If `true` only unique objects will be allowed in the queue.\r\n *\r\n * @name Phaser.Structs.ProcessQueue#checkQueue\r\n * @type {boolean}\r\n * @since 3.50.0\r\n */\r\n this.checkQueue = false;\r\n },\r\n\r\n /**\r\n * Checks the given item to see if it is already active within this Process Queue.\r\n *\r\n * @method Phaser.Structs.ProcessQueue#isActive\r\n * @since 3.60.0\r\n *\r\n * @genericUse {T} - [item]\r\n * @genericUse {Phaser.Structs.ProcessQueue.} - [$return]\r\n *\r\n * @param {*} item - The item to check.\r\n *\r\n * @return {boolean} `true` if the item is active, otherwise `false`.\r\n */\r\n isActive: function (item)\r\n {\r\n return (this._active.indexOf(item) > -1);\r\n },\r\n\r\n /**\r\n * Checks the given item to see if it is already pending addition to this Process Queue.\r\n *\r\n * @method Phaser.Structs.ProcessQueue#isPending\r\n * @since 3.60.0\r\n *\r\n * @genericUse {T} - [item]\r\n * @genericUse {Phaser.Structs.ProcessQueue.} - [$return]\r\n *\r\n * @param {*} item - The item to check.\r\n *\r\n * @return {boolean} `true` if the item is pending insertion, otherwise `false`.\r\n */\r\n isPending: function (item)\r\n {\r\n return (this._toProcess > 0 && this._pending.indexOf(item) > -1);\r\n },\r\n\r\n /**\r\n * Checks the given item to see if it is already pending destruction from this Process Queue.\r\n *\r\n * @method Phaser.Structs.ProcessQueue#isDestroying\r\n * @since 3.60.0\r\n *\r\n * @genericUse {T} - [item]\r\n * @genericUse {Phaser.Structs.ProcessQueue.} - [$return]\r\n *\r\n * @param {*} item - The item to check.\r\n *\r\n * @return {boolean} `true` if the item is pending destruction, otherwise `false`.\r\n */\r\n isDestroying: function (item)\r\n {\r\n return (this._destroy.indexOf(item) > -1);\r\n },\r\n\r\n /**\r\n * Adds a new item to the Process Queue.\r\n *\r\n * The item is added to the pending list and made active in the next update.\r\n *\r\n * @method Phaser.Structs.ProcessQueue#add\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T} - [item]\r\n * @genericUse {Phaser.Structs.ProcessQueue.} - [$return]\r\n *\r\n * @param {*} item - The item to add to the queue.\r\n *\r\n * @return {*} The item that was added.\r\n */\r\n add: function (item)\r\n {\r\n // Don't add if already active or pending, but DO add if active AND in the destroy list\r\n if (this.checkQueue && (this.isActive(item) && !this.isDestroying(item)) || this.isPending(item))\r\n {\r\n return item;\r\n }\r\n\r\n this._pending.push(item);\r\n\r\n this._toProcess++;\r\n\r\n return item;\r\n },\r\n\r\n /**\r\n * Removes an item from the Process Queue.\r\n *\r\n * The item is added to the 'destroy' list and is fully removed in the next update.\r\n *\r\n * @method Phaser.Structs.ProcessQueue#remove\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T} - [item]\r\n * @genericUse {Phaser.Structs.ProcessQueue.} - [$return]\r\n *\r\n * @param {*} item - The item to be removed from the queue.\r\n *\r\n * @return {*} The item that was removed.\r\n */\r\n remove: function (item)\r\n {\r\n // Check if it's in the _pending list\r\n if (this.isPending(item))\r\n {\r\n var pending = this._pending;\r\n\r\n var idx = pending.indexOf(item);\r\n\r\n if (idx !== -1)\r\n {\r\n // Remove directly, no need to wait for an update loop\r\n pending.splice(idx, 1);\r\n }\r\n }\r\n else if (this.isActive(item))\r\n {\r\n // Item is actively running? Queue it for deletion\r\n this._destroy.push(item);\r\n\r\n this._toProcess++;\r\n }\r\n\r\n // If neither of the above conditions pass, then the item is either already in the destroy list,\r\n // or isn't pending or active, so cannot be removed anyway\r\n\r\n return item;\r\n },\r\n\r\n /**\r\n * Removes all active items from this Process Queue.\r\n *\r\n * All the items are marked as 'pending destroy' and fully removed in the next update.\r\n *\r\n * @method Phaser.Structs.ProcessQueue#removeAll\r\n * @since 3.20.0\r\n *\r\n * @return {this} This Process Queue object.\r\n */\r\n removeAll: function ()\r\n {\r\n var list = this._active;\r\n var destroy = this._destroy;\r\n var i = list.length;\r\n\r\n while (i--)\r\n {\r\n destroy.push(list[i]);\r\n\r\n this._toProcess++;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Update this queue. First it will process any items awaiting destruction, and remove them.\r\n *\r\n * Then it will check to see if there are any items pending insertion, and move them to an\r\n * active state. Finally, it will return a list of active items for further processing.\r\n *\r\n * @method Phaser.Structs.ProcessQueue#update\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T[]} - [$return]\r\n *\r\n * @return {Array.<*>} A list of active items.\r\n */\r\n update: function ()\r\n {\r\n if (this._toProcess === 0)\r\n {\r\n // Quick bail\r\n return this._active;\r\n }\r\n\r\n var list = this._destroy;\r\n var active = this._active;\r\n var i;\r\n var item;\r\n\r\n // Clear the 'destroy' list\r\n for (i = 0; i < list.length; i++)\r\n {\r\n item = list[i];\r\n\r\n // Remove from the 'active' array\r\n var idx = active.indexOf(item);\r\n\r\n if (idx !== -1)\r\n {\r\n active.splice(idx, 1);\r\n\r\n this.emit(Events.PROCESS_QUEUE_REMOVE, item);\r\n }\r\n }\r\n\r\n list.length = 0;\r\n\r\n // Process the pending addition list\r\n // This stops callbacks and out of sync events from populating the active array mid-way during an update\r\n\r\n list = this._pending;\r\n\r\n for (i = 0; i < list.length; i++)\r\n {\r\n item = list[i];\r\n\r\n if (!this.checkQueue || (this.checkQueue && active.indexOf(item) === -1))\r\n {\r\n active.push(item);\r\n\r\n this.emit(Events.PROCESS_QUEUE_ADD, item);\r\n }\r\n }\r\n\r\n list.length = 0;\r\n\r\n this._toProcess = 0;\r\n\r\n // The owner of this queue can now safely do whatever it needs to with the active list\r\n return active;\r\n },\r\n\r\n /**\r\n * Returns the current list of active items.\r\n *\r\n * This method returns a reference to the active list array, not a copy of it.\r\n * Therefore, be careful to not modify this array outside of the ProcessQueue.\r\n *\r\n * @method Phaser.Structs.ProcessQueue#getActive\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T[]} - [$return]\r\n *\r\n * @return {Array.<*>} A list of active items.\r\n */\r\n getActive: function ()\r\n {\r\n return this._active;\r\n },\r\n\r\n /**\r\n * The number of entries in the active list.\r\n *\r\n * @name Phaser.Structs.ProcessQueue#length\r\n * @type {number}\r\n * @readonly\r\n * @since 3.20.0\r\n */\r\n length: {\r\n\r\n get: function ()\r\n {\r\n return this._active.length;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Immediately destroys this process queue, clearing all of its internal arrays and resetting the process totals.\r\n *\r\n * @method Phaser.Structs.ProcessQueue#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this._toProcess = 0;\r\n\r\n this._pending = [];\r\n this._active = [];\r\n this._destroy = [];\r\n }\r\n\r\n});\r\n\r\nmodule.exports = ProcessQueue;\r\n\n\n/***/ }),\n\n/***/ 59542:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Vladimir Agafonkin\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar quickselect = __webpack_require__(43886);\r\n\r\n/**\r\n * @classdesc\r\n * RBush is a high-performance JavaScript library for 2D spatial indexing of points and rectangles.\r\n * It's based on an optimized R-tree data structure with bulk insertion support.\r\n *\r\n * Spatial index is a special data structure for points and rectangles that allows you to perform queries like\r\n * \"all items within this bounding box\" very efficiently (e.g. hundreds of times faster than looping over all items).\r\n *\r\n * This version of RBush uses a fixed min/max accessor structure of `[ '.left', '.top', '.right', '.bottom' ]`.\r\n * This is to avoid the eval like function creation that the original library used, which caused CSP policy violations.\r\n *\r\n * rbush is forked from https://github.com/mourner/rbush by Vladimir Agafonkin\r\n *\r\n * @class RTree\r\n * @memberof Phaser.Structs\r\n * @constructor\r\n * @since 3.0.0\r\n */\r\n\r\nfunction rbush (maxEntries)\r\n{\r\n var format = [ '.left', '.top', '.right', '.bottom' ];\r\n\r\n if (!(this instanceof rbush)) return new rbush(maxEntries, format);\r\n\r\n // max entries in a node is 9 by default; min node fill is 40% for best performance\r\n this._maxEntries = Math.max(4, maxEntries || 9);\r\n this._minEntries = Math.max(2, Math.ceil(this._maxEntries * 0.4));\r\n\r\n this.clear();\r\n}\r\n\r\nrbush.prototype = {\r\n\r\n all: function ()\r\n {\r\n return this._all(this.data, []);\r\n },\r\n\r\n search: function (bbox)\r\n {\r\n var node = this.data,\r\n result = [],\r\n toBBox = this.toBBox;\r\n\r\n if (!intersects(bbox, node)) return result;\r\n\r\n var nodesToSearch = [],\r\n i, len, child, childBBox;\r\n\r\n while (node) {\r\n for (i = 0, len = node.children.length; i < len; i++) {\r\n\r\n child = node.children[i];\r\n childBBox = node.leaf ? toBBox(child) : child;\r\n\r\n if (intersects(bbox, childBBox)) {\r\n if (node.leaf) result.push(child);\r\n else if (contains(bbox, childBBox)) this._all(child, result);\r\n else nodesToSearch.push(child);\r\n }\r\n }\r\n node = nodesToSearch.pop();\r\n }\r\n\r\n return result;\r\n },\r\n\r\n collides: function (bbox)\r\n {\r\n var node = this.data,\r\n toBBox = this.toBBox;\r\n\r\n if (!intersects(bbox, node)) return false;\r\n\r\n var nodesToSearch = [],\r\n i, len, child, childBBox;\r\n\r\n while (node) {\r\n for (i = 0, len = node.children.length; i < len; i++) {\r\n\r\n child = node.children[i];\r\n childBBox = node.leaf ? toBBox(child) : child;\r\n\r\n if (intersects(bbox, childBBox)) {\r\n if (node.leaf || contains(bbox, childBBox)) return true;\r\n nodesToSearch.push(child);\r\n }\r\n }\r\n node = nodesToSearch.pop();\r\n }\r\n\r\n return false;\r\n },\r\n\r\n load: function (data)\r\n {\r\n if (!(data && data.length)) return this;\r\n\r\n if (data.length < this._minEntries) {\r\n for (var i = 0, len = data.length; i < len; i++) {\r\n this.insert(data[i]);\r\n }\r\n return this;\r\n }\r\n\r\n // recursively build the tree with the given data from scratch using OMT algorithm\r\n var node = this._build(data.slice(), 0, data.length - 1, 0);\r\n\r\n if (!this.data.children.length) {\r\n // save as is if tree is empty\r\n this.data = node;\r\n\r\n } else if (this.data.height === node.height) {\r\n // split root if trees have the same height\r\n this._splitRoot(this.data, node);\r\n\r\n } else {\r\n if (this.data.height < node.height) {\r\n // swap trees if inserted one is bigger\r\n var tmpNode = this.data;\r\n this.data = node;\r\n node = tmpNode;\r\n }\r\n\r\n // insert the small tree into the large tree at appropriate level\r\n this._insert(node, this.data.height - node.height - 1, true);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n insert: function (item)\r\n {\r\n if (item) this._insert(item, this.data.height - 1);\r\n return this;\r\n },\r\n\r\n clear: function ()\r\n {\r\n this.data = createNode([]);\r\n return this;\r\n },\r\n\r\n remove: function (item, equalsFn)\r\n {\r\n if (!item) return this;\r\n\r\n var node = this.data,\r\n bbox = this.toBBox(item),\r\n path = [],\r\n indexes = [],\r\n i, parent, index, goingUp;\r\n\r\n // depth-first iterative tree traversal\r\n while (node || path.length) {\r\n\r\n if (!node) { // go up\r\n node = path.pop();\r\n parent = path[path.length - 1];\r\n i = indexes.pop();\r\n goingUp = true;\r\n }\r\n\r\n if (node.leaf) { // check current node\r\n index = findItem(item, node.children, equalsFn);\r\n\r\n if (index !== -1) {\r\n // item found, remove the item and condense tree upwards\r\n node.children.splice(index, 1);\r\n path.push(node);\r\n this._condense(path);\r\n return this;\r\n }\r\n }\r\n\r\n if (!goingUp && !node.leaf && contains(node, bbox)) { // go down\r\n path.push(node);\r\n indexes.push(i);\r\n i = 0;\r\n parent = node;\r\n node = node.children[0];\r\n\r\n } else if (parent) { // go right\r\n i++;\r\n node = parent.children[i];\r\n goingUp = false;\r\n\r\n } else node = null; // nothing found\r\n }\r\n\r\n return this;\r\n },\r\n\r\n toBBox: function (item) { return item; },\r\n\r\n compareMinX: compareNodeMinX,\r\n compareMinY: compareNodeMinY,\r\n\r\n toJSON: function () { return this.data; },\r\n\r\n fromJSON: function (data)\r\n {\r\n this.data = data;\r\n return this;\r\n },\r\n\r\n _all: function (node, result)\r\n {\r\n var nodesToSearch = [];\r\n while (node) {\r\n if (node.leaf) result.push.apply(result, node.children);\r\n else nodesToSearch.push.apply(nodesToSearch, node.children);\r\n\r\n node = nodesToSearch.pop();\r\n }\r\n return result;\r\n },\r\n\r\n _build: function (items, left, right, height)\r\n {\r\n var N = right - left + 1,\r\n M = this._maxEntries,\r\n node;\r\n\r\n if (N <= M) {\r\n // reached leaf level; return leaf\r\n node = createNode(items.slice(left, right + 1));\r\n calcBBox(node, this.toBBox);\r\n return node;\r\n }\r\n\r\n if (!height) {\r\n // target height of the bulk-loaded tree\r\n height = Math.ceil(Math.log(N) / Math.log(M));\r\n\r\n // target number of root entries to maximize storage utilization\r\n M = Math.ceil(N / Math.pow(M, height - 1));\r\n }\r\n\r\n node = createNode([]);\r\n node.leaf = false;\r\n node.height = height;\r\n\r\n // split the items into M mostly square tiles\r\n\r\n var N2 = Math.ceil(N / M),\r\n N1 = N2 * Math.ceil(Math.sqrt(M)),\r\n i, j, right2, right3;\r\n\r\n multiSelect(items, left, right, N1, this.compareMinX);\r\n\r\n for (i = left; i <= right; i += N1) {\r\n\r\n right2 = Math.min(i + N1 - 1, right);\r\n\r\n multiSelect(items, i, right2, N2, this.compareMinY);\r\n\r\n for (j = i; j <= right2; j += N2) {\r\n\r\n right3 = Math.min(j + N2 - 1, right2);\r\n\r\n // pack each entry recursively\r\n node.children.push(this._build(items, j, right3, height - 1));\r\n }\r\n }\r\n\r\n calcBBox(node, this.toBBox);\r\n\r\n return node;\r\n },\r\n\r\n _chooseSubtree: function (bbox, node, level, path)\r\n {\r\n var i, len, child, targetNode, area, enlargement, minArea, minEnlargement;\r\n\r\n while (true) {\r\n path.push(node);\r\n\r\n if (node.leaf || path.length - 1 === level) break;\r\n\r\n minArea = minEnlargement = Infinity;\r\n\r\n for (i = 0, len = node.children.length; i < len; i++) {\r\n child = node.children[i];\r\n area = bboxArea(child);\r\n enlargement = enlargedArea(bbox, child) - area;\r\n\r\n // choose entry with the least area enlargement\r\n if (enlargement < minEnlargement) {\r\n minEnlargement = enlargement;\r\n minArea = area < minArea ? area : minArea;\r\n targetNode = child;\r\n\r\n } else if (enlargement === minEnlargement) {\r\n // otherwise choose one with the smallest area\r\n if (area < minArea) {\r\n minArea = area;\r\n targetNode = child;\r\n }\r\n }\r\n }\r\n\r\n node = targetNode || node.children[0];\r\n }\r\n\r\n return node;\r\n },\r\n\r\n _insert: function (item, level, isNode)\r\n {\r\n var toBBox = this.toBBox,\r\n bbox = isNode ? item : toBBox(item),\r\n insertPath = [];\r\n\r\n // find the best node for accommodating the item, saving all nodes along the path too\r\n var node = this._chooseSubtree(bbox, this.data, level, insertPath);\r\n\r\n // put the item into the node\r\n node.children.push(item);\r\n extend(node, bbox);\r\n\r\n // split on node overflow; propagate upwards if necessary\r\n while (level >= 0) {\r\n if (insertPath[level].children.length > this._maxEntries) {\r\n this._split(insertPath, level);\r\n level--;\r\n } else break;\r\n }\r\n\r\n // adjust bboxes along the insertion path\r\n this._adjustParentBBoxes(bbox, insertPath, level);\r\n },\r\n\r\n // split overflowed node into two\r\n _split: function (insertPath, level)\r\n {\r\n var node = insertPath[level],\r\n M = node.children.length,\r\n m = this._minEntries;\r\n\r\n this._chooseSplitAxis(node, m, M);\r\n\r\n var splitIndex = this._chooseSplitIndex(node, m, M);\r\n\r\n var newNode = createNode(node.children.splice(splitIndex, node.children.length - splitIndex));\r\n newNode.height = node.height;\r\n newNode.leaf = node.leaf;\r\n\r\n calcBBox(node, this.toBBox);\r\n calcBBox(newNode, this.toBBox);\r\n\r\n if (level) insertPath[level - 1].children.push(newNode);\r\n else this._splitRoot(node, newNode);\r\n },\r\n\r\n _splitRoot: function (node, newNode)\r\n {\r\n // split root node\r\n this.data = createNode([node, newNode]);\r\n this.data.height = node.height + 1;\r\n this.data.leaf = false;\r\n calcBBox(this.data, this.toBBox);\r\n },\r\n\r\n _chooseSplitIndex: function (node, m, M)\r\n {\r\n var i, bbox1, bbox2, overlap, area, minOverlap, minArea, index;\r\n\r\n minOverlap = minArea = Infinity;\r\n\r\n for (i = m; i <= M - m; i++) {\r\n bbox1 = distBBox(node, 0, i, this.toBBox);\r\n bbox2 = distBBox(node, i, M, this.toBBox);\r\n\r\n overlap = intersectionArea(bbox1, bbox2);\r\n area = bboxArea(bbox1) + bboxArea(bbox2);\r\n\r\n // choose distribution with minimum overlap\r\n if (overlap < minOverlap) {\r\n minOverlap = overlap;\r\n index = i;\r\n\r\n minArea = area < minArea ? area : minArea;\r\n\r\n } else if (overlap === minOverlap) {\r\n // otherwise choose distribution with minimum area\r\n if (area < minArea) {\r\n minArea = area;\r\n index = i;\r\n }\r\n }\r\n }\r\n\r\n return index;\r\n },\r\n\r\n // sorts node children by the best axis for split\r\n _chooseSplitAxis: function (node, m, M)\r\n {\r\n var compareMinX = node.leaf ? this.compareMinX : compareNodeMinX,\r\n compareMinY = node.leaf ? this.compareMinY : compareNodeMinY,\r\n xMargin = this._allDistMargin(node, m, M, compareMinX),\r\n yMargin = this._allDistMargin(node, m, M, compareMinY);\r\n\r\n // if total distributions margin value is minimal for x, sort by minX,\r\n // otherwise it's already sorted by minY\r\n if (xMargin < yMargin) node.children.sort(compareMinX);\r\n },\r\n\r\n // total margin of all possible split distributions where each node is at least m full\r\n _allDistMargin: function (node, m, M, compare)\r\n {\r\n node.children.sort(compare);\r\n\r\n var toBBox = this.toBBox,\r\n leftBBox = distBBox(node, 0, m, toBBox),\r\n rightBBox = distBBox(node, M - m, M, toBBox),\r\n margin = bboxMargin(leftBBox) + bboxMargin(rightBBox),\r\n i, child;\r\n\r\n for (i = m; i < M - m; i++) {\r\n child = node.children[i];\r\n extend(leftBBox, node.leaf ? toBBox(child) : child);\r\n margin += bboxMargin(leftBBox);\r\n }\r\n\r\n for (i = M - m - 1; i >= m; i--) {\r\n child = node.children[i];\r\n extend(rightBBox, node.leaf ? toBBox(child) : child);\r\n margin += bboxMargin(rightBBox);\r\n }\r\n\r\n return margin;\r\n },\r\n\r\n _adjustParentBBoxes: function (bbox, path, level)\r\n {\r\n // adjust bboxes along the given tree path\r\n for (var i = level; i >= 0; i--) {\r\n extend(path[i], bbox);\r\n }\r\n },\r\n\r\n _condense: function (path)\r\n {\r\n // go through the path, removing empty nodes and updating bboxes\r\n for (var i = path.length - 1, siblings; i >= 0; i--) {\r\n if (path[i].children.length === 0) {\r\n if (i > 0) {\r\n siblings = path[i - 1].children;\r\n siblings.splice(siblings.indexOf(path[i]), 1);\r\n\r\n } else this.clear();\r\n\r\n } else calcBBox(path[i], this.toBBox);\r\n }\r\n },\r\n\r\n compareMinX: function (a, b)\r\n {\r\n return a.left - b.left;\r\n },\r\n\r\n compareMinY: function (a, b)\r\n {\r\n return a.top - b.top;\r\n },\r\n\r\n toBBox: function (a)\r\n {\r\n return {\r\n minX: a.left,\r\n minY: a.top,\r\n maxX: a.right,\r\n maxY: a.bottom\r\n };\r\n }\r\n};\r\n\r\nfunction findItem (item, items, equalsFn)\r\n{\r\n if (!equalsFn) return items.indexOf(item);\r\n\r\n for (var i = 0; i < items.length; i++) {\r\n if (equalsFn(item, items[i])) return i;\r\n }\r\n return -1;\r\n}\r\n\r\n// calculate node's bbox from bboxes of its children\r\nfunction calcBBox (node, toBBox)\r\n{\r\n distBBox(node, 0, node.children.length, toBBox, node);\r\n}\r\n\r\n// min bounding rectangle of node children from k to p-1\r\nfunction distBBox (node, k, p, toBBox, destNode)\r\n{\r\n if (!destNode) destNode = createNode(null);\r\n destNode.minX = Infinity;\r\n destNode.minY = Infinity;\r\n destNode.maxX = -Infinity;\r\n destNode.maxY = -Infinity;\r\n\r\n for (var i = k, child; i < p; i++) {\r\n child = node.children[i];\r\n extend(destNode, node.leaf ? toBBox(child) : child);\r\n }\r\n\r\n return destNode;\r\n}\r\n\r\nfunction extend (a, b)\r\n{\r\n a.minX = Math.min(a.minX, b.minX);\r\n a.minY = Math.min(a.minY, b.minY);\r\n a.maxX = Math.max(a.maxX, b.maxX);\r\n a.maxY = Math.max(a.maxY, b.maxY);\r\n return a;\r\n}\r\n\r\nfunction compareNodeMinX (a, b) { return a.minX - b.minX; }\r\nfunction compareNodeMinY (a, b) { return a.minY - b.minY; }\r\n\r\nfunction bboxArea (a) { return (a.maxX - a.minX) * (a.maxY - a.minY); }\r\nfunction bboxMargin (a) { return (a.maxX - a.minX) + (a.maxY - a.minY); }\r\n\r\nfunction enlargedArea (a, b)\r\n{\r\n return (Math.max(b.maxX, a.maxX) - Math.min(b.minX, a.minX)) *\r\n (Math.max(b.maxY, a.maxY) - Math.min(b.minY, a.minY));\r\n}\r\n\r\nfunction intersectionArea (a, b)\r\n{\r\n var minX = Math.max(a.minX, b.minX),\r\n minY = Math.max(a.minY, b.minY),\r\n maxX = Math.min(a.maxX, b.maxX),\r\n maxY = Math.min(a.maxY, b.maxY);\r\n\r\n return Math.max(0, maxX - minX) *\r\n Math.max(0, maxY - minY);\r\n}\r\n\r\nfunction contains (a, b)\r\n{\r\n return a.minX <= b.minX &&\r\n a.minY <= b.minY &&\r\n b.maxX <= a.maxX &&\r\n b.maxY <= a.maxY;\r\n}\r\n\r\nfunction intersects (a, b)\r\n{\r\n return b.minX <= a.maxX &&\r\n b.minY <= a.maxY &&\r\n b.maxX >= a.minX &&\r\n b.maxY >= a.minY;\r\n}\r\n\r\nfunction createNode (children)\r\n{\r\n return {\r\n children: children,\r\n height: 1,\r\n leaf: true,\r\n minX: Infinity,\r\n minY: Infinity,\r\n maxX: -Infinity,\r\n maxY: -Infinity\r\n };\r\n}\r\n\r\n// sort an array so that items come in groups of n unsorted items, with groups sorted between each other;\r\n// combines selection algorithm with binary divide & conquer approach\r\n\r\nfunction multiSelect (arr, left, right, n, compare)\r\n{\r\n var stack = [left, right],\r\n mid;\r\n\r\n while (stack.length)\r\n {\r\n right = stack.pop();\r\n left = stack.pop();\r\n\r\n if (right - left <= n) continue;\r\n\r\n mid = left + Math.ceil((right - left) / n / 2) * n;\r\n quickselect(arr, mid, left, right, compare);\r\n\r\n stack.push(left, mid, mid, right);\r\n }\r\n}\r\n\r\nmodule.exports = rbush;\r\n\n\n/***/ }),\n\n/***/ 35072:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n/**\r\n * @callback EachSetCallback\r\n *\r\n * @param {E} entry - The Set entry.\r\n * @param {number} index - The index of the entry within the Set.\r\n *\r\n * @return {?boolean} The callback result.\r\n */\r\n\r\n/**\r\n * @classdesc\r\n * A Set is a collection of unique elements.\r\n *\r\n * @class Set\r\n * @memberof Phaser.Structs\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @generic T\r\n * @genericUse {T[]} - [elements]\r\n *\r\n * @param {Array.<*>} [elements] - An optional array of elements to insert into this Set.\r\n */\r\nvar Set = new Class({\r\n\r\n initialize:\r\n\r\n function Set (elements)\r\n {\r\n /**\r\n * The entries of this Set. Stored internally as an array.\r\n *\r\n * @genericUse {T[]} - [$type]\r\n *\r\n * @name Phaser.Structs.Set#entries\r\n * @type {Array.<*>}\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this.entries = [];\r\n\r\n if (Array.isArray(elements))\r\n {\r\n for (var i = 0; i < elements.length; i++)\r\n {\r\n this.set(elements[i]);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Inserts the provided value into this Set. If the value is already contained in this Set this method will have no effect.\r\n *\r\n * @method Phaser.Structs.Set#set\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T} - [value]\r\n * @genericUse {Phaser.Structs.Set.} - [$return]\r\n *\r\n * @param {*} value - The value to insert into this Set.\r\n *\r\n * @return {Phaser.Structs.Set} This Set object.\r\n */\r\n set: function (value)\r\n {\r\n if (this.entries.indexOf(value) === -1)\r\n {\r\n this.entries.push(value);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Get an element of this Set which has a property of the specified name, if that property is equal to the specified value.\r\n * If no elements of this Set satisfy the condition then this method will return `null`.\r\n *\r\n * @method Phaser.Structs.Set#get\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T} - [value,$return]\r\n *\r\n * @param {string} property - The property name to check on the elements of this Set.\r\n * @param {*} value - The value to check for.\r\n *\r\n * @return {*} The first element of this Set that meets the required condition, or `null` if this Set contains no elements that meet the condition.\r\n */\r\n get: function (property, value)\r\n {\r\n for (var i = 0; i < this.entries.length; i++)\r\n {\r\n var entry = this.entries[i];\r\n\r\n if (entry[property] === value)\r\n {\r\n return entry;\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Returns an array containing all the values in this Set.\r\n *\r\n * @method Phaser.Structs.Set#getArray\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T[]} - [$return]\r\n *\r\n * @return {Array.<*>} An array containing all the values in this Set.\r\n */\r\n getArray: function ()\r\n {\r\n return this.entries.slice(0);\r\n },\r\n\r\n /**\r\n * Removes the given value from this Set if this Set contains that value.\r\n *\r\n * @method Phaser.Structs.Set#delete\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T} - [value]\r\n * @genericUse {Phaser.Structs.Set.} - [$return]\r\n *\r\n * @param {*} value - The value to remove from the Set.\r\n *\r\n * @return {Phaser.Structs.Set} This Set object.\r\n */\r\n delete: function (value)\r\n {\r\n var index = this.entries.indexOf(value);\r\n\r\n if (index > -1)\r\n {\r\n this.entries.splice(index, 1);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Dumps the contents of this Set to the console via `console.group`.\r\n *\r\n * @method Phaser.Structs.Set#dump\r\n * @since 3.0.0\r\n */\r\n dump: function ()\r\n {\r\n // eslint-disable-next-line no-console\r\n console.group('Set');\r\n\r\n for (var i = 0; i < this.entries.length; i++)\r\n {\r\n var entry = this.entries[i];\r\n console.log(entry);\r\n }\r\n\r\n // eslint-disable-next-line no-console\r\n console.groupEnd();\r\n },\r\n\r\n /**\r\n * Passes each value in this Set to the given callback.\r\n * Use this function when you know this Set will be modified during the iteration, otherwise use `iterate`.\r\n *\r\n * @method Phaser.Structs.Set#each\r\n * @since 3.0.0\r\n *\r\n * @genericUse {EachSetCallback.} - [callback]\r\n * @genericUse {Phaser.Structs.Set.} - [$return]\r\n *\r\n * @param {EachSetCallback} callback - The callback to be invoked and passed each value this Set contains.\r\n * @param {*} [callbackScope] - The scope of the callback.\r\n *\r\n * @return {Phaser.Structs.Set} This Set object.\r\n */\r\n each: function (callback, callbackScope)\r\n {\r\n var i;\r\n var temp = this.entries.slice();\r\n var len = temp.length;\r\n\r\n if (callbackScope)\r\n {\r\n for (i = 0; i < len; i++)\r\n {\r\n if (callback.call(callbackScope, temp[i], i) === false)\r\n {\r\n break;\r\n }\r\n }\r\n }\r\n else\r\n {\r\n for (i = 0; i < len; i++)\r\n {\r\n if (callback(temp[i], i) === false)\r\n {\r\n break;\r\n }\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Passes each value in this Set to the given callback.\r\n *\r\n * For when you absolutely know this Set won't be modified during the iteration.\r\n *\r\n * The callback must return a boolean. If it returns `false` then it will abort\r\n * the Set iteration immediately. If it returns `true`, it will carry on\r\n * iterating the next child in the Set.\r\n *\r\n * @method Phaser.Structs.Set#iterate\r\n * @since 3.0.0\r\n *\r\n * @genericUse {EachSetCallback.} - [callback]\r\n * @genericUse {Phaser.Structs.Set.} - [$return]\r\n *\r\n * @param {EachSetCallback} callback - The callback to be invoked and passed each value this Set contains.\r\n * @param {*} [callbackScope] - The scope of the callback.\r\n *\r\n * @return {Phaser.Structs.Set} This Set object.\r\n */\r\n iterate: function (callback, callbackScope)\r\n {\r\n var i;\r\n var len = this.entries.length;\r\n\r\n if (callbackScope)\r\n {\r\n for (i = 0; i < len; i++)\r\n {\r\n if (callback.call(callbackScope, this.entries[i], i) === false)\r\n {\r\n break;\r\n }\r\n }\r\n }\r\n else\r\n {\r\n for (i = 0; i < len; i++)\r\n {\r\n if (callback(this.entries[i], i) === false)\r\n {\r\n break;\r\n }\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Goes through each entry in this Set and invokes the given function on them, passing in the arguments.\r\n *\r\n * @method Phaser.Structs.Set#iterateLocal\r\n * @since 3.0.0\r\n *\r\n * @genericUse {Phaser.Structs.Set.} - [$return]\r\n *\r\n * @param {string} callbackKey - The key of the function to be invoked on each Set entry.\r\n * @param {...*} [args] - Additional arguments that will be passed to the callback, after the child.\r\n *\r\n * @return {Phaser.Structs.Set} This Set object.\r\n */\r\n iterateLocal: function (callbackKey)\r\n {\r\n var i;\r\n var args = [];\r\n\r\n for (i = 1; i < arguments.length; i++)\r\n {\r\n args.push(arguments[i]);\r\n }\r\n\r\n var len = this.entries.length;\r\n\r\n for (i = 0; i < len; i++)\r\n {\r\n var entry = this.entries[i];\r\n\r\n entry[callbackKey].apply(entry, args);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Clears this Set so that it no longer contains any values.\r\n *\r\n * @method Phaser.Structs.Set#clear\r\n * @since 3.0.0\r\n *\r\n * @genericUse {Phaser.Structs.Set.} - [$return]\r\n *\r\n * @return {Phaser.Structs.Set} This Set object.\r\n */\r\n clear: function ()\r\n {\r\n this.entries.length = 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns `true` if this Set contains the given value, otherwise returns `false`.\r\n *\r\n * @method Phaser.Structs.Set#contains\r\n * @since 3.0.0\r\n *\r\n * @genericUse {T} - [value]\r\n *\r\n * @param {*} value - The value to check for in this Set.\r\n *\r\n * @return {boolean} `true` if the given value was found in this Set, otherwise `false`.\r\n */\r\n contains: function (value)\r\n {\r\n return (this.entries.indexOf(value) > -1);\r\n },\r\n\r\n /**\r\n * Returns a new Set containing all values that are either in this Set or in the Set provided as an argument.\r\n *\r\n * @method Phaser.Structs.Set#union\r\n * @since 3.0.0\r\n *\r\n * @genericUse {Phaser.Structs.Set.} - [set,$return]\r\n *\r\n * @param {Phaser.Structs.Set} set - The Set to perform the union with.\r\n *\r\n * @return {Phaser.Structs.Set} A new Set containing all the values in this Set and the Set provided as an argument.\r\n */\r\n union: function (set)\r\n {\r\n var newSet = new Set();\r\n\r\n set.entries.forEach(function (value)\r\n {\r\n newSet.set(value);\r\n });\r\n\r\n this.entries.forEach(function (value)\r\n {\r\n newSet.set(value);\r\n });\r\n\r\n return newSet;\r\n },\r\n\r\n /**\r\n * Returns a new Set that contains only the values which are in this Set and that are also in the given Set.\r\n *\r\n * @method Phaser.Structs.Set#intersect\r\n * @since 3.0.0\r\n *\r\n * @genericUse {Phaser.Structs.Set.} - [set,$return]\r\n *\r\n * @param {Phaser.Structs.Set} set - The Set to intersect this set with.\r\n *\r\n * @return {Phaser.Structs.Set} The result of the intersection, as a new Set.\r\n */\r\n intersect: function (set)\r\n {\r\n var newSet = new Set();\r\n\r\n this.entries.forEach(function (value)\r\n {\r\n if (set.contains(value))\r\n {\r\n newSet.set(value);\r\n }\r\n });\r\n\r\n return newSet;\r\n },\r\n\r\n /**\r\n * Returns a new Set containing all the values in this Set which are *not* also in the given Set.\r\n *\r\n * @method Phaser.Structs.Set#difference\r\n * @since 3.0.0\r\n *\r\n * @genericUse {Phaser.Structs.Set.} - [set,$return]\r\n *\r\n * @param {Phaser.Structs.Set} set - The Set to perform the difference with.\r\n *\r\n * @return {Phaser.Structs.Set} A new Set containing all the values in this Set that are not also in the Set provided as an argument to this method.\r\n */\r\n difference: function (set)\r\n {\r\n var newSet = new Set();\r\n\r\n this.entries.forEach(function (value)\r\n {\r\n if (!set.contains(value))\r\n {\r\n newSet.set(value);\r\n }\r\n });\r\n\r\n return newSet;\r\n },\r\n\r\n /**\r\n * The size of this Set. This is the number of entries within it.\r\n * Changing the size will truncate the Set if the given value is smaller than the current size.\r\n * Increasing the size larger than the current size has no effect.\r\n *\r\n * @name Phaser.Structs.Set#size\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n size: {\r\n\r\n get: function ()\r\n {\r\n return this.entries.length;\r\n },\r\n\r\n set: function (value)\r\n {\r\n if (value < this.entries.length)\r\n {\r\n return this.entries.length = value;\r\n }\r\n else\r\n {\r\n return this.entries.length;\r\n }\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Set;\r\n\n\n/***/ }),\n\n/***/ 86555:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Clamp = __webpack_require__(45319);\r\nvar Class = __webpack_require__(83419);\r\nvar SnapFloor = __webpack_require__(56583);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * The Size component allows you to set `width` and `height` properties and define the relationship between them.\r\n *\r\n * The component can automatically maintain the aspect ratios between the two values, and clamp them\r\n * to a defined min-max range. You can also control the dominant axis. When dimensions are given to the Size component\r\n * that would cause it to exceed its min-max range, the dimensions are adjusted based on the dominant axis.\r\n *\r\n * @class Size\r\n * @memberof Phaser.Structs\r\n * @constructor\r\n * @since 3.16.0\r\n *\r\n * @param {number} [width=0] - The width of the Size component.\r\n * @param {number} [height=width] - The height of the Size component. If not given, it will use the `width`.\r\n * @param {number} [aspectMode=0] - The aspect mode of the Size component. Defaults to 0, no mode.\r\n * @param {any} [parent=null] - The parent of this Size component. Can be any object with public `width` and `height` properties. Dimensions are clamped to keep them within the parent bounds where possible.\r\n */\r\nvar Size = new Class({\r\n\r\n initialize:\r\n\r\n function Size (width, height, aspectMode, parent)\r\n {\r\n if (width === undefined) { width = 0; }\r\n if (height === undefined) { height = width; }\r\n if (aspectMode === undefined) { aspectMode = 0; }\r\n if (parent === undefined) { parent = null; }\r\n\r\n /**\r\n * Internal width value.\r\n *\r\n * @name Phaser.Structs.Size#_width\r\n * @type {number}\r\n * @private\r\n * @since 3.16.0\r\n */\r\n this._width = width;\r\n\r\n /**\r\n * Internal height value.\r\n *\r\n * @name Phaser.Structs.Size#_height\r\n * @type {number}\r\n * @private\r\n * @since 3.16.0\r\n */\r\n this._height = height;\r\n\r\n /**\r\n * Internal parent reference.\r\n *\r\n * @name Phaser.Structs.Size#_parent\r\n * @type {any}\r\n * @private\r\n * @since 3.16.0\r\n */\r\n this._parent = parent;\r\n\r\n /**\r\n * The aspect mode this Size component will use when calculating its dimensions.\r\n * This property is read-only. To change it use the `setAspectMode` method.\r\n *\r\n * @name Phaser.Structs.Size#aspectMode\r\n * @type {number}\r\n * @readonly\r\n * @since 3.16.0\r\n */\r\n this.aspectMode = aspectMode;\r\n\r\n /**\r\n * The proportional relationship between the width and height.\r\n *\r\n * This property is read-only and is updated automatically when either the `width` or `height` properties are changed,\r\n * depending on the aspect mode.\r\n *\r\n * @name Phaser.Structs.Size#aspectRatio\r\n * @type {number}\r\n * @readonly\r\n * @since 3.16.0\r\n */\r\n this.aspectRatio = (height === 0) ? 1 : width / height;\r\n\r\n /**\r\n * The minimum allowed width.\r\n * Cannot be less than zero.\r\n * This value is read-only. To change it see the `setMin` method.\r\n *\r\n * @name Phaser.Structs.Size#minWidth\r\n * @type {number}\r\n * @readonly\r\n * @since 3.16.0\r\n */\r\n this.minWidth = 0;\r\n\r\n /**\r\n * The minimum allowed height.\r\n * Cannot be less than zero.\r\n * This value is read-only. To change it see the `setMin` method.\r\n *\r\n * @name Phaser.Structs.Size#minHeight\r\n * @type {number}\r\n * @readonly\r\n * @since 3.16.0\r\n */\r\n this.minHeight = 0;\r\n\r\n /**\r\n * The maximum allowed width.\r\n * This value is read-only. To change it see the `setMax` method.\r\n *\r\n * @name Phaser.Structs.Size#maxWidth\r\n * @type {number}\r\n * @readonly\r\n * @since 3.16.0\r\n */\r\n this.maxWidth = Number.MAX_VALUE;\r\n\r\n /**\r\n * The maximum allowed height.\r\n * This value is read-only. To change it see the `setMax` method.\r\n *\r\n * @name Phaser.Structs.Size#maxHeight\r\n * @type {number}\r\n * @readonly\r\n * @since 3.16.0\r\n */\r\n this.maxHeight = Number.MAX_VALUE;\r\n\r\n /**\r\n * A Vector2 containing the horizontal and vertical snap values, which the width and height are snapped to during resizing.\r\n *\r\n * By default this is disabled.\r\n *\r\n * This property is read-only. To change it see the `setSnap` method.\r\n *\r\n * @name Phaser.Structs.Size#snapTo\r\n * @type {Phaser.Math.Vector2}\r\n * @readonly\r\n * @since 3.16.0\r\n */\r\n this.snapTo = new Vector2();\r\n },\r\n\r\n /**\r\n * Sets the aspect mode of this Size component.\r\n *\r\n * The aspect mode controls what happens when you modify the `width` or `height` properties, or call `setSize`.\r\n *\r\n * It can be a number from 0 to 4, or a Size constant:\r\n *\r\n * 0. NONE = Do not make the size fit the aspect ratio. Change the ratio when the size changes.\r\n * 1. WIDTH_CONTROLS_HEIGHT = The height is automatically adjusted based on the width.\r\n * 2. HEIGHT_CONTROLS_WIDTH = The width is automatically adjusted based on the height.\r\n * 3. FIT = The width and height are automatically adjusted to fit inside the given target area, while keeping the aspect ratio. Depending on the aspect ratio there may be some space inside the area which is not covered.\r\n * 4. ENVELOP = The width and height are automatically adjusted to make the size cover the entire target area while keeping the aspect ratio. This may extend further out than the target size.\r\n *\r\n * Calling this method automatically recalculates the `width` and the `height`, if required.\r\n *\r\n * @method Phaser.Structs.Size#setAspectMode\r\n * @since 3.16.0\r\n *\r\n * @param {number} [value=0] - The aspect mode value.\r\n *\r\n * @return {this} This Size component instance.\r\n */\r\n setAspectMode: function (value)\r\n {\r\n if (value === undefined) { value = 0; }\r\n\r\n this.aspectMode = value;\r\n\r\n return this.setSize(this._width, this._height);\r\n },\r\n\r\n /**\r\n * By setting snap values, when this Size component is modified its dimensions will automatically\r\n * be snapped to the nearest grid slice, using floor. For example, if you have snap value of 16,\r\n * and the width changes to 68, then it will snap down to 64 (the closest multiple of 16 when floored)\r\n *\r\n * Note that snapping takes place before adjustments by the parent, or the min / max settings. If these\r\n * values are not multiples of the given snap values, then this can result in un-snapped dimensions.\r\n *\r\n * Call this method with no arguments to reset the snap values.\r\n *\r\n * Calling this method automatically recalculates the `width` and the `height`, if required.\r\n *\r\n * @method Phaser.Structs.Size#setSnap\r\n * @since 3.16.0\r\n *\r\n * @param {number} [snapWidth=0] - The amount to snap the width to. If you don't want to snap the width, pass a value of zero.\r\n * @param {number} [snapHeight=snapWidth] - The amount to snap the height to. If not provided it will use the `snapWidth` value. If you don't want to snap the height, pass a value of zero.\r\n *\r\n * @return {this} This Size component instance.\r\n */\r\n setSnap: function (snapWidth, snapHeight)\r\n {\r\n if (snapWidth === undefined) { snapWidth = 0; }\r\n if (snapHeight === undefined) { snapHeight = snapWidth; }\r\n\r\n this.snapTo.set(snapWidth, snapHeight);\r\n\r\n return this.setSize(this._width, this._height);\r\n },\r\n\r\n /**\r\n * Sets, or clears, the parent of this Size component.\r\n *\r\n * To clear the parent call this method with no arguments.\r\n *\r\n * The parent influences the maximum extents to which this Size component can expand,\r\n * based on the aspect mode:\r\n *\r\n * NONE - The parent clamps both the width and height.\r\n * WIDTH_CONTROLS_HEIGHT - The parent clamps just the width.\r\n * HEIGHT_CONTROLS_WIDTH - The parent clamps just the height.\r\n * FIT - The parent clamps whichever axis is required to ensure the size fits within it.\r\n * ENVELOP - The parent is used to ensure the size fully envelops the parent.\r\n *\r\n * Calling this method automatically calls `setSize`.\r\n *\r\n * @method Phaser.Structs.Size#setParent\r\n * @since 3.16.0\r\n *\r\n * @param {any} [parent] - Sets the parent of this Size component. Don't provide a value to clear an existing parent.\r\n *\r\n * @return {this} This Size component instance.\r\n */\r\n setParent: function (parent)\r\n {\r\n this._parent = parent;\r\n\r\n return this.setSize(this._width, this._height);\r\n },\r\n\r\n /**\r\n * Set the minimum width and height values this Size component will allow.\r\n *\r\n * The minimum values can never be below zero, or greater than the maximum values.\r\n *\r\n * Setting this will automatically adjust both the `width` and `height` properties to ensure they are within range.\r\n *\r\n * Note that based on the aspect mode, and if this Size component has a parent set or not, the minimums set here\r\n * _can_ be exceed in some situations.\r\n *\r\n * @method Phaser.Structs.Size#setMin\r\n * @since 3.16.0\r\n *\r\n * @param {number} [width=0] - The minimum allowed width of the Size component.\r\n * @param {number} [height=width] - The minimum allowed height of the Size component. If not given, it will use the `width`.\r\n *\r\n * @return {this} This Size component instance.\r\n */\r\n setMin: function (width, height)\r\n {\r\n if (width === undefined) { width = 0; }\r\n if (height === undefined) { height = width; }\r\n\r\n this.minWidth = Clamp(width, 0, this.maxWidth);\r\n this.minHeight = Clamp(height, 0, this.maxHeight);\r\n\r\n return this.setSize(this._width, this._height);\r\n },\r\n\r\n /**\r\n * Set the maximum width and height values this Size component will allow.\r\n *\r\n * Setting this will automatically adjust both the `width` and `height` properties to ensure they are within range.\r\n *\r\n * Note that based on the aspect mode, and if this Size component has a parent set or not, the maximums set here\r\n * _can_ be exceed in some situations.\r\n *\r\n * @method Phaser.Structs.Size#setMax\r\n * @since 3.16.0\r\n *\r\n * @param {number} [width=Number.MAX_VALUE] - The maximum allowed width of the Size component.\r\n * @param {number} [height=width] - The maximum allowed height of the Size component. If not given, it will use the `width`.\r\n *\r\n * @return {this} This Size component instance.\r\n */\r\n setMax: function (width, height)\r\n {\r\n if (width === undefined) { width = Number.MAX_VALUE; }\r\n if (height === undefined) { height = width; }\r\n\r\n this.maxWidth = Clamp(width, this.minWidth, Number.MAX_VALUE);\r\n this.maxHeight = Clamp(height, this.minHeight, Number.MAX_VALUE);\r\n\r\n return this.setSize(this._width, this._height);\r\n },\r\n\r\n /**\r\n * Sets the width and height of this Size component based on the aspect mode.\r\n *\r\n * If the aspect mode is 'none' then calling this method will change the aspect ratio, otherwise the current\r\n * aspect ratio is honored across all other modes.\r\n *\r\n * If snapTo values have been set then the given width and height are snapped first, prior to any further\r\n * adjustment via min/max values, or a parent.\r\n *\r\n * If minimum and/or maximum dimensions have been specified, the values given to this method will be clamped into\r\n * that range prior to adjustment, but may still exceed them depending on the aspect mode.\r\n *\r\n * If this Size component has a parent set, and the aspect mode is `fit` or `envelop`, then the given sizes will\r\n * be clamped to the range specified by the parent.\r\n *\r\n * @method Phaser.Structs.Size#setSize\r\n * @since 3.16.0\r\n *\r\n * @param {number} [width=0] - The new width of the Size component.\r\n * @param {number} [height=width] - The new height of the Size component. If not given, it will use the `width`.\r\n *\r\n * @return {this} This Size component instance.\r\n */\r\n setSize: function (width, height)\r\n {\r\n if (width === undefined) { width = 0; }\r\n if (height === undefined) { height = width; }\r\n\r\n switch (this.aspectMode)\r\n {\r\n case Size.NONE:\r\n this._width = this.getNewWidth(SnapFloor(width, this.snapTo.x));\r\n this._height = this.getNewHeight(SnapFloor(height, this.snapTo.y));\r\n this.aspectRatio = (this._height === 0) ? 1 : this._width / this._height;\r\n break;\r\n\r\n case Size.WIDTH_CONTROLS_HEIGHT:\r\n this._width = this.getNewWidth(SnapFloor(width, this.snapTo.x));\r\n this._height = this.getNewHeight(this._width * (1 / this.aspectRatio), false);\r\n break;\r\n\r\n case Size.HEIGHT_CONTROLS_WIDTH:\r\n this._height = this.getNewHeight(SnapFloor(height, this.snapTo.y));\r\n this._width = this.getNewWidth(this._height * this.aspectRatio, false);\r\n break;\r\n\r\n case Size.FIT:\r\n this.constrain(width, height, true);\r\n break;\r\n\r\n case Size.ENVELOP:\r\n this.constrain(width, height, false);\r\n break;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a new aspect ratio, overriding what was there previously.\r\n *\r\n * It then calls `setSize` immediately using the current dimensions.\r\n *\r\n * @method Phaser.Structs.Size#setAspectRatio\r\n * @since 3.16.0\r\n *\r\n * @param {number} ratio - The new aspect ratio.\r\n *\r\n * @return {this} This Size component instance.\r\n */\r\n setAspectRatio: function (ratio)\r\n {\r\n this.aspectRatio = ratio;\r\n\r\n return this.setSize(this._width, this._height);\r\n },\r\n\r\n /**\r\n * Sets a new width and height for this Size component and updates the aspect ratio based on them.\r\n *\r\n * It _doesn't_ change the `aspectMode` and still factors in size limits such as the min max and parent bounds.\r\n *\r\n * @method Phaser.Structs.Size#resize\r\n * @since 3.16.0\r\n *\r\n * @param {number} width - The new width of the Size component.\r\n * @param {number} [height=width] - The new height of the Size component. If not given, it will use the `width`.\r\n *\r\n * @return {this} This Size component instance.\r\n */\r\n resize: function (width, height)\r\n {\r\n this._width = this.getNewWidth(SnapFloor(width, this.snapTo.x));\r\n this._height = this.getNewHeight(SnapFloor(height, this.snapTo.y));\r\n this.aspectRatio = (this._height === 0) ? 1 : this._width / this._height;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes a new width and passes it through the min/max clamp and then checks it doesn't exceed the parent width.\r\n *\r\n * @method Phaser.Structs.Size#getNewWidth\r\n * @since 3.16.0\r\n *\r\n * @param {number} value - The value to clamp and check.\r\n * @param {boolean} [checkParent=true] - Check the given value against the parent, if set.\r\n *\r\n * @return {number} The modified width value.\r\n */\r\n getNewWidth: function (value, checkParent)\r\n {\r\n if (checkParent === undefined) { checkParent = true; }\r\n\r\n value = Clamp(value, this.minWidth, this.maxWidth);\r\n\r\n if (checkParent && this._parent && value > this._parent.width)\r\n {\r\n value = Math.max(this.minWidth, this._parent.width);\r\n }\r\n\r\n return value;\r\n },\r\n\r\n /**\r\n * Takes a new height and passes it through the min/max clamp and then checks it doesn't exceed the parent height.\r\n *\r\n * @method Phaser.Structs.Size#getNewHeight\r\n * @since 3.16.0\r\n *\r\n * @param {number} value - The value to clamp and check.\r\n * @param {boolean} [checkParent=true] - Check the given value against the parent, if set.\r\n *\r\n * @return {number} The modified height value.\r\n */\r\n getNewHeight: function (value, checkParent)\r\n {\r\n if (checkParent === undefined) { checkParent = true; }\r\n\r\n value = Clamp(value, this.minHeight, this.maxHeight);\r\n\r\n if (checkParent && this._parent && value > this._parent.height)\r\n {\r\n value = Math.max(this.minHeight, this._parent.height);\r\n }\r\n\r\n return value;\r\n },\r\n\r\n /**\r\n * The current `width` and `height` are adjusted to fit inside the given dimensions, while keeping the aspect ratio.\r\n *\r\n * If `fit` is true there may be some space inside the target area which is not covered if its aspect ratio differs.\r\n * If `fit` is false the size may extend further out than the target area if the aspect ratios differ.\r\n *\r\n * If this Size component has a parent set, then the width and height passed to this method will be clamped so\r\n * it cannot exceed that of the parent.\r\n *\r\n * @method Phaser.Structs.Size#constrain\r\n * @since 3.16.0\r\n *\r\n * @param {number} [width=0] - The new width of the Size component.\r\n * @param {number} [height] - The new height of the Size component. If not given, it will use the width value.\r\n * @param {boolean} [fit=true] - Perform a `fit` (true) constraint, or an `envelop` (false) constraint.\r\n *\r\n * @return {this} This Size component instance.\r\n */\r\n constrain: function (width, height, fit)\r\n {\r\n if (width === undefined) { width = 0; }\r\n if (height === undefined) { height = width; }\r\n if (fit === undefined) { fit = true; }\r\n\r\n width = this.getNewWidth(width);\r\n height = this.getNewHeight(height);\r\n\r\n var snap = this.snapTo;\r\n var newRatio = (height === 0) ? 1 : width / height;\r\n\r\n if ((fit && this.aspectRatio > newRatio) || (!fit && this.aspectRatio < newRatio))\r\n {\r\n // We need to change the height to fit the width\r\n\r\n width = SnapFloor(width, snap.x);\r\n\r\n height = width / this.aspectRatio;\r\n\r\n if (snap.y > 0)\r\n {\r\n height = SnapFloor(height, snap.y);\r\n\r\n // Reduce the width accordingly\r\n width = height * this.aspectRatio;\r\n }\r\n }\r\n else if ((fit && this.aspectRatio < newRatio) || (!fit && this.aspectRatio > newRatio))\r\n {\r\n // We need to change the width to fit the height\r\n\r\n height = SnapFloor(height, snap.y);\r\n\r\n width = height * this.aspectRatio;\r\n\r\n if (snap.x > 0)\r\n {\r\n width = SnapFloor(width, snap.x);\r\n\r\n // Reduce the height accordingly\r\n height = width * (1 / this.aspectRatio);\r\n }\r\n }\r\n\r\n this._width = width;\r\n this._height = height;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The current `width` and `height` are adjusted to fit inside the given dimensions, while keeping the aspect ratio.\r\n *\r\n * There may be some space inside the target area which is not covered if its aspect ratio differs.\r\n *\r\n * If this Size component has a parent set, then the width and height passed to this method will be clamped so\r\n * it cannot exceed that of the parent.\r\n *\r\n * @method Phaser.Structs.Size#fitTo\r\n * @since 3.16.0\r\n *\r\n * @param {number} [width=0] - The new width of the Size component.\r\n * @param {number} [height] - The new height of the Size component. If not given, it will use the width value.\r\n *\r\n * @return {this} This Size component instance.\r\n */\r\n fitTo: function (width, height)\r\n {\r\n return this.constrain(width, height, true);\r\n },\r\n\r\n /**\r\n * The current `width` and `height` are adjusted so that they fully envelope the given dimensions, while keeping the aspect ratio.\r\n *\r\n * The size may extend further out than the target area if the aspect ratios differ.\r\n *\r\n * If this Size component has a parent set, then the values are clamped so that it never exceeds the parent\r\n * on the longest axis.\r\n *\r\n * @method Phaser.Structs.Size#envelop\r\n * @since 3.16.0\r\n *\r\n * @param {number} [width=0] - The new width of the Size component.\r\n * @param {number} [height] - The new height of the Size component. If not given, it will use the width value.\r\n *\r\n * @return {this} This Size component instance.\r\n */\r\n envelop: function (width, height)\r\n {\r\n return this.constrain(width, height, false);\r\n },\r\n\r\n /**\r\n * Sets the width of this Size component.\r\n *\r\n * Depending on the aspect mode, changing the width may also update the height and aspect ratio.\r\n *\r\n * @method Phaser.Structs.Size#setWidth\r\n * @since 3.16.0\r\n *\r\n * @param {number} width - The new width of the Size component.\r\n *\r\n * @return {this} This Size component instance.\r\n */\r\n setWidth: function (value)\r\n {\r\n return this.setSize(value, this._height);\r\n },\r\n\r\n /**\r\n * Sets the height of this Size component.\r\n *\r\n * Depending on the aspect mode, changing the height may also update the width and aspect ratio.\r\n *\r\n * @method Phaser.Structs.Size#setHeight\r\n * @since 3.16.0\r\n *\r\n * @param {number} height - The new height of the Size component.\r\n *\r\n * @return {this} This Size component instance.\r\n */\r\n setHeight: function (value)\r\n {\r\n return this.setSize(this._width, value);\r\n },\r\n\r\n /**\r\n * Returns a string representation of this Size component.\r\n *\r\n * @method Phaser.Structs.Size#toString\r\n * @since 3.16.0\r\n *\r\n * @return {string} A string representation of this Size component.\r\n */\r\n toString: function ()\r\n {\r\n return '[{ Size (width=' + this._width + ' height=' + this._height + ' aspectRatio=' + this.aspectRatio + ' aspectMode=' + this.aspectMode + ') }]';\r\n },\r\n\r\n /**\r\n * Sets the values of this Size component to the `element.style.width` and `height`\r\n * properties of the given DOM Element. The properties are set as `px` values.\r\n *\r\n * @method Phaser.Structs.Size#setCSS\r\n * @since 3.17.0\r\n *\r\n * @param {HTMLElement} element - The DOM Element to set the CSS style on.\r\n */\r\n setCSS: function (element)\r\n {\r\n if (element && element.style)\r\n {\r\n element.style.width = this._width + 'px';\r\n element.style.height = this._height + 'px';\r\n }\r\n },\r\n\r\n /**\r\n * Copies the aspect mode, aspect ratio, width and height from this Size component\r\n * to the given Size component. Note that the parent, if set, is not copied across.\r\n *\r\n * @method Phaser.Structs.Size#copy\r\n * @since 3.16.0\r\n *\r\n * @param {Phaser.Structs.Size} destination - The Size component to copy the values to.\r\n *\r\n * @return {Phaser.Structs.Size} The updated destination Size component.\r\n */\r\n copy: function (destination)\r\n {\r\n destination.setAspectMode(this.aspectMode);\r\n\r\n destination.aspectRatio = this.aspectRatio;\r\n\r\n return destination.setSize(this.width, this.height);\r\n },\r\n\r\n /**\r\n * Destroys this Size component.\r\n *\r\n * This clears the local properties and any parent object, if set.\r\n *\r\n * A destroyed Size component cannot be re-used.\r\n *\r\n * @method Phaser.Structs.Size#destroy\r\n * @since 3.16.0\r\n */\r\n destroy: function ()\r\n {\r\n this._parent = null;\r\n this.snapTo = null;\r\n },\r\n\r\n /**\r\n * The width of this Size component.\r\n *\r\n * This value is clamped to the range specified by `minWidth` and `maxWidth`, if enabled.\r\n *\r\n * A width can never be less than zero.\r\n *\r\n * Changing this value will automatically update the `height` if the aspect ratio lock is enabled.\r\n * You can also use the `setWidth` and `getWidth` methods.\r\n *\r\n * @name Phaser.Structs.Size#width\r\n * @type {number}\r\n * @since 3.16.0\r\n */\r\n width: {\r\n\r\n get: function ()\r\n {\r\n return this._width;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.setSize(value, this._height);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The height of this Size component.\r\n *\r\n * This value is clamped to the range specified by `minHeight` and `maxHeight`, if enabled.\r\n *\r\n * A height can never be less than zero.\r\n *\r\n * Changing this value will automatically update the `width` if the aspect ratio lock is enabled.\r\n * You can also use the `setHeight` and `getHeight` methods.\r\n *\r\n * @name Phaser.Structs.Size#height\r\n * @type {number}\r\n * @since 3.16.0\r\n */\r\n height: {\r\n\r\n get: function ()\r\n {\r\n return this._height;\r\n },\r\n\r\n set: function (value)\r\n {\r\n this.setSize(this._width, value);\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Do not make the size fit the aspect ratio. Change the ratio when the size changes.\r\n *\r\n * @name Phaser.Structs.Size.NONE\r\n * @constant\r\n * @type {number}\r\n * @since 3.16.0\r\n */\r\nSize.NONE = 0;\r\n\r\n/**\r\n * The height is automatically adjusted based on the width.\r\n *\r\n * @name Phaser.Structs.Size.WIDTH_CONTROLS_HEIGHT\r\n * @constant\r\n * @type {number}\r\n * @since 3.16.0\r\n */\r\nSize.WIDTH_CONTROLS_HEIGHT = 1;\r\n\r\n/**\r\n * The width is automatically adjusted based on the height.\r\n *\r\n * @name Phaser.Structs.Size.HEIGHT_CONTROLS_WIDTH\r\n * @constant\r\n * @type {number}\r\n * @since 3.16.0\r\n */\r\nSize.HEIGHT_CONTROLS_WIDTH = 2;\r\n\r\n/**\r\n * The width and height are automatically adjusted to fit inside the given target area, while keeping the aspect ratio. Depending on the aspect ratio there may be some space inside the area which is not covered.\r\n *\r\n * @name Phaser.Structs.Size.FIT\r\n * @constant\r\n * @type {number}\r\n * @since 3.16.0\r\n */\r\nSize.FIT = 3;\r\n\r\n/**\r\n * The width and height are automatically adjusted to make the size cover the entire target area while keeping the aspect ratio. This may extend further out than the target size.\r\n *\r\n * @name Phaser.Structs.Size.ENVELOP\r\n * @constant\r\n * @type {number}\r\n * @since 3.16.0\r\n */\r\nSize.ENVELOP = 4;\r\n\r\nmodule.exports = Size;\r\n\n\n/***/ }),\n\n/***/ 15238:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Process Queue Add Event.\r\n *\r\n * This event is dispatched by a Process Queue when a new item is successfully moved to its active list.\r\n *\r\n * You will most commonly see this used by a Scene's Update List when a new Game Object has been added.\r\n *\r\n * In that instance, listen to this event from within a Scene using: `this.sys.updateList.on('add', listener)`.\r\n *\r\n * @event Phaser.Structs.Events#PROCESS_QUEUE_ADD\r\n * @type {string}\r\n * @since 3.20.0\r\n *\r\n * @param {*} item - The item that was added to the Process Queue.\r\n */\r\nmodule.exports = 'add';\r\n\n\n/***/ }),\n\n/***/ 56187:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Process Queue Remove Event.\r\n *\r\n * This event is dispatched by a Process Queue when a new item is successfully removed from its active list.\r\n *\r\n * You will most commonly see this used by a Scene's Update List when a Game Object has been removed.\r\n *\r\n * In that instance, listen to this event from within a Scene using: `this.sys.updateList.on('remove', listener)`.\r\n *\r\n * @event Phaser.Structs.Events#PROCESS_QUEUE_REMOVE\r\n * @type {string}\r\n * @since 3.20.0\r\n *\r\n * @param {*} item - The item that was removed from the Process Queue.\r\n */\r\nmodule.exports = 'remove';\r\n\n\n/***/ }),\n\n/***/ 82348:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Structs.Events\r\n */\r\n\r\nmodule.exports = {\r\n\r\n PROCESS_QUEUE_ADD: __webpack_require__(15238),\r\n PROCESS_QUEUE_REMOVE: __webpack_require__(56187)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 41392:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Structs\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Events: __webpack_require__(82348),\r\n List: __webpack_require__(73162),\r\n Map: __webpack_require__(90330),\r\n ProcessQueue: __webpack_require__(25774),\r\n RTree: __webpack_require__(59542),\r\n Set: __webpack_require__(35072),\r\n Size: __webpack_require__(86555)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 57382:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Clamp = __webpack_require__(45319);\r\nvar Color = __webpack_require__(40987);\r\nvar CONST = __webpack_require__(8054);\r\nvar IsSizePowerOfTwo = __webpack_require__(50030);\r\nvar Texture = __webpack_require__(79237);\r\n\r\n/**\r\n * @classdesc\r\n * A Canvas Texture is a special kind of Texture that is backed by an HTML Canvas Element as its source.\r\n *\r\n * You can use the properties of this texture to draw to the canvas element directly, using all of the standard\r\n * canvas operations available in the browser. Any Game Object can be given this texture and will render with it.\r\n *\r\n * Note: When running under WebGL the Canvas Texture needs to re-generate its base WebGLTexture and reupload it to\r\n * the GPU every time you modify it, otherwise the changes you make to this texture will not be visible. To do this\r\n * you should call `CanvasTexture.refresh()` once you are finished with your changes to the canvas. Try and keep\r\n * this to a minimum, especially on large canvas sizes, or you may inadvertently thrash the GPU by constantly uploading\r\n * texture data to it. This restriction does not apply if using the Canvas Renderer.\r\n *\r\n * It starts with only one frame that covers the whole of the canvas. You can add further frames, that specify\r\n * sections of the canvas using the `add` method.\r\n *\r\n * Should you need to resize the canvas use the `setSize` method so that it accurately updates all of the underlying\r\n * texture data as well. Forgetting to do this (i.e. by changing the canvas size directly from your code) could cause\r\n * graphical errors.\r\n *\r\n * @class CanvasTexture\r\n * @extends Phaser.Textures.Texture\r\n * @memberof Phaser.Textures\r\n * @constructor\r\n * @since 3.7.0\r\n *\r\n * @param {Phaser.Textures.TextureManager} manager - A reference to the Texture Manager this Texture belongs to.\r\n * @param {string} key - The unique string-based key of this Texture.\r\n * @param {HTMLCanvasElement} source - The canvas element that is used as the base of this texture.\r\n * @param {number} width - The width of the canvas.\r\n * @param {number} height - The height of the canvas.\r\n */\r\nvar CanvasTexture = new Class({\r\n\r\n Extends: Texture,\r\n\r\n initialize:\r\n\r\n function CanvasTexture (manager, key, source, width, height)\r\n {\r\n Texture.call(this, manager, key, source, width, height);\r\n\r\n this.add('__BASE', 0, 0, 0, width, height);\r\n\r\n /**\r\n * A reference to the Texture Source of this Canvas.\r\n *\r\n * @name Phaser.Textures.CanvasTexture#_source\r\n * @type {Phaser.Textures.TextureSource}\r\n * @private\r\n * @since 3.7.0\r\n */\r\n this._source = this.frames['__BASE'].source;\r\n\r\n /**\r\n * The source Canvas Element.\r\n *\r\n * @name Phaser.Textures.CanvasTexture#canvas\r\n * @readonly\r\n * @type {HTMLCanvasElement}\r\n * @since 3.7.0\r\n */\r\n this.canvas = this._source.image;\r\n\r\n /**\r\n * The 2D Canvas Rendering Context.\r\n *\r\n * @name Phaser.Textures.CanvasTexture#context\r\n * @readonly\r\n * @type {CanvasRenderingContext2D}\r\n * @since 3.7.0\r\n */\r\n this.context = this.canvas.getContext('2d', { willReadFrequently: true });\r\n\r\n /**\r\n * The width of the Canvas.\r\n * This property is read-only, if you wish to change it use the `setSize` method.\r\n *\r\n * @name Phaser.Textures.CanvasTexture#width\r\n * @readonly\r\n * @type {number}\r\n * @since 3.7.0\r\n */\r\n this.width = width;\r\n\r\n /**\r\n * The height of the Canvas.\r\n * This property is read-only, if you wish to change it use the `setSize` method.\r\n *\r\n * @name Phaser.Textures.CanvasTexture#height\r\n * @readonly\r\n * @type {number}\r\n * @since 3.7.0\r\n */\r\n this.height = height;\r\n\r\n /**\r\n * The context image data.\r\n * Use the `update` method to populate this when the canvas changes.\r\n *\r\n * @name Phaser.Textures.CanvasTexture#imageData\r\n * @type {ImageData}\r\n * @since 3.13.0\r\n */\r\n this.imageData = this.context.getImageData(0, 0, width, height);\r\n\r\n /**\r\n * A Uint8ClampedArray view into the `buffer`.\r\n * Use the `update` method to populate this when the canvas changes.\r\n * Note that this is unavailable in some browsers, such as Epic Browser, due to their security restrictions.\r\n *\r\n * @name Phaser.Textures.CanvasTexture#data\r\n * @type {Uint8ClampedArray}\r\n * @since 3.13.0\r\n */\r\n this.data = null;\r\n\r\n if (this.imageData)\r\n {\r\n this.data = this.imageData.data;\r\n }\r\n\r\n /**\r\n * An Uint32Array view into the `buffer`.\r\n *\r\n * @name Phaser.Textures.CanvasTexture#pixels\r\n * @type {Uint32Array}\r\n * @since 3.13.0\r\n */\r\n this.pixels = null;\r\n\r\n /**\r\n * An ArrayBuffer the same size as the context ImageData.\r\n *\r\n * @name Phaser.Textures.CanvasTexture#buffer\r\n * @type {ArrayBuffer}\r\n * @since 3.13.0\r\n */\r\n this.buffer;\r\n\r\n if (this.data)\r\n {\r\n if (this.imageData.data.buffer)\r\n {\r\n this.buffer = this.imageData.data.buffer;\r\n this.pixels = new Uint32Array(this.buffer);\r\n }\r\n else if (window.ArrayBuffer)\r\n {\r\n this.buffer = new ArrayBuffer(this.imageData.data.length);\r\n this.pixels = new Uint32Array(this.buffer);\r\n }\r\n else\r\n {\r\n this.pixels = this.imageData.data;\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * This re-creates the `imageData` from the current context.\r\n * It then re-builds the ArrayBuffer, the `data` Uint8ClampedArray reference and the `pixels` Int32Array.\r\n *\r\n * Warning: This is a very expensive operation, so use it sparingly.\r\n *\r\n * @method Phaser.Textures.CanvasTexture#update\r\n * @since 3.13.0\r\n *\r\n * @return {Phaser.Textures.CanvasTexture} This CanvasTexture.\r\n */\r\n update: function ()\r\n {\r\n this.imageData = this.context.getImageData(0, 0, this.width, this.height);\r\n\r\n this.data = this.imageData.data;\r\n\r\n if (this.imageData.data.buffer)\r\n {\r\n this.buffer = this.imageData.data.buffer;\r\n this.pixels = new Uint32Array(this.buffer);\r\n }\r\n else if (window.ArrayBuffer)\r\n {\r\n this.buffer = new ArrayBuffer(this.imageData.data.length);\r\n this.pixels = new Uint32Array(this.buffer);\r\n }\r\n else\r\n {\r\n this.pixels = this.imageData.data;\r\n }\r\n\r\n if (this.manager.game.config.renderType === CONST.WEBGL)\r\n {\r\n this.refresh();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Draws the given Image or Canvas element to this CanvasTexture, then updates the internal\r\n * ImageData buffer and arrays.\r\n *\r\n * @method Phaser.Textures.CanvasTexture#draw\r\n * @since 3.13.0\r\n *\r\n * @param {number} x - The x coordinate to draw the source at.\r\n * @param {number} y - The y coordinate to draw the source at.\r\n * @param {(HTMLImageElement|HTMLCanvasElement)} source - The element to draw to this canvas.\r\n * @param {boolean} [update=true] - Update the internal ImageData buffer and arrays.\r\n *\r\n * @return {Phaser.Textures.CanvasTexture} This CanvasTexture.\r\n */\r\n draw: function (x, y, source, update)\r\n {\r\n if (update === undefined) { update = true; }\r\n\r\n this.context.drawImage(source, x, y);\r\n\r\n if (update)\r\n {\r\n this.update();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Draws the given texture frame to this CanvasTexture, then updates the internal\r\n * ImageData buffer and arrays.\r\n *\r\n * @method Phaser.Textures.CanvasTexture#drawFrame\r\n * @since 3.16.0\r\n *\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {(string|number)} [frame] - The string-based name, or integer based index, of the Frame to get from the Texture.\r\n * @param {number} [x=0] - The x coordinate to draw the source at.\r\n * @param {number} [y=0] - The y coordinate to draw the source at.\r\n * @param {boolean} [update=true] - Update the internal ImageData buffer and arrays.\r\n *\r\n * @return {Phaser.Textures.CanvasTexture} This CanvasTexture.\r\n */\r\n drawFrame: function (key, frame, x, y, update)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (update === undefined) { update = true; }\r\n\r\n var textureFrame = this.manager.getFrame(key, frame);\r\n\r\n if (textureFrame)\r\n {\r\n var cd = textureFrame.canvasData;\r\n\r\n var width = textureFrame.cutWidth;\r\n var height = textureFrame.cutHeight;\r\n var res = textureFrame.source.resolution;\r\n\r\n this.context.drawImage(\r\n textureFrame.source.image,\r\n cd.x, cd.y,\r\n width,\r\n height,\r\n x, y,\r\n width / res,\r\n height / res\r\n );\r\n\r\n if (update)\r\n {\r\n this.update();\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a pixel in the CanvasTexture to the given color and alpha values.\r\n *\r\n * This is an expensive operation to run in large quantities, so use sparingly.\r\n *\r\n * @method Phaser.Textures.CanvasTexture#setPixel\r\n * @since 3.16.0\r\n *\r\n * @param {number} x - The x coordinate of the pixel to get. Must lay within the dimensions of this CanvasTexture and be an integer.\r\n * @param {number} y - The y coordinate of the pixel to get. Must lay within the dimensions of this CanvasTexture and be an integer.\r\n * @param {number} red - The red color value. A number between 0 and 255.\r\n * @param {number} green - The green color value. A number between 0 and 255.\r\n * @param {number} blue - The blue color value. A number between 0 and 255.\r\n * @param {number} [alpha=255] - The alpha value. A number between 0 and 255.\r\n *\r\n * @return {this} This CanvasTexture.\r\n */\r\n setPixel: function (x, y, red, green, blue, alpha)\r\n {\r\n if (alpha === undefined) { alpha = 255; }\r\n\r\n x = Math.abs(Math.floor(x));\r\n y = Math.abs(Math.floor(y));\r\n\r\n var index = this.getIndex(x, y);\r\n\r\n if (index > -1)\r\n {\r\n var imageData = this.context.getImageData(x, y, 1, 1);\r\n\r\n imageData.data[0] = red;\r\n imageData.data[1] = green;\r\n imageData.data[2] = blue;\r\n imageData.data[3] = alpha;\r\n\r\n this.context.putImageData(imageData, x, y);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Puts the ImageData into the context of this CanvasTexture at the given coordinates.\r\n *\r\n * @method Phaser.Textures.CanvasTexture#putData\r\n * @since 3.16.0\r\n *\r\n * @param {ImageData} imageData - The ImageData to put at the given location.\r\n * @param {number} x - The x coordinate to put the imageData. Must lay within the dimensions of this CanvasTexture and be an integer.\r\n * @param {number} y - The y coordinate to put the imageData. Must lay within the dimensions of this CanvasTexture and be an integer.\r\n * @param {number} [dirtyX=0] - Horizontal position (x coordinate) of the top-left corner from which the image data will be extracted.\r\n * @param {number} [dirtyY=0] - Vertical position (x coordinate) of the top-left corner from which the image data will be extracted.\r\n * @param {number} [dirtyWidth] - Width of the rectangle to be painted. Defaults to the width of the image data.\r\n * @param {number} [dirtyHeight] - Height of the rectangle to be painted. Defaults to the height of the image data.\r\n *\r\n * @return {this} This CanvasTexture.\r\n */\r\n putData: function (imageData, x, y, dirtyX, dirtyY, dirtyWidth, dirtyHeight)\r\n {\r\n if (dirtyX === undefined) { dirtyX = 0; }\r\n if (dirtyY === undefined) { dirtyY = 0; }\r\n if (dirtyWidth === undefined) { dirtyWidth = imageData.width; }\r\n if (dirtyHeight === undefined) { dirtyHeight = imageData.height; }\r\n\r\n this.context.putImageData(imageData, x, y, dirtyX, dirtyY, dirtyWidth, dirtyHeight);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Gets an ImageData region from this CanvasTexture from the position and size specified.\r\n * You can write this back using `CanvasTexture.putData`, or manipulate it.\r\n *\r\n * @method Phaser.Textures.CanvasTexture#getData\r\n * @since 3.16.0\r\n *\r\n * @param {number} x - The x coordinate of the top-left of the area to get the ImageData from. Must lay within the dimensions of this CanvasTexture and be an integer.\r\n * @param {number} y - The y coordinate of the top-left of the area to get the ImageData from. Must lay within the dimensions of this CanvasTexture and be an integer.\r\n * @param {number} width - The width of the rectangle from which the ImageData will be extracted. Positive values are to the right, and negative to the left.\r\n * @param {number} height - The height of the rectangle from which the ImageData will be extracted. Positive values are down, and negative are up.\r\n *\r\n * @return {ImageData} The ImageData extracted from this CanvasTexture.\r\n */\r\n getData: function (x, y, width, height)\r\n {\r\n x = Clamp(Math.floor(x), 0, this.width - 1);\r\n y = Clamp(Math.floor(y), 0, this.height - 1);\r\n width = Clamp(width, 1, this.width - x);\r\n height = Clamp(height, 1, this.height - y);\r\n\r\n var imageData = this.context.getImageData(x, y, width, height);\r\n\r\n return imageData;\r\n },\r\n\r\n /**\r\n * Get the color of a specific pixel from this texture and store it in a Color object.\r\n *\r\n * If you have drawn anything to this CanvasTexture since it was created you must call `CanvasTexture.update` to refresh the array buffer,\r\n * otherwise this may return out of date color values, or worse - throw a run-time error as it tries to access an array element that doesn't exist.\r\n *\r\n * @method Phaser.Textures.CanvasTexture#getPixel\r\n * @since 3.13.0\r\n *\r\n * @param {number} x - The x coordinate of the pixel to get. Must lay within the dimensions of this CanvasTexture and be an integer.\r\n * @param {number} y - The y coordinate of the pixel to get. Must lay within the dimensions of this CanvasTexture and be an integer.\r\n * @param {Phaser.Display.Color} [out] - A Color object to store the pixel values in. If not provided a new Color object will be created.\r\n *\r\n * @return {Phaser.Display.Color} An object with the red, green, blue and alpha values set in the r, g, b and a properties.\r\n */\r\n getPixel: function (x, y, out)\r\n {\r\n if (!out)\r\n {\r\n out = new Color();\r\n }\r\n\r\n var index = this.getIndex(x, y);\r\n\r\n if (index > -1)\r\n {\r\n var data = this.data;\r\n\r\n var r = data[index + 0];\r\n var g = data[index + 1];\r\n var b = data[index + 2];\r\n var a = data[index + 3];\r\n\r\n out.setTo(r, g, b, a);\r\n }\r\n\r\n return out;\r\n },\r\n\r\n /**\r\n * Returns an array containing all of the pixels in the given region.\r\n *\r\n * If the requested region extends outside the bounds of this CanvasTexture,\r\n * the region is truncated to fit.\r\n *\r\n * If you have drawn anything to this CanvasTexture since it was created you must call `CanvasTexture.update` to refresh the array buffer,\r\n * otherwise this may return out of date color values, or worse - throw a run-time error as it tries to access an array element that doesn't exist.\r\n *\r\n * @method Phaser.Textures.CanvasTexture#getPixels\r\n * @since 3.16.0\r\n *\r\n * @param {number} [x=0] - The x coordinate of the top-left of the region. Must lay within the dimensions of this CanvasTexture and be an integer.\r\n * @param {number} [y=0] - The y coordinate of the top-left of the region. Must lay within the dimensions of this CanvasTexture and be an integer.\r\n * @param {number} [width] - The width of the region to get. Must be an integer. Defaults to the canvas width if not given.\r\n * @param {number} [height] - The height of the region to get. Must be an integer. If not given will be set to the `width`.\r\n *\r\n * @return {Phaser.Types.Textures.PixelConfig[][]} A 2d array of Pixel objects.\r\n */\r\n getPixels: function (x, y, width, height)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (width === undefined) { width = this.width; }\r\n if (height === undefined) { height = width; }\r\n\r\n x = Math.abs(Math.round(x));\r\n y = Math.abs(Math.round(y));\r\n\r\n var left = Clamp(x, 0, this.width);\r\n var right = Clamp(x + width, 0, this.width);\r\n var top = Clamp(y, 0, this.height);\r\n var bottom = Clamp(y + height, 0, this.height);\r\n\r\n var pixel = new Color();\r\n\r\n var out = [];\r\n\r\n for (var py = top; py < bottom; py++)\r\n {\r\n var row = [];\r\n\r\n for (var px = left; px < right; px++)\r\n {\r\n pixel = this.getPixel(px, py, pixel);\r\n\r\n row.push({ x: px, y: py, color: pixel.color, alpha: pixel.alphaGL });\r\n }\r\n\r\n out.push(row);\r\n }\r\n\r\n return out;\r\n },\r\n\r\n /**\r\n * Returns the Image Data index for the given pixel in this CanvasTexture.\r\n *\r\n * The index can be used to read directly from the `this.data` array.\r\n *\r\n * The index points to the red value in the array. The subsequent 3 indexes\r\n * point to green, blue and alpha respectively.\r\n *\r\n * @method Phaser.Textures.CanvasTexture#getIndex\r\n * @since 3.16.0\r\n *\r\n * @param {number} x - The x coordinate of the pixel to get. Must lay within the dimensions of this CanvasTexture and be an integer.\r\n * @param {number} y - The y coordinate of the pixel to get. Must lay within the dimensions of this CanvasTexture and be an integer.\r\n *\r\n * @return {number}\r\n */\r\n getIndex: function (x, y)\r\n {\r\n x = Math.abs(Math.round(x));\r\n y = Math.abs(Math.round(y));\r\n\r\n if (x < this.width && y < this.height)\r\n {\r\n return (x + y * this.width) * 4;\r\n }\r\n else\r\n {\r\n return -1;\r\n }\r\n },\r\n\r\n /**\r\n * This should be called manually if you are running under WebGL.\r\n * It will refresh the WebGLTexture from the Canvas source. Only call this if you know that the\r\n * canvas has changed, as there is a significant GPU texture allocation cost involved in doing so.\r\n *\r\n * @method Phaser.Textures.CanvasTexture#refresh\r\n * @since 3.7.0\r\n *\r\n * @return {Phaser.Textures.CanvasTexture} This CanvasTexture.\r\n */\r\n refresh: function ()\r\n {\r\n this._source.update();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Gets the Canvas Element.\r\n *\r\n * @method Phaser.Textures.CanvasTexture#getCanvas\r\n * @since 3.7.0\r\n *\r\n * @return {HTMLCanvasElement} The Canvas DOM element this texture is using.\r\n */\r\n getCanvas: function ()\r\n {\r\n return this.canvas;\r\n },\r\n\r\n /**\r\n * Gets the 2D Canvas Rendering Context.\r\n *\r\n * @method Phaser.Textures.CanvasTexture#getContext\r\n * @since 3.7.0\r\n *\r\n * @return {CanvasRenderingContext2D} The Canvas Rendering Context this texture is using.\r\n */\r\n getContext: function ()\r\n {\r\n return this.context;\r\n },\r\n\r\n /**\r\n * Clears the given region of this Canvas Texture, resetting it back to transparent.\r\n * If no region is given, the whole Canvas Texture is cleared.\r\n *\r\n * @method Phaser.Textures.CanvasTexture#clear\r\n * @since 3.7.0\r\n *\r\n * @param {number} [x=0] - The x coordinate of the top-left of the region to clear.\r\n * @param {number} [y=0] - The y coordinate of the top-left of the region to clear.\r\n * @param {number} [width] - The width of the region.\r\n * @param {number} [height] - The height of the region.\r\n * @param {boolean} [update=true] - Update the internal ImageData buffer and arrays.\r\n *\r\n * @return {Phaser.Textures.CanvasTexture} The Canvas Texture.\r\n */\r\n clear: function (x, y, width, height, update)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (width === undefined) { width = this.width; }\r\n if (height === undefined) { height = this.height; }\r\n if (update === undefined) { update = true; }\r\n\r\n this.context.clearRect(x, y, width, height);\r\n\r\n if (update)\r\n {\r\n this.update();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Changes the size of this Canvas Texture.\r\n *\r\n * @method Phaser.Textures.CanvasTexture#setSize\r\n * @since 3.7.0\r\n *\r\n * @param {number} width - The new width of the Canvas.\r\n * @param {number} [height] - The new height of the Canvas. If not given it will use the width as the height.\r\n *\r\n * @return {Phaser.Textures.CanvasTexture} The Canvas Texture.\r\n */\r\n setSize: function (width, height)\r\n {\r\n if (height === undefined) { height = width; }\r\n\r\n if (width !== this.width || height !== this.height)\r\n {\r\n // Update the Canvas\r\n this.canvas.width = width;\r\n this.canvas.height = height;\r\n\r\n // Update the Texture Source\r\n this._source.width = width;\r\n this._source.height = height;\r\n this._source.isPowerOf2 = IsSizePowerOfTwo(width, height);\r\n\r\n // Update the Frame\r\n this.frames['__BASE'].setSize(width, height, 0, 0);\r\n\r\n // Update this\r\n this.width = width;\r\n this.height = height;\r\n\r\n this.refresh();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Destroys this Texture and releases references to its sources and frames.\r\n *\r\n * @method Phaser.Textures.CanvasTexture#destroy\r\n * @since 3.16.0\r\n */\r\n destroy: function ()\r\n {\r\n Texture.prototype.destroy.call(this);\r\n\r\n this._source = null;\r\n this.canvas = null;\r\n this.context = null;\r\n this.imageData = null;\r\n this.data = null;\r\n this.pixels = null;\r\n this.buffer = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = CanvasTexture;\r\n\n\n/***/ }),\n\n/***/ 81320:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BlendModes = __webpack_require__(10312);\r\nvar Camera = __webpack_require__(38058);\r\nvar CanvasPool = __webpack_require__(27919);\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(8054);\r\nvar Frame = __webpack_require__(4327);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar PIPELINES = __webpack_require__(36060);\r\nvar RenderTarget = __webpack_require__(32302);\r\nvar Texture = __webpack_require__(79237);\r\nvar Utils = __webpack_require__(70554);\r\n\r\n/**\r\n * @classdesc\r\n * A Dynamic Texture is a special texture that allows you to draw textures, frames and most kind of\r\n * Game Objects directly to it.\r\n *\r\n * You can take many complex objects and draw them to this one texture, which can then be used as the\r\n * base texture for other Game Objects, such as Sprites. Should you then update this texture, all\r\n * Game Objects using it will instantly be updated as well, reflecting the changes immediately.\r\n *\r\n * It's a powerful way to generate dynamic textures at run-time that are WebGL friendly and don't invoke\r\n * expensive GPU uploads on each change.\r\n *\r\n * ```js\r\n * const t = this.textures.addDynamicTexture('player', 64, 128);\r\n * // draw objects to t\r\n * this.add.sprite(x, y, 'player');\r\n * ```\r\n *\r\n * Because this is a standard Texture within Phaser, you can add frames to it, meaning you can use it\r\n * to generate sprite sheets, texture atlases or tile sets.\r\n *\r\n * Under WebGL1, a FrameBuffer, which is what this Dynamic Texture uses internally, cannot be anti-aliased.\r\n * This means that when drawing objects such as Shapes or Graphics instances to this texture, they may appear\r\n * to be drawn with no aliasing around the edges. This is a technical limitation of WebGL1. To get around it,\r\n * create your shape as a texture in an art package, then draw that to this texture.\r\n *\r\n * Based on the assumption that you will be using this Dynamic Texture as a source for Sprites, it will\r\n * automatically invert any drawing done to it on the y axis. If you do not require this, please call the\r\n * `setIsSpriteTexture()` method and pass it `false` as its parameter. Do this before you start drawing\r\n * to this texture, otherwise you will get vertically inverted frames under WebGL. This isn't required\r\n * for Canvas.\r\n *\r\n * @class DynamicTexture\r\n * @extends Phaser.Textures.Texture\r\n * @memberof Phaser.Textures\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Textures.TextureManager} manager - A reference to the Texture Manager this Texture belongs to.\r\n * @param {string} key - The unique string-based key of this Texture.\r\n * @param {number} [width=256] - The width of this Dymamic Texture in pixels. Defaults to 256 x 256.\r\n * @param {number} [height=256] - The height of this Dymamic Texture in pixels. Defaults to 256 x 256.\r\n */\r\nvar DynamicTexture = new Class({\r\n\r\n Extends: Texture,\r\n\r\n initialize:\r\n\r\n function DynamicTexture (manager, key, width, height)\r\n {\r\n if (width === undefined) { width = 256; }\r\n if (height === undefined) { height = 256; }\r\n\r\n /**\r\n * The internal data type of this object.\r\n *\r\n * @name Phaser.Textures.DynamicTexture#type\r\n * @type {string}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.type = 'DynamicTexture';\r\n\r\n var renderer = manager.game.renderer;\r\n\r\n var isCanvas = (renderer && renderer.type === CONST.CANVAS);\r\n\r\n var source = (isCanvas) ? CanvasPool.create2D(this, width, height) : [ this ];\r\n\r\n Texture.call(this, manager, key, source, width, height);\r\n\r\n this.add('__BASE', 0, 0, 0, width, height);\r\n\r\n /**\r\n * A reference to either the Canvas or WebGL Renderer that the Game instance is using.\r\n *\r\n * @name Phaser.Textures.DynamicTexture#renderer\r\n * @type {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)}\r\n * @since 3.2.0\r\n */\r\n this.renderer = renderer;\r\n\r\n /**\r\n * The width of this Dynamic Texture.\r\n *\r\n * Treat this property as read-only. Use the `setSize` method to change the size.\r\n *\r\n * @name Phaser.Textures.DynamicTexture#width\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.width = -1;\r\n\r\n /**\r\n * The height of this Dynamic Texture.\r\n *\r\n * Treat this property as read-only. Use the `setSize` method to change the size.\r\n *\r\n * @name Phaser.Textures.DynamicTexture#height\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.height = -1;\r\n\r\n /**\r\n * This flag is set to 'true' during `beginDraw` and reset to 'false` in `endDraw`,\r\n * allowing you to determine if this Dynamic Texture is batch drawing, or not.\r\n *\r\n * @name Phaser.Textures.DynamicTexture#isDrawing\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.isDrawing = false;\r\n\r\n /**\r\n * A reference to the Rendering Context belonging to the Canvas Element this Dynamic Texture is drawing to.\r\n *\r\n * @name Phaser.Textures.DynamicTexture#canvas\r\n * @type {HTMLCanvasElement}\r\n * @since 3.2.0\r\n */\r\n this.canvas = (isCanvas) ? source : null;\r\n\r\n /**\r\n * The 2D Canvas Rendering Context.\r\n *\r\n * @name Phaser.Textures.DynamicTexture#context\r\n * @readonly\r\n * @type {CanvasRenderingContext2D}\r\n * @since 3.7.0\r\n */\r\n this.context = (isCanvas) ? source.getContext('2d', { willReadFrequently: true }) : null;\r\n\r\n /**\r\n * Is this Dynamic Texture dirty or not? If not it won't spend time clearing or filling itself.\r\n *\r\n * @name Phaser.Textures.DynamicTexture#dirty\r\n * @type {boolean}\r\n * @since 3.12.0\r\n */\r\n this.dirty = false;\r\n\r\n /**\r\n * Is this Dynamic Texture being used as the base texture for a Sprite Game Object?\r\n *\r\n * This is enabled by default, as we expect that will be the core use for Dynamic Textures.\r\n *\r\n * However, to disable it, call `RenderTexture.setIsSpriteTexture(false)`.\r\n *\r\n * You should do this _before_ drawing to this texture, so that it correctly\r\n * inverses the frames for WebGL rendering. Not doing so will result in vertically flipped frames.\r\n *\r\n * This property is used in the `endDraw` method.\r\n *\r\n * @name Phaser.Textures.DynamicTexture#isSpriteTexture\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.isSpriteTexture = true;\r\n\r\n /**\r\n * Internal erase mode flag.\r\n *\r\n * @name Phaser.Textures.DynamicTexture#_eraseMode\r\n * @type {boolean}\r\n * @private\r\n * @since 3.16.0\r\n */\r\n this._eraseMode = false;\r\n\r\n /**\r\n * An internal Camera that can be used to move around this Dynamic Texture.\r\n *\r\n * Control it just like you would any Scene Camera. The difference is that it only impacts\r\n * the placement of **Game Objects** (not textures) that you then draw to this texture.\r\n *\r\n * You can scroll, zoom and rotate this Camera.\r\n *\r\n * @name Phaser.Textures.DynamicTexture#camera\r\n * @type {Phaser.Cameras.Scene2D.Camera}\r\n * @since 3.12.0\r\n */\r\n this.camera = new Camera(0, 0, width, height).setScene(manager.game.scene.systemScene, false);\r\n\r\n /**\r\n * The Render Target that belongs to this Dynamic Texture.\r\n *\r\n * A Render Target encapsulates a framebuffer and texture for the WebGL Renderer.\r\n *\r\n * This property remains `null` under Canvas.\r\n *\r\n * @name Phaser.Textures.DynamicTexture#renderTarget\r\n * @type {Phaser.Renderer.WebGL.RenderTarget}\r\n * @since 3.60.0\r\n */\r\n this.renderTarget = (!isCanvas) ? new RenderTarget(renderer, width, height, 1, 0, false, false, true, false) : null;\r\n\r\n /**\r\n * A reference to the WebGL Single Pipeline.\r\n *\r\n * This property remains `null` under Canvas.\r\n *\r\n * @name Phaser.Textures.DynamicTexture#pipeline\r\n * @type {Phaser.Renderer.WebGL.Pipelines.SinglePipeline}\r\n * @since 3.60.0\r\n */\r\n this.pipeline = (!isCanvas) ? renderer.pipelines.get(PIPELINES.SINGLE_PIPELINE) : null;\r\n\r\n this.setSize(width, height);\r\n },\r\n\r\n /**\r\n * Resizes this Dynamic Texture to the new dimensions given.\r\n *\r\n * In WebGL it will destroy and then re-create the frame buffer being used by this Dynamic Texture.\r\n * In Canvas it will resize the underlying canvas DOM element.\r\n *\r\n * Both approaches will erase everything currently drawn to this texture.\r\n *\r\n * If the dimensions given are the same as those already being used, calling this method will do nothing.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#setSize\r\n * @since 3.10.0\r\n *\r\n * @param {number} width - The new width of this Dynamic Texture.\r\n * @param {number} [height=width] - The new height of this Dynamic Texture. If not specified, will be set the same as the `width`.\r\n *\r\n * @return {this} This Dynamic Texture.\r\n */\r\n setSize: function (width, height)\r\n {\r\n if (height === undefined) { height = width; }\r\n\r\n var frame = this.get();\r\n var source = frame.source;\r\n\r\n if (width !== this.width || height !== this.height)\r\n {\r\n if (this.canvas)\r\n {\r\n this.canvas.width = width;\r\n this.canvas.height = height;\r\n }\r\n\r\n var renderTarget = this.renderTarget;\r\n\r\n if (renderTarget)\r\n {\r\n if (renderTarget.willResize(width, height))\r\n {\r\n renderTarget.resize(width, height);\r\n }\r\n\r\n if (renderTarget.texture !== source.glTexture)\r\n {\r\n // The texture has been resized, so is new, so we need to delete the old one\r\n this.renderer.deleteTexture(source.glTexture);\r\n }\r\n\r\n this.setFromRenderTarget();\r\n }\r\n\r\n this.camera.setSize(width, height);\r\n\r\n source.width = width;\r\n source.height = height;\r\n\r\n frame.setSize(width, height);\r\n\r\n this.width = width;\r\n this.height = height;\r\n }\r\n else\r\n {\r\n // Resize the frame\r\n var baseFrame = this.getSourceImage();\r\n\r\n if (frame.cutX + width > baseFrame.width)\r\n {\r\n width = baseFrame.width - frame.cutX;\r\n }\r\n\r\n if (frame.cutY + height > baseFrame.height)\r\n {\r\n height = baseFrame.height - frame.cutY;\r\n }\r\n\r\n frame.setSize(width, height, frame.cutX, frame.cutY);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Links the WebGL Textures used by this Dynamic Texture to its Render Target.\r\n *\r\n * This method is called internally by the Dynamic Texture when it is first created,\r\n * or if you change its size.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#setFromRenderTarget\r\n * @since 3.70.0\r\n *\r\n * @return {this} This Dynamic Texture instance.\r\n */\r\n setFromRenderTarget: function ()\r\n {\r\n var frame = this.get();\r\n var source = frame.source;\r\n var renderTarget = this.renderTarget;\r\n\r\n source.isRenderTexture = true;\r\n source.isGLTexture = true;\r\n\r\n source.glTexture = renderTarget.texture;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * If you are planning on using this Render Texture as a base texture for Sprite\r\n * Game Objects, then you should call this method with a value of `true` before\r\n * drawing anything to it, otherwise you will get inverted frames in WebGL.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#setIsSpriteTexture\r\n * @since 3.60.0\r\n *\r\n * @param {boolean} value - Is this Render Target being used as a Sprite Texture, or not?\r\n *\r\n * @return {this} This Dynamic Texture instance.\r\n */\r\n setIsSpriteTexture: function (value)\r\n {\r\n this.isSpriteTexture = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Fills this Dynamic Texture with the given color.\r\n *\r\n * By default it will fill the entire texture, however you can set it to fill a specific\r\n * rectangular area by using the x, y, width and height arguments.\r\n *\r\n * The color should be given in hex format, i.e. 0xff0000 for red, 0x00ff00 for green, etc.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#fill\r\n * @since 3.2.0\r\n *\r\n * @param {number} rgb - The color to fill this Dynamic Texture with, such as 0xff0000 for red.\r\n * @param {number} [alpha=1] - The alpha value used by the fill.\r\n * @param {number} [x=0] - The left coordinate of the fill rectangle.\r\n * @param {number} [y=0] - The top coordinate of the fill rectangle.\r\n * @param {number} [width=this.width] - The width of the fill rectangle.\r\n * @param {number} [height=this.height] - The height of the fill rectangle.\r\n *\r\n * @return {this} This Dynamic Texture instance.\r\n */\r\n fill: function (rgb, alpha, x, y, width, height)\r\n {\r\n var camera = this.camera;\r\n var renderer = this.renderer;\r\n\r\n if (alpha === undefined) { alpha = 1; }\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (width === undefined) { width = this.width; }\r\n if (height === undefined) { height = this.height; }\r\n\r\n var r = (rgb >> 16 & 0xFF);\r\n var g = (rgb >> 8 & 0xFF);\r\n var b = (rgb & 0xFF);\r\n\r\n var renderTarget = this.renderTarget;\r\n\r\n camera.preRender();\r\n\r\n if (renderTarget)\r\n {\r\n renderTarget.bind(true);\r\n\r\n var pipeline = this.pipeline.manager.set(this.pipeline);\r\n\r\n var sx = renderer.width / renderTarget.width;\r\n var sy = renderer.height / renderTarget.height;\r\n var ty = renderTarget.height - (y + height);\r\n\r\n pipeline.drawFillRect(\r\n x * sx, ty * sy, width * sx, height * sy,\r\n Utils.getTintFromFloats(b / 255, g / 255, r / 255, 1),\r\n alpha\r\n );\r\n\r\n renderTarget.unbind(true);\r\n }\r\n else\r\n {\r\n var ctx = this.context;\r\n\r\n renderer.setContext(ctx);\r\n\r\n ctx.globalCompositeOperation = 'source-over';\r\n ctx.fillStyle = 'rgba(' + r + ',' + g + ',' + b + ',' + alpha + ')';\r\n ctx.fillRect(x, y, width, height);\r\n\r\n renderer.setContext();\r\n }\r\n\r\n this.dirty = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Clears a portion or everything from this Dynamic Texture by erasing it and resetting it back to\r\n * a blank, transparent, texture. To clear an area, specify the `x`, `y`, `width` and `height`.\r\n * @method Phaser.Textures.DynamicTexture#clear\r\n * @since 3.2.0\r\n *\r\n * @param {number} [x=0] - The left coordinate of the fill rectangle.\r\n * @param {number} [y=0] - The top coordinate of the fill rectangle.\r\n * @param {number} [width=this.width] - The width of the fill rectangle.\r\n * @param {number} [height=this.height] - The height of the fill rectangle.\r\n * \r\n * @return {this} This Dynamic Texture instance.\r\n */\r\n clear: function (x, y, width, height)\r\n {\r\n if (this.dirty)\r\n {\r\n var ctx = this.context;\r\n \r\n var renderTarget = this.renderTarget;\r\n\r\n if (renderTarget)\r\n {\r\n renderTarget.clear(x, y, width, height);\r\n }\r\n else if (ctx)\r\n {\r\n if (x !== undefined && y !== undefined && width !== undefined && height !== undefined)\r\n {\r\n ctx.clearRect(x, y, width, height);\r\n }\r\n else\r\n {\r\n ctx.save();\r\n ctx.setTransform(1, 0, 0, 1, 0, 0);\r\n ctx.clearRect(0, 0, this.width, this.height);\r\n ctx.restore();\r\n }\r\n }\r\n\r\n this.dirty = false;\r\n }\r\n \r\n return this;\r\n },\r\n\r\n /**\r\n * Takes the given texture key and frame and then stamps it at the given\r\n * x and y coordinates. You can use the optional 'config' argument to provide\r\n * lots more options about how the stamp is applied, including the alpha,\r\n * tint, angle, scale and origin.\r\n *\r\n * By default, the frame will stamp on the x/y coordinates based on its center.\r\n *\r\n * If you wish to stamp from the top-left, set the config `originX` and\r\n * `originY` properties both to zero.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#stamp\r\n * @since 3.60.0\r\n *\r\n * @param {string} key - The key of the texture to be used, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - The name or index of the frame within the Texture. Set to `null` to skip this argument if not required.\r\n * @param {number} [x=0] - The x position to draw the frame at.\r\n * @param {number} [y=0] - The y position to draw the frame at.\r\n * @param {Phaser.Types.Textures.StampConfig} [config] - The stamp configuration object, allowing you to set the alpha, tint, angle, scale and origin of the stamp.\r\n *\r\n * @return {this} This Dynamic Texture instance.\r\n */\r\n stamp: function (key, frame, x, y, config)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n\r\n var alpha = GetFastValue(config, 'alpha', 1);\r\n var tint = GetFastValue(config, 'tint', 0xffffff);\r\n var angle = GetFastValue(config, 'angle', 0);\r\n var rotation = GetFastValue(config, 'rotation', 0);\r\n var scale = GetFastValue(config, 'scale', 1);\r\n var scaleX = GetFastValue(config, 'scaleX', scale);\r\n var scaleY = GetFastValue(config, 'scaleY', scale);\r\n var originX = GetFastValue(config, 'originX', 0.5);\r\n var originY = GetFastValue(config, 'originY', 0.5);\r\n var blendMode = GetFastValue(config, 'blendMode', 0);\r\n var erase = GetFastValue(config, 'erase', false);\r\n var skipBatch = GetFastValue(config, 'skipBatch', false);\r\n\r\n var stamp = this.manager.resetStamp(alpha, tint);\r\n\r\n stamp.setAngle(0);\r\n\r\n if (angle !== 0)\r\n {\r\n stamp.setAngle(angle);\r\n }\r\n else if (rotation !== 0)\r\n {\r\n stamp.setRotation(rotation);\r\n }\r\n\r\n stamp.setScale(scaleX, scaleY);\r\n stamp.setTexture(key, frame);\r\n stamp.setOrigin(originX, originY);\r\n stamp.setBlendMode(blendMode);\r\n\r\n if (erase)\r\n {\r\n this._eraseMode = true;\r\n }\r\n\r\n if (!skipBatch)\r\n {\r\n this.draw(stamp, x, y);\r\n }\r\n else\r\n {\r\n this.batchGameObject(stamp, x, y);\r\n }\r\n\r\n if (erase)\r\n {\r\n this._eraseMode = false;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Draws the given object, or an array of objects, to this Dynamic Texture using a blend mode of ERASE.\r\n * This has the effect of erasing any filled pixels present in the objects from this texture.\r\n *\r\n * It can accept any of the following:\r\n *\r\n * * Any renderable Game Object, such as a Sprite, Text, Graphics or TileSprite.\r\n * * Tilemap Layers.\r\n * * A Group. The contents of which will be iterated and drawn in turn.\r\n * * A Container. The contents of which will be iterated fully, and drawn in turn.\r\n * * A Scene Display List. Pass in `Scene.children` to draw the whole list.\r\n * * Another Dynamic Texture, or a Render Texture.\r\n * * A Texture Frame instance.\r\n * * A string. This is used to look-up the texture from the Texture Manager.\r\n *\r\n * Note: You cannot erase a Dynamic Texture from itself.\r\n *\r\n * If passing in a Group or Container it will only draw children that return `true`\r\n * when their `willRender()` method is called. I.e. a Container with 10 children,\r\n * 5 of which have `visible=false` will only draw the 5 visible ones.\r\n *\r\n * If passing in an array of Game Objects it will draw them all, regardless if\r\n * they pass a `willRender` check or not.\r\n *\r\n * You can pass in a string in which case it will look for a texture in the Texture\r\n * Manager matching that string, and draw the base frame.\r\n *\r\n * You can pass in the `x` and `y` coordinates to draw the objects at. The use of\r\n * the coordinates differ based on what objects are being drawn. If the object is\r\n * a Group, Container or Display List, the coordinates are _added_ to the positions\r\n * of the children. For all other types of object, the coordinates are exact.\r\n *\r\n * Calling this method causes the WebGL batch to flush, so it can write the texture\r\n * data to the framebuffer being used internally. The batch is flushed at the end,\r\n * after the entries have been iterated. So if you've a bunch of objects to draw,\r\n * try and pass them in an array in one single call, rather than making lots of\r\n * separate calls.\r\n *\r\n * If you are not planning on using this Dynamic Texture as a base texture for Sprite\r\n * Game Objects, then you should set `DynamicTexture.isSpriteTexture = false` before\r\n * calling this method, otherwise you will get vertically inverted frames in WebGL.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#erase\r\n * @since 3.16.0\r\n *\r\n * @param {any} entries - Any renderable Game Object, or Group, Container, Display List, Render Texture, Texture Frame, or an array of any of these.\r\n * @param {number} [x=0] - The x position to draw the Frame at, or the offset applied to the object.\r\n * @param {number} [y=0] - The y position to draw the Frame at, or the offset applied to the object.\r\n *\r\n * @return {this} This Dynamic Texture instance.\r\n */\r\n erase: function (entries, x, y)\r\n {\r\n this._eraseMode = true;\r\n\r\n this.draw(entries, x, y);\r\n\r\n this._eraseMode = false;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Draws the given object, or an array of objects, to this Dynamic Texture.\r\n *\r\n * It can accept any of the following:\r\n *\r\n * * Any renderable Game Object, such as a Sprite, Text, Graphics or TileSprite.\r\n * * Tilemap Layers.\r\n * * A Group. The contents of which will be iterated and drawn in turn.\r\n * * A Container. The contents of which will be iterated fully, and drawn in turn.\r\n * * A Scene Display List. Pass in `Scene.children` to draw the whole list.\r\n * * Another Dynamic Texture, or a Render Texture.\r\n * * A Texture Frame instance.\r\n * * A string. This is used to look-up the texture from the Texture Manager.\r\n *\r\n * Note 1: You cannot draw a Dynamic Texture to itself.\r\n *\r\n * Note 2: For Game Objects that have Post FX Pipelines, the pipeline _cannot_ be\r\n * used when drawn to this texture.\r\n *\r\n * If passing in a Group or Container it will only draw children that return `true`\r\n * when their `willRender()` method is called. I.e. a Container with 10 children,\r\n * 5 of which have `visible=false` will only draw the 5 visible ones.\r\n *\r\n * If passing in an array of Game Objects it will draw them all, regardless if\r\n * they pass a `willRender` check or not.\r\n *\r\n * You can pass in a string in which case it will look for a texture in the Texture\r\n * Manager matching that string, and draw the base frame. If you need to specify\r\n * exactly which frame to draw then use the method `drawFrame` instead.\r\n *\r\n * You can pass in the `x` and `y` coordinates to draw the objects at. The use of\r\n * the coordinates differ based on what objects are being drawn. If the object is\r\n * a Group, Container or Display List, the coordinates are _added_ to the positions\r\n * of the children. For all other types of object, the coordinates are exact.\r\n *\r\n * The `alpha` and `tint` values are only used by Texture Frames.\r\n * Game Objects use their own alpha and tint values when being drawn.\r\n *\r\n * Calling this method causes the WebGL batch to flush, so it can write the texture\r\n * data to the framebuffer being used internally. The batch is flushed at the end,\r\n * after the entries have been iterated. So if you've a bunch of objects to draw,\r\n * try and pass them in an array in one single call, rather than making lots of\r\n * separate calls.\r\n *\r\n * If you are not planning on using this Dynamic Texture as a base texture for Sprite\r\n * Game Objects, then you should set `DynamicTexture.isSpriteTexture = false` before\r\n * calling this method, otherwise you will get vertically inverted frames in WebGL.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#draw\r\n * @since 3.2.0\r\n *\r\n * @param {any} entries - Any renderable Game Object, or Group, Container, Display List, other Render Texture, Texture Frame or an array of any of these.\r\n * @param {number} [x=0] - The x position to draw the Frame at, or the offset applied to the object.\r\n * @param {number} [y=0] - The y position to draw the Frame at, or the offset applied to the object.\r\n * @param {number} [alpha=1] - The alpha value. Only used when drawing Texture Frames to this texture. Game Objects use their own alpha.\r\n * @param {number} [tint=0xffffff] - The tint color value. Only used when drawing Texture Frames to this texture. Game Objects use their own tint. WebGL only.\r\n *\r\n * @return {this} This Dynamic Texture instance.\r\n */\r\n draw: function (entries, x, y, alpha, tint)\r\n {\r\n this.beginDraw();\r\n this.batchDraw(entries, x, y, alpha, tint);\r\n this.endDraw();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Draws the Texture Frame to the Render Texture at the given position.\r\n *\r\n * Textures are referenced by their string-based keys, as stored in the Texture Manager.\r\n *\r\n * ```javascript\r\n * var rt = this.add.renderTexture(0, 0, 800, 600);\r\n * rt.drawFrame(key, frame);\r\n * ```\r\n *\r\n * You can optionally provide a position, alpha and tint value to apply to the frame\r\n * before it is drawn.\r\n *\r\n * Calling this method will cause a batch flush, so if you've got a stack of things to draw\r\n * in a tight loop, try using the `draw` method instead.\r\n *\r\n * If you need to draw a Sprite to this Render Texture, use the `draw` method instead.\r\n *\r\n * If you are not planning on using this Dynamic Texture as a base texture for Sprite\r\n * Game Objects, then you should set `DynamicTexture.isSpriteTexture = false` before\r\n * calling this method, otherwise you will get vertically inverted frames in WebGL.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#drawFrame\r\n * @since 3.12.0\r\n *\r\n * @param {string} key - The key of the texture to be used, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - The name or index of the frame within the Texture. Set to `null` to skip this argument if not required.\r\n * @param {number} [x=0] - The x position to draw the frame at.\r\n * @param {number} [y=0] - The y position to draw the frame at.\r\n * @param {number} [alpha=1] - The alpha value. Only used when drawing Texture Frames to this texture.\r\n * @param {number} [tint=0xffffff] - The tint color value. Only used when drawing Texture Frames to this texture. WebGL only.\r\n *\r\n * @return {this} This Dynamic Texture instance.\r\n */\r\n drawFrame: function (key, frame, x, y, alpha, tint)\r\n {\r\n this.beginDraw();\r\n this.batchDrawFrame(key, frame, x, y, alpha, tint);\r\n this.endDraw();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes the given Texture Frame and draws it to this Dynamic Texture as a fill pattern,\r\n * i.e. in a grid-layout based on the frame dimensions.\r\n *\r\n * Textures are referenced by their string-based keys, as stored in the Texture Manager.\r\n *\r\n * You can optionally provide a position, width, height, alpha and tint value to apply to\r\n * the frames before they are drawn. The position controls the top-left where the repeating\r\n * fill will start from. The width and height control the size of the filled area.\r\n *\r\n * The position can be negative if required, but the dimensions cannot.\r\n *\r\n * Calling this method will cause a batch flush by default. Use the `skipBatch` argument\r\n * to disable this if this call is part of a larger batch draw.\r\n *\r\n * If you are not planning on using this Dynamic Texture as a base texture for Sprite\r\n * Game Objects, then you should set `DynamicTexture.isSpriteTexture = false` before\r\n * calling this method, otherwise you will get vertically inverted frames in WebGL.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#repeat\r\n * @since 3.60.0\r\n *\r\n * @param {string} key - The key of the texture to be used, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - The name or index of the frame within the Texture. Set to `null` to skip this argument if not required.\r\n * @param {number} [x=0] - The x position to start drawing the frames from (can be negative to offset).\r\n * @param {number} [y=0] - The y position to start drawing the frames from (can be negative to offset).\r\n * @param {number} [width=this.width] - The width of the area to repeat the frame within. Defaults to the width of this Dynamic Texture.\r\n * @param {number} [height=this.height] - The height of the area to repeat the frame within. Defaults to the height of this Dynamic Texture.\r\n * @param {number} [alpha=1] - The alpha to use. Defaults to 1, no alpha.\r\n * @param {number} [tint=0xffffff] - WebGL only. The tint color to use. Leave as undefined, or 0xffffff to have no tint.\r\n * @param {boolean} [skipBatch=false] - Skip beginning and ending a batch with this call. Use if this is part of a bigger batched draw.\r\n *\r\n * @return {this} This Dynamic Texture instance.\r\n */\r\n repeat: function (key, frame, x, y, width, height, alpha, tint, skipBatch)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (width === undefined) { width = this.width; }\r\n if (height === undefined) { height = this.height; }\r\n if (alpha === undefined) { alpha = 1; }\r\n if (tint === undefined) { tint = 0xffffff; }\r\n if (skipBatch === undefined) { skipBatch = false; }\r\n\r\n if (key instanceof Frame)\r\n {\r\n frame = key;\r\n }\r\n else\r\n {\r\n frame = this.manager.getFrame(key, frame);\r\n }\r\n\r\n if (!frame)\r\n {\r\n return this;\r\n }\r\n\r\n var stamp = this.manager.resetStamp(alpha, tint);\r\n\r\n stamp.setFrame(frame);\r\n stamp.setOrigin(0);\r\n\r\n var frameWidth = frame.width;\r\n var frameHeight = frame.height;\r\n\r\n // Clamp to integer\r\n width = Math.floor(width);\r\n height = Math.floor(height);\r\n\r\n // How many stamps can we fit in horizontally and vertically?\r\n // We round this number up to allow for excess overflow\r\n var hmax = Math.ceil(width / frameWidth);\r\n var vmax = Math.ceil(height / frameHeight);\r\n\r\n // How much extra horizontal and vertical space do we have on the right/bottom?\r\n var hdiff = (hmax * frameWidth) - width;\r\n var vdiff = (vmax * frameHeight) - height;\r\n\r\n if (hdiff > 0)\r\n {\r\n hdiff = frameWidth - hdiff;\r\n }\r\n\r\n if (vdiff > 0)\r\n {\r\n vdiff = frameHeight - vdiff;\r\n }\r\n\r\n // x/y may be negative\r\n\r\n if (x < 0)\r\n {\r\n hmax += Math.ceil(Math.abs(x) / frameWidth);\r\n }\r\n\r\n if (y < 0)\r\n {\r\n vmax += Math.ceil(Math.abs(y) / frameHeight);\r\n }\r\n\r\n var dx = x;\r\n var dy = y;\r\n\r\n var useCrop = false;\r\n var cropRect = this.manager.stampCrop.setTo(0, 0, frameWidth, frameHeight);\r\n\r\n if (!skipBatch)\r\n {\r\n this.beginDraw();\r\n }\r\n\r\n for (var ty = 0; ty < vmax; ty++)\r\n {\r\n // Negative offset?\r\n if (dy + frameHeight < 0)\r\n {\r\n // We can't see it, as it's off the top\r\n dy += frameHeight;\r\n continue;\r\n }\r\n\r\n for (var tx = 0; tx < hmax; tx++)\r\n {\r\n useCrop = false;\r\n\r\n // Negative offset?\r\n if (dx + frameWidth < 0)\r\n {\r\n // We can't see it, as it's fully off the left\r\n dx += frameWidth;\r\n continue;\r\n }\r\n else if (dx < 0)\r\n {\r\n // Partially off the left\r\n useCrop = true;\r\n cropRect.width = (frameWidth + dx);\r\n cropRect.x = frameWidth - cropRect.width;\r\n }\r\n\r\n // Negative vertical offset\r\n if (dy < 0)\r\n {\r\n // Partially off the top\r\n useCrop = true;\r\n cropRect.height = (frameHeight + dy);\r\n cropRect.y = frameHeight - cropRect.height;\r\n }\r\n\r\n if (hdiff > 0 && tx === hmax - 1)\r\n {\r\n useCrop = true;\r\n cropRect.width = hdiff;\r\n }\r\n\r\n if (vdiff > 0 && ty === vmax - 1)\r\n {\r\n useCrop = true;\r\n cropRect.height = vdiff;\r\n }\r\n\r\n if (useCrop)\r\n {\r\n stamp.setCrop(cropRect);\r\n }\r\n\r\n this.batchGameObject(stamp, dx, dy);\r\n\r\n // Reset crop\r\n stamp.isCropped = false;\r\n\r\n cropRect.setTo(0, 0, frameWidth, frameHeight);\r\n\r\n dx += frameWidth;\r\n }\r\n\r\n dx = x;\r\n dy += frameHeight;\r\n }\r\n\r\n if (!skipBatch)\r\n {\r\n this.endDraw();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Use this method if you need to batch draw a large number of Game Objects to\r\n * this Dynamic Texture in a single pass, or on a frequent basis. This is especially\r\n * useful under WebGL, however, if your game is using Canvas only, it will not make\r\n * any speed difference in that situation.\r\n *\r\n * This method starts the beginning of a batched draw, unless one is already open.\r\n *\r\n * Batched drawing is faster than calling `draw` in loop, but you must be careful\r\n * to manage the flow of code and remember to call `endDraw()` when you're finished.\r\n *\r\n * If you don't need to draw large numbers of objects it's much safer and easier\r\n * to use the `draw` method instead.\r\n *\r\n * The flow should be:\r\n *\r\n * ```javascript\r\n * // Call once:\r\n * DynamicTexture.beginDraw();\r\n *\r\n * // repeat n times:\r\n * DynamicTexture.batchDraw();\r\n * // or\r\n * DynamicTexture.batchDrawFrame();\r\n *\r\n * // Call once:\r\n * DynamicTexture.endDraw();\r\n * ```\r\n *\r\n * Do not call any methods other than `batchDraw`, `batchDrawFrame`, or `endDraw` once you\r\n * have started a batch. Also, be very careful not to destroy this Dynamic Texture while the\r\n * batch is still open. Doing so will cause a run-time error in the WebGL Renderer.\r\n *\r\n * You can use the `DynamicTexture.isDrawing` boolean property to tell if a batch is\r\n * currently open, or not.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#beginDraw\r\n * @since 3.50.0\r\n *\r\n * @return {this} This Dynamic Texture instance.\r\n */\r\n beginDraw: function ()\r\n {\r\n if (!this.isDrawing)\r\n {\r\n var camera = this.camera;\r\n var renderer = this.renderer;\r\n var renderTarget = this.renderTarget;\r\n\r\n camera.preRender();\r\n\r\n if (renderTarget)\r\n {\r\n renderer.beginCapture(renderTarget.width, renderTarget.height);\r\n }\r\n else\r\n {\r\n renderer.setContext(this.context);\r\n }\r\n\r\n this.isDrawing = true;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Use this method if you have already called `beginDraw` and need to batch\r\n * draw a large number of objects to this Dynamic Texture.\r\n *\r\n * This method batches the drawing of the given objects to this texture,\r\n * without causing a WebGL bind or batch flush for each one.\r\n *\r\n * It is faster than calling `draw`, but you must be careful to manage the\r\n * flow of code and remember to call `endDraw()`. If you don't need to draw large\r\n * numbers of objects it's much safer and easier to use the `draw` method instead.\r\n *\r\n * The flow should be:\r\n *\r\n * ```javascript\r\n * // Call once:\r\n * DynamicTexture.beginDraw();\r\n *\r\n * // repeat n times:\r\n * DynamicTexture.batchDraw();\r\n * // or\r\n * DynamicTexture.batchDrawFrame();\r\n *\r\n * // Call once:\r\n * DynamicTexture.endDraw();\r\n * ```\r\n *\r\n * Do not call any methods other than `batchDraw`, `batchDrawFrame`, or `endDraw` once you\r\n * have started a batch. Also, be very careful not to destroy this Dynamic Texture while the\r\n * batch is still open. Doing so will cause a run-time error in the WebGL Renderer.\r\n *\r\n * You can use the `DynamicTexture.isDrawing` boolean property to tell if a batch is\r\n * currently open, or not.\r\n *\r\n * This method can accept any of the following:\r\n *\r\n * * Any renderable Game Object, such as a Sprite, Text, Graphics or TileSprite.\r\n * * Tilemap Layers.\r\n * * A Group. The contents of which will be iterated and drawn in turn.\r\n * * A Container. The contents of which will be iterated fully, and drawn in turn.\r\n * * A Scene's Display List. Pass in `Scene.children` to draw the whole list.\r\n * * Another Dynamic Texture or Render Texture.\r\n * * A Texture Frame instance.\r\n * * A string. This is used to look-up a texture from the Texture Manager.\r\n *\r\n * Note: You cannot draw a Dynamic Texture to itself.\r\n *\r\n * If passing in a Group or Container it will only draw children that return `true`\r\n * when their `willRender()` method is called. I.e. a Container with 10 children,\r\n * 5 of which have `visible=false` will only draw the 5 visible ones.\r\n *\r\n * If passing in an array of Game Objects it will draw them all, regardless if\r\n * they pass a `willRender` check or not.\r\n *\r\n * You can pass in a string in which case it will look for a texture in the Texture\r\n * Manager matching that string, and draw the base frame. If you need to specify\r\n * exactly which frame to draw then use the method `drawFrame` instead.\r\n *\r\n * You can pass in the `x` and `y` coordinates to draw the objects at. The use of\r\n * the coordinates differ based on what objects are being drawn. If the object is\r\n * a Group, Container or Display List, the coordinates are _added_ to the positions\r\n * of the children. For all other types of object, the coordinates are exact.\r\n *\r\n * The `alpha` and `tint` values are only used by Texture Frames.\r\n * Game Objects use their own alpha and tint values when being drawn.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#batchDraw\r\n * @since 3.50.0\r\n *\r\n * @param {any} entries - Any renderable Game Object, or Group, Container, Display List, other Dynamic or Texture, Texture Frame or an array of any of these.\r\n * @param {number} [x=0] - The x position to draw the Frame at, or the offset applied to the object.\r\n * @param {number} [y=0] - The y position to draw the Frame at, or the offset applied to the object.\r\n * @param {number} [alpha=1] - The alpha value. Only used when drawing Texture Frames to this texture. Game Objects use their own alpha.\r\n * @param {number} [tint=0xffffff] - The tint color value. Only used when drawing Texture Frames to this texture. Game Objects use their own tint. WebGL only.\r\n *\r\n * @return {this} This Dynamic Texture instance.\r\n */\r\n batchDraw: function (entries, x, y, alpha, tint)\r\n {\r\n if (!Array.isArray(entries))\r\n {\r\n entries = [ entries ];\r\n }\r\n\r\n this.batchList(entries, x, y, alpha, tint);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Use this method if you have already called `beginDraw` and need to batch\r\n * draw a large number of texture frames to this Dynamic Texture.\r\n *\r\n * This method batches the drawing of the given frames to this Dynamic Texture,\r\n * without causing a WebGL bind or batch flush for each one.\r\n *\r\n * It is faster than calling `drawFrame`, but you must be careful to manage the\r\n * flow of code and remember to call `endDraw()`. If you don't need to draw large\r\n * numbers of frames it's much safer and easier to use the `drawFrame` method instead.\r\n *\r\n * The flow should be:\r\n *\r\n * ```javascript\r\n * // Call once:\r\n * DynamicTexture.beginDraw();\r\n *\r\n * // repeat n times:\r\n * DynamicTexture.batchDraw();\r\n * // or\r\n * DynamicTexture.batchDrawFrame();\r\n *\r\n * // Call once:\r\n * DynamicTexture.endDraw();\r\n * ```\r\n *\r\n * Do not call any methods other than `batchDraw`, `batchDrawFrame`, or `endDraw` once you\r\n * have started a batch. Also, be very careful not to destroy this Dynamic Texture while the\r\n * batch is still open. Doing so will cause a run-time error in the WebGL Renderer.\r\n *\r\n * You can use the `DynamicTexture.isDrawing` boolean property to tell if a batch is\r\n * currently open, or not.\r\n *\r\n * Textures are referenced by their string-based keys, as stored in the Texture Manager.\r\n *\r\n * You can optionally provide a position, alpha and tint value to apply to the frame\r\n * before it is drawn.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#batchDrawFrame\r\n * @since 3.50.0\r\n *\r\n * @param {string} key - The key of the texture to be used, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - The name or index of the frame within the Texture.\r\n * @param {number} [x=0] - The x position to draw the frame at.\r\n * @param {number} [y=0] - The y position to draw the frame at.\r\n * @param {number} [alpha=1] - The alpha value. Only used when drawing Texture Frames to this texture. Game Objects use their own alpha.\r\n * @param {number} [tint=0xffffff] - The tint color value. Only used when drawing Texture Frames to this texture. Game Objects use their own tint. WebGL only.\r\n *\r\n * @return {this} This Dynamic Texture instance.\r\n */\r\n batchDrawFrame: function (key, frame, x, y, alpha, tint)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (alpha === undefined) { alpha = 1; }\r\n if (tint === undefined) { tint = 0xffffff; }\r\n\r\n var textureFrame = this.manager.getFrame(key, frame);\r\n\r\n if (textureFrame)\r\n {\r\n if (this.renderTarget)\r\n {\r\n this.pipeline.batchTextureFrame(textureFrame, x, y, tint, alpha, this.camera.matrix, null);\r\n }\r\n else\r\n {\r\n this.batchTextureFrame(textureFrame, x, y, alpha, tint);\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Use this method to finish batch drawing to this Dynamic Texture.\r\n *\r\n * Doing so will stop the WebGL Renderer from capturing draws and then blit the\r\n * framebuffer to the Render Target owned by this texture.\r\n *\r\n * Calling this method without first calling `beginDraw` will have no effect.\r\n *\r\n * Batch drawing is faster than calling `draw`, but you must be careful to manage the\r\n * flow of code and remember to call `endDraw()` when you're finished.\r\n *\r\n * If you don't need to draw large numbers of objects it's much safer and easier\r\n * to use the `draw` method instead.\r\n *\r\n * The flow should be:\r\n *\r\n * ```javascript\r\n * // Call once:\r\n * DynamicTexture.beginDraw();\r\n *\r\n * // repeat n times:\r\n * DynamicTexture.batchDraw();\r\n * // or\r\n * DynamicTexture.batchDrawFrame();\r\n *\r\n * // Call once:\r\n * DynamicTexture.endDraw();\r\n * ```\r\n *\r\n * Do not call any methods other than `batchDraw`, `batchDrawFrame`, or `endDraw` once you\r\n * have started a batch. Also, be very careful not to destroy this Dynamic Texture while the\r\n * batch is still open. Doing so will cause a run-time error in the WebGL Renderer.\r\n *\r\n * You can use the `DynamicTexture.isDrawing` boolean property to tell if a batch is\r\n * currently open, or not.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#endDraw\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [erase=false] - Draws all objects in this batch using a blend mode of ERASE. This has the effect of erasing any filled pixels in the objects being drawn.\r\n *\r\n * @return {this} This Dynamic Texture instance.\r\n */\r\n endDraw: function (erase)\r\n {\r\n if (erase === undefined) { erase = this._eraseMode; }\r\n\r\n if (this.isDrawing)\r\n {\r\n var renderer = this.renderer;\r\n\r\n var renderTarget = this.renderTarget;\r\n\r\n if (renderTarget)\r\n {\r\n var canvasTarget = renderer.endCapture();\r\n\r\n var util = renderer.pipelines.setUtility();\r\n\r\n util.blitFrame(canvasTarget, renderTarget, 1, false, false, erase, this.isSpriteTexture);\r\n\r\n renderer.resetScissor();\r\n renderer.resetViewport();\r\n }\r\n else\r\n {\r\n renderer.setContext();\r\n }\r\n\r\n this.dirty = true;\r\n this.isDrawing = false;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal method that handles the drawing of an array of children.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#batchList\r\n * @private\r\n * @since 3.12.0\r\n *\r\n * @param {array} children - The array of Game Objects, Textures or Frames to draw.\r\n * @param {number} [x=0] - The x position to offset the Game Object by.\r\n * @param {number} [y=0] - The y position to offset the Game Object by.\r\n * @param {number} [alpha=1] - The alpha value. Only used when drawing Texture Frames to this texture. Game Objects use their own alpha.\r\n * @param {number} [tint=0xffffff] - The tint color value. Only used when drawing Texture Frames to this texture. Game Objects use their own tint. WebGL only.\r\n */\r\n batchList: function (children, x, y, alpha, tint)\r\n {\r\n var len = children.length;\r\n\r\n if (len === 0)\r\n {\r\n return;\r\n }\r\n\r\n for (var i = 0; i < len; i++)\r\n {\r\n var entry = children[i];\r\n\r\n if (!entry || entry === this)\r\n {\r\n continue;\r\n }\r\n\r\n if (entry.renderWebGL || entry.renderCanvas)\r\n {\r\n // Game Objects\r\n this.batchGameObject(entry, x, y);\r\n }\r\n else if (entry.isParent || entry.list)\r\n {\r\n // Groups / Display Lists\r\n this.batchGroup(entry.getChildren(), x, y);\r\n }\r\n else if (typeof entry === 'string')\r\n {\r\n // Texture key\r\n this.batchTextureFrameKey(entry, null, x, y, alpha, tint);\r\n }\r\n else if (entry instanceof Frame)\r\n {\r\n // Texture Frame instance\r\n this.batchTextureFrame(entry, x, y, alpha, tint);\r\n }\r\n else if (Array.isArray(entry))\r\n {\r\n // Another Array\r\n this.batchList(entry, x, y, alpha, tint);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Internal method that handles drawing the contents of a Phaser Group to this Dynamic Texture.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#batchGroup\r\n * @private\r\n * @since 3.12.0\r\n *\r\n * @param {array} children - The array of Game Objects to draw.\r\n * @param {number} [x=0] - The x position to offset the Game Objects by.\r\n * @param {number} [y=0] - The y position to offset the Game Objects by.\r\n */\r\n batchGroup: function (children, x, y)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n\r\n for (var i = 0; i < children.length; i++)\r\n {\r\n var entry = children[i];\r\n\r\n if (entry.willRender(this.camera))\r\n {\r\n this.batchGameObject(entry, entry.x + x, entry.y + y);\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Internal method that handles drawing a single Phaser Game Object to this Dynamic Texture.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#batchGameObject\r\n * @private\r\n * @since 3.12.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object to draw.\r\n * @param {number} [x=0] - The x position to draw the Game Object at.\r\n * @param {number} [y=0] - The y position to draw the Game Object at.\r\n */\r\n batchGameObject: function (gameObject, x, y)\r\n {\r\n if (x === undefined) { x = gameObject.x; }\r\n if (y === undefined) { y = gameObject.y; }\r\n\r\n var prevX = gameObject.x;\r\n var prevY = gameObject.y;\r\n\r\n var camera = this.camera;\r\n var renderer = this.renderer;\r\n var eraseMode = this._eraseMode;\r\n\r\n var mask = gameObject.mask;\r\n\r\n gameObject.setPosition(x, y);\r\n\r\n if (this.canvas)\r\n {\r\n if (eraseMode)\r\n {\r\n var blendMode = gameObject.blendMode;\r\n\r\n gameObject.blendMode = BlendModes.ERASE;\r\n }\r\n\r\n if (mask)\r\n {\r\n mask.preRenderCanvas(renderer, gameObject, camera);\r\n }\r\n\r\n gameObject.renderCanvas(renderer, gameObject, camera, null);\r\n\r\n if (mask)\r\n {\r\n mask.postRenderCanvas(renderer, gameObject, camera);\r\n }\r\n\r\n if (eraseMode)\r\n {\r\n gameObject.blendMode = blendMode;\r\n }\r\n }\r\n else if (renderer)\r\n {\r\n if (mask)\r\n {\r\n mask.preRenderWebGL(renderer, gameObject, camera);\r\n }\r\n\r\n if (!eraseMode)\r\n {\r\n renderer.setBlendMode(gameObject.blendMode);\r\n }\r\n\r\n gameObject.renderWebGL(renderer, gameObject, camera);\r\n\r\n if (mask)\r\n {\r\n mask.postRenderWebGL(renderer, camera, this.renderTarget);\r\n }\r\n }\r\n\r\n gameObject.setPosition(prevX, prevY);\r\n },\r\n\r\n /**\r\n * Internal method that handles the drawing a Texture Frame based on its key.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#batchTextureFrameKey\r\n * @private\r\n * @since 3.12.0\r\n *\r\n * @param {string} key - The key of the texture to be used, as stored in the Texture Manager.\r\n * @param {(string|number)} [frame] - The name or index of the frame within the Texture.\r\n * @param {number} [x=0] - The x position to offset the Game Object by.\r\n * @param {number} [y=0] - The y position to offset the Game Object by.\r\n * @param {number} [alpha=1] - The alpha value. Only used when drawing Texture Frames to this texture. Game Objects use their own alpha.\r\n * @param {number} [tint=0xffffff] - The tint color value. Only used when drawing Texture Frames to this texture. Game Objects use their own tint. WebGL only.\r\n */\r\n batchTextureFrameKey: function (key, frame, x, y, alpha, tint)\r\n {\r\n var textureFrame = this.manager.getFrame(key, frame);\r\n\r\n if (textureFrame)\r\n {\r\n this.batchTextureFrame(textureFrame, x, y, alpha, tint);\r\n }\r\n },\r\n\r\n /**\r\n * Internal method that handles the drawing of a Texture Frame to this Dynamic Texture.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#batchTextureFrame\r\n * @private\r\n * @since 3.12.0\r\n *\r\n * @param {Phaser.Textures.Frame} textureFrame - The Texture Frame to draw.\r\n * @param {number} [x=0] - The x position to draw the Frame at.\r\n * @param {number} [y=0] - The y position to draw the Frame at.\r\n * @param {number} [alpha=1] - The alpha value. Only used when drawing Texture Frames to this texture. Game Objects use their own alpha.\r\n * @param {number} [tint=0xffffff] - The tint color value. Only used when drawing Texture Frames to this texture. Game Objects use their own tint. WebGL only.\r\n */\r\n batchTextureFrame: function (textureFrame, x, y, alpha, tint)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (alpha === undefined) { alpha = 1; }\r\n if (tint === undefined) { tint = 0xffffff; }\r\n\r\n var matrix = this.camera.matrix;\r\n var renderTarget = this.renderTarget;\r\n\r\n if (renderTarget)\r\n {\r\n this.pipeline.batchTextureFrame(textureFrame, x, y, tint, alpha, matrix, null);\r\n }\r\n else\r\n {\r\n var ctx = this.context;\r\n var cd = textureFrame.canvasData;\r\n var source = textureFrame.source.image;\r\n\r\n ctx.save();\r\n\r\n ctx.globalCompositeOperation = (this._eraseMode) ? 'destination-out' : 'source-over';\r\n\r\n ctx.globalAlpha = alpha;\r\n\r\n matrix.setToContext(ctx);\r\n\r\n if (cd.width > 0 && cd.height > 0)\r\n {\r\n ctx.drawImage(source, cd.x, cd.y, cd.width, cd.height, x, y, cd.width, cd.height);\r\n }\r\n\r\n ctx.restore();\r\n }\r\n },\r\n\r\n /**\r\n * Takes a snapshot of the given area of this Dynamic Texture.\r\n *\r\n * The snapshot is taken immediately, but the results are returned via the given callback.\r\n *\r\n * To capture the whole Dynamic Texture see the `snapshot` method.\r\n * To capture just a specific pixel, see the `snapshotPixel` method.\r\n *\r\n * Snapshots work by using the WebGL `readPixels` feature to grab every pixel from the frame buffer\r\n * into an ArrayBufferView. It then parses this, copying the contents to a temporary Canvas and finally\r\n * creating an Image object from it, which is the image returned to the callback provided.\r\n *\r\n * All in all, this is a computationally expensive and blocking process, which gets more expensive\r\n * the larger the resolution this Dynamic Texture has, so please be careful how you employ this in your game.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#snapshotArea\r\n * @since 3.19.0\r\n *\r\n * @param {number} x - The x coordinate to grab from.\r\n * @param {number} y - The y coordinate to grab from.\r\n * @param {number} width - The width of the area to grab.\r\n * @param {number} height - The height of the area to grab.\r\n * @param {Phaser.Types.Renderer.Snapshot.SnapshotCallback} callback - The Function to invoke after the snapshot image is created.\r\n * @param {string} [type='image/png'] - The format of the image to create, usually `image/png` or `image/jpeg`.\r\n * @param {number} [encoderOptions=0.92] - The image quality, between 0 and 1. Used for image formats with lossy compression, such as `image/jpeg`.\r\n *\r\n * @return {this} This Dynamic Texture instance.\r\n */\r\n snapshotArea: function (x, y, width, height, callback, type, encoderOptions)\r\n {\r\n if (this.renderTarget)\r\n {\r\n this.renderer.snapshotFramebuffer(this.renderTarget.framebuffer, this.width, this.height, callback, false, x, y, width, height, type, encoderOptions);\r\n }\r\n else\r\n {\r\n this.renderer.snapshotCanvas(this.canvas, callback, false, x, y, width, height, type, encoderOptions);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes a snapshot of the whole of this Dynamic Texture.\r\n *\r\n * The snapshot is taken immediately, but the results are returned via the given callback.\r\n *\r\n * To capture a portion of this Dynamic Texture see the `snapshotArea` method.\r\n * To capture just a specific pixel, see the `snapshotPixel` method.\r\n *\r\n * Snapshots work by using the WebGL `readPixels` feature to grab every pixel from the frame buffer\r\n * into an ArrayBufferView. It then parses this, copying the contents to a temporary Canvas and finally\r\n * creating an Image object from it, which is the image returned to the callback provided.\r\n *\r\n * All in all, this is a computationally expensive and blocking process, which gets more expensive\r\n * the larger the resolution this Dynamic Texture has, so please be careful how you employ this in your game.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#snapshot\r\n * @since 3.19.0\r\n *\r\n * @param {Phaser.Types.Renderer.Snapshot.SnapshotCallback} callback - The Function to invoke after the snapshot image is created.\r\n * @param {string} [type='image/png'] - The format of the image to create, usually `image/png` or `image/jpeg`.\r\n * @param {number} [encoderOptions=0.92] - The image quality, between 0 and 1. Used for image formats with lossy compression, such as `image/jpeg`.\r\n *\r\n * @return {this} This Dynamic Texture instance.\r\n */\r\n snapshot: function (callback, type, encoderOptions)\r\n {\r\n return this.snapshotArea(0, 0, this.width, this.height, callback, type, encoderOptions);\r\n },\r\n\r\n /**\r\n * Takes a snapshot of the given pixel from this Dynamic Texture.\r\n *\r\n * The snapshot is taken immediately, but the results are returned via the given callback.\r\n *\r\n * To capture the whole Dynamic Texture see the `snapshot` method.\r\n * To capture a portion of this Dynamic Texture see the `snapshotArea` method.\r\n *\r\n * Unlike the two other snapshot methods, this one will send your callback a `Color` object\r\n * containing the color data for the requested pixel. It doesn't need to create an internal\r\n * Canvas or Image object, so is a lot faster to execute, using less memory than the other snapshot methods.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#snapshotPixel\r\n * @since 3.19.0\r\n *\r\n * @param {number} x - The x coordinate of the pixel to get.\r\n * @param {number} y - The y coordinate of the pixel to get.\r\n * @param {Phaser.Types.Renderer.Snapshot.SnapshotCallback} callback - The Function to invoke after the snapshot pixel data is extracted.\r\n *\r\n * @return {this} This Dynamic Texture instance.\r\n */\r\n snapshotPixel: function (x, y, callback)\r\n {\r\n return this.snapshotArea(x, y, 1, 1, callback, 'pixel');\r\n },\r\n\r\n /**\r\n * Returns the underlying WebGLTextureWrapper, if not running in Canvas mode.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#getWebGLTexture\r\n * @since 3.60.0\r\n *\r\n * @return {?Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} The underlying WebGLTextureWrapper, if not running in Canvas mode.\r\n */\r\n getWebGLTexture: function ()\r\n {\r\n if (this.renderTarget)\r\n {\r\n return this.renderTarget.texture;\r\n }\r\n },\r\n\r\n /**\r\n * Renders this Dynamic Texture onto the Stamp Game Object as a BitmapMask.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#renderWebGL\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.GameObjects.Image} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\n renderWebGL: function (renderer, src, camera, parentMatrix)\r\n {\r\n var stamp = this.manager.resetStamp();\r\n\r\n stamp.setTexture(this);\r\n stamp.setOrigin(0);\r\n\r\n stamp.renderWebGL(renderer, stamp, camera, parentMatrix);\r\n },\r\n\r\n /**\r\n * This is a NOOP method. Bitmap Masks are not supported by the Canvas Renderer.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#renderCanvas\r\n * @since 3.60.0\r\n *\r\n * @param {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)} renderer - The Canvas Renderer which would be rendered to.\r\n * @param {Phaser.GameObjects.GameObject} mask - The masked Game Object which would be rendered.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to render to.\r\n */\r\n renderCanvas: function ()\r\n {\r\n // NOOP\r\n },\r\n\r\n /**\r\n * Destroys this Texture and releases references to its sources and frames.\r\n *\r\n * @method Phaser.Textures.DynamicTexture#destroy\r\n * @since 3.60.0\r\n */\r\n destroy: function ()\r\n {\r\n var stamp = this.manager.stamp;\r\n\r\n if (stamp && stamp.texture === this)\r\n {\r\n this.manager.resetStamp();\r\n }\r\n\r\n Texture.prototype.destroy.call(this);\r\n\r\n CanvasPool.remove(this.canvas);\r\n\r\n if (this.renderTarget)\r\n {\r\n this.renderTarget.destroy();\r\n }\r\n\r\n this.camera.destroy();\r\n\r\n this.canvas = null;\r\n this.context = null;\r\n this.renderer = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = DynamicTexture;\r\n\n\n/***/ }),\n\n/***/ 4327:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Clamp = __webpack_require__(45319);\r\nvar Extend = __webpack_require__(79291);\r\n\r\n/**\r\n * @classdesc\r\n * A Frame is a section of a Texture.\r\n *\r\n * @class Frame\r\n * @memberof Phaser.Textures\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Textures.Texture} texture - The Texture this Frame is a part of.\r\n * @param {(number|string)} name - The name of this Frame. The name is unique within the Texture.\r\n * @param {number} sourceIndex - The index of the TextureSource that this Frame is a part of.\r\n * @param {number} x - The x coordinate of the top-left of this Frame.\r\n * @param {number} y - The y coordinate of the top-left of this Frame.\r\n * @param {number} width - The width of this Frame.\r\n * @param {number} height - The height of this Frame.\r\n */\r\nvar Frame = new Class({\r\n\r\n initialize:\r\n\r\n function Frame (texture, name, sourceIndex, x, y, width, height)\r\n {\r\n /**\r\n * The Texture this Frame is a part of.\r\n *\r\n * @name Phaser.Textures.Frame#texture\r\n * @type {Phaser.Textures.Texture}\r\n * @since 3.0.0\r\n */\r\n this.texture = texture;\r\n\r\n /**\r\n * The name of this Frame.\r\n * The name is unique within the Texture.\r\n *\r\n * @name Phaser.Textures.Frame#name\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.name = name;\r\n\r\n /**\r\n * The TextureSource this Frame is part of.\r\n *\r\n * @name Phaser.Textures.Frame#source\r\n * @type {Phaser.Textures.TextureSource}\r\n * @since 3.0.0\r\n */\r\n this.source = texture.source[sourceIndex];\r\n\r\n /**\r\n * The index of the TextureSource in the Texture sources array.\r\n *\r\n * @name Phaser.Textures.Frame#sourceIndex\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.sourceIndex = sourceIndex;\r\n\r\n /**\r\n * X position within the source image to cut from.\r\n *\r\n * @name Phaser.Textures.Frame#cutX\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.cutX;\r\n\r\n /**\r\n * Y position within the source image to cut from.\r\n *\r\n * @name Phaser.Textures.Frame#cutY\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.cutY;\r\n\r\n /**\r\n * The width of the area in the source image to cut.\r\n *\r\n * @name Phaser.Textures.Frame#cutWidth\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.cutWidth;\r\n\r\n /**\r\n * The height of the area in the source image to cut.\r\n *\r\n * @name Phaser.Textures.Frame#cutHeight\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.cutHeight;\r\n\r\n /**\r\n * The X rendering offset of this Frame, taking trim into account.\r\n *\r\n * @name Phaser.Textures.Frame#x\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.x = 0;\r\n\r\n /**\r\n * The Y rendering offset of this Frame, taking trim into account.\r\n *\r\n * @name Phaser.Textures.Frame#y\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.y = 0;\r\n\r\n /**\r\n * The rendering width of this Frame, taking trim into account.\r\n *\r\n * @name Phaser.Textures.Frame#width\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.width;\r\n\r\n /**\r\n * The rendering height of this Frame, taking trim into account.\r\n *\r\n * @name Phaser.Textures.Frame#height\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.height;\r\n\r\n /**\r\n * Half the width, floored.\r\n * Precalculated for the renderer.\r\n *\r\n * @name Phaser.Textures.Frame#halfWidth\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.halfWidth;\r\n\r\n /**\r\n * Half the height, floored.\r\n * Precalculated for the renderer.\r\n *\r\n * @name Phaser.Textures.Frame#halfHeight\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.halfHeight;\r\n\r\n /**\r\n * The x center of this frame, floored.\r\n *\r\n * @name Phaser.Textures.Frame#centerX\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.centerX;\r\n\r\n /**\r\n * The y center of this frame, floored.\r\n *\r\n * @name Phaser.Textures.Frame#centerY\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.centerY;\r\n\r\n /**\r\n * The horizontal pivot point of this Frame.\r\n *\r\n * @name Phaser.Textures.Frame#pivotX\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.pivotX = 0;\r\n\r\n /**\r\n * The vertical pivot point of this Frame.\r\n *\r\n * @name Phaser.Textures.Frame#pivotY\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.pivotY = 0;\r\n\r\n /**\r\n * Does this Frame have a custom pivot point?\r\n *\r\n * @name Phaser.Textures.Frame#customPivot\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.customPivot = false;\r\n\r\n /**\r\n * **CURRENTLY UNSUPPORTED**\r\n *\r\n * Is this frame is rotated or not in the Texture?\r\n * Rotation allows you to use rotated frames in texture atlas packing.\r\n * It has nothing to do with Sprite rotation.\r\n *\r\n * @name Phaser.Textures.Frame#rotated\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.rotated = false;\r\n\r\n /**\r\n * Over-rides the Renderer setting.\r\n * -1 = use Renderer Setting\r\n * 0 = No rounding\r\n * 1 = Round\r\n *\r\n * @name Phaser.Textures.Frame#autoRound\r\n * @type {number}\r\n * @default -1\r\n * @since 3.0.0\r\n */\r\n this.autoRound = -1;\r\n\r\n /**\r\n * Any Frame specific custom data can be stored here.\r\n *\r\n * @name Phaser.Textures.Frame#customData\r\n * @type {object}\r\n * @since 3.0.0\r\n */\r\n this.customData = {};\r\n\r\n /**\r\n * WebGL UV u0 value.\r\n *\r\n * @name Phaser.Textures.Frame#u0\r\n * @type {number}\r\n * @default 0\r\n * @since 3.11.0\r\n */\r\n this.u0 = 0;\r\n\r\n /**\r\n * WebGL UV v0 value.\r\n *\r\n * @name Phaser.Textures.Frame#v0\r\n * @type {number}\r\n * @default 0\r\n * @since 3.11.0\r\n */\r\n this.v0 = 0;\r\n\r\n /**\r\n * WebGL UV u1 value.\r\n *\r\n * @name Phaser.Textures.Frame#u1\r\n * @type {number}\r\n * @default 0\r\n * @since 3.11.0\r\n */\r\n this.u1 = 0;\r\n\r\n /**\r\n * WebGL UV v1 value.\r\n *\r\n * @name Phaser.Textures.Frame#v1\r\n * @type {number}\r\n * @default 0\r\n * @since 3.11.0\r\n */\r\n this.v1 = 0;\r\n\r\n /**\r\n * The un-modified source frame, trim and UV data.\r\n *\r\n * @name Phaser.Textures.Frame#data\r\n * @type {object}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this.data = {\r\n cut: {\r\n x: 0,\r\n y: 0,\r\n w: 0,\r\n h: 0,\r\n r: 0,\r\n b: 0\r\n },\r\n trim: false,\r\n sourceSize: {\r\n w: 0,\r\n h: 0\r\n },\r\n spriteSourceSize: {\r\n x: 0,\r\n y: 0,\r\n w: 0,\r\n h: 0,\r\n r: 0,\r\n b: 0\r\n },\r\n radius: 0,\r\n drawImage: {\r\n x: 0,\r\n y: 0,\r\n width: 0,\r\n height: 0\r\n },\r\n is3Slice: false,\r\n scale9: false,\r\n scale9Borders: {\r\n x: 0,\r\n y: 0,\r\n w: 0,\r\n h: 0\r\n }\r\n };\r\n\r\n this.setSize(width, height, x, y);\r\n },\r\n\r\n /**\r\n * Sets the x and y position within the source image to cut from.\r\n *\r\n * @method Phaser.Textures.Frame#setCutPosition\r\n * @since 3.85.0\r\n *\r\n * @param {number} [x=0] - X position within the source image to cut from.\r\n * @param {number} [y=0] - Y position within the source image to cut from.\r\n *\r\n * @return {this} This Frame object.\r\n */\r\n setCutPosition: function (x, y)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n\r\n this.cutX = x;\r\n this.cutY = y;\r\n\r\n return this.updateUVs();\r\n },\r\n\r\n /**\r\n * Sets the width, and height of the area in the source image to cut.\r\n *\r\n * @method Phaser.Textures.Frame#setCutSize\r\n * @since 3.85.0\r\n *\r\n * @param {number} width - The width of the area in the source image to cut.\r\n * @param {number} height - The height of the area in the source image to cut.\r\n *\r\n * @return {this} This Frame object.\r\n */\r\n setCutSize: function (width, height)\r\n {\r\n this.cutWidth = width;\r\n this.cutHeight = height;\r\n\r\n return this.updateUVs();\r\n },\r\n\r\n /**\r\n * Sets the width, height, x and y of this Frame.\r\n *\r\n * This is called automatically by the constructor\r\n * and should rarely be changed on-the-fly.\r\n *\r\n * @method Phaser.Textures.Frame#setSize\r\n * @since 3.7.0\r\n *\r\n * @param {number} width - The width of the frame before being trimmed.\r\n * @param {number} height - The height of the frame before being trimmed.\r\n * @param {number} [x=0] - The x coordinate of the top-left of this Frame.\r\n * @param {number} [y=0] - The y coordinate of the top-left of this Frame.\r\n *\r\n * @return {this} This Frame object.\r\n */\r\n setSize: function (width, height, x, y)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n\r\n this.setCutPosition(x, y);\r\n this.setCutSize(width, height);\r\n\r\n this.width = width;\r\n this.height = height;\r\n\r\n this.halfWidth = Math.floor(width * 0.5);\r\n this.halfHeight = Math.floor(height * 0.5);\r\n\r\n this.centerX = Math.floor(width / 2);\r\n this.centerY = Math.floor(height / 2);\r\n\r\n var data = this.data;\r\n var cut = data.cut;\r\n\r\n cut.x = x;\r\n cut.y = y;\r\n cut.w = width;\r\n cut.h = height;\r\n cut.r = x + width;\r\n cut.b = y + height;\r\n\r\n data.sourceSize.w = width;\r\n data.sourceSize.h = height;\r\n\r\n data.spriteSourceSize.w = width;\r\n data.spriteSourceSize.h = height;\r\n\r\n data.radius = 0.5 * Math.sqrt(width * width + height * height);\r\n\r\n var drawImage = data.drawImage;\r\n\r\n drawImage.x = x;\r\n drawImage.y = y;\r\n drawImage.width = width;\r\n drawImage.height = height;\r\n\r\n return this.updateUVs();\r\n },\r\n\r\n /**\r\n * If the frame was trimmed when added to the Texture Atlas, this records the trim and source data.\r\n *\r\n * @method Phaser.Textures.Frame#setTrim\r\n * @since 3.0.0\r\n *\r\n * @param {number} actualWidth - The width of the frame before being trimmed.\r\n * @param {number} actualHeight - The height of the frame before being trimmed.\r\n * @param {number} destX - The destination X position of the trimmed frame for display.\r\n * @param {number} destY - The destination Y position of the trimmed frame for display.\r\n * @param {number} destWidth - The destination width of the trimmed frame for display.\r\n * @param {number} destHeight - The destination height of the trimmed frame for display.\r\n *\r\n * @return {this} This Frame object.\r\n */\r\n setTrim: function (actualWidth, actualHeight, destX, destY, destWidth, destHeight)\r\n {\r\n var data = this.data;\r\n var ss = data.spriteSourceSize;\r\n\r\n // Store actual values\r\n\r\n data.trim = true;\r\n\r\n data.sourceSize.w = actualWidth;\r\n data.sourceSize.h = actualHeight;\r\n\r\n ss.x = destX;\r\n ss.y = destY;\r\n ss.w = destWidth;\r\n ss.h = destHeight;\r\n ss.r = destX + destWidth;\r\n ss.b = destY + destHeight;\r\n\r\n // Adjust properties\r\n this.x = destX;\r\n this.y = destY;\r\n\r\n this.width = destWidth;\r\n this.height = destHeight;\r\n\r\n this.halfWidth = destWidth * 0.5;\r\n this.halfHeight = destHeight * 0.5;\r\n\r\n this.centerX = Math.floor(destWidth / 2);\r\n this.centerY = Math.floor(destHeight / 2);\r\n\r\n return this.updateUVs();\r\n },\r\n\r\n /**\r\n * Sets the scale9 center rectangle values.\r\n *\r\n * Scale9 is a feature of Texture Packer, allowing you to define a nine-slice scaling grid.\r\n *\r\n * This is set automatically by the JSONArray and JSONHash parsers.\r\n *\r\n * @method Phaser.Textures.Frame#setScale9\r\n * @since 3.70.0\r\n *\r\n * @param {number} x - The left coordinate of the center scale9 rectangle.\r\n * @param {number} y - The top coordinate of the center scale9 rectangle.\r\n * @param {number} width - The width of the center scale9 rectangle.\r\n * @param {number} height - The height coordinate of the center scale9 rectangle.\r\n *\r\n * @return {this} This Frame object.\r\n */\r\n setScale9: function (x, y, width, height)\r\n {\r\n var data = this.data;\r\n\r\n data.scale9 = true;\r\n data.is3Slice = (y === 0 && height === this.height);\r\n\r\n data.scale9Borders.x = x;\r\n data.scale9Borders.y = y;\r\n data.scale9Borders.w = width;\r\n data.scale9Borders.h = height;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Takes a crop data object and, based on the rectangular region given, calculates the\r\n * required UV coordinates in order to crop this Frame for WebGL and Canvas rendering.\r\n *\r\n * The crop size as well as coordinates can not exceed the the size of the frame.\r\n * \r\n * This is called directly by the Game Object Texture Components `setCrop` method.\r\n * Please use that method to crop a Game Object.\r\n *\r\n * @method Phaser.Textures.Frame#setCropUVs\r\n * @since 3.11.0\r\n *\r\n * @param {object} crop - The crop data object. This is the `GameObject._crop` property.\r\n * @param {number} x - The x coordinate to start the crop from. Cannot be negative or exceed the Frame width.\r\n * @param {number} y - The y coordinate to start the crop from. Cannot be negative or exceed the Frame height.\r\n * @param {number} width - The width of the crop rectangle. Cannot exceed the Frame width.\r\n * @param {number} height - The height of the crop rectangle. Cannot exceed the Frame height.\r\n * @param {boolean} flipX - Does the parent Game Object have flipX set?\r\n * @param {boolean} flipY - Does the parent Game Object have flipY set?\r\n *\r\n * @return {object} The updated crop data object.\r\n */\r\n setCropUVs: function (crop, x, y, width, height, flipX, flipY)\r\n {\r\n // Clamp the input values\r\n\r\n var cx = this.cutX;\r\n var cy = this.cutY;\r\n var cw = this.cutWidth;\r\n var ch = this.cutHeight;\r\n var rw = this.realWidth;\r\n var rh = this.realHeight;\r\n\r\n x = Clamp(x, 0, rw);\r\n y = Clamp(y, 0, rh);\r\n\r\n width = Clamp(width, 0, rw - x);\r\n height = Clamp(height, 0, rh - y);\r\n\r\n var ox = cx + x;\r\n var oy = cy + y;\r\n var ow = width;\r\n var oh = height;\r\n\r\n var data = this.data;\r\n\r\n if (data.trim)\r\n {\r\n var ss = data.spriteSourceSize;\r\n\r\n // Need to check for intersection between the cut area and the crop area\r\n // If there is none, we set UV to be empty, otherwise set it to be the intersection area\r\n\r\n width = Clamp(width, 0, cw - x);\r\n height = Clamp(height, 0, ch - y);\r\n\r\n var cropRight = x + width;\r\n var cropBottom = y + height;\r\n\r\n var intersects = !(ss.r < x || ss.b < y || ss.x > cropRight || ss.y > cropBottom);\r\n\r\n if (intersects)\r\n {\r\n var ix = Math.max(ss.x, x);\r\n var iy = Math.max(ss.y, y);\r\n var iw = Math.min(ss.r, cropRight) - ix;\r\n var ih = Math.min(ss.b, cropBottom) - iy;\r\n\r\n ow = iw;\r\n oh = ih;\r\n\r\n if (flipX)\r\n {\r\n ox = cx + (cw - (ix - ss.x) - iw);\r\n }\r\n else\r\n {\r\n ox = cx + (ix - ss.x);\r\n }\r\n\r\n if (flipY)\r\n {\r\n oy = cy + (ch - (iy - ss.y) - ih);\r\n }\r\n else\r\n {\r\n oy = cy + (iy - ss.y);\r\n }\r\n\r\n x = ix;\r\n y = iy;\r\n\r\n width = iw;\r\n height = ih;\r\n }\r\n else\r\n {\r\n ox = 0;\r\n oy = 0;\r\n ow = 0;\r\n oh = 0;\r\n }\r\n }\r\n else\r\n {\r\n if (flipX)\r\n {\r\n ox = cx + (cw - x - width);\r\n }\r\n\r\n if (flipY)\r\n {\r\n oy = cy + (ch - y - height);\r\n }\r\n }\r\n\r\n var tw = this.source.width;\r\n var th = this.source.height;\r\n\r\n // Map the given coordinates into UV space, clamping to the 0-1 range.\r\n\r\n crop.u0 = Math.max(0, ox / tw);\r\n crop.v0 = Math.max(0, oy / th);\r\n crop.u1 = Math.min(1, (ox + ow) / tw);\r\n crop.v1 = Math.min(1, (oy + oh) / th);\r\n\r\n crop.x = x;\r\n crop.y = y;\r\n\r\n crop.cx = ox;\r\n crop.cy = oy;\r\n crop.cw = ow;\r\n crop.ch = oh;\r\n\r\n crop.width = width;\r\n crop.height = height;\r\n\r\n crop.flipX = flipX;\r\n crop.flipY = flipY;\r\n\r\n return crop;\r\n },\r\n\r\n /**\r\n * Takes a crop data object and recalculates the UVs based on the dimensions inside the crop object.\r\n * Called automatically by `setFrame`.\r\n *\r\n * @method Phaser.Textures.Frame#updateCropUVs\r\n * @since 3.11.0\r\n *\r\n * @param {object} crop - The crop data object. This is the `GameObject._crop` property.\r\n * @param {boolean} flipX - Does the parent Game Object have flipX set?\r\n * @param {boolean} flipY - Does the parent Game Object have flipY set?\r\n *\r\n * @return {object} The updated crop data object.\r\n */\r\n updateCropUVs: function (crop, flipX, flipY)\r\n {\r\n return this.setCropUVs(crop, crop.x, crop.y, crop.width, crop.height, flipX, flipY);\r\n },\r\n\r\n /**\r\n * Directly sets the canvas and WebGL UV data for this frame.\r\n *\r\n * Use this if you need to override the values that are generated automatically\r\n * when the Frame is created.\r\n *\r\n * @method Phaser.Textures.Frame#setUVs\r\n * @since 3.50.0\r\n *\r\n * @param {number} width - Width of this frame for the Canvas data.\r\n * @param {number} height - Height of this frame for the Canvas data.\r\n * @param {number} u0 - UV u0 value.\r\n * @param {number} v0 - UV v0 value.\r\n * @param {number} u1 - UV u1 value.\r\n * @param {number} v1 - UV v1 value.\r\n *\r\n * @return {this} This Frame object.\r\n */\r\n setUVs: function (width, height, u0, v0, u1, v1)\r\n {\r\n // Canvas data\r\n\r\n var cd = this.data.drawImage;\r\n\r\n cd.width = width;\r\n cd.height = height;\r\n\r\n // WebGL data\r\n\r\n this.u0 = u0;\r\n this.v0 = v0;\r\n\r\n this.u1 = u1;\r\n this.v1 = v1;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Updates the internal WebGL UV cache and the drawImage cache.\r\n *\r\n * @method Phaser.Textures.Frame#updateUVs\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Frame object.\r\n */\r\n updateUVs: function ()\r\n {\r\n var cx = this.cutX;\r\n var cy = this.cutY;\r\n var cw = this.cutWidth;\r\n var ch = this.cutHeight;\r\n\r\n // Canvas data\r\n\r\n var cd = this.data.drawImage;\r\n\r\n cd.width = cw;\r\n cd.height = ch;\r\n\r\n // WebGL data\r\n\r\n var tw = this.source.width;\r\n var th = this.source.height;\r\n\r\n this.u0 = cx / tw;\r\n this.v0 = cy / th;\r\n\r\n this.u1 = (cx + cw) / tw;\r\n this.v1 = (cy + ch) / th;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Updates the internal WebGL UV cache.\r\n *\r\n * @method Phaser.Textures.Frame#updateUVsInverted\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Frame object.\r\n */\r\n updateUVsInverted: function ()\r\n {\r\n var tw = this.source.width;\r\n var th = this.source.height;\r\n\r\n this.u0 = (this.cutX + this.cutHeight) / tw;\r\n this.v0 = this.cutY / th;\r\n\r\n this.u1 = this.cutX / tw;\r\n this.v1 = (this.cutY + this.cutWidth) / th;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Clones this Frame into a new Frame object.\r\n *\r\n * @method Phaser.Textures.Frame#clone\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Textures.Frame} A clone of this Frame.\r\n */\r\n clone: function ()\r\n {\r\n var clone = new Frame(this.texture, this.name, this.sourceIndex);\r\n\r\n clone.cutX = this.cutX;\r\n clone.cutY = this.cutY;\r\n clone.cutWidth = this.cutWidth;\r\n clone.cutHeight = this.cutHeight;\r\n\r\n clone.x = this.x;\r\n clone.y = this.y;\r\n\r\n clone.width = this.width;\r\n clone.height = this.height;\r\n\r\n clone.halfWidth = this.halfWidth;\r\n clone.halfHeight = this.halfHeight;\r\n\r\n clone.centerX = this.centerX;\r\n clone.centerY = this.centerY;\r\n\r\n clone.rotated = this.rotated;\r\n\r\n clone.data = Extend(true, clone.data, this.data);\r\n\r\n clone.updateUVs();\r\n\r\n return clone;\r\n },\r\n\r\n /**\r\n * Destroys this Frame by nulling its reference to the parent Texture and and data objects.\r\n *\r\n * @method Phaser.Textures.Frame#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.texture = null;\r\n this.source = null;\r\n this.customData = null;\r\n this.data = null;\r\n },\r\n\r\n /**\r\n * A reference to the Texture Source WebGL Texture that this Frame is using.\r\n * \r\n * @name Phaser.Textures.Frame#glTexture\r\n * @type {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper}\r\n * @readonly\r\n * @since 3.11.0\r\n */\r\n glTexture: {\r\n\r\n get: function ()\r\n {\r\n return this.source.glTexture;\r\n }\r\n },\r\n\r\n /**\r\n * The width of the Frame in its un-trimmed, un-padded state, as prepared in the art package,\r\n * before being packed.\r\n *\r\n * @name Phaser.Textures.Frame#realWidth\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n realWidth: {\r\n\r\n get: function ()\r\n {\r\n return this.data.sourceSize.w;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The height of the Frame in its un-trimmed, un-padded state, as prepared in the art package,\r\n * before being packed.\r\n *\r\n * @name Phaser.Textures.Frame#realHeight\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n realHeight: {\r\n\r\n get: function ()\r\n {\r\n return this.data.sourceSize.h;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The radius of the Frame (derived from sqrt(w * w + h * h) / 2)\r\n *\r\n * @name Phaser.Textures.Frame#radius\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n radius: {\r\n\r\n get: function ()\r\n {\r\n return this.data.radius;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Is the Frame trimmed or not?\r\n *\r\n * @name Phaser.Textures.Frame#trimmed\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n trimmed: {\r\n\r\n get: function ()\r\n {\r\n return this.data.trim;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Does the Frame have scale9 border data?\r\n *\r\n * @name Phaser.Textures.Frame#scale9\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.70.0\r\n */\r\n scale9: {\r\n\r\n get: function ()\r\n {\r\n return this.data.scale9;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * If the Frame has scale9 border data, is it 3-slice or 9-slice data?\r\n *\r\n * @name Phaser.Textures.Frame#is3Slice\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.70.0\r\n */\r\n is3Slice: {\r\n\r\n get: function ()\r\n {\r\n return this.data.is3Slice;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The Canvas drawImage data object.\r\n *\r\n * @name Phaser.Textures.Frame#canvasData\r\n * @type {object}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n canvasData: {\r\n\r\n get: function ()\r\n {\r\n return this.data.drawImage;\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Frame;\r\n\n\n/***/ }),\n\n/***/ 79237:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Frame = __webpack_require__(4327);\r\nvar TextureSource = __webpack_require__(11876);\r\n\r\nvar TEXTURE_MISSING_ERROR = 'Texture \"%s\" has no frame \"%s\"';\r\n\r\n/**\r\n * @classdesc\r\n * A Texture consists of a source, usually an Image from the Cache, and a collection of Frames.\r\n * The Frames represent the different areas of the Texture. For example a texture atlas\r\n * may have many Frames, one for each element within the atlas. Where-as a single image would have\r\n * just one frame, that encompasses the whole image.\r\n *\r\n * Every Texture, no matter where it comes from, always has at least 1 frame called the `__BASE` frame.\r\n * This frame represents the entirety of the source image.\r\n *\r\n * Textures are managed by the global TextureManager. This is a singleton class that is\r\n * responsible for creating and delivering Textures and their corresponding Frames to Game Objects.\r\n *\r\n * Sprites and other Game Objects get the texture data they need from the TextureManager.\r\n *\r\n * @class Texture\r\n * @memberof Phaser.Textures\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Textures.TextureManager} manager - A reference to the Texture Manager this Texture belongs to.\r\n * @param {string} key - The unique string-based key of this Texture.\r\n * @param {(HTMLImageElement|HTMLCanvasElement|HTMLImageElement[]|HTMLCanvasElement[]|Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper)} source - An array of sources that are used to create the texture. Usually Images, but can also be a Canvas.\r\n * @param {number} [width] - The width of the Texture. This is optional and automatically derived from the source images.\r\n * @param {number} [height] - The height of the Texture. This is optional and automatically derived from the source images.\r\n */\r\nvar Texture = new Class({\r\n\r\n initialize:\r\n\r\n function Texture (manager, key, source, width, height)\r\n {\r\n if (!Array.isArray(source))\r\n {\r\n source = [ source ];\r\n }\r\n\r\n /**\r\n * A reference to the Texture Manager this Texture belongs to.\r\n *\r\n * @name Phaser.Textures.Texture#manager\r\n * @type {Phaser.Textures.TextureManager}\r\n * @since 3.0.0\r\n */\r\n this.manager = manager;\r\n\r\n /**\r\n * The unique string-based key of this Texture.\r\n *\r\n * @name Phaser.Textures.Texture#key\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.key = key;\r\n\r\n /**\r\n * An array of TextureSource instances.\r\n * These are unique to this Texture and contain the actual Image (or Canvas) data.\r\n *\r\n * @name Phaser.Textures.Texture#source\r\n * @type {Phaser.Textures.TextureSource[]}\r\n * @since 3.0.0\r\n */\r\n this.source = [];\r\n\r\n /**\r\n * An array of TextureSource data instances.\r\n * Used to store additional data images, such as normal maps or specular maps.\r\n *\r\n * @name Phaser.Textures.Texture#dataSource\r\n * @type {array}\r\n * @since 3.0.0\r\n */\r\n this.dataSource = [];\r\n\r\n /**\r\n * A key-value object pair associating the unique Frame keys with the Frames objects.\r\n *\r\n * @name Phaser.Textures.Texture#frames\r\n * @type {object}\r\n * @since 3.0.0\r\n */\r\n this.frames = {};\r\n\r\n /**\r\n * Any additional data that was set in the source JSON (if any),\r\n * or any extra data you'd like to store relating to this texture\r\n *\r\n * @name Phaser.Textures.Texture#customData\r\n * @type {object}\r\n * @since 3.0.0\r\n */\r\n this.customData = {};\r\n\r\n /**\r\n * The name of the first frame of the Texture.\r\n *\r\n * @name Phaser.Textures.Texture#firstFrame\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.firstFrame = '__BASE';\r\n\r\n /**\r\n * The total number of Frames in this Texture, including the `__BASE` frame.\r\n *\r\n * A Texture will always contain at least 1 frame because every Texture contains a `__BASE` frame by default,\r\n * in addition to any extra frames that have been added to it, such as when parsing a Sprite Sheet or Texture Atlas.\r\n *\r\n * @name Phaser.Textures.Texture#frameTotal\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.frameTotal = 0;\r\n\r\n // Load the Sources\r\n for (var i = 0; i < source.length; i++)\r\n {\r\n this.source.push(new TextureSource(this, source[i], width, height));\r\n }\r\n },\r\n\r\n /**\r\n * Adds a new Frame to this Texture.\r\n *\r\n * A Frame is a rectangular region of a TextureSource with a unique index or string-based key.\r\n *\r\n * The name given must be unique within this Texture. If it already exists, this method will return `null`.\r\n *\r\n * @method Phaser.Textures.Texture#add\r\n * @since 3.0.0\r\n *\r\n * @param {(number|string)} name - The name of this Frame. The name is unique within the Texture.\r\n * @param {number} sourceIndex - The index of the TextureSource that this Frame is a part of.\r\n * @param {number} x - The x coordinate of the top-left of this Frame.\r\n * @param {number} y - The y coordinate of the top-left of this Frame.\r\n * @param {number} width - The width of this Frame.\r\n * @param {number} height - The height of this Frame.\r\n *\r\n * @return {?Phaser.Textures.Frame} The Frame that was added to this Texture, or `null` if the given name already exists.\r\n */\r\n add: function (name, sourceIndex, x, y, width, height)\r\n {\r\n if (this.has(name))\r\n {\r\n return null;\r\n }\r\n\r\n var frame = new Frame(this, name, sourceIndex, x, y, width, height);\r\n\r\n this.frames[name] = frame;\r\n\r\n // Set the first frame of the Texture (other than __BASE)\r\n // This is used to ensure we don't spam the display with entire\r\n // atlases of sprite sheets, but instead just the first frame of them\r\n // should the dev incorrectly specify the frame index\r\n if (this.firstFrame === '__BASE')\r\n {\r\n this.firstFrame = name;\r\n }\r\n\r\n this.frameTotal++;\r\n\r\n return frame;\r\n },\r\n\r\n /**\r\n * Removes the given Frame from this Texture. The Frame is destroyed immediately.\r\n *\r\n * Any Game Objects using this Frame should stop using it _before_ you remove it,\r\n * as it does not happen automatically.\r\n *\r\n * @method Phaser.Textures.Texture#remove\r\n * @since 3.19.0\r\n *\r\n * @param {string} name - The key of the Frame to remove.\r\n *\r\n * @return {boolean} True if a Frame with the matching key was removed from this Texture.\r\n */\r\n remove: function (name)\r\n {\r\n if (this.has(name))\r\n {\r\n var frame = this.get(name);\r\n\r\n frame.destroy();\r\n\r\n delete this.frames[name];\r\n\r\n return true;\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Checks to see if a Frame matching the given key exists within this Texture.\r\n *\r\n * @method Phaser.Textures.Texture#has\r\n * @since 3.0.0\r\n *\r\n * @param {string} name - The key of the Frame to check for.\r\n *\r\n * @return {boolean} True if a Frame with the matching key exists in this Texture.\r\n */\r\n has: function (name)\r\n {\r\n return this.frames.hasOwnProperty(name);\r\n },\r\n\r\n /**\r\n * Gets a Frame from this Texture based on either the key or the index of the Frame.\r\n *\r\n * In a Texture Atlas Frames are typically referenced by a key.\r\n * In a Sprite Sheet Frames are referenced by an index.\r\n * Passing no value for the name returns the base texture.\r\n *\r\n * @method Phaser.Textures.Texture#get\r\n * @since 3.0.0\r\n *\r\n * @param {(string|number)} [name] - The string-based name, or integer based index, of the Frame to get from this Texture.\r\n *\r\n * @return {Phaser.Textures.Frame} The Texture Frame.\r\n */\r\n get: function (name)\r\n {\r\n // null, undefined, empty string, zero\r\n if (!name)\r\n {\r\n name = this.firstFrame;\r\n }\r\n\r\n var frame = this.frames[name];\r\n\r\n if (!frame)\r\n {\r\n console.warn(TEXTURE_MISSING_ERROR, this.key, name);\r\n\r\n frame = this.frames[this.firstFrame];\r\n }\r\n\r\n return frame;\r\n },\r\n\r\n /**\r\n * Takes the given TextureSource and returns the index of it within this Texture.\r\n * If it's not in this Texture, it returns -1.\r\n * Unless this Texture has multiple TextureSources, such as with a multi-atlas, this\r\n * method will always return zero or -1.\r\n *\r\n * @method Phaser.Textures.Texture#getTextureSourceIndex\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Textures.TextureSource} source - The TextureSource to check.\r\n *\r\n * @return {number} The index of the TextureSource within this Texture, or -1 if not in this Texture.\r\n */\r\n getTextureSourceIndex: function (source)\r\n {\r\n for (var i = 0; i < this.source.length; i++)\r\n {\r\n if (this.source[i] === source)\r\n {\r\n return i;\r\n }\r\n }\r\n\r\n return -1;\r\n },\r\n\r\n /**\r\n * Returns an array of all the Frames in the given TextureSource.\r\n *\r\n * @method Phaser.Textures.Texture#getFramesFromTextureSource\r\n * @since 3.0.0\r\n *\r\n * @param {number} sourceIndex - The index of the TextureSource to get the Frames from.\r\n * @param {boolean} [includeBase=false] - Include the `__BASE` Frame in the output array?\r\n *\r\n * @return {Phaser.Textures.Frame[]} An array of Texture Frames.\r\n */\r\n getFramesFromTextureSource: function (sourceIndex, includeBase)\r\n {\r\n if (includeBase === undefined) { includeBase = false; }\r\n\r\n var out = [];\r\n\r\n for (var frameName in this.frames)\r\n {\r\n if (frameName === '__BASE' && !includeBase)\r\n {\r\n continue;\r\n }\r\n\r\n var frame = this.frames[frameName];\r\n\r\n if (frame.sourceIndex === sourceIndex)\r\n {\r\n out.push(frame);\r\n }\r\n }\r\n\r\n return out;\r\n },\r\n\r\n /**\r\n * Based on the given Texture Source Index, this method will get all of the Frames using\r\n * that source and then work out the bounds that they encompass, returning them in an object.\r\n *\r\n * This is useful if this Texture is, for example, a sprite sheet within an Atlas, and you\r\n * need to know the total bounds of the sprite sheet.\r\n *\r\n * @method Phaser.Textures.Texture#getFrameBounds\r\n * @since 3.80.0\r\n *\r\n * @param {number} [sourceIndex=0] - The index of the TextureSource to get the Frame bounds from.\r\n *\r\n * @return {Phaser.Types.Math.RectangleLike} An object containing the bounds of the Frames using the given Texture Source Index.\r\n */\r\n getFrameBounds: function (sourceIndex)\r\n {\r\n if (sourceIndex === undefined) { sourceIndex = 0; }\r\n\r\n var frames = this.getFramesFromTextureSource(sourceIndex, true);\r\n\r\n var baseFrame = frames[0];\r\n\r\n var minX = baseFrame.cutX;\r\n var minY = baseFrame.cutY;\r\n var maxX = baseFrame.cutX + baseFrame.cutWidth;\r\n var maxY = baseFrame.cutY + baseFrame.cutHeight;\r\n\r\n for (var i = 1; i < frames.length; i++)\r\n {\r\n var frame = frames[i];\r\n\r\n if (frame.cutX < minX)\r\n {\r\n minX = frame.cutX;\r\n }\r\n\r\n if (frame.cutY < minY)\r\n {\r\n minY = frame.cutY;\r\n }\r\n\r\n if (frame.cutX + frame.cutWidth > maxX)\r\n {\r\n maxX = frame.cutX + frame.cutWidth;\r\n }\r\n\r\n if (frame.cutY + frame.cutHeight > maxY)\r\n {\r\n maxY = frame.cutY + frame.cutHeight;\r\n }\r\n }\r\n\r\n return { x: minX, y: minY, width: maxX - minX, height: maxY - minY };\r\n },\r\n\r\n /**\r\n * Returns an array with all of the names of the Frames in this Texture.\r\n *\r\n * Useful if you want to randomly assign a Frame to a Game Object, as you can\r\n * pick a random element from the returned array.\r\n *\r\n * @method Phaser.Textures.Texture#getFrameNames\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [includeBase=false] - Include the `__BASE` Frame in the output array?\r\n *\r\n * @return {string[]} An array of all Frame names in this Texture.\r\n */\r\n getFrameNames: function (includeBase)\r\n {\r\n if (includeBase === undefined) { includeBase = false; }\r\n\r\n var out = Object.keys(this.frames);\r\n\r\n if (!includeBase)\r\n {\r\n var idx = out.indexOf('__BASE');\r\n\r\n if (idx !== -1)\r\n {\r\n out.splice(idx, 1);\r\n }\r\n }\r\n\r\n return out;\r\n },\r\n\r\n /**\r\n * Given a Frame name, return the source image it uses to render with.\r\n *\r\n * This will return the actual DOM Image or Canvas element.\r\n *\r\n * @method Phaser.Textures.Texture#getSourceImage\r\n * @since 3.0.0\r\n *\r\n * @param {(string|number)} [name] - The string-based name, or integer based index, of the Frame to get from this Texture.\r\n *\r\n * @return {(HTMLImageElement|HTMLCanvasElement|Phaser.GameObjects.RenderTexture)} The DOM Image, Canvas Element or Render Texture.\r\n */\r\n getSourceImage: function (name)\r\n {\r\n if (name === undefined || name === null || this.frameTotal === 1)\r\n {\r\n name = '__BASE';\r\n }\r\n\r\n var frame = this.frames[name];\r\n\r\n if (frame)\r\n {\r\n return frame.source.image;\r\n }\r\n else\r\n {\r\n console.warn(TEXTURE_MISSING_ERROR, this.key, name);\r\n\r\n return this.frames['__BASE'].source.image;\r\n }\r\n },\r\n\r\n /**\r\n * Given a Frame name, return the data source image it uses to render with.\r\n * You can use this to get the normal map for an image for example.\r\n *\r\n * This will return the actual DOM Image.\r\n *\r\n * @method Phaser.Textures.Texture#getDataSourceImage\r\n * @since 3.7.0\r\n *\r\n * @param {(string|number)} [name] - The string-based name, or integer based index, of the Frame to get from this Texture.\r\n *\r\n * @return {(HTMLImageElement|HTMLCanvasElement)} The DOM Image or Canvas Element.\r\n */\r\n getDataSourceImage: function (name)\r\n {\r\n if (name === undefined || name === null || this.frameTotal === 1)\r\n {\r\n name = '__BASE';\r\n }\r\n\r\n var frame = this.frames[name];\r\n var idx;\r\n\r\n if (!frame)\r\n {\r\n console.warn(TEXTURE_MISSING_ERROR, this.key, name);\r\n\r\n idx = this.frames['__BASE'].sourceIndex;\r\n }\r\n else\r\n {\r\n idx = frame.sourceIndex;\r\n }\r\n\r\n return this.dataSource[idx].image;\r\n },\r\n\r\n /**\r\n * Adds a data source image to this Texture.\r\n *\r\n * An example of a data source image would be a normal map, where all of the Frames for this Texture\r\n * equally apply to the normal map.\r\n *\r\n * @method Phaser.Textures.Texture#setDataSource\r\n * @since 3.0.0\r\n *\r\n * @param {(HTMLImageElement|HTMLCanvasElement|HTMLImageElement[]|HTMLCanvasElement[])} data - The source image.\r\n */\r\n setDataSource: function (data)\r\n {\r\n if (!Array.isArray(data))\r\n {\r\n data = [ data ];\r\n }\r\n\r\n for (var i = 0; i < data.length; i++)\r\n {\r\n var source = this.source[i];\r\n\r\n this.dataSource.push(new TextureSource(this, data[i], source.width, source.height));\r\n }\r\n },\r\n\r\n /**\r\n * Sets the Filter Mode for this Texture.\r\n *\r\n * The mode can be either Linear, the default, or Nearest.\r\n *\r\n * For pixel-art you should use Nearest.\r\n *\r\n * The mode applies to the entire Texture, not just a specific Frame of it.\r\n *\r\n * @method Phaser.Textures.Texture#setFilter\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Textures.FilterMode} filterMode - The Filter Mode.\r\n */\r\n setFilter: function (filterMode)\r\n {\r\n var i;\r\n\r\n for (i = 0; i < this.source.length; i++)\r\n {\r\n this.source[i].setFilter(filterMode);\r\n }\r\n\r\n for (i = 0; i < this.dataSource.length; i++)\r\n {\r\n this.dataSource[i].setFilter(filterMode);\r\n }\r\n },\r\n\r\n /**\r\n * Destroys this Texture and releases references to its sources and frames.\r\n *\r\n * @method Phaser.Textures.Texture#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n var i;\r\n var source = this.source;\r\n var dataSource = this.dataSource;\r\n\r\n for (i = 0; i < source.length; i++)\r\n {\r\n if (source[i])\r\n {\r\n source[i].destroy();\r\n }\r\n }\r\n\r\n for (i = 0; i < dataSource.length; i++)\r\n {\r\n if (dataSource[i])\r\n {\r\n dataSource[i].destroy();\r\n }\r\n }\r\n\r\n for (var frameName in this.frames)\r\n {\r\n var frame = this.frames[frameName];\r\n\r\n if (frame)\r\n {\r\n frame.destroy();\r\n }\r\n }\r\n\r\n this.source = [];\r\n this.dataSource = [];\r\n this.frames = {};\r\n\r\n this.manager.removeKey(this.key);\r\n\r\n this.manager = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Texture;\r\n\n\n/***/ }),\n\n/***/ 17130:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CanvasPool = __webpack_require__(27919);\r\nvar CanvasTexture = __webpack_require__(57382);\r\nvar Class = __webpack_require__(83419);\r\nvar Color = __webpack_require__(40987);\r\nvar CONST = __webpack_require__(8054);\r\nvar DynamicTexture = __webpack_require__(81320);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Events = __webpack_require__(69442);\r\nvar Frame = __webpack_require__(4327);\r\nvar GameEvents = __webpack_require__(8443);\r\nvar GenerateTexture = __webpack_require__(99584);\r\nvar GetValue = __webpack_require__(35154);\r\nvar ImageGameObject = __webpack_require__(88571);\r\nvar IsPlainObject = __webpack_require__(41212);\r\nvar Parser = __webpack_require__(61309);\r\nvar Rectangle = __webpack_require__(87841);\r\nvar Texture = __webpack_require__(79237);\r\n\r\n/**\r\n * @callback EachTextureCallback\r\n *\r\n * @param {Phaser.Textures.Texture} texture - Each texture in Texture Manager.\r\n * @param {...*} [args] - Additional arguments that will be passed to the callback, after the child.\r\n */\r\n\r\n/**\r\n * @classdesc\r\n * When Phaser boots it will create an instance of this Texture Manager class.\r\n *\r\n * It is a global manager that handles all textures in your game. You can access it from within\r\n * a Scene via the `this.textures` property.\r\n *\r\n * Its role is as a manager for all textures that your game uses. It can create, update and remove\r\n * textures globally, as well as parse texture data from external files, such as sprite sheets\r\n * and texture atlases.\r\n *\r\n * Sprites and other texture-based Game Objects get their texture data directly from this class.\r\n *\r\n * @class TextureManager\r\n * @extends Phaser.Events.EventEmitter\r\n * @memberof Phaser.Textures\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Game} game - The Phaser.Game instance this Texture Manager belongs to.\r\n */\r\nvar TextureManager = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function TextureManager (game)\r\n {\r\n EventEmitter.call(this);\r\n\r\n /**\r\n * The Game that the Texture Manager belongs to.\r\n *\r\n * A game will only ever have one instance of a Texture Manager.\r\n *\r\n * @name Phaser.Textures.TextureManager#game\r\n * @type {Phaser.Game}\r\n * @since 3.0.0\r\n */\r\n this.game = game;\r\n\r\n /**\r\n * The internal name of this manager.\r\n *\r\n * @name Phaser.Textures.TextureManager#name\r\n * @type {string}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.name = 'TextureManager';\r\n\r\n /**\r\n * This object contains all Textures that belong to this Texture Manager.\r\n *\r\n * Textures are identified by string-based keys, which are used as the property\r\n * within this object. Therefore, you can access any texture directly from this\r\n * object without any iteration.\r\n *\r\n * You should not typically modify this object directly, but instead use the\r\n * methods provided by the Texture Manager to add and remove entries from it.\r\n *\r\n * @name Phaser.Textures.TextureManager#list\r\n * @type {object}\r\n * @default {}\r\n * @since 3.0.0\r\n */\r\n this.list = {};\r\n\r\n /**\r\n * The temporary canvas element used to save the pixel data of an arbitrary texture\r\n * during the `TextureManager.getPixel` and `getPixelAlpha` methods.\r\n *\r\n * @name Phaser.Textures.TextureManager#_tempCanvas\r\n * @type {HTMLCanvasElement}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._tempCanvas = CanvasPool.create2D(this);\r\n\r\n /**\r\n * The 2d context of the `_tempCanvas` element.\r\n *\r\n * @name Phaser.Textures.TextureManager#_tempContext\r\n * @type {CanvasRenderingContext2D}\r\n * @private\r\n * @since 3.0.0\r\n */\r\n this._tempContext = this._tempCanvas.getContext('2d', { willReadFrequently: true });\r\n\r\n /**\r\n * An internal tracking value used for emitting the 'READY' event after all of\r\n * the managers in the game have booted.\r\n *\r\n * @name Phaser.Textures.TextureManager#_pending\r\n * @type {number}\r\n * @private\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this._pending = 0;\r\n\r\n /**\r\n * An Image Game Object that belongs to this Texture Manager.\r\n *\r\n * Used as a drawing stamp within Dynamic Textures.\r\n *\r\n * This is not part of the display list and doesn't render.\r\n *\r\n * @name Phaser.Textures.TextureManager#stamp\r\n * @type {Phaser.GameObjects.Image}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.stamp;\r\n\r\n /**\r\n * The crop Rectangle as used by the Stamp when it needs to crop itself.\r\n *\r\n * @name Phaser.Textures.TextureManager#stampCrop\r\n * @type {Phaser.Geom.Rectangle}\r\n * @since 3.60.0\r\n */\r\n this.stampCrop = new Rectangle();\r\n\r\n /**\r\n * If this flag is `true` then the Texture Manager will never emit any\r\n * warnings to the console log that report missing textures.\r\n *\r\n * @name Phaser.Textures.TextureManager#silentWarnings\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.60.0\r\n */\r\n this.silentWarnings = false;\r\n\r\n game.events.once(GameEvents.BOOT, this.boot, this);\r\n },\r\n\r\n /**\r\n * The Boot Handler called by Phaser.Game when it first starts up.\r\n *\r\n * @method Phaser.Textures.TextureManager#boot\r\n * @private\r\n * @since 3.0.0\r\n */\r\n boot: function ()\r\n {\r\n this._pending = 3;\r\n\r\n this.on(Events.LOAD, this.updatePending, this);\r\n this.on(Events.ERROR, this.updatePending, this);\r\n\r\n var config = this.game.config;\r\n\r\n if (config.defaultImage !== null)\r\n {\r\n this.addBase64('__DEFAULT', config.defaultImage);\r\n }\r\n\r\n if (config.missingImage !== null)\r\n {\r\n this.addBase64('__MISSING', config.missingImage);\r\n }\r\n \r\n if (config.whiteImage !== null)\r\n {\r\n this.addBase64('__WHITE', config.whiteImage);\r\n }\r\n\r\n if (this.game.renderer && this.game.renderer.gl)\r\n {\r\n this.addUint8Array('__NORMAL', new Uint8Array([ 127, 127, 255, 255 ]), 1, 1);\r\n }\r\n\r\n this.game.events.once(GameEvents.DESTROY, this.destroy, this);\r\n\r\n this.game.events.once(GameEvents.SYSTEM_READY, function (scene)\r\n {\r\n this.stamp = new ImageGameObject(scene).setOrigin(0);\r\n\r\n }, this);\r\n },\r\n\r\n /**\r\n * After 'onload' or 'onerror' invoked twice, emit 'ready' event.\r\n *\r\n * @method Phaser.Textures.TextureManager#updatePending\r\n * @private\r\n * @since 3.0.0\r\n */\r\n updatePending: function ()\r\n {\r\n this._pending--;\r\n\r\n if (this._pending === 0)\r\n {\r\n this.off(Events.LOAD);\r\n this.off(Events.ERROR);\r\n\r\n this.emit(Events.READY);\r\n }\r\n },\r\n\r\n /**\r\n * Checks the given texture key and throws a console.warn if the key is already in use, then returns false.\r\n *\r\n * If you wish to avoid the console.warn then use `TextureManager.exists` instead.\r\n *\r\n * @method Phaser.Textures.TextureManager#checkKey\r\n * @since 3.7.0\r\n *\r\n * @param {string} key - The texture key to check.\r\n *\r\n * @return {boolean} `true` if it's safe to use the texture key, otherwise `false`.\r\n */\r\n checkKey: function (key)\r\n {\r\n if (!key || typeof key !== 'string' || this.exists(key))\r\n {\r\n if (!this.silentWarnings)\r\n {\r\n // eslint-disable-next-line no-console\r\n console.error('Texture key already in use: ' + key);\r\n }\r\n\r\n return false;\r\n }\r\n\r\n return true;\r\n },\r\n\r\n /**\r\n * Removes a Texture from the Texture Manager and destroys it. This will immediately\r\n * clear all references to it from the Texture Manager, and if it has one, destroy its\r\n * WebGLTexture. This will emit a `removetexture` event.\r\n *\r\n * Note: If you have any Game Objects still using this texture they will start throwing\r\n * errors the next time they try to render. Make sure that removing the texture is the final\r\n * step when clearing down to avoid this.\r\n *\r\n * @method Phaser.Textures.TextureManager#remove\r\n * @fires Phaser.Textures.Events#REMOVE\r\n * @since 3.7.0\r\n *\r\n * @param {(string|Phaser.Textures.Texture)} key - The key of the Texture to remove, or a reference to it.\r\n *\r\n * @return {Phaser.Textures.TextureManager} The Texture Manager.\r\n */\r\n remove: function (key)\r\n {\r\n if (typeof key === 'string')\r\n {\r\n if (this.exists(key))\r\n {\r\n key = this.get(key);\r\n }\r\n else\r\n {\r\n if (!this.silentWarnings)\r\n {\r\n console.warn('No texture found matching key: ' + key);\r\n }\r\n\r\n return this;\r\n }\r\n }\r\n\r\n // By this point key should be a Texture, if not, the following fails anyway\r\n var textureKey = key.key;\r\n\r\n if (this.list.hasOwnProperty(textureKey))\r\n {\r\n key.destroy();\r\n\r\n this.emit(Events.REMOVE, textureKey);\r\n this.emit(Events.REMOVE_KEY + textureKey);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes a key from the Texture Manager but does not destroy the Texture that was using the key.\r\n *\r\n * @method Phaser.Textures.TextureManager#removeKey\r\n * @since 3.17.0\r\n *\r\n * @param {string} key - The key to remove from the texture list.\r\n *\r\n * @return {Phaser.Textures.TextureManager} The Texture Manager.\r\n */\r\n removeKey: function (key)\r\n {\r\n if (this.list.hasOwnProperty(key))\r\n {\r\n delete this.list[key];\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds a new Texture to the Texture Manager created from the given Base64 encoded data.\r\n *\r\n * It works by creating an `Image` DOM object, then setting the `src` attribute to\r\n * the given base64 encoded data. As a result, the process is asynchronous by its nature,\r\n * so be sure to listen for the events this method dispatches before using the texture.\r\n *\r\n * @method Phaser.Textures.TextureManager#addBase64\r\n * @fires Phaser.Textures.Events#ADD\r\n * @fires Phaser.Textures.Events#ERROR\r\n * @fires Phaser.Textures.Events#LOAD\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {*} data - The Base64 encoded data.\r\n *\r\n * @return {this} This Texture Manager instance.\r\n */\r\n addBase64: function (key, data)\r\n {\r\n if (this.checkKey(key))\r\n {\r\n var _this = this;\r\n\r\n var image = new Image();\r\n\r\n image.onerror = function ()\r\n {\r\n _this.emit(Events.ERROR, key);\r\n };\r\n\r\n image.onload = function ()\r\n {\r\n var texture = _this.create(key, image);\r\n\r\n Parser.Image(texture, 0);\r\n\r\n _this.emit(Events.ADD, key, texture);\r\n _this.emit(Events.ADD_KEY + key, texture);\r\n _this.emit(Events.LOAD, key, texture);\r\n };\r\n\r\n image.src = data;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Gets an existing texture frame and converts it into a base64 encoded image and returns the base64 data.\r\n *\r\n * You can also provide the image type and encoder options.\r\n *\r\n * This will only work with bitmap based texture frames, such as those created from Texture Atlases.\r\n * It will not work with GL Texture objects, such as Shaders, or Render Textures. For those please\r\n * see the WebGL Snapshot function instead.\r\n *\r\n * @method Phaser.Textures.TextureManager#getBase64\r\n * @since 3.12.0\r\n *\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {(string|number)} [frame] - The string-based name, or integer based index, of the Frame to get from the Texture.\r\n * @param {string} [type='image/png'] - A DOMString indicating the image format. The default format type is image/png.\r\n * @param {number} [encoderOptions=0.92] - A Number between 0 and 1 indicating the image quality to use for image formats that use lossy compression such as image/jpeg and image/webp. If this argument is anything else, the default value for image quality is used. The default value is 0.92. Other arguments are ignored.\r\n *\r\n * @return {string} The base64 encoded data, or an empty string if the texture frame could not be found.\r\n */\r\n getBase64: function (key, frame, type, encoderOptions)\r\n {\r\n if (type === undefined) { type = 'image/png'; }\r\n if (encoderOptions === undefined) { encoderOptions = 0.92; }\r\n\r\n var data = '';\r\n\r\n var textureFrame = this.getFrame(key, frame);\r\n\r\n if (textureFrame && (textureFrame.source.isRenderTexture || textureFrame.source.isGLTexture))\r\n {\r\n if (!this.silentWarnings)\r\n {\r\n console.warn('Cannot getBase64 from WebGL Texture');\r\n }\r\n }\r\n else if (textureFrame)\r\n {\r\n var cd = textureFrame.canvasData;\r\n\r\n var canvas = CanvasPool.create2D(this, cd.width, cd.height);\r\n var ctx = canvas.getContext('2d', { willReadFrequently: true });\r\n\r\n if (cd.width > 0 && cd.height > 0)\r\n {\r\n ctx.drawImage(\r\n textureFrame.source.image,\r\n cd.x,\r\n cd.y,\r\n cd.width,\r\n cd.height,\r\n 0,\r\n 0,\r\n cd.width,\r\n cd.height\r\n );\r\n }\r\n\r\n data = canvas.toDataURL(type, encoderOptions);\r\n\r\n CanvasPool.remove(canvas);\r\n }\r\n\r\n return data;\r\n },\r\n\r\n /**\r\n * Adds a new Texture to the Texture Manager created from the given Image element.\r\n *\r\n * @method Phaser.Textures.TextureManager#addImage\r\n * @fires Phaser.Textures.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {HTMLImageElement} source - The source Image element.\r\n * @param {HTMLImageElement|HTMLCanvasElement} [dataSource] - An optional data Image element.\r\n *\r\n * @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use.\r\n */\r\n addImage: function (key, source, dataSource)\r\n {\r\n var texture = null;\r\n\r\n if (this.checkKey(key))\r\n {\r\n texture = this.create(key, source);\r\n\r\n Parser.Image(texture, 0);\r\n\r\n if (dataSource)\r\n {\r\n texture.setDataSource(dataSource);\r\n }\r\n\r\n this.emit(Events.ADD, key, texture);\r\n this.emit(Events.ADD_KEY + key, texture);\r\n }\r\n\r\n return texture;\r\n },\r\n\r\n /**\r\n * Takes a WebGLTextureWrapper and creates a Phaser Texture from it, which is added to the Texture Manager using the given key.\r\n *\r\n * This allows you to then use the Texture as a normal texture for texture based Game Objects like Sprites.\r\n *\r\n * This is a WebGL only feature.\r\n *\r\n * Prior to Phaser 3.80.0, this method took a bare `WebGLTexture`\r\n * as the `glTexture` parameter. You must now wrap the `WebGLTexture` in a\r\n * `WebGLTextureWrapper` instance before passing it to this method.\r\n *\r\n * @method Phaser.Textures.TextureManager#addGLTexture\r\n * @fires Phaser.Textures.Events#ADD\r\n * @since 3.19.0\r\n *\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper} glTexture - The source Render Texture.\r\n *\r\n * @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use.\r\n */\r\n addGLTexture: function (key, glTexture)\r\n {\r\n var texture = null;\r\n\r\n if (this.checkKey(key))\r\n {\r\n var width = glTexture.width;\r\n var height = glTexture.height;\r\n\r\n texture = this.create(key, glTexture, width, height);\r\n\r\n texture.add('__BASE', 0, 0, 0, width, height);\r\n\r\n this.emit(Events.ADD, key, texture);\r\n this.emit(Events.ADD_KEY + key, texture);\r\n }\r\n\r\n return texture;\r\n },\r\n\r\n /**\r\n * Adds a Compressed Texture to this Texture Manager.\r\n *\r\n * The texture should typically have been loaded via the `CompressedTextureFile` loader,\r\n * in order to prepare the correct data object this method requires.\r\n *\r\n * You can optionally also pass atlas data to this method, in which case a texture atlas\r\n * will be generated from the given compressed texture, combined with the atlas data.\r\n *\r\n * @method Phaser.Textures.TextureManager#addCompressedTexture\r\n * @fires Phaser.Textures.Events#ADD\r\n * @since 3.60.0\r\n *\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {Phaser.Types.Textures.CompressedTextureData} textureData - The Compressed Texture data object.\r\n * @param {object} [atlasData] - Optional Texture Atlas data.\r\n *\r\n * @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use.\r\n */\r\n addCompressedTexture: function (key, textureData, atlasData)\r\n {\r\n var texture = null;\r\n\r\n if (this.checkKey(key))\r\n {\r\n texture = this.create(key, textureData);\r\n\r\n texture.add('__BASE', 0, 0, 0, textureData.width, textureData.height);\r\n\r\n if (atlasData)\r\n {\r\n var parse = function (texture, sourceIndex, atlasData)\r\n {\r\n if (Array.isArray(atlasData.textures) || Array.isArray(atlasData.frames))\r\n {\r\n Parser.JSONArray(texture, sourceIndex, atlasData);\r\n }\r\n else\r\n {\r\n Parser.JSONHash(texture, sourceIndex, atlasData);\r\n }\r\n };\r\n if (Array.isArray(atlasData))\r\n {\r\n for (var i = 0; i < atlasData.length; i++)\r\n {\r\n parse(texture, i, atlasData[i]);\r\n }\r\n }\r\n else\r\n {\r\n parse(texture, 0, atlasData);\r\n }\r\n }\r\n\r\n this.emit(Events.ADD, key, texture);\r\n this.emit(Events.ADD_KEY + key, texture);\r\n }\r\n\r\n return texture;\r\n },\r\n\r\n /**\r\n * Adds a Render Texture to the Texture Manager using the given key.\r\n * This allows you to then use the Render Texture as a normal texture for texture based Game Objects like Sprites.\r\n *\r\n * @method Phaser.Textures.TextureManager#addRenderTexture\r\n * @fires Phaser.Textures.Events#ADD\r\n * @since 3.12.0\r\n *\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {Phaser.GameObjects.RenderTexture} renderTexture - The source Render Texture.\r\n *\r\n * @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use.\r\n */\r\n addRenderTexture: function (key, renderTexture)\r\n {\r\n var texture = null;\r\n\r\n if (this.checkKey(key))\r\n {\r\n texture = this.create(key, renderTexture);\r\n\r\n texture.add('__BASE', 0, 0, 0, renderTexture.width, renderTexture.height);\r\n\r\n this.emit(Events.ADD, key, texture);\r\n this.emit(Events.ADD_KEY + key, texture);\r\n }\r\n\r\n return texture;\r\n },\r\n\r\n /**\r\n * Creates a new Texture using the given config values.\r\n *\r\n * Generated textures consist of a Canvas element to which the texture data is drawn.\r\n *\r\n * Generates a texture based on the given Create configuration object.\r\n *\r\n * The texture is drawn using a fixed-size indexed palette of 16 colors, where the hex value in the\r\n * data cells map to a single color. For example, if the texture config looked like this:\r\n *\r\n * ```javascript\r\n * var star = [\r\n * '.....828.....',\r\n * '....72227....',\r\n * '....82228....',\r\n * '...7222227...',\r\n * '2222222222222',\r\n * '8222222222228',\r\n * '.72222222227.',\r\n * '..787777787..',\r\n * '..877777778..',\r\n * '.78778887787.',\r\n * '.27887.78872.',\r\n * '.787.....787.'\r\n * ];\r\n *\r\n * this.textures.generate('star', { data: star, pixelWidth: 4 });\r\n * ```\r\n *\r\n * Then it would generate a texture that is 52 x 48 pixels in size, because each cell of the data array\r\n * represents 1 pixel multiplied by the `pixelWidth` value. The cell values, such as `8`, maps to color\r\n * number 8 in the palette. If a cell contains a period character `.` then it is transparent.\r\n *\r\n * The default palette is Arne16, but you can specify your own using the `palette` property.\r\n *\r\n * @method Phaser.Textures.TextureManager#generate\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {Phaser.Types.Create.GenerateTextureConfig} config - The configuration object needed to generate the texture.\r\n *\r\n * @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use.\r\n */\r\n generate: function (key, config)\r\n {\r\n if (this.checkKey(key))\r\n {\r\n var canvas = CanvasPool.create(this, 1, 1);\r\n\r\n config.canvas = canvas;\r\n\r\n GenerateTexture(config);\r\n\r\n return this.addCanvas(key, canvas);\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n },\r\n\r\n /**\r\n * Creates a new Texture using a blank Canvas element of the size given.\r\n *\r\n * Canvas elements are automatically pooled and calling this method will\r\n * extract a free canvas from the CanvasPool, or create one if none are available.\r\n *\r\n * @method Phaser.Textures.TextureManager#createCanvas\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {number} [width=256] - The width of the Canvas element.\r\n * @param {number} [height=256] - The height of the Canvas element.\r\n *\r\n * @return {?Phaser.Textures.CanvasTexture} The Canvas Texture that was created, or `null` if the key is already in use.\r\n */\r\n createCanvas: function (key, width, height)\r\n {\r\n if (width === undefined) { width = 256; }\r\n if (height === undefined) { height = 256; }\r\n\r\n if (this.checkKey(key))\r\n {\r\n var canvas = CanvasPool.create(this, width, height, CONST.CANVAS, true);\r\n\r\n return this.addCanvas(key, canvas);\r\n }\r\n\r\n return null;\r\n },\r\n\r\n /**\r\n * Creates a new Canvas Texture object from an existing Canvas element\r\n * and adds it to this Texture Manager, unless `skipCache` is true.\r\n *\r\n * @method Phaser.Textures.TextureManager#addCanvas\r\n * @fires Phaser.Textures.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {HTMLCanvasElement} source - The Canvas element to form the base of the new Texture.\r\n * @param {boolean} [skipCache=false] - Skip adding this Texture into the Cache?\r\n *\r\n * @return {?Phaser.Textures.CanvasTexture} The Canvas Texture that was created, or `null` if the key is already in use.\r\n */\r\n addCanvas: function (key, source, skipCache)\r\n {\r\n if (skipCache === undefined) { skipCache = false; }\r\n\r\n var texture = null;\r\n\r\n if (skipCache)\r\n {\r\n texture = new CanvasTexture(this, key, source, source.width, source.height);\r\n }\r\n else if (this.checkKey(key))\r\n {\r\n texture = new CanvasTexture(this, key, source, source.width, source.height);\r\n\r\n this.list[key] = texture;\r\n\r\n this.emit(Events.ADD, key, texture);\r\n this.emit(Events.ADD_KEY + key, texture);\r\n }\r\n\r\n return texture;\r\n },\r\n\r\n /**\r\n * Creates a Dynamic Texture instance and adds itself to this Texture Manager.\r\n *\r\n * A Dynamic Texture is a special texture that allows you to draw textures, frames and most kind of\r\n * Game Objects directly to it.\r\n *\r\n * You can take many complex objects and draw them to this one texture, which can then be used as the\r\n * base texture for other Game Objects, such as Sprites. Should you then update this texture, all\r\n * Game Objects using it will instantly be updated as well, reflecting the changes immediately.\r\n *\r\n * It's a powerful way to generate dynamic textures at run-time that are WebGL friendly and don't invoke\r\n * expensive GPU uploads on each change.\r\n *\r\n * See the methods available on the `DynamicTexture` class for more details.\r\n *\r\n * Optionally, you can also pass a Dynamic Texture instance to this method to have\r\n * it added to the Texture Manager.\r\n *\r\n * @method Phaser.Textures.TextureManager#addDynamicTexture\r\n * @fires Phaser.Textures.Events#ADD\r\n * @since 3.60.0\r\n *\r\n * @param {(string|Phaser.Textures.DynamicTexture)} key - The string-based key of this Texture. Must be unique within the Texture Manager. Or, a DynamicTexture instance.\r\n * @param {number} [width=256] - The width of this Dynamic Texture in pixels. Defaults to 256 x 256. Ignored if an instance is passed as the key.\r\n * @param {number} [height=256] - The height of this Dynamic Texture in pixels. Defaults to 256 x 256. Ignored if an instance is passed as the key.\r\n *\r\n * @return {?Phaser.Textures.DynamicTexture} The Dynamic Texture that was created, or `null` if the key is already in use.\r\n */\r\n addDynamicTexture: function (key, width, height)\r\n {\r\n var texture = null;\r\n\r\n if (typeof(key) === 'string' && !this.exists(key))\r\n {\r\n texture = new DynamicTexture(this, key, width, height);\r\n }\r\n else\r\n {\r\n texture = key;\r\n key = texture.key;\r\n }\r\n\r\n if (this.checkKey(key))\r\n {\r\n this.list[key] = texture;\r\n\r\n this.emit(Events.ADD, key, texture);\r\n this.emit(Events.ADD_KEY + key, texture);\r\n }\r\n else\r\n {\r\n texture = null;\r\n }\r\n\r\n return texture;\r\n },\r\n\r\n /**\r\n * Adds a Texture Atlas to this Texture Manager.\r\n *\r\n * In Phaser terminology, a Texture Atlas is a combination of an atlas image and a JSON data file,\r\n * such as those exported by applications like Texture Packer.\r\n *\r\n * It can accept either JSON Array or JSON Hash formats, as exported by Texture Packer and similar software.\r\n *\r\n * As of Phaser 3.60 you can use this method to add a atlas data to an existing Phaser Texture.\r\n *\r\n * @method Phaser.Textures.TextureManager#addAtlas\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {(HTMLImageElement|HTMLImageElement[]|Phaser.Textures.Texture)} source - The source Image element/s, or a Phaser Texture.\r\n * @param {(object|object[])} data - The Texture Atlas data/s.\r\n * @param {HTMLImageElement|HTMLCanvasElement|HTMLImageElement[]|HTMLCanvasElement[]} [dataSource] - An optional data Image element.\r\n *\r\n * @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use.\r\n */\r\n addAtlas: function (key, source, data, dataSource)\r\n {\r\n // New Texture Packer format?\r\n if (Array.isArray(data.textures) || Array.isArray(data.frames))\r\n {\r\n return this.addAtlasJSONArray(key, source, data, dataSource);\r\n }\r\n else\r\n {\r\n return this.addAtlasJSONHash(key, source, data, dataSource);\r\n }\r\n },\r\n\r\n /**\r\n * Adds a Texture Atlas to this Texture Manager.\r\n *\r\n * In Phaser terminology, a Texture Atlas is a combination of an atlas image and a JSON data file,\r\n * such as those exported by applications like Texture Packer.\r\n *\r\n * The frame data of the atlas must be stored in an Array within the JSON.\r\n *\r\n * This is known as a JSON Array in software such as Texture Packer.\r\n *\r\n * As of Phaser 3.60 you can use this method to add a atlas data to an existing Phaser Texture.\r\n *\r\n * @method Phaser.Textures.TextureManager#addAtlasJSONArray\r\n * @fires Phaser.Textures.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {(HTMLImageElement|HTMLImageElement[]|Phaser.Textures.Texture)} source - The source Image element/s, or a Phaser Texture.\r\n * @param {(object|object[])} data - The Texture Atlas data/s.\r\n * @param {HTMLImageElement|HTMLCanvasElement|HTMLImageElement[]|HTMLCanvasElement[]} [dataSource] - An optional data Image element.\r\n *\r\n * @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use.\r\n */\r\n addAtlasJSONArray: function (key, source, data, dataSource)\r\n {\r\n var texture = null;\r\n\r\n if (source instanceof Texture)\r\n {\r\n key = source.key;\r\n texture = source;\r\n }\r\n else if (this.checkKey(key))\r\n {\r\n texture = this.create(key, source);\r\n }\r\n\r\n if (texture)\r\n {\r\n // Multi-Atlas?\r\n if (Array.isArray(data))\r\n {\r\n var singleAtlasFile = (data.length === 1); // multi-pack with one atlas file for all images\r\n\r\n // !! Assumes the textures are in the same order in the source array as in the json data !!\r\n for (var i = 0; i < texture.source.length; i++)\r\n {\r\n var atlasData = singleAtlasFile ? data[0] : data[i];\r\n\r\n Parser.JSONArray(texture, i, atlasData);\r\n }\r\n }\r\n else\r\n {\r\n Parser.JSONArray(texture, 0, data);\r\n }\r\n\r\n if (dataSource)\r\n {\r\n texture.setDataSource(dataSource);\r\n }\r\n\r\n this.emit(Events.ADD, key, texture);\r\n this.emit(Events.ADD_KEY + key, texture);\r\n }\r\n\r\n return texture;\r\n },\r\n\r\n /**\r\n * Adds a Texture Atlas to this Texture Manager.\r\n *\r\n * In Phaser terminology, a Texture Atlas is a combination of an atlas image and a JSON data file,\r\n * such as those exported by applications like Texture Packer.\r\n *\r\n * The frame data of the atlas must be stored in an Object within the JSON.\r\n *\r\n * This is known as a JSON Hash in software such as Texture Packer.\r\n *\r\n * As of Phaser 3.60 you can use this method to add a atlas data to an existing Phaser Texture.\r\n *\r\n * @method Phaser.Textures.TextureManager#addAtlasJSONHash\r\n * @fires Phaser.Textures.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {(HTMLImageElement|HTMLImageElement[]|Phaser.Textures.Texture)} source - The source Image element/s, or a Phaser Texture.\r\n * @param {(object|object[])} data - The Texture Atlas data/s.\r\n * @param {HTMLImageElement|HTMLCanvasElement|HTMLImageElement[]|HTMLCanvasElement[]} [dataSource] - An optional data Image element.\r\n *\r\n * @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use.\r\n */\r\n addAtlasJSONHash: function (key, source, data, dataSource)\r\n {\r\n var texture = null;\r\n\r\n if (source instanceof Texture)\r\n {\r\n key = source.key;\r\n texture = source;\r\n }\r\n else if (this.checkKey(key))\r\n {\r\n texture = this.create(key, source);\r\n }\r\n\r\n if (texture)\r\n {\r\n if (Array.isArray(data))\r\n {\r\n for (var i = 0; i < data.length; i++)\r\n {\r\n Parser.JSONHash(texture, i, data[i]);\r\n }\r\n }\r\n else\r\n {\r\n Parser.JSONHash(texture, 0, data);\r\n }\r\n\r\n if (dataSource)\r\n {\r\n texture.setDataSource(dataSource);\r\n }\r\n\r\n this.emit(Events.ADD, key, texture);\r\n this.emit(Events.ADD_KEY + key, texture);\r\n }\r\n\r\n return texture;\r\n },\r\n\r\n /**\r\n * Adds a Texture Atlas to this Texture Manager.\r\n *\r\n * In Phaser terminology, a Texture Atlas is a combination of an atlas image and a data file,\r\n * such as those exported by applications like Texture Packer.\r\n *\r\n * The frame data of the atlas must be stored in an XML file.\r\n *\r\n * As of Phaser 3.60 you can use this method to add a atlas data to an existing Phaser Texture.\r\n *\r\n * @method Phaser.Textures.TextureManager#addAtlasXML\r\n * @fires Phaser.Textures.Events#ADD\r\n * @since 3.7.0\r\n *\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {(HTMLImageElement|Phaser.Textures.Texture)} source - The source Image element, or a Phaser Texture.\r\n * @param {object} data - The Texture Atlas XML data.\r\n * @param {HTMLImageElement|HTMLCanvasElement|HTMLImageElement[]|HTMLCanvasElement[]} [dataSource] - An optional data Image element.\r\n *\r\n * @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use.\r\n */\r\n addAtlasXML: function (key, source, data, dataSource)\r\n {\r\n var texture = null;\r\n\r\n if (source instanceof Texture)\r\n {\r\n key = source.key;\r\n texture = source;\r\n }\r\n else if (this.checkKey(key))\r\n {\r\n texture = this.create(key, source);\r\n }\r\n\r\n if (texture)\r\n {\r\n Parser.AtlasXML(texture, 0, data);\r\n\r\n if (dataSource)\r\n {\r\n texture.setDataSource(dataSource);\r\n }\r\n\r\n this.emit(Events.ADD, key, texture);\r\n this.emit(Events.ADD_KEY + key, texture);\r\n }\r\n\r\n return texture;\r\n },\r\n\r\n /**\r\n * Adds a Unity Texture Atlas to this Texture Manager.\r\n *\r\n * In Phaser terminology, a Texture Atlas is a combination of an atlas image and a data file,\r\n * such as those exported by applications like Texture Packer or Unity.\r\n *\r\n * The frame data of the atlas must be stored in a Unity YAML file.\r\n *\r\n * As of Phaser 3.60 you can use this method to add a atlas data to an existing Phaser Texture.\r\n *\r\n * @method Phaser.Textures.TextureManager#addUnityAtlas\r\n * @fires Phaser.Textures.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {HTMLImageElement} source - The source Image element.\r\n * @param {object} data - The Texture Atlas data.\r\n * @param {HTMLImageElement|HTMLCanvasElement|HTMLImageElement[]|HTMLCanvasElement[]} [dataSource] - An optional data Image element.\r\n *\r\n * @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use.\r\n */\r\n addUnityAtlas: function (key, source, data, dataSource)\r\n {\r\n var texture = null;\r\n\r\n if (source instanceof Texture)\r\n {\r\n key = source.key;\r\n texture = source;\r\n }\r\n else if (this.checkKey(key))\r\n {\r\n texture = this.create(key, source);\r\n }\r\n\r\n if (texture)\r\n {\r\n Parser.UnityYAML(texture, 0, data);\r\n\r\n if (dataSource)\r\n {\r\n texture.setDataSource(dataSource);\r\n }\r\n\r\n this.emit(Events.ADD, key, texture);\r\n this.emit(Events.ADD_KEY + key, texture);\r\n }\r\n\r\n return texture;\r\n },\r\n\r\n /**\r\n * Adds a Sprite Sheet to this Texture Manager.\r\n *\r\n * In Phaser terminology a Sprite Sheet is a texture containing different frames, but each frame is the exact\r\n * same size and cannot be trimmed or rotated. This is different to a Texture Atlas, created by tools such as\r\n * Texture Packer, and more akin with the fixed-frame exports you get from apps like Aseprite or old arcade\r\n * games.\r\n *\r\n * As of Phaser 3.60 you can use this method to add a sprite sheet to an existing Phaser Texture.\r\n *\r\n * @method Phaser.Textures.TextureManager#addSpriteSheet\r\n * @fires Phaser.Textures.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The unique string-based key of the Texture. Give an empty string if you provide a Phaser Texture as the 2nd argument.\r\n * @param {(HTMLImageElement|Phaser.Textures.Texture)} source - The source Image element, or a Phaser Texture.\r\n * @param {Phaser.Types.Textures.SpriteSheetConfig} config - The configuration object for this Sprite Sheet.\r\n * @param {HTMLImageElement|HTMLCanvasElement} [dataSource] - An optional data Image element.\r\n *\r\n * @return {?Phaser.Textures.Texture} The Texture that was created or updated, or `null` if the key is already in use.\r\n */\r\n addSpriteSheet: function (key, source, config, dataSource)\r\n {\r\n var texture = null;\r\n\r\n if (source instanceof Texture)\r\n {\r\n key = source.key;\r\n texture = source;\r\n }\r\n else if (this.checkKey(key))\r\n {\r\n texture = this.create(key, source);\r\n }\r\n\r\n if (texture)\r\n {\r\n var width = texture.source[0].width;\r\n var height = texture.source[0].height;\r\n\r\n Parser.SpriteSheet(texture, 0, 0, 0, width, height, config);\r\n\r\n if (dataSource)\r\n {\r\n texture.setDataSource(dataSource);\r\n }\r\n\r\n this.emit(Events.ADD, key, texture);\r\n this.emit(Events.ADD_KEY + key, texture);\r\n }\r\n\r\n return texture;\r\n },\r\n\r\n /**\r\n * Adds a Sprite Sheet to this Texture Manager, where the Sprite Sheet exists as a Frame within a Texture Atlas.\r\n *\r\n * In Phaser terminology a Sprite Sheet is a texture containing different frames, but each frame is the exact\r\n * same size and cannot be trimmed or rotated.\r\n *\r\n * @method Phaser.Textures.TextureManager#addSpriteSheetFromAtlas\r\n * @fires Phaser.Textures.Events#ADD\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {Phaser.Types.Textures.SpriteSheetFromAtlasConfig} config - The configuration object for this Sprite Sheet.\r\n *\r\n * @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use.\r\n */\r\n addSpriteSheetFromAtlas: function (key, config)\r\n {\r\n if (!this.checkKey(key))\r\n {\r\n return null;\r\n }\r\n\r\n var atlasKey = GetValue(config, 'atlas', null);\r\n var atlasFrame = GetValue(config, 'frame', null);\r\n\r\n if (!atlasKey || !atlasFrame)\r\n {\r\n return;\r\n }\r\n\r\n var atlas = this.get(atlasKey);\r\n var sheet = atlas.get(atlasFrame);\r\n\r\n if (sheet)\r\n {\r\n var source = sheet.source.image;\r\n if (!source)\r\n {\r\n source = sheet.source.glTexture;\r\n }\r\n var texture = this.create(key, source);\r\n\r\n if (sheet.trimmed)\r\n {\r\n // If trimmed we need to help the parser adjust\r\n Parser.SpriteSheetFromAtlas(texture, sheet, config);\r\n }\r\n else\r\n {\r\n Parser.SpriteSheet(texture, 0, sheet.cutX, sheet.cutY, sheet.cutWidth, sheet.cutHeight, config);\r\n }\r\n\r\n this.emit(Events.ADD, key, texture);\r\n this.emit(Events.ADD_KEY + key, texture);\r\n\r\n return texture;\r\n }\r\n },\r\n\r\n /**\r\n * Creates a texture from an array of colour data.\r\n *\r\n * This is only available in WebGL mode.\r\n *\r\n * If the dimensions provided are powers of two, the resulting texture\r\n * will be automatically set to wrap by the WebGL Renderer.\r\n *\r\n * @method Phaser.Textures.TextureManager#addUint8Array\r\n * @fires Phaser.Textures.Events#ADD\r\n * @since 3.80.0\r\n *\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {Uint8Array} data - The color data for the texture.\r\n * @param {number} width - The width of the texture.\r\n * @param {number} height - The height of the texture.\r\n *\r\n * @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use.\r\n */\r\n addUint8Array: function (key, data, width, height)\r\n {\r\n if (\r\n !this.checkKey(key) ||\r\n data.length / 4 !== width * height\r\n )\r\n {\r\n return null;\r\n }\r\n\r\n var texture = this.create(key, data, width, height);\r\n\r\n texture.add('__BASE', 0, 0, 0, width, height);\r\n\r\n this.emit(Events.ADD, key, texture);\r\n this.emit(Events.ADD_KEY + key, texture);\r\n\r\n return texture;\r\n },\r\n\r\n /**\r\n * Creates a new Texture using the given source and dimensions.\r\n *\r\n * @method Phaser.Textures.TextureManager#create\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {(HTMLImageElement|HTMLCanvasElement|HTMLImageElement[]|HTMLCanvasElement[]|Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper)} source - An array of sources that are used to create the texture. Usually Images, but can also be a Canvas.\r\n * @param {number} [width] - The width of the Texture. This is optional and automatically derived from the source images.\r\n * @param {number} [height] - The height of the Texture. This is optional and automatically derived from the source images.\r\n *\r\n * @return {?Phaser.Textures.Texture} The Texture that was created, or `null` if the key is already in use.\r\n */\r\n create: function (key, source, width, height)\r\n {\r\n var texture = null;\r\n\r\n if (this.checkKey(key))\r\n {\r\n texture = new Texture(this, key, source, width, height);\r\n\r\n this.list[key] = texture;\r\n }\r\n\r\n return texture;\r\n },\r\n\r\n /**\r\n * Checks the given key to see if a Texture using it exists within this Texture Manager.\r\n *\r\n * @method Phaser.Textures.TextureManager#exists\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The unique string-based key of the Texture.\r\n *\r\n * @return {boolean} Returns `true` if a Texture matching the given key exists in this Texture Manager.\r\n */\r\n exists: function (key)\r\n {\r\n return (this.list.hasOwnProperty(key));\r\n },\r\n\r\n /**\r\n * Returns a Texture from the Texture Manager that matches the given key.\r\n *\r\n * If the key is `undefined` it will return the `__DEFAULT` Texture.\r\n *\r\n * If the key is an instance of a Texture, it will return the instance.\r\n *\r\n * If the key is an instance of a Frame, it will return the frames parent Texture instance.\r\n *\r\n * Finally, if the key is given, but not found, and not a Texture or Frame instance, it will return the `__MISSING` Texture.\r\n *\r\n * @method Phaser.Textures.TextureManager#get\r\n * @since 3.0.0\r\n *\r\n * @param {(string|Phaser.Textures.Texture|Phaser.Textures.Frame)} key - The unique string-based key of the Texture, or a Texture, or Frame instance.\r\n *\r\n * @return {Phaser.Textures.Texture} The Texture matching the given key.\r\n */\r\n get: function (key)\r\n {\r\n if (key === undefined) { key = '__DEFAULT'; }\r\n\r\n if (this.list[key])\r\n {\r\n return this.list[key];\r\n }\r\n else if (key instanceof Texture)\r\n {\r\n return key;\r\n }\r\n else if (key instanceof Frame)\r\n {\r\n return key.texture;\r\n }\r\n else\r\n {\r\n return this.list['__MISSING'];\r\n }\r\n },\r\n\r\n /**\r\n * Takes a Texture key and Frame name and returns a clone of that Frame if found.\r\n *\r\n * @method Phaser.Textures.TextureManager#cloneFrame\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {(string|number)} frame - The string or index of the Frame to be cloned.\r\n *\r\n * @return {Phaser.Textures.Frame} A Clone of the given Frame.\r\n */\r\n cloneFrame: function (key, frame)\r\n {\r\n if (this.list[key])\r\n {\r\n return this.list[key].get(frame).clone();\r\n }\r\n },\r\n\r\n /**\r\n * Takes a Texture key and Frame name and returns a reference to that Frame, if found.\r\n *\r\n * @method Phaser.Textures.TextureManager#getFrame\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {(string|number)} [frame] - The string-based name, or integer based index, of the Frame to get from the Texture.\r\n *\r\n * @return {Phaser.Textures.Frame} A Texture Frame object.\r\n */\r\n getFrame: function (key, frame)\r\n {\r\n if (this.list[key])\r\n {\r\n return this.list[key].get(frame);\r\n }\r\n },\r\n\r\n /**\r\n * Parses the 'key' parameter and returns a Texture Frame instance.\r\n *\r\n * It can accept the following formats:\r\n *\r\n * 1) A string\r\n * 2) An array where the elements are: [ key, [frame] ]\r\n * 3) An object with the properties: { key, [frame] }\r\n * 4) A Texture instance - which returns the default frame from the Texture\r\n * 5) A Frame instance - returns itself\r\n *\r\n * @method Phaser.Textures.TextureManager#parseFrame\r\n * @since 3.60.0\r\n *\r\n * @param {(string|array|object|Phaser.Textures.Texture|Phaser.Textures.Frame)} key - The key to be parsed.\r\n *\r\n * @return {Phaser.Textures.Frame} A Texture Frame object, if found, or undefined if not.\r\n */\r\n parseFrame: function (key)\r\n {\r\n if (!key)\r\n {\r\n return undefined;\r\n }\r\n else if (typeof key === 'string')\r\n {\r\n return this.getFrame(key);\r\n }\r\n else if (Array.isArray(key) && key.length === 2)\r\n {\r\n return this.getFrame(key[0], key[1]);\r\n }\r\n else if (IsPlainObject(key))\r\n {\r\n return this.getFrame(key.key, key.frame);\r\n }\r\n else if (key instanceof Texture)\r\n {\r\n return key.get();\r\n }\r\n else if (key instanceof Frame)\r\n {\r\n return key;\r\n }\r\n },\r\n\r\n /**\r\n * Returns an array with all of the keys of all Textures in this Texture Manager.\r\n * The output array will exclude the `__DEFAULT`, `__MISSING`, `__WHITE`, and `__NORMAL` keys.\r\n *\r\n * @method Phaser.Textures.TextureManager#getTextureKeys\r\n * @since 3.0.0\r\n *\r\n * @return {string[]} An array containing all of the Texture keys stored in this Texture Manager.\r\n */\r\n getTextureKeys: function ()\r\n {\r\n var output = [];\r\n\r\n for (var key in this.list)\r\n {\r\n if (key !== '__DEFAULT' && key !== '__MISSING' && key !== '__WHITE' && key !== '__NORMAL')\r\n {\r\n output.push(key);\r\n }\r\n }\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Given a Texture and an `x` and `y` coordinate this method will return a new\r\n * Color object that has been populated with the color and alpha values of the pixel\r\n * at that location in the Texture.\r\n *\r\n * @method Phaser.Textures.TextureManager#getPixel\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x coordinate of the pixel within the Texture.\r\n * @param {number} y - The y coordinate of the pixel within the Texture.\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {(string|number)} [frame] - The string or index of the Frame.\r\n *\r\n * @return {?Phaser.Display.Color} A Color object populated with the color values of the requested pixel,\r\n * or `null` if the coordinates were out of bounds.\r\n */\r\n getPixel: function (x, y, key, frame)\r\n {\r\n var textureFrame = this.getFrame(key, frame);\r\n\r\n if (textureFrame)\r\n {\r\n // Adjust for trim (if not trimmed x and y are just zero)\r\n x -= textureFrame.x;\r\n y -= textureFrame.y;\r\n\r\n var data = textureFrame.data.cut;\r\n\r\n x += data.x;\r\n y += data.y;\r\n\r\n if (x >= data.x && x < data.r && y >= data.y && y < data.b)\r\n {\r\n var ctx = this._tempContext;\r\n\r\n ctx.clearRect(0, 0, 1, 1);\r\n ctx.drawImage(textureFrame.source.image, x, y, 1, 1, 0, 0, 1, 1);\r\n\r\n var rgb = ctx.getImageData(0, 0, 1, 1);\r\n\r\n return new Color(rgb.data[0], rgb.data[1], rgb.data[2], rgb.data[3]);\r\n }\r\n }\r\n\r\n return null;\r\n },\r\n\r\n /**\r\n * Given a Texture and an `x` and `y` coordinate this method will return a value between 0 and 255\r\n * corresponding to the alpha value of the pixel at that location in the Texture. If the coordinate\r\n * is out of bounds it will return null.\r\n *\r\n * @method Phaser.Textures.TextureManager#getPixelAlpha\r\n * @since 3.10.0\r\n *\r\n * @param {number} x - The x coordinate of the pixel within the Texture.\r\n * @param {number} y - The y coordinate of the pixel within the Texture.\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {(string|number)} [frame] - The string or index of the Frame.\r\n *\r\n * @return {number} A value between 0 and 255, or `null` if the coordinates were out of bounds.\r\n */\r\n getPixelAlpha: function (x, y, key, frame)\r\n {\r\n var textureFrame = this.getFrame(key, frame);\r\n\r\n if (textureFrame)\r\n {\r\n // Adjust for trim (if not trimmed x and y are just zero)\r\n x -= textureFrame.x;\r\n y -= textureFrame.y;\r\n\r\n var data = textureFrame.data.cut;\r\n\r\n x += data.x;\r\n y += data.y;\r\n\r\n if (x >= data.x && x < data.r && y >= data.y && y < data.b)\r\n {\r\n var ctx = this._tempContext;\r\n\r\n ctx.clearRect(0, 0, 1, 1);\r\n ctx.drawImage(textureFrame.source.image, x, y, 1, 1, 0, 0, 1, 1);\r\n\r\n var rgb = ctx.getImageData(0, 0, 1, 1);\r\n\r\n return rgb.data[3];\r\n }\r\n }\r\n\r\n return null;\r\n },\r\n\r\n /**\r\n * Sets the given Game Objects `texture` and `frame` properties so that it uses\r\n * the Texture and Frame specified in the `key` and `frame` arguments to this method.\r\n *\r\n * @method Phaser.Textures.TextureManager#setTexture\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} gameObject - The Game Object the texture would be set on.\r\n * @param {string} key - The unique string-based key of the Texture.\r\n * @param {(string|number)} [frame] - The string or index of the Frame.\r\n *\r\n * @return {Phaser.GameObjects.GameObject} The Game Object the texture was set on.\r\n */\r\n setTexture: function (gameObject, key, frame)\r\n {\r\n if (this.list[key])\r\n {\r\n gameObject.texture = this.list[key];\r\n gameObject.frame = gameObject.texture.get(frame);\r\n }\r\n\r\n return gameObject;\r\n },\r\n\r\n /**\r\n * Changes the key being used by a Texture to the new key provided.\r\n *\r\n * The old key is removed, allowing it to be re-used.\r\n *\r\n * Game Objects are linked to Textures by a reference to the Texture object, so\r\n * all existing references will be retained.\r\n *\r\n * @method Phaser.Textures.TextureManager#renameTexture\r\n * @since 3.12.0\r\n *\r\n * @param {string} currentKey - The current string-based key of the Texture you wish to rename.\r\n * @param {string} newKey - The new unique string-based key to use for the Texture.\r\n *\r\n * @return {boolean} `true` if the Texture key was successfully renamed, otherwise `false`.\r\n */\r\n renameTexture: function (currentKey, newKey)\r\n {\r\n var texture = this.get(currentKey);\r\n\r\n if (texture && currentKey !== newKey)\r\n {\r\n texture.key = newKey;\r\n\r\n this.list[newKey] = texture;\r\n\r\n delete this.list[currentKey];\r\n\r\n return true;\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Passes all Textures to the given callback.\r\n *\r\n * @method Phaser.Textures.TextureManager#each\r\n * @since 3.0.0\r\n *\r\n * @param {EachTextureCallback} callback - The callback function to be sent the Textures.\r\n * @param {object} scope - The value to use as `this` when executing the callback.\r\n * @param {...*} [args] - Additional arguments that will be passed to the callback, after the child.\r\n */\r\n each: function (callback, scope)\r\n {\r\n var args = [ null ];\r\n\r\n for (var i = 1; i < arguments.length; i++)\r\n {\r\n args.push(arguments[i]);\r\n }\r\n\r\n for (var texture in this.list)\r\n {\r\n args[0] = this.list[texture];\r\n\r\n callback.apply(scope, args);\r\n }\r\n },\r\n\r\n /**\r\n * Resets the internal Stamp object, ready for drawing and returns it.\r\n *\r\n * @method Phaser.Textures.TextureManager#resetStamp\r\n * @since 3.60.0\r\n *\r\n * @param {number} [alpha=1] - The alpha to use.\r\n * @param {number} [tint=0xffffff] - WebGL only. The tint color to use.\r\n *\r\n * @return {Phaser.GameObjects.Image} A reference to the Stamp Game Object.\r\n */\r\n resetStamp: function (alpha, tint)\r\n {\r\n if (alpha === undefined) { alpha = 1; }\r\n if (tint === undefined) { tint = 0xffffff; }\r\n\r\n var stamp = this.stamp;\r\n\r\n stamp.setCrop();\r\n stamp.setPosition(0);\r\n stamp.setAngle(0);\r\n stamp.setScale(1);\r\n stamp.setAlpha(alpha);\r\n stamp.setTint(tint);\r\n stamp.setTexture('__WHITE');\r\n\r\n return stamp;\r\n },\r\n\r\n /**\r\n * Destroys the Texture Manager and all Textures stored within it.\r\n *\r\n * @method Phaser.Textures.TextureManager#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n for (var texture in this.list)\r\n {\r\n this.list[texture].destroy();\r\n }\r\n\r\n this.list = {};\r\n\r\n this.stamp.destroy();\r\n\r\n this.game = null;\r\n this.stamp = null;\r\n\r\n CanvasPool.remove(this._tempCanvas);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = TextureManager;\r\n\n\n/***/ }),\n\n/***/ 11876:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CanvasPool = __webpack_require__(27919);\r\nvar Class = __webpack_require__(83419);\r\nvar IsSizePowerOfTwo = __webpack_require__(50030);\r\nvar ScaleModes = __webpack_require__(29795);\r\nvar WebGLTextureWrapper = __webpack_require__(82751);\r\n\r\n/**\r\n * @classdesc\r\n * A Texture Source is the encapsulation of the actual source data for a Texture.\r\n *\r\n * This is typically an Image Element, loaded from the file system or network, a Canvas Element or a Video Element.\r\n *\r\n * A Texture can contain multiple Texture Sources, which only happens when a multi-atlas is loaded.\r\n *\r\n * @class TextureSource\r\n * @memberof Phaser.Textures\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Textures.Texture} texture - The Texture this TextureSource belongs to.\r\n * @param {(HTMLImageElement|HTMLCanvasElement|HTMLVideoElement|Phaser.GameObjects.RenderTexture|Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper|Phaser.Types.Textures.CompressedTextureData|Phaser.Textures.DynamicTexture)} source - The source image data.\r\n * @param {number} [width] - Optional width of the source image. If not given it's derived from the source itself.\r\n * @param {number} [height] - Optional height of the source image. If not given it's derived from the source itself.\r\n * @param {boolean} [flipY=false] - Sets the `UNPACK_FLIP_Y_WEBGL` flag the WebGL Texture uses during upload.\r\n */\r\nvar TextureSource = new Class({\r\n\r\n initialize:\r\n\r\n function TextureSource (texture, source, width, height, flipY)\r\n {\r\n if (flipY === undefined) { flipY = false; }\r\n\r\n var game = texture.manager.game;\r\n\r\n /**\r\n * A reference to the Canvas or WebGL Renderer.\r\n *\r\n * @name Phaser.Textures.TextureSource#renderer\r\n * @type {(Phaser.Renderer.Canvas.CanvasRenderer|Phaser.Renderer.WebGL.WebGLRenderer)}\r\n * @since 3.7.0\r\n */\r\n this.renderer = game.renderer;\r\n\r\n /**\r\n * The Texture this TextureSource instance belongs to.\r\n *\r\n * @name Phaser.Textures.TextureSource#texture\r\n * @type {Phaser.Textures.Texture}\r\n * @since 3.0.0\r\n */\r\n this.texture = texture;\r\n\r\n /**\r\n * The source of the image data.\r\n *\r\n * This is either an Image Element, a Canvas Element, a Video Element, a RenderTexture or a WebGLTextureWrapper.\r\n *\r\n * In Phaser 3.60 and above it can also be a Compressed Texture data object.\r\n *\r\n * @name Phaser.Textures.TextureSource#source\r\n * @type {(HTMLImageElement|HTMLCanvasElement|HTMLVideoElement|Phaser.GameObjects.RenderTexture|Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper|Phaser.Types.Textures.CompressedTextureData|Phaser.Textures.DynamicTexture)}\r\n * @since 3.12.0\r\n */\r\n this.source = source;\r\n\r\n /**\r\n * The image data.\r\n *\r\n * This is either an Image element, Canvas element, Video Element, or Uint8Array.\r\n *\r\n * @name Phaser.Textures.TextureSource#image\r\n * @type {(HTMLImageElement|HTMLCanvasElement|HTMLVideoElement|Uint8Array)}\r\n * @since 3.0.0\r\n */\r\n this.image = (source.compressed) ? null : source;\r\n\r\n /**\r\n * Holds the compressed textured algorithm, or `null` if it's not a compressed texture.\r\n *\r\n * Prior to Phaser 3.60 this value always held `null`.\r\n *\r\n * @name Phaser.Textures.TextureSource#compressionAlgorithm\r\n * @type {number}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.compressionAlgorithm = (source.compressed) ? source.format : null;\r\n\r\n /**\r\n * The resolution of the source image.\r\n *\r\n * @name Phaser.Textures.TextureSource#resolution\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n this.resolution = 1;\r\n\r\n /**\r\n * The width of the source image. If not specified in the constructor it will check\r\n * the `naturalWidth` and then `width` properties of the source image.\r\n *\r\n * @name Phaser.Textures.TextureSource#width\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.width = width || source.naturalWidth || source.videoWidth || source.width || 0;\r\n\r\n /**\r\n * The height of the source image. If not specified in the constructor it will check\r\n * the `naturalHeight` and then `height` properties of the source image.\r\n *\r\n * @name Phaser.Textures.TextureSource#height\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.height = height || source.naturalHeight || source.videoHeight || source.height || 0;\r\n\r\n /**\r\n * The Scale Mode the image will use when rendering.\r\n * Either Linear or Nearest.\r\n *\r\n * @name Phaser.Textures.TextureSource#scaleMode\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.scaleMode = ScaleModes.DEFAULT;\r\n\r\n /**\r\n * Is the source image a Canvas Element?\r\n *\r\n * @name Phaser.Textures.TextureSource#isCanvas\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.isCanvas = (source instanceof HTMLCanvasElement);\r\n\r\n /**\r\n * Is the source image a Video Element?\r\n *\r\n * @name Phaser.Textures.TextureSource#isVideo\r\n * @type {boolean}\r\n * @since 3.20.0\r\n */\r\n this.isVideo = (window.hasOwnProperty('HTMLVideoElement') && source instanceof HTMLVideoElement);\r\n\r\n /**\r\n * Is the source image a Render Texture?\r\n *\r\n * @name Phaser.Textures.TextureSource#isRenderTexture\r\n * @type {boolean}\r\n * @since 3.12.0\r\n */\r\n this.isRenderTexture = (source.type === 'RenderTexture' || source.type === 'DynamicTexture');\r\n\r\n /**\r\n * Is the source image a WebGLTextureWrapper?\r\n *\r\n * @name Phaser.Textures.TextureSource#isGLTexture\r\n * @type {boolean}\r\n * @since 3.19.0\r\n */\r\n this.isGLTexture = source instanceof WebGLTextureWrapper;\r\n\r\n /**\r\n * Are the source image dimensions a power of two?\r\n *\r\n * @name Phaser.Textures.TextureSource#isPowerOf2\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.isPowerOf2 = IsSizePowerOfTwo(this.width, this.height);\r\n\r\n /**\r\n * The wrapped WebGL Texture of the source image.\r\n * If this TextureSource is driven from a WebGLTexture already,\r\n * then this wrapper contains a reference to that WebGLTexture.\r\n *\r\n * @name Phaser.Textures.TextureSource#glTexture\r\n * @type {?Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper}\r\n * @default null\r\n * @since 3.0.0\r\n */\r\n this.glTexture = null;\r\n\r\n /**\r\n * Sets the `UNPACK_FLIP_Y_WEBGL` flag the WebGL Texture uses during upload.\r\n *\r\n * @name Phaser.Textures.TextureSource#flipY\r\n * @type {boolean}\r\n * @since 3.20.0\r\n */\r\n this.flipY = flipY;\r\n\r\n this.init(game);\r\n },\r\n\r\n /**\r\n * Creates a WebGL Texture, if required, and sets the Texture filter mode.\r\n *\r\n * @method Phaser.Textures.TextureSource#init\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Game} game - A reference to the Phaser Game instance.\r\n */\r\n init: function (game)\r\n {\r\n var renderer = this.renderer;\r\n\r\n if (renderer)\r\n {\r\n var source = this.source;\r\n\r\n if (renderer.gl)\r\n {\r\n var image = this.image;\r\n var flipY = this.flipY;\r\n var width = this.width;\r\n var height = this.height;\r\n var scaleMode = this.scaleMode;\r\n\r\n if (this.isCanvas)\r\n {\r\n this.glTexture = renderer.createCanvasTexture(image, false, flipY);\r\n }\r\n else if (this.isVideo)\r\n {\r\n this.glTexture = renderer.createVideoTexture(image, false, flipY);\r\n }\r\n else if (this.isRenderTexture)\r\n {\r\n this.glTexture = renderer.createTextureFromSource(null, width, height, scaleMode);\r\n }\r\n else if (this.isGLTexture)\r\n {\r\n this.glTexture = source;\r\n }\r\n else if (this.compressionAlgorithm)\r\n {\r\n this.glTexture = renderer.createTextureFromSource(source, undefined, undefined, scaleMode);\r\n }\r\n else if (source instanceof Uint8Array)\r\n {\r\n this.glTexture = renderer.createUint8ArrayTexture(source, width, height, scaleMode);\r\n }\r\n else\r\n {\r\n this.glTexture = renderer.createTextureFromSource(image, width, height, scaleMode);\r\n }\r\n\r\n if (false)\r\n {}\r\n }\r\n else if (this.isRenderTexture)\r\n {\r\n this.image = source.canvas;\r\n }\r\n }\r\n\r\n if (!game.config.antialias)\r\n {\r\n this.setFilter(1);\r\n }\r\n },\r\n\r\n /**\r\n * Sets the Filter Mode for this Texture.\r\n *\r\n * The mode can be either Linear, the default, or Nearest.\r\n *\r\n * For pixel-art you should use Nearest.\r\n *\r\n * @method Phaser.Textures.TextureSource#setFilter\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Textures.FilterMode} filterMode - The Filter Mode.\r\n */\r\n setFilter: function (filterMode)\r\n {\r\n if (this.renderer && this.renderer.gl)\r\n {\r\n this.renderer.setTextureFilter(this.glTexture, filterMode);\r\n }\r\n\r\n this.scaleMode = filterMode;\r\n },\r\n\r\n /**\r\n * Sets the `UNPACK_FLIP_Y_WEBGL` flag for the WebGL Texture during texture upload.\r\n *\r\n * @method Phaser.Textures.TextureSource#setFlipY\r\n * @since 3.20.0\r\n *\r\n * @param {boolean} [value=true] - Should the WebGL Texture be flipped on the Y axis on texture upload or not?\r\n */\r\n setFlipY: function (value)\r\n {\r\n if (value === undefined) { value = true; }\r\n\r\n if (value === this.flipY) { return this; }\r\n\r\n this.flipY = value;\r\n this.update();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * If this TextureSource is backed by a Canvas and is running under WebGL,\r\n * it updates the WebGLTexture using the canvas data.\r\n *\r\n * @method Phaser.Textures.TextureSource#update\r\n * @since 3.7.0\r\n */\r\n update: function ()\r\n {\r\n var renderer = this.renderer;\r\n var image = this.image;\r\n var flipY = this.flipY;\r\n var gl = renderer.gl;\r\n\r\n if (gl && this.isCanvas)\r\n {\r\n renderer.updateCanvasTexture(image, this.glTexture, flipY);\r\n }\r\n else if (gl && this.isVideo)\r\n {\r\n renderer.updateVideoTexture(image, this.glTexture, flipY);\r\n }\r\n },\r\n\r\n /**\r\n * Destroys this Texture Source and nulls the references.\r\n *\r\n * @method Phaser.Textures.TextureSource#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n if (this.glTexture)\r\n {\r\n this.renderer.deleteTexture(this.glTexture);\r\n }\r\n\r\n if (this.isCanvas)\r\n {\r\n CanvasPool.remove(this.image);\r\n }\r\n\r\n this.renderer = null;\r\n this.texture = null;\r\n this.source = null;\r\n this.image = null;\r\n this.glTexture = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = TextureSource;\r\n\n\n/***/ }),\n\n/***/ 19673:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Filter Types.\r\n *\r\n * @namespace Phaser.Textures.FilterMode\r\n * @memberof Phaser.Textures\r\n * @since 3.0.0\r\n */\r\nvar CONST = {\r\n\r\n /**\r\n * Linear filter type.\r\n *\r\n * @name Phaser.Textures.FilterMode.LINEAR\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n LINEAR: 0,\r\n\r\n /**\r\n * Nearest neighbor filter type.\r\n *\r\n * @name Phaser.Textures.FilterMode.NEAREST\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n NEAREST: 1\r\n\r\n};\r\n\r\nmodule.exports = CONST;\r\n\n\n/***/ }),\n\n/***/ 44538:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Texture Add Event.\r\n *\r\n * This event is dispatched by the Texture Manager when a texture is added to it.\r\n *\r\n * Listen to this event from within a Scene using: `this.textures.on('addtexture', listener)`.\r\n *\r\n * @event Phaser.Textures.Events#ADD\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key of the Texture that was added to the Texture Manager.\r\n * @param {Phaser.Textures.Texture} texture - A reference to the Texture that was added to the Texture Manager.\r\n */\r\nmodule.exports = 'addtexture';\r\n\n\n/***/ }),\n\n/***/ 63486:\n/***/ ((module) => {\n\n/**\r\n * @author samme\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Texture Add Key Event.\r\n *\r\n * This event is dispatched by the Texture Manager when a texture with the given key is added to it.\r\n *\r\n * Listen to this event from within a Scene using: `this.textures.on('addtexture-key', listener)`.\r\n *\r\n * @event Phaser.Textures.Events#ADD_KEY\r\n * @type {string}\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Textures.Texture} texture - A reference to the Texture that was added to the Texture Manager.\r\n */\r\nmodule.exports = 'addtexture-';\r\n\n\n/***/ }),\n\n/***/ 94851:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Texture Load Error Event.\r\n *\r\n * This event is dispatched by the Texture Manager when a texture it requested to load failed.\r\n * This only happens when base64 encoded textures fail. All other texture types are loaded via the Loader Plugin.\r\n *\r\n * Listen to this event from within a Scene using: `this.textures.on('onerror', listener)`.\r\n *\r\n * @event Phaser.Textures.Events#ERROR\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key of the Texture that failed to load into the Texture Manager.\r\n */\r\nmodule.exports = 'onerror';\r\n\n\n/***/ }),\n\n/***/ 29099:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Texture Load Event.\r\n *\r\n * This event is dispatched by the Texture Manager when a texture has finished loading on it.\r\n * This only happens for base64 encoded textures. All other texture types are loaded via the Loader Plugin.\r\n *\r\n * Listen to this event from within a Scene using: `this.textures.on('onload', listener)`.\r\n *\r\n * This event is dispatched after the [ADD]{@linkcode Phaser.Textures.Events#event:ADD} event.\r\n *\r\n * @event Phaser.Textures.Events#LOAD\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key of the Texture that was loaded by the Texture Manager.\r\n * @param {Phaser.Textures.Texture} texture - A reference to the Texture that was loaded by the Texture Manager.\r\n */\r\nmodule.exports = 'onload';\r\n\n\n/***/ }),\n\n/***/ 8678:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * This internal event signifies that the Texture Manager is now ready and the Game can continue booting.\r\n *\r\n * When a Phaser Game instance is booting for the first time, the Texture Manager has to wait on a couple of non-blocking\r\n * async events before it's fully ready to carry on. When those complete the Texture Manager emits this event via the Game\r\n * instance, which tells the Game to carry on booting.\r\n *\r\n * @event Phaser.Textures.Events#READY\r\n * @type {string}\r\n * @since 3.16.1\r\n */\r\nmodule.exports = 'ready';\r\n\n\n/***/ }),\n\n/***/ 86415:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Texture Remove Event.\r\n *\r\n * This event is dispatched by the Texture Manager when a texture is removed from it.\r\n *\r\n * Listen to this event from within a Scene using: `this.textures.on('removetexture', listener)`.\r\n *\r\n * If you have any Game Objects still using the removed texture, they will start throwing\r\n * errors the next time they try to render. Be sure to clear all use of the texture in this event handler.\r\n *\r\n * @event Phaser.Textures.Events#REMOVE\r\n * @type {string}\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The key of the Texture that was removed from the Texture Manager.\r\n */\r\nmodule.exports = 'removetexture';\r\n\n\n/***/ }),\n\n/***/ 30879:\n/***/ ((module) => {\n\n/**\r\n * @author samme\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Texture Remove Key Event.\r\n *\r\n * This event is dispatched by the Texture Manager when a texture with the given key is removed from it.\r\n *\r\n * Listen to this event from within a Scene using: `this.textures.on('removetexture-key', listener)`.\r\n *\r\n * If you have any Game Objects still using the removed texture, they will start throwing\r\n * errors the next time they try to render. Be sure to clear all use of the texture in this event handler.\r\n *\r\n * @event Phaser.Textures.Events#REMOVE_KEY\r\n * @type {string}\r\n * @since 3.60.0\r\n */\r\nmodule.exports = 'removetexture-';\r\n\n\n/***/ }),\n\n/***/ 69442:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Textures.Events\r\n */\r\n\r\nmodule.exports = {\r\n\r\n ADD: __webpack_require__(44538),\r\n ADD_KEY: __webpack_require__(63486),\r\n ERROR: __webpack_require__(94851),\r\n LOAD: __webpack_require__(29099),\r\n READY: __webpack_require__(8678),\r\n REMOVE: __webpack_require__(86415),\r\n REMOVE_KEY: __webpack_require__(30879)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 27458:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Extend = __webpack_require__(79291);\r\nvar FilterMode = __webpack_require__(19673);\r\n\r\n/**\r\n * @namespace Phaser.Textures\r\n */\r\n\r\n/**\r\n * Linear filter type.\r\n *\r\n * @name Phaser.Textures.LINEAR\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n\r\n/**\r\n * Nearest Neighbor filter type.\r\n *\r\n * @name Phaser.Textures.NEAREST\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n\r\nvar Textures = {\r\n\r\n CanvasTexture: __webpack_require__(57382),\r\n DynamicTexture: __webpack_require__(81320),\r\n Events: __webpack_require__(69442),\r\n FilterMode: FilterMode,\r\n Frame: __webpack_require__(4327),\r\n Parsers: __webpack_require__(61309),\r\n Texture: __webpack_require__(79237),\r\n TextureManager: __webpack_require__(17130),\r\n TextureSource: __webpack_require__(11876)\r\n\r\n};\r\n\r\nTextures = Extend(false, Textures, FilterMode);\r\n\r\nmodule.exports = Textures;\r\n\n\n/***/ }),\n\n/***/ 89905:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Parses an XML Texture Atlas object and adds all the Frames into a Texture.\r\n *\r\n * @function Phaser.Textures.Parsers.AtlasXML\r\n * @memberof Phaser.Textures.Parsers\r\n * @private\r\n * @since 3.7.0\r\n *\r\n * @param {Phaser.Textures.Texture} texture - The Texture to add the Frames to.\r\n * @param {number} sourceIndex - The index of the TextureSource.\r\n * @param {*} xml - The XML data.\r\n *\r\n * @return {Phaser.Textures.Texture} The Texture modified by this parser.\r\n */\r\nvar AtlasXML = function (texture, sourceIndex, xml)\r\n{\r\n // Malformed?\r\n if (!xml.getElementsByTagName('TextureAtlas'))\r\n {\r\n console.warn('Invalid Texture Atlas XML given');\r\n return;\r\n }\r\n\r\n // Add in a __BASE entry (for the entire atlas)\r\n var source = texture.source[sourceIndex];\r\n\r\n texture.add('__BASE', sourceIndex, 0, 0, source.width, source.height);\r\n\r\n // By this stage frames is a fully parsed array\r\n var frames = xml.getElementsByTagName('SubTexture');\r\n\r\n var newFrame;\r\n\r\n for (var i = 0; i < frames.length; i++)\r\n {\r\n var frame = frames[i].attributes;\r\n\r\n var name = frame.name.value;\r\n var x = parseInt(frame.x.value, 10);\r\n var y = parseInt(frame.y.value, 10);\r\n var width = parseInt(frame.width.value, 10);\r\n var height = parseInt(frame.height.value, 10);\r\n\r\n // The frame values are the exact coordinates to cut the frame out of the atlas from\r\n newFrame = texture.add(name, sourceIndex, x, y, width, height);\r\n\r\n // These are the original (non-trimmed) sprite values\r\n if (frame.frameX)\r\n {\r\n var frameX = Math.abs(parseInt(frame.frameX.value, 10));\r\n var frameY = Math.abs(parseInt(frame.frameY.value, 10));\r\n var frameWidth = parseInt(frame.frameWidth.value, 10);\r\n var frameHeight = parseInt(frame.frameHeight.value, 10);\r\n\r\n newFrame.setTrim(\r\n width,\r\n height,\r\n frameX,\r\n frameY,\r\n frameWidth,\r\n frameHeight\r\n );\r\n }\r\n }\r\n\r\n return texture;\r\n};\r\n\r\nmodule.exports = AtlasXML;\r\n\n\n/***/ }),\n\n/***/ 72893:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Adds a Canvas Element to a Texture.\r\n *\r\n * @function Phaser.Textures.Parsers.Canvas\r\n * @memberof Phaser.Textures.Parsers\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Textures.Texture} texture - The Texture to add the Frames to.\r\n * @param {number} sourceIndex - The index of the TextureSource.\r\n *\r\n * @return {Phaser.Textures.Texture} The Texture modified by this parser.\r\n */\r\nvar Canvas = function (texture, sourceIndex)\r\n{\r\n var source = texture.source[sourceIndex];\r\n\r\n texture.add('__BASE', sourceIndex, 0, 0, source.width, source.height);\r\n\r\n return texture;\r\n};\r\n\r\nmodule.exports = Canvas;\r\n\n\n/***/ }),\n\n/***/ 4832:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Adds an Image Element to a Texture.\r\n *\r\n * @function Phaser.Textures.Parsers.Image\r\n * @memberof Phaser.Textures.Parsers\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Textures.Texture} texture - The Texture to add the Frames to.\r\n * @param {number} sourceIndex - The index of the TextureSource.\r\n *\r\n * @return {Phaser.Textures.Texture} The Texture modified by this parser.\r\n */\r\nvar Image = function (texture, sourceIndex)\r\n{\r\n var source = texture.source[sourceIndex];\r\n\r\n texture.add('__BASE', sourceIndex, 0, 0, source.width, source.height);\r\n\r\n return texture;\r\n};\r\n\r\nmodule.exports = Image;\r\n\n\n/***/ }),\n\n/***/ 78566:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Clone = __webpack_require__(41786);\r\n\r\n/**\r\n * Parses a Texture Atlas JSON Array and adds the Frames to the Texture.\r\n * JSON format expected to match that defined by Texture Packer, with the frames property containing an array of Frames.\r\n *\r\n * @function Phaser.Textures.Parsers.JSONArray\r\n * @memberof Phaser.Textures.Parsers\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Textures.Texture} texture - The Texture to add the Frames to.\r\n * @param {number} sourceIndex - The index of the TextureSource.\r\n * @param {object} json - The JSON data.\r\n *\r\n * @return {Phaser.Textures.Texture} The Texture modified by this parser.\r\n */\r\nvar JSONArray = function (texture, sourceIndex, json)\r\n{\r\n // Malformed?\r\n if (!json['frames'] && !json['textures'])\r\n {\r\n console.warn('Invalid Texture Atlas JSON Array');\r\n return;\r\n }\r\n\r\n // Add in a __BASE entry (for the entire atlas)\r\n var source = texture.source[sourceIndex];\r\n\r\n texture.add('__BASE', sourceIndex, 0, 0, source.width, source.height);\r\n\r\n // By this stage frames is a fully parsed array\r\n var frames = (Array.isArray(json.textures)) ? json.textures[sourceIndex].frames : json.frames;\r\n\r\n var newFrame;\r\n\r\n for (var i = 0; i < frames.length; i++)\r\n {\r\n var src = frames[i];\r\n\r\n // The frame values are the exact coordinates to cut the frame out of the atlas from\r\n newFrame = texture.add(src.filename, sourceIndex, src.frame.x, src.frame.y, src.frame.w, src.frame.h);\r\n\r\n if (!newFrame)\r\n {\r\n console.warn('Invalid atlas json, frame already exists: ' + src.filename);\r\n\r\n continue;\r\n }\r\n\r\n // These are the original (non-trimmed) sprite values\r\n if (src.trimmed)\r\n {\r\n newFrame.setTrim(\r\n src.sourceSize.w,\r\n src.sourceSize.h,\r\n src.spriteSourceSize.x,\r\n src.spriteSourceSize.y,\r\n src.spriteSourceSize.w,\r\n src.spriteSourceSize.h\r\n );\r\n }\r\n\r\n if (src.rotated)\r\n {\r\n newFrame.rotated = true;\r\n newFrame.updateUVsInverted();\r\n }\r\n\r\n var pivot = src.anchor || src.pivot;\r\n\r\n if (pivot)\r\n {\r\n newFrame.customPivot = true;\r\n newFrame.pivotX = pivot.x;\r\n newFrame.pivotY = pivot.y;\r\n }\r\n\r\n if (src.scale9Borders)\r\n {\r\n newFrame.setScale9(\r\n src.scale9Borders.x,\r\n src.scale9Borders.y,\r\n src.scale9Borders.w,\r\n src.scale9Borders.h\r\n );\r\n }\r\n\r\n // Copy over any extra data\r\n newFrame.customData = Clone(src);\r\n }\r\n\r\n // Copy over any additional data that was in the JSON to Texture.customData\r\n for (var dataKey in json)\r\n {\r\n if (dataKey === 'frames')\r\n {\r\n continue;\r\n }\r\n\r\n if (Array.isArray(json[dataKey]))\r\n {\r\n texture.customData[dataKey] = json[dataKey].slice(0);\r\n }\r\n else\r\n {\r\n texture.customData[dataKey] = json[dataKey];\r\n }\r\n }\r\n\r\n return texture;\r\n};\r\n\r\nmodule.exports = JSONArray;\r\n\n\n/***/ }),\n\n/***/ 39711:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Clone = __webpack_require__(41786);\r\n\r\n/**\r\n * Parses a Texture Atlas JSON Hash and adds the Frames to the Texture.\r\n * JSON format expected to match that defined by Texture Packer, with the frames property containing an object of Frames.\r\n *\r\n * @function Phaser.Textures.Parsers.JSONHash\r\n * @memberof Phaser.Textures.Parsers\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Textures.Texture} texture - The Texture to add the Frames to.\r\n * @param {number} sourceIndex - The index of the TextureSource.\r\n * @param {object} json - The JSON data.\r\n *\r\n * @return {Phaser.Textures.Texture} The Texture modified by this parser.\r\n */\r\nvar JSONHash = function (texture, sourceIndex, json)\r\n{\r\n // Malformed?\r\n if (!json['frames'])\r\n {\r\n console.warn('Invalid Texture Atlas JSON Hash given, missing \\'frames\\' Object');\r\n return;\r\n }\r\n\r\n // Add in a __BASE entry (for the entire atlas)\r\n var source = texture.source[sourceIndex];\r\n\r\n texture.add('__BASE', sourceIndex, 0, 0, source.width, source.height);\r\n\r\n // By this stage frames is a fully parsed Object\r\n var frames = json.frames;\r\n var newFrame;\r\n\r\n for (var key in frames)\r\n {\r\n if (!frames.hasOwnProperty(key))\r\n {\r\n continue;\r\n }\r\n\r\n var src = frames[key];\r\n\r\n // The frame values are the exact coordinates to cut the frame out of the atlas from\r\n newFrame = texture.add(key, sourceIndex, src.frame.x, src.frame.y, src.frame.w, src.frame.h);\r\n\r\n if (!newFrame)\r\n {\r\n console.warn('Invalid atlas json, frame already exists: ' + key);\r\n\r\n continue;\r\n }\r\n\r\n // These are the original (non-trimmed) sprite values\r\n if (src.trimmed)\r\n {\r\n newFrame.setTrim(\r\n src.sourceSize.w,\r\n src.sourceSize.h,\r\n src.spriteSourceSize.x,\r\n src.spriteSourceSize.y,\r\n src.spriteSourceSize.w,\r\n src.spriteSourceSize.h\r\n );\r\n }\r\n\r\n if (src.rotated)\r\n {\r\n newFrame.rotated = true;\r\n newFrame.updateUVsInverted();\r\n }\r\n\r\n var pivot = src.anchor || src.pivot;\r\n\r\n if (pivot)\r\n {\r\n newFrame.customPivot = true;\r\n newFrame.pivotX = pivot.x;\r\n newFrame.pivotY = pivot.y;\r\n }\r\n\r\n if (src.scale9Borders)\r\n {\r\n newFrame.setScale9(\r\n src.scale9Borders.x,\r\n src.scale9Borders.y,\r\n src.scale9Borders.w,\r\n src.scale9Borders.h\r\n );\r\n }\r\n\r\n // Copy over any extra data\r\n newFrame.customData = Clone(src);\r\n }\r\n\r\n // Copy over any additional data that was in the JSON to Texture.customData\r\n for (var dataKey in json)\r\n {\r\n if (dataKey === 'frames')\r\n {\r\n continue;\r\n }\r\n\r\n if (Array.isArray(json[dataKey]))\r\n {\r\n texture.customData[dataKey] = json[dataKey].slice(0);\r\n }\r\n else\r\n {\r\n texture.customData[dataKey] = json[dataKey];\r\n }\r\n }\r\n\r\n return texture;\r\n};\r\n\r\nmodule.exports = JSONHash;\r\n\n\n/***/ }),\n\n/***/ 31403:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2021 Photon Storm Ltd.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Parses a KTX format Compressed Texture file and generates texture data suitable for WebGL from it.\r\n *\r\n * @function Phaser.Textures.Parsers.KTXParser\r\n * @memberof Phaser.Textures.Parsers\r\n * @since 3.60.0\r\n *\r\n * @param {ArrayBuffer} data - The data object created by the Compressed Texture File Loader.\r\n *\r\n * @return {Phaser.Types.Textures.CompressedTextureData} The Compressed Texture data.\r\n */\r\nvar KTXParser = function (data)\r\n{\r\n var idCheck = [ 0xab, 0x4b, 0x54, 0x58, 0x20, 0x31, 0x31, 0xbb, 0x0d, 0x0a, 0x1a, 0x0a ];\r\n\r\n var i;\r\n var id = new Uint8Array(data, 0, 12);\r\n\r\n for (i = 0; i < id.length; i++)\r\n {\r\n if (id[i] !== idCheck[i])\r\n {\r\n console.warn('KTXParser - Invalid file format');\r\n\r\n return;\r\n }\r\n }\r\n\r\n var size = Uint32Array.BYTES_PER_ELEMENT;\r\n\r\n var head = new DataView(data, 12, 13 * size);\r\n\r\n var littleEndian = (head.getUint32(0, true) === 0x04030201);\r\n\r\n var glType = head.getUint32(1 * size, littleEndian);\r\n\r\n if (glType !== 0)\r\n {\r\n console.warn('KTXParser - Only compressed formats supported');\r\n\r\n return;\r\n }\r\n\r\n var internalFormat = head.getUint32(4 * size, littleEndian);\r\n var width = head.getUint32(6 * size, littleEndian);\r\n var height = head.getUint32(7 * size, littleEndian);\r\n\r\n var mipmapLevels = Math.max(1, head.getUint32(11 * size, littleEndian));\r\n\r\n var bytesOfKeyValueData = head.getUint32(12 * size, littleEndian);\r\n\r\n var mipmaps = new Array(mipmapLevels);\r\n\r\n var offset = 12 + 13 * 4 + bytesOfKeyValueData;\r\n var levelWidth = width;\r\n var levelHeight = height;\r\n\r\n for (i = 0; i < mipmapLevels; i++)\r\n {\r\n var levelSize = new Int32Array(data, offset, 1)[0];\r\n\r\n // levelSize field\r\n offset += 4;\r\n\r\n mipmaps[i] = {\r\n data: new Uint8Array(data, offset, levelSize),\r\n width: levelWidth,\r\n height: levelHeight\r\n };\r\n\r\n // add padding for odd sized image\r\n // offset += 3 - ((levelSize + 3) % 4);\r\n\r\n levelWidth = Math.max(1, levelWidth >> 1);\r\n levelHeight = Math.max(1, levelHeight >> 1);\r\n\r\n offset += levelSize;\r\n }\r\n\r\n return {\r\n mipmaps: mipmaps,\r\n width: width,\r\n height: height,\r\n internalFormat: internalFormat,\r\n compressed: true,\r\n generateMipmap: false\r\n };\r\n};\r\n\r\nmodule.exports = KTXParser;\r\n\n\n/***/ }),\n\n/***/ 82038:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2021 Photon Storm Ltd.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction GetSize (width, height, x, y, dx, dy, mult)\r\n{\r\n if (mult === undefined) { mult = 16; }\r\n\r\n return Math.floor((width + x) / dx) * Math.floor((height + y) / dy) * mult;\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction PVRTC2bppSize (width, height)\r\n{\r\n width = Math.max(width, 16);\r\n height = Math.max(height, 8);\r\n\r\n return width * height / 4;\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction PVRTC4bppSize (width, height)\r\n{\r\n width = Math.max(width, 8);\r\n height = Math.max(height, 8);\r\n\r\n return width * height / 2;\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction BPTCSize (width, height)\r\n{\r\n return Math.ceil(width / 4) * Math.ceil(height / 4) * 16;\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction DXTEtcSmallSize (width, height)\r\n{\r\n return GetSize(width, height, 3, 3, 4, 4, 8);\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction DXTEtcAstcBigSize (width, height)\r\n{\r\n return GetSize(width, height, 3, 3, 4, 4);\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction ATC5x4Size (width, height)\r\n{\r\n return GetSize(width, height, 4, 3, 5, 4);\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction ATC5x5Size (width, height)\r\n{\r\n return GetSize(width, height, 4, 4, 5, 5);\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction ATC6x5Size (width, height)\r\n{\r\n return GetSize(width, height, 5, 4, 6, 5);\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction ATC6x6Size (width, height)\r\n{\r\n return GetSize(width, height, 5, 5, 6, 6);\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction ATC8x5Size (width, height)\r\n{\r\n return GetSize(width, height, 7, 4, 8, 5);\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction ATC8x6Size (width, height)\r\n{\r\n return GetSize(width, height, 7, 5, 8, 6);\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction ATC8x8Size (width, height)\r\n{\r\n return GetSize(width, height, 7, 7, 8, 8);\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction ATC10x5Size (width, height)\r\n{\r\n return GetSize(width, height, 9, 4, 10, 5);\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction ATC10x6Size (width, height)\r\n{\r\n return GetSize(width, height, 9, 5, 10, 6);\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction ATC10x8Size (width, height)\r\n{\r\n return GetSize(width, height, 9, 7, 10, 8);\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction ATC10x10Size (width, height)\r\n{\r\n return GetSize(width, height, 9, 9, 10, 10);\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction ATC12x10Size (width, height)\r\n{\r\n return GetSize(width, height, 11, 9, 12, 10);\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction ATC12x12Size (width, height)\r\n{\r\n return GetSize(width, height, 11, 11, 12, 12);\r\n}\r\n\r\n/*\r\n * 0: COMPRESSED_RGB_PVRTC_2BPPV1_IMG\r\n * 1: COMPRESSED_RGBA_PVRTC_2BPPV1_IMG\r\n * 2: COMPRESSED_RGB_PVRTC_4BPPV1_IMG\r\n * 3: COMPRESSED_RGBA_PVRTC_4BPPV1_IMG\r\n * 6: COMPRESSED_RGB_ETC1\r\n * 7: COMPRESSED_RGB_S3TC_DXT1_EXT or COMPRESSED_SRGB_S3TC_DXT1_EXT\r\n * 8: COMPRESSED_RGBA_S3TC_DXT1_EXT or COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT\r\n * 9: COMPRESSED_RGBA_S3TC_DXT3_EXT or COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT\r\n * 11: COMPRESSED_RGBA_S3TC_DXT5_EXT or COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT\r\n * 14: COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT or COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT\r\n * 15: COMPRESSED_RGBA_BPTC_UNORM_EXT or COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT\r\n * 22: COMPRESSED_RGB8_ETC2 or COMPRESSED_SRGB8_ETC2\r\n * 23: COMPRESSED_RGBA8_ETC2_EAC or COMPRESSED_SRGB8_ALPHA8_ETC2_EAC\r\n * 24: COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 or COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2\r\n * 25: COMPRESSED_R11_EAC\r\n * 26: COMPRESSED_RG11_EAC\r\n * 27: COMPRESSED_RGBA_ASTC_4x4_KHR or COMPRESSED_SRGB8_ALPHA8_ASTC_4X4_KHR\r\n * 28: COMPRESSED_RGBA_ASTC_5x4_KHR or COMPRESSED_SRGB8_ALPHA8_ASTC_5X4_KHR\r\n * 29: COMPRESSED_RGBA_ASTC_5x5_KHR or COMPRESSED_SRGB8_ALPHA8_ASTC_5X5_KHR\r\n * 30: COMPRESSED_RGBA_ASTC_6x5_KHR or COMPRESSED_SRGB8_ALPHA8_ASTC_6X5_KHR\r\n * 31: COMPRESSED_RGBA_ASTC_6x6_KHR or COMPRESSED_SRGB8_ALPHA8_ASTC_6X6_KHR\r\n * 32: COMPRESSED_RGBA_ASTC_8x5_KHR or COMPRESSED_SRGB8_ALPHA8_ASTC_8X5_KHR\r\n * 33: COMPRESSED_RGBA_ASTC_8x6_KHR or COMPRESSED_SRGB8_ALPHA8_ASTC_8X6_KHR\r\n * 34: COMPRESSED_RGBA_ASTC_8x8_KHR or COMPRESSED_SRGB8_ALPHA8_ASTC_8X8_KHR\r\n * 35: COMPRESSED_RGBA_ASTC_10x5_KHR or COMPRESSED_SRGB8_ALPHA8_ASTC_10X5_KHR\r\n * 36: COMPRESSED_RGBA_ASTC_10x6_KHR or COMPRESSED_SRGB8_ALPHA8_ASTC_10X6_KHR\r\n * 37: COMPRESSED_RGBA_ASTC_10x8_KHR or COMPRESSED_SRGB8_ALPHA8_ASTC_10X8_KHR\r\n * 38: COMPRESSED_RGBA_ASTC_10x10_KHR or COMPRESSED_SRGB8_ALPHA8_ASTC_10X10_KHR\r\n * 39: COMPRESSED_RGBA_ASTC_12x10_KHR or COMPRESSED_SRGB8_ALPHA8_ASTC_12X10_KHR\r\n * 40: COMPRESSED_RGBA_ASTC_12x12_KHR or COMPRESSED_SRGB8_ALPHA8_ASTC_12X12_KHR\r\n */\r\n\r\n/**\r\n * @ignore\r\n */\r\nvar FORMATS = {\r\n 0: { sizeFunc: PVRTC2bppSize, glFormat: [ 0x8C01 ] },\r\n 1: { sizeFunc: PVRTC2bppSize, glFormat: [ 0x8C03 ] },\r\n 2: { sizeFunc: PVRTC4bppSize, glFormat: [ 0x8C00 ] },\r\n 3: { sizeFunc: PVRTC4bppSize, glFormat: [ 0x8C02 ] },\r\n 6: { sizeFunc: DXTEtcSmallSize , glFormat: [ 0x8D64 ] },\r\n 7: { sizeFunc: DXTEtcSmallSize, glFormat: [ 0x83F0, 0x8C4C ] },\r\n 8: { sizeFunc: DXTEtcAstcBigSize, glFormat: [ 0x83F1, 0x8C4D ] },\r\n 9: { sizeFunc: DXTEtcAstcBigSize, glFormat: [ 0x83F2, 0x8C4E ] },\r\n 11: { sizeFunc: DXTEtcAstcBigSize, glFormat: [ 0x83F3, 0x8C4F ] },\r\n 14: { sizeFunc: BPTCSize, glFormat: [ 0x8E8E, 0x8E8F ] },\r\n 15: { sizeFunc: BPTCSize, glFormat: [ 0x8E8C, 0x8E8D ] },\r\n 22: { sizeFunc: DXTEtcSmallSize , glFormat: [ 0x9274, 0x9275 ] },\r\n 23: { sizeFunc: DXTEtcAstcBigSize, glFormat: [ 0x9278, 0x9279 ] },\r\n 24: { sizeFunc: DXTEtcSmallSize, glFormat: [ 0x9276, 0x9277 ] },\r\n 25: { sizeFunc: DXTEtcSmallSize, glFormat: [ 0x9270 ] },\r\n 26: { sizeFunc: DXTEtcAstcBigSize, glFormat: [ 0x9272 ] },\r\n 27: { sizeFunc: DXTEtcAstcBigSize, glFormat: [ 0x93B0, 0x93D0 ] },\r\n 28: { sizeFunc: ATC5x4Size, glFormat: [ 0x93B1, 0x93D1 ] },\r\n 29: { sizeFunc: ATC5x5Size, glFormat: [ 0x93B2, 0x93D2 ] },\r\n 30: { sizeFunc: ATC6x5Size, glFormat: [ 0x93B3, 0x93D3 ] },\r\n 31: { sizeFunc: ATC6x6Size, glFormat: [ 0x93B4, 0x93D4 ] },\r\n 32: { sizeFunc: ATC8x5Size, glFormat: [ 0x93B5, 0x93D5 ] },\r\n 33: { sizeFunc: ATC8x6Size, glFormat: [ 0x93B6, 0x93D6 ] },\r\n 34: { sizeFunc: ATC8x8Size, glFormat: [ 0x93B7, 0x93D7 ] },\r\n 35: { sizeFunc: ATC10x5Size, glFormat: [ 0x93B8, 0x93D8 ] },\r\n 36: { sizeFunc: ATC10x6Size, glFormat: [ 0x93B9, 0x93D9 ] },\r\n 37: { sizeFunc: ATC10x8Size, glFormat: [ 0x93BA, 0x93DA ] },\r\n 38: { sizeFunc: ATC10x10Size, glFormat: [ 0x93BB, 0x93DB ] },\r\n 39: { sizeFunc: ATC12x10Size, glFormat: [ 0x93BC, 0x93DC ] },\r\n 40: { sizeFunc: ATC12x12Size, glFormat: [ 0x93BD, 0x93DD ] }\r\n};\r\n\r\n/**\r\n * Parses a PVR format Compressed Texture file and generates texture data suitable for WebGL from it.\r\n *\r\n * @function Phaser.Textures.Parsers.PVRParser\r\n * @memberof Phaser.Textures.Parsers\r\n * @since 3.60.0\r\n *\r\n * @param {ArrayBuffer} data - The data object created by the Compressed Texture File Loader.\r\n *\r\n * @return {Phaser.Types.Textures.CompressedTextureData} The Compressed Texture data.\r\n */\r\nvar PVRParser = function (data)\r\n{\r\n var header = new Uint32Array(data, 0, 13);\r\n\r\n // VERSION\r\n var version = header[0];\r\n var versionMatch = version === 0x03525650;\r\n\r\n // PIXEL_FORMAT_INDEX\r\n var pvrFormat = versionMatch ? header[2] : header[3];\r\n\r\n // Colour Space\r\n var colorSpace = header[4];\r\n\r\n var internalFormat = FORMATS[pvrFormat].glFormat[colorSpace];\r\n var sizeFunction = FORMATS[pvrFormat].sizeFunc;\r\n\r\n // MIPMAPCOUNT_INDEX\r\n var mipmapLevels = header[11];\r\n\r\n // WIDTH_INDEX\r\n var width = header[7];\r\n\r\n // HEIGHT_INDEX\r\n var height = header[6];\r\n\r\n // HEADER_SIZE + METADATA_SIZE_INDEX\r\n var dataOffset = 52 + header[12];\r\n\r\n var image = new Uint8Array(data, dataOffset);\r\n\r\n var mipmaps = new Array(mipmapLevels);\r\n\r\n var offset = 0;\r\n var levelWidth = width;\r\n var levelHeight = height;\r\n\r\n for (var i = 0; i < mipmapLevels; i++)\r\n {\r\n var levelSize = sizeFunction(levelWidth, levelHeight);\r\n\r\n mipmaps[i] = {\r\n data: new Uint8Array(image.buffer, image.byteOffset + offset, levelSize),\r\n width: levelWidth,\r\n height: levelHeight\r\n };\r\n\r\n levelWidth = Math.max(1, levelWidth >> 1);\r\n levelHeight = Math.max(1, levelHeight >> 1);\r\n\r\n offset += levelSize;\r\n }\r\n\r\n return {\r\n mipmaps: mipmaps,\r\n width: width,\r\n height: height,\r\n internalFormat: internalFormat,\r\n compressed: true,\r\n generateMipmap: false\r\n };\r\n};\r\n\r\nmodule.exports = PVRParser;\r\n\n\n/***/ }),\n\n/***/ 75549:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetFastValue = __webpack_require__(95540);\r\n\r\n/**\r\n * Parses a Sprite Sheet and adds the Frames to the Texture.\r\n *\r\n * In Phaser terminology a Sprite Sheet is a texture containing different frames, but each frame is the exact\r\n * same size and cannot be trimmed or rotated.\r\n *\r\n * @function Phaser.Textures.Parsers.SpriteSheet\r\n * @memberof Phaser.Textures.Parsers\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Textures.Texture} texture - The Texture to add the Frames to.\r\n * @param {number} sourceIndex - The index of the TextureSource.\r\n * @param {number} x - The top-left coordinate of the Sprite Sheet. Defaults to zero. Used when extracting sheets from atlases.\r\n * @param {number} y - The top-left coordinate of the Sprite Sheet. Defaults to zero. Used when extracting sheets from atlases.\r\n * @param {number} width - The width of the source image.\r\n * @param {number} height - The height of the source image.\r\n * @param {object} config - An object describing how to parse the Sprite Sheet.\r\n * @param {number} config.frameWidth - Width in pixels of a single frame in the sprite sheet.\r\n * @param {number} [config.frameHeight] - Height in pixels of a single frame in the sprite sheet. Defaults to frameWidth if not provided.\r\n * @param {number} [config.startFrame=0] - The frame to start extracting from. Defaults to zero.\r\n * @param {number} [config.endFrame=-1] - The frame to finish extracting at. Defaults to -1, which means 'all frames'.\r\n * @param {number} [config.margin=0] - If the frames have been drawn with a margin, specify the amount here.\r\n * @param {number} [config.spacing=0] - If the frames have been drawn with spacing between them, specify the amount here.\r\n *\r\n * @return {Phaser.Textures.Texture} The Texture modified by this parser.\r\n */\r\nvar SpriteSheet = function (texture, sourceIndex, x, y, width, height, config)\r\n{\r\n var frameWidth = GetFastValue(config, 'frameWidth', null);\r\n var frameHeight = GetFastValue(config, 'frameHeight', frameWidth);\r\n\r\n // If missing we can't proceed\r\n if (frameWidth === null)\r\n {\r\n throw new Error('TextureManager.SpriteSheet: Invalid frameWidth given.');\r\n }\r\n\r\n // Add in a __BASE entry (for the entire atlas)\r\n var source = texture.source[sourceIndex];\r\n\r\n texture.add('__BASE', sourceIndex, 0, 0, source.width, source.height);\r\n\r\n var startFrame = GetFastValue(config, 'startFrame', 0);\r\n var endFrame = GetFastValue(config, 'endFrame', -1);\r\n var margin = GetFastValue(config, 'margin', 0);\r\n var spacing = GetFastValue(config, 'spacing', 0);\r\n\r\n var row = Math.floor((width - margin + spacing) / (frameWidth + spacing));\r\n var column = Math.floor((height - margin + spacing) / (frameHeight + spacing));\r\n var total = row * column;\r\n\r\n if (total === 0)\r\n {\r\n console.warn('SpriteSheet frame dimensions will result in zero frames for texture:', texture.key);\r\n }\r\n\r\n if (startFrame > total || startFrame < -total)\r\n {\r\n startFrame = 0;\r\n }\r\n\r\n if (startFrame < 0)\r\n {\r\n // Allow negative skipframes.\r\n startFrame = total + startFrame;\r\n }\r\n\r\n if (endFrame === -1 || endFrame > total || endFrame < startFrame)\r\n {\r\n endFrame = total;\r\n }\r\n\r\n var fx = margin;\r\n var fy = margin;\r\n var ax = 0;\r\n var ay = 0;\r\n var c = 0;\r\n\r\n for (var i = 0; i < total; i++)\r\n {\r\n ax = 0;\r\n ay = 0;\r\n\r\n var w = fx + frameWidth;\r\n var h = fy + frameHeight;\r\n\r\n if (w > width)\r\n {\r\n ax = w - width;\r\n }\r\n\r\n if (h > height)\r\n {\r\n ay = h - height;\r\n }\r\n\r\n if (i >= startFrame && i <= endFrame)\r\n {\r\n texture.add(c, sourceIndex, x + fx, y + fy, frameWidth - ax, frameHeight - ay);\r\n\r\n c++;\r\n }\r\n\r\n fx += frameWidth + spacing;\r\n\r\n if (fx + frameWidth > width)\r\n {\r\n fx = margin;\r\n fy += frameHeight + spacing;\r\n }\r\n }\r\n\r\n return texture;\r\n};\r\n\r\nmodule.exports = SpriteSheet;\r\n\n\n/***/ }),\n\n/***/ 47534:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetFastValue = __webpack_require__(95540);\r\n\r\n/**\r\n * Parses a Sprite Sheet and adds the Frames to the Texture, where the Sprite Sheet is stored as a frame within an Atlas.\r\n *\r\n * In Phaser terminology a Sprite Sheet is a texture containing different frames, but each frame is the exact\r\n * same size and cannot be trimmed or rotated.\r\n *\r\n * @function Phaser.Textures.Parsers.SpriteSheetFromAtlas\r\n * @memberof Phaser.Textures.Parsers\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Textures.Texture} texture - The Texture to add the Frames to.\r\n * @param {Phaser.Textures.Frame} frame - The Frame that contains the Sprite Sheet.\r\n * @param {object} config - An object describing how to parse the Sprite Sheet.\r\n * @param {number} config.frameWidth - Width in pixels of a single frame in the sprite sheet.\r\n * @param {number} [config.frameHeight] - Height in pixels of a single frame in the sprite sheet. Defaults to frameWidth if not provided.\r\n * @param {number} [config.startFrame=0] - Index of the start frame in the sprite sheet\r\n * @param {number} [config.endFrame=-1] - Index of the end frame in the sprite sheet. -1 mean all the rest of the frames\r\n * @param {number} [config.margin=0] - If the frames have been drawn with a margin, specify the amount here.\r\n * @param {number} [config.spacing=0] - If the frames have been drawn with spacing between them, specify the amount here.\r\n *\r\n * @return {Phaser.Textures.Texture} The Texture modified by this parser.\r\n */\r\nvar SpriteSheetFromAtlas = function (texture, frame, config)\r\n{\r\n var frameWidth = GetFastValue(config, 'frameWidth', null);\r\n var frameHeight = GetFastValue(config, 'frameHeight', frameWidth);\r\n\r\n // If missing we can't proceed\r\n if (!frameWidth)\r\n {\r\n throw new Error('TextureManager.SpriteSheetFromAtlas: Invalid frameWidth given.');\r\n }\r\n\r\n // Add in a __BASE entry (for the entire atlas frame)\r\n var source = texture.source[0];\r\n texture.add('__BASE', 0, 0, 0, source.width, source.height);\r\n\r\n var startFrame = GetFastValue(config, 'startFrame', 0);\r\n var endFrame = GetFastValue(config, 'endFrame', -1);\r\n var margin = GetFastValue(config, 'margin', 0);\r\n var spacing = GetFastValue(config, 'spacing', 0);\r\n\r\n var x = frame.cutX;\r\n var y = frame.cutY;\r\n\r\n var cutWidth = frame.cutWidth;\r\n var cutHeight = frame.cutHeight;\r\n var sheetWidth = frame.realWidth;\r\n var sheetHeight = frame.realHeight;\r\n\r\n var row = Math.floor((sheetWidth - margin + spacing) / (frameWidth + spacing));\r\n var column = Math.floor((sheetHeight - margin + spacing) / (frameHeight + spacing));\r\n var total = row * column;\r\n\r\n // trim offsets\r\n\r\n var leftPad = frame.x;\r\n var leftWidth = frameWidth - leftPad;\r\n\r\n var rightWidth = frameWidth - ((sheetWidth - cutWidth) - leftPad);\r\n\r\n var topPad = frame.y;\r\n var topHeight = frameHeight - topPad;\r\n\r\n var bottomHeight = frameHeight - ((sheetHeight - cutHeight) - topPad);\r\n\r\n if (startFrame > total || startFrame < -total)\r\n {\r\n startFrame = 0;\r\n }\r\n\r\n if (startFrame < 0)\r\n {\r\n // Allow negative skipframes.\r\n startFrame = total + startFrame;\r\n }\r\n\r\n if (endFrame !== -1)\r\n {\r\n total = startFrame + (endFrame + 1);\r\n }\r\n\r\n var sheetFrame;\r\n var frameX = margin;\r\n var frameY = margin;\r\n var frameIndex = 0;\r\n var sourceIndex = 0;\r\n\r\n for (var sheetY = 0; sheetY < column; sheetY++)\r\n {\r\n var topRow = (sheetY === 0);\r\n var bottomRow = (sheetY === column - 1);\r\n\r\n for (var sheetX = 0; sheetX < row; sheetX++)\r\n {\r\n var leftRow = (sheetX === 0);\r\n var rightRow = (sheetX === row - 1);\r\n\r\n sheetFrame = texture.add(frameIndex, sourceIndex, x + frameX, y + frameY, frameWidth, frameHeight);\r\n\r\n if (leftRow || topRow || rightRow || bottomRow)\r\n {\r\n var destX = (leftRow) ? leftPad : 0;\r\n var destY = (topRow) ? topPad : 0;\r\n\r\n var trimWidth = 0;\r\n var trimHeight = 0;\r\n\r\n if (leftRow)\r\n {\r\n trimWidth += (frameWidth - leftWidth);\r\n }\r\n\r\n if (rightRow)\r\n {\r\n trimWidth += (frameWidth - rightWidth);\r\n }\r\n\r\n if (topRow)\r\n {\r\n trimHeight += (frameHeight - topHeight);\r\n }\r\n\r\n if (bottomRow)\r\n {\r\n trimHeight += (frameHeight - bottomHeight);\r\n }\r\n\r\n var destWidth = frameWidth - trimWidth;\r\n var destHeight = frameHeight - trimHeight;\r\n\r\n sheetFrame.cutWidth = destWidth;\r\n sheetFrame.cutHeight = destHeight;\r\n\r\n sheetFrame.setTrim(frameWidth, frameHeight, destX, destY, destWidth, destHeight);\r\n }\r\n\r\n frameX += spacing;\r\n\r\n if (leftRow)\r\n {\r\n frameX += leftWidth;\r\n }\r\n else if (rightRow)\r\n {\r\n frameX += rightWidth;\r\n }\r\n else\r\n {\r\n frameX += frameWidth;\r\n }\r\n\r\n frameIndex++;\r\n }\r\n\r\n frameX = margin;\r\n frameY += spacing;\r\n\r\n if (topRow)\r\n {\r\n frameY += topHeight;\r\n }\r\n else if (bottomRow)\r\n {\r\n frameY += bottomHeight;\r\n }\r\n else\r\n {\r\n frameY += frameHeight;\r\n }\r\n }\r\n\r\n return texture;\r\n};\r\n\r\nmodule.exports = SpriteSheetFromAtlas;\r\n\n\n/***/ }),\n\n/***/ 86147:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar imageHeight = 0;\r\n\r\n/**\r\n * @function addFrame\r\n * @private\r\n * @since 3.0.0\r\n */\r\nvar addFrame = function (texture, sourceIndex, name, frame)\r\n{\r\n // The frame values are the exact coordinates to cut the frame out of the atlas from\r\n\r\n var y = imageHeight - frame.y - frame.height;\r\n\r\n texture.add(name, sourceIndex, frame.x, y, frame.width, frame.height);\r\n\r\n // These are the original (non-trimmed) sprite values\r\n /*\r\n if (src.trimmed)\r\n {\r\n newFrame.setTrim(\r\n src.sourceSize.w,\r\n src.sourceSize.h,\r\n src.spriteSourceSize.x,\r\n src.spriteSourceSize.y,\r\n src.spriteSourceSize.w,\r\n src.spriteSourceSize.h\r\n );\r\n }\r\n */\r\n};\r\n\r\n/**\r\n * Parses a Unity YAML File and creates Frames in the Texture.\r\n * For more details about Sprite Meta Data see https://docs.unity3d.com/ScriptReference/SpriteMetaData.html\r\n *\r\n * @function Phaser.Textures.Parsers.UnityYAML\r\n * @memberof Phaser.Textures.Parsers\r\n * @private\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Textures.Texture} texture - The Texture to add the Frames to.\r\n * @param {number} sourceIndex - The index of the TextureSource.\r\n * @param {object} yaml - The YAML data.\r\n *\r\n * @return {Phaser.Textures.Texture} The Texture modified by this parser.\r\n */\r\nvar UnityYAML = function (texture, sourceIndex, yaml)\r\n{\r\n // Add in a __BASE entry (for the entire atlas)\r\n var source = texture.source[sourceIndex];\r\n\r\n texture.add('__BASE', sourceIndex, 0, 0, source.width, source.height);\r\n\r\n imageHeight = source.height;\r\n\r\n var data = yaml.split('\\n');\r\n\r\n var lineRegExp = /^[ ]*(- )*(\\w+)+[: ]+(.*)/;\r\n\r\n var prevSprite = '';\r\n var currentSprite = '';\r\n var rect = { x: 0, y: 0, width: 0, height: 0 };\r\n\r\n // var pivot = { x: 0, y: 0 };\r\n // var border = { x: 0, y: 0, z: 0, w: 0 };\r\n\r\n for (var i = 0; i < data.length; i++)\r\n {\r\n var results = data[i].match(lineRegExp);\r\n\r\n if (!results)\r\n {\r\n continue;\r\n }\r\n\r\n var isList = (results[1] === '- ');\r\n var key = results[2];\r\n var value = results[3];\r\n\r\n if (isList)\r\n {\r\n if (currentSprite !== prevSprite)\r\n {\r\n addFrame(texture, sourceIndex, currentSprite, rect);\r\n\r\n prevSprite = currentSprite;\r\n }\r\n\r\n rect = { x: 0, y: 0, width: 0, height: 0 };\r\n }\r\n\r\n if (key === 'name')\r\n {\r\n // Start new list\r\n currentSprite = value;\r\n continue;\r\n }\r\n\r\n switch (key)\r\n {\r\n case 'x':\r\n case 'y':\r\n case 'width':\r\n case 'height':\r\n rect[key] = parseInt(value, 10);\r\n break;\r\n\r\n // case 'pivot':\r\n // pivot = eval('var obj = ' + value);\r\n // break;\r\n\r\n // case 'border':\r\n // border = eval('var obj = ' + value);\r\n // break;\r\n }\r\n }\r\n\r\n if (currentSprite !== prevSprite)\r\n {\r\n addFrame(texture, sourceIndex, currentSprite, rect);\r\n }\r\n\r\n return texture;\r\n};\r\n\r\nmodule.exports = UnityYAML;\r\n\r\n/*\r\nExample data:\r\n\r\nTextureImporter:\r\n spritePivot: {x: .5, y: .5}\r\n spriteBorder: {x: 0, y: 0, z: 0, w: 0}\r\n spritePixelsToUnits: 100\r\n spriteSheet:\r\n sprites:\r\n - name: asteroids_0\r\n rect:\r\n serializedVersion: 2\r\n x: 5\r\n y: 328\r\n width: 65\r\n height: 82\r\n alignment: 0\r\n pivot: {x: 0, y: 0}\r\n border: {x: 0, y: 0, z: 0, w: 0}\r\n - name: asteroids_1\r\n rect:\r\n serializedVersion: 2\r\n x: 80\r\n y: 322\r\n width: 53\r\n height: 88\r\n alignment: 0\r\n pivot: {x: 0, y: 0}\r\n border: {x: 0, y: 0, z: 0, w: 0}\r\n spritePackingTag: Asteroids\r\n*/\r\n\n\n/***/ }),\n\n/***/ 55222:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Ben Richards \r\n * @copyright 2024 Photon Storm Ltd.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar IsSizePowerOfTwo = __webpack_require__(50030);\r\n\r\n/**\r\n * Verify whether the given compressed texture data is valid.\r\n *\r\n * Compare the dimensions of each mip layer to the rules for that\r\n * specific format.\r\n *\r\n * Mip layer size is assumed to have been calculated correctly during parsing.\r\n *\r\n * @function Phaser.Textures.Parsers.verifyCompressedTexture\r\n * @param {Phaser.Types.Textures.CompressedTextureData} data - The compressed texture data to verify.\r\n * @since 3.80.0\r\n * @returns {boolean} Whether the compressed texture data is valid.\r\n */\r\nvar verifyCompressedTexture = function (data)\r\n{\r\n // Check that mipmaps are power-of-two sized.\r\n // WebGL does not allow non-power-of-two textures for mip levels above 0.\r\n var mipmaps = data.mipmaps;\r\n for (var level = 1; level < mipmaps.length; level++)\r\n {\r\n var width = mipmaps[level].width;\r\n var height = mipmaps[level].height;\r\n if (!IsSizePowerOfTwo(width, height))\r\n {\r\n console.warn('Mip level ' + level + ' is not a power-of-two size: ' + width + 'x' + height);\r\n return false;\r\n }\r\n }\r\n\r\n // Check specific format requirements.\r\n var checker = formatCheckers[data.internalFormat];\r\n if (!checker)\r\n {\r\n console.warn('No format checker found for internal format ' + data.internalFormat + '. Assuming valid.');\r\n return true;\r\n }\r\n return checker(data);\r\n};\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction check4x4 (data)\r\n{\r\n var mipmaps = data.mipmaps;\r\n for (var level = 0; level < mipmaps.length; level++)\r\n {\r\n var width = mipmaps[level].width;\r\n var height = mipmaps[level].height;\r\n if ((width << level) % 4 !== 0 || (height << level) % 4 !== 0)\r\n {\r\n console.warn('BPTC, RGTC, and S3TC dimensions must be a multiple of 4 pixels, and each successive mip level must be half the size of the previous level, rounded down. Mip level ' + level + ' is ' + width + 'x' + height);\r\n return false;\r\n }\r\n }\r\n return true;\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction checkAlways ()\r\n{\r\n // WEBGL_compressed_texture_astc\r\n // WEBGL_compressed_texture_etc\r\n // WEBGL_compressed_texture_etc1\r\n\r\n // ASTC, ETC, and ETC1\r\n // only require data be provided in arrays of specific size,\r\n // which are already set by the parser.\r\n return true;\r\n}\r\n\r\nfunction checkPVRTC (data)\r\n{\r\n // WEBGL_compressed_texture_pvrtc\r\n\r\n var mipmaps = data.mipmaps;\r\n var baseLevel = mipmaps[0];\r\n if (!IsSizePowerOfTwo(baseLevel.width, baseLevel.height))\r\n {\r\n console.warn('PVRTC base dimensions must be power of two. Base level is ' + baseLevel.width + 'x' + baseLevel.height);\r\n return false;\r\n }\r\n\r\n // Other mip levels have already been checked for power-of-two size.\r\n return true;\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction checkS3TCSRGB (data)\r\n{\r\n // WEBGL_compressed_texture_s3tc_srgb\r\n\r\n var mipmaps = data.mipmaps;\r\n var baseLevel = mipmaps[0];\r\n if (baseLevel.width % 4 !== 0 || baseLevel.height % 4 !== 0)\r\n {\r\n console.warn('S3TC SRGB base dimensions must be a multiple of 4 pixels. Base level is ' + baseLevel.width + 'x' + baseLevel.height + ' pixels');\r\n return false;\r\n }\r\n\r\n // Mip levels above 0 must be 0, 1, 2, or a multiple of 4 pixels.\r\n // However, as WebGL mip levels must all be power-of-two sized,\r\n // this is already covered by the power-of-two check.\r\n\r\n return true;\r\n}\r\n\r\nvar formatCheckers = {\r\n // ETC internal formats:\r\n\r\n // COMPRESSED_R11_EAC\r\n 0x9270: checkAlways,\r\n\r\n // COMPRESSED_SIGNED_R11_EAC\r\n 0x9271: checkAlways,\r\n\r\n // COMPRESSED_RG11_EAC\r\n 0x9272: checkAlways,\r\n\r\n // COMPRESSED_SIGNED_RG11_EAC\r\n 0x9273: checkAlways,\r\n\r\n // COMPRESSED_RGB8_ETC2\r\n 0x9274: checkAlways,\r\n\r\n // COMPRESSED_SRGB8_ETC2\r\n 0x9275: checkAlways,\r\n\r\n // COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2\r\n 0x9276: checkAlways,\r\n\r\n // COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2\r\n 0x9277: checkAlways,\r\n\r\n // COMPRESSED_RGBA8_ETC2_EAC\r\n 0x9278: checkAlways,\r\n\r\n // COMPRESSED_SRGB8_ALPHA8_ETC2_EAC\r\n 0x9279: checkAlways,\r\n\r\n // ETC1 internal formats:\r\n\r\n // COMPRESSED_RGB_ETC1_WEBGL\r\n 0x8D64: checkAlways,\r\n\r\n // ATC internal formats:\r\n // COMPRESSED_RGB_ATC_WEBGL\r\n // COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL\r\n // COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL\r\n // These formats are no longer supported in WebGL.\r\n // They have no special restrictions on size, so if they were decoded,\r\n // they are already valid.\r\n // We'll show a warning for no format checker found.\r\n\r\n // ASTC internal formats:\r\n\r\n // COMPRESSED_RGBA_ASTC_4x4_KHR\r\n 0x93B0: checkAlways,\r\n\r\n // COMPRESSED_RGBA_ASTC_5x4_KHR\r\n 0x93B1: checkAlways,\r\n\r\n // COMPRESSED_RGBA_ASTC_5x5_KHR\r\n 0x93B2: checkAlways,\r\n\r\n // COMPRESSED_RGBA_ASTC_6x5_KHR\r\n 0x93B3: checkAlways,\r\n\r\n // COMPRESSED_RGBA_ASTC_6x6_KHR\r\n 0x93B4: checkAlways,\r\n\r\n // COMPRESSED_RGBA_ASTC_8x5_KHR\r\n 0x93B5: checkAlways,\r\n\r\n // COMPRESSED_RGBA_ASTC_8x6_KHR\r\n 0x93B6: checkAlways,\r\n\r\n // COMPRESSED_RGBA_ASTC_8x8_KHR\r\n 0x93B7: checkAlways,\r\n\r\n // COMPRESSED_RGBA_ASTC_10x5_KHR\r\n 0x93B8: checkAlways,\r\n\r\n // COMPRESSED_RGBA_ASTC_10x6_KHR\r\n 0x93B9: checkAlways,\r\n\r\n // COMPRESSED_RGBA_ASTC_10x8_KHR\r\n 0x93BA: checkAlways,\r\n\r\n // COMPRESSED_RGBA_ASTC_10x10_KHR\r\n 0x93BB: checkAlways,\r\n\r\n // COMPRESSED_RGBA_ASTC_12x10_KHR\r\n 0x93BC: checkAlways,\r\n\r\n // COMPRESSED_RGBA_ASTC_12x12_KHR\r\n 0x93BD: checkAlways,\r\n\r\n // COMPRESSED_SRGB8_ALPHA8_ASTC_4X4_KHR\r\n 0x93D0: checkAlways,\r\n\r\n // COMPRESSED_SRGB8_ALPHA8_ASTC_5X4_KHR\r\n 0x93D1: checkAlways,\r\n\r\n // COMPRESSED_SRGB8_ALPHA8_ASTC_5X5_KHR\r\n 0x93D2: checkAlways,\r\n\r\n // COMPRESSED_SRGB8_ALPHA8_ASTC_6X5_KHR\r\n 0x93D3: checkAlways,\r\n\r\n // COMPRESSED_SRGB8_ALPHA8_ASTC_6X6_KHR\r\n 0x93D4: checkAlways,\r\n\r\n // COMPRESSED_SRGB8_ALPHA8_ASTC_8X5_KHR\r\n 0x93D5: checkAlways,\r\n\r\n // COMPRESSED_SRGB8_ALPHA8_ASTC_8X6_KHR\r\n 0x93D6: checkAlways,\r\n\r\n // COMPRESSED_SRGB8_ALPHA8_ASTC_8X8_KHR\r\n 0x93D7: checkAlways,\r\n\r\n // COMPRESSED_SRGB8_ALPHA8_ASTC_10X5_KHR\r\n 0x93D8: checkAlways,\r\n\r\n // COMPRESSED_SRGB8_ALPHA8_ASTC_10X6_KHR\r\n 0x93D9: checkAlways,\r\n\r\n // COMPRESSED_SRGB8_ALPHA8_ASTC_10X8_KHR\r\n 0x93DA: checkAlways,\r\n\r\n // COMPRESSED_SRGB8_ALPHA8_ASTC_10X10_KHR\r\n 0x93DB: checkAlways,\r\n\r\n // COMPRESSED_SRGB8_ALPHA8_ASTC_12X10_KHR\r\n 0x93DC: checkAlways,\r\n\r\n // COMPRESSED_SRGB8_ALPHA8_ASTC_12X12_KHR\r\n 0x93DD: checkAlways,\r\n\r\n // BPTC internal formats:\r\n\r\n // COMPRESSED_RGBA_BPTC_UNORM_EXT\r\n 0x8E8C: check4x4,\r\n\r\n // COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT\r\n 0x8E8D: check4x4,\r\n\r\n // COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT\r\n 0x8E8E: check4x4,\r\n\r\n // COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT\r\n 0x8E8F: check4x4,\r\n\r\n // RGTC internal formats:\r\n\r\n // COMPRESSED_RED_RGTC1\r\n 0x8DBB: check4x4,\r\n\r\n // COMPRESSED_SIGNED_RED_RGTC1\r\n 0x8DBC: check4x4,\r\n\r\n // COMPRESSED_RG_RGTC2\r\n 0x8DBD: check4x4,\r\n\r\n // COMPRESSED_SIGNED_RG_RGTC2\r\n 0x8DBE: check4x4,\r\n\r\n // PVRTC internal formats:\r\n\r\n // COMPRESSED_RGB_PVRTC_4BPPV1_IMG\r\n 0x8C00: checkPVRTC,\r\n\r\n // COMPRESSED_RGB_PVRTC_2BPPV1_IMG\r\n 0x8C01: checkPVRTC,\r\n\r\n // COMPRESSED_RGBA_PVRTC_4BPPV1_IMG\r\n 0x8C02: checkPVRTC,\r\n\r\n // COMPRESSED_RGBA_PVRTC_2BPPV1_IMG\r\n 0x8C03: checkPVRTC,\r\n\r\n // S3TC internal formats:\r\n\r\n // COMPRESSED_RGB_S3TC_DXT1_EXT\r\n 0x83F0: check4x4,\r\n\r\n // COMPRESSED_RGBA_S3TC_DXT1_EXT\r\n 0x83F1: check4x4,\r\n\r\n // COMPRESSED_RGBA_S3TC_DXT3_EXT\r\n 0x83F2: check4x4,\r\n\r\n // COMPRESSED_RGBA_S3TC_DXT5_EXT\r\n 0x83F3: check4x4,\r\n\r\n // S3TCSRGB internal formats:\r\n\r\n // COMPRESSED_SRGB_S3TC_DXT1_EXT\r\n 0x8C4C: checkS3TCSRGB,\r\n\r\n // COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT\r\n 0x8C4D: checkS3TCSRGB,\r\n\r\n // COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT\r\n 0x8C4E: checkS3TCSRGB,\r\n\r\n // COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT\r\n 0x8C4F: checkS3TCSRGB\r\n};\r\n\r\nmodule.exports = verifyCompressedTexture;\r\n\n\n/***/ }),\n\n/***/ 61309:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Textures.Parsers\r\n */\r\n\r\nmodule.exports = {\r\n\r\n AtlasXML: __webpack_require__(89905),\r\n Canvas: __webpack_require__(72893),\r\n Image: __webpack_require__(4832),\r\n JSONArray: __webpack_require__(78566),\r\n JSONHash: __webpack_require__(39711),\r\n KTXParser: __webpack_require__(31403),\r\n PVRParser: __webpack_require__(82038),\r\n SpriteSheet: __webpack_require__(75549),\r\n SpriteSheetFromAtlas: __webpack_require__(47534),\r\n UnityYAML: __webpack_require__(86147)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 80341:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Tilemaps.Formats\r\n */\r\n\r\nmodule.exports = {\r\n\r\n /**\r\n * CSV Map Type\r\n *\r\n * @name Phaser.Tilemaps.Formats.CSV\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n CSV: 0,\r\n\r\n /**\r\n * Tiled JSON Map Type\r\n *\r\n * @name Phaser.Tilemaps.Formats.TILED_JSON\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n TILED_JSON: 1,\r\n\r\n /**\r\n * 2D Array Map Type\r\n *\r\n * @name Phaser.Tilemaps.Formats.ARRAY_2D\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n ARRAY_2D: 2,\r\n\r\n /**\r\n * Weltmeister (Impact.js) Map Type\r\n *\r\n * @name Phaser.Tilemaps.Formats.WELTMEISTER\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n WELTMEISTER: 3\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 16536:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n/**\r\n * @classdesc\r\n * An Image Collection is a special Tile Set containing multiple images, with no slicing into each image.\r\n *\r\n * Image Collections are normally created automatically when Tiled data is loaded.\r\n *\r\n * @class ImageCollection\r\n * @memberof Phaser.Tilemaps\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {string} name - The name of the image collection in the map data.\r\n * @param {number} firstgid - The first image index this image collection contains.\r\n * @param {number} [width=32] - Width of widest image (in pixels).\r\n * @param {number} [height=32] - Height of tallest image (in pixels).\r\n * @param {number} [margin=0] - The margin around all images in the collection (in pixels).\r\n * @param {number} [spacing=0] - The spacing between each image in the collection (in pixels).\r\n * @param {object} [properties={}] - Custom Image Collection properties.\r\n */\r\nvar ImageCollection = new Class({\r\n\r\n initialize:\r\n\r\n function ImageCollection (name, firstgid, width, height, margin, spacing, properties)\r\n {\r\n if (width === undefined || width <= 0) { width = 32; }\r\n if (height === undefined || height <= 0) { height = 32; }\r\n if (margin === undefined) { margin = 0; }\r\n if (spacing === undefined) { spacing = 0; }\r\n\r\n /**\r\n * The name of the Image Collection.\r\n *\r\n * @name Phaser.Tilemaps.ImageCollection#name\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.name = name;\r\n\r\n /**\r\n * The Tiled firstgid value.\r\n * This is the starting index of the first image index this Image Collection contains.\r\n *\r\n * @name Phaser.Tilemaps.ImageCollection#firstgid\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.firstgid = firstgid | 0;\r\n\r\n /**\r\n * The width of the widest image (in pixels).\r\n *\r\n * @name Phaser.Tilemaps.ImageCollection#imageWidth\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.imageWidth = width | 0;\r\n\r\n /**\r\n * The height of the tallest image (in pixels).\r\n *\r\n * @name Phaser.Tilemaps.ImageCollection#imageHeight\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.imageHeight = height | 0;\r\n\r\n /**\r\n * The margin around the images in the collection (in pixels).\r\n * Use `setSpacing` to change.\r\n *\r\n * @name Phaser.Tilemaps.ImageCollection#imageMarge\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.imageMargin = margin | 0;\r\n\r\n /**\r\n * The spacing between each image in the collection (in pixels).\r\n * Use `setSpacing` to change.\r\n *\r\n * @name Phaser.Tilemaps.ImageCollection#imageSpacing\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.imageSpacing = spacing | 0;\r\n\r\n /**\r\n * Image Collection-specific properties that are typically defined in the Tiled editor.\r\n *\r\n * @name Phaser.Tilemaps.ImageCollection#properties\r\n * @type {object}\r\n * @since 3.0.0\r\n */\r\n this.properties = properties || {};\r\n\r\n /**\r\n * The cached images that are a part of this collection.\r\n *\r\n * @name Phaser.Tilemaps.ImageCollection#images\r\n * @type {array}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.images = [];\r\n\r\n /**\r\n * The total number of images in the image collection.\r\n *\r\n * @name Phaser.Tilemaps.ImageCollection#total\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.total = 0;\r\n },\r\n\r\n /**\r\n * Returns true if and only if this image collection contains the given image index.\r\n *\r\n * @method Phaser.Tilemaps.ImageCollection#containsImageIndex\r\n * @since 3.0.0\r\n *\r\n * @param {number} imageIndex - The image index to search for.\r\n *\r\n * @return {boolean} True if this Image Collection contains the given index.\r\n */\r\n containsImageIndex: function (imageIndex)\r\n {\r\n return (imageIndex >= this.firstgid && imageIndex < (this.firstgid + this.total));\r\n },\r\n\r\n /**\r\n * Add an image to this Image Collection.\r\n *\r\n * @method Phaser.Tilemaps.ImageCollection#addImage\r\n * @since 3.0.0\r\n *\r\n * @param {number} gid - The gid of the image in the Image Collection.\r\n * @param {string} image - The the key of the image in the Image Collection and in the cache.\r\n *\r\n * @return {Phaser.Tilemaps.ImageCollection} This ImageCollection object.\r\n */\r\n addImage: function (gid, image)\r\n {\r\n this.images.push({ gid: gid, image: image });\r\n this.total++;\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = ImageCollection;\r\n\n\n/***/ }),\n\n/***/ 27462:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2021 Photon Storm Ltd.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\n\r\n/**\r\n * @classdesc\r\n * The ObjectHelper helps tie objects with `gids` into the tileset\r\n * that sits behind them.\r\n *\r\n * @class ObjectHelper\r\n * @memberof Phaser.Tilemaps\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Tilemaps.Tileset[]} tilesets - The backing tileset data.\r\n */\r\nvar ObjectHelper = new Class({\r\n\r\n initialize:\r\n\r\n function ObjectHelper (tilesets)\r\n {\r\n /**\r\n * The Tile GIDs array.\r\n *\r\n * @name Phaser.Tilemaps.ObjectHelper#gids\r\n * @type {array}\r\n * @since 3.60.0\r\n */\r\n this.gids = [];\r\n\r\n if (tilesets !== undefined)\r\n {\r\n for (var t = 0; t < tilesets.length; ++t)\r\n {\r\n var tileset = tilesets[t];\r\n\r\n for (var i = 0; i < tileset.total; ++i)\r\n {\r\n this.gids[tileset.firstgid + i] = tileset;\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * The Tile GIDs array.\r\n *\r\n * @name Phaser.Tilemaps.ObjectHelper#_gids\r\n * @type {array}\r\n * @private\r\n * @since 3.60.0\r\n */\r\n this._gids = this.gids;\r\n },\r\n\r\n /**\r\n * Enabled if the object helper reaches in to tilesets for data.\r\n * Disabled if it only uses data directly on a gid object.\r\n *\r\n * @name Phaser.Tilemaps.ObjectHelper#enabled\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n enabled: {\r\n\r\n get: function ()\r\n {\r\n return !!this.gids;\r\n },\r\n\r\n set: function (v)\r\n {\r\n this.gids = v ? this._gids : undefined;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * Gets the Tiled `type` field value from the object or the `gid` behind it.\r\n *\r\n * @method Phaser.Tilemaps.ObjectHelper#getTypeIncludingTile\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.Tilemaps.TiledObject} obj - The Tiled object to investigate.\r\n *\r\n * @return {?string} The `type` of the object, the tile behind the `gid` of the object, or `undefined`.\r\n */\r\n getTypeIncludingTile: function (obj)\r\n {\r\n if (obj.type !== undefined && obj.type !== '')\r\n {\r\n return obj.type;\r\n }\r\n\r\n if (!this.gids || obj.gid === undefined)\r\n {\r\n return undefined;\r\n }\r\n\r\n var tileset = this.gids[obj.gid];\r\n\r\n if (!tileset)\r\n {\r\n return undefined;\r\n }\r\n\r\n var tileData = tileset.getTileData(obj.gid);\r\n\r\n if (!tileData)\r\n {\r\n return undefined;\r\n }\r\n\r\n return tileData.type;\r\n },\r\n\r\n /**\r\n * Sets the sprite texture data as specified (usually in a config) or, failing that,\r\n * as specified in the `gid` of the object being loaded (if any).\r\n *\r\n * This fallback will only work if the tileset was loaded as a spritesheet matching\r\n * the geometry of sprites fed into tiled, so that, for example: \"tile id #`3`\"\" within\r\n * the tileset is the same as texture frame `3` from the image of the tileset.\r\n *\r\n * @method Phaser.Tilemaps.ObjectHelper#setTextureAndFrame\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} sprite - The Game Object to modify.\r\n * @param {string|Phaser.Textures.Texture} [key] - The texture key to set (or else the `obj.gid`'s tile is used if available).\r\n * @param {string|number|Phaser.Textures.Frame} [frame] - The frames key to set (or else the `obj.gid`'s tile is used if available).\r\n * @param {Phaser.Types.Tilemaps.TiledObject} [obj] - The Tiled object for fallback.\r\n */\r\n setTextureAndFrame: function (sprite, key, frame, obj)\r\n {\r\n if ((key === null) && this.gids && obj.gid !== undefined)\r\n {\r\n var tileset = this.gids[obj.gid];\r\n\r\n if (tileset)\r\n {\r\n if (key === null && tileset.image !== undefined)\r\n {\r\n key = tileset.image.key;\r\n }\r\n\r\n if (frame === null)\r\n {\r\n // This relies on the tileset texture *also* having been loaded as a spritesheet. This isn't guaranteed!\r\n frame = obj.gid - tileset.firstgid;\r\n }\r\n\r\n // If we can't satisfy the request, probably best to null it out rather than set a whole spritesheet or something.\r\n if (!sprite.scene.textures.getFrame(key, frame))\r\n {\r\n key = null;\r\n frame = null;\r\n }\r\n }\r\n }\r\n\r\n sprite.setTexture(key, frame);\r\n },\r\n\r\n /**\r\n * Sets the `sprite.data` field from the tiled properties on the object and its tile (if any).\r\n *\r\n * @method Phaser.Tilemaps.ObjectHelper#setPropertiesFromTiledObject\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.GameObjects.GameObject} sprite\r\n * @param {Phaser.Types.Tilemaps.TiledObject} obj\r\n */\r\n setPropertiesFromTiledObject: function (sprite, obj)\r\n {\r\n if (this.gids !== undefined && obj.gid !== undefined)\r\n {\r\n var tileset = this.gids[obj.gid];\r\n\r\n if (tileset !== undefined)\r\n {\r\n this.setFromJSON(sprite, tileset.getTileProperties(obj.gid));\r\n }\r\n }\r\n\r\n this.setFromJSON(sprite, obj.properties);\r\n },\r\n\r\n /**\r\n * Sets the sprite data from the JSON object.\r\n *\r\n * @method Phaser.Tilemaps.ObjectHelper#setFromJSON\r\n * @since 3.60.0\r\n * @private\r\n *\r\n * @param {Phaser.GameObjects.GameObject} sprite - The object for which to populate `data`.\r\n * @param {(Object.|Object[])} properties - The properties to set in either JSON object format or else a list of objects with `name` and `value` fields.\r\n */\r\n setFromJSON: function (sprite, properties)\r\n {\r\n if (!properties)\r\n {\r\n return;\r\n }\r\n\r\n if (Array.isArray(properties))\r\n {\r\n for (var i = 0; i < properties.length; i++)\r\n {\r\n var prop = properties[i];\r\n\r\n if (sprite[prop.name] !== undefined)\r\n {\r\n sprite[prop.name] = prop.value;\r\n }\r\n else\r\n {\r\n sprite.setData(prop.name, prop.value);\r\n }\r\n }\r\n\r\n return;\r\n }\r\n\r\n for (var key in properties)\r\n {\r\n if (sprite[key] !== undefined)\r\n {\r\n sprite[key] = properties[key];\r\n }\r\n else\r\n {\r\n sprite.setData(key, properties[key]);\r\n }\r\n }\r\n }\r\n});\r\n\r\nmodule.exports = ObjectHelper;\r\n\n\n/***/ }),\n\n/***/ 31989:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Formats = __webpack_require__(80341);\r\nvar MapData = __webpack_require__(87010);\r\nvar Parse = __webpack_require__(46177);\r\nvar Tilemap = __webpack_require__(49075);\r\n\r\n/**\r\n * Create a Tilemap from the given key or data. If neither is given, make a blank Tilemap. When\r\n * loading from CSV or a 2D array, you should specify the tileWidth & tileHeight. When parsing from\r\n * a map from Tiled, the tileWidth, tileHeight, width & height will be pulled from the map data. For\r\n * an empty map, you should specify tileWidth, tileHeight, width & height.\r\n *\r\n * @function Phaser.Tilemaps.ParseToTilemap\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Tilemap belongs.\r\n * @param {string} [key] - The key in the Phaser cache that corresponds to the loaded tilemap data.\r\n * @param {number} [tileWidth=32] - The width of a tile in pixels.\r\n * @param {number} [tileHeight=32] - The height of a tile in pixels.\r\n * @param {number} [width=10] - The width of the map in tiles.\r\n * @param {number} [height=10] - The height of the map in tiles.\r\n * @param {number[][]} [data] - Instead of loading from the cache, you can also load directly from\r\n * a 2D array of tile indexes.\r\n * @param {boolean} [insertNull=false] - Controls how empty tiles, tiles with an index of -1, in the\r\n * map data are handled. If `true`, empty locations will get a value of `null`. If `false`, empty\r\n * location will get a Tile object with an index of -1. If you've a large sparsely populated map and\r\n * the tile data doesn't need to change then setting this value to `true` will help with memory\r\n * consumption. However if your map is small or you need to update the tiles dynamically, then leave\r\n * the default value set.\r\n *\r\n * @return {Phaser.Tilemaps.Tilemap}\r\n */\r\nvar ParseToTilemap = function (scene, key, tileWidth, tileHeight, width, height, data, insertNull)\r\n{\r\n if (tileWidth === undefined) { tileWidth = 32; }\r\n if (tileHeight === undefined) { tileHeight = 32; }\r\n if (width === undefined) { width = 10; }\r\n if (height === undefined) { height = 10; }\r\n if (insertNull === undefined) { insertNull = false; }\r\n\r\n var mapData = null;\r\n\r\n if (Array.isArray(data))\r\n {\r\n var name = key !== undefined ? key : 'map';\r\n mapData = Parse(name, Formats.ARRAY_2D, data, tileWidth, tileHeight, insertNull);\r\n }\r\n else if (key !== undefined)\r\n {\r\n var tilemapData = scene.cache.tilemap.get(key);\r\n\r\n if (!tilemapData)\r\n {\r\n console.warn('No map data found for key ' + key);\r\n }\r\n else\r\n {\r\n mapData = Parse(key, tilemapData.format, tilemapData.data, tileWidth, tileHeight, insertNull);\r\n }\r\n }\r\n\r\n if (mapData === null)\r\n {\r\n mapData = new MapData({\r\n tileWidth: tileWidth,\r\n tileHeight: tileHeight,\r\n width: width,\r\n height: height\r\n });\r\n }\r\n\r\n return new Tilemap(scene, mapData);\r\n};\r\n\r\nmodule.exports = ParseToTilemap;\r\n\n\n/***/ }),\n\n/***/ 23029:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Components = __webpack_require__(31401);\r\nvar CONST = __webpack_require__(91907);\r\nvar DeepCopy = __webpack_require__(62644);\r\nvar Rectangle = __webpack_require__(93232);\r\n\r\n/**\r\n * @classdesc\r\n * A Tile is a representation of a single tile within the Tilemap. This is a lightweight data\r\n * representation, so its position information is stored without factoring in scroll, layer\r\n * scale or layer position.\r\n *\r\n * @class Tile\r\n * @memberof Phaser.Tilemaps\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @extends Phaser.GameObjects.Components.AlphaSingle\r\n * @extends Phaser.GameObjects.Components.Flip\r\n * @extends Phaser.GameObjects.Components.Visible\r\n *\r\n * @param {Phaser.Tilemaps.LayerData} layer - The LayerData object in the Tilemap that this tile belongs to.\r\n * @param {number} index - The unique index of this tile within the map.\r\n * @param {number} x - The x coordinate of this tile in tile coordinates.\r\n * @param {number} y - The y coordinate of this tile in tile coordinates.\r\n * @param {number} width - Width of the tile in pixels.\r\n * @param {number} height - Height of the tile in pixels.\r\n * @param {number} baseWidth - The base width a tile in the map (in pixels). Tiled maps support\r\n * multiple tileset sizes within one map, but they are still placed at intervals of the base\r\n * tile width.\r\n * @param {number} baseHeight - The base height of the tile in pixels (in pixels). Tiled maps\r\n * support multiple tileset sizes within one map, but they are still placed at intervals of the\r\n * base tile height.\r\n */\r\nvar Tile = new Class({\r\n\r\n Mixins: [\r\n Components.AlphaSingle,\r\n Components.Flip,\r\n Components.Visible\r\n ],\r\n\r\n initialize:\r\n\r\n function Tile (layer, index, x, y, width, height, baseWidth, baseHeight)\r\n {\r\n /**\r\n * The LayerData in the Tilemap data that this tile belongs to.\r\n *\r\n * @name Phaser.Tilemaps.Tile#layer\r\n * @type {Phaser.Tilemaps.LayerData}\r\n * @since 3.0.0\r\n */\r\n this.layer = layer;\r\n\r\n /**\r\n * The index of this tile within the map data corresponding to the tileset, or -1 if this\r\n * represents a blank tile.\r\n *\r\n * @name Phaser.Tilemaps.Tile#index\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.index = index;\r\n\r\n /**\r\n * The x map coordinate of this tile in tile units.\r\n *\r\n * @name Phaser.Tilemaps.Tile#x\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.x = x;\r\n\r\n /**\r\n * The y map coordinate of this tile in tile units.\r\n *\r\n * @name Phaser.Tilemaps.Tile#y\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.y = y;\r\n\r\n /**\r\n * The width of the tile in pixels.\r\n *\r\n * @name Phaser.Tilemaps.Tile#width\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.width = width;\r\n\r\n /**\r\n * The height of the tile in pixels.\r\n *\r\n * @name Phaser.Tilemaps.Tile#height\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.height = height;\r\n\r\n /**\r\n * The right of the tile in pixels.\r\n *\r\n * Set in the `updatePixelXY` method.\r\n *\r\n * @name Phaser.Tilemaps.Tile#right\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.right;\r\n\r\n /**\r\n * The bottom of the tile in pixels.\r\n *\r\n * Set in the `updatePixelXY` method.\r\n *\r\n * @name Phaser.Tilemaps.Tile#bottom\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.bottom;\r\n\r\n /**\r\n * The maps base width of a tile in pixels. Tiled maps support multiple tileset sizes\r\n * within one map, but they are still placed at intervals of the base tile size.\r\n *\r\n * @name Phaser.Tilemaps.Tile#baseWidth\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.baseWidth = (baseWidth !== undefined) ? baseWidth : width;\r\n\r\n /**\r\n * The maps base height of a tile in pixels. Tiled maps support multiple tileset sizes\r\n * within one map, but they are still placed at intervals of the base tile size.\r\n *\r\n * @name Phaser.Tilemaps.Tile#baseHeight\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.baseHeight = (baseHeight !== undefined) ? baseHeight : height;\r\n\r\n /**\r\n * The x coordinate of the top left of this tile in pixels. This is relative to the top left\r\n * of the layer this tile is being rendered within. This property does NOT factor in camera\r\n * scroll, layer scale or layer position.\r\n *\r\n * @name Phaser.Tilemaps.Tile#pixelX\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.pixelX = 0;\r\n\r\n /**\r\n * The y coordinate of the top left of this tile in pixels. This is relative to the top left\r\n * of the layer this tile is being rendered within. This property does NOT factor in camera\r\n * scroll, layer scale or layer position.\r\n *\r\n * @name Phaser.Tilemaps.Tile#pixelY\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.pixelY = 0;\r\n\r\n this.updatePixelXY();\r\n\r\n /**\r\n * Tile specific properties. These usually come from Tiled.\r\n *\r\n * @name Phaser.Tilemaps.Tile#properties\r\n * @type {any}\r\n * @since 3.0.0\r\n */\r\n this.properties = {};\r\n\r\n /**\r\n * The rotation angle of this tile.\r\n *\r\n * @name Phaser.Tilemaps.Tile#rotation\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.rotation = 0;\r\n\r\n /**\r\n * Whether the tile should collide with any object on the left side.\r\n *\r\n * This property is used by Arcade Physics only, however, you can also use it\r\n * in your own checks.\r\n *\r\n * @name Phaser.Tilemaps.Tile#collideLeft\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.collideLeft = false;\r\n\r\n /**\r\n * Whether the tile should collide with any object on the right side.\r\n *\r\n * This property is used by Arcade Physics only, however, you can also use it\r\n * in your own checks.\r\n *\r\n * @name Phaser.Tilemaps.Tile#collideRight\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.collideRight = false;\r\n\r\n /**\r\n * Whether the tile should collide with any object on the top side.\r\n *\r\n * This property is used by Arcade Physics only, however, you can also use it\r\n * in your own checks.\r\n *\r\n * @name Phaser.Tilemaps.Tile#collideUp\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.collideUp = false;\r\n\r\n /**\r\n * Whether the tile should collide with any object on the bottom side.\r\n *\r\n * This property is used by Arcade Physics only, however, you can also use it\r\n * in your own checks.\r\n *\r\n * @name Phaser.Tilemaps.Tile#collideDown\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.collideDown = false;\r\n\r\n /**\r\n * Whether the tiles left edge is interesting for collisions.\r\n *\r\n * @name Phaser.Tilemaps.Tile#faceLeft\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.faceLeft = false;\r\n\r\n /**\r\n * Whether the tiles right edge is interesting for collisions.\r\n *\r\n * @name Phaser.Tilemaps.Tile#faceRight\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.faceRight = false;\r\n\r\n /**\r\n * Whether the tiles top edge is interesting for collisions.\r\n *\r\n * @name Phaser.Tilemaps.Tile#faceTop\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.faceTop = false;\r\n\r\n /**\r\n * Whether the tiles bottom edge is interesting for collisions.\r\n *\r\n * @name Phaser.Tilemaps.Tile#faceBottom\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.faceBottom = false;\r\n\r\n /**\r\n * Tile collision callback.\r\n *\r\n * @name Phaser.Tilemaps.Tile#collisionCallback\r\n * @type {function}\r\n * @since 3.0.0\r\n */\r\n this.collisionCallback = undefined;\r\n\r\n /**\r\n * The context in which the collision callback will be called.\r\n *\r\n * @name Phaser.Tilemaps.Tile#collisionCallbackContext\r\n * @type {object}\r\n * @since 3.0.0\r\n */\r\n this.collisionCallbackContext = this;\r\n\r\n /**\r\n * The tint to apply to this tile. Note: tint is currently a single color value instead of\r\n * the 4 corner tint component on other GameObjects.\r\n *\r\n * @name Phaser.Tilemaps.Tile#tint\r\n * @type {number}\r\n * @default\r\n * @since 3.0.0\r\n */\r\n this.tint = 0xffffff;\r\n\r\n /**\r\n * The tint fill mode.\r\n *\r\n * `false` = An additive tint (the default), where vertices colors are blended with the texture.\r\n * `true` = A fill tint, where the vertices colors replace the texture, but respects texture alpha.\r\n *\r\n * @name Phaser.Tilemaps.Tile#tintFill\r\n * @type {boolean}\r\n * @default\r\n * @since 3.70.0\r\n */\r\n this.tintFill = false;\r\n\r\n /**\r\n * An empty object where physics-engine specific information (e.g. bodies) may be stored.\r\n *\r\n * @name Phaser.Tilemaps.Tile#physics\r\n * @type {object}\r\n * @since 3.0.0\r\n */\r\n this.physics = {};\r\n },\r\n\r\n /**\r\n * Check if the given x and y world coordinates are within this Tile. This does not factor in\r\n * camera scroll, layer scale or layer position.\r\n *\r\n * @method Phaser.Tilemaps.Tile#containsPoint\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x coordinate to test.\r\n * @param {number} y - The y coordinate to test.\r\n *\r\n * @return {boolean} True if the coordinates are within this Tile, otherwise false.\r\n */\r\n containsPoint: function (x, y)\r\n {\r\n return !(x < this.pixelX || y < this.pixelY || x > this.right || y > this.bottom);\r\n },\r\n\r\n /**\r\n * Copies the tile data and properties from the given Tile to this Tile. This copies everything\r\n * except for position and interesting face calculations.\r\n *\r\n * @method Phaser.Tilemaps.Tile#copy\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Tilemaps.Tile} tile - The tile to copy from.\r\n *\r\n * @return {this} This Tile object instance.\r\n */\r\n copy: function (tile)\r\n {\r\n this.index = tile.index;\r\n this.alpha = tile.alpha;\r\n this.properties = DeepCopy(tile.properties);\r\n this.visible = tile.visible;\r\n this.setFlip(tile.flipX, tile.flipY);\r\n this.tint = tile.tint;\r\n this.rotation = tile.rotation;\r\n this.collideUp = tile.collideUp;\r\n this.collideDown = tile.collideDown;\r\n this.collideLeft = tile.collideLeft;\r\n this.collideRight = tile.collideRight;\r\n this.collisionCallback = tile.collisionCallback;\r\n this.collisionCallbackContext = tile.collisionCallbackContext;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The collision group for this Tile, defined within the Tileset. This returns a reference to\r\n * the collision group stored within the Tileset, so any modification of the returned object\r\n * will impact all tiles that have the same index as this tile.\r\n *\r\n * @method Phaser.Tilemaps.Tile#getCollisionGroup\r\n * @since 3.0.0\r\n *\r\n * @return {?object} The collision group for this Tile, as defined in the Tileset, or `null` if no group was defined.\r\n */\r\n getCollisionGroup: function ()\r\n {\r\n return this.tileset ? this.tileset.getTileCollisionGroup(this.index) : null;\r\n },\r\n\r\n /**\r\n * The tile data for this Tile, defined within the Tileset. This typically contains Tiled\r\n * collision data, tile animations and terrain information. This returns a reference to the tile\r\n * data stored within the Tileset, so any modification of the returned object will impact all\r\n * tiles that have the same index as this tile.\r\n *\r\n * @method Phaser.Tilemaps.Tile#getTileData\r\n * @since 3.0.0\r\n *\r\n * @return {?object} The tile data for this Tile, as defined in the Tileset, or `null` if no data was defined.\r\n */\r\n getTileData: function ()\r\n {\r\n return this.tileset ? this.tileset.getTileData(this.index) : null;\r\n },\r\n\r\n /**\r\n * Gets the world X position of the left side of the tile, factoring in the layers position,\r\n * scale and scroll.\r\n *\r\n * @method Phaser.Tilemaps.Tile#getLeft\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use to perform the check.\r\n *\r\n * @return {number} The left (x) value of this tile.\r\n */\r\n getLeft: function (camera)\r\n {\r\n var tilemapLayer = this.tilemapLayer;\r\n\r\n if (tilemapLayer)\r\n {\r\n var point = tilemapLayer.tileToWorldXY(this.x, this.y, undefined, camera);\r\n\r\n return point.x;\r\n }\r\n\r\n return this.x * this.baseWidth;\r\n },\r\n\r\n /**\r\n * Gets the world X position of the right side of the tile, factoring in the layer's position,\r\n * scale and scroll.\r\n *\r\n * @method Phaser.Tilemaps.Tile#getRight\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use to perform the check.\r\n *\r\n * @return {number} The right (x) value of this tile.\r\n */\r\n getRight: function (camera)\r\n {\r\n var tilemapLayer = this.tilemapLayer;\r\n\r\n return (tilemapLayer) ? this.getLeft(camera) + this.width * tilemapLayer.scaleX : this.getLeft(camera) + this.width;\r\n },\r\n\r\n /**\r\n * Gets the world Y position of the top side of the tile, factoring in the layer's position,\r\n * scale and scroll.\r\n *\r\n * @method Phaser.Tilemaps.Tile#getTop\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use to perform the check.\r\n *\r\n * @return {number} The top (y) value of this tile.\r\n */\r\n getTop: function (camera)\r\n {\r\n var tilemapLayer = this.tilemapLayer;\r\n\r\n // Tiled places tiles on a grid of baseWidth x baseHeight. The origin for a tile in grid\r\n // units is the bottom left, so the y coordinate needs to be adjusted by the difference\r\n // between the base size and this tile's size.\r\n if (tilemapLayer)\r\n {\r\n var point = tilemapLayer.tileToWorldXY(this.x, this.y, undefined, camera);\r\n\r\n return point.y;\r\n }\r\n\r\n return this.y * this.baseWidth - (this.height - this.baseHeight);\r\n },\r\n\r\n /**\r\n * Gets the world Y position of the bottom side of the tile, factoring in the layer's position,\r\n * scale and scroll.\r\n\r\n * @method Phaser.Tilemaps.Tile#getBottom\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use to perform the check.\r\n *\r\n * @return {number} The bottom (y) value of this tile.\r\n */\r\n getBottom: function (camera)\r\n {\r\n var tilemapLayer = this.tilemapLayer;\r\n\r\n return tilemapLayer\r\n ? this.getTop(camera) + this.height * tilemapLayer.scaleY\r\n : this.getTop(camera) + this.height;\r\n },\r\n\r\n /**\r\n * Gets the world rectangle bounding box for the tile, factoring in the layers position,\r\n * scale and scroll.\r\n *\r\n * @method Phaser.Tilemaps.Tile#getBounds\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use to perform the check.\r\n * @param {Phaser.Geom.Rectangle} [output] - Optional Rectangle object to store the results in.\r\n *\r\n * @return {(Phaser.Geom.Rectangle|object)} The bounds of this Tile.\r\n */\r\n getBounds: function (camera, output)\r\n {\r\n if (output === undefined) { output = new Rectangle(); }\r\n\r\n output.x = this.getLeft(camera);\r\n output.y = this.getTop(camera);\r\n output.width = this.getRight(camera) - output.x;\r\n output.height = this.getBottom(camera) - output.y;\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Gets the world X position of the center of the tile, factoring in the layer's position,\r\n * scale and scroll.\r\n *\r\n * @method Phaser.Tilemaps.Tile#getCenterX\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use to perform the check.\r\n *\r\n * @return {number} The center x position of this Tile.\r\n */\r\n getCenterX: function (camera)\r\n {\r\n return (this.getLeft(camera) + this.getRight(camera)) / 2;\r\n },\r\n\r\n /**\r\n * Gets the world Y position of the center of the tile, factoring in the layer's position,\r\n * scale and scroll.\r\n *\r\n * @method Phaser.Tilemaps.Tile#getCenterY\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use to perform the check.\r\n *\r\n * @return {number} The center y position of this Tile.\r\n */\r\n getCenterY: function (camera)\r\n {\r\n return (this.getTop(camera) + this.getBottom(camera)) / 2;\r\n },\r\n\r\n /**\r\n * Check for intersection with this tile. This does not factor in camera scroll, layer scale or\r\n * layer position.\r\n *\r\n * @method Phaser.Tilemaps.Tile#intersects\r\n * @since 3.0.0\r\n *\r\n * @param {number} x - The x axis in pixels.\r\n * @param {number} y - The y axis in pixels.\r\n * @param {number} right - The right point.\r\n * @param {number} bottom - The bottom point.\r\n *\r\n * @return {boolean} `true` if the Tile intersects with the given dimensions, otherwise `false`.\r\n */\r\n intersects: function (x, y, right, bottom)\r\n {\r\n return !(\r\n right <= this.pixelX || bottom <= this.pixelY ||\r\n x >= this.right || y >= this.bottom\r\n );\r\n },\r\n\r\n /**\r\n * Checks if the tile is interesting.\r\n *\r\n * @method Phaser.Tilemaps.Tile#isInteresting\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} collides - If true, will consider the tile interesting if it collides on any side.\r\n * @param {boolean} faces - If true, will consider the tile interesting if it has an interesting face.\r\n *\r\n * @return {boolean} True if the Tile is interesting, otherwise false.\r\n */\r\n isInteresting: function (collides, faces)\r\n {\r\n if (collides && faces)\r\n {\r\n return (this.canCollide || this.hasInterestingFace);\r\n }\r\n else if (collides)\r\n {\r\n return this.collides;\r\n }\r\n else if (faces)\r\n {\r\n return this.hasInterestingFace;\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Reset collision status flags.\r\n *\r\n * @method Phaser.Tilemaps.Tile#resetCollision\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [recalculateFaces=true] - Whether or not to recalculate interesting faces for this tile and its neighbors.\r\n *\r\n * @return {this} This Tile object instance.\r\n */\r\n resetCollision: function (recalculateFaces)\r\n {\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n\r\n this.collideLeft = false;\r\n this.collideRight = false;\r\n this.collideUp = false;\r\n this.collideDown = false;\r\n\r\n this.faceTop = false;\r\n this.faceBottom = false;\r\n this.faceLeft = false;\r\n this.faceRight = false;\r\n\r\n if (recalculateFaces)\r\n {\r\n var tilemapLayer = this.tilemapLayer;\r\n\r\n if (tilemapLayer)\r\n {\r\n this.tilemapLayer.calculateFacesAt(this.x, this.y);\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Reset faces.\r\n *\r\n * @method Phaser.Tilemaps.Tile#resetFaces\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Tile object instance.\r\n */\r\n resetFaces: function ()\r\n {\r\n this.faceTop = false;\r\n this.faceBottom = false;\r\n this.faceLeft = false;\r\n this.faceRight = false;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the collision flags for each side of this tile and updates the interesting faces list.\r\n *\r\n * @method Phaser.Tilemaps.Tile#setCollision\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} left - Indicating collide with any object on the left.\r\n * @param {boolean} [right] - Indicating collide with any object on the right.\r\n * @param {boolean} [up] - Indicating collide with any object on the top.\r\n * @param {boolean} [down] - Indicating collide with any object on the bottom.\r\n * @param {boolean} [recalculateFaces=true] - Whether or not to recalculate interesting faces for this tile and its neighbors.\r\n *\r\n * @return {this} This Tile object instance.\r\n */\r\n setCollision: function (left, right, up, down, recalculateFaces)\r\n {\r\n if (right === undefined) { right = left; }\r\n if (up === undefined) { up = left; }\r\n if (down === undefined) { down = left; }\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n\r\n this.collideLeft = left;\r\n this.collideRight = right;\r\n this.collideUp = up;\r\n this.collideDown = down;\r\n\r\n this.faceLeft = left;\r\n this.faceRight = right;\r\n this.faceTop = up;\r\n this.faceBottom = down;\r\n\r\n if (recalculateFaces)\r\n {\r\n var tilemapLayer = this.tilemapLayer;\r\n\r\n if (tilemapLayer)\r\n {\r\n this.tilemapLayer.calculateFacesAt(this.x, this.y);\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Set a callback to be called when this tile is hit by an object. The callback must true for\r\n * collision processing to take place.\r\n *\r\n * @method Phaser.Tilemaps.Tile#setCollisionCallback\r\n * @since 3.0.0\r\n *\r\n * @param {function} callback - Callback function.\r\n * @param {object} context - Callback will be called within this context.\r\n *\r\n * @return {this} This Tile object instance.\r\n */\r\n setCollisionCallback: function (callback, context)\r\n {\r\n if (callback === null)\r\n {\r\n this.collisionCallback = undefined;\r\n this.collisionCallbackContext = undefined;\r\n }\r\n else\r\n {\r\n this.collisionCallback = callback;\r\n this.collisionCallbackContext = context;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the size of the tile and updates its pixelX and pixelY.\r\n *\r\n * @method Phaser.Tilemaps.Tile#setSize\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileWidth - The width of the tile in pixels.\r\n * @param {number} tileHeight - The height of the tile in pixels.\r\n * @param {number} baseWidth - The base width a tile in the map (in pixels).\r\n * @param {number} baseHeight - The base height of the tile in pixels (in pixels).\r\n *\r\n * @return {this} This Tile object instance.\r\n */\r\n setSize: function (tileWidth, tileHeight, baseWidth, baseHeight)\r\n {\r\n if (tileWidth !== undefined) { this.width = tileWidth; }\r\n if (tileHeight !== undefined) { this.height = tileHeight; }\r\n if (baseWidth !== undefined) { this.baseWidth = baseWidth; }\r\n if (baseHeight !== undefined) { this.baseHeight = baseHeight; }\r\n\r\n this.updatePixelXY();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Used internally. Updates the tiles world XY position based on the current tile size.\r\n *\r\n * @method Phaser.Tilemaps.Tile#updatePixelXY\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Tile object instance.\r\n */\r\n updatePixelXY: function ()\r\n {\r\n var orientation = this.layer.orientation;\r\n\r\n if (orientation === CONST.ORTHOGONAL)\r\n {\r\n // In orthogonal mode, Tiled places tiles on a grid of baseWidth x baseHeight. The origin for a tile is the\r\n // bottom left, while the Phaser renderer assumes the origin is the top left. The y\r\n // coordinate needs to be adjusted by the difference.\r\n\r\n this.pixelX = this.x * this.baseWidth;\r\n this.pixelY = this.y * this.baseHeight;\r\n }\r\n else if (orientation === CONST.ISOMETRIC)\r\n {\r\n // Reminder: For the tilemap to be centered we have to move the image to the right with the camera!\r\n // This is crucial for wordtotile, tiletoworld to work.\r\n\r\n this.pixelX = (this.x - this.y) * this.baseWidth * 0.5;\r\n this.pixelY = (this.x + this.y) * this.baseHeight * 0.5;\r\n }\r\n else if (orientation === CONST.STAGGERED)\r\n {\r\n this.pixelX = this.x * this.baseWidth + this.y % 2 * (this.baseWidth / 2);\r\n this.pixelY = this.y * (this.baseHeight / 2);\r\n }\r\n else if (orientation === CONST.HEXAGONAL)\r\n {\r\n var staggerAxis = this.layer.staggerAxis;\r\n var staggerIndex = this.layer.staggerIndex;\r\n var len = this.layer.hexSideLength;\r\n var rowWidth;\r\n var rowHeight;\r\n\r\n if (staggerAxis === 'y')\r\n {\r\n rowHeight = ((this.baseHeight - len) / 2 + len);\r\n\r\n if (staggerIndex === 'odd')\r\n {\r\n this.pixelX = this.x * this.baseWidth + this.y % 2 * (this.baseWidth / 2);\r\n }\r\n else\r\n {\r\n this.pixelX = this.x * this.baseWidth - this.y % 2 * (this.baseWidth / 2);\r\n }\r\n\r\n this.pixelY = this.y * rowHeight;\r\n }\r\n else if (staggerAxis === 'x')\r\n {\r\n rowWidth = ((this.baseWidth - len) / 2 + len);\r\n\r\n this.pixelX = this.x * rowWidth;\r\n\r\n if (staggerIndex === 'odd')\r\n {\r\n this.pixelY = this.y * this.baseHeight + this.x % 2 * (this.baseHeight / 2);\r\n }\r\n else\r\n {\r\n this.pixelY = this.y * this.baseHeight - this.x % 2 * (this.baseHeight / 2);\r\n }\r\n }\r\n }\r\n\r\n this.right = this.pixelX + this.baseWidth;\r\n this.bottom = this.pixelY + this.baseHeight;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Clean up memory.\r\n *\r\n * @method Phaser.Tilemaps.Tile#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.collisionCallback = undefined;\r\n this.collisionCallbackContext = undefined;\r\n this.properties = undefined;\r\n },\r\n\r\n /**\r\n * True if this tile can collide on any of its faces or has a collision callback set.\r\n *\r\n * @name Phaser.Tilemaps.Tile#canCollide\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n canCollide: {\r\n\r\n get: function ()\r\n {\r\n return (this.collideLeft || this.collideRight || this.collideUp || this.collideDown || (this.collisionCallback !== undefined));\r\n }\r\n\r\n },\r\n\r\n /**\r\n * True if this tile can collide on any of its faces.\r\n *\r\n * @name Phaser.Tilemaps.Tile#collides\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n collides: {\r\n\r\n get: function ()\r\n {\r\n return (this.collideLeft || this.collideRight || this.collideUp || this.collideDown);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * True if this tile has any interesting faces.\r\n *\r\n * @name Phaser.Tilemaps.Tile#hasInterestingFace\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n hasInterestingFace: {\r\n\r\n get: function ()\r\n {\r\n return (this.faceTop || this.faceBottom || this.faceLeft || this.faceRight);\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The tileset that contains this Tile. This is null if accessed from a LayerData instance\r\n * before the tile is placed in a TilemapLayer, or if the tile has an index that doesn't correspond\r\n * to any of the maps tilesets.\r\n *\r\n * @name Phaser.Tilemaps.Tile#tileset\r\n * @type {?Phaser.Tilemaps.Tileset}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n tileset: {\r\n\r\n get: function ()\r\n {\r\n var tilemapLayer = this.layer.tilemapLayer;\r\n\r\n if (tilemapLayer)\r\n {\r\n var tileset = tilemapLayer.gidMap[this.index];\r\n\r\n if (tileset)\r\n {\r\n return tileset;\r\n }\r\n }\r\n\r\n return null;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The tilemap layer that contains this Tile. This will only return null if accessed from a\r\n * LayerData instance before the tile is placed within a TilemapLayer.\r\n *\r\n * @name Phaser.Tilemaps.Tile#tilemapLayer\r\n * @type {?Phaser.Tilemaps.TilemapLayer}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n tilemapLayer: {\r\n\r\n get: function ()\r\n {\r\n return this.layer.tilemapLayer;\r\n }\r\n\r\n },\r\n\r\n /**\r\n * The tilemap that contains this Tile. This will only return null if accessed from a LayerData\r\n * instance before the tile is placed within a TilemapLayer.\r\n *\r\n * @name Phaser.Tilemaps.Tile#tilemap\r\n * @type {?Phaser.Tilemaps.Tilemap}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n tilemap: {\r\n\r\n get: function ()\r\n {\r\n var tilemapLayer = this.tilemapLayer;\r\n\r\n return tilemapLayer ? tilemapLayer.tilemap : null;\r\n }\r\n\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Tile;\r\n\n\n/***/ }),\n\n/***/ 49075:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BuildTilesetIndex = __webpack_require__(84101);\r\nvar Class = __webpack_require__(83419);\r\nvar DegToRad = __webpack_require__(39506);\r\nvar Formats = __webpack_require__(80341);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar LayerData = __webpack_require__(14977);\r\nvar ObjectHelper = __webpack_require__(27462);\r\nvar ORIENTATION = __webpack_require__(91907);\r\nvar Rotate = __webpack_require__(36305);\r\nvar SpliceOne = __webpack_require__(19133);\r\nvar Sprite = __webpack_require__(68287);\r\nvar Tile = __webpack_require__(23029);\r\nvar TilemapComponents = __webpack_require__(81086);\r\nvar TilemapLayer = __webpack_require__(20442);\r\nvar Tileset = __webpack_require__(33629);\r\n\r\n/**\r\n * A predicate, to test each element of the array.\r\n *\r\n * @callback TilemapFilterCallback\r\n *\r\n * @param {Phaser.GameObjects.GameObject} value - An object found in the filtered area.\r\n * @param {number} index - The index of the object within the array.\r\n * @param {Phaser.GameObjects.GameObject[]} array - An array of all the objects found.\r\n *\r\n * @return {boolean} A value that coerces to `true` to keep the element, or to `false` otherwise.\r\n */\r\n\r\n/**\r\n * @callback TilemapFindCallback\r\n *\r\n * @param {Phaser.GameObjects.GameObject} value - An object found.\r\n * @param {number} index - The index of the object within the array.\r\n * @param {Phaser.GameObjects.GameObject[]} array - An array of all the objects found.\r\n *\r\n * @return {boolean} `true` if the callback should be invoked, otherwise `false`.\r\n */\r\n\r\n/**\r\n * @classdesc\r\n * A Tilemap is a container for Tilemap data. This isn't a display object, rather, it holds data\r\n * about the map and allows you to add tilesets and tilemap layers to it. A map can have one or\r\n * more tilemap layers, which are the display objects that actually render the tiles.\r\n *\r\n * The Tilemap data can be parsed from a Tiled JSON file, a CSV file or a 2D array. Tiled is a free\r\n * software package specifically for creating tile maps, and is available from:\r\n * http://www.mapeditor.org\r\n *\r\n * As of Phaser 3.50.0 the Tilemap API now supports the following types of map:\r\n *\r\n * 1) Orthogonal\r\n * 2) Isometric\r\n * 3) Hexagonal\r\n * 4) Staggered\r\n *\r\n * Prior to this release, only orthogonal maps were supported.\r\n *\r\n * Another large change in 3.50 was the consolidation of Tilemap Layers. Previously, you created\r\n * either a Static or Dynamic Tilemap Layer. However, as of 3.50 the features of both have been\r\n * merged and the API simplified, so now there is just the single `TilemapLayer` class.\r\n *\r\n * A Tilemap has handy methods for getting and manipulating the tiles within a layer, allowing\r\n * you to build or modify the tilemap data at runtime.\r\n *\r\n * Note that all Tilemaps use a base tile size to calculate dimensions from, but that a\r\n * TilemapLayer may have its own unique tile size that overrides this.\r\n *\r\n * As of Phaser 3.21.0, if your tilemap includes layer groups (a feature of Tiled 1.2.0+) these\r\n * will be traversed and the following properties will impact children:\r\n *\r\n * - Opacity (blended with parent) and visibility (parent overrides child)\r\n * - Vertical and horizontal offset\r\n *\r\n * The grouping hierarchy is not preserved and all layers will be flattened into a single array.\r\n *\r\n * Group layers are parsed during Tilemap construction but are discarded after parsing so dynamic\r\n * layers will NOT continue to be affected by a parent.\r\n *\r\n * To avoid duplicate layer names, a layer that is a child of a group layer will have its parent\r\n * group name prepended with a '/'. For example, consider a group called 'ParentGroup' with a\r\n * child called 'Layer 1'. In the Tilemap object, 'Layer 1' will have the name\r\n * 'ParentGroup/Layer 1'.\r\n *\r\n * The Phaser Tiled Parser does **not** support the 'Collection of Images' feature for a Tileset.\r\n * You must ensure all of your tiles are contained in a single tileset image file (per layer)\r\n * and have this 'embedded' in the exported Tiled JSON map data.\r\n *\r\n * @class Tilemap\r\n * @memberof Phaser.Tilemaps\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Tilemap belongs.\r\n * @param {Phaser.Tilemaps.MapData} mapData - A MapData instance containing Tilemap data.\r\n */\r\nvar Tilemap = new Class({\r\n\r\n initialize:\r\n\r\n function Tilemap (scene, mapData)\r\n {\r\n /**\r\n * @name Phaser.Tilemaps.Tilemap#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.0.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * The base width of a tile in pixels. Note that individual layers may have a different tile\r\n * width.\r\n *\r\n * @name Phaser.Tilemaps.Tilemap#tileWidth\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.tileWidth = mapData.tileWidth;\r\n\r\n /**\r\n * The base height of a tile in pixels. Note that individual layers may have a different\r\n * tile height.\r\n *\r\n * @name Phaser.Tilemaps.Tilemap#tileHeight\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.tileHeight = mapData.tileHeight;\r\n\r\n /**\r\n * The width of the map (in tiles).\r\n *\r\n * @name Phaser.Tilemaps.Tilemap#width\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.width = mapData.width;\r\n\r\n /**\r\n * The height of the map (in tiles).\r\n *\r\n * @name Phaser.Tilemaps.Tilemap#height\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.height = mapData.height;\r\n\r\n /**\r\n * The orientation of the map data (as specified in Tiled), usually 'orthogonal'.\r\n *\r\n * @name Phaser.Tilemaps.Tilemap#orientation\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.orientation = mapData.orientation;\r\n\r\n /**\r\n * The render (draw) order of the map data (as specified in Tiled), usually 'right-down'.\r\n *\r\n * The draw orders are:\r\n *\r\n * right-down\r\n * left-down\r\n * right-up\r\n * left-up\r\n *\r\n * This can be changed via the `setRenderOrder` method.\r\n *\r\n * @name Phaser.Tilemaps.Tilemap#renderOrder\r\n * @type {string}\r\n * @since 3.12.0\r\n */\r\n this.renderOrder = mapData.renderOrder;\r\n\r\n /**\r\n * The format of the map data.\r\n *\r\n * @name Phaser.Tilemaps.Tilemap#format\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.format = mapData.format;\r\n\r\n /**\r\n * The version of the map data (as specified in Tiled, usually 1).\r\n *\r\n * @name Phaser.Tilemaps.Tilemap#version\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.version = mapData.version;\r\n\r\n /**\r\n * Map specific properties as specified in Tiled.\r\n *\r\n * Depending on the version of Tiled and the JSON export used, this will be either\r\n * an object or an array of objects. For Tiled 1.2.0+ maps, it will be an array.\r\n *\r\n * @name Phaser.Tilemaps.Tilemap#properties\r\n * @type {object|object[]}\r\n * @since 3.0.0\r\n */\r\n this.properties = mapData.properties;\r\n\r\n /**\r\n * The width of the map in pixels based on width * tileWidth.\r\n *\r\n * @name Phaser.Tilemaps.Tilemap#widthInPixels\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.widthInPixels = mapData.widthInPixels;\r\n\r\n /**\r\n * The height of the map in pixels based on height * tileHeight.\r\n *\r\n * @name Phaser.Tilemaps.Tilemap#heightInPixels\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.heightInPixels = mapData.heightInPixels;\r\n\r\n /**\r\n * A collection of Images, as parsed from Tiled map data.\r\n *\r\n * @name Phaser.Tilemaps.Tilemap#imageCollections\r\n * @type {Phaser.Tilemaps.ImageCollection[]}\r\n * @since 3.0.0\r\n */\r\n this.imageCollections = mapData.imageCollections;\r\n\r\n /**\r\n * An array of Tiled Image Layers.\r\n *\r\n * @name Phaser.Tilemaps.Tilemap#images\r\n * @type {array}\r\n * @since 3.0.0\r\n */\r\n this.images = mapData.images;\r\n\r\n /**\r\n * An array of Tilemap layer data.\r\n *\r\n * @name Phaser.Tilemaps.Tilemap#layers\r\n * @type {Phaser.Tilemaps.LayerData[]}\r\n * @since 3.0.0\r\n */\r\n this.layers = mapData.layers;\r\n\r\n /**\r\n * Master list of tiles -> x, y, index in tileset.\r\n *\r\n * @name Phaser.Tilemaps.Tilemap#tiles\r\n * @type {array}\r\n * @since 3.60.0\r\n * @see Phaser.Tilemaps.Parsers.Tiled.BuildTilesetIndex\r\n */\r\n this.tiles = mapData.tiles;\r\n\r\n /**\r\n * An array of Tilesets used in the map.\r\n *\r\n * @name Phaser.Tilemaps.Tilemap#tilesets\r\n * @type {Phaser.Tilemaps.Tileset[]}\r\n * @since 3.0.0\r\n */\r\n this.tilesets = mapData.tilesets;\r\n\r\n /**\r\n * An array of ObjectLayer instances parsed from Tiled object layers.\r\n *\r\n * @name Phaser.Tilemaps.Tilemap#objects\r\n * @type {Phaser.Tilemaps.ObjectLayer[]}\r\n * @since 3.0.0\r\n */\r\n this.objects = mapData.objects;\r\n\r\n /**\r\n * The index of the currently selected LayerData object.\r\n *\r\n * @name Phaser.Tilemaps.Tilemap#currentLayerIndex\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.currentLayerIndex = 0;\r\n\r\n /**\r\n * The length of the horizontal sides of the hexagon.\r\n * Only used for hexagonal orientation Tilemaps.\r\n *\r\n * @name Phaser.Tilemaps.Tilemap#hexSideLength\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.hexSideLength = mapData.hexSideLength;\r\n\r\n var orientation = this.orientation;\r\n\r\n /**\r\n * Functions used to handle world to tile, and tile to world, conversion.\r\n * Cached here for internal use by public methods such as `worldToTileXY`, etc.\r\n *\r\n * @name Phaser.Tilemaps.Tilemap#_convert\r\n * @private\r\n * @type {object}\r\n * @since 3.50.0\r\n */\r\n this._convert = {\r\n WorldToTileXY: TilemapComponents.GetWorldToTileXYFunction(orientation),\r\n WorldToTileX: TilemapComponents.GetWorldToTileXFunction(orientation),\r\n WorldToTileY: TilemapComponents.GetWorldToTileYFunction(orientation),\r\n TileToWorldXY: TilemapComponents.GetTileToWorldXYFunction(orientation),\r\n TileToWorldX: TilemapComponents.GetTileToWorldXFunction(orientation),\r\n TileToWorldY: TilemapComponents.GetTileToWorldYFunction(orientation),\r\n GetTileCorners: TilemapComponents.GetTileCornersFunction(orientation)\r\n };\r\n },\r\n\r\n /**\r\n * Sets the rendering (draw) order of the tiles in this map.\r\n *\r\n * The default is 'right-down', meaning it will order the tiles starting from the top-left,\r\n * drawing to the right and then moving down to the next row.\r\n *\r\n * The draw orders are:\r\n *\r\n * 0 = right-down\r\n * 1 = left-down\r\n * 2 = right-up\r\n * 3 = left-up\r\n *\r\n * Setting the render order does not change the tiles or how they are stored in the layer,\r\n * it purely impacts the order in which they are rendered.\r\n *\r\n * You can provide either an integer (0 to 3), or the string version of the order.\r\n *\r\n * Calling this method _after_ creating Tilemap Layers will **not** automatically\r\n * update them to use the new render order. If you call this method after creating layers, use their\r\n * own `setRenderOrder` methods to change them as needed.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#setRenderOrder\r\n * @since 3.12.0\r\n *\r\n * @param {(number|string)} renderOrder - The render (draw) order value. Either an integer between 0 and 3, or a string: 'right-down', 'left-down', 'right-up' or 'left-up'.\r\n *\r\n * @return {this} This Tilemap object.\r\n */\r\n setRenderOrder: function (renderOrder)\r\n {\r\n var orders = [ 'right-down', 'left-down', 'right-up', 'left-up' ];\r\n\r\n if (typeof renderOrder === 'number')\r\n {\r\n renderOrder = orders[renderOrder];\r\n }\r\n\r\n if (orders.indexOf(renderOrder) > -1)\r\n {\r\n this.renderOrder = renderOrder;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Adds an image to the map to be used as a tileset. A single map may use multiple tilesets.\r\n * Note that the tileset name can be found in the JSON file exported from Tiled, or in the Tiled\r\n * editor.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#addTilesetImage\r\n * @since 3.0.0\r\n *\r\n * @param {string} tilesetName - The name of the tileset as specified in the map data.\r\n * @param {string} [key] - The key of the Phaser.Cache image used for this tileset. If\r\n * `undefined` or `null` it will look for an image with a key matching the tilesetName parameter.\r\n * @param {number} [tileWidth] - The width of the tile (in pixels) in the Tileset Image. If not\r\n * given it will default to the map's tileWidth value, or the tileWidth specified in the Tiled\r\n * JSON file.\r\n * @param {number} [tileHeight] - The height of the tiles (in pixels) in the Tileset Image. If\r\n * not given it will default to the map's tileHeight value, or the tileHeight specified in the\r\n * Tiled JSON file.\r\n * @param {number} [tileMargin] - The margin around the tiles in the sheet (in pixels). If not\r\n * specified, it will default to 0 or the value specified in the Tiled JSON file.\r\n * @param {number} [tileSpacing] - The spacing between each the tile in the sheet (in pixels).\r\n * If not specified, it will default to 0 or the value specified in the Tiled JSON file.\r\n * @param {number} [gid=0] - If adding multiple tilesets to a blank map, specify the starting\r\n * GID this set will use here.\r\n * @param {object} [tileOffset={x: 0, y: 0}] - Tile texture drawing offset.\r\n * If not specified, it will default to {0, 0}\r\n *\r\n * @return {?Phaser.Tilemaps.Tileset} Returns the Tileset object that was created or updated, or null if it\r\n * failed.\r\n */\r\n addTilesetImage: function (tilesetName, key, tileWidth, tileHeight, tileMargin, tileSpacing, gid, tileOffset)\r\n {\r\n if (tilesetName === undefined) { return null; }\r\n if (key === undefined || key === null) { key = tilesetName; }\r\n\r\n var textureManager = this.scene.sys.textures;\r\n\r\n if (!textureManager.exists(key))\r\n {\r\n console.warn('Texture key \"%s\" not found', key);\r\n return null;\r\n }\r\n\r\n var texture = textureManager.get(key);\r\n\r\n var index = this.getTilesetIndex(tilesetName);\r\n\r\n if (index === null && this.format === Formats.TILED_JSON)\r\n {\r\n console.warn('Tilemap has no tileset \"%s\". Its tilesets are %o', tilesetName, this.tilesets);\r\n return null;\r\n }\r\n\r\n var tileset = this.tilesets[index];\r\n\r\n if (tileset)\r\n {\r\n if (tileWidth || tileHeight)\r\n {\r\n tileset.setTileSize(tileWidth, tileHeight);\r\n }\r\n\r\n if (tileMargin || tileSpacing)\r\n {\r\n tileset.setSpacing(tileMargin, tileSpacing);\r\n }\r\n\r\n tileset.setImage(texture);\r\n\r\n return tileset;\r\n }\r\n\r\n if (tileWidth === undefined) { tileWidth = this.tileWidth; }\r\n if (tileHeight === undefined) { tileHeight = this.tileHeight; }\r\n if (tileMargin === undefined) { tileMargin = 0; }\r\n if (tileSpacing === undefined) { tileSpacing = 0; }\r\n if (gid === undefined) { gid = 0; }\r\n if (tileOffset === undefined) { tileOffset = { x: 0, y: 0 }; }\r\n\r\n tileset = new Tileset(tilesetName, gid, tileWidth, tileHeight, tileMargin, tileSpacing, undefined, undefined, tileOffset);\r\n\r\n tileset.setImage(texture);\r\n\r\n this.tilesets.push(tileset);\r\n\r\n this.tiles = BuildTilesetIndex(this);\r\n\r\n return tileset;\r\n },\r\n\r\n /**\r\n * Copies the tiles in the source rectangular area to a new destination (all specified in tile\r\n * coordinates) within the layer. This copies all tile properties & recalculates collision\r\n * information in the destination region.\r\n *\r\n * If no layer specified, the map's current layer is used. This cannot be applied to StaticTilemapLayers.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#copy\r\n * @since 3.0.0\r\n *\r\n * @param {number} srcTileX - The x coordinate of the area to copy from, in tiles, not pixels.\r\n * @param {number} srcTileY - The y coordinate of the area to copy from, in tiles, not pixels.\r\n * @param {number} width - The width of the area to copy, in tiles, not pixels.\r\n * @param {number} height - The height of the area to copy, in tiles, not pixels.\r\n * @param {number} destTileX - The x coordinate of the area to copy to, in tiles, not pixels.\r\n * @param {number} destTileY - The y coordinate of the area to copy to, in tiles, not pixels.\r\n * @param {boolean} [recalculateFaces=true] - `true` if the faces data should be recalculated.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tilemap} Returns this, or null if the layer given was invalid.\r\n */\r\n copy: function (srcTileX, srcTileY, width, height, destTileX, destTileY, recalculateFaces, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer !== null)\r\n {\r\n TilemapComponents.Copy(\r\n srcTileX, srcTileY,\r\n width, height,\r\n destTileX, destTileY,\r\n recalculateFaces, layer\r\n );\r\n\r\n return this;\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n },\r\n\r\n /**\r\n * Creates a new and empty Tilemap Layer. The currently selected layer in the map is set to this new layer.\r\n *\r\n * Prior to v3.50.0 this method was called `createBlankDynamicLayer`.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#createBlankLayer\r\n * @since 3.0.0\r\n *\r\n * @param {string} name - The name of this layer. Must be unique within the map.\r\n * @param {(string|string[]|Phaser.Tilemaps.Tileset|Phaser.Tilemaps.Tileset[])} tileset - The tileset, or an array of tilesets, used to render this layer. Can be a string or a Tileset object.\r\n * @param {number} [x=0] - The world x position where the top left of this layer will be placed.\r\n * @param {number} [y=0] - The world y position where the top left of this layer will be placed.\r\n * @param {number} [width] - The width of the layer in tiles. If not specified, it will default to the map's width.\r\n * @param {number} [height] - The height of the layer in tiles. If not specified, it will default to the map's height.\r\n * @param {number} [tileWidth] - The width of the tiles the layer uses for calculations. If not specified, it will default to the map's tileWidth.\r\n * @param {number} [tileHeight] - The height of the tiles the layer uses for calculations. If not specified, it will default to the map's tileHeight.\r\n *\r\n * @return {?Phaser.Tilemaps.TilemapLayer} Returns the new layer that was created, or `null` if it failed.\r\n */\r\n createBlankLayer: function (name, tileset, x, y, width, height, tileWidth, tileHeight)\r\n {\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n if (width === undefined) { width = this.width; }\r\n if (height === undefined) { height = this.height; }\r\n if (tileWidth === undefined) { tileWidth = this.tileWidth; }\r\n if (tileHeight === undefined) { tileHeight = this.tileHeight; }\r\n\r\n var index = this.getLayerIndex(name);\r\n\r\n if (index !== null)\r\n {\r\n console.warn('Invalid Tilemap Layer ID: ' + name);\r\n return null;\r\n }\r\n\r\n var layerData = new LayerData({\r\n name: name,\r\n tileWidth: tileWidth,\r\n tileHeight: tileHeight,\r\n width: width,\r\n height: height,\r\n orientation: this.orientation\r\n });\r\n\r\n var row;\r\n\r\n for (var tileY = 0; tileY < height; tileY++)\r\n {\r\n row = [];\r\n\r\n for (var tileX = 0; tileX < width; tileX++)\r\n {\r\n row.push(new Tile(layerData, -1, tileX, tileY, tileWidth, tileHeight, this.tileWidth, this.tileHeight));\r\n }\r\n\r\n layerData.data.push(row);\r\n }\r\n\r\n this.layers.push(layerData);\r\n\r\n this.currentLayerIndex = this.layers.length - 1;\r\n\r\n var layer = new TilemapLayer(this.scene, this, this.currentLayerIndex, tileset, x, y);\r\n\r\n layer.setRenderOrder(this.renderOrder);\r\n\r\n this.scene.sys.displayList.add(layer);\r\n\r\n return layer;\r\n },\r\n\r\n /**\r\n * Creates a new Tilemap Layer that renders the LayerData associated with the given\r\n * `layerID`. The currently selected layer in the map is set to this new layer.\r\n *\r\n * The `layerID` is important. If you've created your map in Tiled then you can get this by\r\n * looking in Tiled and looking at the layer name. Or you can open the JSON file it exports and\r\n * look at the layers[].name value. Either way it must match.\r\n *\r\n * Prior to v3.50.0 this method was called `createDynamicLayer`.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#createLayer\r\n * @since 3.0.0\r\n *\r\n * @param {(number|string)} layerID - The layer array index value, or if a string is given, the layer name from Tiled.\r\n * @param {(string|string[]|Phaser.Tilemaps.Tileset|Phaser.Tilemaps.Tileset[])} tileset - The tileset, or an array of tilesets, used to render this layer. Can be a string or a Tileset object.\r\n * @param {number} [x=0] - The x position to place the layer in the world. If not specified, it will default to the layer offset from Tiled or 0.\r\n * @param {number} [y=0] - The y position to place the layer in the world. If not specified, it will default to the layer offset from Tiled or 0.\r\n *\r\n * @return {?Phaser.Tilemaps.TilemapLayer} Returns the new layer was created, or null if it failed.\r\n */\r\n createLayer: function (layerID, tileset, x, y)\r\n {\r\n var index = this.getLayerIndex(layerID);\r\n\r\n if (index === null)\r\n {\r\n console.warn('Invalid Tilemap Layer ID: ' + layerID);\r\n\r\n if (typeof layerID === 'string')\r\n {\r\n console.warn('Valid tilelayer names: %o', this.getTileLayerNames());\r\n }\r\n\r\n return null;\r\n }\r\n\r\n var layerData = this.layers[index];\r\n\r\n // Check for an associated tilemap layer\r\n if (layerData.tilemapLayer)\r\n {\r\n console.warn('Tilemap Layer ID already exists:' + layerID);\r\n return null;\r\n }\r\n\r\n this.currentLayerIndex = index;\r\n\r\n // Default the x/y position to match Tiled layer offset, if it exists.\r\n\r\n if (x === undefined)\r\n {\r\n x = layerData.x;\r\n }\r\n\r\n if (y === undefined)\r\n {\r\n y = layerData.y;\r\n }\r\n\r\n var layer = new TilemapLayer(this.scene, this, index, tileset, x, y);\r\n\r\n layer.setRenderOrder(this.renderOrder);\r\n\r\n this.scene.sys.displayList.add(layer);\r\n\r\n return layer;\r\n },\r\n\r\n /**\r\n * This method will iterate through all of the objects defined in a Tiled Object Layer and then\r\n * convert the matching results into Phaser Game Objects (by default, Sprites)\r\n *\r\n * Objects are matched on one of 4 criteria: The Object ID, the Object GID, the Object Name, or the Object Type.\r\n *\r\n * Within Tiled, Object IDs are unique per Object. Object GIDs, however, are shared by all objects\r\n * using the same image. Finally, Object Names and Types are strings and the same name can be used on multiple\r\n * Objects in Tiled, they do not have to be unique; Names are specific to Objects while Types can be inherited\r\n * from Object GIDs using the same image.\r\n *\r\n * You set the configuration parameter accordingly, based on which type of criteria you wish\r\n * to match against. For example, to convert all items on an Object Layer with a `gid` of 26:\r\n *\r\n * ```javascript\r\n * createFromObjects(layerName, {\r\n * gid: 26\r\n * });\r\n * ```\r\n *\r\n * Or, to convert objects with the name 'bonus':\r\n *\r\n * ```javascript\r\n * createFromObjects(layerName, {\r\n * name: 'bonus'\r\n * });\r\n * ```\r\n *\r\n * Or, to convert an object with a specific id:\r\n *\r\n * ```javascript\r\n * createFromObjects(layerName, {\r\n * id: 9\r\n * });\r\n * ```\r\n *\r\n * You should only specify either `id`, `gid`, `name`, `type`, or none of them. Do not add more than\r\n * one criteria to your config. If you do not specify any criteria, then _all_ objects in the\r\n * Object Layer will be converted.\r\n *\r\n * By default this method will convert Objects into {@link Phaser.GameObjects.Sprite} instances, but you can override\r\n * this by providing your own class type:\r\n *\r\n * ```javascript\r\n * createFromObjects(layerName, {\r\n * gid: 26,\r\n * classType: Coin\r\n * });\r\n * ```\r\n *\r\n * This will convert all Objects with a gid of 26 into your custom `Coin` class. You can pass\r\n * any class type here, but it _must_ extend {@link Phaser.GameObjects.GameObject} as its base class.\r\n * Your class will always be passed 1 parameter: `scene`, which is a reference to either the Scene\r\n * specified in the config object or, if not given, the Scene to which this Tilemap belongs. The\r\n * class must have {@link Phaser.GameObjects.Components.Transform#setPosition setPosition} and\r\n * {@link Phaser.GameObjects.Components.Texture#setTexture setTexture} methods.\r\n *\r\n * This method will set the following Tiled Object properties on the new Game Object:\r\n *\r\n * - `flippedHorizontal` as `flipX`\r\n * - `flippedVertical` as `flipY`\r\n * - `height` as `displayHeight`\r\n * - `name`\r\n * - `rotation`\r\n * - `visible`\r\n * - `width` as `displayWidth`\r\n * - `x`, adjusted for origin\r\n * - `y`, adjusted for origin\r\n *\r\n * Additionally, this method will set Tiled Object custom properties\r\n *\r\n * - on the Game Object, if it has the same property name and a value that isn't `undefined`; or\r\n * - on the Game Object's {@link Phaser.GameObjects.GameObject#data data store} otherwise.\r\n *\r\n * For example, a Tiled Object with custom properties `{ alpha: 0.5, gold: 1 }` will be created as a Game\r\n * Object with an `alpha` value of 0.5 and a `data.values.gold` value of 1.\r\n *\r\n * When `useTileset` is `true` (the default), Tile Objects will inherit the texture and any tile properties\r\n * from the tileset, and the local tile ID will be used as the texture frame. For the frame selection to work\r\n * you need to load the tileset texture as a spritesheet so its frame names match the local tile IDs.\r\n *\r\n * For instance, a tileset tile\r\n *\r\n * ```\r\n * { id: 3, type: 'treadmill', speed: 4 }\r\n * ```\r\n *\r\n * with gid 19 and an object\r\n *\r\n * ```\r\n * { id: 7, gid: 19, speed: 5, rotation: 90 }\r\n * ```\r\n *\r\n * will be interpreted as\r\n *\r\n * ```\r\n * { id: 7, gid: 19, speed: 5, rotation: 90, type: 'treadmill', texture: '[the tileset texture]', frame: 3 }\r\n * ```\r\n *\r\n * You can suppress this behavior by setting the boolean `ignoreTileset` for each `config` that should ignore\r\n * object gid tilesets.\r\n *\r\n * You can set a `container` property in the config. If given, the new Game Object will be added to\r\n * the Container or Layer instance instead of the Scene.\r\n *\r\n * You can set named texture-`key` and texture-`frame` properties, which will be set on the new Game Object.\r\n *\r\n * Finally, you can provide an array of config objects, to convert multiple types of object in\r\n * a single call:\r\n *\r\n * ```javascript\r\n * createFromObjects(layerName, [\r\n * {\r\n * gid: 26,\r\n * classType: Coin\r\n * },\r\n * {\r\n * id: 9,\r\n * classType: BossMonster\r\n * },\r\n * {\r\n * name: 'lava',\r\n * classType: LavaTile\r\n * },\r\n * {\r\n * type: 'endzone',\r\n * classType: Phaser.GameObjects.Zone\r\n * }\r\n * ]);\r\n * ```\r\n *\r\n * The signature of this method changed significantly in v3.60.0. Prior to this, it did not take config objects.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#createFromObjects\r\n * @since 3.0.0\r\n *\r\n * @param {string} objectLayerName - The name of the Tiled object layer to create the Game Objects from.\r\n * @param {Phaser.Types.Tilemaps.CreateFromObjectLayerConfig|Phaser.Types.Tilemaps.CreateFromObjectLayerConfig[]} config - A CreateFromObjects configuration object, or an array of them.\r\n * @param {boolean} [useTileset=true] - True if objects that set gids should also search the underlying tile for properties and data.\r\n *\r\n * @return {Phaser.GameObjects.GameObject[]} An array containing the Game Objects that were created. Empty if invalid object layer, or no matching id/gid/name was found.\r\n */\r\n createFromObjects: function (objectLayerName, config, useTileset)\r\n {\r\n if (useTileset === undefined) { useTileset = true; }\r\n\r\n var results = [];\r\n\r\n var objectLayer = this.getObjectLayer(objectLayerName);\r\n\r\n if (!objectLayer)\r\n {\r\n console.warn('createFromObjects: Invalid objectLayerName given: ' + objectLayerName);\r\n\r\n return results;\r\n }\r\n\r\n var objectHelper = new ObjectHelper(useTileset ? this.tilesets : undefined);\r\n\r\n if (!Array.isArray(config))\r\n {\r\n config = [ config ];\r\n }\r\n\r\n var objects = objectLayer.objects;\r\n\r\n for (var c = 0; c < config.length; c++)\r\n {\r\n var singleConfig = config[c];\r\n\r\n var id = GetFastValue(singleConfig, 'id', null);\r\n var gid = GetFastValue(singleConfig, 'gid', null);\r\n var name = GetFastValue(singleConfig, 'name', null);\r\n var type = GetFastValue(singleConfig, 'type', null);\r\n objectHelper.enabled = !GetFastValue(singleConfig, 'ignoreTileset', null);\r\n\r\n var obj;\r\n var toConvert = [];\r\n\r\n // Sweep to get all the objects we want to convert in this pass\r\n for (var s = 0; s < objects.length; s++)\r\n {\r\n obj = objects[s];\r\n\r\n if (\r\n (id === null && gid === null && name === null && type === null) ||\r\n (id !== null && obj.id === id) ||\r\n (gid !== null && obj.gid === gid) ||\r\n (name !== null && obj.name === name) ||\r\n (type !== null && objectHelper.getTypeIncludingTile(obj) === type)\r\n )\r\n {\r\n toConvert.push(obj);\r\n }\r\n }\r\n\r\n // Now let's convert them ...\r\n\r\n var classType = GetFastValue(singleConfig, 'classType', Sprite);\r\n var scene = GetFastValue(singleConfig, 'scene', this.scene);\r\n var container = GetFastValue(singleConfig, 'container', null);\r\n var texture = GetFastValue(singleConfig, 'key', null);\r\n var frame = GetFastValue(singleConfig, 'frame', null);\r\n\r\n for (var i = 0; i < toConvert.length; i++)\r\n {\r\n obj = toConvert[i];\r\n\r\n var sprite = new classType(scene);\r\n\r\n sprite.setName(obj.name);\r\n sprite.setPosition(obj.x, obj.y);\r\n objectHelper.setTextureAndFrame(sprite, texture, frame, obj);\r\n\r\n if (obj.width)\r\n {\r\n sprite.displayWidth = obj.width;\r\n }\r\n\r\n if (obj.height)\r\n {\r\n sprite.displayHeight = obj.height;\r\n }\r\n\r\n if (this.orientation === ORIENTATION.ISOMETRIC)\r\n {\r\n var isometricRatio = this.tileWidth / this.tileHeight;\r\n var isometricPosition = {\r\n x: sprite.x - sprite.y,\r\n y: (sprite.x + sprite.y) / isometricRatio\r\n };\r\n\r\n sprite.x = isometricPosition.x;\r\n sprite.y = isometricPosition.y;\r\n }\r\n\r\n // Origin is (0, 1) for tile objects or (0, 0) for other objects in Tiled, so find the offset that matches the Sprites origin.\r\n // Do not offset objects with zero dimensions (e.g. points).\r\n var offset = {\r\n x: sprite.originX * obj.width,\r\n y: (sprite.originY - (obj.gid ? 1 : 0)) * obj.height\r\n };\r\n\r\n // If the object is rotated, then the origin offset also needs to be rotated.\r\n if (obj.rotation)\r\n {\r\n var angle = DegToRad(obj.rotation);\r\n\r\n Rotate(offset, angle);\r\n\r\n sprite.rotation = angle;\r\n }\r\n\r\n sprite.x += offset.x;\r\n sprite.y += offset.y;\r\n\r\n if (obj.flippedHorizontal !== undefined || obj.flippedVertical !== undefined)\r\n {\r\n sprite.setFlip(obj.flippedHorizontal, obj.flippedVertical);\r\n }\r\n\r\n if (!obj.visible)\r\n {\r\n sprite.visible = false;\r\n }\r\n\r\n objectHelper.setPropertiesFromTiledObject(sprite, obj);\r\n\r\n if (container)\r\n {\r\n container.add(sprite);\r\n }\r\n else\r\n {\r\n scene.add.existing(sprite);\r\n }\r\n\r\n results.push(sprite);\r\n }\r\n }\r\n\r\n return results;\r\n },\r\n\r\n /**\r\n * Creates a Sprite for every tile matching the given tile indexes in the layer. You can\r\n * optionally specify if each tile will be replaced with a new tile after the Sprite has been\r\n * created. Set this value to -1 if you want to just remove the tile after conversion.\r\n *\r\n * This is useful if you want to lay down special tiles in a level that are converted to\r\n * Sprites, but want to replace the tile itself with a floor tile or similar once converted.\r\n *\r\n * The following features were added in Phaser v3.80:\r\n *\r\n * By default, Phaser Sprites have their origin set to 0.5 x 0.5. If you don't specify a new\r\n * origin in the spriteConfig, then it will adjust the sprite positions by half the tile size,\r\n * to position them accurately on the map.\r\n *\r\n * When the Sprite is created it will copy the following properties from the tile:\r\n *\r\n * 'rotation', 'flipX', 'flipY', 'alpha', 'visible' and 'tint'.\r\n *\r\n * The spriteConfig also has a special property called `useSpriteSheet`. If this is set to\r\n * `true` and you have loaded the tileset as a sprite sheet (not an image), then it will\r\n * set the Sprite key and frame to match the sprite texture and tile index.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#createFromTiles\r\n * @since 3.0.0\r\n *\r\n * @param {(number|array)} indexes - The tile index, or array of indexes, to create Sprites from.\r\n * @param {?(number|array)} replacements - The tile index, or array of indexes, to change a converted\r\n * tile to. Set to `null` to leave the tiles unchanged. If an array is given, it is assumed to be a\r\n * one-to-one mapping with the indexes array.\r\n * @param {Phaser.Types.GameObjects.Sprite.SpriteConfig} [spriteConfig] - The config object to pass into the Sprite creator (i.e. scene.make.sprite).\r\n * @param {Phaser.Scene} [scene] - The Scene to create the Sprites within.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when calculating the tile index from the world values.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.GameObjects.Sprite[]} Returns an array of Tiles, or null if the layer given was invalid.\r\n */\r\n createFromTiles: function (indexes, replacements, spriteConfig, scene, camera, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n return TilemapComponents.CreateFromTiles(indexes, replacements, spriteConfig, scene, camera, layer);\r\n },\r\n\r\n /**\r\n * Sets the tiles in the given rectangular area (in tile coordinates) of the layer with the\r\n * specified index. Tiles will be set to collide if the given index is a colliding index.\r\n * Collision information in the region will be recalculated.\r\n *\r\n * If no layer specified, the map's current layer is used.\r\n * This cannot be applied to StaticTilemapLayers.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#fill\r\n * @since 3.0.0\r\n *\r\n * @param {number} index - The tile index to fill the area with.\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n * @param {boolean} [recalculateFaces=true] - `true` if the faces data should be recalculated.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tilemap} Returns this, or null if the layer given was invalid.\r\n */\r\n fill: function (index, tileX, tileY, width, height, recalculateFaces, layer)\r\n {\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n TilemapComponents.Fill(index, tileX, tileY, width, height, recalculateFaces, layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * For each object in the given object layer, run the given filter callback function. Any\r\n * objects that pass the filter test (i.e. where the callback returns true) will be returned in a\r\n * new array. Similar to Array.prototype.Filter in vanilla JS.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#filterObjects\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Tilemaps.ObjectLayer|string)} objectLayer - The name of an object layer (from Tiled) or an ObjectLayer instance.\r\n * @param {TilemapFilterCallback} callback - The callback. Each object in the given area will be passed to this callback as the first and only parameter.\r\n * @param {object} [context] - The context under which the callback should be run.\r\n *\r\n * @return {?Phaser.Types.Tilemaps.TiledObject[]} An array of object that match the search, or null if the objectLayer given was invalid.\r\n */\r\n filterObjects: function (objectLayer, callback, context)\r\n {\r\n if (typeof objectLayer === 'string')\r\n {\r\n var name = objectLayer;\r\n\r\n objectLayer = this.getObjectLayer(objectLayer);\r\n\r\n if (!objectLayer)\r\n {\r\n console.warn('No object layer found with the name: ' + name);\r\n return null;\r\n }\r\n }\r\n\r\n return objectLayer.objects.filter(callback, context);\r\n },\r\n\r\n /**\r\n * For each tile in the given rectangular area (in tile coordinates) of the layer, run the given\r\n * filter callback function. Any tiles that pass the filter test (i.e. where the callback returns\r\n * true) will returned as a new array. Similar to Array.prototype.Filter in vanilla JS.\r\n * If no layer specified, the map's current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#filterTiles\r\n * @since 3.0.0\r\n *\r\n * @param {function} callback - The callback. Each tile in the given area will be passed to this\r\n * callback as the first and only parameter. The callback should return true for tiles that pass the\r\n * filter.\r\n * @param {object} [context] - The context under which the callback should be run.\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area to filter.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area to filter.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n * @param {Phaser.Types.Tilemaps.FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tile[]} Returns an array of Tiles, or null if the layer given was invalid.\r\n */\r\n filterTiles: function (callback, context, tileX, tileY, width, height, filteringOptions, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n return TilemapComponents.FilterTiles(callback, context, tileX, tileY, width, height, filteringOptions, layer);\r\n },\r\n\r\n /**\r\n * Searches the entire map layer for the first tile matching the given index, then returns that Tile\r\n * object. If no match is found, it returns null. The search starts from the top-left tile and\r\n * continues horizontally until it hits the end of the row, then it drops down to the next column.\r\n * If the reverse boolean is true, it scans starting from the bottom-right corner traveling up to\r\n * the top-left.\r\n * If no layer specified, the map's current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#findByIndex\r\n * @since 3.0.0\r\n *\r\n * @param {number} index - The tile index value to search for.\r\n * @param {number} [skip=0] - The number of times to skip a matching tile before returning.\r\n * @param {boolean} [reverse=false] - If true it will scan the layer in reverse, starting at the bottom-right. Otherwise it scans from the top-left.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tile} Returns a Tiles, or null if the layer given was invalid.\r\n */\r\n findByIndex: function (findIndex, skip, reverse, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n return TilemapComponents.FindByIndex(findIndex, skip, reverse, layer);\r\n },\r\n\r\n /**\r\n * Find the first object in the given object layer that satisfies the provided testing function.\r\n * I.e. finds the first object for which `callback` returns true. Similar to\r\n * Array.prototype.find in vanilla JS.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#findObject\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Tilemaps.ObjectLayer|string)} objectLayer - The name of an object layer (from Tiled) or an ObjectLayer instance.\r\n * @param {TilemapFindCallback} callback - The callback. Each object in the given area will be passed to this callback as the first and only parameter.\r\n * @param {object} [context] - The context under which the callback should be run.\r\n *\r\n * @return {?Phaser.Types.Tilemaps.TiledObject} An object that matches the search, or null if no object found.\r\n */\r\n findObject: function (objectLayer, callback, context)\r\n {\r\n if (typeof objectLayer === 'string')\r\n {\r\n var name = objectLayer;\r\n\r\n objectLayer = this.getObjectLayer(objectLayer);\r\n\r\n if (!objectLayer)\r\n {\r\n console.warn('No object layer found with the name: ' + name);\r\n return null;\r\n }\r\n }\r\n\r\n return objectLayer.objects.find(callback, context) || null;\r\n },\r\n\r\n /**\r\n * Find the first tile in the given rectangular area (in tile coordinates) of the layer that\r\n * satisfies the provided testing function. I.e. finds the first tile for which `callback` returns\r\n * true. Similar to Array.prototype.find in vanilla JS.\r\n * If no layer specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#findTile\r\n * @since 3.0.0\r\n *\r\n * @param {FindTileCallback} callback - The callback. Each tile in the given area will be passed to this callback as the first and only parameter.\r\n * @param {object} [context] - The context under which the callback should be run.\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area to search.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area to search.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n * @param {Phaser.Types.Tilemaps.FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The Tile layer to run the search on. If not provided will use the current layer.\r\n *\r\n * @return {?Phaser.Tilemaps.Tile} Returns a Tiles, or null if the layer given was invalid.\r\n */\r\n findTile: function (callback, context, tileX, tileY, width, height, filteringOptions, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n return TilemapComponents.FindTile(callback, context, tileX, tileY, width, height, filteringOptions, layer);\r\n },\r\n\r\n /**\r\n * For each tile in the given rectangular area (in tile coordinates) of the layer, run the given\r\n * callback. Similar to Array.prototype.forEach in vanilla JS.\r\n *\r\n * If no layer specified, the map's current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#forEachTile\r\n * @since 3.0.0\r\n *\r\n * @param {EachTileCallback} callback - The callback. Each tile in the given area will be passed to this callback as the first and only parameter.\r\n * @param {object} [context] - The context under which the callback should be run.\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area to search.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area to search.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n * @param {Phaser.Types.Tilemaps.FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The Tile layer to run the search on. If not provided will use the current layer.\r\n *\r\n * @return {?Phaser.Tilemaps.Tilemap} Returns this, or null if the layer given was invalid.\r\n */\r\n forEachTile: function (callback, context, tileX, tileY, width, height, filteringOptions, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n TilemapComponents.ForEachTile(callback, context, tileX, tileY, width, height, filteringOptions, layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Gets the image layer index based on its name.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#getImageIndex\r\n * @since 3.0.0\r\n *\r\n * @param {string} name - The name of the image to get.\r\n *\r\n * @return {number} The index of the image in this tilemap, or null if not found.\r\n */\r\n getImageIndex: function (name)\r\n {\r\n return this.getIndex(this.images, name);\r\n },\r\n\r\n /**\r\n * Return a list of all valid imagelayer names loaded in this Tilemap.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#getImageLayerNames\r\n * @since 3.21.0\r\n *\r\n * @return {string[]} Array of valid imagelayer names / IDs loaded into this Tilemap.\r\n */\r\n getImageLayerNames: function ()\r\n {\r\n if (!this.images || !Array.isArray(this.images))\r\n {\r\n return [];\r\n }\r\n\r\n return this.images.map(function (image)\r\n {\r\n return image.name;\r\n });\r\n },\r\n\r\n /**\r\n * Internally used. Returns the index of the object in one of the Tilemaps arrays whose name\r\n * property matches the given `name`.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#getIndex\r\n * @since 3.0.0\r\n *\r\n * @param {array} location - The Tilemap array to search.\r\n * @param {string} name - The name of the array element to get.\r\n *\r\n * @return {number} The index of the element in the array, or null if not found.\r\n */\r\n getIndex: function (location, name)\r\n {\r\n for (var i = 0; i < location.length; i++)\r\n {\r\n if (location[i].name === name)\r\n {\r\n return i;\r\n }\r\n }\r\n\r\n return null;\r\n },\r\n\r\n /**\r\n * Gets the LayerData from `this.layers` that is associated with the given `layer`, or null if the layer is invalid.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#getLayer\r\n * @since 3.0.0\r\n *\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The name of the layer from Tiled, the index of the layer in the map or Tilemap Layer. If not given will default to the maps current layer index.\r\n *\r\n * @return {?Phaser.Tilemaps.LayerData} The corresponding `LayerData` within `this.layers`, or null.\r\n */\r\n getLayer: function (layer)\r\n {\r\n var index = this.getLayerIndex(layer);\r\n\r\n return (index !== null) ? this.layers[index] : null;\r\n },\r\n\r\n /**\r\n * Gets the ObjectLayer from `this.objects` that has the given `name`, or null if no ObjectLayer is found with that name.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#getObjectLayer\r\n * @since 3.0.0\r\n *\r\n * @param {string} [name] - The name of the object layer from Tiled.\r\n *\r\n * @return {?Phaser.Tilemaps.ObjectLayer} The corresponding `ObjectLayer` within `this.objects`, or null.\r\n */\r\n getObjectLayer: function (name)\r\n {\r\n var index = this.getIndex(this.objects, name);\r\n\r\n return (index !== null) ? this.objects[index] : null;\r\n },\r\n\r\n /**\r\n * Return a list of all valid objectgroup names loaded in this Tilemap.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#getObjectLayerNames\r\n * @since 3.21.0\r\n *\r\n * @return {string[]} Array of valid objectgroup names / IDs loaded into this Tilemap.\r\n */\r\n getObjectLayerNames: function ()\r\n {\r\n if (!this.objects || !Array.isArray(this.objects))\r\n {\r\n return [];\r\n }\r\n\r\n return this.objects.map(function (object)\r\n {\r\n return object.name;\r\n });\r\n },\r\n\r\n /**\r\n * Gets the LayerData index of the given `layer` within this.layers, or null if an invalid\r\n * `layer` is given.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#getLayerIndex\r\n * @since 3.0.0\r\n *\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The name of the layer from Tiled, the index of the layer in the map or a Tilemap Layer. If not given will default to the map's current layer index.\r\n *\r\n * @return {number} The LayerData index within this.layers.\r\n */\r\n getLayerIndex: function (layer)\r\n {\r\n if (layer === undefined)\r\n {\r\n return this.currentLayerIndex;\r\n }\r\n else if (typeof layer === 'string')\r\n {\r\n return this.getLayerIndexByName(layer);\r\n }\r\n else if (typeof layer === 'number' && layer < this.layers.length)\r\n {\r\n return layer;\r\n }\r\n else if (layer instanceof TilemapLayer && layer.tilemap === this)\r\n {\r\n return layer.layerIndex;\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n },\r\n\r\n /**\r\n * Gets the index of the LayerData within this.layers that has the given `name`, or null if an\r\n * invalid `name` is given.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#getLayerIndexByName\r\n * @since 3.0.0\r\n *\r\n * @param {string} name - The name of the layer to get.\r\n *\r\n * @return {number} The LayerData index within this.layers.\r\n */\r\n getLayerIndexByName: function (name)\r\n {\r\n return this.getIndex(this.layers, name);\r\n },\r\n\r\n /**\r\n * Gets a tile at the given tile coordinates from the given layer.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#getTileAt\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileX - X position to get the tile from (given in tile units, not pixels).\r\n * @param {number} tileY - Y position to get the tile from (given in tile units, not pixels).\r\n * @param {boolean} [nonNull=false] - For empty tiles, return a Tile object with an index of -1 instead of null.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tile} Returns a Tile, or null if the layer given was invalid.\r\n */\r\n getTileAt: function (tileX, tileY, nonNull, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n return TilemapComponents.GetTileAt(tileX, tileY, nonNull, layer);\r\n },\r\n\r\n /**\r\n * Gets a tile at the given world coordinates from the given layer.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#getTileAtWorldXY\r\n * @since 3.0.0\r\n *\r\n * @param {number} worldX - X position to get the tile from (given in pixels)\r\n * @param {number} worldY - Y position to get the tile from (given in pixels)\r\n * @param {boolean} [nonNull=false] - For empty tiles, return a Tile object with an index of -1 instead of null.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when calculating the tile index from the world values.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tile} Returns a Tile, or null if the layer given was invalid.\r\n */\r\n getTileAtWorldXY: function (worldX, worldY, nonNull, camera, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n return TilemapComponents.GetTileAtWorldXY(worldX, worldY, nonNull, camera, layer);\r\n },\r\n\r\n /**\r\n * Return a list of all valid tilelayer names loaded in this Tilemap.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#getTileLayerNames\r\n * @since 3.21.0\r\n *\r\n * @return {string[]} Array of valid tilelayer names / IDs loaded into this Tilemap.\r\n */\r\n getTileLayerNames: function ()\r\n {\r\n if (!this.layers || !Array.isArray(this.layers))\r\n {\r\n return [];\r\n }\r\n\r\n return this.layers.map(function (layer)\r\n {\r\n return layer.name;\r\n });\r\n },\r\n\r\n /**\r\n * Gets the tiles in the given rectangular area (in tile coordinates) of the layer.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#getTilesWithin\r\n * @since 3.0.0\r\n *\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n * @param {Phaser.Types.Tilemaps.FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tile[]} Returns an array of Tiles, or null if the layer given was invalid.\r\n */\r\n getTilesWithin: function (tileX, tileY, width, height, filteringOptions, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n return TilemapComponents.GetTilesWithin(tileX, tileY, width, height, filteringOptions, layer);\r\n },\r\n\r\n /**\r\n * Gets the tiles that overlap with the given shape in the given layer. The shape must be a Circle,\r\n * Line, Rectangle or Triangle. The shape should be in world coordinates.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#getTilesWithinShape\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Geom.Circle|Phaser.Geom.Line|Phaser.Geom.Rectangle|Phaser.Geom.Triangle)} shape - A shape in world (pixel) coordinates\r\n * @param {Phaser.Types.Tilemaps.FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when factoring in which tiles to return.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tile[]} Returns an array of Tiles, or null if the layer given was invalid.\r\n */\r\n getTilesWithinShape: function (shape, filteringOptions, camera, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n return TilemapComponents.GetTilesWithinShape(shape, filteringOptions, camera, layer);\r\n },\r\n\r\n /**\r\n * Gets the tiles in the given rectangular area (in world coordinates) of the layer.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#getTilesWithinWorldXY\r\n * @since 3.0.0\r\n *\r\n * @param {number} worldX - The world x coordinate for the top-left of the area.\r\n * @param {number} worldY - The world y coordinate for the top-left of the area.\r\n * @param {number} width - The width of the area.\r\n * @param {number} height - The height of the area.\r\n * @param {Phaser.Types.Tilemaps.FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when factoring in which tiles to return.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tile[]} Returns an array of Tiles, or null if the layer given was invalid.\r\n */\r\n getTilesWithinWorldXY: function (worldX, worldY, width, height, filteringOptions, camera, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n return TilemapComponents.GetTilesWithinWorldXY(worldX, worldY, width, height, filteringOptions, camera, layer);\r\n },\r\n\r\n /**\r\n * Gets the Tileset that has the given `name`, or null if an invalid `name` is given.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#getTileset\r\n * @since 3.14.0\r\n *\r\n * @param {string} name - The name of the Tileset to get.\r\n *\r\n * @return {?Phaser.Tilemaps.Tileset} The Tileset, or `null` if no matching named tileset was found.\r\n */\r\n getTileset: function (name)\r\n {\r\n var index = this.getIndex(this.tilesets, name);\r\n\r\n return (index !== null) ? this.tilesets[index] : null;\r\n },\r\n\r\n /**\r\n * Gets the index of the Tileset within this.tilesets that has the given `name`, or null if an\r\n * invalid `name` is given.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#getTilesetIndex\r\n * @since 3.0.0\r\n *\r\n * @param {string} name - The name of the Tileset to get.\r\n *\r\n * @return {number} The Tileset index within this.tilesets.\r\n */\r\n getTilesetIndex: function (name)\r\n {\r\n return this.getIndex(this.tilesets, name);\r\n },\r\n\r\n /**\r\n * Checks if there is a tile at the given location (in tile coordinates) in the given layer. Returns\r\n * false if there is no tile or if the tile at that location has an index of -1.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#hasTileAt\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?boolean} Returns a boolean, or null if the layer given was invalid.\r\n */\r\n hasTileAt: function (tileX, tileY, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n return TilemapComponents.HasTileAt(tileX, tileY, layer);\r\n },\r\n\r\n /**\r\n * Checks if there is a tile at the given location (in world coordinates) in the given layer. Returns\r\n * false if there is no tile or if the tile at that location has an index of -1.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#hasTileAtWorldXY\r\n * @since 3.0.0\r\n *\r\n * @param {number} worldX - The x coordinate, in pixels.\r\n * @param {number} worldY - The y coordinate, in pixels.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when factoring in which tiles to return.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?boolean} Returns a boolean, or null if the layer given was invalid.\r\n */\r\n hasTileAtWorldXY: function (worldX, worldY, camera, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n return TilemapComponents.HasTileAtWorldXY(worldX, worldY, camera, layer);\r\n },\r\n\r\n /**\r\n * The LayerData object that is currently selected in the map. You can set this property using\r\n * any type supported by setLayer.\r\n *\r\n * @name Phaser.Tilemaps.Tilemap#layer\r\n * @type {Phaser.Tilemaps.LayerData}\r\n * @since 3.0.0\r\n */\r\n layer: {\r\n get: function ()\r\n {\r\n return this.layers[this.currentLayerIndex];\r\n },\r\n\r\n set: function (layer)\r\n {\r\n this.setLayer(layer);\r\n }\r\n },\r\n\r\n /**\r\n * Puts a tile at the given tile coordinates in the specified layer. You can pass in either an index\r\n * or a Tile object. If you pass in a Tile, all attributes will be copied over to the specified\r\n * location. If you pass in an index, only the index at the specified location will be changed.\r\n * Collision information will be recalculated at the specified location.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#putTileAt\r\n * @since 3.0.0\r\n *\r\n * @param {(number|Phaser.Tilemaps.Tile)} tile - The index of this tile to set or a Tile object.\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {boolean} [recalculateFaces] - `true` if the faces data should be recalculated.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tile} Returns a Tile, or null if the layer given was invalid or the coordinates were out of bounds.\r\n */\r\n putTileAt: function (tile, tileX, tileY, recalculateFaces, layer)\r\n {\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n return TilemapComponents.PutTileAt(tile, tileX, tileY, recalculateFaces, layer);\r\n },\r\n\r\n /**\r\n * Puts a tile at the given world coordinates (pixels) in the specified layer. You can pass in either\r\n * an index or a Tile object. If you pass in a Tile, all attributes will be copied over to the\r\n * specified location. If you pass in an index, only the index at the specified location will be\r\n * changed. Collision information will be recalculated at the specified location.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#putTileAtWorldXY\r\n * @since 3.0.0\r\n *\r\n * @param {(number|Phaser.Tilemaps.Tile)} tile - The index of this tile to set or a Tile object.\r\n * @param {number} worldX - The x coordinate, in pixels.\r\n * @param {number} worldY - The y coordinate, in pixels.\r\n * @param {boolean} [recalculateFaces] - `true` if the faces data should be recalculated.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when calculating the tile index from the world values.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tile} Returns a Tile, or null if the layer given was invalid.\r\n */\r\n putTileAtWorldXY: function (tile, worldX, worldY, recalculateFaces, camera, layer)\r\n {\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n return TilemapComponents.PutTileAtWorldXY(tile, worldX, worldY, recalculateFaces, camera, layer);\r\n },\r\n\r\n /**\r\n * Puts an array of tiles or a 2D array of tiles at the given tile coordinates in the specified\r\n * layer. The array can be composed of either tile indexes or Tile objects. If you pass in a Tile,\r\n * all attributes will be copied over to the specified location. If you pass in an index, only the\r\n * index at the specified location will be changed. Collision information will be recalculated\r\n * within the region tiles were changed.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#putTilesAt\r\n * @since 3.0.0\r\n *\r\n * @param {(number[]|number[][]|Phaser.Tilemaps.Tile[]|Phaser.Tilemaps.Tile[][])} tile - A row (array) or grid (2D array) of Tiles or tile indexes to place.\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {boolean} [recalculateFaces] - `true` if the faces data should be recalculated.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tilemap} Returns this, or null if the layer given was invalid.\r\n */\r\n putTilesAt: function (tilesArray, tileX, tileY, recalculateFaces, layer)\r\n {\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n TilemapComponents.PutTilesAt(tilesArray, tileX, tileY, recalculateFaces, layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Randomizes the indexes of a rectangular region of tiles (in tile coordinates) within the\r\n * specified layer. Each tile will receive a new index. If an array of indexes is passed in, then\r\n * those will be used for randomly assigning new tile indexes. If an array is not provided, the\r\n * indexes found within the region (excluding -1) will be used for randomly assigning new tile\r\n * indexes. This method only modifies tile indexes and does not change collision information.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#randomize\r\n * @since 3.0.0\r\n *\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n * @param {number[]} [indexes] - An array of indexes to randomly draw from during randomization.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tilemap} Returns this, or null if the layer given was invalid.\r\n */\r\n randomize: function (tileX, tileY, width, height, indexes, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n TilemapComponents.Randomize(tileX, tileY, width, height, indexes, layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calculates interesting faces at the given tile coordinates of the specified layer. Interesting\r\n * faces are used internally for optimizing collisions against tiles. This method is mostly used\r\n * internally to optimize recalculating faces when only one tile has been changed.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#calculateFacesAt\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tilemap} Returns this, or null if the layer given was invalid.\r\n */\r\n calculateFacesAt: function (tileX, tileY, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n TilemapComponents.CalculateFacesAt(tileX, tileY, layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calculates interesting faces within the rectangular area specified (in tile coordinates) of the\r\n * layer. Interesting faces are used internally for optimizing collisions against tiles. This method\r\n * is mostly used internally.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#calculateFacesWithin\r\n * @since 3.0.0\r\n *\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tilemap} Returns this, or null if the layer given was invalid.\r\n */\r\n calculateFacesWithin: function (tileX, tileY, width, height, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n TilemapComponents.CalculateFacesWithin(tileX, tileY, width, height, layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes the given TilemapLayer from this Tilemap without destroying it.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#removeLayer\r\n * @since 3.17.0\r\n *\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to be removed.\r\n *\r\n * @return {?Phaser.Tilemaps.Tilemap} Returns this, or null if the layer given was invalid.\r\n */\r\n removeLayer: function (layer)\r\n {\r\n var index = this.getLayerIndex(layer);\r\n\r\n if (index !== null)\r\n {\r\n SpliceOne(this.layers, index);\r\n\r\n for (var i = index; i < this.layers.length; i++)\r\n {\r\n if (this.layers[i].tilemapLayer)\r\n {\r\n this.layers[i].tilemapLayer.layerIndex--;\r\n }\r\n }\r\n\r\n if (this.currentLayerIndex === index)\r\n {\r\n this.currentLayerIndex = 0;\r\n }\r\n\r\n return this;\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n },\r\n\r\n /**\r\n * Destroys the given TilemapLayer and removes it from this Tilemap.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#destroyLayer\r\n * @since 3.17.0\r\n *\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to be destroyed.\r\n *\r\n * @return {?Phaser.Tilemaps.Tilemap} Returns this, or null if the layer given was invalid.\r\n */\r\n destroyLayer: function (layer)\r\n {\r\n var index = this.getLayerIndex(layer);\r\n\r\n if (index !== null)\r\n {\r\n layer = this.layers[index];\r\n\r\n layer.tilemapLayer.destroy();\r\n\r\n SpliceOne(this.layers, index);\r\n\r\n if (this.currentLayerIndex === index)\r\n {\r\n this.currentLayerIndex = 0;\r\n }\r\n\r\n return this;\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n },\r\n\r\n /**\r\n * Removes all Tilemap Layers from this Tilemap and calls `destroy` on each of them.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#removeAllLayers\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Tilemap object.\r\n */\r\n removeAllLayers: function ()\r\n {\r\n var layers = this.layers;\r\n\r\n for (var i = 0; i < layers.length; i++)\r\n {\r\n if (layers[i].tilemapLayer)\r\n {\r\n layers[i].tilemapLayer.destroy(false);\r\n }\r\n }\r\n\r\n layers.length = 0;\r\n\r\n this.currentLayerIndex = 0;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes the given Tile, or an array of Tiles, from the layer to which they belong,\r\n * and optionally recalculates the collision information.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#removeTile\r\n * @since 3.17.0\r\n *\r\n * @param {(Phaser.Tilemaps.Tile|Phaser.Tilemaps.Tile[])} tiles - The Tile to remove, or an array of Tiles.\r\n * @param {number} [replaceIndex=-1] - After removing the Tile, insert a brand new Tile into its location with the given index. Leave as -1 to just remove the tile.\r\n * @param {boolean} [recalculateFaces=true] - `true` if the faces data should be recalculated.\r\n *\r\n * @return {Phaser.Tilemaps.Tile[]} Returns an array of Tiles that were removed.\r\n */\r\n removeTile: function (tiles, replaceIndex, recalculateFaces)\r\n {\r\n if (replaceIndex === undefined) { replaceIndex = -1; }\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n\r\n var removed = [];\r\n\r\n if (!Array.isArray(tiles))\r\n {\r\n tiles = [ tiles ];\r\n }\r\n\r\n for (var i = 0; i < tiles.length; i++)\r\n {\r\n var tile = tiles[i];\r\n\r\n removed.push(this.removeTileAt(tile.x, tile.y, true, recalculateFaces, tile.tilemapLayer));\r\n\r\n if (replaceIndex > -1)\r\n {\r\n this.putTileAt(replaceIndex, tile.x, tile.y, recalculateFaces, tile.tilemapLayer);\r\n }\r\n }\r\n\r\n return removed;\r\n },\r\n\r\n /**\r\n * Removes the tile at the given tile coordinates in the specified layer and updates the layers collision information.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#removeTileAt\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {boolean} [replaceWithNull] - If `true` (the default), this will replace the tile at the specified location with null instead of a Tile with an index of -1.\r\n * @param {boolean} [recalculateFaces] - If `true` (the default), the faces data will be recalculated.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tile} Returns the Tile that was removed, or null if the layer given was invalid.\r\n */\r\n removeTileAt: function (tileX, tileY, replaceWithNull, recalculateFaces, layer)\r\n {\r\n if (replaceWithNull === undefined) { replaceWithNull = true; }\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n return TilemapComponents.RemoveTileAt(tileX, tileY, replaceWithNull, recalculateFaces, layer);\r\n },\r\n\r\n /**\r\n * Removes the tile at the given world coordinates in the specified layer and updates the layers collision information.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#removeTileAtWorldXY\r\n * @since 3.0.0\r\n *\r\n * @param {number} worldX - The x coordinate, in pixels.\r\n * @param {number} worldY - The y coordinate, in pixels.\r\n * @param {boolean} [replaceWithNull] - If `true` (the default), this will replace the tile at the specified location with null instead of a Tile with an index of -1.\r\n * @param {boolean} [recalculateFaces] - If `true` (the default), the faces data will be recalculated.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when calculating the tile index from the world values.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tile} Returns a Tile, or null if the layer given was invalid.\r\n */\r\n removeTileAtWorldXY: function (worldX, worldY, replaceWithNull, recalculateFaces, camera, layer)\r\n {\r\n if (replaceWithNull === undefined) { replaceWithNull = true; }\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n return TilemapComponents.RemoveTileAtWorldXY(worldX, worldY, replaceWithNull, recalculateFaces, camera, layer);\r\n },\r\n\r\n /**\r\n * Draws a debug representation of the layer to the given Graphics object. This is helpful when you want to\r\n * get a quick idea of which of your tiles are colliding and which have interesting faces. The tiles\r\n * are drawn starting at (0, 0) in the Graphics, allowing you to place the debug representation\r\n * wherever you want on the screen.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * **Note:** This method currently only works with orthogonal tilemap layers.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#renderDebug\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Graphics} graphics - The target Graphics object to draw upon.\r\n * @param {Phaser.Types.Tilemaps.StyleConfig} [styleConfig] - An object specifying the colors to use for the debug drawing.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tilemap} Return this Tilemap object, or null if the layer given was invalid.\r\n */\r\n renderDebug: function (graphics, styleConfig, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n if (this.orientation === ORIENTATION.ORTHOGONAL)\r\n {\r\n TilemapComponents.RenderDebug(graphics, styleConfig, layer);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Draws a debug representation of all layers within this Tilemap to the given Graphics object.\r\n *\r\n * This is helpful when you want to get a quick idea of which of your tiles are colliding and which\r\n * have interesting faces. The tiles are drawn starting at (0, 0) in the Graphics, allowing you to\r\n * place the debug representation wherever you want on the screen.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#renderDebugFull\r\n * @since 3.17.0\r\n *\r\n * @param {Phaser.GameObjects.Graphics} graphics - The target Graphics object to draw upon.\r\n * @param {Phaser.Types.Tilemaps.StyleConfig} [styleConfig] - An object specifying the colors to use for the debug drawing.\r\n *\r\n * @return {this} This Tilemap instance.\r\n */\r\n renderDebugFull: function (graphics, styleConfig)\r\n {\r\n var layers = this.layers;\r\n\r\n for (var i = 0; i < layers.length; i++)\r\n {\r\n TilemapComponents.RenderDebug(graphics, styleConfig, layers[i]);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Scans the given rectangular area (given in tile coordinates) for tiles with an index matching\r\n * `findIndex` and updates their index to match `newIndex`. This only modifies the index and does\r\n * not change collision information.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#replaceByIndex\r\n * @since 3.0.0\r\n *\r\n * @param {number} findIndex - The index of the tile to search for.\r\n * @param {number} newIndex - The index of the tile to replace it with.\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tilemap} Return this Tilemap object, or null if the layer given was invalid.\r\n */\r\n replaceByIndex: function (findIndex, newIndex, tileX, tileY, width, height, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n TilemapComponents.ReplaceByIndex(findIndex, newIndex, tileX, tileY, width, height, layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets collision on the given tile or tiles within a layer by index. You can pass in either a\r\n * single numeric index or an array of indexes: [2, 3, 15, 20]. The `collides` parameter controls if\r\n * collision will be enabled (true) or disabled (false).\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#setCollision\r\n * @since 3.0.0\r\n *\r\n * @param {(number|array)} indexes - Either a single tile index, or an array of tile indexes.\r\n * @param {boolean} [collides] - If true it will enable collision. If false it will clear collision.\r\n * @param {boolean} [recalculateFaces] - Whether or not to recalculate the tile faces after the update.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n * @param {boolean} [updateLayer=true] - If true, updates the current tiles on the layer. Set to false if no tiles have been placed for significant performance boost.\r\n *\r\n * @return {?Phaser.Tilemaps.Tilemap} Return this Tilemap object, or null if the layer given was invalid.\r\n */\r\n setCollision: function (indexes, collides, recalculateFaces, layer, updateLayer)\r\n {\r\n if (collides === undefined) { collides = true; }\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n if (updateLayer === undefined) { updateLayer = true; }\r\n\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n TilemapComponents.SetCollision(indexes, collides, recalculateFaces, layer, updateLayer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets collision on a range of tiles in a layer whose index is between the specified `start` and\r\n * `stop` (inclusive). Calling this with a start value of 10 and a stop value of 14 would set\r\n * collision for tiles 10, 11, 12, 13 and 14. The `collides` parameter controls if collision will be\r\n * enabled (true) or disabled (false).\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#setCollisionBetween\r\n * @since 3.0.0\r\n *\r\n * @param {number} start - The first index of the tile to be set for collision.\r\n * @param {number} stop - The last index of the tile to be set for collision.\r\n * @param {boolean} [collides] - If true it will enable collision. If false it will clear collision.\r\n * @param {boolean} [recalculateFaces] - Whether or not to recalculate the tile faces after the update.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tilemap} Return this Tilemap object, or null if the layer given was invalid.\r\n */\r\n setCollisionBetween: function (start, stop, collides, recalculateFaces, layer)\r\n {\r\n if (collides === undefined) { collides = true; }\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n TilemapComponents.SetCollisionBetween(start, stop, collides, recalculateFaces, layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets collision on the tiles within a layer by checking tile properties. If a tile has a property\r\n * that matches the given properties object, its collision flag will be set. The `collides`\r\n * parameter controls if collision will be enabled (true) or disabled (false). Passing in\r\n * `{ collides: true }` would update the collision flag on any tiles with a \"collides\" property that\r\n * has a value of true. Any tile that doesn't have \"collides\" set to true will be ignored. You can\r\n * also use an array of values, e.g. `{ types: [\"stone\", \"lava\", \"sand\" ] }`. If a tile has a\r\n * \"types\" property that matches any of those values, its collision flag will be updated.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#setCollisionByProperty\r\n * @since 3.0.0\r\n *\r\n * @param {object} properties - An object with tile properties and corresponding values that should be checked.\r\n * @param {boolean} [collides] - If true it will enable collision. If false it will clear collision.\r\n * @param {boolean} [recalculateFaces] - Whether or not to recalculate the tile faces after the update.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tilemap} Return this Tilemap object, or null if the layer given was invalid.\r\n */\r\n setCollisionByProperty: function (properties, collides, recalculateFaces, layer)\r\n {\r\n if (collides === undefined) { collides = true; }\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n TilemapComponents.SetCollisionByProperty(properties, collides, recalculateFaces, layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets collision on all tiles in the given layer, except for tiles that have an index specified in\r\n * the given array. The `collides` parameter controls if collision will be enabled (true) or\r\n * disabled (false). Tile indexes not currently in the layer are not affected.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#setCollisionByExclusion\r\n * @since 3.0.0\r\n *\r\n * @param {number[]} indexes - An array of the tile indexes to not be counted for collision.\r\n * @param {boolean} [collides] - If true it will enable collision. If false it will clear collision.\r\n * @param {boolean} [recalculateFaces] - Whether or not to recalculate the tile faces after the update.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tilemap} Return this Tilemap object, or null if the layer given was invalid.\r\n */\r\n setCollisionByExclusion: function (indexes, collides, recalculateFaces, layer)\r\n {\r\n if (collides === undefined) { collides = true; }\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n TilemapComponents.SetCollisionByExclusion(indexes, collides, recalculateFaces, layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets collision on the tiles within a layer by checking each tiles collision group data\r\n * (typically defined in Tiled within the tileset collision editor). If any objects are found within\r\n * a tiles collision group, the tiles colliding information will be set. The `collides` parameter\r\n * controls if collision will be enabled (true) or disabled (false).\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#setCollisionFromCollisionGroup\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [collides] - If true it will enable collision. If false it will clear collision.\r\n * @param {boolean} [recalculateFaces] - Whether or not to recalculate the tile faces after the update.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tilemap} Return this Tilemap object, or null if the layer given was invalid.\r\n */\r\n setCollisionFromCollisionGroup: function (collides, recalculateFaces, layer)\r\n {\r\n if (collides === undefined) { collides = true; }\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n TilemapComponents.SetCollisionFromCollisionGroup(collides, recalculateFaces, layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a global collision callback for the given tile index within the layer. This will affect all\r\n * tiles on this layer that have the same index. If a callback is already set for the tile index it\r\n * will be replaced. Set the callback to null to remove it. If you want to set a callback for a tile\r\n * at a specific location on the map then see `setTileLocationCallback`.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#setTileIndexCallback\r\n * @since 3.0.0\r\n *\r\n * @param {(number|number[])} indexes - Either a single tile index, or an array of tile indexes to have a collision callback set for. All values should be integers.\r\n * @param {function} callback - The callback that will be invoked when the tile is collided with.\r\n * @param {object} callbackContext - The context under which the callback is called.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tilemap} Return this Tilemap object, or null if the layer given was invalid.\r\n */\r\n setTileIndexCallback: function (indexes, callback, callbackContext, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n TilemapComponents.SetTileIndexCallback(indexes, callback, callbackContext, layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a collision callback for the given rectangular area (in tile coordinates) within the layer.\r\n * If a callback is already set for the tile index it will be replaced. Set the callback to null to\r\n * remove it.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#setTileLocationCallback\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileX - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} tileY - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} width - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} height - How many tiles tall from the `tileY` index the area will be.\r\n * @param {function} callback - The callback that will be invoked when the tile is collided with.\r\n * @param {object} [callbackContext] - The context under which the callback is called.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tilemap} Return this Tilemap object, or null if the layer given was invalid.\r\n */\r\n setTileLocationCallback: function (tileX, tileY, width, height, callback, callbackContext, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n TilemapComponents.SetTileLocationCallback(tileX, tileY, width, height, callback, callbackContext, layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the current layer to the LayerData associated with `layer`.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#setLayer\r\n * @since 3.0.0\r\n *\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The name of the layer from Tiled, the index of the layer in the map or a TilemapLayer. If not given will default to the maps current layer index.\r\n *\r\n * @return {this} This Tilemap object.\r\n */\r\n setLayer: function (layer)\r\n {\r\n var index = this.getLayerIndex(layer);\r\n\r\n if (index !== null)\r\n {\r\n this.currentLayerIndex = index;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the base tile size for the map. Note: this does not necessarily match the tileWidth and\r\n * tileHeight for all layers. This also updates the base size on all tiles across all layers.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#setBaseTileSize\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileWidth - The width of the tiles the map uses for calculations.\r\n * @param {number} tileHeight - The height of the tiles the map uses for calculations.\r\n *\r\n * @return {this} This Tilemap object.\r\n */\r\n setBaseTileSize: function (tileWidth, tileHeight)\r\n {\r\n this.tileWidth = tileWidth;\r\n this.tileHeight = tileHeight;\r\n this.widthInPixels = this.width * tileWidth;\r\n this.heightInPixels = this.height * tileHeight;\r\n\r\n // Update the base tile size on all layers & tiles\r\n for (var i = 0; i < this.layers.length; i++)\r\n {\r\n this.layers[i].baseTileWidth = tileWidth;\r\n this.layers[i].baseTileHeight = tileHeight;\r\n\r\n var mapData = this.layers[i].data;\r\n var mapWidth = this.layers[i].width;\r\n var mapHeight = this.layers[i].height;\r\n\r\n for (var row = 0; row < mapHeight; row++)\r\n {\r\n for (var col = 0; col < mapWidth; col++)\r\n {\r\n var tile = mapData[row][col];\r\n\r\n if (tile !== null)\r\n {\r\n tile.setSize(undefined, undefined, tileWidth, tileHeight);\r\n }\r\n }\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the tile size for a specific `layer`. Note: this does not necessarily match the maps\r\n * tileWidth and tileHeight for all layers. This will set the tile size for the layer and any\r\n * tiles the layer has.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#setLayerTileSize\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileWidth - The width of the tiles (in pixels) in the layer.\r\n * @param {number} tileHeight - The height of the tiles (in pixels) in the layer.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The name of the layer from Tiled, the index of the layer in the map or a TilemapLayer. If not given will default to the maps current layer index.\r\n *\r\n * @return {this} This Tilemap object.\r\n */\r\n setLayerTileSize: function (tileWidth, tileHeight, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return this; }\r\n\r\n layer.tileWidth = tileWidth;\r\n layer.tileHeight = tileHeight;\r\n\r\n var mapData = layer.data;\r\n var mapWidth = layer.width;\r\n var mapHeight = layer.height;\r\n\r\n for (var row = 0; row < mapHeight; row++)\r\n {\r\n for (var col = 0; col < mapWidth; col++)\r\n {\r\n var tile = mapData[row][col];\r\n\r\n if (tile !== null)\r\n {\r\n tile.setSize(tileWidth, tileHeight);\r\n }\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Shuffles the tiles in a rectangular region (specified in tile coordinates) within the given\r\n * layer. It will only randomize the tiles in that area, so if they're all the same nothing will\r\n * appear to have changed! This method only modifies tile indexes and does not change collision\r\n * information.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#shuffle\r\n * @since 3.0.0\r\n *\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tilemap} Return this Tilemap object, or null if the layer given was invalid.\r\n */\r\n shuffle: function (tileX, tileY, width, height, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n TilemapComponents.Shuffle(tileX, tileY, width, height, layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Scans the given rectangular area (given in tile coordinates) for tiles with an index matching\r\n * `indexA` and swaps then with `indexB`. This only modifies the index and does not change collision\r\n * information.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#swapByIndex\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileA - First tile index.\r\n * @param {number} tileB - Second tile index.\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tilemap} Return this Tilemap object, or null if the layer given was invalid.\r\n */\r\n swapByIndex: function (indexA, indexB, tileX, tileY, width, height, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n TilemapComponents.SwapByIndex(indexA, indexB, tileX, tileY, width, height, layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Converts from tile X coordinates (tile units) to world X coordinates (pixels), factoring in the\r\n * layers position, scale and scroll.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#tileToWorldX\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when calculating the tile index from the world values.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?number} Returns a number, or null if the layer given was invalid.\r\n */\r\n tileToWorldX: function (tileX, camera, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n return this._convert.TileToWorldX(tileX, camera, layer);\r\n },\r\n\r\n /**\r\n * Converts from tile Y coordinates (tile units) to world Y coordinates (pixels), factoring in the\r\n * layers position, scale and scroll.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#tileToWorldY\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when calculating the tile index from the world values.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?number} Returns a number, or null if the layer given was invalid.\r\n */\r\n tileToWorldY: function (tileY, camera, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n return this._convert.TileToWorldY(tileY, camera, layer);\r\n },\r\n\r\n /**\r\n * Converts from tile XY coordinates (tile units) to world XY coordinates (pixels), factoring in the\r\n * layers position, scale and scroll. This will return a new Vector2 object or update the given\r\n * `point` object.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#tileToWorldXY\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {Phaser.Math.Vector2} [vec2] - A Vector2 to store the coordinates in. If not given a new Vector2 is created.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when calculating the tile index from the world values.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Math.Vector2} Returns a Vector2, or null if the layer given was invalid.\r\n */\r\n tileToWorldXY: function (tileX, tileY, vec2, camera, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n return this._convert.TileToWorldXY(tileX, tileY, vec2, camera, layer);\r\n },\r\n\r\n /**\r\n * Returns an array of Vector2s where each entry corresponds to the corner of the requested tile.\r\n *\r\n * The `tileX` and `tileY` parameters are in tile coordinates, not world coordinates.\r\n *\r\n * The corner coordinates are in world space, having factored in TilemapLayer scale, position\r\n * and the camera, if given.\r\n *\r\n * The size of the array will vary based on the orientation of the map. For example an\r\n * orthographic map will return an array of 4 vectors, where-as a hexagonal map will,\r\n * of course, return an array of 6 corner vectors.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#getTileCorners\r\n * @since 3.60.0\r\n *\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when calculating the tile index from the world values.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Math.Vector2[]} Returns an array of Vector2s, or null if the layer given was invalid.\r\n */\r\n getTileCorners: function (tileX, tileY, camera, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n return this._convert.GetTileCorners(tileX, tileY, camera, layer);\r\n },\r\n\r\n /**\r\n * Randomizes the indexes of a rectangular region of tiles (in tile coordinates) within the\r\n * specified layer. Each tile will receive a new index. New indexes are drawn from the given\r\n * weightedIndexes array. An example weighted array:\r\n *\r\n * [\r\n * { index: 6, weight: 4 }, // Probability of index 6 is 4 / 8\r\n * { index: 7, weight: 2 }, // Probability of index 7 would be 2 / 8\r\n * { index: 8, weight: 1.5 }, // Probability of index 8 would be 1.5 / 8\r\n * { index: 26, weight: 0.5 } // Probability of index 27 would be 0.5 / 8\r\n * ]\r\n *\r\n * The probability of any index being picked is (the indexs weight) / (sum of all weights). This\r\n * method only modifies tile indexes and does not change collision information.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#weightedRandomize\r\n * @since 3.0.0\r\n *\r\n * @param {object[]} weightedIndexes - An array of objects to randomly draw from during randomization. They should be in the form: { index: 0, weight: 4 } or { index: [0, 1], weight: 4 } if you wish to draw from multiple tile indexes.\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Tilemaps.Tilemap} Return this Tilemap object, or null if the layer given was invalid.\r\n */\r\n weightedRandomize: function (weightedIndexes, tileX, tileY, width, height, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n TilemapComponents.WeightedRandomize(tileX, tileY, width, height, weightedIndexes, layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Converts from world X coordinates (pixels) to tile X coordinates (tile units), factoring in the\r\n * layers position, scale and scroll.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * You cannot call this method for Isometric or Hexagonal tilemaps as they require\r\n * both `worldX` and `worldY` values to determine the correct tile, instead you\r\n * should use the `worldToTileXY` method.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#worldToTileX\r\n * @since 3.0.0\r\n *\r\n * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles.\r\n * @param {boolean} [snapToFloor] - Whether or not to round the tile coordinate down to the nearest integer.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when calculating the tile index from the world values.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?number} Returns a number, or null if the layer given was invalid.\r\n */\r\n worldToTileX: function (worldX, snapToFloor, camera, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n return this._convert.WorldToTileX(worldX, snapToFloor, camera, layer);\r\n },\r\n\r\n /**\r\n * Converts from world Y coordinates (pixels) to tile Y coordinates (tile units), factoring in the\r\n * layers position, scale and scroll.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * You cannot call this method for Isometric or Hexagonal tilemaps as they require\r\n * both `worldX` and `worldY` values to determine the correct tile, instead you\r\n * should use the `worldToTileXY` method.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#worldToTileY\r\n * @since 3.0.0\r\n *\r\n * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles.\r\n * @param {boolean} [snapToFloor] - Whether or not to round the tile coordinate down to the nearest integer.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when calculating the tile index from the world values.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?number} Returns a number, or null if the layer given was invalid.\r\n */\r\n worldToTileY: function (worldY, snapToFloor, camera, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n return this._convert.WorldToTileY(worldY, snapToFloor, camera, layer);\r\n },\r\n\r\n /**\r\n * Converts from world XY coordinates (pixels) to tile XY coordinates (tile units), factoring in the\r\n * layers position, scale and scroll. This will return a new Vector2 object or update the given\r\n * `point` object.\r\n *\r\n * If no layer is specified, the maps current layer is used.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#worldToTileXY\r\n * @since 3.0.0\r\n *\r\n * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles.\r\n * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles.\r\n * @param {boolean} [snapToFloor] - Whether or not to round the tile coordinate down to the nearest integer.\r\n * @param {Phaser.Math.Vector2} [vec2] - A Vector2 to store the coordinates in. If not given a new Vector2 is created.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when calculating the tile index from the world values.\r\n * @param {(string|number|Phaser.Tilemaps.TilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.\r\n *\r\n * @return {?Phaser.Math.Vector2} Returns a vec2, or null if the layer given was invalid.\r\n */\r\n worldToTileXY: function (worldX, worldY, snapToFloor, vec2, camera, layer)\r\n {\r\n layer = this.getLayer(layer);\r\n\r\n if (layer === null) { return null; }\r\n\r\n return this._convert.WorldToTileXY(worldX, worldY, snapToFloor, vec2, camera, layer);\r\n },\r\n\r\n /**\r\n * Removes all layer data from this Tilemap and nulls the scene reference. This will destroy any\r\n * TilemapLayers that have been created.\r\n *\r\n * @method Phaser.Tilemaps.Tilemap#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.removeAllLayers();\r\n\r\n this.tiles.length = 0;\r\n this.tilesets.length = 0;\r\n this.objects.length = 0;\r\n\r\n this.scene = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Tilemap;\r\n\n\n/***/ }),\n\n/***/ 45939:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar ParseToTilemap = __webpack_require__(31989);\r\n\r\n/**\r\n * Creates a Tilemap from the given key or data, or creates a blank Tilemap if no key/data provided.\r\n * When loading from CSV or a 2D array, you should specify the tileWidth & tileHeight. When parsing\r\n * from a map from Tiled, the tileWidth, tileHeight, width & height will be pulled from the map\r\n * data. For an empty map, you should specify tileWidth, tileHeight, width & height.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#tilemap\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Tilemaps.TilemapConfig} [config] - The config options for the Tilemap.\r\n *\r\n * @return {Phaser.Tilemaps.Tilemap}\r\n */\r\nGameObjectCreator.register('tilemap', function (config)\r\n{\r\n // Defaults are applied in ParseToTilemap\r\n var c = (config !== undefined) ? config : {};\r\n\r\n return ParseToTilemap(\r\n this.scene,\r\n c.key,\r\n c.tileWidth,\r\n c.tileHeight,\r\n c.width,\r\n c.height,\r\n c.data,\r\n c.insertNull\r\n );\r\n});\r\n\n\n/***/ }),\n\n/***/ 46029:\n/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GameObjectFactory = __webpack_require__(39429);\r\nvar ParseToTilemap = __webpack_require__(31989);\r\n\r\n/**\r\n * Creates a Tilemap from the given key or data, or creates a blank Tilemap if no key/data provided.\r\n * When loading from CSV or a 2D array, you should specify the tileWidth & tileHeight. When parsing\r\n * from a map from Tiled, the tileWidth, tileHeight, width & height will be pulled from the map\r\n * data. For an empty map, you should specify tileWidth, tileHeight, width & height.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#tilemap\r\n * @since 3.0.0\r\n *\r\n * @param {string} [key] - The key in the Phaser cache that corresponds to the loaded tilemap data.\r\n * @param {number} [tileWidth=32] - The width of a tile in pixels. Pass in `null` to leave as the\r\n * default.\r\n * @param {number} [tileHeight=32] - The height of a tile in pixels. Pass in `null` to leave as the\r\n * default.\r\n * @param {number} [width=10] - The width of the map in tiles. Pass in `null` to leave as the\r\n * default.\r\n * @param {number} [height=10] - The height of the map in tiles. Pass in `null` to leave as the\r\n * default.\r\n * @param {number[][]} [data] - Instead of loading from the cache, you can also load directly from\r\n * a 2D array of tile indexes. Pass in `null` for no data.\r\n * @param {boolean} [insertNull=false] - Controls how empty tiles, tiles with an index of -1, in the\r\n * map data are handled. If `true`, empty locations will get a value of `null`. If `false`, empty\r\n * location will get a Tile object with an index of -1. If you've a large sparsely populated map and\r\n * the tile data doesn't need to change then setting this value to `true` will help with memory\r\n * consumption. However if your map is small or you need to update the tiles dynamically, then leave\r\n * the default value set.\r\n *\r\n * @return {Phaser.Tilemaps.Tilemap}\r\n */\r\nGameObjectFactory.register('tilemap', function (key, tileWidth, tileHeight, width, height, data, insertNull)\r\n{\r\n // Allow users to specify null to indicate that they want the default value, since null is\r\n // shorter & more legible than undefined. Convert null to undefined to allow ParseToTilemap\r\n // defaults to take effect.\r\n\r\n if (key === null) { key = undefined; }\r\n if (tileWidth === null) { tileWidth = undefined; }\r\n if (tileHeight === null) { tileHeight = undefined; }\r\n if (width === null) { width = undefined; }\r\n if (height === null) { height = undefined; }\r\n\r\n return ParseToTilemap(this.scene, key, tileWidth, tileHeight, width, height, data, insertNull);\r\n});\r\n\r\n// When registering a factory function 'this' refers to the GameObjectFactory context.\r\n//\r\n// There are several properties available to use:\r\n//\r\n// this.scene - a reference to the Scene that owns the GameObjectFactory\r\n// this.displayList - a reference to the Display List the Scene owns\r\n// this.updateList - a reference to the Update List the Scene owns\r\n\n\n/***/ }),\n\n/***/ 20442:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CollisionComponent = __webpack_require__(78389);\r\nvar Components = __webpack_require__(31401);\r\nvar GameObject = __webpack_require__(95643);\r\nvar TilemapComponents = __webpack_require__(81086);\r\nvar TilemapLayerRender = __webpack_require__(19218);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * A Tilemap Layer is a Game Object that renders LayerData from a Tilemap when used in combination\r\n * with one, or more, Tilesets.\r\n * \r\n * Do not add TilemapLayers to Containers, they are stand-alone display objects.\r\n *\r\n * @class TilemapLayer\r\n * @extends Phaser.GameObjects.GameObject\r\n * @memberof Phaser.Tilemaps\r\n * @constructor\r\n * @since 3.50.0\r\n *\r\n * @extends Phaser.GameObjects.Components.Alpha\r\n * @extends Phaser.GameObjects.Components.BlendMode\r\n * @extends Phaser.GameObjects.Components.ComputedSize\r\n * @extends Phaser.GameObjects.Components.Depth\r\n * @extends Phaser.GameObjects.Components.Flip\r\n * @extends Phaser.GameObjects.Components.GetBounds\r\n * @extends Phaser.GameObjects.Components.Mask\r\n * @extends Phaser.GameObjects.Components.Origin\r\n * @extends Phaser.GameObjects.Components.Pipeline\r\n * @extends Phaser.GameObjects.Components.PostPipeline\r\n * @extends Phaser.GameObjects.Components.ScrollFactor\r\n * @extends Phaser.GameObjects.Components.Transform\r\n * @extends Phaser.GameObjects.Components.Visible\r\n * @extends Phaser.Physics.Arcade.Components.Collision\r\n *\r\n * @param {Phaser.Scene} scene - The Scene to which this Game Object belongs.\r\n * @param {Phaser.Tilemaps.Tilemap} tilemap - The Tilemap this layer is a part of.\r\n * @param {number} layerIndex - The index of the LayerData associated with this layer.\r\n * @param {(string|string[]|Phaser.Tilemaps.Tileset|Phaser.Tilemaps.Tileset[])} tileset - The tileset, or an array of tilesets, used to render this layer. Can be a string or a Tileset object.\r\n * @param {number} [x=0] - The world x position where the top left of this layer will be placed.\r\n * @param {number} [y=0] - The world y position where the top left of this layer will be placed.\r\n */\r\nvar TilemapLayer = new Class({\r\n\r\n Extends: GameObject,\r\n\r\n Mixins: [\r\n Components.Alpha,\r\n Components.BlendMode,\r\n Components.ComputedSize,\r\n Components.Depth,\r\n Components.Flip,\r\n Components.GetBounds,\r\n Components.Mask,\r\n Components.Origin,\r\n Components.Pipeline,\r\n Components.PostPipeline,\r\n Components.Transform,\r\n Components.Visible,\r\n Components.ScrollFactor,\r\n CollisionComponent,\r\n TilemapLayerRender\r\n ],\r\n\r\n initialize:\r\n\r\n function TilemapLayer (scene, tilemap, layerIndex, tileset, x, y)\r\n {\r\n GameObject.call(this, scene, 'TilemapLayer');\r\n\r\n /**\r\n * Used internally by physics system to perform fast type checks.\r\n *\r\n * @name Phaser.Tilemaps.TilemapLayer#isTilemap\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.50.0\r\n */\r\n this.isTilemap = true;\r\n\r\n /**\r\n * The Tilemap that this layer is a part of.\r\n *\r\n * @name Phaser.Tilemaps.TilemapLayer#tilemap\r\n * @type {Phaser.Tilemaps.Tilemap}\r\n * @since 3.50.0\r\n */\r\n this.tilemap = tilemap;\r\n\r\n /**\r\n * The index of the LayerData associated with this layer.\r\n *\r\n * @name Phaser.Tilemaps.TilemapLayer#layerIndex\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.layerIndex = layerIndex;\r\n\r\n /**\r\n * The LayerData associated with this layer. LayerData can only be associated with one\r\n * tilemap layer.\r\n *\r\n * @name Phaser.Tilemaps.TilemapLayer#layer\r\n * @type {Phaser.Tilemaps.LayerData}\r\n * @since 3.50.0\r\n */\r\n this.layer = tilemap.layers[layerIndex];\r\n\r\n // Link the LayerData with this static tilemap layer\r\n this.layer.tilemapLayer = this;\r\n\r\n /**\r\n * An array of `Tileset` objects associated with this layer.\r\n *\r\n * @name Phaser.Tilemaps.TilemapLayer#tileset\r\n * @type {Phaser.Tilemaps.Tileset[]}\r\n * @since 3.50.0\r\n */\r\n this.tileset = [];\r\n\r\n /**\r\n * The total number of tiles drawn by the renderer in the last frame.\r\n *\r\n * @name Phaser.Tilemaps.TilemapLayer#tilesDrawn\r\n * @type {number}\r\n * @readonly\r\n * @since 3.50.0\r\n */\r\n this.tilesDrawn = 0;\r\n\r\n /**\r\n * The total number of tiles in this layer. Updated every frame.\r\n *\r\n * @name Phaser.Tilemaps.TilemapLayer#tilesTotal\r\n * @type {number}\r\n * @readonly\r\n * @since 3.50.0\r\n */\r\n this.tilesTotal = this.layer.width * this.layer.height;\r\n\r\n /**\r\n * Used internally during rendering. This holds the tiles that are visible within the Camera.\r\n *\r\n * @name Phaser.Tilemaps.TilemapLayer#culledTiles\r\n * @type {Phaser.Tilemaps.Tile[]}\r\n * @since 3.50.0\r\n */\r\n this.culledTiles = [];\r\n\r\n /**\r\n * You can control if the camera should cull tiles on this layer before rendering them or not.\r\n *\r\n * By default the camera will try to cull the tiles in this layer, to avoid over-drawing to the renderer.\r\n *\r\n * However, there are some instances when you may wish to disable this, and toggling this flag allows\r\n * you to do so. Also see `setSkipCull` for a chainable method that does the same thing.\r\n *\r\n * @name Phaser.Tilemaps.TilemapLayer#skipCull\r\n * @type {boolean}\r\n * @since 3.50.0\r\n */\r\n this.skipCull = false;\r\n\r\n /**\r\n * The amount of extra tiles to add into the cull rectangle when calculating its horizontal size.\r\n *\r\n * See the method `setCullPadding` for more details.\r\n *\r\n * @name Phaser.Tilemaps.TilemapLayer#cullPaddingX\r\n * @type {number}\r\n * @default 1\r\n * @since 3.50.0\r\n */\r\n this.cullPaddingX = 1;\r\n\r\n /**\r\n * The amount of extra tiles to add into the cull rectangle when calculating its vertical size.\r\n *\r\n * See the method `setCullPadding` for more details.\r\n *\r\n * @name Phaser.Tilemaps.TilemapLayer#cullPaddingY\r\n * @type {number}\r\n * @default 1\r\n * @since 3.50.0\r\n */\r\n this.cullPaddingY = 1;\r\n\r\n /**\r\n * The callback that is invoked when the tiles are culled.\r\n *\r\n * It will call a different function based on the map orientation:\r\n *\r\n * Orthogonal (the default) is `TilemapComponents.CullTiles`\r\n * Isometric is `TilemapComponents.IsometricCullTiles`\r\n * Hexagonal is `TilemapComponents.HexagonalCullTiles`\r\n * Staggered is `TilemapComponents.StaggeredCullTiles`\r\n *\r\n * However, you can override this to call any function you like.\r\n *\r\n * It will be sent 4 arguments:\r\n *\r\n * 1. The Phaser.Tilemaps.LayerData object for this Layer\r\n * 2. The Camera that is culling the layer. You can check its `dirty` property to see if it has changed since the last cull.\r\n * 3. A reference to the `culledTiles` array, which should be used to store the tiles you want rendered.\r\n * 4. The Render Order constant.\r\n *\r\n * See the `TilemapComponents.CullTiles` source code for details on implementing your own culling system.\r\n *\r\n * @name Phaser.Tilemaps.TilemapLayer#cullCallback\r\n * @type {function}\r\n * @since 3.50.0\r\n */\r\n this.cullCallback = TilemapComponents.GetCullTilesFunction(this.layer.orientation);\r\n\r\n /**\r\n * The rendering (draw) order of the tiles in this layer.\r\n *\r\n * The default is 0 which is 'right-down', meaning it will draw the tiles starting from the top-left,\r\n * drawing to the right and then moving down to the next row.\r\n *\r\n * The draw orders are:\r\n *\r\n * 0 = right-down\r\n * 1 = left-down\r\n * 2 = right-up\r\n * 3 = left-up\r\n *\r\n * This can be changed via the `setRenderOrder` method.\r\n *\r\n * @name Phaser.Tilemaps.TilemapLayer#_renderOrder\r\n * @type {number}\r\n * @default 0\r\n * @private\r\n * @since 3.50.0\r\n */\r\n this._renderOrder = 0;\r\n\r\n /**\r\n * An array holding the mapping between the tile indexes and the tileset they belong to.\r\n *\r\n * @name Phaser.Tilemaps.TilemapLayer#gidMap\r\n * @type {Phaser.Tilemaps.Tileset[]}\r\n * @since 3.50.0\r\n */\r\n this.gidMap = [];\r\n\r\n /**\r\n * A temporary Vector2 used in the tile coordinate methods.\r\n *\r\n * @name Phaser.Tilemaps.TilemapLayer#tempVec\r\n * @type {Phaser.Math.Vector2}\r\n * @private\r\n * @since 3.60.0\r\n */\r\n this.tempVec = new Vector2();\r\n\r\n /**\r\n * The Tilemap Layer Collision Category.\r\n *\r\n * This is exclusively used by the Arcade Physics system.\r\n *\r\n * This can be set to any valid collision bitfield value.\r\n *\r\n * See the `setCollisionCategory` method for more details.\r\n *\r\n * @name Phaser.Tilemaps.TilemapLayer#collisionCategory\r\n * @type {number}\r\n * @since 3.70.0\r\n */\r\n this.collisionCategory = 0x0001;\r\n\r\n /**\r\n * The Tilemap Layer Collision Mask.\r\n *\r\n * This is exclusively used by the Arcade Physics system.\r\n *\r\n * See the `setCollidesWith` method for more details.\r\n *\r\n * @name Phaser.Tilemaps.TilemapLayer#collisionMask\r\n * @type {number}\r\n * @since 3.70.0\r\n */\r\n this.collisionMask = 1;\r\n\r\n /**\r\n * The horizontal origin of this Tilemap Layer.\r\n *\r\n * @name Phaser.Tilemaps.TilemapLayer#originX\r\n * @type {number}\r\n * @default 0\r\n * @readOnly\r\n * @since 3.0.0\r\n */\r\n\r\n /**\r\n * The vertical origin of this Tilemap Layer.\r\n *\r\n * @name Phaser.Tilemaps.TilemapLayer#originY\r\n * @type {number}\r\n * @default 0\r\n * @readOnly\r\n * @since 3.0.0\r\n */\r\n\r\n /**\r\n * The horizontal display origin of this Tilemap Layer.\r\n *\r\n * @name Phaser.Tilemaps.TilemapLayer#displayOriginX\r\n * @type {number}\r\n * @default 0\r\n * @readOnly\r\n * @since 3.0.0\r\n */\r\n\r\n /**\r\n * The vertical display origin of this Tilemap Layer.\r\n *\r\n * @name Phaser.Tilemaps.TilemapLayer#displayOriginY\r\n * @type {number}\r\n * @default 0\r\n * @readOnly\r\n * @since 3.0.0\r\n */\r\n\r\n this.setTilesets(tileset);\r\n this.setAlpha(this.layer.alpha);\r\n this.setPosition(x, y);\r\n this.setOrigin(0, 0);\r\n this.setSize(tilemap.tileWidth * this.layer.width, tilemap.tileHeight * this.layer.height);\r\n\r\n this.initPipeline();\r\n this.initPostPipeline(false);\r\n },\r\n\r\n /**\r\n * Populates the internal `tileset` array with the Tileset references this Layer requires for rendering.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#setTilesets\r\n * @private\r\n * @since 3.50.0\r\n *\r\n * @param {(string|string[]|Phaser.Tilemaps.Tileset|Phaser.Tilemaps.Tileset[])} tileset - The tileset, or an array of tilesets, used to render this layer. Can be a string or a Tileset object.\r\n */\r\n setTilesets: function (tilesets)\r\n {\r\n var gidMap = [];\r\n var setList = [];\r\n var map = this.tilemap;\r\n\r\n if (!Array.isArray(tilesets))\r\n {\r\n tilesets = [ tilesets ];\r\n }\r\n\r\n for (var i = 0; i < tilesets.length; i++)\r\n {\r\n var tileset = tilesets[i];\r\n\r\n if (typeof tileset === 'string')\r\n {\r\n tileset = map.getTileset(tileset);\r\n }\r\n\r\n if (tileset)\r\n {\r\n setList.push(tileset);\r\n\r\n var s = tileset.firstgid;\r\n\r\n for (var t = 0; t < tileset.total; t++)\r\n {\r\n gidMap[s + t] = tileset;\r\n }\r\n }\r\n }\r\n\r\n this.gidMap = gidMap;\r\n this.tileset = setList;\r\n },\r\n\r\n /**\r\n * Sets the rendering (draw) order of the tiles in this layer.\r\n *\r\n * The default is 'right-down', meaning it will order the tiles starting from the top-left,\r\n * drawing to the right and then moving down to the next row.\r\n *\r\n * The draw orders are:\r\n *\r\n * 0 = right-down\r\n * 1 = left-down\r\n * 2 = right-up\r\n * 3 = left-up\r\n *\r\n * Setting the render order does not change the tiles or how they are stored in the layer,\r\n * it purely impacts the order in which they are rendered.\r\n *\r\n * You can provide either an integer (0 to 3), or the string version of the order.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#setRenderOrder\r\n * @since 3.50.0\r\n *\r\n * @param {(number|string)} renderOrder - The render (draw) order value. Either an integer between 0 and 3, or a string: 'right-down', 'left-down', 'right-up' or 'left-up'.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n setRenderOrder: function (renderOrder)\r\n {\r\n var orders = [ 'right-down', 'left-down', 'right-up', 'left-up' ];\r\n\r\n if (typeof renderOrder === 'string')\r\n {\r\n renderOrder = orders.indexOf(renderOrder);\r\n }\r\n\r\n if (renderOrder >= 0 && renderOrder < 4)\r\n {\r\n this._renderOrder = renderOrder;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calculates interesting faces at the given tile coordinates of the specified layer. Interesting\r\n * faces are used internally for optimizing collisions against tiles. This method is mostly used\r\n * internally to optimize recalculating faces when only one tile has been changed.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#calculateFacesAt\r\n * @since 3.50.0\r\n *\r\n * @param {number} tileX - The x coordinate.\r\n * @param {number} tileY - The y coordinate.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n calculateFacesAt: function (tileX, tileY)\r\n {\r\n TilemapComponents.CalculateFacesAt(tileX, tileY, this.layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Calculates interesting faces within the rectangular area specified (in tile coordinates) of the\r\n * layer. Interesting faces are used internally for optimizing collisions against tiles. This method\r\n * is mostly used internally.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#calculateFacesWithin\r\n * @since 3.50.0\r\n *\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n calculateFacesWithin: function (tileX, tileY, width, height)\r\n {\r\n TilemapComponents.CalculateFacesWithin(tileX, tileY, width, height, this.layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Creates a Sprite for every object matching the given tile indexes in the layer. You can\r\n * optionally specify if each tile will be replaced with a new tile after the Sprite has been\r\n * created. This is useful if you want to lay down special tiles in a level that are converted to\r\n * Sprites, but want to replace the tile itself with a floor tile or similar once converted.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#createFromTiles\r\n * @since 3.50.0\r\n *\r\n * @param {(number|array)} indexes - The tile index, or array of indexes, to create Sprites from.\r\n * @param {?(number|array)} replacements - The tile index, or array of indexes, to change a converted\r\n * tile to. Set to `null` to leave the tiles unchanged. If an array is given, it is assumed to be a\r\n * one-to-one mapping with the indexes array.\r\n * @param {Phaser.Types.GameObjects.Sprite.SpriteConfig} [spriteConfig] - The config object to pass into the Sprite creator (i.e.\r\n * scene.make.sprite).\r\n * @param {Phaser.Scene} [scene] - The Scene to create the Sprites within.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when determining the world XY\r\n *\r\n * @return {Phaser.GameObjects.Sprite[]} An array of the Sprites that were created.\r\n */\r\n createFromTiles: function (indexes, replacements, spriteConfig, scene, camera)\r\n {\r\n return TilemapComponents.CreateFromTiles(indexes, replacements, spriteConfig, scene, camera, this.layer);\r\n },\r\n\r\n /**\r\n * Returns the tiles in the given layer that are within the cameras viewport.\r\n * This is used internally during rendering.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#cull\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to run the cull check against.\r\n *\r\n * @return {Phaser.Tilemaps.Tile[]} An array of Tile objects to render.\r\n */\r\n cull: function (camera)\r\n {\r\n return this.cullCallback(this.layer, camera, this.culledTiles, this._renderOrder);\r\n },\r\n\r\n /**\r\n * Copies the tiles in the source rectangular area to a new destination (all specified in tile\r\n * coordinates) within the layer. This copies all tile properties & recalculates collision\r\n * information in the destination region.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#copy\r\n * @since 3.50.0\r\n *\r\n * @param {number} srcTileX - The x coordinate of the area to copy from, in tiles, not pixels.\r\n * @param {number} srcTileY - The y coordinate of the area to copy from, in tiles, not pixels.\r\n * @param {number} width - The width of the area to copy, in tiles, not pixels.\r\n * @param {number} height - The height of the area to copy, in tiles, not pixels.\r\n * @param {number} destTileX - The x coordinate of the area to copy to, in tiles, not pixels.\r\n * @param {number} destTileY - The y coordinate of the area to copy to, in tiles, not pixels.\r\n * @param {boolean} [recalculateFaces=true] - `true` if the faces data should be recalculated.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n copy: function (srcTileX, srcTileY, width, height, destTileX, destTileY, recalculateFaces)\r\n {\r\n TilemapComponents.Copy(srcTileX, srcTileY, width, height, destTileX, destTileY, recalculateFaces, this.layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the tiles in the given rectangular area (in tile coordinates) of the layer with the\r\n * specified index. Tiles will be set to collide if the given index is a colliding index.\r\n * Collision information in the region will be recalculated.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#fill\r\n * @since 3.50.0\r\n *\r\n * @param {number} index - The tile index to fill the area with.\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n * @param {boolean} [recalculateFaces=true] - `true` if the faces data should be recalculated.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n fill: function (index, tileX, tileY, width, height, recalculateFaces)\r\n {\r\n TilemapComponents.Fill(index, tileX, tileY, width, height, recalculateFaces, this.layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * For each tile in the given rectangular area (in tile coordinates) of the layer, run the given\r\n * filter callback function. Any tiles that pass the filter test (i.e. where the callback returns\r\n * true) will returned as a new array. Similar to Array.prototype.Filter in vanilla JS.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#filterTiles\r\n * @since 3.50.0\r\n *\r\n * @param {function} callback - The callback. Each tile in the given area will be passed to this\r\n * callback as the first and only parameter. The callback should return true for tiles that pass the\r\n * filter.\r\n * @param {object} [context] - The context under which the callback should be run.\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area to filter.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area to filter.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n * @param {Phaser.Types.Tilemaps.FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.\r\n *\r\n * @return {Phaser.Tilemaps.Tile[]} An array of Tile objects.\r\n */\r\n filterTiles: function (callback, context, tileX, tileY, width, height, filteringOptions)\r\n {\r\n return TilemapComponents.FilterTiles(callback, context, tileX, tileY, width, height, filteringOptions, this.layer);\r\n },\r\n\r\n /**\r\n * Searches the entire map layer for the first tile matching the given index, then returns that Tile\r\n * object. If no match is found, it returns null. The search starts from the top-left tile and\r\n * continues horizontally until it hits the end of the row, then it drops down to the next column.\r\n * If the reverse boolean is true, it scans starting from the bottom-right corner traveling up to\r\n * the top-left.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#findByIndex\r\n * @since 3.50.0\r\n *\r\n * @param {number} index - The tile index value to search for.\r\n * @param {number} [skip=0] - The number of times to skip a matching tile before returning.\r\n * @param {boolean} [reverse=false] - If true it will scan the layer in reverse, starting at the bottom-right. Otherwise it scans from the top-left.\r\n *\r\n * @return {Phaser.Tilemaps.Tile} The first matching Tile object.\r\n */\r\n findByIndex: function (findIndex, skip, reverse)\r\n {\r\n return TilemapComponents.FindByIndex(findIndex, skip, reverse, this.layer);\r\n },\r\n\r\n /**\r\n * Find the first tile in the given rectangular area (in tile coordinates) of the layer that\r\n * satisfies the provided testing function. I.e. finds the first tile for which `callback` returns\r\n * true. Similar to Array.prototype.find in vanilla JS.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#findTile\r\n * @since 3.50.0\r\n *\r\n * @param {FindTileCallback} callback - The callback. Each tile in the given area will be passed to this callback as the first and only parameter.\r\n * @param {object} [context] - The context under which the callback should be run.\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area to search.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area to search.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n * @param {Phaser.Types.Tilemaps.FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.\r\n *\r\n * @return {?Phaser.Tilemaps.Tile} The first Tile found at the given location.\r\n */\r\n findTile: function (callback, context, tileX, tileY, width, height, filteringOptions)\r\n {\r\n return TilemapComponents.FindTile(callback, context, tileX, tileY, width, height, filteringOptions, this.layer);\r\n },\r\n\r\n /**\r\n * For each tile in the given rectangular area (in tile coordinates) of the layer, run the given\r\n * callback. Similar to Array.prototype.forEach in vanilla JS.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#forEachTile\r\n * @since 3.50.0\r\n *\r\n * @param {EachTileCallback} callback - The callback. Each tile in the given area will be passed to this callback as the first and only parameter.\r\n * @param {object} [context] - The context, or scope, under which the callback should be run.\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area to search.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area to search.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n * @param {Phaser.Types.Tilemaps.FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n forEachTile: function (callback, context, tileX, tileY, width, height, filteringOptions)\r\n {\r\n TilemapComponents.ForEachTile(callback, context, tileX, tileY, width, height, filteringOptions, this.layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets an additive tint on each Tile within the given area.\r\n *\r\n * The tint works by taking the pixel color values from the tileset texture, and then\r\n * multiplying it by the color value of the tint.\r\n *\r\n * If no area values are given then all tiles will be tinted to the given color.\r\n *\r\n * To remove a tint call this method with either no parameters, or by passing white `0xffffff` as the tint color.\r\n *\r\n * If a tile already has a tint set then calling this method will override that.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#setTint\r\n * @webglOnly\r\n * @since 3.60.0\r\n *\r\n * @param {number} [tint=0xffffff] - The tint color being applied to each tile within the region. Given as a hex value, i.e. `0xff0000` for red. Set to white (`0xffffff`) to reset the tint.\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area to search.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area to search.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n * @param {Phaser.Types.Tilemaps.FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n setTint: function (tint, tileX, tileY, width, height, filteringOptions)\r\n {\r\n if (tint === undefined) { tint = 0xffffff; }\r\n\r\n var tintTile = function (tile)\r\n {\r\n tile.tint = tint;\r\n tile.tintFill = false;\r\n };\r\n\r\n return this.forEachTile(tintTile, this, tileX, tileY, width, height, filteringOptions);\r\n },\r\n\r\n /**\r\n * Sets a fill-based tint on each Tile within the given area.\r\n *\r\n * Unlike an additive tint, a fill-tint literally replaces the pixel colors from the texture\r\n * with those in the tint.\r\n *\r\n * If no area values are given then all tiles will be tinted to the given color.\r\n *\r\n * To remove a tint call this method with either no parameters, or by passing white `0xffffff` as the tint color.\r\n *\r\n * If a tile already has a tint set then calling this method will override that.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#setTintFill\r\n * @webglOnly\r\n * @since 3.70.0\r\n *\r\n * @param {number} [tint=0xffffff] - The tint color being applied to each tile within the region. Given as a hex value, i.e. `0xff0000` for red. Set to white (`0xffffff`) to reset the tint.\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area to search.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area to search.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n * @param {Phaser.Types.Tilemaps.FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n setTintFill: function (tint, tileX, tileY, width, height, filteringOptions)\r\n {\r\n if (tint === undefined) { tint = 0xffffff; }\r\n\r\n var tintTile = function (tile)\r\n {\r\n tile.tint = tint;\r\n tile.tintFill = true;\r\n };\r\n\r\n return this.forEachTile(tintTile, this, tileX, tileY, width, height, filteringOptions);\r\n },\r\n\r\n /**\r\n * Gets a tile at the given tile coordinates from the given layer.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#getTileAt\r\n * @since 3.50.0\r\n *\r\n * @param {number} tileX - X position to get the tile from (given in tile units, not pixels).\r\n * @param {number} tileY - Y position to get the tile from (given in tile units, not pixels).\r\n * @param {boolean} [nonNull=false] - For empty tiles, return a Tile object with an index of -1 instead of null.\r\n *\r\n * @return {Phaser.Tilemaps.Tile} The Tile at the given coordinates or null if no tile was found or the coordinates were invalid.\r\n */\r\n getTileAt: function (tileX, tileY, nonNull)\r\n {\r\n return TilemapComponents.GetTileAt(tileX, tileY, nonNull, this.layer);\r\n },\r\n\r\n /**\r\n * Gets a tile at the given world coordinates from the given layer.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#getTileAtWorldXY\r\n * @since 3.50.0\r\n *\r\n * @param {number} worldX - X position to get the tile from (given in pixels)\r\n * @param {number} worldY - Y position to get the tile from (given in pixels)\r\n * @param {boolean} [nonNull=false] - For empty tiles, return a Tile object with an index of -1 instead of null.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when calculating the tile index from the world values.\r\n *\r\n * @return {Phaser.Tilemaps.Tile} The tile at the given coordinates or null if no tile was found or the coordinates were invalid.\r\n */\r\n getTileAtWorldXY: function (worldX, worldY, nonNull, camera)\r\n {\r\n return TilemapComponents.GetTileAtWorldXY(worldX, worldY, nonNull, camera, this.layer);\r\n },\r\n\r\n /**\r\n * Gets a tile at the given world coordinates from the given isometric layer.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#getIsoTileAtWorldXY\r\n * @since 3.60.0\r\n *\r\n * @param {number} worldX - X position to get the tile from (given in pixels)\r\n * @param {number} worldY - Y position to get the tile from (given in pixels)\r\n * @param {boolean} [originTop=true] - Which is the active face of the isometric tile? The top (default, true), or the base? (false)\r\n * @param {boolean} [nonNull=false] - For empty tiles, return a Tile object with an index of -1 instead of null.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when calculating the tile index from the world values.\r\n *\r\n * @return {Phaser.Tilemaps.Tile} The tile at the given coordinates or null if no tile was found or the coordinates were invalid.\r\n */\r\n getIsoTileAtWorldXY: function (worldX, worldY, originTop, nonNull, camera)\r\n {\r\n if (originTop === undefined) { originTop = true; }\r\n\r\n var point = this.tempVec;\r\n\r\n TilemapComponents.IsometricWorldToTileXY(worldX, worldY, true, point, camera, this.layer, originTop);\r\n\r\n return this.getTileAt(point.x, point.y, nonNull);\r\n },\r\n\r\n /**\r\n * Gets the tiles in the given rectangular area (in tile coordinates) of the layer.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#getTilesWithin\r\n * @since 3.50.0\r\n *\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n * @param {Phaser.Types.Tilemaps.FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.\r\n *\r\n * @return {Phaser.Tilemaps.Tile[]} An array of Tile objects found within the area.\r\n */\r\n getTilesWithin: function (tileX, tileY, width, height, filteringOptions)\r\n {\r\n return TilemapComponents.GetTilesWithin(tileX, tileY, width, height, filteringOptions, this.layer);\r\n },\r\n\r\n /**\r\n * Gets the tiles that overlap with the given shape in the given layer. The shape must be a Circle,\r\n * Line, Rectangle or Triangle. The shape should be in world coordinates.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#getTilesWithinShape\r\n * @since 3.50.0\r\n *\r\n * @param {(Phaser.Geom.Circle|Phaser.Geom.Line|Phaser.Geom.Rectangle|Phaser.Geom.Triangle)} shape - A shape in world (pixel) coordinates\r\n * @param {Phaser.Types.Tilemaps.FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when factoring in which tiles to return.\r\n *\r\n * @return {Phaser.Tilemaps.Tile[]} An array of Tile objects found within the shape.\r\n */\r\n getTilesWithinShape: function (shape, filteringOptions, camera)\r\n {\r\n return TilemapComponents.GetTilesWithinShape(shape, filteringOptions, camera, this.layer);\r\n },\r\n\r\n /**\r\n * Gets the tiles in the given rectangular area (in world coordinates) of the layer.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#getTilesWithinWorldXY\r\n * @since 3.50.0\r\n *\r\n * @param {number} worldX - The world x coordinate for the top-left of the area.\r\n * @param {number} worldY - The world y coordinate for the top-left of the area.\r\n * @param {number} width - The width of the area.\r\n * @param {number} height - The height of the area.\r\n * @param {Phaser.Types.Tilemaps.FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when factoring in which tiles to return.\r\n *\r\n * @return {Phaser.Tilemaps.Tile[]} An array of Tile objects found within the area.\r\n */\r\n getTilesWithinWorldXY: function (worldX, worldY, width, height, filteringOptions, camera)\r\n {\r\n return TilemapComponents.GetTilesWithinWorldXY(worldX, worldY, width, height, filteringOptions, camera, this.layer);\r\n },\r\n\r\n /**\r\n * Checks if there is a tile at the given location (in tile coordinates) in the given layer. Returns\r\n * false if there is no tile or if the tile at that location has an index of -1.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#hasTileAt\r\n * @since 3.50.0\r\n *\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n *\r\n * @return {boolean} `true` if a tile was found at the given location, otherwise `false`.\r\n */\r\n hasTileAt: function (tileX, tileY)\r\n {\r\n return TilemapComponents.HasTileAt(tileX, tileY, this.layer);\r\n },\r\n\r\n /**\r\n * Checks if there is a tile at the given location (in world coordinates) in the given layer. Returns\r\n * false if there is no tile or if the tile at that location has an index of -1.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#hasTileAtWorldXY\r\n * @since 3.50.0\r\n *\r\n * @param {number} worldX - The x coordinate, in pixels.\r\n * @param {number} worldY - The y coordinate, in pixels.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when factoring in which tiles to return.\r\n *\r\n * @return {boolean} `true` if a tile was found at the given location, otherwise `false`.\r\n */\r\n hasTileAtWorldXY: function (worldX, worldY, camera)\r\n {\r\n return TilemapComponents.HasTileAtWorldXY(worldX, worldY, camera, this.layer);\r\n },\r\n\r\n /**\r\n * Puts a tile at the given tile coordinates in the specified layer. You can pass in either an index\r\n * or a Tile object. If you pass in a Tile, all attributes will be copied over to the specified\r\n * location. If you pass in an index, only the index at the specified location will be changed.\r\n * Collision information will be recalculated at the specified location.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#putTileAt\r\n * @since 3.50.0\r\n *\r\n * @param {(number|Phaser.Tilemaps.Tile)} tile - The index of this tile to set or a Tile object.\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {boolean} [recalculateFaces=true] - `true` if the faces data should be recalculated.\r\n *\r\n * @return {Phaser.Tilemaps.Tile} The Tile object that was inserted at the given coordinates.\r\n */\r\n putTileAt: function (tile, tileX, tileY, recalculateFaces)\r\n {\r\n return TilemapComponents.PutTileAt(tile, tileX, tileY, recalculateFaces, this.layer);\r\n },\r\n\r\n /**\r\n * Puts a tile at the given world coordinates (pixels) in the specified layer. You can pass in either\r\n * an index or a Tile object. If you pass in a Tile, all attributes will be copied over to the\r\n * specified location. If you pass in an index, only the index at the specified location will be\r\n * changed. Collision information will be recalculated at the specified location.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#putTileAtWorldXY\r\n * @since 3.50.0\r\n *\r\n * @param {(number|Phaser.Tilemaps.Tile)} tile - The index of this tile to set or a Tile object.\r\n * @param {number} worldX - The x coordinate, in pixels.\r\n * @param {number} worldY - The y coordinate, in pixels.\r\n * @param {boolean} [recalculateFaces] - `true` if the faces data should be recalculated.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when calculating the tile index from the world values.\r\n *\r\n * @return {Phaser.Tilemaps.Tile} The Tile object that was inserted at the given coordinates.\r\n */\r\n putTileAtWorldXY: function (tile, worldX, worldY, recalculateFaces, camera)\r\n {\r\n return TilemapComponents.PutTileAtWorldXY(tile, worldX, worldY, recalculateFaces, camera, this.layer);\r\n },\r\n\r\n /**\r\n * Puts an array of tiles or a 2D array of tiles at the given tile coordinates in the specified\r\n * layer. The array can be composed of either tile indexes or Tile objects. If you pass in a Tile,\r\n * all attributes will be copied over to the specified location. If you pass in an index, only the\r\n * index at the specified location will be changed. Collision information will be recalculated\r\n * within the region tiles were changed.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#putTilesAt\r\n * @since 3.50.0\r\n *\r\n * @param {(number[]|number[][]|Phaser.Tilemaps.Tile[]|Phaser.Tilemaps.Tile[][])} tile - A row (array) or grid (2D array) of Tiles or tile indexes to place.\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {boolean} [recalculateFaces=true] - `true` if the faces data should be recalculated.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n putTilesAt: function (tilesArray, tileX, tileY, recalculateFaces)\r\n {\r\n TilemapComponents.PutTilesAt(tilesArray, tileX, tileY, recalculateFaces, this.layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Randomizes the indexes of a rectangular region of tiles (in tile coordinates) within the\r\n * specified layer. Each tile will receive a new index. If an array of indexes is passed in, then\r\n * those will be used for randomly assigning new tile indexes. If an array is not provided, the\r\n * indexes found within the region (excluding -1) will be used for randomly assigning new tile\r\n * indexes. This method only modifies tile indexes and does not change collision information.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#randomize\r\n * @since 3.50.0\r\n *\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n * @param {number[]} [indexes] - An array of indexes to randomly draw from during randomization.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n randomize: function (tileX, tileY, width, height, indexes)\r\n {\r\n TilemapComponents.Randomize(tileX, tileY, width, height, indexes, this.layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes the tile at the given tile coordinates in the specified layer and updates the layers\r\n * collision information.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#removeTileAt\r\n * @since 3.50.0\r\n *\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {boolean} [replaceWithNull=true] - If true, this will replace the tile at the specified location with null instead of a Tile with an index of -1.\r\n * @param {boolean} [recalculateFaces=true] - `true` if the faces data should be recalculated.\r\n *\r\n * @return {Phaser.Tilemaps.Tile} A Tile object.\r\n */\r\n removeTileAt: function (tileX, tileY, replaceWithNull, recalculateFaces)\r\n {\r\n return TilemapComponents.RemoveTileAt(tileX, tileY, replaceWithNull, recalculateFaces, this.layer);\r\n },\r\n\r\n /**\r\n * Removes the tile at the given world coordinates in the specified layer and updates the layers\r\n * collision information.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#removeTileAtWorldXY\r\n * @since 3.50.0\r\n *\r\n * @param {number} worldX - The x coordinate, in pixels.\r\n * @param {number} worldY - The y coordinate, in pixels.\r\n * @param {boolean} [replaceWithNull=true] - If true, this will replace the tile at the specified location with null instead of a Tile with an index of -1.\r\n * @param {boolean} [recalculateFaces=true] - `true` if the faces data should be recalculated.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when calculating the tile index from the world values.\r\n *\r\n * @return {Phaser.Tilemaps.Tile} The Tile object that was removed from the given location.\r\n */\r\n removeTileAtWorldXY: function (worldX, worldY, replaceWithNull, recalculateFaces, camera)\r\n {\r\n return TilemapComponents.RemoveTileAtWorldXY(worldX, worldY, replaceWithNull, recalculateFaces, camera, this.layer);\r\n },\r\n\r\n /**\r\n * Draws a debug representation of the layer to the given Graphics. This is helpful when you want to\r\n * get a quick idea of which of your tiles are colliding and which have interesting faces. The tiles\r\n * are drawn starting at (0, 0) in the Graphics, allowing you to place the debug representation\r\n * wherever you want on the screen.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#renderDebug\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.GameObjects.Graphics} graphics - The target Graphics object to draw upon.\r\n * @param {Phaser.Types.Tilemaps.StyleConfig} [styleConfig] - An object specifying the colors to use for the debug drawing.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n renderDebug: function (graphics, styleConfig)\r\n {\r\n TilemapComponents.RenderDebug(graphics, styleConfig, this.layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Scans the given rectangular area (given in tile coordinates) for tiles with an index matching\r\n * `findIndex` and updates their index to match `newIndex`. This only modifies the index and does\r\n * not change collision information.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#replaceByIndex\r\n * @since 3.50.0\r\n *\r\n * @param {number} findIndex - The index of the tile to search for.\r\n * @param {number} newIndex - The index of the tile to replace it with.\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n replaceByIndex: function (findIndex, newIndex, tileX, tileY, width, height)\r\n {\r\n TilemapComponents.ReplaceByIndex(findIndex, newIndex, tileX, tileY, width, height, this.layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * You can control if the Cameras should cull tiles before rendering them or not.\r\n *\r\n * By default the camera will try to cull the tiles in this layer, to avoid over-drawing to the renderer.\r\n *\r\n * However, there are some instances when you may wish to disable this.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#setSkipCull\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [value=true] - Set to `true` to stop culling tiles. Set to `false` to enable culling again.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n setSkipCull: function (value)\r\n {\r\n if (value === undefined) { value = true; }\r\n\r\n this.skipCull = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * When a Camera culls the tiles in this layer it does so using its view into the world, building up a\r\n * rectangle inside which the tiles must exist or they will be culled. Sometimes you may need to expand the size\r\n * of this 'cull rectangle', especially if you plan on rotating the Camera viewing the layer. Do so\r\n * by providing the padding values. The values given are in tiles, not pixels. So if the tile width was 32px\r\n * and you set `paddingX` to be 4, it would add 32px x 4 to the cull rectangle (adjusted for scale)\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#setCullPadding\r\n * @since 3.50.0\r\n *\r\n * @param {number} [paddingX=1] - The amount of extra horizontal tiles to add to the cull check padding.\r\n * @param {number} [paddingY=1] - The amount of extra vertical tiles to add to the cull check padding.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n setCullPadding: function (paddingX, paddingY)\r\n {\r\n if (paddingX === undefined) { paddingX = 1; }\r\n if (paddingY === undefined) { paddingY = 1; }\r\n\r\n this.cullPaddingX = paddingX;\r\n this.cullPaddingY = paddingY;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets collision on the given tile or tiles within a layer by index. You can pass in either a\r\n * single numeric index or an array of indexes: [2, 3, 15, 20]. The `collides` parameter controls if\r\n * collision will be enabled (true) or disabled (false).\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#setCollision\r\n * @since 3.50.0\r\n *\r\n * @param {(number|array)} indexes - Either a single tile index, or an array of tile indexes.\r\n * @param {boolean} [collides=true] - If true it will enable collision. If false it will clear collision.\r\n * @param {boolean} [recalculateFaces=true] - Whether or not to recalculate the tile faces after the update.\r\n * @param {boolean} [updateLayer=true] - If true, updates the current tiles on the layer. Set to false if no tiles have been placed for significant performance boost.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n setCollision: function (indexes, collides, recalculateFaces, updateLayer)\r\n {\r\n TilemapComponents.SetCollision(indexes, collides, recalculateFaces, this.layer, updateLayer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets collision on a range of tiles in a layer whose index is between the specified `start` and\r\n * `stop` (inclusive). Calling this with a start value of 10 and a stop value of 14 would set\r\n * collision for tiles 10, 11, 12, 13 and 14. The `collides` parameter controls if collision will be\r\n * enabled (true) or disabled (false).\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#setCollisionBetween\r\n * @since 3.50.0\r\n *\r\n * @param {number} start - The first index of the tile to be set for collision.\r\n * @param {number} stop - The last index of the tile to be set for collision.\r\n * @param {boolean} [collides=true] - If true it will enable collision. If false it will clear collision.\r\n * @param {boolean} [recalculateFaces=true] - Whether or not to recalculate the tile faces after the update.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n setCollisionBetween: function (start, stop, collides, recalculateFaces)\r\n {\r\n TilemapComponents.SetCollisionBetween(start, stop, collides, recalculateFaces, this.layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets collision on the tiles within a layer by checking tile properties. If a tile has a property\r\n * that matches the given properties object, its collision flag will be set. The `collides`\r\n * parameter controls if collision will be enabled (true) or disabled (false). Passing in\r\n * `{ collides: true }` would update the collision flag on any tiles with a \"collides\" property that\r\n * has a value of true. Any tile that doesn't have \"collides\" set to true will be ignored. You can\r\n * also use an array of values, e.g. `{ types: [\"stone\", \"lava\", \"sand\" ] }`. If a tile has a\r\n * \"types\" property that matches any of those values, its collision flag will be updated.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#setCollisionByProperty\r\n * @since 3.50.0\r\n *\r\n * @param {object} properties - An object with tile properties and corresponding values that should be checked.\r\n * @param {boolean} [collides=true] - If true it will enable collision. If false it will clear collision.\r\n * @param {boolean} [recalculateFaces=true] - Whether or not to recalculate the tile faces after the update.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n setCollisionByProperty: function (properties, collides, recalculateFaces)\r\n {\r\n TilemapComponents.SetCollisionByProperty(properties, collides, recalculateFaces, this.layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets collision on all tiles in the given layer, except for tiles that have an index specified in\r\n * the given array. The `collides` parameter controls if collision will be enabled (true) or\r\n * disabled (false). Tile indexes not currently in the layer are not affected.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#setCollisionByExclusion\r\n * @since 3.50.0\r\n *\r\n * @param {number[]} indexes - An array of the tile indexes to not be counted for collision.\r\n * @param {boolean} [collides=true] - If true it will enable collision. If false it will clear collision.\r\n * @param {boolean} [recalculateFaces=true] - Whether or not to recalculate the tile faces after the update.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n setCollisionByExclusion: function (indexes, collides, recalculateFaces)\r\n {\r\n TilemapComponents.SetCollisionByExclusion(indexes, collides, recalculateFaces, this.layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets collision on the tiles within a layer by checking each tiles collision group data\r\n * (typically defined in Tiled within the tileset collision editor). If any objects are found within\r\n * a tiles collision group, the tile's colliding information will be set. The `collides` parameter\r\n * controls if collision will be enabled (true) or disabled (false).\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#setCollisionFromCollisionGroup\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [collides=true] - If true it will enable collision. If false it will clear collision.\r\n * @param {boolean} [recalculateFaces=true] - Whether or not to recalculate the tile faces after the update.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n setCollisionFromCollisionGroup: function (collides, recalculateFaces)\r\n {\r\n TilemapComponents.SetCollisionFromCollisionGroup(collides, recalculateFaces, this.layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a global collision callback for the given tile index within the layer. This will affect all\r\n * tiles on this layer that have the same index. If a callback is already set for the tile index it\r\n * will be replaced. Set the callback to null to remove it. If you want to set a callback for a tile\r\n * at a specific location on the map then see setTileLocationCallback.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#setTileIndexCallback\r\n * @since 3.50.0\r\n *\r\n * @param {(number|number[])} indexes - Either a single tile index, or an array of tile indexes to have a collision callback set for.\r\n * @param {function} callback - The callback that will be invoked when the tile is collided with.\r\n * @param {object} callbackContext - The context under which the callback is called.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n setTileIndexCallback: function (indexes, callback, callbackContext)\r\n {\r\n TilemapComponents.SetTileIndexCallback(indexes, callback, callbackContext, this.layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets a collision callback for the given rectangular area (in tile coordinates) within the layer.\r\n * If a callback is already set for the tile index it will be replaced. Set the callback to null to\r\n * remove it.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#setTileLocationCallback\r\n * @since 3.50.0\r\n *\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n * @param {function} [callback] - The callback that will be invoked when the tile is collided with.\r\n * @param {object} [callbackContext] - The context, or scope, under which the callback is invoked.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n setTileLocationCallback: function (tileX, tileY, width, height, callback, callbackContext)\r\n {\r\n TilemapComponents.SetTileLocationCallback(tileX, tileY, width, height, callback, callbackContext, this.layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Shuffles the tiles in a rectangular region (specified in tile coordinates) within the given\r\n * layer. It will only randomize the tiles in that area, so if they're all the same nothing will\r\n * appear to have changed! This method only modifies tile indexes and does not change collision\r\n * information.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#shuffle\r\n * @since 3.50.0\r\n *\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n shuffle: function (tileX, tileY, width, height)\r\n {\r\n TilemapComponents.Shuffle(tileX, tileY, width, height, this.layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Scans the given rectangular area (given in tile coordinates) for tiles with an index matching\r\n * `indexA` and swaps then with `indexB`. This only modifies the index and does not change collision\r\n * information.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#swapByIndex\r\n * @since 3.50.0\r\n *\r\n * @param {number} tileA - First tile index.\r\n * @param {number} tileB - Second tile index.\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n swapByIndex: function (indexA, indexB, tileX, tileY, width, height)\r\n {\r\n TilemapComponents.SwapByIndex(indexA, indexB, tileX, tileY, width, height, this.layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Converts from tile X coordinates (tile units) to world X coordinates (pixels), factoring in the\r\n * layers position, scale and scroll.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#tileToWorldX\r\n * @since 3.50.0\r\n *\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when calculating the tile index from the world values.\r\n *\r\n * @return {number} The Tile X coordinate converted to pixels.\r\n */\r\n tileToWorldX: function (tileX, camera)\r\n {\r\n return this.tilemap.tileToWorldX(tileX, camera, this);\r\n },\r\n\r\n /**\r\n * Converts from tile Y coordinates (tile units) to world Y coordinates (pixels), factoring in the\r\n * layers position, scale and scroll.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#tileToWorldY\r\n * @since 3.50.0\r\n *\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when calculating the tile index from the world values.\r\n *\r\n * @return {number} The Tile Y coordinate converted to pixels.\r\n */\r\n tileToWorldY: function (tileY, camera)\r\n {\r\n return this.tilemap.tileToWorldY(tileY, camera, this);\r\n },\r\n\r\n /**\r\n * Converts from tile XY coordinates (tile units) to world XY coordinates (pixels), factoring in the\r\n * layers position, scale and scroll. This will return a new Vector2 object or update the given\r\n * `point` object.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#tileToWorldXY\r\n * @since 3.50.0\r\n *\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when calculating the tile index from the world values.\r\n *\r\n * @return {Phaser.Math.Vector2} A Vector2 containing the world coordinates of the Tile.\r\n */\r\n tileToWorldXY: function (tileX, tileY, point, camera)\r\n {\r\n return this.tilemap.tileToWorldXY(tileX, tileY, point, camera, this);\r\n },\r\n\r\n /**\r\n * Returns an array of Vector2s where each entry corresponds to the corner of the requested tile.\r\n *\r\n * The `tileX` and `tileY` parameters are in tile coordinates, not world coordinates.\r\n *\r\n * The corner coordinates are in world space, having factored in TilemapLayer scale, position\r\n * and the camera, if given.\r\n *\r\n * The size of the array will vary based on the orientation of the map. For example an\r\n * orthographic map will return an array of 4 vectors, where-as a hexagonal map will,\r\n * of course, return an array of 6 corner vectors.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#getTileCorners\r\n * @since 3.60.0\r\n *\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when calculating the tile index from the world values.\r\n *\r\n * @return {?Phaser.Math.Vector2[]} Returns an array of Vector2s, or null if the layer given was invalid.\r\n */\r\n getTileCorners: function (tileX, tileY, camera)\r\n {\r\n return this.tilemap.getTileCorners(tileX, tileY, camera, this);\r\n },\r\n\r\n /**\r\n * Randomizes the indexes of a rectangular region of tiles (in tile coordinates) within the\r\n * specified layer. Each tile will receive a new index. New indexes are drawn from the given\r\n * weightedIndexes array. An example weighted array:\r\n *\r\n * [\r\n * { index: 6, weight: 4 }, // Probability of index 6 is 4 / 8\r\n * { index: 7, weight: 2 }, // Probability of index 7 would be 2 / 8\r\n * { index: 8, weight: 1.5 }, // Probability of index 8 would be 1.5 / 8\r\n * { index: 26, weight: 0.5 } // Probability of index 27 would be 0.5 / 8\r\n * ]\r\n *\r\n * The probability of any index being choose is (the index's weight) / (sum of all weights). This\r\n * method only modifies tile indexes and does not change collision information.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#weightedRandomize\r\n * @since 3.50.0\r\n *\r\n * @param {object[]} weightedIndexes - An array of objects to randomly draw from during randomization. They should be in the form: { index: 0, weight: 4 } or { index: [0, 1], weight: 4 } if you wish to draw from multiple tile indexes.\r\n * @param {number} [tileX] - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [tileY] - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} [width] - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} [height] - How many tiles tall from the `tileY` index the area will be.\r\n *\r\n * @return {this} This Tilemap Layer object.\r\n */\r\n weightedRandomize: function (weightedIndexes, tileX, tileY, width, height)\r\n {\r\n TilemapComponents.WeightedRandomize(tileX, tileY, width, height, weightedIndexes, this.layer);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Converts from world X coordinates (pixels) to tile X coordinates (tile units), factoring in the\r\n * layers position, scale and scroll.\r\n *\r\n * You cannot call this method for Isometric or Hexagonal tilemaps as they require\r\n * both `worldX` and `worldY` values to determine the correct tile, instead you\r\n * should use the `worldToTileXY` method.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#worldToTileX\r\n * @since 3.50.0\r\n *\r\n * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles.\r\n * @param {boolean} [snapToFloor] - Whether or not to round the tile coordinate down to the nearest integer.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when calculating the tile index from the world values.\r\n *\r\n * @return {number} The tile X coordinate based on the world value.\r\n */\r\n worldToTileX: function (worldX, snapToFloor, camera)\r\n {\r\n return this.tilemap.worldToTileX(worldX, snapToFloor, camera, this);\r\n },\r\n\r\n /**\r\n * Converts from world Y coordinates (pixels) to tile Y coordinates (tile units), factoring in the\r\n * layers position, scale and scroll.\r\n *\r\n * You cannot call this method for Isometric or Hexagonal tilemaps as they require\r\n * both `worldX` and `worldY` values to determine the correct tile, instead you\r\n * should use the `worldToTileXY` method.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#worldToTileY\r\n * @since 3.50.0\r\n *\r\n * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles.\r\n * @param {boolean} [snapToFloor] - Whether or not to round the tile coordinate down to the nearest integer.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when calculating the tile index from the world values.\r\n *\r\n * @return {number} The tile Y coordinate based on the world value.\r\n */\r\n worldToTileY: function (worldY, snapToFloor, camera)\r\n {\r\n return this.tilemap.worldToTileY(worldY, snapToFloor, camera, this);\r\n },\r\n\r\n /**\r\n * Converts from world XY coordinates (pixels) to tile XY coordinates (tile units), factoring in the\r\n * layers position, scale and scroll. This will return a new Vector2 object or update the given\r\n * `point` object.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#worldToTileXY\r\n * @since 3.50.0\r\n *\r\n * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles.\r\n * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles.\r\n * @param {boolean} [snapToFloor] - Whether or not to round the tile coordinate down to the nearest integer.\r\n * @param {Phaser.Math.Vector2} [point] - A Vector2 to store the coordinates in. If not given a new Vector2 is created.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to use when calculating the tile index from the world values.\r\n *\r\n * @return {Phaser.Math.Vector2} A Vector2 containing the tile coordinates of the world values.\r\n */\r\n worldToTileXY: function (worldX, worldY, snapToFloor, point, camera)\r\n {\r\n return this.tilemap.worldToTileXY(worldX, worldY, snapToFloor, point, camera, this);\r\n },\r\n\r\n /**\r\n * Destroys this TilemapLayer and removes its link to the associated LayerData.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#destroy\r\n * @since 3.50.0\r\n *\r\n * @param {boolean} [removeFromTilemap=true] - Remove this layer from the parent Tilemap?\r\n */\r\n destroy: function (removeFromTilemap)\r\n {\r\n if (removeFromTilemap === undefined) { removeFromTilemap = true; }\r\n\r\n if (!this.tilemap)\r\n {\r\n // Abort, we've already been destroyed\r\n return;\r\n }\r\n\r\n // Uninstall this layer only if it is still installed on the LayerData object\r\n if (this.layer.tilemapLayer === this)\r\n {\r\n this.layer.tilemapLayer = undefined;\r\n }\r\n\r\n if (removeFromTilemap)\r\n {\r\n this.tilemap.removeLayer(this);\r\n }\r\n\r\n this.tilemap = undefined;\r\n this.layer = undefined;\r\n this.culledTiles.length = 0;\r\n this.cullCallback = null;\r\n\r\n this.gidMap = [];\r\n this.tileset = [];\r\n\r\n GameObject.prototype.destroy.call(this);\r\n }\r\n\r\n});\r\n\r\nmodule.exports = TilemapLayer;\r\n\n\n/***/ }),\n\n/***/ 16153:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar TransformMatrix = __webpack_require__(61340);\r\n\r\nvar tempMatrix1 = new TransformMatrix();\r\nvar tempMatrix2 = new TransformMatrix();\r\nvar tempMatrix3 = new TransformMatrix();\r\n\r\n/**\r\n * Renders this Game Object with the Canvas Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#renderCanvas\r\n * @since 3.50.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.Canvas.CanvasRenderer} renderer - A reference to the current active Canvas renderer.\r\n * @param {Phaser.Tilemaps.TilemapLayer} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n * @param {Phaser.GameObjects.Components.TransformMatrix} parentMatrix - This transform matrix is defined if the game object is nested\r\n */\r\nvar TilemapLayerCanvasRenderer = function (renderer, src, camera, parentMatrix)\r\n{\r\n var renderTiles = src.cull(camera);\r\n\r\n var tileCount = renderTiles.length;\r\n var alpha = camera.alpha * src.alpha;\r\n\r\n if (tileCount === 0 || alpha <= 0)\r\n {\r\n return;\r\n }\r\n\r\n var camMatrix = tempMatrix1;\r\n var layerMatrix = tempMatrix2;\r\n var calcMatrix = tempMatrix3;\r\n\r\n layerMatrix.applyITRS(src.x, src.y, src.rotation, src.scaleX, src.scaleY);\r\n\r\n camMatrix.copyFrom(camera.matrix);\r\n\r\n var ctx = renderer.currentContext;\r\n var gidMap = src.gidMap;\r\n\r\n ctx.save();\r\n\r\n if (parentMatrix)\r\n {\r\n // Multiply the camera by the parent matrix\r\n camMatrix.multiplyWithOffset(parentMatrix, -camera.scrollX * src.scrollFactorX, -camera.scrollY * src.scrollFactorY);\r\n\r\n // Undo the camera scroll\r\n layerMatrix.e = src.x;\r\n layerMatrix.f = src.y;\r\n\r\n // Multiply by the Sprite matrix, store result in calcMatrix\r\n camMatrix.multiply(layerMatrix, calcMatrix);\r\n\r\n calcMatrix.copyToContext(ctx);\r\n }\r\n else\r\n {\r\n layerMatrix.e -= camera.scrollX * src.scrollFactorX;\r\n layerMatrix.f -= camera.scrollY * src.scrollFactorY;\r\n\r\n layerMatrix.copyToContext(ctx);\r\n }\r\n\r\n if (!renderer.antialias || src.scaleX > 1 || src.scaleY > 1)\r\n {\r\n ctx.imageSmoothingEnabled = false;\r\n }\r\n\r\n for (var i = 0; i < tileCount; i++)\r\n {\r\n var tile = renderTiles[i];\r\n\r\n var tileset = gidMap[tile.index];\r\n\r\n if (!tileset)\r\n {\r\n continue;\r\n }\r\n\r\n var image = tileset.image.getSourceImage();\r\n\r\n var tileTexCoords = tileset.getTileTextureCoordinates(tile.index);\r\n var tileWidth = tileset.tileWidth;\r\n var tileHeight = tileset.tileHeight;\r\n\r\n if (tileTexCoords === null || tileWidth === 0 || tileHeight === 0)\r\n {\r\n continue;\r\n }\r\n\r\n var halfWidth = tileWidth * 0.5;\r\n var halfHeight = tileHeight * 0.5;\r\n\r\n tileTexCoords.x += tileset.tileOffset.x;\r\n tileTexCoords.y += tileset.tileOffset.y;\r\n\r\n ctx.save();\r\n\r\n ctx.translate(tile.pixelX + halfWidth, tile.pixelY + halfHeight);\r\n\r\n if (tile.rotation !== 0)\r\n {\r\n ctx.rotate(tile.rotation);\r\n }\r\n\r\n if (tile.flipX || tile.flipY)\r\n {\r\n ctx.scale((tile.flipX) ? -1 : 1, (tile.flipY) ? -1 : 1);\r\n }\r\n\r\n ctx.globalAlpha = alpha * tile.alpha;\r\n\r\n ctx.drawImage(\r\n image,\r\n tileTexCoords.x, tileTexCoords.y,\r\n tileWidth , tileHeight,\r\n -halfWidth, -halfHeight,\r\n tileWidth, tileHeight\r\n );\r\n\r\n ctx.restore();\r\n }\r\n\r\n ctx.restore();\r\n};\r\n\r\nmodule.exports = TilemapLayerCanvasRenderer;\r\n\n\n/***/ }),\n\n/***/ 19218:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar NOOP = __webpack_require__(29747);\r\nvar renderWebGL = NOOP;\r\nvar renderCanvas = NOOP;\r\n\r\nif (true)\r\n{\r\n renderWebGL = __webpack_require__(99558);\r\n}\r\n\r\nif (true)\r\n{\r\n renderCanvas = __webpack_require__(16153);\r\n}\r\n\r\nmodule.exports = {\r\n\r\n renderWebGL: renderWebGL,\r\n renderCanvas: renderCanvas\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 99558:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Utils = __webpack_require__(70554);\r\n\r\n/**\r\n * Renders this Game Object with the WebGL Renderer to the given Camera.\r\n * The object will not render if any of its renderFlags are set or it is being actively filtered out by the Camera.\r\n * This method should not be called directly. It is a utility function of the Render module.\r\n *\r\n * @method Phaser.Tilemaps.TilemapLayer#renderWebGL\r\n * @since 3.0.0\r\n * @private\r\n *\r\n * @param {Phaser.Renderer.WebGL.WebGLRenderer} renderer - A reference to the current active WebGL renderer.\r\n * @param {Phaser.Tilemaps.TilemapLayer} src - The Game Object being rendered in this call.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera that is rendering the Game Object.\r\n */\r\nvar TilemapLayerWebGLRenderer = function (renderer, src, camera)\r\n{\r\n var renderTiles = src.cull(camera);\r\n\r\n var tileCount = renderTiles.length;\r\n var alpha = camera.alpha * src.alpha;\r\n\r\n if (tileCount === 0 || alpha <= 0)\r\n {\r\n return;\r\n }\r\n\r\n var gidMap = src.gidMap;\r\n var pipeline = renderer.pipelines.set(src.pipeline, src);\r\n\r\n var getTint = Utils.getTintAppendFloatAlpha;\r\n\r\n var scrollFactorX = src.scrollFactorX;\r\n var scrollFactorY = src.scrollFactorY;\r\n\r\n var x = src.x;\r\n var y = src.y;\r\n\r\n var sx = src.scaleX;\r\n var sy = src.scaleY;\r\n\r\n renderer.pipelines.preBatch(src);\r\n\r\n for (var i = 0; i < tileCount; i++)\r\n {\r\n var tile = renderTiles[i];\r\n\r\n var tileset = gidMap[tile.index];\r\n\r\n if (!tileset)\r\n {\r\n continue;\r\n }\r\n\r\n var tileTexCoords = tileset.getTileTextureCoordinates(tile.index);\r\n var tileWidth = tileset.tileWidth;\r\n var tileHeight = tileset.tileHeight;\r\n\r\n if (!tileTexCoords || tileWidth === 0 || tileHeight === 0)\r\n {\r\n continue;\r\n }\r\n\r\n var halfWidth = tileWidth * 0.5;\r\n var halfHeight = tileHeight * 0.5;\r\n\r\n var texture = tileset.glTexture;\r\n\r\n var textureUnit = pipeline.setTexture2D(texture, src);\r\n\r\n var frameWidth = tileWidth;\r\n var frameHeight = tileHeight;\r\n\r\n var frameX = tileTexCoords.x;\r\n var frameY = tileTexCoords.y;\r\n\r\n var tOffsetX = tileset.tileOffset.x;\r\n var tOffsetY = tileset.tileOffset.y;\r\n\r\n var tint = getTint(tile.tint, alpha * tile.alpha);\r\n\r\n pipeline.batchTexture(\r\n src,\r\n texture,\r\n texture.width, texture.height,\r\n x + tile.pixelX * sx + (halfWidth * sx - tOffsetX),\r\n y + tile.pixelY * sy + (halfHeight * sy - tOffsetY),\r\n tileWidth, tileHeight,\r\n sx, sy,\r\n tile.rotation,\r\n tile.flipX, tile.flipY,\r\n scrollFactorX, scrollFactorY,\r\n halfWidth, halfHeight,\r\n frameX, frameY, frameWidth, frameHeight,\r\n tint, tint, tint, tint, tile.tintFill,\r\n 0, 0,\r\n camera,\r\n null,\r\n true,\r\n textureUnit,\r\n true\r\n );\r\n }\r\n\r\n renderer.pipelines.postBatch(src);\r\n};\r\n\r\nmodule.exports = TilemapLayerWebGLRenderer;\r\n\n\n/***/ }),\n\n/***/ 33629:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * @classdesc\r\n * A Tileset is a combination of a single image containing the tiles and a container for data about\r\n * each tile.\r\n *\r\n * @class Tileset\r\n * @memberof Phaser.Tilemaps\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {string} name - The name of the tileset in the map data.\r\n * @param {number} firstgid - The first tile index this tileset contains.\r\n * @param {number} [tileWidth=32] - Width of each tile (in pixels).\r\n * @param {number} [tileHeight=32] - Height of each tile (in pixels).\r\n * @param {number} [tileMargin=0] - The margin around all tiles in the sheet (in pixels).\r\n * @param {number} [tileSpacing=0] - The spacing between each tile in the sheet (in pixels).\r\n * @param {object} [tileProperties={}] - Custom properties defined per tile in the Tileset.\r\n * These typically are custom properties created in Tiled when editing a tileset.\r\n * @param {object} [tileData={}] - Data stored per tile. These typically are created in Tiled when editing a tileset, e.g. from Tiled's tile collision editor or terrain editor.\r\n * @param {object} [tileOffset={x: 0, y: 0}] - Tile texture drawing offset.\r\n */\r\nvar Tileset = new Class({\r\n\r\n initialize:\r\n\r\n function Tileset (name, firstgid, tileWidth, tileHeight, tileMargin, tileSpacing, tileProperties, tileData, tileOffset)\r\n {\r\n if (tileWidth === undefined || tileWidth <= 0) { tileWidth = 32; }\r\n if (tileHeight === undefined || tileHeight <= 0) { tileHeight = 32; }\r\n if (tileMargin === undefined) { tileMargin = 0; }\r\n if (tileSpacing === undefined) { tileSpacing = 0; }\r\n if (tileProperties === undefined) { tileProperties = {}; }\r\n if (tileData === undefined) { tileData = {}; }\r\n\r\n /**\r\n * The name of the Tileset.\r\n *\r\n * @name Phaser.Tilemaps.Tileset#name\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.name = name;\r\n\r\n /**\r\n * The starting index of the first tile index this Tileset contains.\r\n *\r\n * @name Phaser.Tilemaps.Tileset#firstgid\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.firstgid = firstgid;\r\n\r\n /**\r\n * The width of each tile (in pixels). Use setTileSize to change.\r\n *\r\n * @name Phaser.Tilemaps.Tileset#tileWidth\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.tileWidth = tileWidth;\r\n\r\n /**\r\n * The height of each tile (in pixels). Use setTileSize to change.\r\n *\r\n * @name Phaser.Tilemaps.Tileset#tileHeight\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.tileHeight = tileHeight;\r\n\r\n /**\r\n * The margin around the tiles in the sheet (in pixels). Use `setSpacing` to change.\r\n *\r\n * @name Phaser.Tilemaps.Tileset#tileMargin\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.tileMargin = tileMargin;\r\n\r\n /**\r\n * The spacing between each the tile in the sheet (in pixels). Use `setSpacing` to change.\r\n *\r\n * @name Phaser.Tilemaps.Tileset#tileSpacing\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.tileSpacing = tileSpacing;\r\n\r\n /**\r\n * Tileset-specific properties per tile that are typically defined in the Tiled editor in the\r\n * Tileset editor.\r\n *\r\n * @name Phaser.Tilemaps.Tileset#tileProperties\r\n * @type {object}\r\n * @since 3.0.0\r\n */\r\n this.tileProperties = tileProperties;\r\n\r\n /**\r\n * Tileset-specific data per tile that are typically defined in the Tiled editor, e.g. within\r\n * the Tileset collision editor. This is where collision objects and terrain are stored.\r\n *\r\n * @name Phaser.Tilemaps.Tileset#tileData\r\n * @type {object}\r\n * @since 3.0.0\r\n */\r\n this.tileData = tileData;\r\n\r\n /**\r\n * Controls the drawing offset from the tile origin.\r\n * Defaults to 0x0, no offset.\r\n *\r\n * @name Phaser.Tilemaps.Tileset#tileOffset\r\n * @type {Phaser.Math.Vector2}\r\n * @since 3.60.0\r\n */\r\n this.tileOffset = new Vector2();\r\n\r\n if (tileOffset !== undefined)\r\n {\r\n this.tileOffset.set(tileOffset.x, tileOffset.y);\r\n }\r\n\r\n /**\r\n * The cached image that contains the individual tiles. Use setImage to set.\r\n *\r\n * @name Phaser.Tilemaps.Tileset#image\r\n * @type {?Phaser.Textures.Texture}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.image = null;\r\n\r\n /**\r\n * The gl texture used by the WebGL renderer.\r\n *\r\n * @name Phaser.Tilemaps.Tileset#glTexture\r\n * @type {?Phaser.Renderer.WebGL.Wrappers.WebGLTextureWrapper}\r\n * @readonly\r\n * @since 3.11.0\r\n */\r\n this.glTexture = null;\r\n\r\n /**\r\n * The number of tile rows in the the tileset.\r\n *\r\n * @name Phaser.Tilemaps.Tileset#rows\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.rows = 0;\r\n\r\n /**\r\n * The number of tile columns in the tileset.\r\n *\r\n * @name Phaser.Tilemaps.Tileset#columns\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.columns = 0;\r\n\r\n /**\r\n * The total number of tiles in the tileset.\r\n *\r\n * @name Phaser.Tilemaps.Tileset#total\r\n * @type {number}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.total = 0;\r\n\r\n /**\r\n * The look-up table to specific tile image texture coordinates (UV in pixels). Each element\r\n * contains the coordinates for a tile in an object of the form {x, y}.\r\n *\r\n * @name Phaser.Tilemaps.Tileset#texCoordinates\r\n * @type {object[]}\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.texCoordinates = [];\r\n },\r\n\r\n /**\r\n * Get a tiles properties that are stored in the Tileset. Returns null if tile index is not\r\n * contained in this Tileset. This is typically defined in Tiled under the Tileset editor.\r\n *\r\n * @method Phaser.Tilemaps.Tileset#getTileProperties\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileIndex - The unique id of the tile across all tilesets in the map.\r\n *\r\n * @return {?(object|undefined)}\r\n */\r\n getTileProperties: function (tileIndex)\r\n {\r\n if (!this.containsTileIndex(tileIndex)) { return null; }\r\n\r\n return this.tileProperties[tileIndex - this.firstgid];\r\n },\r\n\r\n /**\r\n * Get a tile's data that is stored in the Tileset. Returns null if tile index is not contained\r\n * in this Tileset. This is typically defined in Tiled and will contain both Tileset collision\r\n * info and terrain mapping.\r\n *\r\n * @method Phaser.Tilemaps.Tileset#getTileData\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileIndex - The unique id of the tile across all tilesets in the map.\r\n *\r\n * @return {?object|undefined}\r\n */\r\n getTileData: function (tileIndex)\r\n {\r\n if (!this.containsTileIndex(tileIndex)) { return null; }\r\n\r\n return this.tileData[tileIndex - this.firstgid];\r\n },\r\n\r\n /**\r\n * Get a tile's collision group that is stored in the Tileset. Returns null if tile index is not\r\n * contained in this Tileset. This is typically defined within Tiled's tileset collision editor.\r\n *\r\n * @method Phaser.Tilemaps.Tileset#getTileCollisionGroup\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileIndex - The unique id of the tile across all tilesets in the map.\r\n *\r\n * @return {?object}\r\n */\r\n getTileCollisionGroup: function (tileIndex)\r\n {\r\n var data = this.getTileData(tileIndex);\r\n\r\n return (data && data.objectgroup) ? data.objectgroup : null;\r\n },\r\n\r\n /**\r\n * Returns true if and only if this Tileset contains the given tile index.\r\n *\r\n * @method Phaser.Tilemaps.Tileset#containsTileIndex\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileIndex - The unique id of the tile across all tilesets in the map.\r\n *\r\n * @return {boolean}\r\n */\r\n containsTileIndex: function (tileIndex)\r\n {\r\n return (\r\n tileIndex >= this.firstgid &&\r\n tileIndex < (this.firstgid + this.total)\r\n );\r\n },\r\n\r\n /**\r\n * Returns the texture coordinates (UV in pixels) in the Tileset image for the given tile index.\r\n * Returns null if tile index is not contained in this Tileset.\r\n *\r\n * @method Phaser.Tilemaps.Tileset#getTileTextureCoordinates\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileIndex - The unique id of the tile across all tilesets in the map.\r\n *\r\n * @return {?object} Object in the form { x, y } representing the top-left UV coordinate\r\n * within the Tileset image.\r\n */\r\n getTileTextureCoordinates: function (tileIndex)\r\n {\r\n if (!this.containsTileIndex(tileIndex)) { return null; }\r\n\r\n return this.texCoordinates[tileIndex - this.firstgid];\r\n },\r\n\r\n /**\r\n * Sets the image associated with this Tileset and updates the tile data (rows, columns, etc.).\r\n *\r\n * @method Phaser.Tilemaps.Tileset#setImage\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Textures.Texture} texture - The image that contains the tiles.\r\n *\r\n * @return {Phaser.Tilemaps.Tileset} This Tileset object.\r\n */\r\n setImage: function (texture)\r\n {\r\n this.image = texture;\r\n\r\n var frame = texture.get();\r\n\r\n var bounds = texture.getFrameBounds();\r\n\r\n this.glTexture = frame.source.glTexture;\r\n\r\n if (frame.width > bounds.width || frame.height > bounds.height)\r\n {\r\n this.updateTileData(frame.width, frame.height);\r\n }\r\n else\r\n {\r\n this.updateTileData(bounds.width, bounds.height, bounds.x, bounds.y);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the tile width & height and updates the tile data (rows, columns, etc.).\r\n *\r\n * @method Phaser.Tilemaps.Tileset#setTileSize\r\n * @since 3.0.0\r\n *\r\n * @param {number} [tileWidth] - The width of a tile in pixels.\r\n * @param {number} [tileHeight] - The height of a tile in pixels.\r\n *\r\n * @return {Phaser.Tilemaps.Tileset} This Tileset object.\r\n */\r\n setTileSize: function (tileWidth, tileHeight)\r\n {\r\n if (tileWidth !== undefined) { this.tileWidth = tileWidth; }\r\n if (tileHeight !== undefined) { this.tileHeight = tileHeight; }\r\n\r\n if (this.image)\r\n {\r\n this.updateTileData(this.image.source[0].width, this.image.source[0].height);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets the tile margin and spacing and updates the tile data (rows, columns, etc.).\r\n *\r\n * @method Phaser.Tilemaps.Tileset#setSpacing\r\n * @since 3.0.0\r\n *\r\n * @param {number} [margin] - The margin around the tiles in the sheet (in pixels).\r\n * @param {number} [spacing] - The spacing between the tiles in the sheet (in pixels).\r\n *\r\n * @return {Phaser.Tilemaps.Tileset} This Tileset object.\r\n */\r\n setSpacing: function (margin, spacing)\r\n {\r\n if (margin !== undefined) { this.tileMargin = margin; }\r\n if (spacing !== undefined) { this.tileSpacing = spacing; }\r\n\r\n if (this.image)\r\n {\r\n this.updateTileData(this.image.source[0].width, this.image.source[0].height);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Updates tile texture coordinates and tileset data.\r\n *\r\n * @method Phaser.Tilemaps.Tileset#updateTileData\r\n * @since 3.0.0\r\n *\r\n * @param {number} imageWidth - The (expected) width of the image to slice.\r\n * @param {number} imageHeight - The (expected) height of the image to slice.\r\n * @param {number} [offsetX=0] - The x offset in the source texture where the tileset starts.\r\n * @param {number} [offsetY=0] - The y offset in the source texture where the tileset starts.\r\n *\r\n * @return {Phaser.Tilemaps.Tileset} This Tileset object.\r\n */\r\n updateTileData: function (imageWidth, imageHeight, offsetX, offsetY)\r\n {\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n var rowCount = (imageHeight - this.tileMargin * 2 + this.tileSpacing) / (this.tileHeight + this.tileSpacing);\r\n var colCount = (imageWidth - this.tileMargin * 2 + this.tileSpacing) / (this.tileWidth + this.tileSpacing);\r\n\r\n if (rowCount % 1 !== 0 || colCount % 1 !== 0)\r\n {\r\n console.warn('Image tile area not tile size multiple in: ' + this.name);\r\n }\r\n\r\n // In Tiled a tileset image that is not an even multiple of the tile dimensions is truncated\r\n // - hence the floor when calculating the rows/columns.\r\n rowCount = Math.floor(rowCount);\r\n colCount = Math.floor(colCount);\r\n\r\n this.rows = rowCount;\r\n this.columns = colCount;\r\n\r\n // In Tiled, \"empty\" spaces in a tileset count as tiles and hence count towards the gid\r\n this.total = rowCount * colCount;\r\n\r\n this.texCoordinates.length = 0;\r\n\r\n var tx = this.tileMargin + offsetX;\r\n var ty = this.tileMargin + offsetY;\r\n\r\n for (var y = 0; y < this.rows; y++)\r\n {\r\n for (var x = 0; x < this.columns; x++)\r\n {\r\n this.texCoordinates.push({ x: tx, y: ty });\r\n tx += this.tileWidth + this.tileSpacing;\r\n }\r\n\r\n tx = this.tileMargin + offsetX;\r\n ty += this.tileHeight + this.tileSpacing;\r\n }\r\n\r\n return this;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = Tileset;\r\n\n\n/***/ }),\n\n/***/ 72023:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetTileAt = __webpack_require__(7423);\r\n\r\n/**\r\n * Calculates interesting faces at the given tile coordinates of the specified layer. Interesting\r\n * faces are used internally for optimizing collisions against tiles. This method is mostly used\r\n * internally to optimize recalculating faces when only one tile has been changed.\r\n *\r\n * @function Phaser.Tilemaps.Components.CalculateFacesAt\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileX - The x coordinate.\r\n * @param {number} tileY - The y coordinate.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n */\r\nvar CalculateFacesAt = function (tileX, tileY, layer)\r\n{\r\n var tile = GetTileAt(tileX, tileY, true, layer);\r\n var above = GetTileAt(tileX, tileY - 1, true, layer);\r\n var below = GetTileAt(tileX, tileY + 1, true, layer);\r\n var left = GetTileAt(tileX - 1, tileY, true, layer);\r\n var right = GetTileAt(tileX + 1, tileY, true, layer);\r\n var tileCollides = tile && tile.collides;\r\n\r\n // Assume the changed tile has all interesting edges\r\n if (tileCollides)\r\n {\r\n tile.faceTop = true;\r\n tile.faceBottom = true;\r\n tile.faceLeft = true;\r\n tile.faceRight = true;\r\n }\r\n\r\n // Reset edges that are shared between tile and its neighbors\r\n if (above && above.collides)\r\n {\r\n if (tileCollides)\r\n {\r\n tile.faceTop = false;\r\n }\r\n\r\n above.faceBottom = !tileCollides;\r\n }\r\n\r\n if (below && below.collides)\r\n {\r\n if (tileCollides)\r\n {\r\n tile.faceBottom = false;\r\n }\r\n\r\n below.faceTop = !tileCollides;\r\n }\r\n\r\n if (left && left.collides)\r\n {\r\n if (tileCollides)\r\n {\r\n tile.faceLeft = false;\r\n }\r\n\r\n left.faceRight = !tileCollides;\r\n }\r\n\r\n if (right && right.collides)\r\n {\r\n if (tileCollides)\r\n {\r\n tile.faceRight = false;\r\n }\r\n\r\n right.faceLeft = !tileCollides;\r\n }\r\n\r\n if (tile && !tile.collides)\r\n {\r\n tile.resetFaces();\r\n }\r\n\r\n return tile;\r\n};\r\n\r\nmodule.exports = CalculateFacesAt;\r\n\n\n/***/ }),\n\n/***/ 42573:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetTileAt = __webpack_require__(7423);\r\nvar GetTilesWithin = __webpack_require__(7386);\r\n\r\n/**\r\n * Calculates interesting faces within the rectangular area specified (in tile coordinates) of the\r\n * layer. Interesting faces are used internally for optimizing collisions against tiles. This method\r\n * is mostly used internally.\r\n *\r\n * @function Phaser.Tilemaps.Components.CalculateFacesWithin\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileX - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} tileY - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} width - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} height - How many tiles tall from the `tileY` index the area will be.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n */\r\nvar CalculateFacesWithin = function (tileX, tileY, width, height, layer)\r\n{\r\n var above = null;\r\n var below = null;\r\n var left = null;\r\n var right = null;\r\n\r\n var tiles = GetTilesWithin(tileX, tileY, width, height, null, layer);\r\n\r\n for (var i = 0; i < tiles.length; i++)\r\n {\r\n var tile = tiles[i];\r\n\r\n if (tile)\r\n {\r\n if (tile.collides)\r\n {\r\n above = GetTileAt(tile.x, tile.y - 1, true, layer);\r\n below = GetTileAt(tile.x, tile.y + 1, true, layer);\r\n left = GetTileAt(tile.x - 1, tile.y, true, layer);\r\n right = GetTileAt(tile.x + 1, tile.y, true, layer);\r\n\r\n tile.faceTop = (above && above.collides) ? false : true;\r\n tile.faceBottom = (below && below.collides) ? false : true;\r\n tile.faceLeft = (left && left.collides) ? false : true;\r\n tile.faceRight = (right && right.collides) ? false : true;\r\n }\r\n else\r\n {\r\n tile.resetFaces();\r\n }\r\n }\r\n }\r\n};\r\n\r\nmodule.exports = CalculateFacesWithin;\r\n\n\n/***/ }),\n\n/***/ 33528:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\nvar point = new Vector2();\r\n\r\n/**\r\n * Checks if the given tile coordinate is within the isometric layer bounds, or not.\r\n *\r\n * @function Phaser.Tilemaps.Components.CheckIsoBounds\r\n * @since 3.50.0\r\n *\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to check against.\r\n * @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to run the cull check against.\r\n *\r\n * @return {boolean} Returns `true` if the coordinates are within the iso bounds.\r\n */\r\nvar CheckIsoBounds = function (tileX, tileY, layer, camera)\r\n{\r\n var tilemapLayer = layer.tilemapLayer;\r\n\r\n var cullPaddingX = tilemapLayer.cullPaddingX;\r\n var cullPaddingY = tilemapLayer.cullPaddingY;\r\n\r\n var pos = tilemapLayer.tilemap.tileToWorldXY(tileX, tileY, point, camera, tilemapLayer);\r\n\r\n // we always subtract 1/2 of the tile's height/width to make the culling distance start from the center of the tiles.\r\n return pos.x > camera.worldView.x + tilemapLayer.scaleX * layer.tileWidth * (-cullPaddingX - 0.5)\r\n && pos.x < camera.worldView.right + tilemapLayer.scaleX * layer.tileWidth * (cullPaddingX - 0.5)\r\n && pos.y > camera.worldView.y + tilemapLayer.scaleY * layer.tileHeight * (-cullPaddingY - 1.0)\r\n && pos.y < camera.worldView.bottom + tilemapLayer.scaleY * layer.tileHeight * (cullPaddingY - 0.5);\r\n};\r\n\r\nmodule.exports = CheckIsoBounds;\r\n\n\n/***/ }),\n\n/***/ 1785:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CalculateFacesWithin = __webpack_require__(42573);\r\nvar GetTilesWithin = __webpack_require__(7386);\r\nvar IsInLayerBounds = __webpack_require__(62991);\r\nvar Tile = __webpack_require__(23029);\r\n\r\n/**\r\n * Copies the tiles in the source rectangular area to a new destination (all specified in tile\r\n * coordinates) within the layer. This copies all tile properties and recalculates collision\r\n * information in the destination region.\r\n *\r\n * @function Phaser.Tilemaps.Components.Copy\r\n * @since 3.0.0\r\n *\r\n * @param {number} srcTileX - The x coordinate of the area to copy from, in tiles, not pixels.\r\n * @param {number} srcTileY - The y coordinate of the area to copy from, in tiles, not pixels.\r\n * @param {number} width - The width of the area to copy, in tiles, not pixels.\r\n * @param {number} height - The height of the area to copy, in tiles, not pixels.\r\n * @param {number} destTileX - The x coordinate of the area to copy to, in tiles, not pixels.\r\n * @param {number} destTileY - The y coordinate of the area to copy to, in tiles, not pixels.\r\n * @param {boolean} recalculateFaces - `true` if the faces data should be recalculated.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n */\r\nvar Copy = function (srcTileX, srcTileY, width, height, destTileX, destTileY, recalculateFaces, layer)\r\n{\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n\r\n // Returns an array of Tile references\r\n var srcTiles = GetTilesWithin(srcTileX, srcTileY, width, height, null, layer);\r\n\r\n // Create a new array of fresh Tile objects\r\n var copyTiles = [];\r\n\r\n srcTiles.forEach(function (tile)\r\n {\r\n var newTile = new Tile(\r\n tile.layer,\r\n tile.index,\r\n tile.x,\r\n tile.y,\r\n tile.width,\r\n tile.height,\r\n tile.baseWidth,\r\n tile.baseHeight\r\n );\r\n\r\n newTile.copy(tile);\r\n\r\n copyTiles.push(newTile);\r\n });\r\n\r\n var offsetX = destTileX - srcTileX;\r\n var offsetY = destTileY - srcTileY;\r\n\r\n for (var i = 0; i < copyTiles.length; i++)\r\n {\r\n var copy = copyTiles[i];\r\n var tileX = copy.x + offsetX;\r\n var tileY = copy.y + offsetY;\r\n\r\n if (IsInLayerBounds(tileX, tileY, layer))\r\n {\r\n if (layer.data[tileY][tileX])\r\n {\r\n copy.x = tileX;\r\n copy.y = tileY;\r\n copy.updatePixelXY();\r\n\r\n layer.data[tileY][tileX] = copy;\r\n }\r\n }\r\n }\r\n\r\n if (recalculateFaces)\r\n {\r\n // Recalculate the faces within the destination area and neighboring tiles\r\n CalculateFacesWithin(destTileX - 1, destTileY - 1, width + 2, height + 2, layer);\r\n }\r\n\r\n srcTiles.length = 0;\r\n copyTiles.length = 0;\r\n};\r\n\r\nmodule.exports = Copy;\r\n\n\n/***/ }),\n\n/***/ 78419:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar DeepCopy = __webpack_require__(62644);\r\nvar GetTilesWithin = __webpack_require__(7386);\r\nvar ReplaceByIndex = __webpack_require__(27987);\r\n\r\n/**\r\n * Creates a Sprite for every object matching the given tile indexes in the layer. You can\r\n * optionally specify if each tile will be replaced with a new tile after the Sprite has been\r\n * created. This is useful if you want to lay down special tiles in a level that are converted to\r\n * Sprites, but want to replace the tile itself with a floor tile or similar once converted.\r\n *\r\n * @function Phaser.Tilemaps.Components.CreateFromTiles\r\n * @since 3.0.0\r\n *\r\n * @param {(number|number[])} indexes - The tile index, or array of indexes, to create Sprites from.\r\n * @param {?(number|number[])} replacements - The tile index, or array of indexes, to change a converted tile to. Set to `null` to leave the tiles unchanged. If an array is given, it is assumed to be a one-to-one mapping with the indexes array.\r\n * @param {Phaser.Types.GameObjects.Sprite.SpriteConfig} spriteConfig - The config object to pass into the Sprite creator (i.e. scene.make.sprite).\r\n * @param {Phaser.Scene} scene - The Scene to create the Sprites within.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when determining the world XY\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {Phaser.GameObjects.Sprite[]} An array of the Sprites that were created.\r\n */\r\nvar CreateFromTiles = function (indexes, replacements, spriteConfig, scene, camera, layer)\r\n{\r\n if (!spriteConfig) { spriteConfig = {}; }\r\n\r\n if (!Array.isArray(indexes))\r\n {\r\n indexes = [ indexes ];\r\n }\r\n\r\n var tilemapLayer = layer.tilemapLayer;\r\n\r\n if (!scene) { scene = tilemapLayer.scene; }\r\n if (!camera) { camera = scene.cameras.main; }\r\n\r\n var layerWidth = layer.width;\r\n var layerHeight = layer.height;\r\n\r\n var tiles = GetTilesWithin(0, 0, layerWidth, layerHeight, null, layer);\r\n var sprites = [];\r\n var i;\r\n\r\n var mergeExtras = function (config, tile, properties)\r\n {\r\n for (var i = 0; i < properties.length; i++)\r\n {\r\n var property = properties[i];\r\n\r\n if (!config.hasOwnProperty(property))\r\n {\r\n config[property] = tile[property];\r\n }\r\n }\r\n };\r\n\r\n for (i = 0; i < tiles.length; i++)\r\n {\r\n var tile = tiles[i];\r\n var config = DeepCopy(spriteConfig);\r\n\r\n if (indexes.indexOf(tile.index) !== -1)\r\n {\r\n var point = tilemapLayer.tileToWorldXY(tile.x, tile.y, undefined, camera,layer);\r\n\r\n config.x = point.x;\r\n config.y = point.y;\r\n\r\n mergeExtras(config, tile, [ 'rotation', 'flipX', 'flipY', 'alpha', 'visible', 'tint' ]);\r\n\r\n if (!config.hasOwnProperty('origin'))\r\n {\r\n config.x += tile.width * 0.5;\r\n config.y += tile.height * 0.5;\r\n }\r\n\r\n if (config.hasOwnProperty('useSpriteSheet'))\r\n {\r\n config.key = tile.tileset.image;\r\n config.frame = tile.index - 1;\r\n }\r\n\r\n sprites.push(scene.make.sprite(config));\r\n }\r\n }\r\n\r\n if (Array.isArray(replacements))\r\n {\r\n // Assume 1 to 1 mapping with indexes array\r\n for (i = 0; i < indexes.length; i++)\r\n {\r\n ReplaceByIndex(indexes[i], replacements[i], 0, 0, layerWidth, layerHeight, layer);\r\n }\r\n }\r\n else if (replacements !== null)\r\n {\r\n // Assume 1 replacement for all types of tile given\r\n for (i = 0; i < indexes.length; i++)\r\n {\r\n ReplaceByIndex(indexes[i], replacements, 0, 0, layerWidth, layerHeight, layer);\r\n }\r\n }\r\n\r\n return sprites;\r\n};\r\n\r\nmodule.exports = CreateFromTiles;\r\n\n\n/***/ }),\n\n/***/ 19545:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Rectangle = __webpack_require__(87841);\r\nvar SnapCeil = __webpack_require__(63448);\r\nvar SnapFloor = __webpack_require__(56583);\r\n\r\nvar bounds = new Rectangle();\r\n\r\n/**\r\n * Returns the bounds in the given orthogonal layer that are within the cameras viewport.\r\n * This is used internally by the cull tiles function.\r\n *\r\n * @function Phaser.Tilemaps.Components.CullBounds\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to run the cull check against.\r\n *\r\n * @return {Phaser.Geom.Rectangle} A rectangle containing the culled bounds. If you wish to retain this object, clone it, as it's recycled internally.\r\n */\r\nvar CullBounds = function (layer, camera)\r\n{\r\n var tilemap = layer.tilemapLayer.tilemap;\r\n var tilemapLayer = layer.tilemapLayer;\r\n\r\n // We need to use the tile sizes defined for the map as a whole, not the layer,\r\n // in order to calculate the bounds correctly. As different sized tiles may be\r\n // placed on the grid and we cannot trust layer.baseTileWidth to give us the true size.\r\n var tileW = Math.floor(tilemap.tileWidth * tilemapLayer.scaleX);\r\n var tileH = Math.floor(tilemap.tileHeight * tilemapLayer.scaleY);\r\n\r\n var boundsLeft = SnapFloor(camera.worldView.x - tilemapLayer.x, tileW, 0, true) - tilemapLayer.cullPaddingX;\r\n var boundsRight = SnapCeil(camera.worldView.right - tilemapLayer.x, tileW, 0, true) + tilemapLayer.cullPaddingX;\r\n\r\n var boundsTop = SnapFloor(camera.worldView.y - tilemapLayer.y, tileH, 0, true) - tilemapLayer.cullPaddingY;\r\n var boundsBottom = SnapCeil(camera.worldView.bottom - tilemapLayer.y, tileH, 0, true) + tilemapLayer.cullPaddingY;\r\n\r\n return bounds.setTo(\r\n boundsLeft,\r\n boundsTop,\r\n (boundsRight - boundsLeft),\r\n (boundsBottom - boundsTop)\r\n );\r\n};\r\n\r\nmodule.exports = CullBounds;\r\n\n\n/***/ }),\n\n/***/ 30003:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CullBounds = __webpack_require__(19545);\r\nvar RunCull = __webpack_require__(32483);\r\n\r\n/**\r\n * Returns the tiles in the given layer that are within the cameras viewport. This is used internally.\r\n *\r\n * @function Phaser.Tilemaps.Components.CullTiles\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to run the cull check against.\r\n * @param {array} [outputArray] - An optional array to store the Tile objects within.\r\n * @param {number} [renderOrder=0] - The rendering order constant.\r\n *\r\n * @return {Phaser.Tilemaps.Tile[]} An array of Tile objects.\r\n */\r\nvar CullTiles = function (layer, camera, outputArray, renderOrder)\r\n{\r\n if (outputArray === undefined) { outputArray = []; }\r\n if (renderOrder === undefined) { renderOrder = 0; }\r\n\r\n outputArray.length = 0;\r\n\r\n var tilemapLayer = layer.tilemapLayer;\r\n\r\n // Camera world view bounds, snapped for scaled tile size\r\n // Cull Padding values are given in tiles, not pixels\r\n var bounds = CullBounds(layer, camera);\r\n\r\n if (tilemapLayer.skipCull || tilemapLayer.scrollFactorX !== 1 || tilemapLayer.scrollFactorY !== 1)\r\n {\r\n bounds.left = 0;\r\n bounds.right = layer.width;\r\n bounds.top = 0;\r\n bounds.bottom = layer.height;\r\n }\r\n\r\n RunCull(layer, bounds, renderOrder, outputArray);\r\n\r\n return outputArray;\r\n};\r\n\r\nmodule.exports = CullTiles;\r\n\n\n/***/ }),\n\n/***/ 35137:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetTilesWithin = __webpack_require__(7386);\r\nvar CalculateFacesWithin = __webpack_require__(42573);\r\nvar SetTileCollision = __webpack_require__(20576);\r\n\r\n/**\r\n * Sets the tiles in the given rectangular area (in tile coordinates) of the layer with the\r\n * specified index. Tiles will be set to collide if the given index is a colliding index.\r\n * Collision information in the region will be recalculated.\r\n *\r\n * @function Phaser.Tilemaps.Components.Fill\r\n * @since 3.0.0\r\n *\r\n * @param {number} index - The tile index to fill the area with.\r\n * @param {number} tileX - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} tileY - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} width - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} height - How many tiles tall from the `tileY` index the area will be.\r\n * @param {boolean} recalculateFaces - `true` if the faces data should be recalculated.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The tile layer to use. If not given the current layer is used.\r\n */\r\nvar Fill = function (index, tileX, tileY, width, height, recalculateFaces, layer)\r\n{\r\n var doesIndexCollide = (layer.collideIndexes.indexOf(index) !== -1);\r\n\r\n var tiles = GetTilesWithin(tileX, tileY, width, height, null, layer);\r\n\r\n for (var i = 0; i < tiles.length; i++)\r\n {\r\n tiles[i].index = index;\r\n\r\n SetTileCollision(tiles[i], doesIndexCollide);\r\n }\r\n\r\n if (recalculateFaces)\r\n {\r\n // Recalculate the faces within the area and neighboring tiles\r\n CalculateFacesWithin(tileX - 1, tileY - 1, width + 2, height + 2, layer);\r\n }\r\n};\r\n\r\nmodule.exports = Fill;\r\n\n\n/***/ }),\n\n/***/ 40253:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetTilesWithin = __webpack_require__(7386);\r\n\r\n/**\r\n * For each tile in the given rectangular area (in tile coordinates) of the layer, run the given\r\n * filter callback function. Any tiles that pass the filter test (i.e. where the callback returns\r\n * true) will returned as a new array. Similar to Array.prototype.Filter in vanilla JS.\r\n *\r\n * @function Phaser.Tilemaps.Components.FilterTiles\r\n * @since 3.0.0\r\n *\r\n * @param {function} callback - The callback. Each tile in the given area will be passed to this\r\n * callback as the first and only parameter. The callback should return true for tiles that pass the\r\n * filter.\r\n * @param {object} context - The context under which the callback should be run.\r\n * @param {number} tileX - The left most tile index (in tile coordinates) to use as the origin of the area to filter.\r\n * @param {number} tileY - The top most tile index (in tile coordinates) to use as the origin of the area to filter.\r\n * @param {number} width - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} height - How many tiles tall from the `tileY` index the area will be.\r\n * @param {Phaser.Types.Tilemaps.FilteringOptions} filteringOptions - Optional filters to apply when getting the tiles.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {Phaser.Tilemaps.Tile[]} The filtered array of Tiles.\r\n */\r\nvar FilterTiles = function (callback, context, tileX, tileY, width, height, filteringOptions, layer)\r\n{\r\n var tiles = GetTilesWithin(tileX, tileY, width, height, filteringOptions, layer);\r\n\r\n return tiles.filter(callback, context);\r\n};\r\n\r\nmodule.exports = FilterTiles;\r\n\n\n/***/ }),\n\n/***/ 52692:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Searches the entire map layer for the first tile matching the given index, then returns that Tile\r\n * object. If no match is found, it returns null. The search starts from the top-left tile and\r\n * continues horizontally until it hits the end of the row, then it drops down to the next column.\r\n * If the reverse boolean is true, it scans starting from the bottom-right corner traveling up to\r\n * the top-left.\r\n *\r\n * @function Phaser.Tilemaps.Components.FindByIndex\r\n * @since 3.0.0\r\n *\r\n * @param {number} index - The tile index value to search for.\r\n * @param {number} skip - The number of times to skip a matching tile before returning.\r\n * @param {boolean} reverse - If true it will scan the layer in reverse, starting at the bottom-right. Otherwise it scans from the top-left.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {?Phaser.Tilemaps.Tile} The first (or n skipped) tile with the matching index.\r\n */\r\nvar FindByIndex = function (findIndex, skip, reverse, layer)\r\n{\r\n if (skip === undefined) { skip = 0; }\r\n if (reverse === undefined) { reverse = false; }\r\n\r\n var count = 0;\r\n var tx;\r\n var ty;\r\n var tile;\r\n\r\n if (reverse)\r\n {\r\n for (ty = layer.height - 1; ty >= 0; ty--)\r\n {\r\n for (tx = layer.width - 1; tx >= 0; tx--)\r\n {\r\n tile = layer.data[ty][tx];\r\n if (tile && tile.index === findIndex)\r\n {\r\n if (count === skip)\r\n {\r\n return tile;\r\n }\r\n else\r\n {\r\n count += 1;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n else\r\n {\r\n for (ty = 0; ty < layer.height; ty++)\r\n {\r\n for (tx = 0; tx < layer.width; tx++)\r\n {\r\n tile = layer.data[ty][tx];\r\n if (tile && tile.index === findIndex)\r\n {\r\n if (count === skip)\r\n {\r\n return tile;\r\n }\r\n else\r\n {\r\n count += 1;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n return null;\r\n};\r\n\r\nmodule.exports = FindByIndex;\r\n\n\n/***/ }),\n\n/***/ 66151:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetTilesWithin = __webpack_require__(7386);\r\n\r\n/**\r\n * @callback FindTileCallback\r\n *\r\n * @param {Phaser.Tilemaps.Tile} value - The Tile.\r\n * @param {number} index - The index of the tile.\r\n * @param {Phaser.Tilemaps.Tile[]} array - An array of Tile objects.\r\n *\r\n * @return {boolean} Return `true` if the callback should run, otherwise `false`.\r\n */\r\n\r\n/**\r\n * Find the first tile in the given rectangular area (in tile coordinates) of the layer that\r\n * satisfies the provided testing function. I.e. finds the first tile for which `callback` returns\r\n * true. Similar to Array.prototype.find in vanilla JS.\r\n *\r\n * @function Phaser.Tilemaps.Components.FindTile\r\n * @since 3.0.0\r\n *\r\n * @param {FindTileCallback} callback - The callback. Each tile in the given area will be passed to this callback as the first and only parameter.\r\n * @param {object} context - The context under which the callback should be run.\r\n * @param {number} tileX - The left most tile index (in tile coordinates) to use as the origin of the area to filter.\r\n * @param {number} tileY - The top most tile index (in tile coordinates) to use as the origin of the area to filter.\r\n * @param {number} width - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} height - How many tiles tall from the `tileY` index the area will be.\r\n * @param {Phaser.Types.Tilemaps.FilteringOptions} filteringOptions - Optional filters to apply when getting the tiles.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {?Phaser.Tilemaps.Tile} A Tile that matches the search, or null if no Tile found\r\n */\r\nvar FindTile = function (callback, context, tileX, tileY, width, height, filteringOptions, layer)\r\n{\r\n var tiles = GetTilesWithin(tileX, tileY, width, height, filteringOptions, layer);\r\n\r\n return tiles.find(callback, context) || null;\r\n};\r\n\r\nmodule.exports = FindTile;\r\n\n\n/***/ }),\n\n/***/ 97560:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetTilesWithin = __webpack_require__(7386);\r\n\r\n/**\r\n * @callback EachTileCallback\r\n *\r\n * @param {Phaser.Tilemaps.Tile} value - The Tile.\r\n * @param {number} index - The index of the tile.\r\n * @param {Phaser.Tilemaps.Tile[]} array - An array of Tile objects.\r\n */\r\n\r\n/**\r\n * For each tile in the given rectangular area (in tile coordinates) of the layer, run the given\r\n * callback. Similar to Array.prototype.forEach in vanilla JS.\r\n *\r\n * @function Phaser.Tilemaps.Components.ForEachTile\r\n * @since 3.0.0\r\n *\r\n * @param {EachTileCallback} callback - The callback. Each tile in the given area will be passed to this callback as the first and only parameter.\r\n * @param {object} context - The context under which the callback should be run.\r\n * @param {number} tileX - The left most tile index (in tile coordinates) to use as the origin of the area to filter.\r\n * @param {number} tileY - The top most tile index (in tile coordinates) to use as the origin of the area to filter.\r\n * @param {number} width - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} height - How many tiles tall from the `tileY` index the area will be.\r\n * @param {Phaser.Types.Tilemaps.FilteringOptions} filteringOptions - Optional filters to apply when getting the tiles.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n */\r\nvar ForEachTile = function (callback, context, tileX, tileY, width, height, filteringOptions, layer)\r\n{\r\n var tiles = GetTilesWithin(tileX, tileY, width, height, filteringOptions, layer);\r\n\r\n tiles.forEach(callback, context);\r\n};\r\n\r\nmodule.exports = ForEachTile;\r\n\n\n/***/ }),\n\n/***/ 43305:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(91907);\r\nvar CullTiles = __webpack_require__(30003);\r\nvar HexagonalCullTiles = __webpack_require__(9474);\r\nvar IsometricCullTiles = __webpack_require__(14018);\r\nvar NOOP = __webpack_require__(29747);\r\nvar StaggeredCullTiles = __webpack_require__(54503);\r\n\r\n/**\r\n * Gets the correct function to use to cull tiles, based on the map orientation.\r\n *\r\n * @function Phaser.Tilemaps.Components.GetCullTilesFunction\r\n * @since 3.50.0\r\n *\r\n * @param {number} orientation - The Tilemap orientation constant.\r\n *\r\n * @return {function} The function to use to cull tiles for the given map type.\r\n */\r\nvar GetCullTilesFunction = function (orientation)\r\n{\r\n if (orientation === CONST.ORTHOGONAL)\r\n {\r\n return CullTiles;\r\n }\r\n else if (orientation === CONST.HEXAGONAL)\r\n {\r\n return HexagonalCullTiles;\r\n }\r\n else if (orientation === CONST.STAGGERED)\r\n {\r\n return StaggeredCullTiles;\r\n }\r\n else if (orientation === CONST.ISOMETRIC)\r\n {\r\n return IsometricCullTiles;\r\n }\r\n else\r\n {\r\n return NOOP;\r\n }\r\n};\r\n\r\nmodule.exports = GetCullTilesFunction;\r\n\n\n/***/ }),\n\n/***/ 7423:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar IsInLayerBounds = __webpack_require__(62991);\r\n\r\n/**\r\n * Gets a tile at the given tile coordinates from the given layer.\r\n *\r\n * @function Phaser.Tilemaps.Components.GetTileAt\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileX - X position to get the tile from (given in tile units, not pixels).\r\n * @param {number} tileY - Y position to get the tile from (given in tile units, not pixels).\r\n * @param {boolean} nonNull - For empty tiles, return a Tile object with an index of -1 instead of null.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {Phaser.Tilemaps.Tile} The tile at the given coordinates or null if no tile was found or the coordinates were invalid.\r\n */\r\nvar GetTileAt = function (tileX, tileY, nonNull, layer)\r\n{\r\n if (IsInLayerBounds(tileX, tileY, layer))\r\n {\r\n var tile = layer.data[tileY][tileX] || null;\r\n\r\n if (!tile)\r\n {\r\n return null;\r\n }\r\n else if (tile.index === -1)\r\n {\r\n return nonNull ? tile : null;\r\n }\r\n else\r\n {\r\n return tile;\r\n }\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n};\r\n\r\nmodule.exports = GetTileAt;\r\n\n\n/***/ }),\n\n/***/ 60540:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetTileAt = __webpack_require__(7423);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\nvar point = new Vector2();\r\n\r\n/**\r\n * Gets a tile at the given world coordinates from the given layer.\r\n *\r\n * @function Phaser.Tilemaps.Components.GetTileAtWorldXY\r\n * @since 3.0.0\r\n *\r\n * @param {number} worldX - X position to get the tile from (given in pixels)\r\n * @param {number} worldY - Y position to get the tile from (given in pixels)\r\n * @param {boolean} nonNull - For empty tiles, return a Tile object with an index of -1 instead of null.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {Phaser.Tilemaps.Tile} The tile at the given coordinates or null if no tile was found or the coordinates were invalid.\r\n */\r\nvar GetTileAtWorldXY = function (worldX, worldY, nonNull, camera, layer)\r\n{\r\n layer.tilemapLayer.worldToTileXY(worldX, worldY, true, point, camera);\r\n\r\n return GetTileAt(point.x, point.y, nonNull, layer);\r\n};\r\n\r\nmodule.exports = GetTileAtWorldXY;\r\n\n\n/***/ }),\n\n/***/ 55826:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * Gets the corners of the Tile as an array of Vector2s.\r\n *\r\n * @function Phaser.Tilemaps.Components.GetTileCorners\r\n * @since 3.60.0\r\n *\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {Phaser.Math.Vector2[]} An array of Vector2s corresponding to the world XY location of each tile corner.\r\n */\r\nvar GetTileCorners = function (tileX, tileY, camera, layer)\r\n{\r\n var tileWidth = layer.baseTileWidth;\r\n var tileHeight = layer.baseTileHeight;\r\n var tilemapLayer = layer.tilemapLayer;\r\n\r\n var worldX = 0;\r\n var worldY = 0;\r\n\r\n if (tilemapLayer)\r\n {\r\n if (!camera) { camera = tilemapLayer.scene.cameras.main; }\r\n\r\n worldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX);\r\n worldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY));\r\n\r\n tileWidth *= tilemapLayer.scaleX;\r\n tileHeight *= tilemapLayer.scaleY;\r\n }\r\n\r\n var x = worldX + tileX * tileWidth;\r\n var y = worldY + tileY * tileHeight;\r\n\r\n // Top Left\r\n // Top Right\r\n // Bottom Right\r\n // Bottom Left\r\n\r\n return [\r\n new Vector2(x, y),\r\n new Vector2(x + tileWidth, y),\r\n new Vector2(x + tileWidth, y + tileHeight),\r\n new Vector2(x, y + tileHeight)\r\n ];\r\n};\r\n\r\nmodule.exports = GetTileCorners;\r\n\n\n/***/ }),\n\n/***/ 11758:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(91907);\r\nvar HexagonalGetTileCorners = __webpack_require__(27229);\r\nvar NOOP = __webpack_require__(29747);\r\nvar GetTileCorners = __webpack_require__(55826);\r\n\r\n/**\r\n * Gets the correct function to use to get the tile corners, based on the map orientation.\r\n *\r\n * @function Phaser.Tilemaps.Components.GetTileCornersFunction\r\n * @since 3.60.0\r\n *\r\n * @param {number} orientation - The Tilemap orientation constant.\r\n *\r\n * @return {function} The function to use to translate tiles for the given map type.\r\n */\r\nvar GetTileCornersFunction = function (orientation)\r\n{\r\n if (orientation === CONST.ORTHOGONAL)\r\n {\r\n return GetTileCorners;\r\n }\r\n else if (orientation === CONST.ISOMETRIC)\r\n {\r\n return NOOP;\r\n }\r\n else if (orientation === CONST.HEXAGONAL)\r\n {\r\n return HexagonalGetTileCorners;\r\n }\r\n else if (orientation === CONST.STAGGERED)\r\n {\r\n return NOOP;\r\n }\r\n else\r\n {\r\n return NOOP;\r\n }\r\n};\r\n\r\nmodule.exports = GetTileCornersFunction;\r\n\n\n/***/ }),\n\n/***/ 39167:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(91907);\r\nvar NOOP = __webpack_require__(29747);\r\nvar TileToWorldX = __webpack_require__(97281);\r\n\r\n/**\r\n * Gets the correct function to use to translate tiles, based on the map orientation.\r\n *\r\n * @function Phaser.Tilemaps.Components.GetTileToWorldXFunction\r\n * @since 3.50.0\r\n *\r\n * @param {number} orientation - The Tilemap orientation constant.\r\n *\r\n * @return {function} The function to use to translate tiles for the given map type.\r\n */\r\nvar GetTileToWorldXFunction = function (orientation)\r\n{\r\n if (orientation === CONST.ORTHOGONAL)\r\n {\r\n return TileToWorldX;\r\n }\r\n else\r\n {\r\n return NOOP;\r\n }\r\n};\r\n\r\nmodule.exports = GetTileToWorldXFunction;\r\n\n\n/***/ }),\n\n/***/ 62000:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(91907);\r\nvar HexagonalTileToWorldXY = __webpack_require__(19951);\r\nvar IsometricTileToWorldXY = __webpack_require__(14127);\r\nvar NOOP = __webpack_require__(29747);\r\nvar StaggeredTileToWorldXY = __webpack_require__(97202);\r\nvar TileToWorldXY = __webpack_require__(70326);\r\n\r\n/**\r\n * Gets the correct function to use to translate tiles, based on the map orientation.\r\n *\r\n * @function Phaser.Tilemaps.Components.GetTileToWorldXYFunction\r\n * @since 3.50.0\r\n *\r\n * @param {number} orientation - The Tilemap orientation constant.\r\n *\r\n * @return {function} The function to use to translate tiles for the given map type.\r\n */\r\nvar GetTileToWorldXYFunction = function (orientation)\r\n{\r\n if (orientation === CONST.ORTHOGONAL)\r\n {\r\n return TileToWorldXY;\r\n }\r\n else if (orientation === CONST.ISOMETRIC)\r\n {\r\n return IsometricTileToWorldXY;\r\n }\r\n else if (orientation === CONST.HEXAGONAL)\r\n {\r\n return HexagonalTileToWorldXY;\r\n }\r\n else if (orientation === CONST.STAGGERED)\r\n {\r\n return StaggeredTileToWorldXY;\r\n }\r\n else\r\n {\r\n return NOOP;\r\n }\r\n};\r\n\r\nmodule.exports = GetTileToWorldXYFunction;\r\n\n\n/***/ }),\n\n/***/ 5984:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(91907);\r\nvar NOOP = __webpack_require__(29747);\r\nvar StaggeredTileToWorldY = __webpack_require__(28054);\r\nvar TileToWorldY = __webpack_require__(29650);\r\n\r\n/**\r\n * Gets the correct function to use to translate tiles, based on the map orientation.\r\n *\r\n * @function Phaser.Tilemaps.Components.GetTileToWorldYFunction\r\n * @since 3.50.0\r\n *\r\n * @param {number} orientation - The Tilemap orientation constant.\r\n *\r\n * @return {function} The function to use to translate tiles for the given map type.\r\n */\r\nvar GetTileToWorldYFunction = function (orientation)\r\n{\r\n if (orientation === CONST.ORTHOGONAL)\r\n {\r\n return TileToWorldY;\r\n }\r\n else if (orientation === CONST.STAGGERED)\r\n {\r\n return StaggeredTileToWorldY;\r\n }\r\n else\r\n {\r\n return NOOP;\r\n }\r\n};\r\n\r\nmodule.exports = GetTileToWorldYFunction;\r\n\n\n/***/ }),\n\n/***/ 7386:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetFastValue = __webpack_require__(95540);\r\n\r\n/**\r\n * Gets the tiles in the given rectangular area (in tile coordinates) of the layer.\r\n *\r\n * This returns an array with references to the Tile instances in, so be aware of\r\n * modifying them directly.\r\n *\r\n * @function Phaser.Tilemaps.Components.GetTilesWithin\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileX - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} tileY - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} width - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} height - How many tiles tall from the `tileY` index the area will be.\r\n * @param {Phaser.Types.Tilemaps.FilteringOptions} filteringOptions - Optional filters to apply when getting the tiles.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {Phaser.Tilemaps.Tile[]} Array of Tile objects.\r\n */\r\nvar GetTilesWithin = function (tileX, tileY, width, height, filteringOptions, layer)\r\n{\r\n if (tileX === undefined) { tileX = 0; }\r\n if (tileY === undefined) { tileY = 0; }\r\n if (width === undefined) { width = layer.width; }\r\n if (height === undefined) { height = layer.height; }\r\n if (!filteringOptions) { filteringOptions = {}; }\r\n\r\n var isNotEmpty = GetFastValue(filteringOptions, 'isNotEmpty', false);\r\n var isColliding = GetFastValue(filteringOptions, 'isColliding', false);\r\n var hasInterestingFace = GetFastValue(filteringOptions, 'hasInterestingFace', false);\r\n\r\n // Clip x, y to top left of map, while shrinking width/height to match.\r\n if (tileX < 0)\r\n {\r\n width += tileX;\r\n tileX = 0;\r\n }\r\n\r\n if (tileY < 0)\r\n {\r\n height += tileY;\r\n tileY = 0;\r\n }\r\n\r\n // Clip width and height to bottom right of map.\r\n if (tileX + width > layer.width)\r\n {\r\n width = Math.max(layer.width - tileX, 0);\r\n }\r\n\r\n if (tileY + height > layer.height)\r\n {\r\n height = Math.max(layer.height - tileY, 0);\r\n }\r\n\r\n var results = [];\r\n\r\n for (var ty = tileY; ty < tileY + height; ty++)\r\n {\r\n for (var tx = tileX; tx < tileX + width; tx++)\r\n {\r\n var tile = layer.data[ty][tx];\r\n\r\n if (tile !== null)\r\n {\r\n if (isNotEmpty && tile.index === -1)\r\n {\r\n continue;\r\n }\r\n\r\n if (isColliding && !tile.collides)\r\n {\r\n continue;\r\n }\r\n\r\n if (hasInterestingFace && !tile.hasInterestingFace)\r\n {\r\n continue;\r\n }\r\n\r\n results.push(tile);\r\n }\r\n }\r\n }\r\n\r\n return results;\r\n};\r\n\r\nmodule.exports = GetTilesWithin;\r\n\n\n/***/ }),\n\n/***/ 91141:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Geom = __webpack_require__(55738);\r\nvar GetTilesWithin = __webpack_require__(7386);\r\nvar Intersects = __webpack_require__(91865);\r\nvar NOOP = __webpack_require__(29747);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\nvar TriangleToRectangle = function (triangle, rect)\r\n{\r\n return Intersects.RectangleToTriangle(rect, triangle);\r\n};\r\n\r\nvar point = new Vector2();\r\nvar pointStart = new Vector2();\r\nvar pointEnd = new Vector2();\r\n\r\n/**\r\n * Gets the tiles that overlap with the given shape in the given layer. The shape must be a Circle,\r\n * Line, Rectangle or Triangle. The shape should be in world coordinates.\r\n *\r\n * @function Phaser.Tilemaps.Components.GetTilesWithinShape\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Geom.Circle|Phaser.Geom.Line|Phaser.Geom.Rectangle|Phaser.Geom.Triangle)} shape - A shape in world (pixel) coordinates\r\n * @param {Phaser.Types.Tilemaps.FilteringOptions} filteringOptions - Optional filters to apply when getting the tiles.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {Phaser.Tilemaps.Tile[]} Array of Tile objects.\r\n */\r\nvar GetTilesWithinShape = function (shape, filteringOptions, camera, layer)\r\n{\r\n if (shape === undefined) { return []; }\r\n\r\n // intersectTest is a function with parameters: shape, rect\r\n var intersectTest = NOOP;\r\n\r\n if (shape instanceof Geom.Circle)\r\n {\r\n intersectTest = Intersects.CircleToRectangle;\r\n }\r\n else if (shape instanceof Geom.Rectangle)\r\n {\r\n intersectTest = Intersects.RectangleToRectangle;\r\n }\r\n else if (shape instanceof Geom.Triangle)\r\n {\r\n intersectTest = TriangleToRectangle;\r\n }\r\n else if (shape instanceof Geom.Line)\r\n {\r\n intersectTest = Intersects.LineToRectangle;\r\n }\r\n\r\n // Top left corner of the shapes's bounding box, rounded down to include partial tiles\r\n layer.tilemapLayer.worldToTileXY(shape.left, shape.top, true, pointStart, camera);\r\n\r\n var xStart = pointStart.x;\r\n var yStart = pointStart.y;\r\n\r\n // Bottom right corner of the shapes's bounding box, rounded up to include partial tiles\r\n layer.tilemapLayer.worldToTileXY(shape.right, shape.bottom, false, pointEnd, camera);\r\n\r\n var xEnd = Math.ceil(pointEnd.x);\r\n var yEnd = Math.ceil(pointEnd.y);\r\n\r\n // Tiles within bounding rectangle of shape. Bounds are forced to be at least 1 x 1 tile in size\r\n // to grab tiles for shapes that don't have a height or width (e.g. a horizontal line).\r\n var width = Math.max(xEnd - xStart, 1);\r\n var height = Math.max(yEnd - yStart, 1);\r\n\r\n var tiles = GetTilesWithin(xStart, yStart, width, height, filteringOptions, layer);\r\n\r\n var tileWidth = layer.tileWidth;\r\n var tileHeight = layer.tileHeight;\r\n\r\n if (layer.tilemapLayer)\r\n {\r\n tileWidth *= layer.tilemapLayer.scaleX;\r\n tileHeight *= layer.tilemapLayer.scaleY;\r\n }\r\n\r\n var results = [];\r\n var tileRect = new Geom.Rectangle(0, 0, tileWidth, tileHeight);\r\n\r\n for (var i = 0; i < tiles.length; i++)\r\n {\r\n var tile = tiles[i];\r\n\r\n layer.tilemapLayer.tileToWorldXY(tile.x, tile.y, point, camera);\r\n\r\n tileRect.x = point.x;\r\n tileRect.y = point.y;\r\n\r\n if (intersectTest(shape, tileRect))\r\n {\r\n results.push(tile);\r\n }\r\n }\r\n\r\n return results;\r\n};\r\n\r\nmodule.exports = GetTilesWithinShape;\r\n\n\n/***/ }),\n\n/***/ 96523:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetTilesWithin = __webpack_require__(7386);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\nvar pointStart = new Vector2();\r\nvar pointEnd = new Vector2();\r\n\r\n/**\r\n * Gets the tiles in the given rectangular area (in world coordinates) of the layer.\r\n *\r\n * @function Phaser.Tilemaps.Components.GetTilesWithinWorldXY\r\n * @since 3.0.0\r\n *\r\n * @param {number} worldX - The world x coordinate for the top-left of the area.\r\n * @param {number} worldY - The world y coordinate for the top-left of the area.\r\n * @param {number} width - The width of the area.\r\n * @param {number} height - The height of the area.\r\n * @param {Phaser.Types.Tilemaps.FilteringOptions} filteringOptions - Optional filters to apply when getting the tiles.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when factoring in which tiles to return.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {Phaser.Tilemaps.Tile[]} Array of Tile objects.\r\n */\r\nvar GetTilesWithinWorldXY = function (worldX, worldY, width, height, filteringOptions, camera, layer)\r\n{\r\n var worldToTileXY = layer.tilemapLayer.tilemap._convert.WorldToTileXY;\r\n\r\n // Top left corner of the rect, rounded down to include partial tiles\r\n worldToTileXY(worldX, worldY, true, pointStart, camera, layer);\r\n\r\n var xStart = pointStart.x;\r\n var yStart = pointStart.y;\r\n\r\n // Bottom right corner of the rect, rounded up to include partial tiles\r\n worldToTileXY(worldX + width, worldY + height, false, pointEnd, camera, layer);\r\n\r\n var xEnd = Math.ceil(pointEnd.x);\r\n var yEnd = Math.ceil(pointEnd.y);\r\n\r\n return GetTilesWithin(xStart, yStart, xEnd - xStart, yEnd - yStart, filteringOptions, layer);\r\n};\r\n\r\nmodule.exports = GetTilesWithinWorldXY;\r\n\n\n/***/ }),\n\n/***/ 96113:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(91907);\r\nvar NULL = __webpack_require__(20242);\r\nvar WorldToTileX = __webpack_require__(10095);\r\n\r\n/**\r\n * Gets the correct function to use to translate tiles, based on the map orientation.\r\n *\r\n * Only orthogonal maps support this feature.\r\n *\r\n * @function Phaser.Tilemaps.Components.GetWorldToTileXFunction\r\n * @since 3.50.0\r\n *\r\n * @param {number} orientation - The Tilemap orientation constant.\r\n *\r\n * @return {function} The function to use to translate tiles for the given map type.\r\n */\r\nvar GetWorldToTileXFunction = function (orientation)\r\n{\r\n if (orientation === CONST.ORTHOGONAL)\r\n {\r\n return WorldToTileX;\r\n }\r\n else\r\n {\r\n return NULL;\r\n }\r\n};\r\n\r\nmodule.exports = GetWorldToTileXFunction;\r\n\n\n/***/ }),\n\n/***/ 16926:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(91907);\r\nvar HexagonalWorldToTileXY = __webpack_require__(86625);\r\nvar IsometricWorldToTileXY = __webpack_require__(96897);\r\nvar NOOP = __webpack_require__(29747);\r\nvar StaggeredWorldToTileXY = __webpack_require__(15108);\r\nvar WorldToTileXY = __webpack_require__(85896);\r\n\r\n/**\r\n * Gets the correct function to use to translate tiles, based on the map orientation.\r\n *\r\n * @function Phaser.Tilemaps.Components.GetWorldToTileXYFunction\r\n * @since 3.50.0\r\n *\r\n * @param {number} orientation - The Tilemap orientation constant.\r\n *\r\n * @return {function} The function to use to translate tiles for the given map type.\r\n */\r\nvar GetWorldToTileXYFunction = function (orientation)\r\n{\r\n if (orientation === CONST.ORTHOGONAL)\r\n {\r\n return WorldToTileXY;\r\n }\r\n else if (orientation === CONST.ISOMETRIC)\r\n {\r\n return IsometricWorldToTileXY;\r\n }\r\n else if (orientation === CONST.HEXAGONAL)\r\n {\r\n return HexagonalWorldToTileXY;\r\n }\r\n else if (orientation === CONST.STAGGERED)\r\n {\r\n return StaggeredWorldToTileXY;\r\n }\r\n else\r\n {\r\n return NOOP;\r\n }\r\n};\r\n\r\nmodule.exports = GetWorldToTileXYFunction;\r\n\n\n/***/ }),\n\n/***/ 55762:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(91907);\r\nvar NULL = __webpack_require__(20242);\r\nvar StaggeredWorldToTileY = __webpack_require__(51900);\r\nvar WorldToTileY = __webpack_require__(63288);\r\n\r\n/**\r\n * Gets the correct function to use to translate tiles, based on the map orientation.\r\n *\r\n * @function Phaser.Tilemaps.Components.GetWorldToTileYFunction\r\n * @since 3.50.0\r\n *\r\n * @param {number} orientation - The Tilemap orientation constant.\r\n *\r\n * @return {function} The function to use to translate tiles for the given map type.\r\n */\r\nvar GetWorldToTileYFunction = function (orientation)\r\n{\r\n if (orientation === CONST.ORTHOGONAL)\r\n {\r\n return WorldToTileY;\r\n }\r\n else if (orientation === CONST.STAGGERED)\r\n {\r\n return StaggeredWorldToTileY;\r\n }\r\n else\r\n {\r\n return NULL;\r\n }\r\n};\r\n\r\nmodule.exports = GetWorldToTileYFunction;\r\n\n\n/***/ }),\n\n/***/ 45091:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar IsInLayerBounds = __webpack_require__(62991);\r\n\r\n/**\r\n * Checks if there is a tile at the given location (in tile coordinates) in the given layer. Returns\r\n * false if there is no tile or if the tile at that location has an index of -1.\r\n *\r\n * @function Phaser.Tilemaps.Components.HasTileAt\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileX - X position to get the tile from (given in tile units, not pixels).\r\n * @param {number} tileY - Y position to get the tile from (given in tile units, not pixels).\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {?boolean} Returns a boolean, or null if the layer given was invalid.\r\n */\r\nvar HasTileAt = function (tileX, tileY, layer)\r\n{\r\n if (IsInLayerBounds(tileX, tileY, layer))\r\n {\r\n var tile = layer.data[tileY][tileX];\r\n\r\n return (tile !== null && tile.index > -1);\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n};\r\n\r\nmodule.exports = HasTileAt;\r\n\n\n/***/ }),\n\n/***/ 24152:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar HasTileAt = __webpack_require__(45091);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\nvar point = new Vector2();\r\n\r\n/**\r\n * Checks if there is a tile at the given location (in world coordinates) in the given layer. Returns\r\n * false if there is no tile or if the tile at that location has an index of -1.\r\n *\r\n * @function Phaser.Tilemaps.Components.HasTileAtWorldXY\r\n * @since 3.0.0\r\n *\r\n * @param {number} worldX - The X coordinate of the world position.\r\n * @param {number} worldY - The Y coordinate of the world position.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when factoring in which tiles to return.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {?boolean} Returns a boolean, or null if the layer given was invalid.\r\n */\r\nvar HasTileAtWorldXY = function (worldX, worldY, camera, layer)\r\n{\r\n layer.tilemapLayer.worldToTileXY(worldX, worldY, true, point, camera);\r\n\r\n var tileX = point.x;\r\n var tileY = point.y;\r\n\r\n return HasTileAt(tileX, tileY, layer);\r\n};\r\n\r\nmodule.exports = HasTileAtWorldXY;\r\n\n\n/***/ }),\n\n/***/ 90454:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar SnapCeil = __webpack_require__(63448);\r\nvar SnapFloor = __webpack_require__(56583);\r\n\r\n/**\r\n * Returns the bounds in the given layer that are within the camera's viewport.\r\n * This is used internally by the cull tiles function.\r\n *\r\n * @function Phaser.Tilemaps.Components.HexagonalCullBounds\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to run the cull check against.\r\n *\r\n * @return {object} An object containing the `left`, `right`, `top` and `bottom` bounds.\r\n */\r\nvar HexagonalCullBounds = function (layer, camera)\r\n{\r\n var tilemap = layer.tilemapLayer.tilemap;\r\n var tilemapLayer = layer.tilemapLayer;\r\n\r\n // We need to use the tile sizes defined for the map as a whole, not the layer,\r\n // in order to calculate the bounds correctly. As different sized tiles may be\r\n // placed on the grid and we cannot trust layer.baseTileWidth to give us the true size.\r\n var tileW = Math.floor(tilemap.tileWidth * tilemapLayer.scaleX);\r\n var tileH = Math.floor(tilemap.tileHeight * tilemapLayer.scaleY);\r\n\r\n var len = layer.hexSideLength;\r\n\r\n var boundsLeft;\r\n var boundsRight;\r\n var boundsTop;\r\n var boundsBottom;\r\n\r\n if (layer.staggerAxis === 'y')\r\n {\r\n var rowH = ((tileH - len) / 2 + len);\r\n\r\n boundsLeft = SnapFloor(camera.worldView.x - tilemapLayer.x, tileW, 0, true) - tilemapLayer.cullPaddingX;\r\n boundsRight = SnapCeil(camera.worldView.right - tilemapLayer.x, tileW, 0, true) + tilemapLayer.cullPaddingX;\r\n\r\n boundsTop = SnapFloor(camera.worldView.y - tilemapLayer.y, rowH, 0, true) - tilemapLayer.cullPaddingY;\r\n boundsBottom = SnapCeil(camera.worldView.bottom - tilemapLayer.y, rowH, 0, true) + tilemapLayer.cullPaddingY;\r\n }\r\n else\r\n {\r\n var rowW = ((tileW - len) / 2 + len);\r\n\r\n boundsLeft = SnapFloor(camera.worldView.x - tilemapLayer.x, rowW, 0, true) - tilemapLayer.cullPaddingX;\r\n boundsRight = SnapCeil(camera.worldView.right - tilemapLayer.x, rowW, 0, true) + tilemapLayer.cullPaddingX;\r\n\r\n boundsTop = SnapFloor(camera.worldView.y - tilemapLayer.y, tileH, 0, true) - tilemapLayer.cullPaddingY;\r\n boundsBottom = SnapCeil(camera.worldView.bottom - tilemapLayer.y, tileH, 0, true) + tilemapLayer.cullPaddingY;\r\n }\r\n\r\n return {\r\n left: boundsLeft,\r\n right: boundsRight,\r\n top: boundsTop,\r\n bottom: boundsBottom\r\n };\r\n};\r\n\r\nmodule.exports = HexagonalCullBounds;\r\n\n\n/***/ }),\n\n/***/ 9474:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CullBounds = __webpack_require__(90454);\r\nvar RunCull = __webpack_require__(32483);\r\n\r\n/**\r\n * Returns the tiles in the given layer that are within the cameras viewport. This is used internally.\r\n *\r\n * @function Phaser.Tilemaps.Components.HexagonalCullTiles\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to run the cull check against.\r\n * @param {array} [outputArray] - An optional array to store the Tile objects within.\r\n * @param {number} [renderOrder=0] - The rendering order constant.\r\n *\r\n * @return {Phaser.Tilemaps.Tile[]} An array of Tile objects.\r\n */\r\nvar HexagonalCullTiles = function (layer, camera, outputArray, renderOrder)\r\n{\r\n if (outputArray === undefined) { outputArray = []; }\r\n if (renderOrder === undefined) { renderOrder = 0; }\r\n\r\n outputArray.length = 0;\r\n\r\n var tilemapLayer = layer.tilemapLayer;\r\n\r\n // Camera world view bounds, snapped for scaled tile size\r\n // Cull Padding values are given in tiles, not pixels\r\n\r\n var bounds = CullBounds(layer, camera);\r\n\r\n if (tilemapLayer.skipCull && tilemapLayer.scrollFactorX === 1 && tilemapLayer.scrollFactorY === 1)\r\n {\r\n bounds.left = 0;\r\n bounds.right = layer.width;\r\n bounds.top = 0;\r\n bounds.bottom = layer.height;\r\n }\r\n\r\n RunCull(layer, bounds, renderOrder, outputArray);\r\n\r\n return outputArray;\r\n};\r\n\r\nmodule.exports = HexagonalCullTiles;\r\n\n\n/***/ }),\n\n/***/ 27229:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar HexagonalTileToWorldXY = __webpack_require__(19951);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\nvar tempVec = new Vector2();\r\n\r\n/**\r\n * Gets the corners of the Hexagonal Tile as an array of Vector2s.\r\n *\r\n * @function Phaser.Tilemaps.Components.HexagonalGetTileCorners\r\n * @since 3.60.0\r\n *\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {Phaser.Math.Vector2[]} An array of Vector2s corresponding to the world XY location of each tile corner.\r\n */\r\nvar HexagonalGetTileCorners = function (tileX, tileY, camera, layer)\r\n{\r\n var tileWidth = layer.baseTileWidth;\r\n var tileHeight = layer.baseTileHeight;\r\n var tilemapLayer = layer.tilemapLayer;\r\n\r\n if (tilemapLayer)\r\n {\r\n tileWidth *= tilemapLayer.scaleX;\r\n tileHeight *= tilemapLayer.scaleY;\r\n }\r\n\r\n // Sets the center of the tile into tempVec\r\n var center = HexagonalTileToWorldXY(tileX, tileY, tempVec, camera, layer);\r\n\r\n var corners = [];\r\n\r\n // Hard-coded orientation values for Pointy-Top Hexagons only\r\n var b0 = 0.5773502691896257; // Math.sqrt(3) / 3\r\n\r\n var hexWidth;\r\n var hexHeight;\r\n\r\n if (layer.staggerAxis === 'y')\r\n {\r\n hexWidth = b0 * tileWidth;\r\n hexHeight = tileHeight / 2;\r\n }\r\n else\r\n {\r\n hexWidth = tileWidth / 2;\r\n hexHeight = b0 * tileHeight;\r\n }\r\n\r\n for (var i = 0; i < 6; i++)\r\n {\r\n var angle = 2 * Math.PI * (0.5 - i) / 6;\r\n\r\n corners.push(new Vector2(center.x + (hexWidth * Math.cos(angle)), center.y + (hexHeight * Math.sin(angle))));\r\n }\r\n\r\n return corners;\r\n};\r\n\r\nmodule.exports = HexagonalGetTileCorners;\r\n\n\n/***/ }),\n\n/***/ 19951:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * Converts from hexagonal tile XY coordinates (tile units) to world XY coordinates (pixels), factoring in the\r\n * layer's position, scale and scroll. This will return a new Vector2 object or update the given\r\n * `point` object.\r\n *\r\n * @function Phaser.Tilemaps.Components.HexagonalTileToWorldXY\r\n * @since 3.50.0\r\n *\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {Phaser.Math.Vector2} point - A Vector2 to store the coordinates in. If not given a new Vector2 is created.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {Phaser.Math.Vector2} The XY location in world coordinates.\r\n */\r\nvar HexagonalTileToWorldXY = function (tileX, tileY, point, camera, layer)\r\n{\r\n if (!point) { point = new Vector2(); }\r\n\r\n var tileWidth = layer.baseTileWidth;\r\n var tileHeight = layer.baseTileHeight;\r\n var tilemapLayer = layer.tilemapLayer;\r\n\r\n var worldX = 0;\r\n var worldY = 0;\r\n\r\n if (tilemapLayer)\r\n {\r\n if (!camera) { camera = tilemapLayer.scene.cameras.main; }\r\n\r\n worldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX);\r\n worldY = tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY);\r\n\r\n tileWidth *= tilemapLayer.scaleX;\r\n tileHeight *= tilemapLayer.scaleY;\r\n }\r\n\r\n // Hard-coded orientation values for Pointy-Top Hexagons only\r\n\r\n // origin\r\n var tileWidthHalf = tileWidth / 2;\r\n var tileHeightHalf = tileHeight / 2;\r\n\r\n var x;\r\n var y;\r\n var staggerAxis = layer.staggerAxis;\r\n var staggerIndex = layer.staggerIndex;\r\n\r\n if (staggerAxis === 'y')\r\n {\r\n x = worldX + (tileWidth * tileX) + tileWidth;\r\n y = worldY + ((1.5 * tileY) * tileHeightHalf) + tileHeightHalf;\r\n\r\n if (tileY % 2 === 0)\r\n {\r\n if (staggerIndex === 'odd')\r\n {\r\n x -= tileWidthHalf;\r\n }\r\n else\r\n {\r\n x += tileWidthHalf;\r\n }\r\n }\r\n }\r\n else if ((staggerAxis === 'x') && (staggerIndex === 'odd'))\r\n {\r\n x = worldX + ((1.5 * tileX) * tileWidthHalf) + tileWidthHalf;\r\n y = worldY + (tileHeight * tileX) + tileHeight;\r\n\r\n if (tileX % 2 === 0)\r\n {\r\n if (staggerIndex === 'odd')\r\n {\r\n y -= tileHeightHalf;\r\n }\r\n else\r\n {\r\n y += tileHeightHalf;\r\n }\r\n }\r\n }\r\n\r\n return point.set(x, y);\r\n};\r\n\r\nmodule.exports = HexagonalTileToWorldXY;\r\n\n\n/***/ }),\n\n/***/ 86625:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * Converts from world XY coordinates (pixels) to hexagonal tile XY coordinates (tile units), factoring in the\r\n * layer's position, scale and scroll. This will return a new Vector2 object or update the given\r\n * `point` object.\r\n *\r\n * @function Phaser.Tilemaps.Components.HexagonalWorldToTileXY\r\n * @since 3.50.0\r\n *\r\n * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles.\r\n * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles.\r\n * @param {boolean} snapToFloor - Whether or not to round the tile coordinates down to the nearest integer.\r\n * @param {Phaser.Math.Vector2} point - A Vector2 to store the coordinates in. If not given a new Vector2 is created.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {Phaser.Math.Vector2} The XY location in tile units.\r\n */\r\nvar HexagonalWorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, layer)\r\n{\r\n if (!point) { point = new Vector2(); }\r\n\r\n var tileWidth = layer.baseTileWidth;\r\n var tileHeight = layer.baseTileHeight;\r\n var tilemapLayer = layer.tilemapLayer;\r\n\r\n if (tilemapLayer)\r\n {\r\n if (!camera) { camera = tilemapLayer.scene.cameras.main; }\r\n\r\n // Find the world position relative to the static or dynamic layer's top left origin,\r\n // factoring in the camera's vertical scroll\r\n\r\n worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX));\r\n worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY));\r\n\r\n tileWidth *= tilemapLayer.scaleX;\r\n tileHeight *= tilemapLayer.scaleY;\r\n }\r\n\r\n // Hard-coded orientation values for Pointy-Top Hexagons only\r\n var b0 = 0.5773502691896257; // Math.sqrt(3) / 3\r\n var b1 = -0.3333333333333333; // -1 / 3\r\n var b2 = 0;\r\n var b3 = 0.6666666666666666; // 2 / 3\r\n\r\n // origin\r\n var tileWidthHalf = tileWidth / 2;\r\n var tileHeightHalf = tileHeight / 2;\r\n\r\n var px;\r\n var py;\r\n var q;\r\n var r;\r\n var s;\r\n\r\n // size\r\n if (layer.staggerAxis === 'y')\r\n {\r\n // x = b0 * tileWidth\r\n // y = tileHeightHalf\r\n px = (worldX - tileWidthHalf) / (b0 * tileWidth);\r\n py = (worldY - tileHeightHalf) / tileHeightHalf;\r\n\r\n q = b0 * px + b1 * py;\r\n r = b2 * px + b3 * py;\r\n }\r\n else\r\n {\r\n // x = tileWidthHalf\r\n // y = b0 * tileHeight\r\n px = (worldX - tileWidthHalf) / tileWidthHalf;\r\n py = (worldY - tileHeightHalf) / (b0 * tileHeight);\r\n\r\n q = b1 * px + b0 * py;\r\n r = b3 * px + b2 * py;\r\n }\r\n\r\n s = -q - r;\r\n\r\n var qi = Math.round(q);\r\n var ri = Math.round(r);\r\n var si = Math.round(s);\r\n\r\n var qDiff = Math.abs(qi - q);\r\n var rDiff = Math.abs(ri - r);\r\n var sDiff = Math.abs(si - s);\r\n\r\n if (qDiff > rDiff && qDiff > sDiff)\r\n {\r\n qi = -ri - si;\r\n }\r\n else if (rDiff > sDiff)\r\n {\r\n ri = -qi - si;\r\n }\r\n\r\n var x;\r\n var y = ri;\r\n\r\n if (layer.staggerIndex === 'odd')\r\n {\r\n x = (y % 2 === 0) ? (ri / 2) + qi : (ri / 2) + qi - 0.5;\r\n }\r\n else\r\n {\r\n x = (y % 2 === 0) ? (ri / 2) + qi : (ri / 2) + qi + 0.5;\r\n }\r\n\r\n return point.set(x, y);\r\n};\r\n\r\nmodule.exports = HexagonalWorldToTileXY;\r\n\n\n/***/ }),\n\n/***/ 62991:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Checks if the given tile coordinates are within the bounds of the layer.\r\n *\r\n * @function Phaser.Tilemaps.Components.IsInLayerBounds\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {boolean} `true` if the tile coordinates are within the bounds of the layer, otherwise `false`.\r\n */\r\nvar IsInLayerBounds = function (tileX, tileY, layer)\r\n{\r\n return (tileX >= 0 && tileX < layer.width && tileY >= 0 && tileY < layer.height);\r\n};\r\n\r\nmodule.exports = IsInLayerBounds;\r\n\n\n/***/ }),\n\n/***/ 14018:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CheckIsoBounds = __webpack_require__(33528);\r\n\r\n/**\r\n * Returns the tiles in the given layer that are within the cameras viewport. This is used internally.\r\n *\r\n * @function Phaser.Tilemaps.Components.IsometricCullTiles\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to run the cull check against.\r\n * @param {array} [outputArray] - An optional array to store the Tile objects within.\r\n * @param {number} [renderOrder=0] - The rendering order constant.\r\n *\r\n * @return {Phaser.Tilemaps.Tile[]} An array of Tile objects.\r\n */\r\nvar IsometricCullTiles = function (layer, camera, outputArray, renderOrder)\r\n{\r\n if (outputArray === undefined) { outputArray = []; }\r\n if (renderOrder === undefined) { renderOrder = 0; }\r\n\r\n outputArray.length = 0;\r\n\r\n var tilemapLayer = layer.tilemapLayer;\r\n\r\n var mapData = layer.data;\r\n var mapWidth = layer.width;\r\n var mapHeight = layer.height;\r\n var skipCull = tilemapLayer.skipCull;\r\n\r\n var drawLeft = 0;\r\n var drawRight = mapWidth;\r\n var drawTop = 0;\r\n var drawBottom = mapHeight;\r\n\r\n var x;\r\n var y;\r\n var tile;\r\n\r\n if (renderOrder === 0)\r\n {\r\n // right-down\r\n\r\n for (y = drawTop; y < drawBottom; y++)\r\n {\r\n for (x = drawLeft; x < drawRight; x++)\r\n {\r\n tile = mapData[y][x];\r\n\r\n if (!tile || tile.index === -1 || !tile.visible || tile.alpha === 0)\r\n {\r\n continue;\r\n }\r\n\r\n if (!skipCull && !CheckIsoBounds(x, y, layer, camera))\r\n {\r\n continue;\r\n }\r\n\r\n outputArray.push(tile);\r\n }\r\n }\r\n }\r\n else if (renderOrder === 1)\r\n {\r\n // left-down\r\n\r\n for (y = drawTop; y < drawBottom; y++)\r\n {\r\n for (x = drawRight; x >= drawLeft; x--)\r\n {\r\n tile = mapData[y][x];\r\n\r\n if (!tile || tile.index === -1 || !tile.visible || tile.alpha === 0)\r\n {\r\n continue;\r\n }\r\n\r\n if (!skipCull && !CheckIsoBounds(x, y, layer, camera))\r\n {\r\n continue;\r\n }\r\n\r\n outputArray.push(tile);\r\n }\r\n }\r\n }\r\n else if (renderOrder === 2)\r\n {\r\n // right-up\r\n\r\n for (y = drawBottom; y >= drawTop; y--)\r\n {\r\n for (x = drawLeft; x < drawRight; x++)\r\n {\r\n tile = mapData[y][x];\r\n\r\n if (!tile || tile.index === -1 || !tile.visible || tile.alpha === 0)\r\n {\r\n continue;\r\n }\r\n\r\n if (!skipCull && !CheckIsoBounds(x, y, layer, camera))\r\n {\r\n continue;\r\n }\r\n\r\n outputArray.push(tile);\r\n }\r\n }\r\n }\r\n else if (renderOrder === 3)\r\n {\r\n // left-up\r\n\r\n for (y = drawBottom; y >= drawTop; y--)\r\n {\r\n for (x = drawRight; x >= drawLeft; x--)\r\n {\r\n tile = mapData[y][x];\r\n\r\n if (!tile || tile.index === -1 || !tile.visible || tile.alpha === 0)\r\n {\r\n continue;\r\n }\r\n\r\n if (!skipCull && !CheckIsoBounds(x, y, layer, camera))\r\n {\r\n continue;\r\n }\r\n\r\n outputArray.push(tile);\r\n }\r\n }\r\n }\r\n\r\n tilemapLayer.tilesDrawn = outputArray.length;\r\n tilemapLayer.tilesTotal = mapWidth * mapHeight;\r\n\r\n return outputArray;\r\n};\r\n\r\nmodule.exports = IsometricCullTiles;\r\n\n\n/***/ }),\n\n/***/ 14127:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * Converts from isometric tile XY coordinates (tile units) to world XY coordinates (pixels), factoring in the\r\n * layer's position, scale and scroll. This will return a new Vector2 object or update the given\r\n * `point` object.\r\n *\r\n * @function Phaser.Tilemaps.Components.IsometricTileToWorldXY\r\n * @since 3.50.0\r\n *\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {Phaser.Math.Vector2} point - A Vector2 to store the coordinates in. If not given a new Vector2 is created.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {Phaser.Math.Vector2} The XY location in world coordinates.\r\n */\r\nvar IsometricTileToWorldXY = function (tileX, tileY, point, camera, layer)\r\n{\r\n if (!point) { point = new Vector2(); }\r\n\r\n var tileWidth = layer.baseTileWidth;\r\n var tileHeight = layer.baseTileHeight;\r\n var tilemapLayer = layer.tilemapLayer;\r\n\r\n var layerWorldX = 0;\r\n var layerWorldY = 0;\r\n\r\n if (tilemapLayer)\r\n {\r\n if (!camera) { camera = tilemapLayer.scene.cameras.main; }\r\n\r\n layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX);\r\n\r\n tileWidth *= tilemapLayer.scaleX;\r\n\r\n layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY));\r\n\r\n tileHeight *= tilemapLayer.scaleY;\r\n }\r\n\r\n var x = layerWorldX + (tileX - tileY) * (tileWidth / 2);\r\n var y = layerWorldY + (tileX + tileY) * (tileHeight / 2);\r\n\r\n return point.set(x, y);\r\n};\r\n\r\nmodule.exports = IsometricTileToWorldXY;\r\n\n\n/***/ }),\n\n/***/ 96897:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * Converts from world XY coordinates (pixels) to isometric tile XY coordinates (tile units), factoring in the\r\n * layers position, scale and scroll. This will return a new Vector2 object or update the given\r\n * `point` object.\r\n *\r\n * @function Phaser.Tilemaps.Components.IsometricWorldToTileXY\r\n * @since 3.50.0\r\n *\r\n * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles.\r\n * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles.\r\n * @param {boolean} snapToFloor - Whether or not to round the tile coordinate down to the nearest integer.\r\n * @param {Phaser.Math.Vector2} point - A Vector2 to store the coordinates in. If not given a new Vector2 is created.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n * @param {boolean} [originTop=true] - Which is the active face of the isometric tile? The top (default, true), or the base? (false)\r\n *\r\n * @return {Phaser.Math.Vector2} The XY location in tile units.\r\n */\r\nvar IsometricWorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, layer, originTop)\r\n{\r\n if (!point) { point = new Vector2(); }\r\n\r\n var tileWidth = layer.baseTileWidth;\r\n var tileHeight = layer.baseTileHeight;\r\n var tilemapLayer = layer.tilemapLayer;\r\n\r\n if (tilemapLayer)\r\n {\r\n if (!camera) { camera = tilemapLayer.scene.cameras.main; }\r\n\r\n // Find the world position relative to the static or dynamic layer's top left origin,\r\n // factoring in the camera's vertical scroll\r\n\r\n worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY));\r\n\r\n tileHeight *= tilemapLayer.scaleY;\r\n\r\n // Find the world position relative to the static or dynamic layer's top left origin,\r\n // factoring in the camera's horizontal scroll\r\n\r\n worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX));\r\n\r\n tileWidth *= tilemapLayer.scaleX;\r\n }\r\n\r\n var tileWidthHalf = tileWidth / 2;\r\n var tileHeightHalf = tileHeight / 2;\r\n\r\n worldX = worldX - tileWidthHalf;\r\n\r\n if (!originTop)\r\n {\r\n worldY = worldY - tileHeight;\r\n }\r\n\r\n var x = 0.5 * (worldX / tileWidthHalf + worldY / tileHeightHalf);\r\n var y = 0.5 * (-worldX / tileWidthHalf + worldY / tileHeightHalf);\r\n\r\n if (snapToFloor)\r\n {\r\n x = Math.floor(x);\r\n y = Math.floor(y);\r\n }\r\n\r\n return point.set(x, y);\r\n};\r\n\r\nmodule.exports = IsometricWorldToTileXY;\r\n\n\n/***/ }),\n\n/***/ 71558:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Tile = __webpack_require__(23029);\r\nvar IsInLayerBounds = __webpack_require__(62991);\r\nvar CalculateFacesAt = __webpack_require__(72023);\r\nvar SetTileCollision = __webpack_require__(20576);\r\n\r\n/**\r\n * Puts a tile at the given tile coordinates in the specified layer. You can pass in either an index\r\n * or a Tile object. If you pass in a Tile, all attributes will be copied over to the specified\r\n * location. If you pass in an index, only the index at the specified location will be changed.\r\n * Collision information will be recalculated at the specified location.\r\n *\r\n * @function Phaser.Tilemaps.Components.PutTileAt\r\n * @since 3.0.0\r\n *\r\n * @param {(number|Phaser.Tilemaps.Tile)} tile - The index of this tile to set or a Tile object.\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {boolean} recalculateFaces - `true` if the faces data should be recalculated.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {Phaser.Tilemaps.Tile} The Tile object that was created or added to this map.\r\n */\r\nvar PutTileAt = function (tile, tileX, tileY, recalculateFaces, layer)\r\n{\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n\r\n if (!IsInLayerBounds(tileX, tileY, layer))\r\n {\r\n return null;\r\n }\r\n\r\n var index;\r\n var oldTile = layer.data[tileY][tileX];\r\n var oldTileCollides = oldTile && oldTile.collides;\r\n\r\n if (tile instanceof Tile)\r\n {\r\n if (layer.data[tileY][tileX] === null)\r\n {\r\n layer.data[tileY][tileX] = new Tile(layer, tile.index, tileX, tileY, layer.tileWidth, layer.tileHeight);\r\n }\r\n\r\n layer.data[tileY][tileX].copy(tile);\r\n }\r\n else\r\n {\r\n index = tile;\r\n\r\n if (layer.data[tileY][tileX] === null)\r\n {\r\n layer.data[tileY][tileX] = new Tile(layer, index, tileX, tileY, layer.tileWidth, layer.tileHeight);\r\n }\r\n else\r\n {\r\n layer.data[tileY][tileX].index = index;\r\n }\r\n }\r\n\r\n // Updating colliding flag on the new tile\r\n var newTile = layer.data[tileY][tileX];\r\n var collides = layer.collideIndexes.indexOf(newTile.index) !== -1;\r\n\r\n index = tile instanceof Tile ? tile.index : tile;\r\n\r\n if (index === -1)\r\n {\r\n newTile.width = layer.tileWidth;\r\n newTile.height = layer.tileHeight;\r\n }\r\n else\r\n {\r\n var tilemap = layer.tilemapLayer.tilemap;\r\n var tiles = tilemap.tiles;\r\n var sid = tiles[index][2];\r\n var set = tilemap.tilesets[sid];\r\n\r\n newTile.width = set.tileWidth;\r\n newTile.height = set.tileHeight;\r\n }\r\n\r\n SetTileCollision(newTile, collides);\r\n\r\n // Recalculate faces only if the colliding flag at (tileX, tileY) has changed\r\n if (recalculateFaces && (oldTileCollides !== newTile.collides))\r\n {\r\n CalculateFacesAt(tileX, tileY, layer);\r\n }\r\n\r\n return newTile;\r\n};\r\n\r\nmodule.exports = PutTileAt;\r\n\n\n/***/ }),\n\n/***/ 26303:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar PutTileAt = __webpack_require__(71558);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\nvar point = new Vector2();\r\n\r\n/**\r\n * Puts a tile at the given world coordinates (pixels) in the specified layer. You can pass in either\r\n * an index or a Tile object. If you pass in a Tile, all attributes will be copied over to the\r\n * specified location. If you pass in an index, only the index at the specified location will be\r\n * changed. Collision information will be recalculated at the specified location.\r\n *\r\n * @function Phaser.Tilemaps.Components.PutTileAtWorldXY\r\n * @since 3.0.0\r\n *\r\n * @param {(number|Phaser.Tilemaps.Tile)} tile - The index of this tile to set or a Tile object.\r\n * @param {number} worldX - The x coordinate, in pixels.\r\n * @param {number} worldY - The y coordinate, in pixels.\r\n * @param {boolean} recalculateFaces - `true` if the faces data should be recalculated.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {Phaser.Tilemaps.Tile} The Tile object that was created or added to this map.\r\n */\r\nvar PutTileAtWorldXY = function (tile, worldX, worldY, recalculateFaces, camera, layer)\r\n{\r\n layer.tilemapLayer.worldToTileXY(worldX, worldY, true, point, camera, layer);\r\n\r\n return PutTileAt(tile, point.x, point.y, recalculateFaces, layer);\r\n};\r\n\r\nmodule.exports = PutTileAtWorldXY;\r\n\n\n/***/ }),\n\n/***/ 14051:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CalculateFacesWithin = __webpack_require__(42573);\r\nvar PutTileAt = __webpack_require__(71558);\r\n\r\n/**\r\n * Puts an array of tiles or a 2D array of tiles at the given tile coordinates in the specified\r\n * layer. The array can be composed of either tile indexes or Tile objects. If you pass in a Tile,\r\n * all attributes will be copied over to the specified location. If you pass in an index, only the\r\n * index at the specified location will be changed. Collision information will be recalculated\r\n * within the region tiles were changed.\r\n *\r\n * @function Phaser.Tilemaps.Components.PutTilesAt\r\n * @since 3.0.0\r\n *\r\n * @param {(number[]|number[][]|Phaser.Tilemaps.Tile[]|Phaser.Tilemaps.Tile[][])} tile - A row (array) or grid (2D array) of Tiles or tile indexes to place.\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {boolean} recalculateFaces - `true` if the faces data should be recalculated.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n */\r\nvar PutTilesAt = function (tilesArray, tileX, tileY, recalculateFaces, layer)\r\n{\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n\r\n if (!Array.isArray(tilesArray))\r\n {\r\n return null;\r\n }\r\n\r\n // Force the input array to be a 2D array\r\n if (!Array.isArray(tilesArray[0]))\r\n {\r\n tilesArray = [ tilesArray ];\r\n }\r\n\r\n var height = tilesArray.length;\r\n var width = tilesArray[0].length;\r\n\r\n for (var ty = 0; ty < height; ty++)\r\n {\r\n for (var tx = 0; tx < width; tx++)\r\n {\r\n var tile = tilesArray[ty][tx];\r\n\r\n PutTileAt(tile, tileX + tx, tileY + ty, false, layer);\r\n }\r\n }\r\n\r\n if (recalculateFaces)\r\n {\r\n // Recalculate the faces within the destination area and neighboring tiles\r\n CalculateFacesWithin(tileX - 1, tileY - 1, width + 2, height + 2, layer);\r\n }\r\n};\r\n\r\nmodule.exports = PutTilesAt;\r\n\n\n/***/ }),\n\n/***/ 77389:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetTilesWithin = __webpack_require__(7386);\r\nvar GetRandom = __webpack_require__(26546);\r\n\r\n/**\r\n * Randomizes the indexes of a rectangular region of tiles (in tile coordinates) within the\r\n * specified layer. Each tile will receive a new index. If an array of indexes is passed in, then\r\n * those will be used for randomly assigning new tile indexes. If an array is not provided, the\r\n * indexes found within the region (excluding -1) will be used for randomly assigning new tile\r\n * indexes. This method only modifies tile indexes and does not change collision information.\r\n *\r\n * @function Phaser.Tilemaps.Components.Randomize\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileX - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} tileY - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} width - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} height - How many tiles tall from the `tileY` index the area will be.\r\n * @param {number[]} indexes - An array of indexes to randomly draw from during randomization.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n */\r\nvar Randomize = function (tileX, tileY, width, height, indexes, layer)\r\n{\r\n var i;\r\n var tiles = GetTilesWithin(tileX, tileY, width, height, {}, layer);\r\n\r\n // If no indices are given, then find all the unique indexes within the specified region\r\n if (!indexes)\r\n {\r\n indexes = [];\r\n\r\n for (i = 0; i < tiles.length; i++)\r\n {\r\n if (indexes.indexOf(tiles[i].index) === -1)\r\n {\r\n indexes.push(tiles[i].index);\r\n }\r\n }\r\n }\r\n\r\n for (i = 0; i < tiles.length; i++)\r\n {\r\n tiles[i].index = GetRandom(indexes);\r\n }\r\n};\r\n\r\nmodule.exports = Randomize;\r\n\n\n/***/ }),\n\n/***/ 63557:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Tile = __webpack_require__(23029);\r\nvar IsInLayerBounds = __webpack_require__(62991);\r\nvar CalculateFacesAt = __webpack_require__(72023);\r\n\r\n/**\r\n * Removes the tile at the given tile coordinates in the specified layer and updates the layer's\r\n * collision information.\r\n *\r\n * @function Phaser.Tilemaps.Components.RemoveTileAt\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileX - The x coordinate.\r\n * @param {number} tileY - The y coordinate.\r\n * @param {boolean} replaceWithNull - If true, this will replace the tile at the specified location with null instead of a Tile with an index of -1.\r\n * @param {boolean} recalculateFaces - `true` if the faces data should be recalculated.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {Phaser.Tilemaps.Tile} The Tile object that was removed.\r\n */\r\nvar RemoveTileAt = function (tileX, tileY, replaceWithNull, recalculateFaces, layer)\r\n{\r\n if (replaceWithNull === undefined) { replaceWithNull = true; }\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n\r\n if (!IsInLayerBounds(tileX, tileY, layer))\r\n {\r\n return null;\r\n }\r\n\r\n var tile = layer.data[tileY][tileX];\r\n\r\n if (!tile)\r\n {\r\n return null;\r\n }\r\n else\r\n {\r\n layer.data[tileY][tileX] = (replaceWithNull) ? null : new Tile(layer, -1, tileX, tileY, layer.tileWidth, layer.tileHeight);\r\n }\r\n\r\n // Recalculate faces only if the removed tile was a colliding tile\r\n if (recalculateFaces && tile && tile.collides)\r\n {\r\n CalculateFacesAt(tileX, tileY, layer);\r\n }\r\n\r\n return tile;\r\n};\r\n\r\nmodule.exports = RemoveTileAt;\r\n\n\n/***/ }),\n\n/***/ 94178:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar RemoveTileAt = __webpack_require__(63557);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\nvar point = new Vector2();\r\n\r\n/**\r\n * Removes the tile at the given world coordinates in the specified layer and updates the layer's\r\n * collision information.\r\n *\r\n * @function Phaser.Tilemaps.Components.RemoveTileAtWorldXY\r\n * @since 3.0.0\r\n *\r\n * @param {number} worldX - The x coordinate, in pixels.\r\n * @param {number} worldY - The y coordinate, in pixels.\r\n * @param {boolean} replaceWithNull - If true, this will replace the tile at the specified location with null instead of a Tile with an index of -1.\r\n * @param {boolean} recalculateFaces - `true` if the faces data should be recalculated.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {Phaser.Tilemaps.Tile} The Tile object that was removed.\r\n */\r\nvar RemoveTileAtWorldXY = function (worldX, worldY, replaceWithNull, recalculateFaces, camera, layer)\r\n{\r\n layer.tilemapLayer.worldToTileXY(worldX, worldY, true, point, camera, layer);\r\n\r\n return RemoveTileAt(point.x, point.y, replaceWithNull, recalculateFaces, layer);\r\n};\r\n\r\nmodule.exports = RemoveTileAtWorldXY;\r\n\n\n/***/ }),\n\n/***/ 15533:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetTilesWithin = __webpack_require__(7386);\r\nvar Color = __webpack_require__(3956);\r\n\r\nvar defaultTileColor = new Color(105, 210, 231, 150);\r\nvar defaultCollidingTileColor = new Color(243, 134, 48, 200);\r\nvar defaultFaceColor = new Color(40, 39, 37, 150);\r\n\r\n/**\r\n * Draws a debug representation of the layer to the given Graphics. This is helpful when you want to\r\n * get a quick idea of which of your tiles are colliding and which have interesting faces. The tiles\r\n * are drawn starting at (0, 0) in the Graphics, allowing you to place the debug representation\r\n * wherever you want on the screen.\r\n *\r\n * @function Phaser.Tilemaps.Components.RenderDebug\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.GameObjects.Graphics} graphics - The target Graphics object to draw upon.\r\n * @param {Phaser.Types.Tilemaps.DebugStyleOptions} styleConfig - An object specifying the colors to use for the debug drawing.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n */\r\nvar RenderDebug = function (graphics, styleConfig, layer)\r\n{\r\n if (styleConfig === undefined) { styleConfig = {}; }\r\n\r\n // Default colors without needlessly creating Color objects\r\n var tileColor = (styleConfig.tileColor !== undefined) ? styleConfig.tileColor : defaultTileColor;\r\n var collidingTileColor = (styleConfig.collidingTileColor !== undefined) ? styleConfig.collidingTileColor : defaultCollidingTileColor;\r\n var faceColor = (styleConfig.faceColor !== undefined) ? styleConfig.faceColor : defaultFaceColor;\r\n\r\n var tiles = GetTilesWithin(0, 0, layer.width, layer.height, null, layer);\r\n\r\n graphics.translateCanvas(layer.tilemapLayer.x, layer.tilemapLayer.y);\r\n graphics.scaleCanvas(layer.tilemapLayer.scaleX, layer.tilemapLayer.scaleY);\r\n\r\n for (var i = 0; i < tiles.length; i++)\r\n {\r\n var tile = tiles[i];\r\n\r\n var tw = tile.width;\r\n var th = tile.height;\r\n var x = tile.pixelX;\r\n var y = tile.pixelY;\r\n\r\n var color = tile.collides ? collidingTileColor : tileColor;\r\n\r\n if (color !== null)\r\n {\r\n graphics.fillStyle(color.color, color.alpha / 255);\r\n graphics.fillRect(x, y, tw, th);\r\n }\r\n\r\n // Inset the face line to prevent neighboring tile's lines from overlapping\r\n x += 1;\r\n y += 1;\r\n tw -= 2;\r\n th -= 2;\r\n\r\n if (faceColor !== null)\r\n {\r\n graphics.lineStyle(1, faceColor.color, faceColor.alpha / 255);\r\n\r\n if (tile.faceTop) { graphics.lineBetween(x, y, x + tw, y); }\r\n if (tile.faceRight) { graphics.lineBetween(x + tw, y, x + tw, y + th); }\r\n if (tile.faceBottom) { graphics.lineBetween(x, y + th, x + tw, y + th); }\r\n if (tile.faceLeft) { graphics.lineBetween(x, y, x, y + th); }\r\n }\r\n }\r\n};\r\n\r\nmodule.exports = RenderDebug;\r\n\r\n/**\r\n\r\nfunction Orientation(f0, f1, f2, f3, b0, b1, b2, b3, start_angle) {\r\n return {f0: f0, f1: f1, f2: f2, f3: f3, b0: b0, b1: b1, b2: b2, b3: b3, start_angle: start_angle};\r\n}\r\n\r\nfunction Layout(orientation, size, origin) {\r\n return {orientation: orientation, size: size, origin: origin};\r\n}\r\n\r\nfunction Hex(q, r, s) {\r\n return {q: q, r: r, s: s};\r\n}\r\n\r\nfunction hex_round(h)\r\n{\r\n var qi = Math.round(h.q);\r\n var ri = Math.round(h.r);\r\n var si = Math.round(h.s);\r\n var q_diff = Math.abs(qi - h.q);\r\n var r_diff = Math.abs(ri - h.r);\r\n var s_diff = Math.abs(si - h.s);\r\n if (q_diff > r_diff && q_diff > s_diff)\r\n {\r\n qi = -ri - si;\r\n }\r\n else\r\n if (r_diff > s_diff)\r\n {\r\n ri = -qi - si;\r\n }\r\n else\r\n {\r\n si = -qi - ri;\r\n }\r\n return Hex(qi, ri, si);\r\n}\r\n\r\nvar layout_pointy = Orientation(Math.sqrt(3.0), Math.sqrt(3.0) / 2.0, 0.0, 3.0 / 2.0, Math.sqrt(3.0) / 3.0, -1.0 / 3.0, 0.0, 2.0 / 3.0, 0.5);\r\n\r\nfunction OffsetCoord(col, row) {\r\n return {col: col, row: row};\r\n}\r\n\r\nvar EVEN = 1;\r\nvar ODD = -1;\r\n\r\nfunction roffset_from_cube(offset, h)\r\n{\r\n var col = h.q + (h.r + offset * (h.r & 1)) / 2;\r\n var row = h.r;\r\n return OffsetCoord(col, row);\r\n}\r\n\r\nfunction roffset_to_cube(offset, h)\r\n{\r\n var q = h.col - (h.row + offset * (h.row & 1)) / 2;\r\n var r = h.row;\r\n var s = -q - r;\r\n return Hex(q, r, s);\r\n}\r\n\r\nfunction hex_to_pixel(layout, h)\r\n{\r\n var M = layout.orientation;\r\n var size = layout.size;\r\n var origin = layout.origin;\r\n var x = (M.f0 * h.q + M.f1 * h.r) * size.x;\r\n var y = (M.f2 * h.q + M.f3 * h.r) * size.y;\r\n return new Vector2(x + origin.x, y + origin.y);\r\n}\r\n\r\nfunction hex_corner_offset(layout, corner)\r\n{\r\n var M = layout.orientation;\r\n var size = layout.size;\r\n var angle = 2.0 * Math.PI * (M.start_angle - corner) / 6.0;\r\n return new Vector2(size.x * Math.cos(angle), size.y * Math.sin(angle));\r\n}\r\n\r\nfunction polygon_corners(layout, h)\r\n{\r\n var corners = [];\r\n var center = hex_to_pixel(layout, h);\r\n for (var i = 0; i < 6; i++)\r\n {\r\n var offset = hex_corner_offset(layout, i);\r\n corners.push(new Vector2(center.x + offset.x, center.y + offset.y));\r\n }\r\n return corners;\r\n}\r\n\r\nvar layout = Layout(layout_pointy, new Vector2(tileHeight/2, tileWidth/2), new Vector2(tileWidth/2, tileWidth/2));\r\n\r\nfor (var q = 0; q <= 9; q++)\r\n{\r\n for (var r = 0; r <= 9; r++)\r\n {\r\n var h = Hex(q, r, -q - r); // cubed\r\n // var hr = hex_round(h);\r\n // var o = roffset_from_cube(ODD, hr);\r\n // var b = roffset_to_cube(ODD, o);\r\n\r\n var c = polygon_corners(layout, h);\r\n\r\n if (q === 0 && r === 0)\r\n {\r\n console.log(c);\r\n }\r\n\r\n g.beginPath();\r\n g.moveTo(Math.floor(c[0].x), Math.floor(c[0].y));\r\n\r\n for (var i = 1; i < c.length; i++)\r\n {\r\n g.lineTo(Math.floor(c[i].x), Math.floor(c[i].y));\r\n }\r\n\r\n g.closePath();\r\n g.strokePath();\r\n }\r\n}\r\n\r\n var c = polygon_corners(layout, hr);\r\n\r\n g.beginPath();\r\n g.moveTo(Math.floor(c[0].x), Math.floor(c[0].y));\r\n\r\n for (var i = 1; i < c.length; i++)\r\n {\r\n g.lineTo(Math.floor(c[i].x), Math.floor(c[i].y));\r\n }\r\n\r\n g.closePath();\r\n g.fillPath();\r\n\r\n // g.scene.add.text(c[3].x + 2, c[3].y + 6, `${hr.q} x ${hr.r}`);\r\n g.scene.add.text(c[3].x + 2, c[3].y + 6, `${x} x ${y}`);\r\n\r\n\r\n*/\r\n\n\n/***/ }),\n\n/***/ 27987:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetTilesWithin = __webpack_require__(7386);\r\n\r\n/**\r\n * Scans the given rectangular area (given in tile coordinates) for tiles with an index matching\r\n * `findIndex` and updates their index to match `newIndex`. This only modifies the index and does\r\n * not change collision information.\r\n *\r\n * @function Phaser.Tilemaps.Components.ReplaceByIndex\r\n * @since 3.0.0\r\n *\r\n * @param {number} findIndex - The index of the tile to search for.\r\n * @param {number} newIndex - The index of the tile to replace it with.\r\n * @param {number} tileX - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} tileY - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} width - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} height - How many tiles tall from the `tileY` index the area will be.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n */\r\nvar ReplaceByIndex = function (findIndex, newIndex, tileX, tileY, width, height, layer)\r\n{\r\n var tiles = GetTilesWithin(tileX, tileY, width, height, null, layer);\r\n\r\n for (var i = 0; i < tiles.length; i++)\r\n {\r\n if (tiles[i] && tiles[i].index === findIndex)\r\n {\r\n tiles[i].index = newIndex;\r\n }\r\n }\r\n};\r\n\r\nmodule.exports = ReplaceByIndex;\r\n\n\n/***/ }),\n\n/***/ 32483:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Returns the tiles in the given layer that are within the cameras viewport. This is used internally.\r\n *\r\n * @function Phaser.Tilemaps.Components.RunCull\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n * @param {object} bounds - An object containing the `left`, `right`, `top` and `bottom` bounds.\r\n * @param {number} renderOrder - The rendering order constant.\r\n * @param {array} outputArray - The array to store the Tile objects within.\r\n *\r\n * @return {Phaser.Tilemaps.Tile[]} An array of Tile objects.\r\n */\r\nvar RunCull = function (layer, bounds, renderOrder, outputArray)\r\n{\r\n var mapData = layer.data;\r\n var mapWidth = layer.width;\r\n var mapHeight = layer.height;\r\n\r\n var tilemapLayer = layer.tilemapLayer;\r\n\r\n var drawLeft = Math.max(0, bounds.left);\r\n var drawRight = Math.min(mapWidth, bounds.right);\r\n var drawTop = Math.max(0, bounds.top);\r\n var drawBottom = Math.min(mapHeight, bounds.bottom);\r\n\r\n var x;\r\n var y;\r\n var tile;\r\n\r\n if (renderOrder === 0)\r\n {\r\n // right-down\r\n\r\n for (y = drawTop; y < drawBottom; y++)\r\n {\r\n for (x = drawLeft; mapData[y] && x < drawRight; x++)\r\n {\r\n tile = mapData[y][x];\r\n\r\n if (!tile || tile.index === -1 || !tile.visible || tile.alpha === 0)\r\n {\r\n continue;\r\n }\r\n\r\n outputArray.push(tile);\r\n }\r\n }\r\n }\r\n else if (renderOrder === 1)\r\n {\r\n // left-down\r\n\r\n for (y = drawTop; y < drawBottom; y++)\r\n {\r\n for (x = drawRight; mapData[y] && x >= drawLeft; x--)\r\n {\r\n tile = mapData[y][x];\r\n\r\n if (!tile || tile.index === -1 || !tile.visible || tile.alpha === 0)\r\n {\r\n continue;\r\n }\r\n\r\n outputArray.push(tile);\r\n }\r\n }\r\n }\r\n else if (renderOrder === 2)\r\n {\r\n // right-up\r\n\r\n for (y = drawBottom; y >= drawTop; y--)\r\n {\r\n for (x = drawLeft; mapData[y] && x < drawRight; x++)\r\n {\r\n tile = mapData[y][x];\r\n\r\n if (!tile || tile.index === -1 || !tile.visible || tile.alpha === 0)\r\n {\r\n continue;\r\n }\r\n\r\n outputArray.push(tile);\r\n }\r\n }\r\n }\r\n else if (renderOrder === 3)\r\n {\r\n // left-up\r\n\r\n for (y = drawBottom; y >= drawTop; y--)\r\n {\r\n for (x = drawRight; mapData[y] && x >= drawLeft; x--)\r\n {\r\n tile = mapData[y][x];\r\n\r\n if (!tile || tile.index === -1 || !tile.visible || tile.alpha === 0)\r\n {\r\n continue;\r\n }\r\n\r\n outputArray.push(tile);\r\n }\r\n }\r\n }\r\n\r\n tilemapLayer.tilesDrawn = outputArray.length;\r\n tilemapLayer.tilesTotal = mapWidth * mapHeight;\r\n\r\n return outputArray;\r\n};\r\n\r\nmodule.exports = RunCull;\r\n\n\n/***/ }),\n\n/***/ 57068:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar SetTileCollision = __webpack_require__(20576);\r\nvar CalculateFacesWithin = __webpack_require__(42573);\r\nvar SetLayerCollisionIndex = __webpack_require__(9589);\r\n\r\n/**\r\n * Sets collision on the given tile or tiles within a layer by index. You can pass in either a\r\n * single numeric index or an array of indexes: [2, 3, 15, 20]. The `collides` parameter controls if\r\n * collision will be enabled (true) or disabled (false).\r\n *\r\n * @function Phaser.Tilemaps.Components.SetCollision\r\n * @since 3.0.0\r\n *\r\n * @param {(number|array)} indexes - Either a single tile index, or an array of tile indexes.\r\n * @param {boolean} collides - If true it will enable collision. If false it will clear collision.\r\n * @param {boolean} recalculateFaces - Whether or not to recalculate the tile faces after the update.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n * @param {boolean} [updateLayer=true] - If true, updates the current tiles on the layer. Set to false if no tiles have been placed for significant performance boost.\r\n */\r\nvar SetCollision = function (indexes, collides, recalculateFaces, layer, updateLayer)\r\n{\r\n if (collides === undefined) { collides = true; }\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n if (updateLayer === undefined) { updateLayer = true; }\r\n\r\n if (!Array.isArray(indexes))\r\n {\r\n indexes = [ indexes ];\r\n }\r\n\r\n // Update the array of colliding indexes\r\n for (var i = 0; i < indexes.length; i++)\r\n {\r\n SetLayerCollisionIndex(indexes[i], collides, layer);\r\n }\r\n\r\n // Update the tiles\r\n if (updateLayer)\r\n {\r\n for (var ty = 0; ty < layer.height; ty++)\r\n {\r\n for (var tx = 0; tx < layer.width; tx++)\r\n {\r\n var tile = layer.data[ty][tx];\r\n\r\n if (tile && indexes.indexOf(tile.index) !== -1)\r\n {\r\n SetTileCollision(tile, collides);\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (recalculateFaces)\r\n {\r\n CalculateFacesWithin(0, 0, layer.width, layer.height, layer);\r\n }\r\n};\r\n\r\nmodule.exports = SetCollision;\r\n\n\n/***/ }),\n\n/***/ 37266:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar SetTileCollision = __webpack_require__(20576);\r\nvar CalculateFacesWithin = __webpack_require__(42573);\r\nvar SetLayerCollisionIndex = __webpack_require__(9589);\r\n\r\n/**\r\n * Sets collision on a range of tiles in a layer whose index is between the specified `start` and\r\n * `stop` (inclusive). Calling this with a start value of 10 and a stop value of 14 would set\r\n * collision for tiles 10, 11, 12, 13 and 14. The `collides` parameter controls if collision will be\r\n * enabled (true) or disabled (false).\r\n *\r\n * @function Phaser.Tilemaps.Components.SetCollisionBetween\r\n * @since 3.0.0\r\n *\r\n * @param {number} start - The first index of the tile to be set for collision.\r\n * @param {number} stop - The last index of the tile to be set for collision.\r\n * @param {boolean} collides - If true it will enable collision. If false it will clear collision.\r\n * @param {boolean} recalculateFaces - Whether or not to recalculate the tile faces after the update.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n * @param {boolean} [updateLayer=true] - If true, updates the current tiles on the layer. Set to false if no tiles have been placed for significant performance boost.\r\n */\r\nvar SetCollisionBetween = function (start, stop, collides, recalculateFaces, layer, updateLayer)\r\n{\r\n if (collides === undefined) { collides = true; }\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n if (updateLayer === undefined) { updateLayer = true; }\r\n\r\n if (start > stop)\r\n {\r\n return;\r\n }\r\n\r\n // Update the array of colliding indexes\r\n for (var index = start; index <= stop; index++)\r\n {\r\n SetLayerCollisionIndex(index, collides, layer);\r\n }\r\n\r\n // Update the tiles\r\n if (updateLayer)\r\n {\r\n for (var ty = 0; ty < layer.height; ty++)\r\n {\r\n for (var tx = 0; tx < layer.width; tx++)\r\n {\r\n var tile = layer.data[ty][tx];\r\n\r\n if (tile)\r\n {\r\n if (tile.index >= start && tile.index <= stop)\r\n {\r\n SetTileCollision(tile, collides);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (recalculateFaces)\r\n {\r\n CalculateFacesWithin(0, 0, layer.width, layer.height, layer);\r\n }\r\n};\r\n\r\nmodule.exports = SetCollisionBetween;\r\n\n\n/***/ }),\n\n/***/ 75661:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar SetTileCollision = __webpack_require__(20576);\r\nvar CalculateFacesWithin = __webpack_require__(42573);\r\nvar SetLayerCollisionIndex = __webpack_require__(9589);\r\n\r\n/**\r\n * Sets collision on all tiles in the given layer, except for tiles that have an index specified in\r\n * the given array. The `collides` parameter controls if collision will be enabled (true) or\r\n * disabled (false). Tile indexes not currently in the layer are not affected.\r\n *\r\n * @function Phaser.Tilemaps.Components.SetCollisionByExclusion\r\n * @since 3.0.0\r\n *\r\n * @param {number[]} indexes - An array of the tile indexes to not be counted for collision.\r\n * @param {boolean} collides - If true it will enable collision. If false it will clear collision.\r\n * @param {boolean} recalculateFaces - Whether or not to recalculate the tile faces after the update.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n */\r\nvar SetCollisionByExclusion = function (indexes, collides, recalculateFaces, layer)\r\n{\r\n if (collides === undefined) { collides = true; }\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n\r\n if (!Array.isArray(indexes))\r\n {\r\n indexes = [ indexes ];\r\n }\r\n\r\n // Note: this only updates layer.collideIndexes for tile indexes found currently in the layer\r\n for (var ty = 0; ty < layer.height; ty++)\r\n {\r\n for (var tx = 0; tx < layer.width; tx++)\r\n {\r\n var tile = layer.data[ty][tx];\r\n\r\n if (tile && indexes.indexOf(tile.index) === -1)\r\n {\r\n SetTileCollision(tile, collides);\r\n SetLayerCollisionIndex(tile.index, collides, layer);\r\n }\r\n }\r\n }\r\n\r\n if (recalculateFaces)\r\n {\r\n CalculateFacesWithin(0, 0, layer.width, layer.height, layer);\r\n }\r\n};\r\n\r\nmodule.exports = SetCollisionByExclusion;\r\n\n\n/***/ }),\n\n/***/ 64740:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar SetTileCollision = __webpack_require__(20576);\r\nvar CalculateFacesWithin = __webpack_require__(42573);\r\nvar HasValue = __webpack_require__(97022);\r\n\r\n/**\r\n * Sets collision on the tiles within a layer by checking tile properties. If a tile has a property\r\n * that matches the given properties object, its collision flag will be set. The `collides`\r\n * parameter controls if collision will be enabled (true) or disabled (false). Passing in\r\n * `{ collides: true }` would update the collision flag on any tiles with a \"collides\" property that\r\n * has a value of true. Any tile that doesn't have \"collides\" set to true will be ignored. You can\r\n * also use an array of values, e.g. `{ types: [\"stone\", \"lava\", \"sand\" ] }`. If a tile has a\r\n * \"types\" property that matches any of those values, its collision flag will be updated.\r\n *\r\n * @function Phaser.Tilemaps.Components.SetCollisionByProperty\r\n * @since 3.0.0\r\n *\r\n * @param {object} properties - An object with tile properties and corresponding values that should be checked.\r\n * @param {boolean} collides - If true it will enable collision. If false it will clear collision.\r\n * @param {boolean} recalculateFaces - Whether or not to recalculate the tile faces after the update.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n */\r\nvar SetCollisionByProperty = function (properties, collides, recalculateFaces, layer)\r\n{\r\n if (collides === undefined) { collides = true; }\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n\r\n for (var ty = 0; ty < layer.height; ty++)\r\n {\r\n for (var tx = 0; tx < layer.width; tx++)\r\n {\r\n var tile = layer.data[ty][tx];\r\n\r\n if (!tile) { continue; }\r\n\r\n for (var property in properties)\r\n {\r\n if (!HasValue(tile.properties, property)) { continue; }\r\n\r\n var values = properties[property];\r\n\r\n if (!Array.isArray(values))\r\n {\r\n values = [ values ];\r\n }\r\n\r\n for (var i = 0; i < values.length; i++)\r\n {\r\n if (tile.properties[property] === values[i])\r\n {\r\n SetTileCollision(tile, collides);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (recalculateFaces)\r\n {\r\n CalculateFacesWithin(0, 0, layer.width, layer.height, layer);\r\n }\r\n};\r\n\r\nmodule.exports = SetCollisionByProperty;\r\n\n\n/***/ }),\n\n/***/ 63307:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar SetTileCollision = __webpack_require__(20576);\r\nvar CalculateFacesWithin = __webpack_require__(42573);\r\n\r\n/**\r\n * Sets collision on the tiles within a layer by checking each tile's collision group data\r\n * (typically defined in Tiled within the tileset collision editor). If any objects are found within\r\n * a tile's collision group, the tile's colliding information will be set. The `collides` parameter\r\n * controls if collision will be enabled (true) or disabled (false).\r\n *\r\n * @function Phaser.Tilemaps.Components.SetCollisionFromCollisionGroup\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} collides - If true it will enable collision. If false it will clear collision.\r\n * @param {boolean} recalculateFaces - Whether or not to recalculate the tile faces after the update.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n */\r\nvar SetCollisionFromCollisionGroup = function (collides, recalculateFaces, layer)\r\n{\r\n if (collides === undefined) { collides = true; }\r\n if (recalculateFaces === undefined) { recalculateFaces = true; }\r\n\r\n for (var ty = 0; ty < layer.height; ty++)\r\n {\r\n for (var tx = 0; tx < layer.width; tx++)\r\n {\r\n var tile = layer.data[ty][tx];\r\n\r\n if (!tile) { continue; }\r\n\r\n var collisionGroup = tile.getCollisionGroup();\r\n\r\n // It's possible in Tiled to have a collision group without any shapes, e.g. create a\r\n // shape and then delete the shape.\r\n if (collisionGroup && collisionGroup.objects && collisionGroup.objects.length > 0)\r\n {\r\n SetTileCollision(tile, collides);\r\n }\r\n }\r\n }\r\n\r\n if (recalculateFaces)\r\n {\r\n CalculateFacesWithin(0, 0, layer.width, layer.height, layer);\r\n }\r\n};\r\n\r\nmodule.exports = SetCollisionFromCollisionGroup;\r\n\n\n/***/ }),\n\n/***/ 9589:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Internally used method to keep track of the tile indexes that collide within a layer. This\r\n * updates LayerData.collideIndexes to either contain or not contain the given `tileIndex`.\r\n *\r\n * @function Phaser.Tilemaps.Components.SetLayerCollisionIndex\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileIndex - The tile index to set the collision boolean for.\r\n * @param {boolean} collides - Should the tile index collide or not?\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n */\r\nvar SetLayerCollisionIndex = function (tileIndex, collides, layer)\r\n{\r\n var loc = layer.collideIndexes.indexOf(tileIndex);\r\n\r\n if (collides && loc === -1)\r\n {\r\n layer.collideIndexes.push(tileIndex);\r\n }\r\n else if (!collides && loc !== -1)\r\n {\r\n layer.collideIndexes.splice(loc, 1);\r\n }\r\n};\r\n\r\nmodule.exports = SetLayerCollisionIndex;\r\n\n\n/***/ }),\n\n/***/ 20576:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Internally used method to set the colliding state of a tile. This does not recalculate\r\n * interesting faces.\r\n *\r\n * @function Phaser.Tilemaps.Components.SetTileCollision\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Tilemaps.Tile} tile - The Tile to set the collision on.\r\n * @param {boolean} [collides=true] - Should the tile index collide or not?\r\n */\r\nvar SetTileCollision = function (tile, collides)\r\n{\r\n if (collides)\r\n {\r\n tile.setCollision(true, true, true, true, false);\r\n }\r\n else\r\n {\r\n tile.resetCollision(false);\r\n }\r\n};\r\n\r\nmodule.exports = SetTileCollision;\r\n\n\n/***/ }),\n\n/***/ 79583:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Sets a global collision callback for the given tile index within the layer. This will affect all\r\n * tiles on this layer that have the same index. If a callback is already set for the tile index it\r\n * will be replaced. Set the callback to null to remove it. If you want to set a callback for a tile\r\n * at a specific location on the map then see setTileLocationCallback.\r\n *\r\n * @function Phaser.Tilemaps.Components.SetTileIndexCallback\r\n * @since 3.0.0\r\n *\r\n * @param {(number|array)} indexes - Either a single tile index, or an array of tile indexes to have a collision callback set for.\r\n * @param {function} callback - The callback that will be invoked when the tile is collided with.\r\n * @param {object} callbackContext - The context under which the callback is called.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n */\r\nvar SetTileIndexCallback = function (indexes, callback, callbackContext, layer)\r\n{\r\n if (typeof indexes === 'number')\r\n {\r\n layer.callbacks[indexes] = (callback !== null)\r\n ? { callback: callback, callbackContext: callbackContext }\r\n : undefined;\r\n }\r\n else\r\n {\r\n for (var i = 0, len = indexes.length; i < len; i++)\r\n {\r\n layer.callbacks[indexes[i]] = (callback !== null)\r\n ? { callback: callback, callbackContext: callbackContext }\r\n : undefined;\r\n }\r\n }\r\n};\r\n\r\nmodule.exports = SetTileIndexCallback;\r\n\n\n/***/ }),\n\n/***/ 93254:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetTilesWithin = __webpack_require__(7386);\r\n\r\n/**\r\n * Sets a collision callback for the given rectangular area (in tile coordinates) within the layer.\r\n * If a callback is already set for the tile index it will be replaced. Set the callback to null to\r\n * remove it.\r\n *\r\n * @function Phaser.Tilemaps.Components.SetTileLocationCallback\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileX - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} tileY - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} width - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} height - How many tiles tall from the `tileY` index the area will be.\r\n * @param {function} callback - The callback that will be invoked when the tile is collided with.\r\n * @param {object} callbackContext - The context under which the callback is called.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n */\r\nvar SetTileLocationCallback = function (tileX, tileY, width, height, callback, callbackContext, layer)\r\n{\r\n var tiles = GetTilesWithin(tileX, tileY, width, height, null, layer);\r\n\r\n for (var i = 0; i < tiles.length; i++)\r\n {\r\n tiles[i].setCollisionCallback(callback, callbackContext);\r\n }\r\n};\r\n\r\nmodule.exports = SetTileLocationCallback;\r\n\n\n/***/ }),\n\n/***/ 32903:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetTilesWithin = __webpack_require__(7386);\r\nvar ShuffleArray = __webpack_require__(33680);\r\n\r\n/**\r\n * Shuffles the tiles in a rectangular region (specified in tile coordinates) within the given\r\n * layer. It will only randomize the tiles in that area, so if they're all the same nothing will\r\n * appear to have changed! This method only modifies tile indexes and does not change collision\r\n * information.\r\n *\r\n * @function Phaser.Tilemaps.Components.Shuffle\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileX - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} tileY - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} width - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} height - How many tiles tall from the `tileY` index the area will be.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n */\r\nvar Shuffle = function (tileX, tileY, width, height, layer)\r\n{\r\n var tiles = GetTilesWithin(tileX, tileY, width, height, null, layer);\r\n\r\n var indexes = tiles.map(function (tile) { return tile.index; });\r\n\r\n ShuffleArray(indexes);\r\n\r\n for (var i = 0; i < tiles.length; i++)\r\n {\r\n tiles[i].index = indexes[i];\r\n }\r\n};\r\n\r\nmodule.exports = Shuffle;\r\n\n\n/***/ }),\n\n/***/ 61325:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar SnapCeil = __webpack_require__(63448);\r\nvar SnapFloor = __webpack_require__(56583);\r\n\r\n/**\r\n * Returns the bounds in the given layer that are within the camera's viewport.\r\n * This is used internally by the cull tiles function.\r\n *\r\n * @function Phaser.Tilemaps.Components.StaggeredCullBounds\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to run the cull check against.\r\n *\r\n * @return {object} An object containing the `left`, `right`, `top` and `bottom` bounds.\r\n */\r\nvar StaggeredCullBounds = function (layer, camera)\r\n{\r\n var tilemap = layer.tilemapLayer.tilemap;\r\n var tilemapLayer = layer.tilemapLayer;\r\n\r\n // We need to use the tile sizes defined for the map as a whole, not the layer,\r\n // in order to calculate the bounds correctly. As different sized tiles may be\r\n // placed on the grid and we cannot trust layer.baseTileWidth to give us the true size.\r\n var tileW = Math.floor(tilemap.tileWidth * tilemapLayer.scaleX);\r\n var tileH = Math.floor(tilemap.tileHeight * tilemapLayer.scaleY);\r\n\r\n var boundsLeft = SnapFloor(camera.worldView.x - tilemapLayer.x, tileW, 0, true) - tilemapLayer.cullPaddingX;\r\n var boundsRight = SnapCeil(camera.worldView.right - tilemapLayer.x, tileW, 0, true) + tilemapLayer.cullPaddingX;\r\n\r\n var boundsTop = SnapFloor(camera.worldView.y - tilemapLayer.y, tileH / 2, 0, true) - tilemapLayer.cullPaddingY;\r\n var boundsBottom = SnapCeil(camera.worldView.bottom - tilemapLayer.y, tileH / 2, 0, true) + tilemapLayer.cullPaddingY;\r\n\r\n return {\r\n left: boundsLeft,\r\n right: boundsRight,\r\n top: boundsTop,\r\n bottom: boundsBottom\r\n };\r\n};\r\n\r\nmodule.exports = StaggeredCullBounds;\r\n\n\n/***/ }),\n\n/***/ 54503:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CullBounds = __webpack_require__(61325);\r\nvar RunCull = __webpack_require__(32483);\r\n\r\n/**\r\n * Returns the tiles in the given layer that are within the cameras viewport. This is used internally.\r\n *\r\n * @function Phaser.Tilemaps.Components.StaggeredCullTiles\r\n * @since 3.50.0\r\n *\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to run the cull check against.\r\n * @param {array} [outputArray] - An optional array to store the Tile objects within.\r\n * @param {number} [renderOrder=0] - The rendering order constant.\r\n *\r\n * @return {Phaser.Tilemaps.Tile[]} An array of Tile objects.\r\n */\r\nvar StaggeredCullTiles = function (layer, camera, outputArray, renderOrder)\r\n{\r\n if (outputArray === undefined) { outputArray = []; }\r\n if (renderOrder === undefined) { renderOrder = 0; }\r\n\r\n outputArray.length = 0;\r\n\r\n var tilemapLayer = layer.tilemapLayer;\r\n\r\n // Camera world view bounds, snapped for scaled tile size\r\n // Cull Padding values are given in tiles, not pixels\r\n\r\n var bounds = CullBounds(layer, camera);\r\n\r\n if (tilemapLayer.skipCull && tilemapLayer.scrollFactorX === 1 && tilemapLayer.scrollFactorY === 1)\r\n {\r\n bounds.left = 0;\r\n bounds.right = layer.width;\r\n bounds.top = 0;\r\n bounds.bottom = layer.height;\r\n }\r\n\r\n RunCull(layer, bounds, renderOrder, outputArray);\r\n\r\n return outputArray;\r\n};\r\n\r\nmodule.exports = StaggeredCullTiles;\r\n\n\n/***/ }),\n\n/***/ 97202:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * Converts from staggered tile XY coordinates (tile units) to world XY coordinates (pixels), factoring in the\r\n * layer's position, scale and scroll. This will return a new Vector2 object or update the given\r\n * `point` object.\r\n *\r\n * @function Phaser.Tilemaps.Components.StaggeredTileToWorldXY\r\n * @since 3.50.0\r\n *\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {Phaser.Math.Vector2} point - A Vector2 to store the coordinates in. If not given a new Vector2 is created.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {Phaser.Math.Vector2} The XY location in world coordinates.\r\n */\r\nvar StaggeredTileToWorldXY = function (tileX, tileY, point, camera, layer)\r\n{\r\n if (!point) { point = new Vector2(); }\r\n\r\n var tileWidth = layer.baseTileWidth;\r\n var tileHeight = layer.baseTileHeight;\r\n var tilemapLayer = layer.tilemapLayer;\r\n\r\n var layerWorldX = 0;\r\n var layerWorldY = 0;\r\n\r\n if (tilemapLayer)\r\n {\r\n if (!camera) { camera = tilemapLayer.scene.cameras.main; }\r\n\r\n layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX);\r\n\r\n tileWidth *= tilemapLayer.scaleX;\r\n\r\n layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY));\r\n\r\n tileHeight *= tilemapLayer.scaleY;\r\n }\r\n\r\n var x = layerWorldX + tileX * tileWidth + tileY % 2 * (tileWidth / 2);\r\n var y = layerWorldY + tileY * (tileHeight / 2);\r\n\r\n return point.set(x, y);\r\n};\r\n\r\nmodule.exports = StaggeredTileToWorldXY;\r\n\n\n/***/ }),\n\n/***/ 28054:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Converts from staggered tile Y coordinates (tile units) to world Y coordinates (pixels), factoring in the\r\n * layers position, scale and scroll.\r\n *\r\n * @function Phaser.Tilemaps.Components.StaggeredTileToWorldY\r\n * @since 3.50.0\r\n *\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {number} The Y location in world coordinates.\r\n */\r\nvar StaggeredTileToWorldY = function (tileY, camera, layer)\r\n{\r\n var tileHeight = layer.baseTileHeight;\r\n var tilemapLayer = layer.tilemapLayer;\r\n var layerWorldY = 0;\r\n\r\n if (tilemapLayer)\r\n {\r\n if (camera === undefined) { camera = tilemapLayer.scene.cameras.main; }\r\n\r\n layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY));\r\n\r\n tileHeight *= tilemapLayer.scaleY;\r\n }\r\n\r\n return layerWorldY + tileY * (tileHeight / 2) + tileHeight;\r\n};\r\n\r\nmodule.exports = StaggeredTileToWorldY;\r\n\n\n/***/ }),\n\n/***/ 15108:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * Converts from world XY coordinates (pixels) to staggered tile XY coordinates (tile units), factoring in the\r\n * layer's position, scale and scroll. This will return a new Vector2 object or update the given\r\n * `point` object.\r\n *\r\n * @function Phaser.Tilemaps.Components.StaggeredWorldToTileXY\r\n * @since 3.50.0\r\n *\r\n * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles.\r\n * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles.\r\n * @param {boolean} snapToFloor - Whether or not to round the tile coordinate down to the nearest integer.\r\n * @param {Phaser.Math.Vector2} point - A Vector2 to store the coordinates in. If not given a new Vector2 is created.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {Phaser.Math.Vector2} The XY location in tile units.\r\n */\r\nvar StaggeredWorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, layer)\r\n{\r\n if (!point) { point = new Vector2(); }\r\n\r\n var tileWidth = layer.baseTileWidth;\r\n var tileHeight = layer.baseTileHeight;\r\n var tilemapLayer = layer.tilemapLayer;\r\n\r\n if (tilemapLayer)\r\n {\r\n if (!camera) { camera = tilemapLayer.scene.cameras.main; }\r\n\r\n // Find the world position relative to the static or dynamic layer's top left origin,\r\n // factoring in the camera's vertical scroll\r\n\r\n worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY));\r\n\r\n tileHeight *= tilemapLayer.scaleY;\r\n\r\n // Find the world position relative to the static or dynamic layer's top left origin,\r\n // factoring in the camera's horizontal scroll\r\n\r\n worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX));\r\n\r\n tileWidth *= tilemapLayer.scaleX;\r\n }\r\n\r\n var y = (snapToFloor) ? Math.floor((worldY / (tileHeight / 2))) : (worldY / (tileHeight / 2));\r\n var x = (snapToFloor) ? Math.floor((worldX + (y % 2) * 0.5 * tileWidth) / tileWidth) : (worldX + (y % 2) * 0.5 * tileWidth) / tileWidth;\r\n\r\n return point.set(x, y);\r\n};\r\n\r\nmodule.exports = StaggeredWorldToTileXY;\r\n\n\n/***/ }),\n\n/***/ 51900:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Converts from world Y coordinates (pixels) to staggered tile Y coordinates (tile units), factoring in the\r\n * layers position, scale and scroll.\r\n *\r\n * @function Phaser.Tilemaps.Components.StaggeredWorldToTileY\r\n * @since 3.50.0\r\n *\r\n * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles.\r\n * @param {boolean} snapToFloor - Whether or not to round the tile coordinate down to the nearest integer.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {number} The Y location in tile units.\r\n */\r\nvar StaggeredWorldToTileY = function (worldY, snapToFloor, camera, layer)\r\n{\r\n var tileHeight = layer.baseTileHeight;\r\n var tilemapLayer = layer.tilemapLayer;\r\n\r\n if (tilemapLayer)\r\n {\r\n if (!camera) { camera = tilemapLayer.scene.cameras.main; }\r\n\r\n // Find the world position relative to the static or dynamic layer's top left origin,\r\n // factoring in the camera's vertical scroll\r\n\r\n worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY));\r\n\r\n tileHeight *= tilemapLayer.scaleY;\r\n }\r\n\r\n return (snapToFloor) ? Math.floor(worldY / (tileHeight / 2)) : worldY / (tileHeight / 2);\r\n};\r\n\r\nmodule.exports = StaggeredWorldToTileY;\r\n\n\n/***/ }),\n\n/***/ 86560:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetTilesWithin = __webpack_require__(7386);\r\n\r\n/**\r\n * Scans the given rectangular area (given in tile coordinates) for tiles with an index matching\r\n * `indexA` and swaps then with `indexB`. This only modifies the index and does not change collision\r\n * information.\r\n *\r\n * @function Phaser.Tilemaps.Components.SwapByIndex\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileA - First tile index.\r\n * @param {number} tileB - Second tile index.\r\n * @param {number} tileX - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} tileY - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} width - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} height - How many tiles tall from the `tileY` index the area will be.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n */\r\nvar SwapByIndex = function (indexA, indexB, tileX, tileY, width, height, layer)\r\n{\r\n var tiles = GetTilesWithin(tileX, tileY, width, height, null, layer);\r\n\r\n for (var i = 0; i < tiles.length; i++)\r\n {\r\n if (tiles[i])\r\n {\r\n if (tiles[i].index === indexA)\r\n {\r\n tiles[i].index = indexB;\r\n }\r\n else if (tiles[i].index === indexB)\r\n {\r\n tiles[i].index = indexA;\r\n }\r\n }\r\n }\r\n};\r\n\r\nmodule.exports = SwapByIndex;\r\n\n\n/***/ }),\n\n/***/ 97281:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Converts from tile X coordinates (tile units) to world X coordinates (pixels), factoring in the\r\n * layer's position, scale and scroll.\r\n *\r\n * @function Phaser.Tilemaps.Components.TileToWorldX\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {number}\r\n */\r\nvar TileToWorldX = function (tileX, camera, layer)\r\n{\r\n var tileWidth = layer.baseTileWidth;\r\n var tilemapLayer = layer.tilemapLayer;\r\n var layerWorldX = 0;\r\n\r\n if (tilemapLayer)\r\n {\r\n if (!camera) { camera = tilemapLayer.scene.cameras.main; }\r\n\r\n layerWorldX = tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX);\r\n\r\n tileWidth *= tilemapLayer.scaleX;\r\n }\r\n\r\n return layerWorldX + tileX * tileWidth;\r\n};\r\n\r\nmodule.exports = TileToWorldX;\r\n\n\n/***/ }),\n\n/***/ 70326:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar TileToWorldX = __webpack_require__(97281);\r\nvar TileToWorldY = __webpack_require__(29650);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * Converts from tile XY coordinates (tile units) to world XY coordinates (pixels), factoring in the\r\n * layer's position, scale and scroll. This will return a new Vector2 object or update the given\r\n * `point` object.\r\n *\r\n * @function Phaser.Tilemaps.Components.TileToWorldXY\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileX - The x coordinate, in tiles, not pixels.\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {Phaser.Math.Vector2} point - A Vector2 to store the coordinates in. If not given a new Vector2 is created.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {Phaser.Math.Vector2} The XY location in world coordinates.\r\n */\r\nvar TileToWorldXY = function (tileX, tileY, point, camera, layer)\r\n{\r\n if (!point) { point = new Vector2(0, 0); }\r\n\r\n point.x = TileToWorldX(tileX, camera, layer);\r\n point.y = TileToWorldY(tileY, camera, layer);\r\n\r\n return point;\r\n};\r\n\r\nmodule.exports = TileToWorldXY;\r\n\n\n/***/ }),\n\n/***/ 29650:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Converts from tile Y coordinates (tile units) to world Y coordinates (pixels), factoring in the\r\n * layer's position, scale and scroll.\r\n *\r\n * @function Phaser.Tilemaps.Components.TileToWorldY\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileY - The y coordinate, in tiles, not pixels.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {number} The Y location in world coordinates.\r\n */\r\nvar TileToWorldY = function (tileY, camera, layer)\r\n{\r\n var tileHeight = layer.baseTileHeight;\r\n var tilemapLayer = layer.tilemapLayer;\r\n var layerWorldY = 0;\r\n\r\n if (tilemapLayer)\r\n {\r\n if (!camera) { camera = tilemapLayer.scene.cameras.main; }\r\n\r\n layerWorldY = (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY));\r\n\r\n tileHeight *= tilemapLayer.scaleY;\r\n }\r\n\r\n return layerWorldY + tileY * tileHeight;\r\n};\r\n\r\nmodule.exports = TileToWorldY;\r\n\n\n/***/ }),\n\n/***/ 77366:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetTilesWithin = __webpack_require__(7386);\r\nvar MATH = __webpack_require__(75508);\r\n\r\n/**\r\n * Randomizes the indexes of a rectangular region of tiles (in tile coordinates) within the\r\n * specified layer. Each tile will receive a new index. New indexes are drawn from the given\r\n * weightedIndexes array. An example weighted array:\r\n *\r\n * [\r\n * { index: 6, weight: 4 }, // Probability of index 6 is 4 / 8\r\n * { index: 7, weight: 2 }, // Probability of index 7 would be 2 / 8\r\n * { index: 8, weight: 1.5 }, // Probability of index 8 would be 1.5 / 8\r\n * { index: 26, weight: 0.5 } // Probability of index 27 would be 0.5 / 8\r\n * ]\r\n *\r\n * The probability of any index being choose is (the index's weight) / (sum of all weights). This\r\n * method only modifies tile indexes and does not change collision information.\r\n *\r\n * @function Phaser.Tilemaps.Components.WeightedRandomize\r\n * @since 3.0.0\r\n *\r\n * @param {number} tileX - The left most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} tileY - The top most tile index (in tile coordinates) to use as the origin of the area.\r\n * @param {number} width - How many tiles wide from the `tileX` index the area will be.\r\n * @param {number} height - How many tiles tall from the `tileY` index the area will be.\r\n * @param {object[]} weightedIndexes - An array of objects to randomly draw from during\r\n * randomization. They should be in the form: { index: 0, weight: 4 } or\r\n * { index: [0, 1], weight: 4 } if you wish to draw from multiple tile indexes.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n */\r\nvar WeightedRandomize = function (tileX, tileY, width, height, weightedIndexes, layer)\r\n{\r\n if (!weightedIndexes) { return; }\r\n\r\n var i;\r\n var tiles = GetTilesWithin(tileX, tileY, width, height, null, layer);\r\n\r\n var weightTotal = 0;\r\n\r\n for (i = 0; i < weightedIndexes.length; i++)\r\n {\r\n weightTotal += weightedIndexes[i].weight;\r\n }\r\n\r\n if (weightTotal <= 0) { return; }\r\n\r\n for (i = 0; i < tiles.length; i++)\r\n {\r\n var rand = MATH.RND.frac() * weightTotal;\r\n var sum = 0;\r\n var randomIndex = -1;\r\n\r\n for (var j = 0; j < weightedIndexes.length; j++)\r\n {\r\n sum += weightedIndexes[j].weight;\r\n\r\n if (rand <= sum)\r\n {\r\n var chosen = weightedIndexes[j].index;\r\n\r\n randomIndex = Array.isArray(chosen)\r\n ? chosen[Math.floor(MATH.RND.frac() * chosen.length)]\r\n : chosen;\r\n break;\r\n }\r\n }\r\n\r\n tiles[i].index = randomIndex;\r\n }\r\n};\r\n\r\nmodule.exports = WeightedRandomize;\r\n\n\n/***/ }),\n\n/***/ 10095:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar WorldToTileXY = __webpack_require__(85896);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\nvar tempVec = new Vector2();\r\n\r\n/**\r\n * Converts from world X coordinates (pixels) to tile X coordinates (tile units), factoring in the\r\n * layer's position, scale and scroll.\r\n *\r\n * @function Phaser.Tilemaps.Components.WorldToTileX\r\n * @since 3.0.0\r\n *\r\n * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles.\r\n * @param {boolean} snapToFloor - Whether or not to round the tile coordinate down to the nearest integer.\r\n * @param {?Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {number} The X location in tile units.\r\n */\r\nvar WorldToTileX = function (worldX, snapToFloor, camera, layer)\r\n{\r\n WorldToTileXY(worldX, 0, snapToFloor, tempVec, camera, layer);\r\n\r\n return tempVec.x;\r\n};\r\n\r\nmodule.exports = WorldToTileX;\r\n\n\n/***/ }),\n\n/***/ 85896:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\n/**\r\n * Converts from world XY coordinates (pixels) to tile XY coordinates (tile units), factoring in the\r\n * layer's position, scale and scroll. This will return a new Vector2 object or update the given\r\n * `point` object.\r\n *\r\n * @function Phaser.Tilemaps.Components.WorldToTileXY\r\n * @since 3.0.0\r\n *\r\n * @param {number} worldX - The x coordinate to be converted, in pixels, not tiles.\r\n * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles.\r\n * @param {boolean} snapToFloor - Whether or not to round the tile coordinate down to the nearest integer.\r\n * @param {Phaser.Math.Vector2} point - A Vector2 to store the coordinates in. If not given a new Vector2 is created.\r\n * @param {Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {Phaser.Math.Vector2} The XY location in tile units.\r\n */\r\nvar WorldToTileXY = function (worldX, worldY, snapToFloor, point, camera, layer)\r\n{\r\n if (snapToFloor === undefined) { snapToFloor = true; }\r\n if (!point) { point = new Vector2(); }\r\n\r\n var tileWidth = layer.baseTileWidth;\r\n var tileHeight = layer.baseTileHeight;\r\n var tilemapLayer = layer.tilemapLayer;\r\n\r\n if (tilemapLayer)\r\n {\r\n if (!camera) { camera = tilemapLayer.scene.cameras.main; }\r\n\r\n // Find the world position relative to the static or dynamic layer's top left origin,\r\n // factoring in the camera's horizontal scroll\r\n worldX = worldX - (tilemapLayer.x + camera.scrollX * (1 - tilemapLayer.scrollFactorX));\r\n worldY = worldY - (tilemapLayer.y + camera.scrollY * (1 - tilemapLayer.scrollFactorY));\r\n\r\n tileWidth *= tilemapLayer.scaleX;\r\n tileHeight *= tilemapLayer.scaleY;\r\n }\r\n\r\n var x = worldX / tileWidth;\r\n var y = worldY / tileHeight;\r\n\r\n if (snapToFloor)\r\n {\r\n x = Math.floor(x);\r\n y = Math.floor(y);\r\n }\r\n\r\n return point.set(x, y);\r\n};\r\n\r\nmodule.exports = WorldToTileXY;\r\n\n\n/***/ }),\n\n/***/ 63288:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar WorldToTileXY = __webpack_require__(85896);\r\nvar Vector2 = __webpack_require__(26099);\r\n\r\nvar tempVec = new Vector2();\r\n\r\n/**\r\n * Converts from world Y coordinates (pixels) to tile Y coordinates (tile units), factoring in the\r\n * layer's position, scale and scroll.\r\n *\r\n * @function Phaser.Tilemaps.Components.WorldToTileY\r\n * @since 3.0.0\r\n *\r\n * @param {number} worldY - The y coordinate to be converted, in pixels, not tiles.\r\n * @param {boolean} snapToFloor - Whether or not to round the tile coordinate down to the nearest integer.\r\n * @param {?Phaser.Cameras.Scene2D.Camera} camera - The Camera to use when calculating the tile index from the world values.\r\n * @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.\r\n *\r\n * @return {number} The Y location in tile units.\r\n */\r\nvar WorldToTileY = function (worldY, snapToFloor, camera, layer)\r\n{\r\n WorldToTileXY(0, worldY, snapToFloor, tempVec, camera, layer);\r\n\r\n return tempVec.y;\r\n};\r\n\r\nmodule.exports = WorldToTileY;\r\n\n\n/***/ }),\n\n/***/ 81086:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Tilemaps.Components\r\n */\r\n\r\nmodule.exports = {\r\n\r\n CalculateFacesAt: __webpack_require__(72023),\r\n CalculateFacesWithin: __webpack_require__(42573),\r\n CheckIsoBounds: __webpack_require__(33528),\r\n Copy: __webpack_require__(1785),\r\n CreateFromTiles: __webpack_require__(78419),\r\n CullBounds: __webpack_require__(19545),\r\n CullTiles: __webpack_require__(30003),\r\n Fill: __webpack_require__(35137),\r\n FilterTiles: __webpack_require__(40253),\r\n FindByIndex: __webpack_require__(52692),\r\n FindTile: __webpack_require__(66151),\r\n ForEachTile: __webpack_require__(97560),\r\n GetCullTilesFunction: __webpack_require__(43305),\r\n GetTileAt: __webpack_require__(7423),\r\n GetTileAtWorldXY: __webpack_require__(60540),\r\n GetTileCorners: __webpack_require__(55826),\r\n GetTileCornersFunction: __webpack_require__(11758),\r\n GetTilesWithin: __webpack_require__(7386),\r\n GetTilesWithinShape: __webpack_require__(91141),\r\n GetTilesWithinWorldXY: __webpack_require__(96523),\r\n GetTileToWorldXFunction: __webpack_require__(39167),\r\n GetTileToWorldXYFunction: __webpack_require__(62000),\r\n GetTileToWorldYFunction: __webpack_require__(5984),\r\n GetWorldToTileXFunction: __webpack_require__(96113),\r\n GetWorldToTileXYFunction: __webpack_require__(16926),\r\n GetWorldToTileYFunction: __webpack_require__(55762),\r\n HasTileAt: __webpack_require__(45091),\r\n HasTileAtWorldXY: __webpack_require__(24152),\r\n HexagonalCullBounds: __webpack_require__(90454),\r\n HexagonalCullTiles: __webpack_require__(9474),\r\n HexagonalGetTileCorners: __webpack_require__(27229),\r\n HexagonalTileToWorldXY: __webpack_require__(19951),\r\n HexagonalWorldToTileXY: __webpack_require__(86625),\r\n IsInLayerBounds: __webpack_require__(62991),\r\n IsometricCullTiles: __webpack_require__(14018),\r\n IsometricTileToWorldXY: __webpack_require__(14127),\r\n IsometricWorldToTileXY: __webpack_require__(96897),\r\n PutTileAt: __webpack_require__(71558),\r\n PutTileAtWorldXY: __webpack_require__(26303),\r\n PutTilesAt: __webpack_require__(14051),\r\n Randomize: __webpack_require__(77389),\r\n RemoveTileAt: __webpack_require__(63557),\r\n RemoveTileAtWorldXY: __webpack_require__(94178),\r\n RenderDebug: __webpack_require__(15533),\r\n ReplaceByIndex: __webpack_require__(27987),\r\n RunCull: __webpack_require__(32483),\r\n SetCollision: __webpack_require__(57068),\r\n SetCollisionBetween: __webpack_require__(37266),\r\n SetCollisionByExclusion: __webpack_require__(75661),\r\n SetCollisionByProperty: __webpack_require__(64740),\r\n SetCollisionFromCollisionGroup: __webpack_require__(63307),\r\n SetLayerCollisionIndex: __webpack_require__(9589),\r\n SetTileCollision: __webpack_require__(20576),\r\n SetTileIndexCallback: __webpack_require__(79583),\r\n SetTileLocationCallback: __webpack_require__(93254),\r\n Shuffle: __webpack_require__(32903),\r\n StaggeredCullBounds: __webpack_require__(61325),\r\n StaggeredCullTiles: __webpack_require__(54503),\r\n StaggeredTileToWorldXY: __webpack_require__(97202),\r\n StaggeredTileToWorldY: __webpack_require__(28054),\r\n StaggeredWorldToTileXY: __webpack_require__(15108),\r\n StaggeredWorldToTileY: __webpack_require__(51900),\r\n SwapByIndex: __webpack_require__(86560),\r\n TileToWorldX: __webpack_require__(97281),\r\n TileToWorldXY: __webpack_require__(70326),\r\n TileToWorldY: __webpack_require__(29650),\r\n WeightedRandomize: __webpack_require__(77366),\r\n WorldToTileX: __webpack_require__(10095),\r\n WorldToTileXY: __webpack_require__(85896),\r\n WorldToTileY: __webpack_require__(63288)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 91907:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Phaser Tilemap constants for orientation.\r\n *\r\n * @namespace Phaser.Tilemaps.Orientation\r\n * @memberof Phaser.Tilemaps\r\n * @since 3.50.0\r\n */\r\n\r\n/**\r\n * Phaser Tilemap constants for orientation.\r\n *\r\n * To find out what each mode does please see [Phaser.Tilemaps.Orientation]{@link Phaser.Tilemaps.Orientation}.\r\n *\r\n * @typedef {Phaser.Tilemaps.Orientation} Phaser.Tilemaps.OrientationType\r\n * @memberof Phaser.Tilemaps\r\n * @since 3.50.0\r\n */\r\n\r\nmodule.exports = {\r\n\r\n /**\r\n * Orthogonal Tilemap orientation constant.\r\n *\r\n * @name Phaser.Tilemaps.Orientation.ORTHOGONAL\r\n * @type {number}\r\n * @const\r\n * @since 3.50.0\r\n */\r\n ORTHOGONAL: 0,\r\n\r\n /**\r\n * Isometric Tilemap orientation constant.\r\n *\r\n * @name Phaser.Tilemaps.Orientation.ISOMETRIC\r\n * @type {number}\r\n * @const\r\n * @since 3.50.0\r\n */\r\n ISOMETRIC: 1,\r\n\r\n /**\r\n * Staggered Tilemap orientation constant.\r\n *\r\n * @name Phaser.Tilemaps.Orientation.STAGGERED\r\n * @type {number}\r\n * @const\r\n * @since 3.50.0\r\n */\r\n STAGGERED: 2,\r\n\r\n /**\r\n * Hexagonal Tilemap orientation constant.\r\n *\r\n * @name Phaser.Tilemaps.Orientation.HEXAGONAL\r\n * @type {number}\r\n * @const\r\n * @since 3.50.0\r\n */\r\n HEXAGONAL: 3\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 21829:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = {\r\n\r\n ORIENTATION: __webpack_require__(91907)\r\n\r\n};\r\n\r\nmodule.exports = CONST;\r\n\n\n/***/ }),\n\n/***/ 62501:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Extend = __webpack_require__(79291);\r\nvar CONST = __webpack_require__(21829);\r\n\r\n/**\r\n * @namespace Phaser.Tilemaps\r\n *\r\n * @borrows Phaser.Tilemaps.Orientation.ORTHOGONAL as ORTHOGONAL\r\n * @borrows Phaser.Tilemaps.Orientation.ISOMETRIC as ISOMETRIC\r\n * @borrows Phaser.Tilemaps.Orientation.STAGGERED as STAGGERED\r\n * @borrows Phaser.Tilemaps.Orientation.HEXAGONAL as HEXAGONAL\r\n */\r\n\r\nvar Tilemaps = {\r\n\r\n Components: __webpack_require__(81086),\r\n Parsers: __webpack_require__(57442),\r\n\r\n Formats: __webpack_require__(80341),\r\n ImageCollection: __webpack_require__(16536),\r\n ParseToTilemap: __webpack_require__(31989),\r\n Tile: __webpack_require__(23029),\r\n Tilemap: __webpack_require__(49075),\r\n TilemapCreator: __webpack_require__(45939),\r\n TilemapFactory: __webpack_require__(46029),\r\n Tileset: __webpack_require__(33629),\r\n TilemapLayer: __webpack_require__(20442),\r\n Orientation: __webpack_require__(91907),\r\n\r\n LayerData: __webpack_require__(14977),\r\n MapData: __webpack_require__(87010),\r\n ObjectLayer: __webpack_require__(48700)\r\n\r\n};\r\n\r\nTilemaps = Extend(false, Tilemaps, CONST.ORIENTATION);\r\n\r\nmodule.exports = Tilemaps;\r\n\n\n/***/ }),\n\n/***/ 14977:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(91907);\r\nvar GetFastValue = __webpack_require__(95540);\r\n\r\n/**\r\n * @classdesc\r\n * A class for representing data about about a layer in a map. Maps are parsed from CSV, Tiled,\r\n * etc. into this format. Tilemap and TilemapLayer objects have a reference\r\n * to this data and use it to look up and perform operations on tiles.\r\n *\r\n * @class LayerData\r\n * @memberof Phaser.Tilemaps\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Tilemaps.LayerDataConfig} [config] - The Layer Data configuration object.\r\n */\r\nvar LayerData = new Class({\r\n\r\n initialize:\r\n\r\n function LayerData (config)\r\n {\r\n if (config === undefined) { config = {}; }\r\n\r\n /**\r\n * The name of the layer, if specified in Tiled.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#name\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.name = GetFastValue(config, 'name', 'layer');\r\n\r\n /**\r\n * The id of the layer, as specified in the map data.\r\n *\r\n * Note: This is not the index of the layer in the map data, but its actual ID in Tiled.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#id\r\n * @type {number}\r\n * @since 3.70.0\r\n */\r\n this.id = GetFastValue(config, 'id', 0);\r\n\r\n /**\r\n * The x offset of where to draw from the top left.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#x\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.x = GetFastValue(config, 'x', 0);\r\n\r\n /**\r\n * The y offset of where to draw from the top left.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#y\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.y = GetFastValue(config, 'y', 0);\r\n\r\n /**\r\n * The width of the layer in tiles.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#width\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.width = GetFastValue(config, 'width', 0);\r\n\r\n /**\r\n * The height of the layer in tiles.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#height\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.height = GetFastValue(config, 'height', 0);\r\n\r\n /**\r\n * The pixel width of the tiles.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#tileWidth\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.tileWidth = GetFastValue(config, 'tileWidth', 0);\r\n\r\n /**\r\n * The pixel height of the tiles.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#tileHeight\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.tileHeight = GetFastValue(config, 'tileHeight', 0);\r\n\r\n /**\r\n * The base tile width.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#baseTileWidth\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.baseTileWidth = GetFastValue(config, 'baseTileWidth', this.tileWidth);\r\n\r\n /**\r\n * The base tile height.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#baseTileHeight\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.baseTileHeight = GetFastValue(config, 'baseTileHeight', this.tileHeight);\r\n\r\n /**\r\n * The layers orientation, necessary to be able to determine a tiles pixelX and pixelY as well as the layers width and height.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#orientation\r\n * @type {Phaser.Tilemaps.OrientationType}\r\n * @since 3.50.0\r\n */\r\n this.orientation = GetFastValue(config, 'orientation', CONST.ORTHOGONAL);\r\n\r\n /**\r\n * The width in pixels of the entire layer.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#widthInPixels\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.widthInPixels = GetFastValue(config, 'widthInPixels', this.width * this.baseTileWidth);\r\n\r\n /**\r\n * The height in pixels of the entire layer.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#heightInPixels\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.heightInPixels = GetFastValue(config, 'heightInPixels', this.height * this.baseTileHeight);\r\n\r\n /**\r\n * The alpha value of the layer.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#alpha\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.alpha = GetFastValue(config, 'alpha', 1);\r\n\r\n /**\r\n * Is the layer visible or not?\r\n *\r\n * @name Phaser.Tilemaps.LayerData#visible\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.visible = GetFastValue(config, 'visible', true);\r\n\r\n /**\r\n * Layer specific properties (can be specified in Tiled)\r\n *\r\n * @name Phaser.Tilemaps.LayerData#properties\r\n * @type {object[]}\r\n * @since 3.0.0\r\n */\r\n this.properties = GetFastValue(config, 'properties', []);\r\n\r\n /**\r\n * Tile ID index map.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#indexes\r\n * @type {array}\r\n * @since 3.0.0\r\n */\r\n this.indexes = GetFastValue(config, 'indexes', []);\r\n\r\n /**\r\n * Tile Collision ID index map.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#collideIndexes\r\n * @type {array}\r\n * @since 3.0.0\r\n */\r\n this.collideIndexes = GetFastValue(config, 'collideIndexes', []);\r\n\r\n /**\r\n * An array of callbacks.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#callbacks\r\n * @type {array}\r\n * @since 3.0.0\r\n */\r\n this.callbacks = GetFastValue(config, 'callbacks', []);\r\n\r\n /**\r\n * An array of physics bodies.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#bodies\r\n * @type {array}\r\n * @since 3.0.0\r\n */\r\n this.bodies = GetFastValue(config, 'bodies', []);\r\n\r\n /**\r\n * An array of the tile data indexes.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#data\r\n * @type {Phaser.Tilemaps.Tile[][]}\r\n * @since 3.0.0\r\n */\r\n this.data = GetFastValue(config, 'data', []);\r\n\r\n /**\r\n * A reference to the Tilemap layer that owns this data.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#tilemapLayer\r\n * @type {Phaser.Tilemaps.TilemapLayer}\r\n * @since 3.0.0\r\n */\r\n this.tilemapLayer = GetFastValue(config, 'tilemapLayer', null);\r\n\r\n /**\r\n * The length of the horizontal sides of the hexagon.\r\n * Only used for hexagonal orientation Tilemaps.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#hexSideLength\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.hexSideLength = GetFastValue(config, 'hexSideLength', 0);\r\n\r\n /**\r\n * The Stagger Axis as defined in Tiled.\r\n *\r\n * Only used for hexagonal orientation Tilemaps.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#staggerAxis\r\n * @type {string}\r\n * @since 3.60.0\r\n */\r\n this.staggerAxis = GetFastValue(config, 'staggerAxis', 'y');\r\n\r\n /**\r\n * The Stagger Index as defined in Tiled.\r\n *\r\n * Either 'odd' or 'even'.\r\n *\r\n * Only used for hexagonal orientation Tilemaps.\r\n *\r\n * @name Phaser.Tilemaps.LayerData#staggerIndex\r\n * @type {string}\r\n * @since 3.60.0\r\n */\r\n this.staggerIndex = GetFastValue(config, 'staggerIndex', 'odd');\r\n }\r\n\r\n});\r\n\r\nmodule.exports = LayerData;\r\n\n\n/***/ }),\n\n/***/ 87010:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar CONST = __webpack_require__(91907);\r\nvar GetFastValue = __webpack_require__(95540);\r\n\r\n/**\r\n * @classdesc\r\n * A class for representing data about a map. Maps are parsed from CSV, Tiled, etc. into this\r\n * format. A Tilemap object get a copy of this data and then unpacks the needed properties into\r\n * itself.\r\n *\r\n * @class MapData\r\n * @memberof Phaser.Tilemaps\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Tilemaps.MapDataConfig} [config] - The Map configuration object.\r\n */\r\nvar MapData = new Class({\r\n\r\n initialize:\r\n\r\n function MapData (config)\r\n {\r\n if (config === undefined) { config = {}; }\r\n\r\n /**\r\n * The key in the Phaser cache that corresponds to the loaded tilemap data.\r\n *\r\n * @name Phaser.Tilemaps.MapData#name\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.name = GetFastValue(config, 'name', 'map');\r\n\r\n /**\r\n * The width of the entire tilemap.\r\n *\r\n * @name Phaser.Tilemaps.MapData#width\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.width = GetFastValue(config, 'width', 0);\r\n\r\n /**\r\n * The height of the entire tilemap.\r\n *\r\n * @name Phaser.Tilemaps.MapData#height\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.height = GetFastValue(config, 'height', 0);\r\n\r\n /**\r\n * If the map is infinite or not.\r\n *\r\n * @name Phaser.Tilemaps.MapData#infinite\r\n * @type {boolean}\r\n * @since 3.17.0\r\n */\r\n this.infinite = GetFastValue(config, 'infinite', false);\r\n\r\n /**\r\n * The width of the tiles.\r\n *\r\n * @name Phaser.Tilemaps.MapData#tileWidth\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.tileWidth = GetFastValue(config, 'tileWidth', 0);\r\n\r\n /**\r\n * The height of the tiles.\r\n *\r\n * @name Phaser.Tilemaps.MapData#tileHeight\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.tileHeight = GetFastValue(config, 'tileHeight', 0);\r\n\r\n /**\r\n * The width in pixels of the entire tilemap.\r\n *\r\n * @name Phaser.Tilemaps.MapData#widthInPixels\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.widthInPixels = GetFastValue(config, 'widthInPixels', this.width * this.tileWidth);\r\n\r\n /**\r\n * The height in pixels of the entire tilemap.\r\n *\r\n * @name Phaser.Tilemaps.MapData#heightInPixels\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.heightInPixels = GetFastValue(config, 'heightInPixels', this.height * this.tileHeight);\r\n\r\n /**\r\n * The format of the map data.\r\n *\r\n * @name Phaser.Tilemaps.MapData#format\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.format = GetFastValue(config, 'format', null);\r\n\r\n /**\r\n * The orientation of the map data (i.e. orthogonal, isometric, hexagonal), default 'orthogonal'.\r\n *\r\n * @name Phaser.Tilemaps.MapData#orientation\r\n * @type {Phaser.Tilemaps.OrientationType}\r\n * @since 3.50.0\r\n */\r\n this.orientation = GetFastValue(config, 'orientation', CONST.ORTHOGONAL);\r\n\r\n /**\r\n * Determines the draw order of tilemap. Default is right-down\r\n *\r\n * 0, or 'right-down'\r\n * 1, or 'left-down'\r\n * 2, or 'right-up'\r\n * 3, or 'left-up'\r\n *\r\n * @name Phaser.Tilemaps.MapData#renderOrder\r\n * @type {string}\r\n * @since 3.12.0\r\n */\r\n this.renderOrder = GetFastValue(config, 'renderOrder', 'right-down');\r\n\r\n /**\r\n * The version of the map data (as specified in Tiled).\r\n *\r\n * @name Phaser.Tilemaps.MapData#version\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.version = GetFastValue(config, 'version', '1');\r\n\r\n /**\r\n * Map specific properties (can be specified in Tiled)\r\n *\r\n * @name Phaser.Tilemaps.MapData#properties\r\n * @type {object}\r\n * @since 3.0.0\r\n */\r\n this.properties = GetFastValue(config, 'properties', {});\r\n\r\n /**\r\n * An array with all the layers configured to the MapData.\r\n *\r\n * @name Phaser.Tilemaps.MapData#layers\r\n * @type {(Phaser.Tilemaps.LayerData[]|Phaser.Tilemaps.ObjectLayer)}\r\n * @since 3.0.0\r\n */\r\n this.layers = GetFastValue(config, 'layers', []);\r\n\r\n /**\r\n * An array of Tiled Image Layers.\r\n *\r\n * @name Phaser.Tilemaps.MapData#images\r\n * @type {array}\r\n * @since 3.0.0\r\n */\r\n this.images = GetFastValue(config, 'images', []);\r\n\r\n /**\r\n * An object of Tiled Object Layers.\r\n *\r\n * @name Phaser.Tilemaps.MapData#objects\r\n * @type {Phaser.Types.Tilemaps.ObjectLayerConfig[]}\r\n * @since 3.0.0\r\n */\r\n this.objects = GetFastValue(config, 'objects', []);\r\n\r\n // Because Tiled can sometimes create an empty object if you don't populate it, not an empty array\r\n if (!Array.isArray(this.objects))\r\n {\r\n this.objects = [];\r\n }\r\n\r\n /**\r\n * An object of collision data. Must be created as physics object or will return undefined.\r\n *\r\n * @name Phaser.Tilemaps.MapData#collision\r\n * @type {object}\r\n * @since 3.0.0\r\n */\r\n this.collision = GetFastValue(config, 'collision', {});\r\n\r\n /**\r\n * An array of Tilesets.\r\n *\r\n * @name Phaser.Tilemaps.MapData#tilesets\r\n * @type {Phaser.Tilemaps.Tileset[]}\r\n * @since 3.0.0\r\n */\r\n this.tilesets = GetFastValue(config, 'tilesets', []);\r\n\r\n /**\r\n * The collection of images the map uses(specified in Tiled)\r\n *\r\n * @name Phaser.Tilemaps.MapData#imageCollections\r\n * @type {array}\r\n * @since 3.0.0\r\n */\r\n this.imageCollections = GetFastValue(config, 'imageCollections', []);\r\n\r\n /**\r\n * An array of tile instances.\r\n *\r\n * @name Phaser.Tilemaps.MapData#tiles\r\n * @type {array}\r\n * @since 3.0.0\r\n */\r\n this.tiles = GetFastValue(config, 'tiles', []);\r\n\r\n /**\r\n * The length of the horizontal sides of the hexagon.\r\n *\r\n * Only used for hexagonal orientation Tilemaps.\r\n *\r\n * @name Phaser.Tilemaps.MapData#hexSideLength\r\n * @type {number}\r\n * @since 3.50.0\r\n */\r\n this.hexSideLength = GetFastValue(config, 'hexSideLength', 0);\r\n\r\n /**\r\n * The Stagger Axis as defined in Tiled.\r\n *\r\n * Only used for hexagonal orientation Tilemaps.\r\n *\r\n * @name Phaser.Tilemaps.MapData#staggerAxis\r\n * @type {string}\r\n * @since 3.60.0\r\n */\r\n this.staggerAxis = GetFastValue(config, 'staggerAxis', 'y');\r\n\r\n /**\r\n * The Stagger Index as defined in Tiled.\r\n *\r\n * Either 'odd' or 'even'.\r\n *\r\n * Only used for hexagonal orientation Tilemaps.\r\n *\r\n * @name Phaser.Tilemaps.MapData#staggerIndex\r\n * @type {string}\r\n * @since 3.60.0\r\n */\r\n this.staggerIndex = GetFastValue(config, 'staggerIndex', 'odd');\r\n }\r\n\r\n});\r\n\r\nmodule.exports = MapData;\r\n\n\n/***/ }),\n\n/***/ 48700:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar GetFastValue = __webpack_require__(95540);\r\n\r\n/**\r\n * @classdesc\r\n * A class for representing a Tiled object layer in a map. This mirrors the structure of a Tiled\r\n * object layer, except:\r\n * - \"x\" & \"y\" properties are ignored since these cannot be changed in Tiled.\r\n * - \"offsetx\" & \"offsety\" are applied to the individual object coordinates directly, so they\r\n * are ignored as well.\r\n * - \"draworder\" is ignored.\r\n *\r\n * @class ObjectLayer\r\n * @memberof Phaser.Tilemaps\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Tilemaps.ObjectLayerConfig} [config] - The data for the layer from the Tiled JSON object.\r\n */\r\nvar ObjectLayer = new Class({\r\n\r\n initialize:\r\n\r\n function ObjectLayer (config)\r\n {\r\n if (config === undefined) { config = {}; }\r\n\r\n /**\r\n * The name of the Object Layer.\r\n *\r\n * @name Phaser.Tilemaps.ObjectLayer#name\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.name = GetFastValue(config, 'name', 'object layer');\r\n\r\n /**\r\n * The id of the object layer, as specified in the map data.\r\n *\r\n * @name Phaser.Tilemaps.ObjectLayer#id\r\n * @type {number}\r\n * @since 3.70.0\r\n */\r\n this.id = GetFastValue(config, 'id', 0);\r\n\r\n /**\r\n * The opacity of the layer, between 0 and 1.\r\n *\r\n * @name Phaser.Tilemaps.ObjectLayer#opacity\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.opacity = GetFastValue(config, 'opacity', 1);\r\n\r\n /**\r\n * The custom properties defined on the Object Layer, keyed by their name.\r\n *\r\n * @name Phaser.Tilemaps.ObjectLayer#properties\r\n * @type {object}\r\n * @since 3.0.0\r\n */\r\n this.properties = GetFastValue(config, 'properties', {});\r\n\r\n /**\r\n * The type of each custom property defined on the Object Layer, keyed by its name.\r\n *\r\n * @name Phaser.Tilemaps.ObjectLayer#propertyTypes\r\n * @type {object}\r\n * @since 3.0.0\r\n */\r\n this.propertyTypes = GetFastValue(config, 'propertytypes', {});\r\n\r\n /**\r\n * The type of the layer, which should be `objectgroup`.\r\n *\r\n * @name Phaser.Tilemaps.ObjectLayer#type\r\n * @type {string}\r\n * @since 3.0.0\r\n */\r\n this.type = GetFastValue(config, 'type', 'objectgroup');\r\n\r\n /**\r\n * Whether the layer is shown (`true`) or hidden (`false`).\r\n *\r\n * @name Phaser.Tilemaps.ObjectLayer#visible\r\n * @type {boolean}\r\n * @since 3.0.0\r\n */\r\n this.visible = GetFastValue(config, 'visible', true);\r\n\r\n /**\r\n * An array of all objects on this Object Layer.\r\n *\r\n * Each Tiled object corresponds to a JavaScript object in this array. It has an `id` (unique),\r\n * `name` (as assigned in Tiled), `type` (as assigned in Tiled), `rotation` (in clockwise degrees),\r\n * `properties` (if any), `visible` state (`true` if visible, `false` otherwise),\r\n * `x` and `y` coordinates (in pixels, relative to the tilemap), and a `width` and `height` (in pixels).\r\n *\r\n * An object tile has a `gid` property (GID of the represented tile), a `flippedHorizontal` property,\r\n * a `flippedVertical` property, and `flippedAntiDiagonal` property.\r\n * The {@link http://docs.mapeditor.org/en/latest/reference/tmx-map-format/|Tiled documentation} contains\r\n * information on flipping and rotation.\r\n *\r\n * Polylines have a `polyline` property, which is an array of objects corresponding to points,\r\n * where each point has an `x` property and a `y` property. Polygons have an identically structured\r\n * array in their `polygon` property. Text objects have a `text` property with the text's properties.\r\n *\r\n * Rectangles and ellipses have a `rectangle` or `ellipse` property set to `true`.\r\n *\r\n * @name Phaser.Tilemaps.ObjectLayer#objects\r\n * @type {Phaser.Types.Tilemaps.TiledObject[]}\r\n * @since 3.0.0\r\n */\r\n this.objects = GetFastValue(config, 'objects', []);\r\n\r\n // Because Tiled can sometimes create an empty object if you don't populate it, not an empty array\r\n if (!Array.isArray(this.objects))\r\n {\r\n this.objects = [];\r\n }\r\n }\r\n\r\n});\r\n\r\nmodule.exports = ObjectLayer;\r\n\n\n/***/ }),\n\n/***/ 6641:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CONST = __webpack_require__(91907);\r\n\r\n/**\r\n * Get the Tilemap orientation from the given string.\r\n *\r\n * @function Phaser.Tilemaps.Parsers.FromOrientationString\r\n * @since 3.50.0\r\n *\r\n * @param {string} [orientation] - The orientation type as a string.\r\n *\r\n * @return {Phaser.Tilemaps.OrientationType} The Tilemap Orientation type.\r\n */\r\nvar FromOrientationString = function (orientation)\r\n{\r\n orientation = orientation.toLowerCase();\r\n\r\n if (orientation === 'isometric')\r\n {\r\n return CONST.ISOMETRIC;\r\n }\r\n else if (orientation === 'staggered')\r\n {\r\n return CONST.STAGGERED;\r\n }\r\n else if (orientation === 'hexagonal')\r\n {\r\n return CONST.HEXAGONAL;\r\n }\r\n else\r\n {\r\n return CONST.ORTHOGONAL;\r\n }\r\n};\r\n\r\nmodule.exports = FromOrientationString;\r\n\n\n/***/ }),\n\n/***/ 46177:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Formats = __webpack_require__(80341);\r\nvar Parse2DArray = __webpack_require__(2342);\r\nvar ParseCSV = __webpack_require__(82593);\r\nvar ParseJSONTiled = __webpack_require__(46594);\r\nvar ParseWeltmeister = __webpack_require__(87021);\r\n\r\n/**\r\n * Parses raw data of a given Tilemap format into a new MapData object. If no recognized data format\r\n * is found, returns `null`. When loading from CSV or a 2D array, you should specify the tileWidth &\r\n * tileHeight. When parsing from a map from Tiled, the tileWidth & tileHeight will be pulled from\r\n * the map data.\r\n *\r\n * @function Phaser.Tilemaps.Parsers.Parse\r\n * @since 3.0.0\r\n *\r\n * @param {string} name - The name of the tilemap, used to set the name on the MapData.\r\n * @param {number} mapFormat - See ../Formats.js.\r\n * @param {(number[][]|string|object)} data - 2D array, CSV string or Tiled JSON object.\r\n * @param {number} tileWidth - The width of a tile in pixels. Required for 2D array and CSV, but\r\n * ignored for Tiled JSON.\r\n * @param {number} tileHeight - The height of a tile in pixels. Required for 2D array and CSV, but\r\n * ignored for Tiled JSON.\r\n * @param {boolean} insertNull - Controls how empty tiles, tiles with an index of -1, in the map\r\n * data are handled. If `true`, empty locations will get a value of `null`. If `false`, empty\r\n * location will get a Tile object with an index of -1. If you've a large sparsely populated map and\r\n * the tile data doesn't need to change then setting this value to `true` will help with memory\r\n * consumption. However if your map is small or you need to update the tiles dynamically, then leave\r\n * the default value set.\r\n *\r\n * @return {Phaser.Tilemaps.MapData} The created `MapData` object.\r\n */\r\nvar Parse = function (name, mapFormat, data, tileWidth, tileHeight, insertNull)\r\n{\r\n var newMap;\r\n\r\n switch (mapFormat)\r\n {\r\n case (Formats.ARRAY_2D):\r\n newMap = Parse2DArray(name, data, tileWidth, tileHeight, insertNull);\r\n break;\r\n case (Formats.CSV):\r\n newMap = ParseCSV(name, data, tileWidth, tileHeight, insertNull);\r\n break;\r\n case (Formats.TILED_JSON):\r\n newMap = ParseJSONTiled(name, data, insertNull);\r\n break;\r\n case (Formats.WELTMEISTER):\r\n newMap = ParseWeltmeister(name, data, insertNull);\r\n break;\r\n default:\r\n console.warn('Unrecognized tilemap data format: ' + mapFormat);\r\n newMap = null;\r\n }\r\n\r\n return newMap;\r\n};\r\n\r\nmodule.exports = Parse;\r\n\n\n/***/ }),\n\n/***/ 2342:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Formats = __webpack_require__(80341);\r\nvar LayerData = __webpack_require__(14977);\r\nvar MapData = __webpack_require__(87010);\r\nvar Tile = __webpack_require__(23029);\r\n\r\n/**\r\n * Parses a 2D array of tile indexes into a new MapData object with a single layer.\r\n *\r\n * @function Phaser.Tilemaps.Parsers.Parse2DArray\r\n * @since 3.0.0\r\n *\r\n * @param {string} name - The name of the tilemap, used to set the name on the MapData.\r\n * @param {number[][]} data - 2D array, CSV string or Tiled JSON object.\r\n * @param {number} tileWidth - The width of a tile in pixels.\r\n * @param {number} tileHeight - The height of a tile in pixels.\r\n * @param {boolean} insertNull - Controls how empty tiles, tiles with an index of -1, in the map\r\n * data are handled. If `true`, empty locations will get a value of `null`. If `false`, empty\r\n * location will get a Tile object with an index of -1. If you've a large sparsely populated map and\r\n * the tile data doesn't need to change then setting this value to `true` will help with memory\r\n * consumption. However if your map is small or you need to update the tiles dynamically, then leave\r\n * the default value set.\r\n *\r\n * @return {Phaser.Tilemaps.MapData} The MapData object.\r\n */\r\nvar Parse2DArray = function (name, data, tileWidth, tileHeight, insertNull)\r\n{\r\n var layerData = new LayerData({\r\n tileWidth: tileWidth,\r\n tileHeight: tileHeight\r\n });\r\n\r\n var mapData = new MapData({\r\n name: name,\r\n tileWidth: tileWidth,\r\n tileHeight: tileHeight,\r\n format: Formats.ARRAY_2D,\r\n layers: [ layerData ]\r\n });\r\n\r\n var tiles = [];\r\n var height = data.length;\r\n var width = 0;\r\n\r\n for (var y = 0; y < data.length; y++)\r\n {\r\n tiles[y] = [];\r\n var row = data[y];\r\n\r\n for (var x = 0; x < row.length; x++)\r\n {\r\n var tileIndex = parseInt(row[x], 10);\r\n\r\n if (isNaN(tileIndex) || tileIndex === -1)\r\n {\r\n tiles[y][x] = insertNull\r\n ? null\r\n : new Tile(layerData, -1, x, y, tileWidth, tileHeight);\r\n }\r\n else\r\n {\r\n tiles[y][x] = new Tile(layerData, tileIndex, x, y, tileWidth, tileHeight);\r\n }\r\n }\r\n\r\n if (width === 0)\r\n {\r\n width = row.length;\r\n }\r\n }\r\n\r\n mapData.width = layerData.width = width;\r\n mapData.height = layerData.height = height;\r\n mapData.widthInPixels = layerData.widthInPixels = width * tileWidth;\r\n mapData.heightInPixels = layerData.heightInPixels = height * tileHeight;\r\n layerData.data = tiles;\r\n\r\n return mapData;\r\n};\r\n\r\nmodule.exports = Parse2DArray;\r\n\n\n/***/ }),\n\n/***/ 82593:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Formats = __webpack_require__(80341);\r\nvar Parse2DArray = __webpack_require__(2342);\r\n\r\n/**\r\n * Parses a CSV string of tile indexes into a new MapData object with a single layer.\r\n *\r\n * @function Phaser.Tilemaps.Parsers.ParseCSV\r\n * @since 3.0.0\r\n *\r\n * @param {string} name - The name of the tilemap, used to set the name on the MapData.\r\n * @param {string} data - CSV string of tile indexes.\r\n * @param {number} tileWidth - The width of a tile in pixels.\r\n * @param {number} tileHeight - The height of a tile in pixels.\r\n * @param {boolean} insertNull - Controls how empty tiles, tiles with an index of -1, in the map\r\n * data are handled. If `true`, empty locations will get a value of `null`. If `false`, empty\r\n * location will get a Tile object with an index of -1. If you've a large sparsely populated map and\r\n * the tile data doesn't need to change then setting this value to `true` will help with memory\r\n * consumption. However if your map is small or you need to update the tiles dynamically, then leave\r\n * the default value set.\r\n *\r\n * @return {Phaser.Tilemaps.MapData} The resulting MapData object.\r\n */\r\nvar ParseCSV = function (name, data, tileWidth, tileHeight, insertNull)\r\n{\r\n var array2D = data\r\n .trim()\r\n .split('\\n')\r\n .map(function (row) { return row.split(','); });\r\n\r\n var map = Parse2DArray(name, array2D, tileWidth, tileHeight, insertNull);\r\n map.format = Formats.CSV;\r\n\r\n return map;\r\n};\r\n\r\nmodule.exports = ParseCSV;\r\n\n\n/***/ }),\n\n/***/ 6656:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar LayerData = __webpack_require__(14977);\r\nvar Tile = __webpack_require__(23029);\r\n\r\n/**\r\n * Parses all tilemap layers in an Impact JSON object into new LayerData objects.\r\n *\r\n * @function Phaser.Tilemaps.Parsers.Impact.ParseTileLayers\r\n * @since 3.0.0\r\n *\r\n * @param {object} json - The Impact JSON object.\r\n * @param {boolean} insertNull - Controls how empty tiles, tiles with an index of -1, in the map\r\n * data are handled (see {@link Phaser.Tilemaps.Parsers.Tiled.ParseJSONTiled}).\r\n *\r\n * @return {Phaser.Tilemaps.LayerData[]} - An array of LayerData objects, one for each entry in\r\n * json.layers with the type 'tilelayer'.\r\n */\r\nvar ParseTileLayers = function (json, insertNull)\r\n{\r\n var tileLayers = [];\r\n\r\n for (var i = 0; i < json.layer.length; i++)\r\n {\r\n var layer = json.layer[i];\r\n\r\n var layerData = new LayerData({\r\n name: layer.name,\r\n width: layer.width,\r\n height: layer.height,\r\n tileWidth: layer.tilesize,\r\n tileHeight: layer.tilesize,\r\n visible: layer.visible === 1\r\n });\r\n\r\n var row = [];\r\n var tileGrid = [];\r\n\r\n // Loop through the data field in the JSON. This is a 2D array containing the tile indexes,\r\n // one after the other. The indexes are relative to the tileset that contains the tile.\r\n for (var y = 0; y < layer.data.length; y++)\r\n {\r\n for (var x = 0; x < layer.data[y].length; x++)\r\n {\r\n // In Weltmeister, 0 = no tile, but the Tilemap API expects -1 = no tile.\r\n var index = layer.data[y][x] - 1;\r\n\r\n var tile;\r\n\r\n if (index > -1)\r\n {\r\n tile = new Tile(layerData, index, x, y, layer.tilesize, layer.tilesize);\r\n }\r\n else\r\n {\r\n tile = insertNull\r\n ? null\r\n : new Tile(layerData, -1, x, y, layer.tilesize, layer.tilesize);\r\n }\r\n\r\n row.push(tile);\r\n }\r\n\r\n tileGrid.push(row);\r\n row = [];\r\n }\r\n\r\n layerData.data = tileGrid;\r\n\r\n tileLayers.push(layerData);\r\n }\r\n\r\n return tileLayers;\r\n};\r\n\r\nmodule.exports = ParseTileLayers;\r\n\n\n/***/ }),\n\n/***/ 96483:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Tileset = __webpack_require__(33629);\r\n\r\n/**\r\n * Tilesets and Image Collections\r\n *\r\n * @function Phaser.Tilemaps.Parsers.Impact.ParseTilesets\r\n * @since 3.0.0\r\n *\r\n * @param {object} json - The Impact JSON data.\r\n *\r\n * @return {array} An array of Tilesets.\r\n */\r\nvar ParseTilesets = function (json)\r\n{\r\n var tilesets = [];\r\n var tilesetsNames = [];\r\n\r\n for (var i = 0; i < json.layer.length; i++)\r\n {\r\n var layer = json.layer[i];\r\n\r\n // A relative filepath to the source image (within Weltmeister) is used for the name\r\n var tilesetName = layer.tilesetName;\r\n\r\n // Only add unique tilesets that have a valid name. Collision layers will have a blank name.\r\n if (tilesetName !== '' && tilesetsNames.indexOf(tilesetName) === -1)\r\n {\r\n tilesetsNames.push(tilesetName);\r\n\r\n // Tiles are stored with an ID relative to the tileset, rather than a globally unique ID\r\n // across all tilesets. Also, tilesets in Weltmeister have no margin or padding.\r\n tilesets.push(new Tileset(tilesetName, 0, layer.tilesize, layer.tilesize, 0, 0));\r\n }\r\n }\r\n\r\n return tilesets;\r\n};\r\n\r\nmodule.exports = ParseTilesets;\r\n\n\n/***/ }),\n\n/***/ 87021:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Formats = __webpack_require__(80341);\r\nvar MapData = __webpack_require__(87010);\r\nvar ParseTileLayers = __webpack_require__(6656);\r\nvar ParseTilesets = __webpack_require__(96483);\r\n\r\n/**\r\n * Parses a Weltmeister JSON object into a new MapData object.\r\n *\r\n * @function Phaser.Tilemaps.Parsers.Impact.ParseWeltmeister\r\n * @since 3.0.0\r\n *\r\n * @param {string} name - The name of the tilemap, used to set the name on the MapData.\r\n * @param {object} json - The Weltmeister JSON object.\r\n * @param {boolean} insertNull - Controls how empty tiles, tiles with an index of -1, in the map\r\n * data are handled. If `true`, empty locations will get a value of `null`. If `false`, empty\r\n * location will get a Tile object with an index of -1. If you've a large sparsely populated map and\r\n * the tile data doesn't need to change then setting this value to `true` will help with memory\r\n * consumption. However if your map is small or you need to update the tiles dynamically, then leave\r\n * the default value set.\r\n *\r\n * @return {?Phaser.Tilemaps.MapData} The created MapData object, or `null` if the data can't be parsed.\r\n */\r\nvar ParseWeltmeister = function (name, json, insertNull)\r\n{\r\n if (json.layer.length === 0)\r\n {\r\n console.warn('No layers found in the Weltmeister map: ' + name);\r\n return null;\r\n }\r\n\r\n var width = 0;\r\n var height = 0;\r\n\r\n for (var i = 0; i < json.layer.length; i++)\r\n {\r\n if (json.layer[i].width > width) { width = json.layer[i].width; }\r\n if (json.layer[i].height > height) { height = json.layer[i].height; }\r\n }\r\n\r\n var mapData = new MapData({\r\n width: width,\r\n height: height,\r\n name: name,\r\n tileWidth: json.layer[0].tilesize,\r\n tileHeight: json.layer[0].tilesize,\r\n format: Formats.WELTMEISTER\r\n });\r\n\r\n mapData.layers = ParseTileLayers(json, insertNull);\r\n mapData.tilesets = ParseTilesets(json);\r\n\r\n return mapData;\r\n};\r\n\r\nmodule.exports = ParseWeltmeister;\r\n\n\n/***/ }),\n\n/***/ 52833:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Tilemaps.Parsers.Impact\r\n */\r\n\r\nmodule.exports = {\r\n\r\n ParseTileLayers: __webpack_require__(6656),\r\n ParseTilesets: __webpack_require__(96483),\r\n ParseWeltmeister: __webpack_require__(87021)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 57442:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Tilemaps.Parsers\r\n */\r\n\r\nmodule.exports = {\r\n\r\n FromOrientationString: __webpack_require__(6641),\r\n Parse: __webpack_require__(46177),\r\n Parse2DArray: __webpack_require__(2342),\r\n ParseCSV: __webpack_require__(82593),\r\n\r\n Impact: __webpack_require__(52833),\r\n Tiled: __webpack_require__(96761)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 51233:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Extend = __webpack_require__(79291);\r\n\r\n/**\r\n * Copy properties from tileset to tiles.\r\n *\r\n * @function Phaser.Tilemaps.Parsers.Tiled.AssignTileProperties\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Tilemaps.MapData} mapData - The Map Data object.\r\n */\r\nvar AssignTileProperties = function (mapData)\r\n{\r\n var layerData;\r\n var tile;\r\n var sid;\r\n var set;\r\n var row;\r\n\r\n // go through each of the map data layers\r\n for (var i = 0; i < mapData.layers.length; i++)\r\n {\r\n layerData = mapData.layers[i];\r\n\r\n set = null;\r\n\r\n // rows of tiles\r\n for (var j = 0; j < layerData.data.length; j++)\r\n {\r\n row = layerData.data[j];\r\n\r\n // individual tiles\r\n for (var k = 0; k < row.length; k++)\r\n {\r\n tile = row[k];\r\n\r\n if (tile === null || tile.index < 0)\r\n {\r\n continue;\r\n }\r\n\r\n // find the relevant tileset\r\n sid = mapData.tiles[tile.index][2];\r\n set = mapData.tilesets[sid];\r\n\r\n // Ensure that a tile's size matches its tileset\r\n tile.width = set.tileWidth;\r\n tile.height = set.tileHeight;\r\n\r\n // if that tile type has any properties, add them to the tile object\r\n if (set.tileProperties && set.tileProperties[tile.index - set.firstgid])\r\n {\r\n tile.properties = Extend(\r\n tile.properties, set.tileProperties[tile.index - set.firstgid]\r\n );\r\n }\r\n }\r\n }\r\n }\r\n};\r\n\r\nmodule.exports = AssignTileProperties;\r\n\n\n/***/ }),\n\n/***/ 41868:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Decode base-64 encoded data, for example as exported by Tiled.\r\n *\r\n * @function Phaser.Tilemaps.Parsers.Tiled.Base64Decode\r\n * @since 3.0.0\r\n *\r\n * @param {object} data - Base-64 encoded data to decode.\r\n *\r\n * @return {array} Array containing the decoded bytes.\r\n */\r\nvar Base64Decode = function (data)\r\n{\r\n var binaryString = window.atob(data);\r\n var len = binaryString.length;\r\n var bytes = new Array(len / 4);\r\n\r\n // Interpret binaryString as an array of bytes representing little-endian encoded uint32 values.\r\n for (var i = 0; i < len; i += 4)\r\n {\r\n bytes[i / 4] = (\r\n binaryString.charCodeAt(i) |\r\n binaryString.charCodeAt(i + 1) << 8 |\r\n binaryString.charCodeAt(i + 2) << 16 |\r\n binaryString.charCodeAt(i + 3) << 24\r\n ) >>> 0;\r\n }\r\n\r\n return bytes;\r\n};\r\n\r\nmodule.exports = Base64Decode;\r\n\n\n/***/ }),\n\n/***/ 84101:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Tileset = __webpack_require__(33629);\r\n\r\n/**\r\n * Master list of tiles -> x, y, index in tileset.\r\n *\r\n * @function Phaser.Tilemaps.Parsers.Tiled.BuildTilesetIndex\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Tilemaps.MapData|Phaser.Tilemaps.Tilemap)} mapData - The Map Data object.\r\n *\r\n * @return {array} An array of Tileset objects.\r\n */\r\nvar BuildTilesetIndex = function (mapData)\r\n{\r\n var i;\r\n var set;\r\n var tiles = [];\r\n\r\n for (i = 0; i < mapData.imageCollections.length; i++)\r\n {\r\n var collection = mapData.imageCollections[i];\r\n var images = collection.images;\r\n\r\n for (var j = 0; j < images.length; j++)\r\n {\r\n var image = images[j];\r\n\r\n set = new Tileset(image.image, image.gid, collection.imageWidth, collection.imageHeight, 0, 0);\r\n\r\n set.updateTileData(collection.imageWidth, collection.imageHeight);\r\n\r\n mapData.tilesets.push(set);\r\n }\r\n }\r\n\r\n for (i = 0; i < mapData.tilesets.length; i++)\r\n {\r\n set = mapData.tilesets[i];\r\n\r\n var x = set.tileMargin;\r\n var y = set.tileMargin;\r\n\r\n var count = 0;\r\n var countX = 0;\r\n var countY = 0;\r\n\r\n for (var t = set.firstgid; t < set.firstgid + set.total; t++)\r\n {\r\n // Can add extra properties here as needed\r\n tiles[t] = [ x, y, i ];\r\n\r\n x += set.tileWidth + set.tileSpacing;\r\n\r\n count++;\r\n\r\n if (count === set.total)\r\n {\r\n break;\r\n }\r\n\r\n countX++;\r\n\r\n if (countX === set.columns)\r\n {\r\n x = set.tileMargin;\r\n y += set.tileHeight + set.tileSpacing;\r\n\r\n countX = 0;\r\n countY++;\r\n\r\n if (countY === set.rows)\r\n {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return tiles;\r\n};\r\n\r\nmodule.exports = BuildTilesetIndex;\r\n\n\n/***/ }),\n\n/***/ 79677:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Seth Berrier \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetFastValue = __webpack_require__(95540);\r\n\r\n/**\r\n * Parse a Tiled group layer and create a state object for inheriting.\r\n *\r\n * @function Phaser.Tilemaps.Parsers.Tiled.CreateGroupLayer\r\n * @since 3.21.0\r\n *\r\n * @param {object} json - The Tiled JSON object.\r\n * @param {object} [group] - The current group layer from the Tiled JSON file.\r\n * @param {object} [parentState] - The state of the parent group (if any).\r\n *\r\n * @return {object} A group state object with proper values for updating children layers.\r\n */\r\nvar CreateGroupLayer = function (json, group, parentState)\r\n{\r\n if (!group)\r\n {\r\n // Return a default group state object\r\n return {\r\n i: 0, // Current layer array iterator\r\n layers: json.layers, // Current array of layers\r\n // Values inherited from parent group\r\n name: '',\r\n opacity: 1,\r\n visible: true,\r\n x: 0,\r\n y: 0\r\n };\r\n }\r\n\r\n // Compute group layer x, y\r\n var layerX = group.x + GetFastValue(group, 'startx', 0) * json.tilewidth + GetFastValue(group, 'offsetx', 0);\r\n var layerY = group.y + GetFastValue(group, 'starty', 0) * json.tileheight + GetFastValue(group, 'offsety', 0);\r\n\r\n // Compute next state inherited from group\r\n return {\r\n i: 0,\r\n layers: group.layers,\r\n name: parentState.name + group.name + '/',\r\n opacity: parentState.opacity * group.opacity,\r\n visible: parentState.visible && group.visible,\r\n x: parentState.x + layerX,\r\n y: parentState.y + layerY\r\n };\r\n};\r\n\r\nmodule.exports = CreateGroupLayer;\r\n\n\n/***/ }),\n\n/***/ 29920:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar FLIPPED_HORIZONTAL = 0x80000000;\r\nvar FLIPPED_VERTICAL = 0x40000000;\r\nvar FLIPPED_ANTI_DIAGONAL = 0x20000000; // Top-right is swapped with bottom-left corners\r\n\r\n/**\r\n * See Tiled documentation on tile flipping:\r\n * http://docs.mapeditor.org/en/latest/reference/tmx-map-format/\r\n *\r\n * @function Phaser.Tilemaps.Parsers.Tiled.ParseGID\r\n * @since 3.0.0\r\n *\r\n * @param {number} gid - A Tiled GID.\r\n *\r\n * @return {Phaser.Types.Tilemaps.GIDData} The GID Data.\r\n */\r\nvar ParseGID = function (gid)\r\n{\r\n var flippedHorizontal = Boolean(gid & FLIPPED_HORIZONTAL);\r\n var flippedVertical = Boolean(gid & FLIPPED_VERTICAL);\r\n var flippedAntiDiagonal = Boolean(gid & FLIPPED_ANTI_DIAGONAL);\r\n gid = gid & ~(FLIPPED_HORIZONTAL | FLIPPED_VERTICAL | FLIPPED_ANTI_DIAGONAL);\r\n\r\n // Parse the flip flags into something Phaser can use\r\n var rotation = 0;\r\n var flipped = false;\r\n\r\n if (flippedHorizontal && flippedVertical && flippedAntiDiagonal)\r\n {\r\n rotation = Math.PI / 2;\r\n flipped = true;\r\n }\r\n else if (flippedHorizontal && flippedVertical && !flippedAntiDiagonal)\r\n {\r\n rotation = Math.PI;\r\n flipped = false;\r\n }\r\n else if (flippedHorizontal && !flippedVertical && flippedAntiDiagonal)\r\n {\r\n rotation = Math.PI / 2;\r\n flipped = false;\r\n }\r\n else if (flippedHorizontal && !flippedVertical && !flippedAntiDiagonal)\r\n {\r\n rotation = 0;\r\n flipped = true;\r\n }\r\n else if (!flippedHorizontal && flippedVertical && flippedAntiDiagonal)\r\n {\r\n rotation = 3 * Math.PI / 2;\r\n flipped = false;\r\n }\r\n else if (!flippedHorizontal && flippedVertical && !flippedAntiDiagonal)\r\n {\r\n rotation = Math.PI;\r\n flipped = true;\r\n }\r\n else if (!flippedHorizontal && !flippedVertical && flippedAntiDiagonal)\r\n {\r\n rotation = 3 * Math.PI / 2;\r\n flipped = true;\r\n }\r\n else if (!flippedHorizontal && !flippedVertical && !flippedAntiDiagonal)\r\n {\r\n rotation = 0;\r\n flipped = false;\r\n }\r\n\r\n return {\r\n gid: gid,\r\n flippedHorizontal: flippedHorizontal,\r\n flippedVertical: flippedVertical,\r\n flippedAntiDiagonal: flippedAntiDiagonal,\r\n rotation: rotation,\r\n flipped: flipped\r\n };\r\n};\r\n\r\nmodule.exports = ParseGID;\r\n\n\n/***/ }),\n\n/***/ 12635:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar CreateGroupLayer = __webpack_require__(79677);\r\n\r\n/**\r\n * Parses a Tiled JSON object into an array of objects with details about the image layers.\r\n *\r\n * @function Phaser.Tilemaps.Parsers.Tiled.ParseImageLayers\r\n * @since 3.0.0\r\n *\r\n * @param {object} json - The Tiled JSON object.\r\n *\r\n * @return {array} Array of objects that include critical info about the map's image layers\r\n */\r\nvar ParseImageLayers = function (json)\r\n{\r\n var images = [];\r\n\r\n // State inherited from a parent group\r\n var groupStack = [];\r\n var curGroupState = CreateGroupLayer(json);\r\n\r\n while (curGroupState.i < curGroupState.layers.length || groupStack.length > 0)\r\n {\r\n if (curGroupState.i >= curGroupState.layers.length)\r\n {\r\n // Ensure recursion stack is not empty first\r\n if (groupStack.length < 1)\r\n {\r\n console.warn(\r\n 'TilemapParser.parseTiledJSON - Invalid layer group hierarchy'\r\n );\r\n break;\r\n }\r\n\r\n // Return to previous recursive state\r\n curGroupState = groupStack.pop();\r\n continue;\r\n }\r\n\r\n // Get current layer and advance iterator\r\n var curi = curGroupState.layers[curGroupState.i];\r\n curGroupState.i++;\r\n\r\n if (curi.type !== 'imagelayer')\r\n {\r\n if (curi.type === 'group')\r\n {\r\n // Compute next state inherited from group\r\n var nextGroupState = CreateGroupLayer(json, curi, curGroupState);\r\n\r\n // Preserve current state before recursing\r\n groupStack.push(curGroupState);\r\n curGroupState = nextGroupState;\r\n }\r\n\r\n // Skip this layer OR 'recurse' (iterative style) into the group\r\n continue;\r\n }\r\n\r\n var layerOffsetX = GetFastValue(curi, 'offsetx', 0) + GetFastValue(curi, 'startx', 0);\r\n var layerOffsetY = GetFastValue(curi, 'offsety', 0) + GetFastValue(curi, 'starty', 0);\r\n images.push({\r\n name: (curGroupState.name + curi.name),\r\n image: curi.image,\r\n x: (curGroupState.x + layerOffsetX + curi.x),\r\n y: (curGroupState.y + layerOffsetY + curi.y),\r\n alpha: (curGroupState.opacity * curi.opacity),\r\n visible: (curGroupState.visible && curi.visible),\r\n properties: GetFastValue(curi, 'properties', {})\r\n });\r\n }\r\n\r\n return images;\r\n};\r\n\r\nmodule.exports = ParseImageLayers;\r\n\n\n/***/ }),\n\n/***/ 46594:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar AssignTileProperties = __webpack_require__(51233);\r\nvar BuildTilesetIndex = __webpack_require__(84101);\r\nvar CONST = __webpack_require__(91907);\r\nvar DeepCopy = __webpack_require__(62644);\r\nvar Formats = __webpack_require__(80341);\r\nvar FromOrientationString = __webpack_require__(6641);\r\nvar MapData = __webpack_require__(87010);\r\nvar ParseImageLayers = __webpack_require__(12635);\r\nvar ParseObjectLayers = __webpack_require__(22611);\r\nvar ParseTileLayers = __webpack_require__(28200);\r\nvar ParseTilesets = __webpack_require__(24619);\r\n\r\n/**\r\n * Parses a Tiled JSON object into a new MapData object.\r\n *\r\n * @function Phaser.Tilemaps.Parsers.Tiled.ParseJSONTiled\r\n * @since 3.0.0\r\n *\r\n * @param {string} name - The name of the tilemap, used to set the name on the MapData.\r\n * @param {object} source - The original Tiled JSON object. This is deep copied by this function.\r\n * @param {boolean} insertNull - Controls how empty tiles, tiles with an index of -1, in the map\r\n * data are handled. If `true`, empty locations will get a value of `null`. If `false`, empty\r\n * location will get a Tile object with an index of -1. If you've a large sparsely populated map and\r\n * the tile data doesn't need to change then setting this value to `true` will help with memory\r\n * consumption. However if your map is small or you need to update the tiles dynamically, then leave\r\n * the default value set.\r\n *\r\n * @return {?Phaser.Tilemaps.MapData} The created MapData object, or `null` if the data can't be parsed.\r\n */\r\nvar ParseJSONTiled = function (name, source, insertNull)\r\n{\r\n var json = DeepCopy(source);\r\n\r\n // Map data will consist of: layers, objects, images, tilesets, sizes\r\n var mapData = new MapData({\r\n width: json.width,\r\n height: json.height,\r\n name: name,\r\n tileWidth: json.tilewidth,\r\n tileHeight: json.tileheight,\r\n orientation: FromOrientationString(json.orientation),\r\n format: Formats.TILED_JSON,\r\n version: json.version,\r\n properties: json.properties,\r\n renderOrder: json.renderorder,\r\n infinite: json.infinite\r\n });\r\n\r\n if (mapData.orientation === CONST.HEXAGONAL)\r\n {\r\n mapData.hexSideLength = json.hexsidelength;\r\n mapData.staggerAxis = json.staggeraxis;\r\n mapData.staggerIndex = json.staggerindex;\r\n }\r\n\r\n mapData.layers = ParseTileLayers(json, insertNull);\r\n mapData.images = ParseImageLayers(json);\r\n\r\n var sets = ParseTilesets(json);\r\n\r\n mapData.tilesets = sets.tilesets;\r\n mapData.imageCollections = sets.imageCollections;\r\n\r\n mapData.objects = ParseObjectLayers(json);\r\n\r\n mapData.tiles = BuildTilesetIndex(mapData);\r\n\r\n AssignTileProperties(mapData);\r\n\r\n return mapData;\r\n};\r\n\r\nmodule.exports = ParseJSONTiled;\r\n\n\n/***/ }),\n\n/***/ 52205:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Pick = __webpack_require__(18254);\r\nvar ParseGID = __webpack_require__(29920);\r\n\r\nvar copyPoints = function (p) { return { x: p.x, y: p.y }; };\r\n\r\nvar commonObjectProps = [ 'id', 'name', 'type', 'rotation', 'properties', 'visible', 'x', 'y', 'width', 'height' ];\r\n\r\n/**\r\n * Convert a Tiled object to an internal parsed object normalising and copying properties over, while applying optional x and y offsets. The parsed object will always have the properties `id`, `name`, `type`, `rotation`, `properties`, `visible`, `x`, `y`, `width` and `height`. Other properties will be added according to the object type (such as text, polyline, gid etc.)\r\n *\r\n * @function Phaser.Tilemaps.Parsers.Tiled.ParseObject\r\n * @since 3.0.0\r\n *\r\n * @param {object} tiledObject - Tiled object to convert to an internal parsed object normalising and copying properties over.\r\n * @param {number} [offsetX=0] - Optional additional offset to apply to the object's x property. Defaults to 0.\r\n * @param {number} [offsetY=0] - Optional additional offset to apply to the object's y property. Defaults to 0.\r\n *\r\n * @return {object} The parsed object containing properties read from the Tiled object according to it's type with x and y values updated according to the given offsets.\r\n */\r\nvar ParseObject = function (tiledObject, offsetX, offsetY)\r\n{\r\n if (offsetX === undefined) { offsetX = 0; }\r\n if (offsetY === undefined) { offsetY = 0; }\r\n\r\n var parsedObject = Pick(tiledObject, commonObjectProps);\r\n\r\n parsedObject.x += offsetX;\r\n parsedObject.y += offsetY;\r\n\r\n if (tiledObject.gid)\r\n {\r\n // Object tiles\r\n var gidInfo = ParseGID(tiledObject.gid);\r\n parsedObject.gid = gidInfo.gid;\r\n parsedObject.flippedHorizontal = gidInfo.flippedHorizontal;\r\n parsedObject.flippedVertical = gidInfo.flippedVertical;\r\n parsedObject.flippedAntiDiagonal = gidInfo.flippedAntiDiagonal;\r\n }\r\n else if (tiledObject.polyline)\r\n {\r\n parsedObject.polyline = tiledObject.polyline.map(copyPoints);\r\n }\r\n else if (tiledObject.polygon)\r\n {\r\n parsedObject.polygon = tiledObject.polygon.map(copyPoints);\r\n }\r\n else if (tiledObject.ellipse)\r\n {\r\n parsedObject.ellipse = tiledObject.ellipse;\r\n }\r\n else if (tiledObject.text)\r\n {\r\n parsedObject.text = tiledObject.text;\r\n }\r\n else if (tiledObject.point)\r\n {\r\n parsedObject.point = true;\r\n }\r\n else\r\n {\r\n // Otherwise, assume it is a rectangle\r\n parsedObject.rectangle = true;\r\n }\r\n\r\n return parsedObject;\r\n};\r\n\r\nmodule.exports = ParseObject;\r\n\n\n/***/ }),\n\n/***/ 22611:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar ParseObject = __webpack_require__(52205);\r\nvar ObjectLayer = __webpack_require__(48700);\r\nvar CreateGroupLayer = __webpack_require__(79677);\r\n\r\n/**\r\n * Parses a Tiled JSON object into an array of ObjectLayer objects.\r\n *\r\n * @function Phaser.Tilemaps.Parsers.Tiled.ParseObjectLayers\r\n * @since 3.0.0\r\n *\r\n * @param {object} json - The Tiled JSON object.\r\n *\r\n * @return {array} An array of all object layers in the tilemap as `ObjectLayer`s.\r\n */\r\nvar ParseObjectLayers = function (json)\r\n{\r\n var objectLayers = [];\r\n\r\n // State inherited from a parent group\r\n var groupStack = [];\r\n var curGroupState = CreateGroupLayer(json);\r\n\r\n while (curGroupState.i < curGroupState.layers.length || groupStack.length > 0)\r\n {\r\n if (curGroupState.i >= curGroupState.layers.length)\r\n {\r\n // Ensure recursion stack is not empty first\r\n if (groupStack.length < 1)\r\n {\r\n console.warn(\r\n 'TilemapParser.parseTiledJSON - Invalid layer group hierarchy'\r\n );\r\n break;\r\n }\r\n\r\n // Return to previous recursive state\r\n curGroupState = groupStack.pop();\r\n continue;\r\n }\r\n\r\n // Get current layer and advance iterator\r\n var curo = curGroupState.layers[curGroupState.i];\r\n curGroupState.i++;\r\n\r\n // Modify inherited properties\r\n curo.opacity *= curGroupState.opacity;\r\n curo.visible = curGroupState.visible && curo.visible;\r\n\r\n if (curo.type !== 'objectgroup')\r\n {\r\n if (curo.type === 'group')\r\n {\r\n // Compute next state inherited from group\r\n var nextGroupState = CreateGroupLayer(json, curo, curGroupState);\r\n\r\n // Preserve current state before recursing\r\n groupStack.push(curGroupState);\r\n curGroupState = nextGroupState;\r\n }\r\n\r\n // Skip this layer OR 'recurse' (iterative style) into the group\r\n continue;\r\n }\r\n\r\n curo.name = curGroupState.name + curo.name;\r\n var offsetX = curGroupState.x + GetFastValue(curo, 'startx', 0) + GetFastValue(curo, 'offsetx', 0);\r\n var offsetY = curGroupState.y + GetFastValue(curo, 'starty', 0) + GetFastValue(curo, 'offsety', 0);\r\n\r\n var objects = [];\r\n for (var j = 0; j < curo.objects.length; j++)\r\n {\r\n var parsedObject = ParseObject(curo.objects[j], offsetX, offsetY);\r\n\r\n objects.push(parsedObject);\r\n }\r\n\r\n var objectLayer = new ObjectLayer(curo);\r\n objectLayer.objects = objects;\r\n\r\n objectLayers.push(objectLayer);\r\n }\r\n\r\n return objectLayers;\r\n};\r\n\r\nmodule.exports = ParseObjectLayers;\r\n\n\n/***/ }),\n\n/***/ 28200:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Base64Decode = __webpack_require__(41868);\r\nvar CONST = __webpack_require__(91907);\r\nvar CreateGroupLayer = __webpack_require__(79677);\r\nvar FromOrientationString = __webpack_require__(6641);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar LayerData = __webpack_require__(14977);\r\nvar ParseGID = __webpack_require__(29920);\r\nvar Tile = __webpack_require__(23029);\r\n\r\n/**\r\n * Parses all tilemap layers in a Tiled JSON object into new LayerData objects.\r\n *\r\n * @function Phaser.Tilemaps.Parsers.Tiled.ParseTileLayers\r\n * @since 3.0.0\r\n *\r\n * @param {object} json - The Tiled JSON object.\r\n * @param {boolean} insertNull - Controls how empty tiles, tiles with an index of -1, in the map\r\n * data are handled (see {@link Phaser.Tilemaps.Parsers.Tiled.ParseJSONTiled}).\r\n *\r\n * @return {Phaser.Tilemaps.LayerData[]} - An array of LayerData objects, one for each entry in\r\n * json.layers with the type 'tilelayer'.\r\n */\r\nvar ParseTileLayers = function (json, insertNull)\r\n{\r\n var infiniteMap = GetFastValue(json, 'infinite', false);\r\n var tileLayers = [];\r\n\r\n // State inherited from a parent group\r\n var groupStack = [];\r\n var curGroupState = CreateGroupLayer(json);\r\n\r\n while (curGroupState.i < curGroupState.layers.length || groupStack.length > 0)\r\n {\r\n if (curGroupState.i >= curGroupState.layers.length)\r\n {\r\n // Ensure recursion stack is not empty first\r\n if (groupStack.length < 1)\r\n {\r\n console.warn(\r\n 'TilemapParser.parseTiledJSON - Invalid layer group hierarchy'\r\n );\r\n break;\r\n }\r\n\r\n // Return to previous recursive state\r\n curGroupState = groupStack.pop();\r\n continue;\r\n }\r\n\r\n var curl = curGroupState.layers[curGroupState.i];\r\n curGroupState.i++;\r\n\r\n if (curl.type !== 'tilelayer')\r\n {\r\n if (curl.type === 'group')\r\n {\r\n // Compute next state inherited from group\r\n var nextGroupState = CreateGroupLayer(json, curl, curGroupState);\r\n\r\n // Preserve current state before recursing\r\n groupStack.push(curGroupState);\r\n curGroupState = nextGroupState;\r\n }\r\n\r\n // Skip this layer OR 'recurse' (iterative style) into the group\r\n continue;\r\n }\r\n\r\n // Base64 decode data if necessary. NOTE: uncompressed base64 only.\r\n if (curl.compression)\r\n {\r\n console.warn(\r\n 'TilemapParser.parseTiledJSON - Layer compression is unsupported, skipping layer \\''\r\n + curl.name + '\\''\r\n );\r\n continue;\r\n }\r\n else if (curl.encoding && curl.encoding === 'base64')\r\n {\r\n // Chunks for an infinite map\r\n if (curl.chunks)\r\n {\r\n for (var i = 0; i < curl.chunks.length; i++)\r\n {\r\n curl.chunks[i].data = Base64Decode(curl.chunks[i].data);\r\n }\r\n }\r\n\r\n // Non-infinite map data\r\n if (curl.data)\r\n {\r\n curl.data = Base64Decode(curl.data);\r\n }\r\n\r\n delete curl.encoding; // Allow the same map to be parsed multiple times\r\n }\r\n\r\n // This is an array containing the tile indexes, one after the other. -1 = no tile,\r\n // everything else = the tile index (starting at 1 for Tiled, 0 for CSV) If the map\r\n // contains multiple tilesets then the indexes are relative to that which the set starts\r\n // from. Need to set which tileset in the cache = which tileset in the JSON, if you do this\r\n // manually it means you can use the same map data but a new tileset.\r\n\r\n var layerData;\r\n var gidInfo;\r\n var tile;\r\n var blankTile;\r\n\r\n var output = [];\r\n var x = 0;\r\n\r\n if (infiniteMap)\r\n {\r\n var layerOffsetX = (GetFastValue(curl, 'startx', 0) + curl.x);\r\n var layerOffsetY = (GetFastValue(curl, 'starty', 0) + curl.y);\r\n\r\n layerData = new LayerData({\r\n name: (curGroupState.name + curl.name),\r\n id: curl.id,\r\n x: (curGroupState.x + GetFastValue(curl, 'offsetx', 0) + layerOffsetX * json.tilewidth),\r\n y: (curGroupState.y + GetFastValue(curl, 'offsety', 0) + layerOffsetY * json.tileheight),\r\n width: curl.width,\r\n height: curl.height,\r\n tileWidth: json.tilewidth,\r\n tileHeight: json.tileheight,\r\n alpha: (curGroupState.opacity * curl.opacity),\r\n visible: (curGroupState.visible && curl.visible),\r\n properties: GetFastValue(curl, 'properties', []),\r\n orientation: FromOrientationString(json.orientation)\r\n });\r\n\r\n if (layerData.orientation === CONST.HEXAGONAL)\r\n {\r\n layerData.hexSideLength = json.hexsidelength;\r\n layerData.staggerAxis = json.staggeraxis;\r\n layerData.staggerIndex = json.staggerindex;\r\n }\r\n\r\n for (var c = 0; c < curl.height; c++)\r\n {\r\n output[c] = [ null ];\r\n\r\n for (var j = 0; j < curl.width; j++)\r\n {\r\n output[c][j] = null;\r\n }\r\n }\r\n\r\n for (c = 0, len = curl.chunks.length; c < len; c++)\r\n {\r\n var chunk = curl.chunks[c];\r\n\r\n var offsetX = (chunk.x - layerOffsetX);\r\n var offsetY = (chunk.y - layerOffsetY);\r\n\r\n var y = 0;\r\n\r\n for (var t = 0, len2 = chunk.data.length; t < len2; t++)\r\n {\r\n var newOffsetX = x + offsetX;\r\n var newOffsetY = y + offsetY;\r\n\r\n gidInfo = ParseGID(chunk.data[t]);\r\n\r\n // index, x, y, width, height\r\n if (gidInfo.gid > 0)\r\n {\r\n tile = new Tile(layerData, gidInfo.gid, newOffsetX, newOffsetY, json.tilewidth, json.tileheight);\r\n\r\n // Turning Tiled's FlippedHorizontal, FlippedVertical and FlippedAntiDiagonal\r\n // propeties into flipX, flipY and rotation\r\n tile.rotation = gidInfo.rotation;\r\n tile.flipX = gidInfo.flipped;\r\n\r\n output[newOffsetY][newOffsetX] = tile;\r\n }\r\n else\r\n {\r\n blankTile = insertNull\r\n ? null\r\n : new Tile(layerData, -1, newOffsetX, newOffsetY, json.tilewidth, json.tileheight);\r\n\r\n output[newOffsetY][newOffsetX] = blankTile;\r\n }\r\n\r\n x++;\r\n\r\n if (x === chunk.width)\r\n {\r\n y++;\r\n x = 0;\r\n }\r\n }\r\n }\r\n }\r\n else\r\n {\r\n layerData = new LayerData({\r\n name: (curGroupState.name + curl.name),\r\n id: curl.id,\r\n x: (curGroupState.x + GetFastValue(curl, 'offsetx', 0) + curl.x),\r\n y: (curGroupState.y + GetFastValue(curl, 'offsety', 0) + curl.y),\r\n width: curl.width,\r\n height: curl.height,\r\n tileWidth: json.tilewidth,\r\n tileHeight: json.tileheight,\r\n alpha: (curGroupState.opacity * curl.opacity),\r\n visible: (curGroupState.visible && curl.visible),\r\n properties: GetFastValue(curl, 'properties', []),\r\n orientation: FromOrientationString(json.orientation)\r\n });\r\n\r\n if (layerData.orientation === CONST.HEXAGONAL)\r\n {\r\n layerData.hexSideLength = json.hexsidelength;\r\n layerData.staggerAxis = json.staggeraxis;\r\n layerData.staggerIndex = json.staggerindex;\r\n }\r\n var row = [];\r\n\r\n // Loop through the data field in the JSON.\r\n for (var k = 0, len = curl.data.length; k < len; k++)\r\n {\r\n gidInfo = ParseGID(curl.data[k]);\r\n\r\n // index, x, y, width, height\r\n if (gidInfo.gid > 0)\r\n {\r\n tile = new Tile(layerData, gidInfo.gid, x, output.length, json.tilewidth, json.tileheight);\r\n\r\n // Turning Tiled's FlippedHorizontal, FlippedVertical and FlippedAntiDiagonal\r\n // propeties into flipX, flipY and rotation\r\n tile.rotation = gidInfo.rotation;\r\n tile.flipX = gidInfo.flipped;\r\n\r\n row.push(tile);\r\n }\r\n else\r\n {\r\n blankTile = insertNull\r\n ? null\r\n : new Tile(layerData, -1, x, output.length, json.tilewidth, json.tileheight);\r\n row.push(blankTile);\r\n }\r\n\r\n x++;\r\n\r\n if (x === curl.width)\r\n {\r\n output.push(row);\r\n x = 0;\r\n row = [];\r\n }\r\n }\r\n }\r\n\r\n layerData.data = output;\r\n tileLayers.push(layerData);\r\n }\r\n\r\n return tileLayers;\r\n};\r\n\r\nmodule.exports = ParseTileLayers;\r\n\n\n/***/ }),\n\n/***/ 24619:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Tileset = __webpack_require__(33629);\r\nvar ImageCollection = __webpack_require__(16536);\r\nvar ParseObject = __webpack_require__(52205);\r\nvar ParseWangsets = __webpack_require__(57880);\r\n\r\n/**\r\n * Tilesets and Image Collections.\r\n *\r\n * @function Phaser.Tilemaps.Parsers.Tiled.ParseTilesets\r\n * @since 3.0.0\r\n *\r\n * @param {object} json - The Tiled JSON data.\r\n *\r\n * @return {object} An object containing the tileset and image collection data.\r\n */\r\nvar ParseTilesets = function (json)\r\n{\r\n var tilesets = [];\r\n var imageCollections = [];\r\n var lastSet = null;\r\n var stringID;\r\n\r\n for (var i = 0; i < json.tilesets.length; i++)\r\n {\r\n // name, firstgid, width, height, margin, spacing, properties\r\n var set = json.tilesets[i];\r\n\r\n if (set.source)\r\n {\r\n console.warn('External tilesets unsupported. Use Embed Tileset and re-export');\r\n }\r\n else if (set.image)\r\n {\r\n var newSet = new Tileset(set.name, set.firstgid, set.tilewidth, set.tileheight, set.margin, set.spacing, undefined, undefined, set.tileoffset);\r\n\r\n if (json.version > 1)\r\n {\r\n var datas = undefined;\r\n var props = undefined;\r\n\r\n if (Array.isArray(set.tiles))\r\n {\r\n datas = datas || {};\r\n props = props || {};\r\n\r\n // Tiled 1.2+\r\n for (var t = 0; t < set.tiles.length; t++)\r\n {\r\n var tile = set.tiles[t];\r\n\r\n // Convert tileproperties.\r\n if (tile.properties)\r\n {\r\n var newPropData = {};\r\n\r\n tile.properties.forEach(function (propData)\r\n {\r\n newPropData[propData['name']] = propData['value'];\r\n });\r\n\r\n props[tile.id] = newPropData;\r\n }\r\n\r\n // Convert objectgroup\r\n if (tile.objectgroup)\r\n {\r\n (datas[tile.id] || (datas[tile.id] = {})).objectgroup = tile.objectgroup;\r\n\r\n if (tile.objectgroup.objects)\r\n {\r\n var parsedObjects2 = tile.objectgroup.objects.map(function (obj)\r\n {\r\n return ParseObject(obj);\r\n });\r\n\r\n datas[tile.id].objectgroup.objects = parsedObjects2;\r\n }\r\n }\r\n\r\n // Copy animation data\r\n if (tile.animation)\r\n {\r\n (datas[tile.id] || (datas[tile.id] = {})).animation = tile.animation;\r\n }\r\n\r\n // Copy tile `type` field\r\n // (see https://doc.mapeditor.org/en/latest/manual/custom-properties/#typed-tiles).\r\n if (tile.type)\r\n {\r\n (datas[tile.id] || (datas[tile.id] = {})).type = tile.type;\r\n }\r\n }\r\n }\r\n\r\n if (Array.isArray(set.wangsets))\r\n {\r\n datas = datas || {};\r\n props = props || {};\r\n\r\n ParseWangsets(set.wangsets, datas);\r\n }\r\n\r\n if (datas) // Implies also props is set.\r\n {\r\n newSet.tileData = datas;\r\n newSet.tileProperties = props;\r\n }\r\n }\r\n else\r\n {\r\n // Tiled 1\r\n\r\n // Properties stored per-tile in object with string indexes starting at \"0\"\r\n if (set.tileproperties)\r\n {\r\n newSet.tileProperties = set.tileproperties;\r\n }\r\n\r\n // Object & terrain shapes stored per-tile in object with string indexes starting at \"0\"\r\n if (set.tiles)\r\n {\r\n newSet.tileData = set.tiles;\r\n\r\n // Parse the objects into Phaser format to match handling of other Tiled objects\r\n for (stringID in newSet.tileData)\r\n {\r\n var objectGroup = newSet.tileData[stringID].objectgroup;\r\n\r\n if (objectGroup && objectGroup.objects)\r\n {\r\n var parsedObjects1 = objectGroup.objects.map(function (obj)\r\n {\r\n return ParseObject(obj);\r\n });\r\n\r\n newSet.tileData[stringID].objectgroup.objects = parsedObjects1;\r\n }\r\n }\r\n }\r\n }\r\n\r\n // For a normal sliced tileset the row/count/size information is computed when updated.\r\n // This is done (again) after the image is set.\r\n newSet.updateTileData(set.imagewidth, set.imageheight);\r\n\r\n tilesets.push(newSet);\r\n }\r\n else\r\n {\r\n var newCollection = new ImageCollection(set.name, set.firstgid, set.tilewidth, set.tileheight, set.margin, set.spacing, set.properties);\r\n\r\n var maxId = 0;\r\n\r\n for (t = 0; t < set.tiles.length; t++)\r\n {\r\n tile = set.tiles[t];\r\n\r\n var image = tile.image;\r\n var tileId = parseInt(tile.id, 10);\r\n var gid = set.firstgid + tileId;\r\n newCollection.addImage(gid, image);\r\n\r\n maxId = Math.max(tileId, maxId);\r\n }\r\n\r\n newCollection.maxId = maxId;\r\n\r\n imageCollections.push(newCollection);\r\n }\r\n\r\n // We've got a new Tileset, so set the lastgid into the previous one\r\n if (lastSet)\r\n {\r\n lastSet.lastgid = set.firstgid - 1;\r\n }\r\n\r\n lastSet = set;\r\n }\r\n\r\n return { tilesets: tilesets, imageCollections: imageCollections };\r\n};\r\n\r\nmodule.exports = ParseTilesets;\r\n\n\n/***/ }),\n\n/***/ 57880:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Parses out the Wangset information from Tiled 1.1.5+ map data, if present.\r\n *\r\n * Since a given tile can be in more than one wangset, the resulting properties\r\n * are nested. `tile.data.wangid[someWangsetName]` will return the array-based wang id in\r\n * this implementation.\r\n *\r\n * Note that we're not guaranteed that there will be any 'normal' tiles if the only\r\n * thing in the tilset are wangtile definitions, so this has to be parsed separately.\r\n *\r\n * See https://doc.mapeditor.org/en/latest/manual/using-wang-tiles/ for more information.\r\n *\r\n * @function Phaser.Tilemaps.Parsers.Tiled.ParseWangsets\r\n * @since 3.53.0\r\n *\r\n * @param {Array.} wangsets - The array of wangset objects (parsed from JSON)\r\n * @param {object} datas - The field into which to put wangset data from Tiled.\r\n *\r\n * @return {object} An object containing the tileset and image collection data.\r\n */\r\nvar ParseWangsets = function (wangsets, datas)\r\n{\r\n for (var w = 0; w < wangsets.length; w++)\r\n {\r\n var wangset = wangsets[w];\r\n var identifier = w;\r\n\r\n if (wangset.name && wangset.name !== '')\r\n {\r\n identifier = wangset.name;\r\n }\r\n\r\n if (Array.isArray(wangset.wangtiles) && wangset.wangtiles.length > 0)\r\n {\r\n var edgeColors = {};\r\n var cornerColors = {};\r\n\r\n var c;\r\n var color;\r\n var colorIndex;\r\n\r\n // Tiled before v2020.09.09\r\n if (Array.isArray(wangset.edgecolors))\r\n {\r\n for (c = 0; c < wangset.edgecolors.length; c++)\r\n {\r\n colorIndex = 1 + c;\r\n color = wangset.edgecolors[c];\r\n\r\n if (color.name !== '')\r\n {\r\n edgeColors[colorIndex] = color.name;\r\n }\r\n }\r\n }\r\n\r\n if (Array.isArray(wangset.cornercolors))\r\n {\r\n for (c = 0; c < wangset.cornercolors.length; c++)\r\n {\r\n colorIndex = 1 + c;\r\n color = wangset.cornercolors[c];\r\n\r\n if (color.name !== '')\r\n {\r\n cornerColors[colorIndex] = color.name;\r\n }\r\n }\r\n }\r\n\r\n // Tiled after v2020.09.09\r\n if (Array.isArray(wangset.colors))\r\n {\r\n for (c = 0; c < wangset.colors.length; c++)\r\n {\r\n color = wangset.colors[c];\r\n colorIndex = 1 + c;\r\n\r\n if (color.name !== '')\r\n {\r\n edgeColors[colorIndex] = cornerColors[colorIndex] = color.name;\r\n }\r\n }\r\n }\r\n\r\n // The wangid layout is north, northeast, east, southeast, etc.\r\n var idLayout = [\r\n edgeColors, cornerColors, edgeColors, cornerColors,\r\n edgeColors, cornerColors, edgeColors, cornerColors\r\n ];\r\n\r\n for (var t = 0; t < wangset.wangtiles.length; t++)\r\n {\r\n var wangtile = wangset.wangtiles[t];\r\n\r\n var obj = (datas[wangtile.tileid] || (datas[wangtile.tileid] = {}));\r\n\r\n obj = (obj.wangid || (obj.wangid = {}));\r\n\r\n var wangid = [];\r\n\r\n for (var i = 0; i < Math.min(idLayout.length, wangtile.wangid.length); i++)\r\n {\r\n color = wangtile.wangid[i];\r\n\r\n if (color === 0)\r\n {\r\n wangid.push(undefined);\r\n continue;\r\n }\r\n\r\n var renamed = idLayout[i][color];\r\n\r\n if (renamed !== undefined)\r\n {\r\n wangid.push(renamed);\r\n continue;\r\n }\r\n\r\n wangid.push(color);\r\n }\r\n\r\n obj[identifier] = wangid;\r\n }\r\n }\r\n }\r\n};\r\n\r\nmodule.exports = ParseWangsets;\r\n\n\n/***/ }),\n\n/***/ 96761:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Tilemaps.Parsers.Tiled\r\n */\r\n\r\nmodule.exports = {\r\n\r\n AssignTileProperties: __webpack_require__(51233),\r\n Base64Decode: __webpack_require__(41868),\r\n BuildTilesetIndex: __webpack_require__(84101),\r\n CreateGroupLayer: __webpack_require__(79677),\r\n ParseGID: __webpack_require__(29920),\r\n ParseImageLayers: __webpack_require__(12635),\r\n ParseJSONTiled: __webpack_require__(46594),\r\n ParseObject: __webpack_require__(52205),\r\n ParseObjectLayers: __webpack_require__(22611),\r\n ParseTileLayers: __webpack_require__(28200),\r\n ParseTilesets: __webpack_require__(24619)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 33385:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar PluginCache = __webpack_require__(37277);\r\nvar SceneEvents = __webpack_require__(44594);\r\nvar TimerEvent = __webpack_require__(94880);\r\nvar Remove = __webpack_require__(72905);\r\n\r\n/**\r\n * @classdesc\r\n * The Clock is a Scene plugin which creates and updates Timer Events for its Scene.\r\n *\r\n * @class Clock\r\n * @memberof Phaser.Time\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene which owns this Clock.\r\n */\r\nvar Clock = new Class({\r\n\r\n initialize:\r\n\r\n function Clock (scene)\r\n {\r\n /**\r\n * The Scene which owns this Clock.\r\n *\r\n * @name Phaser.Time.Clock#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.0.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * The Scene Systems object of the Scene which owns this Clock.\r\n *\r\n * @name Phaser.Time.Clock#systems\r\n * @type {Phaser.Scenes.Systems}\r\n * @since 3.0.0\r\n */\r\n this.systems = scene.sys;\r\n\r\n /**\r\n * The current time of the Clock, in milliseconds.\r\n *\r\n * If accessed externally, this is equivalent to the `time` parameter normally passed to a Scene's `update` method.\r\n *\r\n * @name Phaser.Time.Clock#now\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.now = 0;\r\n\r\n /**\r\n * The time the Clock (and Scene) started, in milliseconds.\r\n *\r\n * This can be compared to the `time` parameter passed to a Scene's `update` method.\r\n *\r\n * @name Phaser.Time.Clock#startTime\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.startTime = 0;\r\n\r\n /**\r\n * The scale of the Clock's time delta.\r\n *\r\n * The time delta is the time elapsed between two consecutive frames and influences the speed of time for this Clock and anything which uses it, such as its Timer Events. Values higher than 1 increase the speed of time, while values smaller than 1 decrease it. A value of 0 freezes time and is effectively equivalent to pausing the Clock.\r\n *\r\n * @name Phaser.Time.Clock#timeScale\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n this.timeScale = 1;\r\n\r\n /**\r\n * Whether the Clock is paused (`true`) or active (`false`).\r\n *\r\n * When paused, the Clock will not update any of its Timer Events, thus freezing time.\r\n *\r\n * @name Phaser.Time.Clock#paused\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.paused = false;\r\n\r\n /**\r\n * An array of all Timer Events whose delays haven't expired - these are actively updating Timer Events.\r\n *\r\n * @name Phaser.Time.Clock#_active\r\n * @type {Phaser.Time.TimerEvent[]}\r\n * @private\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this._active = [];\r\n\r\n /**\r\n * An array of all Timer Events which will be added to the Clock at the start of the next frame.\r\n *\r\n * @name Phaser.Time.Clock#_pendingInsertion\r\n * @type {Phaser.Time.TimerEvent[]}\r\n * @private\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this._pendingInsertion = [];\r\n\r\n /**\r\n * An array of all Timer Events which will be removed from the Clock at the start of the next frame.\r\n *\r\n * @name Phaser.Time.Clock#_pendingRemoval\r\n * @type {Phaser.Time.TimerEvent[]}\r\n * @private\r\n * @default []\r\n * @since 3.0.0\r\n */\r\n this._pendingRemoval = [];\r\n\r\n scene.sys.events.once(SceneEvents.BOOT, this.boot, this);\r\n scene.sys.events.on(SceneEvents.START, this.start, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically, only once, when the Scene is first created.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.Time.Clock#boot\r\n * @private\r\n * @since 3.5.1\r\n */\r\n boot: function ()\r\n {\r\n // Sync with the TimeStep\r\n this.now = this.systems.game.loop.time;\r\n\r\n this.systems.events.once(SceneEvents.DESTROY, this.destroy, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically by the Scene when it is starting up.\r\n * It is responsible for creating local systems, properties and listening for Scene events.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.Time.Clock#start\r\n * @private\r\n * @since 3.5.0\r\n */\r\n start: function ()\r\n {\r\n this.startTime = this.systems.game.loop.time;\r\n\r\n var eventEmitter = this.systems.events;\r\n\r\n eventEmitter.on(SceneEvents.PRE_UPDATE, this.preUpdate, this);\r\n eventEmitter.on(SceneEvents.UPDATE, this.update, this);\r\n eventEmitter.once(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * Creates a Timer Event and adds it to this Clock at the start of the next frame.\r\n *\r\n * You can pass in either a `TimerEventConfig` object, from with a new `TimerEvent` will\r\n * be created, or you can pass in a `TimerEvent` instance.\r\n *\r\n * If passing an instance please make sure that this instance hasn't been used before.\r\n * If it has ever entered a 'completed' state then it will no longer be suitable to\r\n * run again.\r\n *\r\n * Also, if the `TimerEvent` instance is being used by _another_ Clock (in another Scene)\r\n * it will still be updated by that Clock as well, so be careful when using this feature.\r\n *\r\n * @method Phaser.Time.Clock#addEvent\r\n * @since 3.0.0\r\n *\r\n * @param {(Phaser.Time.TimerEvent | Phaser.Types.Time.TimerEventConfig)} config - The configuration for the Timer Event, or an existing Timer Event object.\r\n *\r\n * @return {Phaser.Time.TimerEvent} The Timer Event which was created, or passed in.\r\n */\r\n addEvent: function (config)\r\n {\r\n var event;\r\n\r\n if (config instanceof TimerEvent)\r\n {\r\n event = config;\r\n\r\n this.removeEvent(event);\r\n\r\n event.elapsed = event.startAt;\r\n event.hasDispatched = false;\r\n event.repeatCount = (event.repeat === -1 || event.loop) ? 999999999999 : event.repeat;\r\n }\r\n else\r\n {\r\n event = new TimerEvent(config);\r\n }\r\n\r\n this._pendingInsertion.push(event);\r\n\r\n return event;\r\n },\r\n\r\n /**\r\n * Creates a Timer Event and adds it to the Clock at the start of the frame.\r\n *\r\n * This is a shortcut for {@link #addEvent} which can be shorter and is compatible with the syntax of the GreenSock Animation Platform (GSAP).\r\n *\r\n * @method Phaser.Time.Clock#delayedCall\r\n * @since 3.0.0\r\n *\r\n * @param {number} delay - The delay of the function call, in milliseconds.\r\n * @param {function} callback - The function to call after the delay expires.\r\n * @param {Array.<*>} [args] - The arguments to call the function with.\r\n * @param {*} [callbackScope] - The scope (`this` object) to call the function with.\r\n *\r\n * @return {Phaser.Time.TimerEvent} The Timer Event which was created.\r\n */\r\n delayedCall: function (delay, callback, args, callbackScope)\r\n {\r\n return this.addEvent({ delay: delay, callback: callback, args: args, callbackScope: callbackScope });\r\n },\r\n\r\n /**\r\n * Clears and recreates the array of pending Timer Events.\r\n *\r\n * @method Phaser.Time.Clock#clearPendingEvents\r\n * @since 3.0.0\r\n *\r\n * @return {this} - This Clock instance.\r\n */\r\n clearPendingEvents: function ()\r\n {\r\n this._pendingInsertion = [];\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes the given Timer Event, or an array of Timer Events, from this Clock.\r\n *\r\n * The events are removed from all internal lists (active, pending and removal),\r\n * freeing the event up to be re-used.\r\n *\r\n * @method Phaser.Time.Clock#removeEvent\r\n * @since 3.50.0\r\n *\r\n * @param {(Phaser.Time.TimerEvent | Phaser.Time.TimerEvent[])} events - The Timer Event, or an array of Timer Events, to remove from this Clock.\r\n *\r\n * @return {this} - This Clock instance.\r\n */\r\n removeEvent: function (events)\r\n {\r\n if (!Array.isArray(events))\r\n {\r\n events = [ events ];\r\n }\r\n\r\n for (var i = 0; i < events.length; i++)\r\n {\r\n var event = events[i];\r\n\r\n Remove(this._pendingRemoval, event);\r\n Remove(this._pendingInsertion, event);\r\n Remove(this._active, event);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Schedules all active Timer Events for removal at the start of the frame.\r\n *\r\n * @method Phaser.Time.Clock#removeAllEvents\r\n * @since 3.0.0\r\n *\r\n * @return {this} - This Clock instance.\r\n */\r\n removeAllEvents: function ()\r\n {\r\n this._pendingRemoval = this._pendingRemoval.concat(this._active);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Updates the arrays of active and pending Timer Events. Called at the start of the frame.\r\n *\r\n * @method Phaser.Time.Clock#preUpdate\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n */\r\n preUpdate: function ()\r\n {\r\n var toRemove = this._pendingRemoval.length;\r\n var toInsert = this._pendingInsertion.length;\r\n\r\n if (toRemove === 0 && toInsert === 0)\r\n {\r\n // Quick bail\r\n return;\r\n }\r\n\r\n var i;\r\n var event;\r\n\r\n // Delete old events\r\n for (i = 0; i < toRemove; i++)\r\n {\r\n event = this._pendingRemoval[i];\r\n\r\n var index = this._active.indexOf(event);\r\n\r\n if (index > -1)\r\n {\r\n this._active.splice(index, 1);\r\n }\r\n\r\n // Pool them?\r\n event.destroy();\r\n }\r\n\r\n for (i = 0; i < toInsert; i++)\r\n {\r\n event = this._pendingInsertion[i];\r\n\r\n this._active.push(event);\r\n }\r\n\r\n // Clear the lists\r\n this._pendingRemoval.length = 0;\r\n this._pendingInsertion.length = 0;\r\n },\r\n\r\n /**\r\n * Updates the Clock's internal time and all of its Timer Events.\r\n *\r\n * @method Phaser.Time.Clock#update\r\n * @since 3.0.0\r\n *\r\n * @param {number} time - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n */\r\n update: function (time, delta)\r\n {\r\n this.now = time;\r\n\r\n if (this.paused)\r\n {\r\n return;\r\n }\r\n\r\n delta *= this.timeScale;\r\n\r\n for (var i = 0; i < this._active.length; i++)\r\n {\r\n var event = this._active[i];\r\n\r\n if (event.paused)\r\n {\r\n continue;\r\n }\r\n\r\n // Use delta time to increase elapsed.\r\n // Avoids needing to adjust for pause / resume.\r\n // Automatically smoothed by TimeStep class.\r\n // In testing accurate to +- 1ms!\r\n event.elapsed += delta * event.timeScale;\r\n\r\n if (event.elapsed >= event.delay)\r\n {\r\n var remainder = event.elapsed - event.delay;\r\n\r\n // Limit it, in case it's checked in the callback\r\n event.elapsed = event.delay;\r\n\r\n // Process the event\r\n if (!event.hasDispatched && event.callback)\r\n {\r\n event.hasDispatched = true;\r\n event.callback.apply(event.callbackScope, event.args);\r\n }\r\n\r\n if (event.repeatCount > 0)\r\n {\r\n event.repeatCount--;\r\n\r\n // Very short delay\r\n if (remainder >= event.delay)\r\n {\r\n while ((remainder >= event.delay) && (event.repeatCount > 0))\r\n {\r\n if (event.callback)\r\n {\r\n event.callback.apply(event.callbackScope, event.args);\r\n }\r\n\r\n remainder -= event.delay;\r\n event.repeatCount--;\r\n }\r\n }\r\n\r\n event.elapsed = remainder;\r\n event.hasDispatched = false;\r\n }\r\n else if (event.hasDispatched)\r\n {\r\n this._pendingRemoval.push(event);\r\n }\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is shutting down.\r\n * We need to kill and reset all internal properties as well as stop listening to Scene events.\r\n *\r\n * @method Phaser.Time.Clock#shutdown\r\n * @private\r\n * @since 3.0.0\r\n */\r\n shutdown: function ()\r\n {\r\n var i;\r\n\r\n for (i = 0; i < this._pendingInsertion.length; i++)\r\n {\r\n this._pendingInsertion[i].destroy();\r\n }\r\n\r\n for (i = 0; i < this._active.length; i++)\r\n {\r\n this._active[i].destroy();\r\n }\r\n\r\n for (i = 0; i < this._pendingRemoval.length; i++)\r\n {\r\n this._pendingRemoval[i].destroy();\r\n }\r\n\r\n this._active.length = 0;\r\n this._pendingRemoval.length = 0;\r\n this._pendingInsertion.length = 0;\r\n\r\n var eventEmitter = this.systems.events;\r\n\r\n eventEmitter.off(SceneEvents.PRE_UPDATE, this.preUpdate, this);\r\n eventEmitter.off(SceneEvents.UPDATE, this.update, this);\r\n eventEmitter.off(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is being destroyed.\r\n * We need to shutdown and then kill off all external references.\r\n *\r\n * @method Phaser.Time.Clock#destroy\r\n * @private\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.shutdown();\r\n\r\n this.scene.sys.events.off(SceneEvents.START, this.start, this);\r\n\r\n this.scene = null;\r\n this.systems = null;\r\n }\r\n\r\n});\r\n\r\nPluginCache.register('Clock', Clock, 'time');\r\n\r\nmodule.exports = Clock;\r\n\n\n/***/ }),\n\n/***/ 96120:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\nvar GetFastValue = __webpack_require__(95540);\r\nvar SceneEvents = __webpack_require__(44594);\r\nvar Events = __webpack_require__(89809);\r\n\r\n/**\r\n * @classdesc\r\n * A Timeline is a way to schedule events to happen at specific times in the future.\r\n *\r\n * You can think of it as an event sequencer for your game, allowing you to schedule the\r\n * running of callbacks, events and other actions at specific times in the future.\r\n *\r\n * A Timeline is a Scene level system, meaning you can have as many Timelines as you like, each\r\n * belonging to a different Scene. You can also have multiple Timelines running at the same time.\r\n *\r\n * If the Scene is paused, the Timeline will also pause. If the Scene is destroyed, the Timeline\r\n * will be automatically destroyed. However, you can control the Timeline directly, pausing,\r\n * resuming and stopping it at any time.\r\n *\r\n * Create an instance of a Timeline via the Game Object Factory:\r\n *\r\n * ```js\r\n * const timeline = this.add.timeline();\r\n * ```\r\n *\r\n * The Timeline always starts paused. You must call `play` on it to start it running.\r\n *\r\n * You can also pass in a configuration object on creation, or an array of them:\r\n *\r\n * ```js\r\n * const timeline = this.add.timeline({\r\n * at: 1000,\r\n * run: () => {\r\n * this.add.sprite(400, 300, 'logo');\r\n * }\r\n * });\r\n *\r\n * timeline.play();\r\n * ```\r\n *\r\n * In this example we sequence a few different events:\r\n *\r\n * ```js\r\n * const timeline = this.add.timeline([\r\n * {\r\n * at: 1000,\r\n * run: () => { this.logo = this.add.sprite(400, 300, 'logo'); },\r\n * sound: 'TitleMusic'\r\n * },\r\n * {\r\n * at: 2500,\r\n * tween: {\r\n * targets: this.logo,\r\n * y: 600,\r\n * yoyo: true\r\n * },\r\n * sound: 'Explode'\r\n * },\r\n * {\r\n * at: 8000,\r\n * event: 'HURRY_PLAYER',\r\n * target: this.background,\r\n * set: {\r\n * tint: 0xff0000\r\n * }\r\n * }\r\n * ]);\r\n *\r\n * timeline.play();\r\n * ```\r\n *\r\n * The Timeline can also be looped with the repeat method:\r\n * ```js\r\n * timeline.repeat().play();\r\n * ```\r\n * \r\n * There are lots of options available to you via the configuration object. See the\r\n * {@link Phaser.Types.Time.TimelineEventConfig} typedef for more details.\r\n *\r\n * @class Timeline\r\n * @extends Phaser.Events.EventEmitter\r\n * @memberof Phaser.Time\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene which owns this Timeline.\r\n * @param {Phaser.Types.Time.TimelineEventConfig|Phaser.Types.Time.TimelineEventConfig[]} [config] - The configuration object for this Timeline Event, or an array of them.\r\n */\r\nvar Timeline = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function Timeline (scene, config)\r\n {\r\n EventEmitter.call(this);\r\n\r\n /**\r\n * The Scene to which this Timeline belongs.\r\n *\r\n * @name Phaser.Time.Timeline#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.60.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * A reference to the Scene Systems.\r\n *\r\n * @name Phaser.Time.Timeline#systems\r\n * @type {Phaser.Scenes.Systems}\r\n * @since 3.60.0\r\n */\r\n this.systems = scene.sys;\r\n\r\n /**\r\n * The elapsed time counter.\r\n *\r\n * Treat this as read-only.\r\n *\r\n * @name Phaser.Time.Timeline#elapsed\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.elapsed = 0;\r\n\r\n /**\r\n * The Timeline's delta time scale.\r\n *\r\n * Values higher than 1 increase the speed of time, while values smaller than 1 decrease it.\r\n * A value of 0 freezes time and is effectively equivalent to pausing the Timeline.\r\n *\r\n * This doesn't affect the delta time scale of any Tweens created by the Timeline.\r\n * You will have to set the `timeScale` of each Tween or the Tween Manager if you want them to match.\r\n *\r\n * @name Phaser.Time.Timeline#timeScale\r\n * @type {number}\r\n * @default\r\n * @since 3.85.0\r\n */\r\n this.timeScale = 1;\r\n\r\n /**\r\n * Whether the Timeline is running (`true`) or active (`false`).\r\n *\r\n * When paused, the Timeline will not run any of its actions.\r\n *\r\n * By default a Timeline is always paused and should be started by\r\n * calling the `Timeline.play` method.\r\n *\r\n * You can use the `Timeline.pause` and `Timeline.resume` methods to control\r\n * this value in a chainable way.\r\n *\r\n * @name Phaser.Time.Timeline#paused\r\n * @type {boolean}\r\n * @default true\r\n * @since 3.60.0\r\n */\r\n this.paused = true;\r\n\r\n /**\r\n * Whether the Timeline is complete (`true`) or not (`false`).\r\n *\r\n * A Timeline is considered complete when all of its events have been run.\r\n *\r\n * If you wish to reset a Timeline after it has completed, you can do so\r\n * by calling the `Timeline.reset` method.\r\n *\r\n * You can also use the `Timeline.stop` method to stop a running Timeline,\r\n * at any point, without resetting it.\r\n *\r\n * @name Phaser.Time.Timeline#complete\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.60.0\r\n */\r\n this.complete = false;\r\n\r\n /**\r\n * The total number of events that have been run.\r\n *\r\n * This value is reset to zero if the Timeline is restarted.\r\n *\r\n * Treat this as read-only.\r\n *\r\n * @name Phaser.Time.Timeline#totalComplete\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.totalComplete = 0;\r\n\r\n /**\r\n * The number of times this timeline should loop.\r\n *\r\n * If this value is -1 or any negative number this Timeline will not stop. \r\n *\r\n * @name Phaser.Time.Timeline#loop\r\n * @type {number}\r\n * @since 3.80.0\r\n */\r\n this.loop = 0;\r\n\r\n /**\r\n * The number of times this Timeline has looped.\r\n *\r\n * This value is incremented each loop if looping is enabled.\r\n *\r\n * @name Phaser.Time.Timeline#iteration\r\n * @type {number}\r\n * @since 3.80.0\r\n */\r\n this.iteration = 0;\r\n\r\n /**\r\n * An array of all the Timeline Events.\r\n *\r\n * @name Phaser.Time.Timeline#events\r\n * @type {Phaser.Types.Time.TimelineEvent[]}\r\n * @since 3.60.0\r\n */\r\n this.events = [];\r\n\r\n var eventEmitter = this.systems.events;\r\n\r\n eventEmitter.on(SceneEvents.PRE_UPDATE, this.preUpdate, this);\r\n eventEmitter.on(SceneEvents.UPDATE, this.update, this);\r\n eventEmitter.once(SceneEvents.SHUTDOWN, this.destroy, this);\r\n\r\n if (config)\r\n {\r\n this.add(config);\r\n }\r\n },\r\n\r\n /**\r\n * Updates the elapsed time counter, if this Timeline is not paused.\r\n *\r\n * @method Phaser.Time.Timeline#preUpdate\r\n * @since 3.60.0\r\n *\r\n * @param {number} time - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n */\r\n preUpdate: function (time, delta)\r\n {\r\n if (this.paused)\r\n {\r\n return;\r\n }\r\n\r\n this.elapsed += delta * this.timeScale;\r\n },\r\n\r\n /**\r\n * Called automatically by the Scene update step.\r\n *\r\n * Iterates through all of the Timeline Events and checks to see if they should be run.\r\n *\r\n * If they should be run, then the `TimelineEvent.action` callback is invoked.\r\n *\r\n * If the `TimelineEvent.once` property is `true` then the event is removed from the Timeline.\r\n *\r\n * If the `TimelineEvent.event` property is set then the Timeline emits that event.\r\n *\r\n * If the `TimelineEvent.run` property is set then the Timeline invokes that method.\r\n * \r\n * If the `TimelineEvent.loop` property is set then the Timeline invokes that method when repeated.\r\n *\r\n * If the `TimelineEvent.target` property is set then the Timeline invokes the `run` method on that target.\r\n *\r\n * @method Phaser.Time.Timeline#update\r\n * @fires Phaser.Time.Events#COMPLETE\r\n * @since 3.60.0\r\n *\r\n * @param {number} time - The current time. Either a High Resolution Timer value if it comes from Request Animation Frame, or Date.now if using SetTimeout.\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n */\r\n update: function ()\r\n {\r\n if (this.paused || this.complete)\r\n {\r\n return;\r\n }\r\n\r\n var i;\r\n var events = this.events;\r\n var removeSweep = false;\r\n var sys = this.systems;\r\n var target;\r\n\r\n for (i = 0; i < events.length; i++)\r\n {\r\n var event = events[i];\r\n\r\n if (!event.complete && event.time <= this.elapsed)\r\n {\r\n event.complete = true;\r\n\r\n this.totalComplete++;\r\n\r\n target = (event.target) ? event.target : this;\r\n\r\n if (event.if)\r\n {\r\n if (!event.if.call(target, event))\r\n {\r\n continue;\r\n }\r\n }\r\n\r\n if (event.once)\r\n {\r\n removeSweep = true;\r\n }\r\n\r\n if (event.set && event.target)\r\n {\r\n // set is an object of key value pairs, apply them to target\r\n for (var key in event.set)\r\n {\r\n event.target[key] = event.set[key];\r\n }\r\n }\r\n\r\n if (this.iteration)\r\n {\r\n event.repeat++;\r\n }\r\n\r\n if (event.loop && event.repeat)\r\n {\r\n event.loop.call(target);\r\n }\r\n\r\n if (event.tween)\r\n {\r\n event.tweenInstance = sys.tweens.add(event.tween);\r\n }\r\n\r\n if (event.sound)\r\n {\r\n if (typeof event.sound === 'string')\r\n {\r\n sys.sound.play(event.sound);\r\n }\r\n else\r\n {\r\n sys.sound.play(event.sound.key, event.sound.config);\r\n }\r\n }\r\n\r\n if (event.event)\r\n {\r\n this.emit(event.event, target);\r\n }\r\n\r\n if (event.run)\r\n {\r\n event.run.call(target);\r\n }\r\n\r\n if (event.stop)\r\n {\r\n this.stop();\r\n }\r\n }\r\n }\r\n\r\n if (removeSweep)\r\n {\r\n for (i = 0; i < events.length; i++)\r\n {\r\n if (events[i].complete && events[i].once)\r\n {\r\n events.splice(i, 1);\r\n\r\n i--;\r\n }\r\n }\r\n }\r\n\r\n // It may be greater than the length if events have been removed\r\n if (this.totalComplete >= events.length)\r\n {\r\n if (this.loop !== 0 && (this.loop === -1 || this.loop > this.iteration))\r\n {\r\n this.iteration++;\r\n\r\n this.reset(true);\r\n }\r\n else\r\n {\r\n this.complete = true;\r\n }\r\n }\r\n\r\n if (this.complete)\r\n {\r\n this.emit(Events.COMPLETE, this);\r\n }\r\n },\r\n\r\n /**\r\n * Starts this Timeline running.\r\n *\r\n * If the Timeline is already running and the `fromStart` parameter is `true`,\r\n * then calling this method will reset the Timeline events as incomplete.\r\n *\r\n * If you wish to resume a paused Timeline, then use the `Timeline.resume` method instead.\r\n *\r\n * @method Phaser.Time.Timeline#play\r\n * @since 3.60.0\r\n *\r\n * @param {boolean} [fromStart=true] - Reset this Timeline back to the start before playing.\r\n *\r\n * @return {this} This Timeline instance.\r\n */\r\n play: function (fromStart)\r\n {\r\n if (fromStart === undefined) { fromStart = true; }\r\n\r\n this.paused = false;\r\n this.complete = false;\r\n this.totalComplete = 0;\r\n\r\n if (fromStart)\r\n {\r\n this.reset();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Pauses this Timeline.\r\n *\r\n * To resume it again, call the `Timeline.resume` method or set the `Timeline.paused` property to `false`.\r\n *\r\n * If the Timeline is paused while processing the current game step, then it\r\n * will carry on with all events that are due to run during that step and pause\r\n * from the next game step.\r\n *\r\n * Note that if any Tweens have been started prior to calling this method, they will **not** be paused as well.\r\n *\r\n * @method Phaser.Time.Timeline#pause\r\n * @since 3.60.0\r\n *\r\n * @return {this} This Timeline instance.\r\n */\r\n pause: function ()\r\n {\r\n this.paused = true;\r\n\r\n var events = this.events;\r\n\r\n for (var i = 0; i < events.length; i++)\r\n {\r\n var event = events[i];\r\n\r\n if (event.tweenInstance)\r\n {\r\n event.tweenInstance.paused = true;\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Repeats this Timeline.\r\n *\r\n * If the value for `amount` is positive, the Timeline will repeat that many additional times.\r\n * For example a value of 1 will actually run this Timeline twice.\r\n * \r\n * Depending on the value given, `false` is 0 and `true`, undefined and negative numbers are infinite.\r\n * \r\n * If this Timeline had any events set to `once` that have already been removed,\r\n * they will **not** be repeated each loop.\r\n *\r\n * @method Phaser.Time.Timeline#repeat\r\n * @since 3.80.0\r\n * \r\n * @param {number|boolean} [amount=-1] - Amount of times to repeat, if `true` or negative it will be infinite.\r\n *\r\n * @return {this} This Timeline instance.\r\n */\r\n repeat: function (amount)\r\n {\r\n if (amount === undefined || amount === true) { amount = -1; }\r\n if (amount === false) { amount = 0; }\r\n\r\n this.loop = amount;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resumes this Timeline from a paused state.\r\n *\r\n * The Timeline will carry on from where it left off.\r\n *\r\n * If you need to reset the Timeline to the start, then call the `Timeline.reset` method.\r\n *\r\n * @method Phaser.Time.Timeline#resume\r\n * @since 3.60.0\r\n *\r\n * @return {this} This Timeline instance.\r\n */\r\n resume: function ()\r\n {\r\n this.paused = false;\r\n\r\n var events = this.events;\r\n\r\n for (var i = 0; i < events.length; i++)\r\n {\r\n var event = events[i];\r\n\r\n if (event.tweenInstance)\r\n {\r\n event.tweenInstance.paused = false;\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Stops this Timeline.\r\n *\r\n * This will set the `paused` and `complete` properties to `true`.\r\n *\r\n * If you wish to reset the Timeline to the start, then call the `Timeline.reset` method.\r\n *\r\n * @method Phaser.Time.Timeline#stop\r\n * @since 3.60.0\r\n *\r\n * @return {this} This Timeline instance.\r\n */\r\n stop: function ()\r\n {\r\n this.paused = true;\r\n this.complete = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resets this Timeline back to the start.\r\n *\r\n * This will set the elapsed time to zero and set all events to be incomplete.\r\n *\r\n * If the Timeline had any events that were set to `once` that have already\r\n * been removed, they will **not** be present again after calling this method.\r\n *\r\n * If the Timeline isn't currently running (i.e. it's paused or complete) then\r\n * calling this method resets those states, the same as calling `Timeline.play(true)`.\r\n * \r\n * Any Tweens that were currently running by this Timeline will be stopped.\r\n *\r\n * @method Phaser.Time.Timeline#reset\r\n * @since 3.60.0\r\n * \r\n * @param {boolean} [loop=false] - Set to true if you do not want to reset the loop counters.\r\n * \r\n * @return {this} This Timeline instance.\r\n */\r\n reset: function (loop)\r\n {\r\n if (loop === undefined) { loop = false; }\r\n\r\n this.elapsed = 0;\r\n\r\n if (!loop)\r\n {\r\n this.iteration = 0;\r\n }\r\n\r\n var events = this.events;\r\n\r\n for (var i = 0; i < events.length; i++)\r\n {\r\n var event = events[i];\r\n\r\n event.complete = false;\r\n \r\n if (!loop)\r\n {\r\n event.repeat = 0;\r\n }\r\n\r\n if (event.tweenInstance)\r\n {\r\n event.tweenInstance.stop();\r\n }\r\n }\r\n\r\n return this.play(false);\r\n },\r\n\r\n /**\r\n * Adds one or more events to this Timeline.\r\n *\r\n * You can pass in a single configuration object, or an array of them:\r\n *\r\n * ```js\r\n * const timeline = this.add.timeline({\r\n * at: 1000,\r\n * run: () => {\r\n * this.add.sprite(400, 300, 'logo');\r\n * }\r\n * });\r\n * ```\r\n *\r\n * @method Phaser.Time.Timeline#add\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.Time.TimelineEventConfig|Phaser.Types.Time.TimelineEventConfig[]} config - The configuration object for this Timeline Event, or an array of them.\r\n *\r\n * @return {this} This Timeline instance.\r\n */\r\n add: function (config)\r\n {\r\n if (!Array.isArray(config))\r\n {\r\n config = [ config ];\r\n }\r\n\r\n var events = this.events;\r\n var prevTime = 0;\r\n\r\n if (events.length > 0)\r\n {\r\n prevTime = events[events.length - 1].time;\r\n }\r\n\r\n for (var i = 0; i < config.length; i++)\r\n {\r\n var entry = config[i];\r\n\r\n // Start at the exact time given, based on elapsed time (i.e. x ms from the start of the Timeline)\r\n var startTime = GetFastValue(entry, 'at', 0);\r\n\r\n // Start in x ms from whatever the current elapsed time is (i.e. x ms from now)\r\n var offsetTime = GetFastValue(entry, 'in', null);\r\n\r\n if (offsetTime !== null)\r\n {\r\n startTime = this.elapsed + offsetTime;\r\n }\r\n\r\n // Start in x ms from whatever the previous event's start time was (i.e. x ms after the previous event)\r\n var fromTime = GetFastValue(entry, 'from', null);\r\n\r\n if (fromTime !== null)\r\n {\r\n startTime = prevTime + fromTime;\r\n }\r\n\r\n events.push({\r\n complete: false,\r\n time: startTime,\r\n repeat: 0,\r\n if: GetFastValue(entry, 'if', null),\r\n run: GetFastValue(entry, 'run', null),\r\n loop: GetFastValue(entry, 'loop', null),\r\n event: GetFastValue(entry, 'event', null),\r\n target: GetFastValue(entry, 'target', null),\r\n set: GetFastValue(entry, 'set', null),\r\n tween: GetFastValue(entry, 'tween', null),\r\n sound: GetFastValue(entry, 'sound', null),\r\n once: GetFastValue(entry, 'once', false),\r\n stop: GetFastValue(entry, 'stop', false)\r\n });\r\n\r\n prevTime = startTime;\r\n }\r\n\r\n this.complete = false;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes all events from this Timeline, resets the elapsed time to zero\r\n * and pauses the Timeline.\r\n * \r\n * Any Tweens that were currently running as a result of this Timeline will be stopped.\r\n *\r\n * @method Phaser.Time.Timeline#clear\r\n * @since 3.60.0\r\n *\r\n * @return {this} This Timeline instance.\r\n */\r\n clear: function ()\r\n {\r\n var events = this.events;\r\n\r\n for (var i = 0; i < events.length; i++)\r\n {\r\n var event = events[i];\r\n\r\n if (event.tweenInstance)\r\n {\r\n event.tweenInstance.stop();\r\n }\r\n }\r\n\r\n events = [];\r\n\r\n this.elapsed = 0;\r\n this.paused = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns `true` if this Timeline is currently playing.\r\n *\r\n * A Timeline is playing if it is not paused or not complete.\r\n *\r\n * @method Phaser.Time.Timeline#isPlaying\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if this Timeline is playing, otherwise `false`.\r\n */\r\n isPlaying: function ()\r\n {\r\n return (!this.paused && !this.complete);\r\n },\r\n\r\n /**\r\n * Returns a number between 0 and 1 representing the progress of this Timeline.\r\n *\r\n * A value of 0 means the Timeline has just started, 0.5 means it's half way through,\r\n * and 1 means it's complete.\r\n *\r\n * If the Timeline has no events, or all events have been removed, this will return 1.\r\n *\r\n * If the Timeline is paused, this will return the progress value at the time it was paused.\r\n *\r\n * Note that the value returned is based on the number of events that have been completed,\r\n * not the 'duration' of the events (as this is unknown to the Timeline).\r\n *\r\n * @method Phaser.Time.Timeline#getProgress\r\n * @since 3.60.0\r\n *\r\n * @return {number} A number between 0 and 1 representing the progress of this Timeline.\r\n */\r\n getProgress: function ()\r\n {\r\n var total = Math.min(this.totalComplete, this.events.length);\r\n\r\n return total / this.events.length;\r\n },\r\n\r\n /**\r\n * Destroys this Timeline.\r\n *\r\n * This will remove all events from the Timeline and stop it from processing.\r\n * \r\n * Any Tweens that were currently running as a result of this Timeline will be stopped.\r\n *\r\n * This method is called automatically when the Scene shuts down, but you may\r\n * also call it directly should you need to destroy the Timeline earlier.\r\n *\r\n * @method Phaser.Time.Timeline#destroy\r\n * @since 3.60.0\r\n */\r\n destroy: function ()\r\n {\r\n var eventEmitter = this.systems.events;\r\n\r\n eventEmitter.off(SceneEvents.PRE_UPDATE, this.preUpdate, this);\r\n eventEmitter.off(SceneEvents.UPDATE, this.update, this);\r\n eventEmitter.off(SceneEvents.SHUTDOWN, this.destroy, this);\r\n\r\n this.clear();\r\n\r\n this.scene = null;\r\n this.systems = null;\r\n }\r\n\r\n});\r\n\r\n/**\r\n * A Timeline is a way to schedule events to happen at specific times in the future.\r\n *\r\n * You can think of it as an event sequencer for your game, allowing you to schedule the\r\n * running of callbacks, events and other actions at specific times in the future.\r\n *\r\n * A Timeline is a Scene level system, meaning you can have as many Timelines as you like, each\r\n * belonging to a different Scene. You can also have multiple Timelines running at the same time.\r\n *\r\n * If the Scene is paused, the Timeline will also pause. If the Scene is destroyed, the Timeline\r\n * will be automatically destroyed. However, you can control the Timeline directly, pausing,\r\n * resuming and stopping it at any time.\r\n *\r\n * Create an instance of a Timeline via the Game Object Factory:\r\n *\r\n * ```js\r\n * const timeline = this.add.timeline();\r\n * ```\r\n *\r\n * The Timeline always starts paused. You must call `play` on it to start it running.\r\n *\r\n * You can also pass in a configuration object on creation, or an array of them:\r\n *\r\n * ```js\r\n * const timeline = this.add.timeline({\r\n * at: 1000,\r\n * run: () => {\r\n * this.add.sprite(400, 300, 'logo');\r\n * }\r\n * });\r\n *\r\n * timeline.play();\r\n * ```\r\n *\r\n * In this example we sequence a few different events:\r\n *\r\n * ```js\r\n * const timeline = this.add.timeline([\r\n * {\r\n * at: 1000,\r\n * run: () => { this.logo = this.add.sprite(400, 300, 'logo'); },\r\n * sound: 'TitleMusic'\r\n * },\r\n * {\r\n * at: 2500,\r\n * tween: {\r\n * targets: this.logo,\r\n * y: 600,\r\n * yoyo: true\r\n * },\r\n * sound: 'Explode'\r\n * },\r\n * {\r\n * at: 8000,\r\n * event: 'HURRY_PLAYER',\r\n * target: this.background,\r\n * set: {\r\n * tint: 0xff0000\r\n * }\r\n * }\r\n * ]);\r\n *\r\n * timeline.play();\r\n * ```\r\n *\r\n * The Timeline can also be looped with the repeat method:\r\n * ```js\r\n * timeline.repeat().play();\r\n * ```\r\n * \r\n * There are lots of options available to you via the configuration object. See the\r\n * {@link Phaser.Types.Time.TimelineEventConfig} typedef for more details.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#timeline\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.Time.TimelineEventConfig|Phaser.Types.Time.TimelineEventConfig[]} config - The configuration object for this Timeline Event, or an array of them.\r\n *\r\n * @return {Phaser.Time.Timeline} The Timeline that was created.\r\n */\r\nGameObjectFactory.register('timeline', function (config)\r\n{\r\n return new Timeline(this.scene, config);\r\n});\r\n\r\nmodule.exports = Timeline;\r\n\n\n/***/ }),\n\n/***/ 94880:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar GetFastValue = __webpack_require__(95540);\r\n\r\n/**\r\n * @classdesc\r\n * A Timer Event represents a delayed function call. It's managed by a Scene's {@link Clock} and will call its function after a set amount of time has passed. The Timer Event can optionally repeat - i.e. call its function multiple times before finishing, or loop indefinitely.\r\n *\r\n * Because it's managed by a Clock, a Timer Event is based on game time, will be affected by its Clock's time scale, and will pause if its Clock pauses.\r\n *\r\n * @class TimerEvent\r\n * @memberof Phaser.Time\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Time.TimerEventConfig} config - The configuration for the Timer Event, including its delay and callback.\r\n */\r\nvar TimerEvent = new Class({\r\n\r\n initialize:\r\n\r\n function TimerEvent (config)\r\n {\r\n /**\r\n * The delay in ms at which this TimerEvent fires.\r\n *\r\n * @name Phaser.Time.TimerEvent#delay\r\n * @type {number}\r\n * @default 0\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.delay = 0;\r\n\r\n /**\r\n * The total number of times this TimerEvent will repeat before finishing.\r\n *\r\n * @name Phaser.Time.TimerEvent#repeat\r\n * @type {number}\r\n * @default 0\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.repeat = 0;\r\n\r\n /**\r\n * If repeating this contains the current repeat count.\r\n *\r\n * @name Phaser.Time.TimerEvent#repeatCount\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.repeatCount = 0;\r\n\r\n /**\r\n * True if this TimerEvent loops, otherwise false.\r\n *\r\n * @name Phaser.Time.TimerEvent#loop\r\n * @type {boolean}\r\n * @default false\r\n * @readonly\r\n * @since 3.0.0\r\n */\r\n this.loop = false;\r\n\r\n /**\r\n * The callback that will be called when the TimerEvent occurs.\r\n *\r\n * @name Phaser.Time.TimerEvent#callback\r\n * @type {function}\r\n * @since 3.0.0\r\n */\r\n this.callback;\r\n\r\n /**\r\n * The scope in which the callback will be called.\r\n *\r\n * @name Phaser.Time.TimerEvent#callbackScope\r\n * @type {object}\r\n * @since 3.0.0\r\n */\r\n this.callbackScope;\r\n\r\n /**\r\n * Additional arguments to be passed to the callback.\r\n *\r\n * @name Phaser.Time.TimerEvent#args\r\n * @type {array}\r\n * @since 3.0.0\r\n */\r\n this.args;\r\n\r\n /**\r\n * Scale the time causing this TimerEvent to update.\r\n *\r\n * @name Phaser.Time.TimerEvent#timeScale\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n this.timeScale = 1;\r\n\r\n /**\r\n * Start this many MS into the elapsed (useful if you want a long duration with repeat, but for the first loop to fire quickly)\r\n *\r\n * @name Phaser.Time.TimerEvent#startAt\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.startAt = 0;\r\n\r\n /**\r\n * The time in milliseconds which has elapsed since the Timer Event's creation.\r\n *\r\n * This value is local for the Timer Event and is relative to its Clock. As such, it's influenced by the Clock's time scale and paused state, the Timer Event's initial {@link #startAt} property, and the Timer Event's {@link #timeScale} and {@link #paused} state.\r\n *\r\n * @name Phaser.Time.TimerEvent#elapsed\r\n * @type {number}\r\n * @default 0\r\n * @since 3.0.0\r\n */\r\n this.elapsed = 0;\r\n\r\n /**\r\n * Whether or not this timer is paused.\r\n *\r\n * @name Phaser.Time.TimerEvent#paused\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.paused = false;\r\n\r\n /**\r\n * Whether the Timer Event's function has been called.\r\n *\r\n * When the Timer Event fires, this property will be set to `true` before the callback function is invoked and will be reset immediately afterward if the Timer Event should repeat. The value of this property does not directly influence whether the Timer Event will be removed from its Clock, but can prevent it from firing.\r\n *\r\n * @name Phaser.Time.TimerEvent#hasDispatched\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.0.0\r\n */\r\n this.hasDispatched = false;\r\n\r\n this.reset(config);\r\n },\r\n\r\n /**\r\n * Completely reinitializes the Timer Event, regardless of its current state, according to a configuration object.\r\n *\r\n * @method Phaser.Time.TimerEvent#reset\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Time.TimerEventConfig} config - The new state for the Timer Event.\r\n *\r\n * @return {Phaser.Time.TimerEvent} This TimerEvent object.\r\n */\r\n reset: function (config)\r\n {\r\n this.delay = GetFastValue(config, 'delay', 0);\r\n\r\n // Can also be set to -1 for an infinite loop (same as setting loop: true)\r\n this.repeat = GetFastValue(config, 'repeat', 0);\r\n\r\n this.loop = GetFastValue(config, 'loop', false);\r\n\r\n this.callback = GetFastValue(config, 'callback', undefined);\r\n\r\n this.callbackScope = GetFastValue(config, 'callbackScope', this);\r\n\r\n this.args = GetFastValue(config, 'args', []);\r\n\r\n this.timeScale = GetFastValue(config, 'timeScale', 1);\r\n\r\n this.startAt = GetFastValue(config, 'startAt', 0);\r\n\r\n this.paused = GetFastValue(config, 'paused', false);\r\n\r\n this.elapsed = this.startAt;\r\n this.hasDispatched = false;\r\n this.repeatCount = (this.repeat === -1 || this.loop) ? 999999999999 : this.repeat;\r\n\r\n if (this.delay === 0 && (this.repeat > 0 || this.loop))\r\n {\r\n throw new Error('TimerEvent infinite loop created via zero delay');\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Gets the progress of the current iteration, not factoring in repeats.\r\n *\r\n * @method Phaser.Time.TimerEvent#getProgress\r\n * @since 3.0.0\r\n *\r\n * @return {number} A number between 0 and 1 representing the current progress.\r\n */\r\n getProgress: function ()\r\n {\r\n return (this.elapsed / this.delay);\r\n },\r\n\r\n /**\r\n * Gets the progress of the timer overall, factoring in repeats.\r\n *\r\n * @method Phaser.Time.TimerEvent#getOverallProgress\r\n * @since 3.0.0\r\n *\r\n * @return {number} The overall progress of the Timer Event, between 0 and 1.\r\n */\r\n getOverallProgress: function ()\r\n {\r\n if (this.repeat > 0)\r\n {\r\n var totalDuration = this.delay + (this.delay * this.repeat);\r\n var totalElapsed = this.elapsed + (this.delay * (this.repeat - this.repeatCount));\r\n\r\n return (totalElapsed / totalDuration);\r\n }\r\n else\r\n {\r\n return this.getProgress();\r\n }\r\n },\r\n\r\n /**\r\n * Returns the number of times this Timer Event will repeat before finishing.\r\n *\r\n * This should not be confused with the number of times the Timer Event will fire before finishing. A return value of 0 doesn't indicate that the Timer Event has finished running - it indicates that it will not repeat after the next time it fires.\r\n *\r\n * @method Phaser.Time.TimerEvent#getRepeatCount\r\n * @since 3.0.0\r\n *\r\n * @return {number} How many times the Timer Event will repeat.\r\n */\r\n getRepeatCount: function ()\r\n {\r\n return this.repeatCount;\r\n },\r\n\r\n /**\r\n * Returns the local elapsed time for the current iteration of the Timer Event.\r\n *\r\n * @method Phaser.Time.TimerEvent#getElapsed\r\n * @since 3.0.0\r\n *\r\n * @return {number} The local elapsed time in milliseconds.\r\n */\r\n getElapsed: function ()\r\n {\r\n return this.elapsed;\r\n },\r\n\r\n /**\r\n * Returns the local elapsed time for the current iteration of the Timer Event in seconds.\r\n *\r\n * @method Phaser.Time.TimerEvent#getElapsedSeconds\r\n * @since 3.0.0\r\n *\r\n * @return {number} The local elapsed time in seconds.\r\n */\r\n getElapsedSeconds: function ()\r\n {\r\n return this.elapsed * 0.001;\r\n },\r\n\r\n /**\r\n * Returns the time interval until the next iteration of the Timer Event.\r\n *\r\n * @method Phaser.Time.TimerEvent#getRemaining\r\n * @since 3.50.0\r\n *\r\n * @return {number} The time interval in milliseconds.\r\n */\r\n getRemaining: function ()\r\n {\r\n return this.delay - this.elapsed;\r\n },\r\n\r\n /**\r\n * Returns the time interval until the next iteration of the Timer Event in seconds.\r\n *\r\n * @method Phaser.Time.TimerEvent#getRemainingSeconds\r\n * @since 3.50.0\r\n *\r\n * @return {number} The time interval in seconds.\r\n */\r\n getRemainingSeconds: function ()\r\n {\r\n return this.getRemaining() * 0.001;\r\n },\r\n\r\n /**\r\n * Returns the time interval until the last iteration of the Timer Event.\r\n *\r\n * @method Phaser.Time.TimerEvent#getOverallRemaining\r\n * @since 3.50.0\r\n *\r\n * @return {number} The time interval in milliseconds.\r\n */\r\n getOverallRemaining: function ()\r\n {\r\n return this.delay * (1 + this.repeatCount) - this.elapsed;\r\n },\r\n\r\n /**\r\n * Returns the time interval until the last iteration of the Timer Event in seconds.\r\n *\r\n * @method Phaser.Time.TimerEvent#getOverallRemainingSeconds\r\n * @since 3.50.0\r\n *\r\n * @return {number} The time interval in seconds.\r\n */\r\n getOverallRemainingSeconds: function ()\r\n {\r\n return this.getOverallRemaining() * 0.001;\r\n },\r\n\r\n /**\r\n * Forces the Timer Event to immediately expire, thus scheduling its removal in the next frame.\r\n *\r\n * @method Phaser.Time.TimerEvent#remove\r\n * @since 3.0.0\r\n *\r\n * @param {boolean} [dispatchCallback=false] - If `true`, the function of the Timer Event will be called before its removal.\r\n */\r\n remove: function (dispatchCallback)\r\n {\r\n if (dispatchCallback === undefined) { dispatchCallback = false; }\r\n\r\n this.elapsed = this.delay;\r\n\r\n this.hasDispatched = !dispatchCallback;\r\n\r\n this.repeatCount = 0;\r\n },\r\n\r\n /**\r\n * Destroys all object references in the Timer Event, i.e. its callback, scope, and arguments.\r\n *\r\n * Normally, this method is only called by the Clock when it shuts down. As such, it doesn't stop the Timer Event. If called manually, the Timer Event will still be updated by the Clock, but it won't do anything when it fires.\r\n *\r\n * @method Phaser.Time.TimerEvent#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.callback = undefined;\r\n this.callbackScope = undefined;\r\n this.args = [];\r\n }\r\n\r\n});\r\n\r\nmodule.exports = TimerEvent;\r\n\n\n/***/ }),\n\n/***/ 35945:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Timeline Complete Event.\r\n *\r\n * This event is dispatched by timeline when all timeline events complete.\r\n *\r\n * Listen to it from a Timeline instance using `Timeline.on('complete', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * const timeline = this.add.timeline();\r\n * timeline.on('complete', listener);\r\n * timeline.play();\r\n * ```\r\n *\r\n * @event Phaser.Time.Events#COMPLETE\r\n * @type {string}\r\n * @since 3.70.0\r\n *\r\n * @param {Phaser.Time.Timeline} timeline - A reference to the Timeline that emitted the event.\r\n */\r\nmodule.exports = 'complete';\r\n\n\n/***/ }),\n\n/***/ 89809:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Time.Events\r\n */\r\n\r\nmodule.exports = {\r\n \r\n COMPLETE: __webpack_require__(35945)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 90291:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Time\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Clock: __webpack_require__(33385),\r\n Events: __webpack_require__(89809),\r\n Timeline: __webpack_require__(96120),\r\n TimerEvent: __webpack_require__(94880)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 40382:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar ArrayRemove = __webpack_require__(72905);\r\nvar Class = __webpack_require__(83419);\r\nvar Flatten = __webpack_require__(43491);\r\nvar NumberTweenBuilder = __webpack_require__(88032);\r\nvar PluginCache = __webpack_require__(37277);\r\nvar SceneEvents = __webpack_require__(44594);\r\nvar StaggerBuilder = __webpack_require__(93109);\r\nvar Tween = __webpack_require__(86081);\r\nvar TweenBuilder = __webpack_require__(8357);\r\nvar TweenChain = __webpack_require__(43960);\r\nvar TweenChainBuilder = __webpack_require__(26012);\r\n\r\n/**\r\n * @classdesc\r\n * The Tween Manager is a default Scene Plugin which controls and updates Tweens.\r\n *\r\n * A tween is a way to alter one or more properties of a target object over a defined period of time.\r\n *\r\n * Tweens are created by calling the `add` method and passing in the configuration object.\r\n *\r\n * ```js\r\n * const logo = this.add.image(100, 100, 'logo');\r\n *\r\n * this.tweens.add({\r\n * targets: logo,\r\n * x: 600,\r\n * ease: 'Power1',\r\n * duration: 2000\r\n * });\r\n * ```\r\n *\r\n * See the `TweenBuilderConfig` for all of the options you have available.\r\n *\r\n * Playback will start immediately unless the tween has been configured to be paused.\r\n *\r\n * Please note that a Tween will not manipulate any target property that begins with an underscore.\r\n *\r\n * Tweens are designed to be 'fire-and-forget'. They automatically destroy themselves once playback\r\n * is complete, to free-up memory and resources. If you wish to keep a tween after playback, i.e. to\r\n * play it again at a later time, then you should set the `persist` property to `true` in the config.\r\n * However, doing so means it's entirely up to _you_ to destroy the tween when you're finished with it,\r\n * otherwise it will linger in memory forever.\r\n *\r\n * If you wish to chain Tweens together for sequential playback, see the `TweenManager.chain` method.\r\n *\r\n * @class TweenManager\r\n * @memberof Phaser.Tweens\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Scene} scene - The Scene which owns this Tween Manager.\r\n */\r\nvar TweenManager = new Class({\r\n\r\n initialize:\r\n\r\n function TweenManager (scene)\r\n {\r\n /**\r\n * The Scene which owns this Tween Manager.\r\n *\r\n * @name Phaser.Tweens.TweenManager#scene\r\n * @type {Phaser.Scene}\r\n * @since 3.0.0\r\n */\r\n this.scene = scene;\r\n\r\n /**\r\n * The Scene Systems Event Emitter.\r\n *\r\n * @name Phaser.Tweens.TweenManager#events\r\n * @type {Phaser.Events.EventEmitter}\r\n * @since 3.60.0\r\n */\r\n this.events = scene.sys.events;\r\n\r\n /**\r\n * The time scale of the Tween Manager.\r\n *\r\n * This value scales the time delta between two frames, thus influencing the speed of time for all Tweens owned by this Tween Manager.\r\n *\r\n * @name Phaser.Tweens.TweenManager#timeScale\r\n * @type {number}\r\n * @default 1\r\n * @since 3.0.0\r\n */\r\n this.timeScale = 1;\r\n\r\n /**\r\n * This toggles the updating state of this Tween Manager.\r\n *\r\n * Setting `paused` to `true` (or calling the `pauseAll` method) will\r\n * stop this Tween Manager from updating any of its tweens, including\r\n * newly created ones. Set back to `false` to resume playback.\r\n *\r\n * @name Phaser.Tweens.TweenManager#paused\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.60.0\r\n */\r\n this.paused = false;\r\n\r\n /**\r\n * Is this Tween Manager currently processing the tweens as part of\r\n * its 'update' loop? This is set to 'true' at the start of 'update'\r\n * and reset to 'false' at the end of the function. Allows you to trap\r\n * Tween Manager status during tween callbacks.\r\n *\r\n * @name Phaser.Tweens.TweenManager#processing\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.60.0\r\n */\r\n this.processing = false;\r\n\r\n /**\r\n * An array of Tweens which are actively being processed by the Tween Manager.\r\n *\r\n * @name Phaser.Tweens.TweenManager#tweens\r\n * @type {Phaser.Tweens.Tween[]}\r\n * @since 3.60.0\r\n */\r\n this.tweens = [];\r\n\r\n /**\r\n * The time the Tween Manager was updated.\r\n *\r\n * @name Phaser.Tweens.TweenManager#time\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.time = 0;\r\n\r\n /**\r\n * The time the Tween Manager was started.\r\n *\r\n * @name Phaser.Tweens.TweenManager#startTime\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.startTime = 0;\r\n\r\n /**\r\n * The time the Tween Manager should next update.\r\n *\r\n * @name Phaser.Tweens.TweenManager#nextTime\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.nextTime = 0;\r\n\r\n /**\r\n * The time the Tween Manager previously updated.\r\n *\r\n * @name Phaser.Tweens.TweenManager#prevTime\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.prevTime = 0;\r\n\r\n /**\r\n * The maximum amount of time, in milliseconds, the browser can\r\n * lag for, before lag smoothing is applied.\r\n *\r\n * See the `TweenManager.setLagSmooth` method for further details.\r\n *\r\n * @name Phaser.Tweens.TweenManager#maxLag\r\n * @type {number}\r\n * @default 500\r\n * @since 3.60.0\r\n */\r\n this.maxLag = 500;\r\n\r\n /**\r\n * The amount of time, in milliseconds, that is used to set the\r\n * delta when lag smoothing is applied.\r\n *\r\n * See the `TweenManager.setLagSmooth` method for further details.\r\n *\r\n * @name Phaser.Tweens.TweenManager#lagSkip\r\n * @type {number}\r\n * @default 33\r\n * @since 3.60.0\r\n */\r\n this.lagSkip = 33;\r\n\r\n /**\r\n * An internal value that holds the fps rate.\r\n *\r\n * @name Phaser.Tweens.TweenManager#gap\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.gap = 1000 / 240;\r\n\r\n this.events.once(SceneEvents.BOOT, this.boot, this);\r\n this.events.on(SceneEvents.START, this.start, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically, only once, when the Scene is first created.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.Tweens.TweenManager#boot\r\n * @private\r\n * @since 3.5.1\r\n */\r\n boot: function ()\r\n {\r\n this.events.once(SceneEvents.DESTROY, this.destroy, this);\r\n },\r\n\r\n /**\r\n * This method is called automatically by the Scene when it is starting up.\r\n * It is responsible for creating local systems, properties and listening for Scene events.\r\n * Do not invoke it directly.\r\n *\r\n * @method Phaser.Tweens.TweenManager#start\r\n * @private\r\n * @since 3.5.0\r\n */\r\n start: function ()\r\n {\r\n this.timeScale = 1;\r\n this.paused = false;\r\n\r\n this.startTime = Date.now();\r\n this.prevTime = this.startTime;\r\n this.nextTime = this.gap;\r\n\r\n this.events.on(SceneEvents.UPDATE, this.update, this);\r\n this.events.once(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * Create a Tween and return it, but does not add it to this Tween Manager.\r\n *\r\n * Please note that a Tween will not manipulate any target property that begins with an underscore.\r\n *\r\n * In order to play this tween, you'll need to add it to a Tween Manager via\r\n * the `TweenManager.existing` method.\r\n *\r\n * You can optionally pass an **array** of Tween Configuration objects to this method and it will create\r\n * one Tween per entry in the array. If an array is given, an array of tweens is returned.\r\n *\r\n * @method Phaser.Tweens.TweenManager#create\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Tweens.TweenBuilderConfig|Phaser.Types.Tweens.TweenBuilderConfig[]|object|object[]} config - A Tween Configuration object. Or an array of Tween Configuration objects.\r\n *\r\n * @return {Phaser.Tweens.Tween|Phaser.Tweens.Tween[]} The created Tween, or an array of Tweens if an array of tween configs was provided.\r\n */\r\n create: function (config)\r\n {\r\n if (!Array.isArray(config))\r\n {\r\n config = [ config ];\r\n }\r\n\r\n var result = [];\r\n\r\n for (var i = 0; i < config.length; i++)\r\n {\r\n var tween = config[i];\r\n\r\n if (tween instanceof Tween || tween instanceof TweenChain)\r\n {\r\n // Allow them to send an array of mixed instances and configs\r\n result.push(tween);\r\n }\r\n else if (Array.isArray(tween.tweens))\r\n {\r\n result.push(TweenChainBuilder(this, tween));\r\n }\r\n else\r\n {\r\n result.push(TweenBuilder(this, tween));\r\n }\r\n }\r\n\r\n return (result.length === 1) ? result[0] : result;\r\n },\r\n\r\n /**\r\n * Create a Tween and add it to this Tween Manager by passing a Tween Configuration object.\r\n *\r\n * Example, run from within a Scene:\r\n *\r\n * ```js\r\n * const logo = this.add.image(100, 100, 'logo');\r\n *\r\n * this.tweens.add({\r\n * targets: logo,\r\n * x: 600,\r\n * ease: 'Power1',\r\n * duration: 2000\r\n * });\r\n * ```\r\n *\r\n * See the `TweenBuilderConfig` for all of the options you have available.\r\n *\r\n * Playback will start immediately unless the tween has been configured to be paused.\r\n *\r\n * Please note that a Tween will not manipulate any target property that begins with an underscore.\r\n *\r\n * Tweens are designed to be 'fire-and-forget'. They automatically destroy themselves once playback\r\n * is complete, to free-up memory and resources. If you wish to keep a tween after playback, i.e. to\r\n * play it again at a later time, then you should set the `persist` property to `true` in the config.\r\n * However, doing so means it's entirely up to _you_ to destroy the tween when you're finished with it,\r\n * otherwise it will linger in memory forever.\r\n *\r\n * If you wish to chain Tweens together for sequential playback, see the `TweenManager.chain` method.\r\n *\r\n * @method Phaser.Tweens.TweenManager#add\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Tweens.TweenBuilderConfig|Phaser.Types.Tweens.TweenChainBuilderConfig|Phaser.Tweens.Tween|Phaser.Tweens.TweenChain} config - A Tween Configuration object, or a Tween or TweenChain instance.\r\n *\r\n * @return {Phaser.Tweens.Tween} The created Tween.\r\n */\r\n add: function (config)\r\n {\r\n var tween = config;\r\n var tweens = this.tweens;\r\n\r\n if (tween instanceof Tween || tween instanceof TweenChain)\r\n {\r\n tweens.push(tween.reset());\r\n }\r\n else\r\n {\r\n if (Array.isArray(tween.tweens))\r\n {\r\n tween = TweenChainBuilder(this, tween);\r\n }\r\n else\r\n {\r\n tween = TweenBuilder(this, tween);\r\n }\r\n\r\n tweens.push(tween.reset());\r\n }\r\n\r\n return tween;\r\n },\r\n\r\n /**\r\n * Create multiple Tweens and add them all to this Tween Manager, by passing an array of Tween Configuration objects.\r\n *\r\n * See the `TweenBuilderConfig` for all of the options you have available.\r\n *\r\n * Playback will start immediately unless the tweens have been configured to be paused.\r\n *\r\n * Please note that a Tween will not manipulate any target property that begins with an underscore.\r\n *\r\n * Tweens are designed to be 'fire-and-forget'. They automatically destroy themselves once playback\r\n * is complete, to free-up memory and resources. If you wish to keep a tween after playback, i.e. to\r\n * play it again at a later time, then you should set the `persist` property to `true` in the config.\r\n * However, doing so means it's entirely up to _you_ to destroy the tween when you're finished with it,\r\n * otherwise it will linger in memory forever.\r\n *\r\n * If you wish to chain Tweens together for sequential playback, see the `TweenManager.chain` method.\r\n *\r\n * @method Phaser.Tweens.TweenManager#addMultiple\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.Tweens.TweenBuilderConfig[]|object[]} configs - An array of Tween Configuration objects.\r\n *\r\n * @return {Phaser.Tweens.Tween[]} An array of created Tweens.\r\n */\r\n addMultiple: function (configs)\r\n {\r\n var tween;\r\n var result = [];\r\n var tweens = this.tweens;\r\n\r\n for (var i = 0; i < configs.length; i++)\r\n {\r\n tween = configs[i];\r\n\r\n if (tween instanceof Tween || tween instanceof TweenChain)\r\n {\r\n tweens.push(tween.reset());\r\n }\r\n else\r\n {\r\n if (Array.isArray(tween.tweens))\r\n {\r\n tween = TweenChainBuilder(this, tween);\r\n }\r\n else\r\n {\r\n tween = TweenBuilder(this, tween);\r\n }\r\n\r\n tweens.push(tween.reset());\r\n }\r\n\r\n result.push(tween);\r\n }\r\n\r\n return result;\r\n },\r\n\r\n /**\r\n * Create a sequence of Tweens, chained to one-another, and add them to this Tween Manager.\r\n *\r\n * The tweens are played in order, from start to finish. You can optionally set the chain\r\n * to repeat as many times as you like. Once the chain has finished playing, or repeating if set,\r\n * all tweens in the chain will be destroyed automatically. To override this, set the `persist`\r\n * argument to 'true'.\r\n *\r\n * Playback will start immediately unless the _first_ Tween has been configured to be paused.\r\n *\r\n * Please note that Tweens will not manipulate any target property that begins with an underscore.\r\n *\r\n * @method Phaser.Tweens.TweenManager#chain\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.Tweens.TweenChainBuilderConfig|object} tweens - A Tween Chain configuration object.\r\n *\r\n * @return {Phaser.Tweens.TweenChain} The Tween Chain instance.\r\n */\r\n chain: function (config)\r\n {\r\n var chain = TweenChainBuilder(this, config);\r\n\r\n this.tweens.push(chain.init());\r\n\r\n return chain;\r\n },\r\n\r\n /**\r\n * Returns an array containing this Tween and all Tweens chained to it,\r\n * in the order in which they will be played.\r\n *\r\n * If there are no chained Tweens an empty array is returned.\r\n *\r\n * @method Phaser.Tweens.TweenManager#getChainedTweens\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Tweens.Tween} tween - The Tween to return the chain from.\r\n *\r\n * @return {Phaser.Tweens.Tween[]} An array of the chained tweens, or an empty array if there aren't any.\r\n */\r\n getChainedTweens: function (tween)\r\n {\r\n return tween.getChainedTweens();\r\n },\r\n\r\n /**\r\n * Check to see if the given Tween instance exists within this Tween Manager.\r\n *\r\n * Will return `true` as long as the Tween is being processed by this Tween Manager.\r\n *\r\n * Will return `false` if not present, or has a state of `REMOVED` or `DESTROYED`.\r\n *\r\n * @method Phaser.Tweens.TweenManager#has\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Tweens.Tween} tween - The Tween instance to check.\r\n *\r\n * @return {boolean} `true` if the Tween exists within this Tween Manager, otherwise `false`.\r\n */\r\n has: function (tween)\r\n {\r\n return (this.tweens.indexOf(tween) > -1);\r\n },\r\n\r\n /**\r\n * Add an existing Tween to this Tween Manager.\r\n *\r\n * Playback will start immediately unless the tween has been configured to be paused.\r\n *\r\n * @method Phaser.Tweens.TweenManager#existing\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Tweens.Tween} tween - The Tween to add.\r\n *\r\n * @return {this} This Tween Manager instance.\r\n */\r\n existing: function (tween)\r\n {\r\n if (!this.has(tween))\r\n {\r\n this.tweens.push(tween.reset());\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Create a Number Tween and add it to the active Tween list.\r\n *\r\n * A Number Tween is a special kind of tween that doesn't have a target. Instead,\r\n * it allows you to tween between 2 numeric values. The default values are\r\n * `0` and `1`, but you can change them via the `from` and `to` properties.\r\n *\r\n * You can get the current tweened value via the `Tween.getValue()` method.\r\n *\r\n * Playback will start immediately unless the tween has been configured to be paused.\r\n *\r\n * Please note that a Tween will not manipulate any target property that begins with an underscore.\r\n *\r\n * @method Phaser.Tweens.TweenManager#addCounter\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Tweens.NumberTweenBuilderConfig} config - The configuration object for the Number Tween.\r\n *\r\n * @return {Phaser.Tweens.Tween} The created Number Tween.\r\n */\r\n addCounter: function (config)\r\n {\r\n var tween = NumberTweenBuilder(this, config);\r\n\r\n this.tweens.push(tween.reset());\r\n\r\n return tween;\r\n },\r\n\r\n /**\r\n * Creates a Stagger function to be used by a Tween property.\r\n *\r\n * The stagger function will allow you to stagger changes to the value of the property across all targets of the tween.\r\n *\r\n * This is only worth using if the tween has multiple targets.\r\n *\r\n * The following will stagger the delay by 100ms across all targets of the tween, causing them to scale down to 0.2\r\n * over the duration specified:\r\n *\r\n * ```javascript\r\n * this.tweens.add({\r\n * targets: [ ... ],\r\n * scale: 0.2,\r\n * ease: 'linear',\r\n * duration: 1000,\r\n * delay: this.tweens.stagger(100)\r\n * });\r\n * ```\r\n *\r\n * The following will stagger the delay by 500ms across all targets of the tween using a 10 x 6 grid, staggering\r\n * from the center out, using a cubic ease.\r\n *\r\n * ```javascript\r\n * this.tweens.add({\r\n * targets: [ ... ],\r\n * scale: 0.2,\r\n * ease: 'linear',\r\n * duration: 1000,\r\n * delay: this.tweens.stagger(500, { grid: [ 10, 6 ], from: 'center', ease: 'cubic.out' })\r\n * });\r\n * ```\r\n *\r\n * @method Phaser.Tweens.TweenManager#stagger\r\n * @since 3.19.0\r\n *\r\n * @param {(number|number[])} value - The amount to stagger by, or an array containing two elements representing the min and max values to stagger between.\r\n * @param {Phaser.Types.Tweens.StaggerConfig} config - The configuration object for the Stagger function.\r\n *\r\n * @return {function} The stagger function.\r\n */\r\n stagger: function (value, options)\r\n {\r\n return StaggerBuilder(value, options);\r\n },\r\n\r\n /**\r\n * Set the limits that are used when a browser encounters lag, or delays that cause the elapsed\r\n * time between two frames to exceed the expected amount. If this occurs, the Tween Manager will\r\n * act as if the 'skip' amount of times has passed, in order to maintain strict tween sequencing.\r\n *\r\n * This is enabled by default with the values 500ms for the lag limit and 33ms for the skip.\r\n *\r\n * You should not set these to low values, as it won't give time for the browser to ever\r\n * catch-up with itself and reclaim sync.\r\n *\r\n * Call this method with no arguments to disable smoothing.\r\n *\r\n * Call it with the arguments `500` and `33` to reset to the defaults.\r\n *\r\n * @method Phaser.Tweens.TweenManager#setLagSmooth\r\n * @since 3.60.0\r\n *\r\n * @param {number} [limit=0] - If the browser exceeds this amount, in milliseconds, it will act as if the 'skip' amount has elapsed instead.\r\n * @param {number} [skip=0] - The amount, in milliseconds, to use as the step delta should the browser lag beyond the 'limit'.\r\n *\r\n * @return {this} This Tween Manager instance.\r\n */\r\n setLagSmooth: function (limit, skip)\r\n {\r\n if (limit === undefined) { limit = 1 / 1e-8; }\r\n if (skip === undefined) { skip = 0; }\r\n\r\n this.maxLag = limit;\r\n this.lagSkip = Math.min(skip, this.maxLag);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Limits the Tween system to run at a particular frame rate.\r\n *\r\n * You should not set this _above_ the frequency of the browser,\r\n * but instead can use it to throttle the frame rate lower, should\r\n * you need to in certain situations.\r\n *\r\n * @method Phaser.Tweens.TweenManager#setFps\r\n * @since 3.60.0\r\n *\r\n * @param {number} [fps=240] - The frame rate to tick at.\r\n *\r\n * @return {this} This Tween Manager instance.\r\n */\r\n setFps: function (fps)\r\n {\r\n if (fps === undefined) { fps = 240; }\r\n\r\n this.gap = 1000 / fps;\r\n this.nextTime = this.time * 1000 + this.gap;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal method that calculates the delta value, along with the other timing values,\r\n * and returns the new delta.\r\n *\r\n * You should not typically call this method directly.\r\n *\r\n * @method Phaser.Tweens.TweenManager#getDelta\r\n * @since 3.60.0\r\n *\r\n * @param {boolean} [tick=false] - Is this a manual tick, or an automated tick?\r\n *\r\n * @return {number} The new delta value.\r\n */\r\n getDelta: function (tick)\r\n {\r\n var elapsed = Date.now() - this.prevTime;\r\n\r\n if (elapsed > this.maxLag)\r\n {\r\n this.startTime += elapsed - this.lagSkip;\r\n }\r\n\r\n this.prevTime += elapsed;\r\n\r\n var time = this.prevTime - this.startTime;\r\n var overlap = time - this.nextTime;\r\n var delta = time - this.time * 1000;\r\n\r\n if (overlap > 0 || tick)\r\n {\r\n time /= 1000;\r\n this.time = time;\r\n this.nextTime += overlap + (overlap >= this.gap ? 4 : this.gap - overlap);\r\n }\r\n else\r\n {\r\n delta = 0;\r\n }\r\n\r\n return delta;\r\n },\r\n\r\n /**\r\n * Manually advance the Tween system by one step.\r\n *\r\n * This will update all Tweens even if the Tween Manager is currently\r\n * paused.\r\n *\r\n * @method Phaser.Tweens.TweenManager#tick\r\n * @since 3.60.0\r\n *\r\n * @return {this} This Tween Manager instance.\r\n */\r\n tick: function ()\r\n {\r\n this.step(true);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal update handler.\r\n *\r\n * Calls `TweenManager.step` as long as the Tween Manager has not\r\n * been paused.\r\n *\r\n * @method Phaser.Tweens.TweenManager#update\r\n * @since 3.0.0\r\n */\r\n update: function ()\r\n {\r\n if (!this.paused)\r\n {\r\n this.step(false);\r\n }\r\n },\r\n\r\n /**\r\n * Updates all Tweens belonging to this Tween Manager.\r\n *\r\n * Called automatically by `update` and `tick`.\r\n *\r\n * @method Phaser.Tweens.TweenManager#step\r\n * @since 3.60.0\r\n *\r\n * @param {boolean} [tick=false] - Is this a manual tick, or an automated tick?\r\n */\r\n step: function (tick)\r\n {\r\n if (tick === undefined) { tick = false; }\r\n\r\n var delta = this.getDelta(tick);\r\n\r\n if (delta <= 0)\r\n {\r\n // If we've got a negative delta, skip this step\r\n return;\r\n }\r\n\r\n this.processing = true;\r\n\r\n var i;\r\n var tween;\r\n var toDestroy = [];\r\n var list = this.tweens;\r\n\r\n // By not caching the length we can immediately update tweens added\r\n // this frame (such as chained tweens)\r\n for (i = 0; i < list.length; i++)\r\n {\r\n tween = list[i];\r\n\r\n // If Tween.update returns 'true' then it means it has completed,\r\n // so move it to the destroy list\r\n if (tween.update(delta))\r\n {\r\n toDestroy.push(tween);\r\n }\r\n }\r\n\r\n // Clean-up the 'toDestroy' list\r\n var count = toDestroy.length;\r\n\r\n if (count && list.length > 0)\r\n {\r\n for (i = 0; i < count; i++)\r\n {\r\n tween = toDestroy[i];\r\n\r\n var idx = list.indexOf(tween);\r\n\r\n if (idx > -1 && (tween.isPendingRemove() || tween.isDestroyed()))\r\n {\r\n list.splice(idx, 1);\r\n\r\n tween.destroy();\r\n }\r\n }\r\n\r\n toDestroy.length = 0;\r\n }\r\n\r\n this.processing = false;\r\n },\r\n\r\n /**\r\n * Removes the given Tween from this Tween Manager, even if it hasn't started\r\n * playback yet. If this method is called while the Tween Manager is processing\r\n * an update loop, then the tween will be flagged for removal at the start of\r\n * the next frame. Otherwise, it is removed immediately.\r\n *\r\n * The removed tween is _not_ destroyed. It is just removed from this Tween Manager.\r\n *\r\n * @method Phaser.Tweens.TweenManager#remove\r\n * @since 3.17.0\r\n *\r\n * @param {Phaser.Tweens.Tween} tween - The Tween to be removed.\r\n *\r\n * @return {this} This Tween Manager instance.\r\n */\r\n remove: function (tween)\r\n {\r\n if (this.processing)\r\n {\r\n // Remove it on the next frame\r\n tween.setPendingRemoveState();\r\n }\r\n else\r\n {\r\n // Remove it immediately\r\n ArrayRemove(this.tweens, tween);\r\n\r\n tween.setRemovedState();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resets the given Tween.\r\n *\r\n * If the Tween does not belong to this Tween Manager, it will first be added.\r\n *\r\n * Then it will seek to position 0 and playback will start on the next frame.\r\n *\r\n * @method Phaser.Tweens.TweenManager#reset\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Tweens.Tween} tween - The Tween to be reset.\r\n *\r\n * @return {this} This Tween Manager instance.\r\n */\r\n reset: function (tween)\r\n {\r\n this.existing(tween);\r\n\r\n tween.seek();\r\n\r\n tween.setActiveState();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Checks if a Tween is active and adds it to the Tween Manager at the start of the frame if it isn't.\r\n *\r\n * @method Phaser.Tweens.TweenManager#makeActive\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Tweens.Tween} tween - The Tween to check.\r\n *\r\n * @return {this} This Tween Manager instance.\r\n */\r\n makeActive: function (tween)\r\n {\r\n this.existing(tween);\r\n\r\n tween.setActiveState();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Passes all Tweens to the given callback.\r\n *\r\n * @method Phaser.Tweens.TweenManager#each\r\n * @since 3.0.0\r\n *\r\n * @param {function} callback - The function to call.\r\n * @param {object} [scope] - The scope (`this` object) to call the function with.\r\n * @param {...*} [args] - The arguments to pass into the function. Its first argument will always be the Tween currently being iterated.\r\n *\r\n * @return {this} This Tween Manager instance.\r\n */\r\n each: function (callback, scope)\r\n {\r\n var i;\r\n var args = [ null ];\r\n\r\n for (i = 1; i < arguments.length; i++)\r\n {\r\n args.push(arguments[i]);\r\n }\r\n\r\n this.tweens.forEach(function (tween)\r\n {\r\n args[0] = tween;\r\n\r\n callback.apply(scope, args);\r\n });\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Returns an array containing references to all Tweens in this Tween Manager.\r\n *\r\n * It is safe to mutate the returned array. However, acting upon any of the Tweens\r\n * within it, will adjust those stored in this Tween Manager, as they are passed\r\n * by reference and not cloned.\r\n *\r\n * If you wish to get tweens for a specific target, see `getTweensOf`.\r\n *\r\n * @method Phaser.Tweens.TweenManager#getTweens\r\n * @since 3.0.0\r\n *\r\n * @return {Phaser.Tweens.Tween[]} A new array containing references to all Tweens.\r\n */\r\n getTweens: function ()\r\n {\r\n return this.tweens.slice();\r\n },\r\n\r\n /**\r\n * Returns an array of all Tweens in the Tween Manager which affect the given target, or array of targets.\r\n *\r\n * It's possible for this method to return tweens that are about to be removed from\r\n * the Tween Manager. You should check the state of the returned tween before acting\r\n * upon it.\r\n *\r\n * @method Phaser.Tweens.TweenManager#getTweensOf\r\n * @since 3.0.0\r\n *\r\n * @param {(object|object[])} target - The target to look for. Provide an array to look for multiple targets.\r\n *\r\n * @return {Phaser.Tweens.Tween[]} A new array containing all Tweens which affect the given target(s).\r\n */\r\n getTweensOf: function (target)\r\n {\r\n var output = [];\r\n var list = this.tweens;\r\n\r\n if (!Array.isArray(target))\r\n {\r\n target = [ target ];\r\n }\r\n else\r\n {\r\n target = Flatten(target);\r\n }\r\n\r\n var targetLen = target.length;\r\n\r\n for (var i = 0; i < list.length; i++)\r\n {\r\n var tween = list[i];\r\n\r\n for (var t = 0; t < targetLen; t++)\r\n {\r\n if (!tween.isDestroyed() && tween.hasTarget(target[t]))\r\n {\r\n output.push(tween);\r\n }\r\n }\r\n }\r\n\r\n return output;\r\n },\r\n\r\n /**\r\n * Returns the scale of the time delta for all Tweens owned by this Tween Manager.\r\n *\r\n * @method Phaser.Tweens.TweenManager#getGlobalTimeScale\r\n * @since 3.0.0\r\n *\r\n * @return {number} The scale of the time delta, usually 1.\r\n */\r\n getGlobalTimeScale: function ()\r\n {\r\n return this.timeScale;\r\n },\r\n\r\n /**\r\n * Sets a new scale of the time delta for this Tween Manager.\r\n *\r\n * The time delta is the time elapsed between two consecutive frames and influences the speed of time for this Tween Manager and all Tweens it owns. Values higher than 1 increase the speed of time, while values smaller than 1 decrease it. A value of 0 freezes time and is effectively equivalent to pausing all Tweens.\r\n *\r\n * @method Phaser.Tweens.TweenManager#setGlobalTimeScale\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The new scale of the time delta, where 1 is the normal speed.\r\n *\r\n * @return {this} This Tween Manager instance.\r\n */\r\n setGlobalTimeScale: function (value)\r\n {\r\n this.timeScale = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Checks if the given object is being affected by a _playing_ Tween.\r\n *\r\n * If the Tween is paused, this method will return false.\r\n *\r\n * @method Phaser.Tweens.TweenManager#isTweening\r\n * @since 3.0.0\r\n *\r\n * @param {object} target - The object to check if a tween is active for it, or not.\r\n *\r\n * @return {boolean} Returns `true` if a tween is active on the given target, otherwise `false`.\r\n */\r\n isTweening: function (target)\r\n {\r\n var list = this.tweens;\r\n var tween;\r\n\r\n for (var i = 0; i < list.length; i++)\r\n {\r\n tween = list[i];\r\n\r\n if (tween.isPlaying() && tween.hasTarget(target))\r\n {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Destroys all Tweens in this Tween Manager.\r\n *\r\n * The tweens will erase all references to any targets they hold\r\n * and be stopped immediately.\r\n *\r\n * If this method is called while the Tween Manager is running its\r\n * update process, then the tweens will be removed at the start of\r\n * the next frame. Outside of this, they are removed immediately.\r\n *\r\n * @method Phaser.Tweens.TweenManager#killAll\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Tween Manager instance.\r\n */\r\n killAll: function ()\r\n {\r\n var tweens = (this.processing) ? this.getTweens() : this.tweens;\r\n\r\n for (var i = 0; i < tweens.length; i++)\r\n {\r\n tweens[i].destroy();\r\n }\r\n\r\n if (!this.processing)\r\n {\r\n tweens.length = 0;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Stops all Tweens which affect the given target or array of targets.\r\n *\r\n * The tweens will erase all references to any targets they hold\r\n * and be stopped immediately.\r\n *\r\n * If this method is called while the Tween Manager is running its\r\n * update process, then the tweens will be removed at the start of\r\n * the next frame. Outside of this, they are removed immediately.\r\n *\r\n * @see {@link #getTweensOf}\r\n *\r\n * @method Phaser.Tweens.TweenManager#killTweensOf\r\n * @since 3.0.0\r\n *\r\n * @param {(object|array)} target - The target to kill the tweens of. Provide an array to use multiple targets.\r\n *\r\n * @return {this} This Tween Manager instance.\r\n */\r\n killTweensOf: function (target)\r\n {\r\n var tweens = this.getTweensOf(target);\r\n\r\n for (var i = 0; i < tweens.length; i++)\r\n {\r\n tweens[i].destroy();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Pauses this Tween Manager. No Tweens will update while paused.\r\n *\r\n * This includes tweens created after this method was called.\r\n *\r\n * See `TweenManager#resumeAll` to resume the playback.\r\n *\r\n * As of Phaser 3.60 you can also toggle the boolean property `TweenManager.paused`.\r\n *\r\n * @method Phaser.Tweens.TweenManager#pauseAll\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Tween Manager instance.\r\n */\r\n pauseAll: function ()\r\n {\r\n this.paused = true;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resumes playback of this Tween Manager.\r\n *\r\n * All active Tweens will continue updating.\r\n *\r\n * See `TweenManager#pauseAll` to pause the playback.\r\n *\r\n * As of Phaser 3.60 you can also toggle the boolean property `TweenManager.paused`.\r\n *\r\n * @method Phaser.Tweens.TweenManager#resumeAll\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Tween Manager instance.\r\n */\r\n resumeAll: function ()\r\n {\r\n this.paused = false;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is shutting down.\r\n *\r\n * We need to kill and reset all internal properties as well as stop listening to Scene events.\r\n *\r\n * @method Phaser.Tweens.TweenManager#shutdown\r\n * @since 3.0.0\r\n */\r\n shutdown: function ()\r\n {\r\n this.killAll();\r\n\r\n this.tweens = [];\r\n\r\n this.events.off(SceneEvents.UPDATE, this.update, this);\r\n this.events.off(SceneEvents.SHUTDOWN, this.shutdown, this);\r\n },\r\n\r\n /**\r\n * The Scene that owns this plugin is being destroyed.\r\n * We need to shutdown and then kill off all external references.\r\n *\r\n * @method Phaser.Tweens.TweenManager#destroy\r\n * @since 3.0.0\r\n */\r\n destroy: function ()\r\n {\r\n this.shutdown();\r\n\r\n this.events.off(SceneEvents.START, this.start, this);\r\n\r\n this.scene = null;\r\n this.events = null;\r\n }\r\n\r\n});\r\n\r\nPluginCache.register('TweenManager', TweenManager, 'tweens');\r\n\r\nmodule.exports = TweenManager;\r\n\n\n/***/ }),\n\n/***/ 57355:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Retrieves the value of the given key from an object.\r\n *\r\n * @function Phaser.Tweens.Builders.GetBoolean\r\n * @since 3.0.0\r\n *\r\n * @param {object} source - The object to retrieve the value from.\r\n * @param {string} key - The key to look for in the `source` object.\r\n * @param {boolean} defaultValue - The default value to return if the `key` doesn't exist or if no `source` object is provided.\r\n *\r\n * @return {boolean} The retrieved value.\r\n */\r\nvar GetBoolean = function (source, key, defaultValue)\r\n{\r\n if (!source)\r\n {\r\n return defaultValue;\r\n }\r\n else if (source.hasOwnProperty(key))\r\n {\r\n return source[key];\r\n }\r\n else\r\n {\r\n return defaultValue;\r\n }\r\n};\r\n\r\nmodule.exports = GetBoolean;\r\n\n\n/***/ }),\n\n/***/ 6113:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar EaseMap = __webpack_require__(62640);\r\nvar UppercaseFirst = __webpack_require__(35355);\r\n\r\n/**\r\n * This internal function is used to return the correct ease function for a Tween.\r\n *\r\n * It can take a variety of input, including an EaseMap based string, or a custom function.\r\n *\r\n * @function Phaser.Tweens.Builders.GetEaseFunction\r\n * @since 3.0.0\r\n *\r\n * @param {(string|function)} ease - The ease to find. This can be either a string from the EaseMap, or a custom function.\r\n * @param {number[]} [easeParams] - An optional array of ease parameters to go with the ease.\r\n *\r\n * @return {function} The ease function.\r\n */\r\nvar GetEaseFunction = function (ease, easeParams)\r\n{\r\n // Default ease function\r\n var easeFunction = EaseMap.Power0;\r\n\r\n // Prepare ease function\r\n if (typeof ease === 'string')\r\n {\r\n // String based look-up\r\n\r\n // 1) They specified it correctly\r\n if (EaseMap.hasOwnProperty(ease))\r\n {\r\n easeFunction = EaseMap[ease];\r\n }\r\n else\r\n {\r\n // Do some string manipulation to try and find it\r\n var direction = '';\r\n\r\n if (ease.indexOf('.'))\r\n {\r\n // quad.in = Quad.easeIn\r\n // quad.out = Quad.easeOut\r\n // quad.inout = Quad.easeInOut\r\n\r\n direction = ease.substring(ease.indexOf('.') + 1);\r\n\r\n var directionLower = direction.toLowerCase();\r\n\r\n if (directionLower === 'in')\r\n {\r\n direction = 'easeIn';\r\n }\r\n else if (directionLower === 'out')\r\n {\r\n direction = 'easeOut';\r\n }\r\n else if (directionLower === 'inout')\r\n {\r\n direction = 'easeInOut';\r\n }\r\n }\r\n\r\n ease = UppercaseFirst(ease.substring(0, ease.indexOf('.') + 1) + direction);\r\n\r\n if (EaseMap.hasOwnProperty(ease))\r\n {\r\n easeFunction = EaseMap[ease];\r\n }\r\n }\r\n }\r\n else if (typeof ease === 'function')\r\n {\r\n // Custom function\r\n easeFunction = ease;\r\n }\r\n\r\n // No custom ease parameters?\r\n if (!easeParams)\r\n {\r\n // Return ease function\r\n return easeFunction;\r\n }\r\n\r\n var cloneParams = easeParams.slice(0);\r\n\r\n cloneParams.unshift(0);\r\n\r\n // Return ease function with custom ease parameters\r\n return function (v)\r\n {\r\n cloneParams[0] = v;\r\n\r\n return easeFunction.apply(this, cloneParams);\r\n };\r\n};\r\n\r\nmodule.exports = GetEaseFunction;\r\n\n\n/***/ }),\n\n/***/ 91389:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Bezier = __webpack_require__(89318);\r\nvar CatmullRom = __webpack_require__(77259);\r\nvar Linear = __webpack_require__(28392);\r\n\r\nvar FuncMap = {\r\n bezier: Bezier,\r\n catmull: CatmullRom,\r\n catmullrom: CatmullRom,\r\n linear: Linear\r\n};\r\n\r\n/**\r\n * This internal function is used to return the correct interpolation function for a Tween.\r\n *\r\n * It can take a variety of input, including a string, or a custom function.\r\n *\r\n * @function Phaser.Tweens.Builders.GetInterpolationFunction\r\n * @since 3.60.0\r\n *\r\n * @param {(string|function|null)} interpolation - The interpolation function to find. This can be either a string, or a custom function, or null.\r\n *\r\n * @return {?function} The interpolation function to use, or `null`.\r\n */\r\nvar GetInterpolationFunction = function (interpolation)\r\n{\r\n if (interpolation === null)\r\n {\r\n return null;\r\n }\r\n\r\n // Default interpolation function\r\n var interpolationFunction = FuncMap.linear;\r\n\r\n // Prepare interpolation function\r\n if (typeof interpolation === 'string')\r\n {\r\n // String based look-up\r\n\r\n // 1) They specified it correctly\r\n if (FuncMap.hasOwnProperty(interpolation))\r\n {\r\n interpolationFunction = FuncMap[interpolation];\r\n }\r\n }\r\n else if (typeof interpolation === 'function')\r\n {\r\n // Custom function\r\n interpolationFunction = interpolation;\r\n }\r\n\r\n // Return interpolation function\r\n return interpolationFunction;\r\n};\r\n\r\nmodule.exports = GetInterpolationFunction;\r\n\n\n/***/ }),\n\n/***/ 55292:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Internal function used by the Tween Builder to create a function that will return\r\n * the given value from the source.\r\n *\r\n * @function Phaser.Tweens.Builders.GetNewValue\r\n * @since 3.0.0\r\n *\r\n * @param {any} source - The source object to get the value from.\r\n * @param {string} key - The property to get from the source.\r\n * @param {any} defaultValue - A default value to return should the source not have the property set.\r\n *\r\n * @return {function} A function which, when called, will return the property value from the source.\r\n */\r\nvar GetNewValue = function (source, key, defaultValue)\r\n{\r\n var valueCallback;\r\n\r\n if (source.hasOwnProperty(key))\r\n {\r\n var t = typeof(source[key]);\r\n\r\n if (t === 'function')\r\n {\r\n valueCallback = function (target, targetKey, value, targetIndex, totalTargets, tween)\r\n {\r\n return source[key](target, targetKey, value, targetIndex, totalTargets, tween);\r\n };\r\n }\r\n else\r\n {\r\n valueCallback = function ()\r\n {\r\n return source[key];\r\n };\r\n }\r\n }\r\n else if (typeof defaultValue === 'function')\r\n {\r\n valueCallback = defaultValue;\r\n }\r\n else\r\n {\r\n valueCallback = function ()\r\n {\r\n return defaultValue;\r\n };\r\n }\r\n\r\n return valueCallback;\r\n};\r\n\r\nmodule.exports = GetNewValue;\r\n\n\n/***/ }),\n\n/***/ 82985:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar RESERVED = __webpack_require__(81076);\r\n\r\n/**\r\n * Internal function used by the Tween Builder to return an array of properties\r\n * that the Tween will be operating on. It takes a tween configuration object\r\n * and then checks that none of the `props` entries start with an underscore, or that\r\n * none of the direct properties are on the Reserved list.\r\n *\r\n * @function Phaser.Tweens.Builders.GetProps\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Tweens.TweenBuilderConfig} config - The configuration object of the Tween to get the properties from.\r\n *\r\n * @return {string[]} An array of all the properties the tween will operate on.\r\n */\r\nvar GetProps = function (config)\r\n{\r\n var key;\r\n var keys = [];\r\n\r\n // First see if we have a props object\r\n\r\n if (config.hasOwnProperty('props'))\r\n {\r\n for (key in config.props)\r\n {\r\n // Skip any property that starts with an underscore\r\n if (key.substring(0, 1) !== '_')\r\n {\r\n keys.push({ key: key, value: config.props[key] });\r\n }\r\n }\r\n }\r\n else\r\n {\r\n for (key in config)\r\n {\r\n // Skip any property that is in the ReservedProps list or that starts with an underscore\r\n if (RESERVED.indexOf(key) === -1 && key.substring(0, 1) !== '_')\r\n {\r\n keys.push({ key: key, value: config[key] });\r\n }\r\n }\r\n }\r\n\r\n return keys;\r\n};\r\n\r\nmodule.exports = GetProps;\r\n\n\n/***/ }),\n\n/***/ 62329:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetValue = __webpack_require__(35154);\r\n\r\n/**\r\n * Extracts an array of targets from a Tween configuration object.\r\n *\r\n * The targets will be looked for in a `targets` property. If it's a function, its return value will be used as the result.\r\n *\r\n * @function Phaser.Tweens.Builders.GetTargets\r\n * @since 3.0.0\r\n *\r\n * @param {object} config - The configuration object to use.\r\n *\r\n * @return {array} An array of targets (may contain only one element), or `null` if no targets were specified.\r\n */\r\nvar GetTargets = function (config)\r\n{\r\n var targets = GetValue(config, 'targets', null);\r\n\r\n if (targets === null)\r\n {\r\n return targets;\r\n }\r\n\r\n if (typeof targets === 'function')\r\n {\r\n targets = targets.call();\r\n }\r\n\r\n if (!Array.isArray(targets))\r\n {\r\n targets = [ targets ];\r\n }\r\n\r\n return targets;\r\n};\r\n\r\nmodule.exports = GetTargets;\r\n\n\n/***/ }),\n\n/***/ 17777:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Between = __webpack_require__(30976);\r\nvar FloatBetween = __webpack_require__(99472);\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction hasGetActive (def)\r\n{\r\n return (!!def.getActive && typeof def.getActive === 'function');\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction hasGetStart (def)\r\n{\r\n return (!!def.getStart && typeof def.getStart === 'function');\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction hasGetEnd (def)\r\n{\r\n return (!!def.getEnd && typeof def.getEnd === 'function');\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction hasGetters (def)\r\n{\r\n return hasGetStart(def) || hasGetEnd(def) || hasGetActive(def);\r\n}\r\n\r\n/**\r\n * Returns `getActive`, `getStart` and `getEnd` functions for a TweenData based on a target property and end value.\r\n *\r\n * `getActive` if not null, is invoked _immediately_ as soon as the TweenData is running, and is set on the target property.\r\n * `getEnd` is invoked once any start delays have expired and returns what the value should tween to.\r\n * `getStart` is invoked when the tween reaches the end and needs to either repeat or yoyo, it returns the value to go back to.\r\n *\r\n * If the end value is a number, it will be treated as an absolute value and the property will be tweened to it.\r\n * A string can be provided to specify a relative end value which consists of an operation\r\n * (`+=` to add to the current value, `-=` to subtract from the current value, `*=` to multiply the current\r\n * value, or `/=` to divide the current value) followed by its operand.\r\n *\r\n * A function can be provided to allow greater control over the end value; it will receive the target\r\n * object being tweened, the name of the property being tweened, and the current value of the property\r\n * as its arguments and must return a value.\r\n *\r\n * If both the starting and the ending values need to be controlled, an object with `getStart` and `getEnd`\r\n * callbacks, which will receive the same arguments, can be provided instead. If an object with a `value`\r\n * property is provided, the property will be used as the effective value under the same rules described here.\r\n *\r\n * @function Phaser.Tweens.Builders.GetValueOp\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The name of the property to modify.\r\n * @param {*} propertyValue - The ending value of the property, as described above.\r\n *\r\n * @return {function} An array of functions, `getActive`, `getStart` and `getEnd`, which return the starting and the ending value of the property based on the provided value.\r\n */\r\nvar GetValueOp = function (key, propertyValue)\r\n{\r\n var callbacks;\r\n\r\n // The returned value sets what the property will be at the END of the Tween (usually called at the start of the Tween)\r\n var getEnd = function (target, key, value) { return value; };\r\n\r\n // The returned value sets what the property will be at the START of the Tween (usually called at the end of the Tween)\r\n var getStart = function (target, key, value) { return value; };\r\n\r\n // What to set the property to the moment the TweenData is invoked\r\n var getActive = null;\r\n\r\n var t = typeof(propertyValue);\r\n\r\n if (t === 'number')\r\n {\r\n // props: {\r\n // x: 400,\r\n // y: 300\r\n // }\r\n\r\n getEnd = function ()\r\n {\r\n return propertyValue;\r\n };\r\n }\r\n else if (Array.isArray(propertyValue))\r\n {\r\n // props: {\r\n // x: [ 400, 300, 200 ],\r\n // y: [ 10, 500, 10 ]\r\n // }\r\n\r\n getStart = function ()\r\n {\r\n return propertyValue[0];\r\n };\r\n\r\n getEnd = function ()\r\n {\r\n return propertyValue[propertyValue.length - 1];\r\n };\r\n }\r\n else if (t === 'string')\r\n {\r\n // props: {\r\n // x: '+=400',\r\n // y: '-=300',\r\n // z: '*=2',\r\n // w: '/=2',\r\n // p: 'random(10, 100)' - random float\r\n // p: 'int(10, 100)' - random int\r\n // }\r\n\r\n var op = propertyValue.toLowerCase();\r\n var isRandom = (op.substring(0, 6) === 'random');\r\n var isInt = (op.substring(0, 3) === 'int');\r\n\r\n if (isRandom || isInt)\r\n {\r\n // random(0.5, 3.45)\r\n // int(10, 100)\r\n var brace1 = op.indexOf('(');\r\n var brace2 = op.indexOf(')');\r\n var comma = op.indexOf(',');\r\n\r\n if (brace1 && brace2 && comma)\r\n {\r\n var value1 = parseFloat(op.substring(brace1 + 1, comma));\r\n var value2 = parseFloat(op.substring(comma + 1, brace2));\r\n\r\n if (isRandom)\r\n {\r\n getEnd = function ()\r\n {\r\n return FloatBetween(value1, value2);\r\n };\r\n }\r\n else\r\n {\r\n getEnd = function ()\r\n {\r\n return Between(value1, value2);\r\n };\r\n }\r\n }\r\n else\r\n {\r\n throw new Error('invalid random() format');\r\n }\r\n }\r\n else\r\n {\r\n op = op[0];\r\n var num = parseFloat(propertyValue.substr(2));\r\n\r\n switch (op)\r\n {\r\n case '+':\r\n getEnd = function (target, key, value)\r\n {\r\n return value + num;\r\n };\r\n break;\r\n\r\n case '-':\r\n getEnd = function (target, key, value)\r\n {\r\n return value - num;\r\n };\r\n break;\r\n\r\n case '*':\r\n getEnd = function (target, key, value)\r\n {\r\n return value * num;\r\n };\r\n break;\r\n\r\n case '/':\r\n getEnd = function (target, key, value)\r\n {\r\n return value / num;\r\n };\r\n break;\r\n\r\n default:\r\n getEnd = function ()\r\n {\r\n return parseFloat(propertyValue);\r\n };\r\n }\r\n }\r\n }\r\n else if (t === 'function')\r\n {\r\n // The same as setting just the getEnd function and no getStart\r\n\r\n // props: {\r\n // x: function (target, key, value, targetIndex, totalTargets, tween, tweenData) { return value + 50); },\r\n // }\r\n\r\n getEnd = propertyValue;\r\n }\r\n else if (t === 'object')\r\n {\r\n if (hasGetters(propertyValue))\r\n {\r\n /*\r\n x: {\r\n // Called the moment Tween is active. The returned value sets the property on the target immediately.\r\n getActive: function (target, key, value, targetIndex, totalTargets, tween, tweenData)\r\n {\r\n return value;\r\n },\r\n\r\n // Called at the start of the Tween. The returned value sets what the property will be at the END of the Tween.\r\n getEnd: function (target, key, value, targetIndex, totalTargets, tween, tweenData)\r\n {\r\n return value;\r\n },\r\n\r\n // Called at the end of the Tween. The returned value sets what the property will be at the START of the Tween.\r\n getStart: function (target, key, value, targetIndex, totalTargets, tween, tweenData)\r\n {\r\n return value;\r\n }\r\n }\r\n */\r\n\r\n if (hasGetActive(propertyValue))\r\n {\r\n getActive = propertyValue.getActive;\r\n }\r\n\r\n if (hasGetEnd(propertyValue))\r\n {\r\n getEnd = propertyValue.getEnd;\r\n }\r\n\r\n if (hasGetStart(propertyValue))\r\n {\r\n getStart = propertyValue.getStart;\r\n }\r\n }\r\n else if (propertyValue.hasOwnProperty('value'))\r\n {\r\n // 'value' may still be a string, function or a number\r\n // props: {\r\n // x: { value: 400, ... },\r\n // y: { value: 300, ... }\r\n // }\r\n\r\n callbacks = GetValueOp(key, propertyValue.value);\r\n }\r\n else\r\n {\r\n // 'from' and 'to' may still be a string, function or a number\r\n // props: {\r\n // x: { from: 400, to: 600 },\r\n // y: { from: 300, to: 500 }\r\n // }\r\n\r\n // Same as above, but the 'start' value is set immediately on the target\r\n // props: {\r\n // x: { start: 400, to: 600 },\r\n // y: { start: 300, to: 500 }\r\n // }\r\n\r\n // 'start' value is set immediately, then it goes 'from' to 'to' during the tween\r\n // props: {\r\n // x: { start: 200, from: 400, to: 600 },\r\n // y: { start: 300, from: 300, to: 500 }\r\n // }\r\n\r\n var hasTo = propertyValue.hasOwnProperty('to');\r\n var hasFrom = propertyValue.hasOwnProperty('from');\r\n var hasStart = propertyValue.hasOwnProperty('start');\r\n\r\n if (hasTo && (hasFrom || hasStart))\r\n {\r\n callbacks = GetValueOp(key, propertyValue.to);\r\n\r\n if (hasStart)\r\n {\r\n var startCallbacks = GetValueOp(key, propertyValue.start);\r\n\r\n callbacks.getActive = startCallbacks.getEnd;\r\n }\r\n\r\n if (hasFrom)\r\n {\r\n var fromCallbacks = GetValueOp(key, propertyValue.from);\r\n\r\n callbacks.getStart = fromCallbacks.getEnd;\r\n }\r\n }\r\n }\r\n }\r\n\r\n // If callback not set by the else if block above then set it here and return it\r\n if (!callbacks)\r\n {\r\n callbacks = {\r\n getActive: getActive,\r\n getEnd: getEnd,\r\n getStart: getStart\r\n };\r\n }\r\n\r\n return callbacks;\r\n};\r\n\r\nmodule.exports = GetValueOp;\r\n\n\n/***/ }),\n\n/***/ 88032:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BaseTween = __webpack_require__(70402);\r\nvar Defaults = __webpack_require__(69902);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\nvar GetBoolean = __webpack_require__(57355);\r\nvar GetEaseFunction = __webpack_require__(6113);\r\nvar GetNewValue = __webpack_require__(55292);\r\nvar GetValue = __webpack_require__(35154);\r\nvar GetValueOp = __webpack_require__(17777);\r\nvar MergeRight = __webpack_require__(269);\r\nvar Tween = __webpack_require__(86081);\r\n\r\n/**\r\n * Creates a new Number Tween.\r\n *\r\n * @function Phaser.Tweens.Builders.NumberTweenBuilder\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Tweens.TweenManager} parent - The owner of the new Tween.\r\n * @param {Phaser.Types.Tweens.NumberTweenBuilderConfig} config - Configuration for the new Tween.\r\n * @param {Phaser.Types.Tweens.TweenConfigDefaults} defaults - Tween configuration defaults.\r\n *\r\n * @return {Phaser.Tweens.Tween} The new tween.\r\n */\r\nvar NumberTweenBuilder = function (parent, config, defaults)\r\n{\r\n if (config instanceof Tween)\r\n {\r\n config.parent = parent;\r\n\r\n return config;\r\n }\r\n\r\n if (defaults === undefined)\r\n {\r\n defaults = Defaults;\r\n }\r\n else\r\n {\r\n defaults = MergeRight(Defaults, defaults);\r\n }\r\n\r\n // var tween = this.tweens.addCounter({\r\n // from: 100,\r\n // to: 200,\r\n // ... (normal tween properties)\r\n // })\r\n //\r\n // Then use it in your game via:\r\n //\r\n // tween.getValue()\r\n\r\n var from = GetValue(config, 'from', 0);\r\n var to = GetValue(config, 'to', 1);\r\n\r\n var targets = [ { value: from } ];\r\n\r\n var delay = GetValue(config, 'delay', defaults.delay);\r\n var easeParams = GetValue(config, 'easeParams', defaults.easeParams);\r\n var ease = GetValue(config, 'ease', defaults.ease);\r\n\r\n var ops = GetValueOp('value', to);\r\n\r\n var tween = new Tween(parent, targets);\r\n\r\n var tweenData = tween.add(\r\n 0,\r\n 'value',\r\n ops.getEnd,\r\n ops.getStart,\r\n ops.getActive,\r\n GetEaseFunction(GetValue(config, 'ease', ease), GetValue(config, 'easeParams', easeParams)),\r\n GetNewValue(config, 'delay', delay),\r\n GetValue(config, 'duration', defaults.duration),\r\n GetBoolean(config, 'yoyo', defaults.yoyo),\r\n GetValue(config, 'hold', defaults.hold),\r\n GetValue(config, 'repeat', defaults.repeat),\r\n GetValue(config, 'repeatDelay', defaults.repeatDelay),\r\n false,\r\n false\r\n );\r\n\r\n tweenData.start = from;\r\n tweenData.current = from;\r\n\r\n tween.completeDelay = GetAdvancedValue(config, 'completeDelay', 0);\r\n tween.loop = Math.round(GetAdvancedValue(config, 'loop', 0));\r\n tween.loopDelay = Math.round(GetAdvancedValue(config, 'loopDelay', 0));\r\n tween.paused = GetBoolean(config, 'paused', false);\r\n tween.persist = GetBoolean(config, 'persist', false);\r\n\r\n // Set the Callbacks\r\n tween.callbackScope = GetValue(config, 'callbackScope', tween);\r\n\r\n var callbacks = BaseTween.TYPES;\r\n\r\n for (var i = 0; i < callbacks.length; i++)\r\n {\r\n var type = callbacks[i];\r\n\r\n var callback = GetValue(config, type, false);\r\n\r\n if (callback)\r\n {\r\n var callbackParams = GetValue(config, type + 'Params', []);\r\n\r\n tween.setCallback(type, callback, callbackParams);\r\n }\r\n }\r\n\r\n return tween;\r\n};\r\n\r\nmodule.exports = NumberTweenBuilder;\r\n\n\n/***/ }),\n\n/***/ 93109:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetEaseFunction = __webpack_require__(6113);\r\nvar GetValue = __webpack_require__(35154);\r\nvar MATH_CONST = __webpack_require__(36383);\r\n\r\n/**\r\n * Creates a Stagger function to be used by a Tween property.\r\n *\r\n * The stagger function will allow you to stagger changes to the value of the property across all targets of the tween.\r\n *\r\n * This is only worth using if the tween has multiple targets.\r\n *\r\n * The following will stagger the delay by 100ms across all targets of the tween, causing them to scale down to 0.2\r\n * over the duration specified:\r\n *\r\n * ```javascript\r\n * this.tweens.add({\r\n * targets: [ ... ],\r\n * scale: 0.2,\r\n * ease: 'linear',\r\n * duration: 1000,\r\n * delay: this.tweens.stagger(100)\r\n * });\r\n * ```\r\n *\r\n * The following will stagger the delay by 500ms across all targets of the tween using a 10 x 6 grid, staggering\r\n * from the center out, using a cubic ease.\r\n *\r\n * ```javascript\r\n * this.tweens.add({\r\n * targets: [ ... ],\r\n * scale: 0.2,\r\n * ease: 'linear',\r\n * duration: 1000,\r\n * delay: this.tweens.stagger(500, { grid: [ 10, 6 ], from: 'center', ease: 'cubic.out' })\r\n * });\r\n * ```\r\n *\r\n * @function Phaser.Tweens.Builders.StaggerBuilder\r\n * @since 3.19.0\r\n *\r\n * @param {(number|number[])} value - The amount to stagger by, or an array containing two elements representing the min and max values to stagger between.\r\n * @param {Phaser.Types.Tweens.StaggerConfig} [config] - A Stagger Configuration object.\r\n *\r\n * @return {function} The stagger function.\r\n */\r\nvar StaggerBuilder = function (value, options)\r\n{\r\n if (options === undefined) { options = {}; }\r\n\r\n var result;\r\n\r\n var start = GetValue(options, 'start', 0);\r\n var ease = GetValue(options, 'ease', null);\r\n var grid = GetValue(options, 'grid', null);\r\n\r\n var from = GetValue(options, 'from', 0);\r\n\r\n var fromFirst = (from === 'first');\r\n var fromCenter = (from === 'center');\r\n var fromLast = (from === 'last');\r\n var fromValue = (typeof(from) === 'number');\r\n\r\n var isRange = (Array.isArray(value));\r\n var value1 = (isRange) ? parseFloat(value[0]) : parseFloat(value);\r\n var value2 = (isRange) ? parseFloat(value[1]) : 0;\r\n var maxValue = Math.max(value1, value2);\r\n\r\n if (isRange)\r\n {\r\n start += value1;\r\n }\r\n\r\n if (grid)\r\n {\r\n // Pre-calc the grid to save doing it for every TweenData update\r\n var gridWidth = grid[0];\r\n var gridHeight = grid[1];\r\n\r\n var fromX = 0;\r\n var fromY = 0;\r\n\r\n var distanceX = 0;\r\n var distanceY = 0;\r\n\r\n var gridValues = [];\r\n\r\n if (fromLast)\r\n {\r\n fromX = gridWidth - 1;\r\n fromY = gridHeight - 1;\r\n }\r\n else if (fromValue)\r\n {\r\n fromX = from % gridWidth;\r\n fromY = Math.floor(from / gridWidth);\r\n }\r\n else if (fromCenter)\r\n {\r\n fromX = (gridWidth - 1) / 2;\r\n fromY = (gridHeight - 1) / 2;\r\n }\r\n\r\n var gridMax = MATH_CONST.MIN_SAFE_INTEGER;\r\n\r\n for (var toY = 0; toY < gridHeight; toY++)\r\n {\r\n gridValues[toY] = [];\r\n\r\n for (var toX = 0; toX < gridWidth; toX++)\r\n {\r\n distanceX = fromX - toX;\r\n distanceY = fromY - toY;\r\n\r\n var dist = Math.sqrt(distanceX * distanceX + distanceY * distanceY);\r\n\r\n if (dist > gridMax)\r\n {\r\n gridMax = dist;\r\n }\r\n\r\n gridValues[toY][toX] = dist;\r\n }\r\n }\r\n }\r\n\r\n var easeFunction = (ease) ? GetEaseFunction(ease) : null;\r\n\r\n if (grid)\r\n {\r\n result = function (target, key, value, index)\r\n {\r\n var gridSpace = 0;\r\n var toX = index % gridWidth;\r\n var toY = Math.floor(index / gridWidth);\r\n\r\n if (toX >= 0 && toX < gridWidth && toY >= 0 && toY < gridHeight)\r\n {\r\n gridSpace = gridValues[toY][toX];\r\n }\r\n\r\n var output;\r\n\r\n if (isRange)\r\n {\r\n var diff = (value2 - value1);\r\n\r\n if (easeFunction)\r\n {\r\n output = ((gridSpace / gridMax) * diff) * easeFunction(gridSpace / gridMax);\r\n }\r\n else\r\n {\r\n output = (gridSpace / gridMax) * diff;\r\n }\r\n }\r\n else if (easeFunction)\r\n {\r\n output = (gridSpace * value1) * easeFunction(gridSpace / gridMax);\r\n }\r\n else\r\n {\r\n output = gridSpace * value1;\r\n }\r\n\r\n return output + start;\r\n };\r\n }\r\n else\r\n {\r\n result = function (target, key, value, index, total)\r\n {\r\n // zero offset\r\n total--;\r\n\r\n var fromIndex;\r\n\r\n if (fromFirst)\r\n {\r\n fromIndex = index;\r\n }\r\n else if (fromCenter)\r\n {\r\n fromIndex = Math.abs((total / 2) - index);\r\n }\r\n else if (fromLast)\r\n {\r\n fromIndex = total - index;\r\n }\r\n else if (fromValue)\r\n {\r\n fromIndex = Math.abs(from - index);\r\n }\r\n\r\n var output;\r\n\r\n if (isRange)\r\n {\r\n var spacing;\r\n\r\n if (fromCenter)\r\n {\r\n spacing = ((value2 - value1) / total) * (fromIndex * 2);\r\n }\r\n else\r\n {\r\n spacing = ((value2 - value1) / total) * fromIndex;\r\n }\r\n\r\n if (easeFunction)\r\n {\r\n output = spacing * easeFunction(fromIndex / total);\r\n }\r\n else\r\n {\r\n output = spacing;\r\n }\r\n }\r\n else if (easeFunction)\r\n {\r\n output = (total * maxValue) * easeFunction(fromIndex / total);\r\n }\r\n else\r\n {\r\n output = fromIndex * value1;\r\n }\r\n\r\n return output + start;\r\n };\r\n }\r\n\r\n return result;\r\n};\r\n\r\nmodule.exports = StaggerBuilder;\r\n\n\n/***/ }),\n\n/***/ 8357:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BaseTween = __webpack_require__(70402);\r\nvar Defaults = __webpack_require__(69902);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\nvar GetBoolean = __webpack_require__(57355);\r\nvar GetEaseFunction = __webpack_require__(6113);\r\nvar GetInterpolationFunction = __webpack_require__(91389);\r\nvar GetNewValue = __webpack_require__(55292);\r\nvar GetProps = __webpack_require__(82985);\r\nvar GetTargets = __webpack_require__(62329);\r\nvar GetValue = __webpack_require__(35154);\r\nvar GetValueOp = __webpack_require__(17777);\r\nvar MergeRight = __webpack_require__(269);\r\nvar Tween = __webpack_require__(86081);\r\n\r\n/**\r\n * Creates a new Tween.\r\n *\r\n * @function Phaser.Tweens.Builders.TweenBuilder\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Tweens.TweenManager} parent - The owner of the new Tween.\r\n * @param {Phaser.Types.Tweens.TweenBuilderConfig|object} config - Configuration for the new Tween.\r\n * @param {Phaser.Types.Tweens.TweenConfigDefaults} defaults - Tween configuration defaults.\r\n *\r\n * @return {Phaser.Tweens.Tween} The new tween.\r\n */\r\nvar TweenBuilder = function (parent, config, defaults)\r\n{\r\n if (config instanceof Tween)\r\n {\r\n config.parent = parent;\r\n\r\n return config;\r\n }\r\n\r\n if (defaults === undefined)\r\n {\r\n defaults = Defaults;\r\n }\r\n else\r\n {\r\n defaults = MergeRight(Defaults, defaults);\r\n }\r\n\r\n // Create arrays of the Targets and the Properties\r\n var targets = GetTargets(config);\r\n\r\n if (!targets && defaults.targets)\r\n {\r\n targets = defaults.targets;\r\n }\r\n\r\n var props = GetProps(config);\r\n\r\n // Default Tween values\r\n\r\n var delay = GetValue(config, 'delay', defaults.delay);\r\n var duration = GetValue(config, 'duration', defaults.duration);\r\n var easeParams = GetValue(config, 'easeParams', defaults.easeParams);\r\n var ease = GetValue(config, 'ease', defaults.ease);\r\n var hold = GetValue(config, 'hold', defaults.hold);\r\n var repeat = GetValue(config, 'repeat', defaults.repeat);\r\n var repeatDelay = GetValue(config, 'repeatDelay', defaults.repeatDelay);\r\n var yoyo = GetBoolean(config, 'yoyo', defaults.yoyo);\r\n var flipX = GetBoolean(config, 'flipX', defaults.flipX);\r\n var flipY = GetBoolean(config, 'flipY', defaults.flipY);\r\n var interpolation = GetValue(config, 'interpolation', defaults.interpolation);\r\n\r\n var addTarget = function (tween, targetIndex, key, value)\r\n {\r\n if (key === 'texture')\r\n {\r\n var texture = value;\r\n var frame = undefined;\r\n\r\n if (Array.isArray(value))\r\n {\r\n texture = value[0];\r\n frame = value[1];\r\n }\r\n else if (value.hasOwnProperty('value'))\r\n {\r\n texture = value.value;\r\n\r\n if (Array.isArray(value.value))\r\n {\r\n texture = value.value[0];\r\n frame = value.value[1];\r\n }\r\n else if (typeof value.value === 'string')\r\n {\r\n texture = value.value;\r\n }\r\n }\r\n else if (typeof value === 'string')\r\n {\r\n texture = value;\r\n }\r\n\r\n tween.addFrame(\r\n targetIndex,\r\n texture,\r\n frame,\r\n GetNewValue(value, 'delay', delay),\r\n GetValue(value, 'duration', duration),\r\n GetValue(value, 'hold', hold),\r\n GetValue(value, 'repeat', repeat),\r\n GetValue(value, 'repeatDelay', repeatDelay),\r\n GetBoolean(value, 'flipX', flipX),\r\n GetBoolean(value, 'flipY', flipY)\r\n );\r\n }\r\n else\r\n {\r\n var ops = GetValueOp(key, value);\r\n\r\n var interpolationFunc = GetInterpolationFunction(GetValue(value, 'interpolation', interpolation));\r\n\r\n tween.add(\r\n targetIndex,\r\n key,\r\n ops.getEnd,\r\n ops.getStart,\r\n ops.getActive,\r\n GetEaseFunction(GetValue(value, 'ease', ease), GetValue(value, 'easeParams', easeParams)),\r\n GetNewValue(value, 'delay', delay),\r\n GetValue(value, 'duration', duration),\r\n GetBoolean(value, 'yoyo', yoyo),\r\n GetValue(value, 'hold', hold),\r\n GetValue(value, 'repeat', repeat),\r\n GetValue(value, 'repeatDelay', repeatDelay),\r\n GetBoolean(value, 'flipX', flipX),\r\n GetBoolean(value, 'flipY', flipY),\r\n interpolationFunc,\r\n (interpolationFunc) ? value : null\r\n );\r\n }\r\n };\r\n\r\n var tween = new Tween(parent, targets);\r\n\r\n // Loop through every property defined in the Tween, i.e.: props { x, y, alpha }\r\n for (var p = 0; p < props.length; p++)\r\n {\r\n var key = props[p].key;\r\n var value = props[p].value;\r\n\r\n // Create 1 TweenData per target, per property\r\n for (var targetIndex = 0; targetIndex < targets.length; targetIndex++)\r\n {\r\n // Special-case for scale short-cut:\r\n if (key === 'scale' && !targets[targetIndex].hasOwnProperty('scale'))\r\n {\r\n addTarget(tween, targetIndex, 'scaleX', value);\r\n addTarget(tween, targetIndex, 'scaleY', value);\r\n }\r\n else\r\n {\r\n addTarget(tween, targetIndex, key, value);\r\n }\r\n }\r\n }\r\n\r\n tween.completeDelay = GetAdvancedValue(config, 'completeDelay', 0);\r\n tween.loop = Math.round(GetAdvancedValue(config, 'loop', 0));\r\n tween.loopDelay = Math.round(GetAdvancedValue(config, 'loopDelay', 0));\r\n tween.paused = GetBoolean(config, 'paused', false);\r\n tween.persist = GetBoolean(config, 'persist', false);\r\n\r\n // Set the Callbacks\r\n tween.callbackScope = GetValue(config, 'callbackScope', tween);\r\n\r\n var callbacks = BaseTween.TYPES;\r\n\r\n for (var i = 0; i < callbacks.length; i++)\r\n {\r\n var type = callbacks[i];\r\n\r\n var callback = GetValue(config, type, false);\r\n\r\n if (callback)\r\n {\r\n var callbackParams = GetValue(config, type + 'Params', []);\r\n\r\n tween.setCallback(type, callback, callbackParams);\r\n }\r\n }\r\n\r\n return tween;\r\n};\r\n\r\nmodule.exports = TweenBuilder;\r\n\n\n/***/ }),\n\n/***/ 26012:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BaseTween = __webpack_require__(70402);\r\nvar GetAdvancedValue = __webpack_require__(23568);\r\nvar GetBoolean = __webpack_require__(57355);\r\nvar GetTargets = __webpack_require__(62329);\r\nvar GetValue = __webpack_require__(35154);\r\nvar TweenBuilder = __webpack_require__(8357);\r\nvar TweenChain = __webpack_require__(43960);\r\n\r\n/**\r\n * Creates a new Tween Chain instance.\r\n *\r\n * @function Phaser.Tweens.Builders.TweenChainBuilder\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Tweens.TweenManager} parent - The owner of the new Tween.\r\n * @param {Phaser.Types.Tweens.TweenChainBuilderConfig|object} config - Configuration for the new Tween.\r\n *\r\n * @return {Phaser.Tweens.TweenChain} The new Tween Chain.\r\n */\r\nvar TweenChainBuilder = function (parent, config)\r\n{\r\n if (config instanceof TweenChain)\r\n {\r\n config.parent = parent;\r\n\r\n return config;\r\n }\r\n\r\n // Default TweenChain values\r\n\r\n var chain = new TweenChain(parent);\r\n\r\n chain.startDelay = GetValue(config, 'delay', 0);\r\n chain.completeDelay = GetAdvancedValue(config, 'completeDelay', 0);\r\n chain.loop = Math.round(GetAdvancedValue(config, 'loop', GetValue(config, 'repeat', 0)));\r\n chain.loopDelay = Math.round(GetAdvancedValue(config, 'loopDelay', GetValue(config, 'repeatDelay', 0)));\r\n chain.paused = GetBoolean(config, 'paused', false);\r\n chain.persist = GetBoolean(config, 'persist', false);\r\n\r\n // Set the Callbacks\r\n chain.callbackScope = GetValue(config, 'callbackScope', chain);\r\n\r\n var i;\r\n var callbacks = BaseTween.TYPES;\r\n\r\n for (i = 0; i < callbacks.length; i++)\r\n {\r\n var type = callbacks[i];\r\n\r\n var callback = GetValue(config, type, false);\r\n\r\n if (callback)\r\n {\r\n var callbackParams = GetValue(config, type + 'Params', []);\r\n\r\n chain.setCallback(type, callback, callbackParams);\r\n }\r\n }\r\n\r\n // Add in the Tweens\r\n var tweens = GetValue(config, 'tweens', null);\r\n\r\n if (Array.isArray(tweens))\r\n {\r\n var chainedTweens = [];\r\n\r\n var targets = GetTargets(config);\r\n var defaults = undefined;\r\n\r\n if (targets)\r\n {\r\n defaults = { targets: targets };\r\n }\r\n\r\n for (i = 0; i < tweens.length; i++)\r\n {\r\n chainedTweens.push(TweenBuilder(chain, tweens[i], defaults));\r\n }\r\n\r\n chain.add(chainedTweens);\r\n }\r\n\r\n return chain;\r\n};\r\n\r\nmodule.exports = TweenChainBuilder;\r\n\n\n/***/ }),\n\n/***/ 30231:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Tweens.Builders\r\n */\r\n\r\nmodule.exports = {\r\n\r\n GetBoolean: __webpack_require__(57355),\r\n GetEaseFunction: __webpack_require__(6113),\r\n GetInterpolationFunction: __webpack_require__(91389),\r\n GetNewValue: __webpack_require__(55292),\r\n GetProps: __webpack_require__(82985),\r\n GetTargets: __webpack_require__(62329),\r\n GetValueOp: __webpack_require__(17777),\r\n NumberTweenBuilder: __webpack_require__(88032),\r\n StaggerBuilder: __webpack_require__(93109),\r\n TweenBuilder: __webpack_require__(8357)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 73685:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Tween Active Event.\r\n *\r\n * This event is dispatched by a Tween when it becomes active within the Tween Manager.\r\n *\r\n * An 'active' Tween is one that is now progressing, although it may not yet be updating\r\n * any target properties, due to settings such as `delay`. If you need an event for when\r\n * the Tween starts actually updating its first property, see `TWEEN_START`.\r\n *\r\n * Listen to it from a Tween instance using `Tween.on('active', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var tween = this.tweens.create({\r\n * targets: image,\r\n * x: 500,\r\n * ease: 'Power1',\r\n * duration: 3000\r\n * });\r\n * tween.on('active', listener);\r\n * this.tweens.existing(tween);\r\n * ```\r\n *\r\n * Note that this event is usually dispatched already by the time you call `this.tweens.add()`, and is\r\n * meant for use with `tweens.create()` and/or `tweens.existing()`.\r\n *\r\n * @event Phaser.Tweens.Events#TWEEN_ACTIVE\r\n * @type {string}\r\n * @since 3.19.0\r\n *\r\n * @param {Phaser.Tweens.Tween} tween - A reference to the Tween instance that emitted the event.\r\n * @param {(any|any[])} targets - The targets of the Tween. If this Tween has multiple targets this will be an array of the targets.\r\n */\r\nmodule.exports = 'active';\r\n\n\n/***/ }),\n\n/***/ 98540:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Tween Complete Event.\r\n *\r\n * This event is dispatched by a Tween when it completes playback entirely, factoring in repeats and loops.\r\n *\r\n * If the Tween has been set to loop or repeat infinitely, this event will not be dispatched\r\n * unless the `Tween.stop` method is called.\r\n *\r\n * If a Tween has a `completeDelay` set, this event will fire after that delay expires.\r\n *\r\n * Listen to it from a Tween instance using `Tween.on('complete', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var tween = this.tweens.add({\r\n * targets: image,\r\n * x: 500,\r\n * ease: 'Power1',\r\n * duration: 3000\r\n * });\r\n * tween.on('complete', listener);\r\n * ```\r\n *\r\n * @event Phaser.Tweens.Events#TWEEN_COMPLETE\r\n * @type {string}\r\n * @since 3.19.0\r\n *\r\n * @param {Phaser.Tweens.Tween} tween - A reference to the Tween instance that emitted the event.\r\n * @param {(any|any[])} targets - The targets of the Tween. If this Tween has multiple targets this will be an array of the targets.\r\n */\r\nmodule.exports = 'complete';\r\n\n\n/***/ }),\n\n/***/ 67233:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Tween Loop Event.\r\n *\r\n * This event is dispatched by a Tween when it loops.\r\n *\r\n * This event will only be dispatched if the Tween has a loop count set.\r\n *\r\n * If a Tween has a `loopDelay` set, this event will fire after that delay expires.\r\n *\r\n * The difference between `loop` and `repeat` is that `repeat` is a property setting,\r\n * where-as `loop` applies to the entire Tween.\r\n *\r\n * Listen to it from a Tween instance using `Tween.on('loop', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var tween = this.tweens.add({\r\n * targets: image,\r\n * x: 500,\r\n * ease: 'Power1',\r\n * duration: 3000,\r\n * loop: 6\r\n * });\r\n * tween.on('loop', listener);\r\n * ```\r\n *\r\n * @event Phaser.Tweens.Events#TWEEN_LOOP\r\n * @type {string}\r\n * @since 3.19.0\r\n *\r\n * @param {Phaser.Tweens.Tween} tween - A reference to the Tween instance that emitted the event.\r\n * @param {(any|any[])} targets - The targets of the Tween. If this Tween has multiple targets this will be an array of the targets.\r\n */\r\nmodule.exports = 'loop';\r\n\n\n/***/ }),\n\n/***/ 2859:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Tween Pause Event.\r\n *\r\n * This event is dispatched by a Tween when it is paused.\r\n *\r\n * Listen to it from a Tween instance using `Tween.on('pause', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var tween = this.tweens.add({\r\n * targets: image,\r\n * ease: 'Power1',\r\n * duration: 3000,\r\n * x: 600\r\n * });\r\n * tween.on('pause', listener);\r\n * // At some point later ...\r\n * tween.pause();\r\n * ```\r\n *\r\n * @event Phaser.Tweens.Events#TWEEN_PAUSE\r\n * @type {string}\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Tweens.Tween} tween - A reference to the Tween instance that emitted the event.\r\n */\r\nmodule.exports = 'pause';\r\n\n\n/***/ }),\n\n/***/ 98336:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Tween Repeat Event.\r\n *\r\n * This event is dispatched by a Tween when one of the properties it is tweening repeats.\r\n *\r\n * This event will only be dispatched if the Tween has a property with a repeat count set.\r\n *\r\n * If a Tween has a `repeatDelay` set, this event will fire after that delay expires.\r\n *\r\n * The difference between `loop` and `repeat` is that `repeat` is a property setting,\r\n * where-as `loop` applies to the entire Tween.\r\n *\r\n * Listen to it from a Tween instance using `Tween.on('repeat', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var tween = this.tweens.add({\r\n * targets: image,\r\n * x: 500,\r\n * ease: 'Power1',\r\n * duration: 3000,\r\n * repeat: 4\r\n * });\r\n * tween.on('repeat', listener);\r\n * ```\r\n *\r\n * @event Phaser.Tweens.Events#TWEEN_REPEAT\r\n * @type {string}\r\n * @since 3.19.0\r\n *\r\n * @param {Phaser.Tweens.Tween} tween - A reference to the Tween instance that emitted the event.\r\n * @param {string} key - The property on the target that has just repeated, i.e. `x` or `scaleY`, or whatever property you are tweening.\r\n * @param {any} target - The target object that was repeated. Usually a Game Object, but can be of any type.\r\n * @param {number} current - The current value of the property being set on the target.\r\n * @param {number} previous - The previous value of the property being set on the target.\r\n */\r\nmodule.exports = 'repeat';\r\n\n\n/***/ }),\n\n/***/ 25764:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Tween Resume Event.\r\n *\r\n * This event is dispatched by a Tween when it is resumed from a paused state.\r\n *\r\n * Listen to it from a Tween instance using `Tween.on('resume', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var tween = this.tweens.add({\r\n * targets: image,\r\n * ease: 'Power1',\r\n * duration: 3000,\r\n * x: 600\r\n * });\r\n * tween.on('resume', listener);\r\n * // At some point later ...\r\n * tween.resume();\r\n * ```\r\n *\r\n * @event Phaser.Tweens.Events#TWEEN_RESUME\r\n * @type {string}\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Tweens.Tween} tween - A reference to the Tween instance that emitted the event.\r\n */\r\nmodule.exports = 'resume';\r\n\n\n/***/ }),\n\n/***/ 32193:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Tween Start Event.\r\n *\r\n * This event is dispatched by a Tween when it starts tweening its first property.\r\n *\r\n * A Tween will only emit this event once, as it can only start once.\r\n *\r\n * If a Tween has a `delay` set, this event will fire after that delay expires.\r\n *\r\n * Listen to it from a Tween instance using `Tween.on('start', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var tween = this.tweens.add({\r\n * targets: image,\r\n * x: 500,\r\n * ease: 'Power1',\r\n * duration: 3000\r\n * });\r\n * tween.on('start', listener);\r\n * ```\r\n *\r\n * @event Phaser.Tweens.Events#TWEEN_START\r\n * @type {string}\r\n * @since 3.19.0\r\n *\r\n * @param {Phaser.Tweens.Tween} tween - A reference to the Tween instance that emitted the event.\r\n * @param {(any|any[])} targets - The targets of the Tween. If this Tween has multiple targets this will be an array of the targets.\r\n */\r\nmodule.exports = 'start';\r\n\n\n/***/ }),\n\n/***/ 84371:\n/***/ ((module) => {\n\n/**\r\n * @author samme\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Tween Stop Event.\r\n *\r\n * This event is dispatched by a Tween when it is stopped.\r\n *\r\n * Listen to it from a Tween instance using `Tween.on('stop', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var tween = this.tweens.add({\r\n * targets: image,\r\n * x: 500,\r\n * ease: 'Power1',\r\n * duration: 3000\r\n * });\r\n * tween.on('stop', listener);\r\n * ```\r\n *\r\n * @event Phaser.Tweens.Events#TWEEN_STOP\r\n * @type {string}\r\n * @since 3.24.0\r\n *\r\n * @param {Phaser.Tweens.Tween} tween - A reference to the Tween instance that emitted the event.\r\n * @param {(any|any[])} targets - The targets of the Tween. If this Tween has multiple targets this will be an array of the targets.\r\n */\r\nmodule.exports = 'stop';\r\n\n\n/***/ }),\n\n/***/ 70766:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Tween Update Event.\r\n *\r\n * This event is dispatched by a Tween every time it updates _any_ of the properties it is tweening.\r\n *\r\n * A Tween that is changing 3 properties of a target will emit this event 3 times per change, once per property.\r\n *\r\n * **Note:** This is a very high frequency event and may be dispatched multiple times, every single frame.\r\n *\r\n * Listen to it from a Tween instance using `Tween.on('update', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var tween = this.tweens.add({\r\n * targets: image,\r\n * x: 500,\r\n * ease: 'Power1',\r\n * duration: 3000,\r\n * });\r\n * tween.on('update', listener);\r\n * ```\r\n *\r\n * @event Phaser.Tweens.Events#TWEEN_UPDATE\r\n * @type {string}\r\n * @since 3.19.0\r\n *\r\n * @param {Phaser.Tweens.Tween} tween - A reference to the Tween instance that emitted the event.\r\n * @param {string} key - The property on the target that has just updated, i.e. `x` or `scaleY`, or whatever property you are tweening.\r\n * @param {any} target - The target object that was updated. Usually a Game Object, but can be of any type.\r\n * @param {number} current - The current value of the property that was tweened.\r\n * @param {number} previous - The previous value of the property that was tweened, prior to this update.\r\n */\r\nmodule.exports = 'update';\r\n\n\n/***/ }),\n\n/***/ 55659:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * The Tween Yoyo Event.\r\n *\r\n * This event is dispatched by a Tween whenever a property it is tweening yoyos.\r\n *\r\n * This event will only be dispatched if the Tween has a property with `yoyo` set.\r\n *\r\n * If the Tween has a `hold` value, this event is dispatched when the hold expires.\r\n *\r\n * This event is dispatched for every property, and for every target, that yoyos.\r\n * For example, if a Tween was updating 2 properties and had 10 targets, this event\r\n * would be dispatched 20 times (twice per target). So be careful how you use it!\r\n *\r\n * Listen to it from a Tween instance using `Tween.on('yoyo', listener)`, i.e.:\r\n *\r\n * ```javascript\r\n * var tween = this.tweens.add({\r\n * targets: image,\r\n * x: 500,\r\n * ease: 'Power1',\r\n * duration: 3000,\r\n * yoyo: true\r\n * });\r\n * tween.on('yoyo', listener);\r\n * ```\r\n *\r\n * @event Phaser.Tweens.Events#TWEEN_YOYO\r\n * @type {string}\r\n * @since 3.19.0\r\n *\r\n * @param {Phaser.Tweens.Tween} tween - A reference to the Tween instance that emitted the event.\r\n * @param {string} key - The property on the target that has just yoyo'd, i.e. `x` or `scaleY`, or whatever property you are tweening.\r\n * @param {any} target - The target object that was yoyo'd. Usually a Game Object, but can be of any type.\r\n * @param {number} current - The current value of the property being set on the target.\r\n * @param {number} previous - The previous value of the property being set on the target.\r\n */\r\nmodule.exports = 'yoyo';\r\n\n\n/***/ }),\n\n/***/ 842:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Tweens.Events\r\n */\r\n\r\nmodule.exports = {\r\n\r\n TWEEN_ACTIVE: __webpack_require__(73685),\r\n TWEEN_COMPLETE: __webpack_require__(98540),\r\n TWEEN_LOOP: __webpack_require__(67233),\r\n TWEEN_PAUSE: __webpack_require__(2859),\r\n TWEEN_RESUME: __webpack_require__(25764),\r\n TWEEN_REPEAT: __webpack_require__(98336),\r\n TWEEN_START: __webpack_require__(32193),\r\n TWEEN_STOP: __webpack_require__(84371),\r\n TWEEN_UPDATE: __webpack_require__(70766),\r\n TWEEN_YOYO: __webpack_require__(55659)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 43066:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Tweens\r\n */\r\n\r\nvar Tweens = {\r\n\r\n States: __webpack_require__(86353),\r\n\r\n Builders: __webpack_require__(30231),\r\n Events: __webpack_require__(842),\r\n\r\n TweenManager: __webpack_require__(40382),\r\n Tween: __webpack_require__(86081),\r\n TweenData: __webpack_require__(48177),\r\n TweenFrameData: __webpack_require__(42220),\r\n\r\n BaseTween: __webpack_require__(70402),\r\n TweenChain: __webpack_require__(43960)\r\n};\r\n\r\nmodule.exports = Tweens;\r\n\n\n/***/ }),\n\n/***/ 70402:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar EventEmitter = __webpack_require__(50792);\r\nvar Events = __webpack_require__(842);\r\nvar TWEEN_CONST = __webpack_require__(86353);\r\n\r\n/**\r\n * @classdesc\r\n * As the name implies, this is the base Tween class that both the Tween and TweenChain\r\n * inherit from. It contains shared properties and methods common to both types of Tween.\r\n *\r\n * Typically you would never instantiate this class directly, although you could certainly\r\n * use it to create your own variation of Tweens from.\r\n *\r\n * @class BaseTween\r\n * @memberof Phaser.Tweens\r\n * @extends Phaser.Events.EventEmitter\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {(Phaser.Tweens.TweenManager|Phaser.Tweens.TweenChain)} parent - A reference to the Tween Manager, or Tween Chain, that owns this Tween.\r\n */\r\nvar BaseTween = new Class({\r\n\r\n Extends: EventEmitter,\r\n\r\n initialize:\r\n\r\n function BaseTween (parent)\r\n {\r\n EventEmitter.call(this);\r\n\r\n /**\r\n * A reference to the Tween Manager, or Tween Chain, that owns this Tween.\r\n *\r\n * @name Phaser.Tweens.BaseTween#parent\r\n * @type {(Phaser.Tweens.TweenManager|Phaser.Tweens.TweenChain)}\r\n * @since 3.60.0\r\n */\r\n this.parent = parent;\r\n\r\n /**\r\n * The main data array. For a Tween, this contains all of the `TweenData` objects, each\r\n * containing a unique property and target that is being tweened.\r\n *\r\n * For a TweenChain, this contains an array of `Tween` instances, which are being played\r\n * through in sequence.\r\n *\r\n * @name Phaser.Tweens.BaseTween#data\r\n * @type {(Phaser.Tweens.TweenData[]|Phaser.Tweens.Tween[])}\r\n * @since 3.60.0\r\n */\r\n this.data = [];\r\n\r\n /**\r\n * The cached size of the data array.\r\n *\r\n * @name Phaser.Tweens.BaseTween#totalData\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.totalData = 0;\r\n\r\n /**\r\n * The time in milliseconds before the 'onStart' event fires.\r\n *\r\n * For a Tween, this is the shortest `delay` value across all of the TweenDatas it owns.\r\n * For a TweenChain, it is whatever delay value was given in the configuration.\r\n *\r\n * @name Phaser.Tweens.BaseTween#startDelay\r\n * @type {number}\r\n * @default 0\r\n * @since 3.60.0\r\n */\r\n this.startDelay = 0;\r\n\r\n /**\r\n * Has this Tween started playback yet?\r\n *\r\n * This boolean is toggled when the Tween leaves the 'start delayed' state and begins running.\r\n *\r\n * @name Phaser.Tweens.BaseTween#hasStarted\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.hasStarted = false;\r\n\r\n /**\r\n * Scales the time applied to this Tween. A value of 1 runs in real-time. A value of 0.5 runs 50% slower, and so on.\r\n *\r\n * The value isn't used when calculating total duration of the tween, it's a run-time delta adjustment only.\r\n *\r\n * This value is multiplied by the `TweenManager.timeScale`.\r\n *\r\n * @name Phaser.Tweens.BaseTween#timeScale\r\n * @type {number}\r\n * @default 1\r\n * @since 3.60.0\r\n */\r\n this.timeScale = 1;\r\n\r\n /**\r\n * The number of times this Tween will loop.\r\n *\r\n * Can be -1 for an infinite loop, zero for none, or a positive integer.\r\n *\r\n * Typically this is set in the configuration object, but can also be set directly\r\n * as long as this Tween is paused and hasn't started playback.\r\n *\r\n * When enabled it will play through ALL Tweens again.\r\n *\r\n * Use TweenData.repeat to loop a single element.\r\n *\r\n * @name Phaser.Tweens.BaseTween#loop\r\n * @type {number}\r\n * @default 0\r\n * @since 3.60.0\r\n */\r\n this.loop = 0;\r\n\r\n /**\r\n * The time in milliseconds before the Tween loops.\r\n *\r\n * Only used if `loop` is > 0.\r\n *\r\n * @name Phaser.Tweens.BaseTween#loopDelay\r\n * @type {number}\r\n * @default 0\r\n * @since 3.60.0\r\n */\r\n this.loopDelay = 0;\r\n\r\n /**\r\n * Internal counter recording how many loops are left to run.\r\n *\r\n * @name Phaser.Tweens.BaseTween#loopCounter\r\n * @type {number}\r\n * @default 0\r\n * @since 3.60.0\r\n */\r\n this.loopCounter = 0;\r\n\r\n /**\r\n * The time in milliseconds before the 'onComplete' event fires.\r\n *\r\n * This never fires if `loop = -1` as it never completes because it has been\r\n * set to loop forever.\r\n *\r\n * @name Phaser.Tweens.BaseTween#completeDelay\r\n * @type {number}\r\n * @default 0\r\n * @since 3.60.0\r\n */\r\n this.completeDelay = 0;\r\n\r\n /**\r\n * An internal countdown timer (used by loopDelay and completeDelay)\r\n *\r\n * @name Phaser.Tweens.BaseTween#countdown\r\n * @type {number}\r\n * @default 0\r\n * @since 3.60.0\r\n */\r\n this.countdown = 0;\r\n\r\n /**\r\n * The current state of the Tween.\r\n *\r\n * @name Phaser.Tweens.BaseTween#state\r\n * @type {Phaser.Tweens.StateType}\r\n * @since 3.60.0\r\n */\r\n this.state = TWEEN_CONST.PENDING;\r\n\r\n /**\r\n * Is the Tween currently paused?\r\n *\r\n * A paused Tween needs to be started with the `play` method, or resumed with the `resume` method.\r\n *\r\n * This property can be toggled at runtime if required.\r\n *\r\n * @name Phaser.Tweens.BaseTween#paused\r\n * @type {boolean}\r\n * @default false\r\n * @since 3.60.0\r\n */\r\n this.paused = false;\r\n\r\n /**\r\n * An object containing the different Tween callback functions.\r\n *\r\n * You can either set these in the Tween config, or by calling the `Tween.setCallback` method.\r\n *\r\n * The types available are:\r\n *\r\n * `onActive` - When the Tween is first created it moves to an 'active' state when added to the Tween Manager. 'Active' does not mean 'playing'.\r\n * `onStart` - When the Tween starts playing after a delayed or paused state. This will happen at the same time as `onActive` if the tween has no delay and isn't paused.\r\n * `onLoop` - When a Tween loops, if it has been set to do so. This happens _after_ the `loopDelay` expires, if set.\r\n * `onComplete` - When the Tween finishes playback fully. Never invoked if the Tween is set to repeat infinitely.\r\n * `onStop` - Invoked only if the `Tween.stop` method is called.\r\n * `onPause` - Invoked only if the `Tween.pause` method is called. Not invoked if the Tween Manager is paused.\r\n * `onResume` - Invoked only if the `Tween.resume` method is called. Not invoked if the Tween Manager is resumed.\r\n *\r\n * The following types are also available and are invoked on a `TweenData` level - that is per-object, per-property, being tweened.\r\n *\r\n * `onYoyo` - When a TweenData starts a yoyo. This happens _after_ the `hold` delay expires, if set.\r\n * `onRepeat` - When a TweenData repeats playback. This happens _after_ the `repeatDelay` expires, if set.\r\n * `onUpdate` - When a TweenData updates a property on a source target during playback.\r\n *\r\n * @name Phaser.Tweens.BaseTween#callbacks\r\n * @type {Phaser.Types.Tweens.TweenCallbacks}\r\n * @since 3.60.0\r\n */\r\n this.callbacks = {\r\n onActive: null,\r\n onComplete: null,\r\n onLoop: null,\r\n onPause: null,\r\n onRepeat: null,\r\n onResume: null,\r\n onStart: null,\r\n onStop: null,\r\n onUpdate: null,\r\n onYoyo: null\r\n };\r\n\r\n /**\r\n * The scope (or context) in which all of the callbacks are invoked.\r\n *\r\n * This defaults to be this Tween, but you can override this property\r\n * to set it to whatever object you require.\r\n *\r\n * @name Phaser.Tweens.BaseTween#callbackScope\r\n * @type {any}\r\n * @since 3.60.0\r\n */\r\n this.callbackScope;\r\n\r\n /**\r\n * Will this Tween persist after playback? A Tween that persists will _not_ be destroyed by the\r\n * Tween Manager, or when calling `Tween.stop`, and can be re-played as required. You can either\r\n * set this property when creating the tween in the tween config, or set it _prior_ to playback.\r\n *\r\n * However, it's up to you to ensure you destroy persistent tweens when you are finished with them,\r\n * or they will retain references you may no longer require and waste memory.\r\n *\r\n * By default, `Tweens` are set to _not_ persist, so they are automatically cleaned-up by\r\n * the Tween Manager.\r\n *\r\n * @name Phaser.Tweens.BaseTween#persist\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.persist = false;\r\n },\r\n\r\n /**\r\n * Sets the value of the time scale applied to this Tween. A value of 1 runs in real-time.\r\n * A value of 0.5 runs 50% slower, and so on.\r\n *\r\n * The value isn't used when calculating total duration of the tween, it's a run-time delta adjustment only.\r\n *\r\n * This value is multiplied by the `TweenManager.timeScale`.\r\n *\r\n * @method Phaser.Tweens.BaseTween#setTimeScale\r\n * @since 3.60.0\r\n *\r\n * @param {number} value - The time scale value to set.\r\n *\r\n * @return {this} This Tween instance.\r\n */\r\n setTimeScale: function (value)\r\n {\r\n this.timeScale = value;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Gets the value of the time scale applied to this Tween. A value of 1 runs in real-time.\r\n * A value of 0.5 runs 50% slower, and so on.\r\n *\r\n * @method Phaser.Tweens.BaseTween#getTimeScale\r\n * @since 3.60.0\r\n *\r\n * @return {number} The value of the time scale applied to this Tween.\r\n */\r\n getTimeScale: function ()\r\n {\r\n return this.timeScale;\r\n },\r\n\r\n /**\r\n * Checks if this Tween is currently playing.\r\n *\r\n * If this Tween is paused, or not active, this method will return false.\r\n *\r\n * @method Phaser.Tweens.BaseTween#isPlaying\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if the Tween is playing, otherwise `false`.\r\n */\r\n isPlaying: function ()\r\n {\r\n return (!this.paused && this.isActive());\r\n },\r\n\r\n /**\r\n * Checks if the Tween is currently paused.\r\n *\r\n * This is the same as inspecting the `BaseTween.paused` property directly.\r\n *\r\n * @method Phaser.Tweens.BaseTween#isPaused\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if the Tween is paused, otherwise `false`.\r\n */\r\n isPaused: function ()\r\n {\r\n return this.paused;\r\n },\r\n\r\n /**\r\n * Pauses the Tween immediately. Use `resume` to continue playback.\r\n *\r\n * You can also toggle the `Tween.paused` boolean property, but doing so will not trigger the PAUSE event.\r\n *\r\n * @method Phaser.Tweens.BaseTween#pause\r\n * @fires Phaser.Tweens.Events#TWEEN_PAUSE\r\n * @since 3.60.0\r\n *\r\n * @return {this} This Tween instance.\r\n */\r\n pause: function ()\r\n {\r\n if (!this.paused)\r\n {\r\n this.paused = true;\r\n\r\n this.dispatchEvent(Events.TWEEN_PAUSE, 'onPause');\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Resumes the playback of a previously paused Tween.\r\n *\r\n * You can also toggle the `Tween.paused` boolean property, but doing so will not trigger the RESUME event.\r\n *\r\n * @method Phaser.Tweens.BaseTween#resume\r\n * @fires Phaser.Tweens.Events#TWEEN_RESUME\r\n * @since 3.60.0\r\n *\r\n * @return {this} This Tween instance.\r\n */\r\n resume: function ()\r\n {\r\n if (this.paused)\r\n {\r\n this.paused = false;\r\n\r\n this.dispatchEvent(Events.TWEEN_RESUME, 'onResume');\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal method that makes this Tween active within the TweenManager\r\n * and emits the onActive event and callback.\r\n *\r\n * @method Phaser.Tweens.BaseTween#makeActive\r\n * @fires Phaser.Tweens.Events#TWEEN_ACTIVE\r\n * @since 3.60.0\r\n */\r\n makeActive: function ()\r\n {\r\n this.parent.makeActive(this);\r\n\r\n this.dispatchEvent(Events.TWEEN_ACTIVE, 'onActive');\r\n },\r\n\r\n /**\r\n * Internal method that handles this tween completing and emitting the onComplete event\r\n * and callback.\r\n *\r\n * @method Phaser.Tweens.BaseTween#onCompleteHandler\r\n * @since 3.60.0\r\n */\r\n onCompleteHandler: function ()\r\n {\r\n this.setPendingRemoveState();\r\n\r\n this.dispatchEvent(Events.TWEEN_COMPLETE, 'onComplete');\r\n },\r\n\r\n /**\r\n * Flags the Tween as being complete, whatever stage of progress it is at.\r\n *\r\n * If an `onComplete` callback has been defined it will automatically invoke it, unless a `delay`\r\n * argument is provided, in which case the Tween will delay for that period of time before calling the callback.\r\n *\r\n * If you don't need a delay or don't have an `onComplete` callback then call `Tween.stop` instead.\r\n *\r\n * @method Phaser.Tweens.BaseTween#complete\r\n * @fires Phaser.Tweens.Events#TWEEN_COMPLETE\r\n * @since 3.2.0\r\n *\r\n * @param {number} [delay=0] - The time to wait before invoking the complete callback. If zero it will fire immediately.\r\n *\r\n * @return {this} This Tween instance.\r\n */\r\n complete: function (delay)\r\n {\r\n if (delay === undefined) { delay = 0; }\r\n\r\n if (delay)\r\n {\r\n this.setCompleteDelayState();\r\n\r\n this.countdown = delay;\r\n }\r\n else\r\n {\r\n this.onCompleteHandler();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Flags the Tween as being complete only once the current loop has finished.\r\n *\r\n * This is a useful way to stop an infinitely looping tween once a complete cycle is over,\r\n * rather than abruptly.\r\n *\r\n * If you don't have a loop then call `Tween.stop` instead.\r\n *\r\n * @method Phaser.Tweens.BaseTween#completeAfterLoop\r\n * @fires Phaser.Tweens.Events#TWEEN_COMPLETE\r\n * @since 3.60.0\r\n *\r\n * @param {number} [loops=0] - The number of loops that should finish before this tween completes. Zero means complete just the current loop.\r\n *\r\n * @return {this} This Tween instance.\r\n */\r\n completeAfterLoop: function (loops)\r\n {\r\n if (loops === undefined) { loops = 0; }\r\n\r\n if (this.loopCounter > loops)\r\n {\r\n this.loopCounter = loops;\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Immediately removes this Tween from the TweenManager and all of its internal arrays,\r\n * no matter what stage it is at. Then sets the tween state to `REMOVED`.\r\n *\r\n * You should dispose of your reference to this tween after calling this method, to\r\n * free it from memory. If you no longer require it, call `Tween.destroy()` on it.\r\n *\r\n * @method Phaser.Tweens.BaseTween#remove\r\n * @since 3.60.0\r\n *\r\n * @return {this} This Tween instance.\r\n */\r\n remove: function ()\r\n {\r\n if (this.parent)\r\n {\r\n this.parent.remove(this);\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Stops the Tween immediately, whatever stage of progress it is at.\r\n *\r\n * If not a part of a Tween Chain it is also flagged for removal by the Tween Manager.\r\n *\r\n * If an `onStop` callback has been defined it will automatically invoke it.\r\n *\r\n * The Tween will be removed during the next game frame, but should be considered 'destroyed' from this point on.\r\n *\r\n * Typically, you cannot play a Tween that has been stopped. If you just wish to pause the tween, not destroy it,\r\n * then call the `pause` method instead and use `resume` to continue playback. If you wish to restart the Tween,\r\n * use the `restart` or `seek` methods.\r\n *\r\n * @method Phaser.Tweens.BaseTween#stop\r\n * @fires Phaser.Tweens.Events#TWEEN_STOP\r\n * @since 3.60.0\r\n *\r\n * @return {this} This Tween instance.\r\n */\r\n stop: function ()\r\n {\r\n if (this.parent && !this.isRemoved() && !this.isPendingRemove() && !this.isDestroyed())\r\n {\r\n this.dispatchEvent(Events.TWEEN_STOP, 'onStop');\r\n\r\n this.setPendingRemoveState();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal method that handles the processing of the loop delay countdown timer and\r\n * the dispatch of related events. Called automatically by `Tween.update`.\r\n *\r\n * @method Phaser.Tweens.BaseTween#updateLoopCountdown\r\n * @since 3.60.0\r\n *\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n */\r\n updateLoopCountdown: function (delta)\r\n {\r\n this.countdown -= delta;\r\n\r\n if (this.countdown <= 0)\r\n {\r\n this.setActiveState();\r\n\r\n this.dispatchEvent(Events.TWEEN_LOOP, 'onLoop');\r\n }\r\n },\r\n\r\n /**\r\n * Internal method that handles the processing of the start delay countdown timer and\r\n * the dispatch of related events. Called automatically by `Tween.update`.\r\n *\r\n * @method Phaser.Tweens.BaseTween#updateStartCountdown\r\n * @since 3.60.0\r\n *\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n */\r\n updateStartCountdown: function (delta)\r\n {\r\n this.countdown -= delta;\r\n\r\n if (this.countdown <= 0)\r\n {\r\n this.hasStarted = true;\r\n\r\n this.setActiveState();\r\n\r\n this.dispatchEvent(Events.TWEEN_START, 'onStart');\r\n\r\n // Reset the delta so we always start progress from zero\r\n delta = 0;\r\n }\r\n\r\n return delta;\r\n },\r\n\r\n /**\r\n * Internal method that handles the processing of the complete delay countdown timer and\r\n * the dispatch of related events. Called automatically by `Tween.update`.\r\n *\r\n * @method Phaser.Tweens.BaseTween#updateCompleteDelay\r\n * @since 3.60.0\r\n *\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n */\r\n updateCompleteDelay: function (delta)\r\n {\r\n this.countdown -= delta;\r\n\r\n if (this.countdown <= 0)\r\n {\r\n this.onCompleteHandler();\r\n }\r\n },\r\n\r\n /**\r\n * Sets an event based callback to be invoked during playback.\r\n *\r\n * Calling this method will replace a previously set callback for the given type, if any exists.\r\n *\r\n * The types available are:\r\n *\r\n * `onActive` - When the Tween is first created it moves to an 'active' state when added to the Tween Manager. 'Active' does not mean 'playing'.\r\n * `onStart` - When the Tween starts playing after a delayed or paused state. This will happen at the same time as `onActive` if the tween has no delay and isn't paused.\r\n * `onLoop` - When a Tween loops, if it has been set to do so. This happens _after_ the `loopDelay` expires, if set.\r\n * `onComplete` - When the Tween finishes playback fully. Never invoked if the Tween is set to repeat infinitely.\r\n * `onStop` - Invoked only if the `Tween.stop` method is called.\r\n * `onPause` - Invoked only if the `Tween.pause` method is called. Not invoked if the Tween Manager is paused.\r\n * `onResume` - Invoked only if the `Tween.resume` method is called. Not invoked if the Tween Manager is resumed.\r\n *\r\n * The following types are also available and are invoked on a `TweenData` level - that is per-object, per-property, being tweened.\r\n *\r\n * `onYoyo` - When a TweenData starts a yoyo. This happens _after_ the `hold` delay expires, if set.\r\n * `onRepeat` - When a TweenData repeats playback. This happens _after_ the `repeatDelay` expires, if set.\r\n * `onUpdate` - When a TweenData updates a property on a source target during playback.\r\n *\r\n * @method Phaser.Tweens.BaseTween#setCallback\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.Tweens.TweenCallbackTypes} type - The type of callback to set. One of: `onActive`, `onComplete`, `onLoop`, `onPause`, `onRepeat`, `onResume`, `onStart`, `onStop`, `onUpdate` or `onYoyo`.\r\n * @param {function} callback - Your callback that will be invoked.\r\n * @param {array} [params] - The parameters to pass to the callback. Pass an empty array if you don't want to define any, but do wish to set the scope.\r\n *\r\n * @return {this} This Tween instance.\r\n */\r\n setCallback: function (type, callback, params)\r\n {\r\n if (params === undefined) { params = []; }\r\n\r\n if (this.callbacks.hasOwnProperty(type))\r\n {\r\n this.callbacks[type] = { func: callback, params: params };\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Sets this Tween state to PENDING.\r\n *\r\n * @method Phaser.Tweens.BaseTween#setPendingState\r\n * @since 3.60.0\r\n */\r\n setPendingState: function ()\r\n {\r\n this.state = TWEEN_CONST.PENDING;\r\n },\r\n\r\n /**\r\n * Sets this Tween state to ACTIVE.\r\n *\r\n * @method Phaser.Tweens.BaseTween#setActiveState\r\n * @since 3.60.0\r\n */\r\n setActiveState: function ()\r\n {\r\n this.state = TWEEN_CONST.ACTIVE;\r\n\r\n this.hasStarted = false;\r\n },\r\n\r\n /**\r\n * Sets this Tween state to LOOP_DELAY.\r\n *\r\n * @method Phaser.Tweens.BaseTween#setLoopDelayState\r\n * @since 3.60.0\r\n */\r\n setLoopDelayState: function ()\r\n {\r\n this.state = TWEEN_CONST.LOOP_DELAY;\r\n },\r\n\r\n /**\r\n * Sets this Tween state to COMPLETE_DELAY.\r\n *\r\n * @method Phaser.Tweens.BaseTween#setCompleteDelayState\r\n * @since 3.60.0\r\n */\r\n setCompleteDelayState: function ()\r\n {\r\n this.state = TWEEN_CONST.COMPLETE_DELAY;\r\n },\r\n\r\n /**\r\n * Sets this Tween state to START_DELAY.\r\n *\r\n * @method Phaser.Tweens.BaseTween#setStartDelayState\r\n * @since 3.60.0\r\n */\r\n setStartDelayState: function ()\r\n {\r\n this.state = TWEEN_CONST.START_DELAY;\r\n\r\n this.countdown = this.startDelay;\r\n\r\n this.hasStarted = false;\r\n },\r\n\r\n /**\r\n * Sets this Tween state to PENDING_REMOVE.\r\n *\r\n * @method Phaser.Tweens.BaseTween#setPendingRemoveState\r\n * @since 3.60.0\r\n */\r\n setPendingRemoveState: function ()\r\n {\r\n this.state = TWEEN_CONST.PENDING_REMOVE;\r\n },\r\n\r\n /**\r\n * Sets this Tween state to REMOVED.\r\n *\r\n * @method Phaser.Tweens.BaseTween#setRemovedState\r\n * @since 3.60.0\r\n */\r\n setRemovedState: function ()\r\n {\r\n this.state = TWEEN_CONST.REMOVED;\r\n },\r\n\r\n /**\r\n * Sets this Tween state to FINISHED.\r\n *\r\n * @method Phaser.Tweens.BaseTween#setFinishedState\r\n * @since 3.60.0\r\n */\r\n setFinishedState: function ()\r\n {\r\n this.state = TWEEN_CONST.FINISHED;\r\n },\r\n\r\n /**\r\n * Sets this Tween state to DESTROYED.\r\n *\r\n * @method Phaser.Tweens.BaseTween#setDestroyedState\r\n * @since 3.60.0\r\n */\r\n setDestroyedState: function ()\r\n {\r\n this.state = TWEEN_CONST.DESTROYED;\r\n },\r\n\r\n /**\r\n * Returns `true` if this Tween has a _current_ state of PENDING, otherwise `false`.\r\n *\r\n * @method Phaser.Tweens.BaseTween#isPending\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if this Tween has a _current_ state of PENDING, otherwise `false`.\r\n */\r\n isPending: function ()\r\n {\r\n return (this.state === TWEEN_CONST.PENDING);\r\n },\r\n\r\n /**\r\n * Returns `true` if this Tween has a _current_ state of ACTIVE, otherwise `false`.\r\n *\r\n * @method Phaser.Tweens.BaseTween#isActive\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if this Tween has a _current_ state of ACTIVE, otherwise `false`.\r\n */\r\n isActive: function ()\r\n {\r\n return (this.state === TWEEN_CONST.ACTIVE);\r\n },\r\n\r\n /**\r\n * Returns `true` if this Tween has a _current_ state of LOOP_DELAY, otherwise `false`.\r\n *\r\n * @method Phaser.Tweens.BaseTween#isLoopDelayed\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if this Tween has a _current_ state of LOOP_DELAY, otherwise `false`.\r\n */\r\n isLoopDelayed: function ()\r\n {\r\n return (this.state === TWEEN_CONST.LOOP_DELAY);\r\n },\r\n\r\n /**\r\n * Returns `true` if this Tween has a _current_ state of COMPLETE_DELAY, otherwise `false`.\r\n *\r\n * @method Phaser.Tweens.BaseTween#isCompleteDelayed\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if this Tween has a _current_ state of COMPLETE_DELAY, otherwise `false`.\r\n */\r\n isCompleteDelayed: function ()\r\n {\r\n return (this.state === TWEEN_CONST.COMPLETE_DELAY);\r\n },\r\n\r\n /**\r\n * Returns `true` if this Tween has a _current_ state of START_DELAY, otherwise `false`.\r\n *\r\n * @method Phaser.Tweens.BaseTween#isStartDelayed\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if this Tween has a _current_ state of START_DELAY, otherwise `false`.\r\n */\r\n isStartDelayed: function ()\r\n {\r\n return (this.state === TWEEN_CONST.START_DELAY);\r\n },\r\n\r\n /**\r\n * Returns `true` if this Tween has a _current_ state of PENDING_REMOVE, otherwise `false`.\r\n *\r\n * @method Phaser.Tweens.BaseTween#isPendingRemove\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if this Tween has a _current_ state of PENDING_REMOVE, otherwise `false`.\r\n */\r\n isPendingRemove: function ()\r\n {\r\n return (this.state === TWEEN_CONST.PENDING_REMOVE);\r\n },\r\n\r\n /**\r\n * Returns `true` if this Tween has a _current_ state of REMOVED, otherwise `false`.\r\n *\r\n * @method Phaser.Tweens.BaseTween#isRemoved\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if this Tween has a _current_ state of REMOVED, otherwise `false`.\r\n */\r\n isRemoved: function ()\r\n {\r\n return (this.state === TWEEN_CONST.REMOVED);\r\n },\r\n\r\n /**\r\n * Returns `true` if this Tween has a _current_ state of FINISHED, otherwise `false`.\r\n *\r\n * @method Phaser.Tweens.BaseTween#isFinished\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if this Tween has a _current_ state of FINISHED, otherwise `false`.\r\n */\r\n isFinished: function ()\r\n {\r\n return (this.state === TWEEN_CONST.FINISHED);\r\n },\r\n\r\n /**\r\n * Returns `true` if this Tween has a _current_ state of DESTROYED, otherwise `false`.\r\n *\r\n * @method Phaser.Tweens.BaseTween#isDestroyed\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if this Tween has a _current_ state of DESTROYED, otherwise `false`.\r\n */\r\n isDestroyed: function ()\r\n {\r\n return (this.state === TWEEN_CONST.DESTROYED);\r\n },\r\n\r\n /**\r\n * Handles the destroy process of this Tween, clearing out the\r\n * Tween Data and resetting the targets. A Tween that has been\r\n * destroyed cannot ever be played or used again.\r\n *\r\n * @method Phaser.Tweens.BaseTween#destroy\r\n * @since 3.60.0\r\n */\r\n destroy: function ()\r\n {\r\n if (this.data)\r\n {\r\n this.data.forEach(function (tweenData)\r\n {\r\n tweenData.destroy();\r\n });\r\n }\r\n\r\n this.removeAllListeners();\r\n\r\n this.callbacks = null;\r\n this.data = null;\r\n this.parent = null;\r\n\r\n this.setDestroyedState();\r\n }\r\n\r\n});\r\n\r\nBaseTween.TYPES = [\r\n 'onActive',\r\n 'onComplete',\r\n 'onLoop',\r\n 'onPause',\r\n 'onRepeat',\r\n 'onResume',\r\n 'onStart',\r\n 'onStop',\r\n 'onUpdate',\r\n 'onYoyo'\r\n];\r\n\r\nmodule.exports = BaseTween;\r\n\n\n/***/ }),\n\n/***/ 95042:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Class = __webpack_require__(83419);\r\nvar Events = __webpack_require__(842);\r\nvar TWEEN_CONST = __webpack_require__(86353);\r\n\r\n/**\r\n * @classdesc\r\n * BaseTweenData is the class that the TweenData and TweenFrameData classes\r\n * extend from. You should not typically instantiate this class directly, but instead\r\n * use it to form your own tween data classes from, should you require it.\r\n *\r\n * Prior to Phaser 3.60 the TweenData was just an object, but was refactored to a class,\r\n * to make it responsible for its own state and updating.\r\n *\r\n * @class BaseTweenData\r\n * @memberof Phaser.Tweens\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Tweens.Tween} tween - The tween this TweenData instance belongs to.\r\n * @param {number} targetIndex - The target index within the Tween targets array.\r\n * @param {string} key - The property of the target to tween.\r\n * @param {Phaser.Types.Tweens.GetEndCallback} getEnd - What the property will be at the END of the Tween.\r\n * @param {Phaser.Types.Tweens.GetStartCallback} getStart - What the property will be at the START of the Tween.\r\n * @param {?Phaser.Types.Tweens.GetActiveCallback} getActive - If not null, is invoked _immediately_ as soon as the TweenData is running, and is set on the target property.\r\n * @param {function} ease - The ease function this tween uses.\r\n * @param {function} delay - Function that returns the time in milliseconds before tween will start.\r\n * @param {number} duration - The duration of the tween in milliseconds.\r\n * @param {boolean} yoyo - Determines whether the tween should return back to its start value after hold has expired.\r\n * @param {number} hold - Function that returns the time in milliseconds the tween will pause before repeating or returning to its starting value if yoyo is set to true.\r\n * @param {number} repeat - Function that returns the number of times to repeat the tween. The tween will always run once regardless, so a repeat value of '1' will play the tween twice.\r\n * @param {number} repeatDelay - Function that returns the time in milliseconds before the repeat will start.\r\n * @param {boolean} flipX - Should toggleFlipX be called when yoyo or repeat happens?\r\n * @param {boolean} flipY - Should toggleFlipY be called when yoyo or repeat happens?\r\n * @param {?function} interpolation - The interpolation function to be used for arrays of data. Defaults to 'null'.\r\n * @param {?number[]} interpolationData - The array of interpolation data to be set. Defaults to 'null'.\r\n */\r\nvar BaseTweenData = new Class({\r\n\r\n initialize:\r\n\r\n function BaseTweenData (tween, targetIndex, delay, duration, yoyo, hold, repeat, repeatDelay, flipX, flipY)\r\n {\r\n /**\r\n * A reference to the Tween that this TweenData instance belongs to.\r\n *\r\n * @name Phaser.Tweens.BaseTweenData#tween\r\n * @type {Phaser.Tweens.Tween}\r\n * @since 3.60.0\r\n */\r\n this.tween = tween;\r\n\r\n /**\r\n * The index of the target within the Tween `targets` array.\r\n *\r\n * @name Phaser.Tweens.BaseTweenData#targetIndex\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.targetIndex = targetIndex;\r\n\r\n /**\r\n * The duration of the tween in milliseconds, excluding any time required\r\n * for yoyo or repeats.\r\n *\r\n * @name Phaser.Tweens.BaseTweenData#duration\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.duration = duration;\r\n\r\n /**\r\n * The total calculated duration, in milliseconds, of this TweenData.\r\n * Factoring in the duration, repeats, delays and yoyos.\r\n *\r\n * @name Phaser.Tweens.BaseTweenData#totalDuration\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.totalDuration = 0;\r\n\r\n /**\r\n * The time, in milliseconds, before this tween will start playing.\r\n *\r\n * This value is generated by the `getDelay` function.\r\n *\r\n * @name Phaser.Tweens.BaseTweenData#delay\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.delay = 0;\r\n\r\n /**\r\n * This function returns the value to be used for `TweenData.delay`.\r\n *\r\n * @name Phaser.Tweens.BaseTweenData#getDelay\r\n * @type {function}\r\n * @since 3.60.0\r\n */\r\n this.getDelay = delay;\r\n\r\n /**\r\n * Will the Tween ease back to its starting values, after reaching the end\r\n * and any `hold` value that may be set?\r\n *\r\n * @name Phaser.Tweens.BaseTweenData#yoyo\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.yoyo = yoyo;\r\n\r\n /**\r\n * The time, in milliseconds, before this tween will start a yoyo to repeat.\r\n *\r\n * @name Phaser.Tweens.BaseTweenData#hold\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.hold = hold;\r\n\r\n /**\r\n * The number of times this tween will repeat.\r\n *\r\n * The tween will always run once regardless of this value,\r\n * so a repeat value of '1' will play the tween twice: I.e. the original\r\n * play-through and then it repeats that once (1).\r\n *\r\n * If this value is set to -1 this tween will repeat forever.\r\n *\r\n * @name Phaser.Tweens.BaseTweenData#repeat\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.repeat = repeat;\r\n\r\n /**\r\n * The time, in milliseconds, before the repeat will start.\r\n *\r\n * @name Phaser.Tweens.BaseTweenData#repeatDelay\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.repeatDelay = repeatDelay;\r\n\r\n /**\r\n * How many repeats are left to run?\r\n *\r\n * @name Phaser.Tweens.BaseTweenData#repeatCounter\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.repeatCounter = 0;\r\n\r\n /**\r\n * If `true` this Tween will call `toggleFlipX` on the Tween target\r\n * whenever it yoyo's or repeats. It will only be called if the target\r\n * has a function matching this name, like most Phaser GameObjects do.\r\n *\r\n * @name Phaser.Tweens.BaseTweenData#flipX\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.flipX = flipX;\r\n\r\n /**\r\n * If `true` this Tween will call `toggleFlipY` on the Tween target\r\n * whenever it yoyo's or repeats. It will only be called if the target\r\n * has a function matching this name, like most Phaser GameObjects do.\r\n *\r\n * @name Phaser.Tweens.BaseTweenData#flipY\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.flipY = flipY;\r\n\r\n /**\r\n * A value between 0 and 1 holding the progress of this TweenData.\r\n *\r\n * @name Phaser.Tweens.BaseTweenData#progress\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.progress = 0;\r\n\r\n /**\r\n * The amount of time, in milliseconds, that has elapsed since this\r\n * TweenData was made active.\r\n *\r\n * @name Phaser.Tweens.BaseTweenData#elapsed\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.elapsed = 0;\r\n\r\n /**\r\n * The state of this TweenData.\r\n *\r\n * @name Phaser.Tweens.BaseTweenData#state\r\n * @type {Phaser.Tweens.StateType}\r\n * @since 3.60.0\r\n */\r\n this.state = 0;\r\n\r\n /**\r\n * Is this Tween Data currently waiting for a countdown to elapse, or not?\r\n *\r\n * @name Phaser.Tweens.BaseTweenData#isCountdown\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.isCountdown = false;\r\n },\r\n\r\n /**\r\n * Returns a reference to the target object belonging to this TweenData.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#getTarget\r\n * @since 3.60.0\r\n *\r\n * @return {object} The target object. Can be any JavaScript object, but is typically a Game Object.\r\n */\r\n getTarget: function ()\r\n {\r\n return this.tween.targets[this.targetIndex];\r\n },\r\n\r\n /**\r\n * Sets this TweenData's target object property to be the given value.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#setTargetValue\r\n * @since 3.60.0\r\n *\r\n * @param {number} [value] - The value to set on the target. If not given, sets it to the last `current` value.\r\n */\r\n setTargetValue: function (value)\r\n {\r\n if (value === undefined) { value = this.current; }\r\n\r\n this.tween.targets[this.targetIndex][this.key] = value;\r\n },\r\n\r\n /**\r\n * Sets this TweenData state to CREATED.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#setCreatedState\r\n * @since 3.60.0\r\n */\r\n setCreatedState: function ()\r\n {\r\n this.state = TWEEN_CONST.CREATED;\r\n this.isCountdown = false;\r\n },\r\n\r\n /**\r\n * Sets this TweenData state to DELAY.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#setDelayState\r\n * @since 3.60.0\r\n */\r\n setDelayState: function ()\r\n {\r\n this.state = TWEEN_CONST.DELAY;\r\n this.isCountdown = true;\r\n },\r\n\r\n /**\r\n * Sets this TweenData state to PENDING_RENDER.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#setPendingRenderState\r\n * @since 3.60.0\r\n */\r\n setPendingRenderState: function ()\r\n {\r\n this.state = TWEEN_CONST.PENDING_RENDER;\r\n this.isCountdown = false;\r\n },\r\n\r\n /**\r\n * Sets this TweenData state to PLAYING_FORWARD.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#setPlayingForwardState\r\n * @since 3.60.0\r\n */\r\n setPlayingForwardState: function ()\r\n {\r\n this.state = TWEEN_CONST.PLAYING_FORWARD;\r\n this.isCountdown = false;\r\n },\r\n\r\n /**\r\n * Sets this TweenData state to PLAYING_BACKWARD.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#setPlayingBackwardState\r\n * @since 3.60.0\r\n */\r\n setPlayingBackwardState: function ()\r\n {\r\n this.state = TWEEN_CONST.PLAYING_BACKWARD;\r\n this.isCountdown = false;\r\n },\r\n\r\n /**\r\n * Sets this TweenData state to HOLD_DELAY.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#setHoldState\r\n * @since 3.60.0\r\n */\r\n setHoldState: function ()\r\n {\r\n this.state = TWEEN_CONST.HOLD_DELAY;\r\n this.isCountdown = true;\r\n },\r\n\r\n /**\r\n * Sets this TweenData state to REPEAT_DELAY.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#setRepeatState\r\n * @since 3.60.0\r\n */\r\n setRepeatState: function ()\r\n {\r\n this.state = TWEEN_CONST.REPEAT_DELAY;\r\n this.isCountdown = true;\r\n },\r\n\r\n /**\r\n * Sets this TweenData state to COMPLETE.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#setCompleteState\r\n * @since 3.60.0\r\n */\r\n setCompleteState: function ()\r\n {\r\n this.state = TWEEN_CONST.COMPLETE;\r\n this.isCountdown = false;\r\n },\r\n\r\n /**\r\n * Returns `true` if this TweenData has a _current_ state of CREATED, otherwise `false`.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#isCreated\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if this TweenData has a _current_ state of CREATED, otherwise `false`.\r\n */\r\n isCreated: function ()\r\n {\r\n return (this.state === TWEEN_CONST.CREATED);\r\n },\r\n\r\n /**\r\n * Returns `true` if this TweenData has a _current_ state of DELAY, otherwise `false`.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#isDelayed\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if this TweenData has a _current_ state of DELAY, otherwise `false`.\r\n */\r\n isDelayed: function ()\r\n {\r\n return (this.state === TWEEN_CONST.DELAY);\r\n },\r\n\r\n /**\r\n * Returns `true` if this TweenData has a _current_ state of PENDING_RENDER, otherwise `false`.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#isPendingRender\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if this TweenData has a _current_ state of PENDING_RENDER, otherwise `false`.\r\n */\r\n isPendingRender: function ()\r\n {\r\n return (this.state === TWEEN_CONST.PENDING_RENDER);\r\n },\r\n\r\n /**\r\n * Returns `true` if this TweenData has a _current_ state of PLAYING_FORWARD, otherwise `false`.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#isPlayingForward\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if this TweenData has a _current_ state of PLAYING_FORWARD, otherwise `false`.\r\n */\r\n isPlayingForward: function ()\r\n {\r\n return (this.state === TWEEN_CONST.PLAYING_FORWARD);\r\n },\r\n\r\n /**\r\n * Returns `true` if this TweenData has a _current_ state of PLAYING_BACKWARD, otherwise `false`.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#isPlayingBackward\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if this TweenData has a _current_ state of PLAYING_BACKWARD, otherwise `false`.\r\n */\r\n isPlayingBackward: function ()\r\n {\r\n return (this.state === TWEEN_CONST.PLAYING_BACKWARD);\r\n },\r\n\r\n /**\r\n * Returns `true` if this TweenData has a _current_ state of HOLD_DELAY, otherwise `false`.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#isHolding\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if this TweenData has a _current_ state of HOLD_DELAY, otherwise `false`.\r\n */\r\n isHolding: function ()\r\n {\r\n return (this.state === TWEEN_CONST.HOLD_DELAY);\r\n },\r\n\r\n /**\r\n * Returns `true` if this TweenData has a _current_ state of REPEAT_DELAY, otherwise `false`.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#isRepeating\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if this TweenData has a _current_ state of REPEAT_DELAY, otherwise `false`.\r\n */\r\n isRepeating: function ()\r\n {\r\n return (this.state === TWEEN_CONST.REPEAT_DELAY);\r\n },\r\n\r\n /**\r\n * Returns `true` if this TweenData has a _current_ state of COMPLETE, otherwise `false`.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#isComplete\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if this TweenData has a _current_ state of COMPLETE, otherwise `false`.\r\n */\r\n isComplete: function ()\r\n {\r\n return (this.state === TWEEN_CONST.COMPLETE);\r\n },\r\n\r\n /**\r\n * Internal method used as part of the playback process that checks if this\r\n * TweenData should yoyo, repeat, or has completed.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#setStateFromEnd\r\n * @fires Phaser.Tweens.Events#TWEEN_REPEAT\r\n * @fires Phaser.Tweens.Events#TWEEN_YOYO\r\n * @since 3.60.0\r\n *\r\n * @param {number} diff - Any extra time that needs to be accounted for in the elapsed and progress values.\r\n */\r\n setStateFromEnd: function (diff)\r\n {\r\n if (this.yoyo)\r\n {\r\n this.onRepeat(diff, true, true);\r\n }\r\n else if (this.repeatCounter > 0)\r\n {\r\n this.onRepeat(diff, true, false);\r\n }\r\n else\r\n {\r\n this.setCompleteState();\r\n }\r\n },\r\n\r\n /**\r\n * Internal method used as part of the playback process that checks if this\r\n * TweenData should repeat or has completed.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#setStateFromStart\r\n * @fires Phaser.Tweens.Events#TWEEN_REPEAT\r\n * @since 3.60.0\r\n *\r\n * @param {number} diff - Any extra time that needs to be accounted for in the elapsed and progress values.\r\n */\r\n setStateFromStart: function (diff)\r\n {\r\n if (this.repeatCounter > 0)\r\n {\r\n this.onRepeat(diff, false);\r\n }\r\n else\r\n {\r\n this.setCompleteState();\r\n }\r\n },\r\n\r\n /**\r\n * Internal method that resets this Tween Data entirely, including the progress and elapsed values.\r\n *\r\n * Called automatically by the parent Tween. Should not be called directly.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#reset\r\n * @since 3.60.0\r\n */\r\n reset: function ()\r\n {\r\n var tween = this.tween;\r\n var totalTargets = tween.totalTargets;\r\n\r\n var targetIndex = this.targetIndex;\r\n var target = tween.targets[targetIndex];\r\n var key = this.key;\r\n\r\n this.progress = 0;\r\n this.elapsed = 0;\r\n\r\n // Function signature: target, key, value, index, total, tween\r\n\r\n this.delay = this.getDelay(target, key, 0, targetIndex, totalTargets, tween);\r\n\r\n this.repeatCounter = (this.repeat === -1) ? TWEEN_CONST.MAX : this.repeat;\r\n\r\n this.setPendingRenderState();\r\n\r\n // calcDuration:\r\n\r\n // Set t1 (duration + hold + yoyo)\r\n var t1 = this.duration + this.hold;\r\n\r\n if (this.yoyo)\r\n {\r\n t1 += this.duration;\r\n }\r\n\r\n // Set t2 (repeatDelay + duration + hold + yoyo)\r\n var t2 = t1 + this.repeatDelay;\r\n\r\n // Total Duration\r\n this.totalDuration = this.delay + t1;\r\n\r\n if (this.repeat === -1)\r\n {\r\n this.totalDuration += (t2 * TWEEN_CONST.MAX);\r\n tween.isInfinite = true;\r\n }\r\n else if (this.repeat > 0)\r\n {\r\n this.totalDuration += (t2 * this.repeat);\r\n }\r\n\r\n if (this.totalDuration > tween.duration)\r\n {\r\n // Set the longest duration in the parent Tween\r\n tween.duration = this.totalDuration;\r\n }\r\n\r\n if (this.delay < tween.startDelay)\r\n {\r\n tween.startDelay = this.delay;\r\n }\r\n\r\n if (this.delay > 0)\r\n {\r\n this.elapsed = this.delay;\r\n\r\n this.setDelayState();\r\n }\r\n },\r\n\r\n /**\r\n * Internal method that handles repeating or yoyo'ing this TweenData.\r\n *\r\n * Called automatically by `setStateFromStart` and `setStateFromEnd`.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#onRepeat\r\n * @fires Phaser.Tweens.Events#TWEEN_REPEAT\r\n * @fires Phaser.Tweens.Events#TWEEN_YOYO\r\n * @since 3.60.0\r\n *\r\n * @param {number} diff - Any extra time that needs to be accounted for in the elapsed and progress values.\r\n * @param {boolean} setStart - Set the TweenData start values?\r\n * @param {boolean} isYoyo - Is this call a Yoyo check?\r\n */\r\n onRepeat: function (diff, setStart, isYoyo)\r\n {\r\n var tween = this.tween;\r\n var totalTargets = tween.totalTargets;\r\n\r\n var targetIndex = this.targetIndex;\r\n var target = tween.targets[targetIndex];\r\n var key = this.key;\r\n\r\n var isTweenData = (key !== 'texture');\r\n\r\n // Account for any extra time we got from the previous frame\r\n this.elapsed = diff;\r\n this.progress = diff / this.duration;\r\n\r\n if (this.flipX)\r\n {\r\n target.toggleFlipX();\r\n }\r\n\r\n if (this.flipY)\r\n {\r\n target.toggleFlipY();\r\n }\r\n\r\n if (isTweenData && (setStart || isYoyo))\r\n {\r\n this.start = this.getStartValue(target, key, this.start, targetIndex, totalTargets, tween);\r\n }\r\n\r\n if (isYoyo)\r\n {\r\n this.setPlayingBackwardState();\r\n\r\n this.dispatchEvent(Events.TWEEN_YOYO, 'onYoyo');\r\n\r\n return;\r\n }\r\n\r\n this.repeatCounter--;\r\n\r\n // Custom\r\n if (isTweenData)\r\n {\r\n this.end = this.getEndValue(target, key, this.start, targetIndex, totalTargets, tween);\r\n }\r\n\r\n // Delay?\r\n if (this.repeatDelay > 0)\r\n {\r\n this.elapsed = this.repeatDelay - diff;\r\n\r\n if (isTweenData)\r\n {\r\n this.current = this.start;\r\n\r\n target[key] = this.current;\r\n }\r\n\r\n this.setRepeatState();\r\n }\r\n else\r\n {\r\n this.setPlayingForwardState();\r\n\r\n this.dispatchEvent(Events.TWEEN_REPEAT, 'onRepeat');\r\n }\r\n },\r\n\r\n /**\r\n * Immediately destroys this TweenData, nulling of all its references.\r\n *\r\n * @method Phaser.Tweens.BaseTweenData#destroy\r\n * @since 3.60.0\r\n */\r\n destroy: function ()\r\n {\r\n this.tween = null;\r\n this.getDelay = null;\r\n this.setCompleteState();\r\n }\r\n\r\n});\r\n\r\nmodule.exports = BaseTweenData;\r\n\n\n/***/ }),\n\n/***/ 69902:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @typedef {object} Phaser.Types.Tweens.TweenConfigDefaults\r\n * @since 3.0.0\r\n *\r\n * @property {(object|object[])} targets - The object, or an array of objects, to run the tween on.\r\n * @property {number} [delay=0] - The number of milliseconds to delay before the tween will start.\r\n * @property {number} [duration=1000] - The duration of the tween in milliseconds.\r\n * @property {string} [ease='Power0'] - The easing equation to use for the tween.\r\n * @property {array} [easeParams] - Optional easing parameters.\r\n * @property {number} [hold=0] - The number of milliseconds to hold the tween for before yoyo'ing.\r\n * @property {number} [repeat=0] - The number of times to repeat the tween.\r\n * @property {number} [repeatDelay=0] - The number of milliseconds to pause before a tween will repeat.\r\n * @property {boolean} [yoyo=false] - Should the tween complete, then reverse the values incrementally to get back to the starting tween values? The reverse tweening will also take `duration` milliseconds to complete.\r\n * @property {boolean} [flipX=false] - Horizontally flip the target of the Tween when it completes (before it yoyos, if set to do so). Only works for targets that support the `flipX` property.\r\n * @property {boolean} [flipY=false] - Vertically flip the target of the Tween when it completes (before it yoyos, if set to do so). Only works for targets that support the `flipY` property.\r\n * @property {boolean} [persist=false] - Retain the tween within the Tween Manager, even after playback completes?\r\n * @property {function} [interpolation=null] - The interpolation function to use for array-based tween values.\r\n */\r\n\r\nvar TWEEN_DEFAULTS = {\r\n targets: null,\r\n delay: 0,\r\n duration: 1000,\r\n ease: 'Power0',\r\n easeParams: null,\r\n hold: 0,\r\n repeat: 0,\r\n repeatDelay: 0,\r\n yoyo: false,\r\n flipX: false,\r\n flipY: false,\r\n persist: false,\r\n interpolation: null\r\n};\r\n\r\nmodule.exports = TWEEN_DEFAULTS;\r\n\n\n/***/ }),\n\n/***/ 81076:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// RESERVED properties that a Tween config object uses\r\n\r\n// completeDelay: The time the tween will wait before the onComplete event is dispatched once it has completed\r\n// delay: The time the tween will wait before it first starts\r\n// duration: The duration of the tween\r\n// ease: The ease function used by the tween\r\n// easeParams: The parameters to go with the ease function (if any)\r\n// flipX: flip X the GameObject on tween end\r\n// flipY: flip Y the GameObject on tween end\r\n// hold: The time the tween will pause before running a yoyo\r\n// loop: The time the tween will pause before starting either a yoyo or returning to the start for a repeat\r\n// loopDelay:\r\n// paused: Does the tween start in a paused state, or playing?\r\n// props: The properties being tweened by the tween\r\n// repeat: The number of times the tween will repeat itself (a value of 1 means the tween will play twice, as it repeated once)\r\n// repeatDelay: The time the tween will pause for before starting a repeat. The tween holds in the start state.\r\n// targets: The targets the tween is updating.\r\n// yoyo: boolean - Does the tween reverse itself (yoyo) when it reaches the end?\r\n\r\nmodule.exports = [\r\n 'callbackScope',\r\n 'completeDelay',\r\n 'delay',\r\n 'duration',\r\n 'ease',\r\n 'easeParams',\r\n 'flipX',\r\n 'flipY',\r\n 'hold',\r\n 'interpolation',\r\n 'loop',\r\n 'loopDelay',\r\n 'onActive',\r\n 'onActiveParams',\r\n 'onComplete',\r\n 'onCompleteParams',\r\n 'onLoop',\r\n 'onLoopParams',\r\n 'onPause',\r\n 'onPauseParams',\r\n 'onRepeat',\r\n 'onRepeatParams',\r\n 'onResume',\r\n 'onResumeParams',\r\n 'onStart',\r\n 'onStartParams',\r\n 'onStop',\r\n 'onStopParams',\r\n 'onUpdate',\r\n 'onUpdateParams',\r\n 'onYoyo',\r\n 'onYoyoParams',\r\n 'paused',\r\n 'persist',\r\n 'props',\r\n 'repeat',\r\n 'repeatDelay',\r\n 'targets',\r\n 'yoyo'\r\n];\r\n\n\n/***/ }),\n\n/***/ 86081:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BaseTween = __webpack_require__(70402);\r\nvar Class = __webpack_require__(83419);\r\nvar Events = __webpack_require__(842);\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\nvar MATH_CONST = __webpack_require__(36383);\r\nvar TWEEN_CONST = __webpack_require__(86353);\r\nvar TweenData = __webpack_require__(48177);\r\nvar TweenFrameData = __webpack_require__(42220);\r\n\r\n/**\r\n * @classdesc\r\n * A Tween is able to manipulate the properties of one or more objects to any given value, based\r\n * on a duration and type of ease. They are rarely instantiated directly and instead should be\r\n * created via the TweenManager.\r\n *\r\n * Please note that a Tween will not manipulate any property that begins with an underscore.\r\n *\r\n * @class Tween\r\n * @memberof Phaser.Tweens\r\n * @extends Phaser.Tweens.BaseTween\r\n * @constructor\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Tweens.TweenManager} parent - A reference to the Tween Manager that owns this Tween.\r\n * @param {object[]} targets - An array of targets to be tweened.\r\n */\r\nvar Tween = new Class({\r\n\r\n Extends: BaseTween,\r\n\r\n initialize:\r\n\r\n function Tween (parent, targets)\r\n {\r\n BaseTween.call(this, parent);\r\n\r\n /**\r\n * An array of references to the target/s this Tween is operating on.\r\n *\r\n * This array should not be manipulated outside of this Tween.\r\n *\r\n * @name Phaser.Tweens.Tween#targets\r\n * @type {object[]}\r\n * @since 3.0.0\r\n */\r\n this.targets = targets;\r\n\r\n /**\r\n * Cached target total.\r\n *\r\n * Used internally and should be treated as read-only.\r\n *\r\n * This is not necessarily the same as the data total.\r\n *\r\n * @name Phaser.Tweens.Tween#totalTargets\r\n * @type {number}\r\n * @since 3.0.0\r\n */\r\n this.totalTargets = targets.length;\r\n\r\n /**\r\n * Is this Tween currently seeking?\r\n *\r\n * This boolean is toggled in the `Tween.seek` method.\r\n *\r\n * When a tween is seeking, by default it will not dispatch any events or callbacks.\r\n *\r\n * @name Phaser.Tweens.Tween#isSeeking\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.19.0\r\n */\r\n this.isSeeking = false;\r\n\r\n /**\r\n * Does this Tween loop or repeat infinitely?\r\n *\r\n * @name Phaser.Tweens.Tween#isInfinite\r\n * @type {boolean}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.isInfinite = false;\r\n\r\n /**\r\n * Elapsed time in milliseconds of this run through of the Tween.\r\n *\r\n * @name Phaser.Tweens.Tween#elapsed\r\n * @type {number}\r\n * @default 0\r\n * @since 3.60.0\r\n */\r\n this.elapsed = 0;\r\n\r\n /**\r\n * Total elapsed time in milliseconds of the entire Tween, including looping.\r\n *\r\n * @name Phaser.Tweens.Tween#totalElapsed\r\n * @type {number}\r\n * @default 0\r\n * @since 3.60.0\r\n */\r\n this.totalElapsed = 0;\r\n\r\n /**\r\n * Time in milliseconds for the whole Tween to play through once, excluding loop amounts and loop delays.\r\n *\r\n * This value is set in the `Tween.initTweenData` method and is zero before that point.\r\n *\r\n * @name Phaser.Tweens.Tween#duration\r\n * @type {number}\r\n * @default 0\r\n * @since 3.60.0\r\n */\r\n this.duration = 0;\r\n\r\n /**\r\n * Value between 0 and 1. The amount of progress through the Tween, excluding loops.\r\n *\r\n * @name Phaser.Tweens.Tween#progress\r\n * @type {number}\r\n * @default 0\r\n * @since 3.60.0\r\n */\r\n this.progress = 0;\r\n\r\n /**\r\n * Time in milliseconds it takes for the Tween to complete a full playthrough (including looping)\r\n *\r\n * For an infinite Tween, this value is a very large integer.\r\n *\r\n * @name Phaser.Tweens.Tween#totalDuration\r\n * @type {number}\r\n * @default 0\r\n * @since 3.60.0\r\n */\r\n this.totalDuration = 0;\r\n\r\n /**\r\n * The amount of progress that has been made through the entire Tween, including looping.\r\n *\r\n * A value between 0 and 1.\r\n *\r\n * @name Phaser.Tweens.Tween#totalProgress\r\n * @type {number}\r\n * @default 0\r\n * @since 3.60.0\r\n */\r\n this.totalProgress = 0;\r\n },\r\n\r\n /**\r\n * Adds a new TweenData to this Tween. Typically, this method is called\r\n * automatically by the TweenBuilder, however you can also invoke it\r\n * yourself.\r\n *\r\n * @method Phaser.Tweens.Tween#add\r\n * @since 3.60.0\r\n *\r\n * @param {number} targetIndex - The target index within the Tween targets array.\r\n * @param {string} key - The property of the target to tween.\r\n * @param {Phaser.Types.Tweens.GetEndCallback} getEnd - What the property will be at the END of the Tween.\r\n * @param {Phaser.Types.Tweens.GetStartCallback} getStart - What the property will be at the START of the Tween.\r\n * @param {?Phaser.Types.Tweens.GetActiveCallback} getActive - If not null, is invoked _immediately_ as soon as the TweenData is running, and is set on the target property.\r\n * @param {function} ease - The ease function this tween uses.\r\n * @param {function} delay - Function that returns the time in milliseconds before tween will start.\r\n * @param {number} duration - The duration of the tween in milliseconds.\r\n * @param {boolean} yoyo - Determines whether the tween should return back to its start value after hold has expired.\r\n * @param {number} hold - Function that returns the time in milliseconds the tween will pause before repeating or returning to its starting value if yoyo is set to true.\r\n * @param {number} repeat - Function that returns the number of times to repeat the tween. The tween will always run once regardless, so a repeat value of '1' will play the tween twice.\r\n * @param {number} repeatDelay - Function that returns the time in milliseconds before the repeat will start.\r\n * @param {boolean} flipX - Should toggleFlipX be called when yoyo or repeat happens?\r\n * @param {boolean} flipY - Should toggleFlipY be called when yoyo or repeat happens?\r\n * @param {?function} interpolation - The interpolation function to be used for arrays of data. Defaults to 'null'.\r\n * @param {?number[]} interpolationData - The array of interpolation data to be set. Defaults to 'null'.\r\n *\r\n * @return {Phaser.Tweens.TweenData} The TweenData instance that was added.\r\n */\r\n add: function (targetIndex, key, getEnd, getStart, getActive, ease, delay, duration, yoyo, hold, repeat, repeatDelay, flipX, flipY, interpolation, interpolationData)\r\n {\r\n var tweenData = new TweenData(this, targetIndex, key, getEnd, getStart, getActive, ease, delay, duration, yoyo, hold, repeat, repeatDelay, flipX, flipY, interpolation, interpolationData);\r\n\r\n this.totalData = this.data.push(tweenData);\r\n\r\n return tweenData;\r\n },\r\n\r\n /**\r\n * Adds a new TweenFrameData to this Tween. Typically, this method is called\r\n * automatically by the TweenBuilder, however you can also invoke it\r\n * yourself.\r\n *\r\n * @method Phaser.Tweens.Tween#addFrame\r\n * @since 3.60.0\r\n *\r\n * @param {number} targetIndex - The target index within the Tween targets array.\r\n * @param {string} texture - The texture to set on the target at the end of the tween.\r\n * @param {string|number} frame - The texture frame to set on the target at the end of the tween.\r\n * @param {function} delay - Function that returns the time in milliseconds before tween will start.\r\n * @param {number} duration - The duration of the tween in milliseconds.\r\n * @param {number} hold - Function that returns the time in milliseconds the tween will pause before repeating or returning to its starting value if yoyo is set to true.\r\n * @param {number} repeat - Function that returns the number of times to repeat the tween. The tween will always run once regardless, so a repeat value of '1' will play the tween twice.\r\n * @param {number} repeatDelay - Function that returns the time in milliseconds before the repeat will start.\r\n * @param {boolean} flipX - Should toggleFlipX be called when yoyo or repeat happens?\r\n * @param {boolean} flipY - Should toggleFlipY be called when yoyo or repeat happens?\r\n *\r\n * @return {Phaser.Tweens.TweenFrameData} The TweenFrameData instance that was added.\r\n */\r\n addFrame: function (targetIndex, texture, frame, delay, duration, hold, repeat, repeatDelay, flipX, flipY)\r\n {\r\n var tweenData = new TweenFrameData(this, targetIndex, texture, frame, delay, duration, hold, repeat, repeatDelay, flipX, flipY);\r\n\r\n this.totalData = this.data.push(tweenData);\r\n\r\n return tweenData;\r\n },\r\n\r\n /**\r\n * Returns the current value of the specified Tween Data.\r\n *\r\n * If this Tween has been destroyed, it will return `null`.\r\n *\r\n * @method Phaser.Tweens.Tween#getValue\r\n * @since 3.0.0\r\n *\r\n * @param {number} [index=0] - The Tween Data to return the value from.\r\n *\r\n * @return {number} The value of the requested Tween Data, or `null` if this Tween has been destroyed.\r\n */\r\n getValue: function (index)\r\n {\r\n if (index === undefined) { index = 0; }\r\n\r\n var value = null;\r\n\r\n if (this.data)\r\n {\r\n value = this.data[index].current;\r\n }\r\n\r\n return value;\r\n },\r\n\r\n /**\r\n * See if this Tween is currently acting upon the given target.\r\n *\r\n * @method Phaser.Tweens.Tween#hasTarget\r\n * @since 3.0.0\r\n *\r\n * @param {object} target - The target to check against this Tween.\r\n *\r\n * @return {boolean} `true` if the given target is a target of this Tween, otherwise `false`.\r\n */\r\n hasTarget: function (target)\r\n {\r\n return (this.targets && this.targets.indexOf(target) !== -1);\r\n },\r\n\r\n /**\r\n * Updates the 'end' value of the given property across all matching targets, as long\r\n * as this Tween is currently playing (either forwards or backwards).\r\n *\r\n * Calling this does not adjust the duration of the Tween, or the current progress.\r\n *\r\n * You can optionally tell it to set the 'start' value to be the current value.\r\n *\r\n * If this Tween is in any other state other than playing then calling this method has no effect.\r\n *\r\n * Additionally, if the Tween repeats, is reset, or is seeked, it will revert to the original\r\n * starting and ending values.\r\n *\r\n * @method Phaser.Tweens.Tween#updateTo\r\n * @since 3.0.0\r\n *\r\n * @param {string} key - The property to set the new value for. You cannot update the 'texture' property via this method.\r\n * @param {number} value - The new value of the property.\r\n * @param {boolean} [startToCurrent=false] - Should this change set the start value to be the current value?\r\n *\r\n * @return {this} This Tween instance.\r\n */\r\n updateTo: function (key, value, startToCurrent)\r\n {\r\n if (startToCurrent === undefined) { startToCurrent = false; }\r\n\r\n if (key !== 'texture')\r\n {\r\n for (var i = 0; i < this.totalData; i++)\r\n {\r\n var tweenData = this.data[i];\r\n\r\n if (tweenData.key === key && (tweenData.isPlayingForward() || tweenData.isPlayingBackward()))\r\n {\r\n tweenData.end = value;\r\n\r\n if (startToCurrent)\r\n {\r\n tweenData.start = tweenData.current;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Restarts the Tween from the beginning.\r\n *\r\n * If the Tween has already finished and been destroyed, restarting it will throw an error.\r\n *\r\n * If you wish to restart the Tween from a specific point, use the `Tween.seek` method instead.\r\n *\r\n * @method Phaser.Tweens.Tween#restart\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Tween instance.\r\n */\r\n restart: function ()\r\n {\r\n switch (this.state)\r\n {\r\n case TWEEN_CONST.REMOVED:\r\n case TWEEN_CONST.FINISHED:\r\n this.seek();\r\n this.parent.makeActive(this);\r\n break;\r\n\r\n case TWEEN_CONST.PENDING:\r\n case TWEEN_CONST.PENDING_REMOVE:\r\n this.parent.reset(this);\r\n break;\r\n\r\n case TWEEN_CONST.DESTROYED:\r\n console.warn('Cannot restart destroyed Tween', this);\r\n break;\r\n\r\n default:\r\n this.seek();\r\n break;\r\n }\r\n\r\n this.paused = false;\r\n this.hasStarted = false;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal method that advances to the next state of the Tween during playback.\r\n *\r\n * @method Phaser.Tweens.Tween#nextState\r\n * @fires Phaser.Tweens.Events#TWEEN_COMPLETE\r\n * @fires Phaser.Tweens.Events#TWEEN_LOOP\r\n * @since 3.0.0\r\n *\r\n * @return {boolean} `true` if this Tween has completed, otherwise `false`.\r\n */\r\n nextState: function ()\r\n {\r\n if (this.loopCounter > 0)\r\n {\r\n this.elapsed = 0;\r\n this.progress = 0;\r\n this.loopCounter--;\r\n\r\n this.initTweenData(true);\r\n\r\n if (this.loopDelay > 0)\r\n {\r\n this.countdown = this.loopDelay;\r\n\r\n this.setLoopDelayState();\r\n }\r\n else\r\n {\r\n this.setActiveState();\r\n\r\n this.dispatchEvent(Events.TWEEN_LOOP, 'onLoop');\r\n }\r\n }\r\n else if (this.completeDelay > 0)\r\n {\r\n this.countdown = this.completeDelay;\r\n\r\n this.setCompleteDelayState();\r\n }\r\n else\r\n {\r\n this.onCompleteHandler();\r\n\r\n return true;\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Internal method that handles this tween completing and starting\r\n * the next tween in the chain, if any.\r\n *\r\n * @method Phaser.Tweens.Tween#onCompleteHandler\r\n * @since 3.60.0\r\n */\r\n onCompleteHandler: function ()\r\n {\r\n this.progress = 1;\r\n this.totalProgress = 1;\r\n\r\n BaseTween.prototype.onCompleteHandler.call(this);\r\n },\r\n\r\n /**\r\n * Starts a Tween playing.\r\n *\r\n * You only need to call this method if you have configured the tween to be paused on creation.\r\n *\r\n * If the Tween is already playing, calling this method again will have no effect. If you wish to\r\n * restart the Tween, use `Tween.restart` instead.\r\n *\r\n * Calling this method after the Tween has completed will start the Tween playing again from the beginning.\r\n * This is the same as calling `Tween.seek(0)` and then `Tween.play()`.\r\n *\r\n * @method Phaser.Tweens.Tween#play\r\n * @since 3.0.0\r\n *\r\n * @return {this} This Tween instance.\r\n */\r\n play: function ()\r\n {\r\n if (this.isDestroyed())\r\n {\r\n console.warn('Cannot play destroyed Tween', this);\r\n\r\n return this;\r\n }\r\n\r\n if (this.isPendingRemove() || this.isFinished())\r\n {\r\n this.seek();\r\n }\r\n\r\n this.paused = false;\r\n\r\n this.setActiveState();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Seeks to a specific point in the Tween.\r\n *\r\n * The given amount is a value in milliseconds that represents how far into the Tween\r\n * you wish to seek, based on the start of the Tween.\r\n *\r\n * Note that the seek amount takes the entire duration of the Tween into account, including delays, loops and repeats.\r\n * For example, a Tween that lasts for 2 seconds, but that loops 3 times, would have a total duration of 6 seconds,\r\n * so seeking to 3000 ms would seek to the Tweens half-way point based on its _entire_ duration.\r\n *\r\n * Prior to Phaser 3.60 this value was given as a number between 0 and 1 and didn't\r\n * work for Tweens had an infinite repeat. This new method works for all Tweens.\r\n *\r\n * Seeking works by resetting the Tween to its initial values and then iterating through the Tween at `delta`\r\n * jumps per step. The longer the Tween, the longer this can take. If you need more precision you can\r\n * reduce the delta value. If you need a faster seek, you can increase it. When the Tween is\r\n * reset it will refresh the starting and ending values. If these are coming from a dynamic function,\r\n * or a random array, it will be called for each seek.\r\n *\r\n * While seeking the Tween will _not_ emit any of its events or callbacks unless\r\n * the 3rd parameter is set to `true`.\r\n *\r\n * If this Tween is paused, seeking will not change this fact. It will advance the Tween\r\n * to the desired point and then pause it again.\r\n *\r\n * @method Phaser.Tweens.Tween#seek\r\n * @since 3.0.0\r\n *\r\n * @param {number} [amount=0] - The number of milliseconds to seek into the Tween from the beginning.\r\n * @param {number} [delta=16.6] - The size of each step when seeking through the Tween. A higher value completes faster but at the cost of less precision.\r\n * @param {boolean} [emit=false] - While seeking, should the Tween emit any of its events or callbacks? The default is 'false', i.e. to seek silently.\r\n *\r\n * @return {this} This Tween instance.\r\n */\r\n seek: function (amount, delta, emit)\r\n {\r\n if (amount === undefined) { amount = 0; }\r\n if (delta === undefined) { delta = 16.6; }\r\n if (emit === undefined) { emit = false; }\r\n\r\n if (this.isDestroyed())\r\n {\r\n console.warn('Cannot seek destroyed Tween', this);\r\n\r\n return this;\r\n }\r\n\r\n if (!emit)\r\n {\r\n this.isSeeking = true;\r\n }\r\n\r\n this.reset(true);\r\n\r\n this.initTweenData(true);\r\n\r\n this.setActiveState();\r\n\r\n this.dispatchEvent(Events.TWEEN_ACTIVE, 'onActive');\r\n\r\n var isPaused = this.paused;\r\n\r\n this.paused = false;\r\n\r\n if (amount > 0)\r\n {\r\n var iterations = Math.floor(amount / delta);\r\n var remainder = amount - (iterations * delta);\r\n\r\n for (var i = 0; i < iterations; i++)\r\n {\r\n this.update(delta);\r\n }\r\n\r\n if (remainder > 0)\r\n {\r\n this.update(remainder);\r\n }\r\n }\r\n\r\n this.paused = isPaused;\r\n\r\n this.isSeeking = false;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Initialises all of the Tween Data and Tween values.\r\n *\r\n * This is called automatically and should not typically be invoked directly.\r\n *\r\n * @method Phaser.Tweens.Tween#initTweenData\r\n * @since 3.60.0\r\n *\r\n * @param {boolean} [isSeeking=false] - Is the Tween Data being reset as part of a seek?\r\n */\r\n initTweenData: function (isSeeking)\r\n {\r\n if (isSeeking === undefined) { isSeeking = false; }\r\n\r\n // These two values are updated directly during TweenData.reset:\r\n this.duration = 0;\r\n this.startDelay = MATH_CONST.MAX_SAFE_INTEGER;\r\n\r\n var data = this.data;\r\n\r\n for (var i = 0; i < this.totalData; i++)\r\n {\r\n data[i].reset(isSeeking);\r\n }\r\n\r\n // Clamp duration to ensure we never divide by zero\r\n this.duration = Math.max(this.duration, 0.01);\r\n\r\n var duration = this.duration;\r\n var completeDelay = this.completeDelay;\r\n var loopCounter = this.loopCounter;\r\n var loopDelay = this.loopDelay;\r\n\r\n if (loopCounter > 0)\r\n {\r\n this.totalDuration = duration + completeDelay + ((duration + loopDelay) * loopCounter);\r\n }\r\n else\r\n {\r\n this.totalDuration = duration + completeDelay;\r\n }\r\n },\r\n\r\n /**\r\n * Resets this Tween ready for another play-through.\r\n *\r\n * This is called automatically from the Tween Manager, or from the parent TweenChain,\r\n * and should not typically be invoked directly.\r\n *\r\n * If you wish to restart this Tween, use the `Tween.restart` or `Tween.seek` methods instead.\r\n *\r\n * @method Phaser.Tweens.Tween#reset\r\n * @fires Phaser.Tweens.Events#TWEEN_ACTIVE\r\n * @since 3.60.0\r\n *\r\n * @param {boolean} [skipInit=false] - Skip resetting the TweenData and Active State?\r\n *\r\n * @return {this} This Tween instance.\r\n */\r\n reset: function (skipInit)\r\n {\r\n if (skipInit === undefined) { skipInit = false; }\r\n\r\n this.elapsed = 0;\r\n this.totalElapsed = 0;\r\n this.progress = 0;\r\n this.totalProgress = 0;\r\n this.loopCounter = this.loop;\r\n\r\n if (this.loop === -1)\r\n {\r\n this.isInfinite = true;\r\n this.loopCounter = TWEEN_CONST.MAX;\r\n }\r\n\r\n if (!skipInit)\r\n {\r\n this.initTweenData();\r\n\r\n this.setActiveState();\r\n\r\n this.dispatchEvent(Events.TWEEN_ACTIVE, 'onActive');\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal method that advances the Tween based on the time values.\r\n *\r\n * @method Phaser.Tweens.Tween#update\r\n * @fires Phaser.Tweens.Events#TWEEN_COMPLETE\r\n * @fires Phaser.Tweens.Events#TWEEN_LOOP\r\n * @fires Phaser.Tweens.Events#TWEEN_START\r\n * @since 3.0.0\r\n *\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n *\r\n * @return {boolean} Returns `true` if this Tween has finished and should be removed from the Tween Manager, otherwise returns `false`.\r\n */\r\n update: function (delta)\r\n {\r\n if (this.isPendingRemove() || this.isDestroyed())\r\n {\r\n return true;\r\n }\r\n else if (this.paused || this.isFinished())\r\n {\r\n return false;\r\n }\r\n\r\n delta *= this.timeScale * this.parent.timeScale;\r\n\r\n if (this.isLoopDelayed())\r\n {\r\n this.updateLoopCountdown(delta);\r\n\r\n return false;\r\n }\r\n else if (this.isCompleteDelayed())\r\n {\r\n this.updateCompleteDelay(delta);\r\n\r\n return false;\r\n }\r\n else if (!this.hasStarted)\r\n {\r\n this.startDelay -= delta;\r\n\r\n if (this.startDelay <= 0)\r\n {\r\n this.hasStarted = true;\r\n\r\n this.dispatchEvent(Events.TWEEN_START, 'onStart');\r\n\r\n // Reset the delta so we always start progress from zero\r\n delta = 0;\r\n }\r\n }\r\n\r\n var stillRunning = false;\r\n\r\n if (this.isActive())\r\n {\r\n var data = this.data;\r\n\r\n for (var i = 0; i < this.totalData; i++)\r\n {\r\n if (data[i].update(delta))\r\n {\r\n stillRunning = true;\r\n }\r\n }\r\n }\r\n\r\n this.elapsed += delta;\r\n this.progress = Math.min(this.elapsed / this.duration, 1);\r\n\r\n this.totalElapsed += delta;\r\n this.totalProgress = Math.min(this.totalElapsed / this.totalDuration, 1);\r\n\r\n // Anything still running? If not, we're done\r\n if (!stillRunning)\r\n {\r\n // This calls onCompleteHandler if this tween is over\r\n this.nextState();\r\n }\r\n\r\n // if nextState called onCompleteHandler then we're ready to be removed, unless we persist\r\n var remove = this.isPendingRemove();\r\n\r\n if (remove && this.persist)\r\n {\r\n this.setFinishedState();\r\n\r\n remove = false;\r\n }\r\n\r\n return remove;\r\n },\r\n\r\n /**\r\n * Moves this Tween forward by the given amount of milliseconds.\r\n *\r\n * It will only advance through the current loop of the Tween. For example, if the\r\n * Tween is set to repeat or yoyo, it can only fast forward through a single\r\n * section of the sequence. Use `Tween.seek` for more complex playhead control.\r\n *\r\n * If the Tween is paused or has already finished, calling this will have no effect.\r\n *\r\n * @method Phaser.Tweens.Tween#forward\r\n * @since 3.60.0\r\n *\r\n * @param {number} ms - The number of milliseconds to advance this Tween by.\r\n *\r\n * @return {this} This Tween instance.\r\n */\r\n forward: function (ms)\r\n {\r\n this.update(ms);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Moves this Tween backward by the given amount of milliseconds.\r\n *\r\n * It will only rewind through the current loop of the Tween. For example, if the\r\n * Tween is set to repeat or yoyo, it can only fast forward through a single\r\n * section of the sequence. Use `Tween.seek` for more complex playhead control.\r\n *\r\n * If the Tween is paused or has already finished, calling this will have no effect.\r\n *\r\n * @method Phaser.Tweens.Tween#rewind\r\n * @since 3.60.0\r\n *\r\n * @param {number} ms - The number of milliseconds to rewind this Tween by.\r\n *\r\n * @return {this} This Tween instance.\r\n */\r\n rewind: function (ms)\r\n {\r\n this.update(-ms);\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal method that will emit a Tween based Event and invoke the given callback.\r\n *\r\n * @method Phaser.Tweens.Tween#dispatchEvent\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.Tweens.Event} event - The Event to be dispatched.\r\n * @param {Phaser.Types.Tweens.TweenCallbackTypes} [callback] - The name of the callback to be invoked. Can be `null` or `undefined` to skip invocation.\r\n */\r\n dispatchEvent: function (event, callback)\r\n {\r\n if (!this.isSeeking)\r\n {\r\n this.emit(event, this, this.targets);\r\n\r\n var handler = this.callbacks[callback];\r\n\r\n if (handler)\r\n {\r\n handler.func.apply(this.callbackScope, [ this, this.targets ].concat(handler.params));\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Handles the destroy process of this Tween, clearing out the\r\n * Tween Data and resetting the targets. A Tween that has been\r\n * destroyed cannot ever be played or used again.\r\n *\r\n * @method Phaser.Tweens.Tween#destroy\r\n * @since 3.60.0\r\n */\r\n destroy: function ()\r\n {\r\n BaseTween.prototype.destroy.call(this);\r\n\r\n this.targets = null;\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Creates a new Tween object.\r\n *\r\n * Note: This method will only be available if Tweens have been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#tween\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Tweens.TweenBuilderConfig|Phaser.Types.Tweens.TweenChainBuilderConfig|Phaser.Tweens.Tween|Phaser.Tweens.TweenChain} config - A Tween Configuration object, or a Tween or TweenChain instance.\r\n *\r\n * @return {Phaser.Tweens.Tween} The Tween that was created.\r\n */\r\nGameObjectFactory.register('tween', function (config)\r\n{\r\n return this.scene.sys.tweens.add(config);\r\n});\r\n\r\n/**\r\n * Creates a new Tween object and returns it.\r\n *\r\n * Note: This method will only be available if Tweens have been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#tween\r\n * @since 3.0.0\r\n *\r\n * @param {Phaser.Types.Tweens.TweenBuilderConfig|Phaser.Types.Tweens.TweenChainBuilderConfig|Phaser.Tweens.Tween|Phaser.Tweens.TweenChain} config - A Tween Configuration object, or a Tween or TweenChain instance.\r\n *\r\n * @return {Phaser.Tweens.Tween} The Tween that was created.\r\n */\r\nGameObjectCreator.register('tween', function (config)\r\n{\r\n return this.scene.sys.tweens.create(config);\r\n});\r\n\r\nmodule.exports = Tween;\r\n\n\n/***/ }),\n\n/***/ 43960:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar ArrayRemove = __webpack_require__(72905);\r\nvar BaseTween = __webpack_require__(70402);\r\nvar Class = __webpack_require__(83419);\r\nvar Events = __webpack_require__(842);\r\nvar GameObjectCreator = __webpack_require__(44603);\r\nvar GameObjectFactory = __webpack_require__(39429);\r\nvar TWEEN_CONST = __webpack_require__(86353);\r\n\r\n/**\r\n * @classdesc\r\n * A TweenChain is a special type of Tween that allows you to create a sequence of Tweens, chained to one-another,\r\n * and add them to the Tween Manager.\r\n *\r\n * The tweens are played in order, from start to finish. You can optionally set the chain\r\n * to repeat as many times as you like. Once the chain has finished playing, or repeating if set,\r\n * all tweens in the chain will be destroyed automatically. To override this, set the 'persist'\r\n * argument to 'true'.\r\n *\r\n * Playback will start immediately unless the _first_ Tween has been configured to be paused.\r\n *\r\n * Please note that Tweens will not manipulate any target property that begins with an underscore.\r\n *\r\n * @class TweenChain\r\n * @memberof Phaser.Tweens\r\n * @extends Phaser.Tweens.BaseTween\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {(Phaser.Tweens.TweenManager|Phaser.Tweens.TweenChain)} parent - A reference to the Tween Manager, or TweenChain, that owns this TweenChain.\r\n */\r\nvar TweenChain = new Class({\r\n\r\n Extends: BaseTween,\r\n\r\n initialize:\r\n\r\n function TweenChain (parent)\r\n {\r\n BaseTween.call(this, parent);\r\n\r\n /**\r\n * A reference to the Tween that this TweenChain is currently playing.\r\n *\r\n * @name Phaser.Tweens.TweenChain#currentTween\r\n * @type {Phaser.Tweens.Tween}\r\n * @since 3.60.0\r\n */\r\n this.currentTween = null;\r\n\r\n /**\r\n * A reference to the data array index of the currently playing tween.\r\n *\r\n * @name Phaser.Tweens.TweenChain#currentIndex\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.currentIndex = 0;\r\n },\r\n\r\n /**\r\n * Prepares this TweenChain for playback.\r\n *\r\n * Called automatically by the TweenManager. Should not be called directly.\r\n *\r\n * @method Phaser.Tweens.TweenChain#init\r\n * @fires Phaser.Tweens.Events#TWEEN_ACTIVE\r\n * @since 3.60.0\r\n *\r\n * @return {this} This TweenChain instance.\r\n */\r\n init: function ()\r\n {\r\n this.loopCounter = (this.loop === -1) ? TWEEN_CONST.MAX : this.loop;\r\n\r\n this.setCurrentTween(0);\r\n\r\n if (this.startDelay > 0 && !this.isStartDelayed())\r\n {\r\n this.setStartDelayState();\r\n }\r\n else\r\n {\r\n this.setActiveState();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Create a sequence of Tweens, chained to one-another, and add them to this Tween Manager.\r\n *\r\n * The tweens are played in order, from start to finish. You can optionally set the chain\r\n * to repeat as many times as you like. Once the chain has finished playing, or repeating if set,\r\n * all tweens in the chain will be destroyed automatically. To override this, set the 'persist'\r\n * argument to 'true'.\r\n *\r\n * Playback will start immediately unless the _first_ Tween has been configured to be paused.\r\n *\r\n * Please note that Tweens will not manipulate any target property that begins with an underscore.\r\n *\r\n * @method Phaser.Tweens.TweenChain#add\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.Tweens.TweenBuilderConfig[]|object[]} tweens - An array of Tween configuration objects for the Tweens in this chain.\r\n *\r\n * @return {this} This TweenChain instance.\r\n */\r\n add: function (tweens)\r\n {\r\n var newTweens = this.parent.create(tweens);\r\n\r\n if (!Array.isArray(newTweens))\r\n {\r\n newTweens = [ newTweens ];\r\n }\r\n\r\n var data = this.data;\r\n\r\n for (var i = 0; i < newTweens.length; i++)\r\n {\r\n var tween = newTweens[i];\r\n\r\n tween.parent = this;\r\n\r\n data.push(tween.reset());\r\n }\r\n\r\n this.totalData = data.length;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Removes the given Tween from this Tween Chain.\r\n *\r\n * The removed tween is _not_ destroyed. It is just removed from this Tween Chain.\r\n *\r\n * If the given Tween is currently playing then the chain will automatically move\r\n * to the next tween in the chain. If there are no more tweens, this chain will complete.\r\n *\r\n * @method Phaser.Tweens.TweenChain#remove\r\n * @since 3.60.0\r\n * @override\r\n *\r\n * @param {Phaser.Tweens.Tween} tween - The Tween to be removed.\r\n *\r\n * @return {this} This Tween Chain instance.\r\n */\r\n remove: function (tween)\r\n {\r\n // Remove it immediately\r\n ArrayRemove(this.data, tween);\r\n\r\n tween.setRemovedState();\r\n\r\n if (tween === this.currentTween)\r\n {\r\n this.nextTween();\r\n }\r\n\r\n this.totalData = this.data.length;\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * See if any of the tweens in this Tween Chain is currently acting upon the given target.\r\n *\r\n * @method Phaser.Tweens.TweenChain#hasTarget\r\n * @since 3.60.0\r\n *\r\n * @param {object} target - The target to check against this TweenChain.\r\n *\r\n * @return {boolean} `true` if the given target is a target of this TweenChain, otherwise `false`.\r\n */\r\n hasTarget: function (target)\r\n {\r\n var data = this.data;\r\n\r\n for (var i = 0; i < this.totalData; i++)\r\n {\r\n if (data[i].hasTarget(target))\r\n {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Restarts the TweenChain from the beginning.\r\n *\r\n * If this TweenChain was configured to have a loop, or start delay, those\r\n * are reset to their initial values as well. It will also dispatch the\r\n * `onActive` callback and event again.\r\n *\r\n * @method Phaser.Tweens.TweenChain#restart\r\n * @since 3.60.0\r\n *\r\n * @return {this} This TweenChain instance.\r\n */\r\n restart: function ()\r\n {\r\n if (this.isDestroyed())\r\n {\r\n console.warn('Cannot restart destroyed TweenChain', this);\r\n\r\n return this;\r\n }\r\n\r\n if (this.isRemoved())\r\n {\r\n this.parent.makeActive(this);\r\n }\r\n\r\n this.resetTweens();\r\n\r\n this.paused = false;\r\n\r\n return this.init();\r\n },\r\n\r\n /**\r\n * Resets the given Tween.\r\n *\r\n * It will seek to position 0 and playback will start on the next frame.\r\n *\r\n * @method Phaser.Tweens.TweenChain#reset\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Tweens.Tween} tween - The Tween to be reset.\r\n *\r\n * @return {this} This TweenChain instance.\r\n */\r\n reset: function (tween)\r\n {\r\n tween.seek();\r\n\r\n tween.setActiveState();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Re-initialises the given Tween and sets it to the Active state.\r\n *\r\n * @method Phaser.Tweens.TweenChain#makeActive\r\n * @since 3.60.0\r\n * @override\r\n *\r\n * @param {Phaser.Tweens.Tween} tween - The Tween to check.\r\n *\r\n * @return {this} This TweenChain instance.\r\n */\r\n makeActive: function (tween)\r\n {\r\n tween.reset();\r\n\r\n tween.setActiveState();\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal method that advances to the next state of the TweenChain playback.\r\n *\r\n * @method Phaser.Tweens.TweenChain#nextState\r\n * @fires Phaser.Tweens.Events#TWEEN_COMPLETE\r\n * @fires Phaser.Tweens.Events#TWEEN_LOOP\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if this TweenChain has completed, otherwise `false`.\r\n */\r\n nextState: function ()\r\n {\r\n if (this.loopCounter > 0)\r\n {\r\n this.loopCounter--;\r\n\r\n this.resetTweens();\r\n\r\n if (this.loopDelay > 0)\r\n {\r\n this.countdown = this.loopDelay;\r\n\r\n this.setLoopDelayState();\r\n }\r\n else\r\n {\r\n this.setActiveState();\r\n\r\n this.dispatchEvent(Events.TWEEN_LOOP, 'onLoop');\r\n }\r\n }\r\n else if (this.completeDelay > 0)\r\n {\r\n this.countdown = this.completeDelay;\r\n\r\n this.setCompleteDelayState();\r\n }\r\n else\r\n {\r\n this.onCompleteHandler();\r\n\r\n return true;\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Starts this TweenChain playing.\r\n *\r\n * You only need to call this method if you have configured this TweenChain to be paused on creation.\r\n *\r\n * If the TweenChain is already playing, calling this method again will have no effect. If you wish to\r\n * restart the chain, use `TweenChain.restart` instead.\r\n *\r\n * Calling this method after the TweenChain has completed will start the chain playing again from the beginning.\r\n *\r\n * @method Phaser.Tweens.TweenChain#play\r\n * @since 3.60.0\r\n *\r\n * @return {this} This TweenChain instance.\r\n */\r\n play: function ()\r\n {\r\n if (this.isDestroyed())\r\n {\r\n console.warn('Cannot play destroyed TweenChain', this);\r\n\r\n return this;\r\n }\r\n\r\n if (this.isPendingRemove() || this.isPending())\r\n {\r\n this.resetTweens();\r\n }\r\n\r\n this.paused = false;\r\n\r\n if (this.startDelay > 0 && !this.isStartDelayed())\r\n {\r\n this.setStartDelayState();\r\n }\r\n else\r\n {\r\n this.setActiveState();\r\n }\r\n\r\n return this;\r\n },\r\n\r\n /**\r\n * Internal method that resets all of the Tweens and the current index pointer.\r\n *\r\n * @method Phaser.Tweens.TweenChain#resetTweens\r\n * @since 3.60.0\r\n */\r\n resetTweens: function ()\r\n {\r\n var data = this.data;\r\n var total = this.totalData;\r\n\r\n for (var i = 0; i < total; i++)\r\n {\r\n data[i].reset(false);\r\n }\r\n\r\n this.setCurrentTween(0);\r\n },\r\n\r\n /**\r\n * Internal method that advances the TweenChain based on the time values.\r\n *\r\n * @method Phaser.Tweens.TweenChain#update\r\n * @fires Phaser.Tweens.Events#TWEEN_COMPLETE\r\n * @fires Phaser.Tweens.Events#TWEEN_LOOP\r\n * @fires Phaser.Tweens.Events#TWEEN_START\r\n * @since 3.60.0\r\n *\r\n * @param {number} delta - The delta time in ms since the last frame. This is a smoothed and capped value based on the FPS rate.\r\n *\r\n * @return {boolean} Returns `true` if this TweenChain has finished and should be removed from the Tween Manager, otherwise returns `false`.\r\n */\r\n update: function (delta)\r\n {\r\n if (this.isPendingRemove() || this.isDestroyed())\r\n {\r\n return true;\r\n }\r\n else if (this.isFinished() || this.paused)\r\n {\r\n return false;\r\n }\r\n\r\n // The TweenChain.timeScale is applied within Tween.update, so doesn't need including here\r\n delta *= this.parent.timeScale;\r\n\r\n if (this.isLoopDelayed())\r\n {\r\n this.updateLoopCountdown(delta);\r\n }\r\n else if (this.isCompleteDelayed())\r\n {\r\n this.updateCompleteDelay(delta);\r\n }\r\n else if (this.isStartDelayed())\r\n {\r\n // Reset the delta so we always start progress from zero\r\n delta = this.updateStartCountdown(delta);\r\n }\r\n\r\n var remove = false;\r\n\r\n if (this.isActive() && this.currentTween)\r\n {\r\n if (this.currentTween.update(delta))\r\n {\r\n // This tween has finished playback, so move to the next one\r\n if (this.nextTween())\r\n {\r\n this.nextState();\r\n }\r\n }\r\n\r\n // If nextState called onCompleteHandler then it is ready to be removed, unless persist is set to true\r\n remove = this.isPendingRemove();\r\n\r\n if (remove && this.persist)\r\n {\r\n this.setFinishedState();\r\n\r\n remove = false;\r\n }\r\n }\r\n\r\n return remove;\r\n },\r\n\r\n /**\r\n * Immediately advances to the next Tween in the chain.\r\n *\r\n * This is typically called internally, but can be used if you need to\r\n * advance playback for some reason.\r\n *\r\n * @method Phaser.Tweens.TweenChain#nextTween\r\n * @since 3.60.0\r\n *\r\n * @return {boolean} `true` if there are no more Tweens in the chain, otherwise `false`.\r\n */\r\n nextTween: function ()\r\n {\r\n this.currentIndex++;\r\n\r\n if (this.currentIndex === this.totalData)\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n this.setCurrentTween(this.currentIndex);\r\n }\r\n\r\n return false;\r\n },\r\n\r\n /**\r\n * Sets the current active Tween to the given index, based on its\r\n * entry in the TweenChain data array.\r\n *\r\n * @method Phaser.Tweens.TweenChain#setCurrentTween\r\n * @since 3.60.0\r\n *\r\n * @param {number} index - The index of the Tween to be made current.\r\n */\r\n setCurrentTween: function (index)\r\n {\r\n this.currentIndex = index;\r\n\r\n this.currentTween = this.data[index];\r\n\r\n this.currentTween.setActiveState();\r\n },\r\n\r\n /**\r\n * Internal method that will emit a TweenChain based Event and invoke the given callback.\r\n *\r\n * @method Phaser.Tweens.TweenChain#dispatchEvent\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.Tweens.Event} event - The Event to be dispatched.\r\n * @param {Phaser.Types.Tweens.TweenCallbackTypes} [callback] - The name of the callback to be invoked. Can be `null` or `undefined` to skip invocation.\r\n */\r\n dispatchEvent: function (event, callback)\r\n {\r\n this.emit(event, this);\r\n\r\n var handler = this.callbacks[callback];\r\n\r\n if (handler)\r\n {\r\n handler.func.apply(this.callbackScope, [ this ].concat(handler.params));\r\n }\r\n },\r\n\r\n /**\r\n * Immediately destroys this TweenChain, nulling of all its references.\r\n *\r\n * @method Phaser.Tweens.TweenChain#destroy\r\n * @since 3.60.0\r\n */\r\n destroy: function ()\r\n {\r\n BaseTween.prototype.destroy.call(this);\r\n\r\n this.currentTween = null;\r\n }\r\n\r\n});\r\n\r\n/**\r\n * Creates a new TweenChain object and adds it to the Tween Manager.\r\n *\r\n * Note: This method will only be available if Tweens have been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectFactory#tweenchain\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.Tweens.TweenBuilderConfig|object} config - The TweenChain configuration.\r\n *\r\n * @return {Phaser.Tweens.TweenChain} The TweenChain that was created.\r\n */\r\nGameObjectFactory.register('tweenchain', function (config)\r\n{\r\n return this.scene.sys.tweens.chain(config);\r\n});\r\n\r\n/**\r\n * Creates a new TweenChain object and returns it, without adding it to the Tween Manager.\r\n *\r\n * Note: This method will only be available if Tweens have been built into Phaser.\r\n *\r\n * @method Phaser.GameObjects.GameObjectCreator#tweenchain\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.Tweens.TweenBuilderConfig|object} config - The TweenChain configuration.\r\n *\r\n * @return {Phaser.Tweens.TweenChain} The TweenChain that was created.\r\n */\r\nGameObjectCreator.register('tweenchain', function (config)\r\n{\r\n return this.scene.sys.tweens.create(config);\r\n});\r\n\r\nmodule.exports = TweenChain;\r\n\n\n/***/ }),\n\n/***/ 48177:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BaseTweenData = __webpack_require__(95042);\r\nvar Clamp = __webpack_require__(45319);\r\nvar Class = __webpack_require__(83419);\r\nvar Events = __webpack_require__(842);\r\n\r\n/**\r\n * @classdesc\r\n * The TweenData is a class that contains a single target and property that is being tweened.\r\n *\r\n * Tweens create TweenData instances when they are created, with one TweenData instance per\r\n * target, per property. A Tween can own multiple TweenData instances, but a TweenData only\r\n * ever belongs to a single Tween.\r\n *\r\n * You should not typically create these yourself, but rather use the TweenBuilder,\r\n * or the `Tween.add` method.\r\n *\r\n * Prior to Phaser 3.60 the TweenData was just an object, but was refactored to a class,\r\n * to make it responsible for its own state and updating.\r\n *\r\n * @class TweenData\r\n * @memberof Phaser.Tweens\r\n * @extends Phaser.Tweens.BaseTweenData\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Tweens.Tween} tween - The tween this TweenData instance belongs to.\r\n * @param {number} targetIndex - The target index within the Tween targets array.\r\n * @param {string} key - The property of the target to tween.\r\n * @param {Phaser.Types.Tweens.GetEndCallback} getEnd - What the property will be at the END of the Tween.\r\n * @param {Phaser.Types.Tweens.GetStartCallback} getStart - What the property will be at the START of the Tween.\r\n * @param {?Phaser.Types.Tweens.GetActiveCallback} getActive - If not null, is invoked _immediately_ as soon as the TweenData is running, and is set on the target property.\r\n * @param {function} ease - The ease function this tween uses.\r\n * @param {function} delay - Function that returns the time in milliseconds before tween will start.\r\n * @param {number} duration - The duration of the tween in milliseconds.\r\n * @param {boolean} yoyo - Determines whether the tween should return back to its start value after hold has expired.\r\n * @param {number} hold - Function that returns the time in milliseconds the tween will pause before repeating or returning to its starting value if yoyo is set to true.\r\n * @param {number} repeat - Function that returns the number of times to repeat the tween. The tween will always run once regardless, so a repeat value of '1' will play the tween twice.\r\n * @param {number} repeatDelay - Function that returns the time in milliseconds before the repeat will start.\r\n * @param {boolean} flipX - Should toggleFlipX be called when yoyo or repeat happens?\r\n * @param {boolean} flipY - Should toggleFlipY be called when yoyo or repeat happens?\r\n * @param {?function} interpolation - The interpolation function to be used for arrays of data. Defaults to 'null'.\r\n * @param {?number[]} interpolationData - The array of interpolation data to be set. Defaults to 'null'.\r\n */\r\nvar TweenData = new Class({\r\n\r\n Extends: BaseTweenData,\r\n\r\n initialize:\r\n\r\n function TweenData (tween, targetIndex, key, getEnd, getStart, getActive, ease, delay, duration, yoyo, hold, repeat, repeatDelay, flipX, flipY, interpolation, interpolationData)\r\n {\r\n BaseTweenData.call(this, tween, targetIndex, delay, duration, yoyo, hold, repeat, repeatDelay, flipX, flipY);\r\n\r\n /**\r\n * The property of the target to be tweened.\r\n *\r\n * @name Phaser.Tweens.TweenData#key\r\n * @type {string}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.key = key;\r\n\r\n /**\r\n * A function that returns what to set the target property to,\r\n * the moment the TweenData is invoked.\r\n *\r\n * This is called when this TweenData is initialised or reset.\r\n *\r\n * @name Phaser.Tweens.TweenData#getActiveValue\r\n * @type {?Phaser.Types.Tweens.GetActiveCallback}\r\n * @since 3.60.0\r\n */\r\n this.getActiveValue = getActive;\r\n\r\n /**\r\n * A function that returns what to set the target property to\r\n * at the end of the tween.\r\n *\r\n * This is called when the tween starts playing, after any initial\r\n * start delay, or if the tween is reset, or is set to repeat.\r\n *\r\n * @name Phaser.Tweens.TweenData#getEndValue\r\n * @type {Phaser.Types.Tweens.GetEndCallback}\r\n * @since 3.60.0\r\n */\r\n this.getEndValue = getEnd;\r\n\r\n /**\r\n * A function that returns what to set the target property to\r\n * at the start of the tween.\r\n *\r\n * This is called when the tween starts playing, after any initial\r\n * start delay, or if the tween is reset, or is set to repeat.\r\n *\r\n * @name Phaser.Tweens.TweenData#getStartValue\r\n * @type {Phaser.Types.Tweens.GetStartCallback}\r\n * @since 3.60.0\r\n */\r\n this.getStartValue = getStart;\r\n\r\n /**\r\n * The ease function this Tween uses to calculate the target value.\r\n *\r\n * @name Phaser.Tweens.TweenData#ease\r\n * @type {function}\r\n * @since 3.60.0\r\n */\r\n this.ease = ease;\r\n\r\n /**\r\n * The targets starting value, as returned by `getStartValue`.\r\n *\r\n * @name Phaser.Tweens.TweenData#start\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.start = 0;\r\n\r\n /**\r\n * The target value from the previous step.\r\n *\r\n * @name Phaser.Tweens.TweenData#previous\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.previous = 0;\r\n\r\n /**\r\n * The targets current value, as recorded in the most recent step.\r\n *\r\n * @name Phaser.Tweens.TweenData#current\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.current = 0;\r\n\r\n /**\r\n * The targets ending value, as returned by `getEndValue`.\r\n *\r\n * @name Phaser.Tweens.TweenData#end\r\n * @type {number}\r\n * @since 3.60.0\r\n */\r\n this.end = 0;\r\n\r\n /**\r\n * The interpolation function to be used for arrays of data.\r\n *\r\n * @name Phaser.Tweens.TweenData#interpolation\r\n * @type {?function}\r\n * @default null\r\n * @since 3.60.0\r\n */\r\n this.interpolation = interpolation;\r\n\r\n /**\r\n * The array of data to interpolate, if interpolation is being used.\r\n *\r\n * @name Phaser.Tweens.TweenData#interpolationData\r\n * @type {?number[]}\r\n * @since 3.60.0\r\n */\r\n this.interpolationData = interpolationData;\r\n },\r\n\r\n /**\r\n * Internal method that resets this Tween Data entirely, including the progress and elapsed values.\r\n *\r\n * Called automatically by the parent Tween. Should not be called directly.\r\n *\r\n * @method Phaser.Tweens.TweenData#reset\r\n * @since 3.60.0\r\n *\r\n * @param {boolean} [isSeeking=false] - Is the Tween Data being reset as part of a Tween seek?\r\n */\r\n reset: function (isSeeking)\r\n {\r\n BaseTweenData.prototype.reset.call(this);\r\n\r\n var target = this.tween.targets[this.targetIndex];\r\n var key = this.key;\r\n\r\n if (isSeeking)\r\n {\r\n target[key] = this.start;\r\n }\r\n\r\n this.start = 0;\r\n this.previous = 0;\r\n this.current = 0;\r\n this.end = 0;\r\n\r\n if (this.getActiveValue)\r\n {\r\n target[key] = this.getActiveValue(target, key, 0);\r\n }\r\n },\r\n\r\n /**\r\n * Internal method that advances this TweenData based on the delta value given.\r\n *\r\n * @method Phaser.Tweens.TweenData#update\r\n * @fires Phaser.Tweens.Events#TWEEN_UPDATE\r\n * @fires Phaser.Tweens.Events#TWEEN_REPEAT\r\n * @since 3.60.0\r\n *\r\n * @param {number} delta - The elapsed delta time in ms.\r\n *\r\n * @return {boolean} `true` if this TweenData is still playing, or `false` if it has finished entirely.\r\n */\r\n update: function (delta)\r\n {\r\n var tween = this.tween;\r\n var totalTargets = tween.totalTargets;\r\n\r\n var targetIndex = this.targetIndex;\r\n var target = tween.targets[targetIndex];\r\n var key = this.key;\r\n\r\n // Bail out if we don't have a target to act upon\r\n if (!target)\r\n {\r\n this.setCompleteState();\r\n\r\n return false;\r\n }\r\n\r\n if (this.isCountdown)\r\n {\r\n this.elapsed -= delta;\r\n\r\n if (this.elapsed <= 0)\r\n {\r\n this.elapsed = 0;\r\n\r\n delta = 0;\r\n\r\n if (this.isDelayed())\r\n {\r\n this.setPendingRenderState();\r\n }\r\n else if (this.isRepeating())\r\n {\r\n this.setPlayingForwardState();\r\n\r\n this.dispatchEvent(Events.TWEEN_REPEAT, 'onRepeat');\r\n }\r\n else if (this.isHolding())\r\n {\r\n this.setStateFromEnd(0);\r\n }\r\n }\r\n }\r\n\r\n // All of the above have the ability to change the state, so put this in its own check\r\n\r\n if (this.isPendingRender())\r\n {\r\n this.start = this.getStartValue(target, key, target[key], targetIndex, totalTargets, tween);\r\n\r\n this.end = this.getEndValue(target, key, this.start, targetIndex, totalTargets, tween);\r\n\r\n this.current = this.start;\r\n\r\n target[key] = this.start;\r\n\r\n this.setPlayingForwardState();\r\n\r\n return true;\r\n }\r\n\r\n var forward = this.isPlayingForward();\r\n var backward = this.isPlayingBackward();\r\n\r\n if (forward || backward)\r\n {\r\n var elapsed = this.elapsed;\r\n var duration = this.duration;\r\n var diff = 0;\r\n var complete = false;\r\n\r\n elapsed += delta;\r\n\r\n if (elapsed >= duration)\r\n {\r\n diff = elapsed - duration;\r\n elapsed = duration;\r\n complete = true;\r\n }\r\n else if (elapsed < 0)\r\n {\r\n elapsed = 0;\r\n }\r\n\r\n var progress = Clamp(elapsed / duration, 0, 1);\r\n\r\n this.elapsed = elapsed;\r\n this.progress = progress;\r\n this.previous = this.current;\r\n\r\n if (complete)\r\n {\r\n if (forward)\r\n {\r\n this.current = this.end;\r\n\r\n target[key] = this.end;\r\n\r\n if (this.hold > 0)\r\n {\r\n this.elapsed = this.hold;\r\n\r\n this.setHoldState();\r\n }\r\n else\r\n {\r\n this.setStateFromEnd(diff);\r\n }\r\n }\r\n else\r\n {\r\n this.current = this.start;\r\n\r\n target[key] = this.start;\r\n\r\n this.setStateFromStart(diff);\r\n }\r\n }\r\n else\r\n {\r\n if (!forward)\r\n {\r\n progress = 1 - progress;\r\n }\r\n\r\n var v = this.ease(progress);\r\n\r\n if (this.interpolation)\r\n {\r\n this.current = this.interpolation(this.interpolationData, v);\r\n }\r\n else\r\n {\r\n this.current = this.start + ((this.end - this.start) * v);\r\n }\r\n\r\n target[key] = this.current;\r\n }\r\n\r\n this.dispatchEvent(Events.TWEEN_UPDATE, 'onUpdate');\r\n }\r\n\r\n // Return TRUE if this TweenData still playing, otherwise FALSE\r\n return !this.isComplete();\r\n },\r\n\r\n /**\r\n * Internal method that will emit a TweenData based Event on the\r\n * parent Tween and also invoke the given callback, if provided.\r\n *\r\n * @method Phaser.Tweens.TweenData#dispatchEvent\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.Tweens.Event} event - The Event to be dispatched.\r\n * @param {Phaser.Types.Tweens.TweenCallbackTypes} [callback] - The name of the callback to be invoked. Can be `null` or `undefined` to skip invocation.\r\n */\r\n dispatchEvent: function (event, callback)\r\n {\r\n var tween = this.tween;\r\n\r\n if (!tween.isSeeking)\r\n {\r\n var target = tween.targets[this.targetIndex];\r\n var key = this.key;\r\n\r\n var current = this.current;\r\n var previous = this.previous;\r\n\r\n tween.emit(event, tween, key, target, current, previous);\r\n\r\n var handler = tween.callbacks[callback];\r\n\r\n if (handler)\r\n {\r\n handler.func.apply(tween.callbackScope, [ tween, target, key, current, previous ].concat(handler.params));\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Immediately destroys this TweenData, nulling of all its references.\r\n *\r\n * @method Phaser.Tweens.TweenData#destroy\r\n * @since 3.60.0\r\n */\r\n destroy: function ()\r\n {\r\n BaseTweenData.prototype.destroy.call(this);\r\n\r\n this.getActiveValue = null;\r\n this.getEndValue = null;\r\n this.getStartValue = null;\r\n this.ease = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = TweenData;\r\n\n\n/***/ }),\n\n/***/ 42220:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar BaseTweenData = __webpack_require__(95042);\r\nvar Clamp = __webpack_require__(45319);\r\nvar Class = __webpack_require__(83419);\r\nvar Events = __webpack_require__(842);\r\n\r\n/**\r\n * @classdesc\r\n * The TweenFrameData is a class that contains a single target that will change the texture frame\r\n * at the conclusion of the Tween.\r\n *\r\n * TweenFrameData instances are typically created by the TweenBuilder automatically, when it\r\n * detects the presence of a 'texture' property as the key being tweened.\r\n *\r\n * A Tween can own multiple TweenFrameData instances, but a TweenFrameData only\r\n * ever belongs to a single Tween.\r\n *\r\n * You should not typically create these yourself, but rather use the TweenBuilder,\r\n * or the `Tween.addFrame` method.\r\n *\r\n * @class TweenFrameData\r\n * @memberof Phaser.Tweens\r\n * @extends Phaser.Tweens.BaseTweenData\r\n * @constructor\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Tweens.Tween} tween - The tween this TweenData instance belongs to.\r\n * @param {number} targetIndex - The target index within the Tween targets array.\r\n * @param {string} texture - The texture key to set at the end of this tween.\r\n * @param {(string|number)} frame - The texture frame to set at the end of this tween.\r\n * @param {function} delay - Function that returns the time in milliseconds before tween will start.\r\n * @param {number} duration - The duration of the tween in milliseconds.\r\n * @param {number} hold - Function that returns the time in milliseconds the tween will pause before repeating or returning to its starting value if yoyo is set to true.\r\n * @param {number} repeat - Function that returns the number of times to repeat the tween. The tween will always run once regardless, so a repeat value of '1' will play the tween twice.\r\n * @param {number} repeatDelay - Function that returns the time in milliseconds before the repeat will start.\r\n * @param {boolean} flipX - Should toggleFlipX be called when yoyo or repeat happens?\r\n * @param {boolean} flipY - Should toggleFlipY be called when yoyo or repeat happens?\r\n */\r\nvar TweenFrameData = new Class({\r\n\r\n Extends: BaseTweenData,\r\n\r\n initialize:\r\n\r\n function TweenFrameData (tween, targetIndex, texture, frame, delay, duration, hold, repeat, repeatDelay, flipX, flipY)\r\n {\r\n BaseTweenData.call(this, tween, targetIndex, delay, duration, false, hold, repeat, repeatDelay, flipX, flipY);\r\n\r\n /**\r\n * The property of the target to be tweened.\r\n *\r\n * Always 'texture' for a TweenFrameData object.\r\n *\r\n * @name Phaser.Tweens.TweenFrameData#key\r\n * @type {string}\r\n * @readonly\r\n * @since 3.60.0\r\n */\r\n this.key = 'texture';\r\n\r\n /**\r\n * The texture to be set at the start of the tween.\r\n *\r\n * @name Phaser.Tweens.TweenFrameData#startTexture\r\n * @type {string}\r\n * @since 3.60.0\r\n */\r\n this.startTexture = null;\r\n\r\n /**\r\n * The texture to be set at the end of the tween.\r\n *\r\n * @name Phaser.Tweens.TweenFrameData#endTexture\r\n * @type {string}\r\n * @since 3.60.0\r\n */\r\n this.endTexture = texture;\r\n\r\n /**\r\n * The frame to be set at the start of the tween.\r\n *\r\n * @name Phaser.Tweens.TweenFrameData#startFrame\r\n * @type {(string|number)}\r\n * @since 3.60.0\r\n */\r\n this.startFrame = null;\r\n\r\n /**\r\n * The frame to be set at the end of the tween.\r\n *\r\n * @name Phaser.Tweens.TweenFrameData#endFrame\r\n * @type {(string|number)}\r\n * @since 3.60.0\r\n */\r\n this.endFrame = frame;\r\n\r\n /**\r\n * Will the Tween ease back to its starting values, after reaching the end\r\n * and any `hold` value that may be set?\r\n *\r\n * @name Phaser.Tweens.TweenFrameData#yoyo\r\n * @type {boolean}\r\n * @since 3.60.0\r\n */\r\n this.yoyo = (repeat !== 0) ? true : false;\r\n },\r\n\r\n /**\r\n * Internal method that resets this Tween Data entirely, including the progress and elapsed values.\r\n *\r\n * Called automatically by the parent Tween. Should not be called directly.\r\n *\r\n * @method Phaser.Tweens.TweenFrameData#reset\r\n * @since 3.60.0\r\n *\r\n * @param {boolean} [isSeeking=false] - Is the Tween Data being reset as part of a Tween seek?\r\n */\r\n reset: function (isSeeking)\r\n {\r\n BaseTweenData.prototype.reset.call(this);\r\n\r\n var target = this.tween.targets[this.targetIndex];\r\n\r\n if (!this.startTexture)\r\n {\r\n this.startTexture = target.texture.key;\r\n this.startFrame = target.frame.name;\r\n }\r\n\r\n if (isSeeking)\r\n {\r\n target.setTexture(this.startTexture, this.startFrame);\r\n }\r\n },\r\n\r\n /**\r\n * Internal method that advances this TweenData based on the delta value given.\r\n *\r\n * @method Phaser.Tweens.TweenFrameData#update\r\n * @fires Phaser.Tweens.Events#TWEEN_UPDATE\r\n * @fires Phaser.Tweens.Events#TWEEN_REPEAT\r\n * @since 3.60.0\r\n *\r\n * @param {number} delta - The elapsed delta time in ms.\r\n *\r\n * @return {boolean} `true` if this TweenData is still playing, or `false` if it has finished entirely.\r\n */\r\n update: function (delta)\r\n {\r\n var tween = this.tween;\r\n var targetIndex = this.targetIndex;\r\n var target = tween.targets[targetIndex];\r\n\r\n // Bail out if we don't have a target to act upon\r\n if (!target)\r\n {\r\n this.setCompleteState();\r\n\r\n return false;\r\n }\r\n\r\n if (this.isCountdown)\r\n {\r\n this.elapsed -= delta;\r\n\r\n if (this.elapsed <= 0)\r\n {\r\n this.elapsed = 0;\r\n\r\n delta = 0;\r\n\r\n if (this.isDelayed())\r\n {\r\n this.setPendingRenderState();\r\n }\r\n else if (this.isRepeating())\r\n {\r\n this.setPlayingForwardState();\r\n\r\n this.dispatchEvent(Events.TWEEN_REPEAT, 'onRepeat');\r\n }\r\n else if (this.isHolding())\r\n {\r\n this.setStateFromEnd(0);\r\n }\r\n }\r\n }\r\n\r\n // All of the above have the ability to change the state, so put this in its own check\r\n\r\n if (this.isPendingRender())\r\n {\r\n if (this.startTexture)\r\n {\r\n target.setTexture(this.startTexture, this.startFrame);\r\n }\r\n\r\n this.setPlayingForwardState();\r\n\r\n return true;\r\n }\r\n\r\n var forward = this.isPlayingForward();\r\n var backward = this.isPlayingBackward();\r\n\r\n if (forward || backward)\r\n {\r\n var elapsed = this.elapsed;\r\n var duration = this.duration;\r\n var diff = 0;\r\n var complete = false;\r\n\r\n elapsed += delta;\r\n\r\n if (elapsed >= duration)\r\n {\r\n diff = elapsed - duration;\r\n elapsed = duration;\r\n complete = true;\r\n }\r\n else if (elapsed < 0)\r\n {\r\n elapsed = 0;\r\n }\r\n\r\n var progress = Clamp(elapsed / duration, 0, 1);\r\n\r\n this.elapsed = elapsed;\r\n this.progress = progress;\r\n\r\n if (complete)\r\n {\r\n if (forward)\r\n {\r\n target.setTexture(this.endTexture, this.endFrame);\r\n\r\n if (this.hold > 0)\r\n {\r\n this.elapsed = this.hold;\r\n\r\n this.setHoldState();\r\n }\r\n else\r\n {\r\n this.setStateFromEnd(diff);\r\n }\r\n }\r\n else\r\n {\r\n target.setTexture(this.startTexture, this.startFrame);\r\n\r\n this.setStateFromStart(diff);\r\n }\r\n }\r\n\r\n this.dispatchEvent(Events.TWEEN_UPDATE, 'onUpdate');\r\n }\r\n\r\n // Return TRUE if this TweenData still playing, otherwise FALSE\r\n return !this.isComplete();\r\n },\r\n\r\n /**\r\n * Internal method that will emit a TweenData based Event on the\r\n * parent Tween and also invoke the given callback, if provided.\r\n *\r\n * @method Phaser.Tweens.TweenFrameData#dispatchEvent\r\n * @since 3.60.0\r\n *\r\n * @param {Phaser.Types.Tweens.Event} event - The Event to be dispatched.\r\n * @param {Phaser.Types.Tweens.TweenCallbackTypes} [callback] - The name of the callback to be invoked. Can be `null` or `undefined` to skip invocation.\r\n */\r\n dispatchEvent: function (event, callback)\r\n {\r\n var tween = this.tween;\r\n\r\n if (!tween.isSeeking)\r\n {\r\n var target = tween.targets[this.targetIndex];\r\n var key = this.key;\r\n\r\n tween.emit(event, tween, key, target);\r\n\r\n var handler = tween.callbacks[callback];\r\n\r\n if (handler)\r\n {\r\n handler.func.apply(tween.callbackScope, [ tween, target, key ].concat(handler.params));\r\n }\r\n }\r\n },\r\n\r\n /**\r\n * Immediately destroys this TweenData, nulling of all its references.\r\n *\r\n * @method Phaser.Tweens.TweenFrameData#destroy\r\n * @since 3.60.0\r\n */\r\n destroy: function ()\r\n {\r\n BaseTweenData.prototype.destroy.call(this);\r\n\r\n this.startTexture = null;\r\n this.endTexture = null;\r\n this.startFrame = null;\r\n this.endFrame = null;\r\n }\r\n\r\n});\r\n\r\nmodule.exports = TweenFrameData;\r\n\n\n/***/ }),\n\n/***/ 86353:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Phaser Tween States.\r\n *\r\n * @namespace Phaser.Tweens.States\r\n * @memberof Phaser.Tweens\r\n * @since 3.60.0\r\n */\r\n\r\n/**\r\n * Phaser Tween state constants.\r\n *\r\n * @typedef {Phaser.Tweens.States} Phaser.Tweens.StateType\r\n * @memberof Phaser.Tweens\r\n * @since 3.60.0\r\n */\r\n\r\nvar TWEEN_CONST = {\r\n\r\n /**\r\n * TweenData state.\r\n *\r\n * @name Phaser.Tweens.States.CREATED\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n CREATED: 0,\r\n\r\n // 1 used to be INIT prior to 3.60\r\n\r\n /**\r\n * TweenData state.\r\n *\r\n * @name Phaser.Tweens.States.DELAY\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n DELAY: 2,\r\n\r\n // 3 used to be OFFSET_DELAY prior to 3.60\r\n\r\n /**\r\n * TweenData state.\r\n *\r\n * @name Phaser.Tweens.States.PENDING_RENDER\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n PENDING_RENDER: 4,\r\n\r\n /**\r\n * TweenData state.\r\n *\r\n * @name Phaser.Tweens.States.PLAYING_FORWARD\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n PLAYING_FORWARD: 5,\r\n\r\n /**\r\n * TweenData state.\r\n *\r\n * @name Phaser.Tweens.States.PLAYING_BACKWARD\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n PLAYING_BACKWARD: 6,\r\n\r\n /**\r\n * TweenData state.\r\n *\r\n * @name Phaser.Tweens.States.HOLD_DELAY\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n HOLD_DELAY: 7,\r\n\r\n /**\r\n * TweenData state.\r\n *\r\n * @name Phaser.Tweens.States.REPEAT_DELAY\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n REPEAT_DELAY: 8,\r\n\r\n /**\r\n * TweenData state.\r\n *\r\n * @name Phaser.Tweens.States.COMPLETE\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n COMPLETE: 9,\r\n\r\n // Tween specific (starts from 20 to cleanly allow extra TweenData consts in the future)\r\n\r\n /**\r\n * Tween state. The Tween has been created but has not yet been added to the Tween Manager.\r\n *\r\n * @name Phaser.Tweens.States.PENDING\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n PENDING: 20,\r\n\r\n /**\r\n * Tween state. The Tween is active within the Tween Manager. This means it is either playing,\r\n * or was playing and is currently paused, but in both cases it's still being processed by\r\n * the Tween Manager, so is considered 'active'.\r\n *\r\n * @name Phaser.Tweens.States.ACTIVE\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n ACTIVE: 21,\r\n\r\n /**\r\n * Tween state. The Tween is waiting for a loop countdown to elapse.\r\n *\r\n * @name Phaser.Tweens.States.LOOP_DELAY\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n LOOP_DELAY: 22,\r\n\r\n /**\r\n * Tween state. The Tween is waiting for a complete delay to elapse.\r\n *\r\n * @name Phaser.Tweens.States.COMPLETE_DELAY\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n COMPLETE_DELAY: 23,\r\n\r\n /**\r\n * Tween state. The Tween is waiting for a starting delay to elapse.\r\n *\r\n * @name Phaser.Tweens.States.START_DELAY\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n START_DELAY: 24,\r\n\r\n /**\r\n * Tween state. The Tween has finished playback and is waiting to be removed from the Tween Manager.\r\n *\r\n * @name Phaser.Tweens.States.PENDING_REMOVE\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n PENDING_REMOVE: 25,\r\n\r\n /**\r\n * Tween state. The Tween has been removed from the Tween Manager.\r\n *\r\n * @name Phaser.Tweens.States.REMOVED\r\n * @type {number}\r\n * @const\r\n * @since 3.0.0\r\n */\r\n REMOVED: 26,\r\n\r\n /**\r\n * Tween state. The Tween has finished playback but was flagged as 'persistent' during creation,\r\n * so will not be automatically removed by the Tween Manager.\r\n *\r\n * @name Phaser.Tweens.States.FINISHED\r\n * @type {number}\r\n * @const\r\n * @since 3.60.0\r\n */\r\n FINISHED: 27,\r\n\r\n /**\r\n * Tween state. The Tween has been destroyed and can no longer be played by a Tween Manager.\r\n *\r\n * @name Phaser.Tweens.States.DESTROYED\r\n * @type {number}\r\n * @const\r\n * @since 3.60.0\r\n */\r\n DESTROYED: 28,\r\n\r\n /**\r\n * A large integer value used for 'infinite' style countdowns.\r\n *\r\n * Similar use-case to Number.MAX_SAFE_INTEGER but we cannot use that because it's not\r\n * supported on IE.\r\n *\r\n * @name Phaser.Tweens.States.MAX\r\n * @type {number}\r\n * @const\r\n * @since 3.60.0\r\n */\r\n MAX: 999999999999\r\n\r\n};\r\n\r\nmodule.exports = TWEEN_CONST;\r\n\n\n/***/ }),\n\n/***/ 83419:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n// Taken from klasse by mattdesl https://github.com/mattdesl/klasse\r\n\r\nfunction hasGetterOrSetter (def)\r\n{\r\n return (!!def.get && typeof def.get === 'function') || (!!def.set && typeof def.set === 'function');\r\n}\r\n\r\nfunction getProperty (definition, k, isClassDescriptor)\r\n{\r\n // This may be a lightweight object, OR it might be a property that was defined previously.\r\n\r\n // For simple class descriptors we can just assume its NOT previously defined.\r\n var def = (isClassDescriptor) ? definition[k] : Object.getOwnPropertyDescriptor(definition, k);\r\n\r\n if (!isClassDescriptor && def.value && typeof def.value === 'object')\r\n {\r\n def = def.value;\r\n }\r\n\r\n // This might be a regular property, or it may be a getter/setter the user defined in a class.\r\n if (def && hasGetterOrSetter(def))\r\n {\r\n if (typeof def.enumerable === 'undefined')\r\n {\r\n def.enumerable = true;\r\n }\r\n\r\n if (typeof def.configurable === 'undefined')\r\n {\r\n def.configurable = true;\r\n }\r\n\r\n return def;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n}\r\n\r\nfunction hasNonConfigurable (obj, k)\r\n{\r\n var prop = Object.getOwnPropertyDescriptor(obj, k);\r\n\r\n if (!prop)\r\n {\r\n return false;\r\n }\r\n\r\n if (prop.value && typeof prop.value === 'object')\r\n {\r\n prop = prop.value;\r\n }\r\n\r\n if (prop.configurable === false)\r\n {\r\n return true;\r\n }\r\n\r\n return false;\r\n}\r\n\r\n/**\r\n * Extends the given `myClass` object's prototype with the properties of `definition`.\r\n *\r\n * @function extend\r\n * @ignore\r\n * @param {Object} ctor The constructor object to mix into.\r\n * @param {Object} definition A dictionary of functions for the class.\r\n * @param {boolean} isClassDescriptor Is the definition a class descriptor?\r\n * @param {Object} [extend] The parent constructor object.\r\n */\r\nfunction extend (ctor, definition, isClassDescriptor, extend)\r\n{\r\n for (var k in definition)\r\n {\r\n if (!definition.hasOwnProperty(k))\r\n {\r\n continue;\r\n }\r\n\r\n var def = getProperty(definition, k, isClassDescriptor);\r\n\r\n if (def !== false)\r\n {\r\n // If Extends is used, we will check its prototype to see if the final variable exists.\r\n\r\n var parent = extend || ctor;\r\n\r\n if (hasNonConfigurable(parent.prototype, k))\r\n {\r\n // Just skip the final property\r\n if (Class.ignoreFinals)\r\n {\r\n continue;\r\n }\r\n\r\n // We cannot re-define a property that is configurable=false.\r\n // So we will consider them final and throw an error. This is by\r\n // default so it is clear to the developer what is happening.\r\n // You can set ignoreFinals to true if you need to extend a class\r\n // which has configurable=false; it will simply not re-define final properties.\r\n throw new Error('cannot override final property \\'' + k + '\\', set Class.ignoreFinals = true to skip');\r\n }\r\n\r\n Object.defineProperty(ctor.prototype, k, def);\r\n }\r\n else\r\n {\r\n ctor.prototype[k] = definition[k];\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * Applies the given `mixins` to the prototype of `myClass`.\r\n *\r\n * @function mixin\r\n * @ignore\r\n * @param {Object} myClass The constructor object to mix into.\r\n * @param {Object|Array} mixins The mixins to apply to the constructor.\r\n */\r\nfunction mixin (myClass, mixins)\r\n{\r\n if (!mixins)\r\n {\r\n return;\r\n }\r\n\r\n if (!Array.isArray(mixins))\r\n {\r\n mixins = [ mixins ];\r\n }\r\n\r\n for (var i = 0; i < mixins.length; i++)\r\n {\r\n extend(myClass, mixins[i].prototype || mixins[i]);\r\n }\r\n}\r\n\r\n/**\r\n * Creates a new class with the given descriptor.\r\n * The constructor, defined by the name `initialize`,\r\n * is an optional function. If unspecified, an anonymous\r\n * function will be used which calls the parent class (if\r\n * one exists).\r\n *\r\n * You can also use `Extends` and `Mixins` to provide subclassing\r\n * and inheritance.\r\n *\r\n * @class Phaser.Class\r\n * @constructor\r\n * @param {Object} definition a dictionary of functions for the class\r\n * @example\r\n *\r\n * var MyClass = new Phaser.Class({\r\n *\r\n * initialize: function() {\r\n * this.foo = 2.0;\r\n * },\r\n *\r\n * bar: function() {\r\n * return this.foo + 5;\r\n * }\r\n * });\r\n */\r\nfunction Class (definition)\r\n{\r\n if (!definition)\r\n {\r\n definition = {};\r\n }\r\n\r\n // The variable name here dictates what we see in Chrome debugger\r\n var initialize;\r\n var Extends;\r\n\r\n if (definition.initialize)\r\n {\r\n if (typeof definition.initialize !== 'function')\r\n {\r\n throw new Error('initialize must be a function');\r\n }\r\n\r\n initialize = definition.initialize;\r\n\r\n // Usually we should avoid 'delete' in V8 at all costs.\r\n // However, its unlikely to make any performance difference\r\n // here since we only call this on class creation (i.e. not object creation).\r\n delete definition.initialize;\r\n }\r\n else if (definition.Extends)\r\n {\r\n var base = definition.Extends;\r\n\r\n initialize = function ()\r\n {\r\n base.apply(this, arguments);\r\n };\r\n }\r\n else\r\n {\r\n initialize = function () {};\r\n }\r\n\r\n if (definition.Extends)\r\n {\r\n initialize.prototype = Object.create(definition.Extends.prototype);\r\n initialize.prototype.constructor = initialize;\r\n\r\n // For getOwnPropertyDescriptor to work, we need to act directly on the Extends (or Mixin)\r\n\r\n Extends = definition.Extends;\r\n\r\n delete definition.Extends;\r\n }\r\n else\r\n {\r\n initialize.prototype.constructor = initialize;\r\n }\r\n\r\n // Grab the mixins, if they are specified...\r\n var mixins = null;\r\n\r\n if (definition.Mixins)\r\n {\r\n mixins = definition.Mixins;\r\n delete definition.Mixins;\r\n }\r\n\r\n // First, mixin if we can.\r\n mixin(initialize, mixins);\r\n\r\n // Now we grab the actual definition which defines the overrides.\r\n extend(initialize, definition, true, Extends);\r\n\r\n return initialize;\r\n}\r\n\r\nClass.extend = extend;\r\nClass.mixin = mixin;\r\nClass.ignoreFinals = false;\r\n\r\nmodule.exports = Class;\r\n\n\n/***/ }),\n\n/***/ 29747:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * A NOOP (No Operation) callback function.\r\n *\r\n * Used internally by Phaser when it's more expensive to determine if a callback exists\r\n * than it is to just invoke an empty function.\r\n *\r\n * @function Phaser.Utils.NOOP\r\n * @since 3.0.0\r\n */\r\nvar NOOP = function ()\r\n{\r\n // NOOP\r\n};\r\n\r\nmodule.exports = NOOP;\r\n\n\n/***/ }),\n\n/***/ 20242:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * A NULL OP callback function.\r\n *\r\n * This function always returns `null`.\r\n *\r\n * Used internally by Phaser when it's more expensive to determine if a callback exists\r\n * than it is to just invoke an empty function.\r\n *\r\n * @function Phaser.Utils.NULL\r\n * @since 3.60.0\r\n */\r\nvar NULL = function ()\r\n{\r\n return null;\r\n};\r\n\r\nmodule.exports = NULL;\r\n\n\n/***/ }),\n\n/***/ 71146:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Adds the given item, or array of items, to the array.\r\n *\r\n * Each item must be unique within the array.\r\n *\r\n * The array is modified in-place and returned.\r\n *\r\n * You can optionally specify a limit to the maximum size of the array. If the quantity of items being\r\n * added will take the array length over this limit, it will stop adding once the limit is reached.\r\n *\r\n * You can optionally specify a callback to be invoked for each item successfully added to the array.\r\n *\r\n * @function Phaser.Utils.Array.Add\r\n * @since 3.4.0\r\n *\r\n * @param {array} array - The array to be added to.\r\n * @param {any|any[]} item - The item, or array of items, to add to the array. Each item must be unique within the array.\r\n * @param {number} [limit] - Optional limit which caps the size of the array.\r\n * @param {function} [callback] - A callback to be invoked for each item successfully added to the array.\r\n * @param {object} [context] - The context in which the callback is invoked.\r\n *\r\n * @return {array} The input array.\r\n */\r\nvar Add = function (array, item, limit, callback, context)\r\n{\r\n if (context === undefined) { context = array; }\r\n\r\n if (limit > 0)\r\n {\r\n var remaining = limit - array.length;\r\n\r\n // There's nothing more we can do here, the array is full\r\n if (remaining <= 0)\r\n {\r\n return null;\r\n }\r\n }\r\n\r\n // Fast path to avoid array mutation and iteration\r\n if (!Array.isArray(item))\r\n {\r\n if (array.indexOf(item) === -1)\r\n {\r\n array.push(item);\r\n\r\n if (callback)\r\n {\r\n callback.call(context, item);\r\n }\r\n\r\n return item;\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n }\r\n\r\n // If we got this far, we have an array of items to insert\r\n\r\n // Ensure all the items are unique\r\n var itemLength = item.length - 1;\r\n\r\n while (itemLength >= 0)\r\n {\r\n if (array.indexOf(item[itemLength]) !== -1)\r\n {\r\n // Already exists in array, so remove it\r\n item.splice(itemLength, 1);\r\n }\r\n\r\n itemLength--;\r\n }\r\n\r\n // Anything left?\r\n itemLength = item.length;\r\n\r\n if (itemLength === 0)\r\n {\r\n return null;\r\n }\r\n\r\n if (limit > 0 && itemLength > remaining)\r\n {\r\n item.splice(remaining);\r\n\r\n itemLength = remaining;\r\n }\r\n\r\n for (var i = 0; i < itemLength; i++)\r\n {\r\n var entry = item[i];\r\n\r\n array.push(entry);\r\n\r\n if (callback)\r\n {\r\n callback.call(context, entry);\r\n }\r\n }\r\n\r\n return item;\r\n};\r\n\r\nmodule.exports = Add;\r\n\n\n/***/ }),\n\n/***/ 51067:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Adds the given item, or array of items, to the array starting at the index specified.\r\n *\r\n * Each item must be unique within the array.\r\n *\r\n * Existing elements in the array are shifted up.\r\n *\r\n * The array is modified in-place and returned.\r\n *\r\n * You can optionally specify a limit to the maximum size of the array. If the quantity of items being\r\n * added will take the array length over this limit, it will stop adding once the limit is reached.\r\n *\r\n * You can optionally specify a callback to be invoked for each item successfully added to the array.\r\n *\r\n * @function Phaser.Utils.Array.AddAt\r\n * @since 3.4.0\r\n *\r\n * @param {array} array - The array to be added to.\r\n * @param {any|any[]} item - The item, or array of items, to add to the array.\r\n * @param {number} [index=0] - The index in the array where the item will be inserted.\r\n * @param {number} [limit] - Optional limit which caps the size of the array.\r\n * @param {function} [callback] - A callback to be invoked for each item successfully added to the array.\r\n * @param {object} [context] - The context in which the callback is invoked.\r\n *\r\n * @return {array} The input array.\r\n */\r\nvar AddAt = function (array, item, index, limit, callback, context)\r\n{\r\n if (index === undefined) { index = 0; }\r\n if (context === undefined) { context = array; }\r\n\r\n if (limit > 0)\r\n {\r\n var remaining = limit - array.length;\r\n\r\n // There's nothing more we can do here, the array is full\r\n if (remaining <= 0)\r\n {\r\n return null;\r\n }\r\n }\r\n\r\n // Fast path to avoid array mutation and iteration\r\n if (!Array.isArray(item))\r\n {\r\n if (array.indexOf(item) === -1)\r\n {\r\n array.splice(index, 0, item);\r\n\r\n if (callback)\r\n {\r\n callback.call(context, item);\r\n }\r\n\r\n return item;\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n }\r\n\r\n // If we got this far, we have an array of items to insert\r\n\r\n // Ensure all the items are unique\r\n var itemLength = item.length - 1;\r\n\r\n while (itemLength >= 0)\r\n {\r\n if (array.indexOf(item[itemLength]) !== -1)\r\n {\r\n // Already exists in array, so remove it\r\n item.pop();\r\n }\r\n\r\n itemLength--;\r\n }\r\n\r\n // Anything left?\r\n itemLength = item.length;\r\n\r\n if (itemLength === 0)\r\n {\r\n return null;\r\n }\r\n\r\n // Truncate to the limit\r\n if (limit > 0 && itemLength > remaining)\r\n {\r\n item.splice(remaining);\r\n\r\n itemLength = remaining;\r\n }\r\n\r\n for (var i = itemLength - 1; i >= 0; i--)\r\n {\r\n var entry = item[i];\r\n\r\n array.splice(index, 0, entry);\r\n\r\n if (callback)\r\n {\r\n callback.call(context, entry);\r\n }\r\n }\r\n\r\n return item;\r\n};\r\n\r\nmodule.exports = AddAt;\r\n\n\n/***/ }),\n\n/***/ 66905:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Moves the given element to the top of the array.\r\n * The array is modified in-place.\r\n *\r\n * @function Phaser.Utils.Array.BringToTop\r\n * @since 3.4.0\r\n *\r\n * @param {array} array - The array.\r\n * @param {*} item - The element to move.\r\n *\r\n * @return {*} The element that was moved.\r\n */\r\nvar BringToTop = function (array, item)\r\n{\r\n var currentIndex = array.indexOf(item);\r\n\r\n if (currentIndex !== -1 && currentIndex < array.length)\r\n {\r\n array.splice(currentIndex, 1);\r\n array.push(item);\r\n }\r\n\r\n return item;\r\n};\r\n\r\nmodule.exports = BringToTop;\r\n\n\n/***/ }),\n\n/***/ 21612:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar SafeRange = __webpack_require__(82011);\r\n\r\n/**\r\n * Returns the total number of elements in the array which have a property matching the given value.\r\n *\r\n * @function Phaser.Utils.Array.CountAllMatching\r\n * @since 3.4.0\r\n *\r\n * @param {array} array - The array to search.\r\n * @param {string} property - The property to test on each array element.\r\n * @param {*} value - The value to test the property against. Must pass a strict (`===`) comparison check.\r\n * @param {number} [startIndex] - An optional start index to search from.\r\n * @param {number} [endIndex] - An optional end index to search to.\r\n *\r\n * @return {number} The total number of elements with properties matching the given value.\r\n */\r\nvar CountAllMatching = function (array, property, value, startIndex, endIndex)\r\n{\r\n if (startIndex === undefined) { startIndex = 0; }\r\n if (endIndex === undefined) { endIndex = array.length; }\r\n\r\n var total = 0;\r\n\r\n if (SafeRange(array, startIndex, endIndex))\r\n {\r\n for (var i = startIndex; i < endIndex; i++)\r\n {\r\n var child = array[i];\r\n\r\n if (child[property] === value)\r\n {\r\n total++;\r\n }\r\n }\r\n }\r\n\r\n return total;\r\n};\r\n\r\nmodule.exports = CountAllMatching;\r\n\n\n/***/ }),\n\n/***/ 95428:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Passes each element in the array to the given callback.\r\n *\r\n * @function Phaser.Utils.Array.Each\r\n * @since 3.4.0\r\n *\r\n * @param {array} array - The array to search.\r\n * @param {function} callback - A callback to be invoked for each item in the array.\r\n * @param {object} context - The context in which the callback is invoked.\r\n * @param {...*} [args] - Additional arguments that will be passed to the callback, after the current array item.\r\n *\r\n * @return {array} The input array.\r\n */\r\nvar Each = function (array, callback, context)\r\n{\r\n var i;\r\n var args = [ null ];\r\n\r\n for (i = 3; i < arguments.length; i++)\r\n {\r\n args.push(arguments[i]);\r\n }\r\n\r\n for (i = 0; i < array.length; i++)\r\n {\r\n args[0] = array[i];\r\n\r\n callback.apply(context, args);\r\n }\r\n\r\n return array;\r\n};\r\n\r\nmodule.exports = Each;\r\n\n\n/***/ }),\n\n/***/ 36914:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar SafeRange = __webpack_require__(82011);\r\n\r\n/**\r\n * Passes each element in the array, between the start and end indexes, to the given callback.\r\n *\r\n * @function Phaser.Utils.Array.EachInRange\r\n * @since 3.4.0\r\n *\r\n * @param {array} array - The array to search.\r\n * @param {function} callback - A callback to be invoked for each item in the array.\r\n * @param {object} context - The context in which the callback is invoked.\r\n * @param {number} startIndex - The start index to search from.\r\n * @param {number} endIndex - The end index to search to.\r\n * @param {...*} [args] - Additional arguments that will be passed to the callback, after the child.\r\n *\r\n * @return {array} The input array.\r\n */\r\nvar EachInRange = function (array, callback, context, startIndex, endIndex)\r\n{\r\n if (startIndex === undefined) { startIndex = 0; }\r\n if (endIndex === undefined) { endIndex = array.length; }\r\n\r\n if (SafeRange(array, startIndex, endIndex))\r\n {\r\n var i;\r\n var args = [ null ];\r\n\r\n for (i = 5; i < arguments.length; i++)\r\n {\r\n args.push(arguments[i]);\r\n }\r\n\r\n for (i = startIndex; i < endIndex; i++)\r\n {\r\n args[0] = array[i];\r\n\r\n callback.apply(context, args);\r\n }\r\n }\r\n\r\n return array;\r\n};\r\n\r\nmodule.exports = EachInRange;\r\n\n\n/***/ }),\n\n/***/ 81957:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Searches a pre-sorted array for the closet value to the given number.\r\n *\r\n * If the `key` argument is given it will assume the array contains objects that all have the required `key` property name,\r\n * and will check for the closest value of those to the given number.\r\n *\r\n * @function Phaser.Utils.Array.FindClosestInSorted\r\n * @since 3.0.0\r\n *\r\n * @param {number} value - The value to search for in the array.\r\n * @param {array} array - The array to search, which must be sorted.\r\n * @param {string} [key] - An optional property key. If specified the array elements property will be checked against value.\r\n *\r\n * @return {(number|any)} The nearest value found in the array, or if a `key` was given, the nearest object with the matching property value.\r\n */\r\nvar FindClosestInSorted = function (value, array, key)\r\n{\r\n if (!array.length)\r\n {\r\n return NaN;\r\n }\r\n else if (array.length === 1)\r\n {\r\n return array[0];\r\n }\r\n\r\n var i = 1;\r\n var low;\r\n var high;\r\n\r\n if (key)\r\n {\r\n if (value < array[0][key])\r\n {\r\n return array[0];\r\n }\r\n\r\n while (array[i][key] < value)\r\n {\r\n i++;\r\n }\r\n }\r\n else\r\n {\r\n while (array[i] < value)\r\n {\r\n i++;\r\n }\r\n }\r\n\r\n if (i > array.length)\r\n {\r\n i = array.length;\r\n }\r\n\r\n if (key)\r\n {\r\n low = array[i - 1][key];\r\n high = array[i][key];\r\n\r\n return ((high - value) <= (value - low)) ? array[i] : array[i - 1];\r\n }\r\n else\r\n {\r\n low = array[i - 1];\r\n high = array[i];\r\n\r\n return ((high - value) <= (value - low)) ? high : low;\r\n }\r\n};\r\n\r\nmodule.exports = FindClosestInSorted;\r\n\n\n/***/ }),\n\n/***/ 43491:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Takes an array and flattens it, returning a shallow-copy flattened array.\r\n *\r\n * @function Phaser.Utils.Array.Flatten\r\n * @since 3.60.0\r\n *\r\n * @param {array} array - The array to flatten.\r\n * @param {array} [output] - An array to hold the results in.\r\n *\r\n * @return {array} The flattened output array.\r\n */\r\nvar Flatten = function (array, output)\r\n{\r\n if (output === undefined) { output = []; }\r\n\r\n for (var i = 0; i < array.length; i++)\r\n {\r\n if (Array.isArray(array[i]))\r\n {\r\n Flatten(array[i], output);\r\n }\r\n else\r\n {\r\n output.push(array[i]);\r\n }\r\n }\r\n\r\n return output;\r\n};\r\n\r\nmodule.exports = Flatten;\r\n\n\n/***/ }),\n\n/***/ 46710:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar SafeRange = __webpack_require__(82011);\r\n\r\n/**\r\n * Returns all elements in the array.\r\n *\r\n * You can optionally specify a matching criteria using the `property` and `value` arguments.\r\n *\r\n * For example: `getAll('visible', true)` would return only elements that have their visible property set.\r\n *\r\n * Optionally you can specify a start and end index. For example if the array had 100 elements,\r\n * and you set `startIndex` to 0 and `endIndex` to 50, it would return matches from only\r\n * the first 50 elements.\r\n *\r\n * @function Phaser.Utils.Array.GetAll\r\n * @since 3.4.0\r\n *\r\n * @param {array} array - The array to search.\r\n * @param {string} [property] - The property to test on each array element.\r\n * @param {*} [value] - The value to test the property against. Must pass a strict (`===`) comparison check.\r\n * @param {number} [startIndex] - An optional start index to search from.\r\n * @param {number} [endIndex] - An optional end index to search to.\r\n *\r\n * @return {array} All matching elements from the array.\r\n */\r\nvar GetAll = function (array, property, value, startIndex, endIndex)\r\n{\r\n if (startIndex === undefined) { startIndex = 0; }\r\n if (endIndex === undefined) { endIndex = array.length; }\r\n\r\n var output = [];\r\n\r\n if (SafeRange(array, startIndex, endIndex))\r\n {\r\n for (var i = startIndex; i < endIndex; i++)\r\n {\r\n var child = array[i];\r\n\r\n if (!property ||\r\n (property && value === undefined && child.hasOwnProperty(property)) ||\r\n (property && value !== undefined && child[property] === value))\r\n {\r\n output.push(child);\r\n }\r\n }\r\n }\r\n\r\n return output;\r\n};\r\n\r\nmodule.exports = GetAll;\r\n\n\n/***/ }),\n\n/***/ 58731:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar SafeRange = __webpack_require__(82011);\r\n\r\n/**\r\n * Returns the first element in the array.\r\n *\r\n * You can optionally specify a matching criteria using the `property` and `value` arguments.\r\n *\r\n * For example: `getAll('visible', true)` would return the first element that had its `visible` property set.\r\n *\r\n * Optionally you can specify a start and end index. For example if the array had 100 elements,\r\n * and you set `startIndex` to 0 and `endIndex` to 50, it would search only the first 50 elements.\r\n *\r\n * @function Phaser.Utils.Array.GetFirst\r\n * @since 3.4.0\r\n *\r\n * @param {array} array - The array to search.\r\n * @param {string} [property] - The property to test on each array element.\r\n * @param {*} [value] - The value to test the property against. Must pass a strict (`===`) comparison check.\r\n * @param {number} [startIndex=0] - An optional start index to search from.\r\n * @param {number} [endIndex=array.length] - An optional end index to search up to (but not included)\r\n *\r\n * @return {?object} The first matching element from the array, or `null` if no element could be found in the range given.\r\n */\r\nvar GetFirst = function (array, property, value, startIndex, endIndex)\r\n{\r\n if (startIndex === undefined) { startIndex = 0; }\r\n if (endIndex === undefined) { endIndex = array.length; }\r\n\r\n if (SafeRange(array, startIndex, endIndex))\r\n {\r\n for (var i = startIndex; i < endIndex; i++)\r\n {\r\n var child = array[i];\r\n\r\n if (!property ||\r\n (property && value === undefined && child.hasOwnProperty(property)) ||\r\n (property && value !== undefined && child[property] === value))\r\n {\r\n return child;\r\n }\r\n }\r\n }\r\n\r\n return null;\r\n};\r\n\r\nmodule.exports = GetFirst;\r\n\n\n/***/ }),\n\n/***/ 26546:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Returns a Random element from the array.\r\n *\r\n * @function Phaser.Utils.Array.GetRandom\r\n * @since 3.0.0\r\n *\r\n * @generic T\r\n * @genericUse {T[]} - [array]\r\n * @genericUse {T} - [$return]\r\n *\r\n * @param {T[]} array - The array to select the random entry from.\r\n * @param {number} [startIndex=0] - An optional start index.\r\n * @param {number} [length=array.length] - An optional length, the total number of elements (from the startIndex) to choose from.\r\n *\r\n * @return {T} A random element from the array, or `null` if no element could be found in the range given.\r\n */\r\nvar GetRandom = function (array, startIndex, length)\r\n{\r\n if (startIndex === undefined) { startIndex = 0; }\r\n if (length === undefined) { length = array.length; }\r\n\r\n var randomIndex = startIndex + Math.floor(Math.random() * length);\r\n\r\n return (array[randomIndex] === undefined) ? null : array[randomIndex];\r\n};\r\n\r\nmodule.exports = GetRandom;\r\n\n\n/***/ }),\n\n/***/ 85835:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Moves the given array element above another one in the array.\r\n * If the given element is already above the other, it isn't moved.\r\n * Above means toward the end of the array.\r\n * The array is modified in-place.\r\n *\r\n * @function Phaser.Utils.Array.MoveAbove\r\n * @since 3.55.0\r\n *\r\n * @param {array} array - The input array.\r\n * @param {*} item1 - The element to move above base element.\r\n * @param {*} item2 - The base element.\r\n *\r\n *\r\n * @return {array} The input array.\r\n */\r\nvar MoveAbove = function (array, item1, item2)\r\n{\r\n if (item1 === item2)\r\n {\r\n return array;\r\n }\r\n\r\n var currentIndex = array.indexOf(item1);\r\n var baseIndex = array.indexOf(item2);\r\n\r\n if (currentIndex < 0 || baseIndex < 0)\r\n {\r\n throw new Error('Supplied items must be elements of the same array');\r\n }\r\n\r\n if (currentIndex > baseIndex)\r\n {\r\n // item1 is already above item2\r\n return array;\r\n }\r\n\r\n // Remove item1 from its current position\r\n array.splice(currentIndex, 1);\r\n\r\n // Recalculate baseIndex after removal\r\n baseIndex = array.indexOf(item2);\r\n\r\n // Insert item1 immediately after item2\r\n array.splice(baseIndex + 1, 0, item1);\r\n \r\n return array;\r\n};\r\n\r\nmodule.exports = MoveAbove;\r\n\n\n/***/ }),\n\n/***/ 83371:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Moves the given array element below another one in the array.\r\n * If the given element is already below the other, it isn't moved.\r\n * Below means toward the start of the array.\r\n * The array is modified in-place.\r\n *\r\n * @function Phaser.Utils.Array.MoveBelow\r\n * @since 3.55.0\r\n *\r\n * @param {array} array - The input array.\r\n * @param {*} item1 - The element to move below base element.\r\n * @param {*} item2 - The base element.\r\n *\r\n *\r\n * @return {array} The input array.\r\n */\r\nvar MoveBelow = function (array, item1, item2)\r\n{\r\n if (item1 === item2)\r\n {\r\n return array;\r\n }\r\n\r\n var currentIndex = array.indexOf(item1);\r\n var baseIndex = array.indexOf(item2);\r\n\r\n if (currentIndex < 0 || baseIndex < 0)\r\n {\r\n throw new Error('Supplied items must be elements of the same array');\r\n }\r\n\r\n if (currentIndex < baseIndex)\r\n {\r\n // item1 is already below item2\r\n return array;\r\n }\r\n\r\n // Remove\r\n array.splice(currentIndex, 1);\r\n\r\n // Add in new location\r\n if (baseIndex === 0)\r\n {\r\n array.unshift(item1);\r\n }\r\n else\r\n {\r\n array.splice(baseIndex, 0, item1);\r\n }\r\n\r\n return array;\r\n};\r\n\r\nmodule.exports = MoveBelow;\r\n\n\n/***/ }),\n\n/***/ 70864:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Moves the given array element down one place in the array.\r\n * The array is modified in-place.\r\n *\r\n * @function Phaser.Utils.Array.MoveDown\r\n * @since 3.4.0\r\n *\r\n * @param {array} array - The input array.\r\n * @param {*} item - The element to move down the array.\r\n *\r\n * @return {array} The input array.\r\n */\r\nvar MoveDown = function (array, item)\r\n{\r\n var currentIndex = array.indexOf(item);\r\n\r\n if (currentIndex > 0)\r\n {\r\n var item2 = array[currentIndex - 1];\r\n\r\n var index2 = array.indexOf(item2);\r\n\r\n array[currentIndex] = item2;\r\n array[index2] = item;\r\n }\r\n\r\n return array;\r\n};\r\n\r\nmodule.exports = MoveDown;\r\n\n\n/***/ }),\n\n/***/ 69693:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Moves an element in an array to a new position within the same array.\r\n * The array is modified in-place.\r\n *\r\n * @function Phaser.Utils.Array.MoveTo\r\n * @since 3.4.0\r\n *\r\n * @param {array} array - The array.\r\n * @param {*} item - The element to move.\r\n * @param {number} index - The new index that the element will be moved to.\r\n *\r\n * @return {*} The element that was moved.\r\n */\r\nvar MoveTo = function (array, item, index)\r\n{\r\n var currentIndex = array.indexOf(item);\r\n\r\n if (currentIndex === -1 || index < 0 || index >= array.length)\r\n {\r\n throw new Error('Supplied index out of bounds');\r\n }\r\n\r\n if (currentIndex !== index)\r\n {\r\n // Remove\r\n array.splice(currentIndex, 1);\r\n\r\n // Add in new location\r\n array.splice(index, 0, item);\r\n }\r\n\r\n return item;\r\n};\r\n\r\nmodule.exports = MoveTo;\r\n\n\n/***/ }),\n\n/***/ 40853:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Moves the given array element up one place in the array.\r\n * The array is modified in-place.\r\n *\r\n * @function Phaser.Utils.Array.MoveUp\r\n * @since 3.4.0\r\n *\r\n * @param {array} array - The input array.\r\n * @param {*} item - The element to move up the array.\r\n *\r\n * @return {array} The input array.\r\n */\r\nvar MoveUp = function (array, item)\r\n{\r\n var currentIndex = array.indexOf(item);\r\n\r\n if (currentIndex !== -1 && currentIndex < array.length - 1)\r\n {\r\n // The element one above `item` in the array\r\n var item2 = array[currentIndex + 1];\r\n var index2 = array.indexOf(item2);\r\n\r\n array[currentIndex] = item2;\r\n array[index2] = item;\r\n }\r\n\r\n return array;\r\n};\r\n\r\nmodule.exports = MoveUp;\r\n\n\n/***/ }),\n\n/***/ 20283:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Create an array representing the range of numbers (usually integers), between, and inclusive of,\r\n * the given `start` and `end` arguments. For example:\r\n *\r\n * `var array = Phaser.Utils.Array.NumberArray(2, 4); // array = [2, 3, 4]`\r\n * `var array = Phaser.Utils.Array.NumberArray(0, 9); // array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]`\r\n * `var array = Phaser.Utils.Array.NumberArray(8, 2); // array = [8, 7, 6, 5, 4, 3, 2]`\r\n *\r\n * This is equivalent to `Phaser.Utils.Array.NumberArrayStep(start, end, 1)`.\r\n *\r\n * You can optionally provide a prefix and / or suffix string. If given the array will contain\r\n * strings, not integers. For example:\r\n *\r\n * `var array = Phaser.Utils.Array.NumberArray(1, 4, 'Level '); // array = [\"Level 1\", \"Level 2\", \"Level 3\", \"Level 4\"]`\r\n * `var array = Phaser.Utils.Array.NumberArray(5, 7, 'HD-', '.png'); // array = [\"HD-5.png\", \"HD-6.png\", \"HD-7.png\"]`\r\n *\r\n * @function Phaser.Utils.Array.NumberArray\r\n * @since 3.0.0\r\n *\r\n * @param {number} start - The minimum value the array starts with.\r\n * @param {number} end - The maximum value the array contains.\r\n * @param {string} [prefix] - Optional prefix to place before the number. If provided the array will contain strings, not integers.\r\n * @param {string} [suffix] - Optional suffix to place after the number. If provided the array will contain strings, not integers.\r\n *\r\n * @return {(number[]|string[])} The array of number values, or strings if a prefix or suffix was provided.\r\n */\r\nvar NumberArray = function (start, end, prefix, suffix)\r\n{\r\n var result = [];\r\n\r\n var i;\r\n var asString = false;\r\n\r\n if (prefix || suffix)\r\n {\r\n asString = true;\r\n\r\n if (!prefix)\r\n {\r\n prefix = '';\r\n }\r\n\r\n if (!suffix)\r\n {\r\n suffix = '';\r\n }\r\n }\r\n\r\n if (end < start)\r\n {\r\n for (i = start; i >= end; i--)\r\n {\r\n if (asString)\r\n {\r\n result.push(prefix + i.toString() + suffix);\r\n }\r\n else\r\n {\r\n result.push(i);\r\n }\r\n }\r\n }\r\n else\r\n {\r\n for (i = start; i <= end; i++)\r\n {\r\n if (asString)\r\n {\r\n result.push(prefix + i.toString() + suffix);\r\n }\r\n else\r\n {\r\n result.push(i);\r\n }\r\n }\r\n }\r\n\r\n return result;\r\n};\r\n\r\nmodule.exports = NumberArray;\r\n\n\n/***/ }),\n\n/***/ 593:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar RoundAwayFromZero = __webpack_require__(2284);\r\n\r\n/**\r\n * Create an array of numbers (positive and/or negative) progressing from `start`\r\n * up to but not including `end` by advancing by `step`.\r\n *\r\n * If `start` is less than `end` a zero-length range is created unless a negative `step` is specified.\r\n *\r\n * Certain values for `start` and `end` (eg. NaN/undefined/null) are currently coerced to 0;\r\n * for forward compatibility make sure to pass in actual numbers.\r\n *\r\n * @example\r\n * NumberArrayStep(4);\r\n * // => [0, 1, 2, 3]\r\n *\r\n * NumberArrayStep(1, 5);\r\n * // => [1, 2, 3, 4]\r\n *\r\n * NumberArrayStep(0, 20, 5);\r\n * // => [0, 5, 10, 15]\r\n *\r\n * NumberArrayStep(0, -4, -1);\r\n * // => [0, -1, -2, -3]\r\n *\r\n * NumberArrayStep(1, 4, 0);\r\n * // => [1, 1, 1]\r\n *\r\n * NumberArrayStep(0);\r\n * // => []\r\n *\r\n * @function Phaser.Utils.Array.NumberArrayStep\r\n * @since 3.0.0\r\n *\r\n * @param {number} [start=0] - The start of the range.\r\n * @param {number} [end=null] - The end of the range.\r\n * @param {number} [step=1] - The value to increment or decrement by.\r\n *\r\n * @return {number[]} The array of number values.\r\n */\r\nvar NumberArrayStep = function (start, end, step)\r\n{\r\n if (start === undefined) { start = 0; }\r\n if (end === undefined) { end = null; }\r\n if (step === undefined) { step = 1; }\r\n\r\n if (end === null)\r\n {\r\n end = start;\r\n start = 0;\r\n }\r\n\r\n var result = [];\r\n\r\n var total = Math.max(RoundAwayFromZero((end - start) / (step || 1)), 0);\r\n\r\n for (var i = 0; i < total; i++)\r\n {\r\n result.push(start);\r\n start += step;\r\n }\r\n\r\n return result;\r\n};\r\n\r\nmodule.exports = NumberArrayStep;\r\n\n\n/***/ }),\n\n/***/ 43886:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction swap (arr, i, j)\r\n{\r\n var tmp = arr[i];\r\n arr[i] = arr[j];\r\n arr[j] = tmp;\r\n}\r\n\r\n/**\r\n * @ignore\r\n */\r\nfunction defaultCompare (a, b)\r\n{\r\n return a < b ? -1 : a > b ? 1 : 0;\r\n}\r\n\r\n/**\r\n * A [Floyd-Rivest](https://en.wikipedia.org/wiki/Floyd%E2%80%93Rivest_algorithm) quick selection algorithm.\r\n *\r\n * Rearranges the array items so that all items in the [left, k] range are smaller than all items in [k, right];\r\n * The k-th element will have the (k - left + 1)th smallest value in [left, right].\r\n *\r\n * The array is modified in-place.\r\n *\r\n * Based on code by [Vladimir Agafonkin](https://www.npmjs.com/~mourner)\r\n *\r\n * @function Phaser.Utils.Array.QuickSelect\r\n * @since 3.0.0\r\n *\r\n * @param {array} arr - The array to sort.\r\n * @param {number} k - The k-th element index.\r\n * @param {number} [left=0] - The index of the left part of the range.\r\n * @param {number} [right] - The index of the right part of the range.\r\n * @param {function} [compare] - An optional comparison function. Is passed two elements and should return 0, 1 or -1.\r\n */\r\nvar QuickSelect = function (arr, k, left, right, compare)\r\n{\r\n if (left === undefined) { left = 0; }\r\n if (right === undefined) { right = arr.length - 1; }\r\n if (compare === undefined) { compare = defaultCompare; }\r\n\r\n while (right > left)\r\n {\r\n if (right - left > 600)\r\n {\r\n var n = right - left + 1;\r\n var m = k - left + 1;\r\n var z = Math.log(n);\r\n var s = 0.5 * Math.exp(2 * z / 3);\r\n var sd = 0.5 * Math.sqrt(z * s * (n - s) / n) * (m - n / 2 < 0 ? -1 : 1);\r\n var newLeft = Math.max(left, Math.floor(k - m * s / n + sd));\r\n var newRight = Math.min(right, Math.floor(k + (n - m) * s / n + sd));\r\n\r\n QuickSelect(arr, k, newLeft, newRight, compare);\r\n }\r\n\r\n var t = arr[k];\r\n var i = left;\r\n var j = right;\r\n\r\n swap(arr, left, k);\r\n\r\n if (compare(arr[right], t) > 0)\r\n {\r\n swap(arr, left, right);\r\n }\r\n\r\n while (i < j)\r\n {\r\n swap(arr, i, j);\r\n\r\n i++;\r\n j--;\r\n\r\n while (compare(arr[i], t) < 0)\r\n {\r\n i++;\r\n }\r\n\r\n while (compare(arr[j], t) > 0)\r\n {\r\n j--;\r\n }\r\n }\r\n\r\n if (compare(arr[left], t) === 0)\r\n {\r\n swap(arr, left, j);\r\n }\r\n else\r\n {\r\n j++;\r\n swap(arr, j, right);\r\n }\r\n\r\n if (j <= k)\r\n {\r\n left = j + 1;\r\n }\r\n\r\n if (k <= j)\r\n {\r\n right = j - 1;\r\n }\r\n }\r\n};\r\n\r\nmodule.exports = QuickSelect;\r\n\n\n/***/ }),\n\n/***/ 88492:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetValue = __webpack_require__(35154);\r\nvar Shuffle = __webpack_require__(33680);\r\n\r\nvar BuildChunk = function (a, b, qty)\r\n{\r\n var out = [];\r\n\r\n for (var aIndex = 0; aIndex < a.length; aIndex++)\r\n {\r\n for (var bIndex = 0; bIndex < b.length; bIndex++)\r\n {\r\n for (var i = 0; i < qty; i++)\r\n {\r\n out.push({ a: a[aIndex], b: b[bIndex] });\r\n }\r\n }\r\n }\r\n\r\n return out;\r\n};\r\n\r\n/**\r\n * Creates an array populated with a range of values, based on the given arguments and configuration object.\r\n *\r\n * Range ([a,b,c], [1,2,3]) =\r\n * a1, a2, a3, b1, b2, b3, c1, c2, c3\r\n *\r\n * Range ([a,b], [1,2,3], qty = 3) =\r\n * a1, a1, a1, a2, a2, a2, a3, a3, a3, b1, b1, b1, b2, b2, b2, b3, b3, b3\r\n *\r\n * Range ([a,b,c], [1,2,3], repeat x1) =\r\n * a1, a2, a3, b1, b2, b3, c1, c2, c3, a1, a2, a3, b1, b2, b3, c1, c2, c3\r\n *\r\n * Range ([a,b], [1,2], repeat -1 = endless, max = 14) =\r\n * Maybe if max is set then repeat goes to -1 automatically?\r\n * a1, a2, b1, b2, a1, a2, b1, b2, a1, a2, b1, b2, a1, a2 (capped at 14 elements)\r\n *\r\n * Range ([a], [1,2,3,4,5], random = true) =\r\n * a4, a1, a5, a2, a3\r\n *\r\n * Range ([a, b], [1,2,3], random = true) =\r\n * b3, a2, a1, b1, a3, b2\r\n *\r\n * Range ([a, b, c], [1,2,3], randomB = true) =\r\n * a3, a1, a2, b2, b3, b1, c1, c3, c2\r\n *\r\n * Range ([a], [1,2,3,4,5], yoyo = true) =\r\n * a1, a2, a3, a4, a5, a5, a4, a3, a2, a1\r\n *\r\n * Range ([a, b], [1,2,3], yoyo = true) =\r\n * a1, a2, a3, b1, b2, b3, b3, b2, b1, a3, a2, a1\r\n *\r\n * @function Phaser.Utils.Array.Range\r\n * @since 3.0.0\r\n *\r\n * @param {array} a - The first array of range elements.\r\n * @param {array} b - The second array of range elements.\r\n * @param {object} [options] - A range configuration object. Can contain: repeat, random, randomB, yoyo, max, qty.\r\n *\r\n * @return {array} An array of arranged elements.\r\n */\r\nvar Range = function (a, b, options)\r\n{\r\n var max = GetValue(options, 'max', 0);\r\n var qty = GetValue(options, 'qty', 1);\r\n var random = GetValue(options, 'random', false);\r\n var randomB = GetValue(options, 'randomB', false);\r\n var repeat = GetValue(options, 'repeat', 0);\r\n var yoyo = GetValue(options, 'yoyo', false);\r\n\r\n var out = [];\r\n\r\n if (randomB)\r\n {\r\n Shuffle(b);\r\n }\r\n\r\n // Endless repeat, so limit by max\r\n if (repeat === -1)\r\n {\r\n if (max === 0)\r\n {\r\n repeat = 0;\r\n }\r\n else\r\n {\r\n // Work out how many repeats we need\r\n var total = (a.length * b.length) * qty;\r\n\r\n if (yoyo)\r\n {\r\n total *= 2;\r\n }\r\n\r\n repeat = Math.ceil(max / total);\r\n }\r\n }\r\n\r\n for (var i = 0; i <= repeat; i++)\r\n {\r\n var chunk = BuildChunk(a, b, qty);\r\n\r\n if (random)\r\n {\r\n Shuffle(chunk);\r\n }\r\n\r\n out = out.concat(chunk);\r\n\r\n if (yoyo)\r\n {\r\n chunk.reverse();\r\n\r\n out = out.concat(chunk);\r\n }\r\n }\r\n\r\n if (max)\r\n {\r\n out.splice(max);\r\n }\r\n\r\n return out;\r\n};\r\n\r\nmodule.exports = Range;\r\n\n\n/***/ }),\n\n/***/ 72905:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar SpliceOne = __webpack_require__(19133);\r\n\r\n/**\r\n * Removes the given item, or array of items, from the array.\r\n *\r\n * The array is modified in-place.\r\n *\r\n * You can optionally specify a callback to be invoked for each item successfully removed from the array.\r\n *\r\n * @function Phaser.Utils.Array.Remove\r\n * @since 3.4.0\r\n *\r\n * @param {array} array - The array to be modified.\r\n * @param {*|Array.<*>} item - The item, or array of items, to be removed from the array.\r\n * @param {function} [callback] - A callback to be invoked for each item successfully removed from the array.\r\n * @param {object} [context] - The context in which the callback is invoked.\r\n *\r\n * @return {*|Array.<*>} The item, or array of items, that were successfully removed from the array.\r\n */\r\nvar Remove = function (array, item, callback, context)\r\n{\r\n if (context === undefined) { context = array; }\r\n\r\n var index;\r\n\r\n // Fast path to avoid array mutation and iteration\r\n if (!Array.isArray(item))\r\n {\r\n index = array.indexOf(item);\r\n\r\n if (index !== -1)\r\n {\r\n SpliceOne(array, index);\r\n\r\n if (callback)\r\n {\r\n callback.call(context, item);\r\n }\r\n\r\n return item;\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n }\r\n\r\n // If we got this far, we have an array of items to remove\r\n\r\n var itemLength = item.length - 1;\r\n var removed = [];\r\n\r\n while (itemLength >= 0)\r\n {\r\n var entry = item[itemLength];\r\n\r\n index = array.indexOf(entry);\r\n\r\n if (index !== -1)\r\n {\r\n SpliceOne(array, index);\r\n\r\n removed.push(entry);\r\n\r\n if (callback)\r\n {\r\n callback.call(context, entry);\r\n }\r\n }\r\n\r\n itemLength--;\r\n }\r\n\r\n return removed;\r\n};\r\n\r\nmodule.exports = Remove;\r\n\n\n/***/ }),\n\n/***/ 60248:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar SpliceOne = __webpack_require__(19133);\r\n\r\n/**\r\n * Removes the item from the given position in the array.\r\n *\r\n * The array is modified in-place.\r\n *\r\n * You can optionally specify a callback to be invoked for the item if it is successfully removed from the array.\r\n *\r\n * @function Phaser.Utils.Array.RemoveAt\r\n * @since 3.4.0\r\n *\r\n * @param {array} array - The array to be modified.\r\n * @param {number} index - The array index to remove the item from. The index must be in bounds or it will throw an error.\r\n * @param {function} [callback] - A callback to be invoked for the item removed from the array.\r\n * @param {object} [context] - The context in which the callback is invoked.\r\n *\r\n * @return {*} The item that was removed.\r\n */\r\nvar RemoveAt = function (array, index, callback, context)\r\n{\r\n if (context === undefined) { context = array; }\r\n\r\n if (index < 0 || index > array.length - 1)\r\n {\r\n throw new Error('Index out of bounds');\r\n }\r\n\r\n var item = SpliceOne(array, index);\r\n\r\n if (callback)\r\n {\r\n callback.call(context, item);\r\n }\r\n\r\n return item;\r\n};\r\n\r\nmodule.exports = RemoveAt;\r\n\n\n/***/ }),\n\n/***/ 81409:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar SafeRange = __webpack_require__(82011);\r\n\r\n/**\r\n * Removes the item within the given range in the array.\r\n *\r\n * The array is modified in-place.\r\n *\r\n * You can optionally specify a callback to be invoked for the item/s successfully removed from the array.\r\n *\r\n * @function Phaser.Utils.Array.RemoveBetween\r\n * @since 3.4.0\r\n *\r\n * @param {array} array - The array to be modified.\r\n * @param {number} startIndex - The start index to remove from.\r\n * @param {number} endIndex - The end index to remove to.\r\n * @param {function} [callback] - A callback to be invoked for the item removed from the array.\r\n * @param {object} [context] - The context in which the callback is invoked.\r\n *\r\n * @return {Array.<*>} An array of items that were removed.\r\n */\r\nvar RemoveBetween = function (array, startIndex, endIndex, callback, context)\r\n{\r\n if (startIndex === undefined) { startIndex = 0; }\r\n if (endIndex === undefined) { endIndex = array.length; }\r\n if (context === undefined) { context = array; }\r\n\r\n if (SafeRange(array, startIndex, endIndex))\r\n {\r\n var size = endIndex - startIndex;\r\n\r\n var removed = array.splice(startIndex, size);\r\n\r\n if (callback)\r\n {\r\n for (var i = 0; i < removed.length; i++)\r\n {\r\n var entry = removed[i];\r\n\r\n callback.call(context, entry);\r\n }\r\n }\r\n\r\n return removed;\r\n }\r\n else\r\n {\r\n return [];\r\n }\r\n};\r\n\r\nmodule.exports = RemoveBetween;\r\n\n\n/***/ }),\n\n/***/ 31856:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar SpliceOne = __webpack_require__(19133);\r\n\r\n/**\r\n * Removes a random object from the given array and returns it.\r\n * Will return null if there are no array items that fall within the specified range or if there is no item for the randomly chosen index.\r\n *\r\n * @function Phaser.Utils.Array.RemoveRandomElement\r\n * @since 3.0.0\r\n *\r\n * @param {array} array - The array to removed a random element from.\r\n * @param {number} [start=0] - The array index to start the search from.\r\n * @param {number} [length=array.length] - Optional restriction on the number of elements to randomly select from.\r\n *\r\n * @return {object} The random element that was removed, or `null` if there were no array elements that fell within the given range.\r\n */\r\nvar RemoveRandomElement = function (array, start, length)\r\n{\r\n if (start === undefined) { start = 0; }\r\n if (length === undefined) { length = array.length; }\r\n\r\n var randomIndex = start + Math.floor(Math.random() * length);\r\n\r\n return SpliceOne(array, randomIndex);\r\n};\r\n\r\nmodule.exports = RemoveRandomElement;\r\n\n\n/***/ }),\n\n/***/ 42169:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Replaces an element of the array with the new element.\r\n * The new element cannot already be a member of the array.\r\n * The array is modified in-place.\r\n *\r\n * @function Phaser.Utils.Array.Replace\r\n * @since 3.4.0\r\n *\r\n * @param {array} array - The array to search within.\r\n * @param {*} oldChild - The element in the array that will be replaced.\r\n * @param {*} newChild - The element to be inserted into the array at the position of `oldChild`.\r\n *\r\n * @return {boolean} Returns true if the oldChild was successfully replaced, otherwise returns false.\r\n */\r\nvar Replace = function (array, oldChild, newChild)\r\n{\r\n var index1 = array.indexOf(oldChild);\r\n var index2 = array.indexOf(newChild);\r\n\r\n if (index1 !== -1 && index2 === -1)\r\n {\r\n array[index1] = newChild;\r\n\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n};\r\n\r\nmodule.exports = Replace;\r\n\n\n/***/ }),\n\n/***/ 86003:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Moves the element at the start of the array to the end, shifting all items in the process.\r\n * The \"rotation\" happens to the left.\r\n *\r\n * @function Phaser.Utils.Array.RotateLeft\r\n * @since 3.0.0\r\n *\r\n * @param {array} array - The array to shift to the left. This array is modified in place.\r\n * @param {number} [total=1] - The number of times to shift the array.\r\n *\r\n * @return {*} The most recently shifted element.\r\n */\r\nvar RotateLeft = function (array, total)\r\n{\r\n if (total === undefined) { total = 1; }\r\n\r\n var element = null;\r\n\r\n for (var i = 0; i < total; i++)\r\n {\r\n element = array.shift();\r\n array.push(element);\r\n }\r\n\r\n return element;\r\n};\r\n\r\nmodule.exports = RotateLeft;\r\n\n\n/***/ }),\n\n/***/ 49498:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Moves the element at the end of the array to the start, shifting all items in the process.\r\n * The \"rotation\" happens to the right.\r\n *\r\n * @function Phaser.Utils.Array.RotateRight\r\n * @since 3.0.0\r\n *\r\n * @param {array} array - The array to shift to the right. This array is modified in place.\r\n * @param {number} [total=1] - The number of times to shift the array.\r\n *\r\n * @return {*} The most recently shifted element.\r\n */\r\nvar RotateRight = function (array, total)\r\n{\r\n if (total === undefined) { total = 1; }\r\n\r\n var element = null;\r\n\r\n for (var i = 0; i < total; i++)\r\n {\r\n element = array.pop();\r\n array.unshift(element);\r\n }\r\n\r\n return element;\r\n};\r\n\r\nmodule.exports = RotateRight;\r\n\n\n/***/ }),\n\n/***/ 82011:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Tests if the start and end indexes are a safe range for the given array.\r\n *\r\n * @function Phaser.Utils.Array.SafeRange\r\n * @since 3.4.0\r\n *\r\n * @param {array} array - The array to check.\r\n * @param {number} startIndex - The start index.\r\n * @param {number} endIndex - The end index.\r\n * @param {boolean} [throwError=true] - Throw an error if the range is out of bounds.\r\n *\r\n * @return {boolean} True if the range is safe, otherwise false.\r\n */\r\nvar SafeRange = function (array, startIndex, endIndex, throwError)\r\n{\r\n var len = array.length;\r\n\r\n if (startIndex < 0 ||\r\n startIndex > len ||\r\n startIndex >= endIndex ||\r\n endIndex > len)\r\n {\r\n if (throwError)\r\n {\r\n throw new Error('Range Error: Values outside acceptable range');\r\n }\r\n\r\n return false;\r\n }\r\n else\r\n {\r\n return true;\r\n }\r\n};\r\n\r\nmodule.exports = SafeRange;\r\n\n\n/***/ }),\n\n/***/ 89545:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Moves the given element to the bottom of the array.\r\n * The array is modified in-place.\r\n *\r\n * @function Phaser.Utils.Array.SendToBack\r\n * @since 3.4.0\r\n *\r\n * @param {array} array - The array.\r\n * @param {*} item - The element to move.\r\n *\r\n * @return {*} The element that was moved.\r\n */\r\nvar SendToBack = function (array, item)\r\n{\r\n var currentIndex = array.indexOf(item);\r\n\r\n if (currentIndex !== -1 && currentIndex > 0)\r\n {\r\n array.splice(currentIndex, 1);\r\n array.unshift(item);\r\n }\r\n\r\n return item;\r\n};\r\n\r\nmodule.exports = SendToBack;\r\n\n\n/***/ }),\n\n/***/ 17810:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar SafeRange = __webpack_require__(82011);\r\n\r\n/**\r\n * Scans the array for elements with the given property. If found, the property is set to the `value`.\r\n *\r\n * For example: `SetAll('visible', true)` would set all elements that have a `visible` property to `false`.\r\n *\r\n * Optionally you can specify a start and end index. For example if the array had 100 elements,\r\n * and you set `startIndex` to 0 and `endIndex` to 50, it would update only the first 50 elements.\r\n *\r\n * @function Phaser.Utils.Array.SetAll\r\n * @since 3.4.0\r\n *\r\n * @param {array} array - The array to search.\r\n * @param {string} property - The property to test for on each array element.\r\n * @param {*} value - The value to set the property to.\r\n * @param {number} [startIndex] - An optional start index to search from.\r\n * @param {number} [endIndex] - An optional end index to search to.\r\n *\r\n * @return {array} The input array.\r\n */\r\nvar SetAll = function (array, property, value, startIndex, endIndex)\r\n{\r\n if (startIndex === undefined) { startIndex = 0; }\r\n if (endIndex === undefined) { endIndex = array.length; }\r\n\r\n if (SafeRange(array, startIndex, endIndex))\r\n {\r\n for (var i = startIndex; i < endIndex; i++)\r\n {\r\n var entry = array[i];\r\n\r\n if (entry.hasOwnProperty(property))\r\n {\r\n entry[property] = value;\r\n }\r\n }\r\n }\r\n\r\n return array;\r\n};\r\n\r\nmodule.exports = SetAll;\r\n\n\n/***/ }),\n\n/***/ 33680:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Shuffles the contents of the given array using the Fisher-Yates implementation.\r\n *\r\n * The original array is modified directly and returned.\r\n *\r\n * @function Phaser.Utils.Array.Shuffle\r\n * @since 3.0.0\r\n *\r\n * @generic T\r\n * @genericUse {T[]} - [array,$return]\r\n *\r\n * @param {T[]} array - The array to shuffle. This array is modified in place.\r\n *\r\n * @return {T[]} The shuffled array.\r\n */\r\nvar Shuffle = function (array)\r\n{\r\n for (var i = array.length - 1; i > 0; i--)\r\n {\r\n var j = Math.floor(Math.random() * (i + 1));\r\n var temp = array[i];\r\n array[i] = array[j];\r\n array[j] = temp;\r\n }\r\n\r\n return array;\r\n};\r\n\r\nmodule.exports = Shuffle;\r\n\n\n/***/ }),\n\n/***/ 90126:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Takes the given array and runs a numeric sort on it, ignoring any non-digits that\r\n * may be in the entries.\r\n *\r\n * You should only run this on arrays containing strings.\r\n *\r\n * @function Phaser.Utils.Array.SortByDigits\r\n * @since 3.50.0\r\n *\r\n * @param {string[]} array - The input array of strings.\r\n *\r\n * @return {string[]} The sorted input array.\r\n */\r\nvar SortByDigits = function (array)\r\n{\r\n var re = /\\D/g;\r\n\r\n array.sort(function (a, b)\r\n {\r\n return (parseInt(a.replace(re, ''), 10) - parseInt(b.replace(re, ''), 10));\r\n });\r\n\r\n return array;\r\n};\r\n\r\nmodule.exports = SortByDigits;\r\n\n\n/***/ }),\n\n/***/ 19133:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Removes a single item from an array and returns it without creating gc, like the native splice does.\r\n * Based on code by Mike Reinstein.\r\n *\r\n * @function Phaser.Utils.Array.SpliceOne\r\n * @since 3.0.0\r\n *\r\n * @param {array} array - The array to splice from.\r\n * @param {number} index - The index of the item which should be spliced.\r\n *\r\n * @return {*} The item which was spliced (removed).\r\n */\r\nvar SpliceOne = function (array, index)\r\n{\r\n if (index >= array.length)\r\n {\r\n return;\r\n }\r\n\r\n var len = array.length - 1;\r\n\r\n var item = array[index];\r\n\r\n for (var i = index; i < len; i++)\r\n {\r\n array[i] = array[i + 1];\r\n }\r\n\r\n array.length = len;\r\n\r\n return item;\r\n};\r\n\r\nmodule.exports = SpliceOne;\r\n\n\n/***/ }),\n\n/***/ 19186:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @author Angry Bytes (and contributors)\r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Device = __webpack_require__(82264);\r\n\r\n/**\r\n * The comparator function.\r\n *\r\n * @ignore\r\n *\r\n * @param {*} a - The first item to test.\r\n * @param {*} b - The second itemt to test.\r\n *\r\n * @return {boolean} True if they localCompare, otherwise false.\r\n */\r\nfunction Compare (a, b)\r\n{\r\n return String(a).localeCompare(b);\r\n}\r\n\r\n/**\r\n * Process the array contents.\r\n *\r\n * @ignore\r\n *\r\n * @param {array} array - The array to process.\r\n * @param {function} compare - The comparison function.\r\n *\r\n * @return {array} - The processed array.\r\n */\r\nfunction Process (array, compare)\r\n{\r\n // Short-circuit when there's nothing to sort.\r\n var len = array.length;\r\n\r\n if (len <= 1)\r\n {\r\n return array;\r\n }\r\n\r\n // Rather than dividing input, simply iterate chunks of 1, 2, 4, 8, etc.\r\n // Chunks are the size of the left or right hand in merge sort.\r\n // Stop when the left-hand covers all of the array.\r\n var buffer = new Array(len);\r\n\r\n for (var chk = 1; chk < len; chk *= 2)\r\n {\r\n RunPass(array, compare, chk, buffer);\r\n\r\n var tmp = array;\r\n\r\n array = buffer;\r\n\r\n buffer = tmp;\r\n }\r\n\r\n return array;\r\n}\r\n\r\n/**\r\n * Run a single pass with the given chunk size.\r\n *\r\n * @ignore\r\n *\r\n * @param {array} arr - The array to run the pass on.\r\n * @param {function} comp - The comparison function.\r\n * @param {number} chk - The number of iterations.\r\n * @param {array} result - The array to store the result in.\r\n */\r\nfunction RunPass (arr, comp, chk, result)\r\n{\r\n var len = arr.length;\r\n var i = 0;\r\n\r\n // Step size / double chunk size.\r\n var dbl = chk * 2;\r\n\r\n // Bounds of the left and right chunks.\r\n var l, r, e;\r\n\r\n // Iterators over the left and right chunk.\r\n var li, ri;\r\n\r\n // Iterate over pairs of chunks.\r\n for (l = 0; l < len; l += dbl)\r\n {\r\n r = l + chk;\r\n e = r + chk;\r\n\r\n if (r > len)\r\n {\r\n r = len;\r\n }\r\n\r\n if (e > len)\r\n {\r\n e = len;\r\n }\r\n\r\n // Iterate both chunks in parallel.\r\n li = l;\r\n ri = r;\r\n\r\n while (true)\r\n {\r\n // Compare the chunks.\r\n if (li < r && ri < e)\r\n {\r\n // This works for a regular `sort()` compatible comparator,\r\n // but also for a simple comparator like: `a > b`\r\n if (comp(arr[li], arr[ri]) <= 0)\r\n {\r\n result[i++] = arr[li++];\r\n }\r\n else\r\n {\r\n result[i++] = arr[ri++];\r\n }\r\n }\r\n else if (li < r)\r\n {\r\n // Nothing to compare, just flush what's left.\r\n result[i++] = arr[li++];\r\n }\r\n else if (ri < e)\r\n {\r\n result[i++] = arr[ri++];\r\n }\r\n else\r\n {\r\n // Both iterators are at the chunk ends.\r\n break;\r\n }\r\n }\r\n }\r\n}\r\n\r\n/**\r\n * An in-place stable array sort, because `Array#sort()` is not guaranteed stable.\r\n *\r\n * This is an implementation of merge sort, without recursion.\r\n *\r\n * Function based on the Two-Screen/stable sort 0.1.8 from https://github.com/Two-Screen/stable\r\n *\r\n * @function Phaser.Utils.Array.StableSort\r\n * @since 3.0.0\r\n *\r\n * @param {array} array - The input array to be sorted.\r\n * @param {function} [compare] - The comparison function.\r\n *\r\n * @return {array} The sorted result.\r\n */\r\nvar StableSort = function (array, compare)\r\n{\r\n if (compare === undefined) { compare = Compare; }\r\n\r\n // Short-circuit when there's nothing to sort.\r\n if (!array || array.length < 2)\r\n {\r\n return array;\r\n }\r\n\r\n if (Device.features.stableSort)\r\n {\r\n return array.sort(compare);\r\n }\r\n\r\n var result = Process(array, compare);\r\n\r\n // This simply copies back if the result isn't in the original array, which happens on an odd number of passes.\r\n if (result !== array)\r\n {\r\n RunPass(result, null, array.length, array);\r\n }\r\n\r\n return array;\r\n};\r\n\r\nmodule.exports = StableSort;\r\n\n\n/***/ }),\n\n/***/ 25630:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Swaps the position of two elements in the given array.\r\n * The elements must exist in the same array.\r\n * The array is modified in-place.\r\n *\r\n * @function Phaser.Utils.Array.Swap\r\n * @since 3.4.0\r\n *\r\n * @param {array} array - The input array.\r\n * @param {*} item1 - The first element to swap.\r\n * @param {*} item2 - The second element to swap.\r\n *\r\n * @return {array} The input array.\r\n */\r\nvar Swap = function (array, item1, item2)\r\n{\r\n if (item1 === item2)\r\n {\r\n return array;\r\n }\r\n\r\n var index1 = array.indexOf(item1);\r\n var index2 = array.indexOf(item2);\r\n\r\n if (index1 < 0 || index2 < 0)\r\n {\r\n throw new Error('Supplied items must be elements of the same array');\r\n }\r\n\r\n array[index1] = item2;\r\n array[index2] = item1;\r\n\r\n return array;\r\n};\r\n\r\nmodule.exports = Swap;\r\n\n\n/***/ }),\n\n/***/ 37105:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Utils.Array\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Matrix: __webpack_require__(54915),\r\n\r\n Add: __webpack_require__(71146),\r\n AddAt: __webpack_require__(51067),\r\n BringToTop: __webpack_require__(66905),\r\n CountAllMatching: __webpack_require__(21612),\r\n Each: __webpack_require__(95428),\r\n EachInRange: __webpack_require__(36914),\r\n FindClosestInSorted: __webpack_require__(81957),\r\n Flatten: __webpack_require__(43491),\r\n GetAll: __webpack_require__(46710),\r\n GetFirst: __webpack_require__(58731),\r\n GetRandom: __webpack_require__(26546),\r\n MoveDown: __webpack_require__(70864),\r\n MoveTo: __webpack_require__(69693),\r\n MoveUp: __webpack_require__(40853),\r\n MoveAbove: __webpack_require__(85835),\r\n MoveBelow: __webpack_require__(83371),\r\n NumberArray: __webpack_require__(20283),\r\n NumberArrayStep: __webpack_require__(593),\r\n QuickSelect: __webpack_require__(43886),\r\n Range: __webpack_require__(88492),\r\n Remove: __webpack_require__(72905),\r\n RemoveAt: __webpack_require__(60248),\r\n RemoveBetween: __webpack_require__(81409),\r\n RemoveRandomElement: __webpack_require__(31856),\r\n Replace: __webpack_require__(42169),\r\n RotateLeft: __webpack_require__(86003),\r\n RotateRight: __webpack_require__(49498),\r\n SafeRange: __webpack_require__(82011),\r\n SendToBack: __webpack_require__(89545),\r\n SetAll: __webpack_require__(17810),\r\n Shuffle: __webpack_require__(33680),\r\n SortByDigits: __webpack_require__(90126),\r\n SpliceOne: __webpack_require__(19133),\r\n StableSort: __webpack_require__(19186),\r\n Swap: __webpack_require__(25630)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 86922:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Checks if an array can be used as a matrix.\r\n *\r\n * A matrix is a two-dimensional array (array of arrays), where all sub-arrays (rows)\r\n * have the same length. This is an example matrix:\r\n *\r\n * ```\r\n * [\r\n * [ 1, 1, 1, 1, 1, 1 ],\r\n * [ 2, 0, 0, 0, 0, 4 ],\r\n * [ 2, 0, 1, 2, 0, 4 ],\r\n * [ 2, 0, 3, 4, 0, 4 ],\r\n * [ 2, 0, 0, 0, 0, 4 ],\r\n * [ 3, 3, 3, 3, 3, 3 ]\r\n * ]\r\n * ```\r\n *\r\n * @function Phaser.Utils.Array.Matrix.CheckMatrix\r\n * @since 3.0.0\r\n *\r\n * @generic T\r\n * @genericUse {T[][]} - [matrix]\r\n *\r\n * @param {T[][]} [matrix] - The array to check.\r\n *\r\n * @return {boolean} `true` if the given `matrix` array is a valid matrix.\r\n */\r\nvar CheckMatrix = function (matrix)\r\n{\r\n if (!Array.isArray(matrix) || !Array.isArray(matrix[0]))\r\n {\r\n return false;\r\n }\r\n\r\n // How long is the first row?\r\n var size = matrix[0].length;\r\n\r\n // Validate the rest of the rows are the same length\r\n for (var i = 1; i < matrix.length; i++)\r\n {\r\n if (matrix[i].length !== size)\r\n {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n};\r\n\r\nmodule.exports = CheckMatrix;\r\n\n\n/***/ }),\n\n/***/ 63362:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Pad = __webpack_require__(41836);\r\nvar CheckMatrix = __webpack_require__(86922);\r\n\r\n/**\r\n * Generates a string (which you can pass to console.log) from the given Array Matrix.\r\n *\r\n * A matrix is a two-dimensional array (array of arrays), where all sub-arrays (rows)\r\n * have the same length. There must be at least two rows. This is an example matrix:\r\n *\r\n * ```\r\n * [\r\n * [ 1, 1, 1, 1, 1, 1 ],\r\n * [ 2, 0, 0, 0, 0, 4 ],\r\n * [ 2, 0, 1, 2, 0, 4 ],\r\n * [ 2, 0, 3, 4, 0, 4 ],\r\n * [ 2, 0, 0, 0, 0, 4 ],\r\n * [ 3, 3, 3, 3, 3, 3 ]\r\n * ]\r\n * ```\r\n *\r\n * @function Phaser.Utils.Array.Matrix.MatrixToString\r\n * @since 3.0.0\r\n *\r\n * @generic T\r\n * @genericUse {T[][]} - [matrix]\r\n *\r\n * @param {T[][]} [matrix] - A 2-dimensional array.\r\n *\r\n * @return {string} A string representing the matrix.\r\n */\r\nvar MatrixToString = function (matrix)\r\n{\r\n var str = '';\r\n\r\n if (!CheckMatrix(matrix))\r\n {\r\n return str;\r\n }\r\n\r\n for (var r = 0; r < matrix.length; r++)\r\n {\r\n for (var c = 0; c < matrix[r].length; c++)\r\n {\r\n var cell = matrix[r][c].toString();\r\n\r\n if (cell !== 'undefined')\r\n {\r\n str += Pad(cell, 2);\r\n }\r\n else\r\n {\r\n str += '?';\r\n }\r\n\r\n if (c < matrix[r].length - 1)\r\n {\r\n str += ' |';\r\n }\r\n }\r\n\r\n if (r < matrix.length - 1)\r\n {\r\n str += '\\n';\r\n\r\n for (var i = 0; i < matrix[r].length; i++)\r\n {\r\n str += '---';\r\n\r\n if (i < matrix[r].length - 1)\r\n {\r\n str += '+';\r\n }\r\n }\r\n\r\n str += '\\n';\r\n }\r\n\r\n }\r\n\r\n return str;\r\n};\r\n\r\nmodule.exports = MatrixToString;\r\n\n\n/***/ }),\n\n/***/ 92598:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Reverses the columns in the given Array Matrix.\r\n *\r\n * A matrix is a two-dimensional array (array of arrays), where all sub-arrays (rows)\r\n * have the same length. There must be at least two rows. This is an example matrix:\r\n *\r\n * ```\r\n * [\r\n * [ 1, 1, 1, 1, 1, 1 ],\r\n * [ 2, 0, 0, 0, 0, 4 ],\r\n * [ 2, 0, 1, 2, 0, 4 ],\r\n * [ 2, 0, 3, 4, 0, 4 ],\r\n * [ 2, 0, 0, 0, 0, 4 ],\r\n * [ 3, 3, 3, 3, 3, 3 ]\r\n * ]\r\n * ```\r\n *\r\n * @function Phaser.Utils.Array.Matrix.ReverseColumns\r\n * @since 3.0.0\r\n *\r\n * @generic T\r\n * @genericUse {T[][]} - [matrix,$return]\r\n *\r\n * @param {T[][]} [matrix] - The array matrix to reverse the columns for.\r\n *\r\n * @return {T[][]} The column reversed matrix.\r\n */\r\nvar ReverseColumns = function (matrix)\r\n{\r\n return matrix.reverse();\r\n};\r\n\r\nmodule.exports = ReverseColumns;\r\n\n\n/***/ }),\n\n/***/ 21224:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Reverses the rows in the given Array Matrix.\r\n *\r\n * A matrix is a two-dimensional array (array of arrays), where all sub-arrays (rows)\r\n * have the same length. There must be at least two rows. This is an example matrix:\r\n *\r\n * ```\r\n * [\r\n * [ 1, 1, 1, 1, 1, 1 ],\r\n * [ 2, 0, 0, 0, 0, 4 ],\r\n * [ 2, 0, 1, 2, 0, 4 ],\r\n * [ 2, 0, 3, 4, 0, 4 ],\r\n * [ 2, 0, 0, 0, 0, 4 ],\r\n * [ 3, 3, 3, 3, 3, 3 ]\r\n * ]\r\n * ```\r\n *\r\n * @function Phaser.Utils.Array.Matrix.ReverseRows\r\n * @since 3.0.0\r\n *\r\n * @generic T\r\n * @genericUse {T[][]} - [matrix,$return]\r\n *\r\n * @param {T[][]} [matrix] - The array matrix to reverse the rows for.\r\n *\r\n * @return {T[][]} The column reversed matrix.\r\n */\r\nvar ReverseRows = function (matrix)\r\n{\r\n for (var i = 0; i < matrix.length; i++)\r\n {\r\n matrix[i].reverse();\r\n }\r\n\r\n return matrix;\r\n};\r\n\r\nmodule.exports = ReverseRows;\r\n\n\n/***/ }),\n\n/***/ 98717:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar RotateMatrix = __webpack_require__(37829);\r\n\r\n/**\r\n * Rotates the array matrix 180 degrees.\r\n *\r\n * A matrix is a two-dimensional array (array of arrays), where all sub-arrays (rows)\r\n * have the same length. There must be at least two rows. This is an example matrix:\r\n *\r\n * ```\r\n * [\r\n * [ 1, 1, 1, 1, 1, 1 ],\r\n * [ 2, 0, 0, 0, 0, 4 ],\r\n * [ 2, 0, 1, 2, 0, 4 ],\r\n * [ 2, 0, 3, 4, 0, 4 ],\r\n * [ 2, 0, 0, 0, 0, 4 ],\r\n * [ 3, 3, 3, 3, 3, 3 ]\r\n * ]\r\n * ```\r\n *\r\n * @function Phaser.Utils.Array.Matrix.Rotate180\r\n * @since 3.0.0\r\n *\r\n * @generic T\r\n * @genericUse {T[][]} - [matrix,$return]\r\n *\r\n * @param {T[][]} [matrix] - The array to rotate.\r\n *\r\n * @return {T[][]} The rotated matrix array. The source matrix should be discard for the returned matrix.\r\n */\r\nvar Rotate180 = function (matrix)\r\n{\r\n return RotateMatrix(matrix, 180);\r\n};\r\n\r\nmodule.exports = Rotate180;\r\n\n\n/***/ }),\n\n/***/ 44657:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar RotateMatrix = __webpack_require__(37829);\r\n\r\n/**\r\n * Rotates the array matrix to the left (or 90 degrees)\r\n *\r\n * A matrix is a two-dimensional array (array of arrays), where all sub-arrays (rows)\r\n * have the same length. There must be at least two rows. This is an example matrix:\r\n *\r\n * ```\r\n * [\r\n * [ 1, 1, 1, 1, 1, 1 ],\r\n * [ 2, 0, 0, 0, 0, 4 ],\r\n * [ 2, 0, 1, 2, 0, 4 ],\r\n * [ 2, 0, 3, 4, 0, 4 ],\r\n * [ 2, 0, 0, 0, 0, 4 ],\r\n * [ 3, 3, 3, 3, 3, 3 ]\r\n * ]\r\n * ```\r\n *\r\n * @function Phaser.Utils.Array.Matrix.RotateLeft\r\n * @since 3.0.0\r\n *\r\n * @generic T\r\n * @genericUse {T[][]} - [matrix,$return]\r\n *\r\n * @param {T[][]} [matrix] - The array to rotate.\r\n * @param {number} [amount=1] - The number of times to rotate the matrix.\r\n *\r\n * @return {T[][]} The rotated matrix array. The source matrix should be discard for the returned matrix.\r\n */\r\nvar RotateLeft = function (matrix, amount)\r\n{\r\n if (amount === undefined) { amount = 1; }\r\n\r\n for (var i = 0; i < amount; i++)\r\n {\r\n matrix = RotateMatrix(matrix, 90);\r\n }\r\n\r\n return matrix;\r\n};\r\n\r\nmodule.exports = RotateLeft;\r\n\n\n/***/ }),\n\n/***/ 37829:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar CheckMatrix = __webpack_require__(86922);\r\nvar TransposeMatrix = __webpack_require__(2429);\r\n\r\n/**\r\n * Rotates the array matrix based on the given rotation value.\r\n *\r\n * The value can be given in degrees: 90, -90, 270, -270 or 180,\r\n * or a string command: `rotateLeft`, `rotateRight` or `rotate180`.\r\n *\r\n * Based on the routine from {@link http://jsfiddle.net/MrPolywhirl/NH42z/}.\r\n *\r\n * A matrix is a two-dimensional array (array of arrays), where all sub-arrays (rows)\r\n * have the same length. There must be at least two rows. This is an example matrix:\r\n *\r\n * ```\r\n * [\r\n * [ 1, 1, 1, 1, 1, 1 ],\r\n * [ 2, 0, 0, 0, 0, 4 ],\r\n * [ 2, 0, 1, 2, 0, 4 ],\r\n * [ 2, 0, 3, 4, 0, 4 ],\r\n * [ 2, 0, 0, 0, 0, 4 ],\r\n * [ 3, 3, 3, 3, 3, 3 ]\r\n * ]\r\n * ```\r\n *\r\n * @function Phaser.Utils.Array.Matrix.RotateMatrix\r\n * @since 3.0.0\r\n *\r\n * @generic T\r\n * @genericUse {T[][]} - [matrix,$return]\r\n *\r\n * @param {T[][]} [matrix] - The array to rotate.\r\n * @param {(number|string)} [direction=90] - The amount to rotate the matrix by.\r\n *\r\n * @return {T[][]} The rotated matrix array. The source matrix should be discard for the returned matrix.\r\n */\r\nvar RotateMatrix = function (matrix, direction)\r\n{\r\n if (direction === undefined) { direction = 90; }\r\n\r\n if (!CheckMatrix(matrix))\r\n {\r\n return null;\r\n }\r\n\r\n if (typeof direction !== 'string')\r\n {\r\n direction = ((direction % 360) + 360) % 360;\r\n }\r\n\r\n if (direction === 90 || direction === -270 || direction === 'rotateLeft')\r\n {\r\n matrix = TransposeMatrix(matrix);\r\n matrix.reverse();\r\n }\r\n else if (direction === -90 || direction === 270 || direction === 'rotateRight')\r\n {\r\n matrix.reverse();\r\n matrix = TransposeMatrix(matrix);\r\n }\r\n else if (Math.abs(direction) === 180 || direction === 'rotate180')\r\n {\r\n for (var i = 0; i < matrix.length; i++)\r\n {\r\n matrix[i].reverse();\r\n }\r\n\r\n matrix.reverse();\r\n }\r\n\r\n return matrix;\r\n};\r\n\r\nmodule.exports = RotateMatrix;\r\n\n\n/***/ }),\n\n/***/ 92632:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar RotateMatrix = __webpack_require__(37829);\r\n\r\n/**\r\n * Rotates the array matrix to the left (or -90 degrees)\r\n *\r\n * A matrix is a two-dimensional array (array of arrays), where all sub-arrays (rows)\r\n * have the same length. There must be at least two rows. This is an example matrix:\r\n *\r\n * ```\r\n * [\r\n * [ 1, 1, 1, 1, 1, 1 ],\r\n * [ 2, 0, 0, 0, 0, 4 ],\r\n * [ 2, 0, 1, 2, 0, 4 ],\r\n * [ 2, 0, 3, 4, 0, 4 ],\r\n * [ 2, 0, 0, 0, 0, 4 ],\r\n * [ 3, 3, 3, 3, 3, 3 ]\r\n * ]\r\n * ```\r\n *\r\n * @function Phaser.Utils.Array.Matrix.RotateRight\r\n * @since 3.0.0\r\n *\r\n * @generic T\r\n * @genericUse {T[][]} - [matrix,$return]\r\n *\r\n * @param {T[][]} [matrix] - The array to rotate.\r\n * @param {number} [amount=1] - The number of times to rotate the matrix.\r\n *\r\n * @return {T[][]} The rotated matrix array. The source matrix should be discard for the returned matrix.\r\n */\r\nvar RotateRight = function (matrix, amount)\r\n{\r\n if (amount === undefined) { amount = 1; }\r\n\r\n for (var i = 0; i < amount; i++)\r\n {\r\n matrix = RotateMatrix(matrix, -90);\r\n }\r\n\r\n return matrix;\r\n};\r\n\r\nmodule.exports = RotateRight;\r\n\n\n/***/ }),\n\n/***/ 69512:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar RotateLeft = __webpack_require__(86003);\r\nvar RotateRight = __webpack_require__(49498);\r\n\r\n/**\r\n * Translates the given Array Matrix by shifting each column and row the\r\n * amount specified.\r\n *\r\n * A matrix is a two-dimensional array (array of arrays), where all sub-arrays (rows)\r\n * have the same length. There must be at least two rows. This is an example matrix:\r\n *\r\n * ```\r\n * [\r\n * [ 1, 1, 1, 1, 1, 1 ],\r\n * [ 2, 0, 0, 0, 0, 4 ],\r\n * [ 2, 0, 1, 2, 0, 4 ],\r\n * [ 2, 0, 3, 4, 0, 4 ],\r\n * [ 2, 0, 0, 0, 0, 4 ],\r\n * [ 3, 3, 3, 3, 3, 3 ]\r\n * ]\r\n * ```\r\n *\r\n * @function Phaser.Utils.Array.Matrix.Translate\r\n * @since 3.50.0\r\n *\r\n * @generic T\r\n * @genericUse {T[][]} - [matrix,$return]\r\n *\r\n * @param {T[][]} [matrix] - The array matrix to translate.\r\n * @param {number} [x=0] - The amount to horizontally translate the matrix by.\r\n * @param {number} [y=0] - The amount to vertically translate the matrix by.\r\n *\r\n * @return {T[][]} The translated matrix.\r\n */\r\nvar TranslateMatrix = function (matrix, x, y)\r\n{\r\n if (x === undefined) { x = 0; }\r\n if (y === undefined) { y = 0; }\r\n\r\n // Vertical translation\r\n\r\n if (y !== 0)\r\n {\r\n if (y < 0)\r\n {\r\n // Shift Up\r\n RotateLeft(matrix, Math.abs(y));\r\n }\r\n else\r\n {\r\n // Shift Down\r\n RotateRight(matrix, y);\r\n }\r\n }\r\n\r\n // Horizontal translation\r\n\r\n if (x !== 0)\r\n {\r\n for (var i = 0; i < matrix.length; i++)\r\n {\r\n var row = matrix[i];\r\n\r\n if (x < 0)\r\n {\r\n RotateLeft(row, Math.abs(x));\r\n }\r\n else\r\n {\r\n RotateRight(row, x);\r\n }\r\n }\r\n }\r\n\r\n return matrix;\r\n};\r\n\r\nmodule.exports = TranslateMatrix;\r\n\n\n/***/ }),\n\n/***/ 2429:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Transposes the elements of the given matrix (array of arrays).\r\n *\r\n * The transpose of a matrix is a new matrix whose rows are the columns of the original.\r\n *\r\n * A matrix is a two-dimensional array (array of arrays), where all sub-arrays (rows)\r\n * have the same length. There must be at least two rows. This is an example matrix:\r\n *\r\n * ```\r\n * [\r\n * [ 1, 1, 1, 1, 1, 1 ],\r\n * [ 2, 0, 0, 0, 0, 4 ],\r\n * [ 2, 0, 1, 2, 0, 4 ],\r\n * [ 2, 0, 3, 4, 0, 4 ],\r\n * [ 2, 0, 0, 0, 0, 4 ],\r\n * [ 3, 3, 3, 3, 3, 3 ]\r\n * ]\r\n * ```\r\n *\r\n * @function Phaser.Utils.Array.Matrix.TransposeMatrix\r\n * @since 3.0.0\r\n *\r\n * @generic T\r\n * @genericUse {T[][]} - [array,$return]\r\n *\r\n * @param {T[][]} [array] - The array matrix to transpose.\r\n *\r\n * @return {T[][]} A new array matrix which is a transposed version of the given array.\r\n */\r\nvar TransposeMatrix = function (array)\r\n{\r\n var sourceRowCount = array.length;\r\n var sourceColCount = array[0].length;\r\n\r\n var result = new Array(sourceColCount);\r\n\r\n for (var i = 0; i < sourceColCount; i++)\r\n {\r\n result[i] = new Array(sourceRowCount);\r\n\r\n for (var j = sourceRowCount - 1; j > -1; j--)\r\n {\r\n result[i][j] = array[j][i];\r\n }\r\n }\r\n\r\n return result;\r\n};\r\n\r\nmodule.exports = TransposeMatrix;\r\n\n\n/***/ }),\n\n/***/ 54915:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Utils.Array.Matrix\r\n */\r\n\r\nmodule.exports = {\r\n\r\n CheckMatrix: __webpack_require__(86922),\r\n MatrixToString: __webpack_require__(63362),\r\n ReverseColumns: __webpack_require__(92598),\r\n ReverseRows: __webpack_require__(21224),\r\n Rotate180: __webpack_require__(98717),\r\n RotateLeft: __webpack_require__(44657),\r\n RotateMatrix: __webpack_require__(37829),\r\n RotateRight: __webpack_require__(92632),\r\n Translate: __webpack_require__(69512),\r\n TransposeMatrix: __webpack_require__(2429)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 71334:\n/***/ ((module) => {\n\n/**\r\n * @author Niklas von Hertzen (https://github.com/niklasvh/base64-arraybuffer)\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\r\n\r\n/**\r\n * Converts an ArrayBuffer into a base64 string.\r\n *\r\n * The resulting string can optionally be a data uri if the `mediaType` argument is provided.\r\n *\r\n * See https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs for more details.\r\n *\r\n * @function Phaser.Utils.Base64.ArrayBufferToBase64\r\n * @since 3.18.0\r\n *\r\n * @param {ArrayBuffer} arrayBuffer - The Array Buffer to encode.\r\n * @param {string} [mediaType] - An optional media type, i.e. `audio/ogg` or `image/jpeg`. If included the resulting string will be a data URI.\r\n *\r\n * @return {string} The base64 encoded Array Buffer.\r\n */\r\nvar ArrayBufferToBase64 = function (arrayBuffer, mediaType)\r\n{\r\n var bytes = new Uint8Array(arrayBuffer);\r\n var len = bytes.length;\r\n\r\n var base64 = (mediaType) ? 'data:' + mediaType + ';base64,' : '';\r\n\r\n for (var i = 0; i < len; i += 3)\r\n {\r\n base64 += chars[bytes[i] >> 2];\r\n base64 += chars[((bytes[i] & 3) << 4) | (bytes[i + 1] >> 4)];\r\n base64 += chars[((bytes[i + 1] & 15) << 2) | (bytes[i + 2] >> 6)];\r\n base64 += chars[bytes[i + 2] & 63];\r\n }\r\n\r\n if ((len % 3) === 2)\r\n {\r\n base64 = base64.substring(0, base64.length - 1) + '=';\r\n }\r\n else if (len % 3 === 1)\r\n {\r\n base64 = base64.substring(0, base64.length - 2) + '==';\r\n }\r\n\r\n return base64;\r\n};\r\n\r\nmodule.exports = ArrayBufferToBase64;\r\n\n\n/***/ }),\n\n/***/ 53134:\n/***/ ((module) => {\n\n/**\r\n * @author Niklas von Hertzen (https://github.com/niklasvh/base64-arraybuffer)\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\r\n\r\n// Use a lookup table to find the index.\r\nvar lookup = new Uint8Array(256);\r\n\r\nfor (var i = 0; i < chars.length; i++)\r\n{\r\n lookup[chars.charCodeAt(i)] = i;\r\n}\r\n\r\n/**\r\n * Converts a base64 string, either with or without a data uri, into an Array Buffer.\r\n *\r\n * @function Phaser.Utils.Base64.Base64ToArrayBuffer\r\n * @since 3.18.0\r\n *\r\n * @param {string} base64 - The base64 string to be decoded. Can optionally contain a data URI header, which will be stripped out prior to decoding.\r\n *\r\n * @return {ArrayBuffer} An ArrayBuffer decoded from the base64 data.\r\n */\r\nvar Base64ToArrayBuffer = function (base64)\r\n{\r\n // Is it a data uri? if so, strip the header away\r\n base64 = base64.substr(base64.indexOf(',') + 1);\r\n\r\n var len = base64.length;\r\n var bufferLength = len * 0.75;\r\n var p = 0;\r\n var encoded1;\r\n var encoded2;\r\n var encoded3;\r\n var encoded4;\r\n\r\n if (base64[len - 1] === '=')\r\n {\r\n bufferLength--;\r\n\r\n if (base64[len - 2] === '=')\r\n {\r\n bufferLength--;\r\n }\r\n }\r\n\r\n var arrayBuffer = new ArrayBuffer(bufferLength);\r\n var bytes = new Uint8Array(arrayBuffer);\r\n\r\n for (var i = 0; i < len; i += 4)\r\n {\r\n encoded1 = lookup[base64.charCodeAt(i)];\r\n encoded2 = lookup[base64.charCodeAt(i + 1)];\r\n encoded3 = lookup[base64.charCodeAt(i + 2)];\r\n encoded4 = lookup[base64.charCodeAt(i + 3)];\r\n\r\n bytes[p++] = (encoded1 << 2) | (encoded2 >> 4);\r\n bytes[p++] = ((encoded2 & 15) << 4) | (encoded3 >> 2);\r\n bytes[p++] = ((encoded3 & 3) << 6) | (encoded4 & 63);\r\n }\r\n\r\n return arrayBuffer;\r\n};\r\n\r\nmodule.exports = Base64ToArrayBuffer;\r\n\n\n/***/ }),\n\n/***/ 65839:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Utils.Base64\r\n */\r\n\r\nmodule.exports = {\r\n\r\n ArrayBufferToBase64: __webpack_require__(71334),\r\n Base64ToArrayBuffer: __webpack_require__(53134)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 91799:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Utils\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Array: __webpack_require__(37105),\r\n Base64: __webpack_require__(65839),\r\n Objects: __webpack_require__(1183),\r\n String: __webpack_require__(31749),\r\n NOOP: __webpack_require__(29747),\r\n NULL: __webpack_require__(20242)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 41786:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Shallow Object Clone. Will not clone nested objects.\r\n *\r\n * @function Phaser.Utils.Objects.Clone\r\n * @since 3.0.0\r\n *\r\n * @param {object} obj - The object to clone.\r\n *\r\n * @return {object} A new object with the same properties as the input object.\r\n */\r\nvar Clone = function (obj)\r\n{\r\n var clone = {};\r\n\r\n for (var key in obj)\r\n {\r\n if (Array.isArray(obj[key]))\r\n {\r\n clone[key] = obj[key].slice(0);\r\n }\r\n else\r\n {\r\n clone[key] = obj[key];\r\n }\r\n }\r\n\r\n return clone;\r\n};\r\n\r\nmodule.exports = Clone;\r\n\n\n/***/ }),\n\n/***/ 62644:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Deep Copy the given object or array.\r\n *\r\n * @function Phaser.Utils.Objects.DeepCopy\r\n * @since 3.50.0\r\n *\r\n * @param {object} obj - The object to deep copy.\r\n *\r\n * @return {object} A deep copy of the original object.\r\n */\r\nvar DeepCopy = function (inObject)\r\n{\r\n var outObject;\r\n var value;\r\n var key;\r\n\r\n if (typeof inObject !== 'object' || inObject === null)\r\n {\r\n // inObject is not an object\r\n return inObject;\r\n }\r\n\r\n // Create an array or object to hold the values\r\n outObject = Array.isArray(inObject) ? [] : {};\r\n\r\n for (key in inObject)\r\n {\r\n value = inObject[key];\r\n\r\n // Recursively (deep) copy for nested objects, including arrays\r\n outObject[key] = DeepCopy(value);\r\n }\r\n\r\n return outObject;\r\n};\r\n\r\nmodule.exports = DeepCopy;\r\n\n\n/***/ }),\n\n/***/ 79291:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar IsPlainObject = __webpack_require__(41212);\r\n\r\n// @param {boolean} deep - Perform a deep copy?\r\n// @param {object} target - The target object to copy to.\r\n// @return {object} The extended object.\r\n\r\n/**\r\n * This is a slightly modified version of http://api.jquery.com/jQuery.extend/\r\n *\r\n * @function Phaser.Utils.Objects.Extend\r\n * @since 3.0.0\r\n *\r\n * @param {...*} [args] - The objects that will be mixed.\r\n *\r\n * @return {object} The extended object.\r\n */\r\nvar Extend = function ()\r\n{\r\n var options, name, src, copy, copyIsArray, clone,\r\n target = arguments[0] || {},\r\n i = 1,\r\n length = arguments.length,\r\n deep = false;\r\n\r\n // Handle a deep copy situation\r\n if (typeof target === 'boolean')\r\n {\r\n deep = target;\r\n target = arguments[1] || {};\r\n\r\n // skip the boolean and the target\r\n i = 2;\r\n }\r\n\r\n // extend Phaser if only one argument is passed\r\n if (length === i)\r\n {\r\n target = this;\r\n --i;\r\n }\r\n\r\n for (; i < length; i++)\r\n {\r\n // Only deal with non-null/undefined values\r\n if ((options = arguments[i]) != null)\r\n {\r\n // Extend the base object\r\n for (name in options)\r\n {\r\n src = target[name];\r\n copy = options[name];\r\n\r\n // Prevent never-ending loop\r\n if (target === copy)\r\n {\r\n continue;\r\n }\r\n\r\n // Recurse if we're merging plain objects or arrays\r\n if (deep && copy && (IsPlainObject(copy) || (copyIsArray = Array.isArray(copy))))\r\n {\r\n if (copyIsArray)\r\n {\r\n copyIsArray = false;\r\n clone = src && Array.isArray(src) ? src : [];\r\n }\r\n else\r\n {\r\n clone = src && IsPlainObject(src) ? src : {};\r\n }\r\n\r\n // Never move original objects, clone them\r\n target[name] = Extend(deep, clone, copy);\r\n\r\n // Don't bring in undefined values\r\n }\r\n else if (copy !== undefined)\r\n {\r\n target[name] = copy;\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Return the modified object\r\n return target;\r\n};\r\n\r\nmodule.exports = Extend;\r\n\n\n/***/ }),\n\n/***/ 23568:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar MATH = __webpack_require__(75508);\r\nvar GetValue = __webpack_require__(35154);\r\n\r\n/**\r\n * Retrieves a value from an object. Allows for more advanced selection options, including:\r\n *\r\n * Allowed types:\r\n *\r\n * Explicit:\r\n * {\r\n * x: 4\r\n * }\r\n *\r\n * From function\r\n * {\r\n * x: function ()\r\n * }\r\n *\r\n * Randomly pick one element from the array\r\n * {\r\n * x: [a, b, c, d, e, f]\r\n * }\r\n *\r\n * Random integer between min and max:\r\n * {\r\n * x: { randInt: [min, max] }\r\n * }\r\n *\r\n * Random float between min and max:\r\n * {\r\n * x: { randFloat: [min, max] }\r\n * }\r\n *\r\n *\r\n * @function Phaser.Utils.Objects.GetAdvancedValue\r\n * @since 3.0.0\r\n *\r\n * @param {object} source - The object to retrieve the value from.\r\n * @param {string} key - The name of the property to retrieve from the object. If a property is nested, the names of its preceding properties should be separated by a dot (`.`) - `banner.hideBanner` would return the value of the `hideBanner` property from the object stored in the `banner` property of the `source` object.\r\n * @param {*} defaultValue - The value to return if the `key` isn't found in the `source` object.\r\n *\r\n * @return {*} The value of the requested key.\r\n */\r\nvar GetAdvancedValue = function (source, key, defaultValue)\r\n{\r\n var value = GetValue(source, key, null);\r\n\r\n if (value === null)\r\n {\r\n return defaultValue;\r\n }\r\n else if (Array.isArray(value))\r\n {\r\n return MATH.RND.pick(value);\r\n }\r\n else if (typeof value === 'object')\r\n {\r\n if (value.hasOwnProperty('randInt'))\r\n {\r\n return MATH.RND.integerInRange(value.randInt[0], value.randInt[1]);\r\n }\r\n else if (value.hasOwnProperty('randFloat'))\r\n {\r\n return MATH.RND.realInRange(value.randFloat[0], value.randFloat[1]);\r\n }\r\n }\r\n else if (typeof value === 'function')\r\n {\r\n return value(key);\r\n }\r\n\r\n return value;\r\n};\r\n\r\nmodule.exports = GetAdvancedValue;\r\n\n\n/***/ }),\n\n/***/ 95540:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Finds the key within the top level of the {@link source} object, or returns {@link defaultValue}\r\n *\r\n * @function Phaser.Utils.Objects.GetFastValue\r\n * @since 3.0.0\r\n *\r\n * @param {object} source - The object to search\r\n * @param {string} key - The key for the property on source. Must exist at the top level of the source object (no periods)\r\n * @param {*} [defaultValue] - The default value to use if the key does not exist.\r\n *\r\n * @return {*} The value if found; otherwise, defaultValue (null if none provided)\r\n */\r\nvar GetFastValue = function (source, key, defaultValue)\r\n{\r\n var t = typeof(source);\r\n\r\n if (!source || t === 'number' || t === 'string')\r\n {\r\n return defaultValue;\r\n }\r\n else if (source.hasOwnProperty(key) && source[key] !== undefined)\r\n {\r\n return source[key];\r\n }\r\n else\r\n {\r\n return defaultValue;\r\n }\r\n};\r\n\r\nmodule.exports = GetFastValue;\r\n\n\n/***/ }),\n\n/***/ 82840:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar GetValue = __webpack_require__(35154);\r\nvar Clamp = __webpack_require__(45319);\r\n\r\n/**\r\n * Retrieves and clamps a numerical value from an object.\r\n *\r\n * @function Phaser.Utils.Objects.GetMinMaxValue\r\n * @since 3.0.0\r\n *\r\n * @param {object} source - The object to retrieve the value from.\r\n * @param {string} key - The name of the property to retrieve from the object. If a property is nested, the names of its preceding properties should be separated by a dot (`.`).\r\n * @param {number} min - The minimum value which can be returned.\r\n * @param {number} max - The maximum value which can be returned.\r\n * @param {number} defaultValue - The value to return if the property doesn't exist. It's also constrained to the given bounds.\r\n *\r\n * @return {number} The clamped value from the `source` object.\r\n */\r\nvar GetMinMaxValue = function (source, key, min, max, defaultValue)\r\n{\r\n if (defaultValue === undefined) { defaultValue = min; }\r\n\r\n var value = GetValue(source, key, defaultValue);\r\n\r\n return Clamp(value, min, max);\r\n};\r\n\r\nmodule.exports = GetMinMaxValue;\r\n\n\n/***/ }),\n\n/***/ 35154:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Retrieves a value from an object, or an alternative object, falling to a back-up default value if not found.\r\n *\r\n * The key is a string, which can be split based on the use of the period character.\r\n *\r\n * For example:\r\n *\r\n * ```javascript\r\n * const source = {\r\n * lives: 3,\r\n * render: {\r\n * screen: {\r\n * width: 1024\r\n * }\r\n * }\r\n * }\r\n *\r\n * const lives = GetValue(source, 'lives', 1);\r\n * const width = GetValue(source, 'render.screen.width', 800);\r\n * const height = GetValue(source, 'render.screen.height', 600);\r\n * ```\r\n *\r\n * In the code above, `lives` will be 3 because it's defined at the top level of `source`.\r\n * The `width` value will be 1024 because it can be found inside the `render.screen` object.\r\n * The `height` value will be 600, the default value, because it is missing from the `render.screen` object.\r\n *\r\n * @function Phaser.Utils.Objects.GetValue\r\n * @since 3.0.0\r\n *\r\n * @param {object} source - The primary object to try to retrieve the value from. If not found in here, `altSource` is checked.\r\n * @param {string} key - The name of the property to retrieve from the object. If a property is nested, the names of its preceding properties should be separated by a dot (`.`) - `banner.hideBanner` would return the value of the `hideBanner` property from the object stored in the `banner` property of the `source` object.\r\n * @param {*} defaultValue - The value to return if the `key` isn't found in the `source` object.\r\n * @param {object} [altSource] - An alternative object to retrieve the value from. If the property exists in `source` then `altSource` will not be used.\r\n *\r\n * @return {*} The value of the requested key.\r\n */\r\nvar GetValue = function (source, key, defaultValue, altSource)\r\n{\r\n if ((!source && !altSource) || typeof source === 'number')\r\n {\r\n return defaultValue;\r\n }\r\n else if (source && source.hasOwnProperty(key))\r\n {\r\n return source[key];\r\n }\r\n else if (altSource && altSource.hasOwnProperty(key))\r\n {\r\n return altSource[key];\r\n }\r\n else if (key.indexOf('.') !== -1)\r\n {\r\n var keys = key.split('.');\r\n var parentA = source;\r\n var parentB = altSource;\r\n var valueA = defaultValue;\r\n var valueB = defaultValue;\r\n var valueAFound = true;\r\n var valueBFound = true;\r\n\r\n // Use for loop here so we can break early\r\n for (var i = 0; i < keys.length; i++)\r\n {\r\n if (parentA && parentA.hasOwnProperty(keys[i]))\r\n {\r\n // Yes parentA has a key property, let's carry on down\r\n valueA = parentA[keys[i]];\r\n parentA = parentA[keys[i]];\r\n }\r\n else\r\n {\r\n valueAFound = false;\r\n }\r\n\r\n if (parentB && parentB.hasOwnProperty(keys[i]))\r\n {\r\n // Yes parentB has a key property, let's carry on down\r\n valueB = parentB[keys[i]];\r\n parentB = parentB[keys[i]];\r\n }\r\n else\r\n {\r\n valueBFound = false;\r\n }\r\n }\r\n\r\n if (valueAFound)\r\n {\r\n return valueA;\r\n }\r\n else if (valueBFound)\r\n {\r\n return valueB;\r\n }\r\n else\r\n {\r\n return defaultValue;\r\n }\r\n }\r\n else\r\n {\r\n return defaultValue;\r\n }\r\n};\r\n\r\nmodule.exports = GetValue;\r\n\n\n/***/ }),\n\n/***/ 69036:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Verifies that an object contains all requested keys\r\n *\r\n * @function Phaser.Utils.Objects.HasAll\r\n * @since 3.0.0\r\n *\r\n * @param {object} source - an object on which to check for key existence\r\n * @param {string[]} keys - an array of keys to ensure the source object contains\r\n *\r\n * @return {boolean} true if the source object contains all keys, false otherwise.\r\n */\r\nvar HasAll = function (source, keys)\r\n{\r\n for (var i = 0; i < keys.length; i++)\r\n {\r\n if (!source.hasOwnProperty(keys[i]))\r\n {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n};\r\n\r\nmodule.exports = HasAll;\r\n\n\n/***/ }),\n\n/***/ 1985:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Verifies that an object contains at least one of the requested keys\r\n *\r\n * @function Phaser.Utils.Objects.HasAny\r\n * @since 3.0.0\r\n *\r\n * @param {object} source - an object on which to check for key existence\r\n * @param {string[]} keys - an array of keys to search the object for\r\n *\r\n * @return {boolean} true if the source object contains at least one of the keys, false otherwise\r\n */\r\nvar HasAny = function (source, keys)\r\n{\r\n for (var i = 0; i < keys.length; i++)\r\n {\r\n if (source.hasOwnProperty(keys[i]))\r\n {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n};\r\n\r\nmodule.exports = HasAny;\r\n\n\n/***/ }),\n\n/***/ 97022:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Determine whether the source object has a property with the specified key.\r\n *\r\n * @function Phaser.Utils.Objects.HasValue\r\n * @since 3.0.0\r\n *\r\n * @param {object} source - The source object to be checked.\r\n * @param {string} key - The property to check for within the object\r\n *\r\n * @return {boolean} `true` if the provided `key` exists on the `source` object, otherwise `false`.\r\n */\r\nvar HasValue = function (source, key)\r\n{\r\n return (source.hasOwnProperty(key));\r\n};\r\n\r\nmodule.exports = HasValue;\r\n\n\n/***/ }),\n\n/***/ 41212:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * This is a slightly modified version of jQuery.isPlainObject.\r\n * A plain object is an object whose internal class property is [object Object].\r\n *\r\n * @function Phaser.Utils.Objects.IsPlainObject\r\n * @since 3.0.0\r\n *\r\n * @param {object} obj - The object to inspect.\r\n *\r\n * @return {boolean} `true` if the object is plain, otherwise `false`.\r\n */\r\nvar IsPlainObject = function (obj)\r\n{\r\n // Not plain objects:\r\n // - Any object or value whose internal [[Class]] property is not \"[object Object]\"\r\n // - DOM nodes\r\n // - window\r\n if (!obj || typeof(obj) !== 'object' || obj.nodeType || obj === obj.window)\r\n {\r\n return false;\r\n }\r\n\r\n // Support: Firefox <20\r\n // The try/catch suppresses exceptions thrown when attempting to access\r\n // the \"constructor\" property of certain host objects, ie. |window.location|\r\n // https://bugzilla.mozilla.org/show_bug.cgi?id=814622\r\n try\r\n {\r\n if (obj.constructor && !({}).hasOwnProperty.call(obj.constructor.prototype, 'isPrototypeOf'))\r\n {\r\n return false;\r\n }\r\n }\r\n catch (e)\r\n {\r\n return false;\r\n }\r\n\r\n // If the function hasn't returned already, we're confident that\r\n // |obj| is a plain object, created by {} or constructed with new Object\r\n return true;\r\n};\r\n\r\nmodule.exports = IsPlainObject;\r\n\n\n/***/ }),\n\n/***/ 46975:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Clone = __webpack_require__(41786);\r\n\r\n/**\r\n * Creates a new Object using all values from obj1 and obj2.\r\n * If a value exists in both obj1 and obj2, the value in obj1 is used.\r\n *\r\n * This is only a shallow copy. Deeply nested objects are not cloned, so be sure to only use this\r\n * function on shallow objects.\r\n *\r\n * @function Phaser.Utils.Objects.Merge\r\n * @since 3.0.0\r\n *\r\n * @param {object} obj1 - The first object.\r\n * @param {object} obj2 - The second object.\r\n *\r\n * @return {object} A new object containing the union of obj1's and obj2's properties.\r\n */\r\nvar Merge = function (obj1, obj2)\r\n{\r\n var clone = Clone(obj1);\r\n\r\n for (var key in obj2)\r\n {\r\n if (!clone.hasOwnProperty(key))\r\n {\r\n clone[key] = obj2[key];\r\n }\r\n }\r\n\r\n return clone;\r\n};\r\n\r\nmodule.exports = Merge;\r\n\n\n/***/ }),\n\n/***/ 269:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar Clone = __webpack_require__(41786);\r\n\r\n/**\r\n * Creates a new Object using all values from obj1.\r\n *\r\n * Then scans obj2. If a property is found in obj2 that *also* exists in obj1, the value from obj2 is used, otherwise the property is skipped.\r\n *\r\n * @function Phaser.Utils.Objects.MergeRight\r\n * @since 3.0.0\r\n *\r\n * @param {object} obj1 - The first object to merge.\r\n * @param {object} obj2 - The second object to merge. Keys from this object which also exist in `obj1` will be copied to `obj1`.\r\n *\r\n * @return {object} The merged object. `obj1` and `obj2` are not modified.\r\n */\r\nvar MergeRight = function (obj1, obj2)\r\n{\r\n var clone = Clone(obj1);\r\n\r\n for (var key in obj2)\r\n {\r\n if (clone.hasOwnProperty(key))\r\n {\r\n clone[key] = obj2[key];\r\n }\r\n }\r\n\r\n return clone;\r\n};\r\n\r\nmodule.exports = MergeRight;\r\n\n\n/***/ }),\n\n/***/ 18254:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\nvar HasValue = __webpack_require__(97022);\r\n\r\n/**\r\n * Returns a new object that only contains the `keys` that were found on the object provided.\r\n * If no `keys` are found, an empty object is returned.\r\n *\r\n * @function Phaser.Utils.Objects.Pick\r\n * @since 3.18.0\r\n *\r\n * @param {object} object - The object to pick the provided keys from.\r\n * @param {array} keys - An array of properties to retrieve from the provided object.\r\n *\r\n * @return {object} A new object that only contains the `keys` that were found on the provided object. If no `keys` were found, an empty object will be returned.\r\n */\r\nvar Pick = function (object, keys)\r\n{\r\n var obj = {};\r\n\r\n for (var i = 0; i < keys.length; i++)\r\n {\r\n var key = keys[i];\r\n\r\n if (HasValue(object, key))\r\n {\r\n obj[key] = object[key];\r\n }\r\n }\r\n\r\n return obj;\r\n};\r\n\r\nmodule.exports = Pick;\r\n\n\n/***/ }),\n\n/***/ 61622:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Sets a value in an object, allowing for dot notation to control the depth of the property.\r\n *\r\n * For example:\r\n *\r\n * ```javascript\r\n * var data = {\r\n * world: {\r\n * position: {\r\n * x: 200,\r\n * y: 100\r\n * }\r\n * }\r\n * };\r\n *\r\n * SetValue(data, 'world.position.y', 300);\r\n *\r\n * console.log(data.world.position.y); // 300\r\n * ```\r\n *\r\n * @function Phaser.Utils.Objects.SetValue\r\n * @since 3.17.0\r\n *\r\n * @param {object} source - The object to set the value in.\r\n * @param {string} key - The name of the property in the object. If a property is nested, the names of its preceding properties should be separated by a dot (`.`)\r\n * @param {any} value - The value to set into the property, if found in the source object.\r\n *\r\n * @return {boolean} `true` if the property key was valid and the value was set, otherwise `false`.\r\n */\r\nvar SetValue = function (source, key, value)\r\n{\r\n if (!source || typeof source === 'number')\r\n {\r\n return false;\r\n }\r\n else if (source.hasOwnProperty(key))\r\n {\r\n source[key] = value;\r\n\r\n return true;\r\n }\r\n else if (key.indexOf('.') !== -1)\r\n {\r\n var keys = key.split('.');\r\n var parent = source;\r\n var prev = source;\r\n\r\n // Use for loop here so we can break early\r\n for (var i = 0; i < keys.length; i++)\r\n {\r\n if (parent.hasOwnProperty(keys[i]))\r\n {\r\n // Yes it has a key property, let's carry on down\r\n prev = parent;\r\n parent = parent[keys[i]];\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n }\r\n\r\n prev[keys[keys.length - 1]] = value;\r\n\r\n return true;\r\n }\r\n\r\n return false;\r\n};\r\n\r\nmodule.exports = SetValue;\r\n\n\n/***/ }),\n\n/***/ 1183:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Utils.Objects\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Clone: __webpack_require__(41786),\r\n DeepCopy: __webpack_require__(62644),\r\n Extend: __webpack_require__(79291),\r\n GetAdvancedValue: __webpack_require__(23568),\r\n GetFastValue: __webpack_require__(95540),\r\n GetMinMaxValue: __webpack_require__(82840),\r\n GetValue: __webpack_require__(35154),\r\n HasAll: __webpack_require__(69036),\r\n HasAny: __webpack_require__(1985),\r\n HasValue: __webpack_require__(97022),\r\n IsPlainObject: __webpack_require__(41212),\r\n Merge: __webpack_require__(46975),\r\n MergeRight: __webpack_require__(269),\r\n Pick: __webpack_require__(18254),\r\n SetValue: __webpack_require__(61622)\r\n\r\n};\r\n\n\n/***/ }),\n\n/***/ 27902:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Takes a string and replaces instances of markers with values in the given array.\r\n * The markers take the form of `%1`, `%2`, etc. I.e.:\r\n *\r\n * `Format(\"The %1 is worth %2 gold\", [ 'Sword', 500 ])`\r\n *\r\n * @function Phaser.Utils.String.Format\r\n * @since 3.0.0\r\n *\r\n * @param {string} string - The string containing the replacement markers.\r\n * @param {array} values - An array containing values that will replace the markers. If no value exists an empty string is inserted instead.\r\n *\r\n * @return {string} The string containing replaced values.\r\n */\r\nvar Format = function (string, values)\r\n{\r\n return string.replace(/%([0-9]+)/g, function (s, n)\r\n {\r\n return values[Number(n) - 1];\r\n });\r\n};\r\n\r\nmodule.exports = Format;\r\n\n\n/***/ }),\n\n/***/ 41836:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Takes the given string and pads it out, to the length required, using the character\r\n * specified. For example if you need a string to be 6 characters long, you can call:\r\n *\r\n * `pad('bob', 6, '-', 2)`\r\n *\r\n * This would return: `bob---` as it has padded it out to 6 characters, using the `-` on the right.\r\n *\r\n * You can also use it to pad numbers (they are always returned as strings):\r\n *\r\n * `pad(512, 6, '0', 1)`\r\n *\r\n * Would return: `000512` with the string padded to the left.\r\n *\r\n * If you don't specify a direction it'll pad to both sides:\r\n *\r\n * `pad('c64', 7, '*')`\r\n *\r\n * Would return: `**c64**`\r\n *\r\n * @function Phaser.Utils.String.Pad\r\n * @since 3.0.0\r\n *\r\n * @param {string|number|object} str - The target string. `toString()` will be called on the string, which means you can also pass in common data types like numbers.\r\n * @param {number} [len=0] - The number of characters to be added.\r\n * @param {string} [pad=\" \"] - The string to pad it out with (defaults to a space).\r\n * @param {number} [dir=3] - The direction dir = 1 (left), 2 (right), 3 (both).\r\n *\r\n * @return {string} The padded string.\r\n */\r\nvar Pad = function (str, len, pad, dir)\r\n{\r\n if (len === undefined) { len = 0; }\r\n if (pad === undefined) { pad = ' '; }\r\n if (dir === undefined) { dir = 3; }\r\n\r\n str = str.toString();\r\n\r\n var padlen = 0;\r\n\r\n if (len + 1 >= str.length)\r\n {\r\n switch (dir)\r\n {\r\n case 1:\r\n str = new Array(len + 1 - str.length).join(pad) + str;\r\n break;\r\n\r\n case 3:\r\n var right = Math.ceil((padlen = len - str.length) / 2);\r\n var left = padlen - right;\r\n str = new Array(left + 1).join(pad) + str + new Array(right + 1).join(pad);\r\n break;\r\n\r\n default:\r\n str = str + new Array(len + 1 - str.length).join(pad);\r\n break;\r\n }\r\n }\r\n\r\n return str;\r\n};\r\n\r\nmodule.exports = Pad;\r\n\n\n/***/ }),\n\n/***/ 33628:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Takes a string and removes the character at the given index.\r\n *\r\n * @function Phaser.Utils.String.RemoveAt\r\n * @since 3.50.0\r\n *\r\n * @param {string} string - The string to be worked on.\r\n * @param {number} index - The index of the character to be removed.\r\n *\r\n * @return {string} The modified string.\r\n */\r\nvar RemoveAt = function (string, index)\r\n{\r\n if (index === 0)\r\n {\r\n return string.slice(1);\r\n }\r\n else\r\n {\r\n return string.slice(0, index - 1) + string.slice(index);\r\n }\r\n};\r\n\r\nmodule.exports = RemoveAt;\r\n\n\n/***/ }),\n\n/***/ 27671:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Takes the given string and reverses it, returning the reversed string.\r\n * For example if given the string `Atari 520ST` it would return `TS025 iratA`.\r\n *\r\n * @function Phaser.Utils.String.Reverse\r\n * @since 3.0.0\r\n *\r\n * @param {string} string - The string to be reversed.\r\n *\r\n * @return {string} The reversed string.\r\n */\r\nvar Reverse = function (string)\r\n{\r\n return string.split('').reverse().join('');\r\n};\r\n\r\nmodule.exports = Reverse;\r\n\n\n/***/ }),\n\n/***/ 45650:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Creates and returns an RFC4122 version 4 compliant UUID.\r\n *\r\n * The string is in the form: `xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx` where each `x` is replaced with a random\r\n * hexadecimal digit from 0 to f, and `y` is replaced with a random hexadecimal digit from 8 to b.\r\n *\r\n * @function Phaser.Utils.String.UUID\r\n * @since 3.12.0\r\n *\r\n * @return {string} The UUID string.\r\n */\r\nvar UUID = function ()\r\n{\r\n return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c)\r\n {\r\n var r = Math.random() * 16 | 0;\r\n var v = (c === 'x') ? r : (r & 0x3 | 0x8);\r\n\r\n return v.toString(16);\r\n });\r\n};\r\n\r\nmodule.exports = UUID;\r\n\n\n/***/ }),\n\n/***/ 35355:\n/***/ ((module) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * Capitalizes the first letter of a string if there is one.\r\n * @example\r\n * UppercaseFirst('abc');\r\n * // returns 'Abc'\r\n * @example\r\n * UppercaseFirst('the happy family');\r\n * // returns 'The happy family'\r\n * @example\r\n * UppercaseFirst('');\r\n * // returns ''\r\n *\r\n * @function Phaser.Utils.String.UppercaseFirst\r\n * @since 3.0.0\r\n *\r\n * @param {string} str - The string to capitalize.\r\n *\r\n * @return {string} A new string, same as the first, but with the first letter capitalized.\r\n */\r\nvar UppercaseFirst = function (str)\r\n{\r\n return str && str[0].toUpperCase() + str.slice(1);\r\n};\r\n\r\nmodule.exports = UppercaseFirst;\r\n\n\n/***/ }),\n\n/***/ 31749:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * @author Richard Davey \r\n * @copyright 2013-2024 Phaser Studio Inc.\r\n * @license {@link https://opensource.org/licenses/MIT|MIT License}\r\n */\r\n\r\n/**\r\n * @namespace Phaser.Utils.String\r\n */\r\n\r\nmodule.exports = {\r\n\r\n Format: __webpack_require__(27902),\r\n Pad: __webpack_require__(41836),\r\n RemoveAt: __webpack_require__(33628),\r\n Reverse: __webpack_require__(27671),\r\n UppercaseFirst: __webpack_require__(35355),\r\n UUID: __webpack_require__(45650)\r\n\r\n};\r\n\n\n/***/ })\n\n/******/ \t});\n/************************************************************************/\n/******/ \t// The module cache\n/******/ \tvar __webpack_module_cache__ = {};\n/******/ \t\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/ \t\t// Check if module is in cache\n/******/ \t\tvar cachedModule = __webpack_module_cache__[moduleId];\n/******/ \t\tif (cachedModule !== undefined) {\n/******/ \t\t\treturn cachedModule.exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = __webpack_module_cache__[moduleId] = {\n/******/ \t\t\t// no module.id needed\n/******/ \t\t\t// no module.loaded needed\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/ \t\n/******/ \t\t// Execute the module function\n/******/ \t\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n/******/ \t\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/ \t\n/************************************************************************/\n/******/ \t/* webpack/runtime/global */\n/******/ \t(() => {\n/******/ \t\t__webpack_require__.g = (function() {\n/******/ \t\t\tif (typeof globalThis === 'object') return globalThis;\n/******/ \t\t\ttry {\n/******/ \t\t\t\treturn this || new Function('return this')();\n/******/ \t\t\t} catch (e) {\n/******/ \t\t\t\tif (typeof window === 'object') return window;\n/******/ \t\t\t}\n/******/ \t\t})();\n/******/ \t})();\n/******/ \t\n/************************************************************************/\n/******/ \t\n/******/ \t// startup\n/******/ \t// Load entry module and return exports\n/******/ \t// This entry module is referenced by other modules so it can't be inlined\n/******/ \tvar __webpack_exports__ = __webpack_require__(85454);\n/******/ \t\n/******/ \treturn __webpack_exports__;\n/******/ })()\n;\n});"], "mappings": ";;;;;;AAAA;AAAA;AAAA,KAAC,SAAS,iCAAiC,MAAM,SAAS;AACzD,UAAG,OAAO,YAAY,YAAY,OAAO,WAAW;AACnD,eAAO,UAAU,QAAQ;AAAA,eAClB,OAAO,WAAW,cAAc,OAAO;AAC9C,eAAO,UAAU,CAAC,GAAG,OAAO;AAAA,eACrB,OAAO,YAAY;AAC1B,gBAAQ,QA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,qBAAO,aAAa;AAAA,YACrB;AAEA,gBAAID,UAAS,yBAAyB,QAAQ,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,cAGjD,SAAS,CAAC;AAAA;AAAA,YACX;AAGA,gCAAoB,QAAQ,EAAEA,SAAQA,QAAO,SAAS,mBAAmB;AAGzE,mBAAOA,QAAO;AAAA,UACf;AAIA,WAAC,MAAM;AACN,gCAAoB,IAAK,WAAW;AACnC,kBAAI,OAAO,eAAe,SAAU,QAAO;AAC3C,kBAAI;AACH,uBAAO,QAAQ,IAAI,SAAS,aAAa,EAAE;AAAA,cAC5C,SAAS,GAAG;AACX,oBAAI,OAAO,WAAW,SAAU,QAAO;AAAA,cACxC;AAAA,YACD,EAAG;AAAA,UACJ,GAAG;AAOH,cAAI,sBAAsB,oBAAoB,KAAK;AAEnD,iBAAO;AAAA,QACR,GAAG;AAAA;AAAA,IAEZ,CAAC;AAAA;AAAA;", "names": ["module", "__webpack_require__", "Animation", "AnimationFrame", "AnimationManager", "AnimationState", "BaseCache", "CacheManager", "BaseCamera", "Camera", "CameraManager", "Fade", "Flash", "Pan", "RotateTo", "Shake", "Zoom", "FixedKeyControl", "SmoothedKeyControl", "Config", "Game", "TimeStep", "CubicBezierCurve", "Curve", "EllipseCurve", "LineCurve", "QuadraticBezier", "SplineCurve", "MoveTo", "Path", "DataManager", "DataManagerPlugin", "Audio", "ColorMatrix", "RGB", "Color", "r", "g", "b", "BitmapMask", "GeometryMask", "BaseShader", "screen", "RequestAnimationFrame", "EventEmitter", "Barrel", "Bloom", "Blur", "Bokeh", "Circle", "Controller", "Displacement", "Glow", "Gradient", "Pixelate", "Shadow", "Shine", "Vignette", "Wipe", "DisplayList", "GameObject", "GameObjectCreator", "GameObjectFactory", "UpdateList", "text", "i", "charCode", "glyph", "DynamicBitmapText", "BitmapText", "Blitter", "Bob", "FX", "tween", "TransformMatrix", "Container", "DOMElement", "Extern", "Graphics", "Group", "Image", "Layer", "Light", "LightsManager", "LightsPlugin", "Mesh", "NineSlice", "EmitterColorOp", "EmitterOp", "GravityWell", "Particle", "ParticleBounds", "ParticleEmitter", "ParticleProcessor", "DeathZone", "EdgeZone", "RandomZone", "PathFollower", "Plane", "PointLight", "RenderTexture", "Rope", "Shader", "Shape", "Arc", "Ellipse", "Grid", "IsoBox", "IsoTriangle", "Line", "Polygon", "Rectangle", "Star", "Triangle", "Sprite", "Text", "TextStyle", "TileSprite", "Video", "Zone", "Face", "Vertex", "Point", "InputManager", "InputPlugin", "gameObject", "Pointer", "Axis", "Button", "Gamepad", "GamepadPlugin", "KeyboardManager", "KeyboardPlugin", "KeyCombo", "Key", "MouseManager", "TouchManager", "File", "LoaderPlugin", "MultiFile", "AnimationJSONFile", "AsepriteFile", "AtlasJSONFile", "AtlasXMLFile", "AudioFile", "AudioSpriteFile", "BinaryFile", "BitmapFontFile", "CSSFile", "CompressedTextureFile", "key", "xhrSettings", "GLSLFile", "HTML5AudioFile", "HTMLFile", "HTMLTextureFile", "ImageFile", "JSONFile", "MultiAtlasFile", "MultiScriptFile", "OBJFile", "PackFile", "PluginFile", "SVGFile", "SceneFile", "ScenePluginFile", "ScriptFile", "SpriteSheetFile", "TextFile", "TilemapCSVFile", "TilemapImpactFile", "TilemapJSONFile", "UnityAtlasFile", "VideoFile", "XMLFile", "Euler", "Matrix3", "Matrix4", "Quaternion", "Vector2", "Vector3", "Vector4", "RandomDataGenerator", "ArcadeImage", "ArcadePhysics", "ArcadeSprite", "Body", "Collider", "Factory", "PhysicsGroup", "StaticBody", "StaticPhysicsGroup", "World", "BodyBounds", "x", "y", "MatterImage", "MatterPhysics", "MatterSprite", "MatterTileBody", "PointerConstraint", "body", "object", "vertices", "point", "segment", "BasePlugin", "PluginManager", "ScenePlugin", "CanvasRenderer", "PipelineManager", "pipelineName", "RenderTarget", "WebGLPipeline", "WebGLRenderer", "gl", "WebGLShader", "BitmapMaskPipeline", "FXPipeline", "LightPipeline", "MobilePipeline", "MultiPipeline", "PointLightPipeline", "PostFXPipeline", "PreFXPipeline", "RopePipeline", "SinglePipeline", "UtilityPipeline", "BarrelFXPipeline", "BloomFXPipeline", "BlurFXPipeline", "BokehFXPipeline", "CircleFXPipeline", "ColorMatrixFXPipeline", "DisplacementFXPipeline", "GlowFXPipeline", "GradientFXPipeline", "PixelateFXPipeline", "ShadowFXPipeline", "ShineFXPipeline", "VignetteFXPipeline", "WipeFXPipeline", "WebGLAttribLocationWrapper", "WebGLBufferWrapper", "WebGLFramebufferWrapper", "WebGLProgramWrapper", "WebGLTextureWrapper", "WebGLUniformLocationWrapper", "ScaleManager", "Scene", "SceneManager", "Systems", "BaseSound", "BaseSoundManager", "HTML5AudioSound", "HTML5AudioSoundManager", "NoAudioSound", "NoAudioSoundManager", "WebAudioSound", "WebAudioSoundManager", "unlockHandler", "List", "Map", "ProcessQueue", "Set", "Size", "CanvasTexture", "DynamicTexture", "Frame", "Texture", "TextureManager", "texture", "atlasData", "TextureSource", "ImageCollection", "ObjectHelper", "Tile", "Tilemap", "TilemapLayer", "Tileset", "config", "tile", "LayerData", "MapData", "ObjectLayer", "Clock", "Timeline", "TimerEvent", "TweenManager", "value", "toX", "toY", "targetIndex", "BaseTween", "BaseTweenData", "Tween", "TweenChain", "TweenData", "TweenFrameData", "extend"] }